platform/upstream/linaro-gcc.git
10 years agoMerge in trunk.
mrs [Mon, 13 Jan 2014 19:14:33 +0000 (19:14 +0000)]
Merge in trunk.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/wide-int@206584 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
ktkachov [Mon, 13 Jan 2014 15:58:47 +0000 (15:58 +0000)]
2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

* config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.

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

10 years ago2014-01-13 Richard Biener <rguenther@suse.de>
rguenth [Mon, 13 Jan 2014 11:27:43 +0000 (11:27 +0000)]
2014-01-13  Richard Biener  <rguenther@suse.de>

* g++.dg/lto/lto.exp: Do check_effective_target_lto check before
adjusting mathlib options.
* gfortran.dg/lto/lto.exp: Likewise.

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

10 years ago * builtins.c (get_object_alignment_2): Minor tweak.
ebotcazou [Mon, 13 Jan 2014 10:36:27 +0000 (10:36 +0000)]
* builtins.c (get_object_alignment_2): Minor tweak.
* tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.

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

10 years ago2014-01-13 Christian Bruel <christian.bruel@st.com>
chrbr [Mon, 13 Jan 2014 09:16:48 +0000 (09:16 +0000)]
2014-01-13  Christian Bruel  <christian.bruel@st.com>

* config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
  optimized non constant lengths.

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

10 years ago * gcc.dg/vect/vect-simd-clone-10.c: Add dg-do run.
jakub [Mon, 13 Jan 2014 09:13:15 +0000 (09:13 +0000)]
* gcc.dg/vect/vect-simd-clone-10.c: Add dg-do run.
* gcc.dg/vect/vect-simd-clone-12.c: Likewise.

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

10 years ago PR libgomp/59194
jakub [Mon, 13 Jan 2014 07:56:40 +0000 (07:56 +0000)]
PR libgomp/59194
* omp-low.c (expand_omp_atomic_pipeline): Expand the initial
load as __atomic_load_N if possible.

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

10 years agoDaily bump.
gccadmin [Mon, 13 Jan 2014 00:17:02 +0000 (00:17 +0000)]
Daily bump.

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

10 years ago PR ada/59772
ebotcazou [Sun, 12 Jan 2014 14:29:12 +0000 (14:29 +0000)]
PR ada/59772
* gcc-interface/cuintp.c (build_cst_from_int): Use 32-bit integer type
as intermediate type.
(UI_To_gnu): Likewise.

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

10 years ago2014-01-12 Janus Weil <janus@gcc.gnu.org>
janus [Sun, 12 Jan 2014 11:08:31 +0000 (11:08 +0000)]
2014-01-12  Janus Weil  <janus@gcc.gnu.org>

PR fortran/58026
* decl.c (gfc_match_data_decl): Improve error recovery.

2014-01-12  Janus Weil  <janus@gcc.gnu.org>

PR fortran/58026
* gfortran.dg/alloc_comp_basics_6.f90: New.

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

10 years agoDaily bump.
gccadmin [Sun, 12 Jan 2014 00:17:10 +0000 (00:17 +0000)]
Daily bump.

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

10 years ago2014-01-11 Steven G. Kargl <kargl@gcc.gnu.org>
jvdelisle [Sat, 11 Jan 2014 21:38:30 +0000 (21:38 +0000)]
2014-01-11  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/59700
* gfortran.dg/pr59700.f90: New test.

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

10 years ago Missed file for previous commit.
jvdelisle [Sat, 11 Jan 2014 21:36:57 +0000 (21:36 +0000)]
Missed file for previous commit.

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

10 years ago2014-01-11 Dominique d'Humieres <dominiq@lps.ens.fr>
jvdelisle [Sat, 11 Jan 2014 21:30:43 +0000 (21:30 +0000)]
2014-01-11  Dominique d'Humieres  <dominiq@lps.ens.fr>

* gfortran.dg/binding_label_tests_10_main.f03: Cleanup mod file.
* gfortran.dg/use_only_3.f90: Likewise.
* gfortran.dg/inquire_10.f90: Delete opened file.
* gfortran.dg/inquire_15.f90: Likewise.
* gfortran.dg/pr16597.f90: Likewise.
* gfortran.dg/open_negative_unit_1.f90: Likewise + test
for PR59419.

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

10 years ago * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
dje [Sat, 11 Jan 2014 19:25:54 +0000 (19:25 +0000)]
    * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
        target parameter.
        (rs6000_expand_builtin): Adjust call.

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

10 years ago PR target/58115
dje [Sat, 11 Jan 2014 18:57:56 +0000 (18:57 +0000)]
    PR target/58115
        * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
        * config/rs6000/rs6000.c: Include target-globals.h.
        (rs6000_set_current_function): Instead of doing target_reinit
        unconditionally, use save_target_globals_default_opts and
        restore_target_globals.

        * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
        FPSCR.
        * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
        (rs6000_expand_builtin): Handle mffs and mtfsf.
        (rs6000_init_builtins): Define mffs and mtfsf.
        * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New.
        (rs6000_mffs): New pattern.
        (rs6000_mtfsf): New pattern.

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

10 years ago2014-01-11 Jerry DeLisle <jvdelisle@gcc.gnu>
jvdelisle [Sat, 11 Jan 2014 18:57:20 +0000 (18:57 +0000)]
2014-01-11  Jerry DeLisle  <jvdelisle@gcc.gnu>
    Dominique d'Humieres  <dominiq@lps.ens.fr>
    Steven G. Kargl  <kargl@gcc.gnu.org>

