]> git.pld-linux.org Git - packages/gcc.git/commitdiff
- more autodetecting c++ headers.
authorPaweł Sikora <pluto@pld-linux.org>
Fri, 9 Dec 2005 03:30:10 +0000 (03:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    gcc-pr13676.patch -> 1.1.2.1

gcc-pr13676.patch [new file with mode: 0644]

diff --git a/gcc-pr13676.patch b/gcc-pr13676.patch
new file mode 100644 (file)
index 0000000..8803516
--- /dev/null
@@ -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@.
+ @item @var{file}.hh
++@itemx @var{file}.hp
++@itemx @var{file}.hxx
++@itemx @var{file}.hpp
++@itemx @var{file}.HPP
++@itemx @var{file}.h++
+ @itemx @var{file}.H
+ C++ header file to be turned into a precompiled header.
This page took 0.365551 seconds and 4 git commands to generate.