mirror of git://gcc.gnu.org/git/gcc.git
c-decl.c (c_push_function_context): Always create a new language function.
2012-05-29 Meador Inge <meadori@codesourcery.com> * c-decl.c (c_push_function_context): Always create a new language function. (c_pop_function_context): Clear the language function created in c_push_function_context. From-SVN: r187979
This commit is contained in:
parent
5e631e49ec
commit
d0421638fa
|
@ -1,3 +1,10 @@
|
||||||
|
2012-05-29 Meador Inge <meadori@codesourcery.com>
|
||||||
|
|
||||||
|
* c-decl.c (c_push_function_context): Always create a new language
|
||||||
|
function.
|
||||||
|
(c_pop_function_context): Clear the language function created in
|
||||||
|
c_push_function_context.
|
||||||
|
|
||||||
2012-05-29 Matt Turner <mattst88@gmail.com>
|
2012-05-29 Matt Turner <mattst88@gmail.com>
|
||||||
|
|
||||||
* config/alpha/ev6.md: (define_bypass "ev6_fmul,ev6_fadd"): New.
|
* config/alpha/ev6.md: (define_bypass "ev6_fmul,ev6_fadd"): New.
|
||||||
|
|
12
gcc/c-decl.c
12
gcc/c-decl.c
|
@ -8577,11 +8577,9 @@ check_for_loop_decls (location_t loc, bool turn_off_iso_c99_error)
|
||||||
void
|
void
|
||||||
c_push_function_context (void)
|
c_push_function_context (void)
|
||||||
{
|
{
|
||||||
struct language_function *p = cfun->language;
|
struct language_function *p;
|
||||||
/* cfun->language might have been already allocated by the use of
|
p = ggc_alloc_language_function ();
|
||||||
-Wunused-local-typedefs. In that case, just re-use it. */
|
cfun->language = p;
|
||||||
if (p == NULL)
|
|
||||||
cfun->language = p = ggc_alloc_cleared_language_function ();
|
|
||||||
|
|
||||||
p->base.x_stmt_tree = c_stmt_tree;
|
p->base.x_stmt_tree = c_stmt_tree;
|
||||||
c_stmt_tree.x_cur_stmt_list
|
c_stmt_tree.x_cur_stmt_list
|
||||||
|
@ -8607,10 +8605,6 @@ c_pop_function_context (void)
|
||||||
|
|
||||||
pop_function_context ();
|
pop_function_context ();
|
||||||
p = cfun->language;
|
p = cfun->language;
|
||||||
/* When -Wunused-local-typedefs is in effect, cfun->languages is
|
|
||||||
used to store data throughout the life time of the current cfun,
|
|
||||||
So don't deallocate it. */
|
|
||||||
if (!warn_unused_local_typedefs)
|
|
||||||
cfun->language = NULL;
|
cfun->language = NULL;
|
||||||
|
|
||||||
if (DECL_STRUCT_FUNCTION (current_function_decl) == 0
|
if (DECL_STRUCT_FUNCTION (current_function_decl) == 0
|
||||||
|
|
Loading…
Reference in New Issue