This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[3.3] C++ PATCH to cp/decl.c
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: gcc-patches at gcc dot gnu dot org
- Date: 12 Feb 2003 23:46:22 +0100
- Subject: [3.3] C++ PATCH to cp/decl.c
- Organization: Integrable Solutions
This patchlet makes define_label() theoretically more correct. It
has however no practical influence because the last instruction was of
the form
if (condition)
{
// ...
return expression;
}
else
{
// ...
return another-expression;
}
-- Gaby
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/ChangeLog,v
retrieving revision 1.3076.2.31
diff -p -r1.3076.2.31 ChangeLog
*** ChangeLog 11 Feb 2003 14:20:19 -0000 1.3076.2.31
--- ChangeLog 12 Feb 2003 22:41:30 -0000
***************
*** 1,3 ****
--- 1,7 ----
+ 2003-02-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
+
+ * decl.c (define_label): Don't forget to pop TV_NAME_LOOKUP.
+
2003-02-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
* decl.c: Include "timevar.h".
Index: decl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/decl.c,v
retrieving revision 1.965.2.8
diff -p -r1.965.2.8 decl.c
*** decl.c 11 Feb 2003 14:11:13 -0000 1.965.2.8
--- decl.c 12 Feb 2003 22:41:31 -0000
*************** define_label (filename, line, name)
*** 5159,5164 ****
--- 5159,5165 ----
check_previous_gotos (decl);
POP_TIMEVAR_AND_RETURN (TV_NAME_LOOKUP, decl);
}
+ timevar_pop (TV_NAME_LOOKUP);
}
struct cp_switch