This is the mail archive of the 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]

[PATCH][AArch64] Properly guard CUMULATIVE_ARGS definition and remove 'enum' from machine_mode in aarch64.h

Hi all,

Following up from this fixes up the aarch64 port accordingly to guard CUMULATIVE_ARGS properly so that we can remove the enum keyword from machine_mode.

Building aarch64-none-elf succeeds (after reverting my previous patch).

Ok for trunk?


2014-10-31  Kyrylo Tkachov  <>

    * config/aarch64/aarch64.h (MACHMODE): Remove 'enum' keyword.
    (CUMULATIVE_ARGS): Guard on !defined(USED_FOR_TARGET).
diff --git a/gcc/config/aarch64/aarch64.h b/gcc/config/aarch64/aarch64.h
index 97b1848..c37d4b1 100644
--- a/gcc/config/aarch64/aarch64.h
+++ b/gcc/config/aarch64/aarch64.h
@@ -611,10 +611,10 @@ enum arm_pcs
 #define MACHMODE int
 #include "insn-modes.h"
-#define MACHMODE enum machine_mode
+#define MACHMODE machine_mode
 /* AAPCS related state tracking.  */
 typedef struct
@@ -635,6 +635,7 @@ typedef struct
   int aapcs_stack_size;		/* The total size (in words, per 8 byte) of the
 				   stack arg area so far.  */
   (aarch64_pad_arg_upward (MODE, TYPE) ? upward : downward)

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