1. 31 Jan, 2009 6 commits
    • re PR target/38904 (Shared libgcc DLL violates Cygwin platform conventions.) · 3cbfaf98
      	PR target/38904
      	* mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
      	LIBRARY name in, instead of hard-coding it.
      	* config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
      	extra target make frag to tmake_files according to EH model.
      	(i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
      	* config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
      	frags that define makefile variable EH_MODEL appropriately.
      	* config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
      	* config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
      	to "-sjlj" according to type of EH configured.
      	(LIBGCC_SONAME):  Concatenate it to shared library base name.
      	* config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
      	to "_sjlj" according to type of EH configured.
      	(LIBGCC_SONAME):  Concatenate it to shared library base name.
      	* config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
      	(SHLIB_LINK):  Add missing semicolon to if-else construct.
      	(SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
      	string value of "pe_dll" command-line option.
      	* config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
      	(SHLIB_SONAME):  Use it when overriding t-cygming default.
      	(SHLIB_IMPLIB):  Override t-cygming default.
      	(SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
      	string value of "pe_dll" command-line option.
      
      From-SVN: r143829
      Dave Korn committed
    • re PR target/38952 (EH does not work.) · 8d0b6068
      2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
      
      	PR target/38952
      	* config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
      	(TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point
      	at it.
      
      From-SVN: r143823
      Dave Korn committed
    • acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set libgomp_ld_is_gold. · b39dea08
      	* acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
      	libgomp_ld_is_gold.  Get gold version number.
      	(LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
      	* configure: Rebuild.
      
      From-SVN: r143822
      Ian Lance Taylor committed
    • re PR tree-optimization/38937 (dereferencing pointer '<anonymous>' does break strict-aliasing) · 14c28276
      2009-01-30  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/38937
      	* tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
      	computing the transitive closure.
      
      From-SVN: r143819
      Richard Guenther committed
    • * MAINTAINERS: Move myself to the Global Reviewers list. · 907884c9
      From-SVN: r143818
      Ian Lance Taylor committed
    • Daily bump. · 07b75c15
      From-SVN: r143815
      GCC Administrator committed
  2. 30 Jan, 2009 13 commits
  3. 29 Jan, 2009 12 commits
    • thread: Remove unused headers. · cbdab9c8
      2009-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
      
      	* include/std/thread: Remove unused headers.
      	(__thread_data_base): Remove unused mutex and base.
      	(thread::~thread): Only detach if joinable.
      	(thread::joinable): Test if thread data ptr is empty.
      	(thread::_M_thread_data_mutex): Remove.
      	(thread::_M_get_thread_data): Remove.
      	(thread::_M_make_thread_data): Remove overload, use make_shared.
      	(thread::id::id): Make constructor explicit.
      	* src/thread.cc (thread::join,thread::detach): Throw if not joinable.
      	(thread::_M_start_thread): Break shared_ptr cycle on error.
      	(__thread_proxy): Use shared_ptr swap instead of copy and reset.
      	* testsuite/30_threads/thread/member/4.cc: New.
      	* testsuite/30_threads/thread/member/5.cc: New.
      
      From-SVN: r143772
      Jonathan Wakely committed
    • ira-color.c (allocno_reload_assign): Update comments. · 3631be48
      2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* ira-color.c (allocno_reload_assign): Update comments.
      	* regmove.c (regmove_optimize): Likewise.
      
      	* ra.h: Removed.
      
      From-SVN: r143771
      H.J. Lu committed
    • configure.ac: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu). · 416ac4d4
      2009-01-29  Robert Millan  <rmh@aybabtu.com>
      
      	* configure.ac: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
      	* configure: Regenerate.
      
      gcc/
      2009-01-29  Robert Millan  <rmh@aybabtu.com>
      
      	* gcc/config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
      	* gcc/config/i386/kopensolaris-gnu.h: New file.  Undefine
      	`MD_UNWIND_SUPPORT'.
      	* gcc/config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
      
      From-SVN: r143768
      Robert Millan committed
    • re PR tree-optimization/39007 (-ftree-loop-distribution ICEs) · d5e54bc1
      gcc/
      	PR tree-optimization/39007
      	* tree-loop-distribution.c (generate_builtin): Use
      	recompute_dominator to compute the immediate dominator of the
      	basic block just after the loop.
      
      gcc/testsuite/
      	PR tree-optimization/39007
      	* gcc.dg/tree-ssa/pr39007.c: New.
      
      From-SVN: r143767
      Kazu Hirata committed
    • typeck.c (invalid_nonstatic_memfn_p): Use DECL_NONSTATIC_MEMBER_FUNCTION_P. · 90ef7773
      2009-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* typeck.c (invalid_nonstatic_memfn_p): Use
      	DECL_NONSTATIC_MEMBER_FUNCTION_P.
      
      From-SVN: r143761
      Paolo Carlini committed
    • * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA] · e9e077fa
      	(ASM_OUTPUT_DWARF_PCREL): Define.
      
      From-SVN: r143758
      Rainer Orth committed
    • tm.texi (TARGET_IRA_COVER_CLASSES): Modify description. · 2af2dbdc
      2008-01-29  Vladimir Makarov  <vmakarov@redhat.com>
      
      	* doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
      	* doc/passes.texi: Remove entries about regclass, local-alloc, and
      	global.  Modify entries about regmove and IRA.
      
      	* ra-conflict.c: Remove the file.
      
      	* reload.c (push_reload, find_dummy_reload): Remove flag_ira.
      
      	* tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
      	(pass_regclass_init): Rename to pass_reginfo_init.
      
      	* cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
      
      	* toplev.h (flag_ira): Remove.
      
      	* caller-save.c (setup_save_areas): Remove flag_ira.
      
      	* ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot):
      	Ditto.
      
      	* global.c: Remove the file.
      
      	* opts.c: (decode_options): Remove flag_ira.
      
      	* hard-reg-set.h (losing_caller_save_reg_set): Remove.
      
      	* regmove.c: Modify file description.
      	(find_use_as_address, try_auto_increment): Define them only if
      	AUTO_INC_DEC is defined.
      	(replacement_quality, replace_in_call_usage, fixup_match_1,
      	stable_and_no_regs_but_for_p): Remove.
      	(reg_set_in_bb): Make it static.
      	(regmove_optimize): Remove flag_ira and code which worked for
      	!flag_ira.
      
      	* local-alloc.c: Remove the file.
      
      	* common.opt (fira): Remove.
      
      	* ira.c: Include except.h.
      	(eliminable_regset): Move from global.c.
      	(mark_elimination): Ditto.  Remove flag_ira.
      	(reg_renumber, struct equivalence, reg_equiv, equiv_mem,
      	equiv_mem_modified, validate_equiv_mem_from_store,
      	validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
      	contains_replace_regs, memref_referenced_p, memref_used_between_p,
      	no_equiv, recorded_label_ref): Move from local-alloc.c.
      	(update_equiv_regs): Ditto.  Make it static.
      	(print_insn_chain, print_insn_chains): Move it from global.c.
      	pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
      	(build_insn_chain): Ditto.  Make it static.
      	(ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
      	Rename to init_live_subregs.
      	(gate_ira): Remove flag_ira.
      
      	* regclass.c: Rename reginfo.c.  Change file description.
      	(FORBIDDEN_INC_DEC_CLASSES): Remove.
      	(reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec):
      	Remove.
      	(init_reg_sets_1): Remove code for evaluation of
      	reg_class_superclasses and losing_caller_save_reg_set.
      	(init_regs): Remove init_reg_autoinc.
      	(struct costs, costs, init_cost, ok_for_index_p_nonstrict,
      	ok_for_base_p_nonstrict): Remove.
      	(regclass_init): Rename to reginfo_init.  Don't initialize
      	init_cost.
      	(pass_regclass_init): Rename to pass_reginfo_init.  Modify
      	corresponding entries.
      	(dump_regclass, record_operand_costs, scan_one_insn,
      	init_reg_autoinc, regclass, record_reg_classes, copy_cost,
      	record_address_regs, auto_inc_dec_reg_p): Remove.
      	(gt-regclass.h): Rename to gt-reginfo.h.
      
      	* rtl.h (dump_global_regs, retry_global_alloc,
      	build_insn_chain, dump_local_alloc, update_equiv_regs):
      	Remove.
      
      	* Makefile.in (RA_H): Remove.
      	(OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
      	Rename regclass.o to reginfo.o.
      	(regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
      	gt-reginfo.h.
      	(global.o, local-alloc.o, ra-conflict.o): Remove entries.
      	(GTFILES): Rename regclass.c to	reginfo.c.
      
      	* passes.c (init_optimization_passes): Remove pass_local_alloc and
      	pass_global_alloc.  Rename pass_regclass_init to
      	pass_reginfo_init.
      
      	* reload1.c (compute_use_by_pseudos, reload, count_pseudo,
      	count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
      	Remove flag_ira.
      	(finish_spills): Ditto.  Remove code for !flga_ira.
      
      From-SVN: r143757
      Vladimir Makarov committed
    • re PR middle-end/35854 (life passes dump option still documented) · 00b251a0
      2009-01-29  Kenneth Zadeck <zadeck@naturalbridge.com>
      
      	PR middle-end/35854
      	* doc/invoke.texi (rtl debug options): Complete rewrite.
      	* auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
      	to auto_inc_dec".
      	* mode-switching.c (pass_mode_switching): Rename pass from
      	"mode-sw" to "mode_sw".
      	* except.c (pass_convert_to_eh_ranges): Rename pass from
      	"eh-ranges" to "eh_ranges".
      	* lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
      	to "subreg1".
      		
      	
      2009-01-29  Kenneth Zadeck <zadeck@naturalbridge.com>
      
      	PR middle-end/35854
      	* gcc.dg/lower-subreg-1.c: Renamed dump pass from "subreg" to "subreg1"
      
      From-SVN: r143756
      Kenneth Zadeck committed
    • [multiple changes] · 72a54528
      2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
      	    Alexander Monakov  <amonakov@ispras.ru>
      
      	PR middle-end/38857
      	* sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
      	register.
      	(move_exprs_to_boundary): Change return type and pass through
      	should_move from move_op.  Relax assert.  Update usage ...
      	(schedule_expr_on_boundary): ... here.  Use should_move instead of
      	cant_move.
      	(move_op_orig_expr_found): Indicate that insn was disconnected from
      	stream.
      	(code_motion_process_successors): Do not call after_merge_succs
      	callback if original expression was not found when traversing any of
      	the branches.
      	(code_motion_path_driver): Change return type.  Update prototype.
      	(move_op): Update comment.  Add a new parameter (should_move).  Update
      	prototype.  Set *should_move based on indication provided by
      	move_op_orig_expr_found.
      
      2009-01-29  Steve Ellcey  <sje@cup.hp.com>
      
      	PR middle-end/38857
      	* gcc.c-torture/compile/pr38857.c: New test.
      
      From-SVN: r143753
      Alexander Monakov committed
    • * testsuite/ChangeLog: Add missing entry. · d748c406
      From-SVN: r143751
      Uros Bizjak committed
    • testsuite_common_types.h (has_trivial_cons_dtor): New. · 5292c033
      2009-01-28  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* testsuite/util/testsuite_common_types.h (has_trivial_cons_dtor): New.
      	(standard_layout): Just use !has_virtual_destructor for now.
      	* testsuite/30_threads/mutex/requirements/standard_layout.cc: New.
      	* testsuite/30_threads/timed_mutex/requirements/standard_layout.cc: New.
      	* testsuite/30_threads/recursive_mutex/requirements/
      	standard_layout.cc: New.
      	* testsuite/30_threads/condition_variable/requirements/
      	standard_layout.cc: New.
      	* testsuite/29_atomics/atomic_address/requirements/
      	standard_layout.cc: Adjust.
      	* testsuite/29_atomics/atomic_flag/requirements/
      	standard_layout.cc: Same.
      	* testsuite/29_atomics/atomic_address/requirements/trivial.cc: New.
      	* testsuite/29_atomics/atomic_integral/requirements/trivial.cc: Same.
      	* testsuite/29_atomics/atomic_flag/requirements/trivial.cc: Same.
      	* testsuite/30_threads/condition_variable/requirements/typedefs.cc: New.
      	* testsuite/29_atomics/atomic_integral/cons/assign_neg.cc: Adjust
      	line numbers.
      	* testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Same.
      	* testsuite/29_atomics/atomic/cons/assign_neg.cc: Same.
      	* testsuite/29_atomics/atomic/cons/copy_neg.cc: Same.
      	* testsuite/29_atomics/atomic/requirements/standard_layout.cc:
      	Remove, not required.
      
      From-SVN: r143749
      Benjamin Kosnik committed
    • Daily bump. · e8eef596
      From-SVN: r143747
      GCC Administrator committed
  4. 28 Jan, 2009 9 commits
    • re PR fortran/38852 ([4.3] UBOUND fails for negative stride triplets) · 61a39615
      2009-01-28  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/38852
      	PR fortran/39006
      	* trans-intrinsic.c (gfc_conv_intrinsic_bound): Use the array
      	descriptor ubound for UBOUND, when the array lbound == 1.
      
      2009-01-28  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/38852
      	PR fortran/39006
      	* gfortran.dg/bound_6.f90: New test.
      
      From-SVN: r143743
      Paul Thomas committed
    • invoke.texi (avoid-indexed-addresses): Document new option. · 001b9eb6
      	* doc/invoke.texi (avoid-indexed-addresses): Document new option.
      	* config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
      	* config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
      	* config/rs6000/rs6000.c (rs6000_override_options): Default
      	avoid-indexed-addresses on for Power6, off for everything else.
      	(avoiding_indexed_address_p): New function.
      	(rs6000_legitimize_address): Use it.
      	(rs6000_legitimate_address): Likewise.
      	* config/rs6000/rs6000.md (movXX_updateX): Likewise
      	* gcc.target/powerpc/avoid-indexed-addresses.c: New test.
      
      From-SVN: r143742
      Pat Haugen committed
    • re PR tree-optimization/38997 (-ftree-loop-distribution ICEs) · b990b40f
      gcc/
      	PR tree-optimization/38997
      	* tree-loop-distribution.c (generate_memset_zero): Use
      	POINTER_PLUS_EXPR for a pointer addition.
      
      gcc/testsuite/
      	PR tree-optimization/38997
      	* gcc.dg/tree-ssa/pr38997.c: New.
      
      From-SVN: r143740
      Kazu Hirata committed
    • re PR tree-optimization/38997 (-ftree-loop-distribution ICEs) · 59dc4898
      gcc/
      	PR tree-optimization/38997
      	* tree-loop-distribution.c (generate_memset_zero): Use
      	POINTER_PLUS_EXPR for a pointer addition.
      
      gcc/testsuite/
      	PR tree-optimization/38997
      	* gcc.dg/tree-ssa/pr38997.c: New.
      
      From-SVN: r143739
      Kazu Hirata committed
    • s390.md (bswap<mode>2): New pattern added. · 07da44ab
      2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
      
      	* config/s390/s390.md (bswap<mode>2): New pattern added.
      
      From-SVN: r143737
      Andreas Krebbel committed
    • s390.md (*tls_load_31): Added type attribute. · cdc15d23
      2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
      
      	* config/s390/s390.md (*tls_load_31): Added type attribute.
      
      From-SVN: r143736
      Wolfgang Gellerich committed
    • s390.md: Fix a few comments. · d46f24b6
      2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
      
      	* config/s390/s390.md: Fix a few comments.
      
      From-SVN: r143735
      Wolfgang Gellerich committed
    • s390.md (*tmsi_reg): Fixed z10prop attribute. · 729e750f
      2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
      
      	* config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
      	(*tm<mode>_full): Fixed z10prop attribute.
      	(*tst<mode>_extimm): Fixed z10prop attribute.
      	(*tst<mode>_cconly_extimm): Fixed z10prop attribute.
      	(*tstqiCCT_cconly): Fixed z10prop attribute.
      	(*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
      	(*movsi_larl): Fixed z10prop attribute.
      	(*movsi_zarch): Fixed z10prop attribute.
      	(*movsi_eas): Fixed z10prop attribute.
      	(*movhi): Fixed z10prop attribute.
      	(*movqi): Fixed z10prop attribute.
      	(*movstrictqi): Fixed z10prop attribute.
      	(*mov<mode>): Fixed z10prop attribute.
      	(*movcc): Fixed z10prop attribute.
      	(*sethighpartdi_64): Fixed z10prop attribute.
      	(*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
      	(*negdi2_sign_cc): Fixed z10prop attribute.
      	(*negdi2_sign): Fixed z10prop attribute.
      	(*absdi2_sign_cc): Fixed z10prop attribute.
      	(*absdi2_sign): Fixed z10prop attribute.
      	(*negabsdi2_sign_cc): Fixed z10prop attribute.
      	(*negabsdi2_sign): Fixed z10prop attribute.
      	(*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
      	(*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
      	(doloop_si64): Fixed z10prop attribute.
      	(doloop_si31): Fixed z10prop attribute.
      	(doloop_long): Fixed z10prop attribute.
      	(indirect_jump): Fixed z10prop attribute.
      	(nop): Fixed z10prop attribute.
      	(main_base_64): Fixed z10prop attribute.
      	(reload_base_64): Fixed z10prop attribute.
      
      From-SVN: r143734
      Wolfgang Gellerich committed
    • re PR rtl-optimization/38740 (Incorrect delayed branch optimization) · c7789bfb
      	PR rtl-optimization/38740
      	* reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
      	if !optimize.
      	* config/mips/mips.c (mips_reorg): Likewise.
      
      From-SVN: r143733
      Jakub Jelinek committed