Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 May 2011 05:50:34 -0500
From:      Zhihao Yuan <lichray@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/156881: devel/valgrind: Fix build with newer gcc
Message-ID:  <4dc67581.853f2b0a.6fde.7b47@mx.google.com>
Resent-Message-ID: <201105081100.p48B0Hks025231@freefall.freebsd.org>

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

>Number:         156881
>Category:       ports
>Synopsis:       devel/valgrind: Fix build with newer gcc
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 08 11:00:17 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Zhihao Yuan
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
Northern Illinois University
>Environment:
System: FreeBSD compaq.yuetime 8.2-STABLE FreeBSD 8.2-STABLE #0: Mon Mar 14 02:51:28 CDT 2011 root@compaq.yuetime:/usr/obj/usr/src/sys/HOUKAGO amd64


	
>Description:
	
	The bare __aligned attribute no longer exists in new gcc (like gcc46 on my system). The following patch replaces it with the standard __attribute__.
>How-To-Repeat:
	
>Fix:

	

--- patch-include_vki_vki-x86-freebsd.h begins here ---
--- include/vki/vki-x86-freebsd.h.orig	2011-04-27 02:47:18.000000000 -0500
+++ include/vki/vki-x86-freebsd.h	2011-05-08 05:39:46.293802771 -0500
@@ -145,7 +145,7 @@ struct vki_sigcontext {
 	int	fpformat;
 	int	ownedfp;
 	int	spare1[1];
-	struct _vki_fpstate fpstate __aligned(16);
+	struct _vki_fpstate fpstate __attribute__((__aligned__(16)));
 	int	fsbase;
 	int	gsbase;
 	int	spare2[6];
@@ -215,7 +215,7 @@ struct vki_mcontext {
 	int	fpformat;
 	int	ownedfp;
 	int	spare1[1];
-	struct _vki_fpstate fpstate __aligned(16);
+	struct _vki_fpstate fpstate __attribute__((__aligned__(16)));
 	int	fsbase;
 	int	gsbase;
 	int	spare2[6];
--- patch-include_vki_vki-x86-freebsd.h ends here ---


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4dc67581.853f2b0a.6fde.7b47>