platform/upstream/linaro-gcc.git
9 years ago PR rtl-optimization/63483
uros [Fri, 10 Oct 2014 17:36:21 +0000 (17:36 +0000)]
PR rtl-optimization/63483
* alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
references when alignment ANDs are involved.
(write_dependence_p): Ditto.
(may_alias_p): Ditto.

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

9 years ago * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
mpolacek [Fri, 10 Oct 2014 17:19:25 +0000 (17:19 +0000)]
* asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
* doc/invoke.texi: Document -fsanitize=object-size.
* flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
or it into SANITIZE_UNDEFINED.
* gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
* internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
* internal-fn.def (UBSAN_OBJECT_SIZE): Define.
* opts.c (common_handle_option): Handle -fsanitize=object-size.
* ubsan.c: Include tree-object-size.h.
(ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
(ubsan_expand_bounds_ifn): Use false instead of 0.
(ubsan_expand_objsize_ifn): New function.
(instrument_object_size): New function.
(pass_ubsan::execute): Add object size instrumentation.
* ubsan.h (ubsan_expand_objsize_ifn): Declare.
testsuite/
* c-c++-common/ubsan/object-size-1.c: New test.
* c-c++-common/ubsan/object-size-2.c: New test.
* c-c++-common/ubsan/object-size-3.c: New test.
* c-c++-common/ubsan/object-size-4.c: New test.
* c-c++-common/ubsan/object-size-5.c: New test.
* c-c++-common/ubsan/object-size-6.c: New test.
* c-c++-common/ubsan/object-size-7.c: New test.
* c-c++-common/ubsan/object-size-8.c: New test.
* c-c++-common/ubsan/object-size-9.c: New test.
* g++.dg/ubsan/object-size-1.C: New test.
* gcc.dg/ubsan/object-size-9.c: New test.

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

9 years ago * testsuite/Makefile.in: Regenerate.
redi [Fri, 10 Oct 2014 16:14:59 +0000 (16:14 +0000)]
* testsuite/Makefile.in: Regenerate.

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

9 years ago PR libstdc++/49561
redi [Fri, 10 Oct 2014 16:14:52 +0000 (16:14 +0000)]
PR libstdc++/49561
* acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_CXX11_ABI): Define.
* configure.ac: Use GLIBCXX_ENABLE_LIBSTDCXX_CXX11_ABI.
* configure: Regenerate.
* include/Makefile.am (stamp-cxx11-abi): New target.
(c++config.h): Set _GLIBCXX_USE_CXX11_ABI macro.
* include/Makefile.in: Regenerate.
* include/bits/c++config: Add _GLIBCXX_USE_CXX11_ABI placeholder and
define _GLIBCXX_DEFAULT_ABI_TAG.
* include/bits/list.tcc (list::emplace(const_iterator, _Args&...)):
Increment size.
(list::emplace(const_iterator, const value_type&)): Likewise.
(list::merge(list&), list::merge(list&, _StrictWeakOrdering)): Adjust
list sizes.
* include/bits/stl_list.h (_List_base, list): Add ABI tag macro.
(_List_base::_M_size): New data member in cxx11 ABI mode.
(_List_base::_S_distance(_List_node_base*, _List_node_base*)): New
function.
(_List_base::_M_get_size(), _List_base::_M_set_size(size_t),
_List_base::_M_inc_size(size_t), _List_base::_M_dec_size(size_t),
_List_base::_M_distance, _List_base::_M_node_count): New functions for
accessing list size correctly for the ABI mode.
(_List_base::_List_base(_List_base&&)): Copy size and reset source.
(_List_base::_M_init()): Initialize size member.
(list::size()): Use _List_base::_M_node_count.
(list::swap(list&)): Swap sizes.
(list::splice(iterator, list&)): Update sizes.
(list::splice(iterator, list&, iterator)): Likewise.
(list::insert(iterator, const value_type&)): Update size.
(list::insert(iterator, _Args&&...)): Likewise.
(list::_M_erase(iterator)): Likewise.
* testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
Adjust.
* testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
Adjust.
* testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
Adjust.
* testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
Adjust.
* testsuite/ext/profile/mutex_extensions_neg.cc: Adjust.
# End of auto-generated commit message
Fix date and whitespace in libstdc++-v3/ChangeLog

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

9 years agoPR target/63404
rth [Fri, 10 Oct 2014 15:56:07 +0000 (15:56 +0000)]
PR target/63404

  * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
  Restrict the set of expressions we're willing to move.

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

9 years ago * ira.c (struct equivalence): Promote INIT_INSNs field to
law [Fri, 10 Oct 2014 15:47:19 +0000 (15:47 +0000)]
    * ira.c (struct equivalence): Promote INIT_INSNs field to
        an rtx_insn_list.  Add comments.
        (no_equiv): Promote LIST to an rtx_insn_list.  Update
        testing for and creating the special marker.  Use methods
        to extract the insn and next pointers.  Promote INSN to an
        rtx_insn.
        (update_equiv_regs): Update test for special marker in the
        INIT_INSNs list.

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

9 years ago PR libstdc++/49561
redi [Fri, 10 Oct 2014 15:33:57 +0000 (15:33 +0000)]
PR libstdc++/49561
* acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_CXX11_ABI): Define.
* configure.ac: Use GLIBCXX_ENABLE_LIBSTDCXX_CXX11_ABI.
* configure: Regenerate.
* include/Makefile.am (stamp-cxx11-abi): New target.
(c++config.h): Set _GLIBCXX_USE_CXX11_ABI macro.
* include/Makefile.in: Regenerate.
* include/bits/c++config: Add _GLIBCXX_USE_CXX11_ABI placeholder and
define _GLIBCXX_DEFAULT_ABI_TAG.
* include/bits/list.tcc (list::emplace(const_iterator, _Args&...)):
Increment size.
(list::emplace(const_iterator, const value_type&)): Likewise.
(list::merge(list&), list::merge(list&, _StrictWeakOrdering)): Adjust
list sizes.
* include/bits/stl_list.h (_List_base, list): Add ABI tag macro.
(_List_base::_M_size): New data member in cxx11 ABI mode.
(_List_base::_S_distance(_List_node_base*, _List_node_base*)): New
function.
(_List_base::_M_get_size(), _List_base::_M_set_size(size_t),
_List_base::_M_inc_size(size_t), _List_base::_M_dec_size(size_t),
_List_base::_M_distance, _List_base::_M_node_count): New functions for
accessing list size correctly for the ABI mode.
(_List_base::_List_base(_List_base&&)): Copy size and reset source.
(_List_base::_M_init()): Initialize size member.
(list::size()): Use _List_base::_M_node_count.
(list::swap(list&)): Swap sizes.
(list::splice(iterator, list&)): Update sizes.
(list::splice(iterator, list&, iterator)): Likewise.
(list::insert(iterator, const value_type&)): Update size.
(list::insert(iterator, _Args&&...)): Likewise.
(list::_M_erase(iterator)): Likewise.
* testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
Adjust.
* testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
Adjust.
* testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
Adjust.
* testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
Adjust.
* testsuite/ext/profile/mutex_extensions_neg.cc: Adjust.

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

9 years agoMinor reformatting.
charlet [Fri, 10 Oct 2014 14:50:48 +0000 (14:50 +0000)]
Minor reformatting.

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

9 years ago2014-10-10 Robert Dewar <dewar@adacore.com>
charlet [Fri, 10 Oct 2014 14:49:04 +0000 (14:49 +0000)]
2014-10-10  Robert Dewar  <dewar@adacore.com>

* freeze.adb, sem_attr.adb: Minor reformatting.

2014-10-10  Johannes Kanig  <kanig@adacore.com>

* a-cfdlli.ads, a-cfhama.ads, a-cfhase.ads, a-cforma.ads,
a-cforse.ads, a-cofove.ads: add "Default_Initial_Condition"
to container type.

2014-10-10  Vincent Celier  <celier@adacore.com>

* prj-conf.adb (Do_Autoconf): In Codepeer mode, do not try to get
any configuration switches from the project file.

2014-10-10  Ed Schonberg  <schonberg@adacore.com>

* sem_ch12.adb (Build_Wrapper): Renamed as Build_Operator_Wrapper.
(Build_Function_Wrapper): New function, to construct a wrapper
function for actuals that are functions with an arbitrary
number of parameters. Used in GNATProve mode to simplify proof
propagation in instantiations.

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

