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]

Re: Enum related fixes for gcc build with native cc on vax ultrix


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~


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