From: SourceForge.net <no...@so...> - 2010-04-14 16:15:42
|
Bugs item #2986545, was opened at 2010-04-13 15:26 Message generated for change (Comment added) made by dliauchuk You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=2986545&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Dzmitry Liauchuk (dliauchuk) Assigned to: Nobody/Anonymous (nobody) Summary: Assertion failure in LD Initial Comment: The following code causes assertion failure of LD during linking. struct Foo { Foo(void); int a; }; #include <cstdio> using std::putchar; #define BAR(test)\ asm("call 0\n\t"\ "call *1\n\t"\ "call *%%eax\n\t"\ :"=r"(test)); Foo::Foo() { int test = 0; BAR(test); } int main() { Foo f; f.a = 4; Foo s = f; s.a = 5; return 0; } Command line: g++ -O0 -Wall -c -fmessage-length=0 -save-temps -osrc\bbb.o ..\src\bbb.cpp g++ -obbb.exe src\bbb.o The cause of the bug is the "call 0" within the inline assembly code. ---------------------------------------------------------------------- >Comment By: Dzmitry Liauchuk (dliauchuk) Date: 2010-04-14 16:15 Message: GCC version: Reading specs from C:/Program Files/MinGW/bin/../lib/gcc/mingw32/3.4.5/specs Configured with: ../gcc-3.4.5-20060117-3/configure --with-gcc --with-gnu-ld --wi th-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --dis able-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --d isable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --with out-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enabl e-hash-synchronization --enable-libstdcxx-debug Thread model: win32 gcc version 3.4.5 (mingw-vista special r3) GNU ld (GNU Binutils) 2.18.50.20080625 ---------------------------------------------------------------------- Comment By: Dzmitry Liauchuk (dliauchuk) Date: 2010-04-13 15:27 Message: Assertion failure text is: C:\Program Files\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: BFD (GNU Binutils) 2.20 assertion fail ../../binutils-2.20/bfd/coff-i386.c:525 C:\Program Files\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: BFD (GNU Binutils) 2.20 assertion fail ../../binutils-2.20/bfd/coff-i386.c:525 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=2986545&group_id=2435 |