Patchwork [alpha] : Fix PR55344, Cross compiling for alpha-linux fails because <signal.h> doesn't exist

login
register
mail settings
Submitter Uros Bizjak
Date Dec. 9, 2012, 6:18 p.m.
Message ID <CAFULd4ZDx27Lm0yPKOGvR7_kx+JXc-my5cjRq5e1bsSrjL_yzw@mail.gmail.com>
Download mbox | patch
Permalink /patch/204765/
State New
Headers show

Comments

Uros Bizjak - Dec. 9, 2012, 6:18 p.m.
Hello!

2012-12-09  Uros Bizjak  <ubizjak@gmail.com>

	* config/alpha/linux-unwind.h: Disable when inhibit_libc is defined.

Bootstrapped and regression tested on alphaev68-pc-linux-gnu,
committed to mainline and 4.7.

Uros.

Patch

Index: config/alpha/linux-unwind.h
===================================================================
--- config/alpha/linux-unwind.h	(revision 194329)
+++ config/alpha/linux-unwind.h	(working copy)
@@ -22,6 +22,7 @@ 
 see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 <http://www.gnu.org/licenses/>.  */
 
+#ifndef inhibit_libc
 /* Do code reading to identify a signal frame, and set the frame
    state data appropriately.  See unwind-dw2.c for the structs.  */
 
@@ -97,3 +98,4 @@ 
 	  || pc[1] == 0x201f015f))	/* lda $0,NR_rt_sigreturn */
     _Unwind_SetSignalFrame (context, 1);
 }
+#endif