From e9f1fe8605d5c23f537bf6fd654a71a662037fd4 Mon Sep 17 00:00:00 2001 From: uweigand Date: Wed, 2 May 2012 20:56:44 +0000 Subject: [PATCH] 2012-05-02 Ulrich Weigand gcc/ * common/config/s390/s390-common.c (s390_option_optimization_table): Enable -fsched-pressure using -fsched-pressure-algorithm=model by default when optimizing. gcc/testsuite/ * gcc.target/s390/20030123-1.c: Add missing "volatile". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187064 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/common/config/s390/s390-common.c | 6 ++++++ gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.target/s390/20030123-1.c | 2 +- 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8367cb6af25..4d945c4e1f6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2012-05-02 Ulrich Weigand + + * common/config/s390/s390-common.c (s390_option_optimization_table): + Enable -fsched-pressure using -fsched-pressure-algorithm=model by + default when optimizing. + 2012-05-02 Martin Jambor PR lto/52605 diff --git a/gcc/common/config/s390/s390-common.c b/gcc/common/config/s390/s390-common.c index 98b5c283aaa..4d364283ae3 100644 --- a/gcc/common/config/s390/s390-common.c +++ b/gcc/common/config/s390/s390-common.c @@ -51,6 +51,12 @@ static const struct default_options s390_option_optimization_table[] = { { OPT_LEVELS_1_PLUS, OPT_fomit_frame_pointer, NULL, 1 }, + /* Enable -fsched-pressure using -fsched-pressure-algorithm=model + by default when optimizing. */ + { OPT_LEVELS_1_PLUS, OPT_fsched_pressure, NULL, 1 }, + { OPT_LEVELS_1_PLUS, OPT_fsched_pressure_algorithm_, + NULL, SCHED_PRESSURE_MODEL }, + /* ??? There are apparently still problems with -fcaller-saves. */ { OPT_LEVELS_ALL, OPT_fcaller_saves, NULL, 0 }, diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4f831b1cecf..1ed2b0b66e5 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2012-05-02 Ulrich Weigand + + * gcc.target/s390/20030123-1.c: Add missing "volatile". + 2012-05-02 Martin Jambor PR lto/52605 diff --git a/gcc/testsuite/gcc.target/s390/20030123-1.c b/gcc/testsuite/gcc.target/s390/20030123-1.c index 96ac6f76ced..c426866fd5a 100644 --- a/gcc/testsuite/gcc.target/s390/20030123-1.c +++ b/gcc/testsuite/gcc.target/s390/20030123-1.c @@ -12,7 +12,7 @@ void test (void) char *p = alloca (4096); long idx; - asm ("" : "=r" (idx) : : "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "12"); + asm volatile ("" : "=r" (idx) : : "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "12"); func (p + idx + 1); } -- 2.11.4.GIT