public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/28210]  New: ICE in is_gimple_min_invariant at -O1.
@ 2006-06-30 13:34 pluto at agmk dot net
  2006-06-30 13:40 ` [Bug other/28210] " pluto at agmk dot net
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: pluto at agmk dot net @ 2006-06-30 13:34 UTC (permalink / raw)
  To: gcc-bugs

$ i486-gnu-linux-g++ -c -O1 demux_rtp.ii
demux_rtp.cpp: In function 'void afterReading(void*, unsigned int, unsigned
int, timeval, unsigned int)':
demux_rtp.cpp:421: internal compiler error: Segmentation fault

(gdb) bt
#0  0x00000000004bfe60 in is_gimple_min_invariant ()
#1  0x0000000000504a96 in replace_vuses_in ()
#2  0x0000000000504f88 in substitute_and_fold ()
#3  0x00000000004d7b79 in fini_copy_prop ()
#4  0x00000000004d7bc6 in execute_copy_prop ()
#5  0x00000000004d7bec in do_copy_prop ()
#6  0x000000000072297d in execute_one_pass ()
#7  0x0000000000722a10 in execute_pass_list ()
#8  0x0000000000722a24 in execute_pass_list ()
#9  0x00000000004bf9da in tree_rest_of_compilation ()
#10 0x000000000046a4fa in expand_body ()
#11 0x0000000000758dd3 in cgraph_expand_function ()
#12 0x0000000000758f0a in cgraph_expand_all_functions ()
#13 0x000000000075932f in cgraph_optimize ()
#14 0x000000000043b7fe in cp_finish_file ()
#15 0x000000000040257e in finish_file ()
#16 0x00000000004a530e in c_common_parse_file ()
#17 0x0000000000704bd1 in compile_file ()
#18 0x00000000007060d1 in do_compile ()
#19 0x0000000000706132 in toplev_main ()
#20 0x00000000004acead in main ()


-- 
           Summary: ICE in is_gimple_min_invariant at -O1.
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pluto at agmk dot net
 GCC build triplet: i486-linux
  GCC host triplet: i486-linux
GCC target triplet: i486-linux


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


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

* [Bug other/28210] ICE in is_gimple_min_invariant at -O1.
  2006-06-30 13:34 [Bug other/28210] New: ICE in is_gimple_min_invariant at -O1 pluto at agmk dot net
@ 2006-06-30 13:40 ` pluto at agmk dot net
  2006-07-13 15:32 ` [Bug tree-optimization/28210] " reichelt at gcc dot gnu dot org
  2006-07-16 20:27 ` pluto at agmk dot net
  2 siblings, 0 replies; 4+ messages in thread
From: pluto at agmk dot net @ 2006-06-30 13:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pluto at agmk dot net  2006-06-30 13:34 -------
Created an attachment (id=11785)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11785&action=view)
testcase


-- 


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


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

* [Bug tree-optimization/28210] ICE in is_gimple_min_invariant at -O1.
  2006-06-30 13:34 [Bug other/28210] New: ICE in is_gimple_min_invariant at -O1 pluto at agmk dot net
  2006-06-30 13:40 ` [Bug other/28210] " pluto at agmk dot net
@ 2006-07-13 15:32 ` reichelt at gcc dot gnu dot org
  2006-07-16 20:27 ` pluto at agmk dot net
  2 siblings, 0 replies; 4+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-13 15:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from reichelt at gcc dot gnu dot org  2006-07-13 15:31 -------
Reduced testcase that crashes when compiled with
"g++ --param ggc-min-expand=0 --param ggc-min-heapsize=0 -O":

=============================================
extern "C" int verbose;

struct A
{
  char const* foo() const { return p; }
  char* p;
};

struct B
{
  char const* foo() const { return p; }
  char const* p;
};

void foo(int);

void bar(A& q)
{
  {
    extern int verbose;
    foo(verbose);
  }

  q.foo();
  q.foo();
  if (verbose)
    q.foo();
}

void baz(B& q)
{
  if (verbose)
      q.foo();
  else
      q.foo();
}
=============================================

However, I can reproduce the crash (with the original testcase and
the reduced one) only with GCC 4.1.1. GCC 4.1.0, current 4.1 branch
and mainline do not seem to be affected.
Therefore I'm closing the PR as fixed.
If it still crashes for you, feel free to reopen the PR again.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |RESOLVED
           Keywords|                            |GC, monitored
         Resolution|                            |FIXED
   Target Milestone|---                         |4.1.2


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


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

* [Bug tree-optimization/28210] ICE in is_gimple_min_invariant at -O1.
  2006-06-30 13:34 [Bug other/28210] New: ICE in is_gimple_min_invariant at -O1 pluto at agmk dot net
  2006-06-30 13:40 ` [Bug other/28210] " pluto at agmk dot net
  2006-07-13 15:32 ` [Bug tree-optimization/28210] " reichelt at gcc dot gnu dot org
@ 2006-07-16 20:27 ` pluto at agmk dot net
  2 siblings, 0 replies; 4+ messages in thread
From: pluto at agmk dot net @ 2006-07-16 20:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pluto at agmk dot net  2006-07-16 20:27 -------
it works for me with 4.1.2 revision 115366.


-- 


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


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

end of thread, other threads:[~2006-07-16 20:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-30 13:34 [Bug other/28210] New: ICE in is_gimple_min_invariant at -O1 pluto at agmk dot net
2006-06-30 13:40 ` [Bug other/28210] " pluto at agmk dot net
2006-07-13 15:32 ` [Bug tree-optimization/28210] " reichelt at gcc dot gnu dot org
2006-07-16 20:27 ` pluto at agmk 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).