This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

checkergcc: updated C++ support for gcc 2.95.2


On 18-Nov-1999 Ben Pfaff wrote:
> "Markus F.X.J. Oberhumer" <markus.oberhumer@jk.uni-linz.ac.at> writes:
> 
>> Without disabling destructors I get lots of missing "undefined=20
>> reference to  `chkr.__builtin_delete'"
>> 
>> Assuming that just this function is missing, could this
>> problem eventually be addressed ?
> 
> If you'll supply a patch to Checker, I will apply it.

Well, here we go :-)

The patch below is against Debian gccchecker 0.9.9.1-15
and basically consists of two parts:

Part 1
======
Mainly updates of the stubs, some generic fixes and
corrections to the build system.

Part 2
======
The c++ support files in the stubs/c++ directory.
>From the README I've added:

> These files are verbatim copies from the current (2.95.2) gcc source
> code without further modification. They must match the gcc version
> that checkergcc will be built for.
>
> Only the file tinfo2.cc has a small patch - see __CHECKER__.
> Hopefully this will go into the main tree so that we can use
> completely unpatched gcc sources in the future.


Status
======
I've tested this successfully on a fairly complex program that 
uses RTTI, exceptions and the STL (but needs not get linked
against libstdc++).

The only problem I met is that during exception unwinding 
you get bogus "(nma) no memory addressed" errors. People with a
better understanding of the g++ exception internals might want
to take a look at this.

Nevertheless I would like to see a new Debian release with these 
patches - while it may not be perfect it is definitely much better
than the current version (which doesn't support C++ at all), and 
people could give some feedback -  building and using libstdc++ 
could be one of the first stress tests.

Markus

P.S. why is this package called "gccchecker" and not "checkergcc" ?

----   Markus F.X.J. Oberhumer <markus.oberhumer@jk.uni-linz.ac.at>   ----
----             http://wildsau.idv.uni-linz.ac.at/mfx/               ----
----        5E CB 5C 85 DE AF 9E BF  E9 DA 7E 6A 39 F8 CC 67          ----

                             3 WARPS TO URANUS

checker.diff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]