This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/10395] [x86] vector types are incorrectly aligned causing crash in multi-threaded apps or when using in main
- From: "gcc-bug at vogtner dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Nov 2003 21:04:51 -0000
- Subject: [Bug target/10395] [x86] vector types are incorrectly aligned causing crash in multi-threaded apps or when using in main
- References: <20030413224600.10395.vgrebinski@yahoo.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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