platform/upstream/linaro-gcc.git
10 years ago PR fortran/52370
jakub [Tue, 11 Feb 2014 20:48:26 +0000 (20:48 +0000)]
PR fortran/52370
* trans-decl.c (gfc_build_dummy_array_decl): Set TREE_NO_WARNING
on decl if sym->attr.optional.

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

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

10 years ago PR target/59927
uros [Tue, 11 Feb 2014 18:59:24 +0000 (18:59 +0000)]
PR target/59927
Revert
2013-12-15  Uros Bizjak  <ubizjak@gmail.com>

PR testsuite/58630
* gcc.target/i386/pr43662.c (dg-options):
Add -maccumulate-outgoing-args.
* gcc.target/i386/pr43869.c (dg-options): Ditto.
* gcc.target/i386/pr57003.c (dg-options): Ditto.
* gcc.target/i386/avx-vzeroupper-16.c (dg-options):
Remove -mtune=generic and add -maccumulate-outgoing-args instead.
* gcc.target/i386/avx-vzeroupper-17.c (dg-options): Ditto.
* gcc.target/i386/avx-vzeroupper-18.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/func-1.c (dg-options):
Add -maccumulate-outgoing-args.
* gcc.target/x86_64/abi/callabi/func-2a.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/func-2b.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/func-indirect.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/func-indirect-2a.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/func-indirect-2b.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/leaf-1.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/leaf-2.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/pr38891.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/vaarg-1.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/vaarg-2.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/vaarg-3.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/vaarg-4a.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/vaarg-4b.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/vaarg-5a.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/vaarg-5b.c (dg-options): Ditto.

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

10 years agogcc/testsuite/
rsandifo [Tue, 11 Feb 2014 18:05:01 +0000 (18:05 +0000)]
gcc/testsuite/
* gcc.dg/vect/pr56787.c: Mark as xfail for vect_no_align.

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

10 years ago PR debug/59776
jakub [Tue, 11 Feb 2014 17:46:34 +0000 (17:46 +0000)]
PR debug/59776
* tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
around drhs if type conversion to lacc->type is not useless.

* gcc.dg/guality/pr59776.c: New test.

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

10 years ago * doc/sourcebuild.texi (arm_vfp3_ok): Add missing anchor.
uros [Tue, 11 Feb 2014 17:39:50 +0000 (17:39 +0000)]
* doc/sourcebuild.texi (arm_vfp3_ok): Add missing anchor.

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

10 years ago[AArch64] Wire up Cortex-A57 rtx costs.
ktkachov [Tue, 11 Feb 2014 16:00:19 +0000 (16:00 +0000)]
[AArch64] Wire up Cortex-A57 rtx costs.

* config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
tuning struct.
(cortex-a57.cortex-a53): Likewise.
* config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.

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

10 years ago[ARM] Adjust thumb2_movhi_insn pattern for -mrestrict-it.
ktkachov [Tue, 11 Feb 2014 15:48:08 +0000 (15:48 +0000)]
[ARM] Adjust thumb2_movhi_insn pattern for -mrestrict-it.

* config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
arm_restrict_it.

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

10 years ago2014-02-11 Renlin Li <Renlin.Li@arm.com>
ktkachov [Tue, 11 Feb 2014 15:26:46 +0000 (15:26 +0000)]
2014-02-11  Renlin Li  <Renlin.Li@arm.com>

gcc/
* doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
add_options_for_arm_vfp3.

gcc/testsuite/
* gcc.target/arm/fixed_float_conversion.c: Add arm_vfp3 option.
* lib/target-supports.exp (check_effective_target_arm_vfp3_ok): New.
(add_options_for_arm_vfp3): New.

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

10 years ago PR middle-end/54041
law [Tue, 11 Feb 2014 13:58:46 +0000 (13:58 +0000)]
PR middle-end/54041
* expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
object with an undesirable mode.

PR middle-end/54041
* gcc.target/m68k/pr54041.c: New test.

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

10 years agoOnly assume 4-byte stack alignment on Solaris 9/x86 (PR libgomp/60107)
ro [Tue, 11 Feb 2014 12:56:39 +0000 (12:56 +0000)]
Only assume 4-byte stack alignment on Solaris 9/x86 (PR libgomp/60107)

PR libgomp/60107
* config/i386/sol2-9.h: New file.
* config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
*-*-solaris2.9*): Use it.

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

10 years ago PR target/59927
jakub [Tue, 11 Feb 2014 09:06:37 +0000 (09:06 +0000)]
PR target/59927
* gcc.target/i386/pr59927.c: New test.

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

10 years agoAdded the lwr/swr instructions pattern.
eager [Tue, 11 Feb 2014 01:52:54 +0000 (01:52 +0000)]
Added the lwr/swr instructions pattern.
lwr and swr instructions will load/store the data with opposite endianness.

Changelog

2014-02-10  Nagaraju Mekala <nagaraju.mekala@xilinx.com>

 * gcc/config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
 * gcc/config/microblaze/predicates.md: Add reg_or_mem_operand predicate.

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

10 years ago2013-11-26 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
eager [Tue, 11 Feb 2014 01:34:03 +0000 (01:34 +0000)]
2013-11-26  Nagaraju Mekala <nagaraju.mekala@xilinx.com>

 * gcc/config/microblaze/microblaze.c: Extend mcpu version format

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

10 years agoFixes warnings like;
eager [Tue, 11 Feb 2014 01:28:00 +0000 (01:28 +0000)]
Fixes warnings like;

warning: format '%zX' expects argument of type 'size_t',
but argument 3 has type 'unsigned int' [-Wformat]

2013-03-18  David Holsgrove <david.holsgrove@xilinx.com>

 * gcc/config/microblaze/microblaze.h: Define SIZE_TYPE
   and PTRDIFF_TYPE.

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

