This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR c/30260 Enumeration types and enumeration constants erroneously given unsigned types
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Manuel López-Ibáñez <lopezibanez at gmail dot com>
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 30 Aug 2008 16:18:15 +0000 (UTC)
- Subject: Re: PR c/30260 Enumeration types and enumeration constants erroneously given unsigned types
- References: <6c33472e0808300802h607610afl5a7deb0d911f1cae@mail.gmail.com>
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