summaryrefslogtreecommitdiffstats
path: root/gcc/cp/call.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-02 02:57:26 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-02 02:57:26 +0000
commitbe19d1b16e9f7dfd3b7cbec1423a7097fd5262d2 (patch)
tree110c275cde5018c78a949eba77f12c20fe2df92a /gcc/cp/call.c
parentc635f86fa6c98bb326b0912988104fd49b78783b (diff)
downloadppe42-gcc-be19d1b16e9f7dfd3b7cbec1423a7097fd5262d2.tar.gz
ppe42-gcc-be19d1b16e9f7dfd3b7cbec1423a7097fd5262d2.zip
gcc/cp:
PR middle-end/32668 * call.c (magic_varargs_p): Honor the "type generic" attribute. gcc/testsuite: * g++.dg/torture/type-generic-1.C: New. * gcc.dg/pr28796-2.c: Move tests ... * gcc.dg/tg-tests.h: ... here. * gcc.dg/torture/type-generic-1.c: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127146 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r--gcc/cp/call.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index 1f220f03910..31ca3c2d7f6 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -4816,6 +4816,8 @@ magic_varargs_p (tree fn)
return true;
default:;
+ return lookup_attribute ("type generic",
+ TYPE_ATTRIBUTES (TREE_TYPE (fn))) != 0;
}
return false;
OpenPOWER on IntegriCloud