This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[gcjx] Patch: FYI: gengtype -vs- c++
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: 22 Jan 2005 18:46:18 -0700
- Subject: [gcjx] Patch: FYI: gengtype -vs- c++
- Reply-to: tromey at redhat dot com
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;