This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Problems with throw() in system calls
- To: "Gcc at Gcc dot Gnu. Org" <gcc at gcc dot gnu dot org>
- Subject: Problems with throw() in system calls
- From: "Rob Taylor" <robt at flyingpig dot com>
- Date: Tue, 19 Dec 2000 14:37:25 -0000
there's a problem between the new strictness of throw() defines and lex.
It seams that until recent gcc took
void bar() throw(); and
void bar();
to be the same function but now does not. this causes a problem with glibc on
linux and lex.
in sys/cdefs.h, if __GNUC__>=3 , throw() is added after all system calls ('for
optimisation'). lex redeclares isatty in its generated output. they clash now,
whereas before they didn't.
as you can tell, thsis is an icky sticky problem - someone's wrong (I'd point at
lex), but the blame isn't clear - one oprion is an option in gcc to turn off
this level of strictness. Is this possible?
Thanks,
Rob Taylor
Flying Pig Systems