public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug inline-asm/24761]  New: Missing register load before inline asm in templated function causes SIGSEGV
@ 2005-11-09 19:43 krzysiek-gcc dot gnu dot org at lichota dot net
  2005-11-09 19:46 ` [Bug inline-asm/24761] " krzysiek-gcc dot gnu dot org at lichota dot net
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: krzysiek-gcc dot gnu dot org at lichota dot net @ 2005-11-09 19:43 UTC (permalink / raw)
  To: gcc-bugs

I have a templated function which uses inline assembler (with MMX
instructions). Inline assembler is passed pointer to array element.
When this function is instantiated for the first time, code before inline
assembler is generated correctly. When it is instantiated for the second time,
one of registers used in inline assembler is not loaded from stack and causes
segfault when it is dereferenced in inline assembler.

I will attach test case.


g++-4.0 -v:
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.0 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt
--enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm
--enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr
--disable-werror --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.0.2 (Debian 4.0.2-2)


-- 
           Summary: Missing register load before inline asm in templated
                    function causes SIGSEGV
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: inline-asm
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: krzysiek-gcc dot gnu dot org at lichota dot net
  GCC host triplet: i486-linux-gnu
GCC target triplet: i486-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24761


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-11-12 22:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-09 19:43 [Bug inline-asm/24761] New: Missing register load before inline asm in templated function causes SIGSEGV krzysiek-gcc dot gnu dot org at lichota dot net
2005-11-09 19:46 ` [Bug inline-asm/24761] " krzysiek-gcc dot gnu dot org at lichota dot net
2005-11-09 19:50 ` krzysiek-gcc dot gnu dot org at lichota dot net
2005-11-09 20:00 ` krzysiek-gcc dot gnu dot org at lichota dot net
2005-11-09 20:24 ` [Bug c++/24761] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-11-09 20:28 ` [Bug c++/24761] [4.0/4.1 Regression] templates and inline-asm and "+" pinskia at gcc dot gnu dot org
2005-11-10  9:03 ` jakub at gcc dot gnu dot org
2005-11-12 20:42 ` jakub at gcc dot gnu dot org
2005-11-12 20:43 ` jakub at gcc dot gnu dot org
2005-11-12 22:13 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).