aboutsummaryrefslogtreecommitdiff
path: root/gcc/final.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2007-03-09 15:10:33 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2007-03-09 15:10:33 +0000
commit0de2ae02735c71f5318af4486444d33c26fc211a (patch)
tree5358725df8c01e01f2900a7a0802152c4430cf73 /gcc/final.c
parent3d8864c06f474e854cdfd0dd0b238ee9f7b79fe3 (diff)
downloadgcc-0de2ae02735c71f5318af4486444d33c26fc211a.zip
gcc-0de2ae02735c71f5318af4486444d33c26fc211a.tar.gz
gcc-0de2ae02735c71f5318af4486444d33c26fc211a.tar.bz2
rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
* rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name. * final.c (final_scan_insn): Test for non-"" file name. From-SVN: r122750
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 d7d1daf..5715a71 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);