🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #53278

Re: Are these bugs in GCC2.0?

#53278
From: tiemann
Date: Mon, 24 Feb 1992 13:36
47 lines
1817 bytes
   Return-Path: help-gcc-request@prep.ai.mit.edu
   To: help-gcc@prep.ai.mit.edu
   Date: 25 Feb 92 04:28:32 GMT
   Organization: Bellcore
   From: ngai@apostle.bellcore.com (John Ngai)
   Sender: help-gcc-request@prep.ai.mit.edu
   Subject: Are these bugs in GCC2.0?
   
   
   
   I used GCC 2.0 to recompile some of my existing code, and seem to find
   the following "bugs":
   
   (1) Redefining/Overloading the global ::operator new(size_t) doesn't work?
       (Interestingly, GCC 2.0 allows me to get around this by redefining 
        the internal function ::__builtin_new(size_t))
   
This is a bug in GCC 2.0.  I have fixes for this, but they were not
ready in time for the release.

   (2) Initialization of global static objects with constructors doesn't seem
       to call their corresponding constructors, eg:
   
       class AtomTable
       {
   	....
           int table_size;
   
         public:
    	AtomTable(int init_size);
       };
   
       AtomTable::AtomTable(int init_size) 
       {
   	...
   	table_size = init_size;
       }
   
       AtomTable table(1024);
   
       main()
       {
   	...

This is probably a result of not using GNU ld.

Michael
Technical Details
Message-ID: <9202250536.AA14519@cygnus.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cygnus.com!tiemann
References: <1992Feb25.042832.28928@walter.bellcore.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,503a0bf4dd3425e2
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-02-24 22:08:32 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cygnus.com!tiemann
From: tiemann@cygnus.com
Subject: Re: Are these bugs in GCC2.0?
Message-ID: <9202250536.AA14519@cygnus.com>
Sender: daemon@cis.ohio-state.edu
Organization: GNUs Not Usenet
References: <1992Feb25.042832.28928@walter.bellcore.com>
Distribution: gnu
Date: Mon, 24 Feb 1992 13:36:46 GMT
Lines: 47