+2015-02-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
+
+ * gcc.target/s390/hotpatch-8.c: Add -march=g5.
+ * gcc.target/s390/hotpatch-9.c: Add -march=g5.
+ * gcc.target/s390/hotpatch-compile-1.c: Fix error message.
+ * gcc.target/s390/hotpatch-compile-10.c: Likewise.
+ * gcc.target/s390/hotpatch-compile-11.c: Likewise.
+ * gcc.target/s390/hotpatch-compile-12.c: Likewise.
+ * gcc.target/s390/hotpatch-compile-13.c: Likewise.
+ * gcc.target/s390/hotpatch-compile-14.c: Likewise.
+ * gcc.target/s390/hotpatch-compile-2.c: Likewise.
+ * gcc.target/s390/hotpatch-compile-3.c: Likewise.
+ * gcc.target/s390/hotpatch-compile-4.c: Likewise.
+ * gcc.target/s390/hotpatch-compile-5.c: Likewise.
+ * gcc.target/s390/hotpatch-compile-6.c: Likewise.
+ * gcc.target/s390/hotpatch-compile-7.c: Likewise.
+ * gcc.target/s390/hotpatch-compile-8.c: Likewise.
+ * gcc.target/s390/hotpatch-compile-9.c: Likewise.
+
2015-02-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
PR fortran/64980
/* 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>
/* 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>
/* { 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 } */
__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" } */
/* { 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" } */
/* { 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" } */
__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");
}
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 } */
/* { 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 } */
/* { 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 } */
/* { 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 } */
/* { 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 } */
/* { 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 } */
__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" } */
__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" } */
__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" } */