PR libfortran/59700
PR libfortran/59764
* io/io.h (struct st_parameter_dt): Assign expanded_read flag to
unused bit. Define new variable line_buffer_pos.
* io/list_read.c (free_saved, next_char, l_push_char,
read_logical, read_real): Replace use of item_count with
line_buffer_pos for line_buffer look ahead.
(read_logical, read_integer, parse_real, read_real, check_type):
Adjust location of free_line to after generating error messages
to retain the correct item count for the message.

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

10 years ago * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
amker [Sat, 11 Jan 2014 09:33:39 +0000 (09:33 +0000)]
* tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
Start narrowing with START.  Apply candidate-use pair
and check overall cost in narrowing.
(iv_ca_prune): Pass new argument.

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

10 years agoDaily bump.
gccadmin [Sat, 11 Jan 2014 00:16:58 +0000 (00:16 +0000)]
Daily bump.

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

10 years ago PR middle-end/59743
law [Fri, 10 Jan 2014 22:13:18 +0000 (22:13 +0000)]
PR middle-end/59743
* ree.c (combine_reaching_defs): Ensure the defining statement
occurs before the extension when optimizing extensions with
different source and destination hard registers.

PR middle-end/59743
* gcc.c-torture/compile/pr59743.c: New test.

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

10 years ago PR ipa/58585
hubicka [Fri, 10 Jan 2014 21:34:37 +0000 (21:34 +0000)]
PR ipa/58585
* ipa-devirt.c (build_type_inheritance_graph): Also add types of vtables
into the type inheritance graph.

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

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

10 years ago PR rtl-optimization/59754
jakub [Fri, 10 Jan 2014 21:27:52 +0000 (21:27 +0000)]
PR rtl-optimization/59754
* ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
modes in the REGNO != REGNO case.

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

10 years ago2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
wschmidt [Fri, 10 Jan 2014 21:26:25 +0000 (21:26 +0000)]
2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.

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

10 years ago PR tree-optimization/59745
jakub [Fri, 10 Jan 2014 20:37:52 +0000 (20:37 +0000)]
PR tree-optimization/59745
* tree-predcom.c (tree_predictive_commoning_loop): Call
free_affine_expand_cache if giving up because components is NULL.

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

10 years ago * target-globals.c (save_target_globals): Allocate < 4KB structs using
jakub [Fri, 10 Jan 2014 20:25:05 +0000 (20:25 +0000)]
* target-globals.c (save_target_globals): Allocate < 4KB structs using
GC in payload of target_globals struct instead of allocating them on
the heap and the larger structs separately using GC.
* target-globals.h (struct target_globals): Make regs, hard_regs,
reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
of GTY((skip)) and change type to void *.
(reset_target_globals): Cast loads from those fields to corresponding
types.

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

10 years ago * gcc.dg/pr46309.c: Disable for cris*-*-*.
hp [Fri, 10 Jan 2014 19:18:34 +0000 (19:18 +0000)]
* gcc.dg/pr46309.c: Disable for cris*-*-*.

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

10 years ago2014-01-10 Steve Ellcey <sellcey@mips.com>
sje [Fri, 10 Jan 2014 17:54:10 +0000 (17:54 +0000)]
2014-01-10  Steve Ellcey  <sellcey@mips.com>

PR plugins/59335
* Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
tree-ssanames.h, print-tree.h, varasm.h, and context.h.

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

10 years ago * gcc.target/arm/neon-nested-apcs.c: Tweak dg directives.
ebotcazou [Fri, 10 Jan 2014 16:10:37 +0000 (16:10 +0000)]
* gcc.target/arm/neon-nested-apcs.c: Tweak dg directives.

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

10 years agoPR target/59744
rearnsha [Fri, 10 Jan 2014 15:21:21 +0000 (15:21 +0000)]
PR target/59744
Fix ChangeLog typos in previous commit (r206529).

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

10 years ago PR target/9744
rearnsha [Fri, 10 Jan 2014 15:12:03 +0000 (15:12 +0000)]
PR target/9744

gcc:
* aarch64-modes.def (CC_Zmode): New flags mode.
* aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
represents an equality.
(aarch64_get_condition_code0): Handle CC_Zmode.
* aarch64.md (compare_neg<mode>): Restrict to equality operations.

gcc/testsuite:
* gcc.target/aarch64/cmn-neg.c: Use equality comparisons.
* gcc.target/aarch64/cmn-neg2.c: New test.

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

10 years ago2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Fri, 10 Jan 2014 14:59:41 +0000 (14:59 +0000)]
2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
extraction in good case.

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

10 years ago PR libstdc++/59699
redi [Fri, 10 Jan 2014 14:30:32 +0000 (14:30 +0000)]
PR libstdc++/59699
* doc/xml/manual/support.xml (std.support.types.null): Update links.

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

10 years ago PR libstdc++/59687
redi [Fri, 10 Jan 2014 14:30:27 +0000 (14:30 +0000)]
PR libstdc++/59687
* doc/xml/manual/backwards_compatibility.xml
(backwards.third.nocreate_noreplace): Correct and expand.

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

10 years ago PR libstdc++/59698
redi [Fri, 10 Jan 2014 14:30:21 +0000 (14:30 +0000)]
PR libstdc++/59698
* doc/xml/manual/status_cxx1998.xml (iso.1998.specific): Markup
and stylistic improvements.
* doc/xml/manual/codecvt.xml (std.localization.facet.codecvt): Likewise
and update for C++11.
* doc/xml/manual/ctype.xml (std.localization.facet.ctype): Likewise.

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

