From 3d3bdc6767ed80795145a2b32be0197ae17dfd66 Mon Sep 17 00:00:00 2001 From: Senthil Kumar Selvaraj Date: Tue, 18 Sep 2012 19:42:13 +0000 Subject: [PATCH] target-supports-dg.exp (check-flags): Add cflags from board config to compiler_flags. 2012-09-18 Senthil Kumar Selvaraj * lib/target-supports-dg.exp (check-flags): Add cflags from board config to compiler_flags. From-SVN: r191444 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/lib/target-supports-dg.exp | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 40efded3f37..71ff3692fc8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-09-18 Senthil Kumar Selvaraj + + * lib/target-supports-dg.exp (check-flags): Add cflags from board + config to compiler_flags. + 2012-09-18 Jakub Jelinek PR target/54592 diff --git a/gcc/testsuite/lib/target-supports-dg.exp b/gcc/testsuite/lib/target-supports-dg.exp index 2f6c4c2ce83..5ee4b10ca8f 100644 --- a/gcc/testsuite/lib/target-supports-dg.exp +++ b/gcc/testsuite/lib/target-supports-dg.exp @@ -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] " } -- 2.30.2