arm/gcc: Tighten checks in check_effective_target_freorder
authorAndrew Burgess <andrew.burgess@embecosm.com>
Wed, 30 Nov 2016 11:38:46 +0000 (11:38 +0000)
committerAndrew Burgess <aburgess@gcc.gnu.org>
Wed, 30 Nov 2016 11:38:46 +0000 (11:38 +0000)
commitcc46bc434015f59862e9905c98e9226d3bb1a6d1
tree012a743dab7490f57b4aea335d87806cf990875d
parent6c8bf066581fe8bbd53e5967a49b6edd622f63b8
arm/gcc: Tighten checks in check_effective_target_freorder

In check_effective_target_freorder we check to see if the target
supports -freorder-blocks-and-partition.  However we disable
-freorder-blocks-and-partition when -fprofile-use is not supplied so for
some targets we'll not see any message about lack of support for
-freorder-blocks-and-partition unless -fprofile-use is also passed.

This commit extends check_effective_target_freorder to first try
-freorder-blocks-and-partition on its own, then try -fprofile-use and
-freorder-blocks-and-partition.

gcc/testsuite/ChangeLog:

* lib/target-supports.exp (check_effective_target_freorder): Check
additional case.

From-SVN: r243009
gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp