Define HANDLE_PRAGMA_PACK_PUSH_POP on FreeBSD

Gerald Pfeifer gerald@pfeifer.com
Thu Sep 18 01:07:00 GMT 2008


This brings FreeBSD in line with NetBSD, GNU/Linux and some others
and addresses the following two testsuite failures:

  < FAIL: g++.dg/cpp/_Pragma1.C (test for excess errors)
  < FAIL: gcc.dg/cpp/_Pragma6.c 

Tested on i386-unknown-freebsd6.3 without any other changes in terms
of testresults.

Okay to apply to mainline and GCC 4.3?

Gerald

2008-09-14  Gerald Pfeifer  <gerald@pfeifer.com>

	* config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.

Index: config/freebsd.h
===================================================================
--- config/freebsd.h	(revision 140349)
+++ config/freebsd.h	(working copy)
@@ -55,6 +55,8 @@
 #undef  LIB_SPEC
 #define LIB_SPEC FBSD_LIB_SPEC
 
+/* Define this so we can compile MS code for use with WINE.  */
+#define HANDLE_PRAGMA_PACK_PUSH_POP 1
 
 /************************[  Target stuff  ]***********************************/
 



More information about the Gcc-patches mailing list