From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jul 19 18:10:17 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A63B6106564A for ; Thu, 19 Jul 2012 18:10:17 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 90E958FC16 for ; Thu, 19 Jul 2012 18:10:17 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q6JIAHPH089915 for ; Thu, 19 Jul 2012 18:10:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q6JIAHlM089914; Thu, 19 Jul 2012 18:10:17 GMT (envelope-from gnats) Date: Thu, 19 Jul 2012 18:10:17 GMT Message-Id: <201207191810.q6JIAHlM089914@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: John Marino Cc: Subject: Re: ports/169951: [NEW PORT] lang/gcc-aux, gcc-4.7 compiler (Ada, Fortran, C, C++, Objc) X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John Marino List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jul 2012 18:10:17 -0000 The following reply was made to PR ports/169951; it has been noted by GNATS. From: John Marino To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/169951: [NEW PORT] lang/gcc-aux, gcc-4.7 compiler (Ada, Fortran, C, C++, Objc) Date: Thu, 19 Jul 2012 20:05:56 +0200 During the process of troubleshooting the known issue between FreeBSD 9.0 thread library and gcc-4.6/4.7 GNAT tasking, it was discovered the enable-stack-executable function was broken on FreeBSD in two places. It was broken out of the box, GCC must not have tested it on x86. 1) The gcc/config/i386/freebsd.h header did not have HAVE_ENABLE_EXECUTE_STACK macro defined, so the functionality was disabled. 2) The enable-execute-stack-mprotect.c file, which was designed specifically with FreeBSD in mind (it uses the kern.stackprot sysctl) didn't work. The sysctl always returns 7 (stack is WRX) even when it can't be executed on, so the __enable_execute_stack function is effectively turned off anyway. Rather than patch that file, I created a new version called enable-execute-stack-freebsd.c. NetBSD, OpenBSD, and DragonFlyBSD also refer to it and skip the whole static variable "need_enable_exec_stack" business. On FreeBSD 8.2, the testsuite completely passes now as it did with gnat-aux. Ironically, the number of failures on FreeBSD 9.0 increased by 6, but now also matches lang/gnat-aux on FreeBSD 9.0 The new tarball is here: MD5 (port_lang_gcc-aux.v2.tar.bz2) = fbd7aba289b12fc39004647bbb1b846f The former one has been removed to avoid confusion.