platform/upstream/linaro-gcc.git
9 years ago PR target/65296
gjl [Mon, 23 Mar 2015 18:19:01 +0000 (18:19 +0000)]
PR target/65296
* config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
the same -mmcu=MCU more than once.

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

9 years ago2015-03-23 Martin Sebor <msebor@redhat.com>
msebor [Mon, 23 Mar 2015 17:37:25 +0000 (17:37 +0000)]
2015-03-23  Martin Sebor  <msebor@redhat.com>

PR testsuite/63175
* gcc.dg/vect/costmodel/ppc/costmodel-bb-slp-9a-pr63175.c: Scan
assembly for lvx in addition to lxv.

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

9 years ago PR libstdc++/64967
redi [Mon, 23 Mar 2015 16:47:18 +0000 (16:47 +0000)]
PR libstdc++/64967
* acinclude.m4: Disable dual ABI when gnu-versioned-namespace in use.
* configure: Regenerate.
* src/c++11/compatibility-c++0x.cc (error_category), generic_category,
system_category): Use macros for versioned namespace.
* src/c++11/futex.cc: Add missing end macro for versioned namespace.

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

9 years ago PR bootstrap/65522
jakub [Mon, 23 Mar 2015 15:49:02 +0000 (15:49 +0000)]
PR bootstrap/65522
* ipa-devirt.c: Remove duplicate demangle.h include.

* adadecode.c (ada_demangle): Guard with IN_RTS instead of IN_GCC.

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

9 years ago * fr.po: Update.
jsm28 [Mon, 23 Mar 2015 15:34:57 +0000 (15:34 +0000)]
* fr.po: Update.

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

