This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH][ARM] Fix thumb-bitfld1.c testcase.


Hi,

This patch fixes testcase thumb-bitfld1.c to be compiled without specifying C
standard.

Is patch ok for trunk and fsf-5?

gcc/testsuite

2015-07-21  Alex Velenko  <Alex.Velenko@arm.com>

        * gcc.target/arm/thumb-bitfld1.c (foo): Return type fixed.
---
 gcc/testsuite/gcc.target/arm/thumb-bitfld1.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/testsuite/gcc.target/arm/thumb-bitfld1.c b/gcc/testsuite/gcc.target/arm/thumb-bitfld1.c
index ee39887..37630f1 100644
--- a/gcc/testsuite/gcc.target/arm/thumb-bitfld1.c
+++ b/gcc/testsuite/gcc.target/arm/thumb-bitfld1.c
@@ -10,6 +10,8 @@ struct foo
   unsigned b28 : 1;
   unsigned rest : 28;
 };
+
+unsigned
 foo(a)
      struct foo a;
 {
-- 
1.8.1.2


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]