errno bug and gcc internal error
george at galis.org
Tue Jul 19 15:24:42 PDT 2005
On Tue, Jul 19, 2005 at 09:25:08PM +0200, Joerg Sonnenberger wrote:
>On Wed, Jul 20, 2005 at 12:51:36AM +0900, YONETANI Tomokazu wrote:
>> But I wonder if someone has any idea how to let gcc say something like
>> this instead:
>> `bzzzt, your software declares errno as an extern int, which is incorrect.'
>Actually, as long as the software includes errno.h as it should, it does
>that. Well, it did that before Simon "fixed" it. Hacking special support
>for errno into GCC is not the right thing IMO.
You mean this doesn't help?
echo "gcc -O2 --include /usr/include/errno.h" >conf-cc
(was simple fix I used when encountered errno problem, light hearted
Seems the gcc core should gracefully deal with this (warnings that
code has been grokked), if there is no clean way to grok programs
incorrectly declaring errno, the compiler should...
George Georgalis, systems architect, administrator Linux BSD IXOYE
http://galis.org/george/ cell:646-331-2027 mailto:george at xxxxxxxxx
More information about the Bugs