* [Bug middle-end/39315] Unaligned move used on aligned stack variable
2009-02-26 16:57 [Bug middle-end/39315] New: Unaligned move used on aligned stack variable hjl dot tools at gmail dot com
@ 2009-02-26 17:00 ` hjl dot tools at gmail dot com
2009-02-26 17:01 ` hjl dot tools at gmail dot com
` (13 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-02-26 17:00 UTC (permalink / raw)
To: gcc-bugs
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39315
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug middle-end/39315] Unaligned move used on aligned stack variable
2009-02-26 16:57 [Bug middle-end/39315] New: Unaligned move used on aligned stack variable hjl dot tools at gmail dot com
2009-02-26 17:00 ` [Bug middle-end/39315] " hjl dot tools at gmail dot com
@ 2009-02-26 17:01 ` hjl dot tools at gmail dot com
2009-02-26 17:13 ` hjl dot tools at gmail dot com
` (12 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-02-26 17:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from hjl dot tools at gmail dot com 2009-02-26 17:01 -------
Gcc 4.3 generates aligned move since it doesn't check the
alignment attribute.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39315
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug middle-end/39315] Unaligned move used on aligned stack variable
2009-02-26 16:57 [Bug middle-end/39315] New: Unaligned move used on aligned stack variable hjl dot tools at gmail dot com
2009-02-26 17:00 ` [Bug middle-end/39315] " hjl dot tools at gmail dot com
2009-02-26 17:01 ` hjl dot tools at gmail dot com
@ 2009-02-26 17:13 ` hjl dot tools at gmail dot com
2009-02-27 2:53 ` Joey dot ye at intel dot com
` (11 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-02-26 17:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from hjl dot tools at gmail dot com 2009-02-26 17:13 -------
Created an attachment (id=17368)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17368&action=view)
A patch
Does this patch make sense?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39315
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug middle-end/39315] Unaligned move used on aligned stack variable
2009-02-26 16:57 [Bug middle-end/39315] New: Unaligned move used on aligned stack variable hjl dot tools at gmail dot com
` (2 preceding siblings ...)
2009-02-26 17:13 ` hjl dot tools at gmail dot com
@ 2009-02-27 2:53 ` Joey dot ye at intel dot com
2009-02-27 3:37 ` hjl dot tools at gmail dot com
` (10 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Joey dot ye at intel dot com @ 2009-02-27 2:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from Joey dot ye at intel dot com 2009-02-27 02:53 -------
(In reply to comment #2)
> Created an attachment (id=17368)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17368&action=view) [edit]
> A patch
> Does this patch make sense?
It works fine.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39315
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug middle-end/39315] Unaligned move used on aligned stack variable
2009-02-26 16:57 [Bug middle-end/39315] New: Unaligned move used on aligned stack variable hjl dot tools at gmail dot com
` (3 preceding siblings ...)
2009-02-27 2:53 ` Joey dot ye at intel dot com
@ 2009-02-27 3:37 ` hjl dot tools at gmail dot com
2009-02-28 0:03 ` hjl dot tools at gmail dot com
` (9 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-02-27 3:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from hjl dot tools at gmail dot com 2009-02-27 03:37 -------
(In reply to comment #3)
> (In reply to comment #2)
> > Created an attachment (id=17368)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17368&action=view) [edit]
> > A patch
> > Does this patch make sense?
> It works fine.
>
It failed for me in libgcc during bootstrap on Linux/ia32.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39315
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug middle-end/39315] Unaligned move used on aligned stack variable
2009-02-26 16:57 [Bug middle-end/39315] New: Unaligned move used on aligned stack variable hjl dot tools at gmail dot com
` (4 preceding siblings ...)
2009-02-27 3:37 ` hjl dot tools at gmail dot com
@ 2009-02-28 0:03 ` hjl dot tools at gmail dot com
2009-02-28 2:04 ` hjl dot tools at gmail dot com
` (8 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-02-28 0:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from hjl dot tools at gmail dot com 2009-02-28 00:03 -------
Created an attachment (id=17373)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17373&action=view)
A new patch
This patch may work better.
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #17368|0 |1
is obsolete| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39315
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug middle-end/39315] Unaligned move used on aligned stack variable
2009-02-26 16:57 [Bug middle-end/39315] New: Unaligned move used on aligned stack variable hjl dot tools at gmail dot com
` (5 preceding siblings ...)
2009-02-28 0:03 ` hjl dot tools at gmail dot com
@ 2009-02-28 2:04 ` hjl dot tools at gmail dot com
2009-02-28 18:41 ` hjl dot tools at gmail dot com
` (7 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-02-28 2:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from hjl dot tools at gmail dot com 2009-02-28 02:03 -------
Created an attachment (id=17375)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17375&action=view)
An updated patch
When align == 0, we should align variable to STACK_BOUNDARY.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39315
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug middle-end/39315] Unaligned move used on aligned stack variable
2009-02-26 16:57 [Bug middle-end/39315] New: Unaligned move used on aligned stack variable hjl dot tools at gmail dot com
` (6 preceding siblings ...)
2009-02-28 2:04 ` hjl dot tools at gmail dot com
@ 2009-02-28 18:41 ` hjl dot tools at gmail dot com
2009-02-28 18:55 ` hjl at gcc dot gnu dot org
` (6 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-02-28 18:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from hjl dot tools at gmail dot com 2009-02-28 18:41 -------
A patch is posted at
http://gcc.gnu.org/ml/gcc-patches/2009-02/msg01267.html
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2009-
| |02/msg01267.html
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39315
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug middle-end/39315] Unaligned move used on aligned stack variable
2009-02-26 16:57 [Bug middle-end/39315] New: Unaligned move used on aligned stack variable hjl dot tools at gmail dot com
` (7 preceding siblings ...)
2009-02-28 18:41 ` hjl dot tools at gmail dot com
@ 2009-02-28 18:55 ` hjl at gcc dot gnu dot org
2009-03-27 22:38 ` hjl at gcc dot gnu dot org
` (5 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: hjl at gcc dot gnu dot org @ 2009-02-28 18:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from hjl at gcc dot gnu dot org 2009-02-28 18:55 -------
Subject: Bug 39315
Author: hjl
Date: Sat Feb 28 18:55:06 2009
New Revision: 144492
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144492
Log:
gcc/
2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/39315
* cfgexpand.c (expand_one_stack_var_at): Change alignment
limit to MAX_SUPPORTED_STACK_ALIGNMENT.
gcc/testsuite/
2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/39315
* gcc.target/i386/pr39315-1.c: New.
* gcc.target/i386/pr39315-2.c: Likewise.
* gcc.target/i386/pr39315-3.c: Likewise.
* gcc.target/i386/pr39315-4.c: Likewise.
* gcc.target/i386/pr39315-check.c: Likewise.
Added:
branches/stack/gcc/testsuite/gcc.target/i386/pr39315-1.c
branches/stack/gcc/testsuite/gcc.target/i386/pr39315-2.c
branches/stack/gcc/testsuite/gcc.target/i386/pr39315-3.c
branches/stack/gcc/testsuite/gcc.target/i386/pr39315-4.c
branches/stack/gcc/testsuite/gcc.target/i386/pr39315-check.c
Modified:
branches/stack/gcc/ChangeLog.stackalign
branches/stack/gcc/cfgexpand.c
branches/stack/gcc/testsuite/ChangeLog.stackalign
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39315
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug middle-end/39315] Unaligned move used on aligned stack variable
2009-02-26 16:57 [Bug middle-end/39315] New: Unaligned move used on aligned stack variable hjl dot tools at gmail dot com
` (8 preceding siblings ...)
2009-02-28 18:55 ` hjl at gcc dot gnu dot org
@ 2009-03-27 22:38 ` hjl at gcc dot gnu dot org
2009-04-16 18:33 ` pinskia 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 @ 2009-03-27 22:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from hjl at gcc dot gnu dot org 2009-03-27 22:37 -------
Subject: Bug 39315
Author: hjl
Date: Fri Mar 27 22:37:39 2009
New Revision: 145138
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145138
Log:
gcc/
2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/39315
* cfgexpand.c (expand_one_stack_var_at): Change alignment
limit to MAX_SUPPORTED_STACK_ALIGNMENT.
gcc/testsuite/
2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/39315
* gcc.target/i386/pr39315-1.c: New.
* gcc.target/i386/pr39315-2.c: Likewise.
* gcc.target/i386/pr39315-3.c: Likewise.
* gcc.target/i386/pr39315-4.c: Likewise.
* gcc.target/i386/pr39315-check.c: Likewise.
Added:
trunk/gcc/testsuite/gcc.target/i386/pr39315-1.c
trunk/gcc/testsuite/gcc.target/i386/pr39315-2.c
trunk/gcc/testsuite/gcc.target/i386/pr39315-3.c
trunk/gcc/testsuite/gcc.target/i386/pr39315-4.c
trunk/gcc/testsuite/gcc.target/i386/pr39315-check.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cfgexpand.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39315
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug middle-end/39315] Unaligned move used on aligned stack variable
2009-02-26 16:57 [Bug middle-end/39315] New: Unaligned move used on aligned stack variable hjl dot tools at gmail dot com
` (9 preceding siblings ...)
2009-03-27 22:38 ` hjl at gcc dot gnu dot org
@ 2009-04-16 18:33 ` pinskia at gcc dot gnu dot org
2009-07-23 13:43 ` hjl dot tools at gmail dot com
` (3 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-04-16 18:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from pinskia at gcc dot gnu dot org 2009-04-16 18:33 -------
Stop setting the target milestone unless it is a regression.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.5.0 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39315
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug middle-end/39315] Unaligned move used on aligned stack variable
2009-02-26 16:57 [Bug middle-end/39315] New: Unaligned move used on aligned stack variable hjl dot tools at gmail dot com
` (10 preceding siblings ...)
2009-04-16 18:33 ` pinskia at gcc dot gnu dot org
@ 2009-07-23 13:43 ` hjl dot tools at gmail dot com
2009-10-31 16:58 ` hjl at gcc dot gnu dot org
` (2 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-07-23 13:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from hjl dot tools at gmail dot com 2009-07-23 13:43 -------
*** Bug 40838 has been marked as a duplicate of this bug. ***
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikulas at artax dot karlin
| |dot mff dot cuni dot cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39315
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug middle-end/39315] Unaligned move used on aligned stack variable
2009-02-26 16:57 [Bug middle-end/39315] New: Unaligned move used on aligned stack variable hjl dot tools at gmail dot com
` (11 preceding siblings ...)
2009-07-23 13:43 ` hjl dot tools at gmail dot com
@ 2009-10-31 16:58 ` hjl at gcc dot gnu dot org
2010-02-20 1:06 ` hjl dot tools at gmail dot com
2010-02-20 14:09 ` rguenth at gcc dot gnu dot org
14 siblings, 0 replies; 16+ messages in thread
From: hjl at gcc dot gnu dot org @ 2009-10-31 16:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from hjl at gcc dot gnu dot org 2009-10-31 16:58 -------
Subject: Bug 39315
Author: hjl
Date: Sat Oct 31 16:58:17 2009
New Revision: 153780
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=153780
Log:
gcc/
2009-10-31 H.J. Lu <hongjiu.lu@intel.com>
Backport from mainline:
2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/39315
* cfgexpand.c (expand_one_stack_var_at): Change alignment
limit to MAX_SUPPORTED_STACK_ALIGNMENT.
gcc/testsuite/
2009-10-31 H.J. Lu <hongjiu.lu@intel.com>
Backport from mainline:
2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/39315
* gcc.target/i386/pr39315-1.c: New.
* gcc.target/i386/pr39315-2.c: Likewise.
* gcc.target/i386/pr39315-3.c: Likewise.
* gcc.target/i386/pr39315-4.c: Likewise.
* gcc.target/i386/pr39315-check.c: Likewise.
Added:
branches/ix86/gcc-4_4-branch/gcc/testsuite/gcc.target/i386/pr39315-1.c
branches/ix86/gcc-4_4-branch/gcc/testsuite/gcc.target/i386/pr39315-2.c
branches/ix86/gcc-4_4-branch/gcc/testsuite/gcc.target/i386/pr39315-3.c
branches/ix86/gcc-4_4-branch/gcc/testsuite/gcc.target/i386/pr39315-4.c
branches/ix86/gcc-4_4-branch/gcc/testsuite/gcc.target/i386/pr39315-check.c
Modified:
branches/ix86/gcc-4_4-branch/gcc/ChangeLog.ix86
branches/ix86/gcc-4_4-branch/gcc/cfgexpand.c
branches/ix86/gcc-4_4-branch/gcc/testsuite/ChangeLog.ix86
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39315
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug middle-end/39315] Unaligned move used on aligned stack variable
2009-02-26 16:57 [Bug middle-end/39315] New: Unaligned move used on aligned stack variable hjl dot tools at gmail dot com
` (12 preceding siblings ...)
2009-10-31 16:58 ` hjl at gcc dot gnu dot org
@ 2010-02-20 1:06 ` hjl dot tools at gmail dot com
2010-02-20 14:09 ` rguenth at gcc dot gnu dot org
14 siblings, 0 replies; 16+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-02-20 1:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #13 from hjl dot tools at gmail dot com 2010-02-20 01:05 -------
*** Bug 43124 has been marked as a duplicate of this bug. ***
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kai dot germaschewski at
| |gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39315
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug middle-end/39315] Unaligned move used on aligned stack variable
2009-02-26 16:57 [Bug middle-end/39315] New: Unaligned move used on aligned stack variable hjl dot tools at gmail dot com
` (13 preceding siblings ...)
2010-02-20 1:06 ` hjl dot tools at gmail dot com
@ 2010-02-20 14:09 ` rguenth at gcc dot gnu dot org
14 siblings, 0 replies; 16+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-02-20 14:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #14 from rguenth at gcc dot gnu dot org 2010-02-20 14:08 -------
On trunk I get:
foo:
subl $44, %esp
movl 48(%esp), %eax
movaps (%eax), %xmm0
leal 16(%esp), %eax
movl %eax, (%esp)
movaps %xmm0, 16(%esp)
call bar
addl $44, %esp
ret
thus, fixed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Known to work| |4.5.0
Resolution| |FIXED
Target Milestone|--- |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39315
^ permalink raw reply [flat|nested] 16+ messages in thread