1. 15 Jul, 2013 5 commits
    • acinclude.m4 (LIBITM_CHECK_AS_HTM): New. · 0258b6e4
      libitm/
              * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
              * configure.ac: Use it.
      	(AC_CHECK_HEADERS): Check for sys/auxv.h.
      	(AC_CHECK_FUNCS): Check for getauxval.
              * config.h.in, configure: Rebuild.
      	* configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
      	* config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
      	(USE_HTM_FASTPATH): Define.
      	(_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
      	_HTM_RETRIES) New macros.
      	(htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
      	htm_begin_success, htm_commit, htm_transaction_active): New functions.
      
      gcc/
      	* config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
      	* config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
      	* config/rs6000/rs6000.opt: Add -mhtm option.
      	* config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
      	(ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
      	* config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
      	__HTM__ if the HTM instructions are available.
      	* config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
      	htm_spr_reg_operand): New define_predicates.
      	* config/rs6000/rs6000.md (define_attr "type"): Add htm.
      	(TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
      	Include htm.md.
      	* config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
      	BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
      	HTM builtin functions.
      	* config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
      	(rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
      	(rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
      	(rs6000_builtin_mask_calculate): Likewise.
      	(rs6000_option_override_internal): Likewise.
      	(bdesc_htm): Add new HTM builtin support.
      	(htm_spr_num): New function.
      	(htm_spr_regno): Likewise.
      	(rs6000_htm_spr_icode): Likewise.
      	(htm_expand_builtin): Likewise.
      	(htm_init_builtins): Likewise.
      	(rs6000_expand_builtin): Add support for HTM builtin functions.
      	(rs6000_init_builtins): Likewise.
      	(rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm option.
      	* config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
      	(TARGET_HTM, MASK_HTM): Define macros.
      	(FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
      	(FIXED_REGISTERS): Likewise.
      	(CALL_USED_REGISTERS): Likewise.
      	(CALL_REALLY_USED_REGISTERS): Likewise.
      	(REG_ALLOC_ORDER): Likewise.
      	(enum reg_class): Likewise.
      	(REG_CLASS_NAMES): Likewise.
      	(REG_CLASS_CONTENTS): Likewise.
      	(REGISTER_NAMES): Likewise.
      	(ADDITIONAL_REGISTER_NAMES): Likewise.
      	(RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
      	RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
      	(RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
      	* config/rs6000/htm.md: New file.
      	* config/rs6000/htmintrin.h: New file.
      	* config/rs6000/htmxlintrin.h: New file.
      
      gcc/testsuite/
              * lib/target-supports.exp (check_effective_target_powerpc_htm_ok): New
              function to test if HTM is available.
      	* gcc.target/powerpc/htm-xl-intrin-1.c: New test.
      	* gcc.target/powerpc/htm-builtin-1.c: New test.
      
      From-SVN: r200960
      Peter Bergner committed
    • [AArch64] -mcmodel=tiny -fPIC GOT support. · 87dd8ab0
      From-SVN: r200956
      Marcus Shawcroft committed
    • trans-array.h (gfc_deallocate_alloc_comp_no_caf, [...]): New prototype. · abc2d807
      2013-07-15  Tobias Burnus  <burnus@net-b.de>
      
              * trans-array.h (gfc_deallocate_alloc_comp_no_caf,
              gfc_reassign_alloc_comp_caf): New prototype.
              * trans-array.c (enum): Add DEALLOCATE_ALLOC_COMP_NO_CAF
              and COPY_ALLOC_COMP_CAF.
              (structure_alloc_comps): Handle it.
              (gfc_reassign_alloc_comp_caf,
              gfc_deallocate_alloc_comp_no_caf): New function.
              (gfc_alloc_allocatable_for_assignment): Call it.
              * trans-expr.c (gfc_trans_scalar_assign,
              gfc_trans_arrayfunc_assign, gfc_trans_assignment_1): Ditto.
              * parse.c (parse_derived): Correctly set coarray_comp.
              * resolve.c (resolve_symbol): Improve error wording.
      
      2013-07-15  Tobias Burnus  <burnus@net-b.de>
      
              * gfortran.dg/coarray_lib_realloc_1.f90: New.
              * gfortran.dg/coarray/lib_realloc_1.f90: New.
              * gfortran.dg/coarray_6.f90: Add dg-error.
      
      From-SVN: r200955
      Tobias Burnus committed
    • re PR fortran/37336 ([F03] Finish derived-type finalization) · 895a0c2d
      2013-07-15  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/37336
              * trans.c (gfc_add_comp_finalizer_call): New function.
              * trans.h (gfc_add_comp_finalizer_call): New prototype.
              * trans-array.c (structure_alloc_comps): Call it.
      
      2013-07-15  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/37336
              * gfortran.dg/finalize_18.f90: New.
      
      From-SVN: r200954
      Tobias Burnus committed
    • Daily bump. · 0768ca33
      From-SVN: r200953
      GCC Administrator committed
  2. 14 Jul, 2013 5 commits
    • re PR fortran/52669 (No warning in unused private variable in modules) · 38945cfe
      2013-07-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
      	    Tobias Burnus  <burnus@gcc.gnu.org>
      
      	PR fortran/52669
      	* trans-decl.c (gfc_finish_var_decl):  Move setting of
      	PRIVATE for a module variable if the module has a private
      	default or -fmodule-private is given to...
      	(gfc_create_module_variable): here. Optionally
      	warn about private module variable which is not used.
      
      2013-07-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
      
      	PR fortran/52669
      	* fortran.dg/module_variable_1.f90:  New test.
      	* fortran.dg/module_variable_2.f90:  New test.
      
      
      Co-Authored-By: Tobias Burnus <burnus@gcc.gnu.org>
      
      From-SVN: r200950
      Thomas Koenig committed
    • Extract lambda functions from semantics.c. · a960e808
      	* gcc/cp/semantics.c (build_lambda_expr),
      	(build_lambda_object), (begin_lambda_type), (lambda_return_type),
      	(lambda_function), (lambda_capture_field_type), (is_capture_proxy),
      	(is_normal_capture_proxy), (insert_capture_proxy),
      	(insert_pending_capture_proxies), (lambda_proxy_type),
      	(build_capture_proxy), (vla_capture_type),
      	(register_capture_members), (add_default_capture),
      	(lambda_expr_this_capture), (maybe_resolve_dummy),
      	(nonlambda_method_basetype), (maybe_add_lambda_conv_op) and
      	(is_lambda_ignored_entity): Moved definitions into ...
      	* gcc/cp/lambda.c: ... this new file.
      
      From-SVN: r200948
      Adam Butcher committed
    • call.c (build_conditional_expr_1): Handle the case with 1 vector and 2 scalars. · 07298ffd
      2013-07-14  Marc Glisse  <marc.glisse@inria.fr>
      
      gcc/cp/
      	* call.c (build_conditional_expr_1): Handle the case with 1 vector
      	and 2 scalars. Call save_expr before building a vector.
      	* typeck.c (cp_build_binary_op): Check complain before complaining.
      
      gcc/testsuite/
      	* g++.dg/ext/vector19.C: Adapt.
      	* g++.dg/ext/vector23.C: New testcase.
      
      From-SVN: r200947
      Marc Glisse committed
    • graphite: Do not depend on 2D + 1 form in parallelism check · 52d676b6
          PR tree-optimization/54094
          * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
            scheduling dimension for the parallelism check from the polyhedral
            information in the AST.
          * graphite-dependences.c (carries_deps): Do not assume the schedule is
            in 2D + 1 form.
      
      From-SVN: r200946
      Tobias Grosser committed
    • Daily bump. · 25d7bb75
      From-SVN: r200944
      GCC Administrator committed
  3. 13 Jul, 2013 7 commits
  4. 12 Jul, 2013 5 commits
  5. 11 Jul, 2013 9 commits
  6. 10 Jul, 2013 9 commits