platform/upstream/linaro-gcc.git
9 years ago gcc/testsuite/ChangeLog
amker [Tue, 7 Apr 2015 08:57:59 +0000 (08:57 +0000)]
gcc/testsuite/ChangeLog
* gcc.target/arm/pr65647.c: Add option "-mfloat-abi=soft".

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

9 years ago[gcc]
meissner [Tue, 7 Apr 2015 03:36:05 +0000 (03:36 +0000)]
[gcc]
2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/65614
* config/rs6000/rs6000.c (struct processor_costs): Add cost field
for SF->DF conversions to make FLOAT_EXTEND more expensive, so
that LFD is used to load double constants instead of LFS.  Add
defaults for all costs structures.  Add comments for missing
initialization fields.
(size32_cost): Likewise.
(size64_cost): Likewise.
(rs64a_cost): Likewise.
(mpccore_cost): Likewise.
(ppc403_cost): Likewise.
(ppc405_cost): Likewise.
(ppc440_cost): Likewise.
(ppc476_cost): Likewise.
(ppc601_cost): Likewise.
(ppc603_cost): Likewise.
(ppc604_cost): Likewise.
(ppc604e_cost): Likewise.
(ppc620_cost): Likewise.
(ppc630_cost): Likewise.
(ppccell_cost): Likewise.
(ppc750_cost): Likewise.
(ppc7450_cost): Likewise.
(ppc8540_cost): Likewise.
(ppce300c2c3_cost): Likewise.
(ppce500mc_cost): Likewise.
(ppce500mc64_cost): Likewise.
(ppce5500_cost): Likewise.
(ppce6500_cost): Likewise.
(titan_cost): Likewise.
(power4_cost): Likewise.
(power6_cost): Likewise.
(power7_cost): Likewise.
(power8_cost): Likewise.
(ppca2_cost): Likewise.
(rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.

* config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
instead of XXLOR to copy SFmode to clear out dirty bits created
when SFmode denormals are generated.
(mov<mode>_hardfloat, FMOVE32 case): Likewise.
(truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.

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

PR target/65614
* gcc.target/powerpc/compress-float-ppc-pic.c: Run test on power5
to get floating point compression.
* gcc.target/powerpc/compress-foat-ppc.c: Likewise.

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

9 years agoDaily bump.
gccadmin [Tue, 7 Apr 2015 00:16:16 +0000 (00:16 +0000)]
Daily bump.

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

9 years agoadd option for the Samsung Exynos M1 core for AArch64
spop [Mon, 6 Apr 2015 19:19:43 +0000 (19:19 +0000)]
add option for the Samsung Exynos M1 core for AArch64

* doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
* config/aarch64/aarch64-cores.def (exynos-m1): New core.
* config/aarch64/aarch64-tune.md: Regenerate.

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

9 years agoadd option for the Samsung Exynos M1 core
spop [Mon, 6 Apr 2015 19:19:34 +0000 (19:19 +0000)]
add option for the Samsung Exynos M1 core

* doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
* config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
* config/arm/arm-cores.def (exynos-m1): New core.
* config/arm/arm-tune.md: Regenerate.
* config/arm/arm-tables.opt: Add entry for "exynos-m1".
* config/arm/bpabi.h: Likewise.

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

9 years ago PR preprocessor/61977
jakub [Mon, 6 Apr 2015 17:01:50 +0000 (17:01 +0000)]
PR preprocessor/61977
* lex.c (cpp_peek_token): If peektok is CPP_EOF, back it up
with all tokens peeked by the current function.

* gcc.dg/cpp/pr61977.c: New test.

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

9 years ago * ipa-cp (set_single_call_flag): Remove too
ienkovich [Mon, 6 Apr 2015 15:58:37 +0000 (15:58 +0000)]
* ipa-cp (set_single_call_flag): Remove too
restrictive assert.

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

9 years agolibgomp: rework initialization of offloading
iverbin [Mon, 6 Apr 2015 12:40:28 +0000 (12:40 +0000)]
libgomp: rework initialization of offloading

gcc/
* config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
GOMP_offload_unregister from the destructor.
libgomp/
* libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
* libgomp.h (struct gomp_memory_mapping): Remove.
(struct target_mem_desc): Change type of mem_map from
gomp_memory_mapping * to splay_tree_s *.
(struct gomp_device_descr): Remove register_image_func, get_table_func.
Add load_image_func, unload_image_func.
Change type of mem_map from gomp_memory_mapping to splay_tree_s.
Remove offload_regions_registered.
(gomp_init_tables): Remove.
(gomp_free_memmap): Change type of argument from gomp_memory_mapping *
to splay_tree_s *.
* libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
* oacc-host.c (host_dispatch): Do not initialize register_image_func,
get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
offload_regions_registered.
Initialize load_image_func, unload_image_func, mem_map.root.
(goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
* oacc-init.c (lazy_open): Don't call gomp_init_tables.
(acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
* oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
gomp_memory_mapping *.  Use dev's lock and splay_tree.
(lookup_dev): Use dev's lock.
(acc_deviceptr): Pass dev to lookup_host instead of mem_map.
(acc_is_present): Likewise.
(acc_map_data): Likewise.
(acc_unmap_data): Likewise.  Use dev's lock.
(present_create_copy): Likewise.
(delete_copyout): Pass dev to lookup_host instead of mem_map.
(update_dev_host): Likewise.
(gomp_acc_remove_pointer): Likewise.  Use dev's lock.
* oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
* plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
(GOMP_OFFLOAD_get_table): Remove
(GOMP_OFFLOAD_load_image): New function.
(GOMP_OFFLOAD_unload_image): New function.
* target.c (register_lock): New mutex for offload image registration.
(num_devices): Do not guard with PLUGIN_SUPPORT.
(gomp_realloc_unlock): New static function.
(gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
before gomp_fatal.
(gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
(gomp_copy_from_async): Use dev's lock and splay_tree instead of
mem_map's.
(gomp_unmap_vars): Likewise.
(gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
(gomp_offload_image_to_device): New static function.
(GOMP_offload_register): Add mutex lock.
Call gomp_offload_image_to_device for all initialized devices.
Replace gomp_realloc with gomp_realloc_unlock.
(GOMP_offload_unregister): New function.
(gomp_init_tables): Replace with gomp_init_device.  Replace a call to
get_table_func from the plugin with calls to init_device_func and
gomp_offload_image_to_device.
(gomp_free_memmap): Change type of argument from gomp_memory_mapping *
to splay_tree_s *.
(GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
(GOMP_target_data): Do not call gomp_init_tables.
(GOMP_target_update): Likewise.  Remove argument from gomp_update.
(gomp_load_plugin_for_device): Replace register_image and get_table
with load_image and unload_image in DLSYM ().
(gomp_register_images_for_device): Remove function.
(gomp_target_init): Do not initialize current_device.mem_map.*,
current_device.offload_regions_registered.
Remove call to gomp_register_images_for_device.
Do not free offload_images and num_offload_images.
liboffloadmic/
* plugin/libgomp-plugin-intelmic.cpp: Include map.
(AddrVect, DevAddrVect, ImgDevAddrMap): New typedefs.
(num_devices, num_images, address_table): New static vars.
(num_libraries, lib_descrs): Remove static vars.
(set_mic_lib_path): Rename to ...
(init): ... this.  Allocate address_table and get num_devices.
(GOMP_OFFLOAD_get_num_devices): return num_devices.
(load_lib_and_get_table): Remove static function.
(offload_image): New static function.
(GOMP_OFFLOAD_get_table): Remove function.
(GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New functions.

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

9 years agogcc/
ienkovich [Mon, 6 Apr 2015 10:41:55 +0000 (10:41 +0000)]
gcc/

* ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
flags for instrumentation thunk.
(chkp_produce_thunks): Likewise.

gcc/testsuite/

* gcc.dg/lto/chkp-ctor-merge_0.c: New.

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

9 years agoDaily bump.
gccadmin [Mon, 6 Apr 2015 00:16:11 +0000 (00:16 +0000)]
Daily bump.

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

9 years agoFix PR ipa/65665
marxin [Sun, 5 Apr 2015 17:17:29 +0000 (17:17 +0000)]
Fix PR ipa/65665

PR ipa/65665
* ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
has computed data structure.
(sem_item_optimizer::update_hash_by_addr_refs): Likewise.

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

9 years agoDaily bump.
gccadmin [Sun, 5 Apr 2015 00:16:11 +0000 (00:16 +0000)]
Daily bump.

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

9 years ago * invoke.texi (inline-unit-growth): Increase growth to 20%
hubicka [Sat, 4 Apr 2015 21:07:46 +0000 (21:07 +0000)]
* invoke.texi (inline-unit-growth): Increase growth to 20%
* params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.

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

9 years ago2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Sat, 4 Apr 2015 14:35:59 +0000 (14:35 +0000)]
2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>

PR target/65647
* lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
value checking.
(lra_rematerialization_iter): New.
* lra.c (lra): Initialize lra_rematerialization_iter.
Stop updating lra_constraint_new_regno_start after switching of
inheritance and rematerialization.
* lra-remat.c (lra_rematerialization_iter): New.
(lra_remat): Add printing pass iteration.  Do rematerialization
only first LRA_MAX_REMATERIALIZATION_PASSES iterations.

2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>

PR target/65647
* gcc.target/arm/pr65647.c: New.

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

9 years ago2015-04-04 Richard Biener <rguenther@suse.de>
rguenth [Sat, 4 Apr 2015 10:47:08 +0000 (10:47 +0000)]
2015-04-04  Richard Biener  <rguenther@suse.de>

PR tree-optimization/64909
PR tree-optimization/65660
* tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
to take a cost vector for scalar iteration cost.
(vect_get_single_scalar_iteration_cost): Likewise.
* tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
Compute the scalar iteration cost into a cost vector.
(vect_get_known_peeling_cost): Use the scalar cost vector to
account for the cost of the peeled iterations.
(vect_estimate_min_profitable_iters): Likewise.
* tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
Likewise.

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

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

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

9 years ago PR target/65576
amodra [Fri, 3 Apr 2015 23:16:26 +0000 (23:16 +0000)]
PR target/65576
PR target/65240
* config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
0.0 constant unless TARGET_VSX.
* config/rs6000/rs6000.md (extenddftf2_internal): Remove last
alternative.

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

9 years ago PR ipa/65648
hubicka [Fri, 3 Apr 2015 20:25:01 +0000 (20:25 +0000)]
PR ipa/65648
* ipa-inline-transform.c (inline_call): Skip sanity check to work
around the ICE

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

9 years ago PR ipa/65655
hubicka [Fri, 3 Apr 2015 18:19:53 +0000 (18:19 +0000)]
PR ipa/65655
* ipa-inline-analysis.c (edge_set_predicate): Do not redirect
speculative indirect edges to avoid ordering issue.
* g++.dg/torture/pr65655.C: New testcase.

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

9 years ago PR ipa/65076
hubicka [Fri, 3 Apr 2015 18:09:13 +0000 (18:09 +0000)]
PR ipa/65076
* ipa-inline.c (edge_badness): Add combined size to the denominator.

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

9 years ago/cp
paolo [Fri, 3 Apr 2015 17:23:27 +0000 (17:23 +0000)]
/cp
2015-04-03  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/64085
* lambda.c (add_capture): Use dependent_type_p for capture by
reference too.

/testsuite
2015-04-03  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/64085
* g++.dg/cpp1y/lambda-init13.C: New.

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

9 years ago * g++.dg/cpp0x/pr57101.C: Use proper type for size_t.
mpolacek [Fri, 3 Apr 2015 14:55:21 +0000 (14:55 +0000)]
* g++.dg/cpp0x/pr57101.C: Use proper type for size_t.

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

9 years ago * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
jakub [Fri, 3 Apr 2015 13:35:49 +0000 (13:35 +0000)]
* omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
TYPE_ARTIFICIAL on the .omp_data* types.

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

9 years ago * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
ienkovich [Fri, 3 Apr 2015 09:00:53 +0000 (09:00 +0000)]
* cgraphunit.c (cgraph_node::expand_thunk): Don't expand
instrumentation thunks.

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

9 years ago * config/i386/i386.c (ix86_expand_call): Avoid nested
ienkovich [Fri, 3 Apr 2015 08:51:26 +0000 (08:51 +0000)]
* config/i386/i386.c (ix86_expand_call): Avoid nested
PARALLEL in returned call value.

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

9 years ago * lto-cgraph.c (input_cgraph_1): Always link instrumented
ienkovich [Fri, 3 Apr 2015 08:39:29 +0000 (08:39 +0000)]
* lto-cgraph.c (input_cgraph_1): Always link instrumented
assembler name with original one.

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

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

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

9 years ago * config/i386/i386.c (ix86_register_priority): Use AX_REG.
uros [Thu, 2 Apr 2015 17:33:22 +0000 (17:33 +0000)]
* config/i386/i386.c (ix86_register_priority): Use AX_REG.

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

9 years ago PR c++/65642
mpolacek [Thu, 2 Apr 2015 16:51:27 +0000 (16:51 +0000)]
PR c++/65642
* constexpr.c (cxx_eval_pointer_plus_expression): Call
cxx_eval_constant_expression on the first operand.

* g++.dg/cpp0x/constexpr-fold1.C: New test.
* g++.dg/cpp0x/constexpr-fold2.C: New test.

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

9 years ago PR c++/65625
jason [Thu, 2 Apr 2015 16:43:02 +0000 (16:43 +0000)]
PR c++/65625
* decl.c (make_typename_type): Handle seeing a variable template.

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

9 years ago2015-04-02 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Thu, 2 Apr 2015 15:23:36 +0000 (15:23 +0000)]
2015-04-02  Paolo Carlini  <paolo.carlini@oracle.com>

Complete commit.

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

9 years ago Revert parts of r216820.
uros [Thu, 2 Apr 2015 12:22:16 +0000 (12:22 +0000)]
Revert parts of r216820.
* config/i386/i386.md (movqi_internal): Correct type calculation
for alternatives 3 and 5.

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

9 years ago PR preprocessor/61977
jakub [Thu, 2 Apr 2015 11:57:02 +0000 (11:57 +0000)]
PR preprocessor/61977
* lex.c (cpp_peek_token): Temporarily clear pfile->cb.line_change.

* gcc.target/powerpc/pr61977-1.c: New test.
* gcc.target/powerpc/pr61977-2.c: New test.

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

9 years ago PR preprocessor/61977
jakub [Thu, 2 Apr 2015 11:54:58 +0000 (11:54 +0000)]
PR preprocessor/61977
* config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
predefine __vector/__bool/__pixel macros nor context sensitive
macros for CLK_ASM.
* config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.

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

9 years ago * config/pa/pa.c (pa_output_move_double): Directly handle register
danglin [Thu, 2 Apr 2015 11:29:48 +0000 (11:29 +0000)]
* config/pa/pa.c (pa_output_move_double): Directly handle register
indexed memory operand.  Simplify handling of scaled register indexed
memory operands.

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

9 years ago[Patch] Add myself as AArch64 Port Reviewer
jgreenhalgh [Thu, 2 Apr 2015 10:49:16 +0000 (10:49 +0000)]
[Patch] Add myself as AArch64 Port Reviewer

* MAINTAINERS: Add myself as a reviewer for the AArch64 port.

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

9 years agoAdd myself as reviewer for arm port
ktkachov [Thu, 2 Apr 2015 10:19:37 +0000 (10:19 +0000)]
Add myself as reviewer for arm port

    * MAINTAINERS: Add myself as an arm port reviewer.

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

9 years agogcc/
ienkovich [Thu, 2 Apr 2015 08:15:49 +0000 (08:15 +0000)]
gcc/
PR driver/65444
* config/i386/linux-common.h (MPX_SPEC): New.
(CHKP_SPEC): Add MPX_SPEC.
* doc/invoke.texi (-fcheck-pointer-boudns): Document
possible issues with '-z bndplt' support in linker.

libmpx/

PR driver/65444
* configure.ac: Add check for '-z bndplt' support
by linker. Add link_mpx output variable.
* libmpx.spec.in (link_mpx): New.
* configure: Regenerate.

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

9 years ago * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
uros [Thu, 2 Apr 2015 07:56:05 +0000 (07:56 +0000)]
* config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
(loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
(storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
* reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
(subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.

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

9 years ago * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
hubicka [Thu, 2 Apr 2015 05:14:26 +0000 (05:14 +0000)]
* lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
split_part.
* ipa-inline.c (edge_badness): Add wrapper penalty.
(sum_callers): Move up.
(inline_small_functions): Set single_caller.
* ipa-inline.h (inline_summary): Add single_caller.
* ipa-split.c (split_function): Set split_part.
(cgraph_node::create_clone): Do not shadow decl; copy split_part.
* cgraph.h (cgraph_node): Add split_part.

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

9 years agoDaily bump.
gccadmin [Thu, 2 Apr 2015 00:16:11 +0000 (00:16 +0000)]
Daily bump.

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

9 years ago/cp
paolo [Wed, 1 Apr 2015 21:27:55 +0000 (21:27 +0000)]
/cp
2015-04-01  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/56100
* pt.c (instantiating_current_function_p): New.
* name-lookup.c (pushdecl_maybe_friend_1): Use it.
* cp-tree.h (instantiating_current_function_p): Declare.

/testsuite
2015-04-01  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/56100
* g++.dg/warn/Wshadow-8.C: New.
* g++.dg/warn/Wshadow-9.C: Likewise.
* g++.dg/warn/Wshadow-10.C: Likewise.
* g++.dg/warn/Wshadow-11.C: Likewise.

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

9 years ago * config/i386/sync.md (UNSPEC_MOVA): Remove.
uros [Wed, 1 Apr 2015 17:36:24 +0000 (17:36 +0000)]
* config/i386/sync.md (UNSPEC_MOVA): Remove.
(atomic_load<mode>): Change operand 0 predicate to
nonimmediate_operand and fix up the destination when needed.
Use UNSPEC_LDA.
(atomic_loaddi_fpu): Use UNSPEC_LDA.
(atomic_store<mode>): Change operand 1 predicate to
nonimmendate_operand and move the source to register when needed.
Use UNSPEC_STA.
(atomic_store<mode>_1): Use UNSPEC_STA.
(atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
Fix moves from memory operand.  Use UNSPEC_STA.

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

9 years ago PR c++/65646
jason [Wed, 1 Apr 2015 16:36:50 +0000 (16:36 +0000)]
PR c++/65646
* decl.c (grokvardecl): Don't call check_explicit_specialization
for non-template members of a class template.

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

9 years agogcc:
edlinger [Wed, 1 Apr 2015 16:09:48 +0000 (16:09 +0000)]
gcc:
2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * expmed.c (strict_volatile_bitfield_p): Check that the access will
        not cross a MODESIZE boundary.
        (store_bit_field, extract_bit_field): Added assertions in the
        strict volatile bitfields code path.

testsuite:
2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * gcc.dg/pr23623.c: Added aligned attribute.
        * gcc.dg/20141029-1.c: Likewise.
        * gcc.dg/20150306-1.c: New test.

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

9 years ago PR c++/65554
mpolacek [Wed, 1 Apr 2015 13:08:05 +0000 (13:08 +0000)]
PR c++/65554
* class.c (finish_struct): Require that the second field of a
user-defined initializer_list be of size type.

* g++.dg/cpp0x/initlist93.C: New test.
* g++.dg/cpp0x/initlist94.C: New test.

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

9 years ago2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
chefmax [Wed, 1 Apr 2015 11:18:03 +0000 (11:18 +0000)]
2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>

PR target/65624

gcc/
* config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin): Increase
args array size by one to avoid buffer overflow.

gcc/testsuite/
* gcc.target/aarch64/pr65624.c: New test.

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

9 years ago * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
hubicka [Wed, 1 Apr 2015 07:41:17 +0000 (07:41 +0000)]
* lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
split_part.
* ipa-inline.c (edge_badness): Add wrapper penalty.
(sum_callers): Move up.
(inline_small_functions): Set single_caller.
* ipa-inline.h (inline_summary): Add single_caller.
* ipa-split.c (split_function): Set split_part.
(cgraph_node::create_clone): Do not shadow decl; copy split_part.
* cgraph.h (cgraph_node): Add split_part.

* gcc.dg/ipa/inlinehint-4.c: New testcase.

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

9 years agoDaily bump.
gccadmin [Wed, 1 Apr 2015 00:16:13 +0000 (00:16 +0000)]
Daily bump.

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

9 years agoRemove some files that were accidentally committed in 2014.
ian [Tue, 31 Mar 2015 19:47:23 +0000 (19:47 +0000)]
Remove some files that were accidentally committed in 2014.

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

9 years ago2015-03-31 Alex Velenko <Alex.Velenko@arm.com>
avelenko [Tue, 31 Mar 2015 19:00:52 +0000 (19:00 +0000)]
2015-03-31  Alex Velenko  <Alex.Velenko@arm.com>

* gcc.target/arm/pr45701-1.c (history_expand_line_internal): Add an
extra variable to force stack alignment.
* gcc.target/arm/pr45701-2.c (history_expand_line_internal): Add an
extra variable to force stack alignment.

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

9 years agogo/cmd/go: always link external test packages first
ian [Tue, 31 Mar 2015 17:54:07 +0000 (17:54 +0000)]
go/cmd/go: always link external test packages first

When linking complex packages that use both internal and external tests as well as many dependencies it is critical that the link order be external test package, internal test package, everything else.

This change is a back (forward?) port of the same change that canonical have been maintaining on their fork of the go tool for gccgo. Now that gccgo uses the go tool from upstream, this patch should be applied both to the gofrontend and golang/go repos.

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

9 years ago PR c++/65390
mpolacek [Tue, 31 Mar 2015 17:35:29 +0000 (17:35 +0000)]
PR c++/65390
* tree.c (build_cplus_array_type): Use dependent_type_p rather than
checking for constness.

* g++.dg/template/pr65390.C: New test.

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

9 years ago PR target/58945
uros [Tue, 31 Mar 2015 17:06:37 +0000 (17:06 +0000)]
PR target/58945
* config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
Do not split operands 0 and operands 2 to halfmode.
(atomic_compare_and_swap<mode>): Update for
atomic_compare_and_swap<dwi>_doubleword changes.

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

9 years ago * tree.c (need_assembler_name_p): Artificial types have no ODR
hubicka [Tue, 31 Mar 2015 17:03:16 +0000 (17:03 +0000)]
* tree.c (need_assembler_name_p): Artificial types have no ODR
names.
* ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
no caching is done.
* lto.c (lto_read_decls): Move code registering odr types out
of TYPE_CANONICAL conditional and also register polymorphic types.

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

9 years agoFix PR65557.
marxin [Tue, 31 Mar 2015 16:03:03 +0000 (16:03 +0000)]
Fix PR65557.

* ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
has already filled up function summary.
(sem_item_optimizer::update_hash_by_addr_refs): Likewise.
* g++.dg/ipa/pr65557.C: New test.

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

9 years ago2015-03-31 Richard Biener <rguenther@suse.de>
rguenth [Tue, 31 Mar 2015 13:32:59 +0000 (13:32 +0000)]
2015-03-31  Richard Biener  <rguenther@suse.de>

* tree-sra.c (create_access_replacement): Drop under-/over-alignment
of types.

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

9 years agoS/390: Hotpatch: Remove special handling of nested functions.
krebbel [Tue, 31 Mar 2015 12:07:06 +0000 (12:07 +0000)]
S/390: Hotpatch: Remove special handling of nested functions.

gcc/
2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>

    * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
    nested functions.
    (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
    (s390_asm_output_function_label): Adapt to new signature of
    s390_function_num_hotpatch_hw
    Optimise the code generating assembler output.
    Add comments to assembler file.

gcc/testsuite/
2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>

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

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

9 years ago2015-03-31 Richard Biener <rguenther@suse.de>
rguenth [Tue, 31 Mar 2015 09:34:08 +0000 (09:34 +0000)]
2015-03-31  Richard Biener  <rguenther@suse.de>

PR middle-end/65626
* tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
of the noreturn call so it is last and cleanup_control_flow_bb
can do the CFG part.

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

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

9 years agoFix bzero warning in child_setup_tty
vries [Tue, 31 Mar 2015 08:30:15 +0000 (08:30 +0000)]
Fix bzero warning in child_setup_tty

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

PR ada/65490
* terminals.c (child_setup_tty): Fix warning 'argument to sizeof in
bzero call is the same expression as the destination'.

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

9 years agogcc/
ienkovich [Tue, 31 Mar 2015 08:29:28 +0000 (08:29 +0000)]
gcc/

PR target/65531
* ipa-chkp.c (chkp_maybe_create_clone): Don't set
same_comdat_group for external symbols.
* symtab.c (symtab_node::verify_symtab_nodes): Avoid
infinite same_comdat_group traversal loop.

gcc/testsuite/

PR target/65531
* gcc.target/i386/mpx/pr65531.cc: New.

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

9 years ago PR target/65602
ienkovich [Tue, 31 Mar 2015 08:24:38 +0000 (08:24 +0000)]
PR target/65602
* gcc.target/i386/mpx/alloca-1-lbv.c (mpx_test): Use
__builtin_alloca instead of alloca.
* gcc.target/i386/mpx/alloca-1-nov.c (mpx_test): Likewise.
* gcc.target/i386/mpx/alloca-1-ubv.c (mpx_test): Likewise.
* lib/mpx-dg.exp (check_effective_target_mpx): Add wrapper
check.

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

9 years ago PR plugins/61176
jakub [Tue, 31 Mar 2015 05:31:57 +0000 (05:31 +0000)]
PR plugins/61176
* Makefile.in (install-plugin): Add all gcc/*.{h,def} files
automatically to $headers.

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

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

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

9 years agocompiler: Mark builtin calls with bad types as errors.
ian [Tue, 31 Mar 2015 00:10:46 +0000 (00:10 +0000)]
compiler: Mark builtin calls with bad types as errors.

Fixes golang/go/#10285.

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

9 years ago PR ipa/65610
jakub [Mon, 30 Mar 2015 21:56:02 +0000 (21:56 +0000)]
PR ipa/65610
* ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
* ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
function.
(decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
Use it.
* ipa-prop.c (param_type_may_change_p): Likewise.
* tree-ssa-live.c: Include ipa-utils.h and its dependencies.
(remove_unused_scope_block_p): Add in_ctor_dtor_block
argument.  Before inlining, preserve
inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
recursive calls.
(remove_unused_locals): Adjust remove_unused_scope_block_p caller.

* g++.dg/ubsan/pr65610.C: New test.

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

9 years ago PR c++/65398
mpolacek [Mon, 30 Mar 2015 18:39:17 +0000 (18:39 +0000)]
PR c++/65398
* constexpr.c (cxx_fold_indirect_ref): Don't perform the
 *(&A[i] p+ j) => A[i + j] transformation here.
(cxx_eval_pointer_plus_expression): New function.
(cxx_eval_constant_expression): Use it here.

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

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

9 years ago PR fortran/65597
jakub [Mon, 30 Mar 2015 17:54:05 +0000 (17:54 +0000)]
PR fortran/65597
* trans-openmp.c (gfc_trans_omp_do): For !simple simd with explicit
linear clause for the iterator set OMP_CLAUSE_LINEAR_NO_COPYIN.
For implcitly added !simple OMP_CLAUSE_LINEAR set it too.  Use step 1
instead of the original step on the new iterator - count.

* testsuite/libgomp.fortran/pr65597.f90: New test.

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

9 years ago PR libstdc++/65630
redi [Mon, 30 Mar 2015 17:52:37 +0000 (17:52 +0000)]
PR libstdc++/65630
* config/abi/pre/gnu.ver: Export operator+ for new strings.
* testsuite/21_strings/basic_string/operators/char/65630.cc: New.
* testsuite/21_strings/basic_string/operators/wchar_t/65630.cc: New.

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

9 years agocompiler: implement Go 1 unsafe.Pointer conversion rules
ian [Mon, 30 Mar 2015 17:32:06 +0000 (17:32 +0000)]
compiler: implement Go 1 unsafe.Pointer conversion rules

Any type whose underlying type is uintptr can be converted
to unsafe.Pointer, and vice versa.

Fixes golang/go#10284.

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

9 years ago * c-c++-common/pr65556.c: Change the width of bit-fields.
mpolacek [Mon, 30 Mar 2015 14:20:14 +0000 (14:20 +0000)]
* c-c++-common/pr65556.c: Change the width of bit-fields.

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

9 years ago * lto-symtab.c (lto_symtab_merge_decls_2): Silence warning on
hubicka [Mon, 30 Mar 2015 08:51:50 +0000 (08:51 +0000)]
* lto-symtab.c (lto_symtab_merge_decls_2): Silence warning on
DECL_ARTIFICAL symbols.

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

9 years ago PR ipa/65076
hubicka [Mon, 30 Mar 2015 02:00:56 +0000 (02:00 +0000)]
PR ipa/65076
* ipa-inline.c (edge_badness): Base denominator on callee's
grwoth squared.

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

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

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

9 years ago PR libffi/65567
danglin [Sun, 29 Mar 2015 20:46:17 +0000 (20:46 +0000)]
PR libffi/65567
* testsuite/lib/libffi.exp (libffi_feature_test): Use split to ensure
lindex is applied to a list.

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

9 years ago PR ipa/65588
hubicka [Sun, 29 Mar 2015 15:41:55 +0000 (15:41 +0000)]
PR ipa/65588
* gcc.target/i386/pr65588.c: New testcase.

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

9 years ago PR ipa/65478
hubicka [Sun, 29 Mar 2015 15:38:52 +0000 (15:38 +0000)]
PR ipa/65478
* params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
(PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
* ipa-prop.h (ipa_node_params): New flags node_within_scc and
node_calling_single_call.
* ipa-cp.c (count_callers): New function.
(set_single_call_flag): Likewise.
(initialize_node_lattices): Count callers and set single_flag_call if
necessary.
(incorporate_penalties): New function.
(good_cloning_opportunity_p): Use it, dump new flags.
(propagate_constants_topo): Set node_within_scc flag if appropriate.
* doc/invoke.texi (ipa-cp-recursion-penalty,
ipa-cp-single-call-pentalty): Document.

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

9 years ago2015-03-29 Thomas Koenig <tkoenig@gcc.gnu.org>
tkoenig [Sun, 29 Mar 2015 14:33:09 +0000 (14:33 +0000)]
2015-03-29  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR libgfortran/65563
Refer to correct PR in ChangeLog.

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

9 years ago2015-03-29 Thomas Koenig <tkoenig@gcc.gnu.org>
tkoenig [Sun, 29 Mar 2015 14:20:29 +0000 (14:20 +0000)]
2015-03-29  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR libgfortran/65564
* gfortran.dg/open_errors_2.f90:  New test.

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

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

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

9 years ago PR libstdc++/65500
danglin [Sat, 28 Mar 2015 17:27:22 +0000 (17:27 +0000)]
PR libstdc++/65500
* inclhack.def (hpux11_lwp_rwlock_valid): New fix.
* fixincl.x: Regenerate.
* tests/base/sys/pthread.h [HPUX11_LWP_RWLOCK_VALID_CHECK]: New test.

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

9 years ago2015-03-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Sat, 28 Mar 2015 14:25:29 +0000 (14:25 +0000)]
2015-03-28 Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/65596
* gfortran.dg/namelist_86.f90: New test.

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

9 years ago2015-03-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Sat, 28 Mar 2015 13:27:58 +0000 (13:27 +0000)]
2015-03-28 Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/65596
* io/transfer.c (data_transfer_init): If in namelist mode and
delimiter is not specified, set it to DELIM_QUOTE, independent
of -std.
* io/unit.c (init_units): Set flags.delim to the correct
initial value of DELIM_UNSPECIFIED.

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

9 years ago * gfortran.dg/unlimited_polymorphic_24.f03: Fixing copyright
vehre [Sat, 28 Mar 2015 10:39:24 +0000 (10:39 +0000)]
* gfortran.dg/unlimited_polymorphic_24.f03: Fixing copyright
statement to reflect new ownership.

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

9 years ago2015-03-28 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Sat, 28 Mar 2015 10:28:14 +0000 (10:28 +0000)]
2015-03-28  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/42328
* g++.dg/template/friend58.C: New.
* g++.dg/template/friend59.C: Likewise.

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

9 years ago PR libstdc++/65420
timshen [Sat, 28 Mar 2015 04:17:12 +0000 (04:17 +0000)]
PR libstdc++/65420
* include/bits/regex_constants.h: Use constexpr variables for flags.
* testsuite/28_regex/constants/constexpr.cc: New testcase.

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

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

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

9 years ago PR ipa/65588
hubicka [Fri, 27 Mar 2015 21:35:51 +0000 (21:35 +0000)]
PR ipa/65588
* symtab.c (symtab_node::get_partitioning_class): Register vars
are duplicated.
* varpool.c (symbol_table::output_variables) Do not assemble unefined
decls for non-symbols.

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

9 years ago2015-03-27 Tobias Burnus <burnus@net-b.de>
burnus [Fri, 27 Mar 2015 20:21:52 +0000 (20:21 +0000)]
2015-03-27  Tobias Burnus  <burnus@net-b.de>

        PR c/65586
gcc/c/
        * c-parser.c (c_parser_skip_to_pragma_eol): Optionally, don't
        error out.
        (c_parser_omp_for, c_parser_omp_parallel, c_parser_omp_distribute,
        c_parser_omp_teams, c_parser_omp_target, c_parser_omp_declare):
        Update calls to not error for skipped omp pragmas with -fopenmp-simd.

gcc/cp/
        * parser.c (cp_parser_omp_for, cp_parser_omp_parallel,
        cp_parser_omp_distribute, cp_parser_omp_teams, cp_parser_omp_target,
        cp_parser_omp_declare): Don't show error for skipped omp pragmas
        with -fopenmp-simd.

gcc/testsuite/
        * g++.dg/gomp/openmp-simd-3.C: New.
        * gcc.dg/gomp/openmp-simd-3.c: New.

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

9 years agoAdd default_binds_local_p_2 and use it for x86
hjl [Fri, 27 Mar 2015 18:11:00 +0000 (18:11 +0000)]
Add default_binds_local_p_2 and use it for x86

Protected data symbol means that it can't be pre-emptied.  It doesn't mean
its address won't be external.  This is true for pointer to protected
function.  With copy relocation, address of protected data defined in the
shared library may also be external.  We only know that for sure at
run-time.  TARGET_BINDS_LOCAL_P should return false on protected data
symbol.

gcc/

PR target/65248
* output.h (default_binds_local_p_2): New.
* varasm.c (default_binds_local_p_2): Renamed to ...
(default_binds_local_p_3): This.  Don't return true on protected
data symbol if protected data may be external.
(default_binds_local_p): Use default_binds_local_p_3.
(default_binds_local_p_1): Likewise.
(default_binds_local_p_2): New.
* config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
default_binds_local_p_2 if TARGET_MACHO is undefined.

gcc/testsuite/

PR target/65248
* gcc.target/i386/pr65248-1.c: New file.
* gcc.target/i386/pr65248-2.c: Likewise.
* gcc.target/i386/pr65248-3.c: Likewise.
* gcc.target/i386/pr65248-4.c: Likewise.

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

9 years ago PR target/65593
jakub [Fri, 27 Mar 2015 17:35:14 +0000 (17:35 +0000)]
PR target/65593
* config/i386/i386.c (legitimize_pic_address): If base
is SYMBOL_REF or LABEL_REF using %rip addressing, force
it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.

* gcc.c-torture/compile/pr65593.c: New test.

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

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

PR c++/59329
* g++.dg/cpp1y/constexpr-assert1.C: New.

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

9 years ago Install back PR target/47230 fix (Revert the revert).
uros [Fri, 27 Mar 2015 17:08:44 +0000 (17:08 +0000)]
Install back PR target/47230 fix (Revert the revert).

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

9 years ago PR c++/65556
mpolacek [Fri, 27 Mar 2015 16:46:44 +0000 (16:46 +0000)]
PR c++/65556
* semantics.c (finish_switch_cond): If the unlowered type is not an
enum, use the type of the condition.

* c-c++-common/pr65556.c: New test.

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

9 years ago PR c++/65509
jason [Fri, 27 Mar 2015 16:36:32 +0000 (16:36 +0000)]
PR c++/65509
* decl.c (make_rtl_for_nonlocal_decl): Don't defer static
constants.

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

9 years ago PR target/65531
hubicka [Fri, 27 Mar 2015 15:19:35 +0000 (15:19 +0000)]
PR target/65531
* symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
comdat groups.

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

9 years ago PR ipa/65600
hubicka [Fri, 27 Mar 2015 15:13:54 +0000 (15:13 +0000)]
PR ipa/65600
* cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
of optimized out indirect call.
(redirect_to_unreachable): Always build symbol table node for
BUILT_IN_UNREACHABLE
* g++.dg/torture/pr65600.C: New testcase.

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

9 years ago2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Fri, 27 Mar 2015 14:47:24 +0000 (14:47 +0000)]
2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>

PR target/65407
* ira-costs.c (record_reg_classes): Process all constraint string
containing 0-9.

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

PR target/65407
* gcc.target/i386/avx512f-kandnw-1.c: Add scanning kmovw.

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

9 years agoAllow misaligned volatile stores in C6X.
bernds [Fri, 27 Mar 2015 13:02:39 +0000 (13:02 +0000)]
Allow misaligned volatile stores in C6X.

* config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
memory_operand.

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

9 years agoFix c6x-uclinux build failure.
bernds [Fri, 27 Mar 2015 12:50:01 +0000 (12:50 +0000)]
Fix c6x-uclinux build failure.

* config/c6x/constraints.md (S3): New constraint.
* config/c6x/c6x.md (real_jump): Use it.

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