10 years ago2014-01-10 Richard Biener <rguenther@suse.de>
rguenth [Fri, 10 Jan 2014 13:07:42 +0000 (13:07 +0000)]
2014-01-10  Richard Biener  <rguenther@suse.de>

PR tree-optimization/59374
* tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
checking after SLP discovery.  Mark stmts not participating
in any SLP instance properly.

* gcc.dg/torture/pr59374-3.c: New testcase.

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

10 years ago2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
ktkachov [Fri, 10 Jan 2014 11:48:37 +0000 (11:48 +0000)]
2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

* config/arm/arm.c (arm_new_rtx_costs): Use destination mode
when handling a SET rtx.

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

10 years ago2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
ktkachov [Fri, 10 Jan 2014 11:47:04 +0000 (11:47 +0000)]
2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

* config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
(cortex-a57): Likewise.
(cortex-a57.cortex-a53): Likewise. Remove redundant flags.

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

10 years ago[gcc/testsuite/]
ktkachov [Fri, 10 Jan 2014 11:43:48 +0000 (11:43 +0000)]
[gcc/testsuite/]
2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

* lib/target-supports.exp
(check_effective_target_arm_crypto_ok_nocache): New.
(check_effective_target_arm_crypto_ok): Use above procedure.
(add_options_for_arm_crypto): Use et_arm_crypto_flags.

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

10 years ago2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
ktkachov [Fri, 10 Jan 2014 11:42:03 +0000 (11:42 +0000)]
2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

* config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
non-iwmmxt builtins.

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

10 years agoNote that pass_pre destroys PROP_no_crit_edges
vries [Fri, 10 Jan 2014 10:37:22 +0000 (10:37 +0000)]
Note that pass_pre destroys PROP_no_crit_edges

2014-01-09  Tom de Vries  <tom@codesourcery.com>

* tree-ssa-pre.c (pass_data_pre): Add comment about PROP_no_crit_edges
in properties_required.  Add PROP_no_crit_edges to properties_destroyed.
* tree-ssa-sink.c (pass_data_sink_code): Remove PROP_no_crit_edges
from properties_required.

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

10 years ago PR ipa/58252
hubicka [Fri, 10 Jan 2014 09:33:24 +0000 (09:33 +0000)]
PR ipa/58252
PR ipa/59226
* ipa-devirt.c record_target_from_binfo): Take as argument
stack of binfos and lookup matching one for virtual inheritance.
(possible_polymorphic_call_targets_1): Update.

* g++.dg/ipa/devirt-20.C: New testcase.
* g++.dg/torture/pr58252.C: Likewise.
* g++.dg/torture/pr59226.C: Likewise.

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

10 years ago2014-01-10 Max Ostapenko <m.ostapenko@partner.samsung.com>
chefmax [Fri, 10 Jan 2014 09:16:39 +0000 (09:16 +0000)]
2014-01-10  Max Ostapenko  <m.ostapenko@partner.samsung.com>

* c-c++-common/asan/no-asan-stack.c: New test.

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

10 years agogcc/
rsandifo [Fri, 10 Jan 2014 08:51:40 +0000 (08:51 +0000)]
gcc/
2014-01-10  Huacai Chen  <chenhc@lemote.com>

* config/mips/driver-native.c (host_detect_local_cpu): Handle new
kernel strings for Loongson-2E/2F/3A.

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

10 years agocompiler: Use backend interface for slice info.
ian [Fri, 10 Jan 2014 06:42:08 +0000 (06:42 +0000)]
compiler: Use backend interface for slice info.

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

10 years agoDaily bump.
gccadmin [Fri, 10 Jan 2014 00:16:59 +0000 (00:16 +0000)]
Daily bump.

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

10 years ago PR libstdc++/59680
redi [Thu, 9 Jan 2014 23:39:31 +0000 (23:39 +0000)]
PR libstdc++/59680
* src/c++11/thread.cc (__sleep_for): Fix call to ::sleep.

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

10 years ago PR middle-end/59670
jakub [Thu, 9 Jan 2014 23:39:06 +0000 (23:39 +0000)]
PR middle-end/59670
* tree-vect-data-refs.c (vect_analyze_data_refs): Check
is_gimple_call before calling gimple_call_internal_p.

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

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

10 years agocompiler: Add flattening pass
ian [Thu, 9 Jan 2014 23:28:10 +0000 (23:28 +0000)]
compiler: Add flattening pass

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

10 years agoruntime: fix 32-bit malloc for pointers >= 0x80000000
ian [Thu, 9 Jan 2014 23:16:56 +0000 (23:16 +0000)]
runtime: fix 32-bit malloc for pointers >= 0x80000000

The spans array is allocated in runtime_mallocinit.  On a
32-bit system the number of entries in the spans array is
MaxArena32 / PageSize, which (2U << 30) / (1 << 12) == (1 << 19).
So we are allocating an array that can hold 19 bits for an
index that can hold 20 bits.  According to the comment in the
function, this is intentional: we only allocate enough spans
(and bitmaps) for a 2G arena, because allocating more would
probably be wasteful.

But since the span index is simply the upper 20 bits of the
memory address, this scheme only works if memory addresses are
limited to the low 2G of memory.  That would be OK if we were
careful to enforce it, but we're not.  What we are careful to
enforce, in functions like runtime_MHeap_SysAlloc, is that we
always return addresses between the heap's arena_start and
arena_start + MaxArena32.

We generally get away with it because we start allocating just
after the program end, so we only run into trouble with
programs that allocate a lot of memory, enough to get past
address 0x80000000.

