gcc-3.4.1-20040715-crazypaths.patch
Elliot Lee
sopwith@redhat.com
Thu Aug 12 15:57:00 GMT 2004
-- Elliot
The daring is in the doing
http://people.redhat.com/sopwith/
-------------- next part --------------
--- gcc-3.4.1-20040715/gcc/java/jcf-parse.c.crazypaths 2004-03-08 12:49:48.000000000 -0500
+++ gcc-3.4.1-20040715/gcc/java/jcf-parse.c 2004-08-12 11:37:28.499838539 -0400
@@ -874,6 +874,7 @@
char *list, *next;
tree node;
FILE *finput = NULL;
+ int in_quotes = 0;
if (flag_filelist_file)
{
@@ -917,8 +918,9 @@
for (next = list; ; )
{
char ch = *next;
- if (ch == '\n' || ch == '\r' || ch == '\t' || ch == ' '
- || ch == '&' /* FIXME */)
+ if (flag_filelist_file && !in_quotes
+ && (ch == '\n' || ch == '\r' || ch == '\t' || ch == ' '
+ || ch == '&') /* FIXME */)
{
if (next == list)
{
@@ -932,6 +934,13 @@
break;
}
}
+ if (flag_filelist_file && ch == '"')
+ {
+ in_quotes = !in_quotes;
+ *next++ = '\0';
+ if(in_quotes) list = next;
+ else break;
+ }
if (ch == '\0')
{
next = NULL;
--- gcc-3.4.1-20040715/gcc/java/ChangeLog.crazypaths 2004-08-12 11:37:42.077621444 -0400
+++ gcc-3.4.1-20040715/gcc/java/ChangeLog 2004-08-12 11:40:52.533469300 -0400
@@ -0,0 +1,4 @@
+2004-08-12 Elliot Lee <sopwith@redhat.com>
+ * jcf-parse.c (java_parse_file): Handle filenames with embedded spaces, and quoted filelists.
+ Build eclipse with gcj as a test case.
+
More information about the Gcc-patches
mailing list