platform/upstream/linaro-gcc.git
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

9 years ago PR middle-end/65431
jakub [Mon, 16 Mar 2015 16:10:17 +0000 (16:10 +0000)]
PR middle-end/65431
* omp-low.c (delete_omp_context): Only splay_tree_delete
reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
is_gimple_omp_oacc contexts.  Don't look at ctx->outer.

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

9 years agoMove cloog.m4 ChangeLog entry to config/ChangeLog
hjl [Mon, 16 Mar 2015 15:28:58 +0000 (15:28 +0000)]
Move cloog.m4 ChangeLog entry to config/ChangeLog

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

9 years ago2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
chefmax [Mon, 16 Mar 2015 11:17:32 +0000 (11:17 +0000)]
2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>

PR sanitizer/64820

gcc/
* cfgexpand.c (align_base): New function.
(alloc_stack_frame_space): Call it.
(expand_stack_vars): Align prev_frame to be sure
data->asan_vec elements aligned properly.

gcc/testsuite/
* c-c++-common/asan/pr64820.c: New test.

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

9 years agogcc/fortran/ChangeLog:
vehre [Mon, 16 Mar 2015 10:29:59 +0000 (10:29 +0000)]
gcc/fortran/ChangeLog:

2015-03-16  Andre Vehreschild  <vehre@gmx.de>

* resolve.c: Prevent segfault on illegal input.

gcc/testsuite/ChangeLog:

2015-03-16  Andre Vehreschild  <vehre@gmx.de>

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

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

9 years ago PR middle-end/65409
ebotcazou [Mon, 16 Mar 2015 10:26:28 +0000 (10:26 +0000)]
PR middle-end/65409
* expr.c (store_field): Do not do a direct block copy if the source is
a PARALLEL with BLKmode.

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

9 years agoAdd PR64895 xfails in i386/fuse-caller-save*.c
vries [Mon, 16 Mar 2015 10:11:11 +0000 (10:11 +0000)]
Add PR64895 xfails in i386/fuse-caller-save*.c

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

* gcc.target/i386/fuse-caller-save-rec.c: Add PR64895 xfail on scans.
* gcc.target/i386/fuse-caller-save-xmm.c: Same.
* gcc.target/i386/fuse-caller-save.c: Same.

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

9 years ago * gcc-interface/utils2.c (gnat_invariant_expr): Return null if the type
ebotcazou [Mon, 16 Mar 2015 09:59:01 +0000 (09:59 +0000)]
* gcc-interface/utils2.c (gnat_invariant_expr): Return null if the type
of the expression ends up being composite.

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

9 years agoRevert 'Use actual_call_used_reg_set to find conflicting regs'
vries [Mon, 16 Mar 2015 09:42:21 +0000 (09:42 +0000)]
Revert 'Use actual_call_used_reg_set to find conflicting regs'

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

PR middle-end/65414
Revert:
2015-03-12  Tom de Vries  <tom@codesourcery.com>

PR rtl-optimization/64895
* lra-lives.c (check_pseudos_live_through_calls): Use
actual_call_used_reg_set instead of call_used_reg_set, if available.

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

9 years ago * gcc-interface/decl.c (is_from_limited_with_of_main): New predicate.
ebotcazou [Mon, 16 Mar 2015 09:40:14 +0000 (09:40 +0000)]
* gcc-interface/decl.c (is_from_limited_with_of_main): New predicate.
(gnat_to_gnu_entity) <E_Subprogram_Type>: Invoke it on return and
parameter types to detect circularities in ASIS mode.
* gcc-interface/trans.c (Attribute_to_gnu): Mention AI05-0151.

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

9 years ago * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Abstract_State>: Do not
ebotcazou [Mon, 16 Mar 2015 09:18:38 +0000 (09:18 +0000)]
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Abstract_State>: Do not
short-circuit the regular handling.

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

