1. 30 Mar, 2012 6 commits
    • lib-xref-alfa.adb (Add_Alfa_File): Take into account possible absence of… · 2fa3b955
      lib-xref-alfa.adb (Add_Alfa_File): Take into account possible absence of compilation unit for unit in Sdep_Table.
      
      2012-03-30  Yannick Moy  <moy@adacore.com>
      
      	* lib-xref-alfa.adb (Add_Alfa_File): Take into account possible absence
      	of compilation unit for unit in Sdep_Table.
      
      From-SVN: r185997
      Yannick Moy committed
    • freeze.adb (Freeze_Record_Type): For a type with reversed bit order and reversed storage order... · 702d139e
      2012-03-30  Thomas Quinot  <quinot@adacore.com>
      
      	* freeze.adb (Freeze_Record_Type): For a type with reversed bit
      	order and reversed storage order, disable front-end relayout.
      
      From-SVN: r185996
      Thomas Quinot committed
    • tree-affine.h (print_aff): Remove. · aeb83f09
      2012-03-30  Richard Guenther  <rguenther@suse.de>
      
      	* tree-affine.h (print_aff): Remove.
      	* tree-affine.c (print_aff): Make static.
      	* tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
      	(get_references_in_stmt): Likewise.
      	(print_direction_vector): Likewise.
      	(print_dir_vectors): Likewise.
      	(print_dist_vectors): Likewise.
      	(dump_subscript): Likewise.
      	(dump_ddrs): Likewise.
      	(dump_dist_dir_vectors): Likewise.
      	(dump_data_references): Likewise.
      	(dump_data_dependence_relation): Likewise.
      	(dump_data_dependence_direction): Likewise.
      	(dump_rdg_vertex): Likewise.
      	(dump_rdg_component): Likewise.
      	(debug_ddrs): Declare.
      	(struct data_ref_loc_d): Move ...
      	* tree-data-ref.c (struct data_ref_loc_d): ... here.
      	(get_references_in_stmt): Make static.
      	(dump_data_references): Likewise.
      	(dump_subscript): Likewise.
      	(print_direction_vector): Likewise.
      	(print_dir_vectors): Likewise.
      	(print_dist_vectors): Likewise.
      	(dump_data_dependence_relation): Likewise.
      	(dump_dist_dir_vectors): Likewise.
      	(dump_ddrs): Likewise.
      	(dump_rdg_vertex): Likewise.
      	(dump_rdg_component): Likewise.
      	(debug_ddrs): New function.
      	(access_matrix_get_index_for_parameter): Remove.
      
      From-SVN: r185994
      Richard Guenther committed
    • vms.c (VMS_CRTL_FLOAT32): Rename. · b9268e55
      2012-03-30  Tristan Gingold  <gingold@adacore.com>
      
      	* config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
      	(VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
      	(VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
      	(VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
      	(VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
      	(vms_patch_builtins): Handle new flags
      	* config/vms/vms-crtlmap.map: Completed using nm on
      	c and math system libraries.
      	* config/vms/make-crtlmap.awk: Handle any number of flags.
      
      From-SVN: r185993
      Tristan Gingold committed
    • Daily bump. · 7b770e43
      From-SVN: r185988
      GCC Administrator committed
  2. 29 Mar, 2012 19 commits
  3. 28 Mar, 2012 15 commits
    • mksysinfo: Fix use of _in6_addr in _zone_net_addr_t. · 199ebde3
      From Rainer Orth.
      
      From-SVN: r185938
      Ian Lance Taylor committed
    • Add ABI_64 and replace ISA_X32 with ABI_X32 · 1ab8b791
      2012-03-28  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
      	OPTION_MASK_ABI_64.
      
      	* config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
      	(SPEC_X32): Likewise.
      	(MULTILIB_DEFAULTS): Likewise.
      
      	* config/i386/i386.c (isa_opts): Remove -m64.
      	(ix86_target_string): Properly handle -m32/-m64/-mx32.
      	(ix86_option_override_internal): Properly
      	set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
      	handle -m32, -m64 and -mx32.
      
      	* config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
      	with OPTION_ABI_X32.  Moved after TARGET_LP64.
      	(TARGET_LP64): Changed to OPTION_ABI_64.
      
      	* config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
      	(mx32): Replace ISA_X32 with ABI_X32.
      
      From-SVN: r185937
      H.J. Lu committed
    • compiler: fix null-dereference on invalid len() arg. · 2e540b50
      This patch fixes an ICE caused by syntax errors in arguments
      to unary built-in functions like len().
      
      Updates issue 7.
      
      From Rémy Oudompheng.
      
      From-SVN: r185935
      Ian Lance Taylor committed
    • compiler: avoid an ICE on bound interface methods used as values. · 1fbb888c
      Updates issue 7.
      
      From-SVN: r185933
      Ian Lance Taylor committed
    • compiler: fix method finalization of unnamed structs. · 350733e3
      Used to trigger an ICE on
        var v struct{I}; type I interface{}
      
      Updates issue 7.
      
      From-SVN: r185931
      Ian Lance Taylor committed
    • * tree.c (tree_size) <VECTOR_CST>: New case. · 2defb110
      From-SVN: r185930
      Eric Botcazou committed
    • compiler: fix crashes. · 552ab977
      The compiler would crash on:
              if true || x, y := 1, 2 {}
      and
              var s string
              s = append(s, "hello")
      
      Reported in issue 3186.
      
      From-SVN: r185928
      Ian Lance Taylor committed
    • i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes. · 2310e450
      	* config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
      	(ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
      
      From-SVN: r185927
      Uros Bizjak committed
    • compiler: Rewrite handling of untyped numeric constants. · 5caf63ca
      Fixes various bugs when, e.g., using float or complex
      constants in integer contexts.
      
      From-SVN: r185925
      Ian Lance Taylor committed
    • re PR fortran/52652 (call to gfc_match_asynchronous for allocatable at parse.c line 164) · b59e9071
      2012-03-28  Paul Thomas  <pault@gcc.gnu.org>
      	Tobias Burnus  <burnus@gcc.gnu.org>
      
      	PR fortran/52652
      	* match.c (gfc_match_allocate, gfc_match_deallocate): Change
      	"not.. or" to "neither.. nor".
      	* parse.c (decode_specification_statement): Correct error in
      	chpice of matching function for "allocatable". 
      
      2012-03-28  Paul Thomas  <pault@gcc.gnu.org>
      	Tobias Burnus  <burnus@gcc.gnu.org>
      
      	PR fortran/52652
      	* gfortran.dg/allocate_class_1.f90 : Change error test.
      	* gfortran.dg/allocate_with_typespec_4.f90 : Change error test.
      	* gfortran.dg/allocate_alloc_opt_1.f90 : Change error test.
      	* gfortran.dg/deallocate_alloc_opt_1.f90 : Change error test.
      
      
      Co-Authored-By: Tobias Burnus <burnus@gcc.gnu.org>
      
      From-SVN: r185924
      Paul Thomas committed
    • typeck2.c (process_init_constructor_array): Use the proper type for computing the array length. · 32e8bfc3
      2012-03-28  Richard Guenther  <rguenther@suse.de>
      
      	* typeck2.c (process_init_constructor_array): Use the proper
      	type for computing the array length.
      
      From-SVN: r185919
      Richard Guenther committed
    • re PR middle-end/52691 (va_start to builtin_next_arg optimization lost) · f25a65f5
      	PR middle-end/52691
      	* tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
      	__builtin_va_start to __builtin_next_arg if the latter is
      	builtin_decl_explicit_p rather than when it is not.
      
      	* gcc.dg/pr52691.c: New test.
      
      From-SVN: r185917
      Jakub Jelinek committed
    • Update Copyright year. · 6df000ae
      From-SVN: r185915
      Jakub Jelinek committed
    • re PR middle-end/52750 (32xsigned char __builtin_shuffle) · 26a7fca2
      	PR middle-end/52750
      	* tree-vect-generic.c (vector_element): Perform multiplication
      	for pos in bitsizetype type instead of idx type.
      
      	* gcc.c-torture/compile/pr52750.c: New test.
      
      From-SVN: r185914
      Jakub Jelinek committed
    • loop-init.c (loop_optimizer_init): If loops are preserved perform incremental… · 7d776ee2
      loop-init.c (loop_optimizer_init): If loops are preserved perform incremental initialization of required loop features.
      
      2012-03-28  Richard Guenther  <rguenther@suse.de>
      
      	* loop-init.c (loop_optimizer_init): If loops are preserved
      	perform incremental initialization of required loop features.
      	(loop_optimizer_finalize): If loops are to be preserved only
      	clean up optional loop features.
      	(rtl_loop_done): Forcefully free loops here.
      	* cgraph.c (cgraph_release_function_body): Forcefully free
      	loops.
      	* cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
      	to existing loops.
      	(construct_init_block): Likewise.
      	(construct_exit_block): Likewise.
      	(gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state.  Cleanup
      	the CFG after expanding.
      	* cfgloop.c (verify_loop_structure): Calculate or verify
      	dominators.  If we needed to calculate them, free them afterwards.
      	* tree-pass.h (PROP_loops): New define.
      	* tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
      	* basic-block.h (CLEANUP_CFG_CHANGED): New.
      	* cfgcleanup.c (merge_blocks_move): Protect loop latches.
      	(cleanup_cfg): If we did something and have loops around, fix
      	them up.
      	* cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
      	with CLEANUP_CFG_CHANGED.
      	* cfghooks.c (merge_blocks): If we merge a loop header into
      	its predecessor, update the loop structure.
      	(duplicate_block): If we copy a loop latch, adjust loop state
      	to note we may have multiple latches.
      	(delete_basic_block): Mark loops for fixup if we remove a loop.
      	* cfganal.c (forwarder_block_p): Protect loop latches, headers
      	and preheaders.
      	* cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
      	(cfg_layout_can_merge_blocks_p): Likewise.
      	* cprop.c (bypass_block): If we create a loop with multiple
      	entries, mark it for removal.
      	* except.c (emit_to_new_bb_before): Add the new basic-block
      	to existing loops.
      	* tree-eh.c (lower_resx): Likewise.
      	* omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
      	(expand_omp_taskreg): Likewise.
      	* tree-inline.c (initialize_cfun): Likewise.
      	* tree-mudflap.c (add_bb_to_loop): Prototype.
      	(mf_build_check_statement_for): Properly add new basic-blocks
      	to existing loops.
      	* tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
      	if we remove a loop.
      	(thread_through_loop_header): Likewise.
      	* trans-mem.c (tm_log_emit_save_or_restores): Properly add
      	new basic-blocks to existing loops.
      	(expand_transaction): Likewise.
      	* Makefile.in (except.o): Add $(CFGLOOP_H).
      	(expr.o): Likewise.
      	(cgraph.o): Likewise.
      	(cprop.o): Likewise.
      	(cfgexpand.o): Likewise.
      	(cfganal.o): Likewise.
      	(trans-mem.o): Likewise.
      	(tree-eh.o): Likewise.
      
      From-SVN: r185913
      Richard Guenther committed