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: va_list: rfc: invalid types


 > 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


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