10 years agoPR target/59927
rth [Tue, 11 Feb 2014 01:12:38 +0000 (01:12 +0000)]
PR target/59927

        * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
        * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
        ms-abi vs -mno-accumulate-outgoing-args.
        (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
        * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
        respect to ms-abi.

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

10 years agoDaily bump.
gccadmin [Tue, 11 Feb 2014 00:16:56 +0000 (00:16 +0000)]
Daily bump.

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

10 years agogcc/testsuite/
rsandifo [Mon, 10 Feb 2014 20:30:24 +0000 (20:30 +0000)]
gcc/testsuite/
* gcc.dg/vect/pr57741-3.c: Require vect_int.
* gcc.dg/vect/pr60012.c: Likewise.
* gcc.dg/vect/vect-119.c: Likewise.
* gcc.dg/vect/vect-outer-4c-big-array.c: Likewise.
* gcc.dg/vect/vect-outer-4c.c: Likewise.

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

10 years ago2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
edlinger [Mon, 10 Feb 2014 18:19:01 +0000 (18:19 +0000)]
2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR middle-end/60080
        * cfgexpand.c (expand_asm_operands): Attach source location to
        ASM_INPUT rtx objects.
        * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.

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

10 years ago * config/mn10300/mn10300.c (popcount): New function.
nickc [Mon, 10 Feb 2014 17:23:40 +0000 (17:23 +0000)]
* config/mn10300/mn10300.c (popcount): New function.
(mn10300_expand_prologue): Include saved registers in stack usage
count.

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

10 years agoFix for PR target/59691.
bviyer [Mon, 10 Feb 2014 16:56:54 +0000 (16:56 +0000)]
Fix for PR target/59691.
+2014-02-10  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       PR target/59691
+       * runtime/config/x86/os-unix-sysdep.c (__builtin_cpu_supports): New
+       function.
+       (restore_x86_fp_state): Added a check if the cpu supports the
+       instruction before emitting it.
+       (sysdep_save_fp_ctrl_state): Likewise.
+

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

10 years agoDon't xfail gcc.dg/binop-xor1.c
ro [Mon, 10 Feb 2014 16:44:05 +0000 (16:44 +0000)]
Don't xfail gcc.dg/binop-xor1.c

* gcc.dg/binop-xor1.c: Don't xfail scan-tree-dump-times.

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

10 years ago PR middle-end/52306
law [Mon, 10 Feb 2014 16:25:44 +0000 (16:25 +0000)]
PR middle-end/52306
* reload1.c (emit_input_reload_insns): Do not create invalid RTL
when changing the SET_DEST of a prior insn to avoid an input
reload.

PR middle-end-52306
* gcc.c-torture/compile/pr52306.c: New test.

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

10 years agoCompile g++.dg/ext/vector26.C with -mmmx
ro [Mon, 10 Feb 2014 16:23:38 +0000 (16:23 +0000)]
Compile g++.dg/ext/vector26.C with -mmmx

* g++.dg/ext/vector26.C: Use -mmmx for 32-bit x86.

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

10 years agoDon't xfail 22_locale/num_put/put/char/14220.cc etc. on Solaris 9/x86
ro [Mon, 10 Feb 2014 16:18:20 +0000 (16:18 +0000)]
Don't xfail 22_locale/num_put/put/char/14220.cc etc. on Solaris 9/x86

* testsuite/22_locale/num_put/put/char/14220.cc: Don't xfail
execution on i?86-*-solaris2.9, remove comment.
* testsuite/22_locale/num_put/put/wchar_t/14220.cc: Likewise.

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

10 years ago * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
uweigand [Mon, 10 Feb 2014 14:46:24 +0000 (14:46 +0000)]
* config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
-mcall-openbsd, or -mcall-linux.
(CC1_ENDIAN_BIG_SPEC): Remove.
(CC1_ENDIAN_LITTLE_SPEC): Remove.
(CC1_ENDIAN_DEFAULT_SPEC): Remove.
(CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
(SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
and %cc1_endian_default.
* config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.

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

10 years ago2014-02-10 Richard Biener <rguenther@suse.de>
rguenth [Mon, 10 Feb 2014 13:51:23 +0000 (13:51 +0000)]
2014-02-10  Richard Biener  <rguenther@suse.de>

PR tree-optimization/60115
* tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
MEM_REF handling.  Properly verify that the accesses are not
out of the objects bound.

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

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

10 years ago * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
ktkachov [Mon, 10 Feb 2014 11:25:16 +0000 (11:25 +0000)]
* config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
coretex to cortex.

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

10 years ago * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
ebotcazou [Mon, 10 Feb 2014 11:15:38 +0000 (11:15 +0000)]
* ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
proper constants and fix formatting.
(possible_polymorphic_call_targets): Fix formatting.

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

10 years ago * g++.dg/vect/pr33426-ivdep-3.cc: Require vect_int_mult as well.
ebotcazou [Mon, 10 Feb 2014 11:09:21 +0000 (11:09 +0000)]
* g++.dg/vect/pr33426-ivdep-3.cc: Require vect_int_mult as well.
* g++.dg/vect/pr33426-ivdep-4.cc: Likewise.

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

10 years agogcc/
kyukhin [Mon, 10 Feb 2014 10:36:59 +0000 (10:36 +0000)]
gcc/
* config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
(_mm512_loadu_epi32): Renamed into...
(_mm512_loadu_si512): This.
(_mm512_storeu_epi32): Renamed into...
(_mm512_storeu_si512): This.
(_mm512_maskz_ceil_ps): Removed.
(_mm512_maskz_ceil_pd): Ditto.
(_mm512_maskz_floor_ps): Ditto.
(_mm512_maskz_floor_pd): Ditto.
(_mm512_floor_round_ps): Ditto.
(_mm512_floor_round_pd): Ditto.
(_mm512_ceil_round_ps): Ditto.
(_mm512_ceil_round_pd): Ditto.
(_mm512_mask_floor_round_ps): Ditto.
(_mm512_mask_floor_round_pd): Ditto.
(_mm512_mask_ceil_round_ps): Ditto.
(_mm512_mask_ceil_round_pd): Ditto.
(_mm512_maskz_floor_round_ps): Ditto.
(_mm512_maskz_floor_round_pd): Ditto.
(_mm512_maskz_ceil_round_ps): Ditto.
(_mm512_maskz_ceil_round_pd): Ditto.
(_mm512_expand_pd): Ditto.
(_mm512_expand_ps): Ditto.
* config/i386/i386.c (ix86_builtins): Remove
IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
(bdesc_args): Ditto.
* config/i386/predicates.md (const1256_operand): New.
(const_1_to_2_operand): Ditto.
* config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
(*avx512pf_gatherpf<mode>sf_mask): Ditto.
(*avx512pf_gatherpf<mode>sf): Ditto.
(avx512pf_gatherpf<mode>df): Ditto.
(*avx512pf_gatherpf<mode>df_mask): Ditto.
(*avx512pf_gatherpf<mode>df): Ditto.
(avx512pf_scatterpf<mode>sf): Ditto.
(*avx512pf_scatterpf<mode>sf_mask): Ditto.
(*avx512pf_scatterpf<mode>sf): Ditto.
(avx512pf_scatterpf<mode>df): Ditto.
(*avx512pf_scatterpf<mode>df_mask): Ditto.
(*avx512pf_scatterpf<mode>df): Ditto.
(avx512f_expand<mode>): Removed.
(<shift_insn><mode>3<mask_name>): Change predicate type.

testsuite/gcc/
* gcc.target/i386/avx512f-vexpandpd-1.c: Update intrinsics.
* gcc.target/i386/avx512f-vexpandps-1.c: Ditto.
* gcc.target/i386/avx512f-vexpandpd-2.c: Ditto.
* gcc.target/i386/avx512f-vexpandps-2.c: Ditto.
* gcc.target/i386/avx512f-vmovdqu32-1: Ditto.
* gcc.target/i386/avx512f-vmovdqu32-2: Ditto.
* gcc.target/i386/avx512f-vmovdqu64-1: Ditto.
* gcc.target/i386/avx512f-vmovdqu64-2: Ditto.
* gcc.target/i386/avx512f-vpcmpd-2.c: Ditto.
* gcc.target/i386/avx512f-vpcmpq-2.c: Ditto.
* gcc.target/i386/avx512f-vpcmupd-2.c: Ditto.
* gcc.target/i386/avx512f-vpcmupq-2.c: Ditto.
* gcc.target/i386/avx512f-vrndscalepd-1.c: Ditto.
* gcc.target/i386/avx512f-vrndscaleps-1.c: Ditto.
* gcc.target/i386/avx512f-vrndscalepd-2.c: Ditto.
* gcc.target/i386/avx512f-vrndscaleps-2.c: Ditto.
* gcc.target/i386/avx512pf-vgatherpf0dpd-1.c: Update parameters.
* gcc.target/i386/avx512pf-vgatherpf0dps-1.c: Ditto.
* gcc.target/i386/avx512pf-vgatherpf0qpd-1.c: Ditto.
* gcc.target/i386/avx512pf-vgatherpf0qps-1.c: Ditto.
* gcc.target/i386/avx512pf-vgatherpf1dpd-1.c: Ditto.
* gcc.target/i386/avx512pf-vgatherpf1dps-1.c: Ditto.
* gcc.target/i386/avx512pf-vgatherpf1qpd-1.c: Ditto.
* gcc.target/i386/avx512pf-vgatherpf1qps-1.c: Ditto.
* gcc.target/i386/avx512f-vpsrad-2.c: Initialize 64 bits.
* gcc.target/i386/avx512f-vpslld-2.c: Ditto.
* gcc.target/i386/avx512f-vpsrld-2.c: Ditto.

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

10 years ago * gcc.dg/vect/pr59984.c: Require effective target
jakub [Mon, 10 Feb 2014 10:01:23 +0000 (10:01 +0000)]
* gcc.dg/vect/pr59984.c: Require effective target
vect_simd_clones.

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

10 years agoDaily bump.
gccadmin [Mon, 10 Feb 2014 00:16:44 +0000 (00:16 +0000)]
Daily bump.

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

10 years ago2014-02-09 Paul Thomas <pault@gcc.gnu.org>
pault [Sun, 9 Feb 2014 20:50:21 +0000 (20:50 +0000)]
2014-02-09  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/57522
* resolve.c (resolve_assoc_var): Set the subref_array_pointer
attribute for the 'associate-name' if necessary.
* trans-stmt.c (trans_associate_var): If the 'associate-name'
is a subref_array_pointer, assign the element size of the
associate variable to 'span'.

2014-02-09  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/57522
* gfortran.dg/associated_target_5.f03 : New test

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

10 years ago2014-02-09 Paul Thomas <pault@gcc.gnu.org>
pault [Sun, 9 Feb 2014 19:45:06 +0000 (19:45 +0000)]
2014-02-09  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/59026
* trans-expr.c (gfc_conv_procedure_call): Pass the value of the
actual argument to a formal argument with the value attribute
in an elemental procedure.

2014-02-09  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/59026
* gfortran.dg/elemental_by_value_1.f90 : New test

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

10 years agolibstdc++-v3/
rsandifo [Sun, 9 Feb 2014 14:19:13 +0000 (14:19 +0000)]
libstdc++-v3/
* config/abi/post/mips64-linux-gnu/32/baseline_symbols.txt: New file.
* config/abi/post/mips64-linux-gnu/baseline_symbols.txt: Update.
* config/abi/post/mips64-linux-gnu/64/baseline_symbols.txt: Likewise.

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

10 years agoDaily bump.
gccadmin [Sun, 9 Feb 2014 00:16:51 +0000 (00:16 +0000)]
Daily bump.

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

10 years ago2014-02-08 Janus Weil <janus@gcc.gnu.org>
janus [Sat, 8 Feb 2014 21:32:25 +0000 (21:32 +0000)]
2014-02-08  Janus Weil  <janus@gcc.gnu.org>
    Mikael Morin <mikael.morin@gcc.gnu.org>

PR fortran/58470
* class.c (generate_finalization_wrapper): Assert that proc_tree has
been set in gfc_resolve_finalizers.
* resolve.c (resolve_fl_derived0): Remove unnecessary call to
gfc_is_finalizable.

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

PR fortran/58470
* gfortran.dg/finalize_22.f90: New.

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

10 years ago2014-02-08 Paul Thomas <pault@gcc.gnu.org>
pault [Sat, 8 Feb 2014 16:22:46 +0000 (16:22 +0000)]
2014-02-08  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/60066
* gfortran.dg/elemental_subroutine_10.f90 : New test. This PR
was fixed by the patch for PR59906.

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

10 years ago * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
jakub [Sat, 8 Feb 2014 14:52:39 +0000 (14:52 +0000)]
* tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
not at the end of datarefs vector use ordered_remove to avoid
reordering datarefs vector.

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

10 years agoPR translation/52289
schwab [Sat, 8 Feb 2014 09:33:24 +0000 (09:33 +0000)]
PR translation/52289
* gfortran.dg/coarray_8.f90: Update dg-error match.

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

10 years ago PR c/59984
jakub [Sat, 8 Feb 2014 09:10:14 +0000 (09:10 +0000)]
PR c/59984
* gimplify.c (gimplify_bind_expr): In ORT_SIMD region
mark local addressable non-static vars as GOVD_PRIVATE
instead of GOVD_LOCAL.
* omp-low.c (lower_omp_for): Move gimple_bind_vars
and BLOCK_VARS of gimple_bind_block to new_stmt rather
than copying them.

* gcc.dg/vect/pr59984.c: New test.

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

10 years ago PR middle-end/60092
jakub [Sat, 8 Feb 2014 09:09:01 +0000 (09:09 +0000)]
PR middle-end/60092
* tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
assume_aligned or alloc_align attributes.
(bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
arguments.  Handle also assume_aligned and alloc_align attributes.
(evaluate_stmt): Adjust bit_value_assume_aligned caller.
Handle calls to functions with assume_aligned or alloc_align
attributes.
* doc/extend.texi: Document assume_aligned and alloc_align
attributes.
c-family/
* c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
and tree_to_uhwi.
(handle_alloc_align_attribute, handle_assume_aligned_attribute): New
functions.
(c_common_attribute_table): Add alloc_align and assume_aligned
attributes.
testsuite/
* gcc.dg/attr-alloc_align-1.c: New test.
* gcc.dg/attr-alloc_align-2.c: New test.
* gcc.dg/attr-alloc_align-3.c: New test.
* gcc.dg/attr-assume_aligned-1.c: New test.
* gcc.dg/attr-assume_aligned-2.c: New test.
* gcc.dg/attr-assume_aligned-3.c: New test.

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

10 years ago2014-02-08 Terry Guo <terry.guo@arm.com>
xguo [Sat, 8 Feb 2014 01:33:54 +0000 (01:33 +0000)]
2014-02-08  Terry Guo  <terry.guo@arm.com>

* doc/invoke.texi: Document ARM -march=armv7e-m.

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

10 years agoDaily bump.
gccadmin [Sat, 8 Feb 2014 00:16:41 +0000 (00:16 +0000)]
Daily bump.

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

10 years ago * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
jakub [Fri, 7 Feb 2014 23:58:29 +0000 (23:58 +0000)]
* cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
flag on __cilkrts_rethrow builtin.

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

10 years ago PR target/60077
jakub [Fri, 7 Feb 2014 23:55:24 +0000 (23:55 +0000)]
PR target/60077
* gcc.target/i386/pr60077-1.c: New test.
* gcc.target/i386/pr60077-2.c: New test.

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

10 years ago PR ipa/60026
jakub [Fri, 7 Feb 2014 23:54:17 +0000 (23:54 +0000)]
PR ipa/60026
* ipa-cp.c (determine_versionability): Fail at -O0
or __attribute__((optimize (0))) or -fno-ipa-cp functions.
* tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.

Revert:
2014-02-04  Jakub Jelinek  <jakub@redhat.com>

PR ipa/60026
* tree-inline.c (copy_forbidden): Fail for
__attribute__((optimize (0))) functions.

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

10 years ago * varpool.c: Include pointer-set.h.
hubicka [Fri, 7 Feb 2014 23:49:18 +0000 (23:49 +0000)]
* varpool.c: Include pointer-set.h.
(varpool_remove_unreferenced_decls): Variables in other partitions
will not be output; be however careful to not lose information
about partitioning.

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

10 years ago * lto.c (unify_scc): Free CONSTRUCTOR_ELTS.
hubicka [Fri, 7 Feb 2014 23:47:17 +0000 (23:47 +0000)]
* lto.c (unify_scc): Free CONSTRUCTOR_ELTS.

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

10 years ago * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
hubicka [Fri, 7 Feb 2014 23:26:39 +0000 (23:26 +0000)]
* gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
lookup in the vtable constructor.

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

10 years ago PR target/40977
law [Fri, 7 Feb 2014 22:35:49 +0000 (22:35 +0000)]
PR target/40977
* config/m68k/m68k.md (ashldi_extsi): Turn into a
define_insn_and_split.

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

10 years ago * c-parser.c (c_parser_get_builtin_args): Replace calls to
mpolacek [Fri, 7 Feb 2014 22:09:01 +0000 (22:09 +0000)]
* c-parser.c (c_parser_get_builtin_args): Replace calls to
C_EXPR_APPEND by vec_safe_push.
* c-tree.h (C_EXPR_APPEND): Remove.

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

10 years ago PR target/58710
ian [Fri, 7 Feb 2014 21:10:55 +0000 (21:10 +0000)]
PR target/58710
* configure.ac: Use AC_LINK_IFELSE in check for
_Unwind_GetIPInfo.
* configure: Regenerate.

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

10 years ago PR translation/52289
law [Fri, 7 Feb 2014 17:52:59 +0000 (17:52 +0000)]
    PR translation/52289
        * fortran/resolve.c (resolve_ordinary_assign): Fix typoed word
        in an error message.

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

10 years ago * ipa-inline.c (inline_small_functions): Fix typos.
law [Fri, 7 Feb 2014 17:29:26 +0000 (17:29 +0000)]
   * ipa-inline.c (inline_small_functions): Fix typos.

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

10 years ago PR preprocessor/56824
jakub [Fri, 7 Feb 2014 16:42:24 +0000 (16:42 +0000)]
PR preprocessor/56824
* line-map.c (get_combined_adhoc_loc, linemap_get_expansion_line,
linemap_get_expansion_filename, linemap_location_in_system_header_p,
linemap_location_from_macro_expansion_p,
linemap_macro_loc_to_spelling_point, linemap_macro_loc_to_def_point,
linemap_macro_loc_to_exp_point, linemap_expand_location): Fix
formatting.
(linemap_compare_locations): Look through adhoc locations for both
l0 and l1.

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

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

10 years agogcc/
rsandifo [Fri, 7 Feb 2014 14:52:26 +0000 (14:52 +0000)]
gcc/
* config/s390/s390-protos.h (s390_can_use_simple_return_insn)
(s390_can_use_return_insn): Declare.
* config/s390/s390.h (EPILOGUE_USES): Define.
* config/s390/s390.c (s390_mainpool_start): Allow two main_pool
instructions.
(s390_chunkify_start): Handle return JUMP_LABELs.
(s390_early_mach): Emit a main_pool instruction on the entry edge.
(s300_set_up_by_prologue, s390_can_use_simple_return_insn)
(s390_can_use_return_insn): New functions.
(s390_fix_long_loop_prediction): Handle conditional returns.
(TARGET_SET_UP_BY_PROLOGUE): Define.
* config/s390/s390.md (ANY_RETURN): New code iterator.
(*creturn, *csimple_return, return, simple_return): New patterns.

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

10 years agogcc/
rsandifo [Fri, 7 Feb 2014 14:52:13 +0000 (14:52 +0000)]
gcc/
* config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
(s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
REG_CFA_RESTORE list when deciding not to restore a register.

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

10 years agogcc/
rsandifo [Fri, 7 Feb 2014 14:50:19 +0000 (14:50 +0000)]
gcc/
* config/s390/s390.c: Include tree-pass.h and context.h.
(s390_early_mach): New function, split out from...
(s390_emit_prologue): ...here.
(pass_data_s390_early_mach): New pass structure.
(pass_s390_early_mach): New class.
(s390_option_override): Create and register early_mach pass.
Move to end of file.

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

10 years agogcc/
rsandifo [Fri, 7 Feb 2014 14:49:12 +0000 (14:49 +0000)]
gcc/
* var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
to match for the exit block.

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

10 years ago2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Fri, 7 Feb 2014 14:22:41 +0000 (14:22 +0000)]
2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
Reject misaligned operands.

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

10 years ago2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Fri, 7 Feb 2014 14:21:29 +0000 (14:21 +0000)]
2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gcc.dg/gcc-have-sync-compare-and-swap.c: Align the 16 byte
variable used for atomic operations.

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

10 years ago2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Fri, 7 Feb 2014 14:20:17 +0000 (14:20 +0000)]
2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* optabs.c (expand_atomic_compare_and_swap): Allow expander to
fail.

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

10 years ago2014-02-07 Richard Biener <rguenther@suse.de>
rguenth [Fri, 7 Feb 2014 13:41:10 +0000 (13:41 +0000)]
2014-02-07  Richard Biener  <rguenther@suse.de>

PR middle-end/60092
* gimple-low.c (lower_builtin_posix_memalign): New function.
(lower_stmt): Call it to lower posix_memalign in a way
to make alignment info accessible.

* gcc.dg/vect/pr60092-2.c: New testcase.

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

10 years ago PR c++/60082
jakub [Fri, 7 Feb 2014 10:49:08 +0000 (10:49 +0000)]
PR c++/60082
* tree.c (build_common_builtin_nodes): Set ECF_LEAF for
__builtin_setjmp_receiver.

Revert
2014-02-05  Balaji V. Iyer  <balaji.v.iyer@intel.com>

* g++.dg/cilk-plus/CK/catch_exc.cc: Disable test for -O1.
* c-c++-common/cilk-plus/CK/spawner_inline.c: Likewise.

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

10 years ago2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Fri, 7 Feb 2014 10:14:24 +0000 (10:14 +0000)]
2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/s390/32/_fixdfdi.c: Throw invalid exception if number
cannot be represented.
* config/s390/32/_fixsfdi.c: Likewise.
* config/s390/32/_fixtfdi.c: Likewise.
* config/s390/32/_fixunsdfdi.c: Likewise.
* config/s390/32/_fixunssfdi.c: Likewise.
* config/s390/32/_fixunstfdi.c: Likewise.

2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gcc.target/s390/fp2int1.c: New testcase.

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

10 years ago2014-02-07 Richard Biener <rguenther@suse.de>
rguenth [Fri, 7 Feb 2014 09:33:23 +0000 (09:33 +0000)]
2014-02-07  Richard Biener  <rguenther@suse.de>

PR middle-end/60092
* builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
* builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
* tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
Handle BUILT_IN_POSIX_MEMALIGN.
(find_func_clobbers): Likewise.
* tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
(call_may_clobber_ref_p_1): Likewise.

* gcc.dg/tree-ssa/alias-30.c: New testcase.
* gcc.dg/tree-ssa/alias-31.c: Likewise.

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

10 years agolibgcc/
rsandifo [Fri, 7 Feb 2014 07:46:34 +0000 (07:46 +0000)]
libgcc/
* configure.ac (libgcc_cv_mips_hard_float): New.
* configure: Regenerate.
* config.host (mips*-*-*): Use t-hardfp-sfdf rather than
t-softfp-sfdf for hard-float targets.
* config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Reinstate.
(softfp_float_modes, softfp_int_modes, softfp_extensions)
(softfp_truncations, softfp_exclude_libgcc2): New.
* config/t-hardfp: New file.
* config/t-hardfp-sfdf: Likewise.
* config/hardfp.c: Likewise.

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

10 years ago PR ipa/59918
hubicka [Fri, 7 Feb 2014 06:01:36 +0000 (06:01 +0000)]
PR ipa/59918
* ipa-devirt.c (record_target_from_binfo): Remove overactive sanity check.
* g++.dg/torture/pr59918.C: New testcase.

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

10 years ago PR ipa/59469
hubicka [Fri, 7 Feb 2014 02:28:33 +0000 (02:28 +0000)]
PR ipa/59469
* lto-cgraph.c (lto_output_node): Use
symtab_get_symbol_partitioning_class.
(lto_output_varpool_node): likewise.
(symtab_get_symbol_partitioning_class): Move here from
lto/lto-partition.c
* cgraph.h (symbol_partitioning_class): Likewise.
(symtab_get_symbol_partitioning_class): Declare.

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

10 years ago PR ipa/59469
hubicka [Fri, 7 Feb 2014 02:27:37 +0000 (02:27 +0000)]
PR ipa/59469
* lto-cgraph.c (lto_output_node): Use
symtab_get_symbol_partitioning_class.
(lto_output_varpool_node): likewise.
(symtab_get_symbol_partitioning_class): Move here from
lto/lto-partition.c
* cgraph.h (symbol_partitioning_class): Likewise.
(symtab_get_symbol_partitioning_class): Declare.

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

10 years ago PR ipa/59469
hubicka [Fri, 7 Feb 2014 02:27:05 +0000 (02:27 +0000)]
PR ipa/59469
* lto-cgraph.c (lto_output_node): Use
symtab_get_symbol_partitioning_class.
(lto_output_varpool_node): likewise.
(symtab_get_symbol_partitioning_class): Move here from
lto/lto-partition.c
* cgraph.h (symbol_partitioning_class): Likewise.
(symtab_get_symbol_partitioning_class): Declare.

* lto-partition.c (symbol_class): Move to cgraph.h
(get_symbol_class): Move to symtab.c
(add_references_to_partition, add_symbol_to_partition_1,
lto_max_map, lto_1_to_1_map, lto_balanced_map,
lto_promote_cross_file_statics): Update.

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

10 years ago * parser.c (synthesize_implicit_template_parm): Use grow_tree_vec.
hubicka [Fri, 7 Feb 2014 02:14:58 +0000 (02:14 +0000)]
* parser.c (synthesize_implicit_template_parm): Use grow_tree_vec.
* ggc.h (ggc_internal_cleared_alloc): New macro.
* vec.h (vec_safe_copy): Handle memory stats.
* omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
* target-globals.c (save_target_globals): Likewise.

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

10 years ago PR target/60077
hubicka [Fri, 7 Feb 2014 02:11:27 +0000 (02:11 +0000)]
PR target/60077
* expr.c (emit_move_resolve_push): Export; be bit more selective
on when to clear alias set.
* expr.h (emit_move_resolve_push): Declare.
* function.h (struct function): Add tail_call_marked.
* tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
* config/i386/i386-protos.h (ix86_expand_push): Remove.
* config/i386/i386.md (TImode move expander): De not call
ix86_expand_push.
(FP push expanders): Preserve memory attributes.
* config/i386/sse.md (push<mode>1): Remove.
* config/i386/i386.c (ix86_expand_vector_move): Handle push
operation.
(ix86_expand_push): Remove.
* config/i386/mmx.md (push<mode>1): Remove.

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

10 years agoDaily bump.
gccadmin [Fri, 7 Feb 2014 00:16:57 +0000 (00:16 +0000)]
Daily bump.

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

10 years ago PR rtl-optimization/60030
jakub [Thu, 6 Feb 2014 21:54:21 +0000 (21:54 +0000)]
PR rtl-optimization/60030
* internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
lopart with paradoxical subreg before shifting it up by hprec.

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

10 years ago[ARM] Cortex-A57 rtx costs
ktkachov [Thu, 6 Feb 2014 16:51:03 +0000 (16:51 +0000)]
[ARM] Cortex-A57 rtx costs

* config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
Remove extra newline at end of file.
* config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
(arm_issue_rate): Handle cortexa57.
* config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
(cortex-a57.cortex-a53): Likewise.

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

10 years ago PR target/59575
jakub [Thu, 6 Feb 2014 15:52:36 +0000 (15:52 +0000)]
PR target/59575
* config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
don't record in REG_FRAME_RELATED_EXPR registers not set in that
bitmask.
(arm_expand_prologue): Adjust all callers.
(arm_unwind_emit_sequence): Allow saved, but not important for unwind
info, registers also at the lowest numbered registers side.  Use
gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
XEXP.

* gcc.target/arm/pr59575.c: New test.

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

10 years ago PR target/59575
jakub [Thu, 6 Feb 2014 15:52:17 +0000 (15:52 +0000)]
PR target/59575
* config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
don't record in REG_FRAME_RELATED_EXPR registers not set in that
bitmask.
(arm_expand_prologue): Adjust all callers.
(arm_unwind_emit_sequence): Allow saved, but not important for unwind
info, registers also at the lowest numbered registers side.  Use
gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
XEXP.

* gcc.target/arm/pr59575.c: New test.

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

10 years ago PR debug/59992
jakub [Thu, 6 Feb 2014 15:47:12 +0000 (15:47 +0000)]
PR debug/59992
* var-tracking.c (adjust_mems): Before adding a SET
to amd->side_effects, adjust it's SET_SRC using
simplify_replace_fn_rtx.

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

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

10 years ago2014-02-06 Marc Glisse <marc.glisse@inria.fr>
glisse [Thu, 6 Feb 2014 15:32:27 +0000 (15:32 +0000)]
2014-02-06  Marc Glisse  <marc.glisse@inria.fr>

* g++.dg/cpp0x/constexpr-attribute2.C: Restrict to target
init_priority. Test alignment of variable instead of function.

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

10 years agoCode clean ups.
charlet [Thu, 6 Feb 2014 14:16:52 +0000 (14:16 +0000)]
Code clean ups.

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

10 years ago2014-02-06 Hristian Kirtchev <kirtchev@adacore.com>
charlet [Thu, 6 Feb 2014 14:15:51 +0000 (14:15 +0000)]
2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_prag.adb (Analyze_Refined_Pragma): Remove
local variable Pack_Spec. Refinement pragmas may now apply to
bodies of both visible and private subprograms.

2014-02-06  Robert Dewar  <dewar@adacore.com>

* exp_attr.adb (Expand_Loop_Entry_Attribute):
Minor change (Attr => N) (Expand_Pred_Succ): New name
Expand_Pred_Succ_Attribute (Expand_N_Attribute_Reference, case
Max): Expand into if expression if Modify_Tree_For_C mode.
(Expand_N_Attribute_Reference, case Min): ditto
* sinfo.ads: Modify_Tree_For_C takes care of expanding Min and
Max attributes.

2014-02-06  Ed Schonberg  <schonberg@adacore.com>

* sem_ch3.adb (Analyze_Object_Declaration): Do not generate
predicate check if this is an internal declaration with
No_Initialization set, as for an expanded aggregate component.

2014-02-06  Doug Rupp  <rupp@adacore.com>

* init.c (__gnat_default_resignal_p) [VMS]: Test for and resignal
conditions with severity of "SUCCESS" or "INFORMATIONAL".

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

10 years ago2014-02-06 Yannick Moy <moy@adacore.com>
charlet [Thu, 6 Feb 2014 14:13:53 +0000 (14:13 +0000)]
2014-02-06  Yannick Moy  <moy@adacore.com>

* sem_prag.adb (Analyze_Pragma): Analyze pragma
Debug rewritten node before rewriting it as a null statement in
GNATprove mode.

2014-02-06  Robert Dewar  <dewar@adacore.com>

* sem_attr.adb (Min_Max): New procedure.
(Max_Alignment_For_Allocation_Max_Size_In_Storage_Elements): New
procedure.

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

10 years ago2014-02-06 Sergey Rybin <rybin@adacore.com frybin>
charlet [Thu, 6 Feb 2014 14:11:59 +0000 (14:11 +0000)]
2014-02-06  Sergey Rybin  <rybin@adacore.com frybin>

* gnat_ugn.texi, vms_data.ads: Add documentation of '-t' option for
gnatmetric/gnatpp.

2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_prag.adb (Analyze_Abstract_State): Update
all calls to Create_Abstract_State to pass the proper state
"declaration".
(Create_Abstract_State): Add new formal parameter
State_Decl along with comment on usage. Establish a link between
the abstract state entity and the state declaration.

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

10 years ago2014-02-06 Robert Dewar <dewar@adacore.com>
charlet [Thu, 6 Feb 2014 14:09:36 +0000 (14:09 +0000)]
2014-02-06  Robert Dewar  <dewar@adacore.com>

* sem_attr.adb (Analyze_Attribute, case Max): Check for improper
comparison of unordered enumeration type.
(Analyze_Attribute, case Max): Check for improper comparison of
unordered enumeration type.
* sem_res.adb (Bad_Unordered_Enumeration_Reference): Moved to
sem_util.adb.
* sem_util.ads, sem_util.adb (Bad_Unordered_Enumeration_Reference):
Moved here from Sem_Res.

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

10 years ago2014-02-06 Robert Dewar <dewar@adacore.com>
charlet [Thu, 6 Feb 2014 14:04:00 +0000 (14:04 +0000)]
2014-02-06  Robert Dewar  <dewar@adacore.com>

* sem_ch3.adb, sem_prag.adb, sem_res.adb, lib-xref.adb: Minor
reformatting.

2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_ch6.adb (Process_Formals): Error message reformatting.

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

10 years ago PR c/60087
mpolacek [Thu, 6 Feb 2014 13:57:37 +0000 (13:57 +0000)]
PR c/60087
c-family/
* c-common.c (warn_for_sign_compare): Call warning_at with location
instead of warning.
testsuite/
* gcc.dg/pr60087.c: New test.

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

10 years ago PR target/60032
amodra [Thu, 6 Feb 2014 13:25:38 +0000 (13:25 +0000)]
PR target/60032
gcc/
* config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
change SDmode to DDmode when lra_in_progress.
gcc/testsuite/
* gcc.target/powerpc/pr60032.c: New.

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

10 years ago PR middle-end/59150
jakub [Thu, 6 Feb 2014 10:59:30 +0000 (10:59 +0000)]
PR middle-end/59150
* tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
free_data_ref on the dr first, and before goto again also set dr
to the next dr.  For simd_lane_access, free old datarefs[i] before
overwriting it.  For get_vectype_for_scalar_type failure, don't
free_data_ref if simd_lane_access.

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

10 years ago * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
jakub [Thu, 6 Feb 2014 10:58:16 +0000 (10:58 +0000)]
* Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).

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

