This is the mail archive of the gcc@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]
Other format: [Raw text]

Patch: GC for C++ source


This is a simple patch taken from the gcjx branch to get the collector
to recognize .hh and .cc suffixes for C++ files.  I didn't add other
common C++ suffixes (.cxx, .cpp, .C, etc.) because gcc might prefer to
have all C++ source use the same suffixes used by gcjx.  The current
trunk (revision 113748) bootstrapped OK--attached are the results of
make check.  I didn't see anything that was clearly related.

My copyright assignment isn't finished yet, but this is two lines by Tom
Tromey cribbed straight from gcjx so it shouldn't matter.

Changelog entry (I have no idea if this is the appropriate way to do
it):

2006-05-13  Dustin Laurence <dustin@laurences.net>

        * Added .cc and .hh suffixes to gengtype.c from the gcjx branch.

Dustin

------------------------------------------------------------------------
Index: gcc/gengtype.c
===================================================================
--- gcc/gengtype.c      (revision 113748)
+++ gcc/gengtype.c      (working copy)
@@ -1235,7 +1235,9 @@ get_output_file_with_visibility (const c
   len = strlen (basename);
   if ((len > 2 && memcmp (basename+len-2, ".c", 2) == 0)
       || (len > 2 && memcmp (basename+len-2, ".y", 2) == 0)
-      || (len > 3 && memcmp (basename+len-3, ".in", 3) == 0))
+      || (len > 3 && memcmp (basename+len-3, ".in", 3) == 0)
+      || (len > 3 && memcmp (basename+len-3, ".cc", 3) == 0)
+      || (len > 3 && memcmp (basename+len-3, ".hh", 3) == 0))
     {
       char *s;

Attachment: test_summary
Description: Text document

Attachment: pgp00000.pgp
Description: PGP signature


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