PR c/43288 (ICE with __attribute__ ((common)))

Jan Hubicka hubicka@ucw.cz
Wed Mar 17 15:53:00 GMT 2010


> On Wed, 2010-03-17 at 16:19 +0100, Jan Hubicka wrote:
> > > 
> > > I think I have a var decl that is weak and common because that is
> > > how HPPA is doing comdats in SOM.   Dave can correct me if I have
> > > that wrong.
> > 
> > It seems to me that it is most probably because of C++ FE insisting on
> > ononsential DECL_COMMON (in comdat_linkage) and the fact that we somehow call
> > make_decl_rtl too early.
> > 
> > I just built cross compiler for both AIX and HPUX but can not reproduce the
> > problem.  Was is fixed somehow in meantime?
> > 
> > Honza
> 
> It failed for me last night (r157506) so I don't think this has been
> fixed.  Which HPUX target did you build?  It only fails on a 32 bit PA
> target like hppa1.1-hp-hpux* or hppa2.0w-hp-hpux* (I am building
> hppa2.0w-hp-hpux11.11).  I don't know if it fails on HPPA linux targets

Hmm, I rebuilt for this tripplet, but still no luck:

jh@gcc14:~/trunk/build-hppa2/gcc$ cat a.C
class t { virtual ~t(); };
namespace  __cxxabiv1 {
class __fundamental_type_info : public t {};
}

jh@gcc14:~/trunk/build-hppa2/gcc$ ./cc1plus a.C -quiet
jh@gcc14:~/trunk/build-hppa2/gcc$

There seems to be no changes today that would fix this.  If the testcase seems
fine, could you try to get a backtrace for me?  I think we might only need to
avoid make_decl_rtl from being called too early.

Honza
> (I don't build any of those) and I know it doesn't fail on IA64 HP-UX
> targets or 64 bit PA targets.
> 
> Steve Ellcey
> sje@cup.hp.com



More information about the Gcc-patches mailing list