* [Bug target/13685] Building simple test application with -march=pentium3 -Os gives SIGSEGV (unaligned sse instruction)
[not found] <bug-13685-7709@http.gcc.gnu.org/bugzilla/>
@ 2006-02-21 12:38 ` belyshev at depni dot sinp dot msu dot ru
2006-02-21 12:45 ` belyshev at depni dot sinp dot msu dot ru
` (13 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: belyshev at depni dot sinp dot msu dot ru @ 2006-02-21 12:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #14 from belyshev at depni dot sinp dot msu dot ru 2006-02-21 12:38 -------
*** Bug 15617 has been marked as a duplicate of this bug. ***
--
belyshev at depni dot sinp dot msu dot ru changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kpfleming at
| |backtobasicsmgmt dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13685
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/13685] Building simple test application with -march=pentium3 -Os gives SIGSEGV (unaligned sse instruction)
[not found] <bug-13685-7709@http.gcc.gnu.org/bugzilla/>
2006-02-21 12:38 ` [Bug target/13685] Building simple test application with -march=pentium3 -Os gives SIGSEGV (unaligned sse instruction) belyshev at depni dot sinp dot msu dot ru
@ 2006-02-21 12:45 ` belyshev at depni dot sinp dot msu dot ru
2006-02-21 12:51 ` belyshev at depni dot sinp dot msu dot ru
` (12 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: belyshev at depni dot sinp dot msu dot ru @ 2006-02-21 12:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #15 from belyshev at depni dot sinp dot msu dot ru 2006-02-21 12:45 -------
Another testcase, use "-Os -msse", fails with all versions since 3.2:
typedef float __m128 __attribute__ ((vector_size (16)));
typedef int __m64 __attribute__ ((vector_size (8)));
int puts (const char *s);
void foo (__m128 *, __m64 *, int);
int main (void)
{
foo (0, 0, 0);
return 0;
}
void foo (__m128 *dst, __m64 *src, int n)
{
__m128 xmm0 = { 0 };
while (n > 64)
{
puts ("");
xmm0 = __builtin_ia32_cvtpi2ps (xmm0, *src);
*dst = xmm0;
n --;
}
}
--
belyshev at depni dot sinp dot msu dot ru changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |3.2.3 3.3.6 3.4.6 4.0.3
| |4.1.0 4.2.0
Last reconfirmed|0000-00-00 00:00:00 |2006-02-21 12:45:28
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13685
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/13685] Building simple test application with -march=pentium3 -Os gives SIGSEGV (unaligned sse instruction)
[not found] <bug-13685-7709@http.gcc.gnu.org/bugzilla/>
2006-02-21 12:38 ` [Bug target/13685] Building simple test application with -march=pentium3 -Os gives SIGSEGV (unaligned sse instruction) belyshev at depni dot sinp dot msu dot ru
2006-02-21 12:45 ` belyshev at depni dot sinp dot msu dot ru
@ 2006-02-21 12:51 ` belyshev at depni dot sinp dot msu dot ru
2006-02-22 10:15 ` uros at kss-loka dot si
` (11 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: belyshev at depni dot sinp dot msu dot ru @ 2006-02-21 12:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #16 from belyshev at depni dot sinp dot msu dot ru 2006-02-21 12:51 -------
raising severity because this bug makes "-Os" almost useless on modern x86.
--
belyshev at depni dot sinp dot msu dot ru changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |belyshev at depni dot sinp
| |dot msu dot ru
Severity|normal |major
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13685
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/13685] Building simple test application with -march=pentium3 -Os gives SIGSEGV (unaligned sse instruction)
[not found] <bug-13685-7709@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2006-02-21 12:51 ` belyshev at depni dot sinp dot msu dot ru
@ 2006-02-22 10:15 ` uros at kss-loka dot si
2006-02-22 11:31 ` roger dot larsson at norran dot net
` (10 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: uros at kss-loka dot si @ 2006-02-22 10:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #17 from uros at kss-loka dot si 2006-02-22 10:15 -------
Works OK with gcc-4.2 and -Os -msse -fomit-frame-pointer.
--
uros at kss-loka dot si changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |uros at kss-loka dot si
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13685
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/13685] Building simple test application with -march=pentium3 -Os gives SIGSEGV (unaligned sse instruction)
[not found] <bug-13685-7709@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2006-02-22 10:15 ` uros at kss-loka dot si
@ 2006-02-22 11:31 ` roger dot larsson at norran dot net
2006-09-07 19:45 ` jason at gcc dot gnu dot org
` (9 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: roger dot larsson at norran dot net @ 2006-02-22 11:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #18 from roger dot larsson at norran dot net 2006-02-22 11:31 -------
(In reply to comment #16)
> raising severity because this bug makes "-Os" almost useless on modern x86.
>
With "gcc version 4.0.2 20050901 (prerelease) (SUSE Linux)"
my testcase works but not Serge Belyshevs
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13685
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/13685] Building simple test application with -march=pentium3 -Os gives SIGSEGV (unaligned sse instruction)
[not found] <bug-13685-7709@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2006-02-22 11:31 ` roger dot larsson at norran dot net
@ 2006-09-07 19:45 ` jason at gcc dot gnu dot org
2006-09-07 20:24 ` jason at gcc dot gnu dot org
` (8 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: jason at gcc dot gnu dot org @ 2006-09-07 19:45 UTC (permalink / raw)
To: gcc-bugs
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2006-02-21 12:45:28 |2006-09-07 19:45:38
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13685
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/13685] Building simple test application with -march=pentium3 -Os gives SIGSEGV (unaligned sse instruction)
[not found] <bug-13685-7709@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2006-09-07 19:45 ` jason at gcc dot gnu dot org
@ 2006-09-07 20:24 ` jason at gcc dot gnu dot org
2006-09-08 0:28 ` jason at gcc dot gnu dot org
` (7 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: jason at gcc dot gnu dot org @ 2006-09-07 20:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #19 from jason at gcc dot gnu dot org 2006-09-07 20:24 -------
You can work around this bug with -mpreferred-stack-boundary=4
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13685
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/13685] Building simple test application with -march=pentium3 -Os gives SIGSEGV (unaligned sse instruction)
[not found] <bug-13685-7709@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2006-09-07 20:24 ` jason at gcc dot gnu dot org
@ 2006-09-08 0:28 ` jason at gcc dot gnu dot org
2006-09-08 0:46 ` hjl at lucon dot org
` (6 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: jason at gcc dot gnu dot org @ 2006-09-08 0:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #20 from jason at gcc dot gnu dot org 2006-09-08 00:28 -------
Subject: Bug 13685
Author: jason
Date: Fri Sep 8 00:28:30 2006
New Revision: 116775
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116775
Log:
PR target/13685
* config/i386/i386.c (override_options): Use 128-bit
stack boundary if -msse.
Added:
trunk/gcc/testsuite/gcc.target/i386/sse-20.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/i386.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13685
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/13685] Building simple test application with -march=pentium3 -Os gives SIGSEGV (unaligned sse instruction)
[not found] <bug-13685-7709@http.gcc.gnu.org/bugzilla/>
` (7 preceding siblings ...)
2006-09-08 0:28 ` jason at gcc dot gnu dot org
@ 2006-09-08 0:46 ` hjl at lucon dot org
2006-09-11 21:34 ` hjl at gcc dot gnu dot org
` (5 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: hjl at lucon dot org @ 2006-09-08 0:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #21 from hjl at lucon dot org 2006-09-08 00:45 -------
*** Bug 27537 has been marked as a duplicate of this bug. ***
--
hjl at lucon dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |agner at agner dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13685
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/13685] Building simple test application with -march=pentium3 -Os gives SIGSEGV (unaligned sse instruction)
[not found] <bug-13685-7709@http.gcc.gnu.org/bugzilla/>
` (8 preceding siblings ...)
2006-09-08 0:46 ` hjl at lucon dot org
@ 2006-09-11 21:34 ` hjl at gcc dot gnu dot org
2006-09-12 2:55 ` hjl at gcc dot gnu dot org
` (4 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: hjl at gcc dot gnu dot org @ 2006-09-11 21:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #22 from hjl at gcc dot gnu dot org 2006-09-11 21:34 -------
Subject: Bug 13685
Author: hjl
Date: Mon Sep 11 21:34:06 2006
New Revision: 116860
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116860
Log:
gcc/
2006-09-11 H.J. Lu <hongjiu.lu@intel.com>
PR target/13685
PR target/27537
PR target/28621
* config/i386/i386.c (override_options): Always default to 16
byte stack boundary.
gcc/testsuite/
2006-09-11 H.J. Lu <hongjiu.lu@intel.com>
PR target/13685
* gcc.target/i386/pr13685.c: New test.
Added:
trunk/gcc/testsuite/gcc.target/i386/pr13685.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/i386.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13685
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/13685] Building simple test application with -march=pentium3 -Os gives SIGSEGV (unaligned sse instruction)
[not found] <bug-13685-7709@http.gcc.gnu.org/bugzilla/>
` (9 preceding siblings ...)
2006-09-11 21:34 ` hjl at gcc dot gnu dot org
@ 2006-09-12 2:55 ` hjl at gcc dot gnu dot org
2006-09-22 22:42 ` jason at gcc dot gnu dot org
` (3 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: hjl at gcc dot gnu dot org @ 2006-09-12 2:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #23 from hjl at gcc dot gnu dot org 2006-09-12 02:54 -------
Subject: Bug 13685
Author: hjl
Date: Tue Sep 12 02:54:42 2006
New Revision: 116870
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116870
Log:
gcc/
2006-09-11 H.J. Lu <hongjiu.lu@intel.com>
PR target/13685
PR target/27537
PR target/28621
* config/i386/i386.c (override_options): Always default to 16
byte stack boundary.
gcc/testsuite/
2006-09-11 H.J. Lu <hongjiu.lu@intel.com>
PR target/13685
* gcc.target/i386/pr13685.c: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gcc.target/i386/pr13685.c
Modified:
branches/gcc-4_1-branch/gcc/ChangeLog
branches/gcc-4_1-branch/gcc/config/i386/i386.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13685
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/13685] Building simple test application with -march=pentium3 -Os gives SIGSEGV (unaligned sse instruction)
[not found] <bug-13685-7709@http.gcc.gnu.org/bugzilla/>
` (10 preceding siblings ...)
2006-09-12 2:55 ` hjl at gcc dot gnu dot org
@ 2006-09-22 22:42 ` jason at gcc dot gnu dot org
2006-09-22 22:54 ` vapier at gentoo dot org
` (2 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: jason at gcc dot gnu dot org @ 2006-09-22 22:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #24 from jason at gcc dot gnu dot org 2006-09-22 22:42 -------
This has been fixed for a while.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13685
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/13685] Building simple test application with -march=pentium3 -Os gives SIGSEGV (unaligned sse instruction)
[not found] <bug-13685-7709@http.gcc.gnu.org/bugzilla/>
` (11 preceding siblings ...)
2006-09-22 22:42 ` jason at gcc dot gnu dot org
@ 2006-09-22 22:54 ` vapier at gentoo dot org
2006-09-23 8:23 ` agner at agner dot org
2007-07-23 0:07 ` vda dot linux at googlemail dot com
14 siblings, 0 replies; 16+ messages in thread
From: vapier at gentoo dot org @ 2006-09-22 22:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #25 from vapier at gentoo dot org 2006-09-22 22:54 -------
is forcing the alignment to an even larger value really the fix ? is there no
way to do such things on the fly ? after all, if someone turns around and
tries to do a custom alignment on the stack that is larger than 16 bytes, that
will fail (but i guess this issue will be handled at PR28069 ?)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13685
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/13685] Building simple test application with -march=pentium3 -Os gives SIGSEGV (unaligned sse instruction)
[not found] <bug-13685-7709@http.gcc.gnu.org/bugzilla/>
` (12 preceding siblings ...)
2006-09-22 22:54 ` vapier at gentoo dot org
@ 2006-09-23 8:23 ` agner at agner dot org
2007-07-23 0:07 ` vda dot linux at googlemail dot com
14 siblings, 0 replies; 16+ messages in thread
From: agner at agner dot org @ 2006-09-23 8:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #26 from agner at agner dot org 2006-09-23 08:23 -------
Thank you for fixing this, but you need to tell the world which solution you
have chosen. Please see the discussion at the dublicate bug
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27537 for arguments for and against
each possible solution.
You need to specify whether the chosen solution is to enforce 16 byte stack
alignment regardless of -Os option or the solution is to make no assumption
about stack alignment when making XMM code. This is an ABI issue that has to be
standardized and made public. The makers of the Intel compiler are waiting for
a resolution to this issue so that they can make their compiler compatible with
GCC. For the same reason, assembly programmers need to know whether stack
alignment is required or not.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13685
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/13685] Building simple test application with -march=pentium3 -Os gives SIGSEGV (unaligned sse instruction)
[not found] <bug-13685-7709@http.gcc.gnu.org/bugzilla/>
` (13 preceding siblings ...)
2006-09-23 8:23 ` agner at agner dot org
@ 2007-07-23 0:07 ` vda dot linux at googlemail dot com
14 siblings, 0 replies; 16+ messages in thread
From: vda dot linux at googlemail dot com @ 2007-07-23 0:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #27 from vda dot linux at googlemail dot com 2007-07-23 00:06 -------
May I point that alternative solution (to align stack _in the function which
needs it_) doesn't crash if called by code generated by old or new gcc, and
also gives smaller, faster and less stack consuming code for all people who do
not do any SSE stuff?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13685
^ permalink raw reply [flat|nested] 16+ messages in thread