summaryrefslogtreecommitdiff
path: root/gcc/final.c
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-09 15:10:33 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-09 15:10:33 +0000
commit565b6b353b1dd56268fa3f241f2848fe6c72c90c (patch)
tree5358725df8c01e01f2900a7a0802152c4430cf73 /gcc/final.c
parent355572cc823edb71bcbbcaa8a330a4874cec22d0 (diff)
downloadgcc-565b6b353b1dd56268fa3f241f2848fe6c72c90c.tar.gz
* rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
* final.c (final_scan_insn): Test for non-"" file name. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122750 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/final.c')
-rw-r--r--gcc/final.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/final.c b/gcc/final.c
index d7d1dafe2a4..5715a71a648 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -2081,7 +2081,7 @@ final_scan_insn (rtx insn, FILE *file, int optimize ATTRIBUTE_UNUSED,
loc.file = ASM_INPUT_SOURCE_FILE (body);
loc.line = ASM_INPUT_SOURCE_LINE (body);
#endif
- if (loc.file && loc.line)
+ if (*loc.file && loc.line)
fprintf (asm_out_file, "%s %i \"%s\" 1\n",
ASM_COMMENT_START, loc.line, loc.file);
fprintf (asm_out_file, "\t%s\n", string);