[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Has anyone successfully bootstrapped gcc-4.6.3 on m68k?



On 03/06/2012 15:28, t-rexky wrote:
Stage 2 finished in approximately 36 hours!

Good.

You have to determine how to change :
        movel pc@(L9,d0:l),d0
        movel d0,a0
to:
        movel #L9,a0

Am I correct in assuming that this is an issue in gcc?

I don't know...
For sure "movel pc@(L9,d0:l)" should only be used when JUMP_TABLES_IN_TEXT_SECTION == 1.

I mention gcc, because I would expect that with CASE_VECTOR_PC_RELATIVE
0, the pc relative addressing of the jump tables should not be generated,
but it is.

From the documentation:
http://gcc.gnu.org/onlinedocs/gccint/Misc.html#index-CASE_005fVECTOR_005fPC_005fRELATIVE-4796

The CASE_VECTOR_PC_RELATIVE macro is about the *contents* of the jump table, which are always good in your case (absolute).

Your problem is about the code that *references* the jump table (the code I quoted). The question is how to change it...

--
Vincent Rivière


Reply to: