diff options
author | Mark Mitchell <mark@codesourcery.com> | 2004-06-25 19:44:49 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2004-06-25 19:44:49 +0000 |
commit | e804f8229005019d5907146aaee4ff48df081535 (patch) | |
tree | 4c47ad4f706b8f2a3633736f4fc839863a4cf630 /gcc | |
parent | 4f430fb914a00768b8406f9b6fdb15ae4a93a8b8 (diff) | |
download | gcc-e804f8229005019d5907146aaee4ff48df081535.zip gcc-e804f8229005019d5907146aaee4ff48df081535.tar.gz gcc-e804f8229005019d5907146aaee4ff48df081535.tar.bz2 |
cp-mudflap.c (mflang_flush_calls): Fix thinkos resulting from 2004-06-23 change.
* cp-mudflap.c (mflang_flush_calls): Fix thinkos resulting from
2004-06-23 change.
From-SVN: r83675
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/cp-mudflap.c | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index aca2db2..bfb995c 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2004-06-25 Mark Mitchell <mark@codesourcery.com> + + * cp-mudflap.c (mflang_flush_calls): Fix thinkos resulting from + 2004-06-23 change. + 2004-06-25 Paul Brook <paul@codesourcery.com> * decl2.c (get_guard): Call targetm.cxx.guard_type. diff --git a/gcc/cp/cp-mudflap.c b/gcc/cp/cp-mudflap.c index 23e8750..a9703a7 100644 --- a/gcc/cp/cp-mudflap.c +++ b/gcc/cp/cp-mudflap.c @@ -74,10 +74,10 @@ mflang_flush_calls (tree enqueued_call_stmt_chain) type = build_function_type (void_type_node, void_list_node); fndecl = build_lang_decl (FUNCTION_DECL, fnname, type); - TREE_PUBLIC (current_function_decl) = 0; - TREE_USED (current_function_decl) = 1; - DECL_ARTIFICIAL (current_function_decl) = 1; - mf_mark (current_function_decl); + TREE_PUBLIC (fndecl) = 0; + TREE_USED (fndecl) = 1; + DECL_ARTIFICIAL (fndecl) = 1; + mf_mark (fndecl); /* Generate the body, one statement at a time. */ start_preparsed_function (fndecl, /*attrs=*/NULL_TREE, SF_PRE_PARSED); |