This is the mail archive of the gcc-patches@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]

[gcjx] Patch: FYI: gengtype -vs- c++


I'm checking this in on the gcjx branch.

For gcjx, gengtype must recognize .cc files.  So far the appended is
working for me.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>
	* gengtype.c (get_output_file_with_visibility): Recognize '.cc'.

Index: gengtype.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gengtype.c,v
retrieving revision 1.68
diff -u -r1.68 gengtype.c
--- gengtype.c 22 Nov 2004 12:23:49 -0000 1.68
+++ gengtype.c 23 Jan 2005 01:50:07 -0000
@@ -1,5 +1,5 @@
 /* Process source files and output type information.
-   Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -1216,7 +1216,8 @@
   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))
     {
       char *s;
 


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