From: David Edelsohn Date: Wed, 19 Feb 2003 15:54:30 +0000 (-0500) Subject: [multiple changes] X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2792d578a616450757c53031a5faeb3c662e4d2b;p=gcc.git [multiple changes] 2003-02-19 David Edelsohn * config/rs6000/rs6000.c (rs6000_override_options): Initialize align_jumps_max_skip and align_loops_max_skip. 2003-02-19 Thierry Moreau * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not test size if named section. From-SVN: r63116 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b73eac64078..23a97ea136f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2003-02-19 David Edelsohn + + * config/rs6000/rs6000.c (rs6000_override_options): Initialize + align_jumps_max_skip and align_loops_max_skip. + +2003-02-19 Thierry Moreau + + * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not + test size if named section. + 2003-02-19 Daniel Jacobowitz * expr.c (expand_expr): Use gen_int_mode for the argument diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 9920534ef4e..500af598e99 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -753,6 +753,10 @@ rs6000_override_options (default_cpu) targetm.asm_out.unaligned_op.di = NULL; } + /* Set maximum branch target alignment at two instructions, eight bytes. */ + align_jumps_max_skip = 8; + align_loops_max_skip = 8; + /* Arrange to save and restore machine status around nested functions. */ init_machine_status = rs6000_init_machine_status; } @@ -12670,20 +12674,20 @@ rs6000_elf_encode_section_info (decl, first) abort (); } - if ((size > 0 && size <= g_switch_value) - || (name - && ((len == sizeof (".sdata") - 1 - && strcmp (name, ".sdata") == 0) - || (len == sizeof (".sdata2") - 1 - && strcmp (name, ".sdata2") == 0) - || (len == sizeof (".sbss") - 1 - && strcmp (name, ".sbss") == 0) - || (len == sizeof (".sbss2") - 1 - && strcmp (name, ".sbss2") == 0) - || (len == sizeof (".PPC.EMB.sdata0") - 1 - && strcmp (name, ".PPC.EMB.sdata0") == 0) - || (len == sizeof (".PPC.EMB.sbss0") - 1 - && strcmp (name, ".PPC.EMB.sbss0") == 0)))) + if (name + ? ((len == sizeof (".sdata") - 1 + && strcmp (name, ".sdata") == 0) + || (len == sizeof (".sdata2") - 1 + && strcmp (name, ".sdata2") == 0) + || (len == sizeof (".sbss") - 1 + && strcmp (name, ".sbss") == 0) + || (len == sizeof (".sbss2") - 1 + && strcmp (name, ".sbss2") == 0) + || (len == sizeof (".PPC.EMB.sdata0") - 1 + && strcmp (name, ".PPC.EMB.sdata0") == 0) + || (len == sizeof (".PPC.EMB.sbss0") - 1 + && strcmp (name, ".PPC.EMB.sbss0") == 0)) + : (size > 0 && size <= g_switch_value)) { size_t len = strlen (XSTR (sym_ref, 0)); char *str = alloca (len + 2);