1. 20 Sep, 2014 3 commits
  2. 19 Sep, 2014 28 commits
  3. 18 Sep, 2014 9 commits
    • Update gcc.dg/pr61053.c for x32 · df43e02a
      	* gcc.dg/pr61053.c: Updated for x32.
      
      From-SVN: r215369
      H.J. Lu committed
    • Remove LIBGCC2_TF_CEXT target macro. · dd69f047
      This patch removes the (undocumented) LIBGCC2_TF_CEXT target macro,
      replacing it by -fbuilding-libgcc predefines (and thereby gets rid of
      another LIBGCC2_LONG_DOUBLE_TYPE_SIZE conditional, though some more
      patches are needed before that target macro can be eliminated).  This
      macro indicated the suffix used on __builtin_huge_val,
      __builtin_copysign, __builtin_fabs built-in function names to produce
      the names for a given floating-point mode.
      
      Predefines are added for all floating-point modes supported for
      libgcc, not just TFmode.  These are fully accurate for modes
      corresponding to float, double and long double.  For other modes, the
      suffix for *constants* is determined by the targetm.c.mode_for_suffix
      hook (the limit to two possible suffixes 'w' and 'q' being hardcoded
      in various places).  This is in fact the suffix for built-in functions
      as well where such functions exist.
      
      * For i386, the *q functions always exist (whether or not TFmode is
        used for long double).  The *w functions never exist (but this
        doesn't matter for libgcc, since no i386 configuration treats XFmode
        as a supported scalar mode if long double is TFmode; if __float80
        were to be supported for 64-bit Android, properly such functions
        ought to be added).
      
      * For ia64, the *q functions exist for non-HP-UX (under HP-UX, long
        double is TFmode, so they aren't needed).  The *w functions never
        exist.  This is an issue for this libgcc code for the XFmode complex
        functions in libgcc on HP-UX; as I understand it, right now those
        will accidentally be using TFmode versions of those three functions,
        so involving unnecessary conversions, while the sanity check on CEXT
        accidentally passes because all it tests is the sizes of the types.
      
      Because of the lack of 'w' functions, the patch uses 'l' when the
      constant suffix is 'w', matching what the existing libgcc code would
      do for IA64 HP-UX in that case.
      
      Ideally there would be generic code to create such built-in functions
      for all supported floating-point types.  That may be something to
      consider if support for TS 18661-3 (standard bindings for IEEE
      754-2008, defining names such as _Float128, and function names such as
      copysignf128) is added in future.
      
      Bootstrapped with no regressions on x86_64-unknown-linux-gnu.
      
      gcc:
      	* system.h (LIBGCC2_TF_CEXT): Poison.
      	* config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
      	* config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
      	* config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
      	* config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
      	* config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
      	* config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
      	* config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
      	* config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
      	* config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
      
      gcc/c-family:
      	* c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
      	for supported floating-point modes.
      
      libgcc:
      	* libgcc2.c (CEXT): Define using __LIBGCC_*_FUNC_EXT__.
      
      From-SVN: r215368
      Joseph Myers committed
    • Add header guard to several header files. · f1717f8d
      2014-09-19  Kito Cheng  <kito@0xlab.org>
      
      	* except.h: Fix header guard.
      	* addresses.h: Add missing header guard.
      	* cfghooks.h: Likewise.
      	* collect-utils.h: Likewise.
      	* collect2-aix.h: Likewise.
      	* conditions.h: Likewise.
      	* cselib.h: Likewise.
      	* dwarf2asm.h: Likewise.
      	* graphds.h: Likewise.
      	* graphite-scop-detection.h: Likewise.
      	* gsyms.h: Likewise.
      	* hw-doloop.h: Likewise.
      	* incpath.h: Likewise.
      	* ipa-inline.h: Likewise.
      	* ipa-ref.h: Likewise.
      	* ira-int.h: Likewise.
      	* ira.h: Likewise.
      	* lra-int.h: Likewise.
      	* lra.h: Likewise.
      	* lto-section-names.h: Likewise.
      	* read-md.h: Likewise.
      	* reload.h: Likewise.
      	* rtl-error.h: Likewise.
      	* sdbout.h: Likewise.
      	* targhooks.h: Likewise.
      	* tree-affine.h: Likewise.
      	* xcoff.h: Likewise.
      	* xcoffout.h: Likewise.
      
      From-SVN: r215365
      Kito Cheng committed
    • re PR debug/63285 (-fcompare-debug scheduler related failure) · 2fb5f0da
      2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
      
      	PR debug/63285
      	* haifa-sched.c (schedule_block): Advance cycle at the end of BB
      	if advance != 0.
      
      2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
      
      	PR debug/63285
      	* gcc.target/i386/pr63285.c: New test.
      
      From-SVN: r215364
      Vladimir Makarov committed
    • config-list.mk (LIST): Add v850-rtems. · f4d5fe47
      2014-09-18  Joel Sherrill <joel.sherrill@oarcorp.com>
      
      	* config-list.mk (LIST): Add v850-rtems.
      
      From-SVN: r215362
      Joel Sherrill committed
    • re PR c++/63248 (Crash when OpenMP target's array section handling is used with templates) · bce16b88
      	PR c++/63248
      	* semantics.c (finish_omp_clauses): Don't call cp_omp_mappable_type
      	on type of type dependent expressions, and don't call it if
      	handle_omp_array_sections has kept TREE_LIST because something
      	was type dependent.
      	* pt.c (tsubst_expr) <case OMP_TARGET, case OMP_TARGET_DATA>:
      	Use keep_next_level, begin_omp_structured_block and
      	finish_omp_structured_block instead of push_stmt_list and
      	pop_stmt_list.
      libgomp/
      	* testsuite/libgomp.c++/pr63248.C: New test.
      
      From-SVN: r215359
      Jakub Jelinek committed
    • re PR target/61360 (ICE: in lra_update_insn_recog_data, at lra.c:1363 with -mtune=bdver4) · 74c101d5
      2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
      
      	PR target/61360
      	* lra.c (lra): Call recog_init.
      
      2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
      
      	PR target/61360
      	* gcc.target/i386/pr61360.c: New.
      
      From-SVN: r215358
      Vladimir Makarov committed
    • config-list.mk (LIST): Add arm-rtems. · b060c217
      2014-09-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
      
      	* config-list.mk (LIST): Add arm-rtems.
      	Add nios2-rtems.  Remove extra option from powerpc-rtems.
      
      From-SVN: r215357
      Sebastian Huber committed
    • re PR c++/62017 (AddressSanitizer reports *-buffer-overflow in destructor when… · e1e160c1
      re PR c++/62017 (AddressSanitizer reports *-buffer-overflow in destructor when multiple virtual inheritance is used)
      
      	PR c++/62017
      	* asan.c (transform_statements): Don't instrument clobber statements.
      
      	* g++.dg/asan/pr62017.C: New test.
      
      From-SVN: r215354
      Jakub Jelinek committed