[Bug target/10395] [x86] vector types are incorrectly aligned causing crash in multi-threaded apps or when using in main

gcc-bug at vogtner dot de gcc-bugzilla@gcc.gnu.org
Sun Nov 30 21:04:00 GMT 2003


------- Additional Comments From gcc-bug at vogtner dot de  2003-11-30 21:04 -------
AFAICS GCC 3.3.2 generates wrong code (cf. #13245):

ebp is 0xbffff328

    0x08048243 <main_(int, char**)+63>:	call   0x80481f4 <prepare_fpu()>
    0x08048248 <main_(int, char**)+68>:	fldl   0x80ed420
    0x0804824e <main_(int, char**)+74>:	fstpl  0xfffffff0(%ebp)
    0x08048251 <main_(int, char**)+77>:	fldl   0xfffffff0(%ebp)
===>0x08048254 <main_(int, char**)+80>:	fstpl  0x4(%esp,1)       <=====
    0x08048258 <main_(int, char**)+84>:	lea    0xffffffff(%ebp),%eax
    0x0804825b <main_(int, char**)+87>:	mov    %eax,(%esp,1)
    0x0804825e <main_(int, char**)+90>:	call   0x80482fe <XM& operator<<AF

This is main_ () not main ().

-- 


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



More information about the Gcc-bugs mailing list