platform/upstream/linaro-gcc.git
10 years agoMerge in wide-int.
mrs [Tue, 6 May 2014 16:25:05 +0000 (16:25 +0000)]
Merge in wide-int.

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

10 years agoMerge in trunk.
mrs [Tue, 6 May 2014 14:30:33 +0000 (14:30 +0000)]
Merge in trunk.

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

10 years agocompiler: Store flags for division checks in Gogo object instead of using global...
ian [Tue, 6 May 2014 13:50:01 +0000 (13:50 +0000)]
compiler: Store flags for division checks in Gogo object instead of using global variables.

* go-c.h (go_create_gogo): Update declaration to add
check_divide_zero and check_divide_overflow parameters.
* go-lang.c (go_langhook_init): Pass new arguments to
go_create_gogo.

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

10 years ago2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
jbglaw [Tue, 6 May 2014 13:48:29 +0000 (13:48 +0000)]
2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

* config/avr/avr.c (avr_can_eliminate): Mark unused argument.

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

10 years ago2014-05-06 Richard Biener <rguenther@suse.de>
rguenth [Tue, 6 May 2014 13:35:40 +0000 (13:35 +0000)]
2014-05-06  Richard Biener  <rguenther@suse.de>

* tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
(TODO_verify_all): Adjust.
* asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
TODO_verify_stmts and TODO_verify_rtl_sharing.
* bb-reorder.c: Likewise.
* cfgexpand.c: Likewise.
* cprop.c: Likewise.
* cse.c: Likewise.
* function.c: Likewise.
* fwprop.c: Likewise.
* gcse.c: Likewise.
* gimple-ssa-isolate-paths.c: Likewise.
* gimple-ssa-strength-reduction.c: Likewise.
* ipa-split.c: Likewise.
* loop-init.c: Likewise.
* loop-unroll.c: Likewise.
* lower-subreg.c: Likewise.
* modulo-sched.c: Likewise.
* postreload-gcse.c: Likewise.
* predict.c: Likewise.
* recog.c: Likewise.
* sched-rgn.c: Likewise.
* store-motion.c: Likewise.
* tracer.c: Likewise.
* trans-mem.c: Likewise.
* tree-call-cdce.c: Likewise.
* tree-cfg.c: Likewise.
* tree-cfgcleanup.c: Likewise.
* tree-complex.c: Likewise.
* tree-eh.c: Likewise.
* tree-emutls.c: Likewise.
* tree-if-conv.c: Likewise.
* tree-into-ssa.c: Likewise.
* tree-loop-distribution.c: Likewise.
* tree-object-size.c: Likewise.
* tree-parloops.c: Likewise.
* tree-pass.h: Likewise.
* tree-sra.c: Likewise.
* tree-ssa-ccp.c: Likewise.
* tree-ssa-copy.c: Likewise.
* tree-ssa-copyrename.c: Likewise.
* tree-ssa-dce.c: Likewise.
* tree-ssa-dom.c: Likewise.
* tree-ssa-dse.c: Likewise.
* tree-ssa-forwprop.c: Likewise.
* tree-ssa-ifcombine.c: Likewise.
* tree-ssa-loop-ch.c: Likewise.
* tree-ssa-loop-ivcanon.c: Likewise.
* tree-ssa-loop.c: Likewise.
* tree-ssa-math-opts.c: Likewise.
* tree-ssa-phiopt.c: Likewise.
* tree-ssa-phiprop.c: Likewise.
* tree-ssa-pre.c: Likewise.
* tree-ssa-reassoc.c: Likewise.
* tree-ssa-sink.c: Likewise.
* tree-ssa-strlen.c: Likewise.
* tree-ssa-tail-merge.c: Likewise.
* tree-ssa-uncprop.c: Likewise.
* tree-switch-conversion.c: Likewise.
* tree-tailcall.c: Likewise.
* tree-vect-generic.c: Likewise.
* tree-vectorizer.c: Likewise.
* tree-vrp.c: Likewise.
* tsan.c: Likewise.
* var-tracking.c: Likewise.
* bt-load.c: Likewise.
* cfgcleanup.c: Likewise.
* combine-stack-adj.c: Likewise.
* combine.c: Likewise.
* compare-elim.c: Likewise.
* config/epiphany/resolve-sw-modes.c: Likewise.
* config/i386/i386.c: Likewise.
* config/mips/mips.c: Likewise.
* config/s390/s390.c: Likewise.
* config/sh/sh_treg_combine.cc: Likewise.
* config/sparc/sparc.c: Likewise.
* dce.c: Likewise.
* dse.c: Likewise.
* final.c: Likewise.
* ifcvt.c: Likewise.
* mode-switching.c: Likewise.
* passes.c: Likewise.
* postreload.c: Likewise.
* ree.c: Likewise.
* reg-stack.c: Likewise.
* regcprop.c: Likewise.
* regrename.c: Likewise.
* web.c: Likewise.

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

10 years ago2014-05-06 Richard Biener <rguenther@suse.de>
rguenth [Tue, 6 May 2014 10:46:18 +0000 (10:46 +0000)]
2014-05-06  Richard Biener  <rguenther@suse.de>