This changes the code that computes a span index to subtract
arena_start on 32-bit systems just as we currently do on
64-bit systems.

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

10 years ago2014-01-09 Steve Ellcey <sellcey@mips.com>
sje [Thu, 9 Jan 2014 21:02:43 +0000 (21:02 +0000)]
2014-01-09  Steve Ellcey  <sellcey@mips.com>

* Makefile.in (TREE_FLOW_H): Remove.
(TREE_SSA_H): Add file names from tree-flow.h.
* doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
* tree.h: Remove tree-flow.h reference.
* hash-table.h: Remove tree-flow.h reference.
* tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
reference with tree-ssa-loop.h.

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

10 years ago2014-01-09 Steve Ellcey <sellcey@mips.com>
sje [Thu, 9 Jan 2014 21:00:42 +0000 (21:00 +0000)]
2014-01-09  Steve Ellcey  <sellcey@mips.com>

* gcc.dg/delay-slot-1.c: Restrict -mabi=64 to 64 bit processors.

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

10 years ago2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
wschmidt [Thu, 9 Jan 2014 20:30:50 +0000 (20:30 +0000)]
2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* doc/invoke.texi: Add -maltivec={be,le} options, and document
default element-order behavior for -maltivec.
* config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
* config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
when targeting big endian, at least for now.
* config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.

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

10 years ago PR middle-end/47735
jakub [Thu, 9 Jan 2014 20:12:36 +0000 (20:12 +0000)]
PR middle-end/47735
* cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
var satisfies use_register_for_decl, just take into account type
alignment, rather than decl alignment.

* gcc.target/i386/pr47735.c: New test.

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

10 years ago PR tree-optimization/59622
jakub [Thu, 9 Jan 2014 20:09:33 +0000 (20:09 +0000)]
PR tree-optimization/59622
* gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
__builtin_unreachable replace the OBJ_TYPE_REF call with a call to
__builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
Don't devirtualize for inplace at all.  For targets.length () == 1,
if the call is noreturn and cfun isn't in SSA form yet, clear lhs.

* g++.dg/opt/pr59622-2.C: New test.
* g++.dg/opt/pr59622-3.C: New test.
* g++.dg/opt/pr59622-4.C: New test.
* g++.dg/opt/pr59622-5.C: New test.

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

10 years agoFix up ChangeLog Copyright dates.
jakub [Thu, 9 Jan 2014 20:08:22 +0000 (20:08 +0000)]
Fix up ChangeLog Copyright dates.

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

10 years ago2014-01-09 Tobias Burnus <burnus@net-b.de>
burnus [Thu, 9 Jan 2014 19:51:13 +0000 (19:51 +0000)]
2014-01-09  Tobias Burnus  <burnus@net-b.de>

        * cpp.c (gfc_cpp_handle_option): Add missing break.
        * trans-io.c (transfer_expr): Silence unused value warning.

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

10 years agoMove libgcc ChangeLog entries to libgcc/ChangeLog
hjl [Thu, 9 Jan 2014 19:41:54 +0000 (19:41 +0000)]
Move libgcc ChangeLog entries to libgcc/ChangeLog

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

10 years agoRemove the unused btver1
hjl [Thu, 9 Jan 2014 19:39:53 +0000 (19:39 +0000)]
Remove the unused btver1

* config/i386/i386.md (cpu): Remove the unused btver1.

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

10 years ago2014-01-09 Rong Xu <xur@google.com>
xur [Thu, 9 Jan 2014 19:13:47 +0000 (19:13 +0000)]
2014-01-09  Rong Xu  <xur@google.com>

* libgcc/libgcov-driver.c (this_prg): make it local to save
        bss space.
(gcov_exit_compute_summary): Ditto.
(gcov_exit_merge_gcda): Ditto.
(gcov_exit_merge_summary): Ditto.
(gcov_exit_dump_gcov): Ditto.

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

10 years ago2014-01-09 Rong Xu <xur@google.com>
xur [Thu, 9 Jan 2014 19:12:58 +0000 (19:12 +0000)]
2014-01-09  Rong Xu  <xur@google.com>

* libgcc/libgcov-driver.c (this_prg): make it local to save
        bss space.
(gcov_exit_compute_summary): Ditto.
(gcov_exit_merge_gcda): Ditto.
(gcov_exit_merge_summary): Ditto.
(gcov_exit_dump_gcov): Ditto.

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

10 years agoPut a breakpoint on __sanitizer::Report
hjl [Thu, 9 Jan 2014 18:40:13 +0000 (18:40 +0000)]
Put a breakpoint on __sanitizer::Report

* gdbasan.in: Put a breakpoint on __sanitizer::Report.

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

10 years ago PR libstdc++/59738
redi [Thu, 9 Jan 2014 18:38:52 +0000 (18:38 +0000)]
PR libstdc++/59738
* include/bits/stl_vector.h (vector<>::_M_move_assign): Restore
support for non-Movable types.

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

10 years agoRotate libstdc++-v3/ChangeLog
redi [Thu, 9 Jan 2014 18:38:40 +0000 (18:38 +0000)]
Rotate libstdc++-v3/ChangeLog

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

