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

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



Thank you, sir for all your help!

On 2012-06-02, at 6:13 AM, Vincent Rivière wrote:

> On 01/06/2012 22:01, Vaugha Brewchuk wrote:
>> I finally have some good news and good progress with gcc-4.2.4.
> 
> Good.

Stage 2 finished in approximately 36 hours!  The good news is that the stage 2 compiler works and generates good code!  The bad news is that is has a really obscure issue that did not exist in stage 1.  Compiling with -Wall or -Wunused generates an insane amount of warnings of the following type:

<built-in>:0: warning: '__builtin_acos' declared 'static' but never defined
<built-in>:0: warning: 'acos' declared 'static' but never defined
/NextDeveloper/Headers/ansi/stdio.h:109: warning: 'remove' declared 'static' but never defined
/NextDeveloper/Headers/ansi/stdio.h:110: warning: 'rename' declared 'static' but never defined

These occur on every source file for every built-in declaration and every declaration in all included header files.  I am extremely confused by this and searching online and through the code for a solution...

> 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?  It then combines with inability of the NeXT assembler to use the pc@(L9,d0:l),d0 addressing mode.  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.  Then on the NeXT side, this addressing mode does not work even with JUMP_TABLES_IN_TEXT_SECTION 1.  I will get back into this eventually, but for now I would be delighted even if I can get 4.2 going reasonably well.

> Good luck.
> 
> -- 
> Vincent Rivière


Reply to: