public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/24691] New: attribute aligned is silently ignored or program is miscompiled
@ 2005-11-06 6:06 sabre at nondot dot org
2005-11-06 6:11 ` [Bug middle-end/24691] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: sabre at nondot dot org @ 2005-11-06 6:06 UTC (permalink / raw)
To: gcc-bugs
This program shows a bug: either attribute align is being accepted when it
shouldn't be, or it is being accepted but not doing it's job:
int foo() {
int __attribute__((aligned(1024))) X;
printf("%d\n", (int)&X & 1023);
}
int main() {
foo();
}
On my machine, this prints "752".
-Chris
--
Summary: attribute aligned is silently ignored or program is
miscompiled
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sabre at nondot dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24691
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug middle-end/24691] attribute aligned is silently ignored or program is miscompiled
2005-11-06 6:06 [Bug c/24691] New: attribute aligned is silently ignored or program is miscompiled sabre at nondot dot org
@ 2005-11-06 6:11 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-06 6:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2005-11-06 06:11 -------
Local variables is the only issue.
*** This bug has been marked as a duplicate of 16660 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24691
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-11-06 6:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-06 6:06 [Bug c/24691] New: attribute aligned is silently ignored or program is miscompiled sabre at nondot dot org
2005-11-06 6:11 ` [Bug middle-end/24691] " pinskia at gcc dot gnu dot org
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).