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 <[EMAIL PROTECTED]>
* 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;
LAST_UPDATED:
Native configuration is i686-pc-linux-gnu
=== g++ tests ===
Running target unix
FAIL: g++.old-deja/g++.other/static14.C (test for excess errors)
FAIL: g++.old-deja/g++.other/static20.C (test for excess errors)
=== g++ Summary ===
# of expected passes 12542
# of unexpected failures 2
# of expected failures 69
# of unsupported tests 69
/home/laurence/Projects/Kinetic/GCCFront/trunkbuild/gcc/testsuite/g++/../../g++
version 4.2.0 20060513 (experimental)
=== gcc tests ===
Running target unix
FAIL: gcc.dg/debug/dwarf2/dwarf-die2.c scan-assembler-not CIE Version
FAIL: gcc.dg/torture/nested-fn-1.c -O0 scan-assembler-not should_not_appear
=== gcc Summary ===
# of expected passes 39509
# of unexpected failures 2
# of expected failures 112
# of untested testcases 28
# of unsupported tests 268
/home/laurence/Projects/Kinetic/GCCFront/trunkbuild/gcc/xgcc version 4.2.0
20060513 (experimental)
=== gfortran tests ===
Running target unix
=== gfortran Summary ===
# of expected passes 13034
# of expected failures 15
# of unsupported tests 16
/home/laurence/Projects/Kinetic/GCCFront/trunkbuild/gcc/testsuite/gfortran/../../gfortran
version 4.2.0 20060513 (experimental)
=== obj-c++ tests ===
Running target unix
FAIL: obj-c++.dg/cxx-ivars-2.mm execution test
FAIL: obj-c++.dg/encode-3.mm (test for excess errors)
FAIL: obj-c++.dg/encode-8.mm execution test
FAIL: obj-c++.dg/isa-field-1.mm (test for excess errors)
FAIL: obj-c++.dg/lookup-2.mm (test for excess errors)
WARNING: obj-c++.dg/lookup-2.mm compilation failed to produce executable
FAIL: obj-c++.dg/try-catch-2.mm (test for excess errors)
WARNING: obj-c++.dg/try-catch-2.mm compilation failed to produce executable
FAIL: obj-c++.dg/try-catch-9.mm (test for excess errors)
WARNING: obj-c++.dg/try-catch-9.mm compilation failed to produce executable
=== obj-c++ Summary ===
# of expected passes 426
# of unexpected failures 7
# of unsupported tests 13
/home/laurence/Projects/Kinetic/GCCFront/trunkbuild/gcc/testsuite/obj-c++/../../g++
version 4.2.0 20060513 (experimental)
=== objc tests ===
Running target unix
=== objc Summary ===
# of expected passes 1754
# of expected failures 7
# of unsupported tests 24
/home/laurence/Projects/Kinetic/GCCFront/trunkbuild/gcc/xgcc version 4.2.0
20060513 (experimental)
=== treelang tests ===
Running target unix
=== treelang Summary ===
# of expected passes 50
=== libffi tests ===
Running target unix
FAIL: libffi.call/return_fl2.c -O0 -W -Wall execution test
FAIL: libffi.call/return_fl2.c -O2 execution test
FAIL: libffi.call/return_fl2.c -O3 execution test
FAIL: libffi.call/return_fl2.c -Os execution test
=== libffi Summary ===
# of expected passes 1068
# of unexpected failures 4
# of unsupported tests 8
=== libgomp tests ===
Running target unix
=== libgomp Summary ===
# of expected passes 1450
=== libjava tests ===
Running target unix
=== libjava Summary ===
# of expected passes 6797
# of expected failures 12
# of untested testcases 8
=== libmudflap tests ===
Running target unix
=== libmudflap Summary ===
# of expected passes 1814
=== libstdc++ tests ===
Running target unix
XPASS: 26_numerics/cmath/c99_classification_macros_c.cc (test for excess errors)
=== libstdc++ Summary ===
# of expected passes 3538
# of unexpected successes 1
# of expected failures 12
# of unsupported tests 319
Compiler version: 4.2.0 20060513 (experimental)
Platform: i686-pc-linux-gnu
configure flags: --prefix=/home/laurence/Projects/Kinetic/GCCFront/trunkinstall
--enable-checking=no
--enable-languages=c,c++,fortran,hellopp,java,objc,obj-c++,treelang
EOF
Mail -s "Results for 4.2.0 20060513 (experimental) testsuite on
i686-pc-linux-gnu" [EMAIL PROTECTED]
pgpsEakwYSP5O.pgp
Description: PGP signature
