summaryrefslogtreecommitdiff
path: root/gcc/target.def
diff options
context:
space:
mode:
authoraesok <aesok@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-26 18:00:17 +0000
committeraesok <aesok@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-26 18:00:17 +0000
commite2823fde14be30b99b0483e574980be0bddb7cfa (patch)
treed56be18415909b5f90b4a54679d77846826cda08 /gcc/target.def
parente8da5f64ee86f83b0b9e296f0d2feac7d83b0e72 (diff)
downloadgcc-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/target.def')
-rw-r--r--gcc/target.def11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/target.def b/gcc/target.def
index 583e78b48b6..01ab4782008 100644
--- a/gcc/target.def
+++ b/gcc/target.def
@@ -404,6 +404,17 @@ DEFHOOK
void, (FILE *f),
NULL)
+DEFHOOK
+(output_source_filename,
+ "Output COFF information or DWARF debugging information which indicates\
+ that filename @var{name} is the current source file to the stdio\
+ stream @var{file}.\n\
+ \n\
+ This target hook need not be defined if the standard form of output\
+ for the file format in use is appropriate.",
+ void ,(FILE *file, const char *name),
+ default_asm_output_source_filename)
+
/* ??? The TARGET_PRINT_OPERAND* hooks are part of the asm_out struct,
even though that is not reflected in the macro name to override their
initializers. */