10 years ago PR target/60062
jakub [Thu, 6 Feb 2014 10:54:20 +0000 (10:54 +0000)]
PR target/60062
* tree.h (opts_for_fn): New inline function.
(opt_for_fn): Define.
* config/i386/i386.c (ix86_function_regparm): Use
opt_for_fn (decl, optimize) instead of optimize.

* gcc.c-torture/execute/pr60062.c: New test.
* gcc.c-torture/execute/pr60072.c: New test.

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

10 years ago2014-02-06 Hristian Kirtchev <kirtchev@adacore.com>
charlet [Thu, 6 Feb 2014 10:26:32 +0000 (10:26 +0000)]
2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_ch3.adb (Handle_Late_Controlled_Primitive): Add local
variable Spec. Do not inherit the null indicator from the
subprogram body when generating the spec.

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

10 years ago2014-02-06 Robert Dewar <dewar@adacore.com>
charlet [Thu, 6 Feb 2014 10:23:17 +0000 (10:23 +0000)]
2014-02-06  Robert Dewar  <dewar@adacore.com>

* casing.adb (Determine_Casing): Consider SPARK_Mode to be
mixed case.

2014-02-06  Ed Schonberg  <schonberg@adacore.com>

* exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false
when the function has a foreign convention, but not if only the
limited return type has such a convention.

