public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c/39373] New: attribute ((aligned)) for stack variables is ignored without warning @ 2009-03-05 2:38 balrogg at gmail dot com 2009-03-05 6:07 ` [Bug c/39373] " hjl dot tools at gmail dot com ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: balrogg at gmail dot com @ 2009-03-05 2:38 UTC (permalink / raw) To: gcc-bugs For a non-static local variable with __attribute__ ((aligned (0x40))) gcc 4.3.3 makes no attempt in the generated code to align the variable and emitts no warning about that. Same if the type has the attribute specified instead of the variable (the types I tried were an array of 6 uint64_t's or a struct containing the array as a member). -- Summary: attribute ((aligned)) for stack variables is ignored without warning Product: gcc Version: 4.3.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: balrogg at gmail dot com GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39373 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/39373] attribute ((aligned)) for stack variables is ignored without warning 2009-03-05 2:38 [Bug c/39373] New: attribute ((aligned)) for stack variables is ignored without warning balrogg at gmail dot com @ 2009-03-05 6:07 ` hjl dot tools at gmail dot com 2009-03-05 7:33 ` balrogg at gmail dot com ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: hjl dot tools at gmail dot com @ 2009-03-05 6:07 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from hjl dot tools at gmail dot com 2009-03-05 06:07 ------- Can you try if it works with gcc 4.4.0? -- hjl dot tools at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hjl dot tools at gmail dot | |com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39373 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/39373] attribute ((aligned)) for stack variables is ignored without warning 2009-03-05 2:38 [Bug c/39373] New: attribute ((aligned)) for stack variables is ignored without warning balrogg at gmail dot com 2009-03-05 6:07 ` [Bug c/39373] " hjl dot tools at gmail dot com @ 2009-03-05 7:33 ` balrogg at gmail dot com 2009-03-05 14:02 ` hjl dot tools at gmail dot com 2009-03-05 14:03 ` hjl dot tools at gmail dot com 3 siblings, 0 replies; 5+ messages in thread From: balrogg at gmail dot com @ 2009-03-05 7:33 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from balrogg at gmail dot com 2009-03-05 07:32 ------- Yes! I haven't executed it but correct assembly seems to be emitted for x86. Marking INVALID. -- balrogg at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39373 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/39373] attribute ((aligned)) for stack variables is ignored without warning 2009-03-05 2:38 [Bug c/39373] New: attribute ((aligned)) for stack variables is ignored without warning balrogg at gmail dot com 2009-03-05 6:07 ` [Bug c/39373] " hjl dot tools at gmail dot com 2009-03-05 7:33 ` balrogg at gmail dot com @ 2009-03-05 14:02 ` hjl dot tools at gmail dot com 2009-03-05 14:03 ` hjl dot tools at gmail dot com 3 siblings, 0 replies; 5+ messages in thread From: hjl dot tools at gmail dot com @ 2009-03-05 14:02 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from hjl dot tools at gmail dot com 2009-03-05 14:02 ------- Reopen it since it only works for x86 in gcc 4.4. -- hjl dot tools at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|INVALID | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39373 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/39373] attribute ((aligned)) for stack variables is ignored without warning 2009-03-05 2:38 [Bug c/39373] New: attribute ((aligned)) for stack variables is ignored without warning balrogg at gmail dot com ` (2 preceding siblings ...) 2009-03-05 14:02 ` hjl dot tools at gmail dot com @ 2009-03-05 14:03 ` hjl dot tools at gmail dot com 3 siblings, 0 replies; 5+ messages in thread From: hjl dot tools at gmail dot com @ 2009-03-05 14:03 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from hjl dot tools at gmail dot com 2009-03-05 14:02 ------- *** This bug has been marked as a duplicate of 16660 *** -- hjl dot tools at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39373 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-03-05 14:03 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2009-03-05 2:38 [Bug c/39373] New: attribute ((aligned)) for stack variables is ignored without warning balrogg at gmail dot com 2009-03-05 6:07 ` [Bug c/39373] " hjl dot tools at gmail dot com 2009-03-05 7:33 ` balrogg at gmail dot com 2009-03-05 14:02 ` hjl dot tools at gmail dot com 2009-03-05 14:03 ` hjl dot tools at gmail dot com
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).