9 years ago PR target/65504
jakub [Mon, 23 Mar 2015 15:31:59 +0000 (15:31 +0000)]
PR target/65504
* config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
on the pseudo.
(expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
REG_POINTER on *destptr after adjusting it for prologue size.

* gfortran.dg/pr65504.f90: New test.

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

9 years ago PR ipa/65521
jakub [Mon, 23 Mar 2015 15:17:20 +0000 (15:17 +0000)]
PR ipa/65521
* ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
ultimate_alias_target ()->order ints instead of
ultimate_alias_target () pointers.

* gcc.dg/pr65521.c: New test.

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

9 years ago2015-03-23 Richard Biener <rguenther@suse.de>
rguenth [Mon, 23 Mar 2015 14:59:57 +0000 (14:59 +0000)]
2015-03-23  Richard Biener  <rguenther@suse.de>

PR tree-optimization/65518
* tree-vect-stmts.c (vectorizable_load): Reject single-element
interleaving cases we generate absymal code for.

* gcc.dg/vect/pr65518.c: New testcase.

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

9 years ago2015-03-23 Christophe Lyon <christophe.lyon@linaro.org>
clyon [Mon, 23 Mar 2015 13:43:22 +0000 (13:43 +0000)]
2015-03-23  Christophe Lyon  <christophe.lyon@linaro.org>

PR sanitizer/59009
* sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick
upstream r230324.
* sanitizer_common/sanitizer_platform.h: Likewise.
* sanitizer_common/sanitizer_common_syscalls.inc: Likewise.

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

9 years ago2015-03-23 Richard Biener <rguenther@suse.de>
rguenth [Mon, 23 Mar 2015 12:47:54 +0000 (12:47 +0000)]
2015-03-23  Richard Biener  <rguenther@suse.de>

PR tree-optimization/65494
* tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
matches here.
(vect_analyze_slp_instance): But do that here, always and once.

* gcc.dg/vect/pr65494.c: New testcase.

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

9 years ago[expmed][trivial] Fix comment about multiplying by T-1 and adding T.
ktkachov [Mon, 23 Mar 2015 09:16:49 +0000 (09:16 +0000)]
[expmed][trivial] Fix comment about multiplying by T-1 and adding T.

* expmed.c (synth_mult): Fix comment about multiplying by T-1 and
adding T or multiplying by T+1 and subracting T.

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

9 years ago PR preprocessor/65238
jakub [Mon, 23 Mar 2015 08:02:39 +0000 (08:02 +0000)]
PR preprocessor/65238
* internal.h (_cpp_scan_out_logical_line): Add third argument.
* directives.c (prepare_directive_trad): Pass false to it.
* traditional.c (_cpp_read_logical_line_trad,
_cpp_create_trad_definition): Likewise.
(struct fun_macro): Add paramc field.
(fun_like_macro): New function.
(maybe_start_funlike): Handle NODE_BUILTIN macros.  Initialize
macro->paramc field.
(save_argument): Use macro->paramc instead of
macro->node->value.macro->paramc.
(push_replacement_text): Formatting fix.
(recursive_macro): Use fun_like_macro helper.
(_cpp_scan_out_logical_line): Likewise.  Add BUILTIN_MACRO_ARG
argument.  Initialize fmacro.paramc field.  Handle builtin
function-like macros.

* c-c++-common/cpp/pr65238-1.c: New test.
* gcc.dg/cpp/pr65238-2.c: New test.
* gcc.dg/cpp/trad/pr65238-3.c: New test.
* gcc.dg/cpp/trad/pr65238-4.c: New test.

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

9 years ago2015-03-23 Paul Thomas <pault@gcc.gnu.org>
mikael [Mon, 23 Mar 2015 07:53:31 +0000 (07:53 +0000)]
2015-03-23  Paul Thomas  <pault@gcc.gnu.org>
    Mikael Morin  <mikael@gcc.gnu.org>

PR fortran/64952
fortran/
* gfortran.h (struct symbol_attribute) : New field
'array_outer_dependency'.
* trans.h (struct gfc_ss_info): New field 'array_outer_dependency'.
* module.c (enum ab_attribute): New value AB_ARRAY_OUTER_DEPENDENCY.
(attr_bits): Append same value to initializer.
(mio_symbol_attribute): Handle 'array_outer_dependency' attr
in module read and write.
* resolve.c (update_current_proc_outer_array_dependency): New function.
(resolve_function, resolve_call): Add code to update current procedure's
'array_outer_dependency' attribute.
(resolve_variable): Mark current procedure with attribute
array_outer_dependency if the variable is an array coming from outside
the current namespace.
(resolve_fl_procedure): Mark a procedure without body with attribute
'array_outer_dependency'.
* trans-array.c (gfc_conv_resolve_dependencies): If any ss is
marked as 'array_outer_dependency' generate a temporary.
(gfc_walk_function_expr): If the function may reference external arrays,
mark the head gfc_ss with flag 'array_outer_dependency'.
testsuite/
* gfortran.dg/elemental_dependency_4.f90: New.
* gfortran.dg/elemental_dependency_5.f90: New.

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

9 years ago PR rtl-optimization/64317
law [Mon, 23 Mar 2015 05:21:04 +0000 (05:21 +0000)]
   PR rtl-optimization/64317
        * Makefile.in (OBJS): Add gcse-common.c
        * gcse.c: Include gcse-common.h
        (struct modify_pair_s): Move structure definition to gcse-common.h
        (compute_transp): Move function to gcse-common.c.
        (canon_list_insert): Similarly.
        (record_last_mem_set_info): Break out some code and put it into
        gcse-common.c.  Call into the new common code.
        (compute_local_properties): Pass additional arguments to compute_transp.
        * postreload-gcse.c: Include gcse-common.h and df.h
        (modify_mem_list_set, blocks_with_calls): New variables.
        (modify_mem_list, canon_modify_mem_list, transp): Likewise.
        (get_bb_avail_insn): Pass in the expression index too.
        (alloc_mem): Allocate memory for the new bitmaps and lists.
        (free_mem): Free memory for the new bitmaps and lists.
        (insert_expr_in_table): Record a bitmap index for each entry we
        add to the table.
        (record_last_mem_set_info): Call into common code in gcse-common.c.
        (get_bb_avail_insn): If no available insn was found in the requested
        BB.  If BB has a single predecessor, see if the expression is
        transparent in BB and available in that single predecessor.
        (compute_expr_transp): New wrapper for compute_transp.
        (eliminate_partially_redundant_load): Pass expression's bitmap_index
        to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
        (gcse_after_reload_main): If there are elements in the hash table,
        then compute transparency for all the elements in the hash table.
        * gcse-common.h: New file.
        * gcse-common.c: New file.

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

9 years agoIndex: gcc/doc/extend.texi
sandra [Mon, 23 Mar 2015 01:12:06 +0000 (01:12 +0000)]
Index: gcc/doc/extend.texi
===================================================================
--- gcc/doc/extend.texi (revision 221558)
+++ gcc/doc/extend.texi (working copy)
@@ -8916,19 +8916,19 @@ GCC provides support for the following b
 is enabled. Cilk Plus can be enabled using the @option{-fcilkplus} flag.

 @itemize @bullet
-@item __sec_implicit_index
-@item __sec_reduce
-@item __sec_reduce_add
-@item __sec_reduce_all_nonzero
-@item __sec_reduce_all_zero
-@item __sec_reduce_any_nonzero
-@item __sec_reduce_any_zero
-@item __sec_reduce_max
-@item __sec_reduce_min
-@item __sec_reduce_max_ind
-@item __sec_reduce_min_ind
-@item __sec_reduce_mul
-@item __sec_reduce_mutating
+@item @code{__sec_implicit_index}
+@item @code{__sec_reduce}
+@item @code{__sec_reduce_add}
+@item @code{__sec_reduce_all_nonzero}
+@item @code{__sec_reduce_all_zero}
+@item @code{__sec_reduce_any_nonzero}
+@item @code{__sec_reduce_any_zero}
+@item @code{__sec_reduce_max}
+@item @code{__sec_reduce_min}
+@item @code{__sec_reduce_max_ind}
+@item @code{__sec_reduce_min_ind}
+@item @code{__sec_reduce_mul}
+@item @code{__sec_reduce_mutating}
 @end itemize

 Further details and examples about these built-in functions are described

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

9 years ago PR ipa/65475
hubicka [Mon, 23 Mar 2015 00:17:07 +0000 (00:17 +0000)]
PR ipa/65475
* ipa-devirt.c: Include demangle.h
(odr_type_d): Add field rtti_broken.
(odr_subtypes_equivalent_p): Do not require name to match.
(compare_virtual_tables): Fix typo; if type already has ODR violation,
bypass the tests; be ready for function referneces in vtables that are
not DECL_VIRTUAL; make warnings to be OPT_Wodr.
(warn_odr): Give up for nameless types.
(warn_types_mismatch): Report mismatch in mangled names;
report mismatch in anonymous namespaces; look into component types to
give useful error; report when mismatch is dragged in from other ODR
type.
(odr_types_equivalent_p): Match types for being polymorphic; avoid
duplicated diagnostics.
(add_type_duplicate): Reorder checks so more informative ones come
first; fix typo; do not output "the extra base is defined here" when
we did not warn.
(BINFO_N_BASE_BINFOS): Relax sanity check.
* g++.dg/lto/pr65475b_0.C: New testcase.
* g++.dg/lto/pr65475b_1.C: New testcase.
* g++.dg/lto/pr65475c_0.C: New testcase.
* g++.dg/lto/pr65475c_1.C: New testcase.

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

9 years agoDaily bump.
gccadmin [Mon, 23 Mar 2015 00:16:16 +0000 (00:16 +0000)]
Daily bump.

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

9 years agoSpeed-up def_builtin_const (ix86_valid_target_attribute).
marxin [Sun, 22 Mar 2015 22:50:00 +0000 (22:50 +0000)]
Speed-up def_builtin_const (ix86_valid_target_attribute).

* config/i386/i386.c (def_builtin): Set deferred_isa_values for
masks that can potentially include a builtin.
(ix86_add_new_builtins): Introduce fast filter for isa values
that cannot trigger builtin inclusion.

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

9 years agoIPA ICF: include hash values of references.
marxin [Sun, 22 Mar 2015 22:47:06 +0000 (22:47 +0000)]
IPA ICF: include hash values of references.

* ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
(sem_item::update_hash_by_local_refs): Likewise.
(sem_variable::get_hash): Empty line is fixed.
(sem_item_optimizer::execute): Include adding of hash references.
(sem_item_optimizer::update_hash_by_addr_refs): New function.
(sem_item_optimizer::build_hash_based_classes): Use local hash.
* ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
(sem_item::update_hash_by_local_refs): Likewise.

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

9 years ago2015-03-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Sun, 22 Mar 2015 21:37:13 +0000 (21:37 +0000)]
2015-03-22 Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/59513
* gfortran.texi (Read/Write after EOF marker): New information.

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

