This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Shut up warnings in sparc.c
- To: davem at redhat dot com, jakub at redhat dot com, rth at cygnus dot com
- Subject: Re: [PATCH] Shut up warnings in sparc.c
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Fri, 24 Mar 2000 13:31:22 -0500 (EST)
- Cc: gcc-patches at gcc dot gnu dot org
> 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