diff options
author | Richard Biener <rguenther@suse.de> | 2013-06-11 08:21:22 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2013-06-11 08:21:22 +0000 |
commit | 888f0920b96e12a50b48b3c44f08c78906200083 (patch) | |
tree | b5704084f21b9a567ce7e7806148756bd6a4e21e /gcc/collect2.c | |
parent | 6b438d5886bd7f0ad25e37b55015a027a53e1949 (diff) | |
download | gcc-888f0920b96e12a50b48b3c44f08c78906200083.zip gcc-888f0920b96e12a50b48b3c44f08c78906200083.tar.gz gcc-888f0920b96e12a50b48b3c44f08c78906200083.tar.bz2 |
collect2.c (main): Do not redirect ld stdout/stderr when debugging.
2013-06-11 Richard Biener <rguenther@suse.de>
* collect2.c (main): Do not redirect ld stdout/stderr when
debugging.
From-SVN: r199936
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r-- | gcc/collect2.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c index 99dd41d..d3119b0 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -1189,8 +1189,11 @@ main (int argc, char **argv) #ifdef COLLECT_EXPORT_LIST export_file = make_temp_file (".x"); #endif - ldout = make_temp_file (".ld"); - lderrout = make_temp_file (".le"); + if (!debug) + { + ldout = make_temp_file (".ld"); + lderrout = make_temp_file (".le"); + } *c_ptr++ = c_file_name; *c_ptr++ = "-x"; *c_ptr++ = "c"; |