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]

specs cc1plus breakage


Adding options to the cc1plus entry in the specs file no longer works.  This
appears to be accidental breakage in this change:

2000-07-13  Zack Weinberg  <zack@wolery.cumb.org>

	* lang-specs.h: Use the new named specs.  Remove unnecessary braces.

This was a major rewritre of the specs files that introduced cc1_options,
and in the process the cc1plus spec accidentally got dropped.  I have checked
in this patch to fix it.

This turned up with the ia64-linux compiler, as we wanted to add an option to
the cc1plus spec to work around a suspected c++ front end bug.  I will be
posting a separate message about that.

2000-11-14  Jim Wilson  <wilson@redhat.com>

	* lang-specs.h: Add %2 after %(cc1_options).

Index: lang-specs.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/lang-specs.h,v
retrieving revision 1.31
diff -p -r1.31 lang-specs.h
*** lang-specs.h	2000/11/07 21:35:20	1.31
--- lang-specs.h	2000/11/14 20:33:41
*************** Boston, MA 02111-1307, USA.  */
*** 43,61 ****
         %{!no-gcc:-D__GNUG__=%v1}\
         %{fnew-abi:-D__GXX_ABI_VERSION=100}\
         %{ansi:-trigraphs -$ -D__STRICT_ANSI__}\
!        %(cc1_options) %{+e*}\
         %{!fsyntax-only:%(invoke_as)}}}}"
  #else /* ! USE_CPPLIB */
      "cpp0 -lang-c++ %{!no-gcc:-D__GNUG__=%v1}\
         %{fnew-abi:-D__GXX_ABI_VERSION=100}\
         %{ansi:-trigraphs -$ -D__STRICT_ANSI__} %(cpp_options)\
         %{!M:%{!MM:%{!E:%{!pipe:%g.ii} |\n\
!      cc1plus -lang-c++ %{!pipe:%g.ii} %(cc1_options) %{+e*}\
       %{!fsyntax-only:%(invoke_as)}}}}\n"
  #endif /* ! USE_CPPLIB */
    },
    {".ii", "@c++-cpp-output"},
    {"@c++-cpp-output",
     "%{!M:%{!MM:%{!E:\
!     cc1plus -lang-c++ -fpreprocessed %i %(cc1_options) %{+e*}\
      %{!fsyntax-only:%(invoke_as)}}}}"},
--- 43,61 ----
         %{!no-gcc:-D__GNUG__=%v1}\
         %{fnew-abi:-D__GXX_ABI_VERSION=100}\
         %{ansi:-trigraphs -$ -D__STRICT_ANSI__}\
!        %(cc1_options) %2 %{+e*}\
         %{!fsyntax-only:%(invoke_as)}}}}"
  #else /* ! USE_CPPLIB */
      "cpp0 -lang-c++ %{!no-gcc:-D__GNUG__=%v1}\
         %{fnew-abi:-D__GXX_ABI_VERSION=100}\
         %{ansi:-trigraphs -$ -D__STRICT_ANSI__} %(cpp_options)\
         %{!M:%{!MM:%{!E:%{!pipe:%g.ii} |\n\
!      cc1plus -lang-c++ %{!pipe:%g.ii} %(cc1_options) %2 %{+e*}\
       %{!fsyntax-only:%(invoke_as)}}}}\n"
  #endif /* ! USE_CPPLIB */
    },
    {".ii", "@c++-cpp-output"},
    {"@c++-cpp-output",
     "%{!M:%{!MM:%{!E:\
!     cc1plus -lang-c++ -fpreprocessed %i %(cc1_options) %2 %{+e*}\
      %{!fsyntax-only:%(invoke_as)}}}}"},

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