This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Enum related fixes for gcc build with native cc on vax ultrix
- To: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>
- Subject: Re: Enum related fixes for gcc build with native cc on vax ultrix
- From: Richard Henderson <rth at redhat dot com>
- Date: Thu, 1 Mar 2001 17:51:32 -0800
- Cc: gcc-patches at gcc dot gnu dot org
- References: <no.id> <200103020131.UAA00776@hiauly1.hia.nrc.ca>
On Thu, Mar 01, 2001 at 08:31:12PM -0500, John David Anglin wrote:
> - if (i == RID_LONG && specbits & (1<<i))
> + if (i == RID_LONG && specbits & (1 << (int) i))
Parenthesis error around "&" vs "&&". It was broken before, but...
> - result = purge_addressof_1 (&SET_DEST (x), insn, force, 1, ht);
> - result &= purge_addressof_1 (&SET_SRC (x), insn, force, 0, ht);
> - return result;
> + if (purge_addressof_1 (&SET_DEST (x), insn, force, 1, ht) == true
> + && purge_addressof_1 (&SET_SRC (x), insn, force, 0, ht) == true)
> + return true;
> + return false;
Eh? Perhaps this gets fixed with Zack's boolean cleanup patch.
> -typedef enum
> +typedef enum boolean
Wait for Zack's commit to kill this.
Otherwise it's ok.
r~