9 years ago PR ipa/65502
hubicka [Sun, 22 Mar 2015 21:10:24 +0000 (21:10 +0000)]
PR ipa/65502
* ipa-comdats.c (enqueue_references): Walk through thunks.
(ipa_comdats): Likewise.
(set_comdat_group_1): New function.

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

9 years agoadd forgoten entry.
hubicka [Sun, 22 Mar 2015 21:09:16 +0000 (21:09 +0000)]
add forgoten entry.

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

9 years ago2015-03-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Sun, 22 Mar 2015 18:42:52 +0000 (18:42 +0000)]
2015-03-22 Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/59513
* io/transfer.c (data_transfer_init): Do not error for
-std=legacy.

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

9 years ago * doc/contrib.texi (Contributors): Update entry for Danny Smith.
gerald [Sun, 22 Mar 2015 17:08:00 +0000 (17:08 +0000)]
* doc/contrib.texi (Contributors): Update entry for Danny Smith.

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

9 years ago2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
sandra [Sun, 22 Mar 2015 02:39:24 +0000 (02:39 +0000)]
2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
    Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
function parameter declaration.
* config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
Update arguments to nios2_adjust_call_address().
(sibcall_internal): Rename from *sibcall.
(sibcall_value_internal): Rename from *sibcall_value.
* config/nios2/nios2.c (nios2_emit_add_constant): New function.
(nios2_large_got_address): Add target temp reg parameter.
(nios2_got_address): Adjust call to nios2_large_got_address, add
force_reg around it.
(nios2_load_pic_address): Add target temp reg parameter, replace call
to nios2_got_address with corresponding code.
(nios2_legitimize_constant_address): Update call to
nios2_load_pic_address.
(nios2_adjust_call_address): Add temp reg parameter, update PIC case
to use temp reg for PIC loading purposes.
(nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
(TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
(TARGET_ASM_OUTPUT_MI_THUNK): Likewise.

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

9 years agoDaily bump.
gccadmin [Sun, 22 Mar 2015 00:16:12 +0000 (00:16 +0000)]
Daily bump.

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

9 years ago2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
sandra [Sat, 21 Mar 2015 23:30:54 +0000 (23:30 +0000)]
2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* doc/invoke.texi (-fno-diagnostics-show-caret): Fix
usage of "the @option{...}".
(-Wopenmp-simd): Likewise.
(-fsanitize-recover): Likewise.
(-fsanitize-undefined-trap-on-error): Likewise.
(-flto): Likewise.
(tracer-dynamic-coverage-feedback): Likewise.
(reorder-block-duplicate-feedback): Likewise.
(loop-unroll-jam-size): Likewise.
(-B): Likewise.
(-I-): Likewise.
(-mabs=legacy): Likewise.
(-mupper-regs-df): Likewise.
(-mupper-regs-sf): Likewise.
(-mpointers-to-nested-functions): Likewise.

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

9 years ago2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
sandra [Sat, 21 Mar 2015 20:34:46 +0000 (20:34 +0000)]
2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* doc/extend.texi (Cilk Plus Builtins): Add markup.

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

9 years ago2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
sandra [Sat, 21 Mar 2015 18:40:55 +0000 (18:40 +0000)]
2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
additional index entries and cross-references.
(-fchkp-check-incomplete-type): Likewise.
(-fchkp-first-field-has-own-bounds): Likewise.
(-fchkp-narrow-to-innermost-array): Likewise.
(-fchkp-use-fast-string-functions): Likewise.
(-fchkp-use-nochk-string-functions): Likewise.
(-fchkp-use-static-const-bounds): Likewise.
(-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
(-fchkp-instrument-marked-only): Likewise.
(-fchkp-use-wrappers): Likewise.
(-static-libmpx): Likewise.
(-static-libmpxwrappers): Likewise.
* doc/extend.texi (bnd_legacy): Likewise.
(bnd_instrument): Likewise.
(bnd_variable_size): Likewise.
(Pointer Bounds Checker builtins): Likewise.

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

9 years ago * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
danglin [Sat, 21 Mar 2015 16:19:43 +0000 (16:19 +0000)]
* testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
hppa*-*-hpux*.

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

9 years agoFix ChangeLog year
mikael [Sat, 21 Mar 2015 15:04:47 +0000 (15:04 +0000)]
Fix ChangeLog year

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

9 years agoFix ChangeLog formatting
mikael [Sat, 21 Mar 2015 15:00:30 +0000 (15:00 +0000)]
Fix ChangeLog formatting

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

9 years agoPut @{xxx} in one line
hjl [Sat, 21 Mar 2015 14:26:52 +0000 (14:26 +0000)]
Put @{xxx} in one line

* gfortran.texi (_gfortran_caf_sync_memory): Put @{xxx} in one
line.

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

9 years agoMark omp thread functions as parallelized
vries [Sat, 21 Mar 2015 10:14:10 +0000 (10:14 +0000)]
Mark omp thread functions as parallelized

2015-03-21  Tom de Vries  <tom@codesourcery.com>

PR tree-optimization/65458
* cgraph.c (cgraph_node::dump): Handle parallelized_function field.
* cgraph.h (cgraph_node): Add parallelized_function field.
* lto-cgraph.c (lto_output_node): Write parallelized_function field.
(input_overwrite_node): Read parallelized_function field.
* omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
parallelized_function on cgraph_node for child_fn.
* tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
Remove include of gt-tree-parloops.h.
(parallelized_functions): Remove static variable.
(parallelized_function_p): Rewrite using parallelized_function field of
cgraph_node.
(create_loop_fn): Remove adding to parallelized_functions.
* Makefile.in (GTFILES): Remove tree-parloops.c

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

9 years ago2015-03-21 Tobias Burnus <burnus@net-b.de>
burnus [Sat, 21 Mar 2015 08:31:17 +0000 (08:31 +0000)]
2015-03-21  Tobias Burnus  <burnus@net-b.de>

        * gfortran.texi (_gfortran_caf_sync_all,
        * _gfortran_caf_sync_images,
        _gfortran_caf_sync_memory, _gfortran_caf_error_stop,
        _gfortran_caf_error_stop_str, _gfortran_caf_atomic_define,
        _gfortran_caf_atomic_ref, _gfortran_caf_atomic_cas,
        _gfortran_caf_atomic_op): New sections.

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

9 years ago2015-03-21 Tobias Burnus <burnus@net-b.de>
burnus [Sat, 21 Mar 2015 08:29:40 +0000 (08:29 +0000)]
2015-03-21  Tobias Burnus  <burnus@net-b.de>

        * trans-expr.c (gfc_get_tree_for_caf_expr): Reject unimplemented
        coindexed coarray accesses.

2015-03-21  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/coarray_38.f90: New.
        * gfortran.dg/coarray_39.f90: New.
        * gfortran.dg/coarray/coindexed_3.f90: Add dg-error, turn into
        compile test.

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

9 years agoDaily bump.
gccadmin [Sat, 21 Mar 2015 00:16:12 +0000 (00:16 +0000)]
Daily bump.

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

9 years ago PR c++/65398
mpolacek [Fri, 20 Mar 2015 21:53:40 +0000 (21:53 +0000)]
PR c++/65398
* constexpr.c (cxx_fold_indirect_ref): Transform *(&A[i] p+ j) into
A[i + j].

* g++.dg/cpp0x/pr65398.C: New test.

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

9 years ago PR ipa/65475
hubicka [Fri, 20 Mar 2015 18:19:18 +0000 (18:19 +0000)]
PR ipa/65475
* ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
non-polymorphic
* g++.dg/lto/pr65475_0.C: New testcase.
* g++.dg/lto/pr65475_1.C: New testcase.

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

9 years ago2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Fri, 20 Mar 2015 17:43:48 +0000 (17:43 +0000)]
2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>

PR rtl-optimization/64366
* lra.c (lra_update_insn_regno_info): Consider regs in
CALL_INSN_FUNCTION_USAGE memory.

2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>

PR rtl-optimization/64366
* gcc.target/sh/pr64366.c: New.

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

9 years ago2015-03-20 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Fri, 20 Mar 2015 17:26:32 +0000 (17:26 +0000)]
2015-03-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/48324
* g++.dg/cpp0x/constexpr-48324.C: New.

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

9 years ago[Patch Testsuite] Make all_attributes.cc in to (almost_)all_attributes.cc for ARM.
jgreenhalgh [Fri, 20 Mar 2015 17:20:12 +0000 (17:20 +0000)]
[Patch Testsuite] Make all_attributes.cc in to (almost_)all_attributes.cc for ARM.

* testsuite/17_intro/headers/c++1998/all_attributes.cc: Disable
test for unused for ARM.
* testsuite/17_intro/headers/c++200x/all_attributes.cc: Likewise.
* testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.

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

9 years ago2015-03-20 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Fri, 20 Mar 2015 17:06:18 +0000 (17:06 +0000)]
2015-03-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/48453
* g++.dg/cpp0x/pr48453.C: New.

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

