This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[3.3] Committed: patch for debug/14079


Backported from mainline and 3.4; Gaby gave approval in email.

--Matt


Index: gcc/cp/ChangeLog =================================================================== RCS file: /cvs/gcc/gcc/gcc/cp/ChangeLog,v retrieving revision 1.3076.2.263 diff -c -r1.3076.2.263 ChangeLog *** gcc/cp/ChangeLog 13 Mar 2004 03:15:52 -0000 1.3076.2.263 --- gcc/cp/ChangeLog 17 Mar 2004 21:48:36 -0000 *************** *** 1,3 **** --- 1,10 ---- + 2003-03-17 Matt Austern <austern@apple.com> + + Backport: + PR debug/14079 + * decl.c (add_decl_to_level): Add extern variables, as well + as static, to static_decls array. + 2004-03-12 Gabriel Dos Reis <gdr@integrable-solutions.net>

        Backport:
Index: gcc/cp/decl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/decl.c,v
retrieving revision 1.965.2.79
diff -c -r1.965.2.79 decl.c
*** gcc/cp/decl.c       13 Mar 2004 03:15:55 -0000      1.965.2.79
--- gcc/cp/decl.c       17 Mar 2004 21:48:36 -0000
***************
*** 1286,1294 ****
        b->names = decl;
        b->names_size++;

! /* If appropriate, add decl to separate list of statics */
if (b->namespace_p)
! if ((TREE_CODE (decl) == VAR_DECL && TREE_STATIC (decl))
|| (TREE_CODE (decl) == FUNCTION_DECL
&& (!TREE_PUBLIC (decl) || DECL_DECLARED_INLINE_P (decl))))
VARRAY_PUSH_TREE (b->static_decls, decl);
--- 1286,1298 ----
b->names = decl;
b->names_size++;


! /* If appropriate, add decl to separate list of statics. We
! include extern variables because they might turn out to be
! static later. It's OK for this list to contain a few false
! positives. */
if (b->namespace_p)
! if ((TREE_CODE (decl) == VAR_DECL
! && (TREE_STATIC (decl) || DECL_EXTERNAL (decl)))
|| (TREE_CODE (decl) == FUNCTION_DECL
&& (!TREE_PUBLIC (decl) || DECL_DECLARED_INLINE_P (decl))))
VARRAY_PUSH_TREE (b->static_decls, decl);



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]