[Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above

2006-05-21 Thread aldot at gcc dot gnu dot org


--- Comment #15 from aldot at gcc dot gnu dot org  2006-05-21 13:10 ---
Subject: Bug 25776

Author: aldot
Date: Sun May 21 13:10:37 2006
New Revision: 113952

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113952
Log:
ACKed by Jan Hubicka in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25776#c9

PR middle-end/25776
* cgraphunit.c (verify_cgraph_node): Typo in error message.


Modified:
trunk/gcc/ChangeLog
trunk/gcc/cgraphunit.c


-- 


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



[Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above

2006-05-20 Thread pinskia at gcc dot gnu dot org


--- Comment #14 from pinskia at gcc dot gnu dot org  2006-05-20 22:35 
---
Subject: Bug 25776

Author: pinskia
Date: Sat May 20 22:35:02 2006
New Revision: 113941

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113941
Log:
2006-05-20  Andrew Pinski  <[EMAIL PROTECTED]>

PR middle-end/25776
* cgraphunit.c (cgraph_optimize): Don't run ipa passes if error
or sorry count is non zero.

2006-05-20  Andrew Pinski  <[EMAIL PROTECTED]>

PR middle-end/25776
* g++.dg/other/error11.C: New test. 



Added:
trunk/gcc/testsuite/g++.dg/other/error11.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cgraphunit.c
trunk/gcc/testsuite/ChangeLog


-- 


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



[Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above

2006-05-20 Thread pinskia at gcc dot gnu dot org


--- Comment #13 from pinskia at gcc dot gnu dot org  2006-05-20 22:35 
---
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


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



[Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above

2006-05-20 Thread pinskia at gcc dot gnu dot org


--- Comment #12 from pinskia at gcc dot gnu dot org  2006-05-20 20:20 
---
(In reply to comment #11)
> Did you resolve your copyright problems?

No but this patch is small enough not to need a copyright assignment so I am
going to commit it now.


-- 


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



[Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above

2006-05-18 Thread tbm at cyrius dot com


--- Comment #11 from tbm at cyrius dot com  2006-05-18 09:34 ---
(In reply to comment #10)
> Mine.

Did you resolve your copyright problems?


-- 


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



[Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above

2006-05-05 Thread pinskia at gcc dot gnu dot org


--- Comment #10 from pinskia at gcc dot gnu dot org  2006-05-05 08:11 
---
Mine.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
   |dot org |org
 Status|NEW |ASSIGNED


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



[Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above

2006-04-30 Thread hubicka at gcc dot gnu dot org


--- Comment #9 from hubicka at gcc dot gnu dot org  2006-04-30 13:27 ---
Both patches (comment #7 and comment #8) are OK assuming they pass testing
(that is rather obvious).

Thanks,
Honza


-- 


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



[Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above

2006-04-25 Thread aldot at gcc dot gnu dot org


--- Comment #8 from aldot at gcc dot gnu dot org  2006-04-25 17:00 ---
Created an attachment (id=11334)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11334&action=view)
fix typo in errormessage in verify_cgraph_node()

Just as a sidenote.. There is a typo in the error message in comment #1. The
attached patch fixes this on the 4.1 branch and on trunk.

Please apply, TIA.

2006-04-25  Bernhard Fischer  <[EMAIL PROTECTED]>

* cgraphunit.c (verify_cgraph_node): Fix typo
s/predecesors/predecessors/
in error message.


-- 


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



[Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above

2006-04-23 Thread pinskia at gcc dot gnu dot org


--- Comment #7 from pinskia at gcc dot gnu dot org  2006-04-24 00:38 ---
here is the fix I came up with:
Index: cgraphunit.c
===
--- cgraphunit.c(revision 113199)
+++ cgraphunit.c(working copy)
@@ -1404,7 +1404,8 @@ cgraph_optimize (void)
   fprintf (cgraph_dump_file, "Marked ");
   dump_cgraph (cgraph_dump_file);
 }
-  ipa_passes ();
+  if (errorcount == 0 && sorrycount == 0)
+ipa_passes ();
   /* This pass remove bodies of extern inline functions we never inlined.
  Do this later so other IPA passes see what is really going on.  */
   cgraph_remove_unreachable_nodes (false, dump_file);


-- 


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



[Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above

2006-04-18 Thread pinskia at gcc dot gnu dot org


--- Comment #6 from pinskia at gcc dot gnu dot org  2006-04-19 03:03 ---
This also can ICE with valid code with -Werror and a warning was emitted, PR
27207 was that case.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

   Keywords||ice-on-valid-code


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



[Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above

2006-04-18 Thread pinskia at gcc dot gnu dot org


--- Comment #5 from pinskia at gcc dot gnu dot org  2006-04-19 03:02 ---
*** Bug 27207 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||tbm at cyrius dot com


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



[Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above

2006-04-01 Thread pinskia at gcc dot gnu dot org


--- Comment #4 from pinskia at gcc dot gnu dot org  2006-04-02 05:36 ---
*** Bug 26979 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||rjpeters at klab dot caltech
   ||dot edu


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



[Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above

2006-02-14 Thread pinskia at gcc dot gnu dot org


--- Comment #3 from pinskia at gcc dot gnu dot org  2006-02-14 12:49 ---
*** Bug 26281 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||tsarkov at cs dot man dot ac
   ||dot uk


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




[Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above

2006-01-19 Thread reichelt at gcc dot gnu dot org


--- Comment #2 from reichelt at gcc dot gnu dot org  2006-01-19 15:57 
---
Confirmed. Reduced testcase:

===
struct A
{
  ERROR;
  ~A();
};

struct B
{
  virtual ~B();
};

struct C : B, A {};

struct D : C {};

D d;
===


-- 

reichelt at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||reichelt at gcc dot gnu dot
   ||org
 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Keywords||monitored
   Last reconfirmed|-00-00 00:00:00 |2006-01-19 15:57:30
   date||


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



[Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above

2006-01-15 Thread pinskia at gcc dot gnu dot org


--- Comment #1 from pinskia at gcc dot gnu dot org  2006-01-16 06:24 ---
The ICE is:
t.cc:33: error: inlined_to pointer is set but no predecesors found
virtual std::events::scrollbar::~scrollbar()/33: (inline copy in void
__static_initialization_and_destruction_0(int, int)/11)
availability:available(9) 35 insns (89 after inlining) tree externally_visible
finalized inlinable
  called by: 
  calls: std::events::widget::~widget()/4 (inlined) void operator
delete(void*)/26 
t.cc:33: internal compiler error: verify_cgraph_node failed
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html> for instructions.


It seems wrong that we are running the inliner when we have errors.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

Summary|[4.2 Regression] ICE in |[4.2 Regression] ICE in
   |cgraph after error  |cgraph after error at -O1
   ||and above


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