diff mbox

[MIPS,testsuite] Fix bug in gcc.dg/tree-prof/stringop-2.c

Message ID f3176b99-3478-4448-8b31-350408050510@BAMAIL02.ba.imgtec.org
State New
Headers show

Commit Message

Steve Ellcey June 11, 2015, 9:48 p.m. UTC
I am checking in this change as an obvious fix.  When the default int
type as added to main on this test it resulted in 'int int main' for
mips due to the ifdef for mips that is in the code.  This patch fixes the 
problem.


2015-06-11  Steve Ellcey  <sellcey@imgtec.com>

	* gcc.dg/tree-prof/stringop-2.c: Fix ifdef __mips.
diff mbox

Patch

diff --git a/gcc/testsuite/gcc.dg/tree-prof/stringop-2.c b/gcc/testsuite/gcc.dg/tree-prof/stringop-2.c
index bad185e..66f8d29 100644
--- a/gcc/testsuite/gcc.dg/tree-prof/stringop-2.c
+++ b/gcc/testsuite/gcc.dg/tree-prof/stringop-2.c
@@ -6,8 +6,9 @@  int max=10000;
 #ifdef __mips
 /* We allow short memcpy()s for MIPS16.  */
 int __attribute__((nomips16))
-#endif
+#else
 int
+#endif
 main()
 {
   int i;