2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_ch3.adb (Handle_Late_Controlled_Primitive): Remove local
variable Spec. Comment reformatting. Use Copy_Separate_Tree
rather than New_Copy_Tree when building the corresponding
subprogram declaration.

2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_prag.adb (Analyze_Global_Item): Remove
the mode-related checks on abstract states with enabled external
properties.
(Property_Error): Removed.

2014-02-06  Javier Miranda  <miranda@adacore.com>

* lib-xref.adb (Generate_Reference): When
generating the reference to the first private entity take care
of handling swapped entities.

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

10 years ago2014-02-06 Sergey Rybin <rybin@adacore.com frybin>
charlet [Thu, 6 Feb 2014 10:21:40 +0000 (10:21 +0000)]
2014-02-06  Sergey Rybin  <rybin@adacore.com frybin>

* gnat_ugn.texi, vms_data.ads: Add documentation of -j option for
gnatmetric.

2014-02-06  Robert Dewar  <dewar@adacore.com>

* exp_ch4.adb (Expand_N_Shift_Left): Handle shift counts greater
than the word size when operating in Modify_Tree_For_C mode.
* sinfo.ads: Add documentation section on Modify_Tree_For_C mode.

2014-02-06  Robert Dewar  <dewar@adacore.com>

* erroutc.adb (Warning_Specifically_Suppressed.Matches):
compare is case insensitive.
* gnat_rm.texi: Document that string compare for Warnings Off
is now case insensitive.

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

