Commit 39c76b4f by Mark Mitchell Committed by Mark Mitchell

cp-tree.h (struct language_function): Remove static_labelno.

	* cp-tree.h (struct language_function): Remove static_labelno.
	(static_labelno): Remove macro.
	* method.c (build_overload_nested_name): Make static_labelno
	static here.

	* pt.c (instantiate_decl): Use DECL_SAVED_TREE, not DECL_INITIAL,
	to decide whether or not a function is defined.

From-SVN: r29801
parent b3a79892
1999-10-04 Mark Mitchell <mark@codesourcery.com> 1999-10-04 Mark Mitchell <mark@codesourcery.com>
* cp-tree.h (struct language_function): Remove static_labelno.
(static_labelno): Remove macro.
* method.c (build_overload_nested_name): Make static_labelno
static here.
* pt.c (instantiate_decl): Use DECL_SAVED_TREE, not DECL_INITIAL,
to decide whether or not a function is defined.
* call.c (build_over_call): Don't set TREE_SIDE_EFFECTS for * call.c (build_over_call): Don't set TREE_SIDE_EFFECTS for
situations where make_node will do it automatically. situations where make_node will do it automatically.
* decl.c (grok_reference_init): Likewise. * decl.c (grok_reference_init): Likewise.
......
...@@ -674,7 +674,6 @@ struct language_function ...@@ -674,7 +674,6 @@ struct language_function
int returns_null; int returns_null;
int parms_stored; int parms_stored;
int temp_name_counter; int temp_name_counter;
int static_labelno;
int in_function_try_handler; int in_function_try_handler;
int x_expanding_p; int x_expanding_p;
int name_declared; int name_declared;
...@@ -794,8 +793,6 @@ struct language_function ...@@ -794,8 +793,6 @@ struct language_function
#define temp_name_counter cp_function_chain->temp_name_counter #define temp_name_counter cp_function_chain->temp_name_counter
#define static_labelno cp_function_chain->static_labelno
/* Non-zero if we should generate RTL for functions that we process. /* Non-zero if we should generate RTL for functions that we process.
When this is zero, we just accumulate tree structure, without When this is zero, we just accumulate tree structure, without
interacting with the back end. */ interacting with the back end. */
......
...@@ -501,6 +501,8 @@ build_overload_nested_name (decl) ...@@ -501,6 +501,8 @@ build_overload_nested_name (decl)
if (TREE_CODE (decl) == FUNCTION_DECL) if (TREE_CODE (decl) == FUNCTION_DECL)
{ {
static int static_labelno;
tree name = DECL_ASSEMBLER_NAME (decl); tree name = DECL_ASSEMBLER_NAME (decl);
char *label; char *label;
......
...@@ -9555,7 +9555,7 @@ instantiate_decl (d) ...@@ -9555,7 +9555,7 @@ instantiate_decl (d)
code_pattern = DECL_TEMPLATE_RESULT (td); code_pattern = DECL_TEMPLATE_RESULT (td);
if (TREE_CODE (d) == FUNCTION_DECL) if (TREE_CODE (d) == FUNCTION_DECL)
pattern_defined = (DECL_INITIAL (code_pattern) != NULL_TREE); pattern_defined = (DECL_SAVED_TREE (code_pattern) != NULL_TREE);
else else
pattern_defined = ! DECL_IN_AGGR_P (code_pattern); pattern_defined = ! DECL_IN_AGGR_P (code_pattern);
......
// Build don't link:
// Special g++ Options: -fsquangle
template <class STRUCT, class MEMBER> inline STRUCT *
setback(MEMBER *bp, MEMBER STRUCT::*offset)
{
if(!bp) return 0;
union { int i; MEMBER STRUCT::*of; } u;
u.of = offset;
return (STRUCT *) ((int) bp - u.i);
}
struct S
{
int i;
};
int main()
{
S s;
S* sp = setback (&s.i, &S::i);
}
// Build don't link:
// Origin: "Adam J. Richter" <adam@yggdrasil.com>
template <class Style, class Base>
class theme_map {
};
class QWidget {
protected:
virtual void *harmony_get_list_for_signal(const char *) const;
public:
static theme_map<int, QWidget> ContentsThemes;
protected:
virtual void updateDrawingObjects (void)
{
update_dro (QWidget::ContentsThemes);
}
template <class S, class B>
void update_dro (theme_map<S, B>& themes)
{
}
};
void *QWidget::harmony_get_list_for_signal(const char *sig) const
{
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment