From: Matthew Fortune Date: Wed, 5 Nov 2014 23:37:02 +0000 (+0000) Subject: Fix all MIPS test failures caused by implicit declaration/int warnings. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5fc841e5c607b3f3cf520413d10f31e93f401e57;p=gcc.git Fix all MIPS test failures caused by implicit declaration/int warnings. gcc/testsuite/ * gcc.target/mips/asm-1.c (bar): Add prototype. * gcc.target/mips/call-1.c (f, h): Add return type. * gcc.target/mips/call-5.c (f, h): Likewise. * gcc.target/mips/call-6.c (f, h): Likewise. * gcc.target/mips/call-3.c (f): Likewise. * gcc.target/mips/call-2.c (g): Add prototype. (f): Add return type. * gcc.target/mips/call-4.c: Likewise. * gcc.target/mips/code-readable-1.c (foo): Add type for x. * gcc.target/mips/code-readable-2.c (foo): Likewise. * gcc.target/mips/code-readable-3.c (foo): Likewise. * gcc.target/mips/code-readable-4.c (foo): Likewise. * gcc.target/mips/const-anchor-1.c (g): Add prototype. * gcc.target/mips/const-anchor-2.c (g): Likewise. * gcc.target/mips/const-anchor-3.c (g): Likewise. * gcc.target/mips/const-anchor-4.c (g): Likewise. * gcc.target/mips/interrupt_handler.c (t): Likewise. * gcc.target/mips/mips-nonpic/main-1.c (main): Add return type. * gcc.target/mips/mips-nonpic/main-2.c (main): Likewise. * gcc.target/mips/mips-nonpic/main-3.c (main): Likewise. * gcc.target/mips/mips-nonpic/main-4.c (main): Likewise. * gcc.target/mips/mips-nonpic/main-5.c (main): Likewise. * gcc.target/mips/mips-nonpic/main-6.c (main): Likewise. * gcc.target/mips/mips-nonpic/main-7.c (main): Likewise. * gcc.target/mips/mips-nonpic/main-8.c (main): Likewise. * gcc.target/mips/mips-nonpic/main-9.c (main): Likewise. * gcc.target/mips/mips-nonpic/main-10.c (main): Likewise. * gcc.target/mips/mips-nonpic/main-11.c (main): Likewise. * gcc.target/mips/mips-nonpic/main-12.c (main): Likewise. * gcc.target/mips/mips-nonpic/main-13.c (main): Likewise. * gcc.target/mips/mips-nonpic/main-14.c (main): Likewise. * gcc.target/mips/mips-nonpic/main-15.c (main): Likewise. * gcc.target/mips/mips-nonpic/main-16.c (main): Likewise. * gcc.target/mips/mips-nonpic/mips-nonpic.h (nonpic_call, nonpic_addr_call): Add prototype. (pic_call, pic_addr_call): Likewise. * gcc.target/mips/mips16e-extends.c (validate): Likewise. * gcc.target/mips/octeon-bbit-3.c (foo): Likewise. * gcc.target/mips/octeon-seq-4.c (h): Likewise. * gcc.target/mips/truncate-3.c (g): Add prototype. (f): Add return type. From-SVN: r217167 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a409380fcbd..04da2487e14 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,47 @@ +2014-11-05 Matthew Fortune + + * gcc.target/mips/asm-1.c (bar): Add prototype. + * gcc.target/mips/call-1.c (f, h): Add return type. + * gcc.target/mips/call-5.c (f, h): Likewise. + * gcc.target/mips/call-6.c (f, h): Likewise. + * gcc.target/mips/call-3.c (f): Likewise. + * gcc.target/mips/call-2.c (g): Add prototype. + (f): Add return type. + * gcc.target/mips/call-4.c: Likewise. + * gcc.target/mips/code-readable-1.c (foo): Add type for x. + * gcc.target/mips/code-readable-2.c (foo): Likewise. + * gcc.target/mips/code-readable-3.c (foo): Likewise. + * gcc.target/mips/code-readable-4.c (foo): Likewise. + * gcc.target/mips/const-anchor-1.c (g): Add prototype. + * gcc.target/mips/const-anchor-2.c (g): Likewise. + * gcc.target/mips/const-anchor-3.c (g): Likewise. + * gcc.target/mips/const-anchor-4.c (g): Likewise. + * gcc.target/mips/interrupt_handler.c (t): Likewise. + * gcc.target/mips/mips-nonpic/main-1.c (main): Add return type. + * gcc.target/mips/mips-nonpic/main-2.c (main): Likewise. + * gcc.target/mips/mips-nonpic/main-3.c (main): Likewise. + * gcc.target/mips/mips-nonpic/main-4.c (main): Likewise. + * gcc.target/mips/mips-nonpic/main-5.c (main): Likewise. + * gcc.target/mips/mips-nonpic/main-6.c (main): Likewise. + * gcc.target/mips/mips-nonpic/main-7.c (main): Likewise. + * gcc.target/mips/mips-nonpic/main-8.c (main): Likewise. + * gcc.target/mips/mips-nonpic/main-9.c (main): Likewise. + * gcc.target/mips/mips-nonpic/main-10.c (main): Likewise. + * gcc.target/mips/mips-nonpic/main-11.c (main): Likewise. + * gcc.target/mips/mips-nonpic/main-12.c (main): Likewise. + * gcc.target/mips/mips-nonpic/main-13.c (main): Likewise. + * gcc.target/mips/mips-nonpic/main-14.c (main): Likewise. + * gcc.target/mips/mips-nonpic/main-15.c (main): Likewise. + * gcc.target/mips/mips-nonpic/main-16.c (main): Likewise. + * gcc.target/mips/mips-nonpic/mips-nonpic.h + (nonpic_call, nonpic_addr_call): Add prototype. + (pic_call, pic_addr_call): Likewise. + * gcc.target/mips/mips16e-extends.c (validate): Likewise. + * gcc.target/mips/octeon-bbit-3.c (foo): Likewise. + * gcc.target/mips/octeon-seq-4.c (h): Likewise. + * gcc.target/mips/truncate-3.c (g): Add prototype. + (f): Add return type. + 2014-11-05 Uros Bizjak PR target/63538 diff --git a/gcc/testsuite/gcc.target/mips/asm-1.c b/gcc/testsuite/gcc.target/mips/asm-1.c index 8df2689469e..2408b250009 100644 --- a/gcc/testsuite/gcc.target/mips/asm-1.c +++ b/gcc/testsuite/gcc.target/mips/asm-1.c @@ -2,6 +2,8 @@ of the call. */ /* { dg-do assemble } */ +extern void bar (void); + NOMIPS16 int foo (int n) { register int k asm ("$16") = n; diff --git a/gcc/testsuite/gcc.target/mips/call-1.c b/gcc/testsuite/gcc.target/mips/call-1.c index e4b7acefaf7..2f4a37e3a0f 100644 --- a/gcc/testsuite/gcc.target/mips/call-1.c +++ b/gcc/testsuite/gcc.target/mips/call-1.c @@ -12,6 +12,7 @@ __attribute__ ((noinline)) static void staticfunc () { asm (""); } int normal (); void normal2 (); +int NOMIPS16 f (int *p) { *p = normal (); @@ -22,6 +23,7 @@ NOMIPS16 f (int *p) int tail (); +int NOMIPS16 h () { return tail (); diff --git a/gcc/testsuite/gcc.target/mips/call-2.c b/gcc/testsuite/gcc.target/mips/call-2.c index c2fc8eaad12..58cc2c6b03c 100644 --- a/gcc/testsuite/gcc.target/mips/call-2.c +++ b/gcc/testsuite/gcc.target/mips/call-2.c @@ -2,6 +2,9 @@ /* { dg-options "-mrelax-pic-calls" } */ /* { dg-final { scan-assembler-times "\\.reloc\t1f,R_MIPS_JALR,g\n1:\tjalrs?\t" 2 } } */ +extern void g (void); + +int NOMIPS16 f () { g (); diff --git a/gcc/testsuite/gcc.target/mips/call-3.c b/gcc/testsuite/gcc.target/mips/call-3.c index 37609088df0..4a662e300ec 100644 --- a/gcc/testsuite/gcc.target/mips/call-3.c +++ b/gcc/testsuite/gcc.target/mips/call-3.c @@ -4,6 +4,7 @@ __attribute__ ((visibility ("hidden"))) void g (); +int NOMIPS16 f () { g (); diff --git a/gcc/testsuite/gcc.target/mips/call-4.c b/gcc/testsuite/gcc.target/mips/call-4.c index 049e33882fa..a343c429a6a 100644 --- a/gcc/testsuite/gcc.target/mips/call-4.c +++ b/gcc/testsuite/gcc.target/mips/call-4.c @@ -2,6 +2,9 @@ /* { dg-options "-mrelax-pic-calls" } */ /* { dg-final { scan-assembler "\\.reloc\t1f,R_MIPS_JALR,g\n1:\tjalr\t" } } */ +extern void g (void); + +int NOMIPS16 f (int i) { while (i--) diff --git a/gcc/testsuite/gcc.target/mips/call-5.c b/gcc/testsuite/gcc.target/mips/call-5.c index 2e58178ba94..bfb95eba600 100644 --- a/gcc/testsuite/gcc.target/mips/call-5.c +++ b/gcc/testsuite/gcc.target/mips/call-5.c @@ -14,6 +14,7 @@ __attribute__ ((noinline)) static void staticfunc () { asm (""); } int normal (); void normal2 (); +int NOMIPS16 f (int *p) { *p = normal (); @@ -24,6 +25,7 @@ NOMIPS16 f (int *p) int tail (); +int NOMIPS16 h () { return tail (); diff --git a/gcc/testsuite/gcc.target/mips/call-6.c b/gcc/testsuite/gcc.target/mips/call-6.c index 86f3dc4a8fe..117795db7f4 100644 --- a/gcc/testsuite/gcc.target/mips/call-6.c +++ b/gcc/testsuite/gcc.target/mips/call-6.c @@ -13,6 +13,7 @@ __attribute__ ((noinline)) static void staticfunc () { asm (""); } int normal (); void normal2 (); +int NOMIPS16 f (int *p) { *p = normal (); @@ -23,6 +24,7 @@ NOMIPS16 f (int *p) int tail (); +int NOMIPS16 h () { return tail (); diff --git a/gcc/testsuite/gcc.target/mips/code-readable-1.c b/gcc/testsuite/gcc.target/mips/code-readable-1.c index b3e864df6fb..71e7114ffcc 100644 --- a/gcc/testsuite/gcc.target/mips/code-readable-1.c +++ b/gcc/testsuite/gcc.target/mips/code-readable-1.c @@ -14,7 +14,7 @@ volatile int x10; volatile int x11; MIPS16 int -foo (int i, volatile *x) +foo (int i, volatile int *x) { switch (i) { diff --git a/gcc/testsuite/gcc.target/mips/code-readable-2.c b/gcc/testsuite/gcc.target/mips/code-readable-2.c index 3d325049d59..1994bebcebf 100644 --- a/gcc/testsuite/gcc.target/mips/code-readable-2.c +++ b/gcc/testsuite/gcc.target/mips/code-readable-2.c @@ -13,7 +13,7 @@ volatile int x10; volatile int x11; MIPS16 int -foo (int i, volatile *x) +foo (int i, volatile int *x) { switch (i) { diff --git a/gcc/testsuite/gcc.target/mips/code-readable-3.c b/gcc/testsuite/gcc.target/mips/code-readable-3.c index aaf18749374..c19e80aafa3 100644 --- a/gcc/testsuite/gcc.target/mips/code-readable-3.c +++ b/gcc/testsuite/gcc.target/mips/code-readable-3.c @@ -13,7 +13,7 @@ volatile int x10; volatile int x11; MIPS16 int -foo (int i, volatile *x) +foo (int i, volatile int *x) { switch (i) { diff --git a/gcc/testsuite/gcc.target/mips/code-readable-4.c b/gcc/testsuite/gcc.target/mips/code-readable-4.c index 4db89f87466..beb9248de75 100644 --- a/gcc/testsuite/gcc.target/mips/code-readable-4.c +++ b/gcc/testsuite/gcc.target/mips/code-readable-4.c @@ -14,7 +14,7 @@ volatile int x10; volatile int x11; MIPS16 int -foo (int i, volatile *x) +foo (int i, volatile int *x) { switch (i) { diff --git a/gcc/testsuite/gcc.target/mips/const-anchor-1.c b/gcc/testsuite/gcc.target/mips/const-anchor-1.c index c2726cc25fb..bca318a5c71 100644 --- a/gcc/testsuite/gcc.target/mips/const-anchor-1.c +++ b/gcc/testsuite/gcc.target/mips/const-anchor-1.c @@ -4,6 +4,8 @@ /* { dg-final { scan-assembler-not "0x12330000|305332224" } } */ /* { dg-final { scan-assembler "\td?addiu\t\\\$4,\\\$\[0-9\]*,-1" } } */ +extern void g (int, int); + NOMIPS16 void f () { g (0x1233ffff, 0x12340001); diff --git a/gcc/testsuite/gcc.target/mips/const-anchor-2.c b/gcc/testsuite/gcc.target/mips/const-anchor-2.c index 4932648061b..6ba902f5ad0 100644 --- a/gcc/testsuite/gcc.target/mips/const-anchor-2.c +++ b/gcc/testsuite/gcc.target/mips/const-anchor-2.c @@ -3,6 +3,8 @@ /* { dg-final { scan-assembler-not "0x300000|196608" } } */ /* { dg-final { scan-assembler "\td?addiu\t\\\$4,\\\$\[0-9\]*,32763" } } */ +extern void g (int, int); + NOMIPS16 void f () { g (0x30001, 0x28006); diff --git a/gcc/testsuite/gcc.target/mips/const-anchor-3.c b/gcc/testsuite/gcc.target/mips/const-anchor-3.c index 5988cc40967..4af34d299a0 100644 --- a/gcc/testsuite/gcc.target/mips/const-anchor-3.c +++ b/gcc/testsuite/gcc.target/mips/const-anchor-3.c @@ -5,6 +5,8 @@ /* { dg-final { scan-assembler-not "0x12330000|305332224" { xfail *-*-* } } } */ /* { dg-final { scan-assembler "\td?addiu\t\\\$5,\\\$\[0-9\]*,-1" { xfail *-*-* } } } */ +extern void g (int, int); + NOMIPS16 void f () { g (0x12340001, 0x1233ffff); diff --git a/gcc/testsuite/gcc.target/mips/const-anchor-4.c b/gcc/testsuite/gcc.target/mips/const-anchor-4.c index a9e2631caf7..7850a90fc8b 100644 --- a/gcc/testsuite/gcc.target/mips/const-anchor-4.c +++ b/gcc/testsuite/gcc.target/mips/const-anchor-4.c @@ -4,6 +4,8 @@ /* { dg-final { scan-assembler-not "0x300000|196608" { xfail *-*-* } } } */ /* { dg-final { scan-assembler "\td?addiu\t\\\$5,\\\$\[0-9\]*,32763" { xfail *-*-* } } } */ +extern void g (int, int); + NOMIPS16 void f () { g (0x28006, 0x30001); diff --git a/gcc/testsuite/gcc.target/mips/interrupt_handler.c b/gcc/testsuite/gcc.target/mips/interrupt_handler.c index 073c772ae40..5058d998e07 100644 --- a/gcc/testsuite/gcc.target/mips/interrupt_handler.c +++ b/gcc/testsuite/gcc.target/mips/interrupt_handler.c @@ -3,6 +3,7 @@ /* { dg-options "-mips32r2 -msoft-float" } */ void f () { } +extern void t (void); NOMIPS16 void __attribute__ ((interrupt)) v0 () { } NOMIPS16 void __attribute__ ((interrupt, use_shadow_register_set)) v1 () { } diff --git a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-1.c b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-1.c index 2f428717a32..faabca2d658 100644 --- a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-1.c +++ b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-1.c @@ -2,6 +2,7 @@ #include "mips-nonpic.h" +int main () { nonpic_nothing (); diff --git a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-10.c b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-10.c index 6c3601861ab..73e9705e78c 100644 --- a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-10.c +++ b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-10.c @@ -2,6 +2,7 @@ #include "mips-nonpic.h" +int main () { nonpic_call (); diff --git a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-11.c b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-11.c index 1d8a6d20cdf..5cdf0026e6b 100644 --- a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-11.c +++ b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-11.c @@ -2,6 +2,7 @@ #include "mips-nonpic.h" +int main () { nonpic_addr (); diff --git a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-12.c b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-12.c index f57b5ce172a..986a6e5a732 100644 --- a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-12.c +++ b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-12.c @@ -2,6 +2,7 @@ #include "mips-nonpic.h" +int main () { nonpic_addr_call (); diff --git a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-13.c b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-13.c index d2b88e1f384..1981ed1970b 100644 --- a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-13.c +++ b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-13.c @@ -2,6 +2,7 @@ #include "mips-nonpic.h" +int main () { nonpic_nothing (); diff --git a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-14.c b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-14.c index 6318a2240af..daed73409c9 100644 --- a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-14.c +++ b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-14.c @@ -2,6 +2,7 @@ #include "mips-nonpic.h" +int main () { nonpic_call (); diff --git a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-15.c b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-15.c index 1c165043a55..0c22454d30d 100644 --- a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-15.c +++ b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-15.c @@ -2,6 +2,7 @@ #include "mips-nonpic.h" +int main () { nonpic_addr (); diff --git a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-16.c b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-16.c index 3119979d354..669f57d9f58 100644 --- a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-16.c +++ b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-16.c @@ -2,6 +2,7 @@ #include "mips-nonpic.h" +int main () { nonpic_addr_call (); diff --git a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-2.c b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-2.c index 8a66e7a7af6..960c9a5d59b 100644 --- a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-2.c +++ b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-2.c @@ -2,6 +2,7 @@ #include "mips-nonpic.h" +int main () { nonpic_call (); diff --git a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-3.c b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-3.c index c9c8dac7081..c18495c2fff 100644 --- a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-3.c +++ b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-3.c @@ -2,6 +2,7 @@ #include "mips-nonpic.h" +int main () { nonpic_addr (); diff --git a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-4.c b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-4.c index c10c213ac78..da95d160d14 100644 --- a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-4.c +++ b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-4.c @@ -2,6 +2,7 @@ #include "mips-nonpic.h" +int main () { nonpic_addr_call (); diff --git a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-5.c b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-5.c index 9b6dd8aff2e..ed65140bb3c 100644 --- a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-5.c +++ b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-5.c @@ -2,6 +2,7 @@ #include "mips-nonpic.h" +int main () { nonpic_nothing (); diff --git a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-6.c b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-6.c index 90b220f0f0f..991c3643efd 100644 --- a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-6.c +++ b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-6.c @@ -2,6 +2,7 @@ #include "mips-nonpic.h" +int main () { pic_call (); diff --git a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-7.c b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-7.c index 8cef63f3c44..4905d33d72e 100644 --- a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-7.c +++ b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-7.c @@ -2,6 +2,7 @@ #include "mips-nonpic.h" +int main () { pic_call (); diff --git a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-8.c b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-8.c index 0200bf2dde3..627d01634af 100644 --- a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-8.c +++ b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-8.c @@ -2,6 +2,7 @@ #include "mips-nonpic.h" +int main () { pic_call (); diff --git a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-9.c b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-9.c index 4144172ccd4..da22e530882 100644 --- a/gcc/testsuite/gcc.target/mips/mips-nonpic/main-9.c +++ b/gcc/testsuite/gcc.target/mips/mips-nonpic/main-9.c @@ -2,6 +2,7 @@ #include "mips-nonpic.h" +int main () { pic_addr (); diff --git a/gcc/testsuite/gcc.target/mips/mips-nonpic/mips-nonpic.h b/gcc/testsuite/gcc.target/mips/mips-nonpic/mips-nonpic.h index e9fe9921885..f0bf3f9ea03 100644 --- a/gcc/testsuite/gcc.target/mips/mips-nonpic/mips-nonpic.h +++ b/gcc/testsuite/gcc.target/mips/mips-nonpic/mips-nonpic.h @@ -9,10 +9,14 @@ extern int hit_nonpic_call; extern int hit_nonpic_nothing; extern void nonpic_addr (void); +extern void nonpic_call (void); +extern void nonpic_addr_call (void); extern void nonpic_nothing (void); extern void nonpic_receive_fn_addr (void *); extern void pic_addr (void); +extern void pic_call (void); +extern void pic_addr_call (void); extern void pic_receive_fn_addr (void *); extern void pic_nothing (void); diff --git a/gcc/testsuite/gcc.target/mips/mips16e-extends.c b/gcc/testsuite/gcc.target/mips/mips16e-extends.c index d8946c979ae..ad5ba344cb6 100644 --- a/gcc/testsuite/gcc.target/mips/mips16e-extends.c +++ b/gcc/testsuite/gcc.target/mips/mips16e-extends.c @@ -2,6 +2,8 @@ /* { dg-options "(-mips16) isa_rev>=1 -mlong32" } */ /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */ +extern int validate (); + MIPS16 short cksum16 (unsigned long n) { unsigned long l; diff --git a/gcc/testsuite/gcc.target/mips/octeon-bbit-3.c b/gcc/testsuite/gcc.target/mips/octeon-bbit-3.c index 7b73f43a1f4..edb0c385030 100644 --- a/gcc/testsuite/gcc.target/mips/octeon-bbit-3.c +++ b/gcc/testsuite/gcc.target/mips/octeon-bbit-3.c @@ -31,6 +31,8 @@ typedef struct bitfield_s { ulong64 f:18; } bitfield_t; +void foo (bitfield_t*); + bitfield_t bar; NOMIPS16 void diff --git a/gcc/testsuite/gcc.target/mips/octeon-seq-4.c b/gcc/testsuite/gcc.target/mips/octeon-seq-4.c index 0fd83f0b309..3f2082221d7 100644 --- a/gcc/testsuite/gcc.target/mips/octeon-seq-4.c +++ b/gcc/testsuite/gcc.target/mips/octeon-seq-4.c @@ -6,6 +6,8 @@ unsigned m (unsigned e); +extern void h (); + NOMIPS16 void f (unsigned i) { diff --git a/gcc/testsuite/gcc.target/mips/truncate-3.c b/gcc/testsuite/gcc.target/mips/truncate-3.c index fcb69e4b44f..988e46eb78d 100644 --- a/gcc/testsuite/gcc.target/mips/truncate-3.c +++ b/gcc/testsuite/gcc.target/mips/truncate-3.c @@ -3,6 +3,9 @@ /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */ /* { dg-final { scan-assembler-not "\tandi?\t" } } */ +extern void g (int); + +int f (long long d) { long long c = d & 0xffffffffff;