platform/upstream/linaro-gcc.git
10 years agogcc/
rsandifo [Tue, 13 May 2014 13:51:32 +0000 (13:51 +0000)]
gcc/
* fold-const.c (optimize_bit_field_compare): Use wi:: operations
instead of const_binop.
(fold_binary_loc): Likewise.

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

10 years agogcc/
rsandifo [Tue, 13 May 2014 13:51:20 +0000 (13:51 +0000)]
gcc/
* tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
calculation to match get_ref_base_and_extent.

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

10 years ago2014-05-13 Catherine Moore <clm@codesourcery.com>
sandra [Tue, 13 May 2014 13:36:56 +0000 (13:36 +0000)]
2014-05-13  Catherine Moore  <clm@codesourcery.com>
    Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* configure.ac: Fix assembly for explicit JALR relocation check.
* configure: Regenerate.

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

10 years ago2014-05-13 Nathan Sidwell <nathan@codesourcery.com>
sandra [Tue, 13 May 2014 13:35:20 +0000 (13:35 +0000)]
2014-05-13  Nathan Sidwell  <nathan@codesourcery.com>
    Sandra Loosemore  <sandra@codesourcery.com>

gcc/testsuite/
* gcc.target/mips/loongson-simd.c: Disable micromips too.

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

10 years ago[ARM] Remove builtins for vzup, vuzp, vtrn and cleanup.
ktkachov [Tue, 13 May 2014 13:02:33 +0000 (13:02 +0000)]
[ARM] Remove builtins for vzup, vuzp, vtrn and cleanup.

