Patchwork Backport from trune:

login
register
mail settings
Submitter Andrew Haley
Date Aug. 12, 2013, 12:01 p.m.
Message ID <5208CEAA.206@redhat.com>
Download mbox | patch
Permalink /patch/266504/
State New
Headers show

Comments

Andrew Haley - Aug. 12, 2013, 12:01 p.m.
I think this one is obvious/trivial, but I'll ask anyway.

OK?

Andrew.


2013-08-12  Andrew Haley  <aph@redhat.com>

	Backport from mainline:
	* 2013-07-11  Andreas Schwab  <schwab@suse.de>

	* config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
Jakub Jelinek - Aug. 13, 2013, 1:05 p.m.
On Mon, Aug 12, 2013 at 01:01:46PM +0100, Andrew Haley wrote:
> I think this one is obvious/trivial, but I'll ask anyway.
> 
> OK?

To 4.8?  Sure.

> 2013-08-12  Andrew Haley  <aph@redhat.com>
> 
> 	Backport from mainline:
> 	* 2013-07-11  Andreas Schwab  <schwab@suse.de>
> 
> 	* config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
> 
> Index: gcc/config/aarch64/aarch64-linux.h
> ===================================================================
> --- gcc/config/aarch64/aarch64-linux.h	(revision 201661)
> +++ gcc/config/aarch64/aarch64-linux.h	(working copy)
> @@ -23,6 +23,8 @@
> 
>  #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64.so.1"
> 
> +#define CPP_SPEC "%{pthread:-D_REENTRANT}"
> +
>  #define LINUX_TARGET_LINK_SPEC  "%{h*}		\
>     %{static:-Bstatic}				\
>     %{shared:-shared}				\

	Jakub

Patch

Index: gcc/config/aarch64/aarch64-linux.h
===================================================================
--- gcc/config/aarch64/aarch64-linux.h	(revision 201661)
+++ gcc/config/aarch64/aarch64-linux.h	(working copy)
@@ -23,6 +23,8 @@ 

 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64.so.1"

+#define CPP_SPEC "%{pthread:-D_REENTRANT}"
+
 #define LINUX_TARGET_LINK_SPEC  "%{h*}		\
    %{static:-Bstatic}				\
    %{shared:-shared}				\