This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/19111] Alignment ignored if optimizing for size
- From: "rth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Dec 2004 17:26:00 -0000
- Subject: [Bug inline-asm/19111] Alignment ignored if optimizing for size
- References: <20041221163142.19111.alonsoschaich@gmx.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From rth at gcc dot gnu dot org 2004-12-21 17:25 -------
If movaps crashes in main, it means your libc is broken and isn't aligning
the stack before main. GCC does add some code to main to realign the end
of the stack, but that doesn't help main itself. You'd have to move your
code to a new function like so:
static int __attribute__((noinline)) main1 (int ac, char **av)
{
/* whatever */
}
int main(int ac, char **av)
{
return main1(ac, av);
}
In either case, gcc has done all it can do.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19111