9 years ago PR c++/65072
mpolacek [Fri, 20 Mar 2015 14:56:53 +0000 (14:56 +0000)]
PR c++/65072
* typeck.c (lookup_anon_field): Make sure we're dealing with the main
variant.

* g++.dg/cpp0x/pr65072.C: New test.

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

9 years ago * include/bits/c++config (__gnu_cxx::__cxx11): Define new namespace.
redi [Fri, 20 Mar 2015 13:26:55 +0000 (13:26 +0000)]
* include/bits/c++config (__gnu_cxx::__cxx11): Define new namespace.
* include/ext/codecvt_specializations.h (encoding_state,
encoding_char_traits): Remove abi-tag and use inline namespace.
* testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line.

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

9 years ago2015-03-20 Richard Biener <rguenther@suse.de>
rguenth [Fri, 20 Mar 2015 12:39:32 +0000 (12:39 +0000)]
2015-03-20  Richard Biener  <rguenther@suse.de>

PR middle-end/64715
* tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
for type comparison and gcc_checking_assert.
(chrec_fold_plus_poly_poly): Likewise.
(chrec_fold_multiply_poly_poly): Likewise.
(chrec_convert_1): Likewise.
* gimplify.c (gimplify_expr): Remove premature folding of
&X + CST to &MEM[&X, CST].

