+2016-11-07 Jakub Jelinek <jakub@redhat.com>
+
+ PR middle-end/71529
+ * gcc.target/i386/pr71529.C: Moved to ...
+ * g++.dg/opt/pr71529.C: ... here. New test. Guard for i?86/x86_64.
+
+ PR target/64411
+ * gcc.target/i386/pr64411.C: Moved to ...
+ * g++.dg/opt/pr64411.C: ... here. New test. Guard for i?86/x86_64
+ lp64.
+
+ PR target/65105
+ * gcc.target/i386/pr65105-4.C: Moved to ...
+ * g++.dg/opt/pr65105-4.C: ... here. New test. Guard for i?86/x86_64.
+ Run into compile test rather than execute test.
+
2016-11-07 Richard Biener <rguenther@suse.de>
PR target/78229
--- /dev/null
+// PR target/64411
+// { dg-do compile { target { { i?86-*-* x86_64-*-* } && lp64 } } }
+// { dg-options "-Os -mcmodel=medium -fPIC -fschedule-insns -fselective-scheduling" }
+
+typedef __SIZE_TYPE__ size_t;
+
+extern "C" long strtol ()
+ { return 0; }
+
+static struct {
+ void *sp[2];
+} info;
+
+union S813
+{
+ void * c[5];
+}
+s813;
+
+S813 a813[5];
+S813 check813 (S813, S813 *, S813);
+
+void checkx813 ()
+{
+ __builtin_memset (&s813, '\0', sizeof (s813));
+ __builtin_memset (&info, '\0', sizeof (info));
+ check813 (s813, &a813[1], a813[2]);
+}
--- /dev/null
+// PR target/65105
+// { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } }
+// { dg-options "-O2 -march=slm" }
+
+struct s {
+ long long l1, l2, l3, l4, l5;
+} *a;
+long long b;
+long long fn1()
+{
+ try
+ {
+ b = (a->l1 | a->l2 | a->l3 | a->l4 | a->l5);
+ return a->l1;
+ }
+ catch (int)
+ {
+ }
+}
--- /dev/null
+// PR middle-end/71529
+// { dg-do compile { target { { i?86-*-* x86_64-*-* } && { ! x32 } } } }
+// { dg-options "-fcheck-pointer-bounds -mmpx -O2" }
+
+class c1
+{
+ public:
+ virtual ~c1 ();
+};
+
+class c2
+{
+ public:
+ virtual ~c2 ();
+};
+
+class c3 : c1, c2 { };
+
+int main (int, char **)
+{
+ c3 obj;
+}
+++ /dev/null
-/* { dg-do compile } */
-/* { dg-options "-Os -mcmodel=medium -fPIC -fschedule-insns -fselective-scheduling" } */
-
-typedef __SIZE_TYPE__ size_t;
-
-extern "C" long strtol ()
- { return 0; }
-
-static struct {
- void *sp[2];
-} info;
-
-union S813
-{
- void * c[5];
-}
-s813;
-
-S813 a813[5];
-S813 check813 (S813, S813 *, S813);
-
-void checkx813 ()
-{
- __builtin_memset (&s813, '\0', sizeof (s813));
- __builtin_memset (&info, '\0', sizeof (info));
- check813 (s813, &a813[1], a813[2]);
-}
+++ /dev/null
-/* PR target/pr65105 */
-/* { dg-do run { target { ia32 } } } */
-/* { dg-options "-O2 -march=slm" } */
-
-struct s {
- long long l1, l2, l3, l4, l5;
-} *a;
-long long b;
-long long fn1()
-{
- try
- {
- b = (a->l1 | a->l2 | a->l3 | a->l4 | a->l5);
- return a->l1;
- }
- catch (int)
- {
- }
-}
+++ /dev/null
-/* PR71529 */
-/* { dg-do compile { target { ! x32 } } } */
-/* { dg-options "-fcheck-pointer-bounds -mmpx -O2" } */
-
-class c1
-{
- public:
- virtual ~c1 ();
-};
-
-class c2
-{
- public:
- virtual ~c2 ();
-};
-
-class c3 : c1, c2 { };
-
-int main (int, char **)
-{
- c3 obj;
-}