1. 21 Jan, 2016 31 commits
  2. 20 Jan, 2016 9 commits
    • omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized warning. · 73bfae68
      	* omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
      	warning.  Fix up formatting.
      
      From-SVN: r232641
      Jakub Jelinek committed
    • re PR middle-end/67653 (ICE on valid code on x86_64-linux-gnu: verify_gimple failed) · bdd3aea6
      	PR middle-end/67653
      	* gimplify.c (gimplify_asm_expr): Warn if it is too late to
      	attempt to mark memory input operand addressable and
      	call prepare_gimple_addressable in that case.  Don't adjust
      	input_location for diagnostics, use error_at instead.
      
      	* c-c++-common/pr67653.c: New test.
      	* gcc.dg/torture/pr29119.c: Add dg-warning.
      
      From-SVN: r232640
      Jakub Jelinek committed
    • ppc-auxv.h: New file. · 26a2e6ae
      gcc/
      	* config/rs6000/ppc-auxv.h: New file.
      	* config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
      	(cpu_is): Likewise.
      	(cpu_supports): Likewise.
      	* config/rs6000/rs6000.c: include "ppc-auxv.h".
      	(cpu_is_info): New variable.
      	(cpu_supports_info): Likewise.
      	(tcb_verification_symbol): Likewise.
      	(cpu_builtin_p): Likewise.
      	(cpu_expand_builtin): New function.
      	(rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
      	(rs6000_init_builtins): Likewise.
      	(rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
      	* config/rs6000/rs6000.h (TLS_REGNUM): New define.
      	* configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
      	* configure: Regenerate.
      	* config.in: Likewise.
      	* doc/extend.texi (PowerPC Built-in Functions): Document
      	__builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
      
      gcc/testsuite/
      	* gcc.target/powerpc/cpu-builtin-1.c: New test.
      
      From-SVN: r232634
      Peter Bergner committed
    • re PR target/68609 (PowerPC reciprocal estimate missed opportunities) · 11c7bfe6
      	PR target/68609
              * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
              domain check.
              * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
              for V4SFmode.
      
      From-SVN: r232632
      David Edelsohn committed
    • re PR target/69343 (Bootstrap failure on s390{,x}-linux) · b1de98e3
      PR bootstrap/69343
      PR bootstrap/69339
      PR tree-opt/68964
      
      Revert:
      gcc/
        * tree.c (tm_define_builtin): New.
        (find_tm_vector_type): New.
        (build_tm_vector_builtins): New.
        (build_common_builtin_nodes): Call it.
      libitm/
        * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
        (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
        (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
        (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
        * configure.ac (ARCH_AARCH64): New conditional.
        (ARCH_PPC, ARCH_S390): Likewise.
        * Makefile.in, configure: Rebuild.
        * libitm.h (_ITM_TYPE_M128): Always define.
        * vect64.cc: Split ...
        * vect128.cc: ... out of...
        * config/x86/x86_sse.cc: ... here.
        * config/arm/neon.cc: New file.
      
      From-SVN: r232631
      Richard Henderson committed
    • libstdc++: Darwin does not support weak refs without definition. · 7e10bcfa
              PR libstdc++/69310
              * config/os/bsd/darwin/os_defines.h (_GLIBCXX_USE_WEAK_REF): Define.
      
      From-SVN: r232628
      Torvald Riegel committed
    • Add C++11 <cmath> overloads to the global namespace · 3f93466a
      	PR libstdc++/60401
      	* include/c_compatibility/math.h (acosh, asinh, atanh, acbrt,
      	copysign, erf, erfc, exp2, expm1, fdim, fma, fmax, fmin, hypot, ilogb,
      	lgamma, llrint, llround, log1p, log2, logb, lrint, lround, nearbyint,
      	nextafter, nexttoward, remainder, remquo, rint, round, scalbln, scalbn,
      	tgamma, trunc) [__cplusplus >= 201103L && _GLIBCXX_USE_C99_MATH_TR1]:
      	Add using declarations.
      	* testsuite/26_numerics/headers/cmath/60401.cc: New.
      
      From-SVN: r232627
      Jonathan Wakely committed
    • Correct date in ChangeLog entry for r232622 · cd8e73dc
      From-SVN: r232626
      Prathamesh Kulkarni committed
    • re PR c/24293 (Undefined behaviour not diagnosed with -fsyntax-only) · d25c7690
      2016-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
      
              PR c/24293
              * c-tree.h (incomplete_record_decls): Declare.
              * c-parser.c (incomplete_record_decls): Define.
              (c_parser_translation_unit): Iterate through incomplete_record_decls and
              report error if any decl has zero size.
              * c-decl.c (finish_decl): Append static decl with incomplete struct/union
              or enum type to incomplete_record_decls.
      
      testsuite/
              * gcc.dg/pr24293.c: New test.
              * gcc.dg/Wcxx-compat-8.c: Adjust to accept error due to
              incomplete struct type.
              * gcc.dg/declspec-1.c: Likewise.
              * gcc.dg/pr63549.c: Likewise.
      
      From-SVN: r232622
      Prathamesh Kulkarni committed