* gcc.dg/pr15347.c: Use -O.
* c-c++-common/pr19807-1.c: Likewise.

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

9 years ago PR ada/65451
ebotcazou [Fri, 20 Mar 2015 10:15:33 +0000 (10:15 +0000)]
PR ada/65451
* gcc-interface/utils.c (gnat_pushdecl): Tidy up and improve comment.
Make sure to chain only main variants through TYPE_NEXT_PTR_TO.

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

9 years ago * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
hubicka [Fri, 20 Mar 2015 06:41:17 +0000 (06:41 +0000)]
* ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
already is final.
(ipa_inline): Recompute inline_failed codes.
* cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
CIF_FINAL_ERROR.

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

9 years ago PR rtl-optimization/60851
uros [Fri, 20 Mar 2015 06:07:30 +0000 (06:07 +0000)]
PR rtl-optimization/60851
* recog.c (constrain_operands): Accept a pseudo register before reload
for LRA enabled targets.

testsuite/ChangeLog:

PR rtl-optimization/60851
* gcc.target/i386/pr60851.c: New test.

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

9 years agoAdd missed ChangeLog entry for revision 221552.
vmakarov [Fri, 20 Mar 2015 00:18:57 +0000 (00:18 +0000)]
Add missed ChangeLog entry for revision 221552.

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

9 years agoDaily bump.
gccadmin [Fri, 20 Mar 2015 00:16:11 +0000 (00:16 +0000)]
Daily bump.

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

9 years ago[gcc]
meissner [Thu, 19 Mar 2015 22:37:33 +0000 (22:37 +0000)]
[gcc]
2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/65240
* config/rs6000/predicates.md (easy_fp_constant): Remove special
-ffast-math handling that kept non-0 constants live in the RTL
until reload.  Remove logic testing the number of instructions it
took to create a constant in a GPR that was never used, due to a
test for soft-float earlier.
(memory_fp_constant): Delete, no longer used.

* config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
alternatives for loading non-0 constants into GPRs for hard
floating point that is no longer needed due to changes in
easy_fp_constant.  Add support for loading 0.0 into GPRs.
(mov<mode>_hardfloat32): Likewise.
(mov<mode>_hardfloat64): Likewise.
(mov<mode>_64bit_dm): Likewise.
(movtd_64bit_nodm): Likewise.
(pre-reload move FP constant define_split): Delete define_split,
since it is no longer used.
(extenddftf2_internal): Remove GHF constraints that are not valid
for extenddftf2.

[gcc/testsuite]
2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/65240
* gcc/testsuite/g++.dg/pr65240.h: Add tests for PR 65240.
* gcc/testsuite/g++.dg/pr65240-1.C: Likewise.
* gcc/testsuite/g++.dg/pr65240-2.C: Likewise.
* gcc/testsuite/g++.dg/pr65240-3.C: Likewise.
* gcc/testsuite/g++.dg/pr65240-4.C: Likewise.

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

9 years ago2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Thu, 19 Mar 2015 19:59:38 +0000 (19:59 +0000)]
2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>

PR rtl-optimization/63491
* lra-constraints.c (check_and_process_move): Use src instead of
sreg.  Remove some dead code.

2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>

PR rtl-optimization/63491
* gcc.target/powerpc/pr63491.c: New.

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

9 years ago PR c++/65046
jason [Thu, 19 Mar 2015 19:31:48 +0000 (19:31 +0000)]
PR c++/65046
Automatically propagate ABI tags to variables and functions
from their (return) type.
* class.c (check_tag): Handle variables and functions.
(mark_or_check_attr_tags): Split out from find_abi_tags_r.
(mark_or_check_tags): Likewise.
(mark_abi_tags): Use it.  Rename from mark_type_abi_tags.
(check_abi_tags): Add single argument overload for decls.
Handle inheriting tags for decls.
* mangle.c (write_mangled_name): Call it.
(mangle_return_type_p): Split out from write_encoding.
(unmangled_name_p): Split out from write_mangled_name.
(write_mangled_name): Ignore abi_tag on namespace.
* cp-tree.h (NAMESPACE_IS_INLINE): Replace NAMESPACE_ABI_TAG.
* parser.c (cp_parser_namespace_definition): Set it.
* name-lookup.c (handle_namespace_attrs): Use arguments. Warn
about abi_tag attribute on non-inline namespace.
* tree.c (check_abi_tag_args): Split out from handle_abi_tag_attribute.
(handle_abi_tag_attribute): Allow tags on variables.

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

9 years ago * c-decl.c (c_decl_attributes): Also add "omp declare target"
jakub [Thu, 19 Mar 2015 19:12:43 +0000 (19:12 +0000)]
* c-decl.c (c_decl_attributes): Also add "omp declare target"
attribute for DECL_EXTERNAL VAR_DECLs.

* decl2.c (cplus_decl_attributes): Also add "omp declare target"
attribute for DECL_EXTERNAL VAR_DECLs.

* testsuite/libgomp.c/target-10.c: New test.
* testsuite/libgomp.c++/target-4.C: New test.

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

9 years agoFix PR ipa/65380.
marxin [Thu, 19 Mar 2015 17:37:15 +0000 (17:37 +0000)]
Fix PR ipa/65380.

PR ipa/65380
* ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
(sem_variable::merge): Likewise.

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

9 years agoFix for PR ipa/65465.
marxin [Thu, 19 Mar 2015 17:35:52 +0000 (17:35 +0000)]
Fix for PR ipa/65465.

PR ipa/65465
* cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
all fields of cgraph_thunk_info.
* g++.dg/ipa/pr65465.C: New test.

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

9 years ago * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
ienkovich [Thu, 19 Mar 2015 14:01:31 +0000 (14:01 +0000)]
* ipa-chkp.c (chkp_maybe_create_clone): Don't try to
clone instrumented thunks.

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

9 years ago2015-03-19 Richard Biener <rguenther@suse.de>
rguenth [Thu, 19 Mar 2015 13:36:18 +0000 (13:36 +0000)]
2015-03-19  Richard Biener  <rguenther@suse.de>

Revert
2015-03-10  Richard Biener  <rguenther@suse.de>

PR middle-end/63155
* tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
* tree-ssa-coalesce.c: Include timevar.h.
(attempt_coalesce): Handle graph being NULL.
(coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
Split out abnormal coalescing to ...
(perform_abnormal_coalescing): ... this function.
(coalesce_ssa_name): Perform abnormal coalescing without computing
live/conflict.
(verify_ssa_coalescing_worker): New function.
(verify_ssa_coalescing): Likewise.

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

9 years ago2015-03-19 Richard Biener <rguenther@suse.de>
rguenth [Thu, 19 Mar 2015 11:44:08 +0000 (11:44 +0000)]
2015-03-19  Richard Biener  <rguenther@suse.de>

* partition.h (struct partition_elem): Re-order elements to
avoid padding.

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

9 years ago2015-03-19 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Thu, 19 Mar 2015 11:02:47 +0000 (11:02 +0000)]
2015-03-19  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/52659
* g++.dg/cpp0x/deleted11.C: New.

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

9 years ago PR sanitizer/65400
jakub [Thu, 19 Mar 2015 10:12:34 +0000 (10:12 +0000)]
PR sanitizer/65400
* tsan.c (instrument_gimple): Clear tail call flag on
calls.

* c-c++-common/tsan/pr65400-3.c: New test.

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

9 years ago2015-03-19 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Thu, 19 Mar 2015 08:57:01 +0000 (08:57 +0000)]
2015-03-19  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/59686
* g++.dg/cpp0x/constexpr-59686.C: New.

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

9 years ago PR sanitizer/64265
jakub [Thu, 19 Mar 2015 07:55:22 +0000 (07:55 +0000)]
PR sanitizer/64265
* g++.dg/tsan/pr64265.C: New test.

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

9 years ago PR sanitizer/65400
jakub [Thu, 19 Mar 2015 07:53:38 +0000 (07:53 +0000)]
PR sanitizer/65400
* ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
call in the return bb.
(find_split_points): Add RETURN_BB argument, don't call
find_return_bb.
(split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
if true append TSAN_FUNC_EXIT internal call after the call to
the split off function.
(execute_split_functions): Call find_return_bb here.
Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
Adjust find_split_points and split_function calls.

* c-c++-common/tsan/pr65400-1.c: New test.
* c-c++-common/tsan/pr65400-2.c: New test.

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

9 years ago* config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
dj [Thu, 19 Mar 2015 04:00:51 +0000 (04:00 +0000)]
* config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
(iorqi3_virt): Likewise.

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

9 years agoDaily bump.
gccadmin [Thu, 19 Mar 2015 00:16:14 +0000 (00:16 +0000)]
Daily bump.

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

9 years ago2015-03-18 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Wed, 18 Mar 2015 21:30:04 +0000 (21:30 +0000)]
2015-03-18  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/59816
* g++.dg/cpp0x/pr59816.C: New.

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

9 years ago2014-03-18 Paul Thomas <pault@gcc.gnu.org>
pault [Wed, 18 Mar 2015 21:18:38 +0000 (21:18 +0000)]
2014-03-18  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/59198
* gfortran.dg/proc_ptr_comp_45.f90 : Make tests fuzzy.

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

9 years agoFix PR65439.
marxin [Wed, 18 Mar 2015 19:18:34 +0000 (19:18 +0000)]
Fix PR65439.

PR ipa/65439
* g++.dg/ipa/ipa-icf-4.C: Extend expected number of
equivalences either to 6 or 7.

M    gcc/testsuite/ChangeLog
M    gcc/testsuite/g++.dg/ipa/ipa-icf-4.C

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

9 years agoMake parallelize_loops static
vries [Wed, 18 Mar 2015 18:55:38 +0000 (18:55 +0000)]
Make parallelize_loops static

2015-03-18  Tom de Vries  <tom@codesourcery.com>

* tree-parloops.c (parallelize_loops): Make static.
* tree-parloops.h (parallelize_loops): Remove extern declaration.

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

9 years ago PR c++/65046
redi [Wed, 18 Mar 2015 18:08:29 +0000 (18:08 +0000)]
PR c++/65046
* config/locale/gnu/messages_members.cc (Catalog_info, Catalogs,
get_catalogs): Add abi-tag.
* include/ext/codecvt_specializations.h (encoding_state,
encoding_char_traits): Likewise.
* src/c++11/cxx11-ios_failure.cc (io_error_category): Likewise.
* src/c++11/cxx11-shim_facets.cc (__any_string::operator basic_string,
numpunct_shim, collate_shim, time_get_shim, moneypunct_shim,
money_get_shim, money_put_shim, messages_shim): Likewise.
* src/c++11/future.cc (future_error_category::message): Likewise.
* src/c++11/system_error.cc (generic_error_category::message,
system_error_category::message): Likewise.
(__sso_string): Disable -Wabi-tag warnings.

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

