s390-common.c (s390_option_optimization_table): Enable -fsched-pressure using -fsched-pressure-algorithm=model by default when...

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
This commit is contained in:
Ulrich Weigand 2012-05-02 20:56:44 +00:00 committed by Ulrich Weigand
parent d282264edf
commit aefa216b7e
4 changed files with 17 additions and 1 deletions

View 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

View 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 },

View 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

View 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);
}