]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
target-supports-dg.exp (check-flags): Add cflags from board config to compiler_flags.
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
Tue, 18 Sep 2012 19:42:13 +0000 (19:42 +0000)
committerJanis Johnson <janis@gcc.gnu.org>
Tue, 18 Sep 2012 19:42:13 +0000 (19:42 +0000)
2012-09-18  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>

* lib/target-supports-dg.exp (check-flags): Add cflags from board
config to compiler_flags.

From-SVN: r191444

gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports-dg.exp

index 40efded3f37c83d03436ce67842f5e09f669fd87..71ff3692fc86d0d41607902f21ab32350f8cb548 100644 (file)
@@ -1,3 +1,8 @@
+2012-09-18  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
+
+       * lib/target-supports-dg.exp (check-flags): Add cflags from board
+       config to compiler_flags.
+
 2012-09-18  Jakub Jelinek  <jakub@redhat.com>
 
        PR target/54592
index 2f6c4c2ce8359faa9f1fe5c76d84e32a1118916d..5ee4b10ca8f51a33b23ac3d4a849a30132105441 100644 (file)
@@ -304,6 +304,9 @@ proc check-flags { args } {
     # If running a subset of the test suite, $TEST_ALWAYS_FLAGS may not exist.
     catch {append compiler_flags " $TEST_ALWAYS_FLAGS "}
     set dest [target_info name]
+    if [board_info $dest exists cflags] {
+       append compiler_flags "[board_info $dest cflags] "
+    }
     if [board_info $dest exists multilib_flags] {
        append compiler_flags "[board_info $dest multilib_flags] "
     }