From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11944 invoked by alias); 5 Jan 2009 23:09:13 -0000 Received: (qmail 11887 invoked by uid 48); 5 Jan 2009 23:09:03 -0000 Date: Mon, 05 Jan 2009 23:09:00 -0000 Message-ID: <20090105230903.11886.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug other/38732] [4.4 Regression] Openoffice.org segfaults with runtime libs built from GCC trunk In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "hjl dot tools at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-01/txt/msg00549.txt.bz2 ------- Comment #11 from hjl dot tools at gmail dot com 2009-01-05 23:08 ------- (In reply to comment #7) > (In reply to comment #5) > > There is padding between adjustedPtr and unwindHeader because the latter is > > forced to be maximally aligned. Due to the additional member the padding was > > reduced. Also, the alignment of _Unwind_Exception depends on -mavx. > > > > I don't see any need for extra alignment on _Unwind_Exception: > > struct _Unwind_Exception > { > _Unwind_Exception_Class exception_class; > _Unwind_Exception_Cleanup_Fn exception_cleanup; > _Unwind_Word private_1; > _Unwind_Word private_2; > > /* @@@ The IA-64 ABI says that this structure must be double-word aligned. > Taking that literally does not make much sense generically. Instead we > provide the maximum alignment required by any type for the machine. */ > } __attribute__((__aligned__)); > > I think it should have a fixed alignment for a given target. > The ia64 psABI says _Unwind_Exception should be aligned at double-word. But it isn't very clear what is the size of double-word. It does say "long long" is 8 byte doubleword. We have [hjl@gnu-6 config]$ grep BIGGEST_ALIGNMENT ia64/ia64.h #define BIGGEST_ALIGNMENT 128 [hjl@gnu-6 config]$ We can't change it now no matter what the size of double-word is. -- hjl dot tools at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- BugsThisDependsOn|38737 | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38732