This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH,committed] fix using ppc-asm.h outside of gcc build


Due to recent changes to include CFI information for PPC assembly files,
the file ppc-asm.h could not be used once it was installed, since it
#include'd auto-host.h.  I've applied this obvious patch to fix the
issue.

Tested with cross powerpc-none-eabispe and a build of newlib.

-Nathan

Index: gcc/ChangeLog
===================================================================
--- gcc/ChangeLog	(revision 148212)
+++ gcc/ChangeLog	(working copy)
@@ -1,3 +1,8 @@
+2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
+
+	* config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
+	CFI_* definitions with IN_GCC.
+
 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
 
 	PR middle-end/40340
Index: gcc/config/rs6000/ppc-asm.h
===================================================================
--- gcc/config/rs6000/ppc-asm.h	(revision 148212)
+++ gcc/config/rs6000/ppc-asm.h	(working copy)
@@ -196,6 +196,7 @@ GLUE(.L,name): \
 	.size FUNC_NAME(name),GLUE(.L,name)-FUNC_NAME(name)
 #endif
 
+#ifdef IN_GCC
 /* For HAVE_GAS_CFI_DIRECTIVE.  */
 #include "auto-host.h"
 
@@ -212,6 +213,7 @@ GLUE(.L,name): \
 # define CFI_DEF_CFA_REGISTER(reg)
 # define CFI_RESTORE(reg)
 #endif
+#endif
 
 #if defined __linux__ && !defined __powerpc64__
 	.section .note.GNU-stack


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]