diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-04 16:21:02 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-04 16:21:02 +0000 |
commit | d036315fde4b583d14b899ec773856cbbab4dd87 (patch) | |
tree | 07c681d0f4e663e8dd4fd57fe86b3493b6eabc0f /gcc/profile.c | |
parent | 216956fda17a04fa27efb5a4ca0f9aa04615517c (diff) | |
download | gcc-d036315fde4b583d14b899ec773856cbbab4dd87.tar.gz |
* gcc.c (cc1_options): Pass output file as auxbase when
appropriate.
* profile.c (init_branch_prob): FILENAME has already had ending
stripped.
* final.c (end_final): Likewise.
* toplev.c (aux_base_name): New global.
(compile_file): Pass aux_base_name to init init_branch_prob and
end_final.
(independent_decode_option, case 'a'): New auxinfo options.
(case 'd'): Protect against mising basename.
(do_compile): Initialize aux_base_name.
* toplev.h (aux_base_name): New global.
* doc/invoke.texi: Adjust documentation.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56025 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/profile.c')
-rw-r--r-- | gcc/profile.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gcc/profile.c b/gcc/profile.c index 489e3770f0b..36ce8a359c7 100644 --- a/gcc/profile.c +++ b/gcc/profile.c @@ -1196,7 +1196,6 @@ init_branch_prob (filename) /* Open an output file for the basic block/line number map. */ data_file = (char *) alloca (len + 4); strcpy (data_file, filename); - strip_off_ending (data_file, len); strcat (data_file, ".bb"); if ((bb_file = fopen (data_file, "wb")) == 0) fatal_io_error ("can't open %s", data_file); @@ -1204,7 +1203,6 @@ init_branch_prob (filename) /* Open an output file for the program flow graph. */ bbg_file_name = (char *) alloca (len + 5); strcpy (bbg_file_name, filename); - strip_off_ending (bbg_file_name, len); strcat (bbg_file_name, ".bbg"); if ((bbg_file = fopen (bbg_file_name, "wb")) == 0) fatal_io_error ("can't open %s", bbg_file_name); @@ -1221,7 +1219,6 @@ init_branch_prob (filename) len = strlen (filename); da_file_name = (char *) alloca (len + 4); strcpy (da_file_name, filename); - strip_off_ending (da_file_name, len); strcat (da_file_name, ".da"); if ((da_file = fopen (da_file_name, "rb")) == 0) warning ("file %s not found, execution counts assumed to be zero", |