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]
Other format: [Raw text]

Re: [PATCH][C/C++] Do not promote return arguments


Ian Lance Taylor writes:
 > Richard Guenther <rguenther@suse.de> writes:
 > 
 > > 2007-07-05  Richard Guenther  <rguenther@suse.de>
 > > 
 > > 	cp/
 > > 	* decl.c (start_preparsed_function): Do not promote return type.
 > > 
 > > 	* c-decl.c (start_function): Do not promote return type.
 > 
 > This is OK.
 > 
 > Thanks.
 
This is an externally visible change that causes return values not to
be zero- or sign-extended.  This breaks code.  I don't think this
should be done.

See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32843 for more discussion.

Andrew.


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