10 years ago PR target/58115
jakub [Thu, 9 Jan 2014 18:25:19 +0000 (18:25 +0000)]
PR target/58115
* tree-core.h (struct target_globals): New forward declaration.
(struct tree_target_option): Add globals field.
* tree.h (TREE_TARGET_GLOBALS): Define.
(prepare_target_option_nodes_for_pch): New prototype.
* target-globals.h (struct target_globals): Define even if
!SWITCHABLE_TARGET.
* tree.c (prepare_target_option_node_for_pch,
prepare_target_option_nodes_for_pch): New functions.
* config/i386/i386.h (SWITCHABLE_TARGET): Define.
* config/i386/i386.c: Include target-globals.h.
(ix86_set_current_function): Instead of doing target_reinit
unconditionally, use save_target_globals_default_opts and
restore_target_globals.
c-family/
* c-pch.c (c_common_write_pch): Call
prepare_target_option_nodes_for_pch.

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

10 years ago * sanitizer_common/sanitizer_symbolizer_libbacktrace.h
jakub [Thu, 9 Jan 2014 18:16:40 +0000 (18:16 +0000)]
* sanitizer_common/sanitizer_symbolizer_libbacktrace.h
(LibbacktraceSymbolizer::Demangle): New declaration.
* sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
(POSIXSymbolizer::Demangle): Use libbacktrace_symbolizer_'s Demangle
method if possible.
* sanitizer_common/sanitizer_symbolizer_libbacktrace.cc: Include
"demangle.h" if SANITIZE_CP_DEMANGLE is defined.
(struct CplusV3DemangleData): New type.
(CplusV3DemangleCallback, CplusV3Demangle): New functions.
(SymbolizeCodePCInfoCallback, SymbolizeCodeCallback,
SymbolizeDataCallback): Use CplusV3Demangle.
* sanitizer_common/Makefile.am (AM_CXXFLAGS): Add
-DSANITIZE_CP_DEMANGLE and -I $(top_srcdir)/../include.
* libbacktrace/backtrace-rename.h (cplus_demangle_builtin_types,
cplus_demangle_fill_ctor, cplus_demangle_fill_dtor,
cplus_demangle_fill_extended_operator, cplus_demangle_fill_name,
cplus_demangle_init_info, cplus_demangle_mangled_name,
cplus_demangle_operators, cplus_demangle_print,
cplus_demangle_print_callback, cplus_demangle_type, cplus_demangle_v3,
cplus_demangle_v3_callback, is_gnu_v3_mangled_ctor,
is_gnu_v3_mangled_dtor, java_demangle_v3, java_demangle_v3_callback):
Define.
(__asan_internal_memcmp, __asan_internal_strncmp): New prototypes.
(memcmp, strncmp): Redefine.
* libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES): Add
../../libiberty/cp-demangle.c.
* libbacktrace/bridge.cc (__asan_internal_memcmp,
__asan_internal_strncmp): New functions.
* sanitizer_common/Makefile.in: Regenerated.
* libbacktrace/Makefile.in: Regenerated.
* configure: Regenerated.
* configure.ac: Regenerated.
* config.h.in: Regenerated.

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

10 years ago * sanitizer_common/Makefile.am (AM_CPPFLAGS): Add
jakub [Thu, 9 Jan 2014 18:15:41 +0000 (18:15 +0000)]
* sanitizer_common/Makefile.am (AM_CPPFLAGS): Add
-isystem $(top_srcdir)/include/system.
* sanitizer_common/Makefile.in: Regenerated.
* include/system/linux/aio_abi.h: New header.
* include/system/linux/mroute.h: New header.
* include/system/linux/mroute6.h: New header.
* include/system/linux/perf_event.h: New header.
* include/system/linux/types.h: New header.

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

10 years ago PR sanitizer/59136
jakub [Thu, 9 Jan 2014 18:13:39 +0000 (18:13 +0000)]
PR sanitizer/59136
libsanitizer/
* sanitizer_common/Makefile.am (AM_CXXFLAGS): If
LIBBACKTRACE_SUPPORTED add -DSANITIZER_LIBBACKTRACE
and -I/-include flags.
* lsan/Makefile.am (liblsan_la_LIBADD): Add
libsanitizer_libbacktrace.la if LIBBACKTRACE_SUPPORTED.
* tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
* ubsan/Makefile.am (libubsan_la_LIBADD): Likewise.
* asan/Makefile.am (libasan_la_LIBADD): Likewise.
* Makefile.am (SUBDIRS): If LIBBACKTRACE_SUPPORTED add
libbacktrace.
* README.gcc: Document that also lsan and ubsan are
maintained in compiler-rt upstream.
* libbacktrace/Makefile.am: New file.
* libbacktrace/backtrace-rename.h: New file.
* libbacktrace/backtrace-supported.h.in: New file.
* libbacktrace/bridge.cc: New file.
* configure.ac: Add tests needed for libbacktrace build
within libsanitizer.
* sanitizer_common/Makefile.in: Regenerated.
* lsan/Makefile.in: Regenerated.
* tsan/Makefile.in: Regenerated.
* ubsan/Makefile.in: Regenerated.
* libbacktrace/Makefile.in: Generated.
* config.h.in: Regenerated.
* configure: Regenerated.
* Makefile.in: Regenerated.
* interception/Makefile.in: Regenerated.
* asan/Makefile.in: Regenerated.
* aclocal.m4: Regenerated.
testsuite/
* c-c++-common/asan/strip-path-prefix-1.c: Allow also the
filename:line instead of (modulename+offset) form with stripped
initial / from the filename.

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

10 years ago * go.test/go-test.exp (go-gc-tests): Skip nilptr tests that test
ian [Thu, 9 Jan 2014 17:58:14 +0000 (17:58 +0000)]
* go.test/go-test.exp (go-gc-tests): Skip nilptr tests that test
the other Go compiler.

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

