This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: egcs CVS 19980621, warning patch part 7/7
- To: law at cygnus dot com
- Subject: Re: egcs CVS 19980621, warning patch part 7/7
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Thu, 25 Jun 1998 14:27:14 -0400 (EDT)
- Cc: egcs-patches at cygnus dot com
> From: Jeffrey A Law <law@hurl.cygnus.com>
>
> > (I'm not sure about making types SFmode/DFmode in fp-bit.c be explicit
> > ints but that's what the message said they defaulted to prior to my patch.
>
> I think this is a bug in the compiler. Those have well defined types
> that are not integers :-)
>
> > * config/fp-bit.c (SFtype, DFtype): Make type `int' explicit.
>
> I think you should omit this change. I think it's actually exposed a
> (minor) bug in the compiler.
> jeff
Okay, how about adding something like the following to the testsuite?
I'm not fluent in the testsuite setup to provide a patch, but it would
probably need to be compiled with "-Wimplicit-int -Werror".
(Also, I included all the modes I saw in fp-bit.c to be thorough.)
--Kaveh
> /* This fragment should not elicit a "type defaults to `int'" warning
> when compiled with -Wimplicit-int -Werror. */
>
> int main()
> {
> typedef SFtype __attribute__ ((mode (SF)));
> typedef DFtype __attribute__ ((mode (DF)));
> typedef HItype __attribute__ ((mode (HI)));
> typedef SItype __attribute__ ((mode (SI)));
> typedef DItype __attribute__ ((mode (DI)));
> typedef UHItype __attribute__ ((mode (HI)));
> typedef USItype __attribute__ ((mode (SI)));
> typedef UDItype __attribute__ ((mode (DI)));
> return 0;
> }
--
Kaveh R. Ghazi Project Manager / Custom Development
ghazi@caip.rutgers.edu Icon CMT Corp.