Skip to content

Commit

Permalink
Support output files without dots
Browse files Browse the repository at this point in the history
  • Loading branch information
eunovm committed Nov 22, 2019
1 parent 6254b7c commit 4a3f1fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gcc/ldv-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,10 @@ ldv_get_aux_file_name_and_stream (char **aux_fname, FILE **aux_file_stream)
/* Replace suffix ".prepared" with ".aux". */
aux_fname_prefix = xstrdup(ldv_output_fname);
aux_fname_last_dot = strrchr(aux_fname_prefix, '.');
*aux_fname_last_dot = '\0';

if (aux_fname_last_dot)
*aux_fname_last_dot = '\0';

ldv_puts_string (aux_fname_prefix, aux_fname_str);
ldv_puts_string (".aux", aux_fname_str);
*aux_fname = xstrdup (ldv_get_str (aux_fname_str));
Expand Down

0 comments on commit 4a3f1fa

Please sign in to comment.