OSDN Git Service

(do_spec_1, case 'g'): Handle %O as suffix if MKTEMP_EACH_FILE.
[pf3gnuchains/gcc-fork.git] / gcc / gcc.c
index 12cd05f..2a1d277 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -3308,7 +3308,8 @@ do_spec_1 (spec, inswitch, soft_matched_part)
                   In 2.4, do something about that.  */
                struct temp_name *t;
                char *suffix = p;
-               while (*p == '.' || isalpha (*p))
+               while (*p == '.' || isalpha (*p)
+                      || (p[0] == '%' && p[1] == 'O'))
                  p++;
 
                /* See if we already have an association of %g/%u/%U and