Commit ad905e43 authored by hjl's avatar hjl
Browse files

Check HOST_BIT_BUCKET when settting dump base/dir.

2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>

	PR driver/47547
	* lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
	is HOST_BIT_BUCKET.

	* opts.c (finish_options): Don't add x_aux_base_name if it is
	HOST_BIT_BUCKET.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169479 138bc75d-0d04-0410-961f-82ee72b054a4
parent 58dcbc36
2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
PR driver/47547
* lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
is HOST_BIT_BUCKET.
* opts.c (finish_options): Don't add x_aux_base_name if it is
HOST_BIT_BUCKET.
2011-02-01 Richard Guenther <rguenther@suse.de> 2011-02-01 Richard Guenther <rguenther@suse.de>
PR tree-optimization/47555 PR tree-optimization/47555
......
...@@ -392,6 +392,7 @@ run_gcc (unsigned argc, char *argv[]) ...@@ -392,6 +392,7 @@ run_gcc (unsigned argc, char *argv[])
if (linker_output) if (linker_output)
{ {
char *output_dir, *base, *name; char *output_dir, *base, *name;
bool bit_bucket = strcmp (linker_output, HOST_BIT_BUCKET) == 0;
output_dir = xstrdup (linker_output); output_dir = xstrdup (linker_output);
base = output_dir; base = output_dir;
...@@ -406,8 +407,11 @@ run_gcc (unsigned argc, char *argv[]) ...@@ -406,8 +407,11 @@ run_gcc (unsigned argc, char *argv[])
static char current_dir[] = { '.', DIR_SEPARATOR, '\0' }; static char current_dir[] = { '.', DIR_SEPARATOR, '\0' };
output_dir = current_dir; output_dir = current_dir;
} }
*argv_ptr++ = "-dumpdir"; if (!bit_bucket)
*argv_ptr++ = output_dir; {
*argv_ptr++ = "-dumpdir";
*argv_ptr++ = output_dir;
}
*argv_ptr++ = "-dumpbase"; *argv_ptr++ = "-dumpbase";
} }
......
...@@ -633,7 +633,8 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set, ...@@ -633,7 +633,8 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set,
if (opts->x_dump_dir_name) if (opts->x_dump_dir_name)
opts->x_dump_base_name = concat (opts->x_dump_dir_name, opts->x_dump_base_name = concat (opts->x_dump_dir_name,
opts->x_dump_base_name, NULL); opts->x_dump_base_name, NULL);
else if (opts->x_aux_base_name) else if (opts->x_aux_base_name
&& strcmp (opts->x_aux_base_name, HOST_BIT_BUCKET) != 0)
{ {
const char *aux_base; const char *aux_base;
......
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