Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 868059 Details for
Bug 1070288
gcc: enable -fstack-protector on AArch64
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
enable fstack-protector
gcc48-aarch64-enable-fstack-protector.patch (text/plain), 2.48 KB, created by
Kyle McMartin
on 2014-02-26 14:51:41 UTC
(
hide
)
Description:
enable fstack-protector
Filename:
MIME Type:
Creator:
Kyle McMartin
Created:
2014-02-26 14:51:41 UTC
Size:
2.48 KB
patch
obsolete
>commit 1ba4a1dbec24c9cf1c64122cf83a08f4f946521c >Author: clyon <clyon@138bc75d-0d04-0410-961f-82ee72b054a4> >Date: Wed Nov 13 10:11:00 2013 +0000 > > 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org> > > * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1. > * config/aarch64/aarch64.c (aarch64_initial_elimination_offset): > Update offset calculations. > > > > git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204737 138bc75d-0d04-0410-961f-82ee72b054a4 > >--- a/gcc/config/aarch64/aarch64.c >+++ b/gcc/config/aarch64/aarch64.c >@@ -2010,7 +2010,7 @@ aarch64_save_or_restore_callee_save_registers (HOST_WIDE_INT offset, > Establish the stack frame by decreasing the stack pointer with a > properly calculated size and, if necessary, create a frame record > filled with the values of LR and previous frame pointer. The >- current FP is also set up is it is in use. */ >+ current FP is also set up if it is in use. */ > > void > aarch64_expand_prologue (void) >@@ -4143,7 +4143,7 @@ aarch64_initial_elimination_offset (unsigned from, unsigned to) > return offset - crtl->outgoing_args_size; > > if (from == FRAME_POINTER_REGNUM) >- return cfun->machine->frame.saved_regs_size; >+ return cfun->machine->frame.saved_regs_size + get_frame_size (); > } > > if (to == STACK_POINTER_REGNUM) >@@ -4152,6 +4152,7 @@ aarch64_initial_elimination_offset (unsigned from, unsigned to) > { > HOST_WIDE_INT elim = crtl->outgoing_args_size > + cfun->machine->frame.saved_regs_size >+ + get_frame_size () > - cfun->machine->frame.fp_lr_offset; > elim = AARCH64_ROUND_UP (elim, STACK_BOUNDARY / BITS_PER_UNIT); > return elim; >diff --git a/gcc/config/aarch64/aarch64.h b/gcc/config/aarch64/aarch64.h >index 7a80e96..0333069 100644 >--- a/gcc/config/aarch64/aarch64.h >+++ b/gcc/config/aarch64/aarch64.h >@@ -443,7 +443,7 @@ enum reg_class > #define INDEX_REG_CLASS CORE_REGS > #define BASE_REG_CLASS POINTER_REGS > >-/* Register pairs used to eliminate unneeded registers that point intoi >+/* Register pairs used to eliminate unneeded registers that point into > the stack frame. */ > #define ELIMINABLE_REGS \ > { \ >@@ -484,7 +484,7 @@ extern enum aarch64_processor aarch64_tune; > /* Stack layout; function entry, exit and calling. */ > #define STACK_GROWS_DOWNWARD 1 > >-#define FRAME_GROWS_DOWNWARD 0 >+#define FRAME_GROWS_DOWNWARD 1 > > #define STARTING_FRAME_OFFSET 0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1070288
: 868059