This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] PR40134, use a linker script on arm-linux to link with -lgcc_s -lgcc
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Matthias Klose <doko at ubuntu dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Paolo Carlini <paolo dot carlini at oracle dot com>, GCJ-patches <java-patches at gcc dot gnu dot org>
- Date: Fri, 10 Jul 2009 09:36:14 +0200
- Subject: Re: [patch] PR40134, use a linker script on arm-linux to link with -lgcc_s -lgcc
- References: <4A530F5C.4040500@ubuntu.com> <20090707091425.GB4462@tyan-ft48-01.lab.bos.redhat.com> <4A56D949.4010900@ubuntu.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, Jul 10, 2009 at 08:01:45AM +0200, Matthias Klose wrote:
> H.J. mentioned not to bother with the dfp library for now. Is the current patch
> good enough for mainline?
>
> Matthias
>
> Index: gcc.c
> ===================================================================
> --- a/src/gcc/gcc.c (revision 149315)
> +++ b/src/gcc/gcc.c (working copy)
> @@ -1686,13 +1686,21 @@
> "}"
> #ifdef LINK_EH_SPEC
> "%{shared:"
> +#ifdef ENABLE_SHARED_LIBGCC
What are these #ifdefs good for?
Isn't the whole init_gcc_specs routine wrapped in
#if defined(ENABLE_SHARED_LIBGCC) && !defined(REAL_LIBGCC_SPEC)
?
> + "%{shared-libgcc:", shared_name, " ", static_name, "}"
> +#else
> "%{shared-libgcc:", shared_name, "}"
> +#endif
> "%{!shared-libgcc:", static_name, "}"
> "}"
> #else
> +#ifdef ENABLE_SHARED_LIBGCC
> + "%{shared:", shared_name, " ", static_name, "}"
> +#else
> "%{shared:", shared_name, "}"
> #endif
> #endif
> +#endif
> "}}", NULL);
>
> obstack_grow (obstack, buf, strlen (buf));
Jakub