9 years ago PR libstdc++/13631
redi [Wed, 18 Mar 2015 16:17:47 +0000 (16:17 +0000)]
PR libstdc++/13631
* config/locale/gnu/messages_members.cc (get_glibc_msg): Fix fallback
implementation for old glibc. Fix whitespace.

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

9 years agoFix PR64491
ams [Wed, 18 Mar 2015 14:27:13 +0000 (14:27 +0000)]
Fix PR64491

2015-03-18  Andrew Stubbs  <ams@codesourcery.com>

PR middle-end/64491
Revert:
2014-11-20  Andrew Stubbs  <ams@codesourcery.com>

* tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
condition would be removed due to undefined behaviour.

2015-03-18  Andrew Stubbs  <ams@codesourcery.com>

PR middle-end/64491
Revert:
2014-11-20  Andrew Stubbs  <ams@codesourcery.com>

* gcc.dg/undefined-loop-1.c: New file.
* gcc.dg/undefined-loop-2.c: New file.

2014-12-24  Andrew Stubbs  <ams@codesourcery.com>

PR testsuite/64032
* gcc.dg/undefined-loop-2.c: Don't allow GCC to optimize away the
loop exits too early.

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

9 years agoFix PR ipa/65432
marxin [Wed, 18 Mar 2015 14:16:59 +0000 (14:16 +0000)]
Fix PR ipa/65432

PR ipa/65432
* cgraph.c (cgraph_node::get_create): Remove unnecessary
xstrdup_for_dump wrapper.
* ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
sem_item::name.
(sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
with xstrdup_for_dump.
(sem_variable::equals): Likewise.
(sem_item_optimizer::read_section): Use symtab_node::name instead of
sem_item::name.
(sem_item_optimizer::parse_funcs_and_vars): Likewise.
(sem_item_optimizer::merge_classes): Wrap symtab_node::name and
symtab_node::asm_name with xstrdup_for_dump.
(congruence_class::dump): Use symtab_node::name instead of
sem_item::name.
* ipa-icf.h (symtab_node::name): Remove.
(symtab_node::asm_name): Likewise.

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

9 years ago PR tree-optimization/65450
jakub [Wed, 18 Mar 2015 13:54:12 +0000 (13:54 +0000)]
PR tree-optimization/65450
* tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
function.
(vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
it instead of duplicate_ssa_name_ptr_info.

* gfortran.dg/pr65450.f90: New test.

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

9 years ago PR target/65222
jakub [Wed, 18 Mar 2015 13:47:47 +0000 (13:47 +0000)]
PR target/65222
* doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.

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

9 years ago2015-03-18 Richard Biener <rguenther@suse.de>
rguenth [Wed, 18 Mar 2015 13:36:16 +0000 (13:36 +0000)]
2015-03-18  Richard Biener  <rguenther@suse.de>

* tree-data-ref.h (struct access_matrix): Remove.
(AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
(am_vector_index_for_loop): Likewise.
(struct data_reference): Remove access_matrix member.
(DR_ACCESS_MATRIX): Remove.
(lambda_vector_new): Add comment.
(lambda_matrix_new): Use XOBNEWVEC.

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

9 years ago2015-03-18 Richard Biener <rguenther@suse.de>
rguenth [Wed, 18 Mar 2015 12:29:20 +0000 (12:29 +0000)]
2015-03-18  Richard Biener  <rguenther@suse.de>

* tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
(pass_ch::execute): Cleanup the CFG only if we did sth.
* tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.

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

9 years ago[expmed][cleanup] Use std::swap instead of manual swapping
ktkachov [Wed, 18 Mar 2015 12:01:24 +0000 (12:01 +0000)]
[expmed][cleanup] Use std::swap instead of manual swapping

* expmed.c (synth_mult): Use std::swap instead of manually
swapping algorithms.

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

9 years ago PR target/65078
jakub [Wed, 18 Mar 2015 10:58:32 +0000 (10:58 +0000)]
PR target/65078
* config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.

* gcc.target/i386/pr65078-1.c: New test.
* gcc.target/i386/pr65078-2.c: New test.
* gcc.target/i386/pr65078-3.c: New test.
* gcc.target/i386/pr65078-4.c: New test.
* gcc.target/i386/pr65078-5.c: New test.
* gcc.target/i386/pr65078-6.c: New test.

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

9 years ago2015-03-18 Jonathan Wakely <jwakely@redhat.com>
redi [Wed, 18 Mar 2015 10:53:38 +0000 (10:53 +0000)]
2015-03-18  Jonathan Wakely  <jwakely@redhat.com>
    Torvald Riegel  <triegel@redhat.com>

* acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Check for pthread_rwlock_t.
* config.h.in: Regenerate.
* configure: Regenerate.
* include/std/shared_mutex: Check _GLIBCXX_USE_PTHREAD_RWLOCK_T.
(shared_timed_mutex::_M_rwlock): Use PTHREAD_RWLOCK_INITIALIZER.
(shared_timed_mutex::lock_shared()): Retry on EAGAIN.
(shared_timed_mutex::try_lock_shared_until()): Retry on EAGAIN and
EDEADLK.

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

9 years ago2015-03-18 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Wed, 18 Mar 2015 10:31:24 +0000 (10:31 +0000)]
2015-03-18  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/65340
* call.c (build_over_call): Pass the tsubst_flags_t argument to
mark_used.
* decl2.c (mark_used): Inline the require_deduced_type call and
guard the error call.

2015-03-18  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/65340
* g++.dg/cpp1y/pr65340.C: New.

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

9 years ago2015-03-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Wed, 18 Mar 2015 01:47:12 +0000 (01:47 +0000)]
2015-03-17 Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/64432
* gfortran.dg/system_clock_3.f08: Adjust test.

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

9 years agoDaily bump.
gccadmin [Wed, 18 Mar 2015 00:16:12 +0000 (00:16 +0000)]
Daily bump.

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

9 years ago PR c++/65061
jason [Tue, 17 Mar 2015 17:38:25 +0000 (17:38 +0000)]
PR c++/65061
* parser.c (cp_parser_template_name): Call strip_using_decl.

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

9 years ago * testsuite/30_threads/shared_lock/modifiers/1.cc: Remove name of
redi [Tue, 17 Mar 2015 16:36:32 +0000 (16:36 +0000)]
* testsuite/30_threads/shared_lock/modifiers/1.cc: Remove name of
unused exception variable.
* testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
* testsuite/30_threads/shared_lock/modifiers/2.cc: Remove duplicate
test.
* testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise.

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

9 years ago * libsupc++/nested_exception.h: Do not try to derive from final
redi [Tue, 17 Mar 2015 14:24:55 +0000 (14:24 +0000)]
* libsupc++/nested_exception.h: Do not try to derive from final
classes.
* testsuite/18_support/nested_exception/throw_with_nested.cc: Test
final class.

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

9 years ago PR target/65296
gjl [Tue, 17 Mar 2015 10:34:11 +0000 (10:34 +0000)]
PR target/65296
* config/avr/avr.opt (-nodevicelib): New option.
* doc/invoke.texi (AVR Options): Document it.
* config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
libgcc.a, libc.a, libm.a.
* config/avr/specs.h: Same.
* config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
which don't (directly) depend on the device.  Print more help.
(*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
(*cpp): Don't define __AVR_DEV_LIB_NAME__.
* config/avr/driver-avr.c: Remove -nodevicelib from option list in
case of an error.
(avr_devicespecs_file): Use suffix "%s" instead of absolute path
for specs file name.
* config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
* config/avr/avr-mcus.def: Adjust initializers and comments.

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

9 years ago2014-03-17 Paul Thomas <pault@gcc.gnu.org>
pault [Tue, 17 Mar 2015 05:20:08 +0000 (05:20 +0000)]
2014-03-17  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/59198
* trans-types.c (gfc_get_derived_type): If an abstract derived
type with procedure pointer components has no other type of
component, return the backend_decl. Otherwise build the
components if any of the non-procedure pointer components have
no backend_decl.

2014-03-17  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/59198
* gfortran.dg/proc_ptr_comp_44.f90 : New test
* gfortran.dg/proc_ptr_comp_45.f90 : New test

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

9 years ago2015-03-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Tue, 17 Mar 2015 01:22:12 +0000 (01:22 +0000)]
2015-03-16 Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/64432
* gfortran.dg/system_clock_3.f08: New test.

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

9 years ago2015-03-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Tue, 17 Mar 2015 01:04:58 +0000 (01:04 +0000)]
2015-03-16 Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/64432
* intrinsics/system_clock.c (system_clock4, system_clock8):
Cleanup some whitespace.

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

