public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/13375] New: ICE in gcse.c
@ 2003-12-10 13:40 trauscher at loytec dot com
  2003-12-19 14:31 ` [Bug optimization/13375] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: trauscher at loytec dot com @ 2003-12-10 13:40 UTC (permalink / raw)
  To: gcc-bugs

The following code produces an ICE in gcse.c.
The bug only appears when compiling for thumb code
and at least -O2. It also disappears if
unused members (b,d) from struct A are deleted.

If -Os is given, the error occurs at
  handle_avail_expr, at gcse.c:3429
If -O2 or -O3 is given, the error occurs at
  pre_insert_copy_insn, at gcse.c:5321


COMMAND LINE:

arm-rtems-elf-gcc-3.3.2 -v -save-temps -mthumb -Os -c -o aaa.o aaa.c 

GCC OUTPUT:

Reading specs from /usr/local/lib/gcc-lib/arm-rtems-elf/3.3.2/specs
Configured with: ../gcc-3.3.2/configure --prefix=/usr/local
--target=arm-rtems-elf --with-newlib --enable-languages=c,c++
Thread model: single
gcc version 3.3.2
 /usr/local/lib/gcc-lib/arm-rtems-elf/3.3.2/cc1 -E -quiet -v -D__GNUC__=3
-D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=2 -D__ARM_ARCH_4T__ -D__ELF__
-D__USES_INITFINI__ aaa.c -mthumb -Os aaa.i
ignoring nonexistent directory "/usr/local/arm-rtems-elf/sys-include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/lib/gcc-lib/arm-rtems-elf/3.3.2/include
 /usr/local/arm-rtems-elf/include
End of search list.
 /usr/local/lib/gcc-lib/arm-rtems-elf/3.3.2/cc1 -fpreprocessed aaa.i -quiet
-dumpbase aaa.c -mthumb -auxbase-strip aaa.o -Os -version -o aaa.s
GNU C version 3.3.2 (arm-rtems-elf)
        compiled by GNU C version 2.95.4 20011002 (Debian prerelease).
GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64338
aaa.c: In function `f':
aaa.c:17: internal compiler error: in handle_avail_expr, at gcse.c:3429
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

CODE:

struct A 
{
  struct A *q;
  int       a,b,c,d;
};

void f (struct A *p)
{
  struct A *q = p->q;  

  *p->q = *p;
  if (q->a)
  {
    g(&q->c);
  }
}

-- 
           Summary: ICE in gcse.c
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: trauscher at loytec dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i386-linux
GCC target triplet: arm-rtems-elf


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-01-27 13:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-10 13:40 [Bug optimization/13375] New: ICE in gcse.c trauscher at loytec dot com
2003-12-19 14:31 ` [Bug optimization/13375] " pinskia at gcc dot gnu dot org
2003-12-24  5:52 ` kazu at cs dot umass dot edu
2004-01-15 17:29 ` cvs-commit at gcc dot gnu dot org
2004-01-15 17:41 ` rearnsha at gcc dot gnu dot org
2004-01-27 13:07 ` cvs-commit at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).