diff options
author | Jeff Law <law@gcc.gnu.org> | 2000-05-05 10:37:01 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2000-05-05 10:37:01 -0600 |
commit | 1a8bb3dd20462d632a53f4cf25954239181a7ca8 (patch) | |
tree | 4d65628e30e2f8ee2591219d80fb4c7a28ce5680 /gcc | |
parent | d8bea1c60d3d77994ba6c7fd46a0c809b66413cd (diff) | |
download | gcc-1a8bb3dd20462d632a53f4cf25954239181a7ca8.zip gcc-1a8bb3dd20462d632a53f4cf25954239181a7ca8.tar.gz gcc-1a8bb3dd20462d632a53f4cf25954239181a7ca8.tar.bz2 |
toplev.c (output_file_directive): Use IS_DIR_SEPARATOR.
* toplev.c (output_file_directive): Use IS_DIR_SEPARATOR.
(main): Likewise.
From-SVN: r33714
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/toplev.c | 14 |
2 files changed, 9 insertions, 12 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 740bd89..e0e69d5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,4 +1,9 @@ -2000-05-03 Rodney Brown <RodneyBrown@mynd.com> +2000-05-05 Mark Elbrecht <snowball3@bigfoot.com> + + * toplev.c (output_file_directive): Use IS_DIR_SEPARATOR. + (main): Likewise. + +2000-05-05 Rodney Brown <RodneyBrown@mynd.com> * pa.h (FUNCTION_ARG_ADVANCE): Warning removal. 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; |