From 9e8d926eddf32d6a2657f251e46cc49a49b6d51f Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Mon, 16 May 2011 19:34:31 +0100 Subject: [PATCH] re PR preprocessor/48677 (cpp.exe broken ?) 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 | 6 ++++++ gcc/cppspec.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 31edeee5017..2258bc1f318 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-05-16 Joseph Myers + + 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 * config/i386/constraints.md (z): New constraint. diff --git a/gcc/cppspec.c b/gcc/cppspec.c index 6ca1660845a..c9ff70e5544 100644 --- a/gcc/cppspec.c +++ b/gcc/cppspec.c @@ -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) -- 2.30.2