9 years ago PR target/63150
amodra [Mon, 16 Mar 2015 03:29:36 +0000 (03:29 +0000)]
PR target/63150
gcc/
* config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
Modify Z->r bswapdi splitter to use dest in place of scratch.
In r->Z and Z->r bswapdi splitter rename word_high, word_low
to word1, word2 and rearrange logic to suit.
(bswapdi2_64bit): Remove early clobber on Z->r alternative.
(bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
(bswapdi2_32bit): Remove early clobber on Z->r alternative.
Add one '?' on r->r.  Modify Z->r splitter to avoid need for
early clobber.
gcc/testsuite/
* gcc.target/powerpc/pr53199.c: Add extra functions.  Revert
2014-12-05 change.

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

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

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

9 years ago * gcc.dg/torture/pr65270-1.c: Add -fno-common to dg-options on
danglin [Sun, 15 Mar 2015 23:49:02 +0000 (23:49 +0000)]
* gcc.dg/torture/pr65270-1.c: Add -fno-common to dg-options on
hppa*-*-hpux*.
* gcc.dg/torture/pr65270-2.c: Likewise.

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

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

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

9 years ago PR fortran/61138
mikael [Sat, 14 Mar 2015 12:23:27 +0000 (12:23 +0000)]
PR fortran/61138
fortran/
* trans-expr.c (gfc_trans_pointer_assignment): Clear DESCRIPTOR_ONLY
field before reusing LSE.
testsuite/
gfortran.dg/pointer_remapping_9.f90: New.

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

9 years ago PR tree-optimization/65369
jakub [Sat, 14 Mar 2015 09:56:39 +0000 (09:56 +0000)]
PR tree-optimization/65369
* tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
(vs - 1) * TYPE_SIZE_UNIT (elem_type).

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

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

9 years ago PR tree-optimization/65418
jakub [Sat, 14 Mar 2015 09:55:41 +0000 (09:55 +0000)]
PR tree-optimization/65418
* tree-ssa-reassoc.c (extract_bit_test_mask): If there
are casts in the first PLUS_EXPR operand, ensure tbias and
*totallowp are in the inner type.

* gcc.c-torture/execute/pr65418-1.c: New test.
* gcc.c-torture/execute/pr65418-2.c: New test.

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

9 years ago PR rtl-optimization/65401
jakub [Sat, 14 Mar 2015 08:54:08 +0000 (08:54 +0000)]
PR rtl-optimization/65401
* combine.c (rtx_equal_for_field_assignment_p): Add widen_x
argument.  If true, adjust_address_nv of x with big-endian
correction for the mode widening to GET_MODE (y).
(make_field_assignment): Don't do MEM mode widening here.
Use MEM_P instead of GET_CODE == MEM.

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

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

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

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

9 years agocompiler: Permit label on fallthrough statement.
ian [Fri, 13 Mar 2015 20:48:15 +0000 (20:48 +0000)]
compiler: Permit label on fallthrough statement.

Test case: https://go-review.googlesource.com/7523 .

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

9 years agolibgo/README: Minor updates.
ian [Fri, 13 Mar 2015 18:53:13 +0000 (18:53 +0000)]
libgo/README: Minor updates.

In particular, mention that libgo should not be stripped.

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

9 years ago * jit-recording.c (dump::write): Also check vasprintf return value.
uros [Fri, 13 Mar 2015 18:09:12 +0000 (18:09 +0000)]
* jit-recording.c (dump::write): Also check vasprintf return value.
(recording::context::add_error_va): Ditto.
(recording::string::from_printf): Ditto.

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

9 years agojit docs: Add "Packaging notes" section
dmalcolm [Fri, 13 Mar 2015 17:23:37 +0000 (17:23 +0000)]
jit docs: Add "Packaging notes" section

gcc/jit/ChangeLog:
* docs/internals/index.rst (Packaging notes): New section.
* docs/_build/texinfo/libgccjit.texi: Regenerate.

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

9 years agoFix typo.
charlet [Fri, 13 Mar 2015 13:48:21 +0000 (13:48 +0000)]
Fix typo.

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

9 years ago2015-03-13 Robert Dewar <dewar@adacore.com>
charlet [Fri, 13 Mar 2015 13:47:24 +0000 (13:47 +0000)]
2015-03-13  Robert Dewar  <dewar@adacore.com>

* exp_unst.adb (Note_Uplevel_Reference): Eliminate duplicate
references.
(Actual_Ref): New function.
(AREC_String): Minor reformatting.
(Unnest_Subprogram): Use Actual_Ref.
* frontend.adb (Frontend): Turn off Unnest_Subprogram_Mode
before call to Instantiate_Bodies.

2015-03-13  Ed Schonberg  <schonberg@adacore.com>

* freeze.adb (Freeze_Profile): If the return type of a function
being frozen is an untagged limited view and the function is
abstract, mark the type as frozen because there is no later
point at which the profile of the subprogram will be elaborated.

2015-03-13  Robert Dewar  <dewar@adacore.com>

* einfo.adb, einfo.ads, atree.adb, atree.ads, atree.h: Add seventh
component to entities. Add new fields Field36-41 and Node36-41.

2015-03-13  Claire Dross  <dross@adacore.com>

* inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Rewrite after review.

2015-03-13  Robert Dewar  <dewar@adacore.com>

* exp_util.adb (Is_Volatile_Reference): Compile time known
value is never considered to be a volatile reference.

2015-03-13  Robert Dewar  <dewar@adacore.com>

* sem_ch3.adb (Analyze_Object_Contract): Suppress "constant
cannot be volatile" for internally generated object (such as
FIRST and LAST constants).

