From owner-freebsd-questions@FreeBSD.ORG Tue Nov 18 16:09:48 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C3FC21065673 for ; Tue, 18 Nov 2008 16:09:48 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 8AC238FC0A for ; Tue, 18 Nov 2008 16:09:48 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.3) with ESMTP id mAIG9lkf008653 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 18 Nov 2008 10:09:47 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.3/Submit) id mAIG9j3L008652; Tue, 18 Nov 2008 10:09:45 -0600 (CST) (envelope-from dan) Date: Tue, 18 Nov 2008 10:09:45 -0600 From: Dan Nelson To: Vijayalakshmi BN Message-ID: <20081118160945.GA23501@dan.emsphone.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 7.1-PRERELEASE User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-questions@freebsd.org Subject: Re: Help needed: Which gcc version supports xmemalign X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Nov 2008 16:09:48 -0000 In the last episode (Nov 18), Vijayalakshmi BN said: > I'm working on Solaris 9 and using gcc version 2.9.5. I'm facing > issues with respect to memory misalignment. I'm getting SIGBUS > errors. Through various websites, I found that xmemalign can be used > while compiling to handle memory alignment issues. Bu the version I'm > using doesn't support xmemalign option. Even gcc version 3.4.3 > doesn't support. It says: gcc: language memalign=1i not recognized > Can you let me know which version of gcc supports xmemalign option on > solaris? Also where can I download the gcc version from? -xmemalign=ab is a Sun Studio compiler flag, not a GCC flag. If you don't already have it, you can download it free from http://developers.sun.com/sunstudio/ . If for some reason you must use a GCC frontend, you can try GCC for Sparc Systems ( http://cooltools.sunsource.net/gcc/ ), which supports all the regular GCC flags plus many Sun Studio ones, including xmemalign: http://cooltools.sunsource.net/gcc/flags.html But as Mel said, this has nothing to do with FreeBSD, so this post doesn't exist. -- Dan Nelson dnelson@allantgroup.com