[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Using -fpack-struct creats segfaulting code.



>Submitter-Id:	net
>Originator:	Panagiotis Issaris
>Organization:	
>Confidential:	no
>Synopsis:	Using -fpack-struct creats segfaulting code.
>Severity:	serious
>Priority:	medium
>Category:	c++
>Class:		wrong-code
>Release:	3.0.3 20011215 (Debian prerelease) (Debian testing/unstable)
>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 <string> or <iostream> which are included in the source file.
>How-To-Repeat:
>Fix:


-- 
To UNSUBSCRIBE, email to debian-gcc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: