[Bug target/6737] feature request: stack realignment attribute
egallager at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 2 12:49:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=6737
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
CC| |egallager at gcc dot gnu.org
--- Comment #6 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #5)
> Patch for this was posted:
> http://gcc.gnu.org/ml/gcc-patches/2006-02/msg01073.html
The -mstackrealign option and the force_align_arg_pointer attribute from this
patch have both been added; -mstackrealign doesn't work with
__attribute__((target(""))) though:
$ cat 6737.c && /usr/local/bin/gcc -c 6737.c
void foo(void) __attribute__((__target__("stackrealign")));
void foo(void)
{
// ...
}
void __attribute__((force_align_arg_pointer)) bar(void *baz)
{
// ...
}
6737.c:1:1: error: attribute(target("stackrealign")) is unknown
void foo(void) __attribute__((__target__("stackrealign")));
^~~~
$
More information about the Gcc-bugs
mailing list