target/6867: GCC 3.1 bootstrap fails for HPPA with -march=2.0
Stefan.Becker@nokia.com
Stefan.Becker@nokia.com
Thu May 30 04:36:00 GMT 2002
>Number: 6867
>Category: target
>Synopsis: GCC 3.1 bootstrap fails for HPPA with -march=2.0
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Thu May 30 04:36:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Stefan Becker
>Release: 3.1
>Organization:
>Environment:
hppa2.0-hp-hpux11.11
>Description:
During the bootstrap the generated stage1 and stage2 compiler fail on the following modules:
gcc/global.c:
stage1/xgcc -Bstage1/ -B/disks/gsm_ui/software/hppa2.0-hp-hpux11.11/hppa2.0-hp-hpux11.11/bin/ -c -DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I../../../../src/gcc-3.1/gcc -I../../../../src/gcc-3.1/gcc/. -I../../../../src/gcc-3.1/gcc/config -I../../../../src/gcc-3.1/gcc/../include ../../../../src/gcc-3.1/gcc/global.c -o global.o
../../../../src/gcc-3.1/gcc/global.c: In function `expand_preferences':
../../../../src/gcc-3.1/gcc/global.c:882: insn does not satisfy its constraints:
(insn 807 805 162 (set (reg:SI 72 %fr24)
(mem/f:SI (lo_sum:SI (reg/f:SI 9 %r9 [156])
(symbol_ref:SI ("allocno_row_words"))) [2 allocno_row_words+0 S4 A32])) 68 {*pa.md:2088} (nil)
(nil))
../../../../src/gcc-3.1/gcc/global.c:882: Internal compiler error in reload_cse_simplify_operands, at reload1.c:8368
gcc/sched-rgn.c:
stage1/xgcc -Bstage1/ -B/disks/gsm_ui/software/hppa2.0-hp-hpux11.11/hppa2.0-hp-hpux11.11/bin/ -c -DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I../../../../src/gcc-3.1/gcc -I../../../../src/gcc-3.1/gcc/. -I../../../../src/gcc-3.1/gcc/config -I../../../../src/gcc-3.1/gcc/../include ../../../../src/gcc-3.1/gcc/sched-rgn.c -o sched-rgn.o
../../../../src/gcc-3.1/gcc/sched-rgn.c: In function `init_ready_list':
../../../../src/gcc-3.1/gcc/sched-rgn.c:2078: insn does not satisfy its constraints:
(insn 836 834 106 (set (reg:SI 69 %fr22R)
(mem/f:SI (lo_sum:SI (reg/f:SI 5 %r5 [142])
(symbol_ref:SI ("rgn_nr_edges"))) [3 rgn_nr_edges+0 S4 A32])) 68 {*pa.md:2088} (nil)
(nil))
../../../../src/gcc-3.1/gcc/sched-rgn.c:2078: Internal compiler error in reload_cse_simplify_operands, at reload1.c:8368
gcc/f/data.c:
stage1/xgcc -Bstage1/ -B/disks/gsm_ui/software/hppa2.0-hp-hpux11.11/hppa2.0-hp-hpux11.11/bin/ -c -DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -DHAVE_CONFIG_H -I. -If -I../../../../src/gcc-3.1/gcc -I../../../../src/gcc-3.1/gcc/f -I../../../../src/gcc-3.1/gcc/config -I../../../../src/gcc-3.1/gcc/../include ../../../../src/gcc-3.1/gcc/f/data.c -o f/data.o
../../../../src/gcc-3.1/gcc/f/data.c: In function `ffedata_advance_':
../../../../src/gcc-3.1/gcc/f/data.c:655: insn does not satisfy its constraints:
(insn 2674 552 571 (set (reg:DI 72 %fr24 [327])
(mem/f:DI (lo_sum:SI (reg/f:SI 5 %r5 [865])
(symbol_ref:SI ("ffedata_arraysize_"))) [28 ffedata_arraysize_+0 S8 A64])) 118 {*pa.md:3087} (nil)
(nil))
../../../../src/gcc-3.1/gcc/f/data.c:655: Internal compiler error in reload_cse_simplify_operands, at reload1.c:8368
The modules compile fine when I remove the "-O2" from the command line.
>How-To-Repeat:
I wanted to create a GCC which generats PA2.0 code as default. I studied the configuration and modified in gcc/config.gcc
hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
target_cpu_default="MASK_PA_11"
to
hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
target_cpu_default="(MASK_PA_11|MASK_PA_20)"
After that I ran the configure & make bootstrap-lean.
To verify the problem I bootstrapped GCC 3.1 without any changes, ie. it will generate PA1.1 code. After the bootstrap was complete I compiled the 3 modules with "-march=2.0" and got the same error message.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list