summaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index d3bd35c11ec..9c75dd8e39e 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -942,17 +942,10 @@ init_asm_output (const char *name)
}
if (!strcmp (asm_file_name, "-"))
asm_out_file = stdout;
- else if (!canonical_filename_eq (asm_file_name, name))
- asm_out_file = fopen (asm_file_name, "w");
else
- /* Use fatal_error (UNKOWN_LOCATION) instead of just fatal_error to
- prevent gcc from printing the first line in the current file. */
- fatal_error (UNKNOWN_LOCATION,
- "output file %s is the same as input file",
- asm_file_name);
+ asm_out_file = fopen (asm_file_name, "w");
if (asm_out_file == 0)
- fatal_error (UNKNOWN_LOCATION,
- "can%'t open %s for writing: %m", asm_file_name);
+ fatal_error ("can%'t open %s for writing: %m", asm_file_name);
}
if (!flag_syntax_only)