* Patch: move lang_specific_driver after setup of cc_libexec_prefix
@ 2010-01-06 15:06 Andrew Haley
2010-01-14 15:20 ` Joseph S. Myers
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Haley @ 2010-01-06 15:06 UTC (permalink / raw)
To: GCC Patches; +Cc: java
gcj is not relocatable because the libexec prefix is set *after*
lang_specific_driver is called. Unfortunately, lang_specific_driver
needs to know the libexec prefix to pass it to ecj1. I can't see any
reason why lang_specific_driver needs to be called before the libexec
prefix is set, and it doesn't seem to break anything.
Fixed thusly, bootstrapped x86_64 GNU/Linux.
OK?
Andrew.
2010-01-06 Andrew Haley <aph@redhat.com>
* gcc.c (process_command): Move lang_specific_driver before
setting cc_libexec_prefix.
Index: gcc/gcc.c
===================================================================
--- gcc/gcc.c (revision 155475)
+++ gcc/gcc.c (working copy)
@@ -3599,12 +3599,6 @@
CONST_CAST2 (const char *const **, const char ***,
&argv));
- /* Do language-specific adjustment/addition of flags. */
- lang_specific_driver (&argc,
- CONST_CAST2 (const char *const **, const char ***,
- &argv),
- &added_libraries);
-
/* Handle any -no-canonical-prefixes flag early, to assign the function
that builds relative prefixes. This function creates default search
paths that are needed later in normal option handling. */
@@ -3660,6 +3654,12 @@
is relocated. The toolchain was either relocated using GCC_EXEC_PREFIX
or an automatically created GCC_EXEC_PREFIX from argv[0]. */
+ /* Do language-specific adjustment/addition of flags. */
+ lang_specific_driver (&argc,
+ CONST_CAST2 (const char *const **, const char ***,
+ &argv),
+ &added_libraries);
+
if (gcc_exec_prefix)
{
int len = strlen (gcc_exec_prefix);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Patch: move lang_specific_driver after setup of cc_libexec_prefix
2010-01-06 15:06 Patch: move lang_specific_driver after setup of cc_libexec_prefix Andrew Haley
@ 2010-01-14 15:20 ` Joseph S. Myers
0 siblings, 0 replies; 2+ messages in thread
From: Joseph S. Myers @ 2010-01-14 15:20 UTC (permalink / raw)
To: Andrew Haley; +Cc: GCC Patches, java
On Wed, 6 Jan 2010, Andrew Haley wrote:
> 2010-01-06 Andrew Haley <aph@redhat.com>
>
> * gcc.c (process_command): Move lang_specific_driver before
> setting cc_libexec_prefix.
OK.
--
Joseph S. Myers
joseph@codesourcery.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-14 15:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-06 15:06 Patch: move lang_specific_driver after setup of cc_libexec_prefix Andrew Haley
2010-01-14 15:20 ` Joseph S. Myers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).