diff options
author | aesok <aesok@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-26 18:00:17 +0000 |
---|---|---|
committer | aesok <aesok@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-26 18:00:17 +0000 |
commit | e2823fde14be30b99b0483e574980be0bddb7cfa (patch) | |
tree | d56be18415909b5f90b4a54679d77846826cda08 /gcc/toplev.c | |
parent | e8da5f64ee86f83b0b9e296f0d2feac7d83b0e72 (diff) | |
download | gcc-e2823fde14be30b99b0483e574980be0bddb7cfa.tar.gz |
* target.def (output_source_filename): New hook.
* doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
* doc/tm.texi: Regenerate.
* toplev.c (output_file_directive) Remove function.
* toplev.h (output_file_directive) Remove.
* output.h (default_asm_output_source_filename,
output_file_directive): Declare.
* varasm.h (default_asm_output_source_filename,
output_file_directive): New functions.
* config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
* config/mips/mips-protos.h (mips_output_filename): Remove.
* config/mips/mips.c (mips_output_filename): Make Static.
(TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162542 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 964669fb615..740d8c067a0 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -620,39 +620,6 @@ output_quoted_string (FILE *asm_file, const char *string) #endif } -/* Output a file name in the form wanted by System V. */ - -void -output_file_directive (FILE *asm_file, const char *input_name) -{ - int len; - const char *na; - - if (input_name == NULL) - input_name = "<stdin>"; - else - input_name = remap_debug_filename (input_name); - - len = strlen (input_name); - na = input_name + len; - - /* NA gets INPUT_NAME sans directory names. */ - while (na > input_name) - { - if (IS_DIR_SEPARATOR (na[-1])) - break; - na--; - } - -#ifdef ASM_OUTPUT_SOURCE_FILENAME - ASM_OUTPUT_SOURCE_FILENAME (asm_file, na); -#else - fprintf (asm_file, "\t.file\t"); - output_quoted_string (asm_file, na); - putc ('\n', asm_file); -#endif -} - /* A subroutine of wrapup_global_declarations. We've come to the end of the compilation unit. All deferred variables should be undeferred, and all incomplete decls should be finalized. */ |