c-family/
* c-opts.c (c_common_post_options): For -freestanding,
-fno-hosted and -fno-builtin disable pattern recognition
if not enabled explicitely.

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

10 years ago2014-05-06 Richard Biener <rguenther@suse.de>
rguenth [Tue, 6 May 2014 08:30:57 +0000 (08:30 +0000)]
2014-05-06  Richard Biener  <rguenther@suse.de>

PR middle-end/61070
* bitmap.c (debug_bitmap): Dump to stderr, not stdout.
* tree-ssa-structalias.c (dump_solution_for_var): Likewise.

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

10 years agocompiler: Fix bug in embedded method handling.
ian [Tue, 6 May 2014 05:33:31 +0000 (05:33 +0000)]
compiler: Fix bug in embedded method handling.

If the same type was embedded in a struct at different levels,
only the first embedded instance was considered when building
the set of all methods.  A second instance was ignored, even
if it was at a higher level and should therefore override the
first instance.

Test case is bug485.go in master repository.

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

10 years agocompiler: Use backend interface for array length.
ian [Tue, 6 May 2014 01:14:34 +0000 (01:14 +0000)]
compiler: Use backend interface for array length.

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

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

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

10 years agocompiler: Use backend interface for slice construction.
ian [Tue, 6 May 2014 00:11:29 +0000 (00:11 +0000)]
compiler: Use backend interface for slice construction.

* go-gcc.cc (Gcc_backend::implicit_variable): Rename from
gc_root_variable.  Add name and is_constant parameters.

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

10 years agocompiler: Handle recursive pointer types for unary indirection.
ian [Mon, 5 May 2014 23:54:16 +0000 (23:54 +0000)]
compiler: Handle recursive pointer types for unary indirection.

* go-gcc.cc (Gcc_backend::indirect_expression): Add btype
parameter.
(Gcc_backend::temporary_variable): Check for erroneous function.

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

10 years ago PR ipa/60965
hubicka [Mon, 5 May 2014 23:27:40 +0000 (23:27 +0000)]
PR ipa/60965
* ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
* g++.dg/ipa/devirt-32.C: New testcase.

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

10 years agoAdd call_fusage_contains_non_callee_clobbers hook
vries [Mon, 5 May 2014 22:51:36 +0000 (22:51 +0000)]
Add call_fusage_contains_non_callee_clobbers hook

2014-05-05  Radovan Obradovic  <robradovic@mips.com>
            Tom de Vries  <tom@codesourcery.com>

* target.def (call_fusage_contains_non_callee_clobbers): New DEFHOOKPOD.
* doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
Hooks to @menu.
(@node Miscellaneous Register Hooks): New node.
(@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
* doc/tm.texi: Regenerate.

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

10 years agocompiler: Use backend interface for type info expressions.
ian [Mon, 5 May 2014 21:48:52 +0000 (21:48 +0000)]
compiler: Use backend interface for type info expressions.

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

10 years agoMerge in trunk.
mrs [Mon, 5 May 2014 21:08:19 +0000 (21:08 +0000)]
Merge in trunk.

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

10 years agoMerge in trunk.
mrs [Mon, 5 May 2014 21:02:34 +0000 (21:02 +0000)]
Merge in trunk.

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

10 years ago PR driver/61065
mpolacek [Mon, 5 May 2014 20:37:47 +0000 (20:37 +0000)]
PR driver/61065
* opts.c (common_handle_option): Call error_at instead of warning_at.

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

10 years agocompiler: Use backend interface for sink expressions.
ian [Mon, 5 May 2014 19:05:59 +0000 (19:05 +0000)]
compiler: Use backend interface for sink expressions.

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

10 years agocompiler: Use backend interface for set and use temporaries.
ian [Mon, 5 May 2014 18:49:39 +0000 (18:49 +0000)]
compiler: Use backend interface for set and use temporaries.

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

10 years agoMerge in trunk.
mrs [Mon, 5 May 2014 18:05:00 +0000 (18:05 +0000)]
Merge in trunk.

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

10 years agocompiler: Use backend interface for struct field offsets.
ian [Mon, 5 May 2014 17:55:03 +0000 (17:55 +0000)]
compiler: Use backend interface for struct field offsets.

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

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

* passes.c (execute_function_todo): Don't reset TODO_verify_ssa
from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
under the TODO_verify_il umbrella.

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

10 years agocompiler: Use backend interface for bound method expressions.
ian [Mon, 5 May 2014 17:22:40 +0000 (17:22 +0000)]
compiler: Use backend interface for bound method expressions.

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

10 years ago2014-05-05 Richard Biener <rguenther@suse.de>
rguenth [Mon, 5 May 2014 09:28:39 +0000 (09:28 +0000)]
2014-05-05  Richard Biener  <rguenther@suse.de>

* passes.c (execute_function_todo): Move TODO_verify_flow under
the TODO_verify_ul umbrella.

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

10 years ago2014-05-05 Richard Biener <rguenther@suse.de>
rguenth [Mon, 5 May 2014 09:23:31 +0000 (09:23 +0000)]
2014-05-05  Richard Biener  <rguenther@suse.de>

PR middle-end/61010
* fold-const.c (fold_binary_loc): Consistently avoid
canonicalizing X & CST away from a CST that is the mask
of a mode.

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

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

10 years ago2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
jbglaw [Mon, 5 May 2014 08:28:45 +0000 (08:28 +0000)]
2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

* config/picochip/picochip-protos.h (picochip_regno_nregs): Change
int argument to enum machine_mode.
(picochip_class_max_nregs): Ditto.
* config/picochip/picochip.c (picochip_regno_nregs): Ditto.
(picochip_class_max_nregs): Ditto.

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

10 years agoUpdate libstdc++ baseline symbols for ia64
schwab [Mon, 5 May 2014 08:10:37 +0000 (08:10 +0000)]
Update libstdc++ baseline symbols for ia64

* config/abi/post/ia64-linux-gnu/baseline_symbols.txt
(CXXABI_1.3.9): Remove __float128 symbols.

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

10 years ago2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Mon, 5 May 2014 07:55:26 +0000 (07:55 +0000)]
2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* target.def: Add new target hook.
* doc/tm.texi: Regenerate.
* targhooks.h (default_keep_leaf_when_profiled): Add prototype.
* targhooks.c (default_keep_leaf_when_profiled): New function.

* config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
(TARGET_KEEP_LEAF_WHEN_PROFILED): Define.

2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gcc.target/s390/leaf-profile.c: New testcase.

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

10 years ago2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Mon, 5 May 2014 07:53:35 +0000 (07:53 +0000)]
2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gcc.dg/hoist-register-pressure-1.c: Replace int with long.
Disable asm scan for s390.
* gcc.dg/hoist-register-pressure-2.c: Likewise.
* gcc.dg/hoist-register-pressure-3.c: Likewise.

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

10 years ago PR tree-optimization/60363
amker [Mon, 5 May 2014 07:36:30 +0000 (07:36 +0000)]
PR tree-optimization/60363
* gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
(copy_phi_args): New parameters.  Call get_value_locus_in_path.
(update_destination_phis): New parameter.
(create_edge_and_update_destination_phis): Ditto.
(ssa_fix_duplicate_block_edges): Pass new arguments.
(thread_single_edge): Ditto.

PR tree-optimization/60363
* gcc.dg/tree-ssa/ssa-dom-thread-4.c: Revert XFAIL test.

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

10 years agogcc/
bergner [Mon, 5 May 2014 01:52:30 +0000 (01:52 +0000)]
gcc/
* config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
(RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
(TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
* config/rs6000/rs6000-builtin.def (BU_MISC_1):
Use RS6000_BTM_HARD_FLOAT.
(BU_MISC_2): Likewise.
* config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
RS6000_BTM_HARD_FLOAT.
(rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
is explicitly used.
(rs6000_invalid_builtin): Add hard floating builtin support.
(rs6000_expand_builtin): Relax the gcc_assert to allow the new
hard float builtins.
(rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.

gcc/testsuite/
* gcc.target/powerpc/pack02.c (dg-options): Add -mhard-float.
(dg-require-effective-target): Change target to powerpc_fprs.
* gcc.target/powerpc/pack03.c (dg-options): Add -mhard-dfp.
(dg-require-effective-target): Change target to dfprt.

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

10 years agoDaily bump.
gccadmin [Mon, 5 May 2014 00:16:25 +0000 (00:16 +0000)]
Daily bump.

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

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

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

10 years ago/cp
paolo [Sat, 3 May 2014 22:44:22 +0000 (22:44 +0000)]
/cp
2014-05-03  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/58582
* decl.c (grokfndecl): Check duplicate_decls return value for
error_mark_node.
* pt.c (instantiate_decl): A deleted function is defined.

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

PR c++/58582
* g++.dg/cpp0x/deleted4.C: New.
* g++.dg/cpp0x/deleted5.C: Likewise.
* g++.dg/cpp0x/deleted6.C: Likewise.

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

10 years ago * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
olegendo [Sat, 3 May 2014 20:22:09 +0000 (20:22 +0000)]
* config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
Add missing function* argument.

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

10 years agogcc/
rsandifo [Sat, 3 May 2014 19:19:56 +0000 (19:19 +0000)]
gcc/
* lra-constraints.c (valid_address_p): Move earlier in file.
Add a constraint argument to the address_info version.
(satisfies_memory_constraint_p): New function.
(satisfies_address_constraint_p): Likewise.
(process_alt_operands, curr_insn_transform): Use them.
(process_address): Pass the constraint to valid_address_p when
checking address operands.

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

10 years agogcc/
rsandifo [Sat, 3 May 2014 19:18:40 +0000 (19:18 +0000)]
gcc/
* config/mips/mips.c (mips_isa_rev): New variable.
(mips_set_architecture): Set it.
* config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
from mips_isa_rev.
(ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
(ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
(ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
(ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
(ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
conditions in terms of mips_isa_rev.
(mips_isa_rev): Declare.

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

10 years ago * config/sh/sh-mem.cc: Use tabs instead of spaces.
olegendo [Sat, 3 May 2014 17:47:27 +0000 (17:47 +0000)]
* config/sh/sh-mem.cc: Use tabs instead of spaces.
(prob_unlikely, prob_likely): Make variables const.

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

10 years ago * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
denisc [Sat, 3 May 2014 14:23:24 +0000 (14:23 +0000)]
* config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.

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

10 years ago2014-05-03 Dominique d'Humieres <dominiq@lps.ens.fr>
dominiq [Sat, 3 May 2014 12:16:53 +0000 (12:16 +0000)]
2014-05-03  Dominique d'Humieres <dominiq@lps.ens.fr>

        Fix typos in log entries.

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

10 years ago * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
olegendo [Sat, 3 May 2014 11:50:38 +0000 (11:50 +0000)]
* config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.

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

10 years ago * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
olegendo [Sat, 3 May 2014 09:42:52 +0000 (09:42 +0000)]
* config/sh/sh.h (ROUND_ADVANCE): Delete macro.
(ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
* config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
functions.
(sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
sh_pass_in_reg_p.
Replace usage of ROUND_REG with sh_round_reg.
Use CEIL instead of ROUND_ADVANCE.

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

10 years ago2014-05-03 Dominique d'Humieres <dominiq@lps.ens.fr>
dominiq [Sat, 3 May 2014 09:08:15 +0000 (09:08 +0000)]
2014-05-03  Dominique d'Humieres <dominiq@lps.ens.fr>

PR fortran/61025
* gfortran.dg/coarray_lib_this_image_1.f90: Adjust the dg-final
regexps for -m32.
* gfortran.dg/coarray_lib_this_image_2.f90: Likewise.
* gfortran.dg/coarray_poly_7.f90: Likewise.
* gfortran.dg/coarray_poly_8.f90: Likewise.
* gfortran.dg/coarray_poly_9.f90: Likewise.

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

10 years ago PR target/61026
olegendo [Sat, 3 May 2014 07:51:02 +0000 (07:51 +0000)]
PR target/61026
* config/sh/sh.c: Include stdlib headers before everything else.

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

10 years agoFix some divmod_internal problems.
rsandifo [Sat, 3 May 2014 07:01:21 +0000 (07:01 +0000)]
Fix some divmod_internal problems.

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

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

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

10 years ago * decl2.c (vague_linkage_p): Local statics have vague linkage.
jason [Fri, 2 May 2014 20:56:41 +0000 (20:56 +0000)]
* decl2.c (vague_linkage_p): Local statics have vague linkage.

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

10 years ago PR c++/60992
jason [Fri, 2 May 2014 19:47:40 +0000 (19:47 +0000)]
PR c++/60992
* lambda.c (lambda_capture_field_type): Wrap anything dependent
other than 'this'.
(add_capture): Check for VLA before calling it.
* semantics.c (is_this_parameter): Accept any 'this' parameter, not
just the current one.  Make non-static.
* cp-tree.h: Declare it.
* pt.c (tsubst_copy) [VAR_DECL]: Also build a new VAR_DECL if
the operand was static or constant.

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

10 years agoRevert udiv_ceil patch.
rsandifo [Fri, 2 May 2014 19:25:41 +0000 (19:25 +0000)]
Revert udiv_ceil patch.

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

10 years ago PR libstdc++/61036
redi [Fri, 2 May 2014 18:29:48 +0000 (18:29 +0000)]
PR libstdc++/61036
* include/bits/shared_ptr_base.h (__shared_ptr::__shared_ptr(_Tp1*)):
Check the correct type in the static assertion.
* testsuite/20_util/shared_ptr/cons/61036.cc: New.

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

10 years ago PR c/25801
mpolacek [Fri, 2 May 2014 18:13:43 +0000 (18:13 +0000)]
PR c/25801
* c-typeck.c (c_size_in_bytes): Update comment.  Don't call error.
Return size_one_node when the type is not complete.
(pointer_diff): Remove comment.
(build_unary_op): Improve error messages.

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

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

10 years agoc/
mpolacek [Fri, 2 May 2014 18:09:42 +0000 (18:09 +0000)]
c/
* c-typeck.c (c_finish_return): Separate warning_at calls.
cp/
* typeck.c (maybe_warn_about_returning_address_of_local): Separate
warning_at calls.

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

10 years ago * c.opt (Wsizeof-pointer-memaccess): Describe option.
mpolacek [Fri, 2 May 2014 18:07:40 +0000 (18:07 +0000)]
* c.opt (Wsizeof-pointer-memaccess): Describe option.

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

10 years ago * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
jakub [Fri, 2 May 2014 17:43:40 +0000 (17:43 +0000)]
* gimplify.c (gimplify_adjust_omp_clauses_1): Handle
GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
(gimplify_adjust_omp_clauses): Simd region is never
directly nested in combined parallel.  Instead, for linear
with copyin/copyout, if in combined for simd loop, make decl
firstprivate/lastprivate on OMP_FOR.
* omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
expand_omp_for_static_chunk): When setting endvar, also set
fd->loop.v to the same value.
libgomp/
* testsuite/libgomp.c/simd-10.c: New test.
* testsuite/libgomp.c/simd-11.c: New test.
* testsuite/libgomp.c/simd-12.c: New test.
* testsuite/libgomp.c/simd-13.c: New test.

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

10 years ago PR libstdc++/59476
redi [Fri, 2 May 2014 16:01:30 +0000 (16:01 +0000)]
PR libstdc++/59476
* python/libstdcxx/v6/printers.py (get_value_from_Rb_tree_node): New
function to handle both C++03 and C++11 _Rb_tree_node implementations.
(StdRbtreeIteratorPrinter, StdMapPrinter, StdSetPrinter): Use it.
* testsuite/libstdc++-prettyprinters/simple.cc: Update comment to
refer to...
* testsuite/libstdc++-prettyprinters/simple11.cc: New.

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

10 years agogcc/
rsandifo [Fri, 2 May 2014 15:35:33 +0000 (15:35 +0000)]
gcc/
* hwint.h (zext_hwi): Fix signed overflow for prec == 63.

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

10 years agoOne-line tidy of bit-twiddle expression in aarch64.c
alalaw01 [Fri, 2 May 2014 15:11:04 +0000 (15:11 +0000)]
One-line tidy of bit-twiddle expression in aarch64.c

* config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
expression.

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

10 years ago * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
mpolacek [Fri, 2 May 2014 08:24:49 +0000 (08:24 +0000)]
* doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.

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

10 years ago * c-tree.h (error_init): Remove declaration.
mpolacek [Fri, 2 May 2014 07:57:59 +0000 (07:57 +0000)]
* c-tree.h (error_init): Remove declaration.
(pedwarn_init): Likewise.
* c-typeck.c (error_init): Make static and move above.
(pedwarn_init): Likewise.
(warning_init): Move above.
(maybe_warn_string_init): Likewise.

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

10 years ago2014-02-26 Kito Cheng <kito@0xlab.org>
law [Fri, 2 May 2014 06:03:22 +0000 (06:03 +0000)]
2014-02-26  Kito Cheng  <kito@0xlab.org>

* defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
to a C expression marco.
* ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
* config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
* config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
* doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
HONOR_REG_ALLOC_ORDER.
* doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.

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

10 years ago2014-05-01 Jeff Law <law@redhat.com>
law [Fri, 2 May 2014 05:46:38 +0000 (05:46 +0000)]
2014-05-01  Jeff Law  <law@redhat.com>

Revert:

2014-04-24  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
* c-parser.c (c_parser_sizeof_expression): Reorganize slightly to
avoid goto.

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

10 years ago PR c/60784
mpolacek [Fri, 2 May 2014 05:40:38 +0000 (05:40 +0000)]
PR c/60784
* c-typeck.c (push_init_level): Set constructor_designated to
p->designated for structures.

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

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

10 years ago2014-05-01 Jeff Law <law@redhat.com>
law [Fri, 2 May 2014 03:54:33 +0000 (03:54 +0000)]
2014-05-01  Jeff Law  <law@redhat.com>

* Revert:
2014-04-24  Jincheng Miao  <jincheng.miao@gmail.com>

* zh_CN.po: Fix typo for -mfentry.

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

10 years agoDaily bump.
gccadmin [Fri, 2 May 2014 00:17:21 +0000 (00:17 +0000)]
Daily bump.

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

10 years ago * sv.po: Update.
jsm28 [Thu, 1 May 2014 21:33:52 +0000 (21:33 +0000)]
* sv.po: Update.

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

10 years ago * config.sub, config.guess: Import from upstream.
rsandifo [Thu, 1 May 2014 20:51:11 +0000 (20:51 +0000)]
* config.sub, config.guess: Import from upstream.

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

10 years agocompiler: Use backend interface for heap expressions.
ian [Thu, 1 May 2014 19:18:56 +0000 (19:18 +0000)]
compiler: Use backend interface for heap expressions.

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

10 years ago2014-05-01 Steve Ellcey <sellcey@mips.com>
sje [Thu, 1 May 2014 15:07:00 +0000 (15:07 +0000)]
2014-05-01  Steve Ellcey  <sellcey@mips.com>

* include/longlong.h: Use 'defined()' to check __mips16.

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

10 years ago2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
jbglaw [Thu, 1 May 2014 13:00:10 +0000 (13:00 +0000)]
2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

* config/arc/arc.c (TARGET_LRA_P): Undef before redefine.

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

10 years ago2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
jbglaw [Thu, 1 May 2014 12:16:42 +0000 (12:16 +0000)]
2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

* config/arc/arc.c (arc_select_cc_mode): Fix typo.

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

10 years ago...and remove accidentally committed changes in r209976
rsandifo [Thu, 1 May 2014 10:49:14 +0000 (10:49 +0000)]
...and remove accidentally committed changes in r209976

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

10 years agoPost-merge build fix.
rsandifo [Thu, 1 May 2014 10:47:19 +0000 (10:47 +0000)]
Post-merge build fix.

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

10 years ago PR c/60915
mpolacek [Thu, 1 May 2014 07:40:26 +0000 (07:40 +0000)]
PR c/60915
* c-parser.c (c_parser_declaration_or_fndef): Give better error if
function-definition has an attribute after the declarator.

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

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

10 years ago PR c/60257
mpolacek [Thu, 1 May 2014 07:35:05 +0000 (07:35 +0000)]
PR c/60257
* c-typeck.c (warning_init): Add location_t parameter.  Call
warning_at instead of warning.
(push_init_level): Pass input_location to warning_init.
(add_pending_init): Add location_t parameter.  Pass loc to
warning_init.
(set_nonincremental_init): Pass input_location to add_pending_init.
(set_nonincremental_init_from_string): Likewise.
(output_init_element): Pass loc to warning_init and to
add_pending_init.

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

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

10 years ago PR c/43395
mpolacek [Thu, 1 May 2014 07:29:38 +0000 (07:29 +0000)]
PR c/43395
c/
* c-typeck.c (c_finish_return): Distinguish between label and variable
when warning about returning local address.
cp/
* typeck.c (maybe_warn_about_returning_address_of_local): Distinguish
between label and variable when warning about returning local address.
testsuite/
* c-c++-common/pr43395.c: New test.

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

10 years agogcc/
kyukhin [Thu, 1 May 2014 07:23:06 +0000 (07:23 +0000)]
gcc/
* tree-if-conv.c (is_cond_scalar_reduction): New function.
(convert_scalar_cond_reduction): Likewise.
(predicate_scalar_phi): Add recognition and transformation
of simple conditioanl reduction to be vectorizable.

gcc/testsuite/
* gcc.dg/cond-reduc-1.c: New test.
* gcc.dg/cond-reduc-2.c: Likewise.

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

10 years ago PR c/29467
mpolacek [Thu, 1 May 2014 07:21:07 +0000 (07:21 +0000)]
PR c/29467
* c-decl.c (declspecs_add_type): Pedwarn if boolean types are used
in C89 mode.

* gcc.dg/pr29467.c: New test.
* gcc.dg/declspec-13.c: Renumber some dg-warnings.  Add dg-warnings
about boolean types.
* gfortran.dg/bind_c_usage_24_c.c: Include <stdbool.h>.  Change _Bool
to bool.
* gfortran.dg/c_f_pointer_logical_driver.c: Change _Bool to bool.

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

10 years ago PR c/43245
mpolacek [Thu, 1 May 2014 07:16:10 +0000 (07:16 +0000)]
PR c/43245
* doc/invoke.texi: Document -Wdiscarded-qualifiers.
c-family/
* c.opt (Wdiscarded-qualifiers): Add.
c/
* c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers
instead of 0 to WARN_FOR_QUALIFIERS.
testsuite/
* gcc.dg/pr43245.c: New test.

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

10 years ago PR c/56989
mpolacek [Thu, 1 May 2014 07:08:19 +0000 (07:08 +0000)]
PR c/56989
* c-typeck.c (default_conversion): Use better location for
error call.

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

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

10 years ago * go-backend.c: #include "diagnostics.h".
ian [Thu, 1 May 2014 01:20:07 +0000 (01:20 +0000)]
* go-backend.c: #include "diagnostics.h".
(saw_errors): New function.
* go-c.h (saw_errors): Declare.
* Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.

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

10 years agoruntime: ask $GOC rather than $CC for the version and multi-os-directory
ian [Thu, 1 May 2014 00:35:58 +0000 (00:35 +0000)]
runtime: ask $GOC rather than $CC for the version and multi-os-directory

The Go compiler may have different values for these than the C compiler.

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

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

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

10 years ago * go.test/go-test.exp (go-gc-tests): For rundir, pass extra files
ian [Wed, 30 Apr 2014 21:39:41 +0000 (21:39 +0000)]
* go.test/go-test.exp (go-gc-tests): For rundir, pass extra files
in go_compile_args rather than in argument to go-torture-execute.

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

10 years ago2014-04-30 Soundararajan Dhakshinamoorthy <sounderarajan.d@atmel.com>
law [Wed, 30 Apr 2014 21:09:21 +0000 (21:09 +0000)]
2014-04-30  Soundararajan Dhakshinamoorthy  <sounderarajan.d@atmel.com>

* gcc.c-torture/execute/pr58419.c: Use dummy no-inline function
instead of getpid.

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

10 years ago2014-04-30 Tobias Burnus <burnus@net-b.de>
burnus [Wed, 30 Apr 2014 19:10:16 +0000 (19:10 +0000)]
2014-04-30  Tobias Burnus  <burnus@net-b.de>

        * trans-decl.c (create_function_arglist): Add hidden coarray
        * arguments
        also for polymorphic coarrays.
        * trans-expr.c (gfc_conv_procedure_call): Pass hidden coarray
        arguments also for polymorphic coarrays.

2014-04-30  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/coarray_poly_7.f90
        * gfortran.dg/coarray_poly_8.f90
        * gfortran.dg/coarray_poly_9.f90

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

10 years ago2014-04-30 Tobias Burnus <burnus@net-b.de>
burnus [Wed, 30 Apr 2014 19:08:19 +0000 (19:08 +0000)]
2014-04-30  Tobias Burnus  <burnus@net-b.de>

        * resolve.c (resolve_function): Don't do
        assumed-size check for lcobound/ucobound.
        * trans-types.c (gfc_build_array_type): Only build an array
        descriptor with codimensions for allocatable coarrays.

2014-04-30  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/coarray_lib_this_image_2.f90: Update dump.
        * gfortran.dg/coarray_lib_token_4.f90: Ditto.
        * gfortran.dg/coarray/codimension.f90: New.

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

10 years ago2014-04-30 Tobias Burnus <burnus@net-b.de>
burnus [Wed, 30 Apr 2014 19:02:23 +0000 (19:02 +0000)]
2014-04-30  Tobias Burnus  <burnus@net-b.de>

        * gfortran.h (gfc_init_coarray_decl): Remove.
        * parse.c (translate_all_program_units): Remove call to it.
        (gfc_parse_file): Update call.
        * trans.h (gfor_fndecl_caf_this_image,
        gfor_fndecl_caf_num_images): Add.
        (gfort_gvar_caf_num_images,
        gfort_gvar_caf_this_image): Remove.
        * trans-decl.c (gfor_fndecl_caf_this_image,
        gfor_fndecl_caf_num_images): Add.
        (gfort_gvar_caf_num_images,
        gfort_gvar_caf_this_image): Remove.
        (gfc_build_builtin_function_decls): Init new decl.
        (gfc_init_coarray_dec): Remove.
        (create_main_function): Change calls.
        * trans-intrinsic.c (trans_this_image, trans_image_index,
        conv_intrinsic_cobound): Generate call to new library function
        instead of to a static variable.
        * trans-stmt.c (gfc_trans_sync): Ditto.

2014-04-30  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/coarray_lib_this_image_1.f90: New.
        * gfortran.dg/coarray_lib_this_image_2.f90: New.

2014-04-30  Tobias Burnus  <burnus@net-b.de>

        * caf/libcaf.h (_gfortran_caf_this_image,
        * _gfortran_caf_num_images):
        New prototypes.
        (_gfortran_caf_init): Change prototype.
        (mpi_token_t): New typedef.
        (TOKEN): New define.
        * caf/mpi.c (_gfortran_caf_this_image,
        * _gfortran_caf_num_images):
        New functions.
        (_gfortran_caf_init): Update.
        (_gfortran_caf_finalize, _gfortran_caf_register,
        _gfortran_caf_deregister): Use mpi_token_t.
        * caf/single.c (_gfortran_caf_this_image,
        * _gfortran_caf_num_images):
        New functions.
        (_gfortran_caf_init): Update.
        (_gfortran_caf_finalize, _gfortran_caf_register,
        _gfortran_caf_deregister): Use mpi_token_t, simplify.

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

10 years ago2014-04-30 Tobias Burnus <burnus@net-b.de>
burnus [Wed, 30 Apr 2014 18:39:15 +0000 (18:39 +0000)]
2014-04-30  Tobias Burnus  <burnus@net-b.de>

        * trans-expr.c (get_tree_for_caf_expr): Fix handling of
        * polymorphic
        and derived-type coarrays.

2014-04-30  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/coarray_poly_4.f90: New.
        * gfortran.dg/coarray_poly_5.f90: New.

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

10 years agoAdd execution tests of ARM UZP Intrinsics.
alalaw01 [Wed, 30 Apr 2014 18:10:56 +0000 (18:10 +0000)]
Add execution tests of ARM UZP Intrinsics.

* gcc.target/arm/simd/vuzpqf32_1.c: New file.
* gcc.target/arm/simd/vuzpqp16_1.c: New file.
* gcc.target/arm/simd/vuzpqp8_1.c: New file.
* gcc.target/arm/simd/vuzpqs16_1.c: New file.
* gcc.target/arm/simd/vuzpqs32_1.c: New file.
* gcc.target/arm/simd/vuzpqs8_1.c: New file.
* gcc.target/arm/simd/vuzpqu16_1.c: New file.
* gcc.target/arm/simd/vuzpqu32_1.c: New file.
* gcc.target/arm/simd/vuzpqu8_1.c: New file.
* gcc.target/arm/simd/vuzpf32_1.c: New file.
* gcc.target/arm/simd/vuzpp16_1.c: New file.
* gcc.target/arm/simd/vuzpp8_1.c: New file.
* gcc.target/arm/simd/vuzps16_1.c: New file.
* gcc.target/arm/simd/vuzps32_1.c: New file.
* gcc.target/arm/simd/vuzps8_1.c: New file.
* gcc.target/arm/simd/vuzpu16_1.c: New file.
* gcc.target/arm/simd/vuzpu32_1.c: New file.
* gcc.target/arm/simd/vuzpu8_1.c: New file.

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

10 years agocompiler: Remove GCC langhooks from frontend proper.
ian [Wed, 30 Apr 2014 17:55:59 +0000 (17:55 +0000)]
compiler: Remove GCC langhooks from frontend proper.

* go-lang.c (go_langhook_type_for_size): Do it here, rather than
calling into Go frontend.
(go_langhook_type_for_mode): Likewise.
* go-c.h (go_type_for_size, go_type_for_mode): Don't declare.

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

10 years agoMerge in trunk.
mrs [Wed, 30 Apr 2014 17:19:02 +0000 (17:19 +0000)]
Merge in trunk.

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

10 years agoRewrite AArch64 UZP Intrinsics using __builtin_shuffle.
alalaw01 [Wed, 30 Apr 2014 17:04:53 +0000 (17:04 +0000)]
Rewrite AArch64 UZP Intrinsics using __builtin_shuffle.

gcc/testsuite/ChangeLog:

* gcc.target/aarch64/vuzps32_1.c: Expect zip1/2 insn rather than uzp1/2.
* gcc.target/aarch64/vuzpu32_1.c: Likewise.
* gcc.target/aarch64/vuzpf32_1.c: Likewise.

gcc/ChangeLog:

* config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.

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

10 years ago2014-04-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
edlinger [Wed, 30 Apr 2014 16:53:51 +0000 (16:53 +0000)]
2014-04-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        Work around for current cygwin32 build problems.
        * config/i386/cygming-crtbegin.c (__register_frame_info,
        __deregister_frame_info, _Jv_RegisterClasses): Compile weak default
        functions only for 64-bit systems.

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

10 years ago * go-gcc.cc: #include "langhooks.h".
ian [Wed, 30 Apr 2014 16:47:02 +0000 (16:47 +0000)]
* go-gcc.cc: #include "langhooks.h".
(Gcc_backend::Gcc_backend): Add constructor.
(Gcc_backend::lookup_function): New function.
(Gcc_backend::define_builtin): New private function.
(Gcc_backend::gcc_backend): Remove.
(go_get_backend): Use new to create new Gcc_backend.

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

10 years agoAdd execution + assembler tests of AArch64 UZP Intrinsics.
alalaw01 [Wed, 30 Apr 2014 16:36:07 +0000 (16:36 +0000)]
Add execution + assembler tests of AArch64 UZP Intrinsics.

* gcc.target/aarch64/simd/vuzpf32_1.c: New file.
* gcc.target/aarch64/simd/vuzpf32.x: New file.
* gcc.target/aarch64/simd/vuzpp16_1.c: New file.
* gcc.target/aarch64/simd/vuzpp16.x: New file.
* gcc.target/aarch64/simd/vuzpp8_1.c: New file.
* gcc.target/aarch64/simd/vuzpp8.x: New file.
* gcc.target/aarch64/simd/vuzpqf32_1.c: New file.
* gcc.target/aarch64/simd/vuzpqf32.x: New file.
* gcc.target/aarch64/simd/vuzpqp16_1.c: New file.
* gcc.target/aarch64/simd/vuzpqp16.x: New file.
* gcc.target/aarch64/simd/vuzpqp8_1.c: New file.
* gcc.target/aarch64/simd/vuzpqp8.x: New file.
* gcc.target/aarch64/simd/vuzpqs16_1.c: New file.
* gcc.target/aarch64/simd/vuzpqs16.x: New file.
* gcc.target/aarch64/simd/vuzpqs32_1.c: New file.
* gcc.target/aarch64/simd/vuzpqs32.x: New file.
* gcc.target/aarch64/simd/vuzpqs8_1.c: New file.
* gcc.target/aarch64/simd/vuzpqs8.x: New file.
* gcc.target/aarch64/simd/vuzpqu16_1.c: New file.
* gcc.target/aarch64/simd/vuzpqu16.x: New file.
* gcc.target/aarch64/simd/vuzpqu32_1.c: New file.
* gcc.target/aarch64/simd/vuzpqu32.x: New file.
* gcc.target/aarch64/simd/vuzpqu8_1.c: New file.
* gcc.target/aarch64/simd/vuzpqu8.x: New file.
* gcc.target/aarch64/simd/vuzps16_1.c: New file.
* gcc.target/aarch64/simd/vuzps16.x: New file.
* gcc.target/aarch64/simd/vuzps32_1.c: New file.
* gcc.target/aarch64/simd/vuzps32.x: New file.
* gcc.target/aarch64/simd/vuzps8_1.c: New file.
* gcc.target/aarch64/simd/vuzps8.x: New file.
* gcc.target/aarch64/simd/vuzpu16_1.c: New file.
* gcc.target/aarch64/simd/vuzpu16.x: New file.
* gcc.target/aarch64/simd/vuzpu32_1.c: New file.
* gcc.target/aarch64/simd/vuzpu32.x: New file.
* gcc.target/aarch64/simd/vuzpu8_1.c: New file.
* gcc.target/aarch64/simd/vuzpu8.x: New file.

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

10 years ago * config/arc/arc.opt (mlra): Move comment above option name
amylaar [Wed, 30 Apr 2014 16:06:07 +0000 (16:06 +0000)]
    * config/arc/arc.opt (mlra): Move comment above option name
        to avoid mis-parsing as language options.

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

10 years ago80-cols fix.
rsandifo [Wed, 30 Apr 2014 15:44:41 +0000 (15:44 +0000)]
80-cols fix.

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

10 years agoFix real_to_integer handling for 32-bit longs. Avoid custom fixed_wide_int.
rsandifo [Wed, 30 Apr 2014 14:33:28 +0000 (14:33 +0000)]
Fix real_to_integer handling for 32-bit longs.  Avoid custom fixed_wide_int.

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

10 years ago PR c++/60980
jason [Wed, 30 Apr 2014 14:23:18 +0000 (14:23 +0000)]
PR c++/60980
* init.c (build_value_init): Don't try to call an array constructor.

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