[Bug middle-end/6552] make gnatlib_and_tools fails compiling a-chahan.adb on IRIX 6.2

ro at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Oct 24 20:57:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6552



------- Additional Comments From ro at gcc dot gnu dot org  2003-10-24 20:41 -------
For some reason, this comment didn't make it into bugzilla via mail ;-(  So I'm
submitting it again via the web:

> This is related to the handling of depressed stack pointer, so a work
> around is to turn DSP off in 5gsystem.ads:
> 
>    Functions_Return_By_DSP   : constant Boolean := False;

With this workaround, I was able to bootstrap current mainline (C and Ada
only) on mips-sgi-irix6.5, though still with -O2 removed as described
below.  I'll use the freshly bootstrapped compiler to try another bootstrap
with -O2 and see how it goes.

Two problems: 

* gnatpsta fails to link (I think there's another PR for this bug):

ld32: ERROR   33 : Unresolved text symbol "mips_abi" -- 1st referenced by
../targtyps.o.
        Use linker option -v to see when and which objects, archives and dsos
are loaded.  
ld32: INFO    152: Output file removed because of error.
collect2: ld returned 2 exit status
gnatlink: cannot call ../../xgcc
make[2]: *** [../../gnatpsta] Error 4

* What is the consequence of this workaround?  From the comment in
  targparm.ads, it seems like setting it to False for now and returning to
  True later will break binary compatibility.

So how to proceed?  Is a proper fix likely to be in place for GCC 3.4?

	Rainer



More information about the Gcc-bugs mailing list