blob: 8d1a3bd7243ea60047832f2d081c50b52d62db50 [file] [log] [blame]
/* Test that setting -Os in a function attribute works. */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-rtl-bbro" } */
extern void f1 ();
extern int f2 ();
__attribute__ ((__optimize__ ("O2")))
void
f3()
{
}
__attribute__ ((__optimize__ ("-Os", "-falign-functions", "-falign-jumps", "-falign-labels", "-falign-loops", "-fno-inline-functions", "-foptimize-strlen")))
int
f4 () {
if (f2 () == 0) {
f1 ();
}
return 0;
}
/* { dg-final { scan-rtl-dump-not "Duplicated bb" "bbro" } } */