9 years ago2015-03-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Tue, 17 Mar 2015 01:01:54 +0000 (01:01 +0000)]
2015-03-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/64432
*trans-intrinisic.c (conv_intrinsic_system_clock): Check the
smallest kind passed in user arguments and hardcode tesults for
KIND=1 or KIND=2 to indicate no clock available.

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

9 years agolibcpp/
emsr [Tue, 17 Mar 2015 00:50:55 +0000 (00:50 +0000)]
libcpp/

2015-03-16  Edward Smith-Rowland  <3dw4rd@verizon.net>

PR c++/64626
* lex.c (lex_number): If a number ends with digit-seps (') skip back
and let lex_string take them.

gcc/testsuite/

2015-03-16  Edward Smith-Rowland  <3dw4rd@verizon.net>

PR c++/64626
g++.dg/cpp1y/pr64626-1.C: New.
g++.dg/cpp1y/pr64626-2.C: New.
g++.dg/cpp1y/digit-sep-neg.C: Adjust errors and warnings.

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

9 years agoDaily bump.
gccadmin [Tue, 17 Mar 2015 00:16:12 +0000 (00:16 +0000)]
Daily bump.

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

9 years ago * tree-sra.c (ipa_sra_preliminary_function_checks): Use
hubicka [Mon, 16 Mar 2015 19:39:14 +0000 (19:39 +0000)]
* tree-sra.c (ipa_sra_preliminary_function_checks): Use
DECL_ONE_ONLY to check if decl is one only.
* ipa-split.c (consider_split): Limit splitt of one only functions.

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

9 years ago PR tree-optimization/65427
jakub [Mon, 16 Mar 2015 18:50:43 +0000 (18:50 +0000)]
PR tree-optimization/65427
* tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
functions.
(expand_vector_operations_1): Handle BLKmode vector COND_EXPR.

* gcc.c-torture/execute/pr65427.c: New test.

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

9 years ago DR 1688
mpolacek [Mon, 16 Mar 2015 18:30:49 +0000 (18:30 +0000)]
DR 1688
PR c++/65327
* decl.c (grokdeclarator): Allow volatile and constexpr together.

* g++.dg/cpp0x/constexpr-object1.C: Change dg-error to dg-bogus.
* g++.dg/cpp0x/pr65327.C: New test.

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

9 years ago * cgraph.h (add_new_static_var): Remove declaration.
mpolacek [Mon, 16 Mar 2015 18:28:26 +0000 (18:28 +0000)]
* cgraph.h (add_new_static_var): Remove declaration.
* varpool.c (add_new_static_var): Remove function.

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

9 years ago * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
jakub [Mon, 16 Mar 2015 16:10:58 +0000 (16:10 +0000)]
* omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
instead of vec<tree> * with vec_alloc and release for args.
Adjust all users.

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