]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* Makefile.in (write_entries_to_file): Quote words.
authormatz <matz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Aug 2008 16:10:22 +0000 (16:10 +0000)
committermatz <matz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Aug 2008 16:10:22 +0000 (16:10 +0000)
        * gengtype.c: (read_input_line): Skip over leading white-space.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138812 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/Makefile.in
gcc/gengtype.c

index 244175e4102b6cc9ba79ee6c06e21610331ece22..b9cef59e38beee29a2051bcf0c8324a9c2248317 100644 (file)
@@ -1,3 +1,8 @@
+2008-08-06  Michael Matz  <matz@suse.de>
+
+       * Makefile.in (write_entries_to_file): Quote words.
+       * gengtype.c: (read_input_line): Skip over leading white-space.
+
 2008-08-06  Marc Gauthier  <marc@tensilica.com>
 
        * config.gcc: Match more processor names for Xtensa.
index 1c22966d9d9ca4365b711df4ca373a04200d0974..d5ee8c57be71a17f017b1e063a44e1b406325fff 100644 (file)
@@ -259,8 +259,8 @@ write_entries_to_file = $(shell rm -f $(2) || :) $(shell touch $(2)) \
        $(foreach range, \
          $(shell i=1; while test $$i -le $(words $(1)); do \
             echo $$i; i=`expr $$i + $(write_entries_to_file_split)`; done), \
-         $(shell echo $(wordlist $(range), \
-                         $(shell expr $(range) + $(write_entries_to_file_split) - 1), $(1)) \
+         $(shell echo "$(wordlist $(range), \
+                         $(shell expr $(range) + $(write_entries_to_file_split) - 1), $(1))" \
             | tr ' ' '\n' >> $(2)))
 
 # --------
index adc355a3881840fb2601e2a917fba5edd14c190c..02923a952d9abbb1a103be3d27263b80e4a8f2b6 100644 (file)
@@ -314,6 +314,10 @@ read_input_line (FILE *list, char **herep, char **linep,
   char *line;
   int c = getc (list);
 
+  /* Read over whitespace.  */
+  while (c == '\n' || c == ' ')
+    c = getc (list);
+
   if (c == EOF)
     {
       *linep = 0;