Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by Alex Zatsman
Thu, 07 Jan 1993 21:16
Re: Unending Warnings about '-Wid-clash-..'
Author: Alex Zatsman
Date: Thu, 07 Jan 1993 21:16
Date: Thu, 07 Jan 1993 21:16
37 lines
1158 bytes
1158 bytes
Earlier I wrote:
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)
{
....
The fix in that message was not good enough -- cc1 still issued id
clash warnings for length 0. A better fix is:
warn_id_clash = 1;
while (*endp)
{
if (*endp >= '0' && *endp <= '9')
endp++;
else
{
error ("Invalid option `%s'", argv[i]);
warn_id_clash = 0;
break;
}
}
id_clash_len = atoi (str + 10);
Sorry for bad fix.
Alex Zatsman.
Analog Devices, Inc.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads