public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/53432] New: [4.8] ICE failed to reclaim unneeded function in same comdat group
@ 2012-05-21 10:10 vincenzo.innocente at cern dot ch
  2012-05-21 12:36 ` [Bug middle-end/53432] [4.8 Regression] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: vincenzo.innocente at cern dot ch @ 2012-05-21 10:10 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53432
           Summary: [4.8] ICE failed to reclaim unneeded function in same
                    comdat group
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: vincenzo.innocente@cern.ch


Created attachment 27454
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27454
preprocesse real-file code

I am getting many of those in very different context
gcc version 4.8.0 20120520 (experimental) [trunk revision 187694] (GCC) 
ld is GNU gold (GNU Binutils 2.22.52.20120515) 1.11

attached one case

c++ -O2 -msse3 -std=c++11  -c ltoerr.ii
_ZNK5Plane4sideERK11Point3DBaseIf9GlobalTagEf/2309 (virtual
SurfaceOrientation::Side Plane::side(const GlobalPoint&,
GloballyPositioned<float>::Scalar) const) @0x2b3c6d253c30
  Type: function
  Visibility: public weak comdat
comdat_group:_ZNK5Plane4sideERK11Point3DBaseIf9GlobalTagEf one_only
section_name:.text._ZNK5Plane4sideERK11Point3DBaseIf9GlobalTagEf virtual
  Same comdat group as:
_ZTv0_n40_NK5Plane4sideERK11Point3DBaseIf9GlobalTagEf/2311
  previous sharing asm name: 7028
  Address is taken.
  References: 
  Referring: _ZTV5Plane/5707 (addr)
  Availability: not_available
  Function flags: body finalized
  Called by: 
  Calls: 
/build/vin/newb/CMSSW_6_0_X_2012-05-14-1400/src/TrackPropagation/NavPropagator/src/NavPropagator.cc:403:1:
internal compiler error: failed to reclaim unneeded function in same comdat
group
 }
 ^


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

* [Bug middle-end/53432] [4.8 Regression] ICE failed to reclaim unneeded function in same comdat group
  2012-05-21 10:10 [Bug middle-end/53432] New: [4.8] ICE failed to reclaim unneeded function in same comdat group vincenzo.innocente at cern dot ch
@ 2012-05-21 12:36 ` rguenth at gcc dot gnu.org
  2012-05-22 16:37 ` roman at binarylife dot net
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-05-21 12:36 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-05-21
                 CC|                            |hubicka at gcc dot gnu.org
   Target Milestone|---                         |4.8.0
            Summary|[4.8] ICE failed to reclaim |[4.8 Regression] ICE failed
                   |unneeded function in same   |to reclaim unneeded
                   |comdat group                |function in same comdat
                   |                            |group
     Ever Confirmed|0                           |1

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-05-21 11:37:32 UTC ---
Confirmed.


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

* [Bug middle-end/53432] [4.8 Regression] ICE failed to reclaim unneeded function in same comdat group
  2012-05-21 10:10 [Bug middle-end/53432] New: [4.8] ICE failed to reclaim unneeded function in same comdat group vincenzo.innocente at cern dot ch
  2012-05-21 12:36 ` [Bug middle-end/53432] [4.8 Regression] " rguenth at gcc dot gnu.org
@ 2012-05-22 16:37 ` roman at binarylife dot net
  2012-05-23 15:04 ` roman at binarylife dot net
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: roman at binarylife dot net @ 2012-05-22 16:37 UTC (permalink / raw)
  To: gcc-bugs

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

Roman Kononov <roman at binarylife dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |roman at binarylife dot net

--- Comment #2 from Roman Kononov <roman at binarylife dot net> 2012-05-22 16:11:42 UTC ---
Here is a testcase (independent of the original one):

$ cat test.cpp
struct A;
struct B;

struct AA { virtual void afoo(A&); };
struct BB { virtual void bfoo(B&); };

