From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26728 invoked by alias); 29 Jul 2007 00:52:20 -0000 Received: (qmail 26720 invoked by uid 22791); 29 Jul 2007 00:52:20 -0000 X-Spam-Check-By: sourceware.org Received: from warsl404pip4.highway.telekom.at (HELO email.aon.at) (195.3.96.117) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 29 Jul 2007 00:52:17 +0000 Received: (qmail 28908 invoked from network); 29 Jul 2007 00:52:12 -0000 Received: from m781p026.adsl.highway.telekom.at (HELO HOME) ([62.47.129.154]) (envelope-sender ) by smarthub80.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 29 Jul 2007 00:52:12 -0000 From: "Alfred Minarik" To: "'Gerald Pfeifer'" , "'Ian Lance Taylor'" Cc: , "'Tom Tromey'" Subject: AW: [C++ PATCH] PR13676 resubmission: Detect additional file extensions as C++ headers Date: Sun, 29 Jul 2007 05:47:00 -0000 Message-ID: <000601c7d17f$f8a23420$8c00000a@HOME> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0007_01C7D190.BC2B0420" X-Mailer: Microsoft Outlook, Build 10.0.6822 In-Reply-To: Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2007-07/txt/msg02051.txt.bz2 This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C7D190.BC2B0420 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-length: 803 On Sat, 28 Jul 2007, Gerald Pfeifer wrote: > > This patch: > > > > http://gcc.gnu.org/ml/gcc-patches/2007-02/msg00331.html > > > > is OK for mainline. > >I believe Alfred does not have SVN write access. > >Alfred, if you send me a patch tested against current SVN, I will be >happy to apply it for you. > >Gerald Thanks for finalizing this old issue. Yes please apply it! Again updated to current mainline (no changes), no regressions gcc/gcc/cp/Changelog ---- 2007-02-04 Alfred Minarik PR pch/13676 * lang-specs.h: Add .hp,.hxx,.hpp,.h,.HPP,.tcc as c++ header * g++spec.c (lang_specific_driver): check them. ---- gcc/gcc/Changelog ---- 2007-02-04 Alfred Minarik PR pch/13676 * doc/invoke.texi: Add .hp,.hxx,.hpp,.h,.HPP,.tcc as c++ header ---- ------=_NextPart_000_0007_01C7D190.BC2B0420 Content-Type: application/octet-stream; name="pr13676.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="pr13676.patch" Content-length: 3217 Index: gcc/gcc/doc/invoke.texi=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= --- gcc/gcc/doc/invoke.texi (revision 127021)=0A= +++ gcc/gcc/doc/invoke.texi (working copy)=0A= @@ -913,6 +913,12 @@=0A= =20=0A= @item @var{file}.hh=0A= @itemx @var{file}.H=0A= +@itemx @var{file}.hp=0A= +@itemx @var{file}.hxx=0A= +@itemx @var{file}.hpp=0A= +@itemx @var{file}.HPP=0A= +@itemx @var{file}.h++=0A= +@itemx @var{file}.tcc=0A= C++ header file to be turned into a precompiled header.=0A= =20=0A= @item @var{file}.f=0A= @@ -1240,7 +1246,8 @@=0A= @cindex C++ source file suffixes=0A= C++ source files conventionally use one of the suffixes @samp{.C},=0A= @samp{.cc}, @samp{.cpp}, @samp{.CPP}, @samp{.c++}, @samp{.cp}, or=0A= -@samp{.cxx}; C++ header files often use @samp{.hh} or @samp{.H}; and=0A= +@samp{.cxx}; C++ header files often use @samp{.hh}, @samp{.hpp},=0A= +@samp{.H}, or (for shared template code) @samp{.tcc}; and=0A= preprocessed C++ files use the suffix @samp{.ii}. GCC recognizes=0A= files with these names and compiles them as C++ programs even if you=0A= call the compiler the same way as for compiling C programs (usually=0A= Index: gcc/gcc/cp/lang-specs.h=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= --- gcc/gcc/cp/lang-specs.h (revision 127021)=0A= +++ gcc/gcc/cp/lang-specs.h (working copy)=0A= @@ -34,6 +34,12 @@=0A= {".C", "@c++", 0, 0, 0},=0A= {".CPP", "@c++", 0, 0, 0},=0A= {".H", "@c++-header", 0, 0, 0},=0A= + {".hpp", "@c++-header", 0, 0, 0},=0A= + {".hp", "@c++-header", 0, 0, 0},=0A= + {".hxx", "@c++-header", 0, 0, 0},=0A= + {".h++", "@c++-header", 0, 0, 0},=0A= + {".HPP", "@c++-header", 0, 0, 0},=0A= + {".tcc", "@c++-header", 0, 0, 0},=0A= {".hh", "@c++-header", 0, 0, 0},=0A= {"@c++-header",=0A= "%{E|M|MM:cc1plus -E %(cpp_options) %2 %(cpp_debug_options)}\=0A= Index: gcc/gcc/cp/g++spec.c=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= --- gcc/gcc/cp/g++spec.c (revision 127021)=0A= +++ gcc/gcc/cp/g++spec.c (working copy)=0A= @@ -236,6 +236,12 @@=0A= {=0A= if ((len <=3D 2 || strcmp (argv[i] + (len - 2), ".H") !=3D 0)=0A= && (len <=3D 2 || strcmp (argv[i] + (len - 2), ".h") !=3D 0)=0A= + && (len <=3D 4 || strcmp (argv[i] + (len - 4), ".hpp") !=3D 0)=0A= + && (len <=3D 3 || strcmp (argv[i] + (len - 3), ".hp") !=3D 0)=0A= + && (len <=3D 4 || strcmp (argv[i] + (len - 4), ".hxx") !=3D 0)=0A= + && (len <=3D 4 || strcmp (argv[i] + (len - 4), ".h++") !=3D 0)=0A= + && (len <=3D 4 || strcmp (argv[i] + (len - 4), ".HPP") !=3D 0)=0A= + && (len <=3D 4 || strcmp (argv[i] + (len - 4), ".tcc") !=3D 0)=0A= && (len <=3D 3 || strcmp (argv[i] + (len - 3), ".hh") !=3D 0))=0A= library =3D 1;=0A= }=0A= ------=_NextPart_000_0007_01C7D190.BC2B0420--