10 years ago2014-01-09 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Thu, 9 Jan 2014 17:45:55 +0000 (17:45 +0000)]
2014-01-09  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/59730
* g++.dg/cpp0x/variadic145.C: New.

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

10 years ago * go.test/go-test.exp (go-gc-tests): Don't run peano.go on systems
uros [Thu, 9 Jan 2014 17:14:03 +0000 (17:14 +0000)]
* go.test/go-test.exp (go-gc-tests): Don't run peano.go on systems
which don't support -fsplit-stack.  Skip rotate[0123].go tests.

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

10 years agoFix for PR bootstrap/59094
bviyer [Thu, 9 Jan 2014 16:52:23 +0000 (16:52 +0000)]
Fix for PR bootstrap/59094
+2014-01-09  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       PR bootstrap/59094
+       * Makefile.am (cilkincludedir): Fixed a bug to store version-specific
+       runtime libraries in the correct place.
+       * Makefile.in: Regenerate.
+

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

10 years agoFix for PR testsuite/59524
bviyer [Thu, 9 Jan 2014 15:41:20 +0000 (15:41 +0000)]
Fix for PR testsuite/59524
2014-01-09  Balaji V. Iyer  <balaji.v.iyer@intel.com>

+       PR testsuite/59524
+       * gcc.dg/cilk-plus/cilk-plus.exp: Make sure the cilk keywords tests
+       are run only if the Cilk library is available/enabled.
+       * g++.dg/cilk-plus/cilk-plus.exp: Likewise.
+       * lib/target-supports.exp (check_libcilkrts_available): New
function.
+

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

10 years agoFix for PR c++/59631.
bviyer [Thu, 9 Jan 2014 13:37:41 +0000 (13:37 +0000)]
Fix for PR c++/59631.
+++ gcc/cp/ChangeLog
+2014-01-09  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       PR c++/59631
+       * parser.c (cp_parser_postfix_expression): Added a new if-statement
+       and replaced an existing if-statement with else-if statement.
+       Changed an existing error message wording to match the one from the C
+       parser.
+

+++ gcc/testsuite/ChangeLog
+2014-01-09  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       PR c++/59631
+       * gcc.dg/cilk-plus/cilk-plus.exp: Removed "-fcilkplus" from flags list.
+       * g++.dg/cilk-plus/cilk-plus.exp: Likewise.
+       * c-c++-common/cilk-plus/CK/spawnee_inline.c: Replaced second dg-option
+       with dg-additional-options.
+       * c-c++-common/cilk-plus/CK/varargs_test.c: Likewise.
+       * c-c++-common/cilk-plus/CK/steal_check.c: Likewise.
+       * c-c++-common/cilk-plus/CK/spawner_inline.c: Likewise.
+       * c-c++-common/cilk-plus/CK/spawning_arg.c: Likewise.
+       * c-c++-common/cilk-plus/CK/invalid_spawns.c: Added a dg-options tag.
+       * c-c++-common/cilk-plus/CK/pr59631.c: New testcase.
+

gcc/c/ChangeLog
+2014-01-09  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       PR c++/59631
+       * c-parser.c (c_parser_postfix_expression): Replaced consecutive if
+       statements with if-elseif statements.
+

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

10 years ago2014-01-09 Richard Biener <rguenther@suse.de>
rguenth [Thu, 9 Jan 2014 12:34:39 +0000 (12:34 +0000)]
2014-01-09  Richard Biener  <rguenther@suse.de>

* lto.c (gimple_canonical_types_compatible_p): Fix comment.

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

10 years ago2014-01-09 Richard Biener <rguenther@suse.de>
rguenth [Thu, 9 Jan 2014 11:52:43 +0000 (11:52 +0000)]
2014-01-09  Richard Biener  <rguenther@suse.de>

PR lto/45586
* lto.c (hash_canonical_type): Do not hash TREE_ADDRESSABLE,
TYPE_ALIGN, TYPE_RESTRICT or TYPE_REF_CAN_ALIAS_ALL.
(gimple_canonical_types_compatible_p): Do not compare them either.

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

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

PR tree-optimization/59715
* tree-cfg.h (split_critical_edges): Declare.
* tree-cfg.c (split_critical_edges): Export.
* tree-ssa-sink.c (execute_sink_code): Split critical edges.

* gcc.dg/torture/pr59715.c: New testcase.

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

10 years ago2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
chefmax [Thu, 9 Jan 2014 07:31:05 +0000 (07:31 +0000)]
2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>

* cfgexpand.c (expand_stack_vars): Optionally disable
asan stack protection.
(expand_used_vars): Likewise.
(partition_stack_vars): Likewise.
* asan.c (asan_emit_stack_protection): Optionally disable
after return stack usage.
(instrument_derefs): Optionally disable memory
access instrumentation.
(instrument_builtin_call): Likewise.
(instrument_strlen_call): Likewise.
(asan_protect_global): Optionally disable
global variables protection.
* doc/invoke.texi: Added doc for new options.
* params.def: Added new options.
* params.h: Likewise.

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

* c-c++-common/asan/no-asan-globals.c: New test.
* c-c++-common/asan/no-instrument-reads.c: Likewise.
* c-c++-common/asan/no-instrument-writes.c: Likewise.
* c-c++-common/asan/use-after-return-1.c: Likewise.
* c-c++-common/asan/no-use-after-return.c: Likewise.

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