2015-03-13  Ed Schonberg  <schonberg@adacore.com>

* sem_ch12.adb (Validate_Access_Subprogram_Instance): If a
convention is specified for the formal parameter, verify that
the actual has the same convention.
* sem_prag.adb (Set_Convention_From_Pragma): Allow convention
pragma to be set on a generic formal type.
* sem_util.adb (Set_Convention): Ignore within an instance,
as it has already been verified in the generic unit.

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

9 years agogcc/
iverbin [Fri, 13 Mar 2015 13:30:26 +0000 (13:30 +0000)]
gcc/
* varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
the external decls.
libgomp/
* testsuite/libgomp.fortran/declare-target-1.f90: New test.
* testsuite/libgomp.fortran/declare-target-2.f90: New file.

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

9 years ago2015-03-13 Claire Dross <dross@adacore.com>
charlet [Fri, 13 Mar 2015 13:28:15 +0000 (13:28 +0000)]
2015-03-13  Claire Dross  <dross@adacore.com>

* inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Do not inline
subprograms with unconstrained record parameters containing
Itype declarations.
* sinfo.ads Document GNATprove assumption that type should match
in the AST.
* sem_ch6.adb (Analyze_Subprogram_Body_Contract):
Do not check for Refined_Depends and Refined_Globals contracts
as they are optional.

2015-03-13  Ed Schonberg  <schonberg@adacore.com>

* sem_ch12.adb (Instantiate_Type): For a floating-point type,
capture dimension info if any, because the generated subtype
declaration does not come from source and will not process dimensions.
* sem_dim,adb (Analyze_Dimension_Extension_Or_Record_Aggregate):
Do not analyze expressions with an initialization procedure
because aggregates will have been checked at the point of record
declaration.

2015-03-13  Robert Dewar  <dewar@adacore.com>

* aspects.ads, aspects.adb: Add entries for aspect Unimplemented.
* einfo.ads, einfo.adb (Is_Unimplemented): New flag.
* sem_ch13.adb: Add dummy entry for aspect Unimplemented.
* snames.ads-tmpl: Add entry for Name_Unimplemented.

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

9 years ago2015-03-13 Gary Dismukes <dismukes@adacore.com>
charlet [Fri, 13 Mar 2015 13:22:52 +0000 (13:22 +0000)]
2015-03-13  Gary Dismukes  <dismukes@adacore.com>

* style.adb (Missing_Overriding): Apply the
Comes_From_Source test to the Original_Node of the subprogram
node, to handle the case of a null procedure declaration that
has been rewritten as an empty procedure body.

2015-03-13  Robert Dewar  <dewar@adacore.com>

* exp_util.ads: Minor fix to comment.
* sem_ch3.adb (Constrain_Index): Correct pasto from previous
change.

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

9 years ago2015-03-13 Robert Dewar <dewar@adacore.com>
charlet [Fri, 13 Mar 2015 13:18:39 +0000 (13:18 +0000)]
2015-03-13  Robert Dewar  <dewar@adacore.com>

* exp_util.ads, exp_util.adb (Force_Evaluation): Add Related_Id and
Is_Low/High_Bound params.
* sem_ch3.adb (Constrain_Index): Use new Force_Evaluation calling
sequence to simplify generation of FIRST/LAST temps for bounds.

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

9 years ago * include/experimental/system_error: Fix include guard.
redi [Fri, 13 Mar 2015 12:47:21 +0000 (12:47 +0000)]
* include/experimental/system_error: Fix include guard.

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

9 years agolibgomp: Add RTEMS support
sh [Fri, 13 Mar 2015 10:57:07 +0000 (10:57 +0000)]
libgomp: Add RTEMS support

libgomp/ChangeLog

* configure.tgt (*-*-rtems*): Use local-exec TLS model.
* configure.ac (*-*-rtems*): Assume Pthread is supported.
(pthread.h): Check for this header file.
* configure: Regenerate.

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

9 years ago * acinclude.m4: Make --enable-libstdcxx-time=auto work for dragonfly.
redi [Fri, 13 Mar 2015 10:49:08 +0000 (10:49 +0000)]
* acinclude.m4: Make --enable-libstdcxx-time=auto work for dragonfly.
* configure: Regenerate.

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

