Article View: gnu.gcc.bug
Article #1606Unending Warnings about '-Wid-clash-..'
From: Alex Zatsman
Date: Thu, 07 Jan 1993 21:03
Date: Thu, 07 Jan 1993 21:03
31 lines
1051 bytes
1051 bytes
Calling "gcc -Wid-clash-LEN <file name>" sends cc1 into infinite loop
in which it prints
cc1: error: Invalid option `-Wid-clash-LEN'
on each iteration. The bad code is in toplev.c (line 2848):
while (*endp)
{
if (*endp >= '0' && *endp <= '9')
endp++;
else
error ("Invalid option `%s'", argv[i]);
}
A less verbose code could look like this:
while (*endp)
{
if (*endp >= '0' && *endp <= '9')
endp++;
else
{
error ("Invalid option `%s'", argv[i]);
break;
}
}
Alex Zatsman
Analog Devices, Inc.
Technical Details
Message-ID:
<9301072103.AA07871@saturn.spd.analog.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!analog.COM!alex.ZAtsmanShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!analog.COM!alex.ZAtsman From: alex.ZAtsman@analog.COM (Alex Zatsman) Subject: Unending Warnings about '-Wid-clash-..' Message-ID: <9301072103.AA07871@saturn.spd.analog.com> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Thu, 7 Jan 1993 21:03:55 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 32