From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26849 invoked by alias); 9 Apr 2002 13:46:32 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 26793 invoked by uid 71); 9 Apr 2002 13:46:28 -0000 Resent-Date: 9 Apr 2002 13:46:28 -0000 Resent-Message-ID: <20020409134628.26792.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, takis@lumumba.luc.ac.be Received:(qmail 25474 invoked from network); 9 Apr 2002 13:41:55 -0000 Received: from unknown (HELO ares) (217.136.103.166) by sources.redhat.com with SMTP; 9 Apr 2002 13:41:55 -0000 Received: from takis by ares with local (Exim 3.22 #1 (Debian)) id 16uvsc-0002E4-00; Tue, 09 Apr 2002 15:41:50 +0200 Message-Id: Date: Tue, 09 Apr 2002 06:46:00 -0000 From: Panagiotis Issaris Reply-To: takis@lumumba.luc.ac.be To: gcc-gnats@gcc.gnu.org, debian-gcc@lists.debian.org X-Send-Pr-Version:3.113 Subject: c++/6235: Using -fpack-struct creats segfaulting code. X-SW-Source: 2002-04/txt/msg00528.txt.bz2 List-Id: >Number: 6235 >Category: c++ >Synopsis: Using -fpack-struct creats segfaulting code. >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: wrong-code >Submitter-Id: net >Arrival-Date: Tue Apr 09 06:46:27 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Panagiotis Issaris >Release: 3.0.3 20011215 (Debian prerelease) (Debian testing/unstable) >Organization: >Environment: System: Linux ares 2.4.17-xfs #5 Sat Mar 16 20:42:21 CET 2002 i586 unknown Architecture: i586 host: i386-pc-linux-gnu build: i386-pc-linux-gnu target: i386-pc-linux-gnu configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,objc --prefix=/usr --infodir=/share/info --mandir=/share/man --enable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --disable-checking --enable-threads=posix --enable-java-gc=boehm --with-cpp-install-dir=bin --enable-objc-gc i386-linux >Description: When compiling a C++ source file with the -fpack-struct flag, code is generated which segfaults when run. When creating a similar C source file and using the same flag, there's no problem at all. The problem only occurs if there is a struct or class in the source file, if I remove the structs and compile with the flag, it runs just fine. I tried this to rule out the possibility that it had something to do with linking in default libraries or compiling files in or which are included in the source file. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: