- 26 Oct, 2014 18 commits
-
-
gcc/ * config/mips/mips.c (mips_at_reg_p): Delete. (mips_need_noat_wrapper_p): Use FOR_EACH_SUBRTX. From-SVN: r216715
Richard Sandiford committed -
gcc/ * config/mips/mips.c (mips_record_lo_sum): Replace with... (mips_record_lo_sums): ...this new function. (mips_reorg_process_insns): Update accordingly. From-SVN: r216714
Richard Sandiford committed -
gcc/ * config/mips/mips.c (mips_sim_insn): Update comment. (mips_sim_wait_regs_2): Delete. (mips_sim_wait_regs_1): Use FOR_EACH_SUBRTX_VAR. From-SVN: r216713
Richard Sandiford committed -
gcc/ * config/mips/mips.c (r10k_needs_protection_p_call): Take a const_rtx and return a bool. Iterate over all subrtxes here. (r10k_needs_protection_p): Update accordingly. From-SVN: r216712
Richard Sandiford committed -
gcc/ * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx rather than an rtx pointer. Change type of insn from "void *" to its real type. Return bool rather than int. Iterate over all subrtxes here. (r10k_needs_protection_p_store): Update accordingly. (r10k_needs_protection_p): Likewise. From-SVN: r216711
Richard Sandiford committed -
gcc/ * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete. (mips16_rewrite_pool_refs): Take the insn and constant pool as parameters. Iterate over the instruction's pattern and return void. (mips16_lay_out_constants): Update accordingly. From-SVN: r216710
Richard Sandiford committed -
gcc/ * config/mips/mips.c (mips_kernel_reg_p): Replace with... (mips_refers_to_kernel_reg_p): ...this new function. (mips_expand_prologue): Update accordingly. From-SVN: r216709
Richard Sandiford committed -
gcc/ * config/mips/mips.c (mips_rewrite_small_data_1): Take the context as a parameter instead of the containing MEM. Iterate over all subrtxes. Don't return a value. (mips_rewrite_small_data): Update call accordingly. From-SVN: r216708
Richard Sandiford committed -
gcc/ * config/mips/mips.c: Include rtl-iter.h. (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer. Take the context as a parameter instead of the containing MEM. Iterate over all subrtxes. (mips_small_data_pattern_p): Update call accordingly. From-SVN: r216707
Richard Sandiford committed -
gcc/ * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete. (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX. From-SVN: r216706
Richard Sandiford committed -
gcc/ * config/mep/mep.c (mep_store_find_set): Take a const_rtx and return a bool. Replace "void *" with specific type. Iterate over all subrtxes. (mep_store_data_bypass_1): Update calls accordingly. From-SVN: r216705
Richard Sandiford committed -
gcc/ * config/mep/mep.c: Include rtl-iter.h. (global_reg_mentioned_p_1): Take a const_rtx and return a bool. (xtensa_tls_referenced_p): Return a bool. Use FOR_EACH_SUBRTX. From-SVN: r216704
Richard Sandiford committed -
gcc/ * config/xtensa/xtensa.c: Include rtl-iter.h. (xtensa_tls_referenced_p_1): Delete. (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX. From-SVN: r216703
Richard Sandiford committed -
gcc/ * config/sh/sh.c (sh_contains_memref_p_1): Delete. (sh_contains_memref_p): Use FOR_EACH_SUBRTX. From-SVN: r216702
Richard Sandiford committed -
gcc/ * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an rtx as argument and return the number of changes. * config/sh/sh.c: Include rtl-iter.h. (shmedia_cleanup_truncate): Take an rtx as argument and iterate over all subrtxes. Return the number of changes made. * config/sh/sh.md: Update caller accordingly. From-SVN: r216701
Richard Sandiford committed -
gcc/ * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete. (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR. From-SVN: r216700
Richard Sandiford committed -
gcc/ * config/m68k/m68k.c: Include rtl-iter.h. (m68k_final_prescan_insn_1): Delete. (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR. From-SVN: r216699
Richard Sandiford committed -
From-SVN: r216696
GCC Administrator committed
-
- 25 Oct, 2014 8 commits
-
-
PR tree-optimization/63641 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high to low + prec - 1 - clz (mask) instead of low + prec - clz (mask). * gcc.c-torture/execute/pr63641.c: New test. From-SVN: r216693
Jakub Jelinek committed -
2014-10-25 François Dumont <fdumont@gcc.gnu.org> * doc/xml/manual/status_cxx2011.xml: Update unordered container specific behavior. From-SVN: r216692
François Dumont committed -
From-SVN: r216690
Hans-Peter Nilsson committed -
PR rtl-optimization/63615 * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on decomposing PLUS or MINUS if operands are not placed adjacent in the "ops" array. From-SVN: r216689
Alan Modra committed -
rs6000_hard_regno_nregs_internal allows SPE vectors in single registers satisfying SPE_SIMD_REGNO_P (i.e. register numbers 0 to 31). However, the corresponding test for e500 double treats all registers as being able to store a 64-bit value, rather than just those GPRs. Logically this inconsistency is wrong; in addition, it causes problems unwinding from signal handlers. linux-unwind.h uses ARG_POINTER_REGNUM as a place to store the return address from a signal handler, but this logic in rs6000_hard_regno_nregs_internal results in that being considered an 8-byte register, resulting in assertion failures. (<https://gcc.gnu.org/ml/gcc-patches/2014-09/msg02625.html> first needs to be applied for unwinding to work in general on e500.) This patch makes rs6000_hard_regno_nregs_internal handle the e500 double case consistently with SPE vectors. Tested with no regressions with cross to powerpc-linux-gnuspe (given the aforementioned patch applied). Failures of signal handling unwinding tests such as gcc.dg/cleanup-{8,9,10,11}.c are fixed by this patch. * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do not allow e500 double in registers not satisyfing SPE_SIMD_REGNO_P. From-SVN: r216688
Joseph Myers committed -
Continuing the cleanups of libgcc soft-fp configuration for powerpc*-*-linux* in preparation for implementing TARGET_ATOMIC_ASSIGN_EXPAND_FENV for soft-float and e500, this patch optimizes the choice of which functions to build for the 32-bit classic hard-float and soft-float cases. (e500 will be dealt with in a separate patch which will need to add new features to t-hardfp and t-softfp; this patch keeps the status quo for e500.) For hard-float, while the functions in question are part of the libgcc ABI there is no need for them to contain software floating point code: no newly built code should use them, and if anything does use them it's most efficient (space and speed) for them to pass straight through to floating-point hardware instructions; this case is made to use t-hardfp to achieve that. For soft-float, direct use of soft-fp functions for operations involving DImode or unsigned integers is more efficient than using the libgcc2.c versions of those operations to convert to operations on other types (which then end up calling soft-fp functions for those other types, possibly more than once); this case is thus stopped from using t-softfp-excl. (A future patch will stop the e500 cases from using t-softfp-excl as well.) Tested with no regressions for crosses to powerpc-linux-gnu (soft float and classic hard float); also checked that the same set of symbols and versions is exported from shared libgcc before and after the patch. * configure.ac (ppc_fp_type): Set variable on powerpc*-*-linux*. * configure: Regenerate. * config.host (powerpc*-*-linux*): Use $ppc_fp_type to determine additions to tmake_file. Use t-hardfp-sfdf and t-hardfp instead of soft-fp for 32-bit classic hard float. Do not use t-softfp-excl for soft float. From-SVN: r216687
Joseph Myers committed -
From-SVN: r216686
GCC Administrator committed -
* dwarf2out.c (declare_in_namespace): Only emit external declarations in the local scope once. From-SVN: r216683
Aldy Hernandez committed
-
- 24 Oct, 2014 14 commits
-
-
gcc: * ginclude/stdbool.h: Do not define bool, true or false in C++11. libstdc++-v3: * testsuite/18_support/headers/cstdbool/macros.cc: New. From-SVN: r216679
Jonathan Wakely committed -
2014-10-24 Tobias Burnus <burnus@net-b.de> gcc/fortran * check.c (check_co_collective): Reject coindexed A args. (gfc_check_co_reduce): Add OPERATOR checks. * gfortran.texi (_gfortran_caf_co_broadcast, * _gfortran_caf_co_max, _gfortran_caf_co_min, _gfortran_caf_co_sum, _gfortran_caf_co_reduce): Add ABI documentation. * intrinsic.texi (CO_REDUCE): Document intrinsic. (DPROD): Returns double not single precision. * trans-decl.c (gfor_fndecl_co_reduce): New global var. (gfc_build_builtin_function_decls): Init it. * trans.h (gfor_fndecl_co_reduce): Declare it. * trans-intrinsic.c (conv_co_collective, gfc_conv_intrinsic_subroutine): Handle CO_REDUCE. gcc/testsuite/ * gfortran.dg/coarray_collectives_9.f90: Remove dg-error. * gfortran.dg/coarray_collectives_13.f90: New. * gfortran.dg/coarray_collectives_14.f90: New. * gfortran.dg/coarray_collectives_15.f90: New. * gfortran.dg/coarray_collectives_16.f90: New. From-SVN: r216678
Tobias Burnus committed -
From-SVN: r216676
Ian Lance Taylor committed -
gcc/testsuite/ * gcc.target/arm/aapcs/abitest.h: Declare memcpy. From-SVN: r216675
Jiong Wang committed -
PR c/56980 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't print "struct"/"union"/"enum" for typedefed names. * gcc.dg/pr56980.c: New test. From-SVN: r216674
Marek Polacek committed -
From-SVN: r216673
Charles Baylis committed -
2014-10-24 Charles Baylis <charles.baylis@linaro.org> * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins, update uses to use new macro arguments. (__LD3_LANE_FUNC): Likewise. (__LD4_LANE_FUNC): Likewise. From-SVN: r216672
Charles Baylis committed -
2014-10-24 Charles Baylis <charles.baylis@linaro.org> * config/aarch64/aarch64-builtins.c (aarch64_types_loadstruct_lane_qualifiers): Define. * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane, ld4_lane): New builtins. * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>): New pattern. (aarch64_vec_load_lanesci_lane<mode>): Likewise. (aarch64_vec_load_lanesxi_lane<mode>): Likewise. (aarch64_ld2_lane<mode>): New expand. (aarch64_ld3_lane<mode>): Likewise. (aarch64_ld4_lane<mode>): Likewise. * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE. From-SVN: r216671
Charles Baylis committed -
From-SVN: r216670
Hans-Peter Nilsson committed -
* configure.ac (build_configargs): Don't share config.cache between build subdirs. From-SVN: r216669
Hans-Peter Nilsson committed -
* avr-protos.h (avr_out_sign_extend): New. * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle. (avr_out_sign_extend): New function. * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2) (extendhisi2, extendpsisi2): Use it. (adjust_len) [sext]: New. From-SVN: r216668
Georg-Johann Lay committed -
2014-10-24 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/atomic_base.h: Avoid including <stdbool.h>. * include/std/atomic: When __cplusplus < 201103L skip the rest of the header. * testsuite/29_atomics/headers/atomic/std_c++0x_neg.cc: Adjust. From-SVN: r216667
Paolo Carlini committed -
2014-10-24 Daniel Hellstrom <daniel@gaisler.com> * config.gcc (sparc*-*-*): Accept mcpu=leon3v7 processor. * doc/invoke.texi (SPARC options): Add mcpu=leon3v7 comment. * config/sparc/leon.md (leon3_load, leon_store, leon_fp_*): Handle leon3v7 as leon3. * config/sparc/sparc-opts.h (enum processor_type): Add LEON3V7. * config/sparc/sparc.c (sparc_option_override): Add leon3v7 support. * config/sparc/sparc.h (TARGET_CPU_leon3v7): New define. * config/sparc/sparc.md (cpu): Add leon3v7. * config/sparc/sparc.opt (enum processor_type): Add leon3v7. From-SVN: r216666
Daniel Hellstrom committed -
gcc/testsuite/ * lib/target-supports.exp (check_effective_target_arm_crypto_ok_nocache): Remove declaration for vaeseq_u8. (check_effective_target_arm_neon_fp16_ok_nocache): Remove declaration for vcvt_f16_f32. (check_effective_target_arm_neonv2_ok_nocache): Remove declaration for vfma_f32. From-SVN: r216663
Jiong Wang committed
-