diff mbox

[AArch64] Fix/revert fallout from machine_mode change

Message ID 54511712.8030303@arm.com
State New
Headers show

Commit Message

Kyrylo Tkachov Oct. 29, 2014, 4:34 p.m. UTC
Hi all,

This is similar to the arm patch 
(https://gcc.gnu.org/ml/gcc-patches/2014-10/msg03104.html),
it adds back the enum keyword to machine_mode in the definition of MACHMODE.

This allows the aarch64* build to succeed.

Ok for trunk?

Thanks,
Kyrill

2014-10-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

     * config/aarch64/aarch64.h (MACHMODE): Add 'enum' to machine_mode.

Comments

Kyrylo Tkachov Oct. 29, 2014, 5:05 p.m. UTC | #1
On 29/10/14 16:34, Kyrill Tkachov wrote:
> Hi all,
>
> This is similar to the arm patch
> (https://gcc.gnu.org/ml/gcc-patches/2014-10/msg03104.html),
> it adds back the enum keyword to machine_mode in the definition of MACHMODE.
>
> This allows the aarch64* build to succeed.
>
> Ok for trunk?

I've committed this as (almost) obvious with r216846 in order to fix the 
aarch64 build.
If there's an objection to the patch please let me know and we can work 
out a better solution.

Thanks,
Kyrill

>
> Thanks,
> Kyrill
>
> 2014-10-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
>
>       * config/aarch64/aarch64.h (MACHMODE): Add 'enum' to machine_mode.
diff mbox

Patch

diff --git a/gcc/config/aarch64/aarch64.h b/gcc/config/aarch64/aarch64.h
index 5fca078..97b1848 100644
--- a/gcc/config/aarch64/aarch64.h
+++ b/gcc/config/aarch64/aarch64.h
@@ -611,7 +611,7 @@  enum arm_pcs
 #define MACHMODE int
 #else
 #include "insn-modes.h"
-#define MACHMODE machine_mode
+#define MACHMODE enum machine_mode
 #endif