[JAVA] Fix bootstrap failure on Tru64

Andrew Haley aph@redhat.com
Thu Apr 22 13:48:00 GMT 2004


Roger Sayle writes:
 > 
 > On Thu, 22 Apr 2004, Andrew Haley wrote:
 > >  > 2004-04-12  Roger Sayle  <roger@eyesopen.com>
 > >  >
 > >  > 	* resource.c (write_resource_constructor): Guard call to possibly
 > >  > 	NULL targetm.asm_out.constructor with targetm.have_ctors_dtors.
 > >
 > > I'd still like a warning, please.
 > 
 > Why?  It's not an error condition or even an unusual occurrence.
 > Some targets use collect2 to organize their constructors and
 > destructors, and other's don't.  This means that some platforms
 > have to emit special code for constructors and destructors (via
 > this target hook), whilst others platforms treat these functions
 > appropriately just from the way they are named (such as on Tru64).
 > The available functionality is completely unaffected, its just how
 > its implemented that differs.

My misunderstanding.  I was under the impression that we were creating
a constructor that contains initialization information that we really
need, and that in your patch the initialization information is not
being emitted.  I don't have Tru64 to try, otherwise I would have
checked.

If this condition does not cause incorrect code to be emitted, please
go ahead.

Andrew.



More information about the Gcc-patches mailing list