From d7faa110dd439f6406a35661e1c24a3100da1471 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Thu, 17 May 2012 15:28:53 +0000 Subject: [PATCH] re PR objc++/53388 (Removal of build_min_nt breaks bootstrap for objc++) 2012-05-17 Paolo Carlini PR objc++/53388 * objc-act.c (objc_get_class_reference, objc_build_message_expr): Use build_min_nt_loc. From-SVN: r187629 --- gcc/objc/ChangeLog | 8 +++++++- gcc/objc/objc-act.c | 6 +++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog index 6fed845690eb..ce8dd9ed62a4 100644 --- a/gcc/objc/ChangeLog +++ b/gcc/objc/ChangeLog @@ -1,6 +1,12 @@ +2012-05-17 Paolo Carlini + + PR objc++/53388 + * objc-act.c (objc_get_class_reference, objc_build_message_expr): + Use build_min_nt_loc. + 2012-04-20 Jan Hubicka - * objc-acct.c (mark_referenced_methods); Use + * objc-act.c (mark_referenced_methods); Use cgraph_mark_force_output_node. 2012-03-21 Steven Bosscher diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index ec07971f02de..b93948e9ee0a 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -3293,7 +3293,7 @@ objc_get_class_reference (tree ident) #ifdef OBJCPLUS if (processing_template_decl) /* Must wait until template instantiation time. */ - return build_min_nt (CLASS_REFERENCE_EXPR, ident); + return build_min_nt_loc (UNKNOWN_LOCATION, CLASS_REFERENCE_EXPR, ident); #endif if (TREE_CODE (ident) == TYPE_DECL) @@ -5272,8 +5272,8 @@ objc_build_message_expr (tree receiver, tree message_args) #ifdef OBJCPLUS if (processing_template_decl) /* Must wait until template instantiation time. */ - return build_min_nt (MESSAGE_SEND_EXPR, receiver, sel_name, - method_params); + return build_min_nt_loc (UNKNOWN_LOCATION, MESSAGE_SEND_EXPR, receiver, + sel_name, method_params); #endif return objc_finish_message_expr (receiver, sel_name, method_params, NULL);