9 years ago[ARM] PR target/64600 Fix another ICE with -mtune=xscale: properly sign-extend mask...
ktkachov [Fri, 13 Mar 2015 10:48:44 +0000 (10:48 +0000)]
[ARM] PR target/64600 Fix another ICE with -mtune=xscale: properly sign-extend mask during constant splitting

PR target/64600
* config/arm/arm.c (arm_gen_constant, AND case): Use
ARM_SIGN_EXTEND when constructing AND mask.

PR target/64600
* gcc.target/arm/pr64600_1.c: New test.

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

9 years ago2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
thopre01 [Fri, 13 Mar 2015 09:45:48 +0000 (09:45 +0000)]
2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>

   gcc/
    * graph.c (print_graph_cfg): Make function names visible and append
    parenthesis to it.  Also make groups of basic blocks belonging to the
    same function visible.

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

9 years ago2015-03-12 Richard Biener <rguenther@suse.de>
rguenth [Fri, 13 Mar 2015 08:52:51 +0000 (08:52 +0000)]
2015-03-12  Richard Biener  <rguenther@suse.de>

PR middle-end/44563
* tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
to avoid quadratic behavior with inline expansion splitting blocks.
* tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
with the successor if the predecessor will be merged with it.
* tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
entry block with its successor.

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

9 years ago2015-03-10 Richard Biener <rguenther@suse.de>
rguenth [Fri, 13 Mar 2015 08:47:14 +0000 (08:47 +0000)]
2015-03-10  Richard Biener  <rguenther@suse.de>

PR middle-end/44563
* tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
(cleanup_tree_cfg_1): Do not call it.
(execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
(fixup_noreturn_call): Mark the stmt as control altering.
* tree-cfg.c (execute_fixup_cfg): Do not dump the function
here.
(pass_data_fixup_cfg): Produce a dump file.
* tree-ssa-dom.c: Include tree-cfgcleanup.h.
(need_noreturn_fixup): New global.
(pass_dominator::execute): Fixup queued noreturn calls.
(optimize_stmt): Queue calls that became noreturn for fixup.
* tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
* tree-ssa-pre.c: Include tree-cfgcleanup.h.
(el_to_fixup): New global.
(eliminate_dom_walker::before_dom_childre): Queue calls that
became noreturn for fixup.
(eliminate): Fixup queued noreturn calls.
* tree-ssa-propagate.c: Include tree-cfgcleanup.h.
(substitute_and_fold_dom_walker): New member stmts_to_fixup.
(substitute_and_fold_dom_walker::before_dom_children): Queue
alls that became noreturn for fixup.
(substitute_and_fold): Fixup queued noreturn calls.

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

9 years ago * ChangeLog: Fix whitespace.
uros [Fri, 13 Mar 2015 07:33:51 +0000 (07:33 +0000)]
* ChangeLog: Fix whitespace.
* testsuite/ChangeLog: Ditto.

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

9 years ago * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
hubicka [Fri, 13 Mar 2015 06:30:04 +0000 (06:30 +0000)]
* ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
are building; for methods check ODR type of class they belong to if
they may lead to a polymorphic call.
(sem_function::compare_polymorphic_p): Be bit smarter about testing
when function may lead to a polymorphic call.
(sem_function::compare_type_list): Remove.
(sem_variable::equals): Update use of compatible_types_p.
(sem_variable::parse_tree_refs): Remove.
(sem_item_optimizer::filter_removed_items): Do not filter out CXX
cdtor.
* ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
matching here.
(func_checker::compatible_polymorphic_types_p): Break out from ...
(unc_checker::compatible_types_p): ... here.
* ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
Declare.
(unc_checker::compatible_types_p): Update.
* ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
Remove.

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

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

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

9 years ago2015-03-12 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Thu, 12 Mar 2015 23:55:49 +0000 (23:55 +0000)]
2015-03-12  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/65323
* decl.c (check_default_argument): Don't call
maybe_warn_zero_as_null_pointer_constant.

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

9 years agogo/build: cgo works on linux/arm64.
ian [Thu, 12 Mar 2015 17:05:22 +0000 (17:05 +0000)]
go/build: cgo works on linux/arm64.

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

9 years ago * Makefile.am (GOLINK): Add GOCFLAGS.
ian [Thu, 12 Mar 2015 16:44:36 +0000 (16:44 +0000)]
* Makefile.am (GOLINK): Add GOCFLAGS.
* Makefile.in: Rebuild.

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

9 years ago PR go/65404
ian [Thu, 12 Mar 2015 16:41:28 +0000 (16:41 +0000)]
PR go/65404
go/build: cgo works on linux/pcc.

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

9 years ago[PATCH]Remove xfail for wrapped target
renlin [Thu, 12 Mar 2015 15:00:28 +0000 (15:00 +0000)]
[PATCH]Remove xfail for wrapped target

