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]
Other format: [Raw text]

[lto] Fix syntax error in collect2.c


Found during bootstrap.


Diego.

2008-09-24  Diego Novillo  <dnovillo@google.com>

        * collect2.c (enum lto_mode_d): Remove final comma.
        (lto_mode): Change type to enum lto_mode_d.

Index: collect2.c
===================================================================
--- collect2.c  (revision 140642)
+++ collect2.c  (working copy)
@@ -179,13 +179,13 @@ static int aix64_flag;                    /* true if -b64
 static int aixrtl_flag;                        /* true if -brtl */
 #endif

-enum {
+enum lto_mode_d {
   LTO_MODE_NONE,                       /* Not doing LTO. */
   LTO_MODE_LTO,                                /* Normal LTO. */
-  LTO_MODE_WPA,                                /* WHOPR. */
+  LTO_MODE_WPA                         /* WHOPR. */
 };

-static int lto_mode = LTO_MODE_NONE;   /* current LTO mode. */
+static enum lto_mode_d lto_mode = LTO_MODE_NONE; /* current LTO mode. */

 int debug;                             /* true if -debug */


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