OSDN Git Service

* fix-header.c (main): When testing for CONTINUED, use string
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Aug 1999 07:37:40 +0000 (07:37 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Aug 1999 07:37:40 +0000 (07:37 +0000)
        equality, not pointer equality.

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

gcc/ChangeLog
gcc/fix-header.c

index 7bc32c5..445b9f6 100644 (file)
@@ -1,3 +1,8 @@
+Mon Aug  2 01:34:22 1999  Jeffrey A Law  (law@cygnus.com)
+
+       * fix-header.c (main): When testing for CONTINUED, use string
+       equality, not pointer equality.
+
 Mon Aug  2 01:27:24 1999  Dan Nicolaescu  <dann@ics.uci.edu>
 
        * sparc.c (sparc_block_profiler): Use the %g2 register, not %o0.
index dfde8e5..af0577e 100644 (file)
@@ -1127,7 +1127,7 @@ main (argc, argv)
     special_file_handling = stdio_h;
   include_entry = std_include_table;
   while (include_entry->name != NULL
-        && (include_entry->name == CONTINUED
+        && ((strcmp (include_entry->name, CONTINUED) == 0)
             || strcmp (inc_filename, include_entry->name) != 0))
     include_entry++;
 
@@ -1140,7 +1140,7 @@ main (argc, argv)
          if (entry->flags)
            add_symbols (entry->flags, entry->names);
          entry++;
-         if (entry->name != CONTINUED)
+         if (strcmp (entry->name, CONTINUED) != 0)
            break;
        }
     }