* config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
(arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
Remove associated type declarations and initialisations.
(arm_expand_neon_builtin): Likewise.
(neon_emit_pair_result_insn): Delete.
* config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
* config/arm/neon.md (neon_vtrn<mode>): Delete.
(neon_vzip<mode>): Likewise.
(neon_vuzp<mode>): Likewise.

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

10 years ago2014-05-13 Catherine Moore <clm@cm00re.com>
clm [Tue, 13 May 2014 12:51:39 +0000 (12:51 +0000)]
2014-05-13  Catherine Moore  <clm@cm00re.com>

        * gcc.target/mips/near-far-1.c: Adjust expected output
        to allow the JALS instruction.
        * gcc.target/mips/near-far-2.c: Likewise.
        * gcc.target/mips/near-far-4.c: Likewise.

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

10 years ago PR libstdc++/60497
redi [Tue, 13 May 2014 11:18:01 +0000 (11:18 +0000)]
PR libstdc++/60497
* include/std/tuple (get, __tuple_compare): Qualify more calls to
prevent ADL. Cast comparison results to bool.
* testsuite/20_util/tuple/60497.cc: Test accessing rvalues.
* testsuite/20_util/tuple/comparison_operators/overloaded.cc: New.

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

10 years ago2014-05-13 Richard Biener <rguenther@suse.de>
rguenth [Tue, 13 May 2014 11:04:44 +0000 (11:04 +0000)]
2014-05-13  Richard Biener  <rguenther@suse.de>

PR ipa/60973
* tree-inline.c (remap_gimple_stmt): Clear tail call flag,
it needs revisiting whether the call still may be tail-called.

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

10 years agogcc/
rsandifo [Tue, 13 May 2014 10:39:16 +0000 (10:39 +0000)]
gcc/
* rtl.def (SYMBOL_REF): Remove middle "0" field.
* rtl.h (block_symbol): Reduce number of fields to 2.
(rtx_def): Add u2.symbol_ref_flags.
(SYMBOL_REF_FLAGS): Use it.
(SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
(SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
* gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
Lower index of SYMBOL_REF_DATA.
* print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
Print SYMBOL_REF_FLAGS at the same time.
* genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.

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

10 years agogcc/
rsandifo [Tue, 13 May 2014 10:39:08 +0000 (10:39 +0000)]
gcc/
* rtl.def (VAR_LOCATION): Remove "i" field.
* rtl.h (rtx_def): Add u2.var_location_status.
(PAT_VAR_LOCATION_STATUS): Use it.
(gen_rtx_VAR_LOCATION): Declare.
* gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
* emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
* var-tracking.c (emit_note_insn_var_location): Remove casts.

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

10 years agogcc/
rsandifo [Tue, 13 May 2014 10:38:57 +0000 (10:38 +0000)]
gcc/
* rtl.def (scratch): Fix outdated comment and remove "0" field.
* gengtype.c (adjust_field_rtx_def): Update accordingly.

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

10 years agogcc/
rsandifo [Tue, 13 May 2014 10:38:50 +0000 (10:38 +0000)]
gcc/
* rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
(BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
* rtl.h (rtx_def): Add insn_uid to u2 field.
(RTX_FLAG_CHECK8): Delete in favor of...
(RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
(INSN_DELETED_P): Update accordingly.
(INSN_UID): Use u2.insn_uid.
(INSN_CHAIN_CODE_P): Define.
(PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
(INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
(NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
(NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
(NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
indices accordingly.
* print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
Update indices for insn-chain rtxes.
* gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
(adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
* emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
* caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
* combine.c (try_combine): Likewise.
* ira.c (setup_prohibited_mode_move_regs): Likewise.

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

10 years agogcc/
rsandifo [Tue, 13 May 2014 10:38:38 +0000 (10:38 +0000)]
gcc/
* rtl.def (REG): Remove middle field.
* rtl.h (rtx_def): Add orignal_regno to u2.
(ORIGINAL_REGNO): Use it instead of field 1.
(REG_ATTRS): Lower field index accordingly.
* gengtype.c (adjust_field_rtx_def): Remove handling of
ORIGINAL_REGNO.  Move REG_ATTRS index down.
* print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
code that prints the REGNO.

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

10 years agogcc/
rsandifo [Tue, 13 May 2014 10:38:27 +0000 (10:38 +0000)]
gcc/
* print-rtl.c (print_rtx): Guard whole '0' block with ifndef
GENERATOR_FILE.

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

10 years agogcc/
rsandifo [Tue, 13 May 2014 10:38:17 +0000 (10:38 +0000)]
gcc/
* rtl.h (rtx_def): Mark u2 as GTY ((skip)).

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

10 years ago * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
amker [Tue, 13 May 2014 10:09:54 +0000 (10:09 +0000)]
* tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
(alloc_iv): Lower base expressions containing ADDR_EXPR.

* gcc.dg/tree-ssa/ivopts-lower_base.c: New test.

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

10 years agoImplement HARD_REGNO_CALLER_SAVE_MODE for AArch64
ibolton [Tue, 13 May 2014 09:28:35 +0000 (09:28 +0000)]
Implement HARD_REGNO_CALLER_SAVE_MODE for AArch64

* config/aarch64/aarch64-protos.h
(aarch64_hard_regno_caller_save_mode): New prototype.
* config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
New function.
* config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.

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

10 years ago2014-05-13 Christian Bruel <christian.bruel@st.com>
chrbr [Tue, 13 May 2014 08:50:51 +0000 (08:50 +0000)]
2014-05-13  Christian Bruel  <christian.bruel@st.com>

* target.def (mode_switching): New hook vector.
(mode_emit, mode_needed, mode_after, mode_entry): New hooks.
(mode_exit, modepriority_to_mode): Likewise.
* mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
(MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
(default_priority_to_mode): Define.
* targhooks.h (default_priority_to_mode): Declare.
* target.h: Include tm.h and hard-reg-set.h.
* doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
(MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
* doc/tm.texi Regenerate.
* config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
(MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
* config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
(sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
* config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
(MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
* config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
(ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
* config/i386/i386.c (ix86_mode_needed, ix86_mode_after, ix86_mode_exit,
(ix86_mode_entry, ix86_mode_priority, ix86_emit_mode_set): Hookify.
* config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
Delete
(MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
* config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
(MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
* config/sh/sh.c (sh4_emit_mode_set, sh4_mode_needed): Hookify.
(sh4_mode_after, sh4_mode_entry, sh4_mode_exit): Likewise.
* config/epiphany/epiphany-protos.h (epiphany_mode_needed)
(emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
(epiphany_mode_priority_to_mode): Remove declaration.
* config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
(epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
(epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
Likewise.
(epiphany_mode_priority_to_mode): Change priority type. Hookify.
(epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
(epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.

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

10 years ago PR target/61060
jakub [Tue, 13 May 2014 08:28:53 +0000 (08:28 +0000)]
PR target/61060
* config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
is const0_rtx, return immediately.  Don't test count == 0 when
it is always true.

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

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

10 years ago2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
zqchen [Tue, 13 May 2014 07:05:46 +0000 (07:05 +0000)]
2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>

* Makefile.in: add shrink-wrap.o.
* config/i386/i386.c: include "shrink-wrap.h"
* function.c: Likewise.
(requires_stack_frame_p, next_block_for_reg,
move_insn_for_shrink_wrap, prepare_shrink_wrap,
dup_block_and_redirect): Move to shrink-wrap.c
(thread_prologue_and_epilogue_insns): Extract three code segments
as functions in shrink-wrap.c
* function.h: Move #ifdef HAVE_simple_return ... #endif block to
shrink-wrap.h
* shrink-wrap.c: New file.
* shrink-wrap.h: New file.

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

10 years ago * call.c (maybe_print_user_conv_context): New.
jason [Tue, 13 May 2014 03:21:18 +0000 (03:21 +0000)]
* call.c (maybe_print_user_conv_context): New.
(convert_like_real): Use it.  Print call context for bad
user-defined conversion.
(build_over_call): Print call context for bad 'this' conversion.

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

10 years agoDaily bump.
gccadmin [Tue, 13 May 2014 00:17:03 +0000 (00:17 +0000)]
Daily bump.

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

10 years ago * doc/extend.texi: Reflect current numbers of pragmas. Remove
gerald [Mon, 12 May 2014 22:37:23 +0000 (22:37 +0000)]
* doc/extend.texi: Reflect current numbers of pragmas.  Remove
reference to Solaris.

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

10 years ago* gcc.dg/sibcall-3.c: MSP430 doesn't have sibcall.
dj [Mon, 12 May 2014 22:12:31 +0000 (22:12 +0000)]
* gcc.dg/sibcall-3.c: MSP430 doesn't have sibcall.
* gcc.dg/sibcall-4.c: Likewise.

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

10 years ago PR other/31778
mrs [Mon, 12 May 2014 21:22:20 +0000 (21:22 +0000)]
    PR other/31778
        * genattrtab.c (filename): Add.
        (convert_set_attr_alternative): Improve error message.
(check_defs): Restore read_md_filename for error messages.
        (gen_insn): Save filename.

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

10 years ago2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
mrs [Mon, 12 May 2014 20:55:54 +0000 (20:55 +0000)]
2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>

            * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
            -fno-local-ivars and -fivar-visibility.
            * c-family/c.opt: Make -Wshadow also implicitly enable
            -Wshadow-ivar.

testsuite:
            * objc.dg/shadow-1.m: New test.
            * objc.dg/shadow-2.m: New test.
            * objc.dg/ivar-scope-1.m: New test.
            * objc.dg/ivar-scope-2.m: New test.
            * objc.dg/ivar-scope-3.m: New test.
            * objc.dg/ivar-scope-4.m: New test.
            * objc.dg/ivar-visibility-1.m: New test.
            * objc.dg/ivar-visibility-2.m: New test.
            * objc.dg/ivar-visibility-3.m: New test.
            * objc.dg/ivar-visibility-4.m: New test.

Now, actuatally add the files....

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

10 years agoFix stack overflow crash in getcwd intrinsic.
jb [Mon, 12 May 2014 19:23:11 +0000 (19:23 +0000)]
Fix stack overflow crash in getcwd intrinsic.

2014-05-12  Janne Blomqvist  <jb@gcc.gnu.org>

PR libfortran/61035
* intrinsics/getcwd.c (getcwd_i4_sub): Avoid potentially large
stack allocation, avoid extra copying in the common case.

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

10 years agoUse -std=gnu11 instead of -std=gnu99 for libgfortran C code.
jb [Mon, 12 May 2014 19:20:50 +0000 (19:20 +0000)]
Use -std=gnu11 instead of -std=gnu99 for libgfortran C code.

2014-05-12  Janne Blomqvist  <jb@gcc.gnu.org>

* configure.ac (AM_CFLAGS): Use -std=gnu11.
(CFLAGS): Likewise.
* configure: Regenerated.

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

10 years ago2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
mrs [Mon, 12 May 2014 19:12:27 +0000 (19:12 +0000)]
2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>

    * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
    -fno-local-ivars and -fivar-visibility.
    * c-family/c.opt: Make -Wshadow also implicitly enable
    -Wshadow-ivar.

testsuite:
    * objc.dg/shadow-1.m: New test.
    * objc.dg/shadow-2.m: New test.
    * objc.dg/ivar-scope-1.m: New test.
    * objc.dg/ivar-scope-2.m: New test.
    * objc.dg/ivar-scope-3.m: New test.
    * objc.dg/ivar-scope-4.m: New test.
    * objc.dg/ivar-visibility-1.m: New test.
    * objc.dg/ivar-visibility-2.m: New test.
    * objc.dg/ivar-visibility-3.m: New test.
    * objc.dg/ivar-visibility-4.m: New test.

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

10 years ago * call.c (convert_like_real): Use inform for identifying the
jason [Mon, 12 May 2014 19:07:55 +0000 (19:07 +0000)]
* call.c (convert_like_real): Use inform for identifying the
declaration point.

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

10 years ago2014-05-12 Tobias Burnus <burnus@net-b.de>
burnus [Mon, 12 May 2014 19:00:08 +0000 (19:00 +0000)]
2014-05-12  Tobias Burnus  <burnus@net-b.de>

        PR fortran/60127
        * openmp.c (resolve_omp_do): Reject do concurrent loops.

2014-05-12  Tobias Burnus  <burnus@net-b.de>

        PR fortran/60127
        * gfortran.dg/gomp/omp_do_concurrent.f90: New.

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

10 years ago2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
law [Mon, 12 May 2014 16:22:15 +0000 (16:22 +0000)]
2014-05-12  David Wohlferd <dw@LimeGreenSocks.com>

* doc/tm.texi: Remove reference to deleted macro.
* doc/tm.texi.in: Likewise.

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

10 years ago2014-05-12 Thomas Koenig <tkoenig@gcc.gnu.org>
tkoenig [Mon, 12 May 2014 16:17:09 +0000 (16:17 +0000)]
2014-05-12  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/60834
* frontend-passes.c (in_assoc_list):  New variable.
(optimize_namespace):  Initialize in_assoc_list
(combine_array_constructor): Don't try to combine
assoc lists.
(gfc_code_walker):  Keep track of in_assoc_list.

2014-05-12  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/60834
* gfortran.dg/associate_16.f90:  New test.

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

10 years ago2014-05-12 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Mon, 12 May 2014 15:33:35 +0000 (15:33 +0000)]
2014-05-12  Paolo Carlini  <paolo.carlini@oracle.com>

* cvt.c (cp_convert_to_pointer): Don't call error_at if
complain & tf_error is false.

* decl.c (make_unbound_class_template): Prefer inform for
"declared here"-type message.

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

10 years agogcc/ChangeLog
denisc [Mon, 12 May 2014 15:33:00 +0000 (15:33 +0000)]
gcc/ChangeLog

PR target/60991
* config/avr/avr.c (avr_out_store_psi): Use correct constant
to restore Y.

gcc/testsuite/ChangeLog

PR target/60991
* gcc.target/avr/pr60991.c: New testcase.

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

10 years ago2014-05-12 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Mon, 12 May 2014 09:17:46 +0000 (09:17 +0000)]
2014-05-12  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/60054
* g++.dg/cpp1y/pr60054.C: New.

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

10 years agogcc/
gjl [Mon, 12 May 2014 09:02:36 +0000 (09:02 +0000)]
gcc/
* config/arm/arm.h (License): Add GCC Runtime Library Exception.
* config/arm/aout.h (License): Same.
* config/arm/bpabi.h (License): Same.
* config/arm/elf.h (License): Same.
* config/arm/linux-elf.h (License): Same.
* config/arm/linux-gas.h (License): Same.
* config/arm/netbsd-elf.h (License): Same.
* config/arm/uclinux-eabi.h (License): Same.
* config/arm/uclinux-elf.h (License): Same.
* config/arm/vxworks.h (License): Same.

libgcc/
* config/arm/bpabi-lib.h (License): Add GCC Runtime Library Exception.

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

10 years ago2014-05-12 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Mon, 12 May 2014 08:42:41 +0000 (08:42 +0000)]
2014-05-12  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/51199
* g++.dg/template/pr51199.C: New.

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

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

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

10 years ago * gcc.c-torture/execute/20101011-1.c [__MMIX__] (DO_TEST): Define as 0.
hp [Sun, 11 May 2014 20:48:31 +0000 (20:48 +0000)]
* gcc.c-torture/execute/20101011-1.c [__MMIX__] (DO_TEST): Define as 0.

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

10 years ago * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
jakub [Sun, 11 May 2014 20:26:36 +0000 (20:26 +0000)]
* tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
* tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
number of operands to 3.
(walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
* tree-nested.c (convert_nonlocal_omp_clauses,
convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
* gimplify.c (gimplify_scan_omp_clauses): Handle
OMP_CLAUSE_LINEAR_STMT.
* omp-low.c (lower_rec_input_clauses): Fix typo.
(maybe_add_implicit_barrier_cancel, lower_omp_1): Add
cast between Fortran boolean_type_node and C _Bool if
needed.
gcc/fortran/
* gfortran.h (gfc_statement): Add ST_OMP_CANCEL,
ST_OMP_CANCELLATION_POINT, ST_OMP_TASKGROUP, ST_OMP_END_TASKGROUP,
ST_OMP_SIMD, ST_OMP_END_SIMD, ST_OMP_DO_SIMD, ST_OMP_END_DO_SIMD,
ST_OMP_PARALLEL_DO_SIMD, ST_OMP_END_PARALLEL_DO_SIMD and
ST_OMP_DECLARE_SIMD.
(gfc_omp_namelist): New typedef.
(gfc_get_omp_namelist): Define.
(OMP_LIST_UNIFORM, OMP_LIST_ALIGNED, OMP_LIST_LINEAR,
OMP_LIST_DEPEND_IN, OMP_LIST_DEPEND_OUT): New clause list kinds.
(gfc_omp_proc_bind_kind, gfc_omp_cancel_kind): New enums.
(gfc_omp_clauses): Change type of lists to gfc_omp_namelist *.
Add inbranch, notinbranch, cancel, proc_bind, safelen_expr and
simdlen_expr fields.
(gfc_omp_declare_simd): New typedef.
(gfc_get_omp_declare_simd): Define.
(gfc_namespace): Add omp_declare_simd field.
(gfc_exec_op): Add EXEC_OMP_CANCEL, EXEC_OMP_CANCELLATION_POINT,
EXEC_OMP_TASKGROUP, EXEC_OMP_SIMD, EXEC_OMP_DO_SIMD and
EXEC_OMP_PARALLEL_DO_SIMD.
(gfc_omp_atomic_op): Add GFC_OMP_ATOMIC_MASK, GFC_OMP_ATOMIC_SEQ_CST
and GFC_OMP_ATOMIC_SWAP.
(gfc_code): Change type of omp_namelist field to gfc_omp_namelist *.
(gfc_free_omp_namelist, gfc_free_omp_declare_simd,
gfc_free_omp_declare_simd_list, gfc_resolve_omp_declare_simd): New
prototypes.
* trans-stmt.h (gfc_trans_omp_declare_simd): New prototype.
* symbol.c (gfc_free_namespace): Call gfc_free_omp_declare_simd.
* openmp.c (gfc_free_omp_clauses): Free safelen_expr and
simdlen_expr.  Use gfc_free_omp_namelist instead of
gfc_free_namelist.
(gfc_free_omp_declare_simd, gfc_free_omp_declare_simd_list): New
functions.
(gfc_match_omp_variable_list): Add end_colon, headp and
allow_sections arguments.  Handle parsing of array sections.
Use *omp_namelist* instead of *namelist* data structure and
functions/macros.  Allow termination at : character.
(OMP_CLAUSE_ALIGNED, OMP_CLAUSE_DEPEND, OMP_CLAUSE_INBRANCH,
OMP_CLAUSE_LINEAR, OMP_CLAUSE_NOTINBRANCH, OMP_CLAUSE_PROC_BIND,
OMP_CLAUSE_SAFELEN, OMP_CLAUSE_SIMDLEN, OMP_CLAUSE_UNIFORM): Define.
(gfc_match_omp_clauses): Change first and needs_space variables
into arguments with default values.  Parse inbranch, notinbranch,
proc_bind, safelen, simdlen, uniform, linear, aligned and
depend clauses.
(OMP_PARALLEL_CLAUSES): Add OMP_CLAUSE_PROC_BIND.
(OMP_DECLARE_SIMD_CLAUSES, OMP_SIMD_CLAUSES): Define.
(OMP_TASK_CLAUSES): Add OMP_CLAUSE_DEPEND.
(gfc_match_omp_do_simd): New function.
(gfc_match_omp_flush): Use *omp_namelist* instead of *namelist*
data structure and functions/macros.
(gfc_match_omp_simd, gfc_match_omp_declare_simd,
gfc_match_omp_parallel_do_simd): New functions.
(gfc_match_omp_atomic): Handle seq_cst clause.  Handle atomic swap.
(gfc_match_omp_taskgroup, gfc_match_omp_cancel_kind,
gfc_match_omp_cancel, gfc_match_omp_cancellation_point): New
functions.
(resolve_omp_clauses): Add where, omp_clauses and ns arguments.
Use *omp_namelist* instead of *namelist* data structure and
functions/macros.  Resolve uniform, aligned, linear, depend,
safelen and simdlen clauses.
(resolve_omp_atomic): Adjust for GFC_OMP_ATOMIC_{MASK,SEQ_CST,SWAP}
addition, recognize atomic swap.
(gfc_resolve_omp_parallel_blocks): Use gfc_omp_namelist instead
of gfc_namelist.  Handle EXEC_OMP_PARALLEL_DO_SIMD the same as
EXEC_OMP_PARALLEL_DO.
(gfc_resolve_do_iterator): Use *omp_namelist* instead of *namelist*
data structure and functions/macros.
(resolve_omp_do): Likewise.  Handle EXEC_OMP_SIMD, EXEC_OMP_DO_SIMD,
EXEC_OMP_PARALLEL_DO_SIMD.
(gfc_resolve_omp_directive): Handle EXEC_OMP_SIMD, EXEC_OMP_DO_SIMD,
EXEC_OMP_PARALLEL_DO_SIMD and EXEC_OMP_CANCEL.  Adjust
resolve_omp_clauses caller.
(gfc_resolve_omp_declare_simd): New function.
* parse.c (decode_omp_directive): Parse cancellation point, cancel,
declare simd, end do simd, end simd, end parallel do simd,
end taskgroup, parallel do simd, simd and taskgroup directives.
(case_executable): Add ST_OMP_CANCEL and ST_OMP_CANCELLATION_POINT.
(case_exec_markers): Add ST_OMP_TASKGROUP, case ST_OMP_SIMD,
ST_OMP_DO_SIMD and ST_OMP_PARALLEL_DO_SIMD.
(case_decl): Add ST_OMP_DECLARE_SIMD.
(gfc_ascii_statement): Handle ST_OMP_CANCEL,
ST_OMP_CANCELLATION_POINT, ST_OMP_TASKGROUP, ST_OMP_END_TASKGROUP,
ST_OMP_SIMD, ST_OMP_END_SIMD, ST_OMP_DO_SIMD, ST_OMP_END_DO_SIMD,
ST_OMP_PARALLEL_DO_SIMD, ST_OMP_END_PARALLEL_DO_SIMD and
ST_OMP_DECLARE_SIMD.
(parse_omp_do): Handle ST_OMP_SIMD, ST_OMP_DO_SIMD and
ST_OMP_PARALLEL_DO_SIMD.
(parse_omp_atomic): Adjust for GFC_OMP_ATOMIC_* additions.
(parse_omp_structured_block): Handle ST_OMP_TASKGROUP and
ST_OMP_PARALLEL_DO_SIMD.
(parse_executable): Handle ST_OMP_SIMD, ST_OMP_DO_SIMD,
ST_OMP_PARALLEL_DO_SIMD and ST_OMP_TASKGROUP.
* trans-decl.c (gfc_get_extern_function_decl,
gfc_create_function_decl): Call gfc_trans_omp_declare_simd if
needed.
* frontend-passes.c (gfc_code_walker): Handle EXEC_OMP_SIMD,
EXEC_OMP_DO_SIMD and EXEC_OMP_PARALLEL_DO_SIMD.  Walk
safelen_expr and simdlen_expr.  Walk expressions in gfc_omp_namelist
of depend, aligned and linear clauses.
* match.c (match_exit_cycle): Handle EXEC_OMP_SIMD, EXEC_OMP_DO_SIMD
and EXEC_OMP_PARALLEL_DO_SIMD.
(gfc_free_omp_namelist): New function.
* dump-parse-tree.c (show_namelist): Removed.
(show_omp_namelist): New function.
(show_omp_node): Handle OpenMP 4.0 additions.
(show_code_node): Handle EXEC_OMP_CANCEL, EXEC_OMP_CANCELLATION_POINT,
EXEC_OMP_DO_SIMD, EXEC_OMP_PARALLEL_DO_SIMD, EXEC_OMP_SIMD and
EXEC_OMP_TASKGROUP.
* match.h (gfc_match_omp_cancel, gfc_match_omp_cancellation_point,
gfc_match_omp_declare_simd, gfc_match_omp_do_simd,
gfc_match_omp_parallel_do_simd, gfc_match_omp_simd,
gfc_match_omp_taskgroup): New prototypes.
* trans-openmp.c (gfc_trans_omp_variable): Add declare_simd
argument, handle it.  Allow current_function_decl to be NULL.
(gfc_trans_omp_variable_list): Add declare_simd argument, pass
it through to gfc_trans_omp_variable and disregard whether
sym is referenced if declare_simd is true.  Work on gfc_omp_namelist
instead of gfc_namelist.
(gfc_trans_omp_reduction_list): Work on gfc_omp_namelist instead of
gfc_namelist.  Adjust gfc_trans_omp_variable caller.
(gfc_trans_omp_clauses): Add declare_simd argument, pass it through
to gfc_trans_omp_variable{,_list} callers.  Work on gfc_omp_namelist
instead of gfc_namelist.  Handle inbranch, notinbranch, safelen,
simdlen, depend, uniform, linear, proc_bind and aligned clauses.
Handle cancel kind.
(gfc_trans_omp_atomic): Handle seq_cst clause, handle atomic swap,
adjust for GFC_OMP_ATOMIC_* changes.
(gfc_trans_omp_cancel, gfc_trans_omp_cancellation_point): New
functions.
(gfc_trans_omp_do): Add op argument, handle simd translation into
generic.
(GFC_OMP_SPLIT_SIMD, GFC_OMP_SPLIT_DO, GFC_OMP_SPLIT_PARALLEL,
GFC_OMP_SPLIT_NUM, GFC_OMP_MASK_SIMD, GFC_OMP_MASK_DO,
GFC_OMP_MASK_PARALLEL): New.
(gfc_split_omp_clauses, gfc_trans_omp_do_simd): New functions.
(gfc_trans_omp_parallel_do): Rework to use gfc_split_omp_clauses.
(gfc_trans_omp_parallel_do_simd, gfc_trans_omp_taskgroup): New
functions.
(gfc_trans_omp_directive): Handle EXEC_OMP_CANCEL,
EXEC_OMP_CANCELLATION_POINT, EXEC_OMP_DO_SIMD,
EXEC_OMP_PARALLEL_DO_SIMD, EXEC_OMP_SIMD and EXEC_OMP_TASKGROUP.
Adjust gfc_trans_omp_do caller.
(gfc_trans_omp_declare_simd): New function.
* st.c (gfc_free_statement): Handle EXEC_OMP_CANCEL,
EXEC_OMP_CANCELLATION_POINT, EXEC_OMP_DO_SIMD,
EXEC_OMP_PARALLEL_DO_SIMD, EXEC_OMP_SIMD and EXEC_OMP_TASKGROUP.
For EXEC_OMP_FLUSH call gfc_free_omp_namelist instead of
gfc_free_namelist.
* module.c (omp_declare_simd_clauses): New variable.
(mio_omp_declare_simd): New function.
(mio_symbol): Call it.
* trans.c (trans_code): Handle EXEC_OMP_CANCEL,
EXEC_OMP_CANCELLATION_POINT, EXEC_OMP_DO_SIMD,
EXEC_OMP_PARALLEL_DO_SIMD, EXEC_OMP_SIMD and EXEC_OMP_TASKGROUP.
* resolve.c (gfc_resolve_blocks): Handle EXEC_OMP_DO_SIMD,
EXEC_OMP_PARALLEL_DO_SIMD, EXEC_OMP_SIMD and EXEC_OMP_TASKGROUP.
(resolve_code): Handle EXEC_OMP_CANCEL,
EXEC_OMP_CANCELLATION_POINT, EXEC_OMP_DO_SIMD,
EXEC_OMP_PARALLEL_DO_SIMD, EXEC_OMP_SIMD and EXEC_OMP_TASKGROUP.
(resolve_types): Call gfc_resolve_omp_declare_simd.
gcc/testsuite/
* gfortran.dg/gomp/affinity-1.f90: New test.
libgomp/
* testsuite/libgomp.fortran/cancel-do-1.f90: New test.
* testsuite/libgomp.fortran/cancel-do-2.f90: New test.
* testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
* testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
* testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
* testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
* testsuite/libgomp.fortran/declare-simd-1.f90: New test.
* testsuite/libgomp.fortran/declare-simd-2.f90: New test.
* testsuite/libgomp.fortran/declare-simd-3.f90: New test.
* testsuite/libgomp.fortran/depend-1.f90: New test.
* testsuite/libgomp.fortran/depend-2.f90: New test.
* testsuite/libgomp.fortran/omp_atomic5.f90: New test.
* testsuite/libgomp.fortran/simd1.f90: New test.
* testsuite/libgomp.fortran/simd2.f90: New test.
* testsuite/libgomp.fortran/simd3.f90: New test.
* testsuite/libgomp.fortran/simd4.f90: New test.
* testsuite/libgomp.fortran/taskgroup1.f90: New test.

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

10 years agogcc/
rsandifo [Sun, 11 May 2014 20:21:55 +0000 (20:21 +0000)]
gcc/
PR tree-optimization/61136
* wide-int.h (multiple_of_p): Define a version that doesn't return
the quotient.
* fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
integer_zerop/const_binop pair.
(multiple_of_p): Likewise, converting both operands to widest_int
precision.

gcc/testsuite/
* gcc.dg/torture/pr61136.c: New test.

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

10 years ago2014-05-11 Tobias Burnus <burnus@net-b.de>
burnus [Sun, 11 May 2014 18:25:55 +0000 (18:25 +0000)]
2014-05-11  Tobias Burnus  <burnus@net-b.de>

       * trans-intrinsic.c (gfc_build_builtin_function_decls):
       Change type of second argument to int.

2014-05-11  Tobias Burnus  <burnus@net-b.de>

       * caf/libcaf.h (_gfortran_caf_num_images): Change type of
       second argument to int.
       * caf/mpi.c (_gfortran_caf_num_images): Ditto.
       * caf/single.c (_gfortran_caf_num_images): Ditto.

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

10 years ago2014-05-11 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Sun, 11 May 2014 10:23:34 +0000 (10:23 +0000)]
2014-05-11  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/59705
* g++.dg/cpp0x/sfinae51.C: New.

PR c++/58353
* g++.dg/cpp0x/variadic157.C: New.

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

10 years agoDaily bump.
gccadmin [Sun, 11 May 2014 00:16:47 +0000 (00:16 +0000)]
Daily bump.

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

10 years agogcc/testsuite/
olegendo [Sat, 10 May 2014 20:19:06 +0000 (20:19 +0000)]
gcc/testsuite/
PR target/51244
* gcc.target/sh/pr51244-14.c: Relax criteria for passing the test.

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

10 years ago * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to
mpolacek [Sat, 10 May 2014 20:03:57 +0000 (20:03 +0000)]
* c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to
maybe_warn_string_init.
(c_parser_postfix_expression_after_paren_type): Pass type_loc to
maybe_warn_string_init.
* c-tree.h (maybe_warn_string_init): Update declaration.
* c-typeck.c (maybe_warn_string_init): Add location parameter.
Call pedwarn_init with loc instead of with input_location.
(digest_init): Pass init_loc to maybe_warn_string_init.
(pop_init_level): Call pedwarn_init with loc instead of with
input_location.
(set_init_index): Likewise.
(process_init_element): Likewise.

* gcc.dg/pedwarn-init.c: New test.
* gcc.dg/init-string-1.c: Adjust dg-error.

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

10 years ago * lib/target-supports.exp
hp [Sat, 10 May 2014 11:58:57 +0000 (11:58 +0000)]
* lib/target-supports.exp
(check_effective_target_logical_op_short_circuit): Add mmix-*-*
to the list.

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

10 years agoDaily bump.
gccadmin [Sat, 10 May 2014 00:16:52 +0000 (00:16 +0000)]
Daily bump.

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

10 years ago PR c++/60463
jason [Fri, 9 May 2014 20:07:45 +0000 (20:07 +0000)]
PR c++/60463
PR c++/60755
* lambda.c (lambda_expr_this_capture): Add new parameter
add_capture_p controlling whether the functions will try to
capture 'this' via the default capture.
(maybe_resolve_dummy): Likewise.
* cp-tree.h: Adjust prototypes.
* call.c, semantics.c: Change callers of these functions.
* call.c (build_new_method_call_1): Use the actual 'this' that
would be potentially captured for the overload resolution, instead
of the dummy object.

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

10 years agoFix typo in ChangeLog-2013
redi [Fri, 9 May 2014 19:39:20 +0000 (19:39 +0000)]
Fix typo in ChangeLog-2013

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

10 years ago * config/abi/pre/gnu.ver (GLIBCXX_3.4.20): Correct regex_error export.
redi [Fri, 9 May 2014 19:39:14 +0000 (19:39 +0000)]
* config/abi/pre/gnu.ver (GLIBCXX_3.4.20): Correct regex_error export.
(GLIBCXX_3.4.21): Export base object constructor for regex_error.
* acinclude.m4 (libtool_VERSION): Bump.
* configure: Regenerate.
* testsuite/util/testsuite_abi.cc: Add GLIBCXX_3.4.21 version.
* testsuite/28_regex/regex_error/base.cc: New.

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

10 years ago2014-05-09 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Fri, 9 May 2014 19:30:03 +0000 (19:30 +0000)]
2014-05-09  Paolo Carlini  <paolo.carlini@oracle.com>

* pt.c (convert_nontype_argument_function): Add tsubst_flags_t
parameter.
(convert_nontype_argument): Adjust calls.
(coerce_template_parameter_pack): Add missing complain & tf_error
check.

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

10 years ago2014-05-09 Teresa Johnson <tejohnson@google.com>
tejohnson [Fri, 9 May 2014 18:31:57 +0000 (18:31 +0000)]
2014-05-09  Teresa Johnson  <tejohnson@google.com>

* cgraphunit.c (analyze_functions): Use correct dump file.

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

10 years ago DR 587
jason [Fri, 9 May 2014 18:16:18 +0000 (18:16 +0000)]
DR 587
PR c++/51317
* call.c (build_conditional_expr_1, conditional_conversion): Handle
non-class lvalues and xvalues that differ only in cv-qualifiers.

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

10 years ago DR 5
jason [Fri, 9 May 2014 18:16:11 +0000 (18:16 +0000)]
DR 5
PR c++/60019
* call.c (build_user_type_conversion_1): The copy-init temporary
is cv-unqualified.

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

10 years ago PR c++/58714
jason [Fri, 9 May 2014 18:16:05 +0000 (18:16 +0000)]
PR c++/58714
* tree.c (stabilize_expr): A stabilized prvalue is an xvalue.

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

10 years ago PR c++/32019
jason [Fri, 9 May 2014 18:15:57 +0000 (18:15 +0000)]
PR c++/32019
* call.c (build_conditional_expr_1): Improve ambiguity diagnostic.

PR c++/54348
* call.c (build_conditional_expr_1): If overload resolution finds
no match, just say "different types".

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

10 years ago PR c++/22434
jason [Fri, 9 May 2014 18:15:46 +0000 (18:15 +0000)]
PR c++/22434
* call.c (build_conditional_expr_1): Don't try to pool cv-quals
if we didn't find a conversion.
Don't accept a bad conversion too early.

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

10 years ago PR c/61096
mpolacek [Fri, 9 May 2014 17:50:25 +0000 (17:50 +0000)]
PR c/61096
* c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level.
(c_parser_initelt): Pass location to set_init_label.  Pass array index
location to set_init_index.
* c-tree.h (push_init_level): Update declaration.
(pop_init_level): Likewise.
(set_init_index): Likewise.
(set_init_label): Likewise.
* c-typeck.c (error_init): Add location parameter.  Call error_at
instead of error.
(digest_init): Pass init_loc to error_init.
(really_start_incremental_init):
(push_init_level): Add location parameter.  Pass loc to pop_init_level
and error_init.
(pop_init_level): Likewise.
(set_designator): Add location parameter.  Pass loc to pop_init_level,
push_init_level, and error_init.
(set_init_index): Add location parameter.  Pass loc to error_init and
set_designator.
(set_init_label): Likewise.
(output_init_element): Pass loc to error_init.
(process_init_element): Pass loc to error_init, pop_init_level,
pedwarn_init, and push_init_level.

* gcc.dg/pr61096-1.c: New test.
* gcc.dg/pr61096-2.c: New test.

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

10 years ago PR fortran/61109
mrs [Fri, 9 May 2014 14:06:15 +0000 (14:06 +0000)]
PR fortran/61109
        * trans-array.c (gfc_conv_array_initializer): Fix wide-int
conversion bug.

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

10 years agofixed date of changelog entry
zadeck [Fri, 9 May 2014 12:28:05 +0000 (12:28 +0000)]
fixed date of changelog entry

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

10 years ago-fstack-protector-strong: Instrumentation for return slots
fw [Fri, 9 May 2014 12:23:46 +0000 (12:23 +0000)]
-fstack-protector-strong: Instrumentation for return slots

This patch fixes a loophole in the -fstack-protector-strong protection.
If a function call uses a return slot, the caller needs stack protector
instrumentation because the return slot is addressable.

gcc/

2014-05-09  Florian Weimer  <fweimer@redhat.com>

* cfgexpand.c (stack_protect_decl_p): New function, extracted from
expand_used_vars.
(stack_protect_return_slot_p): New function.
(expand_used_vars): Call stack_protect_decl_p and
stack_protect_return_slot_p for -fstack-protector-strong.

gcc/testsuite/

2014-05-09  Florian Weimer  <fweimer@redhat.com>

* gcc.dg/fstack-protector-strong.c: Add coverage for return slots.
* g++.dg/fstack-protector-strong.C: Likewise.
* gcc.target/i386/ssp-strong-reg.c: New file.

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

10 years ago2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
zadeck [Fri, 9 May 2014 12:21:23 +0000 (12:21 +0000)]
2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>

PR middle-end/61111
* fold-const.c (fold_binary_loc): Changed width of mask.

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

10 years ago014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
aph [Fri, 9 May 2014 12:15:41 +0000 (12:15 +0000)]
014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
Andrew Haley <aph@redhat.com>
Richard Sandiford <rdsandiford@googlemail.com>

* doc/extend.texi: Rewrite inline asm page / re-org asm-related
pages.

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

10 years ago * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
gjl [Fri, 9 May 2014 12:11:30 +0000 (12:11 +0000)]
* config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
unsigned int initializers for regno_in, regno_out.

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

10 years agogcc/config/avr
gjl [Fri, 9 May 2014 11:20:43 +0000 (11:20 +0000)]
gcc/config/avr
PR target/61055
* config/avr/avr.md (cc): Add new attribute set_vzn.
(addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
Set cc insn attribute to set_vzn instead of set_zn for alternatives
with INC, DEC or NEG.
* config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
(avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.

gcc/testsuite/
PR target/61055
* gcc.target/avr/torture/pr61055.c: New test.

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

10 years ago2014-05-09 Joey Ye <joey.ye@arm.com>
jye2 [Fri, 9 May 2014 08:50:22 +0000 (08:50 +0000)]
2014-05-09  Joey Ye  <joey.ye@arm.com>

* files.c (find_file_in_dir): Always try to shorten for DOS
non-system headers.
* init.c (ENABLE_CANONICAL_SYSTEM_HEADERS): Default enabled for DOS.

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

10 years agoRevert wide-int change.
ramana [Fri, 9 May 2014 08:32:37 +0000 (08:32 +0000)]
Revert wide-int change.

2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

Revert:
2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

* wide-int.cc (UTItype): Define.
(UDWtype): Define for appropriate W_TYPE_SIZE.

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

10 years ago PR c/50459
mpolacek [Fri, 9 May 2014 08:24:37 +0000 (08:24 +0000)]
PR c/50459
c-family/
* c-common.c (check_user_alignment): Return -1 if alignment is error
node.
(handle_aligned_attribute): Don't call default_conversion on
FUNCTION_DECLs.
(handle_vector_size_attribute): Likewise.
(handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
(handle_sentinel_attribute): Call default_conversion and allow even
integral types as an argument.
c/
* c-parser.c (c_parser_attributes): Parse the arguments as an
expression-list if the attribute takes identifier.
testsuite/
* c-c++-common/attributes-1.c: Move test line to a new test.
* c-c++-common/attributes-2.c: New test.
* c-c++-common/pr50459.c: New test.
* c-c++-common/pr59280.c: Add "undeclared" to dg-error.
* gcc.dg/nonnull-2.c: Likewise.
* gcc.dg/pr55570.c: Modify dg-error.
* gcc.dg/tm/wrap-2.c: Likewise.

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

10 years ago2014-05-09 Richard Biener <rguenther@suse.de>
rguenth [Fri, 9 May 2014 07:49:18 +0000 (07:49 +0000)]
2014-05-09  Richard Biener  <rguenther@suse.de>

* Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
* tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
(interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
(add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
ssa_propagate): Adjust.

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

10 years ago2014-05-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
jbglaw [Fri, 9 May 2014 07:25:21 +0000 (07:25 +0000)]
2014-05-09  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

       * config-list.mk (show): New target.

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

10 years ago * mmap.c (backtrace_free): If freeing a large aligned block of
ian [Fri, 9 May 2014 05:01:08 +0000 (05:01 +0000)]
* mmap.c (backtrace_free): If freeing a large aligned block of
memory, call munmap rather than holding onto it.
(backtrace_vector_grow): When growing a vector, double the number
of pages requested.  When releasing the old version of a grown
vector, pass the correct size to backtrace_free.

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

10 years ago2014-05-08 Jeff Law <law@redhat.com>
law [Fri, 9 May 2014 04:54:00 +0000 (04:54 +0000)]
2014-05-08  Jeff Law  <law@redhat.com>

PR tree-optimization/61009
* tree-ssa-threadedge.c (thread_through_normal_block): Return a
tri-state rather than a boolean.  When a block is too big to
thread through, inform caller via negative return value.
(thread_across_edge): If a block was too big for normal threading,
then it's too big for a joiner too, so remove temporary equivalences
and return immediately.

PR tree-optimization/61009
* g++.dg/tree-ssa/pr61009.C: New test.

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

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

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

10 years agogcc/
doko [Thu, 8 May 2014 22:17:43 +0000 (22:17 +0000)]
gcc/

2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
            Matthias Klose  <doko@ubuntu.com>

        PR driver/61106
        * optc-gen.awk: Fix option handling for -Wunused-parameter.

gcc/testsuite/

2014-05-08  Matthias Klose  <doko@ubuntu.com>

        PR driver/61106
        * gcc-dg/unused-8a.c: New.
        * gcc-dg/unused-8b.c: Likewise.

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

10 years agocontrib/
rsandifo [Thu, 8 May 2014 20:24:33 +0000 (20:24 +0000)]
contrib/
* dg-extract-results.py: New file.
* dg-extract-results.sh: Use it if the environment seems suitable.

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

10 years ago2014-05-08 Joshua Gay <jgay@gnu.org>
redi [Thu, 8 May 2014 19:52:40 +0000 (19:52 +0000)]
2014-05-08  Joshua Gay  <jgay@gnu.org>

PR libstdc++/61117
* doc/xml/faq.xml (faq.license.what_restrictions): Replace "open
source" with "free software".
* doc/html/faq.html: Likewise.

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

10 years ago PR target/59952
uros [Thu, 8 May 2014 19:13:10 +0000 (19:13 +0000)]
PR target/59952
* config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.

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

10 years ago PR target/61092
uros [Thu, 8 May 2014 19:02:28 +0000 (19:02 +0000)]
PR target/61092
* config/alpha/alpha.c: Include gimple-iterator.h.
(alpha_gimple_fold_builtin): New function.  Move
ALPHA_BUILTIN_UMULH folding from ...
(alpha_fold_builtin): ... here.
(TARGET_GIMPLE_FOLD_BUILTIN): New define.

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

10 years ago * include/std/iostream: Fix URL in comment.
redi [Thu, 8 May 2014 19:01:51 +0000 (19:01 +0000)]
* include/std/iostream: Fix URL in comment.
* src/c++98/ios_init.cc: Fix path in comment.

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

10 years ago PR libstdc++/13860
redi [Thu, 8 May 2014 18:30:14 +0000 (18:30 +0000)]
PR libstdc++/13860
* include/std/fstream (basic_filebuf): Enforce requirements on traits.

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

10 years ago PR c/61053
mpolacek [Thu, 8 May 2014 18:19:09 +0000 (18:19 +0000)]
PR c/61053
c-family/
* c-common.c (min_align_of_type): New function factored out from...
(c_sizeof_or_alignof_type): ...here.
* c-common.h (min_align_of_type): Declare.
c/
* c-decl.c (grokdeclarator): Use min_align_of_type instead of
TYPE_ALIGN_UNIT.
testsuite/
* gcc.dg/pr61053.c: New test.

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

10 years ago PR c/61077
mpolacek [Thu, 8 May 2014 17:42:09 +0000 (17:42 +0000)]
PR c/61077
c-family/
* c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
parameter type of main.
c/
* c-decl.c (start_function): Warn for _Atomic-qualified return type
of main.
testsuite/
* gcc.dg/pr61077.c: New test.

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

10 years ago PR libstdc++/57394
redi [Thu, 8 May 2014 17:17:06 +0000 (17:17 +0000)]
PR libstdc++/57394
* include/bits/ios_base.h (ios_base(const ios_base&)): Define as
deleted for C++11.
(operator=(const ios_base&)): Likewise.
* include/std/streambuf: Remove trailing whitespace.
(basic_streambuf(const basic_streambuf&)): Fix initializer for
_M_out_end. Define as defaulted for C++11.
(operator=(const basic_streambuf&)): Define as defaulted for C++11.
(swap(basic_streambuf&)): Define for C++11.
* testsuite/27_io/basic_streambuf/cons/57394.cc: New.

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

10 years ago2014-05-08 Tobias Burnus <burnus@net-b.de>
burnus [Thu, 8 May 2014 17:00:07 +0000 (17:00 +0000)]
2014-05-08  Tobias Burnus  <burnus@net-b.de>

        * gfortran.h (gfc_isym_id): Add GFC_ISYM_CAF_GET
        and GFC_ISYM_CAF_SEND.
        * intrinsic.c (add_functions): Add only internally
        accessible caf_get and caf_send functions.
        * resolve.c (add_caf_get_intrinsic,
        remove_caf_get_intrinsic): New functions.
        (resolve_variable): Resolve expression rank and
        prepare for add_caf_get_intrinsic call.
        (gfc_resolve_expr): For variables, remove rank
        resolution.
        (resolve_ordinary_assign): Prepare call to
        GFC_ISYM_CAF_SEND.
        (resolve_code): Avoid call to GFC_ISYM_CAF_GET for
        the LHS of an assignment.

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

10 years ago2014-05-08 Tobias Burnus <burnus@net-b.de>
burnus [Thu, 8 May 2014 16:57:42 +0000 (16:57 +0000)]
2014-05-08  Tobias Burnus  <burnus@net-b.de>

        * trans-intrinsic.c (conv_co_minmaxsum): Change condition style.

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

10 years agogcc/fortran/
burnus [Thu, 8 May 2014 16:55:23 +0000 (16:55 +0000)]
gcc/fortran/
2014-05-08  Tobias Burnus  <burnus@net-b.de>

        * check.c (check_co_minmaxsum, gfc_check_co_minmax,
        gfc_check_co_sum): New.
        * error.c (gfc_notify_std): Update -std=f2008ts.
        * gfortran.h (gfc_isym_id): Add GFC_ISYM_CO_MAX,
        GFC_ISYM_CO_MIN, GFC_ISYM_CO_SUM.
        * intrinsic.h (gfc_check_co_minmax,
        gfc_check_co_sum): Declare.
        * intrinsic.c (add_subroutines): Add co_min, co_max
        and co_sum.
        (gfc_check_intrinsic_standard): Update text for
        -std=f2008ts.
        * intrinsic.texi (CO_MIN, CO_MAX, CO_SUM): Document
        them.
        * invoke.texi (-std=f2008ts): Update wording.
        * trans.h (gfor_fndecl_co_max,
        gfor_fndecl_co_min, gfor_fndecl_co_sum): Define.
        * trans-decl.c (gfor_fndecl_co_max,
        gfor_fndecl_co_min, gfor_fndecl_co_sum): Define.
        (gfc_build_builtin_function_decls): Assign to it.
        * trans-intrinsic.c (conv_co_minmaxsum): New.
        (gfc_conv_intrinsic_subroutine): Call it.

libgfortran/
2014-05-08  Tobias Burnus  <burnus@net-b.de>

        * caf/libcaf.h (caf_vector_t, _gfortran_caf_co_sum,
        _gfortran_caf_co_min, _gfortran_caf_co_max): Declare
        * caf/single.c

gcc/testsuite/
2014-05-08  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/coarray_collectives_1.f90: New.
        * gfortran.dg/coarray_collectives_2.f90: New.
        * gfortran.dg/coarray_collectives_3.f90: New.
        * gfortran.dg/coarray_collectives_4.f90: New.
        * gfortran.dg/coarray_collectives_5.f90: New.
        * gfortran.dg/coarray_collectives_6.f90: New.
        * gfortran.dg/coarray/collectives_1.f90: New.
        * gfortran.dg/assumed_rank_5.f90: Update dg-error.
        * gfortran.dg/assumed_type_4.f90: Update dg-error.
        * gfortran.dg/bind_c_array_params.f03: Update dg-error.
        * gfortran.dg/bind_c_usage_28.f90: Update dg-error.
        * gfortran.dg/c_funloc_tests_5.f03: Update dg-error.
        * gfortran.dg/c_funloc_tests_6.f90: Update dg-error.
        * gfortran.dg/c_loc_tests_11.f03: Update dg-error.

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

10 years agogcc/
wmi [Thu, 8 May 2014 16:44:52 +0000 (16:44 +0000)]
gcc/
2014-05-08  Wei Mi  <wmi@google.com>

PR target/58066
* config/i386/i386.c (ix86_compute_frame_layout):
Update preferred_stack_boundary for call, expanded from
tls descriptor.
* config/i386/i386.md:
(*tls_global_dynamic_32_gnu): Update RTX to depend on
SP register.
(*tls_local_dynamic_base_32_gnu): Ditto.
(*tls_local_dynamic_32_once): Ditto.
(tls_global_dynamic_64_<mode>): Set
ix86_tls_descriptor_calls_expanded_in_cfun.
(tls_local_dynamic_base_64_<mode>): Ditto.
(tls_global_dynamic_32): Set
ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
to depend on SP register.
(tls_local_dynamic_base_32): Ditto.

gcc/testsuite/
2014-05-08  Wei Mi  <wmi@google.com>

PR target/58066
* gcc.target/i386/pr58066.c: New test.

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

10 years ago * gcc.target/i386/avx256-unaligned-load-2.c,
jsm28 [Thu, 8 May 2014 15:39:32 +0000 (15:39 +0000)]
* gcc.target/i386/avx256-unaligned-load-2.c,
gcc.target/i386/pr49002-1.c, gcc.target/i386/pr53712.c,
gcc.target/i386/pr53907.c, gcc.target/i386/pr59539-1.c: Allow
packed-single instructions.

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

10 years agoNeon intrinsics TLC - remove ML
ramana [Thu, 8 May 2014 14:35:40 +0000 (14:35 +0000)]
Neon intrinsics TLC - remove ML

2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

* config/arm/arm_neon.h: Update comment.
* config/arm/neon-docgen.ml: Delete.
* config/arm/neon-gen.ml: Delete.
* doc/arm-neon-intrinsics.texi: Update comment.

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

10 years agoNeon intrinsics TLC - remove dead code.
ramana [Thu, 8 May 2014 14:33:05 +0000 (14:33 +0000)]
Neon intrinsics TLC - remove dead code.

2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

* config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
and v4sf versions.
(vand, vorr, veor, vorn, vbic): Remove.
* config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
iterator.
(neon_vsub_unspec): Likewise.
(neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.

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

10 years ago/cp
paolo [Thu, 8 May 2014 14:30:56 +0000 (14:30 +0000)]
/cp
2014-05-08  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/13981
* typeck.c (convert_for_assignment): Provide an inform for pointers
to incomplete class types.

/testsuite
2014-05-08  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/13981
* g++.dg/diagnostic/pr13981.C: New.

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

10 years agoNeon intrinsics TLC - Replace intrinsics with GNU C implementations.
ramana [Thu, 8 May 2014 14:30:10 +0000 (14:30 +0000)]
Neon intrinsics TLC - Replace intrinsics with GNU C implementations.

2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

* config/arm/arm_neon.h (vadd_s8): GNU C implementation
(vadd_s16): Likewise.
(vadd_s32): Likewise.
(vadd_f32): Likewise.
(vadd_u8): Likewise.
(vadd_u16): Likewise.
(vadd_u32): Likewise.
(vadd_s64): Likewise.
(vadd_u64): Likewise.
(vaddq_s8): Likewise.
(vaddq_s16): Likewise.
(vaddq_s32): Likewise.
(vaddq_s64): Likewise.
(vaddq_f32): Likewise.
(vaddq_u8): Likewise.
(vaddq_u16): Likewise.
(vaddq_u32): Likewise.
(vaddq_u64): Likewise.
(vmul_s8): Likewise.
(vmul_s16): Likewise.
(vmul_s32): Likewise.
(vmul_f32): Likewise.
(vmul_u8): Likewise.
(vmul_u16): Likewise.
(vmul_u32): Likewise.
(vmul_p8): Likewise.
(vmulq_s8): Likewise.
(vmulq_s16): Likewise.
(vmulq_s32): Likewise.
(vmulq_f32): Likewise.
(vmulq_u8): Likewise.
(vmulq_u16): Likewise.
(vmulq_u32): Likewise.
(vsub_s8): Likewise.
(vsub_s16): Likewise.
(vsub_s32): Likewise.
(vsub_f32): Likewise.
(vsub_u8): Likewise.
(vsub_u16): Likewise.
(vsub_u32): Likewise.
(vsub_s64): Likewise.
(vsub_u64): Likewise.
(vsubq_s8): Likewise.
(vsubq_s16): Likewise.
(vsubq_s32): Likewise.
(vsubq_s64): Likewise.
(vsubq_f32): Likewise.
(vsubq_u8): Likewise.
(vsubq_u16): Likewise.
(vsubq_u32): Likewise.
(vsubq_u64): Likewise.
(vand_s8): Likewise.
(vand_s16): Likewise.
(vand_s32): Likewise.
(vand_u8): Likewise.
(vand_u16): Likewise.
(vand_u32): Likewise.
(vand_s64): Likewise.
(vand_u64): Likewise.
(vandq_s8): Likewise.
(vandq_s16): Likewise.
(vandq_s32): Likewise.
(vandq_s64): Likewise.
(vandq_u8): Likewise.
(vandq_u16): Likewise.
(vandq_u32): Likewise.
(vandq_u64): Likewise.
(vorr_s8): Likewise.
(vorr_s16): Likewise.
(vorr_s32): Likewise.
(vorr_u8): Likewise.
(vorr_u16): Likewise.
(vorr_u32): Likewise.
(vorr_s64): Likewise.
(vorr_u64): Likewise.
(vorrq_s8): Likewise.
(vorrq_s16): Likewise.
(vorrq_s32): Likewise.
(vorrq_s64): Likewise.
(vorrq_u8): Likewise.
(vorrq_u16): Likewise.
(vorrq_u32): Likewise.
(vorrq_u64): Likewise.
(veor_s8): Likewise.
(veor_s16): Likewise.
(veor_s32): Likewise.
(veor_u8): Likewise.
(veor_u16): Likewise.
(veor_u32): Likewise.
(veor_s64): Likewise.
(veor_u64): Likewise.
(veorq_s8): Likewise.
(veorq_s16): Likewise.
(veorq_s32): Likewise.
(veorq_s64): Likewise.
(veorq_u8): Likewise.
(veorq_u16): Likewise.
(veorq_u32): Likewise.
(veorq_u64): Likewise.
(vbic_s8): Likewise.
(vbic_s16): Likewise.
(vbic_s32): Likewise.
(vbic_u8): Likewise.
(vbic_u16): Likewise.
(vbic_u32): Likewise.
(vbic_s64): Likewise.
(vbic_u64): Likewise.
(vbicq_s8): Likewise.
(vbicq_s16): Likewise.
(vbicq_s32): Likewise.
(vbicq_s64): Likewise.
(vbicq_u8): Likewise.
(vbicq_u16): Likewise.
(vbicq_u32): Likewise.
(vbicq_u64): Likewise.
(vorn_s8): Likewise.
(vorn_s16): Likewise.
(vorn_s32): Likewise.
(vorn_u8): Likewise.
(vorn_u16): Likewise.
(vorn_u32): Likewise.
(vorn_s64): Likewise.
(vorn_u64): Likewise.
(vornq_s8): Likewise.
(vornq_s16): Likewise.
(vornq_s32): Likewise.
(vornq_s64): Likewise.
(vornq_u8): Likewise.
(vornq_u16): Likewise.
(vornq_u32): Likewise.
(vornq_u64): Likewise.

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

10 years agoDefine UDWtype for longlong.h inclusion in wide-int.cc
ramana [Thu, 8 May 2014 14:23:11 +0000 (14:23 +0000)]
Define UDWtype for longlong.h inclusion in wide-int.cc

2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

* wide-int.cc (UTItype): Define.
  (UDWtype): Define for appropriate W_TYPE_SIZE.

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

10 years ago2014-05-08 Marc Glisse <marc.glisse@inria.fr>
glisse [Thu, 8 May 2014 13:17:01 +0000 (13:17 +0000)]
2014-05-08  Marc Glisse  <marc.glisse@inria.fr>

PR tree-optimization/59100
gcc/
* tree-ssa-phiopt.c: Include tree-inline.h.
(neutral_element_p, absorbing_element_p): New functions.
(value_replacement): Handle conditional binary operations with a
neutral or absorbing element.
gcc/testsuite/
* gcc.dg/tree-ssa/phi-opt-12.c: New file.
* gcc.dg/tree-ssa/phi-opt-13.c: Likewise.

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

10 years ago2014-05-08 Richard Biener <rguenther@suse.de>
rguenth [Thu, 8 May 2014 12:39:07 +0000 (12:39 +0000)]
2014-05-08  Richard Biener  <rguenther@suse.de>

* tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
folding the expression.
(valueize_expr): Remove.
(visit_reference_op_load): Do not valueize the result of
vn_get_expr_for.
(simplify_binary_expression): Likewise.
(simplify_unary_expression): Likewise.

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

10 years agoDon't build libgcc-unwind.map with --disable-shared (PR libgcc/61097)
ro [Thu, 8 May 2014 12:11:14 +0000 (12:11 +0000)]
Don't build libgcc-unwind.map with --disable-shared (PR libgcc/61097)

PR libgcc/61097
* config/t-slibgcc-sld: Only build and install libgcc-unwind.map
if --enable-shared.

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

10 years ago2014-05-08 Richard Biener <rguenther@suse.de>
rguenth [Thu, 8 May 2014 10:57:53 +0000 (10:57 +0000)]
2014-05-08  Richard Biener  <rguenther@suse.de>

* gimplify.c (gimplify_call_expr): Use saved fnptrtype for
looking at TYPE_ARG_TYPES.

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

10 years ago2014-05-08 Richard Biener <rguenther@suse.de>
rguenth [Thu, 8 May 2014 10:19:17 +0000 (10:19 +0000)]
2014-05-08  Richard Biener  <rguenther@suse.de>

* gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
pointer propagation special-case.

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