This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: va_list: rfc: invalid types
- To: mark at codesourcery dot com, rth at cygnus dot com
- Subject: Re: va_list: rfc: invalid types
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Mon, 6 Sep 1999 10:23:17 -0400 (EDT)
- Cc: gcc-patches at gcc dot gnu dot org
> From: Mark Mitchell <mark@codesourcery.com>
>
> >>>>> "Richard" == Richard Henderson <rth@cygnus.com> writes:
>
> Richard> The question to the group is what sort of diagnostic? My
> Richard> favourite is to go ahead and make this an error cause we
> Richard> know up front it isn't going to work. Someone of a less
> Richard> idealistic and more forgiving bent might just make this a
> Richard> warning.
>
> How about an error unless the sizes of the types are the same, and
> then a pedwarn? There's little harm using `float' if `float' and
> `double' are the same, and we already allow lots of other mistakes
> like this. But, an error doesn't really bother me either.
I don't think we should make an exception if the sizes are the
same. Its not portable to other platforms.
E.g. the printf format warnings complain about int/long mismatches
even if the sizes of int and long happen to be the same on your
platform.
--Kaveh
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions