summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/cp/tree.c
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2013-12-12 18:15:32 +0000
committerpfg <pfg@FreeBSD.org>2013-12-12 18:15:32 +0000
commit4bda5ad442033e7431a147e520f5977706e24fa2 (patch)
tree7b6b120517c1009026b40fb07c5e9346ae61871f /contrib/gcc/cp/tree.c
parent465403a5cc91e82c71efd87f017455ae0609eb30 (diff)
downloadFreeBSD-src-4bda5ad442033e7431a147e520f5977706e24fa2.zip
FreeBSD-src-4bda5ad442033e7431a147e520f5977706e24fa2.tar.gz
MFC r258081, r258138, r258143, r258179, r258157, r258204, 258205,
r258206, r258207, r258321 This is a series of commits inspired on Google's gcc-4.2.1 for Android that were taken from the gcc pre-4.3 under the GPLv2. gcc: Backport fixes for -W parentheses in C++ This fixes GCC 19564. gcc: merge rs6000 change from FSF pre-gcc43 Don't set MASK_PPC_GFXOPT for 8540 or 8548. Merge vrp-tree fix from gcc-4.3 Fix missed conversion from / to >> (GCC PR32521) Merge in GCCr120505 to include definition of TREE_OVERFLOW_P gcc: warn about integer overflow in constant expressions in the C++ frontend. gcc: Add a new option -Wvla to warn variable length array. libcpp: preprocessor speedup patches from upstream gcc. gcc: add femit-struct-debug support to reduce Reduce dwarf debug size gcc: Fix postreload-gcse treatment of call-clobbered registers. gcc: Record some previous commits in the ChangeLog.gcc43 file.
Diffstat (limited to 'contrib/gcc/cp/tree.c')
-rw-r--r--contrib/gcc/cp/tree.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/gcc/cp/tree.c b/contrib/gcc/cp/tree.c
index e3391a5..eee9151 100644
--- a/contrib/gcc/cp/tree.c
+++ b/contrib/gcc/cp/tree.c
@@ -1762,6 +1762,14 @@ pod_type_p (tree t)
return 1;
}
+/* Nonzero iff type T is a class template implicit specialization. */
+
+bool
+class_tmpl_impl_spec_p (tree t)
+{
+ return CLASS_TYPE_P (t) && CLASSTYPE_TEMPLATE_INSTANTIATION (t);
+}
+
/* Returns 1 iff zero initialization of type T means actually storing
zeros in it. */
OpenPOWER on IntegriCloud