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: 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
-
- 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.
-
-