home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.gcc.bug
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!analog.COM!alex.ZAtsman
- From: alex.ZAtsman@analog.COM (Alex Zatsman)
- Subject: Re: Unending Warnings about '-Wid-clash-..'
- Message-ID: <9301072116.AA07990@saturn.spd.analog.com>
- Sender: gnulists@ai.mit.edu
- Organization: GNUs Not Usenet
- Distribution: gnu
- Date: Thu, 7 Jan 1993 21:16:06 GMT
- Approved: bug-gcc@prep.ai.mit.edu
- Lines: 38
-
- 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.
-
-