diff options
| -rw-r--r-- | gcc/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/cppmain.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8ecc008..5e4e346 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2000-05-11 Mark Elbrecht <snowball3@bigfoot.com> + + * cppmain.c (main): Use IS_DIR_SEPARATOR. + 2000-05-11 Jakub Jelinek <jakub@redhat.com> * except.c (find_exception_handler_labels_1): New function. diff --git a/gcc/cppmain.c b/gcc/cppmain.c index ef636cb..0eeafe4 100644 --- a/gcc/cppmain.c +++ b/gcc/cppmain.c @@ -43,7 +43,7 @@ main (argc, argv) int argi = 1; /* Next argument to handle. */ p = argv[0] + strlen (argv[0]); - while (p != argv[0] && p[-1] != '/') --p; + while (p != argv[0] && ! IS_DIR_SEPARATOR (p[-1])) --p; progname = p; xmalloc_set_program_name (progname); |
