1. 25 Apr, 2012 2 commits
    • Daily bump. · 6e58c9ab
      From-SVN: r186793
      GCC Administrator committed
    • This patch adds new builtins to check for cpu type and features. · 792317cc
      2012-04-24  Sriraman Tallam  <tmsriram@google.com>
      
      This patch adds new builtins to check for cpu type and features. 
      
      * __builtin_cpu_is ("<CPUNAME>")
      * __builtin_cpu_supports ("<FEATURE>")
      
      apart from the cpu init builtin, __builtin_cpu_init.
      
      List of CPU names :
      
      * "amd"
      * "intel"
      * "atom"
      * "core2"
      * "corei7"
      * "nehalem"
      * "westmere"
      * "sandybridge"
      * "amdfam10h"
      * "barcelona"
      * "shanghai"
      * "istanbul"
      * "bdver1"
      * "bdver2"
      
      List of CPU features :
      
      * "cmov"
      * "mmx"
      * "popcnt"
      * "sse"
      * "sse2"
      * "sse3"
      * "ssse3"
      * "sse4.1"
      * "sse4.2"
      * "avx"
      
              * config/i386/i386.c (build_processor_model_struct): New function.
              (make_var_decl): New function.
              (fold_builtin_cpu): New function.
              (ix86_fold_builtin): New function.
              (make_cpu_type_builtin): New function.
              (ix86_init_platform_type_builtins): New function.
              (ix86_expand_builtin): Expand new builtins by folding them.
              (ix86_init_builtins): Make new builtins to detect CPU type.
              (TARGET_FOLD_BUILTIN): New macro.
              (IX86_BUILTIN_CPU_INIT): New enum value.
              (IX86_BUILTIN_CPU_IS): New enum value.
              (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
              * config/i386/i386-builtin-types.def: New function type.
              * testsuite/gcc.target/builtin_target.c: New testcase.
              * doc/extend.texi: Document builtins.
      
              * libgcc/config/i386/i386-cpuinfo.c: New file.
              * libgcc/config/i386/t-cpuinfo: New file.
              * libgcc/config.host: Include t-cpuinfo.
              * libgcc/config/i386/libgcc-glibc.ver: Version symbol __cpu_model.
      
      From-SVN: r186789
      Sriraman Tallam committed
  2. 24 Apr, 2012 33 commits
  3. 23 Apr, 2012 5 commits
    • noexcept15.C: Adjust for Rev 186726 library changes. · 88e293fa
      2012-04-23  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* g++.dg/cpp0x/noexcept15.C: Adjust for Rev 186726 library changes.
      
      From-SVN: r186730
      Paolo Carlini committed
    • Check if MASK_/TARGET_ macros defined for extra_masks · eefdb8e6
      2012-04-23  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR bootstrap/52878
      	* opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
      	extra_masks.
      
      From-SVN: r186729
      H.J. Lu committed
    • go-lang.c (go_langhook_init): Set MPFR precision to 256. · 1ec20ea1
      	* go-lang.c (go_langhook_init): Set MPFR precision to 256.
      
      time: Adjust float expression so that it first integer context.
      
      From-SVN: r186727
      Ian Lance Taylor committed
    • type_traits (is_nothrow_destructible): Implement. · 62fa805f
      2012-04-23  Daniel Krugler  <daniel.kruegler@googlemail.com>
      
      	* include/std/type_traits (is_nothrow_destructible): Implement.
      	(is_destructible): Implement LWG 2049.
      	* testsuite/util/testsuite_tr1.h: Add tests.
      	* testsuite/20_util/is_nothrow_destructible/value.cc: New.
      	* testsuite/20_util/is_nothrow_destructible/requirements/typedefs.cc:
      	* testsuite/20_util/is_nothrow_destructible/requirements/
      	explicit_instantiation.cc: Likewise.
      	* testsuite/20_util/is_destructible/value.cc: Adjust and extend.
      	* testsuite/20_util/is_default_constructible/value.cc: Tweak.
      	* testsuite/20_util/is_constructible/value-2.cc: Likewise.
      	* testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust
      	dg-error line numbers.
      	* testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
      	Likewise.
      	* testsuite/20_util/declval/requirements/1_neg.cc: Likewise.
      
      From-SVN: r186726
      Daniel Krugler committed
    • i386.md (*add<mode>_2): Add r/r/0 alternative. · 025735b7
      	* config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
      	(*addsi_2_zext): Ditto.
      	(*add<mode>_3): Ditto.
      	(*addsi_3_zext): Ditto.
      	(*add<mode>_5): Ditto.
      
      From-SVN: r186725
      Uros Bizjak committed