Commit 1a8bb3dd by Jeff Law

toplev.c (output_file_directive): Use IS_DIR_SEPARATOR.

        * toplev.c (output_file_directive): Use IS_DIR_SEPARATOR.
        (main): Likewise.

From-SVN: r33714
parent d8bea1c6
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.
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment