bootstrap/10129: Ada bootstrap fails on powerpc-apple-darwin6.4 - invalid assembler emitted

bosch@gcc.gnu.org bosch@gcc.gnu.org
Tue Mar 18 04:06:00 GMT 2003


>Number:         10129
>Category:       bootstrap
>Synopsis:       Ada bootstrap fails on powerpc-apple-darwin6.4 - invalid assembler emitted
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 18 04:06:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Geert Bosch
>Release:        3.3
>Organization:
>Environment:

>Description:
This is a regression since GCC 3.2, triggered by the following patch:
<http://gcc.gnu.org/ml/gcc-patches/2002-09/msg01259.html>
I initially reported the bug on the GCC list on 18 october 2002 in <http://gcc.gnu.org/ml/gcc/2002-10/msg00901.html>
Geoffrey Keating wrote a good synopsis of the issue in
<http://gcc.gnu.org/ml/gcc/2002-10/msg01071.html>

Symptom is:
stage1/xgcc -Bstage1/ -B/usr/local/powerpc-apple-darwin6.4/bin/ -c -g -O2      -gnatpg -gnata -g -O1 -fno-inline \
 -I- -I. -Iada -I/Users/bosch/gcc/gcc/ada /Users/bosch/gcc/gcc/ada/a-except.adb -o ada/a-except.o
/var/tmp//ccRkTAgH.s:unknown:Can't emit reloc {- symbol "L65$pb"} @ file address 9596.
/var/tmp//ccRkTAgH.s:unknown:Can't emit reloc {- symbol "L65$pb"} @ file address 9592.
/var/tmp//ccRkTAgH.s:unknown:Can't emit reloc {- symbol "L64$pb"} @ file address 9484.
...
...
>How-To-Repeat:
configure --enable-languages=c,ada
make bootstrap
>Fix:
Quoting from message <http://gcc.gnu.org/ml/gcc/2002-10/msg01071.html> by Geoffrey:
Since we can't do the nice thing, probably a good second-best is, for  functions that need this restore (perhaps those that have  current_function_has_nonlocal_label set) to ensure that the original  load_macho_picbase never gets deleted by adding a suitable USE of the  PIC register.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-prs mailing list