Bernhard pointed out that we should be using

machine_mode <variable>

rather than

enum machine_mode <variable>

in one of my patches.  I guess old habits die hard.

Anyway, this trivial patch fixes the nit.  I'll try to remember to start
omitting the "enum" "class" and "struct" thingies more appropriately :-)



jeff
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6c57ed0027e..0bf512d35a9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2018-11-30  Jeff Law  <l...@redhat.com>
+
+       * optabs.c (expand_binop): Use "machine_mode" rather than
+       "enum machine mode" in most recent change.
+
 2018-11-30  Wilco Dijkstra  <wdijk...@arm.com>
 
        PR middle-end/64242
diff --git a/gcc/optabs.c b/gcc/optabs.c
index 130b1182ef0..1f87e428816 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -1377,8 +1377,8 @@ expand_binop (machine_mode mode, optab binoptab, rtx op0, 
rtx op1,
       start_sequence ();
 
       /* Do the actual arithmetic.  */
-      enum machine_mode op0_mode = GET_MODE (op0);
-      enum machine_mode op1_mode = GET_MODE (op1);
+      machine_mode op0_mode = GET_MODE (op0);
+      machine_mode op1_mode = GET_MODE (op1);
       if (op0_mode == VOIDmode)
        op0_mode = int_mode;
       if (op1_mode == VOIDmode)

Reply via email to