re PR preprocessor/48677 (cpp.exe broken ?)
authorJoseph Myers <joseph@codesourcery.com>
Mon, 16 May 2011 18:34:31 +0000 (19:34 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Mon, 16 May 2011 18:34:31 +0000 (19:34 +0100)
PR preprocessor/48677
* cppspec.c (lang_specific_driver): Set new_decoded_options[0]
from decoded_options[0], not from itself.

From-SVN: r173801

gcc/ChangeLog
gcc/cppspec.c

index 31edeee..2258bc1 100644 (file)
@@ -1,3 +1,9 @@
+2011-05-16  Joseph Myers  <joseph@codesourcery.com>
+
+       PR preprocessor/48677
+       * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
+       from decoded_options[0], not from itself.
+
 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
 
        * config/i386/constraints.md (z): New constraint.
index 6ca1660..c9ff70e 100644 (file)
@@ -1,5 +1,5 @@
 /* Specific flags and argument handling of the C preprocessor.
-   Copyright (C) 1999, 2007, 2010 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2007, 2010, 2011 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -158,7 +158,7 @@ lang_specific_driver (struct cl_decoded_option **in_decoded_options,
 
   new_decoded_options = XNEWVEC (struct cl_decoded_option, new_argc);
 
-  new_decoded_options[0] = new_decoded_options[0];
+  new_decoded_options[0] = decoded_options[0];
   j = 1;
 
   if (need_E)