GCC Bugzilla – Attachment 47753 Details for
Bug 40838
gcc shouldn't assume that the stack is aligned
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
additional aligning on demand <10.0
sse-32-align-9.2.patch (text/plain), 1.33 KB, created by
Dzianis Kahanovich
on 2020-01-31 15:03:31 UTC
(
hide
)
Description:
additional aligning on demand <10.0
Filename:
MIME Type:
Creator:
Dzianis Kahanovich
Created:
2020-01-31 15:03:31 UTC
Size:
1.33 KB
patch
obsolete
>--- a/gcc/config/i386/i386.c 2019-08-01 09:29:22.000000000 +0300 >+++ b/gcc/config/i386/i386.c 2020-01-31 15:40:01.931932349 +0300 >@@ -4382,6 +4382,25 @@ ix86_option_override_internal (bool main > if (!opts_set->x_ix86_force_align_arg_pointer) > opts->x_ix86_force_align_arg_pointer = STACK_REALIGN_DEFAULT; > >+ /* 32-bit SSE need more align */ >+ if (!opts->x_ix86_force_align_arg_pointer >+ && !TARGET_64BIT_P(opts) && TARGET_SSE_P(opts) && !TARGET_SSE4A_P(opts) >+ && (opts->x_flag_vect_cost_model != VECT_COST_MODEL_CHEAP >+ || opts->x_flag_simd_cost_model != VECT_COST_MODEL_CHEAP)) >+ { >+ if (opts_set->x_ix86_force_align_arg_pointer) >+ { >+ if (!opts_set->x_flag_vect_cost_model) >+ opts_set->x_flag_vect_cost_model = VECT_COST_MODEL_CHEAP >+ if (!opts_set->x_flag_simd_cost_model) >+ opts_set->x_flag_vect_cost_model = VECT_COST_MODEL_CHEAP >+ } >+#if ENABLE_STACKREALIGN_ABI_VIOLATION >+ else >+ opts->x_ix86_force_align_arg_pointer = 1; >+#endif >+ } >+ > ix86_default_incoming_stack_boundary = PREFERRED_STACK_BOUNDARY; > > /* Validate -mincoming-stack-boundary= value or default it to >--- a/gcc/config/i386/t-i386 2019-01-14 13:47:09.000000000 +0300 >+++ b/gcc/config/i386/t-i386 2020-01-31 15:41:32.300737121 +0300 >@@ -18,1 +18,2 @@ > # <http://www.gnu.org/licenses/>. >+ >+TARGET_LIBGCC2_CFLAGS += -mno-stackrealign
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 40838
:
18276
|
18314
|
18393
|
18578
|
18579
|
18610
|
18611
|
18617
|
18618
|
18646
|
18655
|
18656
|
18805
|
47753
|
47754
|
47874