* varasm.c (restore_varasm_status): New.
* function.h: Declare it.
* function.c (pop_function_context_from): Call it.
From-SVN: r46080
2001-10-08 Richard Henderson <rth@redhat.com>
+ * varasm.c (restore_varasm_status): New.
+ * function.h: Declare it.
+ * function.c (pop_function_context_from): Call it.
+
+2001-10-08 Richard Henderson <rth@redhat.com>
+
* c-common.h (struct c_lang_decl): Add declared_inline.
* c-tree.h (DECL_DECLARED_INLINE_P): New.
* c-lang.c (c_disregard_inline_limits): Use it.
reg_renumber = 0;
restore_emit_status (p);
+ restore_varasm_status (p);
if (restore_lang_status)
(*restore_lang_status) (p);
extern void free_after_compilation PARAMS ((struct function *));
extern void init_varasm_status PARAMS ((struct function *));
+extern void restore_varasm_status PARAMS ((struct function *));
extern void free_varasm_status PARAMS ((struct function *));
extern void free_emit_status PARAMS ((struct function *));
extern void free_stmt_status PARAMS ((struct function *));
p->x_const_double_chain = 0;
}
+/* Nested functions diddle with our const_double_chain via
+ clear_const_double_mem and const_tiny_rtx. Remove these
+ entries from our const_double_chain. */
+
+void
+restore_varasm_status (f)
+ struct function *f;
+{
+ rtx *p = &f->varasm->x_const_double_chain;
+
+ while (*p)
+ if (CONST_DOUBLE_MEM (*p) == cc0_rtx)
+ *p = CONST_DOUBLE_CHAIN (*p);
+ else
+ p = &CONST_DOUBLE_CHAIN (*p);
+}
+
/* Mark PC for GC. */
static void