libstdc++-v3/

2015-03-12  Renlin Li  <renlin.li@arm.com>

* testsuite/27_io/ios_base/sync_with_stdio/1.cc: Remove xfail for
wrapped target.

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

9 years agoAdd missing bit to ChangeLog entry for the latest update
hainque [Thu, 12 Mar 2015 14:34:25 +0000 (14:34 +0000)]
Add missing bit to ChangeLog entry for the latest update
in gcc/ada/gcc-interface/trans.c.

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

9 years ago2015-03-12 Olivier Hainque <hainque@adacore.com>
hainque [Thu, 12 Mar 2015 14:24:48 +0000 (14:24 +0000)]
2015-03-12  Olivier Hainque  <hainque@adacore.com>

* gcc-interface/trans.c (Attribute_to_gnu) <Code_Address case>:
On targets where a function symbol designates a function descriptor,
fetch the function code address from the descriptor.

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

9 years agoFix ChangeLog entries from previous commit
ktkachov [Thu, 12 Mar 2015 13:41:50 +0000 (13:41 +0000)]
Fix ChangeLog entries from previous commit

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

9 years ago[simplify-rtx] PR 65235: Calculate element size correctly when simplifying (vec_selec...
ktkachov [Thu, 12 Mar 2015 13:40:50 +0000 (13:40 +0000)]
[simplify-rtx] PR 65235: Calculate element size correctly when simplifying (vec_select (vec_concat (const_int) (...)) [...])

PR rtl-optimization 65235
* simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
When first element of vec_concat is const_int, calculate its size
using second element.

PR rtl-optimization 65235
* gcc.target/aarch64/pr65235_1.c: New test.

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

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

PR middle-end/65270
* fold-const.c (operand_equal_p): Fix ordering of resetting
OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.

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

9 years agoS/390: Hotpatching fixes.
krebbel [Thu, 12 Mar 2015 11:13:40 +0000 (11:13 +0000)]
S/390: Hotpatching fixes.

2015-03-02  Dominik Vogt  <vogt@linux.vnet.ibm.com>

    * config/s390/s390.c (s390_reorg): Move code to output nops after label
    to s390_reorg ().
    (s390_asm_output_function_label): Likewise.
    * config/s390/s390.c (s390_asm_output_function_label):
    Fix function label alignment with -mhtopatch.
    * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
    UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
    ("nop_2_byte"): New define_insn.
    ("nop_4_byte"): Likewise.
    ("nop_6_byte"): Likewise.
    * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
    * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.

2015-03-02  Dominik Vogt  <vogt@linux.vnet.ibm.com>

    * gcc.target/s390/hotpatch-21.c: New test for hotpatch alignment.
    * gcc.target/s390/hotpatch-22.c: Likewise.
    * gcc.target/s390/hotpatch-23.c: Likewise.
    * gcc.target/s390/hotpatch-24.c: Likewise.
    * gcc.target/s390/hotpatch-2.c: Also check hotpatch alignment.
    * gcc.target/s390/hotpatch-1.c: Update expected output.
    * gcc.target/s390/hotpatch-2.c: Likewise.
    * gcc.target/s390/hotpatch-3.c: Likewise.
    * gcc.target/s390/hotpatch-4.c: Likewise.
    * gcc.target/s390/hotpatch-5.c: Likewise.
    * gcc.target/s390/hotpatch-6.c: Likewise.
    * gcc.target/s390/hotpatch-7.c: Likewise.
    * gcc.target/s390/hotpatch-8.c: Likewise.
    * gcc.target/s390/hotpatch-9.c: Likewise.
    * gcc.target/s390/hotpatch-10.c: Likewise.
    * gcc.target/s390/hotpatch-11.c: Likewise.
    * gcc.target/s390/hotpatch-12.c: Likewise.
    * gcc.target/s390/hotpatch-13.c: Likewise.
    * gcc.target/s390/hotpatch-14.c: Likewise.
    * gcc.target/s390/hotpatch-15.c: Likewise.
    * gcc.target/s390/hotpatch-16.c: Likewise.
    * gcc.target/s390/hotpatch-17.c: Likewise.
    * gcc.target/s390/hotpatch-18.c: Likewise.
    * gcc.target/s390/hotpatch-19.c: Likewise.

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

9 years agogcc/
ienkovich [Thu, 12 Mar 2015 09:53:36 +0000 (09:53 +0000)]
gcc/

PR target/65103
* config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
register.

gcc/testsuite/

PR target/65103
* gcc.target/i386/pr65103-1.c: New.

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