10 years ago PR rtl-optimization/59724
jakub [Thu, 9 Jan 2014 07:21:21 +0000 (07:21 +0000)]
PR rtl-optimization/59724
* ifcvt.c (cond_exec_process_if_block): Don't call
flow_find_head_matching_sequence with 0 longest_match.
* cfgcleanup.c (flow_find_head_matching_sequence): Count even
non-active insns if !stop_after.
(try_head_merge_bb): Revert 2014-01-07 changes.

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

10 years ago * ree.c (get_sub_rtx): New function, extracted from...
law [Thu, 9 Jan 2014 04:42:38 +0000 (04:42 +0000)]
    * ree.c (get_sub_rtx): New function, extracted from...
        (merge_def_and_ext): Here.
        (combine_reaching_defs): Use get_sub_rtx.

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

10 years agoDaily bump.
gccadmin [Thu, 9 Jan 2014 00:17:01 +0000 (00:17 +0000)]
Daily bump.

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

10 years ago * cgraph.h (varpool_variable_node): Do not choke on null node.
ebotcazou [Wed, 8 Jan 2014 22:39:07 +0000 (22:39 +0000)]
* cgraph.h (varpool_variable_node): Do not choke on null node.

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

10 years ago PR middle-end/59471
jakub [Wed, 8 Jan 2014 22:33:12 +0000 (22:33 +0000)]
PR middle-end/59471
* gcc.dg/pr59471.c (foo): Avoid vector type arguments or return
type, use pointers to vector type instead.

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

10 years ago2014-01-08 Catherine Moore <clm@codesourcery.com>
clm [Wed, 8 Jan 2014 22:26:05 +0000 (22:26 +0000)]
2014-01-08  Catherine Moore  <clm@codesourcery.com>

gcc/testsuite/
* gcc.target/mips/umips-branch-3.c: New test.
* gcc.target/mips/umips-branch-4.c: New test.

gcc/
* config/mips/mips.md (simple_return): Attempt to use JRC for microMIPS.
* config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.

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

10 years agogcc/testsuite/
rsandifo [Wed, 8 Jan 2014 22:17:23 +0000 (22:17 +0000)]
gcc/testsuite/
* gcc.dg/tree-ssa/reassoc-32.c, gcc.dg/tree-ssa/reassoc-33.c,
gcc.dg/tree-ssa/reassoc-34.c, gcc.dg/tree-ssa/reassoc-35.c,
gcc.dg/tree-ssa/reassoc-36.c: Extend -mbranch-cost handling to MIPS.
* gcc.dg/tree-ssa/ssa-ifcombine-ccmp-1.c,
gcc.dg/tree-ssa/ssa-ifcombine-ccmp-4.c,
gcc.dg/tree-ssa/ssa-ifcombine-ccmp-5.c,
gcc.dg/tree-ssa/ssa-ifcombine-ccmp-6.c,
gcc.dg/tree-ssa/vrp87.c, gcc.dg/tree-ssa/forwprop-28.c: Skip for MIPS.

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