10 years ago2014-02-06 Eric Botcazou <ebotcazou@adacore.com>
charlet [Thu, 6 Feb 2014 10:19:06 +0000 (10:19 +0000)]
2014-02-06  Eric Botcazou  <ebotcazou@adacore.com>

* gnat_rm.texi: Small wording tweak.

2014-02-06  Pascal Obry  <obry@adacore.com>

* prj-attr.adb, projects.texi, snames.ads-tmpl: Add Included_Patterns
and Included_Artifact_Patterns attribute definitions.

2014-02-06  Yannick Moy  <moy@adacore.com>

* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set
SPARK_Mode pragma component for all subprograms, including stubs.

2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_ch10.adb (Analyze_Package_Body_Stub): Maintain
the configuration options of the enclosing context in a
stack-like fasion.
(Analyze_Subprogram_Body_Stub): Maintain the
configuration options of the enclosing context in a stack-like
fashion.

2014-02-06  Robert Dewar  <dewar@adacore.com>

* debug.adb: -gnatd.u sets Modify_Tree_For C
* exp_ch4.adb (Expand_N_Op_Rotate_Left): Expand out
if Modify_Tree_For_C (Expand_N_Op_Rotate_Right): ditto.
(Expand_N_Op_Arithmetic_Right_Shift): ditto.
* exp_intr.adb (Expand_Shift): Call expander so we do
Modify_Tree_For_C expansions.
* gnat1drv.adb (Adjust_Global_Switches): Set Modify_Tree_For_C
if -gnatd.u set.

