1169689Skan2004-04-19 Richard Henderson <rth@redhat.com> 2169689Skan 3169689Skan * except.c (check_handlers_1): Use locus stored in master for warning. 4169689Skan * tree.c (cp_walk_subtrees): Save and restore input_location. 5169689Skan 6169689Skan2004-04-12 Diego Novillo <dnovillo@redhat.com> 7169689Skan 8169689Skan * cp-lang.c (LANG_HOOKS_RTL_EXPAND_START): Remove. 9169689Skan (LANG_HOOKS_RTL_EXPAND_STMT): Remove. 10169689Skan * semantics.c (cxx_expand_function_start): Remove. 11169689Skan 12169689Skan2004-04-12 Richard Henderson <rth@redhat.com> 13169689Skan 14169689Skan * except.c (check_handlers_1): Use EXPR_LOCUS instead of STMT_LINENO. 15169689Skan * semantics.c (finalize_nrv_r): Likewise. 16169689Skan * tree.c (cp_walk_subtrees): Likewise. 17169689Skan * parser.c (cp_parser_statement): Save and restore entire locus; 18169689Skan set EXPR_LOCUS. 19169689Skan * pt.c (tsubst_expr): Don't special-case LABEL_STMT. 20169689Skan 21169689Skan2004-04-01 Diego Novillo <dnovillo@redhat.com> 22169689Skan 23169689Skan * name-lookup.c (innermost_nonclass_level): Check for 24169689Skan error_mark_node. 25169689Skan 26169689Skan2004-03-25 Diego Novillo <dnovillo@redhat.com> 27169689Skan 28169689Skan * parser.c (cp_parser_class_specifier): Initialize 29169689Skan variable 'attributes'. 30169689Skan 31169689Skan2004-03-17 Richard Henderson <rth@redhat.com> 32169689Skan 33169689Skan * cp-lang.c (cxx_types_compatible_p): Use 34169689Skan same_type_ignoring_top_level_qualifiers_p. 35169689Skan 36169689Skan2004-03-16 Dale Johannesen <dalej@apple.com> 37169689Skan 38169689Skan * cp-lang.c (cxx_types_compatible_p): New. 39169689Skan LANG_HOOKS_TYPES_COMPATIBLE_P: New. 40169689Skan 41169689Skan2004-03-10 Jason Merrill <jason@redhat.com> 42169689Skan 43169689Skan PR c++/14452 44169689Skan * tree.c (stabilize_init): Return whether or not it worked. 45169689Skan * init.c (build_new_1): If not, use a sentry. 46169689Skan * cp-tree.h: Adjust prototype. 47169689Skan 48169689Skan2004-03-01 Jeff Law <law@redhat.com> 49169689Skan 50169689Skan * init.c (build_vec_delete_1): Convert 2nd argument to NE_EXPR to 51169689Skan the proper type. 52169689Skan 53169689Skan2004-02-24 Jason Merrill <jason@redhat.com> 54169689Skan 55169689Skan PR c++/13944 56169689Skan * except.c (do_free_exception): Remove #if 0 wrapper. 57169689Skan (build_throw): Use it if we elide a copy into the exception object. 58169689Skan 59169689Skan * tree.c (stabilize_call): Fix thinko. 60169689Skan 61169689Skan2004-02-19 Steven Bosscher <stevenb@suse.de> 62169689Skan 63169689Skan * decl.c (poplevel): Don't output nested inline functions. 64169689Skan 65169689Skan2004-02-16 Richard Henderson <rth@redhat.com> 66169689Skan 67169689Skan * call.c (build_call, build_over_call, build_new_method_call): Add 68169689Skan static chain operand to call_expr. 69169689Skan * decl.c (build_offset_ref_call_from_tree): Likewise. 70169689Skan * parser.c (cp_parser_postfix_expression): Likewise. 71169689Skan * semantics.c (finish_call_expr): Likewise. 72169689Skan * cp-lang.c (cp_expand_decl): Don't declare_nonlocal_label. 73169689Skan 74169689Skan2004-02-09 Richard Henderson <rth@redhat.com> 75169689Skan 76169689Skan * cp-lang.c (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P): New. 77169689Skan * cp-tree.h (cp_missing_noreturn_ok_p): Declare. 78169689Skan * decl.c (cp_missing_noreturn_ok_p): Export. 79169689Skan (cxx_init_decl_processing): Don't set lang_missing_noreturn_ok_p. 80169689Skan 81169689Skan2004-02-06 Andrew Pinski <pinskia@physics.uc.edu> 82169689Skan 83169689Skan PR c/13863 84169689Skan * cp-lang.c (LANG_HOOKS_DECL_UNINIT): Remove. 85169689Skan 86169689Skan2004-02-03 Richard Henderson <rth@redhat.com> 87169689Skan 88169689Skan PR middle-end/13325 89169689Skan * call.c, cvt.c, init.c, typeck.c: Use TREE_NO_WARNING instead 90169689Skan of TREE_NO_UNUSED_WARNING. 91169689Skan * cvt.c (convert_to_void): Also use it for "has no effect" warning. 92169689Skan 93169689Skan2004-01-30 Frank Ch. Eigler <fche@redhat.com> 94169689Skan 95169689Skan * cp-mudflap.c (mflang_flush_calls): Mark static ctor as TREE_USED. 96169689Skan 97169689Skan2004-01-12 Jason Merrill <jason@redhat.com> 98169689Skan 99169689Skan * cp-lang.c (ok_to_generate_alias_set_for_type): Remove. 100169689Skan (cxx_get_alias_set): Allow all types. 101169689Skan 102169689Skan2004-01-08 Frank Ch. Eigler <fche@redhat.com> 103169689Skan 104169689Skan * cp-mudflap.c (mflang_flush_calls): mf_mark synthetic function. 105169689Skan 106169689Skan2004-01-04 Richard Henderson <rth@redhat.com> 107169689Skan 108169689Skan * call.c (build_over_call): Don't create a save_expr of an 109169689Skan aggregate, but rather its address. 110169689Skan 111169689Skan2004-01-01 Richard Henderson <rth@redhat.com> 112169689Skan 113169689Skan * expr.c (cxx_expand_expr): Don't handle THROW_EXPR, or 114169689Skan MUST_NOT_THROW_EXPR. 115169689Skan * semantics.c (genrtl_try_block, genrtl_eh_spec_block, 116169689Skan genrtl_handler, cp_expand_stmt): Remove. 117169689Skan (init_cp_semantics): Don't set lang_expand_stmt. 118169689Skan 119169689Skan2003-12-31 Richard Henderson <rth@redhat.com> 120169689Skan 121169689Skan * cp-mudflap.c (mflang_register_call): Remove. 122169689Skan 123169689Skan2003-12-18 Jason Merrill <jason@redhat.com> 124169689Skan 125169689Skan PR c++/12453 126169689Skan * cp-simplify.c (cp_gimplify_init_expr): Look inside STMT_EXPRs 127169689Skan and COMPOUND_EXPRs to find an AGGR_INIT_EXPR. 128169689Skan 129169689Skan2003-12-16 Jason Merrill <jason@redhat.com> 130169689Skan 131169689Skan PR middle-end/12920 132169689Skan * decl.c (grokdeclarator): Immediately layout an 133169689Skan ARRAY_TYPE used in a pointer-to-array declarator. 134169689Skan 135169689Skan2003-12-16 Jan Hubicka <jh@suse.cz> 136169689Skan 137169689Skan Revert until initializers are made language independent: 138169689Skan * cp-lang.c (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Kill. 139169689Skan * cp-tree.h (cxx_callgraph_analyze_expr): Kill. 140169689Skan * decl2.c (cxx_callgraph_analyze_expr): Kill. 141169689Skan 142169689Skan2003-12-14 Jan Hubicka <jh@suse.cz> 143169689Skan 144169689Skan * cp-lang.c (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Kill. 145169689Skan * cp-tree.h (cxx_callgraph_analyze_expr): Kill. 146169689Skan * decl2.c (cxx_callgraph_analyze_expr): Kill. 147169689Skan 148169689Skan2003-11-24 Richard Henderson <rth@redhat.com> 149169689Skan 150169689Skan * Make-lang.in (tree.o, typeck.o): Remove -Wno-error. 151169689Skan 152169689Skan2003-11-20 Richard Henderson <rth@redhat.com> 153169689Skan 154169689Skan * call.c (build_java_interface_fn_ref): Use build_address+convert. 155169689Skan * except.c (build_eh_type_type): Likewise. 156169689Skan * class.c (build_base_path): Use convert+build_indirect_ref. 157169689Skan * init.c (expand_virtual_init): Likewise. 158169689Skan * rtti.c (get_tinfo_decl_dynamic): Use convert. 159169689Skan 160169689Skan2003-11-20 Frank Ch. Eigler <fche@redhat.com> 161169689Skan 162169689Skan * cp-mudflap.c (mflang_flush_calls): Adapt to direct expansion of 163169689Skan synthetic function, bypassing callgraph code. 164169689Skan * cp-decl2.c (finish_file): Call mudflap after callgraph-based 165169689Skan expansion. 166169689Skan 167169689Skan2003-11-17 Jason Merrill <jason@redhat.com> 168169689Skan 169169689Skan * init.c (build_new_1): Preevaluate initializer. Simplify EH code. 170169689Skan (build_init): Call a constructor rather than call build_aggr_init 171169689Skan for classes. 172169689Skan * except.c (stabilize_throw_expr): Remove. 173169689Skan (build_throw): Use stabilize_init instead of stabilize_throw_expr. 174169689Skan * tree.c (stabilize_call, stabilize_init): New fns. 175169689Skan * call.c (build_over_call): A constructor no longer returns the 176169689Skan address of the object. 177169689Skan 178169689Skan2003-11-16 Richard Henderson <rth@redhat.com> 179169689Skan 180169689Skan * typeck.c (pointer_diff): Remove unused variable. 181169689Skan 182169689Skan2003-11-16 Jason Merrill <jason@redhat.com> 183169689Skan 184169689Skan PR optimization/11269 185169689Skan * semantics.c (finalize_nrv_r): Rename from nullify_returns_r. 186169689Skan Also replace uses of the nrv with our RESULT_DECL. 187169689Skan (cxx_expand_function_start): Don't mess with the nrv. 188169689Skan (finalize_nrv): New fn. 189169689Skan * cp-tree.h: Declare it. 190169689Skan * decl.c (finish_function): Call it. 191169689Skan * tree.c (cp_copy_res_decl_for_inlining): Don't mess with the nrv. 192169689Skan 193169689Skan2003-11-10 Richard Henderson <rth@redhat.com> 194169689Skan 195169689Skan * cp-simplify.c (gimplify_must_not_throw_expr): Replace add_tree 196169689Skan with append_to_statement_list. 197169689Skan 198169689Skan2003-10-30 Richard Henderson <rth@redhat.com> 199169689Skan 200169689Skan * decl.c (pop_switch): Call c_do_switch_warnings. 201169689Skan 202169689Skan2003-10-23 Richard Henderson <rth@redhat.com> 203169689Skan 204169689Skan * cp-simplify.c (cp_gimplify_expr): Return gimplify_status. 205169689Skan 206169689Skan2003-10-16 Richard Henderson <rth@redhat.com> 207169689Skan 208169689Skan * decl.c (finish_function): Don't check flag_disable_gimple. 209169689Skan 210169689Skan2003-10-14 Richard Henderson <rth@redhat.com> 211169689Skan 212169689Skan * decl.c (finish_function): Always gimplify; call c_warn_unused_result. 213169689Skan 214169689Skan2003-10-13 Richard Henderson <rth@redhat.com> 215169689Skan 216169689Skan * pt.c (push_tinst_level): Use annotate_with_locus. 217169689Skan 218169689Skan2003-10-12 Richard Henderson <rth@redhat.com> 219169689Skan 220169689Skan * call.c (call_builtin_trap): Use implicit_built_in_decls. 221169689Skan * class.c (build_base_path): Set TREE_INVARIANT. 222169689Skan (build_vtbl_ref_1, build_vtbl_initializer): Likewise. 223169689Skan * decl.c (build_enumerator): Likewise. 224169689Skan * init.c (build_zero_init): Likewise. 225169689Skan * pt.c (push_inline_template_parms_recursive): Likewise. 226169689Skan (build_template_parm_index, reduce_template_parm_level): Likewise. 227169689Skan (process_template_parm): Likewise. 228169689Skan * rtti.c (tinfo_base_init, generic_initializer): Likewise. 229169689Skan (ptr_initializer, ptm_initializer, class_initializer): Likewise. 230169689Skan * typeck.c (build_ptrmemfunc1): Likewise. 231169689Skan * typeck2.c (process_init_constructor): Likewise. 232169689Skan 233169689Skan * calls.c (dfs_accumulate_vtbl_inits): Rely on build to set 234169689Skan TREE_CONSTANT. 235169689Skan (build_vtbl_initializer): Likewise. 236169689Skan * init.c (build_vtbl_address): Likewise. 237169689Skan * rtti.c (tinfo_base_init): Likewise. 238169689Skan * tree.c (make_ptrmem_cst): Likewise. 239169689Skan * typeck.c (decay_conversion): Likewise. 240169689Skan (get_member_function_from_ptrfunc, build_binary_op): Likewise. 241169689Skan (pointer_diff, build_address, build_nop, build_unary_op): Likewise. 242169689Skan 243169689Skan2003-09-30 Richard Henderson <rth@redhat.com> 244169689Skan 245169689Skan * decl.c (finish_function): Set cfun->function_end_locus. 246169689Skan 247169689Skan2003-09-24 Jason Merrill <jason@redhat.com> 248169689Skan 249169689Skan * class.c, decl.c, decl2.c, error.c, init.c, lex.c, method.c, 250169689Skan pt.c, semantics.c, tree.c: Revert from TREE_LOCUS to 251169689Skan DECL_SOURCE_LOCATION. 252169689Skan 253169689Skan2003-09-17 Richard Henderson <rth@redhat.com> 254169689Skan 255169689Skan * decl.c (cxx_init_decl_processing): Don't using_eh_for_cleanups 256169689Skan if exceptions are disabled. 257169689Skan 258169689Skan2003-09-03 Richard Henderson <rth@redhat.com> 259169689Skan 260169689Skan * cp-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): Use expand_stmt_toplev. 261169689Skan 262169689Skan2003-09-03 Richard Henderson <rth@redhat.com> 263169689Skan 264169689Skan * decl.c (finish_function): Fix misapplied patch. Don't 265169689Skan free_after_parsing or free_after_compilation. For real this time. 266169689Skan 267169689Skan2003-08-22 Jason Merrill <jason@redhat.com> 268169689Skan 269169689Skan * cp-simplify.c (cp_gimplify_init_expr): Update use of predicates. 270169689Skan 271169689Skan2003-08-21 Jason Merrill <jason@redhat.com> 272169689Skan 273169689Skan * cp-simplify.c (cp_gimplify_expr): Use simplify_aggr_init_expr. 274169689Skan (cp_gimplify_init_expr): Don't call it here. 275169689Skan (gimplify_aggr_init_expr): Remove. 276169689Skan 277169689Skan2003-08-19 Jason Merrill <jason@redhat.com> 278169689Skan 279169689Skan * typeck.c (build_array_ref): Also build ARRAY_REFs from 280169689Skan INDIRECT_REFs of ARRAY_TYPE. 281169689Skan 282169689Skan * semantics.c (finish_id_expression): Unshare aliases. 283169689Skan 284169689Skan2003-08-12 Diego Novillo <dnovillo@redhat.com> 285169689Skan 286169689Skan * optimize.c (optimize_function): Do not call dump_function. 287169689Skan 288169689Skan2003-08-08 Jason Merrill <jason@redhat.com> 289169689Skan 290169689Skan * optimize.c (optimize_function): Restore support for 291169689Skan !keep_function_tree_in_gimple_form. 292169689Skan 293169689Skan2003-07-27 Andreas Jaeger <aj@suse.de> 294169689Skan 295169689Skan * cp-lang.c: Convert K&R prototypes to ISO C90. 296169689Skan * cp-simplify.c: Likewise. 297169689Skan * cp-mudflap.c: Likewise. 298169689Skan 299169689Skan2003-06-13 Frank Ch. Eigler <fche@redhat.com> 300169689Skan 301169689Skan * semantics.c (expand_body): Call mudflap_c_function just before 302169689Skan rtl expansion of function body; don't interfere with inlining. 303169689Skan * optimize.c (optimize_function): Remove mudflap call. 304169689Skan 305169689Skan2003-06-13 Diego Novillo <dnovillo@redhat.com> 306169689Skan 307169689Skan * cp-lang.c, cp-simplify.c, cp-tree.h, decl.c, optimize.c, 308169689Skan semantics.c, tree.c: Rename SIMPLE to GIMPLE everywhere. 309169689Skan 310169689Skan2003-06-05 Frank Ch. Eigler <fche@redhat.com> 311169689Skan 312169689Skan * cp-mudflap.c (mflang_register_call): Give the synthetic decl 313169689Skan undefined (not zero) size. 314169689Skan 315169689Skan2003-06-05 Frank Ch. Eigler <fche@redhat.com> 316169689Skan 317169689Skan * cp-mudflap.c (mx_flag): Remove. Update callers to use mf_mark. 318169689Skan 319169689Skan2003-05-24 Diego Novillo <dnovillo@redhat.com> 320169689Skan 321169689Skan * Make-lang.in (optimize.o): Add dependency on tree-simple.h 322169689Skan * decl.c (grokdeclarator): Don't abort when the declarator is 323169689Skan ERROR_MARK_NODE. 324169689Skan * optimize.c (optimize_function): Unshare all trees after 325169689Skan optimizing inline calls. 326169689Skan 327169689Skan2003-05-12 Diego Novillo <dnovillo@redhat.com> 328169689Skan 329169689Skan * class.c (dump_array): Call CONSTRUCTOR_ELTS to access 330169689Skan the operand of a CONSTRUCTOR node. 331169689Skan 332169689Skan2003-05-07 Diego Novillo <dnovillo@redhat.com> 333169689Skan 334169689Skan * decl.c (grokdeclarator): Fix thinko in handling 335169689Skan ERROR_MARK declarators. 336169689Skan 337169689Skan2003-05-07 Diego Novillo <dnovillo@redhat.com> 338169689Skan 339169689Skan * decl.c (grokdeclarator): Handle ERROR_MARK declarators. 340169689Skan 341169689Skan2003-05-07 Jason Merrill <jason@redhat.com> 342169689Skan 343169689Skan * semantics.c (expand_body): Call expand_stmt when 344169689Skan -fdisable-simple is given. 345169689Skan 346169689Skan2003-04-21 Jeff Law <law@redhat.com> 347169689Skan 348169689Skan * optimize.c (optimize_function_tree): Do run the tree-ssa 349169689Skan optimizers. 350169689Skan 351169689Skan2003-04-16 Jeff Law <law@redhat.com> 352169689Skan 353169689Skan * optimize.c (optimize_function): No longer check 354169689Skan flag_disable_simple. 355169689Skan 356169689Skan2003-04-15 Jeff Law <law@redhat.com> 357169689Skan 358169689Skan * pt.c (instantiate_decl): If CFUN is null, then we will 359169689Skan need to push to the toplevel. 360169689Skan 361169689Skan * Makefile.in (decl.o): Depends on tree-flow.h. 362169689Skan * decl.c (finish_function): Call set_has_hidden_use when 363169689Skan nullifying returns for named value return optimization. 364169689Skan 365169689Skan2003-04-02 Jason Merrill <jason@redhat.com> 366169689Skan 367169689Skan * cp-simplify.c (cp_simplify_expr) <case EMPTY_CLASS_EXPR>: 368169689Skan Change type of constant to RECORD_TYPE. 369169689Skan 370169689Skan2003-03-10 Jeff Law <law@redhat.com> 371169689Skan 372169689Skan * optimize.c (optimize_function): Avoid unnecessary 373169689Skan simplification of the function tree. 374169689Skan 375169689Skan2003-03-02 Diego Novillo <dnovillo@redhat.com> 376169689Skan 377169689Skan * decl.c: Replace DECL_SOURCE_LOCATION with TREE_LOCUS 378169689Skan everywhere. 379169689Skan 380169689Skan2003-02-28 Frank Ch. Eigler <fche@redhat.com> 381169689Skan 382169689Skan * decl2.c (finish_file): Adjust timing of mudflap_finish_file call 383169689Skan to account for unit-at-a-time compilation. 384169689Skan 385169689Skan2003-02-07 Jason Merrill <jason@redhat.com> 386169689Skan 387169689Skan * cp-simplify.c (cp_simplify_expr): Handle BASELINK. 388169689Skan 389169689Skan * parser.c (cp_parser_primary_expression): Unshare a COMPONENT_REF 390169689Skan from an ALIAS_DECL. 391169689Skan 392169689Skan2003-02-05 Jason Merrill <jason@redhat.com> 393169689Skan 394169689Skan * cp-simplify.c (genericize_try_block): Do genericize catch blocks. 395169689Skan 396169689Skan2003-02-03 Diego Novillo <dnovillo@redhat.com> 397169689Skan 398169689Skan * parser.c (cp_parser_asm_definition): Call finish_asm_stmt with 399169689Skan 'volatile_p' directly. 400169689Skan * typeck.c (build_binary_op): Initialize variable 'type'. 401169689Skan * Make-lang.in (cp/tree.o-warn): Add -Wno-error. 402169689Skan 403169689Skan2003-01-29 Frank Ch. Eigler <fche@redhat.com> 404169689Skan 405169689Skan * cp-mudflap.c (mflang_register_call): Adapt to mf-runtime.h API 406169689Skan change. 407169689Skan 408169689Skan2003-01-15 Jeff Law <law@redhat.com> 409169689Skan 410169689Skan * class.c: Use TREE_FILENAME and TREE_LINENO to extract 411169689Skan file/line information from tree nodes. Remove EXPR_WITH_FILE_LOCATION 412169689Skan nodes. Use annotate_with_file_line to attach file/line information 413169689Skan to tree nodes. Use TREE_LOCUS to copy file/line information 414169689Skan from one node to another. 415169689Skan * decl2.c, error.c, init.c, lex.c, method.c: Likewise. 416169689Skan * optimize.c: Likewise. 417169689Skan * cp-tree.def (TINST_LEVEL): New tree node. 418169689Skan * cp-tree.h (TINST_DECL): Update now that we no longer use 419169689Skan EXPR_WITH_FILE_LOCATION to represent the TINST_DECL information. 420169689Skan (TINST_FILE, TINST_LINE): Kill. 421169689Skan * decl.c: Use TREE_FILENAME and TREE_LINENO to extract 422169689Skan file/line information from tree nodes. Use annotate_witH_file_line 423169689Skan to add file/line information to tree nodes. Use TREE_LOCUS 424169689Skan to copy file/line information from one node to another. 425169689Skan (duplicate_decls): Make sure to copy TREE_LOCUS information 426169689Skan from the old decl to the new decl. 427169689Skan (finish_function): Save and restore file/line information 428169689Skan around genericizing the function tree. 429169689Skan * pt.c (lookup_template_class): Use TREE_LOCUS to copy file/line 430169689Skan information from one node to another. 431169689Skan (push_tinst_level): Generate a TINST_LEVEL node rather than 432169689Skan using EXPR_WITH_FILE_LOCATION nodes. Use annotate_with_file_line 433169689Skan to annotate the new node with file/line information. 434169689Skan (pop_tinst_level): Use TREE_LINENO and TREE_FILENAME to extract 435169689Skan file/line information from nodes. 436169689Skan (tsubst_friend_function, instantiate_class_template): Likewise. 437169689Skan (tsubst_decl, instantiate_decl, tsubst_enum): Likewise. 438169689Skan * semantics.c: Use annotate_with_file_line to annotate tree 439169689Skan nodes with file/line information. Use TREE_FILENAME and TREE_LINENO 440169689Skan to extract file/line information from tree nodes. 441169689Skan (expand_body): Restore file/line information slightly earlier. 442169689Skan tree.c (cp_walk_subtrees): Set lineno appropriately. 443169689Skan (cp_copy_res_decl_for_inlining): Use TREE_LOCUS to copy file/line 444169689Skan information from one node to another. 445169689Skan 446169689Skan2003-01-13 Frank Ch. Eigler <fche@redhat.com> 447169689Skan 448169689Skan Prototype C++ mudflap support. 449169689Skan * Make-lang.in (CXX_OBJS): Add cp/cp-mudflap.o and dependencies. 450169689Skan * cp-mudflap.c: New file with C++ front-end mflang_* routines. 451169689Skan * decl2.c (finish_file): Divert to mudflap if appropriate. 452169689Skan * optimize.c (optimize_function): Ditto. 453169689Skan 454169689Skan2003-01-02 Jason Merrill <jason@redhat.com> 455169689Skan 456169689Skan * Make-lang.in (CXX_C_OBJS): Replace old-tree-inline.o with 457169689Skan tree-inline.o. 458169689Skan 459169689Skan * optimize.c (dump_function): Move to ../tree-dump.c. 460169689Skan 461169689Skan * cp-simplify.c (cp_simplify_expr): Handle PTRMEM_CST, INIT_EXPR, 462169689Skan MODIFY_EXPR and EMPTY_CLASS_EXPR. 463169689Skan (cp_simplify_stmt): Handle USING_STMT. 464169689Skan (cp_simplify_init_expr): New fn. 465169689Skan * cvt.c (build_up_reference): Don't push the decl. 466169689Skan * class.c (build_vtable_entry_ref, build_vtbl_ref_1): Unshare the 467169689Skan vtable address. 468169689Skan * init.c (build_vtbl_address): Likewise. 469169689Skan * cp-lang.c (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove. 470169689Skan * decl.c (lookup_name_real): Unshare the expansion of an ALIAS_DECL. 471169689Skan (finish_function): Don't genericize templates. 472169689Skan * parse.y (parse_asm_stmt): Fix prototype. 473169689Skan * semantics.c (expand_body): Don't expand if we saw errors. 474169689Skan Drop support for expanding non-GENERIC code. 475169689Skan 476169689Skan * cp-simplify.c (cp_simplify_stmt): Handle HANDLER and EH_SPEC_BLOCK. 477169689Skan (genericize_try_block): Always build a TRY_CATCH_EXPR. 478169689Skan (genericize_catch_block): New fn. 479169689Skan (genericize_eh_spec_block): New fn. 480169689Skan (cp_simplify_expr): Handle THROW_EXPR and MUST_NOT_THROW_EXPR. 481169689Skan (simplify_must_not_throw_expr): New fn. 482169689Skan * except.c (wrap_cleanups_r): Make the MUST_NOT_THROW_EXPR void. 483169689Skan (build_throw): Likewise. 484169689Skan 485169689Skan2002-12-14 Jason Merrill <jason@redhat.com> 486169689Skan 487169689Skan * optimize.c (dump_function): Use pretty dumpers. 488169689Skan (optimize_function): Don't do .original dump here. 489169689Skan 490169689Skan2002-12-03 Diego Novillo <dnovillo@redhat.com> 491169689Skan 492169689Skan * cp-simplify.c: Include coretypes.h and tm.h. 493169689Skan 494169689Skan2002-11-24 Jason Merrill <jason@redhat.com> 495169689Skan 496169689Skan Gimplify C++ cleanups. 497169689Skan * decl.c (finish_function): Call c_genericize. 498169689Skan * cp-simplify.c (cp_simplify_stmt): New fn. 499169689Skan (genericize_try_block): New fn. 500169689Skan (cp_simplify_expr): Move INIT_EXPR/TARGET_EXPR code 501169689Skan to ../gimplify.c. Handle AGGR_INIT_EXPR. 502169689Skan (simplify_target_expr): Move to ../gimplify.c. 503169689Skan (maybe_fixup_loop_cond): Remove. 504169689Skan (simplify_aggr_init_expr): Split out from... 505169689Skan * semantics.c (simplify_aggr_init_exprs_r): ...here. 506169689Skan (expand_body): Don't simplify AGGR_INIT_EXPRs here 507169689Skan if we're gimplifying. Handle expanding generic trees. 508169689Skan * tree.c (init_tree): Set lang_simplify_stmt. 509169689Skan * cp-tree.h: Declare the new fns. 510169689Skan 511169689Skan * optimize.c (optimize_function): Do pretty dumps. 512169689Skan 513169689Skan2002-10-04 Jason Merrill <jason@redhat.com> 514169689Skan 515169689Skan * Make-lang.in (CXX_C_OBJS): Add gimplify.o. 516169689Skan 517169689Skan2002-09-24 Jason Merrill <jason@redhat.com> 518169689Skan 519169689Skan * parse.y (parse_asm_stmt): New fn. 520169689Skan (simple_stmt): Use it. 521169689Skan * semantics.c (finish_asm_stmt): Change cv_qualifier parm to 522169689Skan volatile_p. 523169689Skan * cp-tree.h: Adjust prototype. 524169689Skan * pt.c (tsubst_expr): Adjust call. 525169689Skan 526169689Skan2002-08-23 Diego Novillo <dnovillo@redhat.com> 527169689Skan 528169689Skan * Make-lang.in (CXX_C_OBJS): Add tree-dchain.o 529169689Skan 530169689Skan2002-08-11 Jason Merrill <jason@redhat.com> 531169689Skan 532169689Skan * cp-simplify.c (maybe_fixup_loop_cond): Move here. 533169689Skan (cp_simplify_expr): Call it. 534169689Skan (simplify_target_expr): Remove pre_p parm. 535169689Skan 536169689Skan2002-08-09 Jason Merrill <jason@redhat.com> 537169689Skan 538169689Skan * cp-simplify.c (cp_simplify_expr): New fn. 539169689Skan (simplify_target_expr): New fn. 540169689Skan (cp_simplify_function_tree): Remove. 541169689Skan * cp-lang.c (LANG_HOOKS_SIMPLIFY_FUNCTION_TREE): Don't define. 542169689Skan (LANG_HOOKS_SIMPLIFY_EXPR): Define. 543169689Skan * optimize.c (optimize_function): De-hook simplify_function_tree. 544169689Skan * cp-tree.h: Declare cp_simplify_expr. 545169689Skan 546169689Skan2002-07-17 Daniel Berlin <dberlin@dberlin.org> 547169689Skan 548169689Skan * Make-lang.in (CXX_C_OBJS): Add tree-alias-ecr.c, 549169689Skan tree-alias-type.o, tree-alias-steen.o, disjoint-set.o. 550169689Skan 551169689Skan2002-06-21 Andreas Jaeger <aj@suse.de> 552169689Skan 553169689Skan * Make-lang.in (cp-simplify.o): New. 554169689Skan 555169689Skan2002-06-18 Jason Merrill <jason@redhat.com> 556169689Skan 557169689Skan * cp-simplify.c: New file. 558169689Skan * Make-lang.in: Add it. 559169689Skan * cp-tree.h: Declare cp_simplify_function_tree. 560169689Skan * cp-lang.c (LANG_HOOKS_SIMPLIFY_FUNCTION_TREE): Define. 561169689Skan * optimize.c (optimize_function): Call tree optimizers (but not yet). 562169689Skan 563169689SkanLocal Variables: 564169689Skanmode: change-log 565169689Skanchange-log-default-name: "ChangeLog.tree-ssa" 566169689SkanEnd: 567