Commit 216c12ab by Jakub Jelinek Committed by Jakub Jelinek

re PR driver/57651 (gcc-ar and gcc-nm don't find the lto plugin)

	PR driver/57651
	* gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
	PERSONALITY in $PATH derived prefixes.

From-SVN: r200209
parent ecdbf306
2013-06-19 Jakub Jelinek <jakub@redhat.com>
PR driver/57651
* gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
PERSONALITY in $PATH derived prefixes.
2013-06-19 Jeff Law <law@redhat.com> 2013-06-19 Jeff Law <law@redhat.com>
* tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
......
...@@ -147,21 +147,17 @@ main(int ac, char **av) ...@@ -147,21 +147,17 @@ main(int ac, char **av)
exe_name = find_a_file (&target_path, PERSONALITY); exe_name = find_a_file (&target_path, PERSONALITY);
if (!exe_name) if (!exe_name)
{ {
const char *real_exe_name = PERSONALITY;
#ifdef CROSS_DIRECTORY_STRUCTURE #ifdef CROSS_DIRECTORY_STRUCTURE
const char *cross_exe_name; real_exe_name = concat (target_machine, "-", PERSONALITY, NULL);
#endif
cross_exe_name = concat (target_machine, "-", PERSONALITY, NULL); exe_name = find_a_file (&path, real_exe_name);
exe_name = find_a_file (&path, cross_exe_name);
if (!exe_name) if (!exe_name)
{ {
fprintf (stderr, "%s: Cannot find binary '%s'\n", av[0], fprintf (stderr, "%s: Cannot find binary '%s'\n", av[0],
cross_exe_name); real_exe_name);
exit (1); exit (1);
} }
#else
fprintf (stderr, "%s: Cannot find binary '%s'\n", av[0], PERSONALITY);
exit (1);
#endif
} }
/* Create new command line with plugin */ /* Create new command line with plugin */
......
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