aboutsummaryrefslogtreecommitdiff
path: root/gcc/common/config
diff options
context:
space:
mode:
authorJoern Rennecke <joern.rennecke@embecosm.com>2014-04-11 18:40:04 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>2014-04-11 19:40:04 +0100
commitd9bb58007e769e747896eb134370d08d8e250123 (patch)
treebd2ddc451cd395bd4cbcd63344363a4cedf06d81 /gcc/common/config
parentb5d0ecea7981806ffb1277f3087b242104722d36 (diff)
downloadgcc-d9bb58007e769e747896eb134370d08d8e250123.zip
gcc-d9bb58007e769e747896eb134370d08d8e250123.tar.gz
gcc-d9bb58007e769e747896eb134370d08d8e250123.tar.bz2
gcc:
* common/config/epiphany/epiphany-common.c (epiphany_option_optimization_table): Enable section anchors by default at -O1 or higher. * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define. (TARGET_MIN_ANCHOR_OFFSET): Likewise. (epiphany_rtx_costs) <SET>: For binary operators, the set as such carries no extra cost. (epiphany_legitimate_address_p): For BLKmode, apply SImode check. * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define. * config/epiphany/predicates.md (memclob_operand): New predicate. * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str): Use memclob_operand predicate and X constraint for operand 3. gcc/testsuite: * gcc.target/epiphany/t1068-2.c: New file. From-SVN: r209320
Diffstat (limited to 'gcc/common/config')
-rw-r--r--gcc/common/config/epiphany/epiphany-common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/common/config/epiphany/epiphany-common.c b/gcc/common/config/epiphany/epiphany-common.c
index 725dfb8..23d372e 100644
--- a/gcc/common/config/epiphany/epiphany-common.c
+++ b/gcc/common/config/epiphany/epiphany-common.c
@@ -39,6 +39,8 @@ along with GCC; see the file COPYING3. If not see
static const struct default_options epiphany_option_optimization_table[] =
{
{ OPT_LEVELS_1_PLUS, OPT_fomit_frame_pointer, NULL, 1 },
+ /* Enable section anchors by default at -O1 or higher. */
+ { OPT_LEVELS_1_PLUS, OPT_fsection_anchors, NULL, 1 },
{ OPT_LEVELS_NONE, 0, NULL, 0 }
};