- 13 Jul, 2010 28 commits
-
-
PR c++/44909 * cp-tree.h (struct lang_type_class): Add has_user_opeq. (TYPE_HAS_USER_OPEQ): New. * decl.c (grok_special_member_properties): Set it. * class.c (add_implicitly_declared_members): Don't lazily declare constructors/operator= if a base or member has a user-declared one. (check_bases_and_members, check_bases): Adjust. (check_field_decls, check_field_decl): Adjust. * method.c (synthesized_method_walk): Initialize check_vdtor. From-SVN: r162159
Jason Merrill committed -
PR c++/44540 * mangle.c (write_type): Canonicalize. (canonicalize_for_substitution): Retain cv-quals on FUNCTION_TYPE. (write_CV_qualifiers_for_type): Ignore them in abi>=5. From-SVN: r162158
Jason Merrill committed -
From-SVN: r162157
Joern Rennecke committed -
gcc: PR other/44874 * tree-dump.c (dump_options): Add enumerate_locals entry. Add TDF_NOID exclusion to all entry. * tree-dump.h (dump_enumerated_decls): Declare. * tree-pretty-print.c (dump_generic_node): For TDF_NOID, Don't display type uid. (print_declaration): Don't crash on TREE_TYPE (t) == 0. * tree-pass.h (TDF_ENUMERATE_LOCALS): Define. * tree-ssa-live.c: Include gimple.h. (numbered_tree_d): New struct. (numbered_tree): New typedef. (DEF_VEC_O (numbered_tree): New. (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise. (compare_decls_by_uid, dump_enumerated_decls_push): New functions. (dump_enumerated_decls): Likewise. * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing debug info and flag_dump_final_insns, call dump_enumerated_decls. * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls. * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H). gcc/testsuite: PR other/44874 PR debug/44832 * c-c++-common/pr44832.c: New test. From-SVN: r162156
Joern Rennecke committed -
2010-07-13 Benjamin Kosnik <bkoz@redhat.com> * doc/Makefile.am: Edit pdf rules. (doc-man, doc-pdf, doc-html): Expand default rules. * doc/Makefile.in: Regenerate. * doc/doxygen/user.cfg.in: Update to Doxygen 1.7.1. From-SVN: r162151
Benjamin Kosnik committed -
gcc/ * expmed.h (MAX_BITS_PER_WORD): Move to... * defaults.h (MAX_BITS_PER_WORD): ...here. From-SVN: r162150
Richard Sandiford committed -
* config/h8300/h8300.c (h8300_init_once): Default to -fstrict_volatile_bitfields. * config/sh/sh.c (sh_override_options): Default to -fstrict_volatile_bitfields. * config/rx/rx.c (rx_option_override): New. * config/m32c/m32c.c (m32c_override_options): Default to -fstrict_volatile_bitfields. From-SVN: r162149
DJ Delorie committed -
gcc/ * tree.h (build_function_call_expr): Delete. (build_call_expr_loc_array): New function. (build_call_expr_loc_vec): New function. * tree-flow.h (struct omp_region): Change type of ws_args field to a VEC. * builtins.c (build_function_call_expr): Delete. (build_call_expr_loc_array): New function. (build_call_expr_loc): Call it. Use XALLOCAVEC. (build_call_expr): Likewise. (build_call_expr_loc_vec): New function. * cgraphunit.c (build_cdtor): Call build_call_expr instead of build_function_call_expr. * expr.c (emutls_var_address): Likewise. * varasm.c (emutls_common_1): Likewise. * omp-low.c (expand_omp_atomic_mutex): Likewise. (expand_omp_taskreg): Adjust for new type of region->ws_args. (get_ws_args_for): Return a VEC instead of a tree. (expand_parallel_call): Call build_call_expr_loc_vec instead of build_function_call_expr. * stor-layout.c (self_referential_size): Likewise. gcc/fortran/ * trans-decl.c (build_entry_thunks): Call build_call_expr_loc_vec instead of build_function_call_expr. * trans-intrinsic.c (gfc_conv_intrinsic_sr_kind): Likewise. From-SVN: r162148
Nathan Froyd committed -
re PR fortran/43665 (INTENT(IN) etc. optimization of calls: function annotations for noclobber/noescape arguments) 2010-07-13 Tobias Burnus <burnus@net-b.de> Daniel Franke <franke.daniel@gmail.com> PR fortran/43665 * trans.h (gfc_build_library_function_decl_with_spec): New prototype. * trans-decl.c (gfc_build_library_function_decl_with_spec): Removed static. * trans-io (gfc_build_io_library_fndecls): Add "fn spec" annotations. Co-Authored-By: Daniel Franke <franke.daniel@gmail.com> From-SVN: r162147
Tobias Burnus committed -
re PR bootstrap/44458 (Bootstrap fails on arm_float_words_big_endian implicit declaration when Ada on arm-linux) 2010-07-13 Laurent GUERBY <laurent@guerby.net> PR bootstrap/44458 * gcc-interface/targtyps.c: Include tm_p.h. * gcc-interface/Make-lang.in: Update dependencies. From-SVN: r162146
Laurent GUERBY committed -
PR objc/44488 * lib/objc-torture.exp (objc-set-runtime-options): Base runtime list on the target. Make sure that we can assemble the emitted asm when the test type is 'compile'. From-SVN: r162144
Iain Sandoe committed -
PR testsuite/44701 * recog.c (constrain_operands): Allow side-effects in memory operands if either < or > constraint is used, rather than if both < and > is used. From-SVN: r162142
Jakub Jelinek committed -
2010-07-13 Richard Guenther <rguenther@suse.de> PR tree-optimization/36960 * g++.dg/torture/pr36960.C: New testcase. From-SVN: r162141
Richard Guenther committed -
re PR fortran/43665 (INTENT(IN) etc. optimization of calls: function annotations for noclobber/noescape arguments) 2010-07-13 Daniel Franke <franke.daniel@gmail.com> Tobias Burnus <burnus@net-b.de> PR fortran/43665 * trans-decl.c (gfc_build_intrinsic_function_decls): Add noclobber/noescape annotations to function calls. (gfc_build_builtin_function_decls): Likewise. Co-Authored-By: Tobias Burnus <burnus@net-b.de> From-SVN: r162140
Daniel Franke committed -
cp/ 2010-07-13 Paolo Carlini <paolo.carlini@oracle.com> PR c++/44908 * call.c (convert_like_real): Adjust convert_ptrmem call, pass complain argument. * typeck.c (get_delta_difference): Update prototype, add a tsubst_flags_t parameter; update get_delta_difference_1 calls and add checks for error_mark_node. (get_delta_difference_1): Update prototype, add a tsubst_flags_t parameter; update lookup_base call. (build_ptrmemfunc): Update prototype, add a tsubst_flags_t parameter; update get_delta_difference call and add check for error_mark_node. (convert_ptrmem): Update prototype, add a tsubst_flags_t parameter; update get_delta_difference call and add check for error_mark_node; update build_ptrmemfunc call. (build_static_cast_1): Adjust convert_ptrmem call. (expand_ptrmemfunc_cst): Adjust get_delta_difference call. (cp_build_unary_op): Adjust build_ptrmemfunc call. * cvt.c (cp_convert_to_pointer, convert_force): Adjust convert_ptrmem and build_ptrmemfunc calls. * cp-tree.h: Update build_ptrmemfunc and convert_ptrmem prototypes. testsuite/ 2010-07-13 Paolo Carlini <paolo.carlini@oracle.com> PR c++/44908 * g++.dg/template/sfinae21.C: New. * g++.dg/template/sfinae22.C: Likewise. From-SVN: r162138
Paolo Carlini committed -
2010-07-13 Richard Guenther <rguenther@suse.de> PR middle-end/44911 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs without name. From-SVN: r162137
Richard Guenther committed -
* gcc.c-torture/execute/pr44683.x: New. * gcc.dg/torture/builtin-cproj-1.c: Add dg-add-options ieee. From-SVN: r162136
Kaz Kojima committed -
PR target/44761 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED to variable emited. * config/sh/sh.c (sh_expand_epilogue): Remove unused variable. * config/sh/sh.md (symGOT_load): Likewise. (symDTPOFF2reg): Likewise. (symTPOFF2reg): Likewise. From-SVN: r162135
Kaz Kojima committed -
2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h. * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c From-SVN: r162133
Ramana Radhakrishnan committed -
* config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct explanation. Find ucontext_t * on Solaris 11. (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern. Handle new Solaris 11 __sighndlr patterns. From-SVN: r162129
Rainer Orth committed -
PR debug/44901 * vec.h (VEC_block_remove): Fix comment. * tree-ssa-live.c (remove_unused_locals): Don't use VEC_unordered_remove on local_decls, instead replace a single vector element in each iteration if at least one element had to be removed and VEC_truncate at the end. * omp-low.c (expand_omp_taskreg): Likewise. From-SVN: r162126
Jakub Jelinek committed -
2010-07-13 Janus Weil <janus@gcc.gnu.org> PR fortran/44434 PR fortran/44565 PR fortran/43945 PR fortran/44869 * gfortran.h (gfc_find_derived_vtab): Modified prototype. * class.c (gfc_build_class_symbol): Modified call to 'gfc_find_derived_vtab'. (add_proc_component): Removed, moved code into 'add_proc_comp'. (add_proc_comps): Renamed to 'add_proc_comp', removed treatment of generics. (add_procs_to_declared_vtab1): Removed unnecessary argument 'resolved'. Removed treatment of generics. (copy_vtab_proc_comps): Removed unnecessary argument 'resolved'. Call 'add_proc_comp' instead of duplicating code. (add_procs_to_declared_vtab): Removed unnecessary arguments 'resolved' and 'declared'. (add_generic_specifics,add_generics_to_declared_vtab): Removed. (gfc_find_derived_vtab): Removed unnecessary argument 'resolved'. Removed treatment of generics. * iresolve.c (gfc_resolve_extends_type_of): Modified call to 'gfc_find_derived_vtab'. * resolve.c (resolve_typebound_function,resolve_typebound_subroutine): Removed treatment of generics. (resolve_select_type,resolve_fl_derived): Modified call to 'gfc_find_derived_vtab'. * trans-decl.c (gfc_get_symbol_decl): Ditto. * trans-expr.c (gfc_conv_derived_to_class,gfc_trans_class_assign): Ditto. * trans-stmt.c (gfc_trans_allocate): Ditto. 2010-07-13 Janus Weil <janus@gcc.gnu.org> PR fortran/44434 PR fortran/44565 PR fortran/43945 PR fortran/44869 * gfortran.dg/dynamic_dispatch_1.f03: Fixed invalid test case. * gfortran.dg/dynamic_dispatch_2.f03: Ditto. * gfortran.dg/dynamic_dispatch_3.f03: Ditto. * gfortran.dh/typebound_call_16.f03: New. * gfortran.dg/typebound_generic_6.f03: New. * gfortran.dg/typebound_generic_7.f03: New. * gfortran.dg/typebound_generic_8.f03: New. From-SVN: r162125
Janus Weil committed -
2010-07-12 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libfortran/37077 * gfortran.dg/char4_iunit_1.f03: New test. From-SVN: r162124
Jerry DeLisle committed -
2010-07-12 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libfortran/37077 * io/read.c: Fix comment. * io/io.h (is_char4_unit): New macro. * io/unit.c (get_internal_unit): Call new function open_internal4. * io/unix.c (mem_alloc_r4): New function. (mem_alloc_w4): New function. (mem_read4): New function, temporary stub. (mem_write4): New function. (open_internal4): New function to set stream pointers to use the new mem functions. * io/transfer.c (write_block): Use new mem_alloc_w4 to access internal units of kind=4. * io/unix.h: Add prototypes for open_internal4, mem_alloc_w4, and mem_alloc_r4. * io/write.c (memset4): New helper function. (memcpy4): New helper function. (write_default_char4): Use new helper functions. (write_a): Likewise. (write_l): Likewise. (write_boz): Likewise. (write_decimal): Likewise. (write_x): Likewise. (write_integer): Likewise. * io/write_float.def (output_float): Add code blocks to handle internal unit kind=4 output utilizing gfc_char4_t pointers. (write_infnan): Use new helper functions. (OUTPUT_FLOAT_FMT_G): Update this macro likewise. From-SVN: r162123
Jerry DeLisle committed -
2010-07-12 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/37077 * trans-io.c (build_dt): Set common.unit to flag chracter(kind=4) internal unit. From-SVN: r162122
Jerry DeLisle committed -
2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org> * c-decl.c (finish_function): Fix typo in comment. From-SVN: r162121
Manuel López-Ibáñez committed -
2010-07-12 H.J. Lu <hongjiu.lu@intel.com> PR bootstrap/44921 * postreload.c (move2add_use_add3_insn): Silence gcc warning on min_regno. From-SVN: r162120
H.J. Lu committed -
From-SVN: r162119
GCC Administrator committed
-
- 12 Jul, 2010 12 commits
-
-
* tree-vrp.c (simplify_bit_ops_using_ranges): New function. (simplify_stmt_using_ranges): Use it. * gcc.dg/tree-ssa/vrp53.c: New test. From-SVN: r162115
Jakub Jelinek committed -
* config/spu/spu.h (struct spu_builtin_description): Remove FNDECL member. Do not mark as GTY(()). * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements. (spu_builtin_decls): New static variable. (spu_builtin_decl): Use it instead of spu_builtins[].fndecl. (spu_init_builtins): Likewise. (spu_builtin_mul_widen_even): Likewise. (spu_builtin_mul_widen_odd): Likewise. (spu_builtin_mask_for_load): Likewise. (spu_builtin_vec_perm): Likewise. * config/spu/spu-c.c: Include "target.h". (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead of using spu_builtins[].fndecl. From-SVN: r162114
Ulrich Weigand committed -
/cp 2010-07-12 Paolo Carlini <paolo.carlini@oracle.com> PR c++/44907 * call.c (build_temp): Add tsubst_flags_t complain parameter; adjust build_special_member_call call, pass complain. (convert_like_real): Adjust build_temp call, pass complain. /testsuite 2010-07-12 Paolo Carlini <paolo.carlini@oracle.com> PR c++/44907 * g++.dg/template/sfinae19.C: New. * g++.dg/template/sfinae20.C: Likewise. From-SVN: r162113
Paolo Carlini committed -
gcc/ * config/mips/mips.c (mips_override_options): Make -mflip-mips16 imply -minterlink-mips16. From-SVN: r162112
Richard Sandiford committed -
gcc/ * config/mips/mips.h (mips16_globals): Declare. (SWITCHABLE_TARGET): Define. * config/mips/mips.c: Include target-globals.h. (mips16_globals): New variable. (mips_set_mips16_mode): Use save_target_globals and restore_target_globals instead of target_reinit. From-SVN: r162111
Richard Sandiford committed -
gcc/ * reginfo.c (init_reg_sets): Don't zero globals here. Update comment to say that the function can be called more than once. * target-globals.c (save_target_globals): Call init_reg_sets. From-SVN: r162110
Richard Sandiford committed -
gcc/ * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h * bb-reorder.h: New file. * bb-reorder.c (default_target_bb_reorder): New variable. (this_target_bb_reorder): New conditional variable. (uncond_jump_length): Redefine as a macro. * target-globals.h (this_target_bb_reorder): Declare. (target_globals): Add a bb_reorder field. (restore_target_globals): Copy the bb_reorder field to this_target_bb-reorder. * target-globals.c: Include bb-reorder.h. (default_target_globals): Initialize the bb_reorder field. (save_target_globals): Likewise. From-SVN: r162109
Richard Sandiford committed -
gcc/ * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h.. * gcse.h: New file. * gcse.c: Include gcse.h. (default_target_gcse): New variable. (this_target_gcse): New conditional variable. (can_copy): Redefine as a macro. (can_copy_init_p): New macro. (can_copy_p): Remove can_copy_init_p. * target-globals.h (this_target_gcse): Declare. (target_globals): Add a gcse field. (restore_target_globals): Copy the gcse field to this_target_gcse. * target-globals.c: Include gcse.h. (default_target_globals): Initialize the gcse field. (save_target_globals): Likewise. From-SVN: r162108
Richard Sandiford committed -
gcc/ * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs and x_ira_prohibited_mode_move_regs_initialized_p. (ira_prohibited_mode_move_regs): Redefine as a macro. * ira.c (ira_prohibited_mode_move_regs): Delete. (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro. From-SVN: r162107
Richard Sandiford committed -
gcc/ * reload.h (target_reload): Add x_cached_reg_save_code and x_cached_reg_restore_code. * caller-save.c (cached_reg_save_code, cached_reg_restore_code): Redefine as macros. From-SVN: r162106
Richard Sandiford committed -
gcc/ * Makefile.in (target-globals.o): Depend on builtins.h. * builtins.h: New file. * builtins.c: Include builtins.h. (default_target_builtins): New variable. (this_target_builtins): New conditional variable. (apply_args_mode, apply_result_mode): Redefine as macros. * target-globals.h (this_target_builtins): Declare. (target_globals): Add a builtins field. (restore_target_globals): Copy the builtins field to this_target_builtins. * target-globals.c: Include builtins.h. (default_target_globals): Initialize the builtins field. (save_target_globals): Likewise. From-SVN: r162105
Richard Sandiford committed -
* expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST) (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved from expmed.c. (target_expmed): Add x_alg_hash and x_alg_hash_used_p. (alg_hash, alg_hash_used_p): New macros. * expmed.c (init_expmed): Clear alg_hash if reinitializing. (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm) (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h. From-SVN: r162104
Richard Sandiford committed
-