From 1a8bb3dd20462d632a53f4cf25954239181a7ca8 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Fri, 5 May 2000 10:37:01 -0600 Subject: toplev.c (output_file_directive): Use IS_DIR_SEPARATOR. * toplev.c (output_file_directive): Use IS_DIR_SEPARATOR. (main): Likewise. From-SVN: r33714 --- gcc/toplev.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'gcc/toplev.c') diff --git a/gcc/toplev.c b/gcc/toplev.c index 1a35497..3050aac 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1663,12 +1663,8 @@ output_file_directive (asm_file, input_name) /* NA gets INPUT_NAME sans directory names. */ while (na > input_name) { - if (na[-1] == '/') - break; -#ifdef DIR_SEPARATOR - if (na[-1] == DIR_SEPARATOR) - break; -#endif + if (IS_DIR_SEPARATOR (na[-1])) + break; na--; } @@ -4342,11 +4338,7 @@ main (argc, argv) save_argv = argv; p = argv[0] + strlen (argv[0]); - while (p != argv[0] && p[-1] != '/' -#ifdef DIR_SEPARATOR - && p[-1] != DIR_SEPARATOR -#endif - ) + while (p != argv[0] && !IS_DIR_SEPARATOR (p[-1])) --p; progname = p; -- cgit v1.1