This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Define HANDLE_PRAGMA_PUSH_POP for mips*-elf targets
- From: Richard Sandiford <richard at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 08 Oct 2006 08:36:06 +0100
- Subject: Define HANDLE_PRAGMA_PUSH_POP for mips*-elf targets
This patch fixes the _Pragma6.c failures on mips*-elf targets.
Although we could just say that the pragmas are not supported on this
target, and skip the test, I see no reason not to support them.
Tested on mipsisa64-elf and applied.
Richard
gcc/
* config/mips/elf.h (HANDLE_PRAGMA_PUSH_POP): Define.
Index: gcc/config/mips/elf.h
===================================================================
--- gcc/config/mips/elf.h (revision 117551)
+++ gcc/config/mips/elf.h (working copy)
@@ -50,3 +50,5 @@ #define STARTFILE_SPEC "crti%O%s crtbegi
#define ENDFILE_SPEC "crtend%O%s crtn%O%s"
#define NO_IMPLICIT_EXTERN_C 1
+
+#define HANDLE_PRAGMA_PACK_PUSH_POP 1