This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/70064] Wrong code with custom flags and quite big testcase @ i686
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 07 Mar 2016 20:00:04 +0000
- Subject: [Bug target/70064] Wrong code with custom flags and quite big testcase @ i686
- Auto-submitted: auto-generated
- References: <bug-70064-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70064
--- Comment #12 from UroÅ Bizjak <ubizjak at gmail dot com> ---
(In reply to Jakub Jelinek from comment #5)
> So, shall we silently disable -mred-zone for -fpic/-fPIE in 32-bit code?
> Or error out in that combination?
> Or disable it only if we need PIC pointer?
> What about other cases where one can have calls in leaf functions (say the
> various -p/-mfentry cases, or are those considered non-leaf)?
> Or is this simply a user error?
FTR, the patch disables redzone when call to pc thunk is emitted in the current
function.
mcount and __fentry__ are called before redzone is accessed, so they are safe.