🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1605

Re: Unending Warnings about '-Wid-clash-..'

#1605
From: Alex Zatsman
Date: Thu, 07 Jan 1993 21:16
37 lines
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.
Technical Details
Message-ID: <9301072116.AA07990@saturn.spd.analog.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!analog.COM!alex.ZAtsman

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