public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/43557]  New: ICE with -combine and -g
@ 2010-03-28 17:29 kevin at koconnor dot net
  2010-03-28 20:23 ` [Bug c/43557] " ubizjak at gmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: kevin at koconnor dot net @ 2010-03-28 17:29 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1482 bytes --]

The following causes an ICE with latest gcc 4.5.0 (svn r157452):

============================================================
cat > file1.c << EOF
struct s1_s {
    int v;
};
struct s1_s g1;
void __attribute__((externally_visible)) func1() {
    struct s1_s *l1 = &g1;
    l1->v = 0;
}
EOF

cat > file2.c << EOF
extern struct s1_s g1;
void func2() {
    &g1;
}
EOF

cc -O -g -fwhole-program -combine -c file1.c file2.c
============================================================

This appears similar to pr41893.


$ ~/src/gcc/install/bin/gcc -O -g -fwhole-program -combine -c file1.c file2.c
file1.c: In function ‘func1’:
file1.c:5:42: internal compiler error: in simplify_subreg, at
simplify-rtx.c:5139
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

$ ~/src/gcc/install/bin/gcc --version
gcc (GCC) 4.5.0 20100315 (experimental)
Copyright (C) 2010 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.


-- 
           Summary: ICE with -combine and -g
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kevin at koconnor dot net


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


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

end of thread, other threads:[~2010-04-04  3:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-28 17:29 [Bug c/43557] New: ICE with -combine and -g kevin at koconnor dot net
2010-03-28 20:23 ` [Bug c/43557] " ubizjak at gmail dot com
2010-03-28 20:36 ` ubizjak at gmail dot com
2010-03-30 15:47 ` [Bug debug/43557] " jakub at gcc dot gnu dot org
2010-03-31  8:40 ` jakub at gcc dot gnu dot org
2010-03-31  8:54 ` jakub at gcc dot gnu dot org
2010-04-04  3:50 ` kevin at koconnor dot net

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).