From db8e31dfdd51336b6d51f2cd07f29eb5ead84eb0 Mon Sep 17 00:00:00 2001 From: "Pedro F. Giffuni" Date: Tue, 26 Nov 2013 14:58:37 +0000 Subject: [PATCH] gcc: Altivec register adjustments from Apple. Obtained from: gcc pre-4.3 (rev. 124763; GPLv2) MFC after: 3 weeks --- contrib/gcc/cp/decl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/gcc/cp/decl.c b/contrib/gcc/cp/decl.c index 8b7a4880a29..0bf09d4b8e4 100644 --- a/contrib/gcc/cp/decl.c +++ b/contrib/gcc/cp/decl.c @@ -4967,8 +4967,8 @@ make_rtl_for_nonlocal_decl (tree decl, tree init, const char* asmspec) gcc_assert (TREE_STATIC (decl)); /* An in-class declaration of a static data member should be external; it is only a declaration, and not a definition. */ - if (init == NULL_TREE) - gcc_assert (DECL_EXTERNAL (decl) || !TREE_PUBLIC (decl)); + if (init == NULL_TREE && DECL_INITIAL (decl) == NULL_TREE) + gcc_assert (DECL_EXTERNAL (decl)); } /* We don't create any RTL for local variables. */