This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [gcc-as-cxx] enum conversion to int
- From: Ian Lance Taylor <iant at google dot com>
- To: Matt <matt at use dot net>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 05 Jan 2010 10:40:03 -0800
- Subject: Re: [gcc-as-cxx] enum conversion to int
- References: <Pine.NEB.4.64.1001041633280.27420@cesium.clock.org>
Matt <matt@use.net> writes:
> I'm trying to fix some errors/warnings to make sure that gcc-as-cxx
> doesn't bitrot too much. I ran into this issue, and an unsure how to
> fix it without really ugly casting:
>
> enum df_changeable_flags
> df_set_flags (enum df_changeable_flags changeable_flags)
> {
> enum df_changeable_flags old_flags = df->changeable_flags;
> df->changeable_flags |= changeable_flags;
> return old_flags;
> }
On trunk df_set_flags looks like this:
int
df_set_flags (int changeable_flags)
The gcc-in-cxx branch is no longer active. All the work was merged to
trunk, where it is available via --enable-build-with-cxx. If you want
to work on the gcc-in-cxx branch, start by merging from trunk.
Ian