1. 26 Nov, 2010 21 commits
  2. 25 Nov, 2010 17 commits
    • re PR fortran/46581 ([OOP] segfault in SELECT TYPE with associate-name) · 6312ef45
      2010-11-25  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/46581
      	* trans.h (gfc_process_block_locals): Removed second argument.
      	* trans-decl.c (trans_associate_var): Moved to trans-stmt.c.
      	(gfc_trans_deferred_vars): Skip ASSOCIATE variables.
      	(gfc_process_block_locals): Don't mark associate names to be
      	initialized.
      	* trans-stmt.c (trans_associate_var): Moved here from trans-decl.c.
      	(gfc_trans_block_construct): Call 'trans_associate_var' from here
      	to make sure SELECT TYPE with associate-name is treated correctly.
      
      2010-11-25  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/46581
      	* gfortran.dg/select_type_19.f03: New.
      
      From-SVN: r167154
      Janus Weil committed
    • gengtype-state.c (read_state_structures): Initialize "previous". · be827591
      	* gengtype-state.c (read_state_structures): Initialize "previous".
      
      From-SVN: r167153
      Uros Bizjak committed
    • debug.cc: Introduce a mutex pool in get_safe_base_mutex. · afe96d41
      2010-11-25  François Dumont  <francois.cppdevs@free.fr>
      
      	* src/debug.cc: Introduce a mutex pool in get_safe_base_mutex.
      	Move code used to manipulate sequence safe iterators from safe
      	iterator methods to safe sequence ones. Remove usage of safe iterator
      	mutex, keep _Safe_iterator_base::_M_get_mutex for library backward
      	binary compatibility.
      	* src/Makefile.am: Build debug.cc in gnu++0x mode for _Hash_impl usage.
      	* src/Makefile.in: Regenerate
      	* include/debug/safe_base.h: Add _Safe_iterator_base _M_invalidate
      	and _M_reset. Add _Safe_sequence_base _M_attach, _M_attach_single,
      	_M_detach and _M_detach_single.
      	* include/debug.safe_iterator.h, safe_iterator.tcc: Remove
      	_Safe_iterator _M_invalidate and _M_invalidate_single. Implement all
      	methods in terms of normal iterators rather than safe ones.
      	* include/debug/safe_sequence.h: Replace _Safe_sequence
      	_M_transfe_iter with _M_transfer_from_if taking the source sequence
      	and a predicate signaling when a safe iterator shall be transfered.
      	Add _Equal_to predicate.
      	* include/debug/safe_sequence.tcc: New.
      	* include/Makefile.am: Adjust.
      	* include/Makefile.in: Regenerate.
      	* include/debug/forward_list: Swap safe iterators in move constructor.
      	Do not invalidate before begin in _M_invalidate_all method.
      	Reimplement safe methods using normal iterators rather than safe ones.
      	* include/debug/set.h, unordered_map, multiset.h, vector,
      	unordered_set, deque, map.h, list, multimap.h: Reimplement safe method
      	using normal iterators rather than safe ones.
      	* testsuite/23_containers/forward_list/debug/clear.cc, swap.cc,
      	move_constructor.cc, splice_after.cc, splice_after1.cc,
      	splice_after2.cc, splice_after3.cc, splice_after4.cc: New.
      	* testsuite/23_containers/vector/debug/multithreaded_swap.cc: New.
      
      From-SVN: r167152
      François Dumont committed
    • In gcc/objc/: 2010-11-25 Nicola Pero <nicola.pero@meta-innovation.com> · 24e1ee32
      In gcc/objc/:
      2010-11-25  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc-act.c (objc_build_struct): Install TYPE_OBJC_INTERFACE
      	after finish_struct, not before, otherwise it may be wiped out by
      	it.  This fixes spurious warnings when a class has more than 15
      	instance variables.
      
      In gcc/testsuite/:
      2010-11-25  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc.dg/ivar-problem-1.m: New.
      	* obj-c++.dg/ivar-problem-1.mm: New.
      
      From-SVN: r167151
      Nicola Pero committed
    • gentype-state.c: Add new file. · 92724e1d
      2010-11-25  Basile Starynkevitch  <basile@starynkevitch.net>
      	    Jeremie Salvucci  <jeremie.salvucci@free.fr>
      
      	* gentype-state.c: Add new file.
      
      	* gengtype.c (type count): New variable.
      	(new_structure, find_param_structure, create_pointer)
      	(create_array): Use it to set state_number in types.
      	(dump_everything): Improve comment.
      	(main): Call read_state and write_state. Print type_count.
      
      	* gengtype.h (type_lineloc): New function.
      	(read_state, write_state): New declarations.
      
      	* Makefile.in (GENGTYPE_FLAGS): New variable.
      	(s-gtype): Run gengtype twice and generate gtype.state.
      	(build/gengtype-state.o): New rule.
      	(build/gengtype$(build_exeext)): Link gengtype-state.o.
      	(mostlyclean): Update comment.  Remove gtype.state.
      
      
      Co-Authored-By: Jeremie Salvucci <jeremie.salvucci@free.fr>
      
      From-SVN: r167150
      Basile Starynkevitch committed
    • make_sunver.pl: Use elfdump -s to extract symbols if possible, readelf -s otherwise. · f7598845
      	* make_sunver.pl: Use elfdump -s to extract symbols if possible,
      	readelf -s otherwise.
      
      From-SVN: r167149
      Rainer Orth committed
    • re PR middle-end/46637 (SIGSEGV in if_then_else_cond - too deep recursion) · 01e512e2
      	PR middle-end/46637
      	* combine.c (try_combine): When substing i2dest for i2src, pass
      	1 as last argument even if
      	i0_feeds_i1_n && i1_feeds_i2_n && i0dest_in_i0src.
      
      	* gcc.c-torture/compile/pr46637.c: New test.
      
      From-SVN: r167148
      Jakub Jelinek committed
    • Add -mtune=generic to gfortran.dg/pr46519-1.f. · 27f2c348
      2010-11-25  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* gfortran.dg/pr46519-1.f: Add -mtune=generic.
      
      From-SVN: r167147
      H.J. Lu committed
    • Properly cast integer constant char. · de77ab75
      gcc/
      
      2010-11-25  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR middle-end/46647
      	* builtins.c (target_char_cast): Check INTEGER_CST instead of
      	host_integerp.  Replace tree_low_cst with TREE_INT_CST_LOW.
      
      gcc/testsuite/
      
      2010-11-25  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR middle-end/46647
      	* gcc.target/i386/pr46647.c: New.
      
      From-SVN: r167146
      H.J. Lu committed
    • target.def (supports_split_stack, [...]): Take gcc_options parameters. · d5fabb58
      	* target.def (supports_split_stack, except_unwind_info): Take
      	gcc_options parameters.
      	* targhooks.c (default_except_unwind_info,
      	dwarf2_except_unwind_info, sjlj_except_unwind_info): Take
      	gcc_options parameters.
      	* targhooks.h (default_except_unwind_info,
      	dwarf2_except_unwind_info, sjlj_except_unwind_info): Update
      	prototypes.
      	* doc/tm.texi.in (TARGET_IRA_COVER_CLASSES,
      	TARGET_HAVE_NAMED_SECTIONS, TARGET_UNWIND_TABLES_DEFAULT):
      	Document that hooks must not be modified.
      	(TARGET_EXCEPT_UNWIND_INFO): Refer to opts argument.
      	* doc/tm.texi: Regenerate.
      	* defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Pass
      	&global_options to targetm.except_unwind_info.
      	* dwarf2out.c (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
      	dwarf2out_begin_prologue, dwarf2out_frame_init,
      	dwarf2out_frame_finish, dwarf2out_assembly_start): Pass
      	&global_options to targetm.except_unwind_info.
      	* except.c (init_eh, finish_eh_generation,
      	gate_convert_to_eh_region_ranges,
      	output_one_function_exception_table): Pass &global_options to
      	targetm.except_unwind_info.
      	* expr.c (build_personality_function): Pass &global_options to
      	targetm.except_unwind_info.
      	* function.c (expand_function_end): Pass &global_options to
      	targetm.except_unwind_info.
      	* hooks.c (hook_bool_bool_gcc_optionsp_false): New.
      	* hooks.h (hook_bool_bool_gcc_optionsp_false): Declare.
      	* opts.c (finish_options): Pass opts to targetm.except_unwind_info
      	and targetm.supports_split_stack.  Remove assertions about opts
      	and opts_set.
      	(common_handle_option): Remove assertions about opts, opts_set and
      	dc.
      	* tree-tailcall.c (suitable_for_tail_call_opt_p): Pass
      	&global_options to targetm.except_unwind_info.
      	* tree.c (build_common_builtin_nodes: Pass &global_options to
      	targetm.except_unwind_info.
      	* config/arm/arm.c (arm_except_unwind_info): Add gcc_options
      	parameter.
      	(arm_compute_func_type, arm_expand_prologue, thumb_pushpop,
      	thumb1_expand_prologue, thumb1_output_function_prologue,
      	arm_unwind_emit, arm_output_fn_unwind): Update calls to
      	arm_except_unwind_info.
      	* config/i386/i386.c (ix86_supports_split_stack): Add gcc_options
      	parameter.
      	* config/ia64/ia64.c (ia64_except_unwind_info): Add gcc_options
      	parameter.
      	(ia64_output_function_prologue, ia64_add_bundle_selector_before,
      	ia64_reorg, ia64_asm_unwind_emit): Update calls to
      	ia64_except_unwind_info.
      	* config/pa/pa.c (pa_option_override): Pass &global_options to
      	targetm.except_unwind_info.
      	* config/picochip/picochip-protos.h (picochip_except_unwind_info):
      	Remove prototype.
      
      c-family:
      	* c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
      	targetm.except_unwind_info.
      
      From-SVN: r167145
      Joseph Myers committed
    • cgraphunit.c (process_function_and_variable_attributes): Mark dllexport-ed… · 9d602c59
      cgraphunit.c (process_function_and_variable_attributes): Mark dllexport-ed function/variables as needed.
      
      2010-11-25  Kai Tietz  <kai.tietz@onevision.com>
      
      	* cgraphunit.c (process_function_and_variable_attributes):
      	Mark dllexport-ed function/variables as needed.
      	* ipa.c (cgraph_externally_visible_p): Make dllexport-ed
      	as externally visible.
      
      2010-11-25  Kai Tietz  <kai.tietz@onevision.com>
      
      	* gcc.dg/dll-8.c: New.
      
      From-SVN: r167144
      Kai Tietz committed
    • loop_optimization7.adb: Remove dg-require-effective-target. · c8230704
      	* gnat.dg/loop_optimization7.adb: Remove dg-require-effective-target.
      	* gnat.dg/sse_nolib.adb: Likewise.
      
      From-SVN: r167143
      Eric Botcazou committed
    • re PR rtl-optimization/46585 (ICE: SIGSEGV in vinsn_create (sel-sched-ir.c:1189)… · 9ef1bf71
      re PR rtl-optimization/46585 (ICE: SIGSEGV in vinsn_create (sel-sched-ir.c:1189) with -fno-dce -fschedule-insns -fselective-scheduling)
      
      	PR rtl-optimization/46585
      	* sel-sched-ir.c (return_regset_to_pool): Verify that RS is not NULL.
      	(vinsn_init): Skip initialization of dependencies for local NOPs.
      	(vinsn_delete): Don't try to free regsets for local NOPs.
              (setup_nop_and_exit_insns): Change definition of nop_pattern.
      
      testsuite:
      	* gcc.dg/pr46585.c: New.
      
      From-SVN: r167141
      Alexander Monakov committed
    • re PR rtl-optimization/46602 (gcc.dg/pr42245-2.c ICE on ia64) · d787f788
      	PR rtl-optimization/46602
      	* sel-sched-ir.c (maybe_tidy_empty_bb): Move checking ...
      	(tidy_control_flow): Here.
      
      From-SVN: r167140
      Alexander Monakov committed
    • re PR bootstrap/45888 (tm.texi generation is not portable, rule is broken) · 459d4972
      2010-11-25  Joern Rennecke  <amylaar@spamcop.net>
      	    Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
      
      	PR bootstrap/45888
      	* Makefile.in (s-tm-texi): Remove \r occurences from tmp-tm.texi.
      	Fix target.def pathname in timestamp comparison.
      
      Co-Authored-By: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
      
      From-SVN: r167137
      Joern Rennecke committed
    • predicates.md (pmpyshr_operand): New. · 604e3ff3
              * config/ia64/predicates.md (pmpyshr_operand): New.
              * config/ia64/ia64.c (ia64_expand_unpack): New.
              (ia64_expand_widen_mul_v4hi): New.
              (ia64_expand_widen_sum): Update for pattern renames.
              (ia64_expand_dot_prod_v8qi): Likewise.
              * config/ia64/ia64-protos.h: Update.
              * config/ia64/vect.md (vecwider): New mode attribute.
              (vec_widen_umult_lo_v8qi, vec_widen_umult_hi_v8qi): New.
              (vec_widen_smult_lo_v8qi, vec_widen_smult_hi_v8qi): New.
              (pmpyshr2, pmpyshr2_u): New.
              (vec_widen_smult_lo_v4hi, vec_widen_smult_hi_v4hi): New.
              (vec_widen_umult_lo_v4hi, vec_widen_umult_hi_v4hi): New.
              (mulv2si3): New.
              (vec_pack_ssat_v4hi): Rename from pack2_sss.
              (vec_pack_usat_v4hi): Rename from *pack2_uss.
              (vec_pack_ssat_v2si): Rename from pack4_sss.
              (vec_interleave_lowv8qi): Rename from unpack1_l, use the correct
              vec_select operation.
              (vec_interleave_highv8qi): Similarly.
              (mux1_alt): Rename from *mux1_alt.
              (vec_extract_evenv8qi, vec_extract_oddv8qi): New.
              (vec_interleave_lowv4hi): Rename from unpack2_l.
              (vec_interleave_highv4hi): Rename from unpack2_h.
              (mix2_r): Rename from *mix2_r.
              (mix2_l): Similarly.
              (vec_extract_evenodd_helper): New.
              (vec_extract_evenv4hi, vec_extract_oddv4hi): New.
              (vec_interleave_lowv2si): Rename from *unpack4_l.
              (vec_interleave_highv2si): Rename from *unpack4_h.
              (vec_extract_evenv2si, vec_extract_oddv2si): New.
              (vec_interleave_lowv2sf): Rename from fmix_r.
              (vec_interleave_highv2sf): Rename from *fmix_l.
              (vec_extract_evenv2sf, vec_extract_oddv2sf): New.
              (vec_unpacku_lo_<VECINT12>, vec_unpacku_hi_<VECINT12>): New.
              (vec_unpacks_lo_<VECINT12>, vec_unpacks_hi_<VECINT12>): New.
              (vec_pack_trunc_v4hi, vec_pack_trunc_v2si): New.
      
      testsuite:
              * lib/target-supports.exp (vect_widen_sum_hi_to_si_pattern,
              vect_widen_mult_hi_to_si, vect_sdot_qi, vect_udot_qi, vect_sdot_hi,
              vect_unpack, vect_int_mult, vect_extract_even_odd,
              vect_extract_even_odd_wide, vect_interleave): Enable for ia64.
      
      From-SVN: r167136
      Richard Henderson committed
    • Daily bump. · 5eee6908
      From-SVN: r167135
      GCC Administrator committed
  3. 24 Nov, 2010 2 commits