This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
sparc linux header patch
- From: Andrew Macleod <amacleod at cygnus dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 11 Mar 2002 15:53:56 -0800
- Subject: sparc linux header patch
The definition of HANDLE_PRAGMA_PACK_PUSH_POP is missing from the linux
headers for sparc. This allows the compiler to pass the gcc.dg/pack-test*
testcases.
verified and bootstrapped on sparc64 linux. Ok for mainline?
Andrew
* config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
* config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
Index: linux.h
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/config/sparc/linux.h,v
retrieving revision 1.26
diff -c -p -r1.26 linux.h
*** linux.h 2002/01/21 00:46:39 1.26
--- linux.h 2002/03/11 22:03:25
*************** Boston, MA 02111-1307, USA. */
*** 21,26 ****
--- 21,28 ----
#define LINUX_DEFAULT_ELF
+ #define HANDLE_PRAGMA_PACK_PUSH_POP
+
/* Don't assume anything about the header files. */
#define NO_IMPLICIT_EXTERN_C
Index: linux64.h
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/config/sparc/linux64.h,v
retrieving revision 1.26
diff -c -p -r1.26 linux64.h
*** linux64.h 2002/01/21 00:46:39 1.26
--- linux64.h 2002/03/11 22:03:25
*************** Boston, MA 02111-1307, USA. */
*** 21,26 ****
--- 21,28 ----
#define LINUX_DEFAULT_ELF
+ #define HANDLE_PRAGMA_PACK_PUSH_POP
+
/* Don't assume anything about the header files. */
#define NO_IMPLICIT_EXTERN_C