2014-02-06  Fedor Rybin  <frybin@adacore.com>

* prj-proc.ads (Tree_Loaded_Callback): new type Callback used
after the phase 1 of the processing of each aggregated project
to get access to project trees of aggregated projects.
(Process_Project_Tree_Phase_1): new parameter On_New_Tree_Loaded
If specified, On_New_Tree_Loaded is called after each aggregated
project has been processed succesfully.
(Process): new parameter On_New_Tree_Loaded.
* prj-proc.adb (Process_Aggregated_Projects): On_New_Tree_Loaded
callback added after processing of each aggregated project.
(Recursive_Process): new parameter On_New_Tree_Loaded.
(Process): new parameter On_New_Tree_Loaded.
(Process_Project_Tree_Phase_1): new parameter On_New_Tree_Loaded.
* prj-conf.ads (Parse_Project_And_Apply_Config): new parameter
On_New_Tree_Loaded.
* prj-conf.adb (Parse_Project_And_Apply_Config): new parameter
On_New_Tree_Loaded.

2014-02-06  Bob Duff  <duff@adacore.com>

* gnat_ugn.texi: Implement --insert-blank-lines and
--preserve-blank-lines switches.

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

10 years ago[AArch64] Fix SYMBOL_REF symbol classification.
mshawcroft [Thu, 6 Feb 2014 10:17:18 +0000 (10:17 +0000)]
[AArch64] Fix SYMBOL_REF symbol classification.

