@@ -1,7 +1,7 @@
/* Functional tests for the function hotpatching feature. */
/* { dg-do compile } */
-/* { dg-options "-O3 -mesa -m31 -mhotpatch=0,3 --save-temps" } */
+/* { dg-options "-O3 -mesa -m31 -march=g5 -mhotpatch=0,3 --save-temps" } */
#include <stdio.h>
@@ -1,7 +1,7 @@
/* Functional tests for the function hotpatching feature. */
/* { dg-do compile } */
-/* { dg-options "-O3 -mesa -m31 -mhotpatch=0,4 --save-temps" } */
+/* { dg-options "-O3 -mesa -m31 -march=g5 -mhotpatch=0,4 --save-temps" } */
#include <stdio.h>
@@ -2,10 +2,4 @@
/* { dg-do compile } */
/* { dg-options "-O3 -mzarch -mhotpatch=-1,0" } */
-
-int main (void)
-{
- return 0;
-}
-
-/* { dg-excess-errors "argument to '-mhotpatch=' should be a non-negative integer" } */
+/* { dg-error "arguments to .-mhotpatch=n,m. should be non-negative integers" "" { target *-*-* } 1 } */
@@ -5,8 +5,6 @@
__attribute__((hotpatch(0,0,0)))
int main (void)
-{
+{/* { dg-error "wrong number of arguments specified" } */
return 0;
}
-
-/* { dg-excess-errors "argument to '-mhotpatch=' should be a non-negative integer" } */
@@ -3,10 +3,10 @@
/* { dg-do compile } */
/* { dg-options "-O3 -mzarch" } */
+int a;
+
__attribute__((hotpatch(a,0)))
int main (void)
-{
+{ /* { dg-error "attribute is not a comma separated pair of non-negative integer constants or too large" } */
return 0;
}
-
-/* { dg-excess-errors "argument to '-mhotpatch=' should be a non-negative integer" } */
@@ -3,10 +3,10 @@
/* { dg-do compile } */
/* { dg-options "-O3 -mzarch" } */
+int a;
+
__attribute__((hotpatch(0,a)))
int main (void)
-{
+{ /* { dg-error "attribute is not a comma separated pair of non-negative integer constants or too large" } */
return 0;
}
-
-/* { dg-excess-errors "argument to '-mhotpatch=' should be a non-negative integer" } */
@@ -18,12 +18,12 @@ void hp2(void)
__attribute__ ((hotpatch(1000001,1000000)))
void hp3(void)
-{ /* { dg-error " requested 'hotpatch' attribute is not a comma separated pair" } */
+{ /* { dg-error " requested .hotpatch. attribute is not a comma separated pair" } */
printf("hello, world!\n");
}
__attribute__ ((hotpatch(1000000,1000001)))
void hp4(void)
-{ /* { dg-error " requested 'hotpatch' attribute is not a comma separated pair" } */
+{ /* { dg-error " requested .hotpatch. attribute is not a comma separated pair" } */
printf("hello, world!\n");
}
@@ -8,4 +8,4 @@ viod main(void)
return 0;
}
-/* { dg-excess-errors "argument to '-mhotpatch=n,m' is too large" } */
+/* { dg-error "argument to .-mhotpatch=n,m. is too large" "" { target *-*-* } 1 } */
@@ -2,10 +2,4 @@
/* { dg-do compile } */
/* { dg-options "-O3 -mzarch -mhotpatch=0,-1" } */
-
-int main (void)
-{
- return 0;
-}
-
-/* { dg-excess-errors "argument to '-mhotpatch=' should be a non-negative integer" } */
+/* { dg-error "arguments to .-mhotpatch=n,m. should be non-negative integers" "" { target *-*-* } 1 } */
@@ -2,10 +2,4 @@
/* { dg-do compile } */
/* { dg-options "-O3 -mzarch -mhotpatch=0" } */
-
-int main (void)
-{
- return 0;
-}
-
-/* { dg-excess-errors "argument to '-mhotpatch=' should be a non-negative integer" } */
+/* { dg-error "arguments to .-mhotpatch=n,m. should be non-negative integers" "" { target *-*-* } 1 } */
@@ -2,10 +2,4 @@
/* { dg-do compile } */
/* { dg-options "-O3 -mzarch -mhotpatch=0,0,0" } */
-
-int main (void)
-{
- return 0;
-}
-
-/* { dg-excess-errors "argument to '-mhotpatch=' should be a non-negative integer" } */
+/* { dg-error "arguments to .-mhotpatch=n,m. should be non-negative integers" "" { target *-*-* } 1 } */
@@ -2,10 +2,4 @@
/* { dg-do compile } */
/* { dg-options "-O3 -mzarch -mhotpatch=a,0" } */
-
-int main (void)
-{
- return 0;
-}
-
-/* { dg-excess-errors "argument to '-mhotpatch=' should be a non-negative integer" } */
+/* { dg-error "arguments to .-mhotpatch=n,m. should be non-negative integers" "" { target *-*-* } 1 } */
@@ -2,10 +2,4 @@
/* { dg-do compile } */
/* { dg-options "-O3 -mzarch -mhotpatch=0,a" } */
-
-int main (void)
-{
- return 0;
-}
-
-/* { dg-excess-errors "argument to '-mhotpatch=' should be a non-negative integer" } */
+/* { dg-error "arguments to .-mhotpatch=n,m. should be non-negative integers" "" { target *-*-* } 1 } */
@@ -5,8 +5,6 @@
__attribute__((hotpatch(-1,0)))
int main (void)
-{
+{/* { dg-error "attribute is not a comma separated pair of non-negative integer constants or too large" } */
return 0;
}
-
-/* { dg-excess-errors "argument to '-mhotpatch=' should be a non-negative integer" } */
@@ -5,8 +5,6 @@
__attribute__((hotpatch(0,-1)))
int main (void)
-{
+{/* { dg-error "attribute is not a comma separated pair of non-negative integer constants or too large" } */
return 0;
}
-
-/* { dg-excess-errors "argument to '-mhotpatch=' should be a non-negative integer" } */
@@ -5,8 +5,6 @@
__attribute__((hotpatch(0)))
int main (void)
-{
+{/* { dg-error "wrong number of arguments specified" } */
return 0;
}
-
-/* { dg-excess-errors "argument to '-mhotpatch=' should be a non-negative integer" } */