Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Unified Diff: gcc/config/i386/i386.c

Side-by-side diff isn't available for this file because of its large size.
Issue 6995077: Get rid of bundle size controls in gcc (Closed) Base URL: http://git.chromium.org/native_client/nacl-gcc.git@master
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « no previous file | gcc/config/nacl.opt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/config/i386/i386.c
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 01310a41ecd426dc32cd47dba90ed01ef7665e61..2ee95d380b70b903ab2098a1f5228b6c115430ae 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -2598,6 +2598,13 @@ override_options (bool main_args_p)
sw = "attribute";
}
+ if (TARGET_NACL)
+ {
+ align_jumps = 32;
+ align_labels = 32;
+ align_functions = 32;
+ }
+
#ifdef SUBTARGET_OVERRIDE_OPTIONS
SUBTARGET_OVERRIDE_OPTIONS;
#endif
@@ -7466,7 +7473,7 @@ ix86_file_end (void)
switch_to_section (get_named_section (decl, NULL, 0));
if (TARGET_NACL)
- fprintf (asm_out_file, ".p2align %d\n", NACL_ALIGN_POW2);
+ fprintf (asm_out_file, ".p2align %d\n", align_functions_log);
(*targetm.asm_out.globalize_label) (asm_out_file, name);
fputs ("\t.hidden\t", asm_out_file);
assemble_name (asm_out_file, name);
@@ -7477,7 +7484,7 @@ ix86_file_end (void)
{
switch_to_section (text_section);
if (TARGET_NACL)
- fprintf (asm_out_file, ".p2align %d\n", NACL_ALIGN_POW2);
+ fprintf (asm_out_file, ".p2align %d\n", align_functions_log);
ASM_OUTPUT_LABEL (asm_out_file, name);
}
« no previous file with comments | « no previous file | gcc/config/nacl.opt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698