This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH] Shut up warnings in sparc.c


 > From: Jakub Jelinek <jakub@redhat.com>
 > 
 > Hi!
 > 
 > This patch kills all warnings in sparc.c (without it I get zillions of
 > warning: integer constant is unsigned in ANSI C, signed with -traditional
 > warnings).
 > Ok to install?
 > 
 > 2000-03-24  Jakub Jelinek  <jakub@redhat.com>
 > 
 > 	* config/sparc/sparc.c (arith_operand): Shut up warnings
 > 	by adding U suffix to hexadecimal constants.
 >	[...]

Please don't do this, it will kill bootstraps with sunos4 K&R cc.

These "integer constant" warnings have been relaxed in the current
trunk to only apply when the base is 10.  So you won't get them for
hex values if you bootstrap with a somewhat recent snapshot.  (It
turned out that *all* of them in the gcc sources were on hex values.)

		--Kaveh
--
Kaveh R. Ghazi			Engagement Manager / Project Services
ghazi@caip.rutgers.edu		Qwest Internet Solutions

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]