10 years agogcc/
rsandifo [Wed, 8 Jan 2014 22:16:49 +0000 (22:16 +0000)]
gcc/
PR rtl-optimization/59137
* reorg.c (steal_delay_list_from_target): Call update_block for
elided insns.
(steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.

gcc/testsuite/
PR rtl-optimization/59137
* gcc.target/mips/pr59137.c: New test.

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

10 years ago2014-01-08 François Dumont <fdumont@gcc.gnu.org>
fdumont [Wed, 8 Jan 2014 20:57:57 +0000 (20:57 +0000)]
2014-01-08  François Dumont  <fdumont@gcc.gnu.org>

* include/bits/stl_vector.h (std::vector<>::_M_move_assign): Pass
*this allocator instance when building temporary vector instance
so that *this allocator does not get moved.
* include/debug/safe_base.h
(_Safe_sequence_base(_Safe_sequence_base&&)): New.
* include/debug/vector (__gnu_debug::vector<>(vector&&)): Use new
move constructor from _Safe_sequence_base.
(__gnu_debug::vector<>(vector&&, const allocator_type&)): Swap
safe iterators if the instance is moved.
(__gnu_debug::vector<>::operator=(vector&&)): Likewise.
* testsuite/23_containers/vector/allocator/move.cc (test01): Add
check on a vector iterator.
* testsuite/23_containers/vector/allocator/move_assign.cc
(test02): Likewise.
(test03): New, test with a non-propagating allocator.
* testsuite/23_containers/vector/debug/move_assign_neg.cc: New.

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

10 years ago2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
wschmidt [Wed, 8 Jan 2014 20:15:48 +0000 (20:15 +0000)]
2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
two duplicate entries.

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

10 years ago * gcc.target/i386/asm-1.c (dg-options): Remove -m32.
uros [Wed, 8 Jan 2014 19:45:54 +0000 (19:45 +0000)]
* gcc.target/i386/asm-1.c (dg-options): Remove -m32.
* gcc.target/i386/incoming-5.c (dg-options): Ditto.
* gcc.target/i386/pr55433.c (dg-options): Ditto.
* gcc.target/i386/pr57848.c (dg-options): Ditto.
* gcc.target/i386/pr59099.c (dg-options): Ditto.
Require fpic effective target.
* gcc.target/i386/pr56246.c (dg-do): Compile for fpic target only.

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

10 years agogcc/
rsandifo [Wed, 8 Jan 2014 19:32:56 +0000 (19:32 +0000)]
gcc/
Revert:
2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>

* config/mips/mips.c (mips_truncated_op_cost): New function.
(mips_rtx_costs): Adjust test for BADDU.
* config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.

2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>

* config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
(*baddu_si): ...this new pattern.

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

10 years ago PR c++/59614
jason [Wed, 8 Jan 2014 18:48:31 +0000 (18:48 +0000)]
PR c++/59614
* class.c (abi_tag_data): Add tags field.
(check_abi_tags): Initialize it.
(find_abi_tags_r): Support collecting missing tags.
(mark_type_abi_tags): Don't look at template args.
(inherit_targ_abi_tags): New.
(check_bases_and_members): Use it.
* cp-tree.h (ABI_TAG_IMPLICIT): New.
* mangle.c (write_abi_tags): Check it.

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

10 years ago PR ipa/59722
jakub [Wed, 8 Jan 2014 18:41:22 +0000 (18:41 +0000)]
PR ipa/59722
* ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.

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

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

10 years ago2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
edlinger [Wed, 8 Jan 2014 17:25:38 +0000 (17:25 +0000)]
2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR middle-end/57748
        * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
        inner_reference_p.
        (expand_expr, expand_normal): Adjust.
        * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
        inner_reference_p. Use inner_reference_p to expand inner references.
        (store_expr): Adjust.
        * cfgexpand.c (expand_call_stmt): Adjust.

testsuite:
2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR middle-end/57748
        * gcc.dg/torture/pr57748-3.c: New test.
        * gcc.dg/torture/pr57748-4.c: New test.

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

10 years ago2014-01-08 Rong Xu <xur@google.com>
tejohnson [Wed, 8 Jan 2014 16:37:08 +0000 (16:37 +0000)]
2014-01-08  Rong Xu  <xur@google.com>

* gcc/gcov-io.c (gcov_var): Move from gcov-io.h.
(gcov_position): Ditto.
(gcov_is_error): Ditto.
(gcov_rewrite): Ditto.
* gcc/gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
only part to libgcc/libgcov.h.
* libgcc/libgcov-driver.c: Use libgcov.h.
(buffer_fn_data): Use xmalloc instead of malloc.
(gcov_exit_merge_gcda): Ditto.
* libgcc/libgcov-driver-system.c (allocate_filename_struct): Ditto.
* libgcc/libgcov.h: New common header files for libgcov-*.h.
* libgcc/libgcov-interface.c: Use libgcov.h
* libgcc/libgcov-merge.c: Ditto.
* libgcc/libgcov-profiler.c: Ditto.
* libgcc/Makefile.in: Add dependence to libgcov.h

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

10 years ago PR middle-end/59669
mpolacek [Wed, 8 Jan 2014 15:37:35 +0000 (15:37 +0000)]
PR middle-end/59669
* omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
testsuite/
* gcc.dg/gomp/pr59669-1.c: New test.
* gcc.dg/gomp/pr59669-2.c: New test.

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

10 years ago2014-01-08 Martin Jambor <mjambor@suse.cz>
jamborm [Wed, 8 Jan 2014 15:32:50 +0000 (15:32 +0000)]
2014-01-08  Martin Jambor  <mjambor@suse.cz>

PR ipa/59610
testsuite/
* gcc.dg/ipa/pr59610.c: New test.

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

10 years ago2014-01-08 Janus Weil <janus@gcc.gnu.org>
janus [Wed, 8 Jan 2014 15:25:22 +0000 (15:25 +0000)]
2014-01-08  Janus Weil  <janus@gcc.gnu.org>

PR fortran/58182
* resolve.c (gfc_verify_binding_labels): Modify order of checks.

2014-01-08  Janus Weil  <janus@gcc.gnu.org>

PR fortran/58182
* gfortran.dg/binding_label_tests_26a.f90: New.
* gfortran.dg/binding_label_tests_26b.f90: New.

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

10 years ago PR sanitizer/59667
mpolacek [Wed, 8 Jan 2014 10:06:09 +0000 (10:06 +0000)]
PR sanitizer/59667
* ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
testsuite/
* c-c++-common/ubsan/pr59667.c: New test.

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

10 years ago PR rtl-optimization/59649
jakub [Wed, 8 Jan 2014 10:01:29 +0000 (10:01 +0000)]
PR rtl-optimization/59649
* stor-layout.c (get_mode_bounds): For BImode return
0 and STORE_FLAG_VALUE.

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

10 years ago2014-01-08 Richard Biener <rguenther@suse.de>
rguenth [Wed, 8 Jan 2014 09:06:27 +0000 (09:06 +0000)]
2014-01-08  Richard Biener  <rguenther@suse.de>

PR middle-end/59630
* gimple.h (is_gimple_builtin_call): Remove.
(gimple_builtin_call_types_compatible_p): New.
(gimple_call_builtin_p): New overload.
* gimple.c (is_gimple_builtin_call): Remove.
(validate_call): Rename to ...
(gimple_builtin_call_types_compatible_p): ... this and export.  Also
check return types.
(validate_type): New static function.
(gimple_call_builtin_p): New overload and adjust.
* gimple-fold.c (gimple_fold_builtin): Fold the return value.
(gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
(gimple_fold_stmt_to_constant_1): Likewise.
* tsan.c (instrument_gimple): Use gimple_call_builtin_p.

* gcc.dg/pr59630.c: New testcase.

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

10 years ago2014-01-08 Richard Biener <rguenther@suse.de>
rguenth [Wed, 8 Jan 2014 08:59:29 +0000 (08:59 +0000)]
2014-01-08  Richard Biener  <rguenther@suse.de>

PR middle-end/59471
* gimplify.c (gimplify_expr): Gimplify register-register type
VIEW_CONVERT_EXPRs to separate stmts.

* gcc.dg/pr59471.c: New testcase.

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