Commit 0de2ae02 by Alexandre Oliva Committed by Alexandre Oliva

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
parent 3d8864c0
2007-03-09 Alexandre Oliva <aoliva@redhat.com>
* rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
* final.c (final_scan_insn): Test for non-"" file name.
2007-03-09 Sebastian Pop <sebastian.pop@inria.fr> 2007-03-09 Sebastian Pop <sebastian.pop@inria.fr>
* doc/loop.texi: Document the Omega linear constraints solver. * doc/loop.texi: Document the Omega linear constraints solver.
......
...@@ -2081,7 +2081,7 @@ final_scan_insn (rtx insn, FILE *file, int optimize ATTRIBUTE_UNUSED, ...@@ -2081,7 +2081,7 @@ final_scan_insn (rtx insn, FILE *file, int optimize ATTRIBUTE_UNUSED,
loc.file = ASM_INPUT_SOURCE_FILE (body); loc.file = ASM_INPUT_SOURCE_FILE (body);
loc.line = ASM_INPUT_SOURCE_LINE (body); loc.line = ASM_INPUT_SOURCE_LINE (body);
#endif #endif
if (loc.file && loc.line) if (*loc.file && loc.line)
fprintf (asm_out_file, "%s %i \"%s\" 1\n", fprintf (asm_out_file, "%s %i \"%s\" 1\n",
ASM_COMMENT_START, loc.line, loc.file); ASM_COMMENT_START, loc.line, loc.file);
fprintf (asm_out_file, "\t%s\n", string); fprintf (asm_out_file, "\t%s\n", string);
......
...@@ -1875,7 +1875,7 @@ extern GTY(()) rtx return_address_pointer_rtx; ...@@ -1875,7 +1875,7 @@ extern GTY(()) rtx return_address_pointer_rtx;
gen_rtx_fmt_si (ASM_INPUT, (MODE), (ARG0), (LOC)) gen_rtx_fmt_si (ASM_INPUT, (MODE), (ARG0), (LOC))
#else #else
#define gen_rtx_ASM_INPUT(MODE, ARG0) \ #define gen_rtx_ASM_INPUT(MODE, ARG0) \
gen_rtx_fmt_ssi (ASM_INPUT, (MODE), (ARG0), NULL, 0) gen_rtx_fmt_ssi (ASM_INPUT, (MODE), (ARG0), "", 0)
#define gen_rtx_ASM_INPUT_loc(MODE, ARG0, LOC) \ #define gen_rtx_ASM_INPUT_loc(MODE, ARG0, LOC) \
gen_rtx_fmt_ssi (ASM_INPUT, (MODE), (ARG0), (LOC).file, (LOC).line) gen_rtx_fmt_ssi (ASM_INPUT, (MODE), (ARG0), (LOC).file, (LOC).line)
#undef gen_rtx_ASM_OPERANDS #undef gen_rtx_ASM_OPERANDS
......
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