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: PR c/30260 Enumeration types and enumeration constants erroneously given unsigned types


On Sat, 30 Aug 2008, Manuel López-Ibáñez wrote:

> Second try addressing Joseph comments.
> 
> Bootstrapped and regression tested on x86_64-unknown-linux-gnu with
> --enable-languages=all,ada with --target_board=\{-m32,-m64\}
> 
> OK for trunk?
> 
> 2008-08-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
> 
> 	PR c/30260
> 	* c-decl.c (finish_enum): Convert non-integer enumerators to enum
> 	type.
> 	(build_enumerator): Convert enumerators that fit in integer to
> 	integer type.
> testsuite/
> 	* gcc.dg/pr30260.c: New.

This version is OK.

-- 
Joseph S. Myers
joseph@codesourcery.com

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