Skip site navigation (1)Skip section navigation (2)
Date:      Mon,  6 Apr 2009 00:20:17 +0400 (MSD)
From:      Dmitry Marakasov <amdmi3@amdmi3.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        gerald@FreeBSD.org
Subject:   ports/133401: [PATCH] lang/gcc: add pragma pack support
Message-ID:  <20090405202017.43FED10883A@hades.panopticon>
Resent-Message-ID: <200904052030.n35KU2Wm033949@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         133401
>Category:       ports
>Synopsis:       [PATCH] lang/gcc: add pragma pack support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 05 20:30:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 8.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Sat Mar 21 18:50:30 MSK 2009
>Description:
We talked about this via email some time ago, but in the end you didn't answer.

Add a patch (which is already available with gcc 4.3, but not gcc 4.2) to support #pragma pack and thus bring gcc42 from ports closer to one from the base system. Unfortunately the port erroneously uses PORTREVISION for the snapshot date, so it can't be bumped.

Added file(s):
- files/patch-gcc-config-freebsd.h

Port maintainer (gerald@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- gcc-4.2.5_20090325.patch begins here ---
Index: files/patch-gcc-config-freebsd.h
===================================================================
RCS file: files/patch-gcc-config-freebsd.h
diff -N files/patch-gcc-config-freebsd.h
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-gcc-config-freebsd.h	5 Apr 2009 20:16:28 -0000
@@ -0,0 +1,11 @@
+--- gcc/config/freebsd.h.orig	2007-09-01 19:28:30.000000000 +0400
++++ gcc/config/freebsd.h	2009-04-06 00:16:27.000000000 +0400
+@@ -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  ]***********************************/
+ 
--- gcc-4.2.5_20090325.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090405202017.43FED10883A>