aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2017-11-20 13:03:06 +0000
committerRainer Orth <ro@gcc.gnu.org>2017-11-20 13:03:06 +0000
commit9aab553436aa25a1306cdd03c0fae107828e8725 (patch)
treeac41e39b2da1f7363c7b3b08a3b8a378e1249189 /gcc
parentf370e36dc9aba0a5cafa4e6fac893b49acbfb6e8 (diff)
downloadgcc-9aab553436aa25a1306cdd03c0fae107828e8725.zip
gcc-9aab553436aa25a1306cdd03c0fae107828e8725.tar.gz
gcc-9aab553436aa25a1306cdd03c0fae107828e8725.tar.bz2
Add g++.dg/pr82836.C requirements
* g++.dg/pr82836.C: Require int128, __float128 support. Add __float128 options. (size_t): Define using __SIZE_TYPE__. From-SVN: r254953
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/g++.dg/pr82836.C5
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 6148d4b..70dc992 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2017-11-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * g++.dg/pr82836.C: Require int128, __float128 support.
+ Add __float128 options.
+ (size_t): Define using __SIZE_TYPE__.
+
2017-11-20 Jakub Jelinek <jakub@redhat.com>
PR c++/82781
diff --git a/gcc/testsuite/g++.dg/pr82836.C b/gcc/testsuite/g++.dg/pr82836.C
index cbeb628..5469614 100644
--- a/gcc/testsuite/g++.dg/pr82836.C
+++ b/gcc/testsuite/g++.dg/pr82836.C
@@ -1,12 +1,15 @@
// PR c++/82836
// { dg-options "-std=c++17" }
+// { dg-require-effective-target int128 }
+// { dg-require-effective-target __float128 }
// { dg-additional-options "-Wno-pedantic -Wno-return-type" }
+// { dg-add-options __float128 }
// We were resetting DECL_ASSEMBLER_NAME when processing pragma weak,
// breaking C++'s mangling alias hash table. That hash table needs to
// be tickled in just the right way to hit the problem.
namespace std {
-typedef long unsigned size_t;
+typedef __SIZE_TYPE__ size_t;
inline namespace __cxx11 {}
double abs() {return 0;}
__int128 abs(__int128 ) {return 0;}