platform/upstream/linaro-gcc.git
10 years ago * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
jakub [Fri, 22 Nov 2013 20:08:44 +0000 (20:08 +0000)]
* ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
* ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
(ipa_get_vector_of_formal_parm_types): ... this.  No longer static.
(ipa_modify_formal_parameters): Adjust caller.  Remove
synth_parm_prefix argument.  Use operator enum instead of bit fields.
Add assert for properly handling vector of references.  Handle
creating brand new parameters.
(ipa_modify_call_arguments): Use operator enum instead of bit
fields.
(ipa_combine_adjustments): Same.  Assert that IPA_PARM_OP_NEW is not
used.
(ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
New functions.
(ipa_dump_param_adjustments): Rename reduction to new_decl.
Use operator enum instead of bit fields.
* ipa-prop.h (enum ipa_parm_op): New.
(struct ipa_parm_adjustment): New field op.  Rename reduction
to new_decl, new_arg_prefix to arg_prefix and remove remove_param
and copy_param.
(ipa_modify_formal_parameters): Remove last argument.
(ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
ipa_get_adjustment_candidate): New prototypes.
* tree-sra.c (turn_representatives_into_adjustments): Use operator
enum.  Set arg_prefix.
(get_adjustment_for_base): Use operator enum.
(sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
ipa-prop.c.
(sra_ipa_modify_assign): Rename sra_ipa_modify_expr to
ipa_modify_expr.
(ipa_sra_modify_function_body): Same.  No longer static.
(sra_ipa_reset_debug_stmts): Use operator enum.
(modify_function): Do not pass prefix argument.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205284 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * ubsan.c (ubsan_source_location): Don't crash on
jakub [Fri, 22 Nov 2013 20:07:31 +0000 (20:07 +0000)]
* ubsan.c (ubsan_source_location): Don't crash on
unknown locations.
(ubsan_pass): Ignore clobber stmts.

* sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
* opts.c (common_handle_option): Add -fsanitize=return.
* flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
or it into SANITIZE_UNDEFINED.
c-family/
* c-ubsan.h (ubsan_instrument_return): New prototype.
* c-ubsan.c (ubsan_instrument_return): New function.
cp/
* cp-gimplify.c: Include target.h and c-family/c-ubsan.h.
(cp_ubsan_maybe_instrument_return): New function.
(cp_genericize): Call it if -fsanitize=return.
testsuite/
* g++.dg/ubsan/return-1.C: New test.
* g++.dg/ubsan/return-2.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205283 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
jakub [Fri, 22 Nov 2013 20:04:45 +0000 (20:04 +0000)]
* sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
* asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
Don't instrument accesses to VAR_DECLs which are known to fit
into their bounds and the vars are known to have shadow bytes
indicating allowed access.
(asan_dynamic_init_call): New function.
(asan_add_global): If vnode->dynamically_initialized,
set __has_dynamic_init to 1 instead of 0.
(initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
* asan.h (asan_dynamic_init_call): New prototype.
* cgraph.h (varpool_node): Add dynamically_initialized bitfield.
cp/
* decl2.c: Include asan.h.
(one_static_initialization_or_destruction): If -fsanitize=address,
init is non-NULL and guard is NULL, set
vnode->dynamically_initialized.
(do_static_initialization_or_destruction): Call
__asan_{before,after}_dynamic_init around the static initialization.
testsuite/
* c-c++-common/asan/no-redundant-instrumentation-1.c: Tweak to avoid
optimizing away some __asan_report* calls.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205282 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR rtl-optimization/10474
law [Fri, 22 Nov 2013 19:37:00 +0000 (19:37 +0000)]
PR rtl-optimization/10474
* ira.c (interesting_dest_for_shprep_1): New function.
(interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
also check parallels.

testsuite/
* gcc.dg/pr10474.c: Also test ppc64.
* gcc.dg/ira-shrinkwrap-prep-1.c: Also tes ppc64, changed all ints
        to longs.
* gcc.dg/ira-shrinkwrap-prep-2.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205281 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
law [Fri, 22 Nov 2013 18:52:23 +0000 (18:52 +0000)]
* tree-ssa-threadedge.c (record_temporary_equivalence): Handle
NULL for RHS, which we used to invalidate equivalences.
(record_temporary_equivalences_from_phis): New bitmap arguments
and a boolean indicating if we have passed a backedge.  If we
have passed a backedge, then set the appropriate bit in the
bitmaps for the SRC & DEST of PHIs creating equivalences.
(invalidate_equivalences, dummy_simplify): New functions.
(cond_arg_set_in_b): Remove.
(record_temporary_equivalences_from_stmts_at_dest): New bitmap
arguments and a boolean indicating if we have passed a backedge.
If we have passed a backedge, then perform invalidations as
needed.
(thread_around_empty_blocks): If we have seen a backedge, then
use the dummy simplify routine.
(thread_through_normal_block): Likewise.  Pass bitmaps and
backedge status to children.  Do not pessimize so much when
traversing backedges in the CFG.
(thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
If we have seen a backedge, then use the dummy simplify routine.
Do not pessimize so much when traversing backedges.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205279 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-22 Michael Meissner <meissner@linux.vnet.ibm.com>
meissner [Fri, 22 Nov 2013 17:24:32 +0000 (17:24 +0000)]
2013-11-22  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/59054
* gcc.target/powerpc/direct-move.h (VSX_REG_ATTR): Allow test to
specify an appropriate register class for VSX operations.
(load_vsx): Use it.
(load_gpr_to_vsx): Likewise.
(load_vsx_to_gpr): Likewise.
* gcc.target/powerpc/direct-move-vint1.c: Use an appropriate
register class for VSX registers that the type can handle.  Remove
checks for explicit number of instructions generated, just check
if the instruction is generated.
* gcc.target/powerpc/direct-move-vint2.c: Likewise.
* gcc.target/powerpc/direct-move-float1.c: Likewise.
* gcc.target/powerpc/direct-move-float2.c: Likewise.
* gcc.target/powerpc/direct-move-double1.c: Likewise.
* gcc.target/powerpc/direct-move-double2.c: Likewise.
* gcc.target/powerpc/direct-move-long1.c: Likewise.
* gcc.target/powerpc/direct-move-long2.c: Likewise.

* gcc.target/powerpc/pr59054.c: Remove duplicate code.

* gcc.target/powerpc/bool3-av.c: Limit to 64-bit mode for now.
* gcc.target/powerpc/bool3-p7.c: Likewise.
* gcc.target/powerpc/bool3-p8.c: Likewise.

* gcc.target/powerpc/p8vector-ldst.c: Just check that the
appropriate instructions are generated, don't check the count.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205278 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR libstdc++/59247
redi [Fri, 22 Nov 2013 16:59:25 +0000 (16:59 +0000)]
PR libstdc++/59247
* include/bits/c++config (_GLIBCXX_INLINE_VERSION): Declare namespace
std::experimental::__7 as inline.
* include/bits/regex.h (_GLIBCXX_BEGIN_NAMESPACE_VERSION): Do not
enclose namespace __detail.
* include/bits/regex.tcc (_GLIBCXX_BEGIN_NAMESPACE_VERSION): Likewise.
* include/std/iomanip (_GLIBCXX_BEGIN_NAMESPACE_VERSION): Likewise.
* include/ext/pb_ds/tag_and_trait.hpp (detail): Fix comment.
* testsuite/ext/profile/mutex_extensions_neg.cc: Adjust line number.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205277 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * config/cris/cris.c (cris_atomic_align_for_mode): New function.
hp [Fri, 22 Nov 2013 16:39:37 +0000 (16:39 +0000)]
* config/cris/cris.c (cris_atomic_align_for_mode): New function.
(TARGET_ATOMIC_ALIGN_FOR_MODE): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205276 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoEnable AES, PCLMUL and RDRND for Silvermont
hjl [Fri, 22 Nov 2013 16:33:40 +0000 (16:33 +0000)]
Enable AES, PCLMUL and RDRND for Silvermont

gcc/

2013-11-22  Yuri Rumyantsev  <ysrumyan@gmail.com>

* config/i386/i386.c(processor_alias_table): Enable PTA_AES,
PTA_PCLMUL and PTA_RDRND for Silvermont.
* config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
for Silvermont.

* doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.

libgcc/

2013-11-22  Yuri Rumyantsev  <ysrumyan@gmail.com>

 * config/i386/cpuinfo.c (get_intel_cpu): Add Silvermont cases.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205275 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agocompiler: Fixes for middle-end changes.
ian [Fri, 22 Nov 2013 16:20:28 +0000 (16:20 +0000)]
compiler: Fixes for middle-end changes.

From Andrew MacLeod.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205274 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * hooks.h (hook_uint_mode_0): Add Prototype.
amacleod [Fri, 22 Nov 2013 16:19:21 +0000 (16:19 +0000)]
* hooks.h (hook_uint_mode_0): Add Prototype.
* hooks.c (hook_uint_mode_0): New default function.
* target.def (atomic_align_for_mode): New target hook.
* tree.c (build_atomic_base): Add alignment override parameter.
(build_common_tree_nodes): Use atomic alignment override.
* doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
* doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205273 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * gimple.h: Remove all includes.
amacleod [Fri, 22 Nov 2013 15:58:51 +0000 (15:58 +0000)]
* gimple.h: Remove all includes.
(recalculate_side_effects): Move prototype to gimplify.h.
* Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
* gengtype.c (open_base_files): Add gimple.h include list.
* gimplify.h (recalculate_side_effects): Relocate prototype here.
* gimple.c: Adjust include list.
(recalculate_side_effects): Move to gimplify.c.
* gimplify.c: Adjust include list.
(recalculate_side_effects): Relocate from gimple.c.
* alias.c: Add required include files removed from gimple.h.
* asan.c: Likewise.
* builtins.c: Likewise.
* calls.c: Likewise.
* cfgexpand.c: Likewise.
* cfgloop.c: Likewise.
* cfgloopmanip.c: Likewise.
* cgraphbuild.c: Likewise.
* cgraph.c: Likewise.
* cgraphclones.c: Likewise.
* cgraphunit.c: Likewise.
* cilk-common.c: Likewise.
* data-streamer.c: Likewise.
* data-streamer-in.c: Likewise.
* data-streamer-out.c: Likewise.
* dse.c: Likewise.
* dwarf2out.c: Likewise.
* emit-rtl.c: Likewise.
* except.c: Likewise.
* expr.c: Likewise.
* fold-const.c: Likewise.
* function.c: Likewise.
* gimple-builder.c: Likewise.
* gimple-expr.c: Likewise.
* gimple-fold.c: Likewise.
* gimple-iterator.c: Likewise.
* gimple-low.c: Likewise.
* gimple-pretty-print.c: Likewise.
* gimple-ssa-isolate-paths.c: Likewise.
* gimple-ssa-strength-reduction.c: Likewise.
* gimple-streamer-in.c: Likewise.
* gimple-streamer-out.c: Likewise.
* gimple-walk.c: Likewise.
* gimplify-me.c: Likewise.
* graphite-blocking.c: Likewise.
* graphite.c: Likewise.
* graphite-clast-to-gimple.c: Likewise.
* graphite-dependences.c: Likewise.
* graphite-interchange.c: Likewise.
* graphite-optimize-isl.c: Likewise.
* graphite-poly.c: Likewise.
* graphite-scop-detection.c: Likewise.
* graphite-sese-to-poly.c: Likewise.
* internal-fn.c: Likewise.
* ipa.c: Likewise.
* ipa-cp.c: Likewise.
* ipa-devirt.c: Likewise.
* ipa-inline-analysis.c: Likewise.
* ipa-inline.c: Likewise.
* ipa-profile.c: Likewise.
* ipa-prop.c: Likewise.
* ipa-pure-const.c: Likewise.
* ipa-reference.c: Likewise.
* ipa-split.c: Likewise.
* ipa-utils.c: Likewise.
* langhooks.c: Likewise.
* lto-cgraph.c: Likewise.
* lto-compress.c: Likewise.
* lto-opts.c: Likewise.
* lto-section-in.c: Likewise.
* lto-section-out.c: Likewise.
* lto-streamer.c: Likewise.
* lto-streamer-in.c: Likewise.
* lto-streamer-out.c: Likewise.
* omp-low.c: Likewise.
* opts-global.c: Likewise.
* passes.c: Likewise.
* predict.c: Likewise.
* profile.c: Likewise.
* sese.c: Likewise.
* stmt.c: Likewise.
* stor-layout.c: Likewise.
* symtab.c: Likewise.
* targhooks.c: Likewise.
* toplev.c: Likewise.
* tracer.c: Likewise.
* trans-mem.c: Likewise.
* tree-affine.c: Likewise.
* tree.c: Likewise.
* tree-call-cdce.c: Likewise.
* tree-cfg.c: Likewise.
* tree-cfgcleanup.c: Likewise.
* tree-chrec.c: Likewise.
* tree-complex.c: Likewise.
* tree-data-ref.c: Likewise.
* tree-dfa.c: Likewise.
* tree-eh.c: Likewise.
* tree-emutls.c: Likewise.
* tree-if-conv.c: Likewise.
* tree-inline.c: Likewise.
* tree-into-ssa.c: Likewise.
* tree-loop-distribution.c: Likewise.
* tree-nested.c: Likewise.
* tree-nrv.c: Likewise.
* tree-object-size.c: Likewise.
* tree-outof-ssa.c: Likewise.
* tree-parloops.c: Likewise.
* tree-phinodes.c: Likewise.
* tree-predcom.c: Likewise.
* tree-pretty-print.c: Likewise.
* tree-profile.c: Likewise.
* tree-scalar-evolution.c: Likewise.
* tree-sra.c: Likewise.
* tree-ssa-address.c: Likewise.
* tree-ssa-alias.c: Likewise.
* tree-ssa.c: Likewise.
* tree-ssa-ccp.c: Likewise.
* tree-ssa-coalesce.c: Likewise.
* tree-ssa-copy.c: Likewise.
* tree-ssa-copyrename.c: Likewise.
* tree-ssa-dce.c: Likewise.
* tree-ssa-dom.c: Likewise.
* tree-ssa-dse.c: Likewise.
* tree-ssa-forwprop.c: Likewise.
* tree-ssa-ifcombine.c: Likewise.
* tree-ssa-live.c: Likewise.
* tree-ssa-loop.c: Likewise.
* tree-ssa-loop-ch.c: Likewise.
* tree-ssa-loop-im.c: Likewise.
* tree-ssa-loop-ivcanon.c: Likewise.
* tree-ssa-loop-ivopts.c: Likewise.
* tree-ssa-loop-manip.c: Likewise.
* tree-ssa-loop-niter.c: Likewise.
* tree-ssa-loop-prefetch.c: Likewise.
* tree-ssa-loop-unswitch.c: Likewise.
* tree-ssa-math-opts.c: Likewise.
* tree-ssanames.c: Likewise.
* tree-ssa-operands.c: Likewise.
* tree-ssa-phiopt.c: Likewise.
* tree-ssa-phiprop.c: Likewise.
* tree-ssa-pre.c: Likewise.
* tree-ssa-propagate.c: Likewise.
* tree-ssa-reassoc.c: Likewise.
* tree-ssa-sccvn.c: Likewise.
* tree-ssa-sink.c: Likewise.
* tree-ssa-strlen.c: Likewise.
* tree-ssa-structalias.c: Likewise.
* tree-ssa-tail-merge.c: Likewise.
* tree-ssa-ter.c: Likewise.
* tree-ssa-threadedge.c: Likewise.
* tree-ssa-threadupdate.c: Likewise.
* tree-ssa-uncprop.c: Likewise.
* tree-ssa-uninit.c: Likewise.
* tree-stdarg.c: Likewise.
* tree-streamer.c: Likewise.
* tree-streamer-in.c: Likewise.
* tree-streamer-out.c: Likewise.
* tree-switch-conversion.c: Likewise.
* tree-tailcall.c: Likewise.
* tree-vect-data-refs.c: Likewise.
* tree-vect-generic.c: Likewise.
* tree-vect-loop.c: Likewise.
* tree-vect-loop-manip.c: Likewise.
* tree-vectorizer.c: Likewise.
* tree-vect-patterns.c: Likewise.
* tree-vect-slp.c: Likewise.
* tree-vect-stmts.c: Likewise.
* tree-vrp.c: Likewise.
* tsan.c: Likewise.
* ubsan.c: Likewise.
* value-prof.c: Likewise.
* varpool.c: Likewise.
* var-tracking.c: Likewise.
* vtable-verify.c: Likewise.

* ada/gcc-interface/trans.c: Add required include files from gimple.h.

* c/c-typeck.c: Add required include files from gimple.h.

* c-family/c-common.c: Add required include files from gimple.h.
* c-family/c-gimplify.c: Likewise
* c-family/cilk.c: Likewise

* cp/class.c: Add required include files from gimple.h.
* cp/cp-gimplify.c: Likewise
* cp/decl2.c: Likewise
* cp/init.c: Likewise
* cp/optimize.c: Likewise
* cp/pt.c: Likewise
* cp/semantics.c: Likewise
* cp/tree.c: Likewise
* cp/typeck.c: Likewise
* cp/vtable-class-hierarchy.c: Likewise

* fortran/trans.c: Add required include files from gimple.h.
* fortran/trans-expr.c: Likewise
* fortran/trans-openmp.c: Likewise

* go/gofrontend/expressions.cc: Add required include files from
gimple.h.
* go/gofrontend/gogo-tree.cc: Likewise
* go/gofrontend/types.cc: Likewise
* go/go-gcc.cc: Likewise
* go/go-lang.c: Likewise

* java/java-gimplify.c: Add required include files from gimple.h.

* lto/lto.c: Add required include files from gimple.h.
* lto/lto-lang.c: Likewise
* lto/lto-object.c: Likewise
* lto/lto-partition.c: Likewise
* lto/lto-symtab.c: Likewise

* objc/objc-act.c: Add required include files from gimple.h.

* config/darwin.c: Add required include files removed from gimple.h.
* config/aarch64/aarch64-builtins.c: Likewise.
* config/aarch64/aarch64.c: Likewise.
* config/alpha/alpha.c: Likewise.
* config/i386/i386.c: Likewise.
* config/i386/winnt.c: Likewise.
* config/ia64/ia64.c: Likewise.
* config/m32c/m32c.c: Likewise.
* config/mep/mep.c: Likewise.
* config/mips/mips.c: Likewise.
* config/rs6000/rs6000.c: Likewise.
* config/s390/s390.c: Likewise.
* config/sh/sh.c: Likewise.
* config/sparc/sparc.c: Likewise.
* config/spu/spu.c: Likewise.
* config/stormy16/stormy16.c: Likewise.
* config/tilegx/tilegx.c: Likewise.
* config/tilepro/tilepro.c: Likewise.
* config/xtensa/xtensa.c: Likewise.

* testsuite/gcc.dg/plugin/finish_unit_plugin.c: Add required include
files removed from gimple.h.
* testsuite/gcc.dg/plugin/ggcplug.c: Likewise.
* testsuite/gcc.dg/plugin/one_time_plugin.c: Likewise.
* testsuite/gcc.dg/plugin/selfassign.c: Likewise.
* testsuite/gcc.dg/plugin/start_unit_plugin.c: Likewise.
* testsuite/g++.dg/plugin/selfassign.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205272 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR target/59216
rearnsha [Fri, 22 Nov 2013 15:43:11 +0000 (15:43 +0000)]
PR target/59216

gcc/
* arm.md (negdi_extendsidi): Fix invalid split.

gcc/testsuite/
* gcc.target/arm/negdi-4.c: Delete invalid test.
* gcc.dg/torture/pr59216.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205271 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago[AArch64] vmov_n changes
jgreenhalgh [Fri, 22 Nov 2013 15:39:45 +0000 (15:39 +0000)]
[AArch64] vmov_n changes

gcc/
* config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
(vmov_n_f64): Likewise.
(vmov_n_p8): Likewise.
(vmov_n_p16): Likewise.
(vmov_n_s8): Likewise.
(vmov_n_s16): Likewise.
(vmov_n_s32): Likewise.
(vmov_n_s64): Likewise.
(vmov_n_u8): Likewise.
(vmov_n_u16): Likewise.
(vmov_n_u32): Likewise.
(vmov_n_u64): Likewise.
(vmovq_n_f32): Likewise.
(vmovq_n_f64): Likewise.
(vmovq_n_p8): Likewise.
(vmovq_n_p16): Likewise.
(vmovq_n_s8): Likewise.
(vmovq_n_s16): Likewise.
(vmovq_n_s32): Likewise.
(vmovq_n_s64): Likewise.
(vmovq_n_u8): Likewise.
(vmovq_n_u16): Likewise.
(vmovq_n_u32): Likewise.
(vmovq_n_u64): Likewise.

gcc/testsuite/
* gcc.target/aarch64/vmov_n_1.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205270 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
belagod [Fri, 22 Nov 2013 15:34:36 +0000 (15:34 +0000)]
2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>

gcc/
* config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
(reduc_<sur>plus_<mode>): Factorize V2DI into this.
(reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
and also change to float UNSPEC.
(reduc_maxmin_uns>_<mode>): Remove V2DI.
* config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
        vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
result access for big-endian.
        (__LANE0): New macro used to fix up lane access of 'across-lanes'
         intrinsics for big-endian.
* config/aarch64/iterators.md (VDQV): Add V2DI.
(VDQV_S): New.
(vp): New mode attribute.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205269 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
belagod [Fri, 22 Nov 2013 15:31:57 +0000 (15:31 +0000)]
2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>

gcc/
* config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for big-endian.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205268 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
belagod [Fri, 22 Nov 2013 15:29:19 +0000 (15:29 +0000)]
2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>

* config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
for big-endian element order.
(aarch64_simd_vec_setv2di): Likewise.
(*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
*aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
(vec_extract): Expand using aarch64_get_lane.
* config/aarch64/aarch64.h (ENDIAN_LANE_N): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205267 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
belagod [Fri, 22 Nov 2013 15:27:23 +0000 (15:27 +0000)]
2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>

gcc/
* config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
and stores to be ABI compliant.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205266 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoRemove macros that implicitly use input_location
dmalcolm [Fri, 22 Nov 2013 14:18:13 +0000 (14:18 +0000)]
Remove macros that implicitly use input_location

gcc/
* input.h (input_line): Remove.
(input_filename): Likewise.
(in_system_header): Likewise.
* tree.h (EXPR_LOC_OR_HERE): Remove.
* config/bfin/bfin.c (output_file_start): Remove use of
input_filename macro.
* builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
* gimplify.c (internal_get_tmp_var): Likewise.
EXPR_LOC_OR_HERE macro.
(shortcut_cond_expr): Likewise.
* tree-diagnostic.c (diagnostic_report_current_function): Remove
use of input_filename macro.
* tree.c (get_file_function_name): Likewise.

gcc/ada
* gcc-interface/utils2.c (build_call_raise): Remove use of
input_line macro.
(build_call_raise_range): Likewise.
(build_call_raise_column): Likewise.

gcc/c-family
* c-common.c (unsafe_conversion_p): Remove use of
EXPR_LOC_OR_HERE macro.
(conversion_warning): Likewise.
(warnings_for_convert_and_check): Likewise.
(warn_for_collisions_1): Likewise.
(shorten_compare): Likewise, and remove use of in_system_header
macro, using the location from the former.
* c-lex.c (dump_one_header): Remove use of input_filename macro.
(cb_def_pragma): Remove use of in_system_header macro.
(lex_string): Likewise.
* c-pragma.c (handle_pragma_float_const_decimal64): Likewise.

gcc/c
* c-decl.c (define_label, shadow_tag_warned)
(check_bitfield_type_and_width, grokdeclarator, grokparms,
store_parm_decls_newstyle, store_parm_decls_oldstyle)
(declspecs_add_type): Remove use of in_system_header macro.
* c-parser.c (c_parser_unary_expression): Likewise.
* c-typeck.c (store_init_value, process_init_element)
(c_start_case): Likewise.

* c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE
macro.

* c-parser.c (c_parser_set_source_position_from_token): Remove
reference to in_system_header from comment.

gcc/cp
* call.c (build_integral_nontype_arg_conv): Remove use of
EXPR_LOC_OR_HERE macro.
(convert_like_real): Likewise.
(convert_arg_to_ellipsis): Likewise.
(build_cxx_call): Likewise.
(perform_implicit_conversion_flags): Likewise.
(initialize_reference): Likewise.
* cvt.c (cp_convert_to_pointer): Likewise.
(convert_to_reference): Likewise.
(ocp_convert): Likewise.
(convert_to_void): Likewise.
* decl.c (pop_label): Update comment.
(pop_switch): Remove use of EXPR_LOC_OR_HERE macro.
(check_tag_decl): Remove use of in_system_header macro.
(make_rtl_for_nonlocal_decl): Remove use of input_filename
macro.
(compute_array_index_type): Remove use of in_system_header
macro.
(grokdeclarator): Likewise.
* error.c (dump_global_iord): Remove use of input_filename
macro.
(location_of): Remove use of EXPR_LOC_OR_HERE macro.
(maybe_warn_cpp0x): Remove use of in_system_header macro.
* init.c (build_new_1): Remove use of EXPR_LOC_OR_HERE macro.
* lex.c (handle_pragma_interface): Remove use of input_filename
macro.
(handle_pragma_implementation): Likewise.
(cxx_make_type): Likewise.
(in_main_input_context): Likewise.
* name-lookup.c (push_binding_level): Remove use of
input_line macro.
(leave_scope): Likewise.
(resume_scope): Likewise.
* parser.c (cp_parser_unqualified_id): Remove use of
in_system_header macro.
(cp_parser_cast_expression): Likewise.
(cp_parser_declaration_seq_opt): Likewise.
(cp_parser_enumerator_list): Likewise.
(cp_parser_parameter_declaration_clause): Likewise.
(cp_parser_exception_specification_opt): Likewise.
* pt.c (unify_arg_conversion): Remove use of EXPR_LOC_OR_HERE
macro.
(convert_nontype_argument): Likewise.
(push_tinst_level): Remove use of in_system_header macro.
(tsubst_copy_and_build): Remove use of EXPR_LOC_OR_HERE
macros.
(do_decl_instantiation): Remove use of in_system_header macro.
(do_type_instantiation): Likewise.
* semantics.c (finish_call_expr): Remove use of EXPR_LOC_OR_HERE
macro.
(begin_class_definition): Remove use of input_filename macro.
(cxx_eval_call_expression): Remove use of EXPR_LOC_OR_HERE
macro.
(cxx_eval_constant_expression): Likewise.
(potential_constant_expression_1): Likewise.
* typeck.c (decay_conversion): Likewise.
(rationalize_conditional_expr): Likewise.
(build_x_compound_expr_from_list): Likewise.
(convert_for_assignment): Likewise.
* typeck2.c (check_narrowing): Likewise.

gcc/fortran
* trans.c (trans_runtime_error_vararg): Remove use of input_line
macro.

gcc/java
* class.c (maybe_layout_super_class): Update comment.
* decl.c (java_add_stmt): Remove use of input_filename macro.
* jcf-parse.c (set_source_filename): Remove use of
input_filename macro.
(parse_class_file): Remove use of input_line and input_filename
macros.
(java_parse_file): Remove use of input_filename macro.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205262 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoFix formatting of changelog entry.
rsandifo [Fri, 22 Nov 2013 13:59:55 +0000 (13:59 +0000)]
Fix formatting of changelog entry.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205261 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-22 zadeck@naturalbridge.com
zadeck [Fri, 22 Nov 2013 13:55:53 +0000 (13:55 +0000)]
2013-11-22  zadeck@naturalbridge.com
* store-layout.c
(place-field): Fix hwi test and accessor mismatch.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205260 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
jakub [Fri, 22 Nov 2013 13:22:51 +0000 (13:22 +0000)]
* expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
(same sized) elements even if the type of the CONSTRUCTOR has
vector mode and target is a REG.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205259 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-22 Jonathan Wakely <jwakely.gcc@gmail.com>
redi [Fri, 22 Nov 2013 13:18:42 +0000 (13:18 +0000)]
2013-11-22  Jonathan Wakely  <jwakely.gcc@gmail.com>

* acinclude.m4 (libtool_VERSION): Bump.
* configure: Regenerate.
* doc/xml/manual/abi.xml: Update version information.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205258 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-22 Richard Biener <rguenther@suse.de>
rguenth [Fri, 22 Nov 2013 13:17:41 +0000 (13:17 +0000)]
2013-11-22  Richard Biener  <rguenther@suse.de>

Revert
2013-11-21  Richard Biener  <rguenther@suse.de>

* tree-ssa-loop-ch.c (copy_loop_headers): Decrement
nb_iterations_upper_bound by one.

        * gcc.dg/torture/20131122-0.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205256 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoEnable PTA_POPCNT for Silvermont
hjl [Fri, 22 Nov 2013 12:57:14 +0000 (12:57 +0000)]
Enable PTA_POPCNT for Silvermont

* config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
for Silvermont.

* doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
core-avx-i, core-avx2 and slm.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205255 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoOnly use visibility if supported
ro [Fri, 22 Nov 2013 11:44:56 +0000 (11:44 +0000)]
Only use visibility if supported

* configure.ac (libcilkrts_cv_have_attribute_visibility): Check
for __attribute__((visibility)).
* configure: Regenerate.
* include/cilk/common.h (CILK_EXPORT, CILK_EXPORT_DATA): Only use
__attribute__((visibility)) if HAVE_ATTRIBUTE_VISIBILITY.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205254 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoEnable libcilkrts multilib build on Solaris
ro [Fri, 22 Nov 2013 11:41:48 +0000 (11:41 +0000)]
Enable libcilkrts multilib build on Solaris

* configure.ac (AC_PROG_CXX): Move after AC_PROG_CC.
* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205253 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
ebotcazou [Fri, 22 Nov 2013 11:22:51 +0000 (11:22 +0000)]
* print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205251 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-22 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Fri, 22 Nov 2013 10:19:46 +0000 (10:19 +0000)]
2013-11-22  Paolo Carlini  <paolo.carlini@oracle.com>

* testsuite/ext/random/hypergeometric_distribution/operators/
values.cc: Fix further thinkos.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205249 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-22 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Fri, 22 Nov 2013 10:08:39 +0000 (10:08 +0000)]
2013-11-22  Paolo Carlini  <paolo.carlini@oracle.com>

* testsuite/ext/random/hypergeometric_distribution/operators/
values.cc: Fix thinkos.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205248 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agogcc/
rsandifo [Fri, 22 Nov 2013 08:44:31 +0000 (08:44 +0000)]
gcc/
* config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
(stzx_24_<mode>): Likewise mra_operand.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205247 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
law [Fri, 22 Nov 2013 07:48:21 +0000 (07:48 +0000)]
* tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
(thread_block_1): Do not cancel jump threads which go from
inside a loop, through the header, then back inside the loop.
(bb_ends_with_multiway_branch): New function.
(thread_through_all_blocks): Handle threading cases which start
in a loop through the loop header to a point in the loop.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205246 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * tree-ssa-threadedge.c (thread_across_edge): Mark the start of
law [Fri, 22 Nov 2013 07:36:12 +0000 (07:36 +0000)]
    * tree-ssa-threadedge.c (thread_across_edge): Mark the start of
        the jump thread path properly.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205245 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoadd auto_vec
tbsaunde [Fri, 22 Nov 2013 05:45:37 +0000 (05:45 +0000)]
add auto_vec

2013-11-22  Trevor Saunders  <tsaunders@mozilla.com>

gcc/
* vec.h (auto_vec): New class.
* cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
appropriate instead of vec for local variables.

cp/
* parser.c, semantics.c: Change some local variables from vec to
auto_vec or stack_vec.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205244 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-21 Teresa Johnson <tejohnson@google.com>
tejohnson [Fri, 22 Nov 2013 04:16:47 +0000 (04:16 +0000)]
2013-11-21  Teresa Johnson  <tejohnson@google.com>

PR target/59233
* cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
not understood by old_insns_match_p.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205243 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
wschmidt [Fri, 22 Nov 2013 03:27:23 +0000 (03:27 +0000)]
2013-11-21  Bill Schmidt  <wschmidt@vnet.ibm.com>

* config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
little endian change.
(vec_pack_sfix_trunc_v2df): Likewise.
(vec_pack_ufix_trunc_v2df): Likewise.
* config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
double checking of endianness.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205241 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * tree-vect-generic.c (optimize_vector_constructor): New function.
jakub [Fri, 22 Nov 2013 00:41:38 +0000 (00:41 +0000)]
* tree-vect-generic.c (optimize_vector_constructor): New function.
(expand_vector_operations_1): Call it.

* gcc.dg/vect/vect-124.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205240 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoDaily bump.
gccadmin [Fri, 22 Nov 2013 00:17:08 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205239 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * config/i386/i386.c (ix86_expand_special_args_builtin): Use
uros [Thu, 21 Nov 2013 23:36:31 +0000 (23:36 +0000)]
* config/i386/i386.c (ix86_expand_special_args_builtin): Use
ix86_zero_extend_to_Pmode where appropriate.
(ix86_expand_builtin): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205236 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoAdd minimal line tables at -g1.
ccoutant [Thu, 21 Nov 2013 23:08:27 +0000 (23:08 +0000)]
Add minimal line tables at -g1.

2013-11-21  Cary Coutant  <ccoutant@google.com>

gcc/
* dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
(add_linkage_name): Don't add linkage name for -g1.
(decls_for_scope): Process subblocks for -g1.
(dwarf2out_source_line): Output line tables for -g1.
(dwarf2out_finish): Likewise.
* tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
unused scopes for -g1.
* opts.c (common_handle_option): Handle -g same as -g2.
* doc/invoke.texi: Update description for -g1.

gcc/testsuite/
* gcc.dg/debug/dwarf2/mlt1.c: New test.
* gcc.dg/debug/dwarf2/mlt2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205235 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * doc/extend.texi: Document htm builtins.
bergner [Thu, 21 Nov 2013 21:19:35 +0000 (21:19 +0000)]
* doc/extend.texi: Document htm builtins.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205233 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR tree-optimization/59221
law [Thu, 21 Nov 2013 19:45:16 +0000 (19:45 +0000)]
PR tree-optimization/59221
* tree-ssa-threadedge.c (thread_across_edge): Properly manage
temporary equivalences when threading through joiner blocks.

PR tree-optimization/59221
* gcc.c-torture/execute/pr59221.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205229 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR rtl-optimization/55950
jsm28 [Thu, 21 Nov 2013 16:20:28 +0000 (16:20 +0000)]
PR rtl-optimization/55950
* real.c (real_sqrt): Remove function.
* real.h (real_sqrt): Remove prototype.
* simplify-rtx.c (simplify_const_unary_operation): Do not fold
SQRT using real_sqrt.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205223 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-21 Richard Biener <rguenther@suse.de>
rguenth [Thu, 21 Nov 2013 14:09:15 +0000 (14:09 +0000)]
2013-11-21  Richard Biener  <rguenther@suse.de>

PR tree-optimization/59058
* tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
* tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
* tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
(LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
(NITERS_KNOWN_P): Fold into ...
(LOOP_VINFO_NITERS_KNOWN_P): ... this.
(LOOP_VINFO_PEELING_FOR_NITER): Add.
* tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
(vect_do_peeling_for_alignment): Re-use precomputed niter
instead of re-emitting it.
* tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
* tree-vect-loop.c (vect_get_loop_niters): Use
number_of_latch_executions.
(new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
(vect_analyze_loop_form): Simplify.
(vect_analyze_loop_operations): Move epilogue peeling code ...
(vect_analyze_loop_2): ... here and adjust it to compute
LOOP_VINFO_PEELING_FOR_NITER.
(vect_estimate_min_profitable_iters): Use
LOOP_VINFO_PEELING_FOR_ALIGNMENT.
(vect_build_loop_niters): Emit on the preheader.
(vect_generate_tmps_on_preheader): Likewise.
(vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
of recomputing it.  Adjust.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205217 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-21 Richard Biener <rguenther@suse.de>
rguenth [Thu, 21 Nov 2013 13:57:40 +0000 (13:57 +0000)]
2013-11-21  Richard Biener  <rguenther@suse.de>

* tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
LOC_LINE): Remove wrappers and fix all users.
(struct _loop_vec_info): Remove loop_line_number member.
(LOOP_VINFO_LOC): Remove.
* tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
and LOC_LINE.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205216 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-21 Edward Smith-Rowland <3dw4rd@verizon.net>
emsr [Thu, 21 Nov 2013 12:30:37 +0000 (12:30 +0000)]
2013-11-21  Edward Smith-Rowland  <3dw4rd@verizon.net>

* include/experimental/string_view: Rep empty string with unit-length
static constexpr string. Uncomment _GLIBCXX_VISIBILITY. Enforce
invariant of no nullptr string pointer.
* include/experimental/string_view.tcc: Ditto.
* testsuite/experimental/string_view/cons/char/1.cc: data() for empty
string_view is no longer nullptr.
* testsuite/experimental/string_view/cons/wchar_t/1.cc: Ditto.
* testsuite/experimental/string_view/operations/data/char/1.cc: Ditto.
* testsuite/experimental/string_view/operations/data/wchar_t/1.cc:
Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205213 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-21 Edward Smith-Rowland <3dw4rd@verizon.net>
emsr [Thu, 21 Nov 2013 12:27:02 +0000 (12:27 +0000)]
2013-11-21  Edward Smith-Rowland  <3dw4rd@verizon.net>

Implement __gnu_cxx::hypergeometric_distribution.
* include/ext/random: Add hypergeometric_distribution.
* include/ext/random.tcc: Add hypergeometric_distribution.
* testsuite/util/testsuite_random.h (hypergeometric_pdf): New pdf
for the hypergeometric discreet distribution;
(lbincoef): New supporting function for binomial coefficients.
* testsuite/ext/random/hypergeometric_distribution/operators/
serialize.cc: New.
* testsuite/ext/random/hypergeometric_distribution/operators/
equal.cc: New.
* testsuite/ext/random/hypergeometric_distribution/operators/
inequal.cc: New.
* testsuite/ext/random/hypergeometric_distribution/operators/
values.cc: New.
* testsuite/ext/random/hypergeometric_distribution/cons/parms.cc: New.
* testsuite/ext/random/hypergeometric_distribution/cons/default.cc: New.
* testsuite/ext/random/hypergeometric_distribution/requirements/
explicit_instantiation/1.cc: New.
* testsuite/ext/random/hypergeometric_distribution/requirements/
typedefs.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205212 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-21 Richard Biener <rguenther@suse.de>
rguenth [Thu, 21 Nov 2013 11:53:20 +0000 (11:53 +0000)]
2013-11-21  Richard Biener  <rguenther@suse.de>

* tree-ssa-forwprop.c (simplify_vce): New function.
(ssa_forward_propagate_and_combine): Call it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205211 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR libfortran/59227
fxcoudert [Thu, 21 Nov 2013 11:37:07 +0000 (11:37 +0000)]
PR libfortran/59227
* gfortran.dg/erf_3.F90: XFAIL on spu-* and ia64-*-linux*.
Make more generic for other platforms.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205210 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoRemove wrong PR link
schwab [Thu, 21 Nov 2013 09:24:44 +0000 (09:24 +0000)]
Remove wrong PR link

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205201 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-21 Richard Biener <rguenther@suse.de>
rguenth [Thu, 21 Nov 2013 09:19:31 +0000 (09:19 +0000)]
2013-11-21  Richard Biener  <rguenther@suse.de>

* tree-vect-loop-manip.c (vect_build_loop_niters,
vect_generate_tmps_on_preheader): Move ...
* tree-vect-loop.c (vect_build_loop_niters,
vect_generate_tmps_on_preheader): ... here and simplify.
(vect_transform_loop): Call them here and pass down results
to consumers.
* tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
Get niter variables from caller.
(vect_do_peeling_for_alignment): Likewise.
* tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
(vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
Adjust prototypes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205199 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-21 Richard Biener <rguenther@suse.de>
rguenth [Thu, 21 Nov 2013 09:15:38 +0000 (09:15 +0000)]
2013-11-21  Richard Biener  <rguenther@suse.de>

* tree-ssa-loop-ch.c (copy_loop_headers): Decrement
nb_iterations_upper_bound by one.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205198 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-21 Richard Biener <rguenther@suse.de>
rguenth [Thu, 21 Nov 2013 09:15:05 +0000 (09:15 +0000)]
2013-11-21  Richard Biener  <rguenther@suse.de>

PR tree-optimization/59058
* tree-loop-distribution.c (struct partition_s): Add plus_one
member.
(build_size_arg_loc): Apply niter adjustment here.
(generate_memset_builtin): Adjust.
(generate_memcpy_builtin): Likewise.
(classify_partition): Do not use number_of_exit_cond_executions
but record whether niter needs to be adjusted.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205197 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
ebotcazou [Thu, 21 Nov 2013 09:12:43 +0000 (09:12 +0000)]
* tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
could throw.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205196 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR libfortran/59227
fxcoudert [Thu, 21 Nov 2013 08:45:00 +0000 (08:45 +0000)]
PR libfortran/59227
* intrinsics/erfc_scaled.c (erfc_scaled_r16): Don't define if
__float128 is not available.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205193 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago Fix ChangeLog entry.
olegendo [Thu, 21 Nov 2013 08:21:44 +0000 (08:21 +0000)]
Fix ChangeLog entry.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205192 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR target/53976
olegendo [Thu, 21 Nov 2013 08:19:38 +0000 (08:19 +0000)]
PR target/53976
* config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
* config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
* config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
* config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
sh_optimize_sett_clrt pass.o to extra_objs.

PR target/53976
* gcc.target/sh/pr53976-1.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205191 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoReword comments that mention ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros
dmalcolm [Thu, 21 Nov 2013 01:28:11 +0000 (01:28 +0000)]
Reword comments that mention ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros

gcc/
2013-11-20  David Malcolm  <dmalcolm@redhat.com>

* cfg.c (dump_edge_info): Remove redundant comment.
* cfgcleanup.c (outgoing_edges_match): Reword reference to
EXIT_BLOCK_PTR in comment.
(try_optimize_cfg): Likewise.
* cfgrtl.c (last_bb_in_partition): Likewise.
* cgraph.c (cgraph_node_cannot_return): Likewise.
* function.c (thread_prologue_and_epilogue_insns): Likewise.
* graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
* ipa-split.c (consider_split): Likewise.
* profile.c (find_spanning_tree): Likewise.
* sched-int.h (common_sched_info_def.add_block): Likewise.
* dominance.c (calc_dfs_tree_nonrec): Reword references in
comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
* tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
in comments to now removed ENTRY_BLOCK_PTR macro.
(tree_forwarder_block_p): Reword reference in comment to
EXIT_BLOCK_PTR.
* tree-inline.c (copy_cfg_body): Reword references in comments to
now removed ENTRY_BLOCK_PTR macro.
* tree-ssa-propagate.c (ssa_prop_init): Likewise.
* tree-scalar-evolution.h ( block_before_loop): Likewise.  Add
a comma to the comment to clarify the meaning.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205182 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoFixup whitespace.
mrs [Thu, 21 Nov 2013 00:34:13 +0000 (00:34 +0000)]
Fixup whitespace.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205175 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoDaily bump.
gccadmin [Thu, 21 Nov 2013 00:17:03 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205172 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * gimplify.h (gimplify_hasher : typed_free_remove, struct gimplify_ctx):
amacleod [Thu, 21 Nov 2013 00:06:23 +0000 (00:06 +0000)]
* gimplify.h (gimplify_hasher : typed_free_remove, struct gimplify_ctx):
Move to gimplify.c.
(free_gimplify_stack): Add prototype.
* gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
(struct gimplify_ctx): Relocate here.
(gimplify_ctxp): Make static.
(ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New.  Manage a
list of struct gimplify_ctx.
(push_gimplify_context): Add default parameters and allocate a struct
from the pool.
(pop_gimplify_context): Free a struct back to the pool.
(gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
use a local 'struct gimplify_ctx'.
* cgraphunit.c (expand_all_functions): call free_gimplify_stack.
* gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
Likewise.
* omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
lower_omp_ordered, lower_omp_critical, lower_omp_for,
create_task_copyfn, lower_omp_taskreg, lower_omp_target,
lower_omp_teams, execute_lower_omp): Likewise.
* gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
* tree-inline.c (optimize_inline_calls): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205168 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR libfortran/49024
fxcoudert [Wed, 20 Nov 2013 22:18:55 +0000 (22:18 +0000)]
PR libfortran/49024

* intrinsics/erfc_scaled.c (erfc_scaled_r16): New function.
* intrinsics/erfc_scaled_inc.c: Do not provide quadruple
precision variant.

* gfortran.dg/erf_3.F90: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205151 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agogcc:
wschmidt [Wed, 20 Nov 2013 21:46:18 +0000 (21:46 +0000)]
gcc:

2013-11-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
(vsx_extract_<mode>): Likewise.
(*vsx_extract_<mode>_one_le): New LE variant on
*vsx_extract_<mode>_zero.
(vsx_extract_v4sf): Adjust for little endian.

gcc/testsuite:

2013-11-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* gcc.target/powerpc/pr48258-1.c: Skip for little endian.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205146 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR libstdc++/49204
redi [Wed, 20 Nov 2013 20:59:19 +0000 (20:59 +0000)]
PR libstdc++/49204
* include/std/future (__future_base::_State_base): Rename to
__future_base::_State_baseV2.
(__future_base::_State_baseV2::~_State_baseV2): Define as defaulted.
(__future_base::_State_baseV2::_M_run_deferred): Rename to
_M_complete_async.
(__future_base::_State_baseV2::_M_has_deferred): Add new virtual.
(__future_base::_State_baseV2::wait_for): Call _M_has_deferred() to
test for a deferred function, or call _M_complete_async() to join an
async thread that has made the shared state ready.
(__future_base::_State_baseV2::wait_until): Likewise.
(__future_base::_Async_state_common): Rename to _Async_state_commonV2.
(__future_base::_Async_state_commonV2::_M_run_deferred): Rename to
_M_complete_async.
* src/c++11/compatibility-thread-c++0x.cc (__future_base::_State_base):
Export old definition.
(__future_base::_Async_state_common): Likewise.
* src/c++11/future.cc (__future_base::_State_base::~_State_base):
Remove.
* doc/xml/manual/status_cxx2011.xml: Update status.
* testsuite/30_threads/async/async.cc: Test future_status::timeout
and future_status::ready.
* testsuite/30_threads/async/sync.cc: Test future_status::deferred.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205144 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Wed, 20 Nov 2013 20:32:57 +0000 (20:32 +0000)]
2013-11-20  Vladimir Makarov  <vmakarov@redhat.com>

PR rtl-optimization/59133
* lra.c (expand_reg_data): Add new argument.  Set up ALL_REGS for
new pseudos.
(lra_create_new_reg_with_unique_value): Pass new argument value.
(lra_emit_add, lra_emit_move): Ditto.
* lra-constraints.c (in_class_p): Add check for move for a new
insn.
(change_class): Rename to lra_change_class.  Move to lra-int.h.
(get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
change_class.
(process_addr_reg, process_addr): Ditto.
(curr_insn_transform): Ditto.  Add check on old pseudo for
optional reload.
* lra-int.h (lra_get_regno_hard_regno): Move below.
(lra_change_class): Renamed change_class from lra.c.

2013-11-20  Vladimir Makarov  <vmakarov@redhat.com>

PR rtl-optimization/59133
* gcc.target/i386/pr59133.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205141 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agogdbhooks.py: fix prettyprinting of NULL vec<>*
dmalcolm [Wed, 20 Nov 2013 20:00:33 +0000 (20:00 +0000)]
gdbhooks.py: fix prettyprinting of NULL vec<>*

* gdbhooks.py (VecPrinter.children): Don't attempt to iterate
the children of a NULL pointer.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205139 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoNormalize whitespace.
mrs [Wed, 20 Nov 2013 18:42:08 +0000 (18:42 +0000)]
Normalize whitespace.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205138 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * lra.c (lra): Set lra_in_progress before check_rtl call.
law [Wed, 20 Nov 2013 18:17:49 +0000 (18:17 +0000)]
* lra.c (lra): Set lra_in_progress before check_rtl call.
     * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
     adding clobber regs when LRA is running

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205136 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoFixup whitespace.
mrs [Wed, 20 Nov 2013 18:04:41 +0000 (18:04 +0000)]
Fixup whitespace.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205134 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoFixup whitespace.
mrs [Wed, 20 Nov 2013 18:01:12 +0000 (18:01 +0000)]
Fixup whitespace.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205133 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
macro [Wed, 20 Nov 2013 17:18:12 +0000 (17:18 +0000)]
* config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
restriction for ISA_MIPS32R2.
(ISA_HAS_LXC1_SXC1): New macro.
(ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
(ISA_HAS_NMADD4_NMSUB4): Likewise.
(ISA_HAS_FP_RECIP_RSQRT): Likewise.
(ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
* config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
(*<ANYF:storex>_<P:mode>): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205130 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
macro [Wed, 20 Nov 2013 17:16:48 +0000 (17:16 +0000)]
* config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
* config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
* config/mips/mips.md (recip_condition): Remove mode attribute.
(div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
<recip_condition>.
(*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205129 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR target/59207
ebotcazou [Wed, 20 Nov 2013 17:02:36 +0000 (17:02 +0000)]
PR target/59207
* config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
Make sure neg2_ovf is set before being used.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205127 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
bstarynk [Wed, 20 Nov 2013 16:42:04 +0000 (16:42 +0000)]
2013-11-20  Basile Starynkevitch  <basile@starynkevitch.net>

        * plugin.def: Add comment about register_callback and
        invoke_plugin_callbacks_full.

        * plugin.c (register_callback, invoke_plugin_callbacks_full):
        Handle PLUGIN_INCLUDE_FILE event.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205125 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
uweigand [Wed, 20 Nov 2013 16:22:57 +0000 (16:22 +0000)]
* config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
allow subregs of TDmode in FPRs of smaller size in little-endian.
(rs6000_split_multireg_move): When splitting an access to TDmode
in FPRs, do not use simplify_gen_subreg.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205123 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR middle-end/21718
jsm28 [Wed, 20 Nov 2013 14:34:49 +0000 (14:34 +0000)]
PR middle-end/21718
* real.c: Remove comment about decimal string conversion and
rounding errors.
(real_from_string): Use MPFR to convert nonzero decimal constant
to REAL_VALUE_TYPE.

testsuite:
* gcc.dg/float-exact-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205119 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * config/arm/arm.c (arm_dwarf_register_span): Take into account the
ebotcazou [Wed, 20 Nov 2013 13:58:12 +0000 (13:58 +0000)]
* config/arm/arm.c (arm_dwarf_register_span): Take into account the
endianness of the D registers for the legacy encodings.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205118 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoPR rtl-optimization/54300
rearnsha [Wed, 20 Nov 2013 13:55:04 +0000 (13:55 +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@205117 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * cgraph.h (varpool_node): Add need_bounds_init field.
kyukhin [Wed, 20 Nov 2013 13:50:44 +0000 (13:50 +0000)]
    * cgraph.h (varpool_node): Add need_bounds_init field.
        * lto-cgraph.c (lto_output_varpool_node): Output
        need_bounds_init value.
        (input_varpool_node): Read need_bounds_init value.
        * varpool.c (dump_varpool_node): Dump need_bounds_init field.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205116 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR 59212
dnovillo [Wed, 20 Nov 2013 13:48:40 +0000 (13:48 +0000)]
PR 59212
* g++.dg/plugin/selfassign.c: Include stringpool.h

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205115 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR c++/59173
redi [Wed, 20 Nov 2013 13:39:33 +0000 (13:39 +0000)]
PR c++/59173
* include/ext/pointer.h (pointer_traits<>::rebind<>): Add template
keyword in nested name.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205114 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * opts.c (finish_options): Imply -ffat-lto-objects with -fno-use-linker-plugin.
hubicka [Wed, 20 Nov 2013 13:11:08 +0000 (13:11 +0000)]
* opts.c (finish_options): Imply -ffat-lto-objects with -fno-use-linker-plugin.
* common.opt (fuse-linker-plugin): Add var.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205110 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
kyukhin [Wed, 20 Nov 2013 12:28:29 +0000 (12:28 +0000)]
    * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
        * dwarf2out.c (gen_subprogram_die): Ignore bound args.
        (gen_type_die_with_usage): Skip pointer bounds.
        (dwarf2out_global_decl): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205109 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoRemove unintentional blank link from prevous commit.
rsandifo [Wed, 20 Nov 2013 12:17:31 +0000 (12:17 +0000)]
Remove unintentional blank link from prevous commit.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205108 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * gcc.target/powerpc/darwin-longlong.c (msw): Make endian-safe.
uweigand [Wed, 20 Nov 2013 12:14:14 +0000 (12:14 +0000)]
* gcc.target/powerpc/darwin-longlong.c (msw): Make endian-safe.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205106 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago[AArch64] Remove "mode", "mode2" attributes
jgreenhalgh [Wed, 20 Nov 2013 12:12:02 +0000 (12:12 +0000)]
[AArch64] Remove "mode", "mode2" attributes

gcc/
* config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
from all insns.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205105 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoPR target/57756
kyukhin [Wed, 20 Nov 2013 11:59:05 +0000 (11:59 +0000)]
PR target/57756
* config/i386/i386.c (ix86_option_override_internal): Add missed
argument prefix for 'ix86_fpmath'.
* config/i386/ssemath.h: Add missed definition of
TARGET_FPMATH_DEFAULT_P macros.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205104 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agogcc/ada/
rsandifo [Wed, 20 Nov 2013 11:57:27 +0000 (11:57 +0000)]
gcc/ada/
2013-11-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
    Mike Stump  <mikestump@comcast.net>
    Richard Sandiford  <rdsandiford@googlemail.com>

* gcc-interface/cuintp.c (UI_From_gnu): Use tree_to_shwi.
* gcc-interface/decl.c (gnat_to_gnu_entity): Use tree_to_uhwi.
* gcc-interface/utils.c (make_packable_type): Likewise.

gcc/c-family/
2013-11-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
    Mike Stump  <mikestump@comcast.net>
    Richard Sandiford  <rdsandiford@googlemail.com>

* c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
instead of TREE_INT_CST_LOW, in cases where there is a protecting
tree_fits_shwi_p or tree_fits_uhwi_p.
(dump_generic_ada_node): Likewise.
* c-format.c (check_format_arg): Likewise.
* c-pretty-print.c (pp_c_integer_constant): Likewise.

gcc/
2013-11-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
    Mike Stump  <mikestump@comcast.net>
    Richard Sandiford  <rdsandiford@googlemail.com>

* alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
instead of TREE_INT_CST_LOW, in cases where there is a protecting
tree_fits_shwi_p or tree_fits_uhwi_p.
* builtins.c (fold_builtin_powi): Likewise.
* config/epiphany/epiphany.c (epiphany_special_round_type_align):
Likewise.
* dbxout.c (dbxout_symbol): Likewise.
* expr.c (expand_expr_real_1): Likewise.
* fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
(fold_binary_loc): Likewise.
* gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
* gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
* omp-low.c (lower_omp_for_lastprivate): Likewise.
* simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
* stor-layout.c (compute_record_mode): Likewise.
* tree-cfg.c (verify_expr): Likewise.
* tree-dfa.c (get_ref_base_and_extent): Likewise.
* tree-pretty-print.c (dump_array_domain): Likewise.
* tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
* tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
* tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
* tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
* tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
* tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
* tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
(ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
(vn_reference_lookup_3, simplify_binary_expression): Likewise.
* tree-ssa-structalias.c (bitpos_of_field): Likewise.
(get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
(create_variable_info_for_1): Likewise.
* tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
(vect_verify_datarefs_alignment): Likewise.
(vect_analyze_data_ref_accesses): Likewise.
(vect_prune_runtime_alias_test_list): Likewise.
* tree-vectorizer.h (NITERS_KNOWN_P): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205103 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agogcc/
rsandifo [Wed, 20 Nov 2013 11:57:06 +0000 (11:57 +0000)]
gcc/
* tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
overflow.  Use tree_to_shwi.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205102 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agogcc/
rsandifo [Wed, 20 Nov 2013 11:56:44 +0000 (11:56 +0000)]
gcc/
* fold-const.c (fold_binary_loc): Use unsigned rather than signed
HOST_WIDE_INTs when folding (x >> c) << c.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205101 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agogcc/c-family/
rsandifo [Wed, 20 Nov 2013 11:56:34 +0000 (11:56 +0000)]
gcc/c-family/
2013-11-19  Kenneth Zadeck  <zadeck@naturalbridge.com>

* c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205100 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Wed, 20 Nov 2013 11:48:07 +0000 (11:48 +0000)]
2013-11-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
    Dominik Vogt  <vogt@linux.vnet.ibm.com>

* config/s390/s390.c (s390_canonicalize_comparison): Don't fold
int comparisons with an out of range condition code.
(s390_optimize_nonescaping_tx): Skip empty BBs.
Generate the new tbegin RTX when removing the FPR clobbers (with
two SETs).
(s390_expand_tbegin): Fix the retry loop counter.  Copy CC to the
result before doing the retry calculations.
(s390_init_builtins): Make tbegin "returns_twice" and tabort
"noreturn".
* config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
the TDB setting part of an tbegin.
("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
("tx_assist"): Set unused argument to an immediate zero instead of
loading zero into a GPR and pass it as argument.
* config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
Remove inline and related attributes.
(__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
(__TM_is_illegal, __TM_is_footprint_exceeded)
(__TM_is_nested_too_deep, __TM_is_conflict): Fix format value
check.

2013-11-20  Dominik Vogt  <vogt@linux.vnet.ibm.com>

* gcc.target/s390/htm-1.c: Rename to ...
* gcc/testsuite/gcc.target/s390/htm-builtins-compile-1.c: ... this
one.
* gcc.target/s390/htm-xl-intrin-1.c: Rename to ...
* gcc.target/s390/htm-builtins-compile-3.c: ... this one.
* gcc.target/s390/htm-builtins-compile-2.c: New testcase.
* gcc.target/s390/htm-builtins-1.c: New testcase.
* gcc.target/s390/htm-builtins-2.c: New testcase.
* gcc.target/s390/s390.exp: Add check for htm machine.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205099 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-20 Richard Biener <rguenther@suse.de>
rguenth [Wed, 20 Nov 2013 10:31:24 +0000 (10:31 +0000)]
2013-11-20  Richard Biener  <rguenther@suse.de>

PR lto/59035
* lto-opts.c (lto_write_options): Write defaults only if
they were not explicitely specified.  Also write
-ffp-contract default.
* lto-wrapper.c (merge_and_complain): Merge -ffp-contract
conservatively.
(run_gcc): Pass through -ffp-contract.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205096 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
jbglaw [Wed, 20 Nov 2013 10:03:53 +0000 (10:03 +0000)]
2013-11-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

* config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.

[BR]: http://gcc.gnu.org/ml/gcc-patches/2013-11/msg02455.html

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205094 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago[AArch64] AArch64 SIMD Builtins Better Type Correctness.
jgreenhalgh [Wed, 20 Nov 2013 09:19:25 +0000 (09:19 +0000)]
[AArch64] AArch64 SIMD Builtins Better Type Correctness.

gcc/
* gcc/config/aarch64/aarch64-builtins.c
(aarch64_simd_itype): Remove.
(aarch64_simd_builtin_datum): Remove itype, add
qualifiers pointer.
(VAR1): Use qualifiers.
(aarch64_build_scalar_type): New.
(aarch64_build_vector_type): Likewise.
(aarch64_build_type): Likewise.
(aarch64_init_simd_builtins): Refactor, remove special cases,
consolidate main loop.
(aarch64_simd_expand_args): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205092 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoRemove gcc/ prefixes
ebotcazou [Wed, 20 Nov 2013 08:15:17 +0000 (08:15 +0000)]
Remove gcc/ prefixes

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205091 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
manu [Wed, 20 Nov 2013 07:15:40 +0000 (07:15 +0000)]
2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>

PR c/53001
Splitting out a -Wfloat-conversion from -Wconversion for
conversions that lower floating point number precision
or conversion from floating point numbers to integers.

gcc/c-family/

* c-common.c (unsafe_conversion_p): Make this function
return an enumeration with more detail.
(conversion_warning): Use the new return type of
unsafe_conversion_p to separately warn either about conversions
that lower floating point number precision or about the other
kinds of conversions.
  * c-common.h (enum conversion_safety): New enumeration.
  (unsafe_conversion_p): switching return type to
  conversion_safety enumeration.
* c.opt: Adding new warning -Wfloat-conversion and
enabling it with -Wconversion.

gcc/

* doc/invoke.texi: Adding documentation about
-Wfloat-conversion.

gcc/testsuite/

* c-c++-common/Wfloat-conversion.c: Copies relevant
tests from c-c++-common/Wconversion-real.c,
gcc.dg/Wconversion-real-integer.c and gcc.dg/pr35635.c into
new testcase for conversions that are warned about by
-Wfloat-conversion.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205090 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
law [Wed, 20 Nov 2013 07:02:48 +0000 (07:02 +0000)]
* config/m68k/m68k.c (m68k_option_overrides): Fix typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205089 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * ChangeLog: Fix whitespace.
uros [Wed, 20 Nov 2013 06:59:27 +0000 (06:59 +0000)]
* ChangeLog: Fix whitespace.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205088 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago* testsuite/17_intro/static.cc: Ignore AIX TOC reload warnings.
dje [Wed, 20 Nov 2013 04:38:14 +0000 (04:38 +0000)]
* testsuite/17_intro/static.cc: Ignore AIX TOC reload warnings.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205087 138bc75d-0d04-0410-961f-82ee72b054a4