]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
s390-common.c (s390_option_optimization_table): Enable -fsched-pressure using -fsched...
authorUlrich Weigand <ulrich.weigand@linaro.org>
Wed, 2 May 2012 20:56:44 +0000 (20:56 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Wed, 2 May 2012 20:56:44 +0000 (20:56 +0000)
2012-05-02  Ulrich Weigand  <ulrich.weigand@linaro.org>

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".

From-SVN: r187064

gcc/ChangeLog
gcc/common/config/s390/s390-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/s390/20030123-1.c

index 8367cb6af25c0147fb84a13b87497a95d73b8472..4d945c4e1f6238ef3cecb88c40c880e6199fb486 100644 (file)
@@ -1,3 +1,9 @@
+2012-05-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+       * 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  <mjambor@suse.cz>
 
        PR lto/52605
index 98b5c283aaadaad687f4c0844c9dfd02ead6b1d0..4d364283ae31afbdcf96e14e36b2b06c854bbd10 100644 (file)
@@ -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 },
 
index 4f831b1cecf892e7e702fde6dff0f58e159faaae..1ed2b0b66e5a2e7ec8de64376495417a99a6ea66 100644 (file)
@@ -1,3 +1,7 @@
+2012-05-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+       * gcc.target/s390/20030123-1.c: Add missing "volatile".
+
 2012-05-02  Martin Jambor  <mjambor@suse.cz>
 
        PR lto/52605
index 96ac6f76ced4758bcee72d9f2e331bb5815c62d9..c426866fd5a6bf3f13f5cb37f9f785802aa55795 100644 (file)
@@ -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);
 }