uros [Mon, 9 Dec 2013 17:37:43 +0000 (17:37 +0000)]
libgcc/ChangeLog:
2013-12-09 Uros Bizjak <ubizjak@gmail.com>
* config/i386/sfp-exceptions.c (__sfp_handle_exceptions): Emit SSE
instructions when __TARGET_SSE__ is defined.
libatomic/ChangeLog:
2013-12-09 Uros Bizjak <ubizjak@gmail.com>
* config/x86/fenv.c (__atomic_feraiseexcept): Emit SSE
instructions when __TARGET_SSE__ is defined.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205811
138bc75d-0d04-0410-961f-
82ee72b054a4
yufeng [Mon, 9 Dec 2013 17:23:50 +0000 (17:23 +0000)]
libstdc++-v3/
* testsuite/20_util/hash/chi2_quality.cc: Change -DSAMPLES=30000.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205810
138bc75d-0d04-0410-961f-
82ee72b054a4
schwab [Mon, 9 Dec 2013 15:19:30 +0000 (15:19 +0000)]
* Makefile.am (toolexeclib_LTLIBRARIES) [USE_LIBGCJ_BC]: Use
install/libgcj_bc.la instead of libgcj_bc.la.
(noinst_LTLIBRARIES) [USE_LIBGCJ_BC]: Define.
(install_libgcj_bc_la_SOURCES): Define.
(install/libgcj_bc.la): New rule.
* Makefile.in: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205809
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Mon, 9 Dec 2013 15:13:07 +0000 (15:13 +0000)]
2013-12-09 Richard Biener <rguenther@suse.de>
PR middle-end/38474
* tree-ssa-structalias.c (set_union_with_increment): Remove
unreachable code.
(do_complex_constraint): Call set_union_with_increment with
the solution delta, not the full solution.
(make_transitive_closure_constraints): Merge the two
constraints.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205808
138bc75d-0d04-0410-961f-
82ee72b054a4
rearnsha [Mon, 9 Dec 2013 14:54:00 +0000 (14:54 +0000)]
PR rtl-optimization/54300
gcc/
PR rtl-optimization/54300
* regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
outputs in a single-set are killed from the value chains.
gcc/testsuite:
PR rtl-optimization/54300
* gcc.target/arm/pr54300.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205807
138bc75d-0d04-0410-961f-
82ee72b054a4
jamborm [Mon, 9 Dec 2013 14:51:52 +0000 (14:51 +0000)]
2013-12-09 Martin Jambor <mjambor@suse.cz>
* gcc.c-torture/compile/pr39834.c: Remove optimization level option.
* gcc.c-torture/compile/pr48929.c: Likewise.
* gcc.c-torture/compile/pr55569.c: Likewise.
* gcc.c-torture/compile/sra-1.c: Likewise.
* gcc.c-torture/compile/pr45085.c: Moved to...
* gcc.dg/tree-ssa/pr45085.c: ...here, added compile dg-do.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205806
138bc75d-0d04-0410-961f-
82ee72b054a4
mpolacek [Mon, 9 Dec 2013 14:44:03 +0000 (14:44 +0000)]
PR sanitizer/59415
* vtable-verify.c (verify_bb_vtables): Check the return value
of gimple_call_fn. Use is_gimple_call instead of gimple_code.
testsuite/
* g++.dg/ubsan/pr59415.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205805
138bc75d-0d04-0410-961f-
82ee72b054a4
ktkachov [Mon, 9 Dec 2013 14:38:50 +0000 (14:38 +0000)]
2013-12-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/arm/arm.md (generic_sched): Add cortexa12.
(generic_vfp): Likewise.
* config/arm/arm.c (cortexa12_extra_costs): New cost table.
(arm_cortex_a12_tune): New tuning struct.
* config/arm/arm-cores.def: Add cortex-a12.
* config/arm/arm-tables.opt: Regenerate.
* config/arm/arm-tune.md: Likewise.
* config/arm/bpabi.h: Add cortex-a12.
* doc/invoke.texi: Document -mcpu=cortex-a12.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205804
138bc75d-0d04-0410-961f-
82ee72b054a4
fxcoudert [Mon, 9 Dec 2013 11:16:16 +0000 (11:16 +0000)]
* doc/install.texi (Prerequisites): Explicitly mention C library
and its headers for multilib builds.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205802
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Mon, 9 Dec 2013 09:50:51 +0000 (09:50 +0000)]
2013-12-09 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/52707
* g++.dg/cpp0x/deleted2.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205801
138bc75d-0d04-0410-961f-
82ee72b054a4
ktkachov [Mon, 9 Dec 2013 09:12:46 +0000 (09:12 +0000)]
2013-12-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* gcc.dg/tree-ssa/loop-31.c: Update scan pattern.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205800
138bc75d-0d04-0410-961f-
82ee72b054a4
rsandifo [Mon, 9 Dec 2013 08:04:57 +0000 (08:04 +0000)]
gcc/testsuite/
* lib/asan-dg.exp (asan-gtest): Remove expected output from the
pass/fail line and add it to the log instead.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205799
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Mon, 9 Dec 2013 00:17:05 +0000 (00:17 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205798
138bc75d-0d04-0410-961f-
82ee72b054a4
redi [Sun, 8 Dec 2013 22:18:19 +0000 (22:18 +0000)]
* testsuite/30_threads/async/async.cc: Fix race condition in test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205795
138bc75d-0d04-0410-961f-
82ee72b054a4
olegendo [Sun, 8 Dec 2013 22:15:59 +0000 (22:15 +0000)]
PR target/52898
PR target/51697
* common/config/sh/sh-common.c (sh_option_optimization_table): Remove
OPT_mcbranchdi entry.
* config/sh/sh.opt (mcbranchdi, mcmpeqdi): Mark as undocumented and
emit a warning.
* config/sh/sh.c (sh_option_override): Initialize TARGET_CBRANCHDI4
and TARGET_CMPEQDI_T variables.
* doc/invoke.texi (SH options): Undocument -mcbranchdi and -mcmpeqdi.
PR target/52898
PR target/51697
* gcc.target/sh/pr51697.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205794
138bc75d-0d04-0410-961f-
82ee72b054a4
korbb [Sun, 8 Dec 2013 21:55:46 +0000 (21:55 +0000)]
fenv.h on Ubuntu
plus fix the ordering of the patches:
* inclhack.def: many of the headers found under "bits/" are
often stashed under architecture directories. Apply fixes
to those, too. Also, re-ordered misordered fixes.
* tests/base/linux/vt.h: 80 columns in .def file limitation
* tests/base/iso/math_c99.h: adjust ordering
* tests/base/rtldef/string.h: likewise
* tests/base/bits/fenv.h: likewise
* tests/base/pthread.h: likewise
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205793
138bc75d-0d04-0410-961f-
82ee72b054a4
uros [Sun, 8 Dec 2013 21:45:08 +0000 (21:45 +0000)]
* gcc.dg/macro-fusion-1.c: Cleanup sched2 rtl dump.
* gcc.dg/macro-fusion-2.c: Ditto.
* gcc.dg/vect/vect-simd-clone-10a.c: Cleanup vect tree dump.
* gcc.dg/vect/vect-simd-clone-12a.c: Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205792
138bc75d-0d04-0410-961f-
82ee72b054a4
burnus [Sun, 8 Dec 2013 21:34:18 +0000 (21:34 +0000)]
2013-12-08 Tobias Burnus <burnus@net-b.de>
Janus Weil <janus@gcc.gnu.org>
PR fortran/58099
PR fortran/58676
PR fortran/41724
* resolve.c (gfc_resolve_intrinsic): Set elemental/pure.
(resolve_fl_procedure): Reject pure dummy procedures/procedure
pointers.
(gfc_explicit_interface_required): Don't require a
match of ELEMENTAL for intrinsics.
2013-12-08 Tobias Burnus <burnus@net-b.de>
PR fortran/58099
PR fortran/58676
PR fortran/41724
* gfortran.dg/elemental_subroutine_8.f90: New.
* gfortran.dg/proc_decl_9.f90: Add ELEMENTAL to make valid.
* gfortran.dg/proc_ptr_11.f90: Ditto.
* gfortran.dg/proc_ptr_result_8.f90: Ditto.
* gfortran.dg/proc_ptr_32.f90: Update dg-error.
* gfortran.dg/proc_ptr_33.f90: Ditto.
* gfortran.dg/proc_ptr_result_1.f90: Add abstract interface
which is not elemental.
* gfortran.dg/proc_ptr_result_7.f90: Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205791
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Sun, 8 Dec 2013 09:44:48 +0000 (09:44 +0000)]
2013-12-08 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/20_util/add_const/requirements/explicit_instantiation.cc:
New.
* testsuite/20_util/add_const/value.cc: Likewise.
* testsuite/20_util/add_cv/requirements/explicit_instantiation.cc:
Likewise.
* testsuite/20_util/add_cv/value.cc: Likewise.
* testsuite/20_util/add_pointer/requirements/explicit_instantiation.cc:
Likewise.
* testsuite/20_util/add_pointer/value.cc: Likewise.
* testsuite/20_util/add_volatile/requirements/
explicit_instantiation.cc: Likewise.
* testsuite/20_util/add_volatile/value.cc: Likewise.
* testsuite/20_util/alignment_of/requirements/
explicit_instantiation.cc: Likewise.
* testsuite/20_util/alignment_of/requirements/typedefs.cc: Likewise.
* testsuite/20_util/alignment_of/value.cc: Likewise.
* testsuite/20_util/extent/requirements/explicit_instantiation.cc:
Likewise.
* testsuite/20_util/extent/requirements/typedefs.cc: Likewise.
* testsuite/20_util/extent/value.cc: Likewise.
* testsuite/20_util/has_virtual_destructor/requirements/
explicit_instantiation.cc: Likewise.
* testsuite/20_util/has_virtual_destructor/requirements/
typedefs.cc: Likewise.
* testsuite/20_util/has_virtual_destructor/value.cc: Likewise.
* testsuite/20_util/is_abstract/requirements/explicit_instantiation.cc:
Likewise.
* testsuite/20_util/is_abstract/requirements/typedefs.cc: Likewise.
* testsuite/20_util/is_abstract/value.cc: Likewise.
* testsuite/20_util/is_arithmetic/requirements/
explicit_instantiation.cc: Likewise.
* testsuite/20_util/is_arithmetic/requirements/typedefs.cc: Likewise.
* testsuite/20_util/is_arithmetic/value.cc: Likewise.
* testsuite/20_util/is_array/requirements/explicit_instantiation.cc:
Likewise.
* testsuite/20_util/is_array/requirements/typedefs.cc: Likewise.
* testsuite/20_util/is_array/value.cc: Likewise.
* testsuite/20_util/is_base_of/requirements/explicit_instantiation.cc:
Likewise.
* testsuite/20_util/is_base_of/requirements/typedefs.cc: Likewise.
* testsuite/20_util/is_base_of/value.cc: Likewise.
* testsuite/20_util/is_class/requirements/explicit_instantiation.cc:
Likewise.
* testsuite/20_util/is_class/requirements/typedefs.cc: Likewise.
* testsuite/20_util/is_class/value.cc: Likewise.
* testsuite/20_util/is_const/requirements/explicit_instantiation.cc:
Likewise.
* testsuite/20_util/is_const/requirements/typedefs.cc: Likewise.
* testsuite/20_util/is_const/value.cc: Likewise.
* testsuite/20_util/is_empty/requirements/explicit_instantiation.cc:
Likewise.
* testsuite/20_util/is_empty/requirements/typedefs.cc: Likewise.
* testsuite/20_util/is_empty/value.cc: Likewise.
* testsuite/20_util/is_enum/requirements/explicit_instantiation.cc:
Likewise.
* testsuite/20_util/is_enum/requirements/typedefs.cc
* testsuite/20_util/is_enum/value.cc: Likewise.
* testsuite/20_util/is_pointer/requirements/explicit_instantiation.cc
* testsuite/20_util/is_pointer/value.cc: Likewise.
* testsuite/20_util/is_polymorphic/requirements/
explicit_instantiation.cc: Likewise.
* testsuite/20_util/is_polymorphic/requirements/typedefs.cc: Likewise.
* testsuite/20_util/is_polymorphic/value.cc: Likewise.
* testsuite/20_util/is_same/requirements/explicit_instantiation.cc
* testsuite/20_util/is_same/requirements/typedefs.cc: Likewise.
* testsuite/20_util/is_same/value.cc: Likewise.
* testsuite/20_util/is_union/requirements/
explicit_instantiation.cc: Likewise.
* testsuite/20_util/is_union/requirements/typedefs.cc: Likewise.
* testsuite/20_util/is_union/value.cc: Likewise.
* testsuite/20_util/is_void/requirements/explicit_instantiation.cc
* testsuite/20_util/is_void/requirements/typedefs.cc: Likewise.
* testsuite/20_util/is_void/value.cc: Likewise.
* testsuite/20_util/is_volatile/requirements/
explicit_instantiation.cc: Likewise.
* testsuite/20_util/is_volatile/requirements/typedefs.cc: Likewise.
* testsuite/20_util/is_volatile/value.cc: Likewise.
* testsuite/20_util/rank/requirements/explicit_instantiation.cc:
Likewise.
* testsuite/20_util/rank/requirements/typedefs.cc: Likewise.
* testsuite/20_util/rank/value.cc: Likewise.
* testsuite/20_util/remove_all_extents/requirements/
explicit_instantiation.cc: Likewise.
* testsuite/20_util/remove_all_extents/value.cc: Likewise.
* testsuite/20_util/remove_const/requirements/
explicit_instantiation.cc: Likewise.
* testsuite/20_util/remove_const/value.cc: Likewise.
* testsuite/20_util/remove_cv/requirements/explicit_instantiation.cc:
Likewise.
* testsuite/20_util/remove_cv/value.cc: Likewise.
* testsuite/20_util/remove_extent/requirements/
explicit_instantiation.cc: Likewise.
* testsuite/20_util/remove_extent/value.cc: Likewise.
* testsuite/20_util/remove_pointer/requirements/
explicit_instantiation.cc: Likewise.
* testsuite/20_util/remove_pointer/value.cc: Likewise.
* testsuite/20_util/remove_volatile/requirements/
explicit_instantiation.cc: Likewise.
* testsuite/20_util/remove_volatile/value.cc: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205789
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Sun, 8 Dec 2013 00:16:42 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205788
138bc75d-0d04-0410-961f-
82ee72b054a4
janus [Sat, 7 Dec 2013 19:27:19 +0000 (19:27 +0000)]
2013-12-07 Janus Weil <janus@gcc.gnu.org>
PR fortran/59414
* resolve.c (resolve_specific_f0): Handle CLASS-valued functions.
2013-12-07 Janus Weil <janus@gcc.gnu.org>
PR fortran/59414
* gfortran.dg/class_result_2.f90: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205785
138bc75d-0d04-0410-961f-
82ee72b054a4
mkuvyrkov [Sat, 7 Dec 2013 08:58:37 +0000 (08:58 +0000)]
* config/linux.h: Fix typo in a comment.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205782
138bc75d-0d04-0410-961f-
82ee72b054a4
mkuvyrkov [Sat, 7 Dec 2013 08:47:33 +0000 (08:47 +0000)]
Cleanup libc selection and Android support.
* config.gcc (*linux*): Split libc selection from Android support.
Add libc selection to all *linux* targets. Add Android support to
architectures that support it.
(arm*-*-linux-*, i[34567]86-*-linux*, x86_64-*-linux*,)
(mips*-*-linux*): Add Android support.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205781
138bc75d-0d04-0410-961f-
82ee72b054a4
mkuvyrkov [Sat, 7 Dec 2013 08:47:21 +0000 (08:47 +0000)]
Cleanup definitions of libc-related target hooks.
* config/bfin/uclinux.h, config/c6x/uclinux-elf.h,
* config/lm32/uclinux-elf.h, config/m68k/uclinux.h,
* config/moxie/uclinux.h (TARGET_LIBC_HAS_FUNCTION): Move definitions
to linux.h.
* config/linux-android.h (TARGET_HAS_IFUNC_P): Move definition
to linux.h.
* config/linux.h (TARGET_LIBC_HAS_FUNCTION, TARGET_HAS_IFUNC_P):
Define appropriately for Linux and uClinux targets.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205780
138bc75d-0d04-0410-961f-
82ee72b054a4
mkuvyrkov [Sat, 7 Dec 2013 08:47:09 +0000 (08:47 +0000)]
Robustify check for IFUNC support.
* config/linux.c (linux_has_ifunc_p): Use correct test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205779
138bc75d-0d04-0410-961f-
82ee72b054a4
mkuvyrkov [Sat, 7 Dec 2013 08:46:58 +0000 (08:46 +0000)]
Rename functions relating to libc support on Linux targets.
* config/linux.c (linux_android_has_ifunc_p): Rename to
linux_has_ifunc_p.
(linux_android_libc_has_function): Rename to linux_libc_has_function.
* config/linux-protos.h (linux_android_has_ifunc_p,)
(linux_android_libc_has_function): Update declarations.
* config/linux.h, config/linux-android.h, config/alpha/linux.h,
* config/rs6000/linux.h, config/rs6000/linux64.h: Update.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205778
138bc75d-0d04-0410-961f-
82ee72b054a4
mkuvyrkov [Sat, 7 Dec 2013 08:46:47 +0000 (08:46 +0000)]
Rename files for libc selection on Linux targets.
* linux-android.c: Rename to linux.c.
* t-linux-android: Rename to t-linux. Update references
to linux-android.c
* config.gcc: Update references to t-linux-android and linux-android.o.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205777
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Sat, 7 Dec 2013 08:10:02 +0000 (08:10 +0000)]
* ssp.c (fail): Avoid -Wformat-security warning.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205775
138bc75d-0d04-0410-961f-
82ee72b054a4
amodra [Sat, 7 Dec 2013 04:35:59 +0000 (04:35 +0000)]
* config/rs6000/rs6000.md (bswapdi2_32bit): Remove ?? from r->r
alternative.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205773
138bc75d-0d04-0410-961f-
82ee72b054a4
corsepiu [Sat, 7 Dec 2013 03:23:38 +0000 (03:23 +0000)]
2013-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
* config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205771
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Sat, 7 Dec 2013 00:16:48 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205770
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Fri, 6 Dec 2013 23:08:41 +0000 (23:08 +0000)]
2013-12-06 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/util/testsuite_tr1.h (test_category, test_property,
test_relationship): constexpr in c++11 mode.
* testsuite/20_util/add_lvalue_reference/value.cc: Use static_assert
and change to dg-do compile testcase.
* testsuite/20_util/add_rvalue_reference/value.cc: Likewise.
* testsuite/20_util/aligned_storage/value.cc: Likewise.
* testsuite/20_util/has_trivial_copy_assign/value.cc: Likewise.
* testsuite/20_util/has_trivial_copy_constructor/value.cc: Likewise.
* testsuite/20_util/has_trivial_default_constructor/value.cc: Likewise.
* testsuite/20_util/is_compound/value.cc: Likewise.
* testsuite/20_util/is_constructible/value.cc: Likewise.
* testsuite/20_util/is_convertible/value.cc: Likewise.
* testsuite/20_util/is_copy_assignable/value.cc: Likewise.
* testsuite/20_util/is_copy_constructible/value.cc: Likewise.
* testsuite/20_util/is_floating_point/value.cc: Likewise.
* testsuite/20_util/is_function/value.cc: Likewise.
* testsuite/20_util/is_fundamental/value.cc: Likewise.
* testsuite/20_util/is_integral/value.cc: Likewise.
* testsuite/20_util/is_literal_type/value.cc: Likewise.
* testsuite/20_util/is_lvalue_reference/value.cc: Likewise.
* testsuite/20_util/is_member_function_pointer/value.cc: Likewise.
* testsuite/20_util/is_member_object_pointer/value.cc: Likewise.
* testsuite/20_util/is_member_pointer/value.cc: Likewise.
* testsuite/20_util/is_move_assignable/value.cc: Likewise.
* testsuite/20_util/is_move_constructible/value.cc: Likewise.
* testsuite/20_util/is_nothrow_assignable/value.cc: Likewise.
* testsuite/20_util/is_nothrow_constructible/value.cc: Likewise.
* testsuite/20_util/is_nothrow_copy_assignable/value.cc: Likewise.
* testsuite/20_util/is_nothrow_copy_constructible/value.cc: Likewise.
* testsuite/20_util/is_nothrow_default_constructible/value.cc: Likewise.
* testsuite/20_util/is_nothrow_move_assignable/value.cc: Likewise.
* testsuite/20_util/is_nothrow_move_constructible/value.cc: Likewise.
* testsuite/20_util/is_null_pointer/value.cc: Likewise.
* testsuite/20_util/is_object/value.cc: Likewise.
* testsuite/20_util/is_pod/value.cc: Likewise.
* testsuite/20_util/is_reference/value.cc: Likewise.
* testsuite/20_util/is_rvalue_reference/value.cc: Likewise.
* testsuite/20_util/is_scalar/value.cc: Likewise.
* testsuite/20_util/is_signed/value.cc: Likewise.
* testsuite/20_util/is_standard_layout/value.cc: Likewise.
* testsuite/20_util/is_trivial/value.cc: Likewise.
* testsuite/20_util/is_trivially_destructible/value.cc: Likewise.
* testsuite/20_util/is_unsigned/value.cc: Likewise.
* testsuite/20_util/make_signed/requirements/typedefs-2.cc: Likewise.
* testsuite/20_util/make_unsigned/requirements/typedefs-1.cc: Likewise.
* testsuite/20_util/make_unsigned/requirements/typedefs-2.cc: Likewise.
* testsuite/20_util/remove_reference/value.cc: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205766
138bc75d-0d04-0410-961f-
82ee72b054a4
vmakarov [Fri, 6 Dec 2013 22:10:22 +0000 (22:10 +0000)]
2013-12-06 Vladimir Makarov <vmakarov@redhat.com>
* config/rs6000/rs600.md (*bswapdi2_64bit): Remove ?? from the
constraint.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205765
138bc75d-0d04-0410-961f-
82ee72b054a4
ctice [Fri, 6 Dec 2013 21:22:14 +0000 (21:22 +0000)]
Fix two small problems: Make the libvtv function
decls globally visible, and update all uses of the
verified vtable poitner with the verification results,
rather than just hte first use.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205764
138bc75d-0d04-0410-961f-
82ee72b054a4
pinskia [Fri, 6 Dec 2013 21:08:33 +0000 (21:08 +0000)]
2013-12-06 Andrew Pinski <apinski@cavium.com>
PR target/59092
* config/aarch64/aarch64.md (trap): New pattern.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205763
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Fri, 6 Dec 2013 21:00:49 +0000 (21:00 +0000)]
PR tree-optimization/59388
* tree-ssa-reassoc.c (update_range_test): If op == range->exp,
gimplify tem after stmt rather than before it.
* gcc.c-torture/execute/pr59388.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205761
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Fri, 6 Dec 2013 20:38:15 +0000 (20:38 +0000)]
* tree-data-ref.c (struct data_ref_loc_d): Replace pos field with ref.
(get_references_in_stmt): Don't record operand addresses, but
operands themselves.
(find_data_references_in_stmt, graphite_find_data_references_in_stmt):
Adjust for the pos -> ref change.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205760
138bc75d-0d04-0410-961f-
82ee72b054a4
mrs [Fri, 6 Dec 2013 19:26:26 +0000 (19:26 +0000)]
2013-12-06 Dominique d'Humieres <dominiq@lps.ens.fr>
PR testsuite/59043
* g++.dg/pubtypes.C: Adjust the regular expression.
* gcc.dg/pubtypes-1.c: Likewise.
* gcc.dg/pubtypes-2.c: Likewise.
* gcc.dg/pubtypes-3.c: Likewise.
* gcc.dg/pubtypes-4.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205758
138bc75d-0d04-0410-961f-
82ee72b054a4
olegendo [Fri, 6 Dec 2013 19:23:34 +0000 (19:23 +0000)]
* MAINTAINERS: Add myself as sh maintainer.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205757
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Fri, 6 Dec 2013 18:26:27 +0000 (18:26 +0000)]
PR go/59408
runtime: Don't require g != m->g0 in sema notesleep.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205756
138bc75d-0d04-0410-961f-
82ee72b054a4
belagod [Fri, 6 Dec 2013 17:48:12 +0000 (17:48 +0000)]
Fix dg options to vect-nop-move.c.
2013-12-06 Tejas Belagod <tejas.belagod@arm.com>
testsuite/
* gcc.dg/vect/vect-nop-move.c: Fix dg options.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205755
138bc75d-0d04-0410-961f-
82ee72b054a4
hjl [Fri, 6 Dec 2013 17:36:22 +0000 (17:36 +0000)]
Change -mtune=ia to -mtune=intel
* config.gcc: Change --with-cpu=ia to --with-cpu=intel.
* config/i386/i386.c (cpu_names): Replace "ia" with "intel".
(processor_alias_table): Likewise.
(ix86_option_override_internal): Likewise.
* config/i386/i386.h (target_cpu_default): Replace
TARGET_CPU_DEFAULT_ia with TARGET_CPU_DEFAULT_intel.
* doc/invoke.texi: Replace -mtune=ia with -mtune=intel.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205754
138bc75d-0d04-0410-961f-
82ee72b054a4
uros [Fri, 6 Dec 2013 17:16:52 +0000 (17:16 +0000)]
PR target/59405
* config/i386/i386.c (type_natural_mode): Properly handle
size 8 for !TARGET_64BIT.
testsuite/ChangeLog:
PR target/59405
* gcc.target/i386/pr59405.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205753
138bc75d-0d04-0410-961f-
82ee72b054a4
corsepiu [Fri, 6 Dec 2013 17:09:57 +0000 (17:09 +0000)]
2013-12-06 Ralf Corsépius <ralf.corsepius@rtems.org>
* config.host (microblaze-*-rtems*): New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205751
138bc75d-0d04-0410-961f-
82ee72b054a4
tbsaunde [Fri, 6 Dec 2013 16:56:59 +0000 (16:56 +0000)]
remove an unneeded vec.release () to unbreak lto bootstrap
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205750
138bc75d-0d04-0410-961f-
82ee72b054a4
ibolton [Fri, 6 Dec 2013 15:51:49 +0000 (15:51 +0000)]
[ARM] Add __builtin_trap support for A32
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205749
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Fri, 6 Dec 2013 14:48:17 +0000 (14:48 +0000)]
* elf.c (ET_DYN): Undefine and define again.
(elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
return early -1 without closing the descriptor.
(struct phdr_data): Add exe_descriptor.
(phdr_callback): If pd->exe_descriptor is not -1, for very first
call if dlpi_name is NULL just call elf_add with the exe_descriptor,
otherwise backtrace_close the exe_descriptor if not -1. Adjust
call to elf_add.
(backtrace_initialize): Adjust call to elf_add. If it returns
-1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205748
138bc75d-0d04-0410-961f-
82ee72b054a4
edlinger [Fri, 6 Dec 2013 14:23:00 +0000 (14:23 +0000)]
2013-12-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
* expr.c (expand_assignment): Update bitregion_start and
bitregion_end.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205745
138bc75d-0d04-0410-961f-
82ee72b054a4
hjl [Fri, 6 Dec 2013 11:48:24 +0000 (11:48 +0000)]
Use int64 on time and clock for x32
* sanitizer_common/sanitizer_platform_limits_posix.h
(__sanitizer_shmid_ds): Use u64 on time fields for x32.
(__sanitizer_clock_t): Use long long for x32.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205737
138bc75d-0d04-0410-961f-
82ee72b054a4
hjl [Fri, 6 Dec 2013 11:44:55 +0000 (11:44 +0000)]
Include <sys/stat.h> if __x86_64__ is defined
* sanitizer_common/sanitizer_platform_limits_linux.cc: Include
<sys/stat.h>, instead of <asm/stat.h>, if __x86_64__ is defined.
(struct___old_kernel_stat_sz): Don't check if __x86_64__ is defined.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205736
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Fri, 6 Dec 2013 11:31:56 +0000 (11:31 +0000)]
PR target/59316
* config/sparc/sparc.h (SPARC_LOW_FE_EXCEPT_VALUES): Define.
* config/sparc/sol2.h (SPARC_LOW_FE_EXCEPT_VALUES): Redefine.
* config/sparc/sparc.c (TARGET_INIT_BUILTINS): Move around.
(TARGET_BUILTIN_DECL): Define.
(TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Likewise.
(sparc32_initialize_trampoline): Adjust call to gen_flush.
(enum sparc_builtins): New enumeral type.
(sparc_builtins): New static array.
(sparc_builtins_icode): Likewise.
(def_builtin): Accept a separate icode and save the result.
(def_builtin_const): Likewise.
(sparc_fpu_init_builtins): New function.
(sparc_vis_init_builtins): Pass the builtin code.
(sparc_init_builtins): Call it if TARGET_FPU.
(sparc_builtin_decl): New function.
(sparc_expand_builtin): Deal with SPARC_BUILTIN_{LD,ST}FSR.
(sparc_handle_vis_mul8x16): Use the builtin code.
(sparc_fold_builtin): Likewise. Deal with SPARC_BUILTIN_{LD,ST}FSR
and SPARC_BUILTIN_PDISTN.
(compound_expr): New helper function.
(sparc_atomic_assign_expand_fenv): New function.
* config/sparc/sparc.md (unspecv): Reorder values, add UNSPECV_LDFSR
and UNSPECV_STFSR.
(flush, flushdi): Merge into single pattern.
(ldfsr): New instruction.
(stfsr): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205735
138bc75d-0d04-0410-961f-
82ee72b054a4
olegendo [Fri, 6 Dec 2013 10:40:53 +0000 (10:40 +0000)]
* asan.c: Remove struct tags when referring to class varpool_node.
* cgraph.h: Likewise.
* cgraphbuild.c: Likewise.
* cgraphunit.c: Likewise.
* dbxout.c: Likewise.
* dwarf2out.c: Likewise.
* gimple-fold.c: Likewise.
* ipa-devirt.c: Likewise.
* ipa-ref-inline.h: Likewise.
* ipa-ref.h: Likewise.
* ipa-reference.c: Likewise.
* ipa-utils.c: Likewise.
* ipa.c: Likewise.
* lto-cgraph.c: Likewise.
* lto-streamer-out.c: Likewise.
* lto-streamer.h: Likewise.
* passes.c: Likewise.
* toplev.c: Likewise.
* tree-eh.c: Likewise.
* tree-emutls.c: Likewise.
* tree-pass.h: Likewise.
* tree-ssa-structalias.c: Likewise.
* tree-vectorizer.c: Likewise.
* tree.c: Likewise.
* varasm.c: Likewise.
* varpool.c: Likewise.
* cp/decl2.c: Remove struct tags when referring to class varpool_node.
* lto/lto.c: Remove struct tags when referring to class varpool_node.
* lto/lto-partition.c: Likewise.
* lto/lto-symtab.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205733
138bc75d-0d04-0410-961f-
82ee72b054a4
olegendo [Fri, 6 Dec 2013 10:27:20 +0000 (10:27 +0000)]
* cgraphunit.c: Remove struct tags when referring to class
ipa_opt_pass_d or class opt_pass.
* function.h: Likewise.
* lto-cgraph.c: Likewise.
* pass_manager.h: Likewise.
* passes.c: Likewise.
* tree-pass.h: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205732
138bc75d-0d04-0410-961f-
82ee72b054a4
ro [Fri, 6 Dec 2013 10:04:05 +0000 (10:04 +0000)]
Provide _M_2_SQRTPI if missing.
* intrinsics/erfc_scaled.c (_M_2_SQRTPI): Define if missing.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205731
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Fri, 6 Dec 2013 09:23:07 +0000 (09:23 +0000)]
2013-12-06 Richard Biener <rguenther@suse.de>
PR tree-optimization/59058
* tree-vectorizer.h (struct _loop_vec_info): Add num_itersm1
member.
(LOOP_VINFO_NITERSM1): New macro.
* tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Express
the vector loop entry test in terms of scalar latch executions.
(vect_do_peeling_for_alignment): Update LOOP_VINFO_NITERSM1.
* tree-vect-loop.c (vect_get_loop_niters): Also return the
number of latch executions.
(new_loop_vec_info): Initialize LOOP_VINFO_NITERSM1.
(vect_analyze_loop_form): Likewise.
(vect_generate_tmps_on_preheader): Compute the number of
vectorized iterations differently.
* gcc.dg/torture/pr59058.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205730
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Fri, 6 Dec 2013 08:28:35 +0000 (08:28 +0000)]
2013-12-06 Richard Biener <rguenther@suse.de>
* inclhack.def (suse_linux_vt_cxx): New fix for linux/vt.h
being not compatible with C++.
* tests/base/linux/vt.h: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205729
138bc75d-0d04-0410-961f-
82ee72b054a4
jbglaw [Fri, 6 Dec 2013 04:34:34 +0000 (04:34 +0000)]
2013-12-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
* config/score/score.c (score_force_temporary): Delete function.
(score_split_symbol): Ditto.
* config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
parentheses to silence ambiguity warning and reindent.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205727
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Fri, 6 Dec 2013 00:16:53 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205726
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Thu, 5 Dec 2013 23:17:57 +0000 (23:17 +0000)]
2013-12-05 Paolo Carlini <paolo.carlini@oracle.com>
* g++.dg/warn/pr15774-1.C: Adjust expected message.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205722
138bc75d-0d04-0410-961f-
82ee72b054a4
mpolacek [Thu, 5 Dec 2013 22:51:11 +0000 (22:51 +0000)]
2013-12-05 Marek Polacek <polacek@redhat.com>
* doc/invoke.texi: Document -fsanitize=signed-integer-overflow.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205721
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Thu, 5 Dec 2013 22:46:36 +0000 (22:46 +0000)]
PR c++/59044
PR c++/59052
* pt.c (most_specialized_class): Use the partially instantiated
template for deduction. Drop the TMPL parameter.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205720
138bc75d-0d04-0410-961f-
82ee72b054a4
hjl [Thu, 5 Dec 2013 20:47:13 +0000 (20:47 +0000)]
Add -march=ia to x86 backend
* config.gcc: Support --with-cpu=ia.
* config/i386/i386.c (cpu_names): Add "ia".
(processor_alias_table): Likewise.
(ix86_option_override_internal): Disallow -march=ia.
* config/i386/i386.h (target_cpu_default): Add
TARGET_CPU_DEFAULT_ia.
* doc/invoke.texi: Document -mtune=ia.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205719
138bc75d-0d04-0410-961f-
82ee72b054a4
vmakarov [Thu, 5 Dec 2013 19:39:39 +0000 (19:39 +0000)]
2013-12-05 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/59317
* lra-constraints.c (in_class_p): Don't ignore insn with constant
as a source.
2013-12-05 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/59317
* testsuite/gcc.target/mips/pr59317.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205718
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Thu, 5 Dec 2013 18:32:02 +0000 (18:32 +0000)]
* alloc.c (backtrace_vector_finish): Add error_callback and data
parameters. Call backtrace_vector_release. Return address base.
* mmap.c (backtrace_vector_finish): Add error_callback and data
parameters. Return address base.
* dwarf.c (read_function_info): Get new address base from
backtrace_vector_finish.
* internal.h (backtrace_vector_finish): Update declaration.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205716
138bc75d-0d04-0410-961f-
82ee72b054a4
jamborm [Thu, 5 Dec 2013 18:07:08 +0000 (18:07 +0000)]
2013-12-05 Martin Jambor <mjambor@suse.cz>
PR ipa/58253
* ipa-prop.c (ipa_modify_formal_parameters): Create decls of
non-BLKmode in their naturally aligned type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205715
138bc75d-0d04-0410-961f-
82ee72b054a4
mpolacek [Thu, 5 Dec 2013 18:03:44 +0000 (18:03 +0000)]
PR sanitizer/59333
PR sanitizer/59397
* ubsan.c: Include rtl.h and expr.h.
(ubsan_encode_value): Add new parameter. If expanding, assign
a stack slot for DECL_RTL of the temporary and call expand_assignment.
Handle BOOLEAN_TYPE and ENUMERAL_TYPE.
(ubsan_build_overflow_builtin): Adjust ubsan_encode_value call.
* ubsan.h (ubsan_encode_value): Adjust declaration.
* internal-fn.c (ubsan_expand_si_overflow_addsub_check): Move
ubsan_build_overflow_builtin above expand_normal call. Surround this call
with push_temp_slots and pop_temp_slots.
(ubsan_expand_si_overflow_neg_check): Likewise.
(ubsan_expand_si_overflow_mul_check): Likewise.
testsuite/
* c-c++-common/ubsan/pr59333.c: New test.
* c-c++-common/ubsan/pr59397.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205714
138bc75d-0d04-0410-961f-
82ee72b054a4
yufeng [Thu, 5 Dec 2013 17:28:08 +0000 (17:28 +0000)]
gcc/
* gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard
the get_alternative_base call with flag_expensive_optimizations.
(alloc_cand_and_find_basis): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205713
138bc75d-0d04-0410-961f-
82ee72b054a4
belagod [Thu, 5 Dec 2013 17:24:52 +0000 (17:24 +0000)]
Eliminate redundant vec_select moves.
gcc/
* rtlanal.c (set_noop_p): Return nonzero in case of redundant vec_select for
overlapping register lanes.
testsuite/
* config/gcc.dg/vect/vect-nop-move.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205712
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Thu, 5 Dec 2013 16:39:53 +0000 (16:39 +0000)]
Revert this change; no longer required.
2013-11-06 Ian Lance Taylor <iant@google.com>
* go-lang.c (go_langhook_post_options): If
-fisolate-erroneous-paths was turned on by an optimization option,
turn it off.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205711
138bc75d-0d04-0410-961f-
82ee72b054a4
hjl [Thu, 5 Dec 2013 14:41:38 +0000 (14:41 +0000)]
Add -lm to link_sanitizer_common
* configure.ac (link_sanitizer_common): Add -lm.
* configure: Regenerated.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205710
138bc75d-0d04-0410-961f-
82ee72b054a4
kyukhin [Thu, 5 Dec 2013 12:20:19 +0000 (12:20 +0000)]
* config/i386/i386.c (ix86_expand_builtin): Generate
reg for readflags built-in when optimizing.
* config/i386/i386.md (*pushfl<mode>): Rename to ...
(pushfl<mode>2): This. Fix iterator.
(*popfl<mode>): Rename to ...
(*popfl<mode>1): This. Fix iterator.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205707
138bc75d-0d04-0410-961f-
82ee72b054a4
mpolacek [Thu, 5 Dec 2013 12:05:43 +0000 (12:05 +0000)]
2013-12-05 Marek Polacek <polacek@redhat.com>
c-family/
* c-common.c (c_sizeof_or_alignof_type): Move a declaration into
[ADJUST_FIELD_ALIGN].
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205705
138bc75d-0d04-0410-961f-
82ee72b054a4
ygribov [Thu, 5 Dec 2013 11:35:09 +0000 (11:35 +0000)]
2013-12-05 Max Ostapenko <m.ostapenko@partner.samsung.com>
* c-c++-common/tsan/atomic_stack.c: New test.
* c-c++-common/tsan/fd_pipe_race.c: New test.
* c-c++-common/tsan/free_race.c: New test.
* c-c++-common/tsan/mutexset1.c: New test.
* c-c++-common/tsan/race_on_barrier.c: New test.
* c-c++-common/tsan/sleep_sync.c: New test.
* c-c++-common/tsan/thread_leak.c: New test.
* c-c++-common/tsan/thread_leak1.c: New test.
* c-c++-common/tsan/thread_leak2.c: New test.
* c-c++-common/tsan/tiny_race.c: New test.
* c-c++-common/tsan/tls_race.c: New test.
* c-c++-common/tsan/write_in_reader_lock.c: New test.
* lib/tsan-dg.exp: New file.
* gcc.dg/tsan/tsan.exp: New file.
* g++.dg/tsan/tsan.exp: New file.
* g++.dg/dg.exp: Prune tsan subdirectory.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205704
138bc75d-0d04-0410-961f-
82ee72b054a4
kyukhin [Thu, 5 Dec 2013 11:23:39 +0000 (11:23 +0000)]
ChangeLog/
* config/i386/i386.c(IX86_BUILTIN_READ_FLAGS): New.
(IX86_BUILTIN_WRITE_FLAGS): Ditto.
(ix86_init_mmx_sse_builtins): Define
__builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
__builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
(ix86_expand_builtin): Expand them.
* config/i386/ia32intrin.h (__readeflags): New.
(__writeeflags): Ditto.
* gcc/config/i386/i386.md (*pushfl<mode>): Ditto.
(*popfl<mode>1): Ditto.
testsuite/ChangeLog/
* gcc.target/i386/readeflags-1.c: New.
* gcc.target/i386/writeeflags-1.c: Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205703
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Thu, 5 Dec 2013 11:06:10 +0000 (11:06 +0000)]
Add forgotten file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205701
138bc75d-0d04-0410-961f-
82ee72b054a4
kcc [Thu, 5 Dec 2013 10:28:59 +0000 (10:28 +0000)]
libsanitizer merge from upstream r196489
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205700
138bc75d-0d04-0410-961f-
82ee72b054a4
ygribov [Thu, 5 Dec 2013 10:00:47 +0000 (10:00 +0000)]
2013-12-05 Yury Gribov <y.gribov@samsung.com>
PR sanitizer/59369
* c-c++-common/asan/pr59063-1.c: Disable on non-Linux platforms.
* c-c++-common/asan/pr59063-2.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205699
138bc75d-0d04-0410-961f-
82ee72b054a4
ygribov [Thu, 5 Dec 2013 09:56:03 +0000 (09:56 +0000)]
2013-12-05 Yury Gribov <y.gribov@samsung.com>
PR sanitizer/59368
* Makefile.am (gcc_version): Added gcc_version.
* Makefile.in: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205698
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Thu, 5 Dec 2013 09:51:11 +0000 (09:51 +0000)]
/cp
2013-12-05 Paolo Carlini <paolo.carlini@oracle.com>
* decl.c (duplicate_decls): Replace pairs of errors and permerrors
with error + inform (permerror + inform, respectively).
/testsuite
2013-12-05 Paolo Carlini <paolo.carlini@oracle.com>
* g++.dg/cpp0x/constexpr-46336.C: Adjust expected messages.
* g++.dg/cpp0x/defaulted2.C: Likewise.
* g++.dg/cpp1y/auto-fn8.C: Likewise.
* g++.dg/gomp/udr-3.C: Likewise.
* g++.dg/lookup/extern-c-redecl5.C: Likewise.
* g++.dg/lookup/linkage1.C: Likewise.
* g++.dg/overload/new1.C: Likewise.
* g++.dg/parse/friend5.C: Likewise.
* g++.dg/parse/namespace-alias-1.C: Likewise.
* g++.dg/parse/namespace10.C: Likewise.
* g++.dg/parse/redef2.C: Likewise.
* g++.dg/template/friend44.C: Likewise.
* g++.old-deja/g++.brendan/crash42.C: Likewise.
* g++.old-deja/g++.brendan/crash52.C: Likewise.
* g++.old-deja/g++.brendan/crash55.C: Likewise.
* g++.old-deja/g++.jason/overload21.C: Likewise.
* g++.old-deja/g++.jason/overload5.C: Likewise.
* g++.old-deja/g++.jason/redecl1.C: Likewise.
* g++.old-deja/g++.law/arm8.C: Likewise.
* g++.old-deja/g++.other/main1.C: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205697
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Thu, 5 Dec 2013 09:20:51 +0000 (09:20 +0000)]
2013-12-05 Richard Biener <rguenther@suse.de>
PR tree-optimization/56787
* gcc.dg/vect/pr56787.c: Adjust to not require vector float
division.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205696
138bc75d-0d04-0410-961f-
82ee72b054a4
kcc [Thu, 5 Dec 2013 09:18:38 +0000 (09:18 +0000)]
libsanitizer merge from upstream r196090
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205695
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Thu, 5 Dec 2013 09:12:29 +0000 (09:12 +0000)]
2013-12-05 Richard Biener <rguenther@suse.de>
PR tree-optimization/59374
* tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
Commonize known and unknown dependence case fixing the allowed
read-write dependence case and dropping code that should not
matter.
* gcc.dg/torture/pr59374-1.c: New testcase.
* gcc.dg/torture/pr59374-2.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205694
138bc75d-0d04-0410-961f-
82ee72b054a4
kyukhin [Thu, 5 Dec 2013 07:54:43 +0000 (07:54 +0000)]
ChangeLog/
* config/ia64/ia64.md (prologue_allocate_stack): Block auto-
generation of predicated version.
(epilogue_deallocate_stack): Ditto.
(prologue_allocate_stack_pr): Add explicit predicated version.
(epilogue_deallocate_stack_pr): Ditto.
* config/ia64/ia64.c (ia64_single_set): Use explicit versions.
testsuite/ChangeLog/
* gcc.target/ia64/pr52731.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205692
138bc75d-0d04-0410-961f-
82ee72b054a4
amodra [Thu, 5 Dec 2013 07:11:17 +0000 (07:11 +0000)]
* configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
build != host.
<recursive call for build != host>: Clear GMPINC. Don't bother
saving CFLAGS.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205690
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Thu, 5 Dec 2013 03:18:18 +0000 (03:18 +0000)]
* common.opt: Split up -fisolate-erroneous-paths into
-fisolate-erroneous-paths-dereference and
-fisolate-erroneous-paths-attribute.
* invoke.texi: Corresponding changes.
* gimple.c (infer_nonnull_range): Add and use new arguments
to control what kind of statements can be used to infer a
non-null range.
* gimple.h (infer_nonnull_range): Update prototype.
* tree-vrp.c (infer_value_range): Corresponding changes.
* opts.c (default_options_table): Update due to option split.
* gimple-ssa-isolate-paths.c: Fix trailing whitespace.
(find_implicit_erroneous_behaviour): Pass additional arguments
to infer_nonnull_range.
(find_explicit_erroneous_behaviour): Similarly.
(gate_isolate_erroneous_paths): Check both of the new
options.
testsuite/
* gcc.dg/pr38984.c: Use -fno-isolate-erroneous-paths-dereference.
* gcc.dg/tree-ssa/isolate-2.c: Explicitly turn on
-fisolate-erroneous-paths-attribute.
* gcc.dg/tree-ssa/isolate-4.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205689
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Thu, 5 Dec 2013 00:17:06 +0000 (00:17 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205688
138bc75d-0d04-0410-961f-
82ee72b054a4
jsm28 [Wed, 4 Dec 2013 22:57:20 +0000 (22:57 +0000)]
PR c/52023
c-family:
* c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
and check field alignment if set.
* c-common.h (c_sizeof_or_alignof_type): Update prototype.
(c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
c:
* c-parser.c (c_parser_alignas_specifier): Use
c_sizeof_or_alignof_type instead of c_alignof.
(c_parser_alignof_expression): Likewise, with min_alignof
parameter depending on alignof spelling used.
cp:
* typeck.c (cxx_sizeof_or_alignof_type): Update call to
c_sizeof_or_alignof_type.
objc:
* objc-act.c (objc_synthesize_getter): Update calls to
c_sizeof_or_alignof_type.
testsuite:
* gcc.dg/c11-align-6.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205685
138bc75d-0d04-0410-961f-
82ee72b054a4
mpolacek [Wed, 4 Dec 2013 22:47:11 +0000 (22:47 +0000)]
Implement -fsanitize=signed-integer-overflow.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205684
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Wed, 4 Dec 2013 21:57:52 +0000 (21:57 +0000)]
* expr.c (expand_assignment): Update comments.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205683
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Wed, 4 Dec 2013 21:25:11 +0000 (21:25 +0000)]
PR ada/59382
gnattools/
* configure.ac (target parameterization): Rewrite.
* configure: Regenerate.
gcc/ada/
* indepsw-darwin.adb: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205681
138bc75d-0d04-0410-961f-
82ee72b054a4
mpolacek [Wed, 4 Dec 2013 21:15:31 +0000 (21:15 +0000)]
PR c/54113
c/
* c-decl.c (start_function): Don't warn for missing prototype for
inline functions.
testsuite/
* gcc.dg/pr54113.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205680
138bc75d-0d04-0410-961f-
82ee72b054a4
burnus [Wed, 4 Dec 2013 19:59:42 +0000 (19:59 +0000)]
gcc/
2013-12-04 Tobias Burnus <burnus@net-b.de>
PR debug/37132
* lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
* tree.def (NAMELIST_DECL): Add.
* tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
* tree.c (initialize_tree_contains_struct): Add asserts for it.
* dwarf2out.c (gen_namelist_decl): New function.
(gen_decl_die, dwarf2out_decl): Call it.
(dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
* lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
(lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
call.
* lto-streamer-out.c (lto_output_tree_ref): Handle
* NAMELIST_DECL.
gcc/fortran
2013-12-04 Tobias Burnus <burnus@net-b.de>
PR debug/37132
* trans-decl.c (generate_namelist_decl, create_module_nml_decl):
New static functions.
(gfc_generate_module_vars, generate_local_vars): Call them.
(gfc_trans_use_stmts): Handle namelists for debug genertion.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205679
138bc75d-0d04-0410-961f-
82ee72b054a4
davidxl [Wed, 4 Dec 2013 19:46:36 +0000 (19:46 +0000)]
Update changed bit when constraint set changes
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205677
138bc75d-0d04-0410-961f-
82ee72b054a4
uros [Wed, 4 Dec 2013 19:33:55 +0000 (19:33 +0000)]
* ChangeLog: Fix whitespace.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205676
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Wed, 4 Dec 2013 18:00:28 +0000 (18:00 +0000)]
PR c++/59268
* pt.c (tsubst_copy_and_build): Handle POINTER_PLUS_EXPR.
* g++.dg/cpp0x/constexpr-template6.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205674
138bc75d-0d04-0410-961f-
82ee72b054a4
hjl [Wed, 4 Dec 2013 14:53:36 +0000 (14:53 +0000)]
Put a breakpoint on __asan_report_error for ASAN
* configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
-fsanitize=address.
* configure: Regenerated.
* gdbasan.in: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205669
138bc75d-0d04-0410-961f-
82ee72b054a4
clyon [Wed, 4 Dec 2013 11:34:39 +0000 (11:34 +0000)]
2013-12-04 Kugan Vivekanandarajah <kuganv@linaro.org>
* config/arm/bpapi-lib.h (TARGET_HAS_NO_HW_DIVIDE): Define for
architectures that do not have hardware divide instruction.
i.e. architectures that do not define __ARM_ARCH_EXT_IDIV__.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205666
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Wed, 4 Dec 2013 11:27:25 +0000 (11:27 +0000)]
* gcc-interface/decl.c (components_to_record): Add specific handling
for fields with zero size and no representation clause.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205665
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Wed, 4 Dec 2013 11:25:06 +0000 (11:25 +0000)]
PR rtl-optimization/58726
* combine.c (force_to_mode): Fix comment typo. Don't destructively
modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
* gcc.c-torture/execute/pr58726.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205664
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Wed, 4 Dec 2013 11:12:04 +0000 (11:12 +0000)]
PR target/59163
* config/i386/i386.c (ix86_legitimate_combined_insn): If for
!TARGET_AVX there is misaligned MEM operand with vector mode
and get_attr_ssememalign is 0, return false.
(ix86_expand_special_args_builtin): Add get_pointer_alignment
computed alignment and for non-temporal loads/stores also
at least GET_MODE_ALIGNMENT as MEM_ALIGN.
* config/i386/sse.md
(<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
<sse>_storeu<ssemodesuffix><avxsizesuffix>,
<sse2_avx_avx512f>_loaddqu<mode><mask_name>,
<sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
*vec_interleave_highv2df, *vec_interleave_lowv2df,
*vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
* config/i386/i386.md (ssememalign): New define_attr.
* g++.dg/torture/pr59163.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205663
138bc75d-0d04-0410-961f-
82ee72b054a4