Commit a53cb18d by Sudakshina Das Committed by Kyrylo Tkachov

[ARM] Fix more -Wreturn-type fallout

This patch fixes a couple of more tests that are giving out warnings with -Wreturn-type:
- g++.dg/ext/pr57735.C
- gcc.target/arm/pr54300.C

*** gcc/testsuite/ChangeLog ***

2017-11-10  Sudakshina Das  <sudi.das@arm.com>

        * g++.dg/ext/pr57735.C: Add -Wno-return-type for test.
        * gcc.target/arm/pr54300.C (main): Add return type and
        return a value.

From-SVN: r254773
parent 519fdbb5
2017-11-15 Sudakshina Das <sudi.das@arm.com>
* g++.dg/ext/pr57735.C: Add -Wno-return-type for test.
* gcc.target/arm/pr54300.C (main): Add return type and
return a value.
2017-11-15 Tom de Vries <tom@codesourcery.com> 2017-11-15 Tom de Vries <tom@codesourcery.com>
* gcc.dg/strncpy-fix-1.c: Add -Wno-stringop-truncation to dg-options. * gcc.dg/strncpy-fix-1.c: Add -Wno-stringop-truncation to dg-options.
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
/* { dg-require-effective-target arm_arch_v5te_ok } */ /* { dg-require-effective-target arm_arch_v5te_ok } */
/* { dg-require-effective-target arm_arm_ok } */ /* { dg-require-effective-target arm_arm_ok } */
/* { dg-skip-if "do not override -mfloat-abi" { *-*-* } { "-mfloat-abi=*" } {"-mfloat-abi=soft" } } */ /* { dg-skip-if "do not override -mfloat-abi" { *-*-* } { "-mfloat-abi=*" } {"-mfloat-abi=soft" } } */
/* { dg-options "-march=armv5te -marm -mtune=xscale -mfloat-abi=soft -O1" } */ /* { dg-options "-march=armv5te -marm -mtune=xscale -mfloat-abi=soft -O1 -Wno-return-type" } */
typedef unsigned int size_t; typedef unsigned int size_t;
__extension__ __extension__
......
...@@ -51,6 +51,7 @@ test(unsigned short *_Inp, int32_t *_Out, ...@@ -51,6 +51,7 @@ test(unsigned short *_Inp, int32_t *_Out,
vst1q_s32( _Out, c ); vst1q_s32( _Out, c );
} }
int
main() main()
{ {
unsigned short a[4] = {1, 2, 3, 4}; unsigned short a[4] = {1, 2, 3, 4};
...@@ -58,4 +59,5 @@ main() ...@@ -58,4 +59,5 @@ main()
test(a, b, 1, 1, ~0); test(a, b, 1, 1, ~0);
if (b[0] != 1 || b[1] != 2 || b[2] != 3 || b[3] != 4) if (b[0] != 1 || b[1] != 2 || b[2] != 3 || b[3] != 4)
abort(); abort();
return 0;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment