[Bug target/18542] [3.4 only] ICE: output_operand: invalid expression as operand
-- What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed||1 Known to fail|3.4.0 3.4.3 |3.4.0 3.4.3 3.4.4 Last reconfirmed|-00-00 00:00:00 |2004-12-07 00:02:33 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18542
[Bug target/18542] [3.4 only] ICE: output_operand: invalid expression as operand
--- Additional Comments From corsepiu at gcc dot gnu dot org 2004-11-19 10:22 --- I am filing separate PRs for the avr and the h8300, because I believe this issue to be target-specific. FYI: I have found one target for which compiling the code in the attachment fails with the same symptions with gcc-3.4.0, while gcc-3.4.3 does not fail: An i386-pc-linux (FC3) to i386-freebsd5.2.1 cross gcc-3.4.0 fails the same way, a gcc-3.4.3 does not fail. -- What|Removed |Added GCC target triplet|m68k-*-elf m68k-rtems* avr- |m68k-*-elf m68k-rtems* |rtems* h8300-rtems* | Known to fail||3.4.0 3.4.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18542
[Bug target/18542] [3.4 only] ICE: output_operand: invalid expression as operand
-- What|Removed |Added Known to work|4.0.0 3.2.3 |4.0.0 3.2.3 3.3.5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18542
[Bug target/18542] [3.4 only] ICE: output_operand: invalid expression as operand
--- Additional Comments From joel at oarcorp dot com 2004-11-18 14:26 --- Subject: Re: [3.4 only] ICE: output_operand: invalid expression as operand corsepiu at gcc dot gnu dot org wrote: > --- Additional Comments From corsepiu at gcc dot gnu dot org 2004-11-18 > 13:14 --- > The same ICE occurs for avr-rtems* and h8300-rtems* toolchains having been > built > from the same sources. > > A bit more follow up. Again the 4.6 tools are gcc 3.2.3 based and the 4.7 are gcc 3.3.5. + /opt/rtems-4.6/bin/arm-rtems-gcc -O1 -c cpuboot.c + /opt/rtems-4.6/bin/h8300-rtems-gcc -O1 -c cpuboot.c + /opt/rtems-4.6/bin/i386-rtems-gcc -O1 -c cpuboot.c + /opt/rtems-4.6/bin/i960-rtems-gcc -O1 -c cpuboot.c + /opt/rtems-4.6/bin/m68k-rtems-gcc -O1 -c cpuboot.c + /opt/rtems-4.6/bin/mips-rtems-gcc -O1 -c cpuboot.c + /opt/rtems-4.6/bin/powerpc-rtems-gcc -O1 -c cpuboot.c + /opt/rtems-4.6/bin/sh-rtemself-gcc -O1 -c cpuboot.c + /opt/rtems-4.6/bin/sh-rtems-gcc -O1 -c cpuboot.c + /opt/rtems-4.6/bin/sparc-rtems-gcc -O1 -c cpuboot.c + /opt/rtems-4.7/bin/arm-rtems4.7-gcc -O1 -c cpuboot.c + /opt/rtems-4.7/bin/i386-rtems4.7-gcc -O1 -c cpuboot.c + /opt/rtems-4.7/bin/m68k-rtems4.7-gcc -O1 -c cpuboot.c + /opt/rtems-4.7/bin/mips64-rtems4.7-gcc -O1 -c cpuboot.c + /opt/rtems-4.7/bin/mips-rtems4.7-gcc -O1 -c cpuboot.c + /opt/rtems-4.7/bin/powerpc-rtems4.7-gcc -O1 -c cpuboot.c + /opt/rtems-4.7/bin/sh-rtemself4.7-gcc -O1 -c cpuboot.c + /opt/rtems-4.7/bin/sparc-rtems4.7-gcc -O1 -c cpuboot.c I tried it again at -O4 and it all compiled fine. I think it is pretty safe to assume at this point that the problem is specific to 3.4. --joel -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18542
[Bug target/18542] [3.4 only] ICE: output_operand: invalid expression as operand
--- Additional Comments From joel at oarcorp dot com 2004-11-18 14:13 --- Subject: Re: [3.4 only] ICE: output_operand: invalid expression as operand corsepiu at gcc dot gnu dot org wrote: > --- Additional Comments From corsepiu at gcc dot gnu dot org 2004-11-18 > 13:14 --- > The same ICE occurs for avr-rtems* and h8300-rtems* toolchains having been > built > from the same sources. > > I have 3.2.3 and 3.3.5 RTEMS tools installed and tried this for the m68k. It looks OK there. So it must be a 3.4.x specific issue. What other targets/versions do you want to try? + /opt/rtems-4.6/bin/m68k-rtems-gcc --version m68k-rtems-gcc (GCC) 3.2.3 (OAR Corporation gcc-3.2.3-20040420/newlib-1.11.0-20030605-4) Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + /opt/rtems-4.6/bin/m68k-rtems-gcc -O1 -c cpuboot.c + /opt/rtems-4.7/bin/m68k-rtems4.7-gcc --version m68k-rtems4.7-gcc (GCC) 3.3.5 Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + /opt/rtems-4.7/bin/m68k-rtems4.7-gcc -O1 -c cpuboot.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18542
[Bug target/18542] [3.4 only] ICE: output_operand: invalid expression as operand
--- Additional Comments From corsepiu at gcc dot gnu dot org 2004-11-18 13:14 --- The same ICE occurs for avr-rtems* and h8300-rtems* toolchains having been built from the same sources. -- What|Removed |Added GCC target triplet|m68k-*-elf m68k-rtems* |m68k-*-elf m68k-rtems* avr- ||rtems* h8300-rtems* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18542
[Bug target/18542] [3.4 only] ICE: output_operand: invalid expression as operand
-- What|Removed |Added Known to work|4.0.0 |4.0.0 3.2.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18542
[Bug target/18542] [3.4 only] ICE: output_operand: invalid expression as operand
--- Additional Comments From corsepiu at gcc dot gnu dot org 2004-11-18 12:40 --- Chris, Joel, could you try with your GCC versions? -- What|Removed |Added CC||cjohns at cybertec dot com ||dot au http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18542
[Bug target/18542] [3.4 only] ICE: output_operand: invalid expression as operand
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-18 12:28 --- At least the striped down source compiles just fine on the mainline. -- What|Removed |Added Keywords||ice-on-valid-code Known to work||4.0.0 Summary|ICE: output_operand: invalid|[3.4 only] ICE: |expression as operand |output_operand: invalid ||expression as operand Target Milestone|--- |3.4.4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18542