OSDN Git Service

* gcc.c (main): Compare language[0] with '*' when iterating over
authorbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Jul 2005 21:58:54 +0000 (21:58 +0000)
committerbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Jul 2005 21:58:54 +0000 (21:58 +0000)
the infiles.

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

gcc/ChangeLog
gcc/gcc.c

index 2d2b1a0..ec9eeb0 100644 (file)
@@ -1,3 +1,8 @@
+2005-07-14  Ben Elliston  <bje@au.ibm.com>
+
+       * gcc.c (main): Compare language[0] with '*' when iterating over
+       the infiles.
+
 2005-07-13  Adrian StraeĀ½tling  <straetling@de.ibm.com>
 
        * config/s390/s390.c: (s390_cc_modes_compatible): Move before
index e3b8b49..5317516 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -6569,7 +6569,7 @@ main (int argc, const char **argv)
       int i;
 
       for (i = 0; i < n_infiles ; i++)
-       if (infiles[i].language && infiles[i].language != '*')
+       if (infiles[i].language && infiles[i].language[0] != '*')
          {
            set_input (infiles[i].name);
            break;