This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/25957] -fstack-protector code on i386/x86-64 can be improved.
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jan 2006 14:43:20 -0000
- Subject: [Bug middle-end/25957] -fstack-protector code on i386/x86-64 can be improved.
- References: <bug-25957-7834@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from pinskia at gcc dot gnu dot org 2006-01-25 14:43 -------
The alignment does nothing, repeat nothing even if it is not executed that
much, it does not change anything because it is last in the function. Try
compiling more than this simple example and you will see that it always last
for the emitted asm. Use -fno-align-jumps which is not default on x86.
And as I have mentioned before jumping directly to the other function is not
useful at all (I already filed that bug and was shot down by RTH).
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25957