template<typename X>
void bar(A& a,X& x) {
  x.afoo(a);
}

void bar(A& ss,int& x);

struct ZZ: BB, AA {
  int i;
  void afoo(A& a) { bar(a,i); }
  void bfoo(B&);
};

void bar(A& a) {
  ZZ zz;
  bar(a,zz);
}

$ g++ -c -O2 test.cpp 
_ZN2ZZ4afooER1A/0 (virtual void ZZ::afoo(A&)) @0x7f1ecda1cc30
  Type: function
  Visibility: public weak comdat comdat_group:_ZN2ZZ4afooER1A one_only
section_name:.text._ZN2ZZ4afooER1A virtual
  Same comdat group as: _ZThn8_N2ZZ4afooER1A/2
  Address is taken.
  References: 
  Referring: _ZTV2ZZ/16 (addr)
  Availability: not_available
  Function flags: body finalized
  Called by: 
  Calls: 
test.cpp:23:1: internal compiler error: failed to reclaim unneeded function in
same comdat group
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


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

* [Bug middle-end/53432] [4.8 Regression] ICE failed to reclaim unneeded function in same comdat group
  2012-05-21 10:10 [Bug middle-end/53432] New: [4.8] ICE failed to reclaim unneeded function in same comdat group vincenzo.innocente at cern dot ch
  2012-05-21 12:36 ` [Bug middle-end/53432] [4.8 Regression] " rguenth at gcc dot gnu.org
  2012-05-22 16:37 ` roman at binarylife dot net
@ 2012-05-23 15:04 ` roman at binarylife dot net
  2012-05-23 15:07 ` hubicka at ucw dot cz
  2012-08-15  8:22 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: roman at binarylife dot net @ 2012-05-23 15:04 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Roman Kononov <roman at binarylife dot net> 2012-05-23 14:58:28 UTC ---
It broke in r187631

http://gcc.gnu.org/ml/gcc-cvs/2012-05/msg00628.html


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

* [Bug middle-end/53432] [4.8 Regression] ICE failed to reclaim unneeded function in same comdat group
  2012-05-21 10:10 [Bug middle-end/53432] New: [4.8] ICE failed to reclaim unneeded function in same comdat group vincenzo.innocente at cern dot ch
                   ` (2 preceding siblings ...)
  2012-05-23 15:04 ` roman at binarylife dot net
@ 2012-05-23 15:07 ` hubicka at ucw dot cz
  2012-08-15  8:22 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: hubicka at ucw dot cz @ 2012-05-23 15:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Jan Hubicka <hubicka at ucw dot cz> 2012-05-23 15:04:20 UTC ---
Yes, it is just overactive sanity check.  I am testing the fix.


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

* [Bug middle-end/53432] [4.8 Regression] ICE failed to reclaim unneeded function in same comdat group
  2012-05-21 10:10 [Bug middle-end/53432] New: [4.8] ICE failed to reclaim unneeded function in same comdat group vincenzo.innocente at cern dot ch
                   ` (3 preceding siblings ...)
  2012-05-23 15:07 ` hubicka at ucw dot cz
@ 2012-08-15  8:22 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-08-15  8:22 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jakub at gcc dot gnu.org
         Resolution|                            |FIXED

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-08-15 08:21:42 UTC ---
Seems to be fixed now.


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

end of thread, other threads:[~2012-08-15  8:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-21 10:10 [Bug middle-end/53432] New: [4.8] ICE failed to reclaim unneeded function in same comdat group vincenzo.innocente at cern dot ch
2012-05-21 12:36 ` [Bug middle-end/53432] [4.8 Regression] " rguenth at gcc dot gnu.org
2012-05-22 16:37 ` roman at binarylife dot net
2012-05-23 15:04 ` roman at binarylife dot net
2012-05-23 15:07 ` hubicka at ucw dot cz
2012-08-15  8:22 ` jakub at gcc dot gnu.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).