contributing & bound-checks
Frank Ch. Eigler
fche@redhat.com
Mon Jun 28 01:11:00 GMT 2004
Hi -
> > > [...] I've looked to bound-checking projects/patches for gcc but
> > > couldnt find anything satisfactory for C++ [...]
> >
> > Mudflap works for C++ to some extent. Have you tried it?
>
> [...]
> because the latest cvs version doesnt work [...]
It actually works fine for me.
> and/or [whom] do I tell about:
> #gcc.latest --version
> gcc.latest (GCC) 3.5.0 20040626 (experimental)
>
> #gcc.latest -fmudflap -fbounds-checking -g -DDEBUG
> -I/root/3ddev/roadgen/rv3d/ -I/root/3ddev/roadgen/xtc/
> -I/root/3ddev/roadgen/xtc/teASCII/ -I/root/3ddev/roadgen/xtc/lib/
> -I/root/3ddev/roadgen/xtc/lib386/ -I/root/3ddev/roadgen/xtc/ide/ -c -o
> main.o main.cpp
The "-fbounds-checking" flag is not used with mudflap, however you
will need to add "-lmudflap" at the link stage.
> In file included from /root/3ddev/roadgen/xtc/lib/stack_ramlist.h:6,
> from /root/3ddev/roadgen/xtc/xtc.h:6,
> from /root/3ddev/roadgen/xtc/ide/config.h:5,
> from main.cpp:13:
> /root/3ddev/roadgen/xtc/lib/node.h: In member function `void
> Node2D<DERIVEDTYPE>::Unlink()':
> /root/3ddev/roadgen/xtc/lib/node.h:153: error: `next' was not declared in this
> scope
This sounds like a problem in your code. More recent versions of g++
perform more error checks than earlier versions.
- FChE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20040628/b8bddab3/attachment.sig>
More information about the Gcc
mailing list