SOURCES (GCC_3_4): gcc-pr13676.patch (NEW) - more autodetecting c+...
pluto
pluto at pld-linux.org
Fri Dec 9 04:30:15 CET 2005
Author: pluto Date: Fri Dec 9 03:30:15 2005 GMT
Module: SOURCES Tag: GCC_3_4
---- Log message:
- more autodetecting c++ headers.
---- Files affected:
SOURCES:
gcc-pr13676.patch (NONE -> 1.1.2.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/gcc-pr13676.patch
diff -u /dev/null SOURCES/gcc-pr13676.patch:1.1.2.1
--- /dev/null Fri Dec 9 04:30:15 2005
+++ SOURCES/gcc-pr13676.patch Fri Dec 9 04:30:10 2005
@@ -0,0 +1,43 @@
+--- gcc-3.4.5/gcc/cp/g++spec.c.orig 2004-09-29 04:18:58.000000000 +0200
++++ gcc-3.4.5/gcc/cp/g++spec.c 2005-12-09 04:26:21.215120000 +0100
+@@ -222,6 +222,11 @@ lang_specific_driver (int *in_argc, cons
+ {
+ if ((len <= 2 || strcmp (argv[i] + (len - 2), ".H") != 0)
+ && (len <= 2 || strcmp (argv[i] + (len - 2), ".h") != 0)
++ && (len <= 4 || strcmp (argv[i] + (len - 4), ".hpp") != 0)
++ && (len <= 3 || strcmp (argv[i] + (len - 3), ".hp") != 0)
++ && (len <= 4 || strcmp (argv[i] + (len - 4), ".hxx") != 0)
++ && (len <= 4 || strcmp (argv[i] + (len - 4), ".h++") != 0)
++ && (len <= 4 || strcmp (argv[i] + (len - 4), ".HPP") != 0)
+ && (len <= 3 || strcmp (argv[i] + (len - 3), ".hh") != 0))
+ library = 1;
+ }
+--- gcc-3.4.5/gcc/cp/lang-specs.h.orig 2003-05-23 22:57:11.000000000 +0200
++++ gcc-3.4.5/gcc/cp/lang-specs.h 2005-12-09 04:28:01.645120000 +0100
+@@ -34,6 +34,12 @@ Boston, MA 02111-1307, USA. */
+ {".C", "@c++", 0},
+ {".CPP", "@c++", 0},
+ {".H", "@c++-header", 0},
++ {".hpp", "@c++-header", 0},
++ {".hp", "@c++-header", 0},
++ {".hxx", "@c++-header", 0},
++ {".h++", "@c++-header", 0},
++ {".hpp", "@c++-header", 0},
++ {".HPP", "@c++-header", 0},
+ {".hh", "@c++-header", 0},
+ {"@c++-header",
+ "%{E|M|MM:cc1plus -E %(cpp_options) %2 %(cpp_debug_options)}\
+--- gcc-3.4.5/gcc/doc/invoke.texi.orig 2005-10-08 02:22:20.000000000 +0200
++++ gcc-3.4.5/gcc/doc/invoke.texi 2005-12-09 04:24:19.085120000 +0100
+@@ -750,6 +750,11 @@ the last two letters must both be litera
+ @samp{.C} refers to a literal capital C at .
+
+ @item @var{file}.hh
++ at itemx @var{file}.hp
++ at itemx @var{file}.hxx
++ at itemx @var{file}.hpp
++ at itemx @var{file}.HPP
++ at itemx @var{file}.h++
+ @itemx @var{file}.H
+ C++ header file to be turned into a precompiled header.
+
================================================================
More information about the pld-cvs-commit
mailing list