Bug 16267 - [3.4 Regression] ICE in do_output_reload, at reload1.c:6905
Summary: [3.4 Regression] ICE in do_output_reload, at reload1.c:6905
Status: RESOLVED DUPLICATE of bug 15948
Alias: None
Product: gcc
Classification: Unclassified
Component: rtl-optimization (show other bugs)
Version: 3.4.1
: P2 normal
Target Milestone: 3.4.2
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
: 15168 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-29 14:34 UTC by Heiko Panther
Modified: 2004-06-30 10:25 UTC (History)
2 users (show)

See Also:
Host:
Target: arm-elf
Build:
Known to work: 3.3.4
Known to fail: 3.4.1
Last reconfirmed: 2004-06-29 16:28:16


Attachments
Preprocessed source causing the crash (11.54 KB, text/plain)
2004-06-29 14:36 UTC, Heiko Panther
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Heiko Panther 2004-06-29 14:34:17 UTC
gcc-3.4.1-20040625 crashes when attempting to compile attached file thread.i
(from eCos thread.cxx).
Invocation of compiler:
arm-elf-gcc -c 
-I/Users/hpanther/DevCurrent/FireWireEmbedded/platforms_os/iceLynx/install/include
-I/Users/hpanther/DevCurrent/ecos/packages/kernel/current
-I/Users/hpanther/DevCurrent/ecos/packages/kernel/current/src
-I/Users/hpanther/DevCurrent/ecos/packages/kernel/current/tests -I.
-I/Users/hpanther/DevCurrent/ecos/packages/kernel/current/src/common/ -mthumb
-mbig-endian -mcpu=arm7tdmi -msoft-float -malignment-traps -Wall -Wpointer-arith
-Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -gdwarf-2 -Os
-finline-limit=80 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions
  -Wp,-MD,src/common/thread.tmp -o src/common/kernel_thread.o
/Users/hpanther/DevCurrent/ecos/packages/kernel/current/src/common/thread.cxx

Error message:
/Users/hpanther/DevCurrent/ecos/packages/kernel/current/src/common/thread.cxx:396:
internal compiler error: in do_output_reload, at reload1.c:6905
Please submit a full bug report,

gcc Configure options:
# /Users/hpanther/DevCurrent/gnu_toolchain/gcc-3.4.1-20040625/configure 
--target=arm-elf --prefix=/opt/arm-elf --enable-languages=c,c++ --with-gnu-as
--with-gnu-ld --with-newlib --with-gxx-include-dir=/opt/arm-elf/arm-elf/include
--with-gcc-version-trigger=/Users/hpanther/DevCurrent/gnu_toolchain/gcc-3.4.1-20040625/gcc/version.c
Comment 1 Heiko Panther 2004-06-29 14:36:00 UTC
Created attachment 6649 [details]
Preprocessed source causing the crash
Comment 2 Andrew Pinski 2004-06-29 14:39:35 UTC
*** Bug 15168 has been marked as a duplicate of this bug. ***
Comment 3 Serge Belyshev 2004-06-29 16:28:16 UTC
note this testcase fails only with c++ compiler, use '-O1 -mthumb':
------------------------------------------------------------------------------
struct foo
{
  int a, b;
};

void bar (struct foo *p)
{
  if (!(p->a & 2))
    ;
  else
    p->b = 0;
}
------------------------------------------------------------------------------

Confirmed, a regression from 3.3.4.
Comment 4 Richard Earnshaw 2004-06-30 10:25:56 UTC

*** This bug has been marked as a duplicate of 15948 ***