The symbol classification logic in correctly classifies all
SYMBOL_REF's as SYMBOL_FORCE_TO_MEM, the intention of the code is to
catch only the large memory model case.

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

10 years ago2014-02-06 Sergey Rybin <rybin@adacore.com frybin>
charlet [Thu, 6 Feb 2014 10:13:42 +0000 (10:13 +0000)]
2014-02-06  Sergey Rybin  <rybin@adacore.com frybin>

* gnat_ugn.texi, vms_data.ads: Add documentation of -j option for
gnatelim.

2014-02-06  Eric Botcazou  <ebotcazou@adacore.com>

* gnat_rm.texi (Pragma Optimize_Alignment): Document the effect
of the pragma on individual objects.

2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>

* einfo.adb Node29 is now used as BIP_Initialization_Call.
(BIP_Initialization_Call): New routine.
(Set_BIP_Initialization_Call): New routine.
(Write_Field29_Name): Add an entry for constants and variables.
* einfo.ads Add new attribute BIP_Initialization_Call and update
its usage in nodes.
(BIP_Initialization_Call): New routine along with pragma Inline.
(Set_BIP_Initialization_Call): New routine along with pragma Inline.
* exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
Add local declaration Res_Decl. Capture the build-in-place
initialization call when the related object declaration has
created a transient block.
* exp_ch7.adb (Process_Transient_Objects): Add local variable
Fin_Insrt. Recognize a scenario where an object declaration acts
as a transient context and is initialized by a build-in-place
function call.

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

10 years ago2014-02-06 Pascal Obry <obry@adacore.com>
charlet [Thu, 6 Feb 2014 10:11:07 +0000 (10:11 +0000)]
2014-02-06  Pascal Obry  <obry@adacore.com>

* prj-util.adb (For_Interface_Sources): Fix handling of required
bodies for aggregate libs.

2014-02-06  Robert Dewar  <dewar@adacore.com>

* nlists.ads: Minor comment clarifications.

2014-02-06  Robert Dewar  <dewar@adacore.com>

* gnat1drv.adb (Adjust_Global_Switches): Set Modify_Tree_For_C
if gnatd.V set.
* opt.ads (Modify_Tree_For_C): New flag.
* output.ads, output.adb (Last_Char): New function.

2014-02-06  Pascal Obry  <obry@adacore.com>

* projects.texi, prj-env.adb (Initialize_Default_Project_Path): Add
share/gpr for cross-builds.

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

10 years agoFix pr59597.c test to work with PIC variants too
ibolton [Thu, 6 Feb 2014 10:10:41 +0000 (10:10 +0000)]
Fix pr59597.c test to work with PIC variants too

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