This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fix for aix EXIT_SUCCESS/EXIT_FAILURE gunk
- To: gcc-patches at gcc dot gnu dot org
- Subject: fix for aix EXIT_SUCCESS/EXIT_FAILURE gunk
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 02 Aug 1999 01:37:51 -0600
- Reply-To: law at cygnus dot com
I believe this should fix the problems some people have seen with
EXIT_SUCCESS/EXIT_FAILURE when bootstrapping with the aix compiler.
Can one of the aix folks that has seen this problem (and reliably reproduce it)
try this patch and verify that it works?
Thanks,
* fix-header.c (main): When testing for CONTINUED, use string
equality, not pointer equality.
Index: fix-header.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/fix-header.c,v
retrieving revision 1.27
diff -c -3 -p -r1.27 fix-header.c
*** fix-header.c 1999/04/21 11:58:10 1.27
--- fix-header.c 1999/08/02 07:35:57
*************** main (argc, argv)
*** 1127,1133 ****
special_file_handling = stdio_h;
include_entry = std_include_table;
while (include_entry->name != NULL
! && (include_entry->name == CONTINUED
|| strcmp (inc_filename, include_entry->name) != 0))
include_entry++;
--- 1127,1133 ----
special_file_handling = stdio_h;
include_entry = std_include_table;
while (include_entry->name != NULL
! && ((strcmp (include_entry->name, CONTINUED) == 0)
|| strcmp (inc_filename, include_entry->name) != 0))
include_entry++;
*************** main (argc, argv)
*** 1140,1146 ****
if (entry->flags)
add_symbols (entry->flags, entry->names);
entry++;
! if (entry->name != CONTINUED)
break;
}
}
--- 1140,1146 ----
if (entry->flags)
add_symbols (entry->flags, entry->names);
entry++;
! if (strcmp (entry->name, CONTINUED) != 0)
break;
}
}