9 years ago2014-10-10 Robert Dewar <dewar@adacore.com>
charlet [Fri, 10 Oct 2014 14:45:27 +0000 (14:45 +0000)]
2014-10-10  Robert Dewar  <dewar@adacore.com>

* freeze.adb, gnat1drv.adb, sem_ch13.adb: Minor reformatting and
code clean up.

2014-10-10  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_res.adb (Is_OK_Volatile_Context): Allow
a volatile object reference to appear as the expression of a
type conversion.

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

9 years ago2014-10-10 Ed Schonberg <schonberg@adacore.com>
charlet [Fri, 10 Oct 2014 14:42:22 +0000 (14:42 +0000)]
2014-10-10  Ed Schonberg  <schonberg@adacore.com>

* sem_ch13.adb (Analyze_Aspect_Specifications, Library_Unit_Aspects):
Aspect specification is legal on a local instantiation of a
library-level generic unit.

2014-10-10  Gary Dismukes  <dismukes@adacore.com>

* gnat1drv.adb (Adjust_Global_Switches): Set Front_End_Inlining
if inlining has been enabled via -gnatn and the target is not GCC.

2014-10-10  Ed Schonberg  <schonberg@adacore.com>

* freeze.adb (Freeze_Entity): Freezing a subprogram does
not always freeze its profile. In particular, an attribute
reference that takes the access type does not freeze the types
of the formals.

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

9 years ago2014-10-10 Robert Dewar <dewar@adacore.com>
charlet [Fri, 10 Oct 2014 14:39:14 +0000 (14:39 +0000)]
2014-10-10  Robert Dewar  <dewar@adacore.com>

* errout.adb (Adjust_Name_Case): New procedure.
(Set_Msg_Node): Use Adjust_Name_Case.
* errout.ads (Adjust_Name_Case): New procedure.
* exp_intr.adb (Add_Source_Info): Minor code reorganization
(use Ekind_In).
(Write_Entity_Name): Use Errout.Adjust_Name_Case.
* sem_prag.adb (Is_Non_Significant_Pragma_Reference): Review
and fix up entries in Sig_Flags, and correct logical errors in
function itself.
* sprint.adb (Sprint_Node_Actual): Properly print string for
raise statement.

2014-10-10  Ed Schonberg  <schonberg@adacore.com>

* sem_ch3.adb (Analyze_Object_Declaration): For an object of an
anonymous array type with delayed aspects, defer freezing of
type until object itself is frozen.
* freeze.adb (Freeze_Entity): When freezing an object of an
anonymous array type with delayed aspects, remove freeze node of
object after freezing type, to prevent out-of-order elaboration
in the back-end. The initialization call for the object has
already been constructed when expanding the object declaration.

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

9 years ago2014-10-10 Robert Dewar <dewar@adacore.com>
charlet [Fri, 10 Oct 2014 14:36:07 +0000 (14:36 +0000)]
2014-10-10  Robert Dewar  <dewar@adacore.com>

* exp_intr.adb (Write_Entity_Name): Moved to outer level
(Write_Entity_Name): Properly handle operator names
(Expand_Source_Info): New procedure.
* exp_intr.ads (Add_Source_Info): New procedure.

2014-10-10  Robert Dewar  <dewar@adacore.com>

* butil.ads: Minor reformatting.
* sem_ch5.adb: Code clean up.

2014-10-10  Robert Dewar  <dewar@adacore.com>

* exp_ch11.adb (Expand_N_Raise_Statement): Handle
Prefix_Exception_Messages.
* opt.adb: Handle new flags Prefix_Exception_Message[_Config].
* opt.ads: New flags Prefix_Exception_Message[_Config].
* par-prag.adb: New dummy entry for pragma Prefix_Exception_Messages.
* snames.ads-tmpl: Add entries for new pragma Prefix_Exception_Messages.
* sem_prag.adb: Implement new pragma Prefix_Exception_Messages
* gnat_rm.texi: Document pragma Prefix_Exception_Messages.

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

9 years ago2014-10-10 Gary Dismukes <dismukes@adacore.com>
charlet [Fri, 10 Oct 2014 14:32:30 +0000 (14:32 +0000)]
2014-10-10  Gary Dismukes  <dismukes@adacore.com>

* sinfo.ads, gnat_ugn.texi, a-except.adb, a-except-2005.adb,
raise-gcc.c Spelling changes (prolog => prologue, epilog => epilogue).

2014-10-10  Ed Schonberg  <schonberg@adacore.com>

* sem_ch5.adb (Is_Wrapped_In_Block): Handle properly blocks that
contain pragmas generated for loop invariants and type predicates.
Clarify use of this subprogram.

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

9 years ago2014-10-10 Yannick Moy <moy@adacore.com>
charlet [Fri, 10 Oct 2014 14:00:07 +0000 (14:00 +0000)]
2014-10-10  Yannick Moy  <moy@adacore.com>

* sem_prag.adb (Analyze_Global_Item): Accept formal objects in Global
contracts.
* errout.adb, errout.ads (SPARK_Msg_NE): Issue error unless
SPARK_Mode is Off.

2014-10-10  Vadim Godunko  <godunko@adacore.com>

* a-stwima.adb (To_Sequence): Compute size of result array.

2014-10-10  Javier Miranda  <miranda@adacore.com>

* gnat_ugn.texi (Interfacing with C++ at the Class Level): Update the
sources of the example to avoid a warning when the Ada files are
automatically generated by the binding generator.

2014-10-10  Ed Schonberg  <schonberg@adacore.com>

* sem_attr.adb (Resolve_Attribute, case 'Update): Set
Do_Range_Check on the expression of a record component
association when needed, as is done for array components, when
the corresponding type is a scalar type.

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

9 years ago2014-10-10 Gary Dismukes <dismukes@adacore.com>
charlet [Fri, 10 Oct 2014 13:57:55 +0000 (13:57 +0000)]
2014-10-10  Gary Dismukes  <dismukes@adacore.com>

* a-coinho-shared.adb: Minor typo fix.
* prj-env.ads: Minor reformatting.

2014-10-10  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_res.adb (Resolve_String_Literal): Do not
generate a string literal subtype for the default expression of
a formal parameter in GNATprove mode.

2014-10-10  Yannick Moy  <moy@adacore.com>

* errout.adb (SPARK_Msg_N): Issue error unless SPARK_Mode is Off.

2014-10-10  Ed Schonberg  <schonberg@adacore.com>

* exp_ch5.adb (Expand_Formal_Container_Element_Loop): Analyze
declaration for loop parameter before rest of loop, and set
entity kind to prevent assignments to it in the user code.
* sem_ch3.adb (Analyze_Object_Contract): No contracts apply to the
loop parameter in an element iteration over o formal container.

2014-10-10  Robert Dewar  <dewar@adacore.com>

* gnat_ugn.texi: Document use of user-level routines to handle
e.g. col major arrays.

2014-10-10  Doug Rupp  <rupp@adacore.com>

* s-osinte-android.adb: Fix misspelling.
* gsocket.h: Tweak the Android quirks.

2014-10-10  Robert Dewar  <dewar@adacore.com>

* errout.ads (SPARK_Msg_N): Fix spec to match change in body.

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

9 years agogcc/testsuite/
chefmax [Fri, 10 Oct 2014 13:41:13 +0000 (13:41 +0000)]
gcc/testsuite/

2014-10-10  Max Ostapenko  <m.ostapenko@partner.samsung.com>

* lib/asan-dg.exp (asan_link_flags): Save ld_library_path.
(asan_finish): Remove restore_ld_library_path_env_vars.
Restore ld_library_path with saved value. Restore LD_LIBRARY_PATH
related env variables by calling set_ld_library_path_env_vars.
* lib/tsan-dg.exp (tsan_link_flags): Save ld_library_path.
(tsan_finish): Remove restore_ld_library_path_env_vars.
Restore ld_library_path with saved value. Restore LD_LIBRARY_PATH
related env variables by calling set_ld_library_path_env_vars.
* lib/ubsan-dg.exp (ubsan_link_flags): Save ld_library_path.
(ubsan_finish): Remove restore_ld_library_path_env_vars.
Restore ld_library_path with saved value. Restore LD_LIBRARY_PATH
related env variables by calling set_ld_library_path_env_vars.

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

9 years ago2014-10-10 Robert Dewar <dewar@adacore.com>
charlet [Fri, 10 Oct 2014 13:28:21 +0000 (13:28 +0000)]
2014-10-10  Robert Dewar  <dewar@adacore.com>

* sem_ch13.adb: Minor code reorganization.

2014-10-10  Pat Rogers  <rogers@adacore.com>

* gnat_rm.texi: Text now indicates pragma No_Run_Time is not
for users.

2014-10-10  Vadim Godunko  <godunko@adacore.com>

* a-coinho-shared.adb: Add minor comment.
* a-stzmap.adb (To_Sequence): Compute size of result array.

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

9 years ago2014-10-10 Javier Miranda <miranda@adacore.com>
charlet [Fri, 10 Oct 2014 13:23:22 +0000 (13:23 +0000)]
2014-10-10  Javier Miranda  <miranda@adacore.com>

* exp_ch3.adb (Build_Init_Procedure): Complete the condition of an
if-stmt to match its current documentation.

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

9 years ago[AArch64] Add --enable-fix-cortex-a53-835769 configure-time option
ktkachov [Fri, 10 Oct 2014 12:31:51 +0000 (12:31 +0000)]
[AArch64] Add --enable-fix-cortex-a53-835769 configure-time option

* configure.ac: Add --enable-fix-cortex-a53-835769 option.
* configure: Regenerate.
* config/aarch64/aarch64.c (aarch64_override_options): Handle
TARGET_FIX_ERR_A53_835769_DEFAULT.
* config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
value to 2.
* doc/install.texi (aarch64*-*-*): Document
new --enable-fix-cortex-a53-835769 option.

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

9 years ago[AArch64] Implement workaround for ARM Cortex-A53 erratum 835769
ktkachov [Fri, 10 Oct 2014 12:28:45 +0000 (12:28 +0000)]
[AArch64] Implement workaround for ARM Cortex-A53 erratum 835769

* config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
(ADJUST_INSN_LENGTH): Define.
* config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
* config/aarch64/aarch64.c (is_mem_p): New function.
(is_memory_op): Likewise.
(aarch64_prev_real_insn): Likewise.
(is_madd_op): Likewise.
(dep_between_memop_and_curr): Likewise.
(aarch64_madd_needs_nop): Likewise.
(aarch64_final_prescan_insn): Likewise.
* doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
and -mno-fix-cortex-a53-835769 options.

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

9 years ago2014-10-10 Robert Dewar <dewar@adacore.com>
charlet [Fri, 10 Oct 2014 12:21:19 +0000 (12:21 +0000)]
2014-10-10  Robert Dewar  <dewar@adacore.com>

* sem_ch7.adb, einfo.adb, einfo.ads, sem_prag.adb, sem_ch12.adb,
freeze.adb, sem_util.adb, sem_res.adb, exp_ch6.adb, exp_ch13.adb,
sem_ch6.adb, sem_cat.adb, sem_disp.adb
(Is_Subprogram_Or_Generic_Subprogram): New primitive. Use this primitive
throughout where appropriate.

2014-10-10  Bob Duff  <duff@adacore.com>

* a-coinho-shared.ads: Minor reformatting.
* s-traceb.adb: Minor clean up.

2014-10-10  Robert Dewar  <dewar@adacore.com>

* ali.adb (Scan_ALI): Read and process new GP flag on ALI P line.
* ali.ads (GNATprove_Mode): New component in ALI table.
(GNATprove_Mode_Specified): New global.
* gnatbind.adb (Gnatbind): Give fatal error if any file compiled
in GNATProve mode.
* lib-writ.ads, lib-writ.adb (GP): New flag on P line for
GNATProve_Mode.

2014-10-10  Javier Miranda  <miranda@adacore.com>

* exp_ch3.adb (Build_Init_Procedure): Adding assertion.
(Build_Init_Statement): Ensure that statements
associated with the parent components are located at the beginning
of the returned list of statements.

2014-10-10  Ed Schonberg  <schonberg@adacore.com>

* sem_ch13.adb (Inherit_Aspects_At_Freeze_Node): If the full
view of a private type T that has a type invariant is a scalar
or constrained array type, the base type created for the full
view has the same type invariant.

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

9 years ago2014-10-10 Robert Dewar <dewar@adacore.com>
charlet [Fri, 10 Oct 2014 12:18:17 +0000 (12:18 +0000)]
2014-10-10  Robert Dewar  <dewar@adacore.com>

* exp_util.ads, sem_ch12.adb, exp_util.adb, i-fortra.ads: Minor code
reorganization.

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

9 years ago PR tree-optimization/63464
jakub [Fri, 10 Oct 2014 12:15:30 +0000 (12:15 +0000)]
PR tree-optimization/63464
* tree-switch-conversion.c (struct case_bit_test): Remove
hi and lo fields, add wide_int mask field.
(emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
hi/lo fields into wide_int mask operations, optimize by pretending
minval to be 0 if maxval is small enough.
(process_switch): Adjust caller.

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

9 years ago2014-10-10 Richard Biener <rguenther@suse.de>
rguenth [Fri, 10 Oct 2014 11:17:13 +0000 (11:17 +0000)]
2014-10-10  Richard Biener  <rguenther@suse.de>

PR tree-optimization/63379
* tree-vect-slp.c (vect_get_constant_vectors): Do not compute
a neutral operand for min/max when it is not a reduction chain.

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

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

9 years ago PR fortran/59488
jakub [Fri, 10 Oct 2014 11:08:37 +0000 (11:08 +0000)]
PR fortran/59488
* trans-openmp.c (gfc_omp_predetermined_sharing): Return
OMP_CLAUSE_DEFAULT_SHARED for parameters or vtables.

* gfortran.dg/gomp/pr59488-1.f90: New test.
* gfortran.dg/gomp/pr59488-2.f90: New test.

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

9 years ago2014-10-10 Richard Biener <rguenther@suse.de>
rguenth [Fri, 10 Oct 2014 11:04:39 +0000 (11:04 +0000)]
2014-10-10  Richard Biener  <rguenther@suse.de>

PR tree-optimization/63476
* tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
(BB_LIVE_VOP_ON_EXIT): New define.
(create_expression_by_pieces): Assign VUSEs to stmts.
(compute_avail): Track BB_LIVE_VOP_ON_EXIT.
(pass_pre::execute): Assert virtual SSA form is up-to-date
after insertion.

* g++.dg/torture/pr63476.C: New testcase.

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

9 years ago * lra-assigns.c (assign_by_spills): Fix thinko in previous change.
ebotcazou [Fri, 10 Oct 2014 08:27:52 +0000 (08:27 +0000)]
* lra-assigns.c (assign_by_spills): Fix thinko in previous change.

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

9 years ago * lra-assigns.c (assign_by_spills): Error out on spill failure.
ebotcazou [Fri, 10 Oct 2014 08:09:39 +0000 (08:09 +0000)]
* lra-assigns.c (assign_by_spills): Error out on spill failure.

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

9 years ago2014-10-10 Tobias Burnus <burnus@net-b.de>
burnus [Fri, 10 Oct 2014 06:00:26 +0000 (06:00 +0000)]
2014-10-10  Tobias Burnus  <burnus@net-b.de>

gcc/fortran/
        * gfortran.h (gfc_set_implicit_none): Update prototype.
        * symbol.c (gfc_set_implicit_none): Take and
        use error location. Move diagnostic from here to ...
        * decl.c (gfc_match_implicit_none): ... here. And
        update call. Handle empty implicit-none-spec.
        (gfc_match_implicit): Handle statement-separator ";".

gcc/testsuite/
        * gfortran.dg/implicit_16.f90: New.

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

9 years ago PR c++/63207
jason [Fri, 10 Oct 2014 03:28:18 +0000 (03:28 +0000)]
PR c++/63207
* semantics.c (outer_var_p): Non-static.
(process_outer_var_ref): Split out from finish_id_expression.
* pt.c (tsubst_copy_and_build): Call them.
* cp-tree.h: Declare them.

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

9 years agoDaily bump.
gccadmin [Fri, 10 Oct 2014 00:16:17 +0000 (00:16 +0000)]
Daily bump.

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

9 years agocompiler: Permit "for range x" clauses.
ian [Thu, 9 Oct 2014 23:56:07 +0000 (23:56 +0000)]
compiler: Permit "for range x" clauses.

Fixes Issue 8370.

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

9 years ago/cp
paolo [Thu, 9 Oct 2014 19:22:53 +0000 (19:22 +0000)]
/cp
2014-10-09  Paolo Carlini  <paolo.carlini@oracle.com>

* semantics.c (check_constexpr_ctor_body_1): New.
(check_constexpr_ctor_body): Use it; add bool parameter.
(build_data_member_initialization): Handle BIND_EXPR and
USING_STMT in the main conditional.
(build_constexpr_constructor_member_initializers): Do not
handle BIND_EXPR here.
(constexpr_fn_retval): Handle BIND_EXPR in the switch.
(massage_constexpr_body): Don't do it here.
* parser.c (cp_parser_ctor_initializer_opt_and_function_body):
Adjust check_constexpr_ctor_body call.
(cp_parser_compound_statement): Do not pedwarn for compound-statement
in constexpr function in C++14 mode.
* cp-tree.h (check_constexpr_ctor_body): Update declaration.

/testsuite
2014-10-09  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/cpp0x/constexpr-using3.C: New.
* g++.dg/cpp1y/constexpr-local-compound1.C: Likewise.
* g++.dg/cpp1y/constexpr-type-def-compound1.C: Likewise.
* g++.dg/cpp1y/constexpr-local1.C: Extend.
* g++.dg/cpp0x/constexpr-compound.C: Specify expected error.

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

9 years agoUpdate soft-fp from glibc.
jsm28 [Thu, 9 Oct 2014 18:21:30 +0000 (18:21 +0000)]
Update soft-fp from glibc.

This patch updates libgcc's copy of soft-fp from glibc, adding a
testcase for a bug fix this brings in.

Bootstrapped with no regressions on x86_64-unknown-linux-gnu.

libgcc:
* soft-fp/double.h: Update from glibc.
* soft-fp/eqdf2.c: Likewise.
* soft-fp/eqsf2.c: Likewise.
* soft-fp/eqtf2.c: Likewise.
* soft-fp/extenddftf2.c: Likewise.
* soft-fp/extended.h: Likewise.
* soft-fp/extendsfdf2.c: Likewise.
* soft-fp/extendsftf2.c: Likewise.
* soft-fp/extendxftf2.c: Likewise.
* soft-fp/gedf2.c: Likewise.
* soft-fp/gesf2.c: Likewise.
* soft-fp/getf2.c: Likewise.
* soft-fp/ledf2.c: Likewise.
* soft-fp/lesf2.c: Likewise.
* soft-fp/letf2.c: Likewise.
* soft-fp/op-1.h: Likewise.
* soft-fp/op-2.h: Likewise.
* soft-fp/op-4.h: Likewise.
* soft-fp/op-8.h: Likewise.
* soft-fp/op-common.h: Likewise.
* soft-fp/quad.h: Likewise.
* soft-fp/single.h: Likewise.
* soft-fp/soft-fp.h: Likewise.
* soft-fp/unorddf2.c: Likewise.
* soft-fp/unordsf2.c: Likewise.
* soft-fp/unordtf2.c: Likewise.
* config/c6x/eqd.c (__c6xabi_eqd): Update call to FP_CMP_EQ_D.
* config/c6x/eqf.c (__c6xabi_eqf): Update call to FP_CMP_EQ_S.
* config/c6x/ged.c (__c6xabi_ged): Update call to FP_CMP_D.
* config/c6x/gef.c (__c6xabi_gef): Update call to FP_CMP_S.
* config/c6x/gtd.c (__c6xabi_gtd): Update call to FP_CMP_D.
* config/c6x/gtf.c (__c6xabi_gtf): Update call to FP_CMP_S.
* config/c6x/led.c (__c6xabi_led): Update call to FP_CMP_D.
* config/c6x/lef.c (__c6xabi_lef): Update call to FP_CMP_S.
* config/c6x/ltd.c (__c6xabi_ltd): Update call to FP_CMP_D.
* config/c6x/ltf.c (__c6xabi_ltf): Update call to FP_CMP_S.

gcc/testsuite:
* gcc.dg/torture/float128-extendxf-underflow.c: New test.

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

9 years ago PR libstdc++/61909
redi [Thu, 9 Oct 2014 18:17:28 +0000 (18:17 +0000)]
PR libstdc++/61909
* include/std/functional (__is_location_invariant): Treat all
trivially copyable types as location invariant.

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

9 years ago PR libstdc++/63322
redi [Thu, 9 Oct 2014 18:17:23 +0000 (18:17 +0000)]
PR libstdc++/63322
* include/std/atomic (atomic): Add assertion for trivially copyable.
* testsuite/29_atomics/atomic/60695.cc: Adjust line number.

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

9 years ago * doc/xml/manual/status_cxx2011.xml: Update.
redi [Thu, 9 Oct 2014 18:17:07 +0000 (18:17 +0000)]
* doc/xml/manual/status_cxx2011.xml: Update.
* doc/html/manual/status.html: Regenerate.

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

9 years ago PR c++/63309
jason [Thu, 9 Oct 2014 18:05:29 +0000 (18:05 +0000)]
PR c++/63309
* parser.c (cp_parser_class_head): push_template_decl for members
of templates, too.

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

9 years ago PR c++/63415
jason [Thu, 9 Oct 2014 18:05:23 +0000 (18:05 +0000)]
PR c++/63415
* pt.c (value_dependent_expression_p) [CONSTRUCTOR]: Check the type.
(iterative_hash_template_arg): Likewise.

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

9 years ago PR c++/63437
jason [Thu, 9 Oct 2014 18:05:17 +0000 (18:05 +0000)]
PR c++/63437
* cp-tree.h (REF_PARENTHESIZED_P): Also allow INDIRECT_REF.
* semantics.c (force_paren_expr): And set it.
* typeck.c (check_return_expr): And handle it.

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

9 years agoFix r216010 fallout
trippels [Thu, 9 Oct 2014 17:52:00 +0000 (17:52 +0000)]
Fix r216010 fallout

This fixes fallout from r216010, which causes Firefox build failures.
Just move the gcc_assert below the new if statement.

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

9 years ago2014-10-09 Marc Glisse <marc.glisse@inria.fr>
glisse [Thu, 9 Oct 2014 13:53:54 +0000 (13:53 +0000)]
2014-10-09  Marc Glisse  <marc.glisse@inria.fr>

gcc/cp/
* decl.c (grokdeclarator): constexpr only implies const in C++11.
gcc/testsuite/
* g++.dg/cpp0x/constexpr-52892-1.C: Error on missing const in C++14.
* g++.dg/cpp0x/constexpr-array-ptr7.C: Likewise.
* g++.dg/cpp0x/constexpr-diag1.C: Add const.
* g++.dg/cpp0x/constexpr-diag3.C: Likewise.
* g++.dg/cpp0x/constexpr-ex1.C: Likewise.
* g++.dg/cpp0x/constexpr-ex2.C: Likewise.
* g++.dg/cpp0x/constexpr-ex4.C: Likewise.
* g++.dg/cpp0x/constexpr-initlist.C: Likewise.
* g++.dg/cpp0x/constexpr-ptrmem.C: Likewise.
* g++.dg/cpp0x/constexpr-ptrsub.C: Likewise.
* g++.dg/cpp0x/constexpr-ref4.C: Likewise.
* g++.dg/cpp0x/constexpr-static6.C: Likewise.

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

9 years ago2014-10-09 Richard Biener <rguenther@suse.de>
rguenth [Thu, 9 Oct 2014 12:45:07 +0000 (12:45 +0000)]
2014-10-09  Richard Biener  <rguenther@suse.de>

PR tree-optimization/63380
* tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
may trap.

* gcc.dg/torture/pr63380-1.c: New testcase.
* gcc.dg/torture/pr63380-2.c: Likewise.

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

9 years ago * f95-lang.c (gfc_init_builtin_functions): Add more floating-point
fxcoudert [Thu, 9 Oct 2014 09:47:25 +0000 (09:47 +0000)]
* f95-lang.c (gfc_init_builtin_functions): Add more floating-point
built-ins.
* mathbuiltins.def (OTHER_BUILTIN): Define built-ins for logb,
remainder, rint and signbit.
* trans-decl.c (save_fp_state, restore_fp_state): Move to
trans-intrinsic.c
(gfc_generate_function_code): Use new names for these two functions.
* trans-expr.c (gfc_conv_function_expr): Catch IEEE functions to
emit code from the front-end.
* trans-intrinsic.c (gfc_save_fp_state, gfc_restore_fp_state,
conv_ieee_function_args, conv_intrinsic_ieee_builtin,
conv_intrinsic_ieee_is_normal, conv_intrinsic_ieee_is_negative,
conv_intrinsic_ieee_logb_rint, conv_intrinsic_ieee_rem,
conv_intrinsic_ieee_next_after, conv_intrinsic_ieee_scalb,
conv_intrinsic_ieee_copy_sign, gfc_conv_ieee_arithmetic_function):
New functions.
* trans.h (gfc_conv_ieee_arithmetic_function,
gfc_save_fp_state, gfc_restore_fp_state): New prototypes.

* ieee/ieee_helper.c (ieee_is_finite_*, ieee_is_nan_*,
ieee_is_negative_*, ieee_is_normal_*, ieee_copy_sign_*,
ieee_unordered_*, ieee_logb_*, ieee_rint_*, ieee_scalb_*,
ieee_rem_*, ieee_next_after_*): Remove functions.
* gfortran.map (GFORTRAN_1.5): Remove corresponding symbols.

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

9 years ago * config/avr/avr.opt (mmcu=): Change to have a string value.
amylaar [Thu, 9 Oct 2014 08:58:44 +0000 (08:58 +0000)]
* config/avr/avr.opt (mmcu=): Change to have a string value.
(mn-flash=, mskip-bug, march=, mrmw): New options.
(HeaderInclude): New.
(mmcu=): Remove Var / Init clauses.
* config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
-specs option.
(SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
(ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
(SYMBOL_FLAG_IO_LOW): Define.
(avr_device_to_as, avr_device_to_ld): Don't declare.
(avr_device_to_data_start, avr_device_to_startfiles): Likewise.
(avr_device_to_devicelib, avr_device_to_sp8): Likewise.
(EXTRA_SPEC_FUNCTIONS): Don't define.
(ASM_SPEC): Translate -arch= option to -mmcu= option.
(LINK_SPEC): Translate -arch= option to -m= option.
Don't use device_to_ld / device_to_data_start.
(STARTFILE_SPEC): Now empty.
(ASM_SPEC): Add -%{mrelax: --mlink-relax}.
* config/avr/gen-avr-mmcu-specs.c: New file.
* config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
(s-device-specs): Likewise.
(GCC_PASSES): Add s-device-specs.
(install-driver): Depend on install-device-specs.
(install-device-specs): New rule.
* config/avr/avr.c (avr_option_override): Look up mcu arch by
avr_arch_index and provide fallback initialization for avr_n_flash.
(varasm.h): #include.
(avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
(avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
(avr_attribute_table): Add "io", "address" and "io_low".
(avr_asm_output_aligned_decl_common): Change type of decl to tree.
Add special handling for symbols with "io" and/or "address" attributes.
(avr_asm_asm_output_aligned_bss): New function.
(avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
as appropriate.  Handle io_low attribute.
(avr_out_sbxx_branch): Handle symbolic io addresses.
(avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
avr_n_flash instead of avr_current_device->n_flash.
(avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
(avr_emit_movmemhi): Likewise.
* config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
Use TARGET_RMW instead of avr_current_device->dev_attributes.
Don't define avr_current_device->macro (that's the specfile's job).
Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
* config/avr/avr.c (avr_2word_insn_p): Likewise.
* config/avr/avr.md (*cpse.ne): Likewise.
(mov<mode>): Use avr_eval_addr_attrib.
(cbi): Change constraint for low_io_address_operand operand to "i".
(sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
* config/avr/predicates.md (io_address_operand):
Allow SYMBOL_REF with SYMBOL_FLAG_IO.
(low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
* config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
Update prototype.
(avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
* config/avr/genmultilib.awk: Use -march=.
Remove Multilib matches processing.
* config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
* config/avr/avr-arch.h: Add double include guard.
(avr_mcu_t) <library_name>: Update comment.
* config/avr/driver-avr.c (avr_device_to_as): Delete.
(avr_device_to_ld, avr_device_to_data_start): Likewise.
(avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
(avr_device_to_sp8): Likewise.
* config/avr/genopt.sh:  Instead avr_mcu, emit an Enum for avr_arch.

* doc/extend.texi (io, address): Document new AVR variable attributes.
(io_low): Likewise.

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

9 years ago * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
mpolacek [Thu, 9 Oct 2014 08:51:00 +0000 (08:51 +0000)]
* doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.

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

9 years ago2014-10-09 Ville Voutilainen <ville.voutilainen@gmail.com>
paolo [Thu, 9 Oct 2014 08:37:26 +0000 (08:37 +0000)]
2014-10-09  Ville Voutilainen  <ville.voutilainen@gmail.com>

PR libstdc++/60132
     * include/std/type_traits (is_trivially_copyable,
     is_trivially_constructible, is_trivially_default_constructible,
     is_trivially_copy_constructible, is_trivially_move_constructible,
     is_trivially_assignable, is_trivially_copy_assignable,
     is_trivially_move_assignable): New.
     * testsuite/20_util/is_trivially_assignable/requirements/
     typedefs.cc: Likewise.
     * testsuite/20_util/is_trivially_assignable/requirements/
     explicit_instantiation.cc: Likewise.
     * testsuite/20_util/is_trivially_assignable/value.cc: Likewise.
* testsuite/20_util/is_trivially_constructible/requirements/
typedefs.cc: Likewise.
* testsuite/20_util/is_trivially_constructible/requirements/
explicit_instantiation.cc: Likewise.
* testsuite/20_util/is_trivially_constructible/value.cc: Likewise.
* testsuite/20_util/is_trivially_copyable/requirements/
typedefs.cc: Likewise.
* testsuite/20_util/is_trivially_copyable/requirements/
explicit_instantiation.cc: Likewise.
* testsuite/20_util/is_trivially_copyable/value.cc: Likewise.
* testsuite/20_util/is_trivially_copy_assignable/requirements/
typedefs.cc: Likewise.
* testsuite/20_util/is_trivially_copy_assignable/requirements/
explicit_instantiation.cc: Likewise.
* testsuite/20_util/is_trivially_copy_assignable/value.cc: Likewise.
* testsuite/20_util/is_trivially_copy_constructible/requirements/
typedefs.cc: Likewise.
* testsuite/20_util/is_trivially_copy_constructible/requirements/
explicit_instantiation.cc: Likewise.
     * testsuite/20_util/is_trivially_copy_constructible/value.cc: Likewise.
     * testsuite/20_util/is_trivially_default_constructible/requirements/
     typedefs.cc: Likewise.
     * testsuite/20_util/is_trivially_default_constructible/requirements/
     explicit_instantiation.cc: Likewise.
     * testsuite/20_util/is_trivially_default_constructible/
value.cc: Likewise.
     * testsuite/20_util/is_trivially_move_assignable/requirements/
     typedefs.cc: Likewise.
     * testsuite/20_util/is_trivially_move_assignable/requirements/
     explicit_instantiation.cc: Likewise.
     * testsuite/20_util/is_trivially_move_assignable/value.cc: Likewise.
     * testsuite/20_util/is_trivially_move_constructible/requirements/
     typedefs.cc: Likewise.
     * testsuite/20_util/is_trivially_move_constructible/requirements/
     explicit_instantiation.cc: Likewise.
     * testsuite/20_util/is_trivially_move_constructible/value.cc:
Likewise.
* testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error
line number.
* testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
Likewise.
* testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
Likewise.

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

9 years ago PR c/63480
mpolacek [Thu, 9 Oct 2014 08:25:50 +0000 (08:25 +0000)]
PR c/63480
* c-typeck.c (pop_init_level): Don't warn about initializing
with { }.

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

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

9 years ago2014-10-09 Richard Biener <rguenther@suse.de>
rguenth [Thu, 9 Oct 2014 08:21:46 +0000 (08:21 +0000)]
2014-10-09  Richard Biener  <rguenther@suse.de>

PR tree-optimization/61969
* tree-nrv.c (pass_nrv::execute): Properly test for automatic
variables.

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

9 years ago2014-10-09 Richard Biener <rguenther@suse.de>
rguenth [Thu, 9 Oct 2014 08:20:53 +0000 (08:20 +0000)]
2014-10-09  Richard Biener  <rguenther@suse.de>

PR tree-optimization/63445
* tree-vrp.c (simplify_cond_using_ranges): Only warn about
overflow for non-equality compares.

* gcc.dg/Wstrict-overflow-26.c: New testcase.

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

9 years ago PR libquadmath/55821
fxcoudert [Thu, 9 Oct 2014 07:40:39 +0000 (07:40 +0000)]
PR libquadmath/55821
* Makefile.am: Conditionally define info_TEXINFOS and
libquadmath_TEXINFOS.
* Makefile.in: Regenerate.

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

9 years ago PR rtl-optimization/57003
uros [Thu, 9 Oct 2014 06:36:08 +0000 (06:36 +0000)]
PR rtl-optimization/57003
* regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
also check CALL_INSN_FUNCTION_USAGE for clobbers again after
killing regs_invalidated_by_call.

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

9 years ago2014-10-07 Teresa Johnson <tejohnson@google.com>
tejohnson [Thu, 9 Oct 2014 04:38:24 +0000 (04:38 +0000)]
2014-10-07  Teresa Johnson  <tejohnson@google.com>

PR bootstrap/63432.
* tree-ssa-threadupdate.c (estimated_freqs_path): New function.
(ssa_fix_duplicate_block_edges): Invoke it.
(mark_threaded_blocks): Make two passes to avoid ordering dependences.

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

9 years agoDaily bump.
gccadmin [Thu, 9 Oct 2014 00:16:18 +0000 (00:16 +0000)]
Daily bump.

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

9 years agogcc/
olegendo [Wed, 8 Oct 2014 23:13:02 +0000 (23:13 +0000)]
gcc/
PR target/52941
* config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
atomic_fetch_<fetchop_name>si_hard,
atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
atomic_nand_fetch<mode>_hard): Add missing set of T_REG.

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

9 years ago * gcc.dg/vmx/3c-01a.c: Add default options from vmx.exp.
pthaugen [Wed, 8 Oct 2014 22:07:40 +0000 (22:07 +0000)]
* gcc.dg/vmx/3c-01a.c: Add default options from vmx.exp.
* gcc.dg/vmx/ops.c: Likewise.
* gcc.dg/vmx/ops-long-1.c: Likewise.

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

9 years ago2014-10-08 Dominique d'Humieres <dominiq@lps.ens.fr>
dominiq [Wed, 8 Oct 2014 21:53:21 +0000 (21:53 +0000)]
2014-10-08  Dominique d'Humieres  <dominiq@lps.ens.fr>

* ChangeLog: Remove duplicated gfortran.dg.
* gfortran.dg/implicit_4.f90: Fix some dg-error.

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

9 years agoAdd overlap functionality to gcov-tool.
xur [Wed, 8 Oct 2014 21:51:41 +0000 (21:51 +0000)]
Add overlap functionality to gcov-tool.
2014-10-08  Rong Xu  <xur@google.com>

* gcc/gcov-tool.c (profile_overlap): New driver function
        to compute profile overlap.
(print_overlap_usage_message): New.
(overlap_usage): New.
(do_overlap): New.
(print_usage): Add calls to overlap function.
(main): Ditto.
* libgcc/libgcov-util.c (read_gcda_file): Fix format.
(find_match_gcov_info): Ditto.
(calculate_2_entries): New.
(compute_one_gcov): Ditto.
(gcov_info_count_all_cold): Ditto.
(gcov_info_count_all_zero): Ditto.
(extract_file_basename): Ditto.
(get_file_basename): Ditto.
(set_flag): Ditto.
(matched_gcov_info): Ditto.
(calculate_overlap): Ditto.
(gcov_profile_overlap): Ditto.
* libgcc/libgcov-driver.c (compute_summary): Make
        it avavilable for external calls.
* gcc/doc/gcov-tool.texi: Add documentation.

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

9 years ago PR c++/63405
jason [Wed, 8 Oct 2014 21:05:50 +0000 (21:05 +0000)]
PR c++/63405
* pt.c (tsubst_pack_expansion): Limit simple expansion to type packs.

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

9 years ago PR c++/63485
jason [Wed, 8 Oct 2014 20:27:11 +0000 (20:27 +0000)]
PR c++/63485
* tree.c (build_cplus_array_type): Look for a type with no
typedef-name or attributes.

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

9 years ago2014-10-08 Steve Ellcey <sellcey@mips.com>
sje [Wed, 8 Oct 2014 20:08:04 +0000 (20:08 +0000)]
2014-10-08  Steve Ellcey  <sellcey@mips.com>

* config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS

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

9 years ago * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
hubicka [Wed, 8 Oct 2014 17:10:00 +0000 (17:10 +0000)]
* ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
pattern matching of MEM_REF.
(check_stmt_for_type_change): Update.

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

9 years ago2014-10-08 Steve Ellcey <sellcey@mips.com>
sje [Wed, 8 Oct 2014 16:14:11 +0000 (16:14 +0000)]
2014-10-08  Steve Ellcey  <sellcey@mips.com>

* config/mips/linux64.h: Remove.
* config/mips/gnu-user64.h: Remove.
* gcc.config (mips*-*-*): Remove references to linux64.h and
gnu-user64.h
* config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
with modified version from gnu-user64.h.
(LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
(LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
* config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
linux64.h.
(GNU_USER_LINK_EMULATION64): Ditto.
(GNU_USER_LINK_EMULATIONN32): Ditto.
(GLIBC_DYNAMIC_LINKER32): Ditto.
(GLIBC_DYNAMIC_LINKER64): Ditto.
(GLIBC_DYNAMIC_LINKERN32): Ditto.
(UCLIBC_DYNAMIC_LINKER32): Ditto.
(UCLIBC_DYNAMIC_LINKER64): Ditto.
(UCLIBC_DYNAMIC_LINKERN32): Ditto.
(BIONIC_DYNAMIC_LINKERN32): Ditto.
(GNU_USER_DYNAMIC_LINKERN32): Ditto.
(GLIBC_DYNAMIC_LINKER): Delete.
(UCLIBC_DYNAMIC_LINKER): Delete.

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

9 years ago PR libquadmath/63487
fxcoudert [Wed, 8 Oct 2014 15:33:41 +0000 (15:33 +0000)]
PR libquadmath/63487
* libquadmath.texi (sincosq): Fix typo.

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

9 years ago * call.c (call_copy_ctor): New.
jason [Wed, 8 Oct 2014 14:15:06 +0000 (14:15 +0000)]
* call.c (call_copy_ctor): New.
(build_over_call): Use it to avoid infinite recursion on invalid code.

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

9 years ago PR go/60406
ian [Wed, 8 Oct 2014 14:03:13 +0000 (14:03 +0000)]
PR go/60406
runtime: Check callers in can_recover if return address doesn't match.

Also use __builtin_extract_return_address and tighten up the
checks in FFI code.

Fixes PR 60406.

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

9 years ago * include/bits/locale_facets.tcc (num_put::_M_insert_float): Do not
redi [Wed, 8 Oct 2014 13:25:30 +0000 (13:25 +0000)]
* include/bits/locale_facets.tcc (num_put::_M_insert_float): Do not
pass precision when using hexfloat format.
* src/c++98/locale_facets.cc (__num_base::_S_format_float): Always
output precision if C99 hexfloat conversion specifiers not available.

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

9 years ago * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
amylaar [Wed, 8 Oct 2014 12:33:43 +0000 (12:33 +0000)]
    * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
        Get address space from operand 0 (BASE).

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

9 years agoDon't override default_options in gcc.dg/torture/stackalign/builtin-apply-4.c.
ro [Wed, 8 Oct 2014 11:06:04 +0000 (11:06 +0000)]
Don't override default_options in gcc.dg/torture/stackalign/builtin-apply-4.c.

* gcc.dg/torture/stackalign/builtin-apply-4.c: Use
dg-additional-options.

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

9 years agotestsuite deleted-member-function.C: Remove comment marker prefix.
mark [Wed, 8 Oct 2014 10:27:01 +0000 (10:27 +0000)]
testsuite deleted-member-function.C: Remove comment marker prefix.

testsuite/ChangeLog

* g++.dg/debug/dwarf2/deleted-member-function.C: Remove comment marker
prefix from scan-assembler-times.

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

9 years ago * include/bits/regex.h (regex_token_iterator::_M_end_of_seq): Add
redi [Wed, 8 Oct 2014 08:49:22 +0000 (08:49 +0000)]
* include/bits/regex.h (regex_token_iterator::_M_end_of_seq): Add
const qualifier.

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

9 years ago * tree.c (cp_tree_equal) [TRAIT_EXPR]: Use cp_tree_equal for type2.
jason [Wed, 8 Oct 2014 00:25:35 +0000 (00:25 +0000)]
* tree.c (cp_tree_equal) [TRAIT_EXPR]: Use cp_tree_equal for type2.

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

9 years agoDaily bump.
gccadmin [Wed, 8 Oct 2014 00:16:13 +0000 (00:16 +0000)]
Daily bump.

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

9 years ago2014-10-8 Felix Yang <felix.yang@huawei.com>
fyang [Tue, 7 Oct 2014 22:09:46 +0000 (22:09 +0000)]
2014-10-8  Felix Yang  <felix.yang@huawei.com>

* MAINTAINERS (Write After Approval): Add myself.

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

9 years ago2014-10-07 François Dumont <fdumont@gcc.gnu.org>
fdumont [Tue, 7 Oct 2014 21:26:55 +0000 (21:26 +0000)]
2014-10-07  François Dumont  <fdumont@gcc.gnu.org>

* testsuite/util/testsuite_counter_type.h
(counter_type::operator<(const counter_type&)): Update
less_compare_count.
* testsuite/25_algorithms/make_heap/complexity.cc: New.
* testsuite/25_algorithms/pop_heap/complexity.cc: New.
* testsuite/25_algorithms/push_heap/complexity.cc: New.
* testsuite/25_algorithms/sort_heap/complexity.cc: New.

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

9 years ago2014-10-07 Iain Sandoe <iain@codesourcery.com>
mrs [Tue, 7 Oct 2014 18:59:24 +0000 (18:59 +0000)]
2014-10-07  Iain Sandoe  <iain@codesourcery.com>

    PR target/61387
    * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.

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

9 years agoFix spacing.
mrs [Tue, 7 Oct 2014 18:58:39 +0000 (18:58 +0000)]
Fix spacing.

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

9 years ago * lib/target-supports.exp (check_effective_target_fd_truncate):
mpolacek [Tue, 7 Oct 2014 18:14:56 +0000 (18:14 +0000)]
* lib/target-supports.exp (check_effective_target_fd_truncate):
Include <string.h>.

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

9 years ago * dwarf2out.c: Remove current_function_has_inlines.
aldyh [Tue, 7 Oct 2014 18:06:17 +0000 (18:06 +0000)]
* dwarf2out.c: Remove current_function_has_inlines.
(gen_subprogram_die): Same.
(gen_inlined_subroutine_die): Same.

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

9 years ago PR c/59717
mpolacek [Tue, 7 Oct 2014 17:49:46 +0000 (17:49 +0000)]
PR c/59717
* c-decl.c (header_for_builtin_fn): New function.
(implicitly_declare): Suggest which header to include.

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

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

9 years ago * gcc.dg/guality/pr41616-1.c: Use -fgnu89-inline.
mpolacek [Tue, 7 Oct 2014 17:32:23 +0000 (17:32 +0000)]
* gcc.dg/guality/pr41616-1.c: Use -fgnu89-inline.
* gcc.dg/iftrap-1.c: Fix implicit declarations.
* gcc.target/powerpc/pr26350.c: Likewise.
* gcc.target/powerpc/altivec-consts.c: Likewise.
* gcc.target/powerpc/altivec-varargs-1.c: Likewise.
* gcc.target/powerpc/le-altivec-consts.c: Likewise.
* gcc.target/powerpc/ppc-vector-memcpy.c: Likewise.
* gcc.target/powerpc/ppc-vector-memset.c: Likewise.
* gcc.target/powerpc/pr47862.c: Likewise.
* gcc.target/powerpc/pr48053-1.c: Likewise.
* gcc.target/powerpc/pr53487.c: Likewise.
* gcc.dg/vect/pr48765.c: Fix implicit declarations and defaulting
to int.
* gcc.target/powerpc/20050603-1.c: Fix defaulting to int.
* gcc.target/powerpc/altivec-2.c: Likewise.
* gcc.target/powerpc/pr47755-2.c: Likewise.

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

9 years agoUpdate the ChangeLog for r215962 and r215963.
xur [Tue, 7 Oct 2014 16:26:51 +0000 (16:26 +0000)]
Update the ChangeLog for r215962 and r215963.

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

9 years agogcc/fortran/ChangeLog:
manu [Tue, 7 Oct 2014 16:13:22 +0000 (16:13 +0000)]
gcc/fortran/ChangeLog:

2014-10-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>

PR fortran/44054
PR fortran/54687
* gfortran.h (gfc_warning_cmdline): Add overload that takes an
option.
(gfc_error_cmdline): Declare.
* error.c (gfc_warning_cmdline): New overload that takes an option.
(gfc_error_cmdline): New.
* lang.opt (Wmissing-include-dirs): New.
* scanner.c (add_path_to_list): Use the new functions.
(load_file): Likewise.
* options.c (gfc_init_options): Wmissing-include-dirs is enabled
by default in Fortran.
(gfc_handle_option): Accept automatically handled options.

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

9 years agoUse long long instead of long in adx intrinsics.
tocarip [Tue, 7 Oct 2014 13:13:45 +0000 (13:13 +0000)]
Use long long instead of long in adx intrinsics.

2014-10-02  Ilya Tocar  <ilya.tocar@intel.com>

         * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
         type.
         (_addcarry_u64): Ditto.
         (_addcarryx_u64): Ditto.

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

9 years ago * jvgenmain.c (main): Provide declarations for JvRunMain{,Name}.
mpolacek [Tue, 7 Oct 2014 12:29:15 +0000 (12:29 +0000)]
* jvgenmain.c (main): Provide declarations for JvRunMain{,Name}.

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

9 years ago * cgraph.h (cgraph_node::get_fun): Declare.
ebotcazou [Tue, 7 Oct 2014 09:18:37 +0000 (09:18 +0000)]
* cgraph.h (cgraph_node::get_fun): Declare.
* cgraph.c (cgraph_node::get_fun): New method.
* ipa-inline.c (can_inline_edge_p): Use it.

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

9 years ago * g++.dg/lto/pr63270.h: New test.
marxin [Tue, 7 Oct 2014 08:26:50 +0000 (08:26 +0000)]
* g++.dg/lto/pr63270.h: New test.
* g++.dg/lto/pr63270_0.C (int main): Implementation replaced with
include.
* g++.dg/lto/pr63270_2.C: New test.

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

9 years ago * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
ebotcazou [Tue, 7 Oct 2014 07:56:43 +0000 (07:56 +0000)]
* lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
and -ftrapping-math.
* lto-wrapper.c (merge_and_complain): Likewise.
(run_gcc): Likewise.

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

9 years ago * c-convert.c (convert): Use error_operand_p.
mpolacek [Tue, 7 Oct 2014 04:18:19 +0000 (04:18 +0000)]
* c-convert.c (convert): Use error_operand_p.
* c-typeck.c (require_complete_type): Likewise.
(really_atomic_lvalue): Likewise.
(digest_init): Likewise.
(handle_omp_array_sections_1): Likewise.

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

9 years ago2014-10-06 Rong Xu <xur@google.com>
xur [Tue, 7 Oct 2014 04:06:12 +0000 (04:06 +0000)]
2014-10-06  Rong Xu  <xur@google.com>

* gcc/params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
* gcc/tree-profile.c: (params.h): New include.
        (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
        and __gcov_indirect_call_topn_counters for
        indirect_call_topn_profile.
(gimple_init_edge_profiler): New decls for
        __gcov_indirect_call_topn_profiler.
(gimple_gen_ic_profiler): Generate the correct profiler call.
(gimple_gen_ic_func_profiler): Fix format.
* gcc/value-prof.c (params.h): New include.
        (dump_histogram_value): Hanlde indirect_call_topn counters.
(stream_in_histogram_value): Ditto.
(gimple_indirect_call_to_profile): Use indirect_call_topn
        profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
(gimple_find_values_to_profile): Hanlde indirect_call_topn
        counters.
* gcc/value-prof.h (enum hist_type): Histrogram type for
        indirect_call_topn counters.
* gcc/profile.c (instrument_values): Instrument
        indirect_call_topn counters.

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

9 years ago2014-10-06 Rong Xu <xur@google.com>
xur [Tue, 7 Oct 2014 04:02:31 +0000 (04:02 +0000)]
2014-10-06  Rong Xu  <xur@google.com>

* gcc/Makefile.in: Fix dependence.
* gcc/gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
        indirect call topn profiler.
* gcc/gcov-io.h: Ditto.
* libgcc/Makefile.in: Ditto.
* libgcc/libgcov-driver.c (gcov_sort_n_vals): New utility function.
(gcov_sort_icall_topn_counter): Ditto.
(gcov_sort_topn_counter_arrays): Ditto.
(dump_one_gcov): Sort indirect_call topn counters.
* libgcc/libgcov-merge.c (__gcov_merge_icall_topn): New merge
        function.
* libgcc/libgcov-profiler.c (__gcov_topn_value_profiler_body): New
        utility function.
(__gcov_indirect_call_topn_profiler): New profiler function.
* libgcc/libgcov-util.c (__gcov_icall_topn_counter_op): New.
* libgcc/libgcov.h: New decls.

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

9 years agoDaily bump.
gccadmin [Tue, 7 Oct 2014 00:16:18 +0000 (00:16 +0000)]
Daily bump.

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

9 years ago * calls.c (expand_call): Do not use the target as the return slot if
ebotcazou [Mon, 6 Oct 2014 17:30:34 +0000 (17:30 +0000)]
* calls.c (expand_call): Do not use the target as the return slot if
it is not sufficiently aligned.

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

9 years agogcc/c-family:
emsr [Mon, 6 Oct 2014 17:11:23 +0000 (17:11 +0000)]
gcc/c-family:

2014-10-06  Edward Smith-Rowland  <3dw4rd@verizon.net>

* c-family/c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
C++11 section.

gcc/cp:

2014-10-06  Edward Smith-Rowland  <3dw4rd@verizon.net>

* cp/parser.c: Allow [[deprecated]] for C++11.  Issue a pedwarn.

gcc/testsuite:

2014-10-06  Edward Smith-Rowland  <3dw4rd@verizon.net>

* g++.dg/cpp1y/attr-deprecated-neg.C: Attribute no longer ignored.
* g++.dg/cpp1y/feat-cxx11-neg.C: Comment out __cpp_attribute_deprecated test.
* g++.dg/cpp1y/feat-cxx11.C: Add __cpp_attribute_deprecated test.

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

9 years ago/cp
paolo [Mon, 6 Oct 2014 16:13:41 +0000 (16:13 +0000)]
/cp
2014-10-06  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/55250
* semantics.c (check_constexpr_bind_expr_vars): New.
(check_constexpr_ctor_body, massage_constexpr_body): Use it.
(build_constexpr_constructor_member_initializers): Handle
BIND_EXPR in the main conditional.

/testsuite
2014-10-06  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/55250
* g++.dg/cpp0x/constexpr-type-decl1.C: New.
* g++.dg/cpp0x/constexpr-type-def1.C: Likewise.
* g++.dg/cpp1y/constexpr-type-def1.C: Likewise.

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

9 years ago2014-10-06 Rüdiger Sonderfeld <ruediger@c-plusplus.de>
redi [Mon, 6 Oct 2014 15:55:53 +0000 (15:55 +0000)]
2014-10-06  Rüdiger Sonderfeld  <ruediger@c-plusplus.de>
    Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/59987
* doc/xml/manual/status_cxx2011.xml: Remove hexfloat from notes.
* doc/html/manual/status.html: Regenerate.
* include/bits/ios_base.h (hexfloat): New function.
(defaultfloat): New function.
* src/c++98/locale_facets.cc (__num_base::_S_format_float): Support
hexadecimal floating point format.
* testsuite/27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc:
New file.

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

9 years ago2014-10-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
wschmidt [Mon, 6 Oct 2014 15:27:32 +0000 (15:27 +0000)]
2014-10-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* config/rs6000/rs6000.c (analyze_swaps commentary): Add
discussion of permutes and why we don't handle them.

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

9 years agoboehm-gc/
mpolacek [Mon, 6 Oct 2014 13:48:31 +0000 (13:48 +0000)]
boehm-gc/
* testsuite/boehm-gc.c/gctest.c: Fix defaulting to int.
gcc/testsuite/
* c-c++-common/raw-string-3.c: Use -std=gnu89 for C.
* g++.dg/lto/pr54625-1_0.c: Fix defaulting to int.
* g++.dg/lto/pr54625-2_0.c: Likewise.
* gcc.misc-tests/gcov-14.c: Use -fgnu89-inline.

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

9 years ago * gcc.target/i386/20040112-1.c: Fix defaulting to int.
mpolacek [Mon, 6 Oct 2014 13:29:42 +0000 (13:29 +0000)]
* gcc.target/i386/20040112-1.c: Fix defaulting to int.
* gcc.target/i386/avxfp-1.c: Likewise.
* gcc.target/i386/avxfp-2.c: Likewise.
* gcc.target/i386/cadd.c: Likewise.
* gcc.target/i386/cmov2.c: Likewise.
* gcc.target/i386/cmov3.c: Likewise.
* gcc.target/i386/cmov4.c: Likewise.
* gcc.target/i386/cold-attribute-1.c: Likewise.
* gcc.target/i386/cvt-1.c: Likewise.
* gcc.target/i386/fpcvt-1.c: Likewise.
* gcc.target/i386/fpcvt-2.c: Likewise.
* gcc.target/i386/fpcvt-3.c: Likewise.
* gcc.target/i386/local.c: Likewise.
* gcc.target/i386/memcpy-2.c: Likewise.
* gcc.target/i386/memcpy-3.c: Likewise.
* gcc.target/i386/memset-1.c: Likewise.
* gcc.target/i386/minmax-1.c: Likewise.
* gcc.target/i386/minmax-2.c: Likewise.
* gcc.target/i386/pr45352-2.c: Likewise.
* gcc.target/i386/pr46253.c: Likewise.
* gcc.target/i386/pr53623.c: Likewise.
* gcc.target/i386/pr60902.c: Likewise.
* gcc.target/i386/pr57003.c: Likewise.
* gcc.target/i386/sse-14.c: Likewise.
* gcc.target/i386/sse-19.c: Likewise.
* gcc.target/i386/sse-22.c: Likewise.
* gcc.target/i386/sse4a-extract.c: Likewise.
* gcc.target/i386/sse4a-insert.c: Likewise.
* gcc.target/i386/ssefp-1.c: Likewise.
* gcc.target/i386/ssefp-2.c: Likewise.
* gcc.target/i386/testimm-10.c: Likewise.
* gcc.target/i386/vectorize4-avx.c: Likewise.
* gcc.target/i386/980709-1.c: Fix implicit declarations.
* gcc.target/i386/avx-pr57233.c: Likewise.
* gcc.target/i386/avx2-pr57233.c: Likewise.
* gcc.target/i386/avx2-vpop-check.h: Likewise.
* gcc.target/i386/avx256-unaligned-load-7.c: Likewise.
* gcc.target/i386/avx256-unaligned-store-7.c: Likewise.
* gcc.target/i386/crc32-4.c: Likewise.
* gcc.target/i386/pr20204.c: Likewise.
* gcc.target/i386/pr23570.c: Likewise.
* gcc.target/i386/pr26449-1.c: Likewise.
* gcc.target/i386/pr28839.c: Likewise.
* gcc.target/i386/pr37101.c: Likewise.
* gcc.target/i386/pr61923.c: Likewise.
* gcc.target/i386/shrink_wrap_1.c: Likewise.
* gcc.target/i386/sse2-pr57233.c: Likewise.
* gcc.target/i386/vect-abs-s16.c: Likewise.
* gcc.target/i386/vect-abs-s32.c: Likewise.
* gcc.target/i386/vect-abs-s8.c: Likewise.
* gcc.target/i386/xop-pr57233.c: Likewise.
* gcc.target/i386/xop-rotate2-vector.c: Likewise.
* gcc.target/i386/cold-attribute-2.c: Fix defaulting to int.  Fix
implicit declarations.
* gcc.target/i386/xop-shift1-vector.c: Fix typo.
* gcc.target/i386/xop-shift2-vector.c: Likewise.
* gcc.target/i386/xop-shift3-vector.c: Likewise.

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