1. 11 Jul, 2007 15 commits
  2. 10 Jul, 2007 16 commits
    • re PR bootstrap/32617 (explow.c references DECL_ALIGN of a FUNCTION_DECL) · 837edd5f
      2007-07-09  Geoffrey Keating  <geoffk@apple.com>
      
      	PR 32617
      	* c-common.c (c_alignof_expr): Look at DECL_ALIGN of
      	FUNCTION_DECLs.
      	(handle_aligned_attribute): Allow use on FUNCTION_DECLs.
      	* varasm.c (assemble_start_function): Honor DECL_ALIGN
      	for FUNCTION_DECLs.  Don't use align_functions_log if
      	DECL_USER_ALIGN.
      	* print-tree.c (print_node): Print DECL_ALIGN and DECL_USER_ALIGN
      	even for FUNCTION_DECLs.
      	* c-decl.c (merge_decls): Propagate DECL_ALIGN even for
      	FUNCTION_DECLs.
      	* tree.h (DECL_ALIGN): Update for new location of 'align'.
      	(DECL_FUNCTION_CODE): Update for new location and name of
      	'function_code'.
      	(DECL_OFFSET_ALIGN): Update for new location of 'off_align'.
      	(struct tree_decl_common): Move 'align' and 'off_align' out
      	of union, ensure they're still on a 32-bit boundary.  Remove
      	other fields in union 'u1'.
      	(struct tree_function_decl): Add field 'function_code' replacing
      	'u1.f' in tree_decl_common.
      	* tree.c (build_decl_stat): Set initial value of DECL_ALIGN.
      	* doc/extend.texi (Function Attributes): Add 'aligned' attribute.
      	(Variable Attributes): Cross-reference 'aligned' attribute
      	to Function Attributes.
      	* flags.h (force_align_functions_log): Delete.
      	* toplev.c (force_align_functions_log): Delete.
      
      Index: gcc/testsuite/ChangeLog
      2007-07-09  Geoffrey Keating  <geoffk@apple.com>
      
      	PR 32617
      	* gcc.c-torture/execute/align-3.c: New.
      
      Index: gcc/java/ChangeLog
      2007-07-09  Geoffrey Keating  <geoffk@apple.com>
      
      	PR 32617
      	* lang.c (java_init): Remove setting of force_align_functions_log.
      	* class.c (add_method_1): Set DECL_ALIGN of non-static method
      	to cope with ptrmemfunc_vbit_in_pfn.
      
      Index: gcc/cp/ChangeLog
      2007-07-09  Geoffrey Keating  <geoffk@apple.com>
      
      	PR 32617
      	* decl.c (cxx_init_decl_processing): Don't set
      	force_align_functions_log.
      	(grokfndecl): Honour ptrmemfunc_vbit_in_pfn.
      	* typeck.c (cxx_alignof_expr): When alignof is used on a plain
      	FUNCTION_DECL, return its alignment.
      
      From-SVN: r126529
      Geoffrey Keating committed
    • configure.ac: Check if $atomicity_dir is cpu/generic/atomicity_mutex instead of the... · 55f0dee2
      	* configure.ac: Check if $atomicity_dir is cpu/generic/atomicity_mutex
      	instead of the non-existent cpu/generic/atomic_mutex.
      	* configure: Regenerate.
      
      From-SVN: r126528
      Bob Wilson committed
    • utility (identity, [...]): Add. · f425a30a
      2007-07-10  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/std/utility (identity, move, forward): Add.
      	* testsuite/20_util/move/requirements/explicit_instantiation.cc: New.
      	* testsuite/20_util/move/1.cc: New.
      	* testsuite/20_util/identity/value.cc: New.
      	* testsuite/20_util/identity/requirements/typedefs.cc: New.
      	* testsuite/20_util/identity/requirements/explicit_instantiation.cc:
      	New.
      	* testsuite/20_util/forward/requirements/explicit_instantiation.cc:
      	New.
      	* testsuite/20_util/forward/1.cc: New.
      	* testsuite/20_util/forward/1_neg.cc: New.
      
      From-SVN: r126524
      Paolo Carlini committed
    • re PR target/32708 (_mm_cvtsi64x_si128() and _mm_cvtsi128_si64x() inefficient) · 558be301
              PR target/32708
              * config/i386/sse.md (vec_concatv2di): Disable for TARGET_64BIT.
              (*vec_concatv2di_rex): New insn pattern.
      
      testsuite/ChangeLog:
      
              PR target/32708
              * gcc.target/i386/pr32708-1.c: New test.
              * gcc.target/i386/pr32708-2.c: Ditto.
              * gcc.target/i386/pr32708-3.c: Ditto.
      
      From-SVN: r126523
      Uros Bizjak committed
    • utility (identity, [...]): Add. · 1ef8ecdd
      2007-07-10  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/std/utility (identity, move, forward): Add.
      	* testsuite/20_util/move/requirements/explicit_instantiation.cc: New.
      	* testsuite/20_util/move/1.cc: New.
      	* testsuite/20_util/identity/value.cc: New.
      	* testsuite/20_util/identity/requirements/typedefs.cc: New.
      	* testsuite/20_util/identity/requirements/explicit_instantiation.cc:
      	New.
      	* testsuite/20_util/forward/requirements/explicit_instantiation.cc:
      	New.
      	* testsuite/20_util/forward/1.cc: New.
      	* testsuite/20_util/forward/1_neg.cc: New.
      
      From-SVN: r126522
      Paolo Carlini committed
    • re PR target/32538 (All libgomp tests fail to link on IRIX 6: copysignl undefined) · 333f4a40
      	PR target/32538
      	* config/mips/iris6.h (LIBGCC_SPEC): Add libm.
      
      From-SVN: r126520
      Rainer Orth committed
    • * g++.dg/init/new20.C: Remove svn:executable flag. · 70390e64
      From-SVN: r126519
      Mark Mitchell committed
    • Replace no_new_pseudos in backends. · b3a13419
      	* rtl.h (can_create_pseudo_p): Define.
      	* config/darwin.c (machopic_indirect_data_reference): Use
      	can_create_pseudo_p () instead of no_new_pseudos.
      	(machopic_indirect_data_reference): Likewise.
      	(machopic_legitimize_pic_address): Likewise.
      	* config/alpha/alpha.c (alpha_legitimize_address): Likewise.
      	(alpha_emit_set_const_1): Likewise.
      	(alpha_emit_set_const): Likewise.
      	(alpha_emit_conditional_move): Likewise.
      	(alpha_split_conditional_move): Likewise.
      	* config/alpha/alpha.md (various splitters): Likewise.
      	(movti): Likewise.
      	* config/arm/arm.c (legitimize_pic_address): Likewise.
      	(arm_load_pic_register): Likewise.
      	* config/arm/arm.md (addsi3, subsi3, andsi3, iorsi3): Likewise.
      	(movdi, movsi, movhi, movqi, movsf, movdf): Likewise.
      	* config/bfin/bfin.c (legitimize_pic_address): Likewise.
      	* config/cris/cris.c (cris_expand_pic_call_address): Likewise.
      	* config/cris/cris.md (movsi): Likewise.
      	* config/frv/frv.md (symGOT2reg_hilo): Likewise.
      	(symGOTOFF2reg_hilo): Likewise.
      	(symGPREL2reg, symGPREL2reg_hilo): Likewise.
      	* config/h8300/h8300.md (insv, extzv): Likewise.
      	* config/i386/i386.c (ix86_expand_move): Likewise.
      	(ix86_expand_vector_move): Likewise.
      	(ix86_prepare_fp_compare_args): Likewise.
      	(ix86_expand_carry_flag_compare): Likewise.
      	* config/i386/i386.md (tls_dynamic_gnu2_32): Likewise.
      	(tls_dynamic_gnu2_combine_32): Likewise.
      	(tls_dynamic_gnu2_64, tls_dynamic_gnu2_combine_64): Likewise.
      	* config/ia64/ia64.c (ia64_expand_move): Likewise.
      	(ia64_expand_movxf_movrf): Likewise.
      	* config/m32c/m32c.c (m32c_prepare_move): Likewise.
      	(m32c_split_move): Likewise.
      	(m32c_expand_insv): Likewise.
      	* config/m68k/m68k.md (movsi): Likewise.
      	* config/mips/mips.c (mips_force_temporary): Likewise.
      	(mips_split_symbol): Likewise.
      	(mips_move_integer): Likewise.
      	(mips_legitimize_const_move): Likewise.
      	* config/mn10300/mn10300.md (movsi): Likewise.
      	* config/pa/pa.c (emit_move_sequence): Likewise.
      	* config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
      	(rs6000_got_register): Likewise.
      	(create_TOC_reference): Likewise.
      	(rs6000_machopic_legitimize_pic_address): Likewise.
      	* config/rs6000/rs6000.md (add<mode>3): Likewise.
      	(various splitters): Likewise.
      	(iorsi3, xorsi3, iordi3, xordi3): Likewise.
      	(movsi_got): Likewise.
      	* config/s390/s390.c (emit_symbolic_move): Likewise.
      	* config/s390/s390.md (movhi, movqi): Likewise.
      	(load_multiple, store_multiple): Likewise.
      	* config/score/score.c (score_force_temporary): Likewise.
      	* config/sh/sh.c (prepare_move_operands): Likewise.
      	(prepare_cbranch_operands): Likewise.
      	(emit_fpu_switch): Likewise.
      	(fpscr_set_from_mem): Likewise.
      	* config/sh/sh.md (movdicc, movsicc, movsicc_umin): Likewise.
      	(adddi3, subsi3): Likewise.
      	(various splitters): Likewise.
      	(divsi_inv_fp_combine): Likewise.
      	(symGOT_load, symGOTOFF2reg, symDTPOFF2reg): Likewise.
      	(seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu): Likewise.
      	(sne): Likewise.
      	* config/sh/predicates.md (xor_operand): Likewise.
      	* config/sparc/sparc.c (legitimize_tls_address): Likewise.
      	* config/sparc/sparc.md (movsi_pic_label_ref): Likewise.
      	(movdi_pic_label_ref): Likewise.
      	* config/spu/spu.c (spu_split_immediate): Likewise.
      	* config/alpha/alpha.md (various splitters): Remove test
      	!no_new_pseudos || reload_completed.
      	* config/ia64/ia64.c (ia64_output_mi_thunk): Don't set
      	no_new_pseudos.
      	* config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
      	* config/mips/mips.c (mips_output_mi_thunk): Likewise.
      	* config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
      	* config/score/score.c (th_output_mi_thunk): Likewise.
      	* config/sh/sh.c (sh_output_mi_thunk): Likewise.
      	* config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
      
      From-SVN: r126517
      Ian Lance Taylor committed
    • re PR libgcj/32651 (libjava fails to build on IRIX 6.5) · b2a95bc9
      	PR libgcj/32651
      	* configure.host (mips-sgi-irix6*): Set sysdeps_dir.
      	Disable interpreter.
      
      From-SVN: r126515
      Rainer Orth committed
    • * gcc.dg/vect/vect-116.c: Add vect_int target requirement. · cbbbb42a
      From-SVN: r126514
      Nathan Froyd committed
    • * gcc.dg/ultrasp7.c: Add fpic target requirement. · a73e24b3
      From-SVN: r126513
      Nathan Froyd committed
    • re PR testsuite/25241 ([C++] DejaGNU does not distinguish between errors and warnings) · f3830615
      2007-07-10  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
      
      	PR testsuite/25241
      	* gcc.dg/pch/counter-2.c: Match every message with its appropriate
      	directive.
      
      From-SVN: r126511
      Manuel López-Ibáñez committed
    • re PR libfortran/32702 (crash when printing big character variable) · 899583cb
      2007-07-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR libgfortran/32702
      	* io/unix.c (unix_stream): Restore buffer pointer and small_buffer.
      	(fd_alloc): If the number of bytes needed is greater than the default
      	BUFFER_SIZE, allocate a new buffer large enough.  Free the old buffer if
      	necessary. (fd_sfree): Restore use of buffer pointer.
      	(fd_close): Likewise. (fd_open): Likewise.
      	(init_error_stream): Likewise.
      
      From-SVN: r126510
      Jerry DeLisle committed
    • re PR fortran/32157 (intrinsic function name conflicts with subroutine if present in the same file) · e7c8ff56
      2007-07-10  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/32157
      	* resolve.c (is_external_proc): New function.  Adds test that
      	the symbol is not an intrinsic procedure.
      	* (resolve_function, resolve_call): Replace logical statements
      	with call to is_external_proc.
      
      	PR fortran/32689
      	* simplify.c (gfc_simplify_transfer): If mold has rank, the
      	result is an array.
      
      	PR fortran/32634
      	* module.c (write_generic): Write the local name of the
      	interface. 
      
      
      2007-07-10  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/32157
      	* gfortran.dg/overload_2.f90: New test.
      
      	PR fortran/32689
      	* gfortran.dg/transfer_simplify_5.f90
      
      	PR fortran/32634
      	* gfortran.dg/interface_15.f90: New test.
      
      From-SVN: r126509
      Paul Thomas committed
    • re PR rtl-optimization/32664 ([sh] ICE in create_pre_exit, at mode-switching.c:373) · 89ab4659
      	PR rtl-optimization/32664
      	* mode-switching.c (create_pre_exit): Skip barrier insns.
      
      From-SVN: r126507
      Kaz Kojima committed
    • Daily bump. · 823c696f
      From-SVN: r126503
      GCC Administrator committed
  3. 09 Jul, 2007 9 commits
    • tree-scalar-evolution.c (scev_const_prop): Add arguments to force_gimple_operand_bsi. · c6540bde
      	* tree-scalar-evolution.c (scev_const_prop): Add arguments to
      	force_gimple_operand_bsi.
      	* tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr,
      	rewrite_use_compare): Ditto.
      	* tree-ssa-address.c (gimplify_mem_ref_parts, create_mem_ref):
      	Ditto.
      	* tree-ssa-ifcombine.c (ifcombine_ifandif): Ditto.
      	* tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
      	* lambda-code.c (replace_uses_equiv_to_x_with_y): Ditto.
      	* tree-profile.c (prepare_instrumented_value,
      	tree_gen_interval_profiler, tree_gen_pow2_profiler,
      	tree_gen_one_value_profiler, tree_gen_ic_profiler,
      	tree_gen_ic_func_profiler, tree_gen_average_profiler,
      	tree_gen_ior_profiler): Ditto.
      	* tree-ssa-reassoc.c (negate_value): Ditto.
      	* matrix-reorg.c (transform_access_sites, transform_allocation_sites):
      	Use force_gimple_operand_bsi.
      	* tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
      	* tree-if-conv.c (add_to_dst_predicate_list,
      	find_phi_replacement_condition): Ditto.
      	* gimplify.c (force_gimple_operand_bsi): Add before and m arguments.
      	Call mark_symbols_for_renaming for new statements.
      	* tree-flow.h (force_gimple_operand_bsi): Declaration changed.
      
      From-SVN: r126500
      Zdenek Dvorak committed
    • cfghooks.c (remove_edge): New function. · 452ba14d
      	* cfghooks.c (remove_edge): New function.
      	(redirect_edge_and_branch, remove_branch, merge_blocks): Updated
      	loop exit rescans.
      	* cfghooks.h (remove_edge): Declare.
      	* cfg.c (remove_edge): Renamed to remove_edge_raw.
      	* basic-block.h (remove_edge): Declaration changed to remove_edge_raw.
      
      From-SVN: r126499
      Zdenek Dvorak committed
    • re PR libfortran/32336 (matmul: flag runtime- instead of assertation error) · 18c492a9
      2007-07-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
      
      	PR libfortran/32336
      	* m4/matmul.m4:  When the dimension of b is incorrect,
      	raise a runtime error instead of a failed assertion.
      	* generated/matmul_i1.c:  Regenerated.
      	* generated/matmul_i2.c:  Regenerated.
      	* generated/matmul_i4.c:  Regenerated.
      	* generated/matmul_i8.c:  Regenerated.
      	* generated/matmul_i16.c:  Regenerated.
      	* generated/matmul_r4.c:  Regenerated.
      	* generated/matmul_r8.c:  Regenerated.
      	* generated/matmul_r10.c:  Regenerated.
      	* generated/matmul_r16.c:  Regenerated.
      
      2007-07-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
      
      	PR libfortran/32336
      	* gfortran.dg/matmul_5.f90:  New test case.
      
      From-SVN: r126498
      Thomas Koenig committed
    • fesd-any.c: Move to gcc.dg/debug/dwarf2 directory. · 924a20b6
      	* gcc.dg/fesd-any.c: Move to gcc.dg/debug/dwarf2 directory.
      	* gcc.dg/fesd-any.h: Likewise.
      	* gcc.dg/fesd-baseonly.c: Likewise.
      	* gcc.dg/fesd-baseonly.h: Likewise.
      	* gcc.dg/fesd-none.c: Likewise.
      	* gcc.dg/fesd-none.h: Likewise.
      	* gcc.dg/fesd-reduced.c: Likewise.
      	* gcc.dg/fesd-reduced.h: Likewise.
      	* gcc.dg/fesd-sys.c: Likewise.
      	* gcc.dg/fesd-sys.h: Likewise
      	* gcc.dg/fesd.h: Likewise.
      
      	* g++.dg/debug/dwarf2: New directory.
      	* g++.dg/debug/dwarf2/dwarf2.exp: New driver.
      	* g++.dg/other/fesd-any.C: Move to g++.dg/debug/dwarf2 directory.
      	* g++.dg/other/fesd-any.h: Likewise.
      	* g++.dg/other/fesd-baseonly.C: Likewise.
      	* g++.dg/other/fesd-baseonly.h: Likewise.
      	* g++.dg/other/fesd-none.C: Likewise.
      	* g++.dg/other/fesd-none.h: Likewise.
      	* g++.dg/other/fesd-reduced.C: Likewise.
      	* g++.dg/other/fesd-reduced.h: Likewise.
      	* g++.dg/other/fesd-sys.C: Likewise.
      	* g++.dg/other/fesd-sys.h: Likewise.
      	* g++.dg/other/fesd.h: Likewise.
      
      From-SVN: r126497
      Eric Botcazou committed
    • re PR fortran/29459 (Spurious warnings about anonymous variables) · 01306727
      	PR fortran/29459
      	* trans-array.c (gfc_trans_array_constructor): Mark offset field
      	with TREE_NO_WARNING.
      	* trans-decl.c (gfc_build_qualified_array): Mark lbound, ubound,
      	stride and size variables with TREE_NO_WARNING.
      
      From-SVN: r126496
      Francois-Xavier Coudert committed
    • optabs.h: Added declaration for signbit_optab. · 0f67fa83
      2007-07-09  Wolfgang Gellerich  <gellerich@de.ibm.com>
      
      	* optabs.h: Added declaration for signbit_optab.  
      	* optabs.c: (init_optabs): Added initialization for signbit_optab.
      	* genoptinit.c (optabs): Added entry for signbit insns.  
      	* builtins.c (expand_builtin_signbit): Added code to use a signbit insn,
      	if available.  
      	* config/s390/s390.h (S390_TDC_SIGNBIT_SET): New constant.  
      	* config/s390/s390.md (signbit<mode>2): New expander.
      
      From-SVN: r126495
      Wolfgang Gellerich committed
    • re PR tree-optimization/32698 (inefficient pointer expression) · b462d62d
      2007-07-09  Richard Guenther  <rguenther@suse.de>
      
      	PR middle-end/32698
      	* fold-const.c (fold_plusminus_mult_expr): Move constant
      	arguments second to allow decomposing.
      
      From-SVN: r126494
      Richard Guenther committed
    • trans-decl.c (set_tree_decl_type_code): Remove function. · e1cc194c
      2007-07-09  Steven G. Kargl  <kargl@gcc.gnu.org>
      
      	* trans-decl.c (set_tree_decl_type_code): Remove function.
      	(generate_local_decl): Remove reference to set_tree_decl_type_code.
      
      From-SVN: r126493
      Steven G. Kargl committed
    • revert: re PR debug/23551 (dwarf records for inlines appear incomplete) · 694dd537
      Revert:
      2007-07-06  Alexandre Oliva  <aoliva@redhat.com>
      PR debug/23551
      * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
      Disregard DECL_FROM_INLINE.
      
      From-SVN: r126492
      Alexandre Oliva committed