]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC on builtin types.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
c59f7203
JH
12014-07-12 Jan Hubicka <hubicka@ucw.cz>
2
3 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
4 on builtin types.
5 * ipa-devirt.c: Include stor-layout.h and intl.h
6 (odr_subtypes_equivalent_p): New function.
7 (warn_odr): New function.
8 (warn_type_mismatch): New function.
9 (odr_types_equivalent_p): New function.
10 (add_type_duplicate): Use it.
11 * common.opt (Wodr): New flag.
12 * doc/invoke.texi (Wodr): Document new warning.
13
917dd9bf
JH
142014-07-12 Jan Hubicka <hubicka@ucw.cz>
15
16 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
17 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
18 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
19 (varpool_get_constructor): Push CTORS_IN timevar.
20 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT
21 timevar.
22
e0770e2a
UB
232014-07-12 Uros Bizjak <ubizjak@gmail.com>
24
25 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
26 Remove VOID_FTYPE_PUSHORT.
27 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
28 Change code to USHORT_FTYPE_VOID.
29 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
30 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
31 (ix86_atomic_assign_expand_fenv): Update for
32 __builtin_ia32_fnstsw changes.
33 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
34 (fnstsw): Change operand 0 to nonimmediate operand.
35
0b83e688
JH
362014-07-11 Jan Hubicka <hubicka@ucw.cz>
37
38 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
39 (varpool_get_constructor): New function.
40 (varpool_ctor_useable_for_folding_p): Break out from ...
41 (ctor_for_folding): ... here; use varpool_get_constructor.
42 (varpool_assemble_decl): Likewise.
43 * lto-streamer.h (struct output_block): Turn cgraph_node
44 to symbol filed.
45 (lto_input_variable_constructor): Declare.
46 * ipa-visibility.c (function_and_variable_visibility): Use
47 varpool_get_constructor.
48 * cgraph.h (varpool_get_constructor): Declare.
49 (varpool_ctor_useable_for_folding_p): New function.
50 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
51 parameter; return error_mark_node for non-trivial constructors.
e0770e2a 52 (lto_write_tree_1, DFS_write_tree): Update use of
0b83e688
JH
53 get_symbol_initial_value.
54 (output_function): Update initialization of symbol.
55 (output_constructor): New function.
56 (copy_function): Rename to ..
57 (copy_function_or_variable): ... this one; handle vars too.
58 (lto_output): Output variable sections.
59 * lto-streamer-in.c (input_constructor): New function.
60 (lto_read_body): Rename from ...
e0770e2a 61 (lto_read_body_or_constructor): ... this one; handle vars too.
0b83e688
JH
62 (lto_input_variable_constructor): New function.
63 * ipa-prop.c (ipa_prop_write_jump_functions,
64 ipa_prop_write_all_agg_replacement): Update.
65 * lto-cgraph.c (compute_ltrans_boundary): Use it.
66 (output_cgraph_opt_summary): Set symbol to NULL.
67
01a92e70
JH
682014-07-11 Jan Hubicka <hubicka@ucw.cz>
69
70 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
71 non-polymorphic types.
72 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
73 * ipa-devirt.c (types_same_for_odr): Do not explode when one
74 of types is not polymorphic.
75
12b308fa
VM
762014-07-11 Vladimir Makarov <vmakarov@redhat.com>
77
78 * lra-constraints.c (remove_inheritance_pseudos): Process
79 destination pseudo too.
80
68f68004
RX
812014-07-11 Rong Xu <xur@google.com>
82
83 * gcov-tool.c (gcov_output_files): Fix build error introduced in
84 commit r212448.
85
cba4ea9e
PS
862014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
87
88 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
89 * config/avr/avr-devices.c (AVR_MCU): Same.
90 (avr_mcu_types): add text start value to end of device list.
91 * config/avr/avr-mcus.def: Add text section start for all devices.
92 (ata5782): Add new avr5 device.
93 (ata5831): Same.
94 * config/avr/avr-tables.opt: Regenerate.
95 * config/avr/avr.h: Add declaration for text section start handler.
e0770e2a
UB
96 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
97 SPEC functions.
cba4ea9e
PS
98 (LINK_SPEC): Include text section start handler to linker spec.
99 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
e0770e2a
UB
100 pass -Ttext option to linker if the text section start for the device
101 is not zero.
cba4ea9e
PS
102 * config/avr/t-multilib: Regenerate.
103 * doc/avr-mmcu.texi: Regenerate.
104
8762d747
DE
1052014-07-11 David Edelsohn <dje.gcc@gmail.com>
106
107 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
108 * config/rs6000/aix52.h (LINK_SPEC): Same.
109 * config/rs6000/aix53.h (LINK_SPEC): Same.
110 * config/rs6000/aix61.h (LINK_SPEC): Same.
111 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
112
a78cfa7f
RG
1132014-07-11 Roman Gareev <gareevroman@gmail.com>
114
e0770e2a 115 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
a78cfa7f
RG
116 (graphite_verify): New function.
117 (ivs_params_clear): New function.
118 (gcc_expression_from_isl_ast_expr_id): New function.
119 (gcc_expression_from_isl_expr_int): New function.
120 (binary_op_to_tree): New function.
121 (ternary_op_to_tree): New function.
122 (unary_op_to_tree): New function.
123 (nary_op_to_tree): New function.
124 (gcc_expression_from_isl_expr_op): New function.
125 (gcc_expression_from_isl_expression): New function.
126 (graphite_create_new_loop): New function.
127 (translate_isl_ast_for_loop): New function.
128 (get_upper_bound): New function.
129 (graphite_create_new_loop_guard): New function.
130 (translate_isl_ast_node_for): New function.
131 (translate_isl_ast): New function.
132 (add_parameters_to_ivs_params): New function.
133 (scop_to_isl_ast): New parameter ip.
134 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
135
0218574f
JH
1362014-07-11 Jan Hubicka <hubicka@ucw.cz>
137
138 * config/xtensa/predicates.md (call expander): Update for
139 DECL_SECTION_NAME being string.
140
21e8fb22
RB
1412014-07-11 Richard Biener <rguenther@suse.de>
142
143 PR middle-end/61473
e0770e2a
UB
144 * builtins.c (fold_builtin_memory_op): Inline memory moves that
145 can be implemented with a single load followed by a single store.
21e8fb22
RB
146 (c_strlen): Only warn when only_value is not 2.
147
53f5803e
ES
1482014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
149
150 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
151
d1c1cbd5
MZ
1522014-07-11 Marat Zakirov <m.zakirov@samsung.com>
153
154 PR target/61561
155 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
156 (*movhi_bytes): Likewise.
e0770e2a 157 (*arm_movqi_insn): Likewise.
d1c1cbd5 158
4bdf6418
UB
1592014-07-11 Uros Bizjak <ubizjak@gmail.com>
160
161 PR target/56858
162 * config/alpha/alpha.c: Include tree-pass.h, context.h
163 and pass_manager.h.
164 (pass_data_handle_trap_shadows): New pass.
165 (pass_handle_trap_shadows::gate): New pass gate function.
166 (make_pass_handle_trap_shadows): New function.
167 (rest_of_handle_trap_shadows): Ditto.
168
169 (alpha_align_insns_1): Rename from alpha_align_insns.
170 (pass_data_align_insns): New pass.
171 (pass_align_insns::gate): New pass gate function.
172 (make_pass_aling_insns): New function.
173 (rest_of_align_insns): Ditto.
174 (alpha_align_insns): Ditto.
175
176 (alpha_option_override): Declare handle_trap_shadows info
177 and align_insns_info. Register handle_trap_shadows and align_insns
178 passes here.
179 (alpha_reorg): Do not call alpha_trap_shadows and
180 alpha_align_insn from here.
181
182 (alpha_pad_function_end): Do not skip BARRIERs.
183
c77556a5
RX
1842014-07-10 Rong Xu <xur@google.com>
185
4bdf6418 186 Add gcov-tool: an offline gcda profile processing tool support.
c77556a5
RX
187 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
188 (gcov_is_error): Ditto.
189 (gcov_read_string): Ditto.
190 (gcov_read_sync): Ditto.
191 * gcov-io.h: Move counter defines to gcov-counter.def.
192 * gcov-dump.c (tag_counters): Use gcov-counter.def.
193 * coverage.c: Ditto.
194 * gcov-tool.c: Offline gcda profile processing tool.
195 (unlink_gcda_file): Remove one gcda file.
196 (unlink_profile_dir): Remove gcda files from the profile path.
197 (gcov_output_files): Output gcda files to an output dir.
198 (profile_merge): Merge two profiles in directory.
199 (print_merge_usage_message): Print merge usage.
200 (merge_usage): Print merge usage and exit.
201 (do_merge): Driver for profile merge sub-command.
202 (profile_rewrite): Rewrite profile.
203 (print_rewrite_usage_message): Print rewrite usage.
204 (rewrite_usage): Print rewrite usage and exit.
205 (do_rewrite): Driver for profile rewrite sub-command.
206 (print_usage): Print gcov-info usage and exit.
207 (print_version): Print gcov-info version.
208 (process_args): Process arguments.
209 (main): Main routine for gcov-tool.
210 * Makefile.in: Build and install gcov-tool.
211 * gcov-counter.def: New file split from gcov-io.h.
212 * doc/gcc.texi: Include gcov-tool.texi.
213 * doc/gcov-tool.texi: Document for gcov-tool.
214
218e53ea
RB
2152014-07-10 Richard Biener <rguenther@suse.de>
216
217 PR tree-optimization/61757
218 * tree-ssa-dom.c (loop_depth_of_name): Restore.
219 (propagate_rhs_into_lhs): Revert part of last change.
220
f9abc06c
TS
2212014-07-10 Thomas Schwinge <thomas@codesourcery.com>
222
223 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
224 FUNCTION_DECLs.
225
d764963b
EB
2262014-07-10 Eric Botcazou <ebotcazou@adacore.com>
227
228 PR middle-end/53590
229 * function.c (allocate_struct_function): Revert r188667 change.
230
231 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
232
64d57736
TC
2332014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
234
235 * doc/install.texi: Remove links to defunct package providers for
236 Solaris.
237
e5718043
TV
2382014-07-09 Tom de Vries <tom@codesourcery.com>
239
4bdf6418
UB
240 * final.c (get_call_fndecl): Declare.
241 (self_recursive_call_p): New function.
242 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
e5718043 243
958c1d61
JH
2442014-07-08 Jan Hubicka <hubicka@ucw.cz>
245
246 * ipa-devirt.c (record_node): Walk through aliases.
247
da22f505
JH
2482014-07-08 Jan Hubicka <hubicka@ucw.cz>
249
250 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
251
1469344a
JH
2522014-07-08 Jan Hubicka <hubicka@ucw.cz>
253
254 Revert:
255 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
256
ef68f4ab
JH
2572014-07-08 Jan Hubicka <hubicka@ucw.cz>
258
259 * ipa-visibility.c (function_and_variable_visibility): Remove
260 temporary hack disabling local aliases on AIX.
261
8ad274d2
JH
2622014-07-08 Jan Hubicka <hubicka@ucw.cz>
263
264 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
265 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
266
9af46873
JH
2672014-07-08 Jan Hubicka <hubicka@ucw.cz>
268
269 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
270 * rs6000/rs6000.c: Inline output of .set instruction.
271 (declare_alias_data): New struct.
272 (rs6000_declare_alias): New function.
273 (rs6000_xcoff_declare_function_name): Use it.
274 (rs6000_xcoff_declare_object_name): New function.
275 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
276 (ASM_OUTPUT_DEF): Turn to empty definition.
277
e4e01495
TS
2782014-07-08 Trevor Saunders <tsaunders@mozilla.com>
279
280 PR bootstrap/61679
4bdf6418
UB
281 * hash-table.h: use hash_table::value_type instead of
282 Descriptor::value_type in the return types of several methods.
e4e01495 283
558d2559
TS
2842014-07-08 Trevor Saunders <tsaunders@mozilla.com>
285
286 * tree-pass.h (pass_data): Remove has_execute member.
287 * passes.c (execute_one_pass): Don't check pass->has_execute.
288 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
289 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
290 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
291 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
292 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
293 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
294 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
295 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
296 gimple-low.c, gimple-ssa-isolate-paths.c,
297 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
298 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
299 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
300 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
301 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
302 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
303 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
304 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
305 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
306 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
307 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
308 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
309 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
310 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
311 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
312 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
313 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
314 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
315 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
316 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
317 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
318 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
319 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
320 web.c: Remove initializer for pass_data::has_execute.
321
f98df77c
TS
3222014-07-08 Trevor Saunders <tsaunders@mozilla.com>
323
324 * graphite-htab.h: Use hash_map instead of hash_table.
325 * graphite-clast-to-gimple.c: Adjust.
326 * passes.c: Use hash_map instead of hash_table.
327 * sese.c: Likewise.
328 * sese.h: Remove now unused code.
329
dc58164b
ST
3302014-07-08 Sriraman Tallam <tmsriram@google.com>
331
332 PR target/61599
333 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
334 than zero.
335
7e6d8fd9
JJ
3362014-07-08 Jakub Jelinek <jakub@redhat.com>
337
338 PR rtl-optimization/61673
339 * combine.c (simplify_comparison): Test just mode's sign bit
340 in tmode rather than the sign bit and any bits above it.
341
e4a452b2
RG
3422014-07-08 Roman Gareev <gareevroman@gmail.com>
343
344 * graphite-isl-ast-to-gimple.c (generate_isl_context):
345 Add __isl_give to the declaration.
346 (generate_isl_schedule): Likewise.
347 (scop_to_isl_ast): Likewise.
348
b2c06385
KT
3492014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
350
351 * config/arm/arm.c (cortexa5_extra_costs): New table.
352 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
353
b48e3948
JJ
3542014-07-08 Jakub Jelinek <jakub@redhat.com>
355
356 PR tree-optimization/61725
357 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
358 range, use range_includes_zerop_p instead of integer_zerop on
359 vr0->min, only use log2 of max if min is not negative.
360
a59d8e8e
RB
3612014-07-08 Richard Biener <rguenther@suse.de>
362
363 * tree-ssa-dom.h (loop_depth_of_name): Remove.
364 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
365 restriction on loop depth difference.
366 (record_equality): Likewise.
367 (propagate_rhs_into_lhs): Likewise. Simplify condition.
368 (loop_depth_of_name): Remove.
369 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
370 restriction on loop depth difference.
371 (init_copy_prop): Likewise.
372
70f633c5
JH
3732014-07-08 Jan Hubicka <hubicka@ucw.cz>
374
375 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
376 parameter.
377 (walk_aliased_vdefs): Likewise.
378 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
379 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
380 (detect_type_change_from_memory_writes): Check if entry was reached.
381
e8e938e0
RB
3822014-07-08 Richard Biener <rguenther@suse.de>
383
384 PR tree-optimization/61681
385 * tree-ssa-structalias.c (find_what_var_points_to): Expand
386 NONLOCAL inside ESCAPED.
387
e33f43b9
RB
3882014-07-08 Richard Biener <rguenther@suse.de>
389
390 PR tree-optimization/61680
391 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
392 Handle properly all read-write dependences with group accesses.
393
0f6284d2
YR
3942014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
395
396 PR tree-optimization/61576
4bdf6418
UB
397 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
398 block containing reduction statement is predecessor of phi basi block.
0f6284d2 399
605f12f4
MP
4002014-07-08 Marek Polacek <polacek@redhat.com>
401
402 PR c/60226
403 * fold-const.c (round_up_loc): Change the parameter type.
404 Remove assert.
405 * fold-const.h (round_up_loc): Adjust declaration.
406 * stor-layout.c (finalize_record_size): Check for too large types.
407
72732f3e
JH
4082014-07-07 Jan Hubicka <hubicka@ucw.cz>
409
4bdf6418
UB
410 * symtab.c: Include calls.h.
411 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
72732f3e 412
3ca588d3
MR
4132014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
414
415 * config/rs6000/rs6000.c (output_vec_const_move): Handle
416 little-endian code generation.
417 * config/rs6000/spe.md (spe_evmergehi): Rename to...
4bdf6418 418 (vec_perm00_v2si): ... this. Handle little-endian code generation.
3ca588d3 419 (spe_evmergehilo): Rename to...
4bdf6418 420 (vec_perm01_v2si): ... this. Handle little-endian code generation.
3ca588d3 421 (spe_evmergelo): Rename to...
4bdf6418 422 (vec_perm11_v2si): ... this. Handle little-endian code generation.
3ca588d3 423 (spe_evmergelohi): Rename to...
4bdf6418 424 (vec_perm10_v2si): ... this. Handle little-endian code generation.
3ca588d3
MR
425 (spe_evmergehi, spe_evmergehilo): New expanders.
426 (spe_evmergelo, spe_evmergelohi): Likewise.
4bdf6418 427 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
3ca588d3
MR
428 (*frob_tf_ti): Likewise.
429 (*frob_<mode>_di_2): Likewise.
430 (*frob_tf_di_8_2): Likewise.
431 (*frob_di_<mode>): Likewise.
432 (*frob_ti_tf): Likewise.
433 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
434 (*frob_ti_<mode>_8_2): Likewise.
435 (*frob_ti_tf_2): Likewise.
436 (mov_si<mode>_e500_subreg0): Rename to...
437 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
438 endianness only.
439 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
440 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
4bdf6418 441 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
3ca588d3
MR
442 the big endianness only.
443 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
444 (*mov_si<mode>_e500_subreg0_2): Rename to...
445 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
446 big big endianness only.
447 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
448 (*mov_si<mode>_e500_subreg4): Rename to...
449 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
450 endianness only.
451 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
452 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
453 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
454 the big endianness only.
455 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
456 pattern.
457 (*mov_si<mode>_e500_subreg4_2): Rename to...
458 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
459 endianness only.
460 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
461 (*mov_sitf_e500_subreg8): Rename to...
462 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
463 endianness only.
464 (*mov_sitf_e500_subreg8_le): New instruction pattern.
465 (*mov_sitf_e500_subreg8_2): Rename to...
466 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
467 endianness only.
468 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
469 (*mov_sitf_e500_subreg12): Rename to...
470 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
471 endianness only.
472 (*mov_sitf_e500_subreg12_le): New instruction pattern.
473 (*mov_sitf_e500_subreg12_2): Rename to...
474 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
475 endianness only.
476 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
477
e7623929 4782014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
0f05a199 479
4bdf6418
UB
480 * asan.c (instrument_strlen_call): Do not instrument first byte
481 in strlen if already instrumented.
0f05a199 482
8adb5dc7
KT
4832014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
484
485 * config/arm/arm.opt (mwords-little-endian): Delete.
486 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
487 of TARGET_LITTLE_WORDS.
488 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
489 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
490 warning.
491 * doc/invoke.texi: Remove references to -mwords-little-endian.
492
c83cf304
JJ
4932014-07-07 Jakub Jelinek <jakub@redhat.com>
494
495 * expmed.c (struct init_expmed_rtl): Change all fields but
496 pow2 and cint from struct rtx_def to rtx.
497 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
498 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
499 at the end again.
500
773ec47f
MP
5012014-07-06 Marek Polacek <polacek@redhat.com>
502
503 PR c/6940
504 * doc/invoke.texi: Document -Wsizeof-array-argument.
505
a4ff2ef3
GP
5062014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
507
88e03ffe 508 * wide-int.h (wide_int_storage): Change declaration from struct
a4ff2ef3
GP
509 to class.
510
88e03ffe 5112014-07-05 Jan Hubicka <hubicka@ucw.cz>
058d0a90
JH
512
513 * cgraph.c (cgraph_create_indirect_edge): Update call of
514 get_polymorphic_call_info.
515 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
516 (possible_polymorphic_call_targets): Add parameter call.
517 (decl_maybe_in_construction_p): New predicate.
518 (get_polymorphic_call_info): Add parameter call;
519 use decl_maybe_in_construction_p.
520 * gimple-fold.c (fold_gimple_assign): Update use of
521 possible_polymorphic_call_targets.
522 (gimple_fold_call): Likewise.
523 * ipa-prop.c: Inlcude calls.h
524 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
525 (param_type_may_change_p): New predicate.
526 (detect_type_change_from_memory_writes): Break out from ...
88e03ffe 527 (detect_type_change): ... this one; use param_type_may_change_p.
058d0a90
JH
528 (detect_type_change_ssa): Use param_type_may_change_p.
529 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
530
aed773a2
CB
5312014-07-05 Charles Baylis <charles.baylis@linaro.org>
532
533 PR target/49423
534 * config/arm/arm-protos.h (arm_legitimate_address_p,
535 arm_is_constant_pool_ref): Add prototypes.
536 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
537 (arm_is_constant_pool_ref) New function.
538 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
539 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
540 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
541 operand. Remove pool_range and neg_pool_range attributes.
542 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
543 pool_range and neg_pool_range attributes.
544 * config/arm/constraints.md (Uh): New constraint.
545 (Uq): Don't allow constant pool references.
546
5a908485
JG
5472014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
548
549 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
550 (move_lo_quad_internal_be_<mode>): Likewise.
551 (move_lo_quad_<mode>): Convert to define_expand.
552 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
553 (aarch64_simd_move_hi_quad_be_<mode>): New.
554 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
555 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
556 (aarch64_combinez_be<mode>): New.
557 (aarch64_combine<mode>): Convert to define_expand.
558 (aarch64_combine_internal<mode>): New.
559 (aarch64_simd_combine<mode>): Remove bogus RTL description.
560
34386e79
TV
5612014-07-04 Tom de Vries <tom@codesourcery.com>
562
563 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
564 combination of earlyclobber and read/write modifiers.
565
7973ca62
TV
5662014-07-04 Tom de Vries <tom@codesourcery.com>
567
568 * config/aarch64/aarch64-simd.md
569 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
570
9815fafa
RE
5712014-07-04 Richard Earnshaw <rearnsha@arm.com>
572
573 PR target/61714
88e03ffe 574 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
9815fafa 575
14e000de
JJ
5762014-07-04 Jakub Jelinek <jakub@redhat.com>
577
253eab4f
JJ
578 PR middle-end/61654
579 * cgraphunit.c (expand_thunk): Call free_dominance_info.
580
14e000de
JJ
581 PR tree-optimization/61684
582 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
583 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
584
17bf6d25
CJW
5852014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
586 Kito Cheng <kito@0xlab.org>
587 Monk Chiang <sh.chiang04@gmail.com>
588
589 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
590 (nds32_symbol_load_store_p): Move to ...
591 (nds32_fp_as_gp_check_available): Move to ...
592 * config/nds32/nds32-fp-as-gp.c: ... here.
593 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
594 extern declaration.
595
f1fac1bc
CJW
5962014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
597 Kito Cheng <kito@0xlab.org>
598 Monk Chiang <sh.chiang04@gmail.com>
599
600 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
601 (nds32_expand_store_multiple): Move to ...
602 (nds32_expand_movmemqi): Move to ...
603 * config/nds32/nds32-memory-manipulation.c: ... here.
604
9e9dbc42
CJW
6052014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
606 Kito Cheng <kito@0xlab.org>
607 Monk Chiang <sh.chiang04@gmail.com>
608
609 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
610 (nds32_output_casesi_pc_relative): Move to ...
611 (nds32_output_casesi): Move to ...
612 (nds32_mem_format): Move to ...
613 (nds32_output_16bit_store): Move to ...
614 (nds32_output_16bit_load): Move to ...
615 (nds32_output_32bit_store): Move to ...
616 (nds32_output_32bit_load): Move to ...
617 (nds32_output_32bit_load_s): Move to ...
618 (nds32_output_stack_push): Move to ...
619 (nds32_output_stack_pop): Move to ...
620 * config/nds32/nds32-md-auxiliary.c: ... here.
621
c65cef10
CJW
6222014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
623 Ling-Hua Tseng <uranus@tinlans.org>
624
625 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
626 the purpose of this file.
627
89a4b547
CJW
6282014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
629 Kito Cheng <kito@0xlab.org>
630 Monk Chiang <sh.chiang04@gmail.com>
631
632 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
633 (nds32_address_cost): Move implementation to ...
634 * config/nds32/nds32-cost.c: ... here.
635 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
636 (nds32_address_cost_impl): Declare.
637
6a2a98b1
CJW
6382014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
639 Kito Cheng <kito@0xlab.org>
640 Monk Chiang <sh.chiang04@gmail.com>
641
642 * config/nds32/nds32.c
643 (nds32_consecutive_registers_load_store_p): Move to ...
644 (nds32_valid_multiple_load_store): Move to ...
645 (nds32_valid_stack_push_pop): Move to ...
646 (nds32_can_use_bclr_p): Move to ...
647 (nds32_can_use_bset_p): Move to ...
648 (nds32_can_use_btgl_p): Move to ...
649 (nds32_can_use_bitci_p): Move to ...
650 * config/nds32/nds32-predicates.c: ... here.
651
aaa44d2d
CJW
6522014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
653 Kito Cheng <kito@0xlab.org>
654 Monk Chiang <sh.chiang04@gmail.com>
655
656 * config/nds32/nds32.c
657 (nds32_expand_builtin_null_ftype_reg): Move to ...
658 (nds32_expand_builtin_reg_ftype_imm): Move to ...
659 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
660 (nds32_init_builtins): Move implementation to ...
661 (nds32_expand_builtin): Move implementation to ...
662 * config/nds32/nds32-intrinsic.c: ... here.
663 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
664 (nds32_expand_builtin_impl): Declare.
665
c23a919b
CJW
6662014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
667 Kito Cheng <kito@0xlab.org>
668 Monk Chiang <sh.chiang04@gmail.com>
669
670 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
671 (nds32_emit_section_tail_template): Move to ...
672 (nds32_emit_isr_jmptbl_section): Move to ...
673 (nds32_emit_isr_vector_section): Move to ...
674 (nds32_emit_isr_reset_conten): Move to ...
675 (nds32_check_isr_attrs_conflict): Move to ...
676 (nds32_construct_isr_vectors_information): Move to ...
677 (nds32_asm_file_start): Move implementation to ...
678 (nds32_asm_file_end): Move implementation to ...
679 * config/nds32/nds32-isr.c: ... here.
680 * config/nds32/nds32-protos.h
681 (nds32_check_isr_attrs_conflict): Declare.
682 (nds32_construct_isr_vectors_information): Declare.
683 (nds32_asm_file_start_for_isr): Declare.
684 (nds32_asm_file_end_for_isr): Declare.
685
c0c935b5
CJW
6862014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
687 Kito Cheng <kito@0xlab.org>
688 Monk Chiang <sh.chiang04@gmail.com>
689
690 * config.gcc (nds32*): Add new modules to extra_objs.
691 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
692 (nds32be-*-*): Likewise.
693 * config/nds32/nds32-cost.c: New file.
694 * config/nds32/nds32-fp-as-gp.c: New file.
695 * config/nds32/nds32-intrinsic.c: New file.
696 * config/nds32/nds32-isr.c: New file.
697 * config/nds32/nds32-md-auxiliary.c: New file.
698 * config/nds32/nds32-memory-manipulation.c: New file.
699 * config/nds32/nds32-pipelines-auxiliary.c: New file.
700 * config/nds32/nds32-predicates.c: New file.
701 * config/nds32/t-nds32: New file.
702
c01d6ad9
JJ
7032014-07-03 Jakub Jelinek <jakub@redhat.com>
704
705 PR tree-optimization/61682
88e03ffe
UB
706 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
707 using cases and when one of the operands is equal to 1.
c01d6ad9 708
9e5f78f1
SB
7092014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
710
711 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
712 ashr<mode>3): Correct mode of operands[2].
713 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
714 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
715 Correct mode of operands[2]. Fix split condition.
716
a89b02c0
RE
7172014-07-03 Richard Earnshaw <rearnsha@arm.com>
718
719 * arm.md (arch): Add armv6_or_vfpv3.
720 (arch_enabled): Add test for the above.
721 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
722 on VFP9.
723 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
88e03ffe 724
00a7ba58
JJ
7252014-07-03 Jakub Jelinek <jakub@redhat.com>
726
727 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
728 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
729 HWI 1 and negate the unsigned value.
730 * expmed.c (expand_sdiv_pow2): For modes wider than word always
731 use AND instead of shift.
732 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
733
e71d7987
MP
7342014-07-03 Marek Polacek <polacek@redhat.com>
735
736 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
737 (-fsanitize=float-divide-by-zero): Move to the table with
738 -fsanitize=undefined suboptions.
739 (-fsanitize=float-cast-overflow): Likewise.
740
283bbe35
MR
7412014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
742
743 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
744 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
745 endianness.
746
e42e3d15
ZC
7472014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
748
749 * loop-invariant.c (struct invariant): Add a new member: eqno;
750 (find_identical_invariants): Update eqno;
751 (create_new_invariant): Init eqno;
752 (get_inv_cost): Compute comp_cost with eqno;
753
4ed3092f
SB
7542014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
755
756 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
757 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
758 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
759 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
760 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
761
cbb1e3d9
CB
7622014-07-02 Christian Bruel <christian.bruel@st.com>
763
513c5c74
CB
764 PR target/29349
765 PR target/53513
cbb1e3d9
CB
766 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
767 (make_preds_opaque): Delete.
768 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
769 (commit_mode_sets): New function.
770 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
771 Process all modes at once.
772 * basic-block.h (pre_edge_lcm_avs): Declare.
773 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
774 Call clear_aux_for_edges. Fix comments.
775 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
776 (pre_edge_rev_lcm): Idem.
88e03ffe
UB
777 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
778 parameter.
cbb1e3d9 779 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
88e03ffe
UB
780 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
781 Idem.
cbb1e3d9
CB
782 * config/i386/i386.c (x96_emit_mode_set): Idem.
783 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
784 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
785 (fpscr_toggle) Disallow from delay slot.
786 * target.def (emit_mode_set): Add prev_mode parameter.
787 * doc/tm.texi: Regenerate.
788
c9d1a16a
KT
7892014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
790
791 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
792 variable i.
793
d570d364
JH
7942014-07-01 Jan Hubicka <hubicka@ucw.cz>
795
796 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
797 vtable_pointer_value_to_vtable): Constify.
798 (contains_polymorphic_type_p): Declare.
799 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
800 vtable_pointer_value_to_vtable): Constify.
801 (contains_polymorphic_type_p): New predicate.
802 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
803 polymorphic types.
804 (ipa_set_ancestor_jf): Likewise.
805 (detect_type_change): Return false in easy cases.
806 (compute_complex_assign_jump_func): Require type to contain
807 polymorphic type.
808 (compute_known_type_jump_func): Likewise.
809
549bcbd1
JH
8102014-07-01 Jan Hubicka <hubicka@ucw.cz>
811
88e03ffe
UB
812 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
813 Remove.
549bcbd1 814 (type_in_anonymous_namespace_p): Constify argument.
88e03ffe 815 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
549bcbd1
JH
816 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
817 (main_odr_variant): New function.
818 (hash_type_name): Make static; update assert; do not ICE on
819 non-records.
88e03ffe
UB
820 (types_same_for_odr): Bring here from tree.c; simplify and remove
821 old structural comparing code that doesn't work for templates.
549bcbd1
JH
822 (odr_hasher::equal): Update assert.
823 (add_type_duplicate): Return true when bases should be computed;
824 replace incomplete loader by complete; do not output duplicated
825 warnings; do not ICE on non-records; set odr_violated flag.
826 (get_odr_type): Be ready to replace incomplete type by complete
827 one; work on ODR variants instead of main variants; reorder item
828 in array so bases have still smaller indexes.
88e03ffe 829 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
549bcbd1
JH
830 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
831
25eff60d
CC
8322014-07-01 Cary Coutant <ccoutant@google.com>
833
834 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
88e03ffe 835 lookup.
25eff60d 836 (resolve_addr_in_expr): When replacing the rtx in a location list
88e03ffe 837 entry, get a new address table entry.
25eff60d 838 (dwarf2out_finish): Call index_location_lists even if there are no
88e03ffe 839 addr_index_table entries yet.
25eff60d 840
6ab56804
TS
8412014-07-01 Trevor Saunders <tsaunders@mozilla.com>
842
843 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
844 change for not being obvious.
845
5c9130b3
TS
8462014-07-01 Trevor Saunders <tsaunders@mozilla.com>
847
848 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
849 unused argument.
850
39f90912
KT
8512014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
852
853 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
854 (vcagt_f64): Likewise.
855 (vcale_f64): Likewise.
856 (vcaled_f64): Likewise.
857 (vcales_f32): Likewise.
858 (vcalt_f64): Likewise.
859 (vcaltd_f64): Likewise.
860 (vcalts_f32): Likewise.
861
52ec0ea3
MP
8622014-07-01 Marek Polacek <polacek@redhat.com>
863
864 * doc/invoke.texi: Document -Wint-conversion.
865
d5c3d343
MP
8662014-07-01 Marek Polacek <polacek@redhat.com>
867
868 PR c/58286
869 * doc/invoke.texi: Document -Wincompatible-pointer-types.
870
e55637b7
ML
8712014-07-01 Martin Liska <mliska@suse.cz>
872
873 IPA REF alias refactoring
874 * cgraph.h (iterate_direct_aliases): New function.
875 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
876 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
877 FOR_EACH_ALIAS added.
878 (cgraph_for_node_and_aliases): Likewise.
879 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
880 * ipa-inline.c (reset_edge_caches): Likewise.
881 (update_caller_keys): Likewise.
882 * trans-mem.c (ipa_tm_execute): Likewise.
883 *varpool.c (varpool_analyze_node): Likewise.
884 (varpool_for_node_and_aliases): Likewise.
885 * ipa-ref.h (first_alias): New function.
886 (last_alias): Likewise.
887 (has_aliases_p): Likewise.
888 * ipa-ref.c (ipa_ref::remove_reference): Removal function
889 is sensitive to IPA_REF_ALIASes.
890 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
891 are put at the beginning of the list.
892 (symtab_node::iterate_direct_aliases): New function.
893
010f4e27
JH
8942014-06-28 Jan Hubicka <hubicka@ucw.cz>
895
896 Revert:
88e03ffe 897 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
010f4e27 898 type is complete.
88e03ffe
UB
899 (write_ts_type_common_tree_pointers): Do not stream fields not set
900 for incomplete types; do not stream duplicated fields for variants;
901 sanity check that variant and type match.
902 (write_ts_type_non_common_tree_pointers): Likewise.
903 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
904 TYPE_SIZE whether type is complete.
010f4e27
JH
905 (lto_input_ts_type_common_tree_pointers): Do same changes as in
906 write_ts_type_common_tree_pointers
907 (lto_input_ts_type_non_common_tree_pointers): Likewise.
908
0ca59830
JM
9092014-06-30 Joseph Myers <joseph@codesourcery.com>
910
911 * var-tracking.c (add_stores): Return instead of asserting if old
912 and new values for conditional store are the same.
913
fc56f9d2
RH
9142014-06-30 Richard Henderson <rth@redhat.com>
915
916 PR rtl-opt/61608
917 PR target/39284
918 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
919 the cfg if there were any changes.
920 * passes.def: Revert move of peephole2 after reorder_blocks;
921 move duplicate_computed_gotos before peephole2.
922
a4a51a52
UB
9232014-06-30 Uros Bizjak <ubizjak@gmail.com>
924
925 * except.c (emit_note_eh_region_end): New helper function.
926 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
927 emit EH_REGION_END note.
928 * jump.c (cleanup_barriers): Do not split a call and its
929 corresponding CALL_ARG_LOCATION note.
930
4f82fed2
JL
9312014-06-30 Jeff Law <law@redhat.com>
932
933 PR tree-optimization/61607
934 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
935 deeper into the SSA_NAME_VALUE chain.
936
6a7253a4
MP
9372014-06-30 Marek Polacek <polacek@redhat.com>
938
939 * convert.c (convert_to_integer): Don't instrument conversions if the
940 function has no_sanitize_undefined attribute.
941 * ubsan.c: Don't run the ubsan pass if the function has
942 no_sanitize_undefined attribute.
943
670d96d7
JJ
9442014-06-30 Jakub Jelinek <jakub@redhat.com>
945
946 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
947 -fsanitize=undefined suboptions.
948
f7c4e5b8
AL
9492014-06-30 Alan Lawrence <alan.lawrence@arm.com>
950
951 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
952 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
953 against bigendian and adjust indices.
954
10e4b632
GP
9552014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
956
957 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
958
21a7b5e1
MS
9592014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
960
961 PR target/61633
962 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
963 Add alternative; make early clobber. Adjust both split patterns
964 to use operand 0 as the working register.
965
85c00e0b
JJ
9662014-06-30 Jakub Jelinek <jakub@redhat.com>
967
5acd5cf0
UB
968 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
969 as ira_object_id_map might be NULL, or 1.
85c00e0b 970
51a69168
ZC
9712014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
972
973 * loop-invariant.c (get_inv_cost): Handle register class.
974 (gain_for_invariant): Check the register pressure of the inv
975 and its overlapped register class, other than all.
976
a938d018
GP
9772014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
978
979 * doc/invoke.texi (Optimize Options): Fix descriptions of
980 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
981
3a96c7cc
DW
9822014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
983
984 * doc/extend.texi (Function Attributes): Update 'naked' attribute
985 documentation.
986
7d1ceb93
TG
9872014-06-29 Tobias Grosser <tobias@grosser.es>
988
dabb1a20 989 PR bootstrap/61650
7d1ceb93
TG
990 * graphite-isl-ast-to-gimple.c: Add missing guards.
991
f6cc3103
RG
9922014-06-29 Roman Gareev <gareevroman@gmail.com>
993
5acd5cf0
UB
994 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
995 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
996 * flag-types.h: Add new enum fgraphite_generator.
f6cc3103
RG
997 * graphite-isl-ast-to-gimple.c: New.
998 * graphite-isl-ast-to-gimple.h: New.
5acd5cf0
UB
999 * graphite.c (graphite_transform_loops): Add choice of Graphite
1000 code generator, which depends on flag_graphite_code_gen.
f6cc3103 1001
516a84f7
RG
10022014-06-29 Roman Gareev <gareevroman@gmail.com>
1003
5acd5cf0
UB
1004 * graphite-dependences.c (subtract_commutative_associative_deps):
1005 Add NULL checking of the following variables: must_raw_no_source,
1006 may_raw_no_source, must_war_no_source, may_war_no_source,
1007 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
1008 must_war, may_war, must_waw, may_waw.
516a84f7 1009
db72d606
RG
10102014-06-29 Roman Gareev <gareevroman@gmail.com>
1011
5acd5cf0
UB
1012 * graphite-clast-to-gimple.c: gloog is renamed to
1013 graphite_regenerate_ast_cloog. gloog_error is renamed to
1014 graphite_regenerate_error.
1015 * graphite-clast-to-gimple.h: The definition of the struct
1016 bb_pbb_def is moved to graphite-htab.h.
db72d606 1017 Add inclusion of the hash-table.h.
5acd5cf0 1018 * graphite-htab.h: The declaration of the function gloog is moved
db72d606
RG
1019 to graphite-clast-to-gimple.h and renamed to
1020 graphite_regenerate_ast_cloog.
5acd5cf0
UB
1021 * graphite.c (graphite_transform_loops): gloog is renamed
1022 to graphite_regenerate_ast_cloog.
db72d606 1023
288eeff7
JH
10242014-06-28 Jan Hubicka <hubicka@ucw.cz>
1025
5acd5cf0 1026 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
288eeff7 1027 type is complete.
5acd5cf0
UB
1028 (write_ts_type_common_tree_pointers): Do not stream fields not set
1029 for incomplete types; do not stream duplicated fields for variants;
1030 sanity check that variant and type match.
1031 (write_ts_type_non_common_tree_pointers): Likewise.
1032 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
1033 TYPE_SIZE whether type is complete.
288eeff7
JH
1034 (lto_input_ts_type_common_tree_pointers): Do same changes as in
1035 write_ts_type_common_tree_pointers
1036 (lto_input_ts_type_non_common_tree_pointers): Likewise.
1037
d0bd8245
JH
10382014-06-28 Jan Hubicka <hubicka@ucw.cz>
1039
1040 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
1041
8910466a
JH
10422014-06-28 Jan Hubicka <hubicka@ucw.cz>
1043
1044 * tree-inline.c (remap_type_1): Do not duplicate fields
1045 that are shared in between type and its main variant.
1046
b49407f8
JH
10472014-06-28 Jan Hubicka <hubicka@ucw.cz>
1048
1049 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
1050 of the type.
1051 (ipa_set_ancestor_jf) Likewise.
1052 (check_stmt_for_type_change): Check that we work on main variant.
1053 (detect_type_change): Look into main variant.
1054 (compute_known_type_jump_func): Check that main variant has BINFO.
1055
c7e1befa
JH
10562014-06-28 Jan Hubicka <hubicka@ucw.cz>
1057
1058 * ipa-devirt.c (set_type_binfo): New function.
1059 (add_type_duplicate): Use it.
1060 (get_odr_type): Sanity check that binfos points to main variants.
1061 (get_class_context): Be sure the context's outer_type is main variant.
1062 (contains_type_p): Walk main variant.
5acd5cf0
UB
1063 (get_polymorphic_call_info_for_decl): Set outer_type to be
1064 main variant.
c7e1befa 1065 (get_polymorphic_call_info): Likewise.
5acd5cf0
UB
1066 (possible_polymorphic_call_targets): Sanity check that we operate
1067 on main variant.
c7e1befa 1068
7ae2e72c
JH
10692014-06-28 Jan Hubicka <hubicka@ucw.cz>
1070
5acd5cf0 1071 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
7ae2e72c 1072
a8647163
UW
10732014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1074
1075 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
1076 accidental change due to wide-int branch merge.
1077
29d7cbd1
RO
10782014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1079
1080 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
1081 compressed debug support.
5acd5cf0 1082 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
29d7cbd1
RO
1083 * configure: Regenerate.
1084 * config.in: Regenerate.
1085 * common.opt (compressed_debug_sections): New enum.
1086 (gz, gz=): New options.
5acd5cf0 1087 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
29d7cbd1
RO
1088 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
1089 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
1090 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
1091 LINK_COMPRESS_DEBUG_SPEC.
1092 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
1093 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
5acd5cf0 1094 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
29d7cbd1
RO
1095 (Debugging Options): Document -gz[=type].
1096
d284e1b8
MJ
10972014-06-27 Martin Jambor <mjambor@suse.cz>
1098
1099 PR ipa/61160
1100 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
1101 args_to_skip, use those from node instead. Copy args_to_skip and
1102 combined_args_to_skip from node to the new thunk.
1103 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
1104 (cgraph_create_virtual_clone): Moved computation of
1105 combined_args_to_skip...
1106 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
1107
f012c1ab
TS
11082014-06-27 trevor Saunders <tsaunders@mozilla.com>
1109
1110 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
1111 redundant diagnostic machinary.
1112
3fd269db
RB
11132014-06-27 Richard Biener <rguenther@suse.de>
1114
1115 * tree-ssa-math-opts.c (bswap_replace): Fix
1116 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
1117
807b7d62
ML
11182014-06-27 Martin Liska <mliska@suse.cz>
1119
1120 * gimple.h (gimple_location_safe): New function introduced.
1121 * cgraphunit.c (walk_polymorphic_call_targets): Usage
1122 of gimple_location_safe replaces gimple_location.
1123 (gimple_fold_call): Likewise.
1124 * ipa-devirt.c (ipa_devirt): Likewise.
1125 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1126 * ipa.c (walk_polymorphic_call_targets): Likewise.
1127 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
1128
a4ee446d
JJ
11292014-06-27 Jakub Jelinek <jakub@redhat.com>
1130
1131 PR tree-optimization/57233
1132 PR tree-optimization/61299
1133 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
1134 functions.
1135 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
1136 would be lowered to scalar shifts, check if corresponding
1137 shifts and vector BIT_IOR_EXPR are supported and don't lower
1138 or lower just to narrower vector type in that case.
1139 * expmed.c (expand_shift_1): Fix up handling of vector
1140 shifts and rotates.
1141
dd5e7837
UB
11422014-06-26 Uros Bizjak <ubizjak@gmail.com>
1143
1144 PR target/61586
1145 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
1146
e288a46c
JH
11472014-06-26 Jan Hubicka <hubicka@ucw.cz>
1148
1149 * doc/invoke.texi (-fsemantic-interposition): Document.
1150 * common.opt (fsemantic-interposition): New flag.
1151 * varasm.c (decl_replaceable_p): Use it.
1152
6a742466
BS
11532014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1154
1155 PR target/61542
1156 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
1157 extraction other than index 3.
1158
f14726bd
TJ
11592014-06-26 Teresa Johnson <tejohnson@google.com>
1160
1161 * doc/invoke.texi: Fix typo.
1162 * dumpfile.c: Add support for documented -fdump-* options
1163 optimized/missed/note/optall.
1164
680a5a7c
MJ
11652014-06-26 Martin Jambor <mjambor@suse.cz>
1166
1167 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
1168 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
1169 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
1170 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
1171 * opts.c (default_options_optimization): Set
1172 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
1173 * doc/invoke.texi (allow-load-data-races)
dd5e7837 1174 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
680a5a7c
MJ
1175 (allow-store-data-races): Document the new default.
1176
72972c22
MJ
11772014-06-26 Martin Jambor <mjambor@suse.cz>
1178
1179 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
1180 renamed to ipa_impossible_devirt_target. Fix typo.
1181 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
1182 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
1183 ipa_impossible_devirt_target.
1184
73c7d6bc
RB
11852014-06-26 Richard Biener <rguenther@suse.de>
1186
1187 PR tree-optimization/61607
1188 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
1189 explaining why we restrict copies on loop depth.
1190 * tree-ssa-dom.c (cprop_operand): Remove restriction on
1191 on loop depth.
1192 (record_equivalences_from_phis): Instead add it here.
1193
a185856a
BS
11942014-06-26 Bernd Schmidt <bernds@codesourcery.com>
1195
dd5e7837
UB
1196 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
1197 (LTO_WRAPPER_OBJS): New variable.
1198 (lto-wrapper$(exeext)): Use it.
1199 * collect2.c: Include "collect-utils.h".
1200 (verbose, debug): Remove variables.
1201 (at_file_supplied): No longer static.
1202 (tool_name): New variable.
1203 (do_wait, fork_execute, maybe_unlink): Don't declare.
1204 (tool_cleanup): No longer static.
1205 (notice): Remove function.
1206 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
1207 fork_execute calls.
1208 (collect_wait, do_wait, collect_execute): Remove functions.
1209 (maybe_unlink): No longer static.
1210 * collect2.h (verbose, debug): Don't declare.
1211 (at_file_supplied): Declare.
1212 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
1213 changed.
1214 (collect_execute): Replace with implementation from collect2, plus a
1215 new arg use_atfile. All callers changed.
1216 (collect_wait): Replace with implementation from collect2.
1217 (maybe_unlink_file): Remove function.
1218 (fork_execute): Replace with implementation from collect2, plus a
1219 new arg use_atfile. All callers changed.
1220 (do_wait): Add call to utils_cleanup to the error path.
1221 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
1222 (tool_cleanup): Adjust declarations.
1223 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
1224 * tlink.c: Include "collect-utils.h".
1225 (tlink_execute): New arg use_atfile. All callers changed.
1226 (tlink_init, tlink_execute): Remove declarations.
1227
1228 * collect-utils.c (save_temps): New variable.
1229 (do_wait): Use it instead of debug. Use fatal_error.
1230 * collect-utils.h (save_temps): Declare.
1231 * collect2.c (verbose): Rename from vflag. All uses changed.
1232 (tool_cleanup): New function, copied from collect_atexit.
1233 (collect_atexit, handler): Just call it.
1234 * collect2.h (verbose): Declaration renamed from vflag.
1235 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
1236 debug.
1237
1238 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
1239 (lto-wrapper$(exeext)): Link with collect-utils.o.
1240 * collect-utils.c: New file.
1241 * collect-utils.h: New file.
1242 * lto-wrapper.c: Include "collect-utils.h".
1243 (args_name): Delete variable.
1244 (tool_name): New variable.
1245 (tool_cleanup): New function.
1246 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
1247 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
1248 (fork_execute): Remove functions.
a185856a 1249
5ed8a176
NC
12502014-06-26 Nick Clifton <nickc@redhat.com>
1251
53d51ddb
NC
1252 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
1253
5ed8a176
NC
1254 * doc/extend.texi (Function Attributes): Fix typo in description
1255 of RX vector attribute.
1256
0cdb761c
JG
12572014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
1258
1259 * config.gcc (supported_defaults): Error when passing either
1260 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
1261
cbe26b97
RB
12622014-06-26 Richard Biener <rguenther@suse.de>
1263
1264 * tree-ssa-dom.c (cprop_operand): Remove restriction on
1265 propagating volatile pointers.
1266
974bb959
RB
12672014-06-26 Richard Biener <rguenther@suse.de>
1268
1269 PR tree-optimization/61607
1270 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
1271 loop if we redirected its latch edge.
1272 (thread_block_1): Do not cancel loops prematurely.
1273
b9b5f433
JH
12742014-06-25 Jan Hubicka <hubicka@ucw.cz>
1275
dd5e7837
UB
1276 * toplev.c (backend_init_target): Move init_emit_regs and
1277 init_regs to...
b9b5f433 1278 (backend_init) ... here; skip ira_init_once and backend_init_target.
dd5e7837
UB
1279 (target_reinit) ... and here; clear
1280 this_target_rtl->lang_dependent_initialized.
1281 (lang_dependent_init_target): Clear
1282 this_target_rtl->lang_dependent_initialized;
b9b5f433 1283 break out rtl initialization to ...
dd5e7837
UB
1284 (initialize_rtl): ... here; call also backend_init_target
1285 and ira_init_once.
b9b5f433
JH
1286 * toplev.h (initialize_rtl): New function.
1287 * function.c: Include toplev.h
1288 (init_function_start): Call initialize_rtl.
1289 * rtl.h (target_rtl): Add target_specific_initialized,
1290 lang_dependent_initialized.
1291
646d1bed
PG
12922014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
1293 Jakub Jelinek <jakub@redhat.com>
1294
1295 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
1296
db88b449
TV
12972014-06-25 Tom de Vries <tom@codesourcery.com>
1298
1299 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
1300
f9bb13f3
BE
13012014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
1302
1303 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
1304 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
1305 Issue a strict overflow warning if appropriate.
1306
d122681a
ML
13072014-06-25 Martin Liska <mliska@suse.cz>
1308
1309 IPA REF refactoring
1310 * Makefile.in: Removed header file (ipa-ref-inline.h).
1311 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
1312 called.
1313 (cgraph_speculative_call_info): Likewise.
1314 (cgraph_for_node_thunks_and_aliases): Likewise.
1315 (cgraph_for_node_and_aliases): Likewise.
1316 (verify_cgraph_node): Likewise.
1317 * cgraph.h: Batch of IPA REF functions become member functions of
1318 symtab_node: add_reference, maybe_add_reference, clone_references,
1319 clone_referring, clone_reference, find_reference,
1320 remove_stmt_references, remove_all_references,
1321 remove_all_referring, dump_references, dump_referring,
1322 has_alias_p, iterate_reference, iterate_referring.
1323 * cgraphbuild.c (record_reference): New IPA REF function used.
1324 (record_type_list): Likewise.
1325 (record_eh_tables): Likewise.
1326 (mark_address): Likewise.
1327 (mark_load): Likewise.
1328 (mark_store): Likewise.
1329 (pass_build_cgraph_edges): Likewise.
1330 (rebuild_cgraph_edge): Likewise.
1331 (cgraph_rebuild_references): Likewise.
1332 (pass_remove_cgraph_callee_edges): Likewise.
1333 * cgraphclones.c (cgraph_clone_node): Likewise.
1334 (cgraph_create_virtual_clone): Likewise.
1335 (cgraph_materialize_clone): Likewise.
1336 (cgraph_materialize_all_clones): Likewise.
1337 * cgraphunit.c (cgraph_reset_node): Likewise.
1338 (cgraph_reset_node): Likewise.
1339 (analyze_function): Likewise.
1340 (assemble_thunks_and_aliases): Likewise.
1341 (expand_function): Likewise.
1342 * ipa-comdats.c (propagate_comdat_group): Likewise.
1343 (enqueue_references): Likewise.
1344 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
1345 (create_specialized_node): Likewise.
1346 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
1347 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
1348 * ipa-inline.c (reset_edge_caches): Likewise.
1349 (update_caller_keys): Likewise.
1350 (execute): Likewise.
1351 * ipa-prop.c (remove_described_reference): Likewise.
1352 (propagate_controlled_uses): Likewise.
1353 (ipa_edge_duplication_hook): Likewise.
1354 (ipa_modify_call_arguments): Likewise.
1355 * ipa-pure-const.c (propagate_pure_const): Likewise.
1356 * ipa-ref-inline.h: Header file removed, functions moved
1357 to symtab_node class.
1358 * ipa-ref.c (remove_reference): New class member function.
1359 (cannot_lead_to_return): New class member function.
1360 (referring_ref_list): Likewise.
1361 (referred_ref_list): Likewise.
1362 Rest of functions moved to symtab_node class.
1363 * ipa-ref.h: New member functions remove_reference,
1364 cannot_lead_to_return, referring_ref_list, referred_ref_list added
1365 to ipa_ref class.
1366 ipa_ref_list class has new member functions: first_reference,
1367 first_referring, clear, nreferences.
1368 * ipa-reference.c (analyze_function): New IPA REF function used.
1369 (write_node_summary_p): Likewise.
1370 (ipa_reference_write_optimization_summary): Likewise.
1371 * ipa-split.c (split_function): Likewise.
1372 * ipa-utils.c (ipa_reverse_postorder): Likewise.
1373 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
1374 (function_and_variable_visibility): Likewise.
1375 * ipa.c (has_addr_references_p): Likewise.
1376 (process_references): Argument type changed.
1377 (symtab_remove_unreachable_nodes): New IPA REF function used.
1378 (process_references): Likewise.
1379 (set_writeonly_bit): Likewise.
1380 * lto-cgraph.c: Implementation of new symtab_node member functions
1381 that uses new IPA REF functions.
dd5e7837
UB
1382 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
1383 function used.
d122681a
ML
1384 * lto-streamer-out.c (output_symbol_p): Likewise.
1385 * lto-streamer.h (referenced_from_this_partition_p): Argument type
1386 changed.
d122681a
ML
1387 * symtab.c: Implementation of new IPA REF API.
1388 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
1389 (ipa_tm_create_version): Likewise.
1390 (ipa_tm_execute): Likewise.
1391 * tree-emutls.c (gen_emutls_addr): Likewise.
1392 * tree-inline.c (copy_bb): Likewise.
1393 (delete_unreachable_blocks_update_callgraph): Likewise.
1394 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
1395 (varpool_for_node_and_aliases): Likewise.
1396
81d0a226
TS
13972014-06-25 Trevor Saunders <tsaunders@mozilla.com>
1398
1399 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
1400
86fcf7ce
TS
14012014-06-25 Trevor Saunders <tsaunders@mozilla.com>
1402
1403 PR bootstrap/61598
1404 * fold-const.c (fold_checksum_tree): Use a hash_table of const
1405 tree_node * instead of tree_node *.
1406 (fold): Adjust.
1407 (print_fold_checksum): Likewise.
1408 (fold_check_failed): Likewise.
1409 (debug_fold_checksum): Likewise.
1410 (fold_build1_stat_loc): Likewise.
1411 (fold_build2_stat_loc): Likewise.
1412 (fold_build3_stat_loc): Likewise.
1413 (fold_build_call_array_loc): Likewise.
1414
b36e833f
DE
14152014-06-25 David Edelsohn <dje.gcc@gmail.com>
1416
1417 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
1418 implementation with call to...
1419 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
1420 function.
1421 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
1422 Declare.
1423
20cb2258
MG
14242014-06-25 Marc Glisse <marc.glisse@inria.fr>
1425
1426 PR tree-optimization/57742
1427 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
1428 after replacing the statement.
1429
cd47dfd0
NC
14302014-06-25 Nick Clifton <nickc@redhat.com>
1431
1432 * config/v850/v850.c (GHS_default_section_names): Change to const
1433 char * type.
1434 (GHS_current_section_names): Likewise.
1435 (v850_insert_attributes): Do not build strings, just assign the
1436 names directly. Change the type of 'chosen_section' to const
1437 char*.
1438 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
1439 directly to the array entry.
1440 * config/v850/v850.h (GHS_default_section_names): Change to const
1441 char * type.
1442 (GHS_current_section_names): Likewise.
1443
da6f124d
JJ
14442014-06-25 Jakub Jelinek <jakub@redhat.com>
1445
1446 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
1447 (LANG_HOOKS_DECLS): Add it.
1448 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
1449 has correct type.
1450 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
1451 * langhooks.h (struct lang_hooks_for_decls): Add
1452 omp_clause_linear_ctor hook.
1453 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
1454 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
1455 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
1456 combined simd loop use omp_clause_linear_ctor hook.
1457
79d652a5
CH
14582014-06-24 Cong Hou <congh@google.com>
1459
1460 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
1461 pattern recognition.
1462 (type_conversion_p): PROMOTION is true if it's a type promotion
1463 conversion, and false otherwise. Return true if the given expression
1464 is a type conversion one.
1465 * tree-vectorizer.h: Adjust the number of patterns.
1466 * tree.def: Add SAD_EXPR.
1467 * optabs.def: Add sad_optab.
1468 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
1469 * expr.c (expand_expr_real_2): Likewise.
1470 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
1471 * gimple.c (get_gimple_rhs_num_ops): Likewise.
1472 * optabs.c (optab_for_tree_code): Likewise.
1473 * tree-cfg.c (estimate_operator_cost): Likewise.
1474 * tree-ssa-operands.c (get_expr_operands): Likewise.
1475 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
1476 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
1477 * doc/generic.texi: Add document for SAD_EXPR.
1478 * doc/md.texi: Add document for ssad and usad.
1479
3c032229
TS
14802014-06-24 Trevor Saunders <tsaunders@mozilla.com>
1481
1482 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
1483 qualification in cast.
1484
aaf8a23e
JH
14852014-06-24 Jan Hubicka <hubicka@ucw.cz>
1486
1487 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
1488 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
1489 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
1490 (tree_function_decl): ... here.
1491 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
1492 streaming of vindex to ...
1493 (write_ts_function_decl_tree_pointers): ... here.
1494 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
1495 Do not stream DECL_VINDEX.
1496 (lto_input_ts_function_decl_tree_pointers): Stream it here.
1497
ecc63043
CM
14982014-06-24 Catherine Moore <clm@codesourcery.com>
1499 Sandra Loosemore <sandra@codesourcery.com>
1500
1501 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
1502 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
1503 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
1504
db8965fc
MG
15052014-06-24 Marc Glisse <marc.glisse@inria.fr>
1506
1507 * doc/invoke.texi (Warning Options): Remove duplicated
1508 -Wmaybe-uninitialized.
1509
24314386
MG
15102014-06-24 Marc Glisse <marc.glisse@inria.fr>
1511
1512 PR tree-optimization/57742
1513 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
1514 (handle_builtin_malloc, handle_builtin_memset): New functions.
1515 (strlen_optimize_stmt): Call them.
1516 * passes.def: Move strlen after loop+dom but before vrp.
1517
8d37375b
JJ
15182014-06-24 Jakub Jelinek <jakub@redhat.com>
1519
1520 PR target/61570
1521 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
1522 model family 6 CPU with has_longmode never use a CPU without
1523 64-bit support.
1524
fb112177
L
15252014-06-24 H.J. Lu <hongjiu.lu@intel.com>
1526
1527 PR target/61570
1528 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
1529 the last change.
1530
1eb68d2d
TS
15312014-06-24 Trevor Saunders <tsaunders@mozilla.com>
1532
1533 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
1534 * dominance.c (iterate_fix_dominators): Use hash_map instead of
1535 pointer_map.
1536 * hash-map.h: New file.
1537 * ipa-comdats.c: Use hash_map instead of pointer_map.
1538 * ipa.c: Likewise.
1539 * lto-section-out.c: Adjust.
1540 * lto-streamer.h: Replace pointer_map with hash_map.
1541 * symtab.c (verify_symtab): Likewise.
1542 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
1543 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
1544 * tree-streamer.h: Likewise.
1545 * tree-streamer.c: Adjust.
1546 * pointer-set.h: Remove pointer_map.
1547
84baa4b9
TS
15482014-06-24 Trevor Saunders <tsaunders@mozilla.com>
1549
1550 * hash-table.h: Add a template arg to choose between storing values
1551 and storing pointers to values, and then provide partial
1552 specializations for both.
1553 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
1554 should store, not the type values should point to.
1555 * tree-into-ssa.c (var_info_hasher): Likewise.
1556 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
1557 * tree-complex.c: Adjust.
1558 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
1559 table instead of int_tree_map *.
1560 * tree-parloops.c: Adjust.
1561 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
1562 type is being stored.
1563 * tree-vectorizer.c: Adjust.
1564
c203e8a7
TS
15652014-06-24 Trevor Saunders <tsaunders@mozilla.com>
1566
1567 * hash-table.h: Remove a layer of indirection from hash_table so that
1568 it contains the hash table's data instead of a pointer to the data.
1569 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
1570 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
1571 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
1572 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
1573 fold-const.c, gcse.c, ggc-common.c,
1574 gimple-ssa-strength-reduction.c, gimplify.c,
1575 graphite-clast-to-gimple.c, graphite-dependences.c,
1576 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
1577 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
1578 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
1579 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
1580 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
1581 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
1582 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
1583 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
1584 tree-ssa-live.c, tree-ssa-loop-im.c,
1585 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
1586 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
1587 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
1588 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
dd5e7837
UB
1589 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
1590 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
1591 vtable-verify.c, vtable-verify.h: Adjust.
c203e8a7 1592
99753277
RB
15932014-06-24 Richard Biener <rguenther@suse.de>
1594
1595 PR tree-optimization/61572
1596 * tree-ssa-sink.c (statement_sink_location): Do not sink
1597 loads from hard registers.
1598
b46ebd6c
JJ
15992014-06-24 Jakub Jelinek <jakub@redhat.com>
1600
56ad0e38
JJ
1601 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
1602 not mentioned in clauses use private clause if the iterator is
1603 declared in #pragma omp for simd, and when adding lastprivate
1604 instead, add it to the outer #pragma omp for too. Diagnose
1605 if the variable is private in outer context. For simd collapse > 1
1606 loops, replace all iterators with temporaries.
1607 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
1608 same even in collapse > 1 loops.
1609
b46ebd6c
JJ
1610 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
1611 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
1612 non-NULL.
1613 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
1614 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
1615 non-NULL.
1616 (gimplify_adjust_omp_clauses): Likewise.
1617 * omp-low.c (lower_rec_simd_input_clauses,
1618 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
1619 safelen the same as safelen(1).
1620 * tree-nested.c (convert_nonlocal_omp_clauses,
1621 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
1622 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
1623 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
1624 Fixup handling of GIMPLE_OMP_TARGET.
1625 (convert_tramp_reference_stmt, convert_gimple_call): Handle
1626 GIMPLE_OMP_TARGET.
1627
33512353
CLT
16282014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
1629
1630 PR tree-optimization/61554
1631 * tree-ssa-propagate.c: Include "bitmap.h".
1632 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
1633 properly update constructor/destructor.
1634 (substitute_and_fold_dom_walker::before_dom_children):
1635 Remove call to gimple_purge_dead_eh_edges, add bb->index to
1636 need_eh_cleaup instead.
1637 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
1638 need_eh_cleanup.
1639
eb6a09a7
JH
16402014-06-23 Jan Hubicka <hubicka@ucw.cz>
1641
1642 * varpool.c (dump_varpool_node): Dump used_by_single_function.
1643 * tree-pass.h (make_pass_ipa_single_use): New pass.
1644 * cgraph.h (used_by_single_function): New flag.
dd5e7837
UB
1645 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
1646 Stream it.
eb6a09a7
JH
1647 * passes.def (pass_ipa_single_use): Scedule.
1648 * ipa.c (BOTTOM): New macro.
1649 (meet): New function
1650 (propagate_single_user): New function.
1651 (ipa_single_use): New function.
1652 (pass_data_ipa_single_use): New pass.
1653 (pass_ipa_single_use): New pass.
1654 (pass_ipa_single_use::gate): New gate.
1655 (make_pass_ipa_single_use): New function.
1656
47c80ef5
KT
16572014-06-23 Kai Tietz <ktietz@redhat.com>
1658
1659 PR target/39284
dd5e7837
UB
1660 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
1661 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
47c80ef5 1662
e5d8bd8c
RB
16632014-06-23 Richard Biener <rguenther@suse.de>
1664
1665 * tree-ssa-loop.c (gate_loop): New function.
1666 (pass_tree_loop::gate): Call it.
1667 (pass_data_tree_no_loop, pass_tree_no_loop,
1668 make_pass_tree_no_loop): New.
1669 * tree-vectorizer.c: Include tree-scalar-evolution.c
1670 (pass_slp_vectorize::execute): Initialize loops and SCEV if
1671 required.
1672 (pass_slp_vectorize::clone): New method.
1673 * timevar.def (TV_TREE_NOLOOP): New.
1674 * tree-pass.h (make_pass_tree_no_loop): Declare.
1675 * passes.def (pass_tree_no_loop): New pass group with
1676 SLP vectorizer.
1677
228e5d2b
L
16782014-06-23 H.J. Lu <hongjiu.lu@intel.com>
1679
1680 PR target/61570
1681 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
1682 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
1683
0379033b
JG
16842014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
1685
1686 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
1687 "yes" where needed.
1688
82bb9245
AM
16892014-06-23 Alan Modra <amodra@gmail.com>
1690
1691 PR bootstrap/61583
1692 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
1693 to zero on debug statements.
1694
de6c4e1f 16952014-06-23 Alan Lawrence <alan.lawrence@arm.com>
096c59be
AL
1696
1697 PR target/60825
1698 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
1699 Ignore third operand if present by marking qualifier_internal.
1700
1701 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
1702
1703 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
1704 vector extension.
1705 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
1706 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
1707 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
1708 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
1709 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
1710 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
1711 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
1712 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
1713 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
1714 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
1715 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
1716 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
1717 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
1718 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
1719 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
1720 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
1721 logic in GCC vector extensions
82bb9245 1722
096c59be
AL
1723 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
1724 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
1725 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
1726 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
1727 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
1728 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
1729 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
1730 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
1731 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
1732 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
1733
1734 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
1735
1736 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
1737 extensions.
1738
1739 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
1740 (vget_low_s64): Use __GET_LOW macro.
1741 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
1742 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
1743 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
1744 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
1745 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
1746
1747 (vcombine_s64): Use GCC vector extensions; remove cast.
1748 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
1749 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
1750 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
1751 Fix type signature; remove cast.
1752
de6c4e1f 17532014-06-23 Alan Lawrence <alan.lawrence@arm.com>
c6a29a09
AL
1754
1755 PR target/60825
1756 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
1757 V1DFmode.
1758 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
1759 add V1DFmode
1760 (BUILTIN_VD1): New.
1761 (BUILTIN_VD_RE): Remove.
1762 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
1763 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
1764 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
1765 variant but not df.
1766 (vreinterpretv1df*, vreinterpret*v1df): New.
1767 (vreinterpretdf*, vreinterpret*df): Remove.
dd5e7837
UB
1768 * config/aarch64/aarch64-simd.md (aarch64_create,
1769 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
c6a29a09
AL
1770 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
1771 (VD1): New.
1772 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
1773 (vcreate_f64): Remove cast, use v1df builtin.
1774 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
1775 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
1776 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
1777 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
1778 vmov_n_f64, vst1_f64): Use gcc vector extensions.
1779 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
1780 add range check using __builtin_aarch64_im_lane_boundsi.
1781 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
1782 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
1783 type signature, use gcc vector extensions.
1784 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
1785 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
1786 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
1787 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
1788 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
1789 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
1790 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
1791 vreinterpret_u64_f64): Use v1df builtin not df.
1792
463036be
JG
17932014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
1794
1795 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
1796 vector registers.
1797
1cff83e2
JH
17982014-06-23 Jan Hubicka <hubicka@ucw.cz>
1799
dd5e7837
UB
1800 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
1801 priority directly.
1cff83e2 1802
2c97f472
ZC
18032014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1804
1805 * loop-invariant.c (pre_check_invariant_p): New function.
1806 (find_invariant_insn): Call pre_check_invariant_p.
1807
08281ce0
RH
18082014-06-22 Richard Henderson <rth@redhat.com>
1809
1810 PR target/61565
1811 * compare-elim.c (struct comparison): Add eh_note.
1812 (find_comparison_dom_walker::before_dom_children): Don't eliminate
1813 a redundant comparison in a different EH region. Purge EH edges if
1814 necessary.
1815
37317a1f
SB
18162014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
1817
1818 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
1819 (var_shift): Use it.
1820 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
1821 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
1822 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
1823 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
1824 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
1825 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
1826 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
1827 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
1828 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
1829 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
1830 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
1831 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
1832 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
1833 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
1834 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
1835 *rotldi3_internal15be): Use the new attribute. Merge register and
1836 integer alternatives.
1837
85c1cb22
SB
18382014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
1839
1840 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
1841 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
1842 split, *ashrdi3_internal3 and split): Delete, merge into...
1843 (ashr<mode>3): New expander.
1844 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
1845 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
1846
137b8eb2
SB
18472014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
1848
1849 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
1850 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
1851 *rotldi3_internal3 and split): Delete, merge into...
1852 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
1853 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
1854 Use "rotlw" extended mnemonic.
1855
d70be98e
SB
18562014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
1857
1858 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
1859 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
1860 and split, *ashldi3_internal3 and split): Delete, merge into...
1861 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
1862 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
1863
f39a447c
SB
18642014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
1865
1866 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
1867 (lshrsi3, two anonymous define_insns and define_splits,
1868 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
1869 *lshrdi3_internal3 and split): Delete, merge into...
1870 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
1871 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
1872
1a2443af
SB
18732014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
1874
1875 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
1876 Remove "O" alternative.
1877
82db17cb
RS
18782014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
1879
1880 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
1881 (mips_move_from_gpr_cost): Likewise.
1882 (mips_register_move_cost): Update accordingly.
1883 (mips_secondary_reload_class): Remove name of in_p.
1884
43c5fcfc
MG
18852014-06-22 Marc Glisse <marc.glisse@inria.fr>
1886
1887 PR target/61503
1888 * config/i386/i386.md (x86_64_shrd, x86_shrd,
1889 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
1890
47657153
JBG
18912014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1892
1893 * config/nios2/nios2.c: Include "builtins.h".
1894
714c800f
JH
18952014-06-20 Jan Hubicka <hubicka@ucw.cz>
1896
1897 * cgraph.h (tls_model_names): New variable.
1898 * print-tree.c (print_node): Simplify.
1899 * varpool.c (tls_model_names): New variable.
1900 (dump_varpool_node): Output tls model.
1901
b4897212
JH
19022014-06-20 Jan Hubicka <hubicka@ucw.cz>
1903
1904 * ipa-visibility.c (function_and_variable_visibility): Disable
1905 temporarily local aliases for some targets.
1906
0e37a2f3
MP
19072014-06-20 Marek Polacek <polacek@redhat.com>
1908
1909 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
1910 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
1911 into SANITIZE_UNDEFINED.
1912 * doc/invoke.texi: Describe -fsanitize=bounds.
1913 * gimplify.c (gimplify_call_expr): Add gimplification of internal
1914 functions created in the FEs.
1915 * internal-fn.c: Move "internal-fn.h" after "tree.h".
1916 (expand_UBSAN_BOUNDS): New function.
1917 * internal-fn.def (UBSAN_BOUNDS): New internal function.
1918 * internal-fn.h: Don't define internal functions here.
1919 * opts.c (common_handle_option): Add -fsanitize=bounds.
1920 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
1921 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
1922 * tree-core.h: Define internal functions here.
1923 (struct tree_base): Add ifn field.
1924 * tree-pretty-print.c: Include "internal-fn.h".
1925 (dump_generic_node): Handle functions without CALL_EXPR_FN.
1926 * tree.c (get_callee_fndecl): Likewise.
1927 (build_call_expr_internal_loc): New function.
1928 * tree.def (CALL_EXPR): Update description.
1929 * tree.h (CALL_EXPR_IFN): Define.
1930 (build_call_expr_internal_loc): Declare.
1931 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
1932 types.
1933 (ubsan_type_descriptor): Change bool parameter to enum
1934 ubsan_print_style. Adjust the code. Add handling of
1935 UBSAN_PRINT_ARRAY.
1936 (ubsan_expand_bounds_ifn): New function.
1937 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
1938 (ubsan_build_overflow_builtin): Likewise.
1939 (instrument_bool_enum_load): Likewise.
1940 (ubsan_instrument_float_cast): Likewise.
1941 * ubsan.h (enum ubsan_print_style): New enum.
1942 (ubsan_expand_bounds_ifn): Declare.
1943 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
1944
96740472
MR
19452014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
1946
1947 * config/rs6000/rs6000.md: Append `DONE' to preparation
1948 statements of `bswap' pattern splitters.
1949
73b3e61b
TV
19502014-06-20 Tom de Vries <tom@codesourcery.com>
1951
1952 * target.def (call_fusage_contains_non_callee_clobbers): Update
1953 definition.
1954 * doc/tm.texi: Regenerate.
1955
0cbf438b
YG
19562014-06-20 Yury Gribov <y.gribov@samsung.com>
1957 Max Ostapenko <m.ostapenko@partner.samsung.com>
1958
1959 PR sanitizer/61547
1960 * asan.c (instrument_strlen_call): Fixed instrumentation of
1961 trailing byte.
1962
bec81025
MJ
19632014-06-20 Martin Jambor <mjambor@suse.cz>
1964
1965 PR ipa/61540
1966 * ipa-prop.c (impossible_devirt_target): New function.
1967 (try_make_edge_direct_virtual_call): Use it, also instead of
1968 asserting.
1969
bf613c02
YG
19702014-06-20 Yury Gribov <y.gribov@samsung.com>
1971 Max Ostapenko <m.ostapenko@partner.samsung.com>
1972
1973 PR sanitizer/61530
1974 * asan.c (build_check_stmt): Add condition.
1975
803d0ab0
MJ
19762014-06-20 Martin Jambor <mjambor@suse.cz>
1977
1978 PR ipa/61211
1979 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
1980 expanded clones.
1981
278821f2
KT
19822014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1983
1984 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
1985 Update comments.
1986 (VCONQ): Make comment more helpful.
1987 (VCON): Delete.
1988 * config/aarch64/aarch64-simd.md
1989 (aarch64_sqdmulh_lane<mode>):
1990 Use VCOND for operands 2. Update lane checking and flipping logic.
1991 (aarch64_sqrdmulh_lane<mode>): Likewise.
1992 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
1993 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
1994 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
1995 attribute of operand 3 to VCOND.
1996 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
1997 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
1998 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
1999 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
2000 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
2001 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
2002 define_insn.
2003 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
2004 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
2005 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
2006 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
2007 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
2008 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
2009 operand to VCOND. Update lane flipping and bounds checking logic.
2010 (aarch64_sqdmlal2_lane<mode>): Likewise.
2011 (aarch64_sqdmlsl_lane<mode>): Likewise.
2012 (aarch64_sqdmull_lane<mode>): Likewise.
2013 (aarch64_sqdmull2_lane<mode>): Likewise.
2014 (aarch64_sqdmlal_laneq<mode>):
2015 Replace VCON usage with VCONQ.
2016 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
2017 (aarch64_sqdmlal2_laneq<mode>): Emit
2018 aarch64_sqdmlal2_laneq<mode>_internal insn.
2019 Replace VCON with VCONQ.
2020 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
2021 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
2022 (aarch64_sqdmull_laneq<mode>): Emit
2023 aarch64_sqdmull_laneq<mode>_internal insn.
2024 Replace VCON with VCONQ.
2025 (aarch64_sqdmull2_laneq<mode>): Emit
2026 aarch64_sqdmull2_laneq<mode>_internal insn.
2027 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
2028 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
2029 of 3rd argument to int16x4_t.
2030 (vqdmlalh_lane_s16): Likewise.
2031 (vqdmlslh_lane_s16): Likewise.
2032 (vqdmull_high_lane_s16): Likewise.
2033 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
2034 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
2035 (vqdmlsl_lane_s16): Likewise.
2036 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
2037 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
2038 (vqdmlals_lane_s32): Likewise.
2039 (vqdmlsls_lane_s32): Likewise.
2040 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
2041 (vqdmulls_lane_s32): Likewise.
2042 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
2043 (vqdmlsl_lane_s32): Likewise.
2044 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
2045 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
2046 (vqrdmulhh_lane_s16): Likewise.
2047 (vqdmlsl_high_lane_s16): Likewise.
2048 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
2049 (vqdmlsl_high_lane_s32): Likewise.
2050 (vqrdmulhs_lane_s32): Likewise.
2051
6621ab68
TV
20522014-06-20 Tom de Vries <tom@codesourcery.com>
2053
2054 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
2055 get_call_reg_set_usage.
2056
5fea8186
TV
20572014-06-20 Tom de Vries <tom@codesourcery.com>
2058
2059 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
2060 it contains all call_used_regs.
2061
53f2f6c1
TV
20622014-06-20 Tom de Vries <tom@codesourcery.com>
2063
2064 * final.c (collect_fn_hard_reg_usage): Add and use variable
2065 function_used_regs.
2066
569b1784
JH
20672014-06-20 Jan Hubicka <hubicka@ucw.cz>
2068
2069 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
2070 (set_init_priority, get_init_priority, set_fini_priority,
2071 get_fini_priority): New methods.
2072 * tree.c (init_priority_for_decl): Remove.
2073 (init_ttree): Do not initialize init priority.
2074 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
2075 (decl_priority_info): Remove.
2076 (decl_init_priority_insert): Rewrite.
2077 (decl_fini_priority_insert): Rewrite.
2078 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
2079 tree_priority_map_marked_p): Remove.
2080 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
2081 * lto-streamer-out.c (hash_tree): Do not hash priorities.
2082 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
2083 not output priorities.
2084 (pack_ts_function_decl_value_fields): Likewise.
2085 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
2086 not input priorities.
2087 (unpack_ts_function_decl_value_fields): Likewise.
2088 * symtab.c (symbol_priority_map): Declare.
2089 (init_priority_hash): Declare.
2090 (symtab_unregister_node): Unregister from priority hash, too.
2091 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
2092 New methods.
2093 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
2094 (symbol_priority_info): New function.
2095 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
2096 New methods.
2097 * tree-core.h (tree_priority_map): Remove.
2098
88f5cfcd
JJ
20992014-06-20 Jakub Jelinek <jakub@redhat.com>
2100
2101 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
2102 0xff to uint64_t before shifting it up.
2103
6d45574a
JB
21042014-06-20 Julian Brown <julian@codesourcery.com>
2105 Chung-Lin Tang <cltang@codesourcery.com>
2106
2107 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
2108 TARGET_THUMB1_ONLY. Add comments.
2109
d07a3fed
TV
21102014-06-19 Tom de Vries <tom@codesourcery.com>
2111
2112 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
2113 return type to void.
2114 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
2115
61fc05c7
ZC
21162014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2117
2118 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
2119 as "move", from depends_on.
2120
dbb73879
TG
21212014-06-19 Terry Guo <terry.guo@arm.com>
2122
2123 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
2124 stage.
2125
36bd0c3e
SB
21262014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
2127
2128 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
2129 Remove cr5.
2130 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
2131
be6b0bec
KK
21322014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
2133
2134 PR target/61550
2135 * config/sh/sh.c (prepare_move_operands): Don't process TLS
2136 addresses here if reload in progress or completed.
2137
c31d2d11
RS
21382014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
2139
a78cc314
RS
2140 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
2141 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
2142 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
2143 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
2144 (mips_register_priority): New function that implements the target
2145 hook TARGET_REGISTER_PRIORITY.
2146 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
2147 (mips_lra_p): Likewise for TARGET_LRA_P.
2148 (TARGET_REGISTER_PRIORITY): Define macro.
2149 (TARGET_SPILL_CLASS): Likewise.
2150 (TARGET_LRA_P): Likewise.
2151 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
2152 classes.
2153 (REG_CLASS_NAMES): Likewise.
2154 (REG_CLASS_CONTENTS): Likewise.
2155 (BASE_REG_CLASS): Use M16_SP_REGS.
2156 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
2157 New set attribute to enable alternatives depending on the register
2158 allocator used.
2159 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
2160 (*lea64): Disable pattern for MIPS16.
2161 * config/mips/mips.opt (mlra): New option.
2162
21632014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
2164
82bb9245
AM
2165 * lra-constraints.c (base_to_reg): New function.
2166 (process_address): Use new function.
c31d2d11 2167
78607708
TV
21682014-06-18 Tom de Vries <tom@codesourcery.com>
2169
2170 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
2171 * config/aarch64/aarch64.c
2172 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
2173 (aarch64_emit_call_insn): New function.
2174 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
2175 of emit_call_insn.
2176 * config/aarch64/aarch64.md (define_expand "call_internal")
2177 (define_expand "call_value_internal", define_expand "sibcall_internal")
2178 (define_expand "sibcall_value_internal"): New.
2179 (define_expand "call", define_expand "call_value")
2180 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
2181 expand variant and aarch64_emit_call_insn.
2182
7a32d6c4 21832014-06-18 Radovan Obradovic <robradovic@mips.com>
dd5e7837 2184 Tom de Vries <tom@codesourcery.com>
7a32d6c4
RO
2185
2186 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
2187 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
2188 Redefine to true.
2189 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
2190 clobbers to CALL_INSN_FUNCTION_USAGE.
2191 (define_expand "sibcall_internal")
2192 (define_expand "sibcall_value_internal"): New.
2193 (define_expand "call", define_expand "call_value"): Add argument to
2194 arm_emit_call_insn.
2195 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
2196 (define_expand "sibcall_value"): Use sibcall_value_internal and
2197 arm_emit_call_insn.
2198
4b9fcb37
CB
21992014-06-18 Charles Baylis <charles.baylis@linaro.org>
2200
2201 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
2202
a7a7d3c8
CB
22032014-06-18 Charles Baylis <charles.baylis@linaro.org>
2204
2205 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
2206 __udivmoddi4.
2207
158ef346
CB
22082014-06-18 Charles Baylis <charles.baylis@linaro.org>
2209
2210 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
2211 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
2212 annotations. Fix DWARF information.
2213
13381189
CB
22142014-06-18 Charles Baylis <charles.baylis@linaro.org>
2215
2216 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
2217 __udivmoddi4, and fixups for negative operands.
2218
f493def1
CB
22192014-06-18 Charles Baylis <charles.baylis@linaro.org>
2220
2221 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
2222
0b227df4
CB
22232014-06-18 Charles Baylis <charles.baylis@linaro.org>
2224
2225 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
2226 to __udivmoddi4.
2227
c9dae335
CB
22282014-06-18 Charles Baylis <charles.baylis@linaro.org>
2229
2230 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
2231 manipulation.
2232
6857b807
CB
22332014-06-18 Charles Baylis <charles.baylis@linaro.org>
2234
2235 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
2236 describing register usage on function entry and exit.
2237
f21d8faa
CB
22382014-06-18 Charles Baylis <charles.baylis@linaro.org>
2239
2240 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
2241 (__aeabi_ldivmod): Fix whitespace.
2242
544aee0d
AS
22432014-06-18 Andreas Schwab <schwab@suse.de>
2244
2245 * doc/md.texi (Standard Names): Use @itemx for grouped items.
2246 Remove blank line after @item.
2247
0bc11714
RH
22482014-06-18 Richard Henderson <rth@redhat.com>
2249
2250 PR target/61545
2251 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
2252
7b5b78b1
CB
22532014-06-18 Charles Baylis <charles.baylis@linaro.org>
2254
2255 * config/arm/arm.c (neon_vector_mem_operand): Allow register
2256 POST_MODIFY for neon loads and stores.
2257 (arm_print_operand): Output post-index register for neon loads and
2258 stores.
2259
54ed41ea
RB
22602014-06-18 Richard Biener <rguenther@suse.de>
2261
2262 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
2263
30866dc9
RB
22642014-06-18 Richard Biener <rguenther@suse.de>
2265
2266 * tree-pass.h (make_pass_dce_loop): Remove.
2267 * passes.def: Replace pass_dce_loop with pass_dce.
2268 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
2269 changed free niter estimates and reset the scev cache.
2270 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
2271 make_pass_dce_loop): Remove.
2272 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
2273 (fini_copy_prop): Return whether something changed. Always
2274 let substitute_and_fold perform DCE and free niter estimates
2275 and reset the scev cache if so.
2276 (execute_copy_prop): If sth changed schedule cleanup-cfg.
2277 (pass_data_copy_prop): Do not unconditionally schedule
2278 cleanup-cfg or update-ssa.
2279
560c75e9
YR
22802014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
2281
2282 PR tree-optimization/61518
2283 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
2284 reduction var is used in reduction stmt or phi-function only.
2285
751738cb
KT
22862014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2287
2288 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
2289
a31d2741
TP
22902014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
2291
2292 PR tree-optimization/61517
2293 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
2294 whose rhs's first tree is the source expression instead of the
2295 expression itself.
2296 (find_bswap_or_nop): Likewise.
2297 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
2298 gimple stmt whose rhs's first tree is the source. In the memory source
2299 case, move the stmt to be replaced close to one of the original load to
2300 avoid the problem of a store between the load and the stmt's original
2301 location.
2302 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
2303 signature.
2304
a0f37b26
AS
23052014-06-18 Andreas Schwab <schwab@suse.de>
2306
2307 PR rtl-optimization/54555
2308 * postreload.c (move2add_use_add2_insn): Substitute
2309 STRICT_LOW_PART only if it is cheaper.
2310
9fdb837f
UB
23112014-06-18 Uros Bizjak <ubizjak@gmail.com>
2312
2313 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
2314 Do not use unspec as call operand. Use memory_operand instead of
2315 memory_nox32_operand and add "m" operand constraint. Disable
2316 pattern for TARGET_X32.
2317 (*sibcall_pop_memory): Ditto.
2318 (*sibcall_value_memory): Ditto.
2319 (*sibcall_value_pop_memory): Ditto.
2320 (sibcall peepholes): Merge SImode and DImode patterns using
2321 W mode iterator. Use memory_operand instead of memory_nox32_operand.
2322 Disable pattern for TARGET_X32. Check if eliminated register is
2323 really dead after call insn. Generate call RTX without unspec operand.
2324 (sibcall_value peepholes): Ditto.
2325 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
2326 instead of memory_nox32_operand. Check if eliminated register is
2327 really dead after call insn. Generate call RTX without unspec operand.
2328 (sibcall_value_pop peepholes): Ditto.
2329 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
2330
35d147ef
TG
23312014-06-18 Terry Guo <terry.guo@arm.com>
2332
2333 PR target/61544
2334 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
2335 reach the head.
2336
c41f1c42
BE
23372014-06-18 Olivier Hainque <hainque@adacore.com>
2338
2339 * tree-core.h (tree_block): Add an "end_locus" field, allowing
2340 memorization of the end of block source location.
2341 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
2342 * gimplify.c (gimplify_bind_expr): Propagate the block start and
2343 end source location info we have on the block entry/exit code we
2344 generate.
2345
68f6df73
RB
23462014-06-18 Richard Biener <rguenther@suse.de>
2347
2348 * common.opt (fssa-phiopt): New option.
2349 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
2350 but not with -Og.
2351 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
2352 * doc/invoke.texi (-fssa-phiopt): Document.
2353
419d45db
KT
23542014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2355
2356 * genattrtab.c (n_bypassed): New variable.
2357 (process_bypasses): Initialise n_bypassed.
2358 Count number of bypassed reservations.
2359 (make_automaton_attrs): Allocate space for bypassed reservations
2360 rather than number of bypasses.
2361
25b7069a
RB
23622014-06-18 Richard Biener <rguenther@suse.de>
2363
2364 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
2365 we propagated anything.
2366 (substitute_and_fold_dom_walker::before_dom_children): Something
2367 changed if we propagated into PHI arguments.
2368 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
2369 we removed a stmt.
2370
f7917029
ES
23712014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
2372
2373 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
2374 vector case.
2375 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
2376 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
2377 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
2378 Introduces alternative way of loads group permutaions.
2379 (vect_transform_grouped_load): Try alternative way of permutations.
2380
f014c653
JJ
23812014-06-18 Jakub Jelinek <jakub@redhat.com>
2382
9fdb837f
UB
2383 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
2384 changed in ORT_TARGET region, don't jump to do_outer.
f014c653
JJ
2385 (struct gimplify_adjust_omp_clauses_data): New type.
2386 (gimplify_adjust_omp_clauses_1): Adjust for data being
2387 a struct gimplify_adjust_omp_clauses_data pointer instead
2388 of tree *. Pass pre_p as a new argument to
2389 lang_hooks.decls.omp_finish_clause hook.
2390 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
2391 splay_tree_foreach to pass both list_p and pre_p.
2392 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
2393 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
2394 gimplify_adjust_omp_clauses callers.
2395 * langhooks.c (lhd_omp_finish_clause): New function.
2396 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
2397 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
2398 * langhooks.h (struct lang_hooks_for_decls): Add a new
2399 gimple_seq * argument to omp_finish_clause hook.
2400 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
2401 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
2402 (scan_omp_parallel, lower_omp_for): When adding
9fdb837f 2403 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
f014c653
JJ
2404 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
2405 * tree-nested.c (convert_nonlocal_omp_clauses,
2406 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
9fdb837f 2407 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
f014c653 2408
f2918c18
AM
24092014-06-17 Andrew MacLeod <amacleod@redhat.com>
2410
2411 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
2412 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
2413
90d0d8d3
XDL
24142014-06-17 Xinliang David Li <davidxl@google.com>
2415
2416 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
2417 * passes.c (pass_init_dump_file): Do not set initialize
2418 flag to false unconditionally.
2419
75509ba2
RB
24202014-06-17 Richard Biener <rguenther@suse.de>
2421
2422 * genopinit.c (main): Use vec<>::qsort method.
2423 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
2424 Likewise.
2425 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
2426
e58b74ea
MF
24272014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
2428
2429 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
2430 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
2431 (mips_move_to_gpr_cost): Remove ST_REGS case.
2432 (mips_move_from_gpr_cost): Likewise.
2433 (mips_register_move_cost): Likewise.
2434 (mips_secondary_reload_class): Likewise.
2435
9e4f27ef
RB
24362014-06-17 Richard Biener <rguenther@suse.de>
2437
2438 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
2439 (pass_all_optimizations): Move 3rd copy-prop pass from after
2440 fre to before ifcombine/phiopt.
2441
866f20d6
RB
24422014-06-17 Richard Biener <rguenther@suse.de>
2443
2444 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
2445 and allow all blocks to be forwarders.
2446
3abf17cf
YZ
24472014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
2448
2449 PR target/61483
2450 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
2451 variable 'size'; calculate 'size' right in the front; use
2452 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
2453 pcum->aapcs_stack_words.
2454
ba3cf9f1
NC
24552014-06-17 Nick Clifton <nickc@redhat.com>
2456
2457 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
2458 (umulhi3, mulsidi3, umulsidi3): Likewise.
2459
7a75b6e2
TS
24602014-06-17 Thomas Schwinge <thomas@codesourcery.com>
2461
2462 PR middle-end/61508
2463 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
2464 check for section name.
2465
ec18e2eb
RB
24662014-06-17 Richard Biener <rguenther@suse.de>
2467
2468 * tree-ssa-propagate.c: Include domwalk.h.
2469 (substitute_and_fold): Outline main worker into a domwalker ...
2470 (substitute_and_fold_dom_walker::before_dom_children): ... here.
2471 Schedule stmts we can fully propagate for removal. Remove
2472 poor-mans DCE.
2473 (substitute_and_fold): Apply a dominator walk to perform
2474 substitution. Process stmts scheduled for removal here.
2475
a4ab23b6
RB
24762014-06-17 Richard Biener <rguenther@suse.de>
2477
2478 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
2479 of PHI node moving.
2480
5db37871
KV
24812014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
2482
2483 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
2484 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
2485 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
2486 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
2487 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
2488 TARGET_HARD_FLOAT.
2489 (get_fpscr) : Likewise.
2490
ba38538f
VM
24912014-06-16 Vladimir Makarov <vmakarov@redhat.com>
2492
2493 PR rtl-optimization/61325
2494 * lra-constraints.c (valid_address_p): Add forward declaration.
2495 (simplify_operand_subreg): Check address validity before and after
2496 alter_reg of memory subreg.
2497
7049aed6
UB
24982014-06-16 Uros Bizjak <ubizjak@gmail.com>
2499
2500 * config/i386/i386.c (decide_alg): Correctly handle
2501 maximum size of stringop algorithm.
2502
241e298a
YG
25032014-06-16 Yury Gribov <y.gribov@samsung.com>
2504
2505 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
2506
1df2287f
VM
25072014-06-16 Vladimir Makarov <vmakarov@redhat.com>
2508
2509 PR rtl-optimization/61522
7049aed6 2510 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
1df2287f 2511
da66d596
JH
25122014-06-16 Jan Hubicka <hubicka@ucw.cz>
2513
2514 Revert:
2515 * symtab.c (symtab_node::reset_section): New method.
2516 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
2517 for localization.
2518 * cgraph.h (reset_section): Declare.
2519 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
2520 do not consider comdat locals.
2521 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
2522 for new symbol.
2523 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
2524 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
2525 reset sections of symbols dragged out of the comdats.
9fdb837f
UB
2526 (function_and_variable_visibility): Reset sections of
2527 localized symbols.
da66d596 2528
9e9f6bf0
RB
25292014-06-16 Richard Biener <rguenther@suse.de>
2530
2531 PR tree-optimization/61482
2532 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
2533 [-INF(OVF), +INF(OVF)] range.
2534
2bd4bfee
GG
25352014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2536
7964957f
AS
2537 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
2538 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
2bd4bfee
GG
2539 handling 32-bit multiplication.
2540
debd8f30
CLT
25412014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
2542
2543 PR middle-end/61430
2544 * lra-lives.c (process_bb_lives): Skip creating copy during
2545 insn scan when src/dest has constrained to same regno.
2546
6192fa79
JH
25472014-06-15 Jan Hubicka <hubicka@ucw.cz>
2548
2549 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
2550 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
2551
8946c29e
YG
25522014-06-16 Yury Gribov <y.gribov@samsung.com>
2553
2554 * asan.c (check_func): New function.
2555 (maybe_create_ssa_name): Likewise.
2556 (build_check_stmt_with_calls): Likewise.
2557 (use_calls_p): Likewise.
2558 (report_error_func): Change interface.
2559 (build_check_stmt): Allow non-integer lengths; add support
2560 for new parameter.
2561 (asan_instrument): Likewise.
7049aed6 2562 (instrument_mem_region_access): Moved code to build_check_stmt.
8946c29e
YG
2563 (instrument_derefs): Likewise.
2564 (instrument_strlen_call): Likewise.
7049aed6 2565 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
8946c29e
YG
2566 * doc/invoke.texi: Describe new parameter.
2567 * params.def: Define new parameter.
2568 * params.h: Likewise.
2569 * sanitizer.def: Describe new builtins.
2570
5d5cb4d4
RB
25712014-06-16 Richard Biener <rguenther@suse.de>
2572
2573 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2574 Make all defs available at the end.
2575 (eliminate): If we remove a PHI node schedule cfg-cleanup.
2576
4e4fa3c5
JJ
25772014-06-18 Jakub Jelinek <jakub@redhat.com>
2578
2579 PR plugins/45078
2580 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
2581
737c262e
RS
25822014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
2583
2584 PR bootstrap/61516
2585 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
2586 initialization. Replace remaining use of uid.
2587
56363ffd
JH
25882014-06-15 Jan Hubicka <hubicka@ucw.cz>
2589
7049aed6
UB
2590 * c-family/c-common.c (handle_tls_model_attribute): Use
2591 set_decl_tls_model.
5d5cb4d4
RB
2592 * c-family/c-common.c (handle_tls_model_attribute): Use
2593 set_decl_tls_model.
56363ffd
JH
2594 * cgraph.h (struct varpool_node): Add tls_model.
2595 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
2596 * tree.h (DECL_TLS_MODEL): Update.
2597 (DECL_THREAD_LOCAL_P): Check that variable is static.
2598 (decl_tls_model): Declare.
2599 (set_decl_tls_model): Declare.
2600 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
2601 set symbol prorperties.
2602 (get_emutls_init_templ_addr): Cleanup.
2603 (new_emutls_decl): Update.
2604 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
2605 (lto_input_varpool_node): Likewise.
2606 * lto-streamer-out.c (hash_tree): Likewise.
2607 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
2608 not stream DECL_TLS_MODEL.
30256bef
UB
2609 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
2610 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
56363ffd 2611
3bb5c996
RS
26122014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
2613
2614 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
2615
b512946c
RS
26162014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
2617
2618 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
2619 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
2620 lists.
2621 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
2622 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
2623 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
2624 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
2625 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
2626 (df_get_artificial_defs, df_get_artificial_uses)
2627 (df_single_def, df_single_use): Update accordingly.
2628 (df_refs_chain_dump): Take the first element in a linked list as
2629 parameter, rather than a pointer to an array of pointers.
2630 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
2631 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
2632 (df_chain_create_bb_process_use): Likewise.
2633 (df_md_bb_local_compute_process_def): Likewise.
2634 * fwprop.c (process_defs, process_uses): Likewise.
2635 (register_active_defs, update_uses): Likewise.
2636 (forward_propagate_asm): Update for new df_ref linking.
2637 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
2638 (df_null_ref_rec, df_null_mw_rec): Likewise.
2639 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
2640 explicitly.
2641 (df_scan_free_bb_info): Remove check for null artificial_defs.
2642 (df_install_ref_incremental): Adjust for new df_ref linking.
2643 Use a single-element insertion rather than a full sort.
2644 (df_ref_chain_delete_du_chain): Take the first element
2645 in a linked list as parameter, rather than a pointer to an array of
2646 pointers.
2647 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
2648 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
2649 (df_insn_info_delete): Remove check for null defs and call to
2650 df_scan_free_mws_vec.
2651 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
2652 null rather than df_null_*_rec.
2653 (df_insn_rescan_debug_internal): Likewise, and update null
2654 checks in the same way. Remove check for null defs.
2655 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
2656 Move a single element rather doing a full sort.
2657 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
2658 linking.
2659 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
2660 Initialize df_ref and df_mw_hardreg lists to null rather than
2661 df_null_*_rec.
2662 (df_ref_compare): Take df_refs as parameter, transferring the
2663 old interface to...
2664 (df_ref_ptr_compare): ...this new function.
2665 (df_sort_and_compress_refs): Update accordingly.
2666 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
2667 old interface to...
2668 (df_mw_ptr_compare): ...this new function.
2669 (df_sort_and_compress_mws): Update accordingly.
2670 (df_install_refs, df_install_mws): Return a linked list rather than
2671 an array of pointers.
2672 (df_refs_add_to_chains): Assert that old lists are empty rather
2673 than freeing them.
2674 (df_insn_refs_verify): Don't handle null defs speciailly.
2675 * web.c (union_match_dups): Update for new df_ref linking.
2676
5a474220
RS
26772014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
2678
2679 * df.h (df_ref_create, df_ref_remove): Delete.
2680 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
2681 (df_ref_remove): Likewise.
2682
74e59b6c
RS
26832014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
2684
2685 * df.h (df_single_def, df_single_use): New functions.
2686 * ira.c (find_moveable_pseudos): Use them.
2687
fc8e9f58
RS
26882014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
2689
2690 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
2691 * df-problems.c (df_note_bb_compute): Use it.
2692 * regstat.c (regstat_bb_compute_ri): Likewise.
2693
292321a5
RS
26942014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
2695
2696 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
2697 * cse.c (cse_extended_basic_block): Use them.
2698 * dce.c (mark_artificial_use): Likewise.
2699 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
2700 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
2701 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
2702 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
2703 (df_simulate_initialize_backwards): Likewise.
2704 (df_simulate_finalize_backwards): Likewise.
2705 (df_simulate_initialize_forwards): Likewise.
2706 (df_md_simulate_artificial_defs_at_top): Likewise.
2707 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
2708 * regrename.c (init_rename_info): Likewise.
2709 * regstat.c (regstat_bb_compute_ri): Likewise.
2710 (regstat_bb_compute_calls_crossed): Likewise.
2711
bfac633a
RS
27122014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
2713
2714 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
2715 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
2716 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
2717 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
2718 * combine.c (create_log_links): Likewise.
2719 * compare-elim.c (find_flags_uses_in_insn): Likewise.
2720 (try_eliminate_compare): Likewise.
2721 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
2722 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
2723 (remove_reg_equal_equiv_notes_for_defs): Likewise.
2724 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
2725 (word_dce_process_block, dce_process_block): Likewise.
2726 * ddg.c (def_has_ccmode_p): Likewise.
2727 * df-core.c (df_bb_regno_first_def_find): Likewise.
2728 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
2729 * df-problems.c (df_rd_simulate_one_insn): Likewise.
2730 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
2731 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
2732 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
2733 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
2734 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
2735 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
2736 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
2737 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
2738 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
2739 * fwprop.c (local_ref_killed_between_p): Likewise.
2740 (all_uses_available_at, free_load_extend): Likewise.
2741 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
2742 * hw-doloop.c (scan_loop): Likewise.
2743 * ifcvt.c (dead_or_predicable): Likewise.
2744 * init-regs.c (initialize_uninitialized_regs): Likewise.
2745 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
2746 (process_bb_node_lives): Likewise.
2747 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
2748 (find_moveable_pseudos): Likewise.
2749 * loop-invariant.c (check_dependencies, record_uses): Likewise.
2750 * recog.c (peep2_find_free_register): Likewise.
2751 * ree.c (get_defs): Likewise.
2752 * regstat.c (regstat_bb_compute_ri): Likewise.
2753 (regstat_bb_compute_calls_crossed): Likewise.
2754 * sched-deps.c (find_inc, find_mem): Likewise.
2755 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
2756 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
2757 * shrink-wrap.c (requires_stack_frame_p): Likewise.
2758 (prepare_shrink_wrap): Likewise.
2759 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
2760 * web.c (union_defs, pass_web::execute): Likewise.
2761 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
2762 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
2763
9afb455c
VM
27642014-06-13 Vladimir Makarov <vmakarov@redhat.com>
2765
2766 * lra-assign.c (assign_by_spills): Add code to assign vector regs
2767 to inheritance pseudos.
2768 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
2769
8241efd1
PB
27702014-06-13 Peter Bergner <bergner@vnet.ibm.com>
2771
2772 PR target/61415
2773 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
2774 (BU_MISC_2): Rename to ...
2775 (BU_LDBL128_2): ... this.
2776 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
2777 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
2778 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
2779 RS6000_BTM_LDBL128.
2780 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
2781 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
2782 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
2783 (unpacktf_1): Likewise.
2784 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
2785 (__builtin_longdouble_dw1): Likewise.
2786 * doc/sourcebuild.texi (longdouble128): Document.
2787
c7ece684
JL
27882014-06-13 Jeff Law <law@redhat.com>
2789
2790 PR rtl-optimization/61094
2791 PR rtl-optimization/61446
2792 * ree.c (combine_reaching_defs): Get the mode for the copy from
2793 the extension insn rather than the defining insn.
2794
8e96d784
DC
27952014-06-13 Dehao Chen <dehao@google.com>
2796
2797 * dwarf2out.c (add_linkage_name): Emit more linkage name.
2798
45b3824d
TS
27992014-06-13 Thomas Schwinge <thomas@codesourcery.com>
2800
2801 * doc/install.texi (--enable-linker-plugin-configure-flags)
2802 (--enable-linker-plugin-flags): Document new flags.
2803
beb683ab
MJ
28042014-06-13 Martin Jambor <mjambor@suse.cz>
2805
2806 PR ipa/61186
2807 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
2808 cache_token if returning early.
2809
f6c43824
NC
28102014-06-13 Nick Clifton <nickc@redhat.com>
2811
2812 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
2813 requested alignment is active.
2814 (LABEL_ALIGN): Likewise.
2815 (LOOP_ALIGN): Likewise.
2816
6aa4c5b6
RB
28172014-06-13 Richard Biener <rguenther@suse.de>
2818
2819 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2820 Rewrite to propagate the VN result into all uses where
2821 possible and to remove stmts becoming dead because of that.
2822 (eliminate): Generalize stmt removal handling, remove in
2823 reverse dominator order to support proper debug stmt
2824 generation. Update stmts before removing stmts.
7049aed6 2825 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
6aa4c5b6 2826
ca6cbdca
TP
28272014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
2828
2829 PR tree-optimization/61375
2830 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
2831 symbolic number cannot be represented in an uint64_t.
2832 (find_bswap_or_nop_1): Likewise.
2833
24e49ea0
JH
28342014-06-12 Jan Hubicka <hubicka@ucw.cz>
2835
2836 * symtab.c (symtab_node::reset_section): New method.
2837 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
2838 for localization.
2839 * cgraph.h (reset_section): Declare.
2840 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
2841 do not consider comdat locals.
2842 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
2843 for new symbol.
2844 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
2845 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
2846 reset sections of symbols dragged out of the comdats.
7049aed6
UB
2847 (function_and_variable_visibility): Reset sections of
2848 localized symbols.
24e49ea0 2849
6ad386b7
JH
28502014-06-12 Jan Hubicka <hubicka@ucw.cz>
2851
2852 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
2853 to use symtab and decl_binds_to_current_def_p
2854 * tree-vectorizer.c (increase_alignment): Increase alignment
2855 of alias target, too.
2856
9cf32741
JJ
28572014-06-12 Jakub Jelinek <jakub@redhat.com>
2858
2859 PR middle-end/61486
2860 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
2861 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
2862 if outer combined construct is distribute.
2863 (gimplify_omp_for): For OMP_DISTRIBUTE set
2864 gimplify_omp_ctxp->distribute.
2865 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
2866 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
2867 mapping into decl map.
2868
ca0e51a0
JM
28692014-06-12 Jason Merrill <jason@redhat.com>
2870
2871 * common.opt (fabi-version): Change default to 0.
2872
90d84934
JM
28732014-06-12 Jason Merrill <jason@redhat.com>
2874
2875 * toplev.c (process_options): Reject -fabi-version=1.
2876
551a6341
JL
28772014-06-12 Jeff Law <law@redhat.com>
2878
7964957f 2879 PR tree-optimization/61009
551a6341
JL
2880 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
2881 value when we stop processing a block due to problematic PHIs.
2882
5eba0999
AL
28832014-06-12 Alan Lawrence <alan.lawrence@arm.com>
2884
2885 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
2886 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
2887 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
2888 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
2889 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
2890 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
7049aed6
UB
2891 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
2892 are not in the spec.
5eba0999 2893
ad7d90cc
AL
28942014-06-10 Alan Lawrence <alan.lawrence@arm.com>
2895
2896 PR target/59843
2897 * config/aarch64/aarch64-modes.def: Add V1DFmode.
2898 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
2899 Support V1DFmode.
2900
9c85aeb6
EB
29012014-06-12 Eric Botcazou <ebotcazou@adacore.com>
2902
2903 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
2904
c407027e
GJL
29052014-06-12 Georg-Johann Lay <avr@gjlay.de>
2906
2907 PR target/61443
2908 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
2909 loading from address spaces.
2910
3c9e6fca
ML
29112014-06-12 Martin Liska <mliska@suse.cz>
2912
2913 PR ipa/61462
2914 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
7964957f 2915 statement is reachable.
3c9e6fca 2916
f961457f
JH
29172014-06-11 Jan Hubicka <hubicka@ucw.cz>
2918
2919 * symtab.c (section_hash): New hash.
2920 (symtab_unregister_node): Clear section before freeing.
2921 (hash_section_hash_entry): New haser.
2922 (eq_sections): New function.
2923 (symtab_node::set_section_for_node): New method.
2924 (set_section_1): Update.
2925 (symtab_node::set_section): Take string instead of tree as parameter.
2926 (symtab_resolve_alias): Update.
2927 * cgraph.h (section_hash_entry_d): New structure.
2928 (section_hash_entry): New typedef.
2929 (cgraph_node): Change comdat_group_ to x_comdat_group,
2930 change section_ to x_section and turn into section_hash_entry;
2931 update accestors; put set_section_for_node offline.
2932 * tree.c (decl_section_name): Turn into string.
2933 (set_decl_section_name): Change parameter to be string.
2934 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
2935 * sdbout.c (sdbout_one_type): Update.
2936 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
9fdb837f
UB
2937 * varasm.c (IN_NAMED_SECTION, get_named_section,
2938 resolve_unique_section, hot_function_section, get_named_text_section,
7049aed6
UB
2939 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
2940 make_decl_rtl, default_unique_section): Update.
f961457f
JH
2941 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
2942 (c6x_elf_unique_section): Update.
2943 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
2944 * config/pa/pa.c (pa_function_section): Update.
2945 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
2946 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
2947 * config/arc/arc.c (arc_in_small_data_p): Update.
2948 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
2949 * config/mcore/mcore.c (mcore_unique_section): Update.
2950 * config/mips/mips.c (mips16_build_function_stub): Update.
2951 (mips16_build_call_stub): Update.
2952 (mips_function_rodata_section): Update.
2953 (mips_in_small_data_p): Update.
2954 * config/score/score.c (score_in_small_data_p): Update.
2955 * config/rx/rx.c (rx_in_small_data): Update.
2956 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
2957 (rs6000_xcoff_asm_named_section): Update.
2958 (rs6000_xcoff_unique_section): Update.
2959 * config/frv/frv.c (frv_string_begins_with): Update.
2960 (frv_in_small_data_p): Update.
2961 * config/v850/v850.c (v850_encode_data_area): Update.
2962 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
2963 (bfin_handle_l1_data_attribute): Update.
2964 (bfin_handle_l2_attribute): Update.
2965 * config/mep/mep.c (mep_unique_section): Update.
7049aed6
UB
2966 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
2967 Update.
f961457f
JH
2968 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
2969 (h8300_handle_tiny_data_attribute): Update.
2970 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
2971 (m32r_in_small_data_p): Update.
2972 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
2973 * config/i386/i386.c (ix86_in_large_data_p): Update.
2974 * config/i386/winnt.c (i386_pe_unique_section): Update.
2975 * config/darwin.c (darwin_function_section): Update.
2976 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
2977 * tree-emutls.c (get_emutls_init_templ_addr): Update.
2978 (new_emutls_decl): Update.
2979 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
2980 input_varpool_node): Update.
2981 (ead_string_cst): Turn to ...
2982 (read_string): ... this one.
2983 * dwarf2out.c (secname_for_decl): Update.
2984 * asan.c (asan_protect_global): Update.
2985
1704a72b
DD
29862014-06-11 DJ Delorie <dj@redhat.com>
2987
1cf1574d
DD
2988 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
2989 cache lines.
2990 * config/rx/rx.c (rx_option_override): Likewise.
2991 (rx_align_for_label): Likewise.
2992
1704a72b
DD
2993 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
2994
37251385
MR
29952014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
2996
2997 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
2998 prototype.
2999
8677664e
RS
30002014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
3001
3002 * common.md: New file.
3003 * doc/md.texi: Update description of generic, machine-independent
3004 constraints.
3005 * config/s390/constraints.md (e): Delete.
3006 * Makefile.in (md_file): Include common.md.
3007 * config/m32c/t-m32c (md_file): Likewise.
3008 * genpreds.c (general_mem): New array.
3009 (generic_constraint_letters): Remove constraints now defined by
3010 common.md.
3011 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
3012 Allow the first character to be '<' or '>' as well.
3013 * genoutput.c (general_mem): New array.
3014 (indep_constraints): Remove constraints now defined by common.md.
3015 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
3016 Remove special handling of 'm'.
3017 * ira-costs.c (record_reg_classes): Remove special handling of
3018 constraints now defined by common.md.
3019 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
3020 * ira-lives.c (single_reg_class): Likewise.
3021 (ira_implicitly_set_insn_hard_regs): Likewise.
3022 * lra-constraints.c (reg_class_from_constraints): Likewise.
3023 (process_alt_operands, process_address, curr_insn_transform): Likewise.
3024 * postreload.c (reload_cse_simplify_operands): Likewise.
3025 * reload.c (push_secondary_reload, scratch_reload_class)
3026 (find_reloads, alternative_allows_const_pool_ref): Likewise.
3027 * reload1.c (maybe_fix_stack_asms): Likewise.
3028 * targhooks.c (default_secondary_reload): Likewise.
3029 * stmt.c (parse_output_constraint): Likewise.
3030 * recog.c (preprocess_constraints): Likewise.
3031 (constrain_operands, peep2_find_free_register): Likewise.
3032 (asm_operand_ok): Likewise, but add a comment saying why 'o'
3033 must be handled specially.
3034
7fd308cf
RS
30352014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
3036
3037 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
3038 * genpreds.c (have_const_dbl_constraints): Delete.
3039 (add_constraint): Don't set it.
3040 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
3041 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
3042 constraints using the lookup_constraint logic.
3043 * ira-lives.c (single_reg_class): Likewise.
3044 * ira.c (ira_setup_alts): Likewise.
3045 * lra-constraints.c (process_alt_operands): Likewise.
3046 * recog.c (asm_operand_ok, constrain_operands): Likewise.
3047 * reload.c (find_reloads): Likewise.
3048
d9c35eee
RS
30492014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
3050
3051 * genpreds.c (const_int_start, const_int_end): New variables.
3052 (choose_enum_order): Output CONST_INT constraints before memory
3053 constraints.
3054 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
3055 Add CT_CONST_INT.
3056 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
3057 * ira.c (ira_setup_alts): Likewise.
3058 * lra-constraints.c (process_alt_operands): Likewise.
3059 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
3060 * reload.c (find_reloads): Likewise.
3061
3c4c42e8
RS
30622014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
3063
3064 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
3065 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
3066 * recog.c (preprocess_constraints): Update accordingly.
3067
777e635f
RS
30682014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
3069
3070 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
3071 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
3072 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
3073 * genpreds.c (print_type_tree): New function.
3074 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
3075 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
3076 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
3077 Write out enum constraint_type and get_constraint_type.
3078 * lra-constraints.c (satisfies_memory_constraint_p): Take a
3079 constraint_num rather than a constraint string.
3080 (satisfies_address_constraint_p): Likewise.
3081 (reg_class_from_constraints): Avoid old constraint macros.
3082 (process_alt_operands, process_address_1): Likewise.
3083 (curr_insn_transform): Likewise.
3084 * ira-costs.c (record_reg_classes): Likewise.
3085 (record_operand_costs): Likewise.
3086 * ira-lives.c (single_reg_class): Likewise.
3087 (ira_implicitly_set_insn_hard_regs): Likewise.
3088 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
3089 * postreload.c (reload_cse_simplify_operands): Likewise.
3090 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
3091 (constrain_operands, peep2_find_free_register): Likewise.
3092 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
3093 (find_reloads, alternative_allows_const_pool_ref): Likewise.
3094 * reload1.c (maybe_fix_stack_asms): Likewise.
3095 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
3096 * targhooks.c (default_secondary_reload): Likewise.
3097 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
3098 to EXTRA_CONSTRAINT_STR.
3099 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
3100
9e6b7874
RS
31012014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
3102
3103 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
3104 (write_constraint_satisfied_p_array): ...this new function.
3105 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
3106 an array.
3107 (write_insn_preds_c): Update accordingly.
3108
16a26e42
RS
31092014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
3110
3111 * genpreds.c (write_lookup_constraint): Rename to...
3112 (write_lookup_constraint_1): ...this.
3113 (write_lookup_constraint_array): New function.
3114 (write_tm_preds_h): Define lookup_constraint as an inline function
3115 that uses write_lookup_constraint_array where possible.
3116 (write_insn_preds_c): Update for the changes above.
3117
2aeedf58
RS
31182014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
3119
3120 * doc/md.texi (regclass_for_constraint): Rename to...
3121 (reg_class_for_constraint): ...this.
3122 * genpreds.c (num_constraints, enum_order, register_start)
3123 (register_end, satisfied_start, memory_start, memory_end)
3124 (address_start, address_end): New variables.
3125 (add_constraint): Count the number of constraints.
3126 (choose_enum_order): New function.
3127 (write_enum_constraint_num): Iterate over enum_order.
3128 (write_regclass_for_constraint): Rename to...
3129 (write_reg_class_for_constraint_1): ...this and update output
3130 accordingly.
3131 (write_constraint_satisfied_p): Rename to...
3132 (write_constraint_satisfied_p_1): ...this and update output
3133 accordingly. Do nothing if all extra constraints are register
3134 constraints.
3135 (write_insn_extra_memory_constraint): Delete.
3136 (write_insn_extra_address_constraint): Delete.
3137 (write_range_function): New function.
3138 (write_tm_preds_h): Define constraint_satisfied_p and
3139 reg_class_for_constraint as inline functions that do a range check
3140 before calling the out-of-line function. Use write_range_function
3141 to implement insn_extra_{register,memory,address}_constraint,
3142 the first of which is new.
3143 (write_insn_preds_c): Update after above changes to write_* functions.
3144 (main): Call choose_enum_order.
3145
698ff107
TP
31462014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
3147
3148 PR tree-optimization/61306
3149 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
3150 expression instead of its size.
3151 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
3152 false to prevent optimization when the result is unpredictable due to
3153 arithmetic right shift of signed type with highest byte is set.
3154 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
3155 (init_symbolic_number): Likewise.
3156 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
3157 when the result is unpredictable due to sign extension.
3158
1d02d8b8
TG
31592014-06-11 Terry Guo <terry.guo@arm.com>
3160
3161 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
3162 (*thumb1_addsi3): Ditto.
3163 (*thumb_subdi3): Ditto.
3164 (thumb1_subsi3_insn): Ditto.
3165 (*thumb_mulsi3): Ditto.
3166 (*thumb_mulsi3_v6): Ditto.
3167 (*thumb1_andsi3_insn): Ditto.
3168 (thumb1_bicsi3): Ditto.
3169 (*thumb1_iorsi3_insn): Ditto.
3170 (*thumb1_xorsi3_insn): Ditto.
3171 (*thumb1_ashlsi3): Ditto.
3172 (*thumb1_ashrsi3): Ditto.
3173 (*thumb1_lshrsi3): Ditto.
3174 (*thumb1_rotrsi3): Ditto.
3175 (*thumb1_negdi2): Ditto.
3176 (*thumb1_negsi2): Ditto.
3177 (*thumb1_abssi2): Ditto.
3178 (*thumb1_neg_abssi2): Ditto.
3179 (*thumb1_one_cmplsi2): Ditto.
3180 (*thumb1_zero_extendhisi2): Ditto.
3181 (*thumb1_zero_extendqisi2): Ditto.
3182 (*thumb1_zero_extendqisi2_v6): Ditto.
3183 (thumb1_extendhisi2): Ditto.
3184 (thumb1_extendqisi2): Ditto.
3185 (*thumb1_movdi_insn): Ditto.
3186 (*thumb1_movsi_insn): Ditto.
3187 (*thumb1_movhi_insn): Ditto.
3188 (thumb_movhi_clobber): Ditto.
3189 (*thumb1_movqi_insn): Ditto.
3190 (*thumb1_movhf): Ditto.
3191 (*thumb1_movsf_insn): Ditto.
3192 (*thumb_movdf_insn): Ditto.
3193 (movmem12b): Ditto.
3194 (movmem8b): Ditto.
3195 (cbranchqi4): Ditto.
3196 (cbranchsi4_insn): Ditto.
3197 (cbranchsi4_scratch): Ditto.
3198 (*negated_cbranchsi4): Ditto.
3199 (*tbit_cbranch): Ditto.
3200 (*tlobits_cbranch): Ditto.
3201 (*tstsi3_cbranch): Ditto.
3202 (*cbranchne_decr1): Ditto.
3203 (*addsi3_cbranch): Ditto.
3204 (*addsi3_cbranch_scratch): Ditto.
3205 (*thumb_cmpdi_zero): Ditto.
3206 (cstoresi_eq0_thumb1): Ditto.
3207 (cstoresi_ne0_thumb1): Ditto.
3208 (*cstoresi_eq0_thumb1_insn): Ditto.
3209 (*cstoresi_ne0_thumb1_insn): Ditto.
3210 (cstoresi_nltu_thumb1): Ditto.
3211 (cstoresi_ltu_thumb1): Ditto.
3212 (thumb1_addsi3_addgeu): Ditto.
3213 (*thumb_jump): Ditto.
3214 (*call_reg_thumb1_v5): Ditto.
3215 (*call_reg_thumb1): Ditto.
3216 (*call_value_reg_thumb1_v5): Ditto.
3217 (*call_value_reg_thumb1): Ditto.
3218 (*call_insn): Ditto.
3219 (*call_value_insn): Ditto.
3220 (thumb1_casesi_internal_pic): Ditto.
3221 (thumb1_casesi_dispatch): Ditto.
3222 (*thumb1_indirect_jump): Ditto.
3223 (prologue_thumb1_interwork): Ditto.
3224 (*epilogue_insns): Ditto.
3225 (consttable_1): Ditto.
3226 (consttable_2): Ditto.
3227 (tablejump): Ditto.
3228 (*thumb1_tablejump): Ditto.
3229 (thumb_eh_return): Ditto.
3230 (define_peephole2): Two of them are thumb1 only and got moved into
3231 new file thumb1.md.
3232 (define_split): Six of them are thumb1 only and got moved into new
3233 file thumb1.md.
3234 * config/arm/thumb1.md: New file comprised of above thumb1 only
3235 patterns.
3236
5d357f26
KT
32372014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3238
3239 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
3240 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
3241 dependencies.
3242 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
3243 (aarch64_crc_builtin_datum): New struct.
3244 (aarch64_crc_builtin_data): New.
3245 (aarch64_init_crc32_builtins): New function.
3246 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
3247 (aarch64_crc32_expand_builtin): New.
3248 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
3249 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
3250 __ARM_FEATURE_CRC32 when appropriate.
3251 (TARGET_CRC32): Define.
3252 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
3253 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
3254 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
3255 (aarch64_<crc_variant>): New pattern.
3256 * config/aarch64/arm_acle.h: New file.
3257 * config/aarch64/iterators.md (CRC): New int iterator.
3258 (crc_variant, crc_mode): New int attributes.
3259 * doc/aarch64-acle-intrinsics.texi: New file.
3260 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
3261 Include aarch64-acle-intrinsics.texi.
3262
e1377713
ES
32632014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
3264
3265 * tree-vect-data-refs.c (vect_grouped_store_supported): New
3266 check for stores group of length 3.
3267 (vect_permute_store_chain): New permutations for stores group of
3268 length 3.
3269 * tree-vect-stmts.c (vect_model_store_cost): Change cost
3270 of vec_perm_shuffle for the new permutations.
3271
862b3da6
JH
32722014-06-11 Jan Hubicka <hubicka@ucw.cz>
3273
7049aed6
UB
3274 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
3275 table rewriting temporarily on targets not supporting ONE_ONLY.
862b3da6 3276
96a3f4df
RB
32772014-06-11 Richard Biener <rguenther@suse.de>
3278
3279 PR middle-end/61437
3280 Revert
3281 2014-06-04 Richard Biener <rguenther@suse.de>
3282
3283 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
3284 TREE_PUBLIC and DECL_EXTERNAL decls.
3285
e257a17c
JH
32862014-06-10 Jan Hubicka <hubicka@ucw.cz>
3287
3288 * varasm.c (set_implicit_section): New function.
3289 (resolve_unique_section): Use it to set implicit section
3290 for aliases, too.
3291 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
3292 (default_function_section): Likewise.
3293 (decl_binds_to_current_def_p): Constify argument.
3294 * varasm.h (decl_binds_to_current_def_p): Update prototype.
96a3f4df
RB
3295 * asan.c (asan_protect_global): Use
3296 symtab_get_node (decl)->implicit_section.
e257a17c
JH
3297 * symtab.c (dump_symtab_base): Dump implicit sections.
3298 (verify_symtab_base): Verify sanity of sectoins and comdats.
3299 (symtab_resolve_alias): Alias share the section of its target.
3300 (set_section_1): New function.
3301 (symtab_node::set_section): Move here, recurse to aliases.
3302 (verify_symtab): Check for duplicated symtab lists.
3303 * tree-core.h (implicit_section_name_p): Remove.
3304 * tree-vect-data-refs.c: Include varasm.h.
3305 (vect_can_force_dr_alignment_p): Fix conditional on when
3306 decl bints to current definition; use
3307 symtab_get_node (decl)->implicit_section.
3308 * cgraph.c (cgraph_make_node_local_1): Fix section set.
3309 * cgraph.h (struct symtab_node): Add implicit_section.
3310 (set_section): Rename to ...
3311 (set_section_for_node): ... this one.
3312 (set_section): Declare.
3313 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
3314 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3315 input_overwrite_node, input_varpool_node): Stream implicit_section.
3316 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
3317 removal; it will fail in LTO.
3318
d7256bb8
KT
33192014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3320
3321 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
3322 Change second alternative type to f_mcr.
3323 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
3324 and 12th alternatives' types to f_mcr and f_mrc.
3325 (*movdi_aarch64): Same for 12th and 13th alternatives.
3326 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
3327 (aarch64_movtilow_tilow): Change type to fmov.
3328
dadf084c
JW
33292014-06-10 Jiong Wang <jiong.wang@arm.com>
3330
3331 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
3332 (aarch64_save_or_restore_callee_save_registers): Fix layout.
3333
2a74759f
KT
33342014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3335
3336 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
3337 New expander.
3338 (aarch64_sqrdmulh_lane<mode>): Likewise.
3339 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
3340 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
3341 (aarch64_sqdmulh_laneq<mode>): New expander.
3342 (aarch64_sqrdmulh_laneq<mode>): Likewise.
3343 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
3344 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
3345 (aarch64_sqdmulh_lane<mode>): New expander.
3346 (aarch64_sqrdmulh_lane<mode>): Likewise.
3347 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
3348 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
3349 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
3350 (aarch64_sqdmlal_laneq<mode>): Likewise.
3351 (aarch64_sqdmlsl_lane<mode>): Likewise.
3352 (aarch64_sqdmlsl_laneq<mode>): Likewise.
3353 (aarch64_sqdmlal2_lane<mode>): Likewise.
3354 (aarch64_sqdmlal2_laneq<mode>): Likewise.
3355 (aarch64_sqdmlsl2_lane<mode>): Likewise.
3356 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
3357 (aarch64_sqdmull_lane<mode>): Likewise.
3358 (aarch64_sqdmull_laneq<mode>): Likewise.
3359 (aarch64_sqdmull2_lane<mode>): Likewise.
3360 (aarch64_sqdmull2_laneq<mode>): Likewise.
3361
b82ef848
RB
33622014-06-10 Richard Biener <rguenther@suse.de>
3363
3364 PR tree-optimization/61438
3365 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
3366 (eliminate_dom_walker::before_dom_children): Only try to inhibit
3367 insertion of IVs if running PRE.
3368 (eliminate): Adjust.
3369 (pass_pre::execute): Likewise.
3370 (pass_fre::execute): Likewise.
3371
cdf0ab72
RB
33722014-06-10 Richard Biener <rguenther@suse.de>
3373
3374 PR middle-end/61456
3375 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
3376 Do not use the main variant for the type comparison.
3377 (ncr_compar): Likewise.
3378 (nonoverlapping_component_refs_p): Likewise.
3379
e29b8d5b
MS
33802014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
3381
3382 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
3383 REG_CFA_RESTORE mode.
3384
6ba197c1
ES
33852014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
3386
3387 * config/i386/i386.c (expand_vec_perm_pblendv): New.
3388 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
3389 expand_vec_perm_pblendv.
3390
87ee52ef
KT
33912014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3392
3393 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
3394 available.
3395 Simplify description of __crc32d and __crc32cd intrinsics.
3396 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
3397 availability.
3398
35fa894a
TS
33992014-06-10 Thomas Schwinge <thomas@codesourcery.com>
3400
3401 PR lto/61334
9fdb837f 3402 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
35fa894a
TS
3403 * config.in: Regenerate.
3404 * configure: Likewise.
3405
1685ecf3
JH
34062014-06-10 Jan Hubicka <hubicka@ucw.cz>
3407
7049aed6
UB
3408 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
3409 and public vars.
1685ecf3
JH
3410 (intersect_static_var_sets): Remove.
3411 (propagate): Do not prune local statics.
3412
92d28cbb
JJ
34132014-06-10 Jakub Jelinek <jakub@redhat.com>
3414
3415 PR fortran/60928
3416 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
3417 Set lastprivate_firstprivate even if omp_private_outer_ref
3418 langhook returns true.
3419 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
3420 langhook, call unshare_expr on new_var and call
3421 build_outer_var_ref to get the last argument.
3422
c9f2b7e9
MP
34232014-06-10 Marek Polacek <polacek@redhat.com>
3424
3425 PR c/60988
3426 * doc/extend.texi: Add cindex for transparent_union.
3427
2cfa504a
TP
34282014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
3429
3430 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
3431 init_symbolic_number ().
3432
748e88da
JDA
34332014-05-18 John David Anglin <danglin@gcc.gnu.org>
3434
3435 PR middle-end/61141
3436 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
3437 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
7964957f 3438 (verify_rtl_sharing): Likewise.
748e88da 3439
00f30445
MG
34402014-06-09 Marc Glisse <marc.glisse@inria.fr>
3441
3442 PR c++/54442
3443 * tree.c (build_qualified_type): Use a canonical type for
3444 TYPE_CANONICAL.
3445
545fb0e8
RR
34462014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3447
3448 * config/arm/arm-modes.def: Remove XFmode.
3449
842cbb73
AL
34502014-06-09 Alan Lawrence <alan.lawrence@arm.com>
3451
3452 PR target/61062
3453 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
3454 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
7049aed6
UB
3455 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
3456 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
3457 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
3458 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
3459 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
3460 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
3461 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
842cbb73 3462
8de98ad4
JH
34632014-06-09 Jan Hubicka <hubicka@ucw.cz>
3464
3465 * tree-core.h (tree_decl_with_vis): Remove section_name.
3466
001010df
KC
34672014-06-09 Kito Cheng <kito@0xlab.org>
3468
3469 * ira.c (ira): Don't call init_caller_save if LRA enabled
3470 since LRA use its own infrastructure to handle that.
3471
24d047a3
JH
34722014-06-07 Jan Hubicka <hubicka@ucw.cz>
3473
3474 * symtab.c (dump_symtab_base): Update dumping.
3475 (symtab_make_decl_local): Clear only DECL_COMDAT.
3476 * tree-vect-data-refs.c (Check that variable is static before
3477 tampering with sections.
3478 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
3479 (cgraph_create_virtual_clone): Likewise.
3480 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
3481 (decl_section_name, set_decl_section_name): New accessors.
3482 (find_decls_types_r): Do not walk section name
7049aed6 3483 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
24d047a3
JH
3484 (decl_comdat_group, decl_comdat_group_id): Constify.
3485 (decl_section_name, set_decl_section_name): Update.
7049aed6 3486 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
24d047a3
JH
3487 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
3488 (cgraph_make_node_local_1): Clear section and comdat group.
3489 * cgraph.h (set_comdat_group): Sanity check.
3490 (get_section, set_section): New.
3491 * ipa-comdats.c (ipa_comdats): Use get_section.
3492 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
3493 * lto-streamer-out.c: Do not follow section names.
7049aed6 3494 * c-family/c-common.c (handle_section_attribute): Update.
24d047a3
JH
3495 * lto-cgraph.c (lto_output_node): Output section.
3496 (lto_output_varpool_node): Likewise.
3497 (read_comdat_group): Rename to ...
3498 (read_identifier): ... this one.
3499 (read_string_cst): New function.
3500 (input_node, input_varpool_node): Input section names.
3501 * tree-emutls.c (get_emutls_init_templ_addr): Update.
3502 (new_emutls_decl): Update.
7049aed6 3503 (secname_for_decl): Check section names only of static vars.
24d047a3
JH
3504 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
3505 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
3506 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
3507 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
3508 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
3509 * config/mcore/mcore.c (mcore_unique_section): Likewise.
3510 * config/mips/mips.c (mips16_build_function_stub): Likewise.
3511 * config/v850/v850.c (v850_insert_attributes): Likewise.
7049aed6 3512 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
24d047a3
JH
3513 Likewise.
3514 (h8300_handle_tiny_data_attribute): Likewise.
3515 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
3516 (bfin_handle_l2_attribute): Likewise.
3517
80bc9b6e
JH
35182014-06-07 Jan Hubicka <hubicka@ucw.cz>
3519
3520 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
3521 remove static initializer.
3522
684a3aa7
JH
35232014-06-07 Jan Hubicka <hubicka@ucw.cz>
3524
7049aed6
UB
3525 * varasm.c (use_blocks_for_decl_p): Check symbol table
3526 instead of alias attribute.
684a3aa7
JH
3527 (place_block_symbol): Recurse on aliases.
3528
94c2e46c
JH
35292014-06-07 Jan Hubicka <hubicka@ucw.cz>
3530
3531 * ipa-visibility.c: Include varasm.h
3532 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
3533
136a5f45
JH
35342014-06-07 Jan Hubicka <hubicka@ucw.cz>
3535
3536 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
3537 outputting aliases.
3538
0dbaf51e
SB
35392014-06-07 Steven Bosscher <steven@gcc.gnu.org>
3540
7964957f 3541 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
0dbaf51e
SB
3542 from test_insn into GGC space escape via SET_SRC.
3543
51d2abeb
EB
35442014-06-07 Eric Botcazou <ebotcazou@adacore.com>
3545
3546 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
3547 call statement, if any.
3548 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
3549 statements, if any. Tidy up.
3550
b528fc5c
MM
35512014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
3552
3553 PR target/61431
3554 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
3555 iterators, VSX_D that handles 64-bit types, and VSX_LE that
3556 handles swapping the two 64-bit double words on little endian
3557 systems. Include V1TImode and optionally TImode in VSX_LE so that
3558 these types are properly swapped. Change all of the insns and
3559 splits that do the 64-bit swaps to use VSX_LE.
3560 (vsx_le_perm_load_<mode>): Likewise.
3561 (vsx_le_perm_store_<mode>): Likewise.
3562 (splitters for little endian memory operations): Likewise.
3563 (vsx_xxpermdi2_le_<mode>): Likewise.
3564 (vsx_lxvd2x2_le_<mode>): Likewise.
3565 (vsx_stxvd2x2_le_<mode>): Likewise.
3566
7b11cab7
UB
35672014-06-06 Uros Bizjak <ubizjak@gmail.com>
3568
3569 PR target/61423
3570 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
3571 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
3572 and corresponding splitters. Zero extend general register
3573 or memory input operand to XMM temporary. Enable for
3574 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
3575 (floatunssi<mode>2): Update expander predicate.
3576
5a770e01
VM
35772014-06-06 Vladimir Makarov <vmakarov@redhat.com>
3578
3579 PR rtl-optimization/61325
3580 * lra-constraints.c (process_address_1): Check scale equal to one
3581 to prevent transformation: base + scale * index => base + new_reg.
3582
acce8ce3
RB
35832014-06-06 Richard Biener <rguenther@suse.de>
3584
3585 PR tree-optimization/59299
3586 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
3587 a def operand.
3588 (nearest_common_dominator_of_uses): Likewise.
3589 (statement_sink_location): Adjust. Support sinking loads.
3590
0d48ee34
MJ
35912014-06-06 Martin Jambor <mjambor@suse.cz>
3592
3593 * ipa-prop.c (get_place_in_agg_contents_list): New function.
3594 (build_agg_jump_func_from_list): Likewise.
3595 (determine_known_aggregate_parts): Renamed to
3596 determine_locally_known_aggregate_parts. Moved some functionality
3597 to the two functions above, removed bound checks.
3598
e2c75eea
JG
35992014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
3600
3601 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
3602 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
3603 (aarch64_progress_pointer): Likewise.
3604 (aarch64_copy_one_part_and_move_pointers): Likewise.
3605 (aarch64_expand_movmen): Likewise.
3606 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
3607 * config/aarch64/aarch64.md (movmem<mode>): New.
3608
58e5400a
BM
36092014-06-06 Bingfeng Mei <bmei@broadcom.com>
3610
3611 * targhooks.c (default_add_stmt_cost): Call target specific
3612 hook instead of default one.
3613
58126368
TP
36142014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
3615
3616 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
3617 endianness instead of host endianness.
3618 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
3619 comments.
3620
3fd48b12
EB
36212014-06-06 Eric Botcazou <ebotcazou@adacore.com>
3622
3623 PR debug/53927
3624 * function.c (instantiate_decls): Process the saved static chain.
3625 (expand_function_start): If not optimizing, save the static chain
3626 onto the stack.
3627 * tree-nested.c (convert_all_function_calls): Always create the static
3628 chain for nested functions if not optimizing.
3629
9b7a11e1
EB
36302014-06-06 Eric Botcazou <ebotcazou@adacore.com>
3631
3632 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
3633
726338f4
RB
36342014-06-06 Richard Biener <rguenther@suse.de>
3635
3636 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
3637 (construct_init_block): Likewise.
3638 (construct_exit_block): Likewise.
3639 (pass_expand::execute): Likewise.
3640 * graphite.c (graphite_transforms): Replace check for current_loops
3641 with a check for > 1 loops.
3642 (pass_graphite_transforms::execute): Adjust.
3643 * ipa-split.c (split_function): Remove check for current_loops.
3644 * omp-low.c (expand_parallel_call): Likewise.
3645 (expand_omp_for_init_counts): Likewise.
3646 (extract_omp_for_update_vars): Likewise.
3647 (expand_omp_for_generic): Likewise.
3648 (expand_omp_sections): Likewise.
3649 (expand_omp_target): Likewise.
3650 * tracer.c (tail_duplicate): Likewise.
3651 (pass_tracer::execute): Likewise.
3652 * trans-mem.c (expand_transaction): Likewise.
3653 * tree-complex.c (expand_complex_div_wide): Likewise.
3654 * tree-eh.c (lower_resx): Likewise.
3655 (cleanup_empty_eh_merge_phis): Likewise.
3656 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
3657 current_loops with a check for > 1 loops.
3658 (pass_predcom::execute): Adjust.
3659 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
3660 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
3661 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
3662 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
3663 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
3664 * tree-switch-conversion.c (process_switch): Likewise.
3665 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
3666 * tree-vrp.c (vrp_visit_phi_node): Likewise.
3667 (execute_vrp): Likewise.
3668 * ubsan.c (ubsan_expand_null_ifn): Likewise.
3669
ffa4602f
EB
36702014-06-06 Eric Botcazou <ebotcazou@adacore.com>
3671
3672 * rtl.h (insn_location): Declare.
3673 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
3674 with UNKNOWN_LOCATION.
3675 * emit-rtl.c (insn_location): New function.
3676 * final.c (notice_source_line): Check that the instruction has a
3677 location before retrieving it and use insn_location.
3678 * modulo-sched.c (loop_single_full_bb_p): Likewise.
3679 * print-rtl.c (print_rtx): Likewise.
3680
28a4a292
RB
36812014-06-06 Richard Biener <rguenther@suse.de>
3682
3683 * passes.def: Move 2nd VRP pass before phi-only-cprop.
3684
d969f3c1
CB
36852014-06-06 Christian Bruel <christian.bruel@st.com>
3686
3687 PR tree-optimization/43934
28a4a292
RB
3688 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
3689 cost.
d969f3c1 3690
b58923e2
RS
36912014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
3692
3693 * ira-lives.c (single_reg_class): Add missing break. Explicitly
3694 return NO_REGS for extra address and memory constraints. Handle
3695 operands that match (or are equivalent to something that matches)
3696 extra constant constraints. Ignore other non-register operands.
3697
ddbb449f
AM
36982014-06-06 Alan Modra <amodra@gmail.com>
3699
3700 PR target/61300
3701 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
3702 * doc/tm.texi: Regenerate.
3703 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
3704 Use throughout in place of REG_PARM_STACK_SPACE.
3705 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
3706 "incoming" param. Pass to rs6000_function_parms_need_stack.
3707 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
3708 prototype_p when incoming. Use function decl when incoming
3709 to handle K&R style functions.
3710 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
3711 (INCOMING_REG_PARM_STACK_SPACE): Define.
3712
a148c4b2
SKS
37132014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3714
3715 PR target/52472
3716 * cfgexpand.c (expand_debug_expr): Use address space of nested
3717 TREE_TYPE for ADDR_EXPR and MEM_REF.
3718
64e13bcd
JL
37192014-06-05 Jeff Law <law@redhat.com>
3720
3721 PR tree-optimization/61289
3722 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
3723 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
3724 looking for those which match LHS. All callers changed.
3725 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
3726 parameters and code which manipulated them. All callers changed.
3727 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
3728 and DST_MAP parameters. Simplify invalidation code by just calling
3729 invalidate_equivalences. All callers changed.
3730 (thread_across_edge): Simplify now that we don't need to maintain
3731 the map of equivalences to invalidate.
3732
5853e181
KT
37332014-06-05 Kai Tietz <ktietz@redhat.com>
3734 Richard Henderson <rth@redhat.com>
3735
3736 PR target/46219
3737 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
3738 checking for !TARGET_X32.
3739 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
3740 (sibcall_intern): New define_insn, plus required peepholes.
3741 (sibcall_pop_intern): Likewise.
3742 (sibcall_value_intern): Likewise.
3743 (sibcall_value_pop_intern): Likewise.
3744
95cc0a1a
IE
37452014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
3746
3747 * tree-inline.c (tree_function_versioning): Check DF info existence
3748 before accessing it.
3749
1c960e02
MS
37502014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
3751
3752 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
3753 frame_size.
3754 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
3755 aarch64_frame hard_fp_offset and frame_size.
3756 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
3757 frame_size; remove original_frame_size.
3758 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
3759 (aarch64_initial_elimination_offset): Remove frame_size and
3760 offset. Use aarch64_frame frame_size.
3761
2e1cdae5
MS
37622014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
3763 Jiong Wang <jiong.wang@arm.com>
4a450ea0 3764 Renlin <renlin.li@arm.com>
2e1cdae5
MS
3765
3766 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
3767 initialization of R30 offset. Update offset. Iterate core
3768 regisers upto X30. Remove X29, X30 specific code.
3769
97826595
MS
37702014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
3771 Jiong Wang <jiong.wang@arm.com>
3772
3773 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
3774 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
3775 (aarch64_register_saved_on_entry): Adjust test.
3776
8799637a
MS
37772014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
3778
3779 * config/aarch64/aarch64.h (machine_function): Move
3780 saved_varargs_size from here...
4a450ea0 3781 (aarch64_frame): ... to here.
8799637a
MS
3782
3783 * config/aarch64/aarch64.c (aarch64_expand_prologue)
3784 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
3785 (aarch64_initial_elimination_offset)
3786 (aarch64_setup_incoming_varargs): Adjust location of
3787 saved_varargs_size.
3788
34834420
MS
37892014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
3790
3791 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
3792 layout comment.
3793
aaaa9efc
JP
37942014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
3795 Prachi Godbole <Prachi.Godbole@imgtec.com>
3796
3797 * config/mips/mips-cpus.def: Add definition for p5600. Updated
3798 mips32r5 entry to use PROCESSOR_P5600.
3799 * config/mips/mips-tables.opt: Regenerate.
3800 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
3801 * config/mips/mips.c (mips_fmadd_bypass): New function.
3802 (mips_rtx_cost_data): Add costs for p5600.
3803 (mips_issue_rate): Add support for p5600.
3804 (mips_multipass_dfa_lookahead): Likewise.
3805 * config/mips/mips.h (TUNE_P5600): New define.
3806 (TUNE_MACC_CHAINS): Add TUNE_P5600.
3807 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
3808 * config/mips/mips.md: Include p5600.md.
3809 (processor): Add p5600.
3810 * config/mips/p5600.md: New file.
3811
edbb0749
ES
38122014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
3813
3814 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
3815 * config/i386/predicates.md (palignr_operand): New.
3816 Indicates if permutation is suitable for palignr instruction.
3817
e12355ef
YR
38182014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
3819
3820 PR tree-optimization/61319
3821 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
3822 stmt belongs to loop.
3823
947ca6a0
RB
38242014-06-05 Richard Biener <rguenther@suse.de>
3825
3826 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
3827 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
3828 (lookup_tmp_var): Adjust.
3829 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
3830
63e70d3c
RR
38312014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3832
3833 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
3834
742938c9
MP
38352014-06-05 Marek Polacek <polacek@redhat.com>
3836
3837 PR c/49706
3838 * doc/invoke.texi: Document -Wlogical-not-parentheses.
3839
357ddc7d
TV
38402014-06-04 Tom de Vries <tom@codesourcery.com>
3841
3842 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
3843 CONST_INT.
3844
ca73a1f7
MG
38452014-06-04 Marc Glisse <marc.glisse@inria.fr>
3846
3847 PR tree-optimization/61385
3848 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
3849
ffb1f5ef
BS
38502014-06-04 Bernd Schmidt <bernds@codesourcery.com>
3851
3852 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
3853 changed to use fatal_error.
3854 (main): Ensure lto_wrapper_cleanup is run atexit.
3855
a953491e
RS
38562014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
3857
3858 * lra-constraints.c (valid_address_p): Move earlier in file.
3859 (address_eliminator): New structure.
3860 (satisfies_memory_constraint_p): New function.
3861 (satisfies_address_constraint_p): Likewise.
3862 (process_alt_operands, process_address, curr_insn_transform): Use them.
3863
0c331756
RS
38642014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
3865
3866 * lra-int.h (lra_static_insn_data): Make operand_alternative a
3867 const pointer.
3868 (target_lra_int, default_target_lra_int, this_target_lra_int)
3869 (op_alt_data): Delete.
3870 * lra.h (lra_init): Delete.
3871 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
3872 (init_insn_code_data_once): Remove op_alt_data handling.
3873 (finish_insn_code_data_once): Likewise.
3874 (init_op_alt_data): Delete.
3875 (get_static_insn_data): Initialize operand_alternative to null.
3876 (free_insn_recog_data): Cast operand_alternative before freeing it.
3877 (setup_operand_alternative): Take the operand_alternative as
3878 parameter and assume it isn't already cached in the static
3879 insn data.
3880 (lra_set_insn_recog_data): Update accordingly.
3881 (lra_init): Delete.
3882 * ira.c (ira_init): Don't call lra_init.
3883 * target-globals.h (this_target_lra_int): Declare.
3884 (target_globals): Remove lra_int.
3885 (restore_target_globals): Update accordingly.
3886 * target-globals.c: Don't include lra-int.h.
3887 (default_target_globals, save_target_globals): Remove lra_int.
3888
1145837d
RS
38892014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
3890
3891 * recog.h (operand_alternative): Convert reg_class, reject,
3892 matched and matches into bitfields.
3893 (preprocess_constraints): New overload.
3894 (preprocess_insn_constraints): New function.
3895 (preprocess_constraints): Take the insn as parameter.
3896 (recog_op_alt): Change into a pointer.
3897 (target_recog): Add x_op_alt.
3898 * recog.c (asm_op_alt): New variable.
3899 (recog_op_alt): Change into a pointer.
3900 (preprocess_constraints): New overload, replacing the old function
3901 definition with one that doesn't use global state.
3902 (preprocess_insn_constraints): New function.
3903 (preprocess_constraints): Use them. Take the insn as parameter.
3904 Use asm_op_alt for asms.
3905 (recog_init): Free existing x_op_alt entries.
3906 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
3907 pointer const.
3908 (make_early_clobber_and_input_conflicts): Likewise.
3909 (process_bb_node_lives): Pass the insn to process_constraints.
3910 * reg-stack.c (check_asm_stack_operands): Likewise.
3911 (subst_asm_stack_regs): Likewise.
3912 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
3913 * regrename.c (build_def_use): Likewise.
3914 * sched-deps.c (sched_analyze_insn): Likewise.
3915 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
3916 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
3917 (note_invalid_constants): Likewise.
3918 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
3919 (ix86_legitimate_combined_insn): Make operand_alternative pointer
3920 const.
3921
5f2e0797
RS
39222014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
3923
3924 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
3925 * ira-lives.c (check_and_make_def_conflict): Check for disabled
3926 alternatives.
3927 (make_early_clobber_and_input_conflicts): Likewise.
3928 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
3929
5efe5dec
RS
39302014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
3931
3932 * recog.h (alternative_class): New function.
3933 (which_op_alt): Return a const recog_op_alt.
3934 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
3935 (subst_asm_stack_regs): Likewise.
3936 * config/arm/arm.c (note_invalid_constants): Likewise.
3937 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
3938 the operand_alternative; use alternative class instead.
3939 * sel-sched.c (get_reg_class): Likewise.
3940 * regrename.c (build_def_use): Likewise.
3941 (hide_operands, restore_operands, record_out_operands): Update type
3942 accordingly.
3943
29d70a0f
RS
39442014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
3945
3946 * recog.h (recog_op_alt): Convert to a flat array.
3947 (which_op_alt): New function.
3948 * recog.c (recog_op_alt): Convert to a flat array.
3949 (preprocess_constraints): Update accordingly, grouping all
3950 operands of the same alternative together, rather than the
3951 other way around.
3952 * ira-lives.c (check_and_make_def_conflict): Likewise.
3953 (make_early_clobber_and_input_conflicts): Likewise.
3954 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
3955 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
3956 (subst_asm_stack_regs): Likewise.
3957 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
3958 * regrename.c (hide_operands, record_out_operands): Likewise.
3959 (build_def_use): Likewise.
3960 * sel-sched.c (get_reg_class): Likewise.
3961 * config/arm/arm.c (note_invalid_constants): Likewise.
3962
fe6ebcf1
JM
39632014-06-04 Jason Merrill <jason@redhat.com>
3964
3965 PR c++/51253
3966 PR c++/61382
3967 * gimplify.c (gimplify_arg): Non-static.
3968 * gimplify.h: Declare it.
3969
38af3208
RB
39702014-06-04 Richard Biener <rguenther@suse.de>
3971
3972 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
3973 TREE_PUBLIC and DECL_EXTERNAL decls.
3974
9ccac701
MF
39752014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
3976
7964957f 3977 * regcprop.c (copyprop_hardreg_forward_1): Account for
9ccac701
MF
3978 HARD_REGNO_CALL_PART_CLOBBERED.
3979
35987ae9
RB
39802014-06-04 Richard Biener <rguenther@suse.de>
3981
3982 * configure.ac: Check whether the underlying type of int64_t
3983 is long or long long.
3984 * configure: Regenerate.
3985 * config.in: Likewise.
3986 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
3987 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
3988
0ea48022
RB
39892014-06-04 Richard Biener <rguenther@suse.de>
3990
3991 PR tree-optimization/60098
3992 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
3993 we hit a kill.
3994 (dse_optimize_stmt): Simplify, now that we found a kill
3995 earlier.
3996
b1259d34
RB
39972014-06-04 Richard Biener <rguenther@suse.de>
3998
3999 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
4000 of accesses with non-invariant address.
4001
8be2dc8c
ML
40022014-06-04 Martin Liska <mliska@suse.cz>
4003
4004 * cgraph.h (cgraph_make_wrapper): New function introduced.
4005 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
4006 * ipa-inline.h (inline_analyze_function): The function is global.
4007 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
4008
8a57e88d
ML
40092014-06-04 Martin Liska <mliska@suse.cz>
4010
4011 * tree.h (private_lookup_attribute_starting): New function.
4012 (lookup_attribute_starting): Likewise.
4013 * tree.c (private_lookup_attribute_starting): Likewise.
4014
d211e471
ML
40152014-06-04 Martin Liska <mliska@suse.cz>
4016
4017 * cgraph.h (expand_thunk): New argument added.
4018 (address_taken_from_non_vtable_p): New global function.
4019 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
4020 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
4021 * cgraphunit.c (analyze_function): Likewise.
4022 (assemble_thunks_and_aliases): Argument added to call.
4023 (expand_thunk): New argument forces to produce GIMPLE thunk.
4024
a96bf0d3
ML
40252014-06-04 Martin Liska <mliska@suse.cz>
4026
4027 * coverage.h (coverage_compute_cfg_checksum): Argument added.
4028 * coverage.c (coverage_compute_cfg_checksum): Likewise.
4029 * profile.c (branch_prob): Likewise.
4030
7d2268ea
MJ
40312014-06-04 Martin Jambor <mjambor@suse.cz>
4032
4033 PR ipa/61340
4034 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
4035 handler for switch on an ipa_ref_use enum.
4036 * ipa-reference.c (analyze_function): Likewise.
4037
0dac3001
KT
40382014-06-04 Kai Tietz <ktietz@redhat.com>
4039
4040 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
4041 from old call-instruction.
4042
348d4b0a
BC
40432014-06-04 Bin Cheng <bin.cheng@arm.com>
4044
4045 * config/aarch64/aarch64.c (aarch64_classify_address)
4046 (aarch64_legitimize_reload_address): Support full addressing modes
4047 for vector modes.
4048 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
4049 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
4050
b9e3afe9
AP
40512014-06-03 Andrew Pinski <apinski@cavium.com>
4052
4053 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
4054 for OP0.
4055
40562014-06-03 Andrew Pinski <apinski@cavium.com>
2d5ffe46
AP
4057
4058 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
4059 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
4060
3ce7abdd
KT
40612014-06-03 Kai Tietz <ktietz@redhat.com>
4062
4063 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
4064 for 64-bit ms-abi.
4065
47e78f98
DC
40662014-06-03 Dehao Chen <dehao@google.com>
4067
4068 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
4069 the same loop.
4070
fedfecef
MP
40712014-06-03 Marek Polacek <polacek@redhat.com>
4072
4073 PR c/60439
4074 * doc/invoke.texi: Document -Wswitch-bool.
4075 * function.c (stack_protect_epilogue): Cast controlling expression of
4076 the switch to int.
4077 * gengtype.c (walk_type): Generate switch expression with its
4078 controlling expression cast to int.
4079
40802014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
e4f36438
DC
4081
4082 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
4083 and attiny841.
4084 * config/avr/avr-tables.opt: Regenerate.
4085 * config/avr/t-multilib: Regenerate.
4086 * doc/avr-mmcu.texi: Regenerate.
4087
fedfecef
MP
40882014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
4089 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
e4f36438
DC
4090
4091 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
4092 (ata6617c, ata664251): Add new avr35 devices.
4093 (ata6612c): Add new avr4 device.
4094 (ata6613c, ata6614q): Add new avr5 devices.
4095 * config/avr/avr-tables.opt: Regenerate.
4096 * config/avr/t-multilib: Regenerate.
4097 * doc/avr-mmcu.texi: Regenerate.
4098
918621d3
AL
40992014-06-03 Alan Lawrence <alan.lawrence@arm.com>
4100
4101 * gcc/config/aarch64/aarch64-builtins.c
4102 (aarch64_types_binop_ssu_qualifiers): New static data.
4103 (TYPES_BINOP_SSU): Define.
4104 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
4105 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
4106 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
4107 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
4108 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
4109 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
4110 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
4111 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
4112 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
4113 suffix to builtin function name, remove cast.
4114 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
4115 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
4116 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
4117
de10bcce
AL
41182014-06-03 Alan Lawrence <alan.lawrence@arm.com>
4119
4120 * gcc/config/aarch64/aarch64-builtins.c
4121 (aarch64_types_binop_uus_qualifiers,
4122 aarch64_types_shift_to_unsigned_qualifiers,
4123 aarch64_types_unsigned_shiftacc_qualifiers): Define.
4124 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
4125 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
4126 sqshlu_n, uqshl_n): Update qualifiers.
4127 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
4128 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
4129 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
4130 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
4131 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
4132 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
4133 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
4134 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
4135 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
4136 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
4137 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
4138 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
4139 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
4140 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
4141 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
4142 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
4143 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
4144 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
4145 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
4146 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
4147 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
4148 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
4149 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
4150 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
4151 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
4152 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
4153 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
4154
878d3618
TJ
41552014-06-03 Teresa Johnson <tejohnson@google.com>
4156
4157 * tree-sra.c (modify_function): Record caller nodes after rebuild.
4158
616abc64
JM
41592014-06-02 Jason Merrill <jason@redhat.com>
4160
4161 PR c++/61020
4162 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
4163
b31e65bb
AL
41642014-06-03 Alan Lawrence <alan.lawrence@arm.com>
4165
4166 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
4167 location == 0.
4168
923fcec3
AL
41692014-06-03 Alan Lawrence <alan.lawrence@arm.com>
4170
4171 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
4172 New pattern.
4173 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
4174 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
4175 * config/aarch64/iterators.md (REVERSE): New iterator.
4176 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
4177 (rev_op): New int_attribute.
4178 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
4179 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
4180 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
4181 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
4182 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
4183 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
4184 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
4185 Replace temporary __asm__ with __builtin_shuffle.
4186
7b11cab7 41872014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
2b3bd040
AB
4188
4189 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
4190 mips64r5.
4191 * config/mips/mips-tables.opt: Regenerate.
4192 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
4193 to use mips_isa_rev rather than ISA_MIPS32R2.
4194 * config/mips/mips.h (ISA_MIPS32R3): New define.
4195 (ISA_MIPS32R5): New define.
4196 (ISA_MIPS64R3): New define.
4197 (ISA_MIPS64R5): New define.
7b11cab7
UB
4198 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
4199 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
2b3bd040
AB
4200 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
4201 and mips64r5.
4202 (MIPS_ISA_SYNCI_SPEC): Likewise.
4203 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
4204 (LINK_SPEC): Added mips32r3 and mips32r5.
4205 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
4206 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
4207 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
4208 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
4209 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
4210 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
4211 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
4212
35773f53
AB
42132014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
4214
4215 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
4216 options.
4217 * config/mips/mips.opt (mxpa): New option.
7b11cab7 4218 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
35773f53
AB
4219 assembler.
4220
d3fb5cf0
MJ
42212014-06-03 Martin Jambor <mjambor@suse.cz>
4222
4223 PR ipa/61160
4224 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
4225 thunks.
4226
3cc272c1
TP
42272014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
4228
4229 PR tree-optimization/61328
4230 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
4231 initialization from find_bswap_or_nop_1.
4232 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
4233 in source_expr2 before using the size value the function sets. Also
4234 make use of init_symbolic_number () in both the old place and
4235 find_bswap_or_nop_load () to avoid reading uninitialized memory when
4236 doing recursion in the GIMPLE_BINARY_RHS case.
4237
597c6315
RB
42382014-06-03 Richard Biener <rguenther@suse.de>
4239
4240 PR tree-optimization/61383
4241 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
4242 stmts can't trap.
4243
b48e9677
RS
42442014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
4245
4246 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
4247 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
4248 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
4249 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
4250 in this file.
4251 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
4252 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
4253 * system.h: ...here and make it unconditional.
4254 * target.def (conditional_register_usage): Mention
4255 define_register_constraint instead of old-style constraint macros.
4256 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
4257 * doc/tm.texi: Regenerate.
4258 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
4259 protected by !USE_MD_CONSTRAINTS.
4260 * config/frv/frv.md: Remove quote from old version of documentation.
4261 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
4262 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
4263 CONST_DOUBLE_OK_FOR_LETTER.
4264 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
4265
b94f5533 42662014-06-02 Andrew Pinski <apinski@cavium.com>
7b11cab7 4267
3a87ac45
AP
4268 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
4269 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
b94f5533
AP
4270 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
4271 file whose name depends on -mabi= and -mbig-endian.
3a87ac45
AP
4272 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
4273 Handle LP64 better and handle ilp32 too.
b94f5533
AP
4274 (MULTILIB_OPTIONS): Delete.
4275 (MULTILIB_DIRNAMES): Delete.
4276
9b2b7279
AM
42772014-06-02 Andrew MacLeod <amacleod@redhat.com>
4278
4279 * expr.h: Remove prototypes of functions defined in builtins.c.
4280 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
4281 Remove prototypes of functions defined in builtins.c.
4282 * builtins.h: Update prototype list to include all exported functions.
4283 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
4284 no_c99_libc_has_function): Move to targhooks.c
4285 (build_string_literal, build_call_expr_loc_array,
4286 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
4287 to tree.c.
4288 (expand_builtin_object_size, fold_builtin_object_size): Make static.
4289 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
4290 no_c99_libc_has_function): Relocate from builtins.c.
4291 * tree.c: Include builtins.h.
4292 (build_call_expr_loc_array, build_call_expr_loc_vec,
4293 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
4294 from builtins.c.
4295 * fold-const.h (fold_fma): Move prototype to builtins.h.
4296 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
4297 * asan.c: Include builtins.h.
4298 * cfgexpand.c: Likewise.
4299 * convert.c: Likewise.
4300 * emit-rtl.c: Likewise.
4301 * except.c: Likewise.
4302 * expr.c: Likewise.
4303 * fold-const.c: Likewise.
4304 * gimple-fold.c: Likewise.
4305 * gimple-ssa-strength-reduction.c: Likewise.
4306 * gimplify.c: Likewise.
4307 * ipa-inline.c: Likewise.
4308 * ipa-prop.c: Likewise.
4309 * lto-streamer-out.c: Likewise.
4310 * stmt.c: Likewise.
4311 * tree-inline.c: Likewise.
4312 * tree-object-size.c: Likewise.
4313 * tree-sra.c: Likewise.
4314 * tree-ssa-ccp.c: Likewise.
4315 * tree-ssa-forwprop.c: Likewise.
4316 * tree-ssa-loop-ivcanon.c: Likewise.
4317 * tree-ssa-loop-ivopts.c: Likewise.
4318 * tree-ssa-math-opts.c: Likewise.
4319 * tree-ssa-reassoc.c: Likewise.
4320 * tree-ssa-threadedge.c: Likewise.
4321 * tree-streamer-in.c: Likewise.
4322 * tree-vect-data-refs.c: Likewise.
4323 * tree-vect-patterns.c: Likewise.
4324 * tree-vect-stmts.c: Likewise.
4325 * config/aarch64/aarch64.c: Likewise.
4326 * config/alpha/alpha.c: Likewise.
4327 * config/arc/arc.c: Likewise.
4328 * config/arm/arm.c: Likewise.
4329 * config/avr/avr.c: Likewise.
4330 * config/bfin/bfin.c: Likewise.
4331 * config/c6x/c6x.c: Likewise.
4332 * config/cr16/cr16.c: Likewise.
4333 * config/cris/cris.c: Likewise.
4334 * config/epiphany/epiphany.c: Likewise.
4335 * config/fr30/fr30.c: Likewise.
4336 * config/frv/frv.c: Likewise.
4337 * config/h8300/h8300.c: Likewise.
4338 * config/i386/i386.c: Likewise.
4339 * config/i386/winnt.c: Likewise.
4340 * config/ia64/ia64.c: Likewise.
4341 * config/iq2000/iq2000.c: Likewise.
4342 * config/lm32/lm32.c: Likewise.
4343 * config/m32c/m32c.c: Likewise.
4344 * config/m32r/m32r.c: Likewise.
4345 * config/m68k/m68k.c: Likewise.
4346 * config/mcore/mcore.c: Likewise.
4347 * config/mep/mep.c: Likewise.
4348 * config/microblaze/microblaze.c: Likewise.
4349 * config/mips/mips.c: Likewise.
4350 * config/mmix/mmix.c: Likewise.
4351 * config/mn10300/mn10300.c: Likewise.
4352 * config/moxie/moxie.c: Likewise.
4353 * config/msp430/msp430.c: Likewise.
4354 * config/nds32/nds32.c: Likewise.
4355 * config/pa/pa.c: Likewise.
4356 * config/pdp11/pdp11.c: Likewise.
4357 * config/picochip/picochip.c: Likewise.
4358 * config/rl78/rl78.c: Likewise.
4359 * config/rs6000/rs6000.c: Likewise.
4360 * config/rx/rx.c: Likewise.
4361 * config/s390/s390.c: Likewise.
4362 * config/score/score.c: Likewise.
4363 * config/sh/sh.c: Likewise.
4364 * config/sparc/sparc.c: Likewise.
4365 * config/spu/spu.c: Likewise.
4366 * config/stormy16/stormy16.c: Likewise.
4367 * config/tilegx/tilegx.c: Likewise.
4368 * config/tilepro/tilepro.c: Likewise.
4369 * config/v850/v850.c: Likewise.
4370 * config/vax/vax.c: Likewise.
4371 * config/xtensa/xtensa.c: Likewise.
4372
0d732cca
JL
43732014-06-02 Jeff Law <law@redhat.com>
4374
4375 PR rtl-optimization/61094
4376 * ree.c (combine_reaching_defs): Do not reextend an insn if it
4377 was marked as do_no_reextend. If a copy is needed to eliminate
4378 an extension, then mark it as do_not_reextend.
4379
a2adad8b
MS
43802014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
4381
4382 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
4383
20a951e6
RH
43842014-06-02 Richard Henderson <rth@redhat.com>
4385
4386 PR target/61336
4387 * config/alpha/alpha.c (print_operand_address): Allow symbolic
4388 addresses inside asms. Use output_operand_lossage instead of
4389 gcc_unreachable.
4390
40c0a159
UB
43912014-06-02 Uros Bizjak <ubizjak@gmail.com>
4392
4393 PR target/61239
4394 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
4395 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
4396
94bfa2da
TV
43972014-06-02 Tom de Vries <tom@codesourcery.com>
4398
4399 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
4400 case that x has VOIDmode.
4401
4a1f940f
BS
44022014-06-02 Bernd Schmidt <bernds@codesourcery.com>
4403
4404 * varasm.c (copy_constant): Delete function.
4405 (build_constant_desc): Don't call it.
4406
27e83a44
RR
44072014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4408
4409 PR target/61154
4410 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
4411 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
4412 with immediate_operand.
4413
31815ed7
AS
44142014-06-02 Andreas Schwab <schwab@suse.de>
4415
4416 * config/ia64/ia64.c
4417 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
4418 pending_data_specs first.
4419
61dd7fbc
RB
44202014-06-02 Richard Biener <rguenther@suse.de>
4421
4422 PR tree-optimization/61378
4423 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
4424 valueized_anything.
4425
1828d3e6
UB
44262014-06-01 Uros Bizjak <ubizjak@gmail.com>
4427
4428 * config/i386/constraints.md (Bw): Rename from 'w'.
4429 (Bz): Rename from 'z'.
4430 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
4431
6041d142
KT
44322014-06-01 Kai Tietz <ktietz@redhat.com>
4433
4434 PR target/61377
1828d3e6
UB
4435 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
4436 * config/i386/i386.md (sibcall_insn_operand): Use Bs
4437 instead of m constraint.
6041d142 4438
aef1bf3b
AS
44392014-05-31 Andreas Schwab <schwab@linux-m68k.org>
4440
4441 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
4442 a separate alternative where the scratch operand 2 is marked as
4443 early clobber.
4444
f10743d3
KV
44452014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
4446
4447 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
4448 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
4449 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
4450 and __builtins_arm_get_fpscr.
4451 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
4452 __builtins_arm_get_fpscr.
4453 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
4454 __builtins_arm_ldfpscr.
4455 (arm_atomic_assign_expand_fenv): New function.
4456 * config/arm/vfp.md (set_fpscr): New pattern.
4457 (get_fpscr) : Likewise.
4458 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
4459 VUNSPEC_SET_FPSCR.
4460 * doc/extend.texi (AARCH64 Built-in Functions) : Document
4461 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
4462
40f9f6bb
JJ
44632014-05-30 Jakub Jelinek <jakub@redhat.com>
4464
b3f1051b
JJ
4465 * asan.c (report_error_func): Add SLOW_P argument, use
4466 BUILT_IN_ASAN_*_N if set.
4467 (build_check_stmt): Likewise.
4468 (instrument_derefs): If T has insufficient alignment,
4469 force same handling as for odd sizes.
4470
40f9f6bb
JJ
4471 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
4472 BUILT_IN_ASAN_REPORT_STORE_N): New.
4473 * asan.c (struct asan_mem_ref): Change access_size type to
4474 HOST_WIDE_INT.
4475 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
4476 update_mem_ref_hash_table): Likewise.
4477 (asan_mem_ref_hasher::hash): Hash in a HWI.
4478 (report_error_func): Change size_in_bytes argument to HWI.
4479 Use *_N builtins if size_in_bytes is larger than 16 or not power of
4480 two.
4481 (build_shadow_mem_access): New function.
4482 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
4483 Handle size_in_bytes not power of two or larger than 16.
4484 (instrument_derefs): Don't give up if size_in_bytes is not
4485 power of two or is larger than 16.
4486
cb105922
KT
44872014-05-30 Kai Tietz <ktietz@redhat.com>
4488
4489 PR target/60104
4490 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
4491 for sibling-tail-calls.
4492 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
4493 to its use.
4494 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
4495 (sibcall_insn_operand): Add check for sibcall_memory_operand.
4496
150e0639
PS
44972014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4498
4499 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
4500 * config/avr/avr-tables.opt: Regenerate.
4501 * config/avr/t-multilib: Regenerate.
4502 * doc/avr-mmcu.texi: Regenerate.
4503
f9a8f6d9
ILT
45042014-05-30 Ian Lance Taylor <iant@google.com>
4505
4506 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
4507 target("sse").
4508
5028356f
TV
45092014-05-30 Tom de Vries <tom@codesourcery.com>
4510
4511 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
4512 Redefine as true.
4513
10e1bdb2
TV
45142014-05-30 Tom de Vries <tom@codesourcery.com>
4515
4516 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
4517 * lra.c (initialize_lra_reg_info_element): Add init of
4518 actual_call_used_reg_set field.
4519 (lra): Call lra_create_live_ranges before lra_inheritance for
4520 -fuse-caller-save.
4521 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
4522 -fuse-caller-save.
4523 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
4524 instead of call_used_reg_set for -fuse-caller-save.
4525 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
4526
56912037
KT
45272014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4528
4529 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
4530 to mov_imm.
4531 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
4532
98f2f031
RS
45332014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
4534
4535 * ira.c (ira_get_dup_out_num): Check for output operands at
4536 the start of the loop. Handle cases where an included alternative
4537 follows an excluded one.
4538
79abf19f
MS
45392014-05-29 Mike Stump <mikestump@comcast.net>
4540
4541 PR debug/61352
4542 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
4543 post ld passes when lto is used.
4544
cc8849a1
VM
45452014-05-29 Vladimir Makarov <vmakarov@redhat.com>
4546
4547 PR rtl-optimization/61325
40c0a159 4548 * lra-constraints.c (process_address): Rename to process_address_1.
cc8849a1
VM
4549 (process_address): New function.
4550
ae0533da
AL
45512014-05-29 Alan Lawrence <alan.lawrence@arm.com>
4552
4553 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
4554 TYPES_BINOPV): New static data.
40c0a159
UB
4555 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
4556 New builtin.
4557 * config/aarch64/aarch64-simd.md (aarch64_ext,
4558 aarch64_im_lane_boundsi): New patterns.
ae0533da
AL
4559 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
4560 patterns for EXT.
4561 (aarch64_evpc_ext): New function.
4562
4563 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
4564
4565 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
4566 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
4567 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
4568 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
4569 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
4570
ed00b1fb
TV
45712014-05-29 Tom de Vries <tom@codesourcery.com>
4572
4573 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
4574
004d3809 45752014-05-29 Richard Earnshaw <rearnsha@arm.com>
40c0a159 4576 Richard Sandiford <rdsandiford@googlemail.com>
004d3809 4577
40c0a159
UB
4578 * arm/iterators.md (shiftable_ops): New code iterator.
4579 (t2_binop0, arith_shift_insn): New code attributes.
004d3809 4580 * arm/predicates.md (shift_nomul_operator): New predicate.
40c0a159
UB
4581 * arm/arm.md (insn_enabled): Delete.
4582 (enabled): Remove insn_enabled test.
4583 (*arith_shiftsi): Delete. Replace with ...
4584 (*<arith_shift_insn>_multsi): ... new pattern.
004d3809
RE
4585 (*<arith_shift_insn>_shiftsi): ... new pattern.
4586 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
4587
c2db3f3d 45882014-05-29 Radovan Obradovic <robradovic@mips.com>
40c0a159 4589 Tom de Vries <tom@codesourcery.com>
c2db3f3d
RO
4590
4591 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
4592 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
4593 clobber.
4594 (mips_split_call): Use POST_CALL_TMP_REG.
4595 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
4596
4b29b965
TV
45972014-05-29 Tom de Vries <tom@codesourcery.com>
4598
4599 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
4600 with #ifdef STACK_REGS.
4601
726f0774
JH
46022014-05-28 Jan Hubicka <hubicka@ucw.cz>
4603
4604 * varasm.c (get_variable_section): Walk aliases.
4605 (place_block_symbol): Walk aliases.
4606
ea0b381f
TV
46072014-05-28 Tom de Vries <tom@codesourcery.com>
4608
4609 Revert:
4610 2014-05-28 Tom de Vries <tom@codesourcery.com>
4611
4612 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
4613 * lra.c (initialize_lra_reg_info_element): Add init of
4614 actual_call_used_reg_set field.
4615 (lra): Call lra_create_live_ranges before lra_inheritance for
4616 -fuse-caller-save.
4617 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
4618 -fuse-caller-save.
40c0a159
UB
4619 * lra-constraints.c (need_for_call_save_p): Use
4620 actual_call_used_reg_set instead of call_used_reg_set for
4621 -fuse-caller-save.
ea0b381f
TV
4622 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
4623
73f793e3
RS
46242014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4625
4626 * doc/md.texi: Document that the % constraint character must
4627 be at the beginning of the string.
4628 * genoutput.c (validate_insn_alternatives): Check that '=',
4629 '+' and '%' only appear at the beginning of a constraint.
4630 * ira.c (commutative_constraint_p): Delete.
4631 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
4632 at the start of the string.
4633 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
4634 duplicate '='s.
4635 * config/arm/neon.md (bicdi3_neon): Likewise.
4636 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
4637 (slt_si, sltu_si): Likewise.
4638 * config/vax/vax.md (sbcdi3): Likewise.
4639 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
4640 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
4641 (mul64): Move '%' to beginning of constraint.
4642 * config/arm/arm.md (*xordi3_insn): Likewise.
4643 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
4644 (xorsi3): Likewise.
4645
5a7555ab
RS
46462014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4647
4648 * doc/md.texi: Document the restrictions on the "enabled" attribute.
4649
d67ff7b7
JM
46502014-05-28 Jason Merrill <jason@redhat.com>
4651
4652 PR c++/47202
4653 * cgraph.h (symtab_node::get_comdat_group_id): New.
4654 * cgraphunit.c (analyze_functions): Call it.
4655 * symtab.c (dump_symtab_node): Likewise.
4656 * tree.c (decl_comdat_group_id): New.
4657 * tree.h: Declare it.
4658 * lto-streamer-out.c (write_symbol): Use it.
4659 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
4660
ecc7533a
FXC
46612014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4662
4663 PR bootstrap/PR61146
4664 * wide-int.cc: Do not include longlong.h when compiling with clang.
4665
6e5799b9
RB
46662014-05-28 Richard Biener <rguenther@suse.de>
4667
4668 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
4669 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
4670 (vrp_visit_assignment_or_call): Print less vertical space.
4671 (vrp_visit_stmt): Likewise.
4672 (vrp_visit_phi_node): Likewise. For a PHI argument with
4673 VR_VARYING range consider recording it as copy.
4674
47f9fca8
RB
46752014-05-28 Richard Biener <rguenther@suse.de>
4676
4677 Revert
4678 2014-05-28 Richard Biener <rguenther@suse.de>
4679
4680 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
4681
7fbf8a3e
BE
46822014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
4683
4684 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
4685 sufficiently aligned and an offset is used at the same time.
4686 (expand_expr_real_1): Likewise.
4687
b017a174
RB
46882014-05-28 Richard Biener <rguenther@suse.de>
4689
4690 PR middle-end/61045
4691 * fold-const.c (fold_comparison): When folding
4692 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
4693 the sign of the remaining constant operand stays the same.
4694
96360888
KP
46952014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
4696
4697 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
4698 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
4699 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
4700 to the assembler.
40c0a159 4701 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
96360888
KP
4702 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
4703 (m32bit-doubles) Likewise.
4704 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
4705 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
4706 option for RL78.
4707
3c698bf0
RO
47082014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4709
4710 * configure.ac ($gcc_cv_ld_clearcap): New test.
4711 * configure: Regenerate.
4712 * config.in: Regenerate.
4713 * config/sol2.opt (mclear-hwcap): New option.
4714 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
4715 * config/sol2-clearcap.map: Moved here from
4716 testsuite/gcc.target/i386/clearcap.map.
4717 * config/sol2-clearcapv2.map: Move here from
4718 gcc.target/i386/clearcapv2.map.
4719 * config/t-sol2 (install): Depend on install-clearcap-map.
4720 (install-clearcap-map): New target.
4721 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
4722 -mclear-hwcap.
4723
4c8bd90f
RB
47242014-05-28 Richard Biener <rguenther@suse.de>
4725
4726 * hwint.h (*_HALF_WIDE_INT*): Move to ...
4727 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
4728 ... here and remove the rest.
4729 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
4730
a896172d
RB
47312014-05-28 Richard Biener <rguenther@suse.de>
4732
4733 PR tree-optimization/61335
4734 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
4735 new range fails, drop to varying.
4736
c41f1c42
BE
47372014-05-28 Olivier Hainque <hainque@adacore.com>
4738
4739 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
4740 (CPP_SPEC): Add entry for -mcpu=8548.
4741 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
4742 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
4743
b8c6a45a
TV
47442014-05-28 Tom de Vries <tom@codesourcery.com>
4745
4746 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
4747 * lra.c (initialize_lra_reg_info_element): Add init of
4748 actual_call_used_reg_set field.
4749 (lra): Call lra_create_live_ranges before lra_inheritance for
4750 -fuse-caller-save.
4751 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
4752 -fuse-caller-save.
40c0a159
UB
4753 * lra-constraints.c (need_for_call_save_p): Use
4754 actual_call_used_reg_set instead of call_used_reg_set for
4755 -fuse-caller-save.
b8c6a45a
TV
4756 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
4757
dbe7d9e3 47582014-05-28 Radovan Obradovic <robradovic@mips.com>
40c0a159 4759 Tom de Vries <tom@codesourcery.com>
dbe7d9e3 4760
40c0a159
UB
4761 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
4762 to gccoptlist.
dbe7d9e3
RO
4763 (@item -fuse-caller-save): New item.
4764
5c989bbf 47652014-05-28 Radovan Obradovic <robradovic@mips.com>
40c0a159 4766 Tom de Vries <tom@codesourcery.com>
5c989bbf
RO
4767
4768 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
4769 OPT_fuse_caller_save.
4770
c2ba7e7a 47712014-05-28 Radovan Obradovic <robradovic@mips.com>
40c0a159 4772 Tom de Vries <tom@codesourcery.com>
c2ba7e7a
RO
4773
4774 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
4775 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
4776 get_call_reg_set_usage.
4777 * resource.c (mark_set_resources, mark_target_live_regs): Use
4778 get_call_reg_set_usage.
4779 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
4780 field.
4781 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
4782 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
4783 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
4784 * ira-build.c (ira_create_allocno): Init
4785 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
4786 (create_cap_allocno, propagate_allocno_info)
4787 (propagate_some_info_from_allocno)
4788 (copy_info_to_removed_store_destinations): Handle
4789 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
4790 * ira-costs.c (ira_tune_allocno_costs): Use
4791 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
4792
27c07cc5 47932014-05-28 Radovan Obradovic <robradovic@mips.com>
40c0a159 4794 Tom de Vries <tom@codesourcery.com>
27c07cc5
RO
4795
4796 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
4797 and function_used_regs_valid fields.
4798 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
4799 find_all_hard_reg_sets.
4800 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
4801 (get_call_reg_set_usage): New function.
4802 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
4803 * regs.h (get_call_reg_set_usage): Declare.
4804
ca48e5ef
GJL
48052014-05-28 Georg-Johann Lay <avr@gjlay.de>
4806
4807 PR libgcc/61152
4808 * config/dbx.h (License): Add Runtime Library Exception.
4809 * config/newlib-stdint.h (License): Same.
4810 * config/rtems.h (License): Same
4811 * config/initfini-array.h (License): Same
4812 * config/v850/v850.h (License): Same.
4813 * config/v850/v850-opts.h (License): Same
4814 * config/v850/rtems.h (License): Same.
4815
92747f7d
GJL
48162014-05-28 Georg-Johann Lay <avr@gjlay.de>
4817
4818 PR target/61044
4819 * doc/extend.texi (Local Labels): Note that label differences are
4820 not supported for AVR.
4821
c41f1c42
BE
48222014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4823 Olivier Hainque <hainque@adacore.com>
4824
4825 * rtl.h (set_for_reg_notes): Declare.
4826 * emit-rtl.c (set_for_reg_notes): New function.
4827 (set_unique_reg_note): Use it.
4828 * optabs.c (add_equal_note): Likewise
4829
9c6ab05f
AP
48302014-05-27 Andrew Pinski <apinski@cavium.com>
4831
4832 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
4833 Use <w> for the register in assembly template.
40c0a159 4834 (stack_protect_test): Use the mode of operands[0] for the result.
9c6ab05f
AP
4835 (stack_protect_test_<mode>): Use <w> for the register
4836 in assembly template.
4837
69c7a374
DD
48382014-05-27 DJ Delorie <dj@redhat.com>
4839
4840 * config/rx/rx.c (add_vector_labels): New.
4841 (rx_output_function_prologue): Call it.
4842 (rx_handle_func_attribute): Don't require empty arguments.
4843 (rx_handle_vector_attribute): New.
4844 (rx_attribute_table): Add "vector" attribute.
4845 * doc/extend.texi (interrupt, vector): Document new/changed
4846 RX-specific attributes.
4847
4848 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
4849
5e67547d
EB
48502014-05-27 Eric Botcazou <ebotcazou@adacore.com>
4851
4852 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
4853 predicate to detect a negative quotient.
4854
d378c07e
EB
48552014-05-27 Eric Botcazou <ebotcazou@adacore.com>
4856
4857 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
4858 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
4859 Add X - Y CMP 0 to X CMP Y transformation.
4860 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
4861
3ce6c715
SB
48622014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
4863
4864 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
4865 before printing.
4866
11237229
SE
48672014-05-27 Steve Ellcey <sellcey@mips.com>
4868
4869 * config/mips/mips.c: Add include of cgraph.h.
4870
7ea7f668
RB
48712014-05-27 Richard Biener <rguenther@suse.de>
4872
4873 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
4874
c7eca9fe
GJL
48752014-05-27 Georg-Johann Lay <avr@gjlay.de>
4876
4877 PR libgcc/61152
4878 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
4879 * config/arm/arm-cores.def (License): Same.
4880 * config/arm/arm-opts.h (License): Same.
4881 * config/arm/aout.h (License): Same.
4882 * config/arm/bpabi.h (License): Same.
4883 * config/arm/elf.h (License): Same.
4884 * config/arm/linux-elf.h (License): Same.
4885 * config/arm/linux-gas.h (License): Same.
4886 * config/arm/netbsd-elf.h (License): Same.
4887 * config/arm/uclinux-eabi.h (License): Same.
4888 * config/arm/uclinux-elf.h (License): Same.
4889 * config/arm/vxworks.h (License): Same.
4890
7a10ea9f
KT
48912014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4892
4893 * config/arm/neon.md (neon_bswap<mode>): New pattern.
4894 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
4895 (arm_init_neon_builtins): Handle NEON_BSWAP.
4896 Define required type nodes.
4897 (arm_expand_neon_builtin): Handle NEON_BSWAP.
4898 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
4899 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
4900 * config/arm/iterators.md (VDQHSD): New mode iterator.
4901
597f5997
RB
49022014-05-27 Richard Biener <rguenther@suse.de>
4903
4904 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
4905 Try using literal operands when comparing value-ranges failed.
4906
f571b63f
RS
49072014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
4908
4909 * ira.c (commutative_operand): Adjust for change to recog_data.
4910 [Missing from previous commit.]
4911
4cc8d9d2
RS
49122014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
4913
4914 * system.h (TEST_BIT): New macro.
4915 * recog.h (alternative_mask): New type.
4916 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
4917 (recog_data_d): Replace alternative_enabled_p array with
4918 enabled_alternatives.
4919 (target_recog): New structure.
4920 (default_target_recog, this_target_recog): Declare.
4921 (get_enabled_alternatives, recog_init): Likewise.
4922 * recog.c (default_target_recog, this_target_recog): New variables.
4923 (get_enabled_alternatives): New function.
4924 (extract_insn): Use it.
4925 (recog_init): New function.
4926 (preprocess_constraints, constrain_operands): Adjust for change to
4927 recog_data.
4928 * postreload.c (reload_cse_simplify_operands): Likewise.
4929 * reload.c (find_reloads): Likewise.
4930 * ira-costs.c (record_reg_classes): Likewise.
4931 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
4932 all alternatives after a disabled one would be skipped.
4933 (ira_implicitly_set_insn_hard_regs): Likewise.
4934 * ira.c (ira_setup_alts): Adjust for change to recog_data.
4935 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
4936 with enabled_alternatives.
4937 * lra.c (free_insn_recog_data): Update accordingly.
4938 (lra_update_insn_recog_data): Likewise.
4939 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
4940 * lra-constraints.c (process_alt_operands): Likewise. Handle
4941 only_alternative as part of the enabled mask.
4942 * target-globals.h (this_target_recog): Declare.
4943 (target_globals): Add a recog field.
4944 (restore_target_globals): Restore this_target_recog.
4945 * target-globals.c: Include recog.h.
4946 (default_target_globals): Initialize recog field.
4947 (save_target_globals): Likewise.
4948 * reginfo.c (reinit_regs): Call recog_init.
4949 * toplev.c (backend_init_target): Likewise.
4950
9921417d
RS
49512014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
4952
4953 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
4954 rather than any named insn's code.
4955
a5024e01
GJL
49562014-05-27 Georg-Johann Lay <avr@gjlay.de>
4957
4958 PR libgcc/61152
4959 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
4960 * config/arm/arm-cores.def (License): Same.
4961
50efcce1
JH
49622014-05-26 Jan Hubicka <hubicka@ucw.cz>
4963
4964 * tree.h (decl_comdat_group): Declare.
4965 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
4966 * tree.c (decl_comdat_group): Here.
4967
3e26c8f6
RS
49682014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
4969
4970 PR rtl-optimization/61222
4971 * combine.c (simplify_shift_const_1): When moving a PLUS outside
4972 the shift, truncate the PLUS operand to the result mode.
4973
b8140cd6
UB
49742014-05-26 Uros Bizjak <ubizjak@gmail.com>
4975
4976 PR target/61271
4977 * config/i386/i386.c (ix86_rtx_costs)
4978 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
4979 Fix condition.
4980
acea91c9
MJ
49812014-05-26 Martin Jambor <mjambor@suse.cz>
4982
4983 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
4984 subreg uses.
4985
d93461f7
RB
49862014-05-26 Richard Biener <rguenther@suse.de>
4987
4988 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
4989 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
4990 Provide specializations.
4991 (wi::int_traits <HOST_WIDE_INT>,
4992 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
4993
bfe51f42
AM
49942014-05-26 Alan Modra <amodra@gmail.com>
4995
4996 PR target/61098
4997 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
4998 params and return a bool. Remove dead code. Update comment.
4999 Assert we have a const_int source. Remove bogus code from
5000 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
5001 handling of constants > 2G and reg_equal note, from..
5002 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
5003 return value. Update comment. If we can, use a new pseudo
5004 for intermediate calculations.
5005 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
5006 prototype.
5007 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
5008 call to rs6000_emit_set_const in splitter.
5009 (movdi_internal64+2, +3): Likewise.
5010
a9243bfc
RB
50112014-05-26 Richard Biener <rguenther@suse.de>
5012
5013 * system.h: Define __STDC_FORMAT_MACROS before
5014 including inttypes.h.
5015 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
5016 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
5017 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
5018 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
5019 HOST_WIDEST_INT_C): Remove.
5020 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
5021 if C99 inttypes.h is not available.
5022 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
5023 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
5024 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
5025 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
5026 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
5027 (struct output_info): Likewise.
5028 (print_statistics): Adjust.
5029 (dump_bitmap_statistics): Likewise.
5030 * bt-load.c (migrate_btr_defs): Print with PRId64.
5031 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
5032 (MAX_SAFE_MULTIPLIER): Adjust.
5033 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
5034 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
5035 dump_cgraph_node): Likewise.
5036 * final.c (dump_basic_block_info): Likewise.
5037 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
5038 * gcov.c (format_gcov): Likewise.
5039 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
5040 for calculation.
5041 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
5042 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
5043 (inline_small_functions, dump_overall_stats, dump_inline_stats):
5044 Use PRId64 for dumping.
5045 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
5046 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
5047 (add_allocno_hard_regs): Adjust.
5048 * loop-doloop.c (doloop_modify): Print using PRId64.
5049 * loop-iv.c (inverse): Compute in uint64_t.
5050 (determine_max_iter, iv_number_of_iterations): Likewise.
5051 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
5052 Print using PRId64.
5053 * lto-streamer-out.c (write_symbol): Use uint64_t.
5054 * mcf.c (CAP_INFINITY): Use int64_t maximum.
5055 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
5056 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
5057 * modulo-sched.c (const_iteration_count): Use int64_t.
5058 (sms_schedule): Dump using PRId64.
5059 * predict.c (dump_prediction): Likewise.
5060 * pretty-print.h (pp_widest_integer): Remove.
5061 * profile.c (get_working_sets, is_edge_inconsistent,
5062 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
5063 * tree-pretty-print.c (pp_double_int): Remove case handling
5064 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
5065 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
5066 and adjust users.
5067 (pass_optimize_bswap::execute): Remove restriction on hosts.
5068 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
5069 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
5070 * tree.c (widest_int_cst_value): Remove.
5071 * tree.h (widest_int_cst_value): Likewise.
5072 * value-prof.c (dump_histogram_value): Print using PRId64.
5073 * gengtype.c (main): Also inject int64_t.
5074 * ggc-page.c (struct max_alignment): Use int64_t.
5075 * alloc-pool.c (struct allocation_object_def): Likewise.
5076 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
5077 for computation.
5078 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
5079 * doc/tm.texi: Regenerated.
5080 * gengtype-lex.l (IWORD): Handle [u]int64_t.
5081 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
5082 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
5083 mmix_output_register_setting): Use [u]int64_t in prototypes.
5084 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
5085 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
5086 mmix_output_octa, mmix_output_shifted_value): Adjust.
5087 (mmix_intval): Adjust. Remove unreachable case.
b8140cd6 5088 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
a9243bfc 5089
edf6ddf6
RB
50902014-05-26 Richard Biener <rguenther@suse.de>
5091
5092 * configure.ac: Drop __int64 type check. Insist that we
5093 found uint64_t and int64_t.
5094 * hwint.h (HOST_BITS_PER___INT64): Remove.
b8140cd6 5095 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
edf6ddf6
RB
5096 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
5097 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
5098 (HOST_WIDEST_FAST_INT): Remove __int64 case.
5099 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
5100 for dst_q_src_df_rms_cdt.
5101 * configure: Regenerate.
5102 * config.in: Likewise.
5103
d4082970
MT
51042014-05-26 Michael Tautschnig <mt@debian.org>
5105
5106 PR target/61249
49f002b6
UB
5107 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
5108 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
d4082970 5109
d29d688a
ZC
51102014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5111
5112 PR rtl-optimization/61278
5113 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
5114
88f32f0f
ZC
51152014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5116
5117 PR rtl-optimization/61220
5118 Part of PR rtl-optimization/61225
5119 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
5120 insn; skip split_edge for a block with only one successor.
5121
97ae6b64
JH
51222014-05-23 Jan Hubicka <hubicka@ucw.cz>
5123
d4082970
MT
5124 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
5125 for variables.
97ae6b64 5126
07990a5e
JH
51272014-05-23 Jan Hubicka <hubicka@ucw.cz>
5128
5129 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
5130 (update_vtable_references): New function.
5131 (function_and_variable_visibility): Rewrite also vtable initializers.
5132 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
5133
fd1e9302
JH
51342014-05-23 Jan Hubicka <hubicka@ucw.cz>
5135
5136 * ggc.h (ggc_grow): New function.
5137 * ggc-none.c (ggc_grow): New function.
5138 * ggc-page.c (ggc_grow): Likewise.
5139
7f7beb3f
JH
51402014-05-23 Jan Hubicka <hubicka@ucw.cz>
5141
d4082970
MT
5142 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
5143 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
5144 comdat_can_be_unshared_p, cgraph_externally_visible_p,
7f7beb3f
JH
5145 varpool_externally_visible_p, can_replace_by_local_alias,
5146 update_visibility_by_resolution_info, function_and_variable_visibility,
5147 pass_data_ipa_function_and_variable_visibility,
5148 make_pass_ipa_function_and_variable_visibility,
5149 whole_program_function_and_variable_visibility,
5150 pass_data_ipa_whole_program_visibility,
5151 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
5152 * cgraph.h (cgraph_local_node_p): Declare.
5153 * ipa-visibility.c: New file.
5154 * Makefile.in (OBJS): Add ipa-visiblity.o
5155
6adda80b
JH
51562014-05-23 Jan Hubicka <hubicka@ucw.cz>
5157
5158 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
5159 that var decl is available.
5160
aede2c10
JH
51612014-05-23 Jan Hubicka <hubicka@ucw.cz>
5162
5163 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
5164 symtab_node pointer.
d4082970 5165 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
aede2c10
JH
5166 (find_decls_types_r): Do not walk COMDAT_GROUP.
5167 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
5168 * varasm.c (make_decl_one_only): Use set_comdat_group;
5169 create node if needed.
5170 * ipa-inline-transform.c (save_inline_function_body): Update
5171 way we decl->symtab mapping.
5172 * symtab.c (symtab_hash, hash_node, eq_node
5173 symtab_insert_node_to_hashtable): Remove.
5174 (symtab_register_node): Update.
5175 (symtab_unregister_node): Update.
5176 (symtab_get_node): Reimplement as inline function.
5177 (symtab_add_to_same_comdat_group): Update.
5178 (symtab_dissolve_same_comdat_group_list): Update.
5179 (dump_symtab_base): Update.
5180 (verify_symtab_base): Update.
5181 (symtab_make_decl_local): Update.
5182 (fixup_same_cpp_alias_visibility): Update.
5183 (symtab_nonoverwritable_alias): Update.
5184 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
5185 * ipa.c (update_visibility_by_resolution_info): UPdate.
5186 * bb-reorder.c: Include cgraph.h
5187 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
5188 with comdat groups.
5189 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
5190 * cgraph.c (cgraph_get_create_node): Update.
5191 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
5192 and comdat_group_.
5193 (symtab_get_node): Make inline.
5194 (symtab_insert_node_to_hashtable): Remove.
5195 (symtab_can_be_discarded): Update.
5196 (decl_comdat_group): New function.
d4082970
MT
5197 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
5198 Update.
aede2c10
JH
5199 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
5200 comdat group name.
5201 (read_comdat_group): New function.
5202 (input_node, input_varpool_node): Use it.
5203 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
5204 comdat groups.
5205 * mips.c (mips_start_unique_function): Likewise.
5206 (ix86_code_end): Likewise.
5207 (rs6000_code_end): Likweise.
d4082970 5208 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
aede2c10 5209
4df199d1
JH
52102014-05-23 Jan Hubicka <hubicka@ucw.cz>
5211
5212 * gengtype-state.c (fatal_reading_state): Bring offline.
5213 * optabs.c (widening_optab_handler): Bring offline.
5214 * optabs.h (widening_optab_handler): Likewise.
5215 * final.c (get_attr_length_1): Likewise.
5216
e0e349f3
JH
52172014-05-23 Jan Hubicka <hubicka@ucw.cz>
5218
5219 * sched-int.h (sd_iterator_cond): Manually tail recurse.
5220
a35dd1fa
SB
52212014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
5222
d4082970 5223 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
a35dd1fa 5224 (ppc440-compare): Include shift with dot.
d4082970 5225 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
a35dd1fa
SB
5226 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
5227 without dot.
5228 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
5229 without dot.
5230 (e6500_sfx2): Include it.
5231 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
5232 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
5233 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
5234 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
5235 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
5236 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
5237 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
5238 *lshiftrt_internal1le, *lshiftrt_internal1be,
5239 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
5240 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
5241 *rotldi3_internal10le, *rotldi3_internal10be,
5242 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
5243 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
5244 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
5245 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
5246 define_insns): Use type "shift" in the appropriate alternatives.
5247
73c076c8
SB
52482014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
5249
5250 * config/rs6000/rs6000.md (type): Add "logical". Delete
5251 "fast_compare".
5252 (dot): Adjust comment.
5253 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
5254 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
5255 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
5256 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
5257 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
5258 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
d4082970 5259 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
73c076c8
SB
5260 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
5261
d4082970
MT
5262 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
5263 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
5264 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
5265 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
5266 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
5267 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
5268 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
5269 * config/rs6000/8540.md (ppc8540_su): Adjust.
5270 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
73c076c8 5271 cell-cmp-microcoded): Adjust.
d4082970
MT
5272 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
5273 * config/rs6000/e500mc.md (e500mc_su): Adjust.
5274 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
5275 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
5276 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
5277 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
5278 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
5279 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
5280 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
73c076c8 5281 Adjust.
d4082970
MT
5282 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
5283 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
73c076c8 5284 Adjust. Adjust comment.
d4082970
MT
5285 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
5286 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
73c076c8 5287
0cbb4f58
SB
52882014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
5289
5290 * config/rs6000/rs6000.md (type): Add "add".
5291 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
5292 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
5293 define_insns): Use it.
5294 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
5295
5296 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
5297 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
d4082970 5298 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
0cbb4f58
SB
5299 * config/rs6000/601.md (ppc601-integer): Adjust.
5300 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
5301 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
5302 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
5303 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
5304 * config/rs6000/8540.md (ppc8540_su): Adjust.
5305 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
5306 cell-cmp-microcoded): Adjust.
5307 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
5308 * config/rs6000/e500mc.md (e500mc_su): Adjust.
5309 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
5310 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
5311 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
5312 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
5313 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
5314 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
5315 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
5316 Adjust.
5317 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
d4082970 5318 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
0cbb4f58
SB
5319 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
5320 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
5321
892e7fa6
SB
53222014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
5323
5324 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
5325 "delayed_compare", "var_delayed_compare".
5326 (var_shift): New attribute.
5327 (cell_micro): Adjust.
5328 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
5329 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
5330 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
5331 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
5332 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
5333 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
5334 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
5335 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
5336 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
5337 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
5338 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
5339 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
5340 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
5341 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
5342 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
5343 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
5344 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
5345 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
5346 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
5347 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
5348 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
5349 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
5350 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
5351 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
5352 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
5353
5354 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
5355 * config/rs6000/440.md (ppc440-integer): Adjust.
d4082970 5356 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
892e7fa6
SB
5357 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
5358 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
5359 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
d4082970 5360 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
892e7fa6
SB
5361 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
5362 * config/rs6000/8540.md (ppc8540_su): Adjust.
5363 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
5364 cell-cmp-microcoded): Adjust.
5365 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
5366 * config/rs6000/e500mc.md (e500mc_su): Adjust.
5367 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
5368 e500mc64_delayed): Adjust.
5369 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
5370 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
5371 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
d4082970
MT
5372 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
5373 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
892e7fa6
SB
5374 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
5375 power6-delayed-compare, power6-var-delayed-compare): Adjust.
d4082970 5376 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
892e7fa6
SB
5377 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
5378 Adjust comment.
5379 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
5380 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
5381
441e02a5
SB
53822014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
5383
d4082970 5384 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
441e02a5
SB
5385 (bits): New mode_attr.
5386 (idiv_ldiv): Delete mode_attr.
5387 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
5388 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
5389 rs6000_adjust_priority, is_nonpipeline_insn,
5390 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
5391
5392 * config/rs6000/40x.md (ppc403-idiv): Adjust.
5393 * config/rs6000/440.md (ppc440-idiv): Adjust.
5394 * config/rs6000/476.md (ppc476-idiv): Adjust.
5395 * config/rs6000/601.md (ppc601-idiv): Adjust.
5396 * config/rs6000/603.md (ppc603-idiv): Adjust.
5397 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
5398 ppc620-ldiv): Adjust.
5399 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
5400 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
5401 * config/rs6000/8540.md (ppc8540_divide): Adjust.
5402 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
5403 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
5404 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
5405 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
5406 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
5407 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
5408 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
5409 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
5410 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
5411 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
5412 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
5413 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
5414 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
5415 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
5416 * config/rs6000/titan.md (titan_fxu_div): Adjust.
5417
58ee9e66
SB
54182014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
5419
5420 * config/rs6000/rs6000.md (type): Delete "insert_word",
5421 "insert_dword". Add "insert".
5422 (size): Update comment.
5423 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
5424 insn_must_be_first_in_group): Adjust.
5425 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
5426 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
5427 *insvsi_internal6, insvdi_internal): Adjust.
5428
5429 * config/rs6000/40x.md (ppc403-integer): Adjust.
5430 * config/rs6000/440.md (ppc440-integer): Adjust.
5431 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
5432 * config/rs6000/601.md (ppc601-integer): Adjust.
5433 * config/rs6000/603.md (ppc603-integer): Adjust.
5434 * config/rs6000/6xx.md (ppc604-integer): Adjust.
5435 * config/rs6000/7450.md (ppc7450-integer): Adjust.
5436 * config/rs6000/7xx.md (ppc750-integer): Adjust.
5437 * config/rs6000/8540.md (ppc8540_su): Adjust.
5438 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
5439 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
5440 * config/rs6000/e500mc.md (e500mc_su): Adjust.
5441 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
5442 * config/rs6000/e5500.md (e5500_sfx): Adjust.
5443 * config/rs6000/e6500.md (e6500_sfx): Adjust.
5444 * config/rs6000/mpc.md (mpccore-integer): Adjust.
5445 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
5446 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
d4082970 5447 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
58ee9e66
SB
5448 * config/rs6000/power7.md (power7-integer): Adjust.
5449 * config/rs6000/power8.md (power8-1cyc): Adjust.
5450 * config/rs6000/rs64.md (rs64a-integer): Adjust.
5451 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
5452
e0528ed9
SB
54532014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
5454
5455 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
5456 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
5457 (size): New attribute.
5458 (dot): New attribute.
5459 (cell_micro): Adjust.
5460 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
5461 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
5462 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
5463 umuldi3_highpart): Adjust.
5464 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
5465 rs6000_adjust_priority, is_nonpipeline_insn,
5466 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
5467
5468 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
5469 ppc405-imul3): Adjust.
5470 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
5471 * config/rs6000/476.md (ppc476-imul): Adjust.
5472 * config/rs6000/601.md (ppc601-imul): Adjust.
5473 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
5474 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
5475 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
5476 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
5477 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
5478 Adjust.
5479 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
5480 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
5481 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
5482 cell-imul): Adjust.
5483 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
5484 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
5485 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
5486 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
5487 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
5488 * config/rs6000/mpc.md (mpccore-imul): Adjust.
5489 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
5490 power4-lmul, power4-imul, power4-imul3): Adjust.
5491 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
5492 power5-lmul, power5-imul, power5-imul3): Adjust.
5493 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
5494 power6-lmul, power6-imul, power6-imul3): Adjust.
5495 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
5496 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
5497
5498 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
5499 rs64a-lmul): Adjust.
5500 * config/rs6000/titan.md (titan_imul): Adjust.
5501
1263d642
SB
55022014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
5503
5504 * config/rs6000/rs6000.md (type): Add new value "halfmul".
5505 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
5506 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
5507 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
5508 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
d4082970 5509 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
1263d642
SB
5510 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
5511 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
5512 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
5513 * config/rs6000/titan.md: Delete nonsensical comment.
5514 (titan_imul): Add type imul3.
5515 (titan_mulhw): Remove type imul3; add type halfmul.
5516
1be6301a
SB
55172014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
5518
5519 * config/rs6000/rs6000.md (type): Reorder, reformat.
5520
8aab5218
MJ
55212014-05-23 Martin Jambor <mjambor@suse.cz>
5522
5523 PR tree-optimization/53787
5524 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
5525 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
5526 analysis_done, update all uses.
5527 * ipa-prop.c: Include domwalk.h
5528 (param_analysis_info): Removed.
5529 (param_aa_status): New type.
5530 (ipa_bb_info): Likewise.
5531 (func_body_info): Likewise.
5532 (ipa_get_bb_info): New function.
5533 (aa_overwalked): Likewise.
5534 (find_dominating_aa_status): Likewise.
5535 (parm_bb_aa_status_for_bb): Likewise.
5536 (parm_preserved_before_stmt_p): Changed to use new param AA info.
5537 (load_from_unmodified_param): Accept func_body_info as a parameter
5538 instead of parms_ainfo.
5539 (parm_ref_data_preserved_p): Changed to use new param AA info.
5540 (parm_ref_data_pass_through_p): Likewise.
5541 (ipa_load_from_parm_agg_1): Likewise. Update callers.
5542 (compute_complex_assign_jump_func): Changed to use new param AA info.
5543 (compute_complex_ancestor_jump_func): Likewise.
5544 (ipa_compute_jump_functions_for_edge): Likewise.
5545 (ipa_compute_jump_functions): Removed.
5546 (ipa_compute_jump_functions_for_bb): New function.
5547 (ipa_analyze_indirect_call_uses): Likewise, moved variable
5548 declarations down.
5549 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
5550 and info, moved variable declarations down.
5551 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
5552 node and info.
5553 (ipa_analyze_stmt_uses): Likewise.
5554 (ipa_analyze_params_uses): Removed.
5555 (ipa_analyze_params_uses_in_bb): New function.
5556 (ipa_analyze_controlled_uses): Likewise.
5557 (free_ipa_bb_info): Likewise.
5558 (analysis_dom_walker): New class.
5559 (ipa_analyze_node): Handle node-specific forbidden analysis,
5560 initialize and free func_body_info, use dominator walker.
5561 (ipcp_modif_dom_walker): New class.
5562 (ipcp_transform_function): Create and free func_body_info, use
5563 ipcp_modif_dom_walker, moved a lot of functionality there.
5564
85a16bf8
MP
55652014-05-23 Marek Polacek <polacek@redhat.com>
5566 Jakub Jelinek <jakub@redhat.com>
5567
5568 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
5569 * gcc.c (sanitize_spec_function): Likewise.
5570 * convert.c (convert_to_integer): Include "ubsan.h". Add
5571 floating-point to integer instrumentation.
5572 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
5573 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
5574 SANITIZE_NONDEFAULT.
5575 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
5576 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
5577 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
5578 * ubsan.c: Include "realmpfr.h" and "dfp.h".
5579 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
5580 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
5581 float/double/long double.
5582 (ubsan_instrument_float_cast): New function.
5583 * ubsan.h (ubsan_instrument_float_cast): Declare.
5584
40c0a159 55852014-05-23 Jiong Wang <jiong.wang@arm.com>
fee9ba42
JW
5586
5587 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
5588 predicate.
5589 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
5590 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
5591 Adjust for tailcalling through registers.
5592 * config/aarch64/aarch64.h (enum reg_class): New caller save
5593 register class.
5594 (REG_CLASS_NAMES): Likewise.
5595 (REG_CLASS_CONTENTS): Likewise.
5596 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
5597 Allow tailcalling without decls.
5598
ed20ae98
TS
55992014-05-23 Thomas Schwinge <thomas@codesourcery.com>
5600
09af4b4c
TS
5601 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
5602 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
5603
ed20ae98
TS
5604 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
5605 gsi, and variables v_* to v*.
5606
4adf63f9
EB
56072014-05-23 Eric Botcazou <ebotcazou@adacore.com>
5608
5609 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
5610
a5a5434f
TS
56112014-05-23 Thomas Schwinge <thomas@codesourcery.com>
5612
0aadce73
TS
5613 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
5614 * omp-low.c: Update accordingly.
5615
eb63c927
TS
5616 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
5617 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
5618 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
5619 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
5620 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
5621 GF_OMP_TARGET_KIND_UPDATE.
5622
a5a5434f
TS
5623 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
5624 Explicitly enumerate the expected region types.
5625
ee526ea7
PE
56262014-05-23 Paul Eggert <eggert@cs.ucla.edu>
5627
5628 PR other/56955
5629 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
5630 documentation; the old documentation didn't clearly state the
5631 constraints on the contents of the pointed-to storage.
5632
676cad4d
MK
56332014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
5634
5635 Fix bootstrap error on ia64
5636 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
5637 Return default value.
5638
73984f84
TP
56392014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
5640
5641 PR tree-optimization/54733
5642 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
5643 (CMPNOP): Define.
5644 (find_bswap_or_nop_load): New.
5645 (find_bswap_1): Renamed to ...
5646 (find_bswap_or_nop_1): This. Also add support for memory source.
5647 (find_bswap): Renamed to ...
5648 (find_bswap_or_nop): This. Also add support for memory source and
58126368
TP
5649 detection of bitwise operations equivalent to load in target
5650 endianness.
73984f84
TP
5651 (execute_optimize_bswap): Likewise. Also move its leading comment back
5652 in place and split statement transformation into ...
5653 (bswap_replace): This.
5654
b17ec42d
VM
56552014-05-22 Vladimir Makarov <vmakarov@redhat.com>
5656
5657 PR rtl-optimization/61215
5658 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
5659 simplify_gen_subreg until final substitution.
5660
ea9364db
AM
56612014-05-23 Alan Modra <amodra@gmail.com>
5662
5663 PR target/61231
5664 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
5665 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
5666 Use "Y" constraint rather than "m".
5667
aa87aced
KV
56682014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
5669
5670 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
5671 define.
5672 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
5673 New function declaration.
5674 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
5675 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
5676 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
5677 (aarch64_init_builtins) : Initialize builtins
5678 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
5679 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
5680 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
5681 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
5682 and __builtins_aarch64_set_fpsr.
5683 (aarch64_atomic_assign_expand_fenv): New function.
5684 * config/aarch64/aarch64.md (set_fpcr): New pattern.
5685 (get_fpcr) : Likewise.
5686 (set_fpsr) : Likewise.
5687 (get_fpsr) : Likewise.
5688 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
5689 and UNSPECV_SET_FPSR.
5690 * doc/extend.texi (AARCH64 Built-in Functions) : Document
5691 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
5692 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
5693
0a1eb350
VM
56942014-05-22 Vladimir Makarov <vmakarov@redhat.com>
5695
5696 PR rtl-optimization/60969
5697 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
5698 constraints. Set up mem cost for NO_REGS case.
5699
f6a7cffc
TS
57002014-05-22 Thomas Schwinge <thomas@codesourcery.com>
5701
5702 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
5703
4000360e
BS
57042012-05-22 Bernd Schmidt <bernds@codesourcery.com>
5705
5706 * config/darwin.c: Include "lto-section-names.h".
5707 (LTO_SEGMENT_NAME): Don't define.
5708 * config/i386/winnt.c: Include "lto-section-names.h".
5709 * lto-streamer.c: Include "lto-section-names.h".
5710 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
5711 * lto-wrapper.c: Include "lto-section-names.h".
5712 (LTO_SECTION_NAME_PREFIX): Don't define.
5713 * lto-section-names.h: New file.
5714 * cgraphunit.c: Include "lto-section-names.h".
5715
c9aee450
PB
57162014-05-22 Peter Bergner <bergner@vnet.ibm.com>
5717
5718 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
5719
37f2edf5
RE
57202014-05-22 Richard Earnshaw <rearnsha@arm.com>
5721
5722 PR target/61208
5723 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
5724
1ad47ee5
NC
57252014-05-22 Nick Clifton <nickc@redhat.com>
5726
d4082970 5727 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
1ad47ee5 5728
1f9c420b
EB
57292014-05-22 Eric Botcazou <ebotcazou@adacore.com>
5730
5731 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
5732 -> (T)A transformation to integer types.
5733
e3f0315f
TJ
57342014-05-22 Teresa Johnson <tejohnson@google.com>
5735
5736 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
5737 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
5738 (gcov_rewrite): Use gcov_nonruntime_assert.
5739 (gcov_open): Ditto.
5740 (gcov_write_words): Ditto.
5741 (gcov_write_length): Ditto.
5742 (gcov_read_words): Use gcov_nonruntime_assert, and remove
5743 gcc_assert from IN_LIBGCOV code.
5744 (gcov_read_summary): Use gcov_error to flag profile corruption.
5745 (gcov_sync): Use gcov_nonruntime_assert.
5746 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
5747 (gcov_histo_index): Use gcov_nonruntime_assert.
5748 (static void gcov_histogram_merge): Ditto.
5749 (compute_working_sets): Ditto.
5750 * gcov-io.h (gcov_nonruntime_assert): Define.
5751 (gcov_error): Define for !IN_LIBGCOV
5752
c8f49949
RB
57532014-05-22 Richard Biener <rguenther@suse.de>
5754
5755 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5756 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
5757 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
5758 and deallocation site.
5759 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5760 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
5761 passing through the incoming points-to set.
5762 (handle_lhs_call): Use flags argument instead of recomputing it.
5763 (find_func_aliases_for_call): Call handle_lhs_call with proper
5764 call return flags.
5765
a822564d
JJ
57662014-05-22 Jakub Jelinek <jakub@redhat.com>
5767
5768 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
5769 all padding bits in REAL_VALUE_TYPE are cleared.
5770
4960a0cb
MK
57712014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
5772
5773 Cleanup and improve multipass_dfa_lookahead_guard
d4082970
MT
5774 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
5775 (core2i7_first_cycle_multipass_begin,)
5776 (core2i7_first_cycle_multipass_issue,)
5777 (core2i7_first_cycle_multipass_backtrack): Update signature.
5778 * config/ia64/ia64.c
5779 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
5780 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
5781 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
5782 hook definition.
5783 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
5784 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
5785 values.
5786 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
5787 return values.
5788 * doc/tm.texi: Regenerate.
5789 * doc/tm.texi.in
5790 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
5791 * haifa-sched.c (ready_try): Make signed to allow negative values.
5792 (rebug_ready_list_1): Update.
5793 (choose_ready): Simplify.
5794 (sched_extend_ready_list): Update.
4960a0cb 5795
16d83dd6
MK
57962014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
5797
5798 Remove IA64 speculation tweaking flags
d4082970
MT
5799 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
5800 speculation tuning flags.
5801 (msched-prefer-non-data-spec-insns,)
5802 (msched-prefer-non-control-spec-insns): Obsolete options.
5803 * haifa-sched.c (choose_ready): Remove handling of
5804 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
5805 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
5806 and PREFER_NON_DATA_SPEC.
5807 * sel-sched.c (process_spec_exprs): Remove handling of
5808 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
16d83dd6 5809
69da098b
MK
58102014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
5811
5812 Improve scheduling debug output
5813 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
5814 (advance_one_cycle): Update.
5815 (schedule_insn, queue_to_ready): Add debug printouts.
5816 (debug_ready_list_1): New static function.
5817 (debug_ready_list): Update.
5818 (max_issue): Add debug printouts.
5819 (dump_insn_stream): New static function.
5820 (schedule_block): Use it. Also better indent printouts.
5821
58222014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
5823
5824 Fix sched_insn debug counter
5825 * haifa-sched.c (schedule_insn): Update.
5826 (struct haifa_saved_data): Add nonscheduled_insns_begin.
5827 (save_backtrack_point, restore_backtrack_point): Update.
5828 (first_nonscheduled_insn): New static function.
5829 (queue_to_ready, choose_ready): Use it.
5830 (schedule_block): Init nonscheduled_insns_begin.
5831 (sched_emit_insn): Update.
5832
5833
a4a182c6
KV
58342014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
5835
5836 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
5837 to GENERAL_REGS.
5838 (aarch64_secondary_reload) : LikeWise.
5839 (aarch64_class_max_nregs) : Remove CORE_REGS.
5840 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
5841 (REG_CLASS_NAMES) : Likewise.
5842 (REG_CLASS_CONTENTS) : LikeWise.
5843 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
5844
9652331a
GW
58452014-05-21 Guozhi Wei <carrot@google.com>
5846
5847 PR target/61202
5848 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
5849 constraint.
5850 (vqdmulhq_n_s16): Likewise.
5851
0bfba043
SB
58522014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
5853
5854 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
5855
1edb7356
MP
58562014-05-21 Marek Polacek <polacek@redhat.com>
5857
5858 PR sanitizer/61272
5859 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
5860
2acb1027
MJ
58612014-05-21 Martin Jambor <mjambor@suse.cz>
5862
5863 * doc/invoke.texi (Optimize Options): Document parameters
5864 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
5865 ipa-cp-array-index-hint-bonus.
5866
7315daa6
MW
58672014-05-21 Mark Wielaard <mjw@redhat.com>
5868
5869 PR debug/16063
5870 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
5871 version >= 3 or not strict DWARF.
5872 * langhooks.h (struct lang_hooks_for_types): Add
5873 enum_underlying_base_type.
5874 * langhooks.c (lhd_enum_underlying_base_type): New function.
5875 * gcc/langhooks.h (struct lang_hooks_for_types): Add
5876 enum_underlying_base_type.
5877 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
5878 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
5879 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
5880
95989e5c
RB
58812014-05-21 Richard Biener <rguenther@suse.de>
5882
d4082970 5883 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
95989e5c 5884
dbed5a9b
JM
58852014-05-21 John Marino <gnugcc@marino.st>
5886
5887 * config.gcc (*-*-dragonfly*): New target.
5888 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
5889 * configure: Regenerate.
5890 * config/dragonfly-stdint.h: New.
5891 * config/dragonfly.h: New.
5892 * config/dragonfly.opt: New.
5893 * config/i386/dragonfly.h: New.
5894 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
5895
632f2871
RS
58962014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
5897
5898 * tree.def (VOID_CST): New.
5899 * tree-core.h (TI_VOID): New.
5900 * tree.h (void_node): New.
5901 * tree.c (tree_node_structure_for_code, tree_code_size)
5902 (iterative_hash_expr): Handle VOID_CST.
5903 (build_common_tree_nodes): Initialize void_node.
5904
8a9e6b45
BS
59052014-05-21 Bernd Schmidt <bernds@codesourcery.com>
5906
bffe67e7
BS
5907 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
5908 functions.
5909 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
5910
0836b77f
BS
5911 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
5912 more places.
5913
8a9e6b45
BS
5914 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
5915 flag_reorder_blocks_and_partition.
5916 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
5917
c4e5de1b
OE
59182014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
5919
5920 PR target/54236
5921 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
5922 constraints.
5923 (*addc_r_t): Add new insn_and_split.
5924
decaaec8
JJ
59252014-05-21 Jakub Jelinek <jakub@redhat.com>
5926
5927 PR middle-end/61252
5928 * omp-low.c (handle_simd_reference): New function.
5929 (lower_rec_input_clauses): Use it. Defer adding reference
5930 initialization even for reduction without placeholder if in simd,
5931 handle it properly later on.
5932
3aaf0529
JH
59332014-05-20 Jan Hubicka <hubicka@ucw.cz>
5934
5935 PR tree-optimization/60899
5936 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
5937 assume all static symbols will have definition wile parsing and
5938 check the do have definition later in compilation; check that
5939 variable referring symbol will be output before concluding that
5940 reference is safe; be conservative for referring local statics;
5941 be more precise about when comdat is output in other partition.
5942
1bbb87c4
JH
59432014-05-20 Jan Hubicka <hubicka@ucw.cz>
5944
5945 PR bootstrap/60984
d4082970
MT
5946 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
5947 parameter.
1bbb87c4 5948 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
d4082970
MT
5949 (ipa_inline): Loop inline_to_all_callers until no more aliases
5950 are removed.
1bbb87c4 5951
d5ce4663
JH
59522014-05-20 Jan Hubicka <hubicka@ucw.cz>
5953
5954 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
5955 set writeonly flag only for vars actually written to.
5956
98339851
DC
59572014-05-20 Dehao Chen <dehao@google.com>
5958
5959 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
5960 and callee count to get clone count.
5961 * tree-inline.c (expand_call_inline): Use callee count instead of bb
5962 count in copy_body.
5963
ec27069c
RS
59642014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
5965
5966 PR rtl-optimization/61243
5967 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
5968
2b5f0895
XDL
59692014-05-20 Xinliang David Li <davidxl@google.com>
5970
5971 * cgraphunit.c (walk_polymorphic_call_targets): Add
5972 dbgcnt and fopt-info support.
5973 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
5974 * ipa-devirt.c (ipa_devirt): Ditto.
d4082970 5975 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
2b5f0895
XDL
5976 * ipa.c (walk_polymorphic_call_targets): Ditto.
5977 * gimple-fold.c (fold_gimple_assign): Ditto.
5978 (gimple_fold_call): Ditto.
5979 * dbgcnt.def: New counter.
5980
9c5f6203
DD
59812014-05-20 DJ Delorie <dj@redhat.com>
5982
5983 * config/msp430/msp430.md (split): Don't allow subregs when
5984 splitting SImode adds.
5985 (andneghi): Fix subtraction logic.
5986 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
5987
cf288ed3
JH
59882014-05-20 Jan Hubicka <hubicka@ucw.cz>
5989
5990 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
5991 symbols.
5992 * except.c (switch_to_exception_section, resolve_unique_section,
d4082970 5993 get_named_text_section, default_function_rodata_section,
cf288ed3
JH
5994 align_variable, get_block_for_decl, default_section_type_flags):
5995 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
5996 * symtab.c (symtab_add_to_same_comdat_group,
5997 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
5998 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
5999 Likewise.
6000 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
6001 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
6002 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
6003 (c6x_function_in_section_p): Likewise.
6004 * config/darwin.c (machopic_select_section): Likewise.
6005 * config/arm/arm.c (arm_function_in_section_p): Likewise.
6006 * config/mips/mips.c (mips_function_rodata_section): Likewise.
6007 * config/mep/mep.c (mep_select_section): LIkewise.
6008 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
6009
7eab31ed
EB
60102014-05-20 Eric Botcazou <ebotcazou@adacore.com>
6011
6012 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
6013 EH region of calls to pure functions that can throw an exception.
6014 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
6015 (copy_reference_ops_from_call): Also copy the EH region of the call if
6016 it can throw an exception.
6017
ec217bd8
BS
60182014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6019
6020 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
6021 nested VEC_SELECTs that are inverses of each other.
6022
b2b222b3
RB
60232014-05-20 Richard Biener <rguenther@suse.de>
6024
d4082970 6025 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
b2b222b3
RB
6026 (extract_and_process_scc_for_name): not here.
6027 (cond_dom_walker::before_dom_children): Only process
6028 stmts that end the BB in interesting ways.
6029 (run_scc_vn): Mark param uses as visited.
6030
e9ea5185
KT
60312014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6032
6033 * config/arm/arm.md (arith_shiftsi): Do not predicate for
6034 arm_restrict_it.
6035
8f0e7f6f
NC
60362014-05-20 Nick Clifton <nickc@redhat.com>
6037
467fc67c
NC
6038 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
6039 (msp430_gimplify_va_arg_expr): New function.
6040 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
6041
8f0e7f6f
NC
6042 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
6043 operand 0 in order to prevent confusion about the number of
6044 registers involved.
6045
d1c0308e
RB
60462014-05-20 Richard Biener <rguenther@suse.de>
6047
6048 PR tree-optimization/61221
6049 * tree-ssa-pre.c (el_to_update): Remove.
6050 (eliminate_dom_walker::before_dom_children): Handle released
6051 VDEFs by value-numbering them to the associated VUSE. Update
6052 stmt immediately for substituted call address.
6053 (eliminate): Remove delayed stmt updating code.
6054 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
6055 possibly late re-numbered vuses.
6056 (vn_reference_lookup_2): Adjust.
6057 (vn_reference_lookup_pieces): Likewise.
6058 (vn_reference_lookup): Likewise.
6059
54da09ee
RB
60602014-05-20 Richard Biener <rguenther@suse.de>
6061
6062 * config.gcc: Remove need_64bit_hwint.
6063 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
6064 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
6065 it to be true.
6066 * config.in: Regenerate.
6067 * configure: Likewise.
6068
883755a1
DW
60692014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
6070
6071 * doc/extend.texi: Create Label Attributes section,
6072 move all label attributes into it and reference it.
6073
514b3156
RE
60742014-05-19 Richard Earnshaw <rearnsha@arm.com>
6075
6076 * arm.c (thumb1_reorg): When scanning backwards skip anything
6077 that's not a proper insn.
6078
1d44def2
RB
60792014-05-19 Richard Biener <rguenther@suse.de>
6080
6081 PR tree-optimization/61221
6082 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6083 Do nothing for unreachable blocks.
6084 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
6085 Improve unreachability detection.
6086
05135136
RB
60872014-05-19 Richard Biener <rguenther@suse.de>
6088
6089 PR tree-optimization/61209
6090 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
6091
40ba8dfb
NC
60922014-05-19 Nick Clifton <nickc@redhat.com>
6093
6094 * except.c (init_eh): Fix computation of builtin setjmp buffer
6095 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
6096
cb460086
RB
60972014-05-19 Richard Biener <rguenther@suse.de>
6098
6099 PR tree-optimization/61184
6100 * tree-vrp.c (is_negative_overflow_infinity): Use
6101 TREE_OVERFLOW_P and do that check first.
6102 (is_positive_overflow_infinity): Likewise.
6103 (is_overflow_infinity): Likewise.
6104 (vrp_operand_equal_p): Properly treat operands with
6105 differing overflow as not equal.
6106
bddd3671
BS
61072014-05-19 Bernd Schmidt <bernds@codesourcery.com>
6108
6109 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
6110 shift simplification where it was intended.
6111
72d82e7a
CB
61122014-05-19 Christian Bruel <christian.bruel@st.com>
6113
6114 PR target/61195
6115 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
6116
34dbb287
RS
61172014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
6118
6119 PR target/61084
6120 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
6121 than wide_int.
6122
339ba33b
RS
61232014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
6124
6125 * reg-notes.def (CROSSING_JUMP): Likewise.
6126 * rtl.h (rtx_def): Update comment for jump flag.
6127 (CROSSING_JUMP_P): Define.
6128 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
6129 of a REG_CROSSING_JUMP note.
6130 * cfghooks.c (tidy_fallthru_edges): Likewise.
6131 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
6132 * emit-rtl.c (try_split): Likewise.
6133 * haifa-sched.c (sched_create_recovery_edges): Likewise.
6134 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
6135 * jump.c (redirect_jump_2): Likewise.
6136 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
6137 (relax_delay_slots): Likewise.
6138 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
6139 (bbit_di): Likewise.
6140 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
6141 * config/sh/sh.md (jump_compact): Likewise.
6142 * bb-reorder.c (rotate_loop): Likewise.
6143 (pass_duplicate_computed_gotos::execute): Likewise.
6144 (add_reg_crossing_jump_notes): Rename to...
6145 (update_crossing_jump_flags): ...this.
6146 (pass_partition_blocks::execute): Update accordingly.
6147
a65d5b87
RS
61482014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
6149
6150 * tree.h: Remove extraneous template <>.
6151
7b3376a0
JH
61522014-05-17 Jan Hubicka <hubicka@ucw.cz>
6153
6154 * ipa.c (symtab_remove_unreachable_nodes): Remove
6155 symbol from comdat group if its body was eliminated.
d4082970
MT
6156 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
6157 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
7b3376a0
JH
6158 (symtab_unregister_node): ... this one.
6159 (verify_symtab_base): More strict checking of comdats.
6160 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
6161
a04d9035
JH
61622014-05-17 Jan Hubicka <hubicka@ucw.cz>
6163
6164 * tree-pass.h (make_pass_ipa_comdats): New pass.
6165 * timevar.def (TV_IPA_COMDATS): New timevar.
6166 * passes.def (pass_ipa_comdats): Add.
6167 * Makefile.in (OBJS): Add ipa-comdats.o
6168 * ipa-comdats.c: New file.
6169
24a71ba8
JH
61702014-05-17 Jan Hubicka <hubicka@ucw.cz>
6171
6172 * ipa.c (update_visibility_by_resolution_info): New function.
6173 (function_and_variable_visibility): Use it.
6174
d6d229c6
JH
61752014-05-17 Jan Hubicka <hubicka@ucw.cz>
6176
6177 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
6178 New functions.
6179 (FOR_EACH_DEFINED_SYMBOL): New macro.
6180 (varpool_first_static_initializer, varpool_next_static_initializer,
d4082970
MT
6181 varpool_first_defined_variable, varpool_next_defined_variable):
6182 Fix comments.
d6d229c6
JH
6183 (symtab_in_same_comdat_p): Correctly deal with inline functions.
6184
c3af645c
TS
61852014-05-17 Trevor Saunders <tsaunders@mozilla.com>
6186
6187 * ggc-page.c (ggc_handle_finalizers): Add comment.
6188
de49ce19
TS
61892014-05-17 Trevor Saunders <tsaunders@mozilla.com>
6190
6191 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
6192 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
6193 (ggc_internal_cleared_alloc): Likewise.
6194 * ggc-page.c (finalizer): New class.
16f8dfdb 6195 (vec_finalizer): Likewise.
de49ce19 6196 (globals::finalizers): New member.
16f8dfdb 6197 (globals::vec_finalizers): Likewise.
de49ce19
TS
6198 (ggc_internal_alloc): Record the finalizer if any for the block being
6199 allocated.
6200 (ggc_handle_finalizers): New function.
6201 (ggc_collect): Call ggc_handle_finalizers.
6202 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
6203 finalizer.
6204 (ggc_internal_cleared_alloc): Likewise.
6205 (finalize): New function.
6206 (need_finalization_p): Likewise.
6207 (ggc_alloc): Install the type's destructor as the finalizer if it
6208 might do something.
6209 (ggc_cleared_alloc): Likewise.
6210 (ggc_vec_alloc): Likewise.
6211 (ggc_cleared_vec_alloc): Likewise.
6212
04eec987
TS
62132014-05-17 Trevor Saunders <tsaunders@mozilla.com>
6214
6215 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
6216
766090c2
TS
62172014-05-17 Trevor Saunders <tsaunders@mozilla.com>
6218
6219 * alias.c (record_alias_subset): Adjust.
6220 * bitmap.c (bitmap_element_allocate): Likewise.
6221 (bitmap_gc_alloc_stat): Likewise.
6222 * cfg.c (init_flow): Likewise.
6223 (alloc_block): Likewise.
6224 (unchecked_make_edge): Likewise.
6225 * cfgloop.c (alloc_loop): Likewise.
6226 (flow_loops_find): Likewise.
6227 (rescan_loop_exit): Likewise.
6228 * cfgrtl.c (init_rtl_bb_info): Likewise.
6229 * cgraph.c (insert_new_cgraph_node_version): Likewise.
6230 (cgraph_allocate_node): Likewise.
6231 (cgraph_create_edge_1): Likewise.
6232 (cgraph_allocate_init_indirect_info): Likewise.
6233 * cgraphclones.c (cgraph_clone_edge): Likewise.
6234 * cgraphunit.c (add_asm_node): Likewise.
6235 (init_lowered_empty_function): Likewise.
16f8dfdb 6236 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
766090c2
TS
6237 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
6238 (alpha_use_linkage): Likewise.
6239 * config/arc/arc.c (arc_init_machine_status): Likewise.
6240 * config/arm/arm.c (arm_init_machine_status): Likewise.
6241 * config/avr/avr.c (avr_init_machine_status): Likewise.
6242 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
6243 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
6244 * config/cris/cris.c (cris_init_machine_status): Likewise.
6245 * config/darwin.c (machopic_indirection_name): Likewise.
6246 (darwin_build_constant_cfstring): Likewise.
6247 (darwin_enter_string_into_cfstring_table): Likewise.
16f8dfdb 6248 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
766090c2
TS
6249 * config/frv/frv.c (frv_init_machine_status): Likewise.
6250 * config/i386/i386.c (get_dllimport_decl): Likewise.
6251 (ix86_init_machine_status): Likewise.
6252 (assign_386_stack_local): Likewise.
16f8dfdb 6253 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
766090c2
TS
6254 (i386_pe_maybe_record_exported_symbol): Likewise.
6255 (i386_pe_record_stub): Likewise.
6256 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
6257 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
6258 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
6259 (m32c_note_pragma_address): Likewise.
6260 * config/mep/mep.c (mep_init_machine_status): Likewise.
6261 (mep_note_pragma_flag): Likewise.
6262 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
6263 (mips16_local_alias): Likewise.
6264 (mips_init_machine_status): Likewise.
6265 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
6266 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
6267 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
6268 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
6269 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
6270 * config/pa/pa.c (pa_init_machine_status): Likewise.
6271 (pa_get_deferred_plabel): Likewise.
6272 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
6273 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
6274 (rs6000_init_machine_status): Likewise.
6275 (output_toc): Likewise.
6276 * config/s390/s390.c (s390_init_machine_status): Likewise.
6277 * config/score/score.c (score_output_external): Likewise.
6278 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
6279 * config/spu/spu.c (spu_init_machine_status): Likewise.
6280 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
16f8dfdb 6281 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
766090c2
TS
6282 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
6283 * coverage.c (coverage_end_function): Likewise.
6284 * dbxout.c (dbxout_init): Likewise.
6285 * doc/gty.texi: Don't mention variable_size attribute.
6286 * dwarf2cfi.c (new_cfi): Adjust.
6287 (new_cfi_row): Likewise.
6288 (copy_cfi_row): Likewise.
6289 (create_cie_data): Likewise.
6290 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
6291 (new_loc_descr): Likewise.
6292 (find_AT_string_in_table): Likewise.
6293 (add_addr_table_entry): Likewise.
6294 (new_die): Likewise.
6295 (add_var_loc_to_decl): Likewise.
6296 (clone_die): Likewise.
6297 (clone_as_declaration): Likewise.
6298 (break_out_comdat_types): Likewise.
6299 (new_loc_list): Likewise.
6300 (add_loc_descr_to_each): Likewise.
6301 (add_location_or_const_value_attribute): Likewise.
6302 (add_linkage_name): Likewise.
6303 (lookup_filename): Likewise.
6304 (dwarf2out_var_location): Likewise.
6305 (new_line_info_table): Likewise.
6306 (dwarf2out_init): Likewise.
6307 (mem_loc_descriptor): Likewise.
6308 (loc_descriptor): Likewise.
6309 (add_const_value_attribute): Likewise.
6310 (tree_add_const_value_attribute): Likewise.
6311 (comp_dir_string): Likewise.
6312 (dwarf2out_vms_debug_main_pointer): Likewise.
6313 (string_cst_pool_decl): Likewise.
6314 * emit-rtl.c (set_mem_attrs): Likewise.
6315 (get_reg_attrs): Likewise.
6316 (start_sequence): Likewise.
6317 (init_emit): Likewise.
6318 (init_emit_regs): Likewise.
6319 * except.c (init_eh_for_function): Likewise.
6320 (gen_eh_region): Likewise.
6321 (gen_eh_region_catch): Likewise.
6322 (gen_eh_landing_pad): Likewise.
6323 (add_call_site): Likewise.
6324 * function.c (add_frame_space): Likewise.
6325 (insert_temp_slot_address): Likewise.
6326 (assign_stack_temp_for_type): Likewise.
6327 (get_hard_reg_initial_val): Likewise.
6328 (allocate_struct_function): Likewise.
6329 (prepare_function_start): Likewise.
6330 (types_used_by_var_decl_insert): Likewise.
6331 * gengtype.c (variable_size_p): Remove function.
6332 (enum alloc_quantity): Remove enum.
6333 (write_typed_alloc_def): Remove function.
6334 (write_typed_struct_alloc_def): Likewise.
6335 (write_typed_typedef_alloc_def): Likewise.
6336 (write_typed_alloc_defns): Likewise.
6337 (main): Adjust.
6338 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
6339 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
6340 * ggc.h (ggc_alloc): new function.
6341 (ggc_cleared_alloc): Likewise.
6342 (ggc_vec_alloc): Template on type of vector element, and remove
6343 element size argument.
6344 (ggc_cleared_vec_alloc): Likewise.
6345 * gimple.c (gimple_build_omp_for): Adjust.
6346 (gimple_copy): Likewise.
6347 * ipa-cp.c (get_replacement_map): Likewise.
6348 (find_aggregate_values_for_callers_subset): Likewise.
6349 (known_aggs_to_agg_replacement_list): Likewise.
6350 * ipa-devirt.c (get_odr_type): Likewise.
6351 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
6352 (read_agg_replacement_chain): Likewise.
6353 * loop-iv.c (get_simple_loop_desc): Likewise.
6354 * lto-cgraph.c (input_node_opt_summary): Likewise.
6355 * lto-section-in.c (lto_new_in_decl_state): Likewise.
6356 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
6357 (input_eh_region): Likewise.
6358 (input_eh_lp): Likewise.
6359 (input_cfg): Likewise.
6360 * optabs.c (set_optab_libfunc): Likewise.
6361 (init_tree_optimization_optabs): Likewise.
6362 (set_conv_libfunc): Likewise.
6363 * passes.c (do_per_function_toporder): Likewise.
6364 * rtl.h: Don't use variable_size gty attribute.
6365 * sese.c (if_region_set_false_region): Adjust.
6366 * stringpool.c (gt_pch_save_stringpool): Likewise.
6367 * target-globals.c (save_target_globals): Likewise.
6368 * toplev.c (general_init): Likewise.
6369 * trans-mem.c (record_tm_replacement): Likewise.
6370 (split_bb_make_tm_edge): Likewise.
6371 * tree-cfg.c (move_sese_region_to_fn): Likewise.
6372 * tree-data-ref.h (lambda_vector_new): Likewise.
6373 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
6374 * tree-iterator.c (tsi_link_before): Likewise.
6375 (tsi_link_after): Likewise.
6376 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
6377 * tree-ssa-loop-niter.c (record_estimate): Likewise.
6378 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
6379 * tree-ssa-operands.h: Don't use variable_size gty attribute.
6380 * tree-ssa.c (init_tree_ssa): Adjust.
6381 * tree-ssanames.c (set_range_info): Likewise.
6382 (get_ptr_info): Likewise.
6383 (duplicate_ssa_name_ptr_info): Likewise.
6384 (duplicate_ssa_name_range_info): Likewise.
6385 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
6386 (unpack_ts_fixed_cst_value_fields): Likewise.
6387 * tree.c (build_fixed): Likewise.
6388 (build_real): Likewise.
6389 (build_string): Likewise.
6390 (decl_priority_info): Likewise.
6391 (decl_debug_expr_insert): Likewise.
6392 (decl_value_expr_insert): Likewise.
6393 (decl_debug_args_insert): Likewise.
6394 (type_hash_add): Likewise.
6395 (build_omp_clause): Likewise.
6396 * ubsan.c (decl_for_type_insert): Likewise.
6397 * varasm.c (get_unnamed_section): Likewise.
6398 (get_noswitch_section): Likewise.
6399 (get_section): Likewise.
6400 (get_block_for_section): Likewise.
6401 (create_block_symbol): Likewise.
6402 (build_constant_desc): Likewise.
6403 (create_constant_pool): Likewise.
6404 (force_const_mem): Likewise.
6405 (record_tm_clone_pair): Likewise.
6406 * varpool.c (varpool_create_empty_node): Likewise.
6407
231120e5
TS
64082014-05-17 Trevor Saunders <tsaunders@mozilla.com>
6409
6410 * dwarf2out.c (tree_add_const_value_attribute): Call
6411 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
6412 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
6413 instead of ggc_internal_<x>alloc_stat.
6414 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
6415 (ggc_realloc): Likewise.
6416 * ggc-none.c (ggc_internal_alloc): Likewise.
6417 (ggc_internal_cleared_alloc): Likewise.
6418 * ggc-page.c: Likewise.
6419 * ggc.h (ggc_internal_alloc_stat): Likewise.
6420 (ggc_internal_alloc): Remove macro.
6421 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
6422 (ggc_internal_cleared_alloc): Remove macro.
6423 (GGC_RESIZEVEC): Adjust.
6424 (ggc_resizevar): Remove macro.
6425 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
6426 (ggc_internal_cleared_vec_alloc_stat): Likewise.
6427 (ggc_internal_vec_cleared_alloc): Remove macro.
6428 (ggc_alloc_atomic_stat): Drop _stat suffix.
6429 (ggc_alloc_atomic): Remove macro.
6430 (ggc_alloc_cleared_atomic): Remove macro.
6431 (ggc_alloc_string_stat): Drop _stat suffix.
6432 (ggc_alloc_string): Remove macro.
6433 (ggc_alloc_rtx_def_stat): Adjust.
6434 (ggc_alloc_tree_node_stat): Likewise.
6435 (ggc_alloc_cleared_tree_node_stat): Likewise.
6436 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
6437 (ggc_alloc_cleared_simd_clone_stat): Likewise.
6438 * gimple.c (gimple_build_omp_for): Likewise.
6439 (gimple_copy): Likewise.
6440 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
6441 * toplev.c (realloc_for_line_map): Adjust.
6442 * tree-data-ref.h (lambda_vector_new): Likewise.
6443 * tree-phinodes.c (allocate_phi_node): Likewise.
6444 * tree.c (grow_tree_vec_stat): Likewise.
6445 * vec.h (va_gc::reserve): Adjust.
6446
16f8dfdb 64472014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
86498dba 6448
16f8dfdb
UB
6449 * config/microblaze/microblaze.c (break_handler): New Declaration.
6450 (microblaze_break_function_p,microblaze_is_break_handler): New.
6451 (compute_frame_size): Use microblaze_break_function_p.
6452 Add the test of break_handler.
6453 (microblaze_function_prologue) : Add the test of variable
6454 break_handler. Check the fnname by BREAK_HANDLER_NAME.
6455 (microblaze_function_epilogue) : Add the test of break_handler.
6456 (microblaze_globalize_label) : Add the test of break_handler.
6457 Check the name by BREAK_HANDLER_NAME.
86498dba 6458
16f8dfdb 6459 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
86498dba 6460
16f8dfdb
UB
6461 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
6462 microblaze_is_break_handler test.
6463 (call_internal1,call_value_intern): Use microblaze_break_function_p.
6464 Use SYMBOL_REF_DECL.
86498dba
AA
6465
6466 * config/microblaze/microblaze-protos.h
16f8dfdb
UB
6467 (microblaze_break_function_p,microblaze_is_break_handler):
6468 New Declaration.
86498dba 6469
16f8dfdb
UB
6470 * doc/extend.texi (MicroBlaze break_handler Functions): Document
6471 new MicroBlaze break_handler functions.
86498dba 6472
71ca3028
UB
64732014-05-17 Uros Bizjak <ubizjak@gmail.com>
6474
6475 * doc/extend.texi (Size of an asm): Move node text according
6476 to its @menu entry position.
6477
87a34442
MG
64782014-05-17 Marc Glisse <marc.glisse@inria.fr>
6479
6480 PR tree-optimization/61140
6481 PR tree-optimization/61150
6482 PR tree-optimization/61197
6483 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
6484
6ca74b5c
UB
64852014-05-17 Uros Bizjak <ubizjak@gmail.com>
6486
6487 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
6488
60f82c42
RS
64892014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
6490
6491 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
6492 __SIZEOF_INT128__ is defined.
6493
a1242f17
RS
64942014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
6495
6496 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
6497 (rs6000_delegitimize_address): Use it.
6498
23b33725
RS
64992014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
6500
6501 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
6502 inplace argument. Store the new address in the original MEM when true.
6503 * emit-rtl.c (change_address_1): Likewise.
6504 (adjust_address_1, adjust_automodify_address_1, offset_address):
6505 Update accordingly.
6506 * rtl.h (plus_constant): Add an inplace argument.
6507 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
6508 when true. Avoid generating (plus X (const_int 0)).
6509 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
6510 in-place. Pass true to plus_constant.
6511 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
6512
2f6eed01
DC
65132014-05-16 Dehao Chen <dehao@google.com>
6514
6515 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
6516
b200de02
OE
65172014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
6518
6519 PR target/54089
6520 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
6521 patterns.
6522 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
6523
cf40f973
DC
65242014-05-16 Dehao Chen <dehao@google.com>
6525
6b8ebd00
UB
6526 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
6527 optimize_function_for_size_p.
cf40f973
DC
6528 * regs.h (REG_FREQ_FROM_BB): Likewise.
6529
48d8568e
OE
65302014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
6531
6532 PR target/51244
6533 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
6534 negt_reg_operand cases.
6535 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
6536 predicate.
6537 * config/sh/predicates.md (cbranch_treg_value): Simplify.
6538
d580af0f
OE
65392014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
6540
6541 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
6542 target variants.
6543
6c7571a2
DM
65442014-05-16 David Malcolm <dmalcolm@redhat.com>
6545
6546 Revert:
6547 2014-04-29 David Malcolm <dmalcolm@redhat.com>
6548
6549 * tree-cfg.c (dump_function_to_file): Dump the return type of
6550 functions, in a line to itself before the function body, mimicking
6551 the layout of a C function.
6552
b0e66512
DC
65532014-05-16 Dehao Chen <dehao@google.com>
6554
6555 * cfghooks.c (make_forwarder_block): Use direct computation to
6556 get fall-through edge's count and frequency.
6557
6b8ebd00 65582014-05-16 Benno Schulenberg <bensberg@justemail.net>
2236746b
BS
6559
6560 * config/arc/arc.c (arc_init): Fix typo in error message.
6561 * config/i386/i386.c (ix86_expand_builtin): Likewise.
6562 (split_stack_prologue_scratch_regno): Likewise.
6563 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
6564 word from error message.
6565
420ab54b
ZZ
65662014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6567
6568 * ira-costs.c: Fix typo in comment.
6569
8e90f610
DW
65702014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
6571
6b8ebd00 6572 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
8e90f610 6573
6de88c6a
JH
65742014-05-16 Jan Hubicka <hubicka@ucw.cz>
6575
6576 * varpool.c (dump_varpool_node): Dump write-only flag.
6577 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
6578 write-only flag.
6b8ebd00
UB
6579 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
6580 write-only variables.
6581 * ipa.c (process_references): New function.
6582 (set_readonly_bit): New function.
6583 (set_writeonly_bit): New function.
6584 (clear_addressable_bit): New function.
6585 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
6586 fix handling of aliases.
6587 * cgraph.h (struct varpool_node): Add writeonly flag.
6de88c6a 6588
f4e075e7
VM
65892014-05-16 Vladimir Makarov <vmakarov@redhat.com>
6590
6591 PR rtl-optimization/60969
6592 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
6593 Calculate costs for this case.
6594
8b628e86
EB
65952014-05-16 Eric Botcazou <ebotcazou@adacore.com>
6596
6597 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
6598 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
6599
52264dbf
RB
66002014-05-16 Richard Biener <rguenther@suse.de>
6601
6602 PR tree-optimization/61194
6603 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
6604 bool patterns ending in a COND_EXPR.
6605
3d840f7d
JG
66062014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
6607
6608 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
6609
88d4fbcf
JG
66102014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
6611
6612 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
6613 where we were unable to cost an RTX.
6614
909734be
JG
66152014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
6616
6617 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
6618 HIGH, LO_SUM.
6619
fb620c4a
JG
66202014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
6621 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
6622
6623 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
6624
b292109f
JG
66252014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
6626 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
6627
6628 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
6629 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
6630
a8eecd00
JG
66312014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
6632 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
6633
6634 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
6635 operators.
6636
4105fe38
JG
66372014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
6638 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
6639
6640 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
6641 DIV/MOD.
6642
66432014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
7cc2145f
JG
6644 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
6645
6646 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
6647 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
6648
ba0cfa17
JG
66492014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
6650 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
6651
6652 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
6653 rotates and shifts.
6654
b1685e62
JG
66552014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
6656 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
6657
6658 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
6659 ZERO_EXTEND and SIGN_EXTEND better.
6660
268c3b47
JG
66612014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
6662 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
6663
6664 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
6665 logical operations.
6666
2961177e
JG
66672014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
6668 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
6669
6670 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
6671 costs when costing loads and stores to memory.
6672
ba123b0d
JG
66732014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
6674 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
6675
6676 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
6677 for SET RTX.
6678
7fc5ef02
JG
66792014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
6680
6681 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
6682
4745e701
JG
66832014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
6684 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
6685
6686 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
6687 to...
6688 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
6689 well formed.
6690 (aarch64_rtx_mult_cost): New.
6691 (aarch64_rtx_costs): Use it, refactor as appropriate.
6692
9dfc162c
JG
66932014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
6694 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
6695
6696 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
6697 emit instructions, return number of instructions which would
6698 be emitted.
6699 (aarch64_add_constant): Update call to aarch64_build_constant.
6700 (aarch64_output_mi_thunk): Likewise.
6b8ebd00 6701 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
9dfc162c
JG
6702 a CONST_DOUBLE.
6703
0ee859b5
JG
67042014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
6705
6706 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
6707 (TARGET_RTX_COSTS): Call it.
6708
60bff090
JG
67092014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
6710
6711 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
6712 (cortexa57_vector_cost): Likewise.
6713 (cortexa57_tunings): Use them.
6714
67747367
JG
67152014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
6716
6717 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
6718 (cpu_addrcost_table): Use it.
6719 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
6720 (aarch64_address_cost): Rewrite using aarch64_classify_address,
6721 move it.
6722
a764d660
RB
67232014-05-16 Richard Biener <rguenther@suse.de>
6724
6725 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
6726 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
6727 (visit_phi): Ignore edges marked as not executable.
6728 (class cond_dom_walker): New.
6729 (cond_dom_walker::before_dom_children): Value-number
6730 control statements and mark successor edges as not
6731 executable if possible.
6732 (run_scc_vn): First walk all control statements in
6733 dominator order, marking edges as not executable.
6734 * tree-inline.c (copy_edges_for_bb): Be not confused
6735 about random edge flags.
6736
a27c3860
RB
67372014-05-16 Richard Biener <rguenther@suse.de>
6738
6739 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
6740
d8c55b91
PB
67412014-05-15 Peter Bergner <bergner@vnet.ibm.com>
6742
6743 PR target/61193
6744 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
6745 (__TM_simple_begin): Use it.
6746 (__TM_begin): Likewise.
6747
8a2256dd
MJ
67482014-05-15 Martin Jambor <mjambor@suse.cz>
6749
6750 PR ipa/61085
6751 * ipa-prop.c (update_indirect_edges_after_inlining): Check
6752 type_preserved flag when the indirect edge is polymorphic.
6753
9d2681a3
MJ
67542014-05-15 Martin Jambor <mjambor@suse.cz>
6755
6756 PR tree-optimization/61090
6757 * tree-sra.c (sra_modify_expr): Pass the current gsi to
6758 build_ref_for_model.
6759
927450d0
KT
67602014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6761
6762 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
6763 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
6764
ceed6e67
JJ
67652014-05-15 Jakub Jelinek <jakub@redhat.com>
6766
6767 PR tree-optimization/61158
6768 * fold-const.c (fold_binary_loc): If X is zero-extended and
6769 shiftc >= prec, make sure zerobits is all ones instead of
6770 invoking undefined behavior.
6771
a2e6c10c
ZC
67722014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6773
6774 * regcprop.h: New file.
6775 * regcprop.c (skip_debug_insn_p): New decl.
6776 (replace_oldest_value_reg): Check skip_debug_insn_p.
ceed6e67
JJ
6777 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
6778 * shrink-wrap.c: Include regcprop.h.
6779 (prepare_shrink_wrap): Call
6780 copyprop_hardreg_forward_bb_without_debug_insn.
a2e6c10c 6781
e974b93b
ZC
67822014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6783
6784 * shrink-wrap.h: Update comment.
6785 * shrink-wrap.c: Update comment.
6786 (next_block_for_reg): Rename to live_edge_for_reg.
6787 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
6788 (move_insn_for_shrink_wrap): Split live_edge.
6789 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
6790
88fe5e91
EB
67912014-05-14 Eric Botcazou <ebotcazou@adacore.com>
6792
6793 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
6794 Delete.
6795 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
6796 * config/sparc/sparc.md (fptype_ut699): New attribute.
6797 (in_branch_delay): Return false if -mfix-ut699 is specified and
6798 fptype_ut699 is set to single.
6799 (truncdfsf2): Add fptype_ut699 attribute.
6800 (fix_truncdfsi2): Likewise.
6801 (floatsisf2): Change fptype attribute.
6802 (fix_truncsfsi2): Likewise.
6803 (negtf2_notv9): Delete.
6804 (negtf2_v9): Likewise.
6805 (negtf2_hq): New instruction.
6806 (negtf2): New instruction and splitter.
6807 (negdf2_notv9): Rewrite.
6808 (abstf2_notv9): Delete.
6809 (abstf2_hq_v9): Likewise.
6810 (abstf2_v9): Likewise.
6811 (abstf2_hq): New instruction.
6812 (abstf2): New instruction and splitter.
6813 (absdf2_notv9): Rewrite.
6814
bc91b0e0
CC
68152014-05-14 Cary Coutant <ccoutant@google.com>
6816
6b8ebd00 6817 PR debug/61013
bc91b0e0
CC
6818 * opts.c (common_handle_option): Don't special-case "-g".
6819 (set_debug_level): Default to at least level 2 with "-g".
6820
5f35dde5
DD
68212014-05-14 DJ Delorie <dj@redhat.com>
6822
6823 * config/msp430/msp430.c (msp430_builtin): Add
6824 MSP430_BUILTIN_DELAY_CYCLES.
6825 (msp430_init_builtins): Register void __delay_cycles(long long).
6826 (msp430_builtin_decl): Add it.
6827 (cg_magic_constant): New.
6828 (msp430_expand_delay_cycles): New.
6829 (msp430_expand_builtin): Call it.
6830 (msp430_print_operand_raw): Change integer printing from "int" to
6831 HOST_WIDE_INT.
6832 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
6833 (delay_cycles_start): New.
6834 (delay_cycles_end): New.
6835 (delay_cycles_32): New.
6836 (delay_cycles_32x): New.
6837 (delay_cycles_16): New.
6838 (delay_cycles_16x): New.
6839 (delay_cycles_2): New.
6840 (delay_cycles_1): New.
6841 * doc/extend.texi: Document __delay_cycles().
6842
5d40b20f
SL
68432014-05-14 Sandra Loosemore <sandra@codesourcery.com>
6844
6845 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
6846 length attribute computation.
6847
25109109
RS
68482014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
6849
6850 PR debug/61188
6851 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
6852
7e7e4032
RS
68532014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
6854
6855 PR target/61084
6856 * config/sparc/sparc.md: Fix types of low and high in DI constant
6857 splitter. Use gen_int_mode in some other splitters.
6858
70d6d5c1
MJ
68592014-05-14 Martin Jambor <mjambor@suse.cz>
6860
6861 PR ipa/60897
6862 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
6863
23b02de3
JN
68642014-05-14 James Norris <jnorris@codesourcery.com>
6865
6866 * omp-low.c (expand_parallel_call): Remove shadow variable.
6867 (expand_omp_taskreg): Likewise.
6868
9cdea277
IT
68692014-05-14 Ilya Tocar <ilya.tocar@intel.com>
6870
6871 * common/config/i386/i386-common.c
6872 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
6873 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
6874 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
6875 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
6876 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
6877 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
6b8ebd00 6878 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
9cdea277
IT
6879 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
6880 xsavecintrin.h, xsavesintrin.h.
6881 (x86_64-*-*): Ditto.
6882 * config/i386/clflushoptintrin.h: New.
6883 * config/i386/xsavecintrin.h: Ditto.
6884 * config/i386/xsavesintrin.h: Ditto.
6885 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
6886 (bit_XSAVES): Ditto.
6887 (bit_XSAVES): Ditto.
6888 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
6889 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
6890 -mno-clflushopt.
6891 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6892 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
6893 OPTION_MASK_ISA_XSAVES.
6894 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
6895 -mxsavec, -mxsaves.
6896 (PTA_CLFLUSHOPT) Define.
6897 (PTA_XSAVEC): Ditto.
6898 (PTA_XSAVES): Ditto.
6899 (ix86_option_override_internal): Handle new options.
6900 (ix86_valid_target_attribute_inner_p): Ditto.
6901 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
6902 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
6903 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
6b8ebd00
UB
6904 (bdesc_special_args): Add __builtin_ia32_xsaves,
6905 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
6906 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
9cdea277
IT
6907 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
6908 (ix86_expand_builtin): Handle new builtins.
6909 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
6910 (TARGET_CLFLUSHOPT_P): Ditto.
6911 (TARGET_XSAVEC): Ditto.
6912 (TARGET_XSAVEC_P): Ditto.
6913 (TARGET_XSAVES): Ditto.
6914 (TARGET_XSAVES_P): Ditto.
6915 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
6916 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
6917 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
6918 (ANY_XRSTOR): New.
6919 (ANY_XRSTOR64): Ditto.
6920 (xrstor): Ditto.
6921 (xrstor): Change into <xrstor>.
6922 (xrstor_rex64): Change into <xrstor>_rex64.
6923 (xrstor64): Change into <xrstor>64
6924 (clflushopt): New.
6925 * config/i386/i386.opt (mclflushopt): New.
6926 (mxsavec): Ditto.
6927 (mxsaves): Ditto.
6928 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
6929 xsavecintrin.h.
6930 * doc/invoke.texi: Document new options.
6931
92e265ac
AB
69322014-05-14 Andrey Belevantsev <abel@ispras.ru>
6933
6934 PR rtl-optimization/60866
6935 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
6936 Default it to -1. Pass it down to init_simplejump_data.
6937 (init_simplejump_data): New parameter old_seqno. Pass it down
6938 to get_seqno_for_a_jump.
6939 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
6940 initializing new jump seqno as a last resort. Add comment.
6941 (sel_redirect_edge_and_branch): Save old seqno of the conditional
6942 jump and pass it down to sel_init_new_insn.
6943 (sel_redirect_edge_and_branch_force): Likewise.
6944
fa96aa45
GJL
69452014-05-14 Georg-Johann Lay <avr@gjlay.de>
6946
6947 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
6948 shifted values to avoid build warning.
6949
8a829274
EB
69502014-05-14 Eric Botcazou <ebotcazou@adacore.com>
6951
6952 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
6953 * cfgrtl.c (rtl_merge_blocks): Fix comment.
6954 (cfg_layout_merge_blocks): Likewise.
6955 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
6956
11290308
AB
69572014-05-14 Andrey Belevantsev <abel@ispras.ru>
6958
6959 PR rtl-optimization/60901
6960 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
6961 bb predecessor belongs to the same scheduling region. Adjust comment.
6962
f4853e92
PB
69632014-05-13 Peter Bergner <bergner@vnet.ibm.com>
6964
6965 * doc/sourcebuild.texi: (dfp_hw): Document.
6966 (p8vector_hw): Likewise.
6967 (powerpc_eabi_ok): Likewise.
6968 (powerpc_elfv2): Likewise.
6969 (powerpc_htm_ok): Likewise.
6970 (ppc_recip_hw): Likewise.
6971 (vsx_hw): Likewise.
6972
bd5c3baa
CC
69732014-05-13 Cary Coutant <ccoutant@google.com>
6974
6975 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
6976
9aa54cc9
DM
69772014-05-13 David Malcolm <dmalcolm@redhat.com>
6978
6979 * gengtype-parse.c (require3): Eliminate in favor of...
6980 (require4): New.
6981 (require_template_declaration): Update to support optional single *
6982 on a type.
6983
6984 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
6985 (create_user_defined_type): Handle a single level of explicit
6986 pointerness within template arguments.
6987 (struct write_types_data): Add field "kind".
6988 (filter_type_name): Handle "*" character.
6989 (write_user_func_for_structure_ptr): Require a write_types_data
6990 rather than just a prefix string, so that we can look up the kind
6991 of the wtd and use it as an index into wrote_user_func_for_ptr,
6992 ensuring that such functions are written at most once. Support
6b8ebd00 6993 subclasses by invoking the marking function of the ultimate base class.
9aa54cc9
DM
6994 (write_user_func_for_structure_body): Require a write_types_data
6995 rather than just a prefix string, so that we can pass this to
6996 write_user_func_for_structure_ptr.
6997 (write_func_for_structure): Likewise.
6998 (ggc_wtd): Add initializer of new "kind" field.
6999 (pch_wtd): Likewise.
7000
7001 * gengtype.h (enum write_types_kinds): New.
7002 (struct type): Add field wrote_user_func_for_ptr to the "s"
7003 union member.
7004
5c0f009c
RS
70052014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
7006
7007 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
7008 instead of const_binop.
7009 (fold_binary_loc): Likewise.
7010
460d1e22
RS
70112014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
7012
7013 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
7014 calculation to match get_ref_base_and_extent.
7015
1e1f96b5
CM
70162014-05-13 Catherine Moore <clm@codesourcery.com>
7017 Sandra Loosemore <sandra@codesourcery.com>
7018
7019 * configure.ac: Fix assembly for explicit JALR relocation check.
7020 * configure: Regenerate.
7021
411f86ad
KT
70222014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7023
7024 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
7025 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
7026 Remove associated type declarations and initialisations.
7027 (arm_expand_neon_builtin): Likewise.
7028 (neon_emit_pair_result_insn): Delete.
7029 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
7030 * config/arm/neon.md (neon_vtrn<mode>): Delete.
7031 (neon_vzip<mode>): Likewise.
7032 (neon_vuzp<mode>): Likewise.
7033
6b77934e
RB
70342014-05-13 Richard Biener <rguenther@suse.de>
7035
7036 PR ipa/60973
7037 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
7038 it needs revisiting whether the call still may be tail-called.
7039
da3cd113
RS
70402014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
7041
7042 * rtl.def (SYMBOL_REF): Remove middle "0" field.
7043 * rtl.h (block_symbol): Reduce number of fields to 2.
7044 (rtx_def): Add u2.symbol_ref_flags.
7045 (SYMBOL_REF_FLAGS): Use it.
7046 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
7047 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
7048 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
7049 Lower index of SYMBOL_REF_DATA.
7050 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
7051 Print SYMBOL_REF_FLAGS at the same time.
7052 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
7053
fcc74520
RS
70542014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
7055
7056 * rtl.def (VAR_LOCATION): Remove "i" field.
7057 * rtl.h (rtx_def): Add u2.var_location_status.
7058 (PAT_VAR_LOCATION_STATUS): Use it.
7059 (gen_rtx_VAR_LOCATION): Declare.
7060 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
7061 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
7062 * var-tracking.c (emit_note_insn_var_location): Remove casts.
7063
feb09dd9
RS
70642014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
7065
7066 * rtl.def (scratch): Fix outdated comment and remove "0" field.
7067 * gengtype.c (adjust_field_rtx_def): Update accordingly.
7068
ed8921dc
RS
70692014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
7070
7071 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
7072 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
7073 * rtl.h (rtx_def): Add insn_uid to u2 field.
7074 (RTX_FLAG_CHECK8): Delete in favor of...
7075 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
7076 (INSN_DELETED_P): Update accordingly.
7077 (INSN_UID): Use u2.insn_uid.
7078 (INSN_CHAIN_CODE_P): Define.
7079 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
7080 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
7081 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
7082 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
7083 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
7084 indices accordingly.
7085 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
7086 Update indices for insn-chain rtxes.
7087 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
7088 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
7089 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
7090 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
7091 * combine.c (try_combine): Likewise.
7092 * ira.c (setup_prohibited_mode_move_regs): Likewise.
7093
fccc5515
RS
70942014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
7095
7096 * rtl.def (REG): Remove middle field.
7097 * rtl.h (rtx_def): Add orignal_regno to u2.
7098 (ORIGINAL_REGNO): Use it instead of field 1.
7099 (REG_ATTRS): Lower field index accordingly.
7100 * gengtype.c (adjust_field_rtx_def): Remove handling of
7101 ORIGINAL_REGNO. Move REG_ATTRS index down.
7102 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
7103 code that prints the REGNO.
7104
925c1bae
RS
71052014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
7106
7107 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
7108 GENERATOR_FILE.
7109
13b0c5ac
RS
71102014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
7111
7112 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
7113
be9a0da5
BC
71142014-05-13 Bin Cheng <bin.cheng@arm.com>
7115
7116 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
7117 (alloc_iv): Lower base expressions containing ADDR_EXPR.
7118
73d9ac6a
IB
71192014-05-13 Ian Bolton <ian.bolton@arm.com>
7120
7121 * config/aarch64/aarch64-protos.h
7122 (aarch64_hard_regno_caller_save_mode): New prototype.
7123 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
7124 New function.
7125 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
7126
06b90602
CB
71272014-05-13 Christian Bruel <christian.bruel@st.com>
7128
7129 * target.def (mode_switching): New hook vector.
7130 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
7131 (mode_exit, modepriority_to_mode): Likewise.
7132 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
7133 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
06b90602
CB
7134 * target.h: Include tm.h and hard-reg-set.h.
7135 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
7136 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
7137 * doc/tm.texi Regenerate.
7138 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
7139 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
7140 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
7141 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
7142 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
7143 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
7144 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
7145 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
6b8ebd00
UB
7146 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
7147 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
7148 (ix86_emit_mode_set): Hookify.
06b90602 7149 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
6b8ebd00 7150 Delete.
06b90602 7151 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
06b90602
CB
7152 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
7153 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
7154 (epiphany_mode_priority_to_mode): Remove declaration.
7155 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
7156 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
7157 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
7158 Likewise.
6b8ebd00 7159 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
06b90602
CB
7160 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
7161 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
7162
455464ab
JJ
71632014-05-13 Jakub Jelinek <jakub@redhat.com>
7164
7165 PR target/61060
7166 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
7167 is const0_rtx, return immediately. Don't test count == 0 when
7168 it is always true.
7169
f30e25a3
ZC
71702014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7171
7172 * Makefile.in: add shrink-wrap.o.
7173 * config/i386/i386.c: include "shrink-wrap.h"
7174 * function.c: Likewise.
7175 (requires_stack_frame_p, next_block_for_reg,
7176 move_insn_for_shrink_wrap, prepare_shrink_wrap,
7177 dup_block_and_redirect): Move to shrink-wrap.c
7178 (thread_prologue_and_epilogue_insns): Extract three code segments
7179 as functions in shrink-wrap.c
7180 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
7181 shrink-wrap.h
7182 * shrink-wrap.c: New file.
7183 * shrink-wrap.h: New file.
7184
f95c6a78
DW
71852014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
7186
7187 * doc/extend.texi: Reflect current numbers of pragmas. Remove
7188 reference to Solaris.
7189
77a1da2c
MS
71902014-05-12 Mike Stump <mikestump@comcast.net>
7191
7192 PR other/31778
7193 * genattrtab.c (filename): Add.
7194 (convert_set_attr_alternative): Improve error message.
7195 (check_defs): Restore read_md_filename for error messages.
7196 (gen_insn): Save filename.
7197
dff8943f
DP
71982014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
7199
7200 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
7201 -fno-local-ivars and -fivar-visibility.
7202 * c-family/c.opt: Make -Wshadow also implicitly enable
7203 -Wshadow-ivar.
7204
6b8ebd00 72052014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
3842015e
DW
7206
7207 * doc/tm.texi: Remove reference to deleted macro.
7208 * doc/tm.texi.in: Likewise.
7209
079f1420
SKS
72102014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7211
7212 PR target/60991
7213 * config/avr/avr.c (avr_out_store_psi): Use correct constant
7214 to restore Y.
7215
999db125
GJL
72162014-05-12 Georg-Johann Lay <avr@gjlay.de>
7217
a5024e01 7218 PR libgcc/61152
999db125
GJL
7219 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
7220 * config/arm/aout.h (License): Same.
7221 * config/arm/bpabi.h (License): Same.
7222 * config/arm/elf.h (License): Same.
7223 * config/arm/linux-elf.h (License): Same.
7224 * config/arm/linux-gas.h (License): Same.
7225 * config/arm/netbsd-elf.h (License): Same.
7226 * config/arm/uclinux-eabi.h (License): Same.
7227 * config/arm/uclinux-elf.h (License): Same.
7228 * config/arm/vxworks.h (License): Same.
7229
dd2fc525
JJ
72302014-05-11 Jakub Jelinek <jakub@redhat.com>
7231
7232 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
7233 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
7234 number of operands to 3.
7235 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
7236 * tree-nested.c (convert_nonlocal_omp_clauses,
7237 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
7238 * gimplify.c (gimplify_scan_omp_clauses): Handle
7239 OMP_CLAUSE_LINEAR_STMT.
7240 * omp-low.c (lower_rec_input_clauses): Fix typo.
7241 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
7242 cast between Fortran boolean_type_node and C _Bool if
7243 needed.
7244
7588d8aa
RS
72452014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
7246
7247 PR tree-optimization/61136
7248 * wide-int.h (multiple_of_p): Define a version that doesn't return
7249 the quotient.
7250 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
7251 integer_zerop/const_binop pair.
7252 (multiple_of_p): Likewise, converting both operands to widest_int
7253 precision.
7254
e7eee636
TJ
72552014-05-09 Teresa Johnson <tejohnson@google.com>
7256
7257 * cgraphunit.c (analyze_functions): Use correct dump file.
7258
6545746e
FW
72592014-05-09 Florian Weimer <fweimer@redhat.com>
7260
7261 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
7262 expand_used_vars.
7263 (stack_protect_return_slot_p): New function.
7264 (expand_used_vars): Call stack_protect_decl_p and
7265 stack_protect_return_slot_p for -fstack-protector-strong.
7266
2556511e
DW
72672014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
7268 Andrew Haley <aph@redhat.com>
7269 Richard Sandiford <rdsandiford@googlemail.com>
7270
7271 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
7272 pages.
7273
971ed35d 72742014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
b8d29c66
KZ
7275
7276 PR middle-end/61111
7277 * fold-const.c (fold_binary_loc): Changed width of mask.
7278
c204f1b5
GJL
72792014-05-09 Georg-Johann Lay <avr@gjlay.de>
7280
7281 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
7282 unsigned int initializers for regno_in, regno_out.
7283
b8469805
GJL
72842014-05-09 Georg-Johann Lay <avr@gjlay.de>
7285
7286 PR target/61055
7287 * config/avr/avr.md (cc): Add new attribute set_vzn.
7288 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
7289 Set cc insn attribute to set_vzn instead of set_zn for alternatives
7290 with INC, DEC or NEG.
7291 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
7292 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
7293 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
7294
9db25c6a
RR
72952014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7296
7297 Revert:
7298 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7299
7300 * wide-int.cc (UTItype): Define.
7301 (UDWtype): Define for appropriate W_TYPE_SIZE.
7302
ee3958cf
RB
73032014-05-09 Richard Biener <rguenther@suse.de>
7304
7305 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
7306 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
7307 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
7308 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
7309 ssa_propagate): Adjust.
7310
0600049c
JL
73112014-05-08 Jeff Law <law@redhat.com>
7312
7313 PR tree-optimization/61009
7314 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
7315 tri-state rather than a boolean. When a block is too big to
7316 thread through, inform caller via negative return value.
7317 (thread_across_edge): If a block was too big for normal threading,
7318 then it's too big for a joiner too, so remove temporary equivalences
7319 and return immediately.
7320
a82122df
MK
73212014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
7322 Matthias Klose <doko@ubuntu.com>
7323
7324 PR driver/61106
7325 * optc-gen.awk: Fix option handling for -Wunused-parameter.
7326
30e494f1
UB
73272014-05-08 Uros Bizjak <ubizjak@gmail.com>
7328
7329 PR target/59952
7330 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
7331
b6db8af6
UB
73322014-05-08 Uros Bizjak <ubizjak@gmail.com>
7333
7334 PR target/61092
7335 * config/alpha/alpha.c: Include gimple-iterator.h.
7336 (alpha_gimple_fold_builtin): New function. Move
7337 ALPHA_BUILTIN_UMULH folding from ...
7338 (alpha_fold_builtin): ... here.
7339 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
7340
272325bd
WM
73412014-05-08 Wei Mi <wmi@google.com>
7342
7343 PR target/58066
b6db8af6
UB
7344 * config/i386/i386.c (ix86_compute_frame_layout): Update
7345 preferred_stack_boundary for call, expanded from tls descriptor.
7346 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
7347 to depend on SP register.
272325bd
WM
7348 (*tls_local_dynamic_base_32_gnu): Ditto.
7349 (*tls_local_dynamic_32_once): Ditto.
7350 (tls_global_dynamic_64_<mode>): Set
7351 ix86_tls_descriptor_calls_expanded_in_cfun.
7352 (tls_local_dynamic_base_64_<mode>): Ditto.
7353 (tls_global_dynamic_32): Set
7354 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
7355 to depend on SP register.
7356 (tls_local_dynamic_base_32): Ditto.
7357
e79cb1a3
RR
73582014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7359
7360 * config/arm/arm_neon.h: Update comment.
7361 * config/arm/neon-docgen.ml: Delete.
7362 * config/arm/neon-gen.ml: Delete.
7363 * doc/arm-neon-intrinsics.texi: Update comment.
7364
0d0b79a6
RR
73652014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7366
7367 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
7368 and v4sf versions.
7369 (vand, vorr, veor, vorn, vbic): Remove.
7370 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
7371 iterator.
7372 (neon_vsub_unspec): Likewise.
7373 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
7374
add0c111
RR
73752014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7376
7377 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
7378 (vadd_s16): Likewise.
7379 (vadd_s32): Likewise.
7380 (vadd_f32): Likewise.
7381 (vadd_u8): Likewise.
7382 (vadd_u16): Likewise.
7383 (vadd_u32): Likewise.
7384 (vadd_s64): Likewise.
7385 (vadd_u64): Likewise.
7386 (vaddq_s8): Likewise.
7387 (vaddq_s16): Likewise.
7388 (vaddq_s32): Likewise.
7389 (vaddq_s64): Likewise.
7390 (vaddq_f32): Likewise.
7391 (vaddq_u8): Likewise.
7392 (vaddq_u16): Likewise.
7393 (vaddq_u32): Likewise.
7394 (vaddq_u64): Likewise.
7395 (vmul_s8): Likewise.
7396 (vmul_s16): Likewise.
7397 (vmul_s32): Likewise.
7398 (vmul_f32): Likewise.
7399 (vmul_u8): Likewise.
7400 (vmul_u16): Likewise.
7401 (vmul_u32): Likewise.
7402 (vmul_p8): Likewise.
7403 (vmulq_s8): Likewise.
7404 (vmulq_s16): Likewise.
7405 (vmulq_s32): Likewise.
7406 (vmulq_f32): Likewise.
7407 (vmulq_u8): Likewise.
7408 (vmulq_u16): Likewise.
7409 (vmulq_u32): Likewise.
7410 (vsub_s8): Likewise.
7411 (vsub_s16): Likewise.
7412 (vsub_s32): Likewise.
7413 (vsub_f32): Likewise.
7414 (vsub_u8): Likewise.
7415 (vsub_u16): Likewise.
7416 (vsub_u32): Likewise.
7417 (vsub_s64): Likewise.
7418 (vsub_u64): Likewise.
7419 (vsubq_s8): Likewise.
7420 (vsubq_s16): Likewise.
7421 (vsubq_s32): Likewise.
7422 (vsubq_s64): Likewise.
7423 (vsubq_f32): Likewise.
7424 (vsubq_u8): Likewise.
7425 (vsubq_u16): Likewise.
7426 (vsubq_u32): Likewise.
7427 (vsubq_u64): Likewise.
7428 (vand_s8): Likewise.
7429 (vand_s16): Likewise.
7430 (vand_s32): Likewise.
7431 (vand_u8): Likewise.
7432 (vand_u16): Likewise.
7433 (vand_u32): Likewise.
7434 (vand_s64): Likewise.
7435 (vand_u64): Likewise.
7436 (vandq_s8): Likewise.
7437 (vandq_s16): Likewise.
7438 (vandq_s32): Likewise.
7439 (vandq_s64): Likewise.
7440 (vandq_u8): Likewise.
7441 (vandq_u16): Likewise.
7442 (vandq_u32): Likewise.
7443 (vandq_u64): Likewise.
7444 (vorr_s8): Likewise.
7445 (vorr_s16): Likewise.
7446 (vorr_s32): Likewise.
7447 (vorr_u8): Likewise.
7448 (vorr_u16): Likewise.
7449 (vorr_u32): Likewise.
7450 (vorr_s64): Likewise.
7451 (vorr_u64): Likewise.
7452 (vorrq_s8): Likewise.
7453 (vorrq_s16): Likewise.
7454 (vorrq_s32): Likewise.
7455 (vorrq_s64): Likewise.
7456 (vorrq_u8): Likewise.
7457 (vorrq_u16): Likewise.
7458 (vorrq_u32): Likewise.
7459 (vorrq_u64): Likewise.
7460 (veor_s8): Likewise.
7461 (veor_s16): Likewise.
7462 (veor_s32): Likewise.
7463 (veor_u8): Likewise.
7464 (veor_u16): Likewise.
7465 (veor_u32): Likewise.
7466 (veor_s64): Likewise.
7467 (veor_u64): Likewise.
7468 (veorq_s8): Likewise.
7469 (veorq_s16): Likewise.
7470 (veorq_s32): Likewise.
7471 (veorq_s64): Likewise.
7472 (veorq_u8): Likewise.
7473 (veorq_u16): Likewise.
7474 (veorq_u32): Likewise.
7475 (veorq_u64): Likewise.
7476 (vbic_s8): Likewise.
7477 (vbic_s16): Likewise.
7478 (vbic_s32): Likewise.
7479 (vbic_u8): Likewise.
7480 (vbic_u16): Likewise.
7481 (vbic_u32): Likewise.
7482 (vbic_s64): Likewise.
7483 (vbic_u64): Likewise.
7484 (vbicq_s8): Likewise.
7485 (vbicq_s16): Likewise.
7486 (vbicq_s32): Likewise.
7487 (vbicq_s64): Likewise.
7488 (vbicq_u8): Likewise.
7489 (vbicq_u16): Likewise.
7490 (vbicq_u32): Likewise.
7491 (vbicq_u64): Likewise.
7492 (vorn_s8): Likewise.
7493 (vorn_s16): Likewise.
7494 (vorn_s32): Likewise.
7495 (vorn_u8): Likewise.
7496 (vorn_u16): Likewise.
7497 (vorn_u32): Likewise.
7498 (vorn_s64): Likewise.
7499 (vorn_u64): Likewise.
7500 (vornq_s8): Likewise.
7501 (vornq_s16): Likewise.
7502 (vornq_s32): Likewise.
7503 (vornq_s64): Likewise.
7504 (vornq_u8): Likewise.
7505 (vornq_u16): Likewise.
7506 (vornq_u32): Likewise.
7507 (vornq_u64): Likewise.
7508
ca40fb28
RR
75092014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7510
7511 * wide-int.cc (UTItype): Define.
b6db8af6 7512 (UDWtype): Define for appropriate W_TYPE_SIZE.
ca40fb28 7513
421bf780
MG
75142014-05-08 Marc Glisse <marc.glisse@inria.fr>
7515
7516 PR tree-optimization/59100
7517 * tree-ssa-phiopt.c: Include tree-inline.h.
7518 (neutral_element_p, absorbing_element_p): New functions.
7519 (value_replacement): Handle conditional binary operations with a
7520 neutral or absorbing element.
7521
a5eaec42
RB
75222014-05-08 Richard Biener <rguenther@suse.de>
7523
7524 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
7525 folding the expression.
7526 (valueize_expr): Remove.
7527 (visit_reference_op_load): Do not valueize the result of
7528 vn_get_expr_for.
7529 (simplify_binary_expression): Likewise.
7530 (simplify_unary_expression): Likewise.
7531
a96c6a62
RB
75322014-05-08 Richard Biener <rguenther@suse.de>
7533
7534 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
7535 looking at TYPE_ARG_TYPES.
7536
fb42e303
RB
75372014-05-08 Richard Biener <rguenther@suse.de>
7538
7539 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
7540 pointer propagation special-case.
7541
d1f1a283
BC
75422014-05-08 Bin Cheng <bin.cheng@arm.com>
7543
7544 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
7545 core part of address expressions.
7546
42aea2d8
AM
75472014-05-08 Alan Modra <amodra@gmail.com>
7548
7549 PR target/60737
7550 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
7551 loads and stores when -mno-strict-align at any alignment.
7552 (expand_block_clear): Similarly. Also correct calculation of
7553 instruction count.
7554
10e08855
TP
75552014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
7556
7557 PR middle-end/39246
7558 * tree-complex.c (expand_complex_move): Keep line info when expanding
7559 complex move.
7560 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
7561 of complex expression. Use new argument to display correct location
7562 for values coming from phi statement.
7563 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
7564 (warn_uninitialized_phi): Pass location of phi argument to
7565 warn_uninit.
7566 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
7567 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
7568
d839f53b
SB
75692014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
7570
7571 * config/rs6000/predicates.md (indexed_address_mem): New.
7572 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
7573 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
7574 fpstore_ux, fpstore_u.
7575 (sign_extend, indexed, update): New.
7576 (cell_micro): Adjust.
7577 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
7578 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
7579 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
7580 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
7581 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
7582 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
7583 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
7584 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
7585 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
7586 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
7587 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
7588 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
7589 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
7590 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
7591 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
7592
7593 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
7594 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
7595 *vsx_extract_<mode>_store): Adjust.
7596 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
7597 is_cracked_insn, insn_must_be_first_in_group,
7598 insn_must_be_last_in_group): Adjust.
7599
7600 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
7601 Adjust.
7602 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
7603 ppc440-fpstore): Adjust.
7604 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
7605 ppc476-fpstore): Adjust.
7606 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
7607 ppc601-fpstore): Adjust.
7608 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
7609 Adjust.
7610 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
7611 Adjust.
7612 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
7613 ppc7450-fpstore): Adjust.
7614 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
7615 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
7616 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
7617 Adjust.
7618 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
7619 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
7620 cell-fpstore, cell-fpstore-update): Adjust.
7621 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
7622 ppce300c3_store, ppce300c3_fpstore): Adjust.
7623 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
7624 e500mc_fpstore): Adjust.
7625 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
7626 e500mc64_store, e500mc64_fpstore): Adjust.
7627 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
7628 e5500_fpstore): Adjust.
7629 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
7630 e6500_fpstore): Adjust.
7631 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
7632 Adjust.
7633 * config/rs6000/power4.md (power4-load, power4-load-ext,
7634 power4-load-ext-update, power4-load-ext-update-indexed,
7635 power4-load-update-indexed, power4-load-update, power4-fpload,
7636 power4-fpload-update, power4-store, power4-store-update,
7637 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
7638 Adjust.
7639 * config/rs6000/power5.md (power5-load, power5-load-ext,
7640 power5-load-ext-update, power5-load-ext-update-indexed,
7641 power5-load-update-indexed, power5-load-update, power5-fpload,
7642 power5-fpload-update, power5-store, power5-store-update,
7643 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
7644 Adjust.
7645 * config/rs6000/power6.md (power6-load, power6-load-ext,
7646 power6-load-update, power6-load-update-indexed,
7647 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
7648 power6-fpload-update, power6-store, power6-store-update,
7649 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
7650 Adjust.
7651 * config/rs6000/power7.md (power7-load, power7-load-ext,
7652 power7-load-update, power7-load-update-indexed,
7653 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
7654 power7-fpload-update, power7-store, power7-store-update,
7655 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
7656 Adjust.
7657 * config/rs6000/power8.md (power8-load, power8-load-update,
7658 power8-load-ext, power8-load-ext-update, power8-fpload,
7659 power8-fpload-update, power8-store, power8-store-update-indexed,
7660 power8-fpstore, power8-fpstore-update): Adjust.
7661 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
7662 Adjust.
7663 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
7664 titan_lsu_store, titan_lsu_fpstore): Adjust.
7665 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
7666
36dc9ae8
OE
76672014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
7668
7669 PR target/60884
7670 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
7671 unrolled byte insns. Emit address increments after move insns.
7672
9bbf45f6
DM
76732014-05-07 David Malcolm <dmalcolm@redhat.com>
7674
7675 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
7676 const_gimple, rather than a gimple.
7677 (gimple_call_builtin_p): Likewise, for the three variants.
7678
7679 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
7680 (gimple_call_builtin_p): Likewise, for the three variants.
7681
1a51f10c
RS
76822014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
7683
7684 PR tree-optimization/61095
7685 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
7686
50f0aa20
RB
76872014-05-07 Richard Biener <rguenther@suse.de>
7688
7689 PR tree-optimization/61034
7690 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
7691 (maybe_skip_until): Use translate to take into account
7692 lattices when trying to do disambiguations.
7693 (get_continuation_for_phi_1): Likewise.
b6db8af6 7694 (get_continuation_for_phi): Adjust for added translate arguments.
50f0aa20 7695 (walk_non_aliased_vuses): Likewise.
b6db8af6 7696 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
50f0aa20
RB
7697 (walk_non_aliased_vuses): Likewise.
7698 (call_may_clobber_ref_p_1): Declare.
b6db8af6
UB
7699 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
7700 calls. Stop early if we are only supposed to disambiguate.
50f0aa20
RB
7701 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
7702
e7b7077e
JR
77032014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
7704
7705 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
7706 Emit an error when the function has arguments.
7707
c4597c1d
TS
77082014-05-07 Thomas Schwinge <thomas@codesourcery.com>
7709
7710 * cfgloop.h (unswitch_loops): Remove.
7711 * doc/passes.texi: Remove references to loop-unswitch.c
7712 * timevar.def (TV_LOOP_UNSWITCH): Remove.
7713
2c23db6d
ES
77142014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
7715
7716 * tree-vect-data-refs.c (vect_grouped_load_supported): New
7717 check for loads group of length 3.
7718 (vect_permute_load_chain): New permutations for loads group of
7719 length 3.
7720 * tree-vect-stmts.c (vect_model_load_cost): Change cost
7721 of vec_perm_shuffle for the new permutations.
7722
1d175503
AL
77232014-05-07 Alan Lawrence <alan.lawrence@arm.com>
7724
7725 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
7726 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
7727 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
7728 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
7729 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
7730 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
7731 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
7732 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
7733
e2d87487
TS
77342014-05-07 Thomas Schwinge <thomas@codesourcery.com>
7735
7736 * loop-unswitch.c: Delete.
7737
f543058d
RB
77382014-05-07 Richard Biener <rguenther@suse.de>
7739
7740 * config.gcc: Always set need_64bit_hwint to yes.
7741
96092404
CJW
77422014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
7743
7744 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
7745 of using optimize_size.
7746
ca66f89b
MS
77472014-05-06 Mike Stump <mikestump@comcast.net>
7748
7749 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
7750
659c0e68
JM
77512014-05-06 Joseph Myers <joseph@codesourcery.com>
7752
7753 * config/i386/sse.md (*mov<mode>_internal)
7754 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
7755 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
7756 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
7757 (*<code><mode>3, *andnot<mode>3<mask_name>)
7758 (<mask_codefor><code><mode>3<mask_name>): Only consider
7759 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
7760
3379b71f
RS
77612014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
7762
7763 Revert:
7764 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
7765
7766 * lra-constraints.c (valid_address_p): Move earlier in file.
7767 Add a constraint argument to the address_info version.
7768 (satisfies_memory_constraint_p): New function.
7769 (satisfies_address_constraint_p): Likewise.
7770 (process_alt_operands, curr_insn_transform): Use them.
7771 (process_address): Pass the constraint to valid_address_p when
7772 checking address operands.
7773
224dbc07
RS
77742014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
7775
7776 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
7777 to their respective blocks. Fix inadvertent use of "node".
7778
aa3a12d6
RS
77792014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
7780
7781 * emit-rtl.c (init_derived_machine_modes): New functionm, split
7782 out from...
7783 (init_emit_once): ...here.
7784 * rtl.h (init_derived_machine_modes): Declare.
7785 * toplev.c (do_compile): Call it even if no_backend.
7786
1d60af08
KZ
77872014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
7788 Mike Stump <mikestump@comcast.net>
7789 Richard Sandiford <rdsandiford@googlemail.com>
7790 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7791
7792 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
7793 (rtx_equal_for_memref_p): Update comment.
7794 (adjust_offset_for_component_ref): Use wide-int interfaces.
7795 * builtins.c (get_object_alignment_2): Likewise.
7796 (c_readstr): Likewise.
7797 (target_char_cast): Add comment.
7798 (determine_block_size): Use wide-int interfaces.
7799 (expand_builtin_signbit): Likewise.
7800 (fold_builtin_int_roundingfn): Likewise.
7801 (fold_builtin_bitop): Likewise.
7802 (fold_builtin_bswap): Likewise.
7803 (fold_builtin_logarithm): Use signop.
7804 (fold_builtin_pow): Likewise.
7805 (fold_builtin_memory_op): Use wide-int interfaces.
7806 (fold_builtin_object_size): Likewise.
7807 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
7808 nb_iterations_estimate.
7809 (record_niter_bound): Use wide-int interfaces.
7810 (get_estimated_loop_iterations_int): Likewise.
7811 (get_estimated_loop_iterations): Likewise.
7812 (get_max_loop_iterations): Likewise.
7813 * cfgloop.h: Include wide-int.h.
7814 (struct nb_iter_bound): Change bound to widest_int.
7815 (struct loop): Change nb_iterations_upper_bound and
7816 nb_iterations_estimate to widest_int.
7817 (record_niter_bound): Switch to use widest_int.
7818 (get_estimated_loop_iterations): Likewise.
7819 (get_max_loop_iterations): Likewise.
7820 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
7821 update for wide-int.
7822 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
7823 * combine.c (try_combine): Likewise.
7824 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
7825 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
7826 interfaces.
7827 (aarch64_float_const_representable_p): Likewise.
7828 * config/arc/arc.c: Include wide-int.h.
7829 (arc_can_use_doloop_p): Use wide-int interfaces.
7830 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
7831 (vfp3_const_double_index): Likewise.
7832 * config/avr/avr.c (avr_out_round): Likewise.
7833 (avr_fold_builtin): Likewise.
7834 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
7835 (bfin_can_use_doloop_p): Likewise.
7836 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
7837 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
7838 * config/i386/i386.c: Include wide-int.h.
7839 (ix86_data_alignment): Use wide-int interfaces.
7840 (ix86_local_alignment): Likewise.
7841 (ix86_emit_swsqrtsf): Update real_from_integer.
7842 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
7843 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
7844 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
7845 (zero_constant): Likewise.
7846 (input_operand): Likewise.
7847 (splat_input_operand): Likewise.
7848 (non_logical_cint_operand): Change const_double to const_wide_int.
7849 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
7850 (easy_altivec_constant): Remove comment.
7851 (paired_expand_vector_init): Use CONSTANT_P.
7852 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
7853 (rs6000_emit_move): Update checks.
7854 (rs6000_aggregate_candidate): Use wide-int interfaces.
7855 (rs6000_expand_ternop_builtin): Likewise.
7856 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
7857 (rs6000_assemble_integer): Likewise.
7858 (rs6000_hash_constant): Likewise.
7859 (output_toc): Likewise.
7860 (rs6000_rtx_costs): Likewise.
7861 (rs6000_emit_swrsqrt); Update call to real_from_integer.
7862 * config/rs6000/rs6000-c.c: Include wide-int.h.
7863 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
7864 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
7865 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
7866 Handle CONST_WIDE_INT.
7867 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
7868 Use tree_fits_uhwi_p.
7869 * config/sparc/sparc.c: Include wide-int.h.
7870 (sparc_fold_builtin): Use wide-int interfaces.
7871 * config/vax/vax.c: Include wide-int.h.
7872 (vax_float_literal): Use real_from_integer.
7873 * coretypes.h (struct hwivec_def): New.
7874 (hwivec): New.
7875 (const_hwivec): New.
7876 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
7877 (equiv_constant): Handle CONST_WIDE_INT.
7878 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
7879 (cselib_hash_rtx): Handle CONST_WIDE_INT.
7880 * dbxout.c (stabstr_U): Use wide-int interfaces.
7881 (dbxout_type): Update to use cst_fits_shwi_p.
7882 * defaults.h (LOG2_BITS_PER_UNIT): Define.
7883 (TARGET_SUPPORTS_WIDE_INT): Add default.
7884 * dfp.c: Include wide-int.h.
7885 (decimal_real_to_integer2): Use wide-int interfaces and rename to
7886 decimal_real_to_integer.
7887 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
7888 decimal_real_to_integer.
7889 * doc/generic.texi (Constant expressions): Update for wide_int.
7890 * doc/rtl.texi (const_double): Likewise.
7891 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
7892 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
7893 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
7894 (REAL_VALUE_FROM_INT): Remove.
7895 (TARGET_SUPPORTS_WIDE_INT): New.
7896 * doc/tm.texi: Regenerate.
7897 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
7898 * double-int.h: Include wide-int.h.
7899 (struct wi::int_traits): New.
7900 * dwarf2out.c (get_full_len): New.
7901 (dw_val_equal_p): Add case dw_val_class_wide_int.
7902 (size_of_loc_descr): Likewise.
7903 (output_loc_operands): Likewise.
7904 (insert_double): Remove.
7905 (insert_wide_int): New.
7906 (add_AT_wide): New.
7907 (print_die): Add case dw_val_class_wide_int.
7908 (attr_checksum): Likewise.
7909 (attr_checksum_ordered): Likewise.
7910 (same_dw_val_p): Likewise.
7911 (size_of_die): Likewise.
7912 (value_format): Likewise.
7913 (output_die): Likewise.
7914 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
7915 Use wide-int.
7916 (clz_loc_descriptor): Use wide-int interfaces.
7917 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
7918 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
7919 (round_up_to_align): Use wide-int interfaces.
7920 (field_byte_offset): Likewise.
7921 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
7922 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
7923 CONST_DOUBLE handling. Use wide-int interfaces.
7924 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
7925 (gen_enumeration_type_die): Use add_AT_wide.
7926 (hash_loc_operands): Add case dw_val_class_wide_int.
7927 (compare_loc_operands): Likewise.
7928 * dwarf2out.h: Include wide-int.h.
7929 (wide_int_ptr): New.
7930 (enum dw_val_class): Add dw_val_class_wide_int.
7931 (struct dw_val_struct): Add val_wide.
7932 * emit-rtl.c (const_wide_int_htab): New.
7933 (const_wide_int_htab_hash): New.
7934 (const_wide_int_htab_eq): New.
7935 (lookup_const_wide_int): New.
7936 (const_double_htab_hash): Use wide-int interfaces.
7937 (const_double_htab_eq): Likewise.
7938 (rtx_to_double_int): Conditionally compile for wide-int.
7939 (immed_double_int_const): Rename to immed_wide_int_const and
7940 update for wide-int.
7941 (immed_double_const): Conditionally compile for wide-int.
7942 (init_emit_once): Use wide-int interfaces.
7943 * explow.c (plus_constant): Likewise.
7944 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
7945 (lshift_value): Use wide-int interfaces.
7946 (expand_mult): Likewise.
7947 (choose_multiplier): Likewise.
7948 (expand_smod_pow2): Likewise.
7949 (make_tree): Likewise.
7950 * expr.c (convert_modes): Consolidate handling of constants.
7951 Use wide-int interfaces.
7952 (emit_group_load_1): Add note.
7953 (store_expr): Update comment.
7954 (get_inner_reference): Use wide-int interfaces.
7955 (expand_constructor): Update comment.
7956 (expand_expr_real_2): Use wide-int interfaces.
7957 (expand_expr_real_1): Likewise.
7958 (reduce_to_bit_field_precision): Likewise.
7959 (const_vector_from_tree): Likewise.
7960 * final.c: Include wide-int-print.h.
7961 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
7962 * fixed-value.c: Include wide-int.h.
7963 (fixed_from_string): Use wide-int interfaces.
7964 (fixed_to_decimal): Likewise.
7965 (fixed_convert_from_real): Likewise.
7966 (real_convert_from_fixed): Likewise.
7967 * fold-const.h (mem_ref_offset): Return an offset_int.
7968 (div_if_zero_remainder): Remove code parameter.
7969 * fold-const.c (div_if_zero_remainder): Remove code parameter.
7970 Use wide-int interfaces.
7971 (may_negate_without_overflow_p): Use wide-int interfaces.
7972 (negate_expr_p): Likewise.
7973 (fold_negate_expr): Likewise.
7974 (int_const_binop_1): Likewise.
7975 (const_binop): Likewise.
7976 (fold_convert_const_int_from_int): Likewise.
7977 (fold_convert_const_int_from_real): Likewise.
7978 (fold_convert_const_int_from_fixed): Likewise.
7979 (fold_convert_const_fixed_from_int): Likewise.
7980 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
7981 (sign_bit_p): Use wide-int interfaces.
7982 (make_range_step): Likewise.
7983 (build_range_check): Likewise. Pass an integer of the correct type
7984 instead of using integer_one_node.
7985 (range_predecessor): Pass an integer of the correct type instead
7986 of using integer_one_node.
7987 (range_successor): Likewise.
7988 (merge_ranges): Likewise.
7989 (unextend): Use wide-int interfaces.
7990 (extract_muldiv_1): Likewise.
7991 (fold_div_compare): Likewise.
7992 (fold_single_bit_test): Likewise.
7993 (fold_sign_changed_comparison): Likewise.
7994 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
7995 (fold_plusminus_mult_expr): Use wide-int interfaces.
7996 (native_encode_int): Likewise.
7997 (native_interpret_int): Likewise.
7998 (fold_unary_loc): Likewise.
7999 (pointer_may_wrap_p): Likewise.
8000 (size_low_cst): Likewise.
8001 (mask_with_tz): Likewise.
8002 (fold_binary_loc): Likewise.
8003 (fold_ternary_loc): Likewise.
8004 (multiple_of_p): Likewise.
8005 (tree_call_nonnegative_warnv_p): Update calls to
8006 tree_int_cst_min_precision and real_from_integer.
8007 (fold_negate_const): Use wide-int interfaces.
8008 (fold_abs_const): Likewise.
8009 (fold_relational_const): Use tree_int_cst_lt.
8010 (round_up_loc): Use wide-int interfaces.
8011 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
8012 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
8013 * gengtype.c: Remove include of double-int.h.
8014 (do_typedef): Use wide-int interfaces.
8015 (open_base_files): Add wide-int.h.
8016 (main): Add offset_int and widest_int typedefs.
8017 * gengtype-lex.l: Handle "^".
8018 (CXX_KEYWORD): Add "static".
8019 * gengtype-parse.c (require3): New.
8020 (require_template_declaration): Handle constant template arguments
8021 and nested templates.
8022 * gengtype-state.c: Don't include "double-int.h".
8023 * genpreds.c (write_one_predicate_function): Update comment.
8024 (write_tm_constrs_h): Add check for hval and lval use in
8025 CONST_WIDE_INT.
8026 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
8027 (add_to_sequence): Likewise.
8028 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
8029 and const_double_operand.
8030 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
8031 interfaces.
8032 * gimple-fold.c (get_base_constructor): Likewise.
8033 (fold_array_ctor_reference): Likewise.
8034 (fold_nonarray_ctor_reference): Likewise.
8035 (fold_const_aggregate_ref_1): Likewise.
8036 (gimple_val_nonnegative_real_p): Likewise.
8037 (gimple_fold_indirect_ref): Likewise.
8038 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
8039 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
8040 (struct slsr_cand_d): Change index to be widest_int.
8041 (struct incr_info_d): Change incr to be widest_int.
8042 (alloc_cand_and_find_basis): Use wide-int interfaces.
8043 (slsr_process_phi): Likewise.
8044 (backtrace_base_for_ref): Likewise. Return a widest_int.
8045 (restructure_reference): Take a widest_int instead of a double_int.
8046 (slsr_process_ref): Use wide-int interfaces.
8047 (create_mul_ssa_cand): Likewise.
8048 (create_mul_imm_cand): Likewise.
8049 (create_add_ssa_cand): Likewise.
8050 (create_add_imm_cand): Take a widest_int instead of a double_int.
8051 (slsr_process_add): Use wide-int interfaces.
8052 (slsr_process_cast): Likewise.
8053 (slsr_process_copy): Likewise.
8054 (dump_candidate): Likewise.
8055 (dump_incr_vec): Likewise.
8056 (replace_ref): Likewise.
8057 (cand_increment): Likewise. Return a widest_int.
8058 (cand_abs_increment): Likewise.
8059 (replace_mult_candidate): Take a widest_int instead of a double_int.
8060 (replace_unconditional_candidate): Use wide-int interfaces.
8061 (incr_vec_index): Take a widest_int instead of a double_int.
8062 (create_add_on_incoming_edge): Likewise.
8063 (create_phi_basis): Use wide-int interfaces.
8064 (replace_conditional_candidate): Likewise.
8065 (record_increment): Take a widest_int instead of a double_int.
8066 (record_phi_increments): Use wide-int interfaces.
8067 (phi_incr_cost): Take a widest_int instead of a double_int.
8068 (lowest_cost_path): Likewise.
8069 (total_savings): Likewise.
8070 (analyze_increments): Use wide-int interfaces.
8071 (ncd_with_phi): Take a widest_int instead of a double_int.
8072 (ncd_of_cand_and_phis): Likewise.
8073 (nearest_common_dominator_for_cands): Likewise.
8074 (insert_initializers): Use wide-int interfaces.
8075 (all_phi_incrs_profitable): Likewise.
8076 (replace_one_candidate): Likewise.
8077 (replace_profitable_candidates): Likewise.
8078 * godump.c: Include wide-int-print.h.
8079 (go_output_typedef): Use wide-int interfaces.
8080 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
8081 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
8082 (build_loop_iteration_domains): Likewise.
8083 * hooks.h: Include wide-int.h rather than double-int.h.
8084 (hook_bool_dint_dint_uint_bool_true): Delete.
8085 (hook_bool_wint_wint_uint_bool_true): Declare.
8086 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
8087 (hook_bool_wint_wint_uint_bool_true): New.
8088 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
8089 interfaces.
8090 (ubsan_expand_si_overflow_mul_check): Likewise.
8091 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
8092 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
8093 (get_ancestor_addr_info): Likewise.
8094 (ipa_modify_call_arguments): Likewise.
8095 * loop-doloop.c (doloop_modify): Likewise.
8096 (doloop_optimize): Likewise.
8097 * loop-iv.c (iv_number_of_iterations): Likewise.
8098 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
8099 (unroll_loop_constant_iterations): Likewise.
8100 (decide_unroll_runtime_iterations): Likewise.
8101 (unroll_loop_runtime_iterations): Likewise.
8102 (decide_peel_simple): Likewise.
8103 (decide_unroll_stupid): Likewise.
8104 * lto-streamer-in.c (streamer_read_wi): Add.
8105 (input_cfg): Use wide-int interfaces.
8106 (lto_input_tree_1): Likewise.
8107 * lto-streamer-out.c (streamer_write_wi): Add.
8108 (hash_tree): Use wide-int interfaces.
8109 (output_cfg): Likewise.
8110 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
8111 (GTFILES): Add wide-int.h and signop.h.
8112 (TAGS): Look for .cc files too.
8113 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
8114 * optabs.c (expand_subword_shift): Likewise.
8115 (expand_doubleword_shift): Likewise.
8116 (expand_absneg_bit): Likewise.
8117 (expand_copysign_absneg): Likewise.
8118 (expand_copysign_bit): Likewise.
8119 * postreload.c (reload_cse_simplify_set): Likewise.
8120 * predict.c (predict_iv_comparison): Likewise.
8121 * pretty-print.h: Include wide-int-print.h.
8122 (pp_wide_int) New.
8123 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
8124 * print-tree.c: Include wide-int-print.h.
8125 (print_node_brief): Use wide-int interfaces.
8126 (print_node): Likewise.
8127 * read-rtl.c (validate_const_wide_int): New.
8128 (read_rtx_code): Add CONST_WIDE_INT case.
8129 * real.c: Include wide-int.h.
8130 (real_to_integer2): Delete.
8131 (real_to_integer): New function, returning a wide_int.
8132 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
8133 (ten_to_ptwo): Update call to real_from_integer.
8134 (real_digit): Likewise.
8135 * real.h: Include signop.h, wide-int.h and insn-modes.h.
8136 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
8137 (REAL_VALUE_TO_INT): Delete.
8138 (real_to_integer): Declare a wide-int form.
8139 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
8140 * recog.c (const_int_operand): Improve comment.
8141 (const_scalar_int_operand): New.
8142 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
8143 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
8144 (split_double): Likewise.
8145 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
8146 (rtx_size): Likewise.
8147 (rtx_alloc_stat_v): New.
8148 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
8149 (cwi_output_hex): New.
8150 (iterative_hash_rtx): Handle CONST_WIDE_INT.
8151 (cwi_check_failed_bounds): New.
8152 * rtl.def (CONST_WIDE_INT): New.
8153 * rtl.h: Include <utility> and wide-int.h.
8154 (struct hwivec_def): New.
8155 (CWI_GET_NUM_ELEM): New.
8156 (CWI_PUT_NUM_ELEM): New.
8157 (struct rtx_def): Add num_elem and hwiv.
8158 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
8159 (CASE_CONST_UNIQUE): Likewise.
8160 (CASE_CONST_ANY): Likewise.
8161 (CONST_SCALAR_INT_P): Likewise.
8162 (CONST_WIDE_INT_P): New.
8163 (CWI_ELT): New.
8164 (HWIVEC_CHECK): New.
8165 (cwi_check_failed_bounds): New.
8166 (CWI_ELT): New.
8167 (HWIVEC_CHECK): New.
8168 (CONST_WIDE_INT_VEC) New.
8169 (CONST_WIDE_INT_NUNITS) New.
8170 (CONST_WIDE_INT_ELT) New.
8171 (rtx_mode_t): New type.
8172 (wi::int_traits <rtx_mode_t>): New.
8173 (wi::shwi): New.
8174 (wi::min_value): New.
8175 (wi::max_value): New.
8176 (rtx_alloc_v) New.
8177 (const_wide_int_alloc): New.
8178 (immed_wide_int_const): New.
8179 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
8180 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
8181 * signop.h: New file.
8182 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
8183 (simplify_const_unary_operation): Use wide-int interfaces.
8184 (simplify_binary_operation_1): Likewise.
8185 (simplify_const_binary_operation): Likewise.
8186 (simplify_const_relational_operation): Likewise.
8187 (simplify_immed_subreg): Likewise.
8188 * stmt.c (expand_case): Likewise.
8189 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
8190 signop rather than a bool.
8191 * stor-layout.c (layout_type): Use wide-int interfaces.
8192 (initialize_sizetypes): Update calls to
8193 set_min_and_max_values_for_integral_type.
8194 (set_min_and_max_values_for_integral_type): Take a signop rather
8195 than a bool. Use wide-int interfaces.
8196 (fixup_signed_type): Update accordingly. Remove
8197 HOST_BITS_PER_DOUBLE_INT limit.
8198 (fixup_unsigned_type): Likewise.
8199 * system.h (STATIC_CONSTANT_P): New.
8200 (STATIC_ASSERT): New.
8201 * target.def (can_use_doloop_p): Take widest_ints rather than
8202 double_ints.
8203 * target.h: Include wide-int.h rather than double-int.h.
8204 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
8205 than double_ints.
8206 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
8207 rather than INT_CST_LT_UNSIGNED.
8208 (can_use_doloop_if_innermost): Take widest_ints rather than
8209 double_ints.
8210 * tree-affine.c: Include wide-int-print.h.
8211 (double_int_ext_for_comb): Delete.
8212 (wide_int_ext_for_comb): New.
8213 (aff_combination_zero): Use wide-int interfaces.
8214 (aff_combination_const): Take a widest_int instead of a double_int.
8215 (aff_combination_elt): Use wide-int interfaces.
8216 (aff_combination_scale): Take a widest_int instead of a double_int.
8217 (aff_combination_add_elt): Likewise.
8218 (aff_combination_add_cst): Likewise.
8219 (aff_combination_add): Use wide-int interfaces.
8220 (aff_combination_convert): Likewise.
8221 (tree_to_aff_combination): Likewise.
8222 (add_elt_to_tree): Take a widest_int instead of a double_int.
8223 (aff_combination_to_tree): Use wide-int interfaces.
8224 (aff_combination_remove_elt): Likewise.
8225 (aff_combination_add_product): Take a widest_int instead of
8226 a double_int.
8227 (aff_combination_mult): Use wide-int interfaces.
8228 (aff_combination_expand): Likewise.
8229 (double_int_constant_multiple_p): Delete.
8230 (wide_int_constant_multiple_p): New.
8231 (aff_combination_constant_multiple_p): Take a widest_int pointer
8232 instead of a double_int pointer.
8233 (print_aff): Use wide-int interfaces.
8234 (get_inner_reference_aff): Take a widest_int pointer
8235 instead of a double_int pointer.
8236 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
8237 * tree-affine.h: Include wide-int.h.
8238 (struct aff_comb_elt): Change type of coef to widest_int.
8239 (struct affine_tree_combination): Change type of offset to widest_int.
8240 (double_int_ext_for_comb): Delete.
8241 (wide_int_ext_for_comb): New.
8242 (aff_combination_const): Use widest_int instead of double_int.
8243 (aff_combination_scale): Likewise.
8244 (aff_combination_add_elt): Likewise.
8245 (aff_combination_constant_multiple_p): Likewise.
8246 (get_inner_reference_aff): Likewise.
8247 (aff_comb_cannot_overlap_p): Likewise.
8248 (aff_combination_zero_p): Use wide-int interfaces.
8249 * tree.c: Include tree.h.
8250 (init_ttree): Use make_int_cst.
8251 (tree_code_size): Removed code for INTEGER_CST case.
8252 (tree_size): Add INTEGER_CST case.
8253 (make_node_stat): Update comment.
8254 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
8255 (build_int_cst_type): Use wide-int interfaces.
8256 (double_int_to_tree): Likewise.
8257 (double_int_fits_to_tree_p): Delete.
8258 (force_fit_type_double): Delete.
8259 (force_fit_type): New.
8260 (int_cst_hash_hash): Use wide-int interfaces.
8261 (int_cst_hash_eq): Likewise.
8262 (build_int_cst_wide): Delete.
8263 (wide_int_to_tree): New.
8264 (cache_integer_cst): Use wide-int interfaces.
8265 (build_low_bits_mask): Likewise.
8266 (cst_and_fits_in_hwi): Likewise.
8267 (real_value_from_int_cst): Likewise.
8268 (make_int_cst_stat): New.
8269 (integer_zerop): Use wide_int interfaces.
8270 (integer_onep): Likewise.
8271 (integer_all_onesp): Likewise.
8272 (integer_pow2p): Likewise.
8273 (integer_nonzerop): Likewise.
8274 (tree_log2): Likewise.
8275 (tree_floor_log2): Likewise.
8276 (tree_ctz): Likewise.
8277 (int_size_in_bytes): Likewise.
8278 (mem_ref_offset): Return an offset_int rather than a double_int.
8279 (build_type_attribute_qual_variant): Use wide_int interfaces.
8280 (type_hash_eq): Likewise
8281 (tree_int_cst_equal): Likewise.
8282 (tree_int_cst_lt): Delete.
8283 (tree_int_cst_compare): Likewise.
8284 (tree_fits_shwi_p): Use wide_int interfaces.
8285 (tree_fits_uhwi_p): Likewise.
8286 (tree_int_cst_sign_bit): Likewise.
8287 (tree_int_cst_sgn): Likewise.
8288 (tree_int_cst_min_precision): Take a signop rather than a bool.
8289 (simple_cst_equal): Use wide_int interfaces.
8290 (compare_tree_int): Likewise.
8291 (iterative_hash_expr): Likewise.
8292 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
8293 INT_CST_LT.
8294 (get_type_static_bounds): Use wide_int interfaces.
8295 (tree_int_cst_elt_check_failed): New.
8296 (build_common_tree_nodes): Reordered to set prec before filling in
8297 value.
8298 (int_cst_value): Check cst_and_fits_in_hwi.
8299 (widest_int_cst_value): Use wide_int interfaces.
8300 (upper_bound_in_type): Likewise.
8301 (lower_bound_in_type): Likewise.
8302 (num_ending_zeros): Likewise.
8303 (drop_tree_overflow): Likewise.
8304 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
8305 (gen_conditions_for_pow_cst_base): Likewise.
8306 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
8307 (group_case_labels_stmt): Use wide-int interfaces.
8308 (verify_gimple_assign_binary): Likewise.
8309 (print_loop): Likewise.
8310 * tree-chrec.c (tree_fold_binomial): Likewise.
8311 * tree-core.h (struct tree_base): Add int_length.
8312 (struct tree_int_cst): Change rep of value.
8313 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
8314 (dr_may_alias_p): Likewise.
8315 (max_stmt_executions_tree): Likewise.
8316 * tree.def (INTEGER_CST): Update comment.
8317 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
8318 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
8319 * tree-dump.c: Include wide-int.h and wide-int-print.h.
8320 (dequeue_and_dump): Use wide-int interfaces.
8321 * tree.h: Include wide-int.h.
8322 (NULL_TREE): Moved to earlier loc in file.
8323 (TREE_INT_CST_ELT_CHECK): New.
8324 (tree_int_cst_elt_check_failed): New.
8325 (TYPE_SIGN): New.
8326 (TREE_INT_CST): Delete.
8327 (TREE_INT_CST_LOW): Use wide-int interfaces.
8328 (TREE_INT_CST_HIGH): Delete.
8329 (TREE_INT_CST_NUNITS): New.
8330 (TREE_INT_CST_EXT_NUNITS): Likewise.
8331 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
8332 (TREE_INT_CST_ELT): Likewise.
8333 (INT_CST_LT): Delete.
8334 (tree_int_cst_elt_check): New (two forms).
8335 (type_code_size): Update comment.
8336 (make_int_cst_stat, make_int_cst): New.
8337 (tree_to_double_int): Delete.
8338 (double_int_fits_to_tree_p): Delete.
8339 (force_fit_type_double): Delete.
8340 (build_int_cstu): Replace with out-of-line function.
8341 (build_int_cst_wide): Delete.
8342 (tree_int_cst_lt): Define inline.
8343 (tree_int_cst_le): New.
8344 (tree_int_cst_compare): Define inline.
8345 (tree_int_cst_min_precision): Take a signop rather than a bool.
8346 (wi::int_traits <const_tree>): New.
8347 (wi::int_traits <tree>): New.
8348 (wi::extended_tree): New.
8349 (wi::int_traits <wi::extended_tree>): New.
8350 (wi::to_widest): New.
8351 (wi::to_offset): New.
8352 (wi::fits_to_tree_p): New.
8353 (wi::min_value): New.
8354 (wi::max_value): New.
8355 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
8356 (copy_tree_body_r): Likewise.
8357 * tree-object-size.c (compute_object_offset): Likewise.
8358 (addr_object_size): Likewise.
8359 * tree-predcom.c: Include wide-int-print.h.
8360 (struct dref_d): Change type of offset to widest_int.
8361 (dump_dref): Call wide-int printer.
8362 (aff_combination_dr_offset): Use wide-int interfaces.
8363 (determine_offset): Take a widest_int pointer rather than a
8364 double_int pointer.
8365 (split_data_refs_to_components): Use wide-int interfaces.
8366 (suitable_component_p): Likewise.
8367 (order_drefs): Likewise.
8368 (add_ref_to_chain): Likewise.
8369 (valid_initializer_p): Likewise.
8370 (determine_roots_comp): Likewise.
8371 * tree-pretty-print.c: Include wide-int-print.h.
8372 (dump_generic_node): Use wide-int interfaces.
8373 * tree-sra.c (sra_ipa_modify_expr): Likewise.
8374 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
8375 (move_fixed_address_to_symbol): Likewise.
8376 (move_hint_to_base): Likewise.
8377 (move_pointer_to_base): Likewise.
8378 (move_variant_to_index): Likewise.
8379 (most_expensive_mult_to_index): Likewise.
8380 (addr_to_parts): Likewise.
8381 (copy_ref_info): Likewise.
8382 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
8383 (indirect_refs_may_alias_p): Likewise.
8384 (stmt_kills_ref_p_1): Likewise.
8385 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
8386 * tree-ssa-ccp.c: Update comment at top of file. Include
8387 wide-int-print.h.
8388 (struct prop_value_d): Change type of mask to widest_int.
8389 (extend_mask): New function.
8390 (dump_lattice_value): Use wide-int interfaces.
8391 (get_default_value): Likewise.
8392 (set_constant_value): Likewise.
8393 (set_value_varying): Likewise.
8394 (valid_lattice_transition): Likewise.
8395 (set_lattice_value): Likewise.
8396 (value_to_double_int): Delete.
8397 (value_to_wide_int): New.
8398 (get_value_from_alignment): Use wide-int interfaces.
8399 (get_value_for_expr): Likewise.
8400 (do_dbg_cnt): Likewise.
8401 (ccp_finalize): Likewise.
8402 (ccp_lattice_meet): Likewise.
8403 (bit_value_unop_1): Use widest_ints rather than double_ints.
8404 (bit_value_binop_1): Likewise.
8405 (bit_value_unop): Use wide-int interfaces.
8406 (bit_value_binop): Likewise.
8407 (bit_value_assume_aligned): Likewise.
8408 (evaluate_stmt): Likewise.
8409 (ccp_fold_stmt): Likewise.
8410 (visit_cond_stmt): Likewise.
8411 (ccp_visit_stmt): Likewise.
8412 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
8413 (constant_pointer_difference): Likewise.
8414 (associate_pointerplus): Likewise.
8415 (combine_conversions): Likewise.
8416 * tree-ssa-loop.h: Include wide-int.h.
8417 (struct tree_niter_desc): Change type of max to widest_int.
8418 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
8419 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
8420 (remove_redundant_iv_tests): Likewise.
8421 (canonicalize_loop_induction_variables): Likewise.
8422 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
8423 (constant_multiple_of): Take a widest_int pointer instead of
8424 a double_int pointer.
8425 (get_computation_aff): Use wide-int interfaces.
8426 (ptr_difference_cost): Likewise.
8427 (difference_cost): Likewise.
8428 (get_loop_invariant_expr_id): Likewise.
8429 (get_computation_cost_at): Likewise.
8430 (iv_elimination_compare_lt): Likewise.
8431 (may_eliminate_iv): Likewise.
8432 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
8433 instead of double_int.
8434 (max_loop_iterations): Likewise.
8435 (max_stmt_executions): Likewise.
8436 (estimated_stmt_executions): Likewise.
8437 * tree-ssa-loop-niter.c: Include wide-int-print.h.
8438 (split_to_var_and_offset): Use wide-int interfaces.
8439 (determine_value_range): Likewise.
8440 (bound_difference_of_offsetted_base): Likewise.
8441 (bounds_add): Take a widest_int instead of a double_int.
8442 (number_of_iterations_ne_max): Use wide-int interfaces.
8443 (number_of_iterations_ne): Likewise.
8444 (number_of_iterations_lt_to_ne): Likewise.
8445 (assert_loop_rolls_lt): Likewise.
8446 (number_of_iterations_lt): Likewise.
8447 (number_of_iterations_le): Likewise.
8448 (number_of_iterations_cond): Likewise.
8449 (number_of_iterations_exit): Likewise.
8450 (finite_loop_p): Likewise.
8451 (derive_constant_upper_bound_assign): Likewise.
8452 (derive_constant_upper_bound): Return a widest_int.
8453 (derive_constant_upper_bound_ops): Likewise.
8454 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
8455 (record_estimate): Take a widest_int rather than a double_int.
8456 (record_nonwrapping_iv): Use wide-int interfaces.
8457 (double_int_cmp): Delete.
8458 (wide_int_cmp): New.
8459 (bound_index): Take a widest_int rather than a double_int.
8460 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
8461 (maybe_lower_iteration_bound): Likewise.
8462 (estimate_numbers_of_iterations_loop): Likewise.
8463 (estimated_loop_iterations): Take a widest_int pointer than than
8464 a double_int pointer.
8465 (estimated_loop_iterations_int): Use wide-int interfaces.
8466 (max_loop_iterations): Take a widest_int pointer than than
8467 a double_int pointer.
8468 (max_loop_iterations_int): Use wide-int interfaces.
8469 (max_stmt_executions): Take a widest_int pointer than than
8470 a double_int pointer.
8471 (estimated_stmt_executions): Likewise.
8472 (n_of_executions_at_most): Use wide-int interfaces.
8473 (scev_probably_wraps_p): Likewise.
8474 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
8475 to real_to_integer.
8476 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
8477 interfaces.
8478 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
8479 double_ints. Adjust for trailing_wide_ints <3> representation.
8480 (set_nonzero_bits): Likewise.
8481 (get_range_info): Return wide_ints rather than double_ints.
8482 Adjust for trailing_wide_ints <3> representation.
8483 (get_nonzero_bits): Likewise.
8484 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
8485 representation.
8486 * tree-ssanames.h (struct range_info_def): Replace min, max and
8487 nonzero_bits with a trailing_wide_ints <3>.
8488 (set_range_info): Use wide_int_refs rather than double_ints.
8489 (set_nonzero_bits): Likewise.
8490 (get_range_info): Return wide_ints rather than double_ints.
8491 (get_nonzero_bits): Likewise.
8492 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
8493 * tree-ssa-pre.c (phi_translate_1): Likewise.
8494 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
8495 (acceptable_pow_call): Likewise.
8496 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
8497 interfaces.
8498 (vn_reference_fold_indirect): Likewise.
8499 (vn_reference_maybe_forwprop_address): Likewise.
8500 (valueize_refs_1): Likewise.
8501 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
8502 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
8503 tree_int_cst_lt and tree_int_cst_le.
8504 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
8505 interfaces.
8506 (streamer_alloc_tree): Likewise.
8507 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
8508 (streamer_write_tree_header): Likewise.
8509 (streamer_write_integer_cst): Likewise.
8510 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
8511 (build_constructors): Likewise.
8512 (array_value_type): Likewise.
8513 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
8514 (vect_check_gather): Likewise.
8515 * tree-vect-generic.c (build_replicated_const): Likewise.
8516 (expand_vector_divmod): Likewise.
8517 * tree-vect-loop.c (vect_transform_loop): Likewise.
8518 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
8519 (vect_do_peeling_for_alignment): Likewise.
8520 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
8521 * tree-vrp.c: Include wide-int.h.
8522 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
8523 (extract_range_from_assert): Use wide-int interfaces.
8524 (vrp_int_const_binop): Likewise.
8525 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
8526 double_int pointers.
8527 (ranges_from_anti_range): Use wide-int interfaces.
8528 (quad_int_cmp): Delete.
8529 (quad_int_pair_sort): Likewise.
8530 (extract_range_from_binary_expr_1): Use wide-int interfaces.
8531 (extract_range_from_unary_expr_1): Likewise.
8532 (adjust_range_with_scev): Likewise.
8533 (masked_increment): Take and return wide_ints rather than double_ints.
8534 (register_edge_assert_for_2): Use wide-int interfaces.
8535 (check_array_ref): Likewise.
8536 (search_for_addr_array): Likewise.
8537 (maybe_set_nonzero_bits): Likewise.
8538 (union_ranges): Pass an integer of the correct type instead of
8539 using integer_one_node.
8540 (intersect_ranges): Likewise.
8541 (simplify_truth_ops_using_ranges): Likewise.
8542 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
8543 (range_fits_type_p): Likewise.
8544 (simplify_cond_using_ranges): Likewise. Take a signop rather than
8545 a bool.
8546 (simplify_conversion_using_ranges): Use wide-int interfaces.
8547 (simplify_float_conversion_using_ranges): Likewise.
8548 (vrp_finalize): Likewise.
8549 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
8550 (gimple_stringops_transform): Likewise.
8551 * varasm.c (decode_addr_const): Likewise.
8552 (const_hash_1): Likewise.
8553 (const_rtx_hash_1): Likewise
8554 (output_constant): Likewise.
8555 (array_size_for_constructor): Likewise.
8556 (output_constructor_regular_field): Likewise.
8557 (output_constructor_bitfield): Likewise.
8558 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
8559 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
8560 GENERATOR_FILEs.
8561 * gencheck.c: Define BITS_PER_UNIT.
8562 * wide-int.cc: New.
8563 * wide-int.h: New.
8564 * wide-int-print.cc: New.
8565 * wide-int-print.h: New.
8566
3134fb19
JBG
85672014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8568
8569 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
8570
3bea341f
RB
85712014-05-06 Richard Biener <rguenther@suse.de>
8572
8573 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
8574 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
8575 (TODO_verify_all): Adjust.
8576 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
8577 TODO_verify_stmts and TODO_verify_rtl_sharing.
8578 * bb-reorder.c: Likewise.
8579 * cfgexpand.c: Likewise.
8580 * cprop.c: Likewise.
8581 * cse.c: Likewise.
8582 * function.c: Likewise.
8583 * fwprop.c: Likewise.
8584 * gcse.c: Likewise.
8585 * gimple-ssa-isolate-paths.c: Likewise.
8586 * gimple-ssa-strength-reduction.c: Likewise.
8587 * ipa-split.c: Likewise.
8588 * loop-init.c: Likewise.
8589 * loop-unroll.c: Likewise.
8590 * lower-subreg.c: Likewise.
8591 * modulo-sched.c: Likewise.
8592 * postreload-gcse.c: Likewise.
8593 * predict.c: Likewise.
8594 * recog.c: Likewise.
8595 * sched-rgn.c: Likewise.
8596 * store-motion.c: Likewise.
8597 * tracer.c: Likewise.
8598 * trans-mem.c: Likewise.
8599 * tree-call-cdce.c: Likewise.
8600 * tree-cfg.c: Likewise.
8601 * tree-cfgcleanup.c: Likewise.
8602 * tree-complex.c: Likewise.
8603 * tree-eh.c: Likewise.
8604 * tree-emutls.c: Likewise.
8605 * tree-if-conv.c: Likewise.
8606 * tree-into-ssa.c: Likewise.
8607 * tree-loop-distribution.c: Likewise.
8608 * tree-object-size.c: Likewise.
8609 * tree-parloops.c: Likewise.
8610 * tree-pass.h: Likewise.
8611 * tree-sra.c: Likewise.
8612 * tree-ssa-ccp.c: Likewise.
8613 * tree-ssa-copy.c: Likewise.
8614 * tree-ssa-copyrename.c: Likewise.
8615 * tree-ssa-dce.c: Likewise.
8616 * tree-ssa-dom.c: Likewise.
8617 * tree-ssa-dse.c: Likewise.
8618 * tree-ssa-forwprop.c: Likewise.
8619 * tree-ssa-ifcombine.c: Likewise.
8620 * tree-ssa-loop-ch.c: Likewise.
8621 * tree-ssa-loop-ivcanon.c: Likewise.
8622 * tree-ssa-loop.c: Likewise.
8623 * tree-ssa-math-opts.c: Likewise.
8624 * tree-ssa-phiopt.c: Likewise.
8625 * tree-ssa-phiprop.c: Likewise.
8626 * tree-ssa-pre.c: Likewise.
8627 * tree-ssa-reassoc.c: Likewise.
8628 * tree-ssa-sink.c: Likewise.
8629 * tree-ssa-strlen.c: Likewise.
8630 * tree-ssa-tail-merge.c: Likewise.
8631 * tree-ssa-uncprop.c: Likewise.
8632 * tree-switch-conversion.c: Likewise.
8633 * tree-tailcall.c: Likewise.
8634 * tree-vect-generic.c: Likewise.
8635 * tree-vectorizer.c: Likewise.
8636 * tree-vrp.c: Likewise.
8637 * tsan.c: Likewise.
8638 * var-tracking.c: Likewise.
8639 * bt-load.c: Likewise.
8640 * cfgcleanup.c: Likewise.
8641 * combine-stack-adj.c: Likewise.
8642 * combine.c: Likewise.
8643 * compare-elim.c: Likewise.
8644 * config/epiphany/resolve-sw-modes.c: Likewise.
8645 * config/i386/i386.c: Likewise.
8646 * config/mips/mips.c: Likewise.
8647 * config/s390/s390.c: Likewise.
8648 * config/sh/sh_treg_combine.cc: Likewise.
8649 * config/sparc/sparc.c: Likewise.
8650 * dce.c: Likewise.
8651 * dse.c: Likewise.
8652 * final.c: Likewise.
8653 * ifcvt.c: Likewise.
8654 * mode-switching.c: Likewise.
8655 * passes.c: Likewise.
8656 * postreload.c: Likewise.
8657 * ree.c: Likewise.
8658 * reg-stack.c: Likewise.
8659 * regcprop.c: Likewise.
8660 * regrename.c: Likewise.
8661 * web.c: Likewise.
8662
3d224d46
RB
86632014-05-06 Richard Biener <rguenther@suse.de>
8664
8665 PR middle-end/61070
8666 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
8667 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
8668
e400f081
JH
86692014-05-05 Jan Hubicka <hubicka@ucw.cz>
8670
8671 PR ipa/60965
8672 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
8673
aaeaa9a9 86742014-05-05 Radovan Obradovic <robradovic@mips.com>
b6db8af6 8675 Tom de Vries <tom@codesourcery.com>
aaeaa9a9 8676
b6db8af6
UB
8677 * target.def (call_fusage_contains_non_callee_clobbers): New
8678 DEFHOOKPOD.
aaeaa9a9
RO
8679 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
8680 Hooks to @menu.
8681 (@node Miscellaneous Register Hooks): New node.
8682 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
8683 * doc/tm.texi: Regenerate.
8684
c2ac23fe
MP
86852014-05-05 Marek Polacek <polacek@redhat.com>
8686
8687 PR driver/61065
8688 * opts.c (common_handle_option): Call error_at instead of warning_at.
8689
0db74577
RB
86902014-05-05 Richard Biener <rguenther@suse.de>
8691
8692 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
8693 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
8694 under the TODO_verify_il umbrella.
8695
7e7f8713
RB
86962014-05-05 Richard Biener <rguenther@suse.de>
8697
8698 * passes.c (execute_function_todo): Move TODO_verify_flow under
8699 the TODO_verify_ul umbrella.
8700
7e2c9f14
RB
87012014-05-05 Richard Biener <rguenther@suse.de>
8702
8703 PR middle-end/61010
b6db8af6
UB
8704 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
8705 X & CST away from a CST that is the mask of a mode.
7e2c9f14 8706
33ecf108
JBG
87072014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8708
8709 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
8710 int argument to enum machine_mode.
8711 (picochip_class_max_nregs): Ditto.
8712 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
8713 (picochip_class_max_nregs): Ditto.
8714
d56a43a0
AK
87152014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8716
8717 * target.def: Add new target hook.
8718 * doc/tm.texi: Regenerate.
8719 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
8720 * targhooks.c (default_keep_leaf_when_profiled): New function.
8721
8722 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
8723 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
8724
cb8f1a57
BC
87252014-05-05 Bin Cheng <bin.cheng@arm.com>
8726
8727 PR tree-optimization/60363
8728 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
8729 (copy_phi_args): New parameters. Call get_value_locus_in_path.
8730 (update_destination_phis): New parameter.
8731 (create_edge_and_update_destination_phis): Ditto.
8732 (ssa_fix_duplicate_block_edges): Pass new arguments.
8733 (thread_single_edge): Ditto.
8734
f93bc5b3
PB
87352014-05-04 Peter Bergner <bergner@vnet.ibm.com>
8736
8737 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
8738 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
8739 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
8740 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
8741 Use RS6000_BTM_HARD_FLOAT.
8742 (BU_MISC_2): Likewise.
8743 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
8744 RS6000_BTM_HARD_FLOAT.
8745 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
8746 is explicitly used.
8747 (rs6000_invalid_builtin): Add hard floating builtin support.
8748 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
8749 hard float builtins.
8750 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
8751
579f4e64
OE
87522014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
8753
8754 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
8755 Add missing function* argument.
8756
0be7287d
RS
87572014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
8758
8759 * lra-constraints.c (valid_address_p): Move earlier in file.
8760 Add a constraint argument to the address_info version.
8761 (satisfies_memory_constraint_p): New function.
8762 (satisfies_address_constraint_p): Likewise.
8763 (process_alt_operands, curr_insn_transform): Use them.
8764 (process_address): Pass the constraint to valid_address_p when
8765 checking address operands.
8766
ad782bc9
RS
87672014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
8768
8769 * config/mips/mips.c (mips_isa_rev): New variable.
8770 (mips_set_architecture): Set it.
8771 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
8772 from mips_isa_rev.
8773 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
8774 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
8775 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
8776 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
8777 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
8778 conditions in terms of mips_isa_rev.
8779 (mips_isa_rev): Declare.
8780
45731f37
OE
87812014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
8782
8783 * config/sh/sh-mem.cc: Use tabs instead of spaces.
8784 (prob_unlikely, prob_likely): Make variables const.
8785
c61dfa63
DC
87862014-05-03 Denis Chertykov <chertykov@gmail.com>
8787
8788 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
8789
1b8da635
OE
87902014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
8791
8792 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
8793
f6982a08
OE
87942014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
8795
8796 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
8797 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
8798 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
8799 functions.
8800 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
8801 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
8802 sh_pass_in_reg_p.
8803 Replace usage of ROUND_REG with sh_round_reg.
8804 Use CEIL instead of ROUND_ADVANCE.
8805
0bcf70f8
OE
88062014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
8807
8808 PR target/61026
8809 * config/sh/sh.c: Include stdlib headers before everything else.
8810
95782571
JJ
88112014-05-02 Jakub Jelinek <jakub@redhat.com>
8812
8813 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
8814 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
8815 (gimplify_adjust_omp_clauses): Simd region is never
8816 directly nested in combined parallel. Instead, for linear
8817 with copyin/copyout, if in combined for simd loop, make decl
8818 firstprivate/lastprivate on OMP_FOR.
8819 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
8820 expand_omp_for_static_chunk): When setting endvar, also set
8821 fd->loop.v to the same value.
8822
e13b3dfd
RS
88232014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
8824
8825 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
8826
0696116a
AL
88272014-05-02 Alan Lawrence <alan.lawrence@arm.com>
8828
8829 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
8830 expression.
8831
fb90f9f3
MP
88322014-05-02 Marek Polacek <polacek@redhat.com>
8833
8834 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
8835
153df826 88362014-05-02 Kito Cheng <kito@0xlab.org>
ed15c598
KC
8837
8838 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
8839 to a C expression marco.
8840 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
8841 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
8842 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
8843 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
8844 HONOR_REG_ALLOC_ORDER.
8845 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
8846
53c8d5a7
JBG
88472014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8848
8849 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
8850
486c559b
JBG
88512014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8852
8853 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
8854
944052b9
YR
88552014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
8856
8857 * tree-if-conv.c (is_cond_scalar_reduction): New function.
8858 (convert_scalar_cond_reduction): Likewise.
8859 (predicate_scalar_phi): Add recognition and transformation
8860 of simple conditioanl reduction to be vectorizable.
8861
d00887e8
MP
88622014-05-01 Marek Polacek <polacek@redhat.com>
8863
8864 PR c/43245
8865 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
8866
7211512a
AL
88672014-04-30 Alan Lawrence <alan.lawrence@arm.com>
8868
8869 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
8870 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
8871 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
8872 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
8873 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
8874 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
8875 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
8876 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
8877
e5bd20a4
JR
88782014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
8879
8880 * config/arc/arc.opt (mlra): Move comment above option name
8881 to avoid mis-parsing as language options.
8882
2cf03b11
RO
88832014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8884
8885 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
8886 * config/sol2.h: ... here.
8887 * config/sol2-10.h: Remove.
8888
8889 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
8890 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
8891 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
8892 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
8893 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
8894 * config/sol2.h: ... here.
8895 (SECTION_NAME_FORMAT): Don't redefine.
8896 (STARTFILE_ARCH32_SPEC): Rename to ...
8897 (STARTFILE_ARCH_SPEC): ... this.
8898 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
8899 * config/sparc/sol2.h: ... here.
8900 (SECTION_NAME_FORMAT): Don't undef.
8901 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
8902 (SUBTARGET_EXTRA_SPECS): Remove.
8903 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
8904
8905 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
8906 (MD_STARTFILE_PREFIX): Remove.
8907 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
8908 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
8909 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
8910 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
8911 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
8912 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
8913 * config/i386/sol2.h: ... here.
8914 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
8915 * config/i386/sol2-bi.h: Remove.
8916 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
8917 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
8918
8919 * config/i386/t-sol2-64: Rename to ...
8920 * config/i386/t-sol2: ... this.
8921 * config/sparc/t-sol2-64: Rename to ...
8922 * config/sparc/t-sol2: ... this.
8923
8924 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
8925 sol2_tm_file_head, sol2_tm_file_tail.
8926 Include ${cpu_type}/sol2.h before sol2.h.
8927 Remove sol2-10.h.
8928 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
8929 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
8930 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
8931 Reflect i386/t-sol2-64 renaming.
8932 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
8933 Reflect sparc/t-sol2-64 renaming.
8934
e9ff9caf
RB
89352014-04-30 Richard Biener <rguenther@suse.de>
8936
8937 * passes.c (execute_function_todo): Move TODO_verify_stmts
8938 and TODO_verify_ssa under the TODO_verify_il umbrella.
8939 * tree-ssa.h (verify_ssa): Adjust prototype.
8940 * tree-ssa.c (verify_ssa): Add parameter to tell whether
8941 we should verify SSA operands.
8942 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
8943 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
8944 whether we should verify whether not throwing stmts have EH info.
8945 * graphite-scop-detection.c (create_sese_edges): Adjust.
8946 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
8947 * tree-eh.c (lower_try_finally_switch): Do not add the
8948 default case label twice.
8949
f8ed5150
MP
89502014-04-30 Marek Polacek <polacek@redhat.com>
8951
8952 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
8953 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
8954 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
8955 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
8956
7cb0403f
AL
89572014-04-29 Alan Lawrence <alan.lawrence@arm.com>
8958
8959 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
8960 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
8961 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
8962 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
8963 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
8964 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
8965 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
8966 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
8967
3979649a
DM
89682014-04-29 David Malcolm <dmalcolm@redhat.com>
8969
8970 * tree-cfg.c (dump_function_to_file): Dump the return type of
8971 functions, in a line to itself before the function body, mimicking
8972 the layout of a C function.
8973
62fb101e
JJ
89742014-04-29 Jakub Jelinek <jakub@redhat.com>
8975
8976 PR tree-optimization/60971
8977 * tree-tailcall.c (process_assignment): Reject conversions which
8978 reduce precision.
8979
3d9684ae
JG
89802014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
8981
8982 * calls.c (initialize_argument_information): Always treat
8983 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
8984 (expand_call): Likewise.
8985 (emit_library_call_calue_1): Likewise.
8986 * expr.c (PUSH_ARGS_REVERSED): Do not define.
8987 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
8988 code accordingly.
8989
d77f7b19
NC
89902014-04-29 Nick Clifton <nickc@redhat.com>
8991
8992 * config/msp430/msp430.md (umulsidi): Fix typo.
8993 (mulhisi3): Enable even inside interrupt handlers.
8994 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
8995 bigger return address pushed in large mode.
8996
f8d91e80
NC
89972014-04-29 Nick Clifton <nickc@redhat.com>
8998
8999 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
9000 (arc_init_reg_tables): Use a machine_mode enum to iterate over
9001 available modes.
9002 * config/m32r/m32r.c (init_reg_tables): Likewise.
9003 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
9004 enum to hold the modes.
9005
e3f613cb
RB
90062014-04-29 Richard Biener <rguenther@suse.de>
9007
9008 * dominance.c (free_dominance_info): Add overload with
9009 function parameter.
9010 (dom_info_state): Likewise.
9011 (dom_info_available_p): Likewise.
9012 * basic-block.h (free_dominance_info, dom_info_state,
9013 dom_info_available_p): Declare overloads.
9014 * passes.c (execute_function_todo): Verify that verifiers
9015 don't change dominator info state. Drop dominator info
9016 for IPA pass invocations.
9017 * cgraph.c (release_function_body): Restore asserts that
9018 dominator information is released.
9019
36f291f7
PP
90202014-04-29 Patrick Palka <patrick@parcs.ath.cx>
9021
9022 * doc/invoke.texi: Fix typo.
9023 * tree-vrp.c: Fix typos.
b6db8af6 9024 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
36f291f7 9025
d3a3182b
ZC
90262014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9027
9028 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
9029
ba081b77
JG
90302014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
9031
9032 * config/aarch64/aarch64-builtins.c
9033 (aarch64_types_storestruct_lane_qualifiers): New.
9034 (TYPES_STORESTRUCT_LANE): Likewise.
9035 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
9036 (st3_lane): Likewise.
9037 (st4_lane): Likewise.
9038 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
9039 (vec_store_lanesci_lane<mode>): Likewise.
9040 (vec_store_lanesxi_lane<mode>): Likewise.
9041 (aarch64_st2_lane<VQ:mode>): Likewise.
9042 (aarch64_st3_lane<VQ:mode>): Likewise.
9043 (aarch64_st4_lane<VQ:mode>): Likewise.
9044 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
9045 * config/aarch64/arm_neon.h
9046 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
9047 use new macro arguments.
9048 (__ST3_LANE_FUNC): Likewise.
9049 (__ST4_LANE_FUNC): Likewise.
9050 * config/aarch64/iterators.md (V_TWO_ELEM): New.
9051 (V_THREE_ELEM): Likewise.
9052 (V_FOUR_ELEM): Likewise.
9053
1bc6d43c
DM
90542014-04-28 David Malcolm <dmalcolm@redhat.com>
9055
9056 * doc/gimple.texi: Replace the description of the now-defunct
9057 union gimple_statement_d with a diagram showing the
9058 gimple_statement_base class hierarchy and its relationships to
9059 the GSS_ and GIMPLE_ enums.
9060
97e1ad78
JG
90612014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
9062
9063 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
9064 * config/aarch64/aarch64.c
9065 (aarch64_cannot_change_mode_class): Weaken conditions.
9066 (aarch64_modes_tieable_p): New.
9067 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
9068
bf245bf4
PH
90692014-04-28 Pat Haugen <pthaugen@us.ibm.com>
9070
9071 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
9072 (loadsync_<mode>): Change mode.
9073 (load_quadpti, store_quadpti): New.
9074 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
9075 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
9076
28151221
MJ
90772014-04-28 Martin Jambor <mjambor@suse.cz>
9078
9079 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
9080 same alias type as the original statement.
9081 (subreplacement_assignment_data): New type.
9082 (handle_unscalarized_data_in_subtree): New type of parameter,
9083 generate new memory accesses with same alias type as the original
9084 statement.
9085 (load_assign_lhs_subreplacements): Likewise.
9086 (sra_modify_constructor_assign): Generate new memory accesses with
9087 same alias type as the original statement.
9088
9ba5fb43
RB
90892014-04-28 Richard Biener <rguenther@suse.de>
9090
9091 * tree-pass.h (TODO_verify_il): Define.
9092 (TODO_verify_all): Complete properly.
9093 * passes.c (execute_function_todo): Move existing loop-closed
9094 SSA verification under TODO_verify_il.
9095 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
9096 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
9097 Fix tree sharing issue.
9098
22869a37
RB
90992014-04-28 Richard Biener <rguenther@suse.de>
9100
9101 PR middle-end/60092
9102 * builtins.def (DEF_C11_BUILTIN): Add.
9103 (BUILT_IN_ALIGNED_ALLOC): Likewise.
9104 * coretypes.h (enum function_class): Add function_c11_misc.
9105 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9106 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
9107 (call_may_clobber_ref_p_1): Likewise.
9108 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
9109 (mark_all_reaching_defs_necessary_1): Likewise.
9110 (propagate_necessity): Likewise.
9111 (eliminate_unnecessary_stmts): Likewise.
9112 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
9113
771c9501
RB
91142014-04-28 Richard Biener <rguenther@suse.de>
9115
9116 * tree-vrp.c (vrp_var_may_overflow): Remove.
9117 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
9118 with overflow immediately bump to one before that value and
9119 let iteration figure out overflow status.
9120
279a935f
RB
91212014-04-28 Richard Biener <rguenther@suse.de>
9122
9123 * configure.ac: Do valgrind header checks unconditionally.
9124 Add --enable-valgrind-annotations.
9125 * system.h: Guard valgrind header inclusion with
9126 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
9127 * alloc-pool.c (pool_alloc, pool_free): Use
9128 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
9129 to guard possibly dead code.
9130 * config.in: Regenerated.
9131 * configure: Likewise.
9132
07357f2f
JL
91332014-04-28 Jeff Law <law@redhat.com>
9134
9135 PR tree-optimization/60902
9136 * tree-ssa-threadedge.c
9137 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
9138 over real defs when invalidating outputs from statements that do not
9139 produce useful outputs for threading.
9140
6c6aa8e6
RB
91412014-04-28 Richard Biener <rguenther@suse.de>
9142
9143 PR tree-optimization/60979
9144 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
9145 SCOPs that end in a block with a successor with abnormal
9146 predecessors.
9147
2cbf2d95
RB
91482014-04-28 Richard Biener <rguenther@suse.de>
9149
9150 * tree-pass.h (execute_pass_list): Adjust prototype.
b6db8af6 9151 * passes.c (pass_manager::execute_early_local_passes): Adjust.
2cbf2d95
RB
9152 (do_per_function): Change callback signature, push all actual
9153 work to the callbals.
9154 (do_per_function_toporder): Likewise.
9155 (execute_function_dump): Adjust.
9156 (execute_function_todo): Likewise.
9157 (clear_last_verified): Likewise.
9158 (verify_curr_properties): Likewise.
9159 (update_properties_after_pass): Likewise.
9160 (execute_pass_list_1): Split out from ...
9161 (execute_pass_list): ... here. Adjust.
9162 (execute_ipa_pass_list): Likewise.
9163 * cgraphunit.c (cgraph_add_new_function): Adjust.
9164 (analyze_function): Likewise.
9165 (expand_function): Likewise.
9166 * cgraph.c (release_function_body): Free dominance info
9167 here instead of asserting it was magically freed elsewhere.
9168
ba21a04a
EB
91692014-04-28 Eric Botcazou <ebotcazou@adacore.com>
9170
9171 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
9172 * configure: Regenerate.
9173 * config/sparc/sparc.opt (muser-mode): New option.
9174 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
9175 for LEON3.
9176 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
9177 * doc/invoke.texi (SPARC options): Document -muser-mode.
9178
f956adb9
RS
91792014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
9180
9181 * cselib.c (find_slot_memmode): Delete.
9182 (cselib_hasher): Change compare_type to a struct.
9183 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
9184 constants.
9185 (preserve_constants_and_equivs): Adjust for new compare_type.
9186 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
9187 (wrap_constant): Delete.
9188 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
9189
167c3e96
MT
91902014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
9191
9192 * doc/install.texi (Building with profile feedback): Remove
9193 outdated sentence.
9194
4148ef5f
TV
91952014-04-26 Tom de Vries <tom@codesourcery.com>
9196
9197 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
9198 array accesses.
9199
8d8ffd86
CC
92002014-04-25 Cary Coutant <ccoutant@google.com>
9201
b6db8af6 9202 PR debug/60929
8d8ffd86 9203 * dwarf2out.c (should_move_die_to_comdat): A type definition
b6db8af6
UB
9204 can contain a subprogram definition, but don't move it to a
9205 comdat unit.
8d8ffd86 9206 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
b6db8af6
UB
9207 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
9208 from original DIE.
8d8ffd86
CC
9209 (clone_tree_hash): Rename to...
9210 (clone_tree_partial): ...this; change callers. Copy
b6db8af6 9211 DW_TAG_subprogram DIEs as declarations.
8d8ffd86 9212 (copy_decls_walk): Don't copy children of a declaration into a
b6db8af6 9213 type unit.
8d8ffd86 9214
255671b0
L
92152014-04-25 H.J. Lu <hongjiu.lu@intel.com>
9216
9217 PR target/60969
9218 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
9219 alternative 12.
9220
10432733
JW
92212014-04-25 Jiong Wang <jiong.wang@arm.com>
9222
9223 * config/arm/predicates.md (call_insn_operand): Add long_call check.
9224 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
9225 reg for long_call.
9226 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
9227 restriction.
9228
0e4c913f
KT
92292014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9230
b6db8af6 9231 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
0e4c913f 9232
61ba7329
BS
92332014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9234
9235 PR tree-optimization/60930
9236 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
9237 creating a multiply candidate by folding two constant
9238 multiplicands when the result overflows.
9239
2b332829
JJ
92402014-04-25 Jakub Jelinek <jakub@redhat.com>
9241
9242 PR tree-optimization/60960
9243 * tree-vect-generic.c (expand_vector_operation): Only call
9244 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
9245
97891c11
TV
92462014-04-25 Tom de Vries <tom@codesourcery.com>
9247
9248 * expr.c (clobber_reg_mode): New function.
9249 * expr.h (clobber_reg): New function.
9250
3ee634fd
TV
92512014-04-25 Tom de Vries <tom@codesourcery.com>
9252
9253 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
9254 clobbers.
9255
356bf593 92562014-04-25 Radovan Obradovic <robradovic@mips.com>
b6db8af6 9257 Tom de Vries <tom@codesourcery.com>
356bf593
RO
9258
9259 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
9260 handle.
9261 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
9262 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
9263 new argument to find_all_hard_reg_sets call.
9264
fe65a7ed
KT
92652014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9266
9267 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
9268 Use HOST_WIDE_INT_C for mask literal.
9269 (aarch_rev16_shleft_mask_imm_p): Likewise.
9270
b357d40d
EB
92712014-04-25 Eric Botcazou <ebotcazou@adacore.com>
9272
9273 PR target/60941
9274 * config/sparc/sparc.md (ashlsi3_extend): Delete.
9275
30c0a59a
MG
92762014-04-25 Marc Glisse <marc.glisse@inria.fr>
9277
9278 PR preprocessor/56540
9279 * config/i386/i386-c.c (ix86_target_macros): Define
9280 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
9281
c02f59e2
RO
92822014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9283
9284 * configure.ac (tga_func): Remove.
9285 (LIB_TLS_SPEC): Remove.
9286 * configure: Regenerate.
9287 * config.in: Regenerate.
9288 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
9289
92b3326b
RB
92902014-04-25 Richard Biener <rguenther@suse.de>
9291
9292 PR ipa/60912
9293 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
9294 call stmt use/clobber sets during stmt walk instead of
9295 walking the possibly incomplete set of caller edges.
9296
78422fb1
RB
92972014-04-25 Richard Biener <rguenther@suse.de>
9298
9299 PR ipa/60911
9300 * passes.c (apply_ipa_transforms): Inline into only caller ...
9301 (execute_one_pass): ... here. Properly bring in function
9302 bodies for nodes we want to apply IPA transforms to.
9303
56f8faae
CH
93042014-04-24 Cong Hou <congh@google.com>
9305
9306 PR tree-optimization/60896
9307 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
9308 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
9309 (vect_mark_pattern_stmts): Set the def type of all statements in
9310 PATTERN_DEF_SEQ as vect_internal_def.
9311
06b39289
MM
93122014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
9313
9314 * doc/extend.texi (PowerPC Built-in Functions): Document new
b6db8af6 9315 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
06b39289
MM
9316 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
9317
9318 * config/rs6000/predicates.md (const_0_to_3_operand): New
9319 predicate to match 0..3 integer constants.
9320
9321 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
9322 to support adding miscellaneous builtin functions.
9323 (BU_DFP_MISC_2): Likewise.
9324 (BU_P7_MISC_1): Likewise.
9325 (BU_P7_MISC_2): Likewise.
9326 (BU_P8V_MISC_3): Likewise.
9327 (BU_MISC_1): Likewise.
9328 (BU_MISC_2): Likewise.
9329 (DIVWE): Add extended divide builtin functions.
9330 (DIVWEO): Likewise.
9331 (DIVWEU): Likewise.
9332 (DIVWEUO): Likewise.
9333 (DIVDE): Likewise.
9334 (DIVDEO): Likewise.
9335 (DIVDEU): Likewise.
9336 (DIVDEUO): Likewise.
9337 (DXEX): Add decimal floating-point builtin functions.
9338 (DXEXQ): Likewise.
9339 (DDEDPD): Likewise.
9340 (DDEDPDQ): Likewise.
9341 (DENBCD): Likewise.
9342 (DENBCDQ): Likewise.
9343 (DIEX): Likewise.
9344 (DIEXQ): Likewise.
9345 (DSCLI): Likewise.
9346 (DSCLIQ): Likewise.
9347 (DSCRI): Likewise.
9348 (DSCRIQ): Likewise.
9349 (CDTBCD): Add new BCD builtin functions.
9350 (CBCDTD): Likewise.
9351 (ADDG6S): Likewise.
9352 (BCDADD): Likewise.
9353 (BCDADD_LT): Likewise.
9354 (BCDADD_EQ): Likewise.
9355 (BCDADD_GT): Likewise.
9356 (BCDADD_OV): Likewise.
9357 (BCDSUB): Likewise.
9358 (BCDSUB_LT): Likewise.
9359 (BCDSUB_EQ): Likewise.
9360 (BCDSUB_GT): Likewise.
9361 (BCDSUB_OV): Likewise.
9362 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
9363 (UNPACK_TD): Likewise.
9364 (PACK_TF): Likewise.
9365 (UNPACK_TF): Likewise.
9366 (UNPACK_TF_0): Likewise.
9367 (UNPACK_TF_1): Likewise.
9368 (PACK_V1TI): Likewise.
9369 (UNPACK_V1TI): Likewise.
9370
9371 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
9372 support for decimal floating point builtin functions.
9373 (rs6000_expand_ternop_builtin): Add checks for the new builtin
9374 functions that take constant arguments.
b6db8af6 9375 (rs6000_invalid_builtin): Add decimal floating point builtin support.
06b39289
MM
9376 (rs6000_init_builtins): Setup long double, _Decimal64, and
9377 _Decimal128 types for new builtin functions.
9378 (builtin_function_type): Set the unsigned flags appropriately for
9379 the new builtin functions.
9380 (rs6000_opt_masks): Add support for decimal floating point builtin
9381 functions.
9382
9383 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
9384 floating point builtin functions.
9385 (RS6000_BTM_COMMON): Likewise.
9386 (RS6000_BTI_long_double): Likewise.
9387 (RS6000_BTI_dfloat64): Likewise.
9388 (RS6000_BTI_dfloat128): Likewise.
9389 (long_double_type_internal_node): Likewise.
9390 (dfloat64_type_internal_node): Likewise.
9391 (dfloat128_type_internal_node): Likewise.
9392
9393 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
9394 2.07 bcd arithmetic instructions.
9395 (UNSPEC_BCDSUB): Likewise.
9396 (UNSPEC_BCD_OVERFLOW): Likewise.
9397 (UNSPEC_BCD_ADD_SUB): Likewise.
9398 (bcd_add_sub): Likewise.
9399 (BCD_TEST): Likewise.
9400 (bcd<bcd_add_sub>): Likewise.
9401 (bcd<bcd_add_sub>_test): Likewise.
9402 (bcd<bcd_add_sub>_test2): Likewise.
9403 (bcd<bcd_add_sub>_<code>): Likewise.
9404 (peephole2 for combined bcd ops): Likewise.
9405
9406 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
9407 decimal floating point builtin functions.
9408 (UNSPEC_DENBCD): Likewise.
9409 (UNSPEC_DXEX): Likewise.
9410 (UNSPEC_DIEX): Likewise.
9411 (UNSPEC_DSCLI): Likewise.
9412 (UNSPEC_DSCRI): Likewise.
9413 (D64_D128): Likewise.
9414 (dfp_suffix): Likewise.
9415 (dfp_ddedpd_<mode>): Likewise.
9416 (dfp_denbcd_<mode>): Likewise.
9417 (dfp_dxex_<mode>): Likewise.
9418 (dfp_diex_<mode>): Likewise.
9419 (dfp_dscli_<mode>): Likewise.
9420 (dfp_dscri_<mode>): Likewise.
9421
9422 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
9423 builtin functions.
9424 (UNSPEC_CDTBCD): Likewise.
9425 (UNSPEC_CBCDTD): Likewise.
b6db8af6 9426 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
06b39289
MM
9427 (UNSPEC_DIVEO): Likewise.
9428 (UNSPEC_DIVEU): Likewise.
9429 (UNSPEC_DIVEUO): Likewise.
9430 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
9431 pack/unpack 128-bit types.
9432 (UNSPEC_PACK_128BIT): Likewise.
9433 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
9434 (udiv<mode>3): Use idiv_ldiv mode attribute.
9435 (div<mode>3): Likewise.
9436 (addg6s): Add new BCD builtin functions.
9437 (cdtbcd): Likewise.
9438 (cbcdtd): Likewise.
b6db8af6 9439 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
06b39289
MM
9440 (div_extend): Likewise.
9441 (div<div_extend>_<mode>"): Likewise.
9442 (FP128_64): Add support for new builtin functions to pack/unpack
9443 128-bit types.
9444 (unpack<mode>): Likewise.
9445 (unpacktf_0): Likewise.
9446 (unpacktf_1): Likewise.
9447 (unpack<mode>_dm): Likewise.
9448 (unpack<mode>_nodm): Likewise.
9449 (pack<mode>): Likewise.
9450 (unpackv1ti): Likewise.
9451 (packv1ti): Likewise.
9452
6e4f81db
V
94532014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
9454
9455 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
9456 is disabled.
9457
f7468577
JJ
94582014-04-24 Jakub Jelinek <jakub@redhat.com>
9459
9460 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
9461 * gimplify.c (omp_is_private): Change last argument's type to int.
9462 Only diagnose lastprivate if the simd argument is 1, only diagnose
9463 linear if the simd argument is 2.
9464 (gimplify_omp_for): Adjust omp_is_private callers. When adding
9465 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
9466 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
9467 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
9468 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
9469 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
9470 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
9471 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
9472 * tree-nested.c (convert_nonlocal_omp_clauses,
9473 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
9474
2f7ac5ce
JL
94752014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
9476
9477 PR target/60822
9478 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
9479 operand 1.
9480
dcaaa5a0
DP
94812014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
9482
9483 * flag-types.h (enum ivar_visibility): Add.
9484
78c7d18e
TS
94852014-04-24 Trevor Saunders <tsaunders@mozilla.com>
9486
9487 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
9488 function * argument.
9489
fbbde65e
AL
94902014-04-24 Alan Lawrence <alan.lawrence@arm.com>
9491
9492 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
9493
4f660b15 94942014-04-24 Radovan Obradovic <robradovic@mips.com>
b6db8af6 9495 Tom de Vries <tom@codesourcery.com>
4f660b15
RO
9496
9497 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
9498 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
9499 reg-note.
9500 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
9501 * emit-rtl.c (try_split): Same.
9502
d996e61a 95032014-04-24 Radovan Obradovic <robradovic@mips.com>
b6db8af6 9504 Tom de Vries <tom@codesourcery.com>
d996e61a
RO
9505
9506 * common.opt (fuse-caller-save): New option.
9507
bbcc9c00
TB
95082014-04-24 Tejas Belagod <tejas.belagod@arm.com>
9509
b6db8af6
UB
9510 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
9511 elements for big-endian.
bbcc9c00 9512
d2d11532
RB
95132014-04-24 Richard Biener <rguenther@suse.de>
9514
9515 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
9516 during TER and instead use the sepops interface for expanding
9517 non-GIMPLE_SINGLE_RHS.
9518
8117ef98
RO
95192014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9520
9521 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
9522 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
9523
ab0afae3
RO
95242014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9525
9526 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
9527 assembler 64-bit option.
9528 * configure: Regenerate.
9529
683e3333
KT
95302014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9531
9532 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
9533 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
9534 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
9535 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
9536 (TARGET_CRYPTO): Take TARGET_SIMD into account.
9537
c7f28cd5
KT
95382014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9539
9540 * config/aarch64/aarch64-builtins.c
9541 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
9542 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
9543 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
9544 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
9545 builtins.
9546 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
9547 (Vrevsuff): New mode attribute.
9548
b0419491
TG
95492014-04-24 Terry Guo <terry.guo@arm.com>
9550
9551 * config/arm/arm.h (machine_function): Define variable
9552 after_arm_reorg here.
9553 * config/arm/arm.c (after_arm_reorg): Remove the definition.
9554 (arm_split_constant): Update the way to access variable
9555 after_arm_reorg.
9556 (arm_reorg): Ditto.
9557 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
9558
74e4d71a
TV
95592014-04-23 Tom de Vries <tom@codesourcery.com>
9560
9561 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
9562
7de90a6c
DM
95632014-04-23 David Malcolm <dmalcolm@redhat.com>
9564
9565 * is-a.h: Update comments to reflect the following changes to the
9566 "pointerness" of the API, making the template parameter match the
9567 return type, allowing use of is-a.h with typedefs of pointers.
9568 (is_a_helper::cast): Return a T rather then a pointer to a T, so
9569 that the return type matches the parameter to the is_a_helper.
9570 (as_a): Likewise.
9571 (dyn_cast): Likewise.
9572
9573 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
9574 pointer from the is-a.h API.
9575
9576 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
9577 (is_a_helper <cgraph_node *>::test): ...this, matching change to
9578 is-a.h API.
9579 (is_a_helper <varpool_node>::test): Likewise, convert to...
9580 (is_a_helper <varpool_node *>::test): ...this.
9581
9582 (varpool_first_variable): Update for removal of implicit pointer
9583 from the is-a.h API.
9584 (varpool_next_variable): Likewise.
9585 (varpool_first_static_initializer): Likewise.
9586 (varpool_next_static_initializer): Likewise.
9587 (varpool_first_defined_variable): Likewise.
9588 (varpool_next_defined_variable): Likewise.
9589 (cgraph_first_defined_function): Likewise.
9590 (cgraph_next_defined_function): Likewise.
9591 (cgraph_first_function): Likewise.
9592 (cgraph_next_function): Likewise.
9593 (cgraph_first_function_with_gimple_body): Likewise.
9594 (cgraph_next_function_with_gimple_body): Likewise.
9595 (cgraph_alias_target): Likewise.
9596 (varpool_alias_target): Likewise.
9597 (cgraph_function_or_thunk_node): Likewise.
9598 (varpool_variable_node): Likewise.
9599 (symtab_real_symbol_p): Likewise.
9600 * cgraphunit.c (referred_to_p): Likewise.
9601 (analyze_functions): Likewise.
9602 (handle_alias_pairs): Likewise.
9603 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
9604 * gimple-ssa.h (gimple_vuse_op): Likewise.
9605 (gimple_vdef_op): Likewise.
9606 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
9607 * gimple.c (gimple_build_asm_1): Likewise.
9608 (gimple_build_try): Likewise.
9609 (gimple_build_resx): Likewise.
9610 (gimple_build_eh_dispatch): Likewise.
9611 (gimple_build_omp_for): Likewise.
9612 (gimple_omp_for_set_clauses): Likewise.
9613
9614 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
9615 (is_a_helper <gimple_statement_asm *>::test): ...this.
9616 (is_a_helper <gimple_statement_bind>::test): Convert to...
9617 (is_a_helper <gimple_statement_bind *>::test): ...this.
9618 (is_a_helper <gimple_statement_call>::test): Convert to...
9619 (is_a_helper <gimple_statement_call *>::test): ...this.
9620 (is_a_helper <gimple_statement_catch>::test): Convert to...
9621 (is_a_helper <gimple_statement_catch *>::test): ...this.
9622 (is_a_helper <gimple_statement_resx>::test): Convert to...
9623 (is_a_helper <gimple_statement_resx *>::test): ...this.
9624 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
9625 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
9626 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
9627 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
9628 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
9629 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
9630 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
9631 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
9632 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
9633 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
9634 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
9635 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
9636 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
9637 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
9638 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
9639 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
9640 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
9641 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
9642 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
9643 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
9644 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
9645 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
9646 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
9647 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
9648 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
9649 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
9650 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
9651 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
9652 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
9653 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
9654 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
9655 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
9656 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
9657 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
9658 (is_a_helper <gimple_statement_phi>::test): Convert to...
9659 (is_a_helper <gimple_statement_phi *>::test): ...this.
9660 (is_a_helper <gimple_statement_transaction>::test): Convert to...
9661 (is_a_helper <gimple_statement_transaction *>::test): ...this.
9662 (is_a_helper <gimple_statement_try>::test): Convert to...
9663 (is_a_helper <gimple_statement_try *>::test): ...this.
9664 (is_a_helper <gimple_statement_wce>::test): Convert to...
9665 (is_a_helper <gimple_statement_wce *>::test): ...this.
9666 (is_a_helper <const gimple_statement_asm>::test): Convert to...
9667 (is_a_helper <const gimple_statement_asm *>::test): ...this.
9668 (is_a_helper <const gimple_statement_bind>::test): Convert to...
9669 (is_a_helper <const gimple_statement_bind *>::test): ...this.
9670 (is_a_helper <const gimple_statement_call>::test): Convert to...
9671 (is_a_helper <const gimple_statement_call *>::test): ...this.
9672 (is_a_helper <const gimple_statement_catch>::test): Convert to...
9673 (is_a_helper <const gimple_statement_catch *>::test): ...this.
9674 (is_a_helper <const gimple_statement_resx>::test): Convert to...
9675 (is_a_helper <const gimple_statement_resx *>::test): ...this.
b6db8af6
UB
9676 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
9677 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
9678 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
7de90a6c
DM
9679 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
9680 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
9681 Convert to...
9682 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
9683 ...this.
9684 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
9685 Convert to...
9686 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
9687 ...this.
b6db8af6 9688 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
7de90a6c
DM
9689 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
9690 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
9691 to...
9692 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
9693 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
9694 to...
9695 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
9696 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
9697 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
b6db8af6 9698 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
7de90a6c
DM
9699 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
9700 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
9701 to...
9702 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
b6db8af6 9703 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
7de90a6c
DM
9704 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
9705 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
9706 to...
9707 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
b6db8af6 9708 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
7de90a6c 9709 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
b6db8af6 9710 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
7de90a6c 9711 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
b6db8af6 9712 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
7de90a6c
DM
9713 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
9714 (is_a_helper <const gimple_statement_phi>::test): Convert to...
9715 (is_a_helper <const gimple_statement_phi *>::test): ...this.
b6db8af6 9716 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
7de90a6c 9717 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
b6db8af6 9718 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
7de90a6c
DM
9719 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
9720 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
9721 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
b6db8af6
UB
9722 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
9723 to...
7de90a6c
DM
9724 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
9725 ...this.
b6db8af6 9726 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
7de90a6c
DM
9727 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
9728
9729 (gimple_use_ops): Update for removal of implicit pointer from the
9730 is-a.h API.
9731 (gimple_set_use_ops): Likewise.
9732 (gimple_vuse): Likewise.
9733 (gimple_vdef): Likewise.
9734 (gimple_vuse_ptr): Likewise.
9735 (gimple_vdef_ptr): Likewise.
9736 (gimple_set_vuse): Likewise.
9737 (gimple_set_vdef): Likewise.
9738 (gimple_omp_return_set_lhs): Likewise.
9739 (gimple_omp_return_lhs): Likewise.
9740 (gimple_omp_return_lhs_ptr): Likewise.
9741 (gimple_call_fntype): Likewise.
9742 (gimple_call_set_fntype): Likewise.
9743 (gimple_call_set_internal_fn): Likewise.
9744 (gimple_call_use_set): Likewise.
9745 (gimple_call_clobber_set): Likewise.
9746 (gimple_bind_vars): Likewise.
9747 (gimple_bind_set_vars): Likewise.
9748 (gimple_bind_body_ptr): Likewise.
9749 (gimple_bind_set_body): Likewise.
9750 (gimple_bind_add_stmt): Likewise.
9751 (gimple_bind_block): Likewise.
9752 (gimple_bind_set_block): Likewise.
9753 (gimple_asm_ninputs): Likewise.
9754 (gimple_asm_noutputs): Likewise.
9755 (gimple_asm_nclobbers): Likewise.
9756 (gimple_asm_nlabels): Likewise.
9757 (gimple_asm_input_op): Likewise.
9758 (gimple_asm_input_op_ptr): Likewise.
9759 (gimple_asm_output_op): Likewise.
9760 (gimple_asm_output_op_ptr): Likewise.
9761 (gimple_asm_set_output_op): Likewise.
9762 (gimple_asm_clobber_op): Likewise.
9763 (gimple_asm_set_clobber_op): Likewise.
9764 (gimple_asm_label_op): Likewise.
9765 (gimple_asm_set_label_op): Likewise.
9766 (gimple_asm_string): Likewise.
9767 (gimple_catch_types): Likewise.
9768 (gimple_catch_types_ptr): Likewise.
9769 (gimple_catch_handler_ptr): Likewise.
9770 (gimple_catch_set_types): Likewise.
9771 (gimple_catch_set_handler): Likewise.
9772 (gimple_eh_filter_types): Likewise.
9773 (gimple_eh_filter_types_ptr): Likewise.
9774 (gimple_eh_filter_failure_ptr): Likewise.
9775 (gimple_eh_filter_set_types): Likewise.
9776 (gimple_eh_filter_set_failure): Likewise.
9777 (gimple_eh_must_not_throw_fndecl): Likewise.
9778 (gimple_eh_must_not_throw_set_fndecl): Likewise.
9779 (gimple_eh_else_n_body_ptr): Likewise.
9780 (gimple_eh_else_e_body_ptr): Likewise.
9781 (gimple_eh_else_set_n_body): Likewise.
9782 (gimple_eh_else_set_e_body): Likewise.
9783 (gimple_try_eval_ptr): Likewise.
9784 (gimple_try_cleanup_ptr): Likewise.
9785 (gimple_try_set_eval): Likewise.
9786 (gimple_try_set_cleanup): Likewise.
9787 (gimple_wce_cleanup_ptr): Likewise.
9788 (gimple_wce_set_cleanup): Likewise.
9789 (gimple_phi_capacity): Likewise.
9790 (gimple_phi_num_args): Likewise.
9791 (gimple_phi_result): Likewise.
9792 (gimple_phi_result_ptr): Likewise.
9793 (gimple_phi_set_result): Likewise.
9794 (gimple_phi_arg): Likewise.
9795 (gimple_phi_set_arg): Likewise.
9796 (gimple_resx_region): Likewise.
9797 (gimple_resx_set_region): Likewise.
9798 (gimple_eh_dispatch_region): Likewise.
9799 (gimple_eh_dispatch_set_region): Likewise.
9800 (gimple_omp_critical_name): Likewise.
9801 (gimple_omp_critical_name_ptr): Likewise.
9802 (gimple_omp_critical_set_name): Likewise.
9803 (gimple_omp_for_clauses): Likewise.
9804 (gimple_omp_for_clauses_ptr): Likewise.
9805 (gimple_omp_for_set_clauses): Likewise.
9806 (gimple_omp_for_collapse): Likewise.
9807 (gimple_omp_for_index): Likewise.
9808 (gimple_omp_for_index_ptr): Likewise.
9809 (gimple_omp_for_set_index): Likewise.
9810 (gimple_omp_for_initial): Likewise.
9811 (gimple_omp_for_initial_ptr): Likewise.
9812 (gimple_omp_for_set_initial): Likewise.
9813 (gimple_omp_for_final): Likewise.
9814 (gimple_omp_for_final_ptr): Likewise.
9815 (gimple_omp_for_set_final): Likewise.
9816 (gimple_omp_for_incr): Likewise.
9817 (gimple_omp_for_incr_ptr): Likewise.
9818 (gimple_omp_for_set_incr): Likewise.
9819 (gimple_omp_for_pre_body_ptr): Likewise.
9820 (gimple_omp_for_set_pre_body): Likewise.
9821 (gimple_omp_parallel_clauses): Likewise.
9822 (gimple_omp_parallel_clauses_ptr): Likewise.
9823 (gimple_omp_parallel_set_clauses): Likewise.
9824 (gimple_omp_parallel_child_fn): Likewise.
9825 (gimple_omp_parallel_child_fn_ptr): Likewise.
9826 (gimple_omp_parallel_set_child_fn): Likewise.
9827 (gimple_omp_parallel_data_arg): Likewise.
9828 (gimple_omp_parallel_data_arg_ptr): Likewise.
9829 (gimple_omp_parallel_set_data_arg): Likewise.
9830 (gimple_omp_task_clauses): Likewise.
9831 (gimple_omp_task_clauses_ptr): Likewise.
9832 (gimple_omp_task_set_clauses): Likewise.
9833 (gimple_omp_task_child_fn): Likewise.
9834 (gimple_omp_task_child_fn_ptr): Likewise.
9835 (gimple_omp_task_set_child_fn): Likewise.
9836 (gimple_omp_task_data_arg): Likewise.
9837 (gimple_omp_task_data_arg_ptr): Likewise.
9838 (gimple_omp_task_set_data_arg): Likewise.
9839 (gimple_omp_taskreg_clauses): Likewise.
9840 (gimple_omp_taskreg_clauses_ptr): Likewise.
9841 (gimple_omp_taskreg_set_clauses): Likewise.
9842 (gimple_omp_taskreg_child_fn): Likewise.
9843 (gimple_omp_taskreg_child_fn_ptr): Likewise.
9844 (gimple_omp_taskreg_set_child_fn): Likewise.
9845 (gimple_omp_taskreg_data_arg): Likewise.
9846 (gimple_omp_taskreg_data_arg_ptr): Likewise.
9847 (gimple_omp_taskreg_set_data_arg): Likewise.
9848 (gimple_omp_task_copy_fn): Likewise.
9849 (gimple_omp_task_copy_fn_ptr): Likewise.
9850 (gimple_omp_task_set_copy_fn): Likewise.
9851 (gimple_omp_task_arg_size): Likewise.
9852 (gimple_omp_task_arg_size_ptr): Likewise.
9853 (gimple_omp_task_set_arg_size): Likewise.
9854 (gimple_omp_task_arg_align): Likewise.
9855 (gimple_omp_task_arg_align_ptr): Likewise.
9856 (gimple_omp_task_set_arg_align): Likewise.
9857 (gimple_omp_single_clauses): Likewise.
9858 (gimple_omp_single_clauses_ptr): Likewise.
9859 (gimple_omp_single_set_clauses): Likewise.
9860 (gimple_omp_target_clauses): Likewise.
9861 (gimple_omp_target_clauses_ptr): Likewise.
9862 (gimple_omp_target_set_clauses): Likewise.
9863 (gimple_omp_target_child_fn): Likewise.
9864 (gimple_omp_target_child_fn_ptr): Likewise.
9865 (gimple_omp_target_set_child_fn): Likewise.
9866 (gimple_omp_target_data_arg): Likewise.
9867 (gimple_omp_target_data_arg_ptr): Likewise.
9868 (gimple_omp_target_set_data_arg): Likewise.
9869 (gimple_omp_teams_clauses): Likewise.
9870 (gimple_omp_teams_clauses_ptr): Likewise.
9871 (gimple_omp_teams_set_clauses): Likewise.
9872 (gimple_omp_sections_clauses): Likewise.
9873 (gimple_omp_sections_clauses_ptr): Likewise.
9874 (gimple_omp_sections_set_clauses): Likewise.
9875 (gimple_omp_sections_control): Likewise.
9876 (gimple_omp_sections_control_ptr): Likewise.
9877 (gimple_omp_sections_set_control): Likewise.
9878 (gimple_omp_for_set_cond): Likewise.
9879 (gimple_omp_for_cond): Likewise.
9880 (gimple_omp_atomic_store_set_val): Likewise.
9881 (gimple_omp_atomic_store_val): Likewise.
9882 (gimple_omp_atomic_store_val_ptr): Likewise.
9883 (gimple_omp_atomic_load_set_lhs): Likewise.
9884 (gimple_omp_atomic_load_lhs): Likewise.
9885 (gimple_omp_atomic_load_lhs_ptr): Likewise.
9886 (gimple_omp_atomic_load_set_rhs): Likewise.
9887 (gimple_omp_atomic_load_rhs): Likewise.
9888 (gimple_omp_atomic_load_rhs_ptr): Likewise.
9889 (gimple_omp_continue_control_def): Likewise.
9890 (gimple_omp_continue_control_def_ptr): Likewise.
9891 (gimple_omp_continue_set_control_def): Likewise.
9892 (gimple_omp_continue_control_use): Likewise.
9893 (gimple_omp_continue_control_use_ptr): Likewise.
9894 (gimple_omp_continue_set_control_use): Likewise.
9895 (gimple_transaction_body_ptr): Likewise.
9896 (gimple_transaction_label): Likewise.
9897 (gimple_transaction_label_ptr): Likewise.
9898 (gimple_transaction_set_body): Likewise.
9899 (gimple_transaction_set_label): Likewise.
9900
9901 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
9902 * ipa-inline-analysis.c (inline_write_summary): Likewise.
9903 * ipa-ref.c (ipa_record_reference): Likewise.
9904 * ipa-reference.c (analyze_function): Likewise.
9905 (ipa_reference_write_optimization_summary): Likewise.
9906 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
9907 (address_taken_from_non_vtable_p): Likewise.
9908 (comdat_can_be_unshared_p_1): Likewise.
9909 * lto-cgraph.c (lto_output_ref): Likewise.
9910 (add_references): Likewise.
9911 (compute_ltrans_boundary): Likewise.
9912 (output_symtab): Likewise.
9913 (input_ref): Likewise.
9914 (input_cgraph_1): Likewise.
9915 (output_cgraph_opt_summary): Likewise.
9916 * lto-streamer-out.c (lto_output): Likewise.
9917 (output_symbol_p): Likewise.
9918 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
9919 (lsei_start_function_in_partition): Likewise.
9920 (lsei_next_variable_in_partition): Likewise.
9921 (lsei_start_variable_in_partition): Likewise.
9922 * symtab.c (insert_to_assembler_name_hash): Likewise.
9923 (unlink_from_assembler_name_hash): Likewise.
9924 (symtab_unregister_node): Likewise.
9925 (symtab_remove_node): Likewise.
9926 (dump_symtab_node): Likewise.
9927 (verify_symtab_base): Likewise.
9928 (verify_symtab_node): Likewise.
9929 (symtab_make_decl_local): Likewise.
9930 (symtab_alias_ultimate_target): Likewise.
9931 (symtab_resolve_alias): Likewise.
9932 (symtab_get_symbol_partitioning_class): Likewise.
9933 * tree-phinodes.c (allocate_phi_node): Likewise.
9934 (reserve_phi_args_for_new_edge): Likewise.
9935 (remove_phi_args): Likewise.
9936 * varpool.c (varpool_node_for_asm): Likewise.
9937 (varpool_remove_unreferenced_decls): Likewise.
9938
9219922e
JL
99392014-04-23 Jeff Law <law@redhat.com>
9940
9941 PR tree-optimization/60902
9942 * tree-ssa-threadedge.c
9943 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
9944 invalidate outputs from statements that do not produce useful
9945 outputs for threading.
9946
b6db8af6 99472014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
36e17020
VK
9948
9949 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
9950 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
9951 machine descriptions for Stack Smashing Protector.
9952
57b77d46
RE
99532014-04-23 Richard Earnshaw <rearnsha@arm.com>
9954
9955 * aarch64.md (<optab>_rol<mode>3): New pattern.
9956 (<optab>_rolsi3_uxtw): Likewise.
9957 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
9958
984c2f30
JG
99592014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
9960
9961 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
9962 (arm_cortex_a12_tune): Likewise.
9963
18b42b2a
KT
99642014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9965
9966 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
9967
ea1e9168
KT
99682014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9969
9970 * config/arm/arm.md (arm_rev16si2): New pattern.
9971 (arm_rev16si2_alt): Likewise.
9972 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
9973
f7d5cf8d
KT
99742014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9975
b6db8af6
UB
9976 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
9977 (rev16<mode>2_alt): Likewise.
9978 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
9979 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
9980 (aarch_rev16_shleft_mask_imm_p): Likewise.
9981 (aarch_rev16_p_1): Likewise.
9982 (aarch_rev16_p): Likewise.
9983 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
9984 (aarch_rev16_shright_mask_imm_p): Likewise.
9985 (aarch_rev16_shleft_mask_imm_p): Likewise.
f7d5cf8d 9986
9ac05ae5
KT
99872014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9988
b6db8af6
UB
9989 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
9990 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
9991 rev cost.
9992 (cortex_a53_extra_costs): Likewise.
9993 (cortex_a57_extra_costs): Likewise.
9994 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
9995 (cortexa7_extra_costs): Likewise.
9996 (cortexa8_extra_costs): Likewise.
9997 (cortexa12_extra_costs): Likewise.
9998 (cortexa15_extra_costs): Likewise.
9999 (v7m_extra_costs): Likewise.
10000 (arm_new_rtx_costs): Handle BSWAP.
9ac05ae5 10001
e0d8c86c
KT
100022013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10003
b6db8af6
UB
10004 * config/arm/arm.c (cortexa8_extra_costs): New table.
10005 (arm_cortex_a8_tune): New tuning struct.
10006 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
e0d8c86c 10007
ba9b1a63
KT
100082014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10009
b6db8af6 10010 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
ba9b1a63 10011
da4cfeac
RB
100122014-04-23 Richard Biener <rguenther@suse.de>
10013
10014 * Makefile.in (OBJS): Remove loop-unswitch.o.
da4cfeac
RB
10015 * tree-pass.h (make_pass_rtl_unswitch): Remove.
10016 * passes.def (pass_rtl_unswitch): Likewise.
10017 * loop-init.c (gate_rtl_unswitch): Likewise.
10018 (rtl_unswitch): Likewise.
10019 (pass_data_rtl_unswitch): Likewise.
10020 (pass_rtl_unswitch): Likewise.
10021 (make_pass_rtl_unswitch): Likewise.
10022 * rtl.h (reversed_condition): Likewise.
10023 (compare_and_jump_seq): Likewise.
10024 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
10025 and make static.
10026 * loop-unroll.c (compare_and_jump_seq): Likewise.
10027
22718afe
RB
100282014-04-23 Richard Biener <rguenther@suse.de>
10029
10030 PR tree-optimization/60903
10031 * tree-ssa-loop-im.c (analyze_memory_references): Remove
10032 commented code block.
10033 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
10034 loop flags to newly created BBs and edges.
10035
f7961364
NC
100362014-04-23 Nick Clifton <nickc@redhat.com>
10037
10038 * config/msp430/msp430.c (msp430_handle_option): Move function
10039 to msp430-common.c
10040 (msp430_option_override): Simplify mcu and mcpu option handling.
10041 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
10042 support for -mhwmult command line option.
10043 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
10044 -mhwmult command line option.
10045 (msp430_hwmult_enabled): Delete.
b6db8af6 10046 (msp43o_output_labelref): Add support for -mhwmult command line option.
f7961364
NC
10047 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
10048 (umulsidi3): Likewise.
10049 * config/msp430/msp430.opt (mmcu): Add Report attribute.
10050 (mcpu, mlarge, msmall): Likewise.
10051 (mhwmult): New option.
10052 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
10053 prototype.
10054 (msp430_is_f5_mcu): Remove prototype.
10055 (msp430_use_f5_series_hwmult): Add prototype.
10056 * config/msp430/msp430-opts.h: New file.
10057 * common/config/msp430: New directory.
10058 * common/config/msp430/msp430-common.c: New file.
10059 * config.gcc (msp430): Remove target_has_targetm_common.
10060 * doc/invoke.texi: Document -mhwmult command line option.
10061
f70df035
NC
100622014-04-23 Nick Clifton <nickc@redhat.com>
10063
10064 * config/i386/cygwin.h (ENDFILE_SPEC): Include
10065 default-manifest.o if it can be found in the search path.
10066 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
10067
6a9accca
TG
100682014-04-23 Terry Guo <terry.guo@arm.com>
10069
10070 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
10071
62ba699e
RB
100722014-04-23 Richard Biener <rguenther@suse.de>
10073
10074 PR middle-end/60895
10075 * tree-inline.c (declare_return_variable): Use mark_addressable.
10076
92562f88
RB
100772014-04-23 Richard Biener <rguenther@suse.de>
10078
10079 PR middle-end/60891
10080 * loop-init.c (loop_optimizer_init): Make sure to apply
10081 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
10082
1c33c9b7
JJ
100832014-04-22 Jakub Jelinek <jakub@redhat.com>
10084
10085 PR sanitizer/60275
10086 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
10087 New options.
10088 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
10089 if flag_sanitize_undefined_trap_on_error.
10090 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
10091 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
10092 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
10093 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
10094 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
10095 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
10096 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
10097 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
10098 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
10099 * ubsan.c (ubsan_instrument_unreachable): Return
10100 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
10101 (ubsan_expand_null_ifn): Emit __builtin_trap ()
10102 if flag_sanitize_undefined_trap_on_error and
10103 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
10104 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
10105 instrument_bool_enum_load): Emit __builtin_trap () if
10106 flag_sanitize_undefined_trap_on_error and
10107 __builtin_handle_*_abort () if !flag_sanitize_recover.
10108 * doc/invoke.texi (-fsanitize-recover,
10109 -fsanitize-undefined-trap-on-error): Document.
10110
5e66b2e5
CB
101112014-04-22 Christian Bruel <christian.bruel@st.com>
10112
10113 * config/sh/sh.md (mov<mode>): Replace movQIHI.
10114 Force immediates to SImode.
10115
aa221564
SL
101162014-04-22 Sandra Loosemore <sandra@codesourcery.com>
10117
10118 * config/nios2/nios2.md (UNSPEC_ROUND): New.
10119 (lroundsfsi2): New.
10120 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
10121 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
10122 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
10123 (nios2_fpu_insn): Add entry for round.
10124 (N2FPU_NO_ERRNO_P): Define.
10125 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
10126 flag_errno_math.
10127 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
10128
2195867f
RH
101292014-04-22 Richard Henderson <rth@redhat.com>
10130
10131 * config/aarch64/aarch64 (addti3, subti3): New expanders.
10132 (add<GPI>3_compare0): Remove leading * from name.
10133 (add<GPI>3_carryin): Likewise.
10134 (sub<GPI>3_compare0): Likewise.
10135 (sub<GPI>3_carryin): Likewise.
10136 (<su_optab>mulditi3): New expander.
10137 (multi3): New expander.
10138 (madd<GPI>): Remove leading * from name.
10139
c6d43074
MJ
101402014-04-22 Martin Jambor <mjambor@suse.cz>
10141
10142 * cgraphclones.c (cgraph_function_versioning): Copy
10143 ipa_transforms_to_apply instead of asserting it is empty.
10144
e54c2dd3
L
101452014-04-22 H.J. Lu <hongjiu.lu@intel.com>
10146
10147 PR target/60868
f70df035 10148 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
e54c2dd3
L
10149 on count_exp to get mode.
10150
621ad2de
AP
101512014-04-22 Andrew Pinski <apinski@cavium.com>
10152
10153 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
10154 Handle TLS for ILP32.
10155 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
10156 (tlsie_small_<mode>): this and handle PTR.
10157 (tlsie_small_sidi): New pattern.
10158 (tlsle_small): Change to an expand to handle ILP32.
10159 (tlsle_small_<mode>): New pattern.
10160 (tlsdesc_small): Rename to ...
10161 (tlsdesc_small_<mode>): this and handle PTR.
10162
5cb74e90
RR
101632014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10164
10165 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
10166
bcd48995
AV
101672014-04-22 Alex Velenko <Alex.Velenko@arm.com>
10168
10169 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
10170 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
10171 (aarch64_types_signed_poly_qualifiers): Likewise.
10172 (aarch64_types_unsigned_signed_qualifiers): Likewise.
10173 (aarch64_types_poly_signed_qualifiers): Likewise.
10174 (TYPES_REINTERP_SS): Type macro added.
10175 (TYPES_REINTERP_SU): Likewise.
10176 (TYPES_REINTERP_SP): Likewise.
10177 (TYPES_REINTERP_US): Likewise.
10178 (TYPES_REINTERP_PS): Likewise.
10179 (aarch64_fold_builtin): New expression folding added.
10180 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
10181 Declarations removed.
10182 (REINTERP_SS): Declarations added.
10183 (REINTERP_US): Likewise.
10184 (REINTERP_PS): Likewise.
10185 (REINTERP_SU): Likewise.
10186 (REINTERP_SP): Likewise.
10187 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
10188 (vreinterpretq_p8_f64): Likewise.
10189 (vreinterpret_p16_f64): Likewise.
10190 (vreinterpretq_p16_f64): Likewise.
10191 (vreinterpret_f32_f64): Likewise.
10192 (vreinterpretq_f32_f64): Likewise.
10193 (vreinterpret_f64_f32): Likewise.
10194 (vreinterpret_f64_p8): Likewise.
10195 (vreinterpret_f64_p16): Likewise.
10196 (vreinterpret_f64_s8): Likewise.
10197 (vreinterpret_f64_s16): Likewise.
10198 (vreinterpret_f64_s32): Likewise.
10199 (vreinterpret_f64_s64): Likewise.
10200 (vreinterpret_f64_u8): Likewise.
10201 (vreinterpret_f64_u16): Likewise.
10202 (vreinterpret_f64_u32): Likewise.
10203 (vreinterpret_f64_u64): Likewise.
10204 (vreinterpretq_f64_f32): Likewise.
10205 (vreinterpretq_f64_p8): Likewise.
10206 (vreinterpretq_f64_p16): Likewise.
10207 (vreinterpretq_f64_s8): Likewise.
10208 (vreinterpretq_f64_s16): Likewise.
10209 (vreinterpretq_f64_s32): Likewise.
10210 (vreinterpretq_f64_s64): Likewise.
10211 (vreinterpretq_f64_u8): Likewise.
10212 (vreinterpretq_f64_u16): Likewise.
10213 (vreinterpretq_f64_u32): Likewise.
10214 (vreinterpretq_f64_u64): Likewise.
10215 (vreinterpret_s64_f64): Likewise.
10216 (vreinterpretq_s64_f64): Likewise.
10217 (vreinterpret_u64_f64): Likewise.
10218 (vreinterpretq_u64_f64): Likewise.
10219 (vreinterpret_s8_f64): Likewise.
10220 (vreinterpretq_s8_f64): Likewise.
10221 (vreinterpret_s16_f64): Likewise.
10222 (vreinterpretq_s16_f64): Likewise.
10223 (vreinterpret_s32_f64): Likewise.
10224 (vreinterpretq_s32_f64): Likewise.
10225 (vreinterpret_u8_f64): Likewise.
10226 (vreinterpretq_u8_f64): Likewise.
10227 (vreinterpret_u16_f64): Likewise.
10228 (vreinterpretq_u16_f64): Likewise.
10229 (vreinterpret_u32_f64): Likewise.
10230 (vreinterpretq_u32_f64): Likewise.
10231
0bf3afc1
AV
102322014-04-22 Alex Velenko <Alex.Velenko@arm.com>
10233
10234 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
10235 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
10236 (vreinterpret_p8_s8): Likewise.
10237 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
10238 (vreinterpret_p8_s16): Likewise.
10239 (vreinterpret_p8_s32): Likewise.
10240 (vreinterpret_p8_s64): Likewise.
10241 (vreinterpret_p8_f32): Likewise.
10242 (vreinterpret_p8_u8): Likewise.
10243 (vreinterpret_p8_u16): Likewise.
10244 (vreinterpret_p8_u32): Likewise.
10245 (vreinterpret_p8_u64): Likewise.
10246 (vreinterpret_p8_p16): Likewise.
10247 (vreinterpretq_p8_s8): Likewise.
10248 (vreinterpretq_p8_s16): Likewise.
10249 (vreinterpretq_p8_s32): Likewise.
10250 (vreinterpretq_p8_s64): Likewise.
10251 (vreinterpretq_p8_f32): Likewise.
10252 (vreinterpretq_p8_u8): Likewise.
10253 (vreinterpretq_p8_u16): Likewise.
10254 (vreinterpretq_p8_u32): Likewise.
10255 (vreinterpretq_p8_u64): Likewise.
10256 (vreinterpretq_p8_p16): Likewise.
10257 (vreinterpret_p16_s8): Likewise.
10258 (vreinterpret_p16_s16): Likewise.
10259 (vreinterpret_p16_s32): Likewise.
10260 (vreinterpret_p16_s64): Likewise.
10261 (vreinterpret_p16_f32): Likewise.
10262 (vreinterpret_p16_u8): Likewise.
10263 (vreinterpret_p16_u16): Likewise.
10264 (vreinterpret_p16_u32): Likewise.
10265 (vreinterpret_p16_u64): Likewise.
10266 (vreinterpret_p16_p8): Likewise.
10267 (vreinterpretq_p16_s8): Likewise.
10268 (vreinterpretq_p16_s16): Likewise.
10269 (vreinterpretq_p16_s32): Likewise.
10270 (vreinterpretq_p16_s64): Likewise.
10271 (vreinterpretq_p16_f32): Likewise.
10272 (vreinterpretq_p16_u8): Likewise.
10273 (vreinterpretq_p16_u16): Likewise.
10274 (vreinterpretq_p16_u32): Likewise.
10275 (vreinterpretq_p16_u64): Likewise.
10276 (vreinterpretq_p16_p8): Likewise.
10277 (vreinterpret_f32_s8): Likewise.
10278 (vreinterpret_f32_s16): Likewise.
10279 (vreinterpret_f32_s32): Likewise.
10280 (vreinterpret_f32_s64): Likewise.
10281 (vreinterpret_f32_u8): Likewise.
10282 (vreinterpret_f32_u16): Likewise.
10283 (vreinterpret_f32_u32): Likewise.
10284 (vreinterpret_f32_u64): Likewise.
10285 (vreinterpret_f32_p8): Likewise.
10286 (vreinterpret_f32_p16): Likewise.
10287 (vreinterpretq_f32_s8): Likewise.
10288 (vreinterpretq_f32_s16): Likewise.
10289 (vreinterpretq_f32_s32): Likewise.
10290 (vreinterpretq_f32_s64): Likewise.
10291 (vreinterpretq_f32_u8): Likewise.
10292 (vreinterpretq_f32_u16): Likewise.
10293 (vreinterpretq_f32_u32): Likewise.
10294 (vreinterpretq_f32_u64): Likewise.
10295 (vreinterpretq_f32_p8): Likewise.
10296 (vreinterpretq_f32_p16): Likewise.
10297 (vreinterpret_s64_s8): Likewise.
10298 (vreinterpret_s64_s16): Likewise.
10299 (vreinterpret_s64_s32): Likewise.
10300 (vreinterpret_s64_f32): Likewise.
10301 (vreinterpret_s64_u8): Likewise.
10302 (vreinterpret_s64_u16): Likewise.
10303 (vreinterpret_s64_u32): Likewise.
10304 (vreinterpret_s64_u64): Likewise.
10305 (vreinterpret_s64_p8): Likewise.
10306 (vreinterpret_s64_p16): Likewise.
10307 (vreinterpretq_s64_s8): Likewise.
10308 (vreinterpretq_s64_s16): Likewise.
10309 (vreinterpretq_s64_s32): Likewise.
10310 (vreinterpretq_s64_f32): Likewise.
10311 (vreinterpretq_s64_u8): Likewise.
10312 (vreinterpretq_s64_u16): Likewise.
10313 (vreinterpretq_s64_u32): Likewise.
10314 (vreinterpretq_s64_u64): Likewise.
10315 (vreinterpretq_s64_p8): Likewise.
10316 (vreinterpretq_s64_p16): Likewise.
10317 (vreinterpret_u64_s8): Likewise.
10318 (vreinterpret_u64_s16): Likewise.
10319 (vreinterpret_u64_s32): Likewise.
10320 (vreinterpret_u64_s64): Likewise.
10321 (vreinterpret_u64_f32): Likewise.
10322 (vreinterpret_u64_u8): Likewise.
10323 (vreinterpret_u64_u16): Likewise.
10324 (vreinterpret_u64_u32): Likewise.
10325 (vreinterpret_u64_p8): Likewise.
10326 (vreinterpret_u64_p16): Likewise.
10327 (vreinterpretq_u64_s8): Likewise.
10328 (vreinterpretq_u64_s16): Likewise.
10329 (vreinterpretq_u64_s32): Likewise.
10330 (vreinterpretq_u64_s64): Likewise.
10331 (vreinterpretq_u64_f32): Likewise.
10332 (vreinterpretq_u64_u8): Likewise.
10333 (vreinterpretq_u64_u16): Likewise.
10334 (vreinterpretq_u64_u32): Likewise.
10335 (vreinterpretq_u64_p8): Likewise.
10336 (vreinterpretq_u64_p16): Likewise.
10337 (vreinterpret_s8_s16): Likewise.
10338 (vreinterpret_s8_s32): Likewise.
10339 (vreinterpret_s8_s64): Likewise.
10340 (vreinterpret_s8_f32): Likewise.
10341 (vreinterpret_s8_u8): Likewise.
10342 (vreinterpret_s8_u16): Likewise.
10343 (vreinterpret_s8_u32): Likewise.
10344 (vreinterpret_s8_u64): Likewise.
10345 (vreinterpret_s8_p8): Likewise.
10346 (vreinterpret_s8_p16): Likewise.
10347 (vreinterpretq_s8_s16): Likewise.
10348 (vreinterpretq_s8_s32): Likewise.
10349 (vreinterpretq_s8_s64): Likewise.
10350 (vreinterpretq_s8_f32): Likewise.
10351 (vreinterpretq_s8_u8): Likewise.
10352 (vreinterpretq_s8_u16): Likewise.
10353 (vreinterpretq_s8_u32): Likewise.
10354 (vreinterpretq_s8_u64): Likewise.
10355 (vreinterpretq_s8_p8): Likewise.
10356 (vreinterpretq_s8_p16): Likewise.
10357 (vreinterpret_s16_s8): Likewise.
10358 (vreinterpret_s16_s32): Likewise.
10359 (vreinterpret_s16_s64): Likewise.
10360 (vreinterpret_s16_f32): Likewise.
10361 (vreinterpret_s16_u8): Likewise.
10362 (vreinterpret_s16_u16): Likewise.
10363 (vreinterpret_s16_u32): Likewise.
10364 (vreinterpret_s16_u64): Likewise.
10365 (vreinterpret_s16_p8): Likewise.
10366 (vreinterpret_s16_p16): Likewise.
10367 (vreinterpretq_s16_s8): Likewise.
10368 (vreinterpretq_s16_s32): Likewise.
10369 (vreinterpretq_s16_s64): Likewise.
10370 (vreinterpretq_s16_f32): Likewise.
10371 (vreinterpretq_s16_u8): Likewise.
10372 (vreinterpretq_s16_u16): Likewise.
10373 (vreinterpretq_s16_u32): Likewise.
10374 (vreinterpretq_s16_u64): Likewise.
10375 (vreinterpretq_s16_p8): Likewise.
10376 (vreinterpretq_s16_p16): Likewise.
10377 (vreinterpret_s32_s8): Likewise.
10378 (vreinterpret_s32_s16): Likewise.
10379 (vreinterpret_s32_s64): Likewise.
10380 (vreinterpret_s32_f32): Likewise.
10381 (vreinterpret_s32_u8): Likewise.
10382 (vreinterpret_s32_u16): Likewise.
10383 (vreinterpret_s32_u32): Likewise.
10384 (vreinterpret_s32_u64): Likewise.
10385 (vreinterpret_s32_p8): Likewise.
10386 (vreinterpret_s32_p16): Likewise.
10387 (vreinterpretq_s32_s8): Likewise.
10388 (vreinterpretq_s32_s16): Likewise.
10389 (vreinterpretq_s32_s64): Likewise.
10390 (vreinterpretq_s32_f32): Likewise.
10391 (vreinterpretq_s32_u8): Likewise.
10392 (vreinterpretq_s32_u16): Likewise.
10393 (vreinterpretq_s32_u32): Likewise.
10394 (vreinterpretq_s32_u64): Likewise.
10395 (vreinterpretq_s32_p8): Likewise.
10396 (vreinterpretq_s32_p16): Likewise.
10397 (vreinterpret_u8_s8): Likewise.
10398 (vreinterpret_u8_s16): Likewise.
10399 (vreinterpret_u8_s32): Likewise.
10400 (vreinterpret_u8_s64): Likewise.
10401 (vreinterpret_u8_f32): Likewise.
10402 (vreinterpret_u8_u16): Likewise.
10403 (vreinterpret_u8_u32): Likewise.
10404 (vreinterpret_u8_u64): Likewise.
10405 (vreinterpret_u8_p8): Likewise.
10406 (vreinterpret_u8_p16): Likewise.
10407 (vreinterpretq_u8_s8): Likewise.
10408 (vreinterpretq_u8_s16): Likewise.
10409 (vreinterpretq_u8_s32): Likewise.
10410 (vreinterpretq_u8_s64): Likewise.
10411 (vreinterpretq_u8_f32): Likewise.
10412 (vreinterpretq_u8_u16): Likewise.
10413 (vreinterpretq_u8_u32): Likewise.
10414 (vreinterpretq_u8_u64): Likewise.
10415 (vreinterpretq_u8_p8): Likewise.
10416 (vreinterpretq_u8_p16): Likewise.
10417 (vreinterpret_u16_s8): Likewise.
10418 (vreinterpret_u16_s16): Likewise.
10419 (vreinterpret_u16_s32): Likewise.
10420 (vreinterpret_u16_s64): Likewise.
10421 (vreinterpret_u16_f32): Likewise.
10422 (vreinterpret_u16_u8): Likewise.
10423 (vreinterpret_u16_u32): Likewise.
10424 (vreinterpret_u16_u64): Likewise.
10425 (vreinterpret_u16_p8): Likewise.
10426 (vreinterpret_u16_p16): Likewise.
10427 (vreinterpretq_u16_s8): Likewise.
10428 (vreinterpretq_u16_s16): Likewise.
10429 (vreinterpretq_u16_s32): Likewise.
10430 (vreinterpretq_u16_s64): Likewise.
10431 (vreinterpretq_u16_f32): Likewise.
10432 (vreinterpretq_u16_u8): Likewise.
10433 (vreinterpretq_u16_u32): Likewise.
10434 (vreinterpretq_u16_u64): Likewise.
10435 (vreinterpretq_u16_p8): Likewise.
10436 (vreinterpretq_u16_p16): Likewise.
10437 (vreinterpret_u32_s8): Likewise.
10438 (vreinterpret_u32_s16): Likewise.
10439 (vreinterpret_u32_s32): Likewise.
10440 (vreinterpret_u32_s64): Likewise.
10441 (vreinterpret_u32_f32): Likewise.
10442 (vreinterpret_u32_u8): Likewise.
10443 (vreinterpret_u32_u16): Likewise.
10444 (vreinterpret_u32_u64): Likewise.
10445 (vreinterpret_u32_p8): Likewise.
10446 (vreinterpret_u32_p16): Likewise.
10447 (vreinterpretq_u32_s8): Likewise.
10448 (vreinterpretq_u32_s16): Likewise.
10449 (vreinterpretq_u32_s32): Likewise.
10450 (vreinterpretq_u32_s64): Likewise.
10451 (vreinterpretq_u32_f32): Likewise.
10452 (vreinterpretq_u32_u8): Likewise.
10453 (vreinterpretq_u32_u16): Likewise.
10454 (vreinterpretq_u32_u64): Likewise.
10455 (vreinterpretq_u32_p8): Likewise.
10456 (vreinterpretq_u32_p16): Likewise.
10457
9551c7ec
AV
104582014-04-22 Alex Velenko <Alex.Velenko@arm.com>
10459
10460 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
10461 Pattern extended.
b6db8af6 10462 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
9551c7ec
AV
10463 (sqabs): Likewise.
10464 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
10465 (vqnegd_s64): Likewise.
10466 (vqabs_s64): Likewise.
10467 (vqabsd_s64): Likewise.
10468
f2a2c4b5
RH
104692014-04-22 Richard Henderson <rth@redhat.com>
10470
10471 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
10472 computation to the top of the loop.
10473
53e5ace2
RL
104742014-04-22 Renlin <renlin.li@arm.com>
10475 Jiong Wang <jiong.wang@arm.com>
10476
10477 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
10478 * config/aarch64/aarch64.c (aarch64_layout_frame)
10479 (aarch64_initial_elimination_offset): Likewise.
10480
78c29983
MS
104812014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
10482
10483 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
10484 Fix indentation.
10485
dbf23a79
RS
104862014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
10487
10488 * machmode.h (bitwise_mode_for_mode): Declare.
10489 * stor-layout.h (bitwise_type_for_mode): Likewise.
10490 * stor-layout.c (bitwise_mode_for_mode): New function.
10491 (bitwise_type_for_mode): Likewise.
10492 * builtins.c (fold_builtin_memory_op): Use it instead of
10493 int_mode_for_mode and build_nonstandard_integer_type.
10494
d9f069ab
RO
104952014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10496
10497 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
10498 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
10499 (*-*-solaris2*): Simplify.
10500 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
10501 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
10502 *-*-solaris2.9* handling.
10503
10504 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
10505 as bug.
10506 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
10507 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
10508 handling, simplify.
10509 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
10510 * configure: Regenerate.
10511
10512 * config/i386/sol2-9.h: Remove.
10513
10514 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
10515 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
10516 Remove Solaris 9 references.
10517
0d35c5c2
VP
105182014-04-22 Vidya Praveen <vidyapraveen@arm.com>
10519
10520 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
10521 (floatuns<GPI:mode><GPF:mode>2): Remove.
10522 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
10523 and floatuns conversions.
10524 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
10525 and floatuns conversions.
10526 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
10527 (w1,w2): New mode attributes for inequal width conversions.
10528
16a3246f
RL
105292014-04-22 Renlin Li <Renlin.Li@arm.com>
10530
10531 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
10532 the output asm format.
10533
110e1ccc
JG
105342014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
10535
10536 * config/aarch64/aarch64-simd.md
10537 (aarch64_cm<optab>di): Always split.
10538 (*aarch64_cm<optab>di): New.
10539 (aarch64_cmtstdi): Always split.
10540 (*aarch64_cmtstdi): New.
10541
2044a4c3
JJ
105422014-04-22 Jakub Jelinek <jakub@redhat.com>
10543
10544 PR tree-optimization/60823
10545 * omp-low.c (ipa_simd_modify_function_body): Go through
10546 all SSA_NAMEs and for those refering to vector arguments
10547 which are going to be replaced adjust SSA_NAME_VAR and,
10548 if it is a default definition, change it into a non-default
10549 definition assigned at the beginning of function from new_decl.
10550 (ipa_simd_modify_stmt_ops): Rewritten.
10551 * tree-dfa.c (set_ssa_default_def): When removing default def,
10552 check for NULL loc instead of NULL *loc.
10553
9d8b4d1c
RR
105542014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10555
10556 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
10557 restrictions on core registers for DImode values in Thumb2.
10558
a01be1ae
IB
105592014-04-22 Ian Bolton <ian.bolton@arm.com>
10560
10561 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
10562 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
10563
80d3417b
IB
105642014-04-22 Ian Bolton <ian.bolton@arm.com>
10565
10566 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
10567 (*iordi_notzesidi_di): Likewise.
10568 (*iordi_notsesidi_di): Likewise.
10569
46fbb3eb
IB
105702014-04-22 Ian Bolton <ian.bolton@arm.com>
10571
10572 * config/arm/arm-protos.h (tune_params): New struct members.
10573 * config/arm/arm.c: Initialise tune_params per processor.
10574 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
10575 for speed, based on new tune_params.
10576
74dc11ed
AV
105772014-04-22 Alex Velenko <Alex.Velenko@arm.com>
10578
b6db8af6
UB
10579 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
10580 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
10581 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
74dc11ed
AV
10582 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
10583 * config/aarch64/arm_neon.h (vrnd_f64): Added.
10584 (vrnda_f64): Likewise.
10585 (vrndi_f64): Likewise.
10586 (vrndm_f64): Likewise.
10587 (vrndn_f64): Likewise.
10588 (vrndp_f64): Likewise.
10589 (vrndx_f64): Likewise.
10590
35923e46
ZC
105912014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10592
10593 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
10594 GET_MODE_SIZE argument is enum machine_mode.
10595
4552e70c
JJ
105962014-04-22 Jakub Jelinek <jakub@redhat.com>
10597
10598 PR target/60910
10599 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
10600 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
10601
e5dcd695
LZ
106022014-04-22 Lin Zuojian <manjian2006@gmail.com>
10603
10604 PR middle-end/60281
10605 * asan.c (asan_emit_stack_protection): Force the base to align to
10606 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
10607 appropriate bits if STRICT_ALIGNMENT.
10608 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
10609 when asan is on.
10610 (expand_used_vars): Leave a space in the stack frame for alignment
10611 if STRICT_ALIGNMENT.
10612
7455080c
DM
106132014-04-21 David Malcolm <dmalcolm@redhat.com>
10614
10615 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
10616 than a gimple.
10617 (gimple_store_p): Likewise.
10618 (gimple_assign_load_p): Likewise.
10619 (gimple_assign_cast_p): Likewise.
10620 (gimple_clobber_p): Likewise.
10621
10622 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
10623 rather than a gimple.
10624 (gimple_assign_cast_p): Likewise.
10625
aeb9579a
MM
106262014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10627
10628 PR target/60735
10629 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
10630 If mode is DDmode and TARGET_E500_DOUBLE allow move.
10631
10632 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
10633 more debug information for E500 if -mdebug=reg.
10634
b15d92bf
UB
106352014-04-21 Uros Bizjak <ubizjak@gmail.com>
10636
10637 PR target/60909
10638 * config/i386/i386.c (ix86_expand_builtin)
10639 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
10640 register for target RTX.
10641 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
10642
d367387c
CH
106432014-04-18 Cong Hou <congh@google.com>
10644
10645 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
b15d92bf
UB
10646 the widen-mult pattern by handling two operands with different sizes,
10647 and operands whose size is smaller than half of the result type.
d367387c 10648
b6d627e4
JH
106492014-04-18 Jan Hubicka <hubicka@ucw.cz>
10650
10651 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
10652 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
10653 (do_estimate_edge_time): Compute it.
10654 * ipa-inline.c (want_inline_small_function_p): Bypass
b15d92bf 10655 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
b6d627e4 10656
e86a910f
JH
106572014-04-18 Jan Hubicka <hubicka@ucw.cz>
10658
10659 * ipa-inline.c (spec_rem): New static variable.
10660 (dump_overall_stats): New function.
10661 (dump_inline_stats): New function.
10662
8a3a7e67
RH
106632014-04-18 Richard Henderson <rth@redhat.com>
10664
10665 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
10666 to GET_MODE_SIZE, not a reg_class_t.
10667
ed79f4d0
BS
106682014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10669
b15d92bf 10670 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
ed79f4d0
BS
10671 (vsx_xxmrglw_<mode>): Likewise.
10672
fe799eea
MM
106732014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
10674
10675 PR target/60876
10676 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
b15d92bf 10677 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
fe799eea
MM
10678 (rs6000_init_hard_regno_mode_ok): Likewise.
10679
5e750dc6
JH
106802014-04-17 Jan Hubicka <hubicka@ucw.cz>
10681
10682 * ipa-inline.c (inline_small_functions): Account only non-cold
10683 functions.
10684 * doc/invoke.texi (inline-unit-growth): Update documentation.
10685
32337f10
PH
106862014-04-17 Pat Haugen <pthaugen@us.ibm.com>
10687
10688 * config/rs6000/rs6000.md (addti3, subti3): New.
10689
40ed344a
L
106902014-04-17 H.J. Lu <hongjiu.lu@intel.com>
10691
10692 PR target/60863
10693 * config/i386/i386.c (ix86_expand_clear): Remove outdated
10694 comment. Check optimize_insn_for_size_p instead of
10695 optimize_insn_for_speed_p.
10696
104cb50b
MJ
106972014-04-17 Martin Jambor <mjambor@suse.cz>
10698
10699 * gimple-iterator.c (gsi_start_edge): New function.
10700 * gimple-iterator.h (gsi_start_edge): Declare.
10701 * tree-sra.c (single_non_eh_succ): New function.
10702 (disqualify_ops_if_throwing_stmt): Renamed to
10703 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
10704 having one non-EH successor BB.
10705 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
10706 generate loads into replacements.
10707 (sra_modify_assign): Likewise and and also use the simple path for
10708 such statements.
10709 (sra_modify_function_body): Commit statements on edges.
10710
b94970bc
RB
107112014-04-17 Richard Biener <rguenther@suse.de>
10712
10713 PR middle-end/60849
10714 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
10715 comparison results and add clarifying comment.
10716
92f0f3ec
JJ
107172014-04-17 Jakub Jelinek <jakub@redhat.com>
10718
10719 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
10720 (blank_mode): Initialize it.
10721 (emit_mode_size_inline, emit_mode_nunits_inline,
10722 emit_mode_inner_inline): New functions.
10723 (emit_insn_modes_h): Call them and surround their output with
10724 #if GCC_VERSION >= 4001 ... #endif.
10725 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
10726 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
10727 mode_* arrays if the argument is __builtin_constant_p.
10728 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
10729 is enum machine_mode.
10730
be55bfe6
TS
107312014-04-17 Trevor Saunders <tsaunders@mozilla.com>
10732
10733 * passes.c (opt_pass::execute): Adjust.
10734 (pass_manager::execute_pass_mode_switching): Likewise.
10735 (early_local_passes::execute): Likewise.
10736 (execute_one_pass): Pass cfun to the pass's execute method.
10737 * tree-pass.h (opt_pass::execute): Add function * argument.
10738 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
10739 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
10740 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
10741 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
10742 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
10743 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
10744 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
10745 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
10746 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
10747 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
10748 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
10749 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
10750 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
10751 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
10752 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
10753 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
10754 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
10755 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
10756 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
10757 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
10758 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
10759 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
10760 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
10761 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
10762 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
10763 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
10764 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
10765 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
10766 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
10767 Adjust.
10768
1a3d085c
TS
107692014-04-17 Trevor Saunders <tsaunders@mozilla.com>
10770
10771 * passes.c (opt_pass::gate): Take function * argument.
10772 (gate_all_early_local_passes): Merge into
10773 (early_local_passes::gate): this.
10774 (gate_all_early_optimizations): Merge into
10775 (all_early_optimizations::gate): this.
10776 (gate_all_optimizations): Mege into
10777 (all_optimizations::gate): this.
10778 (gate_all_optimizations_g): Merge into
10779 (all_optimizations_g::gate): this.
10780 (gate_rest_of_compilation): Mege into
10781 (rest_of_compilation::gate): this.
10782 (gate_postreload): Merge into
10783 (postreload::gate): this.
10784 (dump_one_pass): Pass cfun to the pass's gate method.
10785 (execute_ipa_summary_passes): Likewise.
10786 (execute_one_pass): Likewise.
10787 (ipa_write_summaries_2): Likewise.
10788 (ipa_write_optimization_summaries_1): Likewise.
10789 (ipa_read_summaries_1): Likewise.
10790 (ipa_read_optimization_summaries_1): Likewise.
10791 (execute_ipa_stmt_fixups): Likewise.
10792 * tree-pass.h (opt_pass::gate): Add function * argument.
10793 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
10794 combine-stack-adj.c, combine.c, compare-elim.c,
10795 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
10796 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
10797 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
10798 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
10799 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
10800 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
10801 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
10802 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
10803 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
10804 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
10805 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
10806 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
10807 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
10808 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
10809 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
10810 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
10811 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
10812 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
10813 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
10814 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
10815 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
10816 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
10817 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
10818 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
10819 var-tracking.c, vtable-verify.c, web.c: Adjust.
10820
45887209
TS
108212014-04-17 Trevor Saunders <tsaunders@mozilla.com>
10822
10823 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
10824 * configure: Regenerate.
10825
0481253d 108262014-04-17 Trevor Saunders <tsaunders@mozilla.com>
b15d92bf 10827
0481253d
TS
10828 * passes.c (dump_one_pass): don't check pass->has_gate.
10829 (execute_ipa_summary_passes): Likewise.
10830 (execute_one_pass): Likewise.
10831 (ipa_write_summaries_2): Likewise.
10832 (ipa_write_optimization_summaries_1): Likewise.
10833 (ipa_read_optimization_summaries_1): Likewise.
10834 (execute_ipa_stmt_fixups): Likewise.
10835 * tree-pass.h (pass_data::has_gate): Remove.
10836 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
10837 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
10838 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
10839 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
10840 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
10841 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
10842 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
10843 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
10844 gimple-low.c, gimple-ssa-isolate-paths.c,
10845 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
10846 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
10847 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
10848 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
10849 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
10850 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
10851 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
10852 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
10853 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
10854 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
10855 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
10856 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
10857 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
10858 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
10859 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
10860 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
10861 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
10862 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
10863 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
10864 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
10865 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
10866 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
10867 Adjust.
10868
a23c217d
TS
108692014-04-17 Trevor Saunders <tsaunders@mozilla.com>
10870
b15d92bf
UB
10871 * pass_manager.h (pass_manager::register_dump_files_1): Remove
10872 declaration.
a23c217d
TS
10873 * passes.c (pass_manager::register_dump_files_1): Merge into
10874 (pass_manager::register_dump_files): this, and remove its handling of
10875 properties since the pass always has the properties anyway.
10876 (pass_manager::pass_manager): Adjust.
10877
0cd11b40
TS
108782014-04-17 Trevor Saunders <tsaunders@mozilla.com>
10879
10880 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
10881 * passes.c (pass_manager::register_dump_files_1): Remove dead code
10882 dealing with properties.
10883 (pass_manager::register_dump_files): Adjust.
10884
79896351
MW
108852014-03-20 Mark Wielaard <mjw@redhat.com>
10886
10887 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
10888 then represent the bound as normal constant value.
10889
5a65129e
JJ
108902014-04-17 Jakub Jelinek <jakub@redhat.com>
10891
10892 PR target/60847
10893 Forward port from 4.8 branch
10894 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
10895
10896 * config/i386/bmiintrin.h (_blsi_u32): New.
10897 (_blsi_u64): Ditto.
10898 (_blsr_u32): Ditto.
10899 (_blsr_u64): Ditto.
10900 (_blsmsk_u32): Ditto.
10901 (_blsmsk_u64): Ditto.
10902 (_tzcnt_u32): Ditto.
10903 (_tzcnt_u64): Ditto.
10904
59b266b1
KC
109052014-04-17 Kito Cheng <kito@0xlab.org>
10906
10907 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
10908
83ad208e
RB
109092014-04-17 Richard Biener <rguenther@suse.de>
10910
10911 PR middle-end/60849
10912 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
10913 boolean results for comparisons.
10914
730e78b0
RB
109152014-04-17 Richard Biener <rguenther@suse.de>
10916
10917 PR tree-optimization/60836
10918 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
10919 initial PHI args to be gimple values.
10920
40c0a159 109212014-04-17 Richard Biener <rguenther@suse.de>
1428105c
RB
10922
10923 PR tree-optimization/60841
10924 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
10925 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
10926 of stmts to SLP build.
10927 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
10928 (vect_analyze_slp): Likewise.
10929 (vect_analyze_slp_instance): Likewise.
10930 (vect_build_slp_tree): Limit overall SLP tree growth.
10931 * tree-vectorizer.h (vect_analyze_data_refs,
10932 vect_analyze_slp): Adjust prototypes.
10933
170c1776
ES
109342014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
10935
10936 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
10937 Silvermont.
10938
a4ef7f3e
ES
109392014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
10940
10941 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
10942 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
10943 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
10944 for TARGET_SLOW_PSHUFB
10945
cf055f6e
ES
109462014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
10947
10948 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
10949 * config/i386/i386.c (intel_cost): Ditto.
10950
eeee2277
JY
109512014-04-17 Joey Ye <joey.ye@arm.com>
10952
10953 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
10954
1c58fe29
JH
109552014-04-16 Jan Hubicka <hubicka@ucw.cz>
10956
10957 * opts.c (common_handle_option): Disable -fipa-reference coorectly
10958 with -fuse-profile.
10959
2d1644bf
JH
109602014-04-16 Jan Hubicka <hubicka@ucw.cz>
10961
10962 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
10963 (type_all_derivations_known_p): New predicate.
10964 (type_all_ctors_visible_p): New predicate.
10965 (type_possibly_instantiated_p): New predicate.
10966 (get_odr_type): Compute all_derivations_known.
10967 (dump_odr_type): Dump the flag.
10968 (maybe_record_type): Cleanup.
10969 (record_target_from_binfo): Add bases_to_consider array;
10970 record bases for types w/o instances and skip CXX destructor.
10971 (possible_polymorphic_call_targets_1): Add bases_to_consider
b15d92bf 10972 and consider_construction parameters; check if type may have instance.
2d1644bf
JH
10973 (get_polymorphic_call_info): Set maybe_in_construction to true
10974 when we know nothing.
10975 (record_targets_from_bases): Skip CXX destructors; they are
10976 never called for types in construction.
10977 (possible_polymorphic_call_targets): Do not record target when
10978 type may not have instance.
10979
789c2741
JH
109802014-04-16 Jan Hubicka <hubicka@ucw.cz>
10981
10982 PR ipa/60854
10983 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
10984 external aliases alive, too.
10985
9950a4f2
AP
109862014-04-16 Andrew Pinski <apinski@cavium.com>
10987
10988 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
b15d92bf 10989 definition.
9950a4f2 10990
82b9c015
EB
109912014-04-16 Eric Botcazou <ebotcazou@adacore.com>
10992
10993 * final.c (compute_alignments): Do not apply loop alignment to a block
10994 falling through to the exit.
10995
d2dfaca3
CM
109962014-04-16 Catherine Moore <clm@codesourcery.com>
10997
10998 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
10999 Adjust constraints for microMIPS store patterns.
11000
10353a79
PS
110012014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
11002
11003 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
11004
61c7fb30
EB
110052014-04-16 Eric Botcazou <ebotcazou@adacore.com>
11006
11007 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
11008 (append_use): Run at -O0.
11009 (append_vdef): Likewise.
11010 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
11011 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
11012
42fae17c
JJ
110132014-04-16 Jakub Jelinek <jakub@redhat.com>
11014
11015 PR tree-optimization/60844
11016 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
11017 (propagate_op_to_single_use, remove_visited_stmt_chain,
11018 linearize_expr, repropagate_negates, reassociate_bb): Use it
11019 instead of gsi_remove.
11020
ca860d03
MJ
110212014-04-16 Martin Jambor <mjambor@suse.cz>
11022
11023 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
11024 ipa_transforms_to_apply.
11025 (cgraph_function_versioning): Assert that old_node has empty
11026 ipa_transforms_to_apply.
11027 * trans-mem.c (ipa_tm_create_version): Likewise.
11028 * tree-inline.c (tree_function_versioning): Do not duplicate
11029 ipa_transforms_to_apply.
11030
fe4e71e4
RO
110312014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11032
11033 PR target/60817
11034 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
11035 x86_64-*-* cases.
11036 Pass necessary as flags on 64-bit Solaris/x86.
11037 Use lowercase relocs for x86_64-*-*.
11038 * configure: Regenerate.
11039
ccb05ef2
JH
110402014-04-15 Jan Hubicka <jh@suse.cz>
11041
11042 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
11043 (maybe_record_node, likely_target_p): Use it.
11044
dfe449d1
BS
110452014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11046
11047 PR target/60839
11048 Revert following patch
11049
11050 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11051
11052 PR target/60735
11053 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
11054 software floating point or no floating point registers, do not
11055 allow any type in the FPRs. Eliminate a test for SPE SIMD types
11056 in GPRs that occurs after we tested for GPRs that would never be
11057 true.
11058
11059 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
11060 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
11061 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
11062 specifically allow DDmode, since that does not use the SPE SIMD
11063 instructions.
11064
25dce5c6
MW
110652014-03-21 Mark Wielaard <mjw@redhat.com>
11066
11067 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
11068 as unsigned or int depending on type and value used.
11069
8d3c076f
RB
110702014-04-15 Richard Biener <rguenther@suse.de>
11071
11072 PR rtl-optimization/56965
11073 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
11074 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
11075 ... here.
11076 * alias.c (true_dependence_1): Do not call
11077 nonoverlapping_component_refs_p.
11078 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
11079 nonoverlapping_component_refs_p.
11080 (indirect_refs_may_alias_p): Likewise.
11081
d00e4baa
TJ
110822014-04-15 Teresa Johnson <tejohnson@google.com>
11083
11084 * cfg.c (dump_bb_info): Fix flags check.
11085 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
11086
98a2fdfb
KT
110872014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11088
11089 PR rtl-optimization/60663
11090 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
11091 avoid 0 cost.
11092
b9ed2c2c
RB
110932014-04-15 Richard Biener <rguenther@suse.de>
11094
11095 * lto-streamer.h (LTO_major_version): Bump to 4.
11096
783dab6b
RB
110972014-04-15 Richard Biener <rguenther@suse.de>
11098
11099 * common.opt (lto_partition_model): New enum.
11100 (flto-partition=): Merge separate options with a single with argument,
11101 add -flto-partition=one support.
11102 * flag-types.h (enum lto_partition_model): Declare.
11103 * opts.c (finish_options): Remove duplicate -flto-partition=
11104 option check.
11105 * lto-wrapper.c (run_gcc): Adjust.
11106
d8e4ce6d
RB
111072014-04-15 Richard Biener <rguenther@suse.de>
11108
11109 * alias.c (ncr_compar): New function.
11110 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
11111
1999fd7d
RB
111122014-04-15 Richard Biener <rguenther@suse.de>
11113
11114 * alias.c (record_component_aliases): Do not walk BINFOs.
11115
628169e0
RB
111162014-04-15 Richard Biener <rguenther@suse.de>
11117
11118 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11119 Add struct function argument and adjust.
11120 (find_func_aliases_for_call): Likewise.
11121 (find_func_aliases): Likewise.
11122 (find_func_clobbers): Likewise.
11123 (intra_create_variable_infos): Likewise.
11124 (compute_points_to_sets): Likewise.
11125 (ipa_pta_execute): Adjust. Do not push/pop cfun.
11126
349e6210
RB
111272014-04-15 Richard Biener <rguenther@suse.de>
11128
11129 * tree.c (iterative_hash_expr): Use enum tree_code_class
11130 to store TREE_CODE_CLASS.
11131 (tree_block): Likewise.
11132 (tree_set_block): Likewise.
11133 * tree.h (fold_build_pointer_plus_loc): Use
11134 convert_to_ptrofftype_loc.
11135
4f0ddb6f
JJ
111362014-04-15 Jakub Jelinek <jakub@redhat.com>
11137
11138 PR plugins/59335
11139 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
11140 added in 4.9.
11141
718c4601
EB
111422014-04-15 Eric Botcazou <ebotcazou@adacore.com>
11143
11144 * cfgloop.h (struct loop): Move force_vectorize down.
11145 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
11146 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
11147 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
11148 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
11149 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
11150 * tree-core.h (enum annot_expr_kind): Add new kind values.
11151 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
11152 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
11153 kinds.
11154 * tree.def (ANNOTATE_EXPR): Tweak comment.
11155
88f592e3
JH
111562014-04-14 Jan Hubicka <hubicka@ucw.cz>
11157
11158 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
11159 cxa_pure_virtual).
11160
9dba4b55
PC
111612014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
11162
11163 * tree.h (TYPE_IDENTIFIER): Declare.
11164 * tree.c (subrange_type_for_debug_p): Use it.
11165 * godump.c (go_format_type): Likewise.
11166 * dwarf2out.c (is_cxx_auto, modified_type_die,
11167 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
11168 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
11169
40c0a159 111702014-04-14 Jan Hubicka <hubicka@ucw.cz>
006202e8
JH
11171
11172 PR lto/60820
11173 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
11174
e0a81db1
UB
111752014-04-14 Uros Bizjak <ubizjak@gmail.com>
11176
11177 * config/i386/i386.c (examine_argument): Return bool. Return true if
11178 parameter should be passed in memory.
11179 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
11180 (construct_container): Update calls to examine_argument.
11181 (function_arg_advance_64): Ditto.
11182 (return_in_memory_32): Merge with ix86_return_in_memory.
11183 (return_in_memory_64): Ditto.
11184 (return_in_memory_ms_64): Ditto.
11185
cb90235d
JH
111862014-04-14 Jan Hubicka <hubicka@ucw.cz>
11187
11188 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
11189 * coverage.c (coverage_compute_profile_id): Handle externally visible
11190 symbols.
11191
7b3b340e
MJ
111922014-04-14 Martin Jambor <mjambor@suse.cz>
11193
11194 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
11195 DECL_DISREGARD_INLINE_LIMITS functions.
11196
2ed3b4ee
L
111972014-04-14 H.J. Lu <hongjiu.lu@intel.com>
11198
11199 PR target/60827
e0a81db1 11200 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
2ed3b4ee 11201
10fa463f
L
112022014-04-14 H.J. Lu <hongjiu.lu@intel.com>
11203
11204 PR target/60827
11205 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
11206 optimize_insn_for_speed_p instead of
11207 optimize_function_for_speed_p.
11208
b621e875
YZ
112092014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
11210
11211 * doc/invoke.texi (free): Document AArch64.
11212
cddaefa3
RB
112132014-04-14 Richard Biener <rguenther@suse.de>
11214
11215 PR tree-optimization/60042
11216 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
11217 (insert_into_preds_of_block): Do not prevent PHI insertion
11218 for REFERENCE exprs here ...
11219 (eliminate_dom_walker::before_dom_children): ... but prevent
11220 their use here under similar conditions when applied to the
11221 IL after PRE optimizations.
11222
a9e4c82f
RB
112232014-04-14 Richard Biener <rguenther@suse.de>
11224
11225 * passes.def: Move early points-to after early SRA.
11226
7b4cae1b
RB
112272014-04-14 Richard Biener <rguenther@suse.de>
11228
11229 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
11230 check for which sign-changes we allow when forwarding
11231 a converted value into a switch.
11232
cb27986c
EB
112332014-04-14 Eric Botcazou <ebotcazou@adacore.com>
11234
11235 * stor-layout.c (place_field): Finalize non-constant offset for the
11236 field, if any.
11237
72798784
RB
112382014-04-14 Richard Biener <rguenther@suse.de>
11239
11240 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
11241 as argument.
11242 (expand_switch_using_bit_tests_p): Likewise.
11243 (process_switch): Compute and pass on speed_p based on the
11244 switch stmt.
11245 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
11246 optimize_bb_for_speed_p.
11247
b15b5979
EB
112482014-04-14 Eric Botcazou <ebotcazou@adacore.com>
11249
11250 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
11251 * function.h (struct function): Rename has_force_vect_loops into
11252 has_force_vectorize_loops.
11253 * lto-streamer-in.c (input_cfg): Adjust for renaming.
11254 (input_struct_function_base): Likewise.
11255 * lto-streamer-out.c (output_cfg): Likewise.
11256 (output_struct_function_base): Likewise.
11257 * omp-low.c (expand_omp_simd): Likewise.
11258 * tree-cfg.c (move_sese_region_to_fn): Likewise.
11259 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
11260 (version_loop_for_if_conversion): Likewise.
11261 (tree_if_conversion): Likewise.
11262 (main_tree_if_conversion): Likewise.
11263 (gate_tree_if_conversion): Likewise.
11264 * tree-inline.c (copy_loops): Likewise.
11265 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
11266 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
11267 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
11268 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
11269 * tree-vectorizer.c (vectorize_loops): Likewise.
11270 * tree-vectorizer.h (unlimited_cost_model): Likewise.
11271
8359c87e
RB
112722014-04-14 Richard Biener <rguenther@suse.de>
11273
11274 PR lto/60720
11275 * lto-streamer-out.c (wrap_refs): New function.
11276 (lto_output): Wrap symbol references in global initializes in
11277 type-preserving MEM_REFs.
11278
9447df74
CB
112792014-04-14 Christian Bruel <christian.bruel@st.com>
11280
b15d92bf 11281 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
9447df74 11282
fa1aecc1
CB
112832014-04-14 Christian Bruel <christian.bruel@st.com>
11284
11285 * config/sh/sh.md (setmemqi): New expand pattern.
11286 * config/sh/sh.h (CLEAR_RATIO): Define.
11287 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
11288 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
11289
a3c77ce9
RB
112902014-04-14 Richard Biener <rguenther@suse.de>
11291
11292 PR middle-end/55022
11293 * fold-const.c (negate_expr_p): Don't negate directional rounding
11294 division.
11295 (fold_negate_expr): Likewise.
11296
033aa406
RB
112972014-04-14 Richard Biener <rguenther@suse.de>
11298
11299 PR tree-optimization/59817
11300 PR tree-optimization/60453
11301 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
11302 recursion to catch all CHRECs in the scalar evolution and restrict
11303 the predicate for the remains appropriately.
11304
5e7d8b4c
RS
113052014-04-12 Catherine Moore <clm@codesourcery.com>
11306
11307 * config/mips/constraints.md: Add new register constraint "kb".
11308 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
11309 (*movhi_internal): Likewise.
11310 (*movqi_internal): Likewise.
11311 * config/mips/mips.h (M16_STORE_REGS): New register class.
11312 (REG_CLASS_NAMES): Add M16_STORE_REGS.
11313 (REG_CLASS_CONTENTS): Likewise.
11314 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
11315
cbbd2b1c
TB
113162014-04-11 Tobias Burnus <burnus@net-b.de>
11317
11318 PR c/60194
11319 * doc/invoke.texi (-Wformat-signedness): Document it.
11320 (Wformat=2): Mention that this enables -Wformat-signedness.
11321
d9bb5800
JR
113222014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
11323
11324 * common/config/epiphany/epiphany-common.c
11325 (epiphany_option_optimization_table): Enable section anchors by
11326 default at -O1 or higher.
11327 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
11328 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
11329 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
11330 carries no extra cost.
11331 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
11332 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
11333 * config/epiphany/predicates.md (memclob_operand): New predicate.
11334 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
11335 Use memclob_operand predicate and X constraint for operand 3.
11336
b5d0ecea
JR
113372014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
11338
11339 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
11340 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
11341 its operands.
11342
473fd99a
JR
113432014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
11344
11345 PR rtl-optimization/60651
11346 * mode-switching.c (optimize_mode_switching): Make sure to emit
11347 sets of a lower numbered entity before sets of a higher numbered
11348 entity to a mode of the same or lower priority.
11349 When creating a seginfo for a basic block that starts with a code
11350 label, move the insertion point past the code label.
11351 (new_seginfo): Document and enforce requirement that
11352 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
11353 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
11354 * doc/tm.texi: Regenerate.
11355
6ace1161
JR
113562014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
11357
11358 PR target/60811
11359 * config/arc/arc.c (arc_save_restore): Fix assert typo.
11360
89eb97de
JJ
113612013-04-11 Jakub Jelinek <jakub@redhat.com>
11362
6602e7fc 11363 * BASE-VER: Set to 4.10.0.
89eb97de 11364
9d0c7214
TB
113652014-04-11 Tobias Burnus <burnus@net-b.de>
11366
11367 PR other/59055
e0a81db1 11368 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
9d0c7214
TB
11369 * doc/gcc.texi (Service): Update description in the @menu
11370 * doc/invoke.texi (Option Summary): Remove misplaced and
11371 duplicated @menu.
11372
3662b277
SE
113732014-04-11 Steve Ellcey <sellcey@mips.com>
11374 Jakub Jelinek <jakub@redhat.com>
11375
11376 PR middle-end/60556
11377 * expr.c (convert_move): Use emit_store_flag_force instead of
11378 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
11379 argument to it.
11380
8330537b
RB
113812014-04-11 Richard Biener <rguenther@suse.de>
11382
11383 PR middle-end/60797
11384 * varasm.c (assemble_alias): Avoid endless error reporting
11385 recursion by setting TREE_ASM_WRITTEN.
11386
3c91f126
AK
113872014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11388
11389 * config/s390/s390.md: Add a splitter for NOT rtx.
11390
d8d6ea53
JJ
113912014-04-11 Jakub Jelinek <jakub@redhat.com>
11392
11393 PR rtl-optimization/60663
e0a81db1 11394 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
d8d6ea53 11395
fa5866c0
JJ
113962014-04-10 Jan Hubicka <hubicka@ucw.cz>
11397 Jakub Jelinek <jakub@redhat.com>
073afca6 11398
fa5866c0 11399 PR lto/60567
e0a81db1
UB
11400 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
11401 flag from decl_node to node.
073afca6 11402
b322c36a
RR
114032014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11404
11405 PR debug/60655
11406 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
11407 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
11408 ameliorating the cases where it can be.
11409
8267f6bb
DE
114102014-04-09 David Edelsohn <dje.gcc@gmail.com>
11411
11412 Revert
11413 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
11414
11415 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
11416 (loadsync_<mode>): Change mode.
11417 (load_quadpti, store_quadpti): New.
11418 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
11419 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
11420 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
11421
5d1a5a53
CH
114222014-04-09 Cong Hou <congh@google.com>
11423
11424 PR testsuite/60773
11425 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
11426 documentation.
11427
da90fa4c
BS
114282014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11429
11430 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
11431 instead of vnor to exploit possible fusion opportunity in the
11432 future.
11433 (altivec_expand_vec_perm_const_le): Likewise.
11434
98e6ecab
PH
114352014-04-08 Pat Haugen <pthaugen@us.ibm.com>
11436
11437 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
11438 (loadsync_<mode>): Change mode.
11439 (load_quadpti, store_quadpti): New.
11440 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
11441 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
11442
8418cf33
RS
114432014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
11444
11445 PR target/60763
11446 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
11447 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
11448 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
11449
3fa68ccb
RB
114502014-04-08 Richard Biener <rguenther@suse.de>
11451
11452 PR middle-end/60706
11453 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
11454 a 64bit widest int print double-int similar to on HWI64 hosts.
11455
9038ae48
RB
114562014-04-08 Richard Biener <rguenther@suse.de>
11457
11458 PR tree-optimization/60785
11459 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
11460 default defs properly.
11461
38f09da3
NS
114622014-04-08 Nathan Sidwell <nathan@codesourcery.com>
11463
11464 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
11465 (Weffc++): Likewise.
11466
0439a947
JH
114672014-04-07 Jan Hubicka <hubcika@ucw.cz>
11468
11469 * ipa-devirt.c (maybe_record_node): When node is not recorded,
11470 set completep to false rather than true.
11471
3f2f838e
EB
114722014-04-07 Douglas B Rupp <rupp@adacore.com>
11473
11474 PR target/60504
11475 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
11476 ARM_TARGET2_DWARF_FORMAT.
11477
e75c1617
CB
114782014-04-07 Charles Baylis <charles.baylis@linaro.org>
11479
11480 PR target/60609
11481 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
11482 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
11483 ADDR_DIFF_VEC.
11484
d6adff07
RB
114852014-04-07 Richard Biener <rguenther@suse.de>
11486
11487 PR tree-optimization/60766
3f2f838e
EB
11488 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
11489 (may_eliminate_iv): Convert cand_value_at result to desired type.
d6adff07 11490
da34ade5
JM
114912014-04-07 Jason Merrill <jason@redhat.com>
11492
11493 PR c++/60731
11494 * common.opt (-fno-gnu-unique): Add.
11495 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
11496
151e9aac
KT
114972014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11498
11499 * haifa-sched.c: Fix outdated function reference and minor
11500 grammar errors in introductory comment.
11501
308173e3
RB
115022014-04-07 Richard Biener <rguenther@suse.de>
11503
11504 PR middle-end/60750
11505 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
11506 for noreturn calls.
11507 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
11508
a9a302d9
JDA
115092014-04-06 John David Anglin <danglin@gcc.gnu.org>
11510
11511 PR debug/55794
11512 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
11513 size accounting for thunks.
11514 (pa_asm_output_mi_thunk): Use final_start_function() and
11515 final_end_function() to output function start and end directives.
11516
576ba35c
PS
115172014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
11518
e0a81db1
UB
11519 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
11520 device specific ISA/ feature information. Remove short_sp and
11521 errata_skip ds. Add avr_device_specific_features enum to have device
11522 specific info.
576ba35c
PS
11523 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
11524 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
11525 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
11526 updated device specific info.
11527 * config/avr/avr-mcus.def: Merge device specific details to
11528 dev_attribute field.
11529 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
11530 errata_skip.
11531 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
11532 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
11533 assembler if RMW isa supported by current device.
11534 * config/avr/genmultilib.awk: Update as device info structure changed.
11535 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
11536
ebc047a2
CH
115372014-04-04 Cong Hou <congh@google.com>
11538
11539 PR tree-optimization/60656
11540 * tree-vect-stmts.c (supportable_widening_operation):
11541 Fix a bug that elements in a vector with vect_used_by_reduction
11542 property are incorrectly reordered when the operation on it is not
11543 consistant with the one in reduction operation.
11544
b6808818
JDA
115452014-04-04 John David Anglin <danglin@gcc.gnu.org>
11546
11547 PR rtl-optimization/60155
11548 * gcse.c (record_set_data): New function.
11549 (single_set_gcse): New function.
11550 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
11551 (hoist_code): Likewise.
11552 (get_pressure_class_and_nregs): Likewise.
11553
eabcc725
EB
115542014-04-04 Eric Botcazou <ebotcazou@adacore.com>
11555
11556 * explow.c (probe_stack_range): Emit a final optimization blockage.
11557
e005b753
AG
115582014-04-04 Anthony Green <green@moxielogic.com>
11559
11560 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
11561 typos.
11562
8fe91ca8
JH
115632014-04-04 Jan Hubicka <hubicka@ucw.cz>
11564
11565 PR ipa/59626
11566 * lto-cgraph.c (input_overwrite_node): Check that partitioning
11567 flags are set only during streaming.
11568 * ipa.c (process_references, walk_polymorphic_call_targets,
11569 symtab_remove_unreachable_nodes): Drop bodies of always inline
11570 after early inlining.
11571 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
576ba35c 11572
88d94632
RR
115732014-04-04 Jakub Jelinek <jakub@redhat.com>
11574 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11575
11576 PR debug/60655
11577 * dwarf2out.c (const_ok_for_output_1): Reject expressions
11578 containing a NOT.
11579
094bc219
KT
115802014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11581
11582 PR bootstrap/60743
11583 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
11584 duration.
11585 (cortex_a53_fdivd): Likewise.
11586
610c8ef0
MJ
115872014-04-04 Martin Jambor <mjambor@suse.cz>
11588
11589 PR ipa/60640
b15d92bf
UB
11590 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
11591 Adjust all callers.
610c8ef0
MJ
11592 * cgraph.c (clone_of_p): Also return true if thunks match.
11593 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
11594 cgraph_function_or_thunk_node and an obsolete comment.
b15d92bf
UB
11595 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
11596 file.
11597 (build_function_decl_skip_args): Likewise.
610c8ef0 11598 (set_new_clone_decl_and_node_flags): New function.
b15d92bf
UB
11599 (duplicate_thunk_for_node): Likewise.
11600 (redirect_edge_duplicating_thunks): Likewise.
11601 (cgraph_clone_node): New parameter args_to_skip, pass it to
11602 redirect_edge_duplicating_thunks which is called instead of
11603 cgraph_redirect_edge_callee.
11604 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
610c8ef0
MJ
11605 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
11606
fc02bcca
JL
116072014-04-04 Jeff Law <law@redhat.com>
11608
57ef133b 11609 PR target/60657
fc02bcca
JL
11610 * config/arm/predicates.md (const_int_I_operand): New predicate.
11611 (const_int_M_operand): Similarly.
11612 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
11613 const_int_operand.
11614 (insv_t2, extv_reg, extzv_t2): Likewise.
11615 (load_multiple_with_writeback): Similarly for const_int_I_operand.
11616 (pop_multiple_with_writeback_and_return): Likewise.
11617 (vfp_pop_multiple_with_writeback): Likewise
11618
45b62594
RB
116192014-04-04 Richard Biener <rguenther@suse.de>
11620
11621 PR ipa/60746
11622 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
11623 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
11624 non-GIMPLE_LABELs.
11625 * gimplify.h (gimple_add_tmp_var_fn): Declare.
11626 * gimplify.c (gimple_add_tmp_var_fn): New function.
11627 * gimple-expr.h (create_tmp_reg_fn): Declare.
11628 * gimple-expr.c (create_tmp_reg_fn): New function.
11629 * gimple-low.c (record_vars_into): Don't change cfun.
11630 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
11631 code generation without cfun.
11632
bb609c35
TS
116332014-04-04 Thomas Schwinge <thomas@codesourcery.com>
11634
11635 PR bootstrap/60719
11636 * Makefile.in (install-driver): Fix shell scripting.
11637
090cd8dc
CH
116382014-04-03 Cong Hou <congh@google.com>
11639
11640 PR tree-optimization/60505
11641 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
e0a81db1
UB
11642 threshold of number of iterations below which no vectorization
11643 will be done.
090cd8dc
CH
11644 * tree-vect-loop.c (new_loop_vec_info):
11645 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
11646 * tree-vect-loop.c (vect_analyze_loop_operations):
11647 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
11648 * tree-vect-loop.c (vect_transform_loop):
11649 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
11650 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
11651 of iterations of the loop and see if we should build the epilogue.
11652
bdc67fd6
RB
116532014-04-03 Richard Biener <rguenther@suse.de>
11654
e0a81db1 11655 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
bdc67fd6
RB
11656 (streamer_tree_cache_create): Adjust.
11657 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
11658 to allow optional nodes array.
11659 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
11660 (streamer_tree_cache_append): Likewise.
11661 (streamer_tree_cache_create): Create nodes array optionally
11662 as specified by parameter.
11663 * lto-streamer-out.c (create_output_block): Avoid maintaining
11664 the node array in the writer cache.
11665 (DFS_write_tree): Remove assertion.
e0a81db1 11666 (produce_asm_for_decls): Free the out decl state hash table early.
bdc67fd6
RB
11667 * lto-streamer-in.c (lto_data_in_create): Adjust for
11668 streamer_tree_cache_create prototype change.
11669
a0daf659
RB
116702014-04-03 Richard Biener <rguenther@suse.de>
11671
11672 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
11673 set TREE_CHAIN to NULL_TREE.
11674
f16c88d2
RB
116752014-04-03 Richard Biener <rguenther@suse.de>
11676
11677 PR tree-optimization/60740
11678 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
11679 over all GIMPLE_COND operands.
11680
880a467b
NS
116812014-04-03 Nathan Sidwell <nathan@codesourcery.com>
11682
11683 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
11684 (Weffc++): Remove Scott's numbering, merge lists and reference
11685 Wnon-virtual-dtor.
11686
08866760
NC
116872014-04-03 Nick Clifton <nickc@redhat.com>
11688
11689 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
11690 properly.
11691
5bed50e8
MJ
116922014-04-03 Martin Jambor <mjambor@suse.cz>
11693
11694 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
11695 mention gcc_unreachable before failing.
11696 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
11697 removed symbols.
11698
3e86c6a8
JH
116992014-04-02 Jan Hubicka <hubicka@ucw.cz>
11700
11701 PR ipa/60659
e0a81db1
UB
11702 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
11703 inconsistent code and instead mark the context inconsistent.
3e86c6a8
JH
11704 (possible_polymorphic_call_targets): For inconsistent contexts
11705 return empty complete list.
11706
2b9912aa
AG
117072014-04-02 Anthony Green <green@moxielogic.com>
11708
11709 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
11710 (extendqisi2, extendhisi2): Define.
11711 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
11712 (WCHAR_TYPE): Change to unsigned int.
11713
1e386bb8
BS
117142014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11715
11716 PR tree-optimization/60733
11717 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
11718 insertion point for PHI candidates to be the end of the feeding
11719 block for the PHI argument.
11720
f4581282
VM
117212014-04-02 Vladimir Makarov <vmakarov@redhat.com>
11722
11723 PR rtl-optimization/60650
11724 * lra-constraints.c (process_alt_operands): Decrease reject for
11725 earlyclobber matching.
11726
a9d46e32
AK
117272014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11728
11729 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
11730
7c40228a
UW
117312014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11732
11733 * config/spu/spu.c (pad_bb): Do not crash when the last
11734 insn is CODE_FOR_blockage.
11735
c6596193
UW
117362014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11737
11738 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
11739 lies outside the target mode.
11740
690c229f
MM
117412014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11742
11743 PR target/60735
11744 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
11745 software floating point or no floating point registers, do not
11746 allow any type in the FPRs. Eliminate a test for SPE SIMD types
11747 in GPRs that occurs after we tested for GPRs that would never be
11748 true.
11749
11750 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
11751 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
11752 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
11753 specifically allow DDmode, since that does not use the SPE SIMD
11754 instructions.
11755
dad16761
RB
117562014-04-02 Richard Biener <rguenther@suse.de>
11757
11758 PR middle-end/60729
11759 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
11760 MODE_INTs. Properly use negv_optab.
11761 (expand_abs): Likewise.
11762
a1ce39be
RB
117632014-04-02 Richard Biener <rguenther@suse.de>
11764
11765 PR bootstrap/60719
11766 * Makefile.in (install-driver): Guard extra installs with special
11767 names properly.
11768
6fb619e4
MM
117692014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11770
11771 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11772 Document vec_vgbbd.
11773
2a1ffd6d
RH
117742014-04-01 Richard Henderson <rth@redhat.com>
11775
11776 PR target/60704
11777 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
11778 alternative enabled before register allocation.
11779
98e8dd4d
CLT
117802014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
11781
11782 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
11783 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
11784 typo.
11785 (nios2_large_got_address): Remove unneeded 'sym' parameter.
11786 (nios2_got_address): Update nios2_large_got_address call site.
11787 (nios2_delegitimize_address): New function.
11788 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
11789 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
11790 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
11791
8785c60a
MH
117922014-04-01 Martin Husemann <martin@duskware.de>
11793
11794 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
11795 for -mabi=32.
11796
3343cf6a
RS
117972014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
11798
11799 PR rtl-optimization/60604
11800 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
11801 check from register_operand.
11802 (register_operand): Redefine in terms of general_operand.
11803 (nonmemory_operand): Use register_operand for the non-constant cases.
11804
1503cb6b
RB
118052014-04-01 Richard Biener <rguenther@suse.de>
11806
e0a81db1 11807 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
1503cb6b 11808
cded08ea
SH
118092014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
11810
11811 * doc/invoke.texi (mapp-regs): Clarify.
11812
7d9088c2
UD
118132014-03-31 Ulrich Drepper <drepper@gmail.com>
11814
11815 * config/i386/avx512fintrin.h (__v32hi): Define type.
11816 (__v64qi): Likewise.
11817 (_mm512_set1_epi8): Define.
11818 (_mm512_set1_epi16): Define.
11819 (_mm512_set4_epi32): Define.
11820 (_mm512_set4_epi64): Define.
11821 (_mm512_set4_pd): Define.
11822 (_mm512_set4_ps): Define.
11823 (_mm512_setr4_epi64): Define.
11824 (_mm512_setr4_epi32): Define.
11825 (_mm512_setr4_pd): Define.
11826 (_mm512_setr4_ps): Define.
11827 (_mm512_setzero_epi32): Define.
11828
c18ff8a4
MJ
118292014-03-31 Martin Jambor <mjambor@suse.cz>
11830
11831 PR middle-end/60647
11832 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
11833 callsite_arguments_match_p. Updated all callers. Also check types of
11834 corresponding formal parameters and actual arguments.
11835 (not_all_callers_have_enough_arguments_p) Renamed to
11836 some_callers_have_mismatched_arguments_p.
11837
9a96d5b7
YR
118382014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
11839
11840 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
11841
6c031d8d
KV
118422014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
11843
11844 PR target/60034
11845 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
11846 section anchor.
11847
429749e2
UB
118482014-03-30 Uros Bizjak <ubizjak@gmail.com>
11849
11850 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
11851 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
11852 Split out
11853 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
11854 Use FMAMODE_NOVF512 mode iterator.
11855 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
11856 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
11857 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
11858 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
11859 Split out
11860 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
11861 Use VF_128_256 mode iterator.
11862 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
11863 Ditto.
11864
1f91035f
JH
118652014-03-28 Jan Hubicka <hubicka@ucw.cz>
11866
11867 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
11868 static chain if needed.
11869
6e071b1e
VM
118702014-03-28 Vladimir Makarov <vmakarov@redhat.com>
11871
11872 PR target/60697
11873 * lra-constraints.c (index_part_to_reg): New.
11874 (process_address): Use it.
11875
e7f31789 118762014-03-27 Jeff Law <law@redhat.com>
4bb66ef3 11877 Jakub Jelinek <jakub@redhat.com>
e7f31789
JL
11878
11879 PR target/60648
4bb66ef3
JJ
11880 * expr.c (do_tablejump): Use simplify_gen_binary rather than
11881 gen_rtx_{PLUS,MULT} to build up the address expression.
e7f31789 11882
4bb66ef3
JJ
11883 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
11884 creating non-canonical RTL.
e7f31789 11885
4cd8957f
JH
118862014-03-28 Jan Hubicka <hubicka@ucw.cz>
11887
11888 PR ipa/60243
11889 * ipa-inline.c (want_inline_small_function_p): Short circuit large
11890 functions; reorganize to make cheap checks first.
11891 (inline_small_functions): Do not estimate growth when dumping;
11892 it is expensive.
11893 * ipa-inline.h (inline_summary): Add min_size.
11894 (growth_likely_positive): New function.
11895 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
11896 (set_cond_stmt_execution_predicate): Cleanup.
11897 (estimate_edge_size_and_time): Compute min_size.
11898 (estimate_calls_size_and_time): Likewise.
11899 (estimate_node_size_and_time): Likewise.
11900 (inline_update_overall_summary): Update min_size.
11901 (do_estimate_edge_time): Likewise.
11902 (do_estimate_edge_size): Update.
11903 (do_estimate_edge_hints): Update.
11904 (growth_likely_positive): New function.
11905
ff76f4e2
JJ
119062014-03-28 Jakub Jelinek <jakub@redhat.com>
11907
11908 PR target/60693
11909 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
11910 also if addr has VOIDmode.
11911
ed6eb6dc
KT
119122014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11913
11914 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
11915 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
11916 Declare extern.
11917 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
11918 instructions as well as AdvancedSIMD loads.
11919
b10baa95
KT
119202014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11921
11922 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
11923 Use crypto_aese type.
11924 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
11925 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
11926 crypto_aese, crypto_aesmc. Move to types.md.
11927 * config/arm/types.md (crypto_aes): Split into crypto_aese,
11928 crypto_aesmc.
11929 * config/arm/iterators.md (crypto_type): Likewise.
11930
23a04216
JH
119312014-03-28 Jan Hubicka <hubicka@ucw.cz>
11932
11933 * cgraph.c: Include expr.h and tree-dfa.h.
429749e2
UB
11934 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
11935 remove LHS.
23a04216 11936
a4971e68
VM
119372014-03-28 Vladimir Makarov <vmakarov@redhat.com>
11938
11939 PR target/60675
11940 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
11941 regs from checking multi-reg pseudos.
11942
7ac84c02
RR
119432014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11944
11945 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
11946
bd302a18
UW
119472014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11948
11949 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
11950 if it would clobber the stack pointer, even temporarily.
11951
cee9defb
EB
119522014-03-28 Eric Botcazou <ebotcazou@adacore.com>
11953
11954 * mode-switching.c: Make small adjustments to the top comment.
11955
117f16fb
MM
119562014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
11957
11958 * config/rs6000/constraints.md (wD constraint): New constraint to
11959 match the constant integer to get the top DImode/DFmode out of a
11960 vector in a VSX register.
11961
11962 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
11963 match the constant integer to get the top DImode/DFmode out of a
11964 vector in a VSX register.
11965
11966 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
11967 for ISA 2.07.
11968
11969 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11970 vbpermq builtins.
11971
11972 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
11973 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
11974
11975 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
11976 Optimize vec_extract of 64-bit values, where the value being
11977 extracted is in the top word, where we can use scalar
11978 instructions. Add direct move and store support. Combine the big
429749e2 11979 endian/little endian vector select load support into a single insn.
117f16fb
MM
11980 (vsx_extract_<mode>_internal1): Likewise.
11981 (vsx_extract_<mode>_internal2): Likewise.
11982 (vsx_extract_<mode>_load): Likewise.
11983 (vsx_extract_<mode>_store): Likewise.
11984 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
11985 combined into vsx_extract_<mode>_load.
11986 (vsx_extract_<mode>_one_le): Likewise.
11987
11988 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
11989 define the top 64-bit vector element.
11990
11991 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
11992 constraint.
11993
6788164b
MM
11994 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11995 Document vec_vbpermq builtin.
11996
117f16fb
MM
11997 PR target/60672
11998 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
11999 enable use of xxsldwi and xxpermdi builtin functions.
12000 (vec_xxpermdi): Likewise.
12001
12002 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12003 Document use of vec_xxsldwi and vec_xxpermdi builtins.
12004
9e038952
VM
120052014-03-27 Vladimir Makarov <vmakarov@redhat.com>
12006
12007 PR rtl-optimization/60650
f4581282 12008 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
9e038952
VM
12009 first_p. Use it.
12010 (find_spills_for): New.
12011 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
12012 Spill all pseudos on the second iteration.
12013
324dc401
MP
120142014-03-27 Marek Polacek <polacek@redhat.com>
12015
12016 PR c/50347
12017 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
12018 types.
12019
6e77facf
AK
120202014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12021
12022 * config/s390/s390.c (s390_can_use_return_insn): Check for
12023 call-saved FPRs on 31 bit.
12024
47519a14
JJ
120252014-03-27 Jakub Jelinek <jakub@redhat.com>
12026
12027 PR middle-end/60682
12028 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
12029 if they need regimplification, just drop them instead of
12030 calling gimple_regimplify_operands on them.
12031
0b7f8166
MS
120322014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
12033
12034 PR target/60580
12035 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
12036 (aarch64_frame_pointer_required): Adjust logic.
12037 (aarch64_can_eliminate): Adjust logic.
12038 (aarch64_override_options_after_change): Adjust logic.
12039
2f2a7d15
DC
120402014-03-27 Dehao Chen <dehao@google.com>
12041
12042 * ipa-inline.c (early_inliner): Update node's inline info.
12043
a0dbf285
DC
120442014-03-26 Dehao Chen <dehao@google.com>
12045
12046 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
12047 compiler inserted conditional jumps for NAN float check.
12048
ed0ca1e1
JJ
120492014-03-26 Jakub Jelinek <jakub@redhat.com>
12050
07d72e1d
JJ
12051 * ubsan.h (ubsan_create_data): Change second argument's type
12052 to const location_t *.
12053 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
12054 _("<unknown>").
12055 (ubsan_create_data): Change second argument to const location_t *PLOC.
12056 Create Loc field whenever PLOC is non-NULL.
12057 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
12058 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
12059 callers.
12060
ed0ca1e1
JJ
12061 PR other/59545
12062 * real.c (real_to_integer2): Change type of low to UHWI.
12063
b9487dd8
TB
120642014-03-26 Tobias Burnus <burnus@net-b.de>
12065
12066 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
12067 (CILK_SELF_SPECS): New define.
12068 (driver_self_specs): Use it.
12069
3a2700f6
RB
120702014-03-26 Richard Biener <rguenther@suse.de>
12071
12072 * tree-pretty-print.c (percent_K_format): Implement special
12073 case for LTO and its stripped down BLOCK tree.
12074
368b454d
JJ
120752014-03-26 Jakub Jelinek <jakub@redhat.com>
12076
aa6b742f
JJ
12077 PR sanitizer/60636
12078 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
12079
368b454d
JJ
12080 * tree-vrp.c (simplify_internal_call_using_ranges): If only
12081 one range is range_int_cst_p, but not both, at least optimize
12082 addition/subtraction of 0 and multiplication by 0 or 1.
12083 * gimple-fold.c (gimple_fold_call): Fold
12084 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
12085 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
12086 INTEGER_CSTs, try to fold at least x * 0 and y - y.
12087
c7e30a96
EB
120882014-03-26 Eric Botcazou <ebotcazou@adacore.com>
12089
12090 PR rtl-optimization/60452
12091 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
12092 <case REG>: Return 1 for invalid offsets from the frame pointer.
12093
d615d763
MP
120942014-03-26 Marek Polacek <polacek@redhat.com>
12095
12096 PR c/37428
12097 * doc/extend.texi (C Extensions): Mention variable-length arrays in
12098 a structure/union.
12099
1b226529
MP
121002014-03-26 Marek Polacek <polacek@redhat.com>
12101
12102 PR c/39525
12103 * doc/extend.texi (Designated Inits): Describe what happens to omitted
12104 field members.
12105
6686e0bc
MP
121062014-03-26 Marek Polacek <polacek@redhat.com>
12107
12108 PR other/59545
12109 * ira-color.c (update_conflict_hard_regno_costs): Perform the
12110 multiplication in unsigned type.
12111
d4fbc3ae
CJW
121122014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
12113
12114 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
12115
dfa6c87b
CJW
121162014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
12117
12118 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
12119
9de6f6c3
JH
121202014-03-25 Jan Hubicka <hubicka@ucw.cz>
12121
12122 PR ipa/60315
12123 * cif-code.def (UNREACHABLE) New code.
429749e2
UB
12124 * ipa-inline.c (inline_small_functions): Skip edges to
12125 __builtlin_unreachable.
9de6f6c3
JH
12126 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
12127 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
12128 predicate to __bulitin_unreachable.
429749e2
UB
12129 (set_cond_stmt_execution_predicate): Fix issue when
12130 invert_tree_comparison returns ERROR_MARK.
9de6f6c3
JH
12131 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
12132 propagate to inline clones.
12133 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
12134 to unreachable.
12135 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
12136 * cgraphclones.c (cgraph_clone_node): If call destination is already
12137 ureachable, do not redirect it back.
12138 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
12139 unreachable.
12140
d7636f56
JH
121412014-03-25 Jan Hubicka <hubicka@ucw.cz>
12142
12143 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
12144 Do not modify inline clones.
12145
d1873c57
JJ
121462014-03-25 Jakub Jelinek <jakub@redhat.com>
12147
12148 * config/i386/i386.md (general_sext_operand): New mode attr.
12149 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
12150 don't generate (sign_extend (const_int)).
12151 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
429749e2
UB
12152 operands[2]. Use We constraint instead of <i> and
12153 <general_sext_operand> predicate instead of <general_operand>.
d1873c57
JJ
12154 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
12155 * config/i386/constraints.md (We): New constraint.
12156 * config/i386/predicates.md (x86_64_sext_operand,
12157 sext_operand): New predicates.
12158
b5165eb0
MJ
121592014-03-25 Martin Jambor <mjambor@suse.cz>
12160
12161 PR ipa/60600
12162 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
12163 inconsistent devirtualizations to __builtin_unreachable.
12164
3102858d
MP
121652014-03-25 Marek Polacek <polacek@redhat.com>
12166
12167 PR c/35449
12168 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
12169
4b1e108c
AL
121702014-03-25 Alan Lawrence <alan.lawrence@arm.com>
12171
12172 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
12173 order of elements for big-endian.
12174
40b0722f
RB
121752014-03-25 Richard Biener <rguenther@suse.de>
12176
12177 PR middle-end/60635
12178 * gimplify-me.c (gimple_regimplify_operands): Update the
12179 re-gimplifed stmt.
12180
4a5798de
MJ
121812014-03-25 Martin Jambor <mjambor@suse.cz>
12182
12183 PR ipa/59176
12184 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
12185 (lto_output_varpool_node): Likewise.
12186 (input_overwrite_node): Likewise.
12187 (input_varpool_node): Likewise.
12188
585d0088
RB
121892014-03-25 Richard Biener <rguenther@suse.de>
12190
429749e2 12191 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
585d0088
RB
12192 (run_gcc): Likewise.
12193
a8acccdd
JJ
121942014-03-25 Jakub Jelinek <jakub@redhat.com>
12195
51ee05d0
JJ
12196 * combine.c (simplify_compare_const): Add MODE argument.
12197 Handle mode_width 0 as very large mode_width.
12198 (try_combine, simplify_comparison): Adjust callers.
12199
a8acccdd
JJ
12200 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
12201 type to avoid signed integer overflow.
12202 * explow.c (plus_constant): Likewise.
12203
57fc74a4
DV
122042014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
12205
12206 * doc/generic.texi: Correct typos.
12207
09f15d1b
TB
122082014-03-24 Tobias Burnus <burnus@net-b.de>
12209
12210 * doc/invoke.texi (-flto): Expand section about
12211 using static libraries with LTO.
12212
72a4ddf2
AK
122132014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12214
12215 PR rtl-optimization/60501
12216 * optabs.def (addptr3_optab): New optab.
12217 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
12218 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
12219 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
12220
12221 * lra.c (emit_add3_insn): Use the addptr pattern if available.
12222
12223 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
12224
0b192937
UD
122252014-03-24 Ulrich Drepper <drepper@gmail.com>
12226
2b2384e8
UD
12227 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
12228 _mm512_set1_pd.
12229
0b192937
UD
12230 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
12231 (_mm256_undefined_ps): Define.
12232 (_mm256_undefined_pd): Define.
12233 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
12234 (_mm_undefined_pd): Define.
12235 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
12236 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
12237 (_mm512_undefined_ps): Define.
12238 (_mm512_undefined_pd): Define.
12239 Use _mm*_undefined_*.
12240 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
12241
252c7556
AV
122422014-03-24 Alex Velenko <Alex.Velenko@arm.com>
12243
12244 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
12245 (lshr_simd): DI mode added.
12246 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
12247 (aarch64_ushr_simddi): Likewise.
12248 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
12249 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
12250 (vshrd_n_u64): Likewise.
12251
15e3d4f1
RO
122522014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12253
12254 * Makefile.in (s-macro_list): Depend on cc1.
12255
1858c2d3
TJ
122562014-03-23 Teresa Johnson <tejohnson@google.com>
12257
12258 * ipa-utils.c (ipa_print_order): Use specified dump file.
12259
f87604f8
EB
122602014-03-23 Eric Botcazou <ebotcazou@adacore.com>
12261
12262 PR rtl-optimization/60601
12263 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
12264
12265 * gcc.c (eval_spec_function): Initialize save_growing_value.
12266
3db31fd1
JJ
122672014-03-22 Jakub Jelinek <jakub@redhat.com>
12268
f451d3a8
JJ
12269 PR sanitizer/60613
12270 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
12271 code == MINUS_EXPR, never swap op0 with op1.
12272
3db31fd1
JJ
12273 * toplev.c (init_local_tick): Avoid signed integer multiplication
12274 overflow.
12275 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
12276 shift by first operand's bitsize.
12277
e49080ec
JJ
122782014-03-21 Jakub Jelinek <jakub@redhat.com>
12279
12280 PR target/60610
12281 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
12282 redefine to 1 or 0.
12283 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
12284 TARGET_ISA_64BIT_P(x).
12285
44eb6c40
BS
122862014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12287
12288 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
12289 pattern for vector nor instead of subtract from splat(-1).
12290 (altivec_expand_vec_perm_const_le): Likewise.
12291
ec6f831a
RH
122922014-03-21 Richard Henderson <rth@twiddle.net>
12293
12294 PR target/60598
12295 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
12296 related insns after epilogue_completed.
12297
3d8d0043
MJ
122982014-03-21 Martin Jambor <mjambor@suse.cz>
12299
12300 PR ipa/59176
12301 * cgraph.h (symtab_node): New flag body_removed.
12302 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
12303 when removing bodies.
12304 * symtab.c (dump_symtab_base): Dump body_removed flag.
12305 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
12306 had their bodies removed.
12307
d833415c
MJ
123082014-03-21 Martin Jambor <mjambor@suse.cz>
12309
12310 PR ipa/60419
12311 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
12312 in the border.
12313
400a4f6c
RB
123142014-03-21 Richard Biener <rguenther@suse.de>
12315
12316 PR tree-optimization/60577
12317 * tree-core.h (struct tree_base): Document nothrow_flag use
9c85aeb6
EB
12318 in DECL_NONALIASED.
12319 * tree.h (DECL_NONALIASED): New.
400a4f6c 12320 (may_be_aliased): Adjust.
9c85aeb6 12321 * coverage.c (build_var): Set DECL_NONALIASED.
400a4f6c 12322
c6c2314f
EB
123232014-03-20 Eric Botcazou <ebotcazou@adacore.com>
12324
12325 * expr.c (expand_expr_real_1): Remove outdated comment.
12326
d02b6ac7
JJ
123272014-03-20 Jakub Jelinek <jakub@redhat.com>
12328
b8f045e2
JJ
12329 PR middle-end/60597
12330 * ira.c (adjust_cleared_regs): Call copy_rtx on
12331 *reg_equiv[REGNO (loc)].src_p before passing it to
12332 simplify_replace_fn_rtx.
12333
d02b6ac7
JJ
12334 PR target/60568
12335 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
12336 into CONST, put pic register as first operand of PLUS. Use
12337 gen_const_mem for both 32-bit and 64-bit PIC got loads.
12338
e2f98c01
RR
123392014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12340
12341 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
12342
7075c792
EB
123432014-03-20 Eric Botcazou <ebotcazou@adacore.com>
12344
12345 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
12346 around for store forwarding issue in the FPU on the UT699.
12347 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
12348 loads and operations if -mfix-ut699 is specified.
12349 (divtf3_hq): Tweak attribute.
12350 (sqrttf2_hq): Likewise.
12351
9ee5337d
EB
123522014-03-20 Eric Botcazou <ebotcazou@adacore.com>
12353
12354 * calls.c (store_one_arg): Remove incorrect const qualification on the
12355 type of the temporary.
12356 * cfgexpand.c (expand_return): Likewise.
12357 * expr.c (expand_constructor): Likewise.
12358 (expand_expr_real_1): Likewise.
12359
a69e09c8
ZC
123602014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12361
12362 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
12363 of parts.
12364
8659d57b
KK
123652014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
12366
12367 PR target/60039
12368 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
12369
985e0d33
JG
123702014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
12371
12372 * config/arm/aarch-common-protos.h
12373 (alu_cost_table): Fix spelling of "extend".
12374 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
12375
ce2f49b3
RB
123762014-03-19 Richard Biener <rguenther@suse.de>
12377
12378 PR middle-end/60553
12379 * tree-core.h (tree_type_common): Re-order pointer members
12380 to reduce recursion depth during GC walks.
12381
6daa2d91
MP
123822014-03-19 Marek Polacek <polacek@redhat.com>
12383
12384 PR sanitizer/60569
12385 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
12386 before accessing it.
12387
8c9cfbe6
RB
123882014-03-19 Richard Biener <rguenther@suse.de>
12389
12390 PR lto/59543
12391 * lto-streamer-in.c (input_function): In WPA stage do not drop
12392 debug stmts.
12393
3efe2e2c
JJ
123942014-03-19 Jakub Jelinek <jakub@redhat.com>
12395
12396 PR tree-optimization/60559
12397 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
12398 with build_zero_cst assignment.
12399
234f76cb
KT
124002014-03-18 Kai Tietz <ktietz@redhat.com>
12401
12402 PR rtl-optimization/56356
12403 * sdbout.c (sdbout_parms): Verify that parms'
12404 incoming argument is valid.
12405 (sdbout_reg_parms): Likewise.
12406
58ca6edf
RH
124072014-03-18 Richard Henderson <rth@redhat.com>
12408
12409 PR target/60562
12410 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
12411 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
ead8233b 12412 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
b318e404
BS
12413
124142014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
12415
4bb66ef3 12416 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
429749e2 12417 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
4bb66ef3 12418 Italicize plugin event names in description. Explain that
429749e2
UB
12419 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
12420 Remind that no GCC functions should be called after PLUGIN_FINISH.
4bb66ef3 12421 Explain what pragmas with expansion are.
b318e404 12422
eb14a79f
ML
124232014-03-18 Martin Liska <mliska@suse.cz>
12424
12425 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
12426 gimple call statement is update.
12427 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
12428 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
12429
415e2e6b
JJ
124302014-03-18 Jakub Jelinek <jakub@redhat.com>
12431
ead96f13
JJ
12432 PR sanitizer/60557
12433 * ubsan.c (ubsan_instrument_unreachable): Call
12434 initialize_sanitizer_builtins.
12435 (ubsan_pass): Likewise.
12436
415e2e6b
JJ
12437 PR sanitizer/60535
12438 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
12439 varpool_finalize_decl instead of rest_of_decl_compilation.
12440
4ca40f52
RB
124412014-03-18 Richard Biener <rguenther@suse.de>
12442
12443 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
12444 by using bitmap_and_compl instead of bitmap_and_compl_into.
12445 (df_rd_transfer_function): Likewise.
12446
6404e190
RB
124472014-03-18 Richard Biener <rguenther@suse.de>
12448
12449 * doc/lto.texi (fresolution): Fix typo.
12450
b9abf793
RB
124512014-03-18 Richard Biener <rguenther@suse.de>
12452
12453 * doc/invoke.texi (flto): Update for changes in 4.9.
12454
3f00cf18
RB
124552014-03-18 Richard Biener <rguenther@suse.de>
12456
12457 * doc/loop.texi: Remove section on the removed lambda framework.
12458 Update loop docs with recent changes in preserving loop structure.
12459
c2679d84
RB
124602014-03-18 Richard Biener <rguenther@suse.de>
12461
12462 * doc/lto.texi (-fresolution): Document.
12463
c07990cc
RB
124642014-03-18 Richard Biener <rguenther@suse.de>
12465
12466 * doc/contrib.texi: Adjust my name.
12467
ed9c79e1
JJ
124682014-03-18 Jakub Jelinek <jakub@redhat.com>
12469
12470 PR ipa/58721
12471 * internal-fn.c: Include diagnostic-core.h.
12472 (expand_BUILTIN_EXPECT): New function.
12473 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
12474 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
12475 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
12476 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
12477 IFN_BUILTIN_EXPECT.
12478 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
12479 Revert 3 argument __builtin_expect code.
12480 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
12481 * gimple-fold.c (gimple_fold_call): Likewise.
12482 * tree.h (fold_builtin_expect): New prototype.
12483 * builtins.c (build_builtin_expect_predicate): Add predictor
12484 argument, if non-NULL, create 3 argument __builtin_expect.
12485 (fold_builtin_expect): No longer static. Add ARG2 argument,
12486 pass it through to build_builtin_expect_predicate.
12487 (fold_builtin_2): Adjust caller.
12488 (fold_builtin_3): Handle BUILT_IN_EXPECT.
12489 * internal-fn.def (BUILTIN_EXPECT): New.
12490
124912014-03-18 Tobias Burnus <burnus@net-b.de>
12492
12493 PR ipa/58721
12494 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
12495 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
12496 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
12497
124982014-03-18 Jan Hubicka <hubicka@ucw.cz>
12499
12500 PR ipa/58721
12501 * predict.c (combine_predictions_for_bb): Fix up formatting.
12502 (expr_expected_value_1, expr_expected_value): Add predictor argument,
12503 fill what it points to if non-NULL.
12504 (tree_predict_by_opcode): Adjust caller, use the predictor.
12505 * predict.def (PRED_COMPARE_AND_SWAP): Add.
12506
e33da4a1
EB
125072014-03-18 Eric Botcazou <ebotcazou@adacore.com>
12508
12509 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
12510 proper constant for the store mode.
12511
1fed15fc
IE
125122014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
12513
12514 * symtab.c (change_decl_assembler_name): Fix transparent alias
12515 chain construction.
12516
454fdba9
RL
125172014-03-16 Renlin Li <Renlin.Li@arm.com>
12518
12519 * config/aarch64/aarch64.c: Correct the comments about the
12520 aarch64 stack layout.
12521
e2110f8f
TS
125222014-03-18 Thomas Schwinge <thomas@codesourcery.com>
12523
12524 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
12525 check for GF_OMP_FOR_KIND_FOR.
12526
7c831c4d
KY
125272013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
12528
12529 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
12530 ymm and zmm register names.
12531
e318c1e1
JJ
125322014-03-17 Jakub Jelinek <jakub@redhat.com>
12533
12534 PR target/60516
12535 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
12536 note creation for the 2010-08-31 changes.
12537
ab2ffbeb
MP
125382014-03-17 Marek Polacek <polacek@redhat.com>
12539
12540 PR middle-end/60534
12541 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
12542 as -fno-tree-loop-vectorize.
12543 (expand_omp_simd): Likewise.
12544
890fa568
EB
125452014-03-15 Eric Botcazou <ebotcazou@adacore.com>
12546
12547 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
12548 (eligible_for_call_delay): New prototype.
12549 * config/sparc/sparc.c (tls_call_delay): Rename into...
12550 (eligible_for_call_delay): ...this. Return false if the instruction
12551 cannot be put in the delay slot of a branch.
12552 (eligible_for_restore_insn): Simplify.
12553 (eligible_for_return_delay): Return false if the instruction cannot be
12554 put in the delay slot of a branch and simplify.
12555 (eligible_for_sibcall_delay): Return false if the instruction cannot be
12556 put in the delay slot of a branch.
12557 * config/sparc/sparc.md (fix_ut699): New attribute.
12558 (tls_call_delay): Delete.
12559 (in_call_delay): Reimplement.
12560 (eligible_for_sibcall_delay): Rename into...
12561 (in_sibcall_delay): ...this.
12562 (eligible_for_return_delay): Rename into...
12563 (in_return_delay): ...this.
12564 (in_branch_delay): Reimplement.
12565 (in_uncond_branch_delay): Delete.
12566 (in_annul_branch_delay): Delete.
12567
cfce90ac
RH
125682014-03-14 Richard Henderson <rth@redhat.com>
12569
12570 PR target/60525
12571 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
12572 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
12573 (*floathi<X87MODEF>2_i387_with_temp): Remove.
12574 (floathi splitters): Remove.
12575 (float<SWI48x>xf2): New pattern.
12576 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
12577 code that tried to handle DImode for 32-bit, but which was excluded
12578 by the pattern's condition. Drop allocation of stack temporary.
12579 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
12580 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
12581 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
12582 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
12583 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
12584 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
12585 (*float<SWI48><MODEF>2_sse_interunit): Remove.
12586 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
12587 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
12588 (*float<SWI48x><X87MODEF>2_i387): Remove.
12589 (all float _with_temp splitters): Remove.
12590 (*float<SWI48x><MODEF>2_i387): New pattern.
12591 (*float<SWI48><MODEF>2_sse): New pattern.
12592 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
12593 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
12594
91035653
JJ
125952014-03-14 Jakub Jelinek <jakub@redhat.com>
12596 Marek Polacek <polacek@redhat.com>
12597
12598 PR middle-end/60484
12599 * common.opt (dump_base_name_prefixed): New Variable.
12600 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
12601 if x_dump_base_name_prefixed is already set, set it at the end.
12602
95921002
VM
126032014-03-14 Vladimir Makarov <vmakarov@redhat.com>
12604
12605 PR rtl-optimization/60508
12606 * lra-constraints.c (get_reload_reg): Add new parameter
12607 in_subreg_p.
12608 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
12609 Pass the new parameter values.
12610
25e57622
RB
126112014-03-14 Richard Biener <rguenther@suse.de>
12612
12613 * common.opt: Revert unintented changes from r205065.
12614 * opts.c: Likewise.
12615
1f3388fe
RB
126162014-03-14 Richard Biener <rguenther@suse.de>
12617
12618 PR middle-end/60518
12619 * cfghooks.c (split_block): Properly adjust all loops the
12620 block was a latch of.
12621
126222014-03-14 Martin Jambor <mjambor@suse.cz>
3d354792
MJ
12623
12624 PR lto/60461
12625 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
12626 and simplify it.
12627
2832dc22
GJL
126282014-03-14 Georg-Johann Lay <avr@gjlay.de>
12629
12630 PR target/59396
12631 * config/avr/avr.c (avr_set_current_function): Pass function name
12632 through default_strip_name_encoding before sanity checking instead
12633 of skipping the first char of the assembler name.
12634
3386d77e
RH
126352014-03-13 Richard Henderson <rth@redhat.com>
12636
12637 PR debug/60438
12638 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
12639 (ix86_force_to_memory, ix86_free_from_memory): Remove.
12640 * config/i386/i386-protos.h: Likewise.
12641 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
12642 in the expander instead of a splitter.
12643 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
12644 any possibility of requiring a memory.
12645 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
12646 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
12647 (fp branch splitters): Update for ix86_split_fp_branch.
12648 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
12649 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
12650 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
12651 (*fop_<MODEF>_2_i387): Remove f/r alternative.
12652 (*fop_<MODEF>_3_i387): Likewise.
12653 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
12654 (splitters for the fop_* register patterns): Remove.
12655 (fscalexf4_i387): Rename from *fscalexf4_i387.
12656 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
4bb66ef3 12657
5b5d7f31
JJ
126582014-03-13 Jakub Jelinek <jakub@redhat.com>
12659
12660 PR tree-optimization/59779
12661 * tree-dfa.c (get_ref_base_and_extent): Use double_int
12662 type for bitsize and maxsize instead of HOST_WIDE_INT.
12663
bdc6e1ae
SB
126642014-03-13 Steven Bosscher <steven@gcc.gnu.org>
12665
12666 PR rtl-optimization/57320
12667 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
12668 the CFG after thread_prologue_and_epilogue_insns.
12669
7891065a
VM
126702014-03-13 Vladimir Makarov <vmakarov@redhat.com>
12671
12672 PR rtl-optimization/57189
12673 * lra-constraints.c (process_alt_operands): Disfavor spilling
12674 vector pseudos.
12675
eba14fca
CP
126762014-03-13 Cesar Philippidis <cesar@codesourcery.com>
12677
429749e2 12678 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
eba14fca 12679
f661b085
JJ
126802014-03-13 Jakub Jelinek <jakub@redhat.com>
12681
12682 PR tree-optimization/59025
12683 PR middle-end/60418
12684 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
12685 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
12686
8f3a3138
GJL
126872014-03-13 Georg-Johann Lay <avr@gjlay.de>
12688
12689 PR target/60486
12690 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
12691 calls of avr_out_plus_1.
12692
d731ee04
BC
126932014-03-13 Bin Cheng <bin.cheng@arm.com>
12694
12695 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
12696 BB's single pred and update the father loop's latch info later.
12697
a16a872d
MM
126982014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
12699
12700 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
12701 (VEC_M): Likewise.
12702 (VEC_N): Likewise.
12703 (VEC_R): Likewise.
12704 (VEC_base): Likewise.
12705 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
12706 registers, we need to swap double words in little endian mode.
12707
12708 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
12709 to be a container mode for 128-bit integer operations added in ISA
12710 2.07. Unlike TImode and PTImode, the preferred register set is
12711 the Altivec/VMX registers for the 128-bit operations.
12712
12713 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
12714 declarations.
12715 (rs6000_split_128bit_ok_p): Likewise.
12716
12717 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
12718 macros for creating ISA 2.07 normal and overloaded builtin
12719 functions with 3 arguments.
12720 (BU_P8V_OVERLOAD_3): Likewise.
12721 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
12722 for use as overloaded functions.
12723 (VPERM_1TI_UNS): Likewise.
12724 (VSEL_1TI): Likewise.
12725 (VSEL_1TI_UNS): Likewise.
12726 (ST_INTERNAL_1ti): Likewise.
12727 (LD_INTERNAL_1ti): Likewise.
12728 (XXSEL_1TI): Likewise.
12729 (XXSEL_1TI_UNS): Likewise.
12730 (VPERM_1TI): Likewise.
12731 (VPERM_1TI_UNS): Likewise.
12732 (XXPERMDI_1TI): Likewise.
12733 (SET_1TI): Likewise.
12734 (LXVD2X_V1TI): Likewise.
12735 (STXVD2X_V1TI): Likewise.
12736 (VEC_INIT_V1TI): Likewise.
12737 (VEC_SET_V1TI): Likewise.
12738 (VEC_EXT_V1TI): Likewise.
12739 (EQV_V1TI): Likewise.
12740 (NAND_V1TI): Likewise.
12741 (ORC_V1TI): Likewise.
12742 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
12743 added in ISA 2.07. Add both normal 'altivec' builtins, and the
12744 overloaded builtin.
12745 (VADDUQM): Likewise.
12746 (VSUBCUQ): Likewise.
12747 (VADDEUQM): Likewise.
12748 (VADDECUQ): Likewise.
12749 (VSUBEUQM): Likewise.
12750 (VSUBECUQ): Likewise.
12751
12752 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
12753 __int128_t and __uint128_t types.
12754 (__uint128_type): Likewise.
12755 (altivec_categorize_keyword): Add support for vector __int128_t,
12756 vector __uint128_t, vector __int128, and vector unsigned __int128
12757 as a container type for TImode operations that need to be done in
12758 VSX/Altivec registers.
12759 (rs6000_macro_to_expand): Likewise.
12760 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
12761 to support 128-bit integer instructions vaddcuq, vadduqm,
12762 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
12763 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
12764
12765 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
0bb29a05
UB
12766 for V1TImode, and set up preferences to use VSX/Altivec registers.
12767 Setup VSX reload handlers.
a16a872d
MM
12768 (rs6000_debug_reg_global): Likewise.
12769 (rs6000_init_hard_regno_mode_ok): Likewise.
12770 (rs6000_preferred_simd_mode): Likewise.
0bb29a05 12771 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
a16a872d
MM
12772 (easy_altivec_constant): Likewise.
12773 (output_vec_const_move): Likewise.
12774 (rs6000_expand_vector_set): Convert V1TImode set and extract to
12775 simple move.
12776 (rs6000_expand_vector_extract): Likewise.
12777 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
12778 addressing.
12779 (rs6000_const_vec): Add support for V1TImode.
12780 (rs6000_emit_le_vsx_load): Swap double words when loading or
12781 storing TImode/V1TImode.
12782 (rs6000_emit_le_vsx_store): Likewise.
12783 (rs6000_emit_le_vsx_move): Likewise.
12784 (rs6000_emit_move): Add support for V1TImode.
12785 (altivec_expand_ld_builtin): Likewise.
12786 (altivec_expand_st_builtin): Likewise.
12787 (altivec_expand_vec_init_builtin): Likewise.
12788 (altivec_expand_builtin): Likewise.
12789 (rs6000_init_builtins): Add support for V1TImode type. Add
12790 support for ISA 2.07 128-bit integer builtins. Define type names
12791 for the VSX/Altivec vector types.
12792 (altivec_init_builtins): Add support for overloaded vector
12793 functions with V1TImode type.
0bb29a05 12794 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
a16a872d
MM
12795 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
12796 external function.
12797 (rs6000_split_128bit_ok_p): Likewise.
12798 (rs6000_handle_altivec_attribute): Create V1TImode from vector
12799 __int128_t and vector __uint128_t.
12800
12801 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
12802 and mode attributes.
12803 (VSX_M): Likewise.
12804 (VSX_M2): Likewise.
12805 (VSm): Likewise.
12806 (VSs): Likewise.
12807 (VSr): Likewise.
12808 (VSv): Likewise.
12809 (VS_scalar): Likewise.
12810 (VS_double): Likewise.
0bb29a05 12811 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
a16a872d 12812
0bb29a05
UB
12813 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
12814 we support the ISA 2.07 128-bit integer arithmetic instructions.
a16a872d
MM
12815 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
12816 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
12817 and TImode types for use with the builtin functions.
12818 (V1TI_type_node): Likewise.
12819 (unsigned_V1TI_type_node): Likewise.
12820 (intTI_type_internal_node): Likewise.
12821 (uintTI_type_internal_node): Likewise.
12822
0bb29a05
UB
12823 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
12824 128-bit builtin functions.
a16a872d
MM
12825 (UNSPEC_VADDEUQM): Likewise.
12826 (UNSPEC_VADDECUQ): Likewise.
12827 (UNSPEC_VSUBCUQ): Likewise.
12828 (UNSPEC_VSUBEUQM): Likewise.
12829 (UNSPEC_VSUBECUQ): Likewise.
12830 (VM): Add V1TImode to vector mode iterators.
12831 (VM2): Likewise.
12832 (VI_unit): Likewise.
12833 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
12834 (altivec_vaddcuq): Likewise.
12835 (altivec_vsubuqm): Likewise.
12836 (altivec_vsubcuq): Likewise.
12837 (altivec_vaddeuqm): Likewise.
12838 (altivec_vaddecuq): Likewise.
12839 (altivec_vsubeuqm): Likewise.
12840 (altivec_vsubecuq): Likewise.
12841
12842 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
12843 mode iterators.
12844 (BOOL_128): Likewise.
12845 (BOOL_REGS_OUTPUT): Likewise.
12846 (BOOL_REGS_OP1): Likewise.
12847 (BOOL_REGS_OP2): Likewise.
12848 (BOOL_REGS_UNARY): Likewise.
12849 (BOOL_REGS_AND_CR0): Likewise.
12850
12851 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
12852 128-bit integer builtin support.
12853 (vec_vadduqm): Likewise.
12854 (vec_vaddecuq): Likewise.
12855 (vec_vaddeuqm): Likewise.
12856 (vec_vsubecuq): Likewise.
12857 (vec_vsubeuqm): Likewise.
12858 (vec_vsubcuq): Likewise.
12859 (vec_vsubuqm): Likewise.
12860
12861 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12862 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
12863 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
12864 128-bit integer add/subtract to ISA 2.07.
12865
eeac7d15
JR
128662014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
12867
12868 * config/arc/arc.c (arc_predicate_delay_insns):
12869 Fix third argument passed to conditionalize_nonjump.
12870
bf0f324e
YZ
128712014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
12872
12873 * config/aarch64/aarch64-builtins.c
12874 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
12875 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
12876 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
12877 instead of __builtin_lfloor.
12878 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
12879
bf4787b2
JJ
128802014-03-12 Jakub Jelinek <jakub@redhat.com>
12881
12882 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
12883 (tree_ssa_ifcombine_bb_1): New function.
12884 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
12885 is an empty forwarder block to then_bb or vice versa and then_bb
12886 and else_bb are effectively swapped.
12887
7d55b948
CB
128882014-03-12 Christian Bruel <christian.bruel@st.com>
12889
12890 PR target/60264
0bb29a05
UB
12891 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
12892 REG_CFA_DEF_CFA note.
7d55b948
CB
12893 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
12894 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
12895
882a5fbe
TP
128962014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
12897
12898 PR tree-optimization/60454
12899 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
12900
a3cd0246
KT
129012014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12902
12903 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
12904 Do not define target_cpu_default2 to generic.
12905 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
12906 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
12907 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
12908
c888139c
JJ
129092014-03-12 Jakub Jelinek <jakub@redhat.com>
12910 Marc Glisse <marc.glisse@inria.fr>
12911
12912 PR tree-optimization/60502
12913 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
12914 instead of build_low_bits_mask.
12915
b24ca895
JJ
129162014-03-12 Jakub Jelinek <jakub@redhat.com>
12917
12918 PR middle-end/60482
12919 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
12920 if there are multiple uses, but op doesn't live on E edge.
12921 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
12922 clobber stmts before __builtin_unreachable.
12923
f1257268
RS
129242014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
12925
12926 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
12927 hard_frame_pointer_rtx.
12928 * cse.c (cse_insn): Remove volatile check.
12929 * cselib.c (cselib_process_insn): Likewise.
12930 * dse.c (scan_insn): Likewise.
12931
bae56bbb
JR
129322014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
12933
0bb29a05
UB
12934 * config/arc/arc.c (conditionalize_nonjump): New function,
12935 broken out of ...
12936 (arc_ifcvt): ... this.
bae56bbb
JR
12937 (arc_predicate_delay_insns): Use it.
12938
167ba5b9
JR
129392014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
12940
12941 * config/arc/predicates.md (extend_operand): During/after reload,
12942 allow const_int_operand.
12943 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
12944 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
12945 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
12946 to "i".
12947 (umulsi3_highpart_i): Likewise.
12948
dfd7d2d6
RB
129492014-03-11 Richard Biener <rguenther@suse.de>
12950
12951 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
12952 Add asserts to guard possible wrong-code bugs.
12953
af1ab449
RB
129542014-03-11 Richard Biener <rguenther@suse.de>
12955
12956 PR tree-optimization/60429
12957 PR tree-optimization/60485
12958 * tree-ssa-structalias.c (set_union_with_increment): Properly
12959 take into account all fields that overlap the shifted vars.
12960 (do_sd_constraint): Likewise.
12961 (do_ds_constraint): Likewise.
12962 (get_constraint_for_ptr_offset): Likewise.
12963
747425d0
CLT
129642014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
12965
12966 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
12967 (nios2_compute_frame_layout):
12968 Add calculation of cfun->machine->fp_save_offset.
12969 (nios2_expand_prologue): Correct setting of frame pointer register
12970 in prologue.
12971 (nios2_expand_epilogue): Update recovery of stack pointer from
12972 frame pointer accordingly.
12973 (nios2_initial_elimination_offset): Update calculation of offset
12974 for eliminating to HARD_FRAME_POINTER_REGNUM.
12975
31dad809
JJ
129762014-03-10 Jakub Jelinek <jakub@redhat.com>
12977
12978 PR ipa/60457
12979 * ipa.c (symtab_remove_unreachable_nodes): Don't call
12980 cgraph_get_create_node on VAR_DECLs.
12981
3c1c08d6
RB
129822014-03-10 Richard Biener <rguenther@suse.de>
12983
12984 PR middle-end/60474
12985 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
12986
21d89690
DR
129872014-03-08 Douglas B Rupp <rupp@gnat.com>
12988
12989 * config/vms/vms.opt (vms_float_format): New variable.
12990
634b8e9b
TB
129912014-03-08 Tobias Burnus <burnus@net-b.de>
12992
0bb29a05 12993 * doc/invoke.texi (-fcilkplus): Update implementation status.
634b8e9b 12994
f42c637e
PM
129952014-03-08 Paulo Matos <paulo@matos-sorge.com>
12996 Richard Biener <rguenther@suse.de>
12997
12998 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
12999 consistently accross all TUs.
13000 (run_gcc): Enable -fshort-double automatically at link at link-time
13001 and disallow override.
13002
bd65fc87
RS
130032014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
13004
13005 PR target/58271
13006 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
13007 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
13008 if they can't be used.
13009
040c446d
RO
130102014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13011
0bb29a05
UB
13012 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
13013 for Solaris 11/x86 ld.
040c446d
RO
13014 * configure: Regenerate.
13015
caa16d41
RO
130162014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13017
13018 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
13019 (LIB_TLS_SPEC): Save as ld_tls_libs.
13020 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
13021 (HAVE_AS_IX86_TLSLDM): New test.
13022 * configure, config.in: Regenerate.
13023 * config/i386/i386.c (legitimize_tls_address): Fall back to
13024 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
13025 cannot support TLS_MODEL_LOCAL_DYNAMIC.
13026 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
13027 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
13028
f3d83ffe
PM
130292014-03-07 Paulo Matos <paulo@matos-sorge.com>
13030
13031 * common.opt (fira-loop-pressure): Mark as optimization.
13032
b17a8b07
TS
130332014-03-07 Thomas Schwinge <thomas@codesourcery.com>
13034
13035 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
13036 an OpenMP mappable type.
13037
4973b0f9
MK
130382014-03-06 Matthias Klose <doko@ubuntu.com>
13039
13040 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
13041 MULTILIB_OSDIRNAMES is not defined.
13042
ab19cc6c
JJ
130432014-03-06 Jakub Jelinek <jakub@redhat.com>
13044 Meador Inge <meadori@codesourcery.com>
13045
13046 PR target/58595
13047 * config/arm/arm.c (arm_tls_symbol_p): Remove.
13048 (arm_legitimize_address): Call legitimize_tls_address for any
13049 arm_tls_referenced_p expression, handle constant addend. Call it
13050 before testing for !TARGET_ARM.
13051 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
13052
a74158c7
RB
130532014-03-06 Richard Biener <rguenther@suse.de>
13054
13055 PR middle-end/60445
13056 PR lto/60424
13057 PR lto/60427
13058 Revert
13059 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
13060
0bb29a05
UB
13061 * tree-streamer.c (record_common_node): Assert we don't record
13062 nodes with type double.
13063 (preload_common_node): Skip type double, complex double and double
13064 pointer since it is now frontend dependent due to fshort-double option.
a74158c7 13065
f3ba16d0
RB
130662014-03-06 Richard Biener <rguenther@suse.de>
13067
13068 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
13069 or -fno-lto is specified and the linker has full plugin support.
0bb29a05
UB
13070 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
13071 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
f3ba16d0
RB
13072 * lto-wrapper.c (merge_and_complain): Merge compile-time
13073 optimization levels.
13074 (run_gcc): And pass it through to the link options.
13075
4bb66ef3 130762014-03-06 Alexandre Oliva <aoliva@redhat.com>
80662856
AO
13077
13078 PR debug/60381
13079 Revert:
4bb66ef3 13080 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
80662856
AO
13081 PR debug/59992
13082 * cselib.c (remove_useless_values): Skip to avoid quadratic
13083 behavior if the condition moved from...
13084 (cselib_process_insn): ... here holds.
13085
a05cca9b
JJ
130862014-03-05 Jakub Jelinek <jakub@redhat.com>
13087
487125e7
JJ
13088 PR plugins/59335
13089 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
13090 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
13091
a05cca9b
JJ
13092 PR plugins/59335
13093 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
13094 (TM_H): Add x86-tune.def.
13095
4e2cd668
KT
130962014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13097
13098 * config/aarch64/aarch64.c (generic_tunings):
13099 Use cortexa57_extra_costs.
13100
5525ed38
JJ
131012014-03-05 Jakub Jelinek <jakub@redhat.com>
13102
13103 PR lto/60404
13104 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
13105 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
13106 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
13107 cost for in_lto_p.
13108
0c72fa78
H
131092014-03-04 Heiher <r@hev.cc>
13110
13111 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
13112 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
13113
66b03f81
UB
131142014-03-04 Uros Bizjak <ubizjak@gmail.com>
13115
13116 * config/i386/predicates.md (const2356_operand): Change to ...
13117 (const2367_operand): ... this.
13118 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
13119 const2367_operand.
13120 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
13121 (*avx512pf_scatterpf<mode>sf): Ditto.
13122 (avx512pf_scatterpf<mode>df): Ditto.
13123 (*avx512pf_scatterpf<mode>df_mask): Ditto.
13124 (*avx512pf_scatterpf<mode>df): Ditto.
13125 * config/i386/i386.c (ix86_expand_builtin): Update
13126 incorrect hint operand error message.
13127
3c24e842
RB
131282014-03-04 Richard Biener <rguenther@suse.de>
13129
13130 * lto-section-in.c (lto_get_section_data): Fix const cast.
66b03f81 13131
3740bda6
PM
131322014-03-04 Paulo Matos <paulo@matos-sorge.com>
13133
0bb29a05
UB
13134 * tree-streamer.c (record_common_node): Assert we don't record
13135 nodes with type double.
13136 (preload_common_node): Skip type double, complex double and double
13137 pointer since it is now frontend dependent due to fshort-double option.
3740bda6 13138
91856735
RB
131392014-03-04 Richard Biener <rguenther@suse.de>
13140
13141 PR lto/60405
66b03f81 13142 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
91856735
RB
13143 (lto_input_toplevel_asms): Likewise.
13144 * lto-section-in.c (lto_get_section_data): Instead do it here
13145 for every section.
66b03f81 13146
b75f28e1
RB
131472014-03-04 Richard Biener <rguenther@suse.de>
13148
13149 PR tree-optimization/60382
13150 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
13151 dead PHIs a reduction.
13152
dd96e83a
UB
131532014-03-03 Uros Bizjak <ubizjak@gmail.com>
13154
13155 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
13156 hint value.
13157 (_mm_prefetch): Move out of GCC target("sse") pragma.
13158 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
13159 GCC target("prfchw") pragma.
13160 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
13161 for locality <= 2.
13162 * config/i386/i386.c (ix86_option_override_internal): Enable
13163 -mprfchw with -mprefetchwt1.
13164
220c1a51
JR
131652014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
13166
13167 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
13168 Mark as varying.
13169
212bfe71
JR
131702014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
13171
13172 * opts.h (CL_PCH_IGNORE): Define.
13173 * targhooks.c (option_affects_pch_p):
13174 Return false for options that have CL_PCH_IGNORE set.
13175 * opt-functions.awk: Process PchIgnore.
13176 * doc/options.texi: Document PchIgnore.
13177
7a3d0a39
JR
13178 * config/arc/arc.opt (misize): Add PchIgnore property.
13179
b46ed885
BS
131802014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13181
13182 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
13183 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
13184 constraint on constants to permit them being loaded into
13185 GENERAL_REGS or BASE_REGS.
13186
c6f709ec
NC
131872014-03-03 Nick Clifton <nickc@redhat.com>
13188
13189 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
13190 anti-cacnonical alternatives.
13191 (negandhi3_real): New pattern.
13192 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
13193
5752f78f
SKS
131942014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13195
13196 * config/avr/avr-mcus.def: Remove atxmega16x1.
13197 * config/avr/avr-tables.opt: Regenerate.
13198 * config/avr/t-multilib: Regenerate.
13199 * doc/avr-mmcu.texi: Regenerate.
13200
0afe7332 132012014-03-03 Tobias Grosser <tobias@grosser.es>
dd96e83a 13202 Mircea Namolaru <mircea.namolaru@inria.fr>
0afe7332
TG
13203
13204 PR tree-optimization/58028
13205 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
13206 scalar dimensions.
13207
3416dd87
RR
132082014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13209
13210 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
13211 not handled by recognizers.
13212
79c7fda6
JJ
132132014-03-03 Jakub Jelinek <jakub@redhat.com>
13214
13215 PR middle-end/60175
13216 * function.c (expand_function_end): Don't emit
13217 clobber_return_register sequence if clobber_after is a BARRIER.
13218 * cfgexpand.c (construct_exit_block): Append instructions before
13219 return_label to prev_bb.
13220
715a5c85
BS
132212014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13222
13223 * config/rs6000/constraints.md: Document reserved use of "wc".
13224
9ffbf271
JH
132252014-03-02 Jan Hubicka <hubicka@ucw.cz>
13226
13227 PR ipa/60150
13228 * ipa.c (function_and_variable_visibility): When dissolving comdat
13229 group, also set all symbols to local.
13230
993df21e 132312014-03-02 Jan Hubicka <hubicka@ucw.cz>
c6f709ec 13232
993df21e
JH
13233 PR ipa/60306
13234
13235 Revert:
40c0a159 13236 2013-12-14 Jan Hubicka <jh@suse.cz>
0bb29a05
UB
13237 PR middle-end/58477
13238 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
993df21e 13239
9b0af790
JB
132402014-03-02 Jon Beniston <jon@beniston.com>
13241
13242 PR bootstrap/48230
13243 PR bootstrap/50927
13244 PR bootstrap/52466
13245 PR target/46898
13246 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
c6f709ec 13247 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
9b0af790 13248 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
c6f709ec 13249 (simple_return, *simple_return): New patterns
9b0af790
JB
13250 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
13251 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
13252
c582aac9
PC
132532014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
13254
13255 * dwarf2out.c (gen_subprogram_die): Tidy.
13256
19305875
OE
132572014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
13258
13259 PR target/60071
13260 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
13261 (*mov_t_msb_neg_negc): ... this new insn.
13262
570215f9
JM
132632014-02-28 Jason Merrill <jason@redhat.com>
13264
13265 PR c++/58678
13266 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
13267 function.
13268
c5b001b5
PC
132692014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
13270
13271 PR c++/60314
13272 * dwarf2out.c (decltype_auto_die): New static.
13273 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
13274 (gen_type_die_with_usage): Handle 'decltype(auto)'.
13275 (is_cxx_auto): Likewise.
13276
5750e120
IB
132772014-02-28 Ian Bolton <ian.bolton@arm.com>
13278
13279 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
13280 we are not using general regs only.
13281
fba7c564
RB
132822014-02-28 Richard Biener <rguenther@suse.de>
13283
13284 PR target/60280
13285 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
13286 previous fix and only allow to remove trivial pre-headers
13287 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
84d7e312 13288 (remove_forwarder_block): Properly update the latch of a loop.
fba7c564 13289
4bb66ef3 132902014-02-28 Alexandre Oliva <aoliva@redhat.com>
0618dee5
AO
13291
13292 PR debug/59992
13293 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
13294 (cselib_preserved_hash_table): New.
13295 (preserve_constants_and_equivs): Move preserved vals to it.
13296 (cselib_find_slot): Look it up first.
13297 (cselib_init): Initialize it.
13298 (cselib_finish): Release it.
13299 (dump_cselib_table): Dump it.
13300
4bb66ef3 133012014-02-28 Alexandre Oliva <aoliva@redhat.com>
22414f3f
AO
13302
13303 PR debug/59992
13304 * cselib.c (remove_useless_values): Skip to avoid quadratic
13305 behavior if the condition moved from...
13306 (cselib_process_insn): ... here holds.
13307
4bb66ef3 133082014-02-28 Alexandre Oliva <aoliva@redhat.com>
2e084917
AO
13309
13310 PR debug/57232
13311 * var-tracking.c (vt_initialize): Apply the same condition to
13312 preserve the CFA base value.
13313
9910c53c
JY
133142014-02-28 Joey Ye <joey.ye@arm.com>
13315
13316 PR target/PR60169
13317 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
13318 if reload in progress or completed.
13319
ef271341
TB
133202014-02-28 Tobias Burnus <burnus@net-b.de>
13321
13322 PR middle-end/60147
13323 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
13324 NAMELIST_DECL.
13325
c4f6267b
L
133262014-02-27 H.J. Lu <hongjiu.lu@intel.com>
13327
13328 * doc/tm.texi.in (Condition Code Status): Update documention for
13329 relative locations of cc0-setter and cc0-user.
13330
7a76df7f
JL
133312014-02-27 Jeff Law <law@redhat.com>
13332
13333 PR rtl-optimization/52714
13334 * combine.c (try_combine): When splitting an unrecognized PARALLEL
13335 into two independent simple sets, if I3 is a jump, ensure the
84d7e312 13336 pattern we place into I3 is a (set (pc) ...).
7a76df7f 13337
728acca0
MP
133382014-02-27 Mikael Pettersson <mikpe@it.uu.se>
13339 Jeff Law <law@redhat.com>
13340
13341 PR rtl-optimization/49847
13342 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
13343 are in different blocks.
13344 * doc/tm.texi (Condition Code Status): Update documention for
13345 relative locations of cc0-setter and cc0-user.
13346
93aaa05d
VM
133472014-02-27 Vladimir Makarov <vmakarov@redhat.com>
13348
13349 PR target/59222
13350 * lra.c (lra_emit_add): Check SUBREG too.
13351
1ee6eb01
AS
133522014-02-27 Andreas Schwab <schwab@suse.de>
13353
13354 * config/m68k/m68k.c (m68k_option_override): Disable
13355 -flive-range-shrinkage for classic m68k.
13356 (m68k_override_options_after_change): Likewise.
13357
bb0d8e84
MP
133582014-02-27 Marek Polacek <polacek@redhat.com>
13359
13360 PR middle-end/59223
13361 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
13362 -Wmaybe-uninitialized.
13363
3157b879
AM
133642014-02-27 Alan Modra <amodra@gmail.com>
13365
3e17cad2 13366 PR target/57936
3157b879
AM
13367 * reload1.c (emit_input_reload_insns): When reload_override_in,
13368 set old to rl->in_reg when rl->in_reg is a subreg.
13369
bb750f4f
RB
133702014-02-26 Richard Biener <rguenther@suse.de>
13371
13372 PR bootstrap/60343
13373 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
13374
22c8aab3
IT
133752014-02-25 Ilya Tocar <ilya.tocar@intel.com>
13376
13377 * common/config/i386/predicates.md (const1256_operand): Remove.
13378 (const2356_operand): New.
13379 (const_1_to_2_operand): Remove.
13380 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
13381 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
13382 (*avx512pf_gatherpf<mode>sf): Ditto.
13383 (avx512pf_gatherpf<mode>df): Ditto.
13384 (*avx512pf_gatherpf<mode>df_mask): Ditto.
13385 (*avx512pf_gatherpf<mode>df): Ditto.
13386 (avx512pf_scatterpf<mode>sf): Ditto.
13387 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
13388 (*avx512pf_scatterpf<mode>sf): Ditto.
13389 (avx512pf_scatterpf<mode>df): Ditto.
13390 (*avx512pf_scatterpf<mode>df_mask): Ditto.
13391 (*avx512pf_scatterpf<mode>df): Ditto.
13392 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
13393
260d3642
IT
133942014-02-26 Ilya Tocar <ilya.tocar@intel.com>
13395
13396 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
13397 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
13398 (_mm512_mask_testn_epi64_mask): Move to ...
13399 * config/i386/avx512cdintrin.h: Here.
13400 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
13401 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
13402 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
13403 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
13404 TARGET_AVX512F from TARGET_AVX512CD.
13405
477145c8
RB
134062014-02-26 Richard Biener <rguenther@suse.de>
13407
13408 PR ipa/60327
13409 * ipa.c (walk_polymorphic_call_targets): Properly guard
13410 call to inline_update_overall_summary.
13411
a3afdbb8
BC
134122014-02-26 Bin Cheng <bin.cheng@arm.com>
13413
13414 PR target/60280
84d7e312
UB
13415 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
13416 and latches only if requested. Fix latch if it is removed.
a3afdbb8
BC
13417 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
13418 LOOPS_HAVE_PREHEADERS.
13419
b8a542c6
AP
134202014-02-25 Andrew Pinski <apinski@cavium.com>
13421
13422 * builtins.c (expand_builtin_thread_pointer): Create a new target
13423 when the target is NULL.
13424
88def637
VM
134252014-02-25 Vladimir Makarov <vmakarov@redhat.com>
13426
13427 PR rtl-optimization/60317
13428 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
13429 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
13430 * lra-assigns.c: Include params.h.
13431 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
13432 other reload pseudos considerations.
13433
68908a06
BS
134342014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13435
cf36d2cc
WS
13436 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
13437 to use canonical form for nor<mode>3.
68908a06 13438
db57bbc9
KT
134392014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13440
13441 PR target/55426
13442 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
13443 conversions.
13444
43b3f52f
IT
134452014-02-25 Ilya Tocar <ilya.tocar@intel.com>
13446
13447 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
13448 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
13449 (ix86_handle_option): Handle OPT_mprefetchwt1.
13450 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
13451 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13452 PREFETCHWT1 CPUID.
13453 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13454 OPTION_MASK_ISA_PREFETCHWT1.
13455 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
13456 (PTA_PREFETCHWT1): New.
13457 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
13458 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
84d7e312 13459 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
43b3f52f
IT
13460 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
13461 (*prefetch_avx512pf_<mode>_: Change into ...
84d7e312 13462 (*prefetch_prefetchwt1_<mode>: This.
43b3f52f
IT
13463 * config/i386/i386.opt (mprefetchwt1): New.
13464 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
13465 (_mm_prefetch): Handle intent to write.
13466 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
13467
84053e02
RB
134682014-02-25 Richard Biener <rguenther@suse.de>
13469
13470 PR middle-end/60291
13471 * emit-rtl.c (mem_attrs_htab): Remove.
13472 (mem_attrs_htab_hash): Likewise.
13473 (mem_attrs_htab_eq): Likewise.
84d7e312 13474 (set_mem_attrs): Always allocate new mem-attrs when something changed.
84053e02
RB
13475 (init_emit_once): Do not allocate mem_attrs_htab.
13476
4094757e
RB
134772014-02-25 Richard Biener <rguenther@suse.de>
13478
13479 PR lto/60319
13480 * lto-opts.c (lto_write_options): Output non-explicit conservative
13481 -fwrapv, -fno-trapv and -fno-strict-overflow.
13482 * lto-wrapper.c (merge_and_complain): Handle merging those options.
13483 (run_gcc): And pass them through.
13484
41b2d514 134852014-02-25 Andrey Belevantsev <abel@ispras.ru>
43b3f52f 13486
41b2d514
AB
13487 * sel-sched.c (calculate_new_fences): New parameter ptime.
13488 Calculate it as a maximum over all fence cycles.
13489 (sel_sched_region_2): Adjust the call to calculate_new_fences.
13490 Print the final schedule timing when sched_verbose.
13491
c1c99405
AB
134922014-02-25 Andrey Belevantsev <abel@ispras.ru>
13493
13494 PR rtl-optimization/60292
13495 * sel-sched.c (fill_vec_av_set): Do not reset target availability
13496 bit fot the fence instruction.
13497
1d9def42
AD
134982014-02-24 Alangi Derick <alangiderick@gmail.com>
13499
13500 * calls.h: Fix typo in comment.
13501
325fefe0
JDA
135022014-02-24 John David Anglin <danglin@gcc.gnu.org>
13503
13504 * config/pa/pa.c (pa_output_move_double): Don't valididate when
13505 adjusting offsetable addresses.
13506
ad43b47a
GW
135072014-02-24 Guozhi Wei <carrot@google.com>
13508
13509 * sparseset.h (sparseset_pop): Fix the wrong index.
13510
341c653c
WL
135112014-02-24 Walter Lee <walt@tilera.com>
13512
13513 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
13514 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
13515 triplet.
13516 * common/config/tilegx/tilegx-common.c
13517 (TARGET_DEFAULT_TARGET_FLAGS): Define.
13518 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
13519 (LINK_SPEC): Ditto.
13520 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
13521 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
13522 (tilegx_gimplify_va_arg_expr): Handle big endian.
13523 (tilegx_expand_unaligned_load): Ditto.
13524 (tilegx_expand_unaligned_store): Ditto.
13525 (TARGET_RETURN_IN_MSB): New.
13526 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
13527 (TARGET_ENDIAN_DEFAULT): New.
13528 (TARGET_BIG_ENDIAN): Handle big endian.
13529 (BYTES_BIG_ENDIAN): Ditto.
13530 (WORDS_BIG_ENDIAN): Ditto.
13531 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
13532 (ENDIAN_SPEC): New.
13533 (EXTRA_SPECS): New.
13534 * config/tilegx/tilegx.md (extv): Handle big endian.
13535 (extzv): Ditto.
13536 (insn_st<n>): Ditto.
13537 (insn_st<n>_add<bitsuffix>): Ditto.
13538 (insn_stnt<n>): Ditto.
13539 (insn_stnt<n>_add<bitsuffix>):Ditto.
13540 (vec_interleave_highv8qi): Handle big endian.
13541 (vec_interleave_highv8qi_be): New.
13542 (vec_interleave_highv8qi_le): New.
13543 (insn_v1int_h): Handle big endian.
13544 (vec_interleave_lowv8qi): Handle big endian.
13545 (vec_interleave_lowv8qi_be): New.
13546 (vec_interleave_lowv8qi_le): New.
13547 (insn_v1int_l): Handle big endian.
13548 (vec_interleave_highv4hi): Handle big endian.
13549 (vec_interleave_highv4hi_be): New.
13550 (vec_interleave_highv4hi_le): New.
13551 (insn_v2int_h): Handle big endian.
13552 (vec_interleave_lowv4hi): Handle big endian.
13553 (vec_interleave_lowv4hi_be): New.
13554 (vec_interleave_lowv4hi_le): New.
13555 (insn_v2int_l): Handle big endian.
13556 (vec_interleave_highv2si): Handle big endian.
13557 (vec_interleave_highv2si_be): New.
13558 (vec_interleave_highv2si_le): New.
13559 (insn_v4int_h): Handle big endian.
13560 (vec_interleave_lowv2si): Handle big endian.
13561 (vec_interleave_lowv2si_be): New.
13562 (vec_interleave_lowv2si_le): New.
13563 (insn_v4int_l): Handle big endian.
13564 * config/tilegx/tilegx.opt (mbig-endian): New option.
13565 (mlittle-endian): New option.
13566 * doc/install.texi: Document tilegxbe-linux.
13567 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
13568
f3fec19f
MJ
135692014-02-24 Martin Jambor <mjambor@suse.cz>
13570
13571 PR ipa/60266
13572 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
13573 there are no parameter descriptors.
13574
9039622a
AB
135752014-02-24 Andrey Belevantsev <abel@ispras.ru>
13576
13577 PR rtl-optimization/60268
13578 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
13579 initialization to ...
13580 (sched_rgn_init): ... here.
13581 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
13582
4bb66ef3 135832014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
e7e7bc4b 13584
9039622a
AB
13585 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
13586 names.
e7e7bc4b 13587
4bb66ef3 135882014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
8011ccca
ME
13589
13590 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
13591 definition.
13592
4bb66ef3 135932014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
c332c7df 13594
84d7e312
UB
13595 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
13596 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
c332c7df 13597
4bb66ef3 135982014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
d5a19af1
DH
13599
13600 * config/microblaze/predicates.md: Add cmp_op predicate.
84d7e312 13601 * config/microblaze/microblaze.md: Add branch_compare instruction
d5a19af1 13602 which uses cmp_op predicate and emits cmp insn before branch.
84d7e312 13603 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
d5a19af1
DH
13604 to microblaze_expand_conditional_branch and consolidate logic.
13605 (microblaze_expand_conditional_branch): emit branch_compare
13606 insn instead of handling cmp op separate from branch insn.
13607
34c25d23
BS
136082014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13609
13610 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
13611 to permit subregs.
13612
a6eecdc1
BS
136132014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13614
d5a19af1
DH
13615 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
13616 define_insn with define_expand and new define_insn
13617 *altivec_lve<VI_char>x_internal.
13618 (altivec_stve<VI_char>x): Replace define_insn with define_expand
13619 and new define_insn *altivec_stve<VI_char>x_internal.
13620 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
13621 prototype.
13622 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
13623 lve*x built-ins.
13624 (altivec_expand_stvex_be): New function.
a6eecdc1 13625
8aa7d1fc
JR
136262014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
13627
13628 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
84d7e312 13629 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
8aa7d1fc
JR
13630 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
13631 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
13632
a810ee82
VM
136332014-02-21 Vladimir Makarov <vmakarov@redhat.com>
13634
13635 PR target/60298
13636 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
13637 instead of emit_move_insn.
13638
b90ab1ba
BS
136392014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13640
13641 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
13642 vspltw with vsldoi.
13643 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
13644 gen_altivec_vsumsws.
13645
1af73690
WS
136462014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13647
13648 * config/rs6000/altivec.md (altivec_lvxl): Rename as
84d7e312 13649 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
1af73690
WS
13650 (altivec_lvxl_<mode>): New define_expand incorporating
13651 -maltivec=be semantics where needed.
13652 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
13653 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
13654 semantics where needed.
13655 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
13656 (altivec_stvx_<mode>): New define_expand incorporating
13657 -maltivec=be semantics where needed.
13658 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
13659 VM2 iterator instead of V4SI.
13660 (altivec_stvxl_<mode>): New define_expand incorporating
13661 -maltivec=be semantics where needed.
13662 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
13663 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
84d7e312
UB
13664 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
13665 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
13666 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
1af73690
WS
13667 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
13668 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
13669 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
13670 ALTIVEC_BUILTIN_STVXL.
84d7e312 13671 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
1af73690
WS
13672 (altivec_expand_stvx_be): Likewise.
13673 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
13674 (altivec_expand_lvx_be): Likewise.
13675 (altivec_expand_stvx_be): Likewise.
13676 (altivec_expand_builtin): Add cases for
13677 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
13678 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
13679 (altivec_init_builtins): Add definitions for
13680 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
84d7e312 13681 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
1af73690 13682
0a39d07b
CM
136832014-02-21 Catherine Moore <clm@codesourcery.com>
13684
13685 * doc/invoke.texi (mvirt, mno-virt): Document.
13686 * config/mips/mips.opt (mvirt): New option.
13687 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
13688
f2556b68
RB
136892014-02-21 Richard Biener <rguenther@suse.de>
13690
13691 PR tree-optimization/60276
13692 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
13693 (STMT_VINFO_MIN_NEG_DIST): New macro.
13694 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
13695 STMT_VINFO_MIN_NEG_DIST.
13696 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
13697 made for negative dependence distances still hold.
13698
32417082
RB
136992014-02-21 Richard Biener <rguenther@suse.de>
13700
13701 PR middle-end/60291
13702 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
13703 DECL_INITIAL for globals not in the current function context.
13704
92261ce0
JJ
137052014-02-21 Jakub Jelinek <jakub@redhat.com>
13706
13707 PR tree-optimization/56490
13708 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
13709 * tree-ssa-uninit.c: Include params.h.
13710 (compute_control_dep_chain): Add num_calls argument, return false
13711 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
13712 num_calls to recursive call.
13713 (find_predicates): Change dep_chain into normal array,
13714 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
13715 variable and adjust compute_control_dep_chain caller.
13716 (find_def_preds): Likewise.
13717
aa6ef874
TS
137182014-02-21 Thomas Schwinge <thomas@codesourcery.com>
13719
13720 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
13721 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
13722
4b156fd0
NC
137232014-02-21 Nick Clifton <nickc@redhat.com>
13724
13725 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
13726 (pushhi1): Likewise.
13727 (popqi1): Add mode to pre_dec.
13728 (pophi1): Likewise.
13729
dffd569e
JJ
137302014-02-21 Jakub Jelinek <jakub@redhat.com>
13731
13732 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
13733 mode for mask of V8SFmode permutation.
13734
2fdc29e8
RH
137352014-02-20 Richard Henderson <rth@redhat.com>
13736
13737 PR c++/60272
13738 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
13739 a new pseudo for OLDVAL.
13740
aa637f66
JJ
137412014-02-20 Jakub Jelinek <jakub@redhat.com>
13742
13743 PR target/57896
13744 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
13745 gen_reg_rtx if d->testing_p.
13746 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
13747 if d->testing_p and we will certainly return true.
13748 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
13749 if d->testing_p.
13750
004a7e45
UB
137512014-02-20 Uros Bizjak <ubizjak@gmail.com>
13752
13753 * emit-rtl.c (gen_reg_rtx): Assert that
13754 crtl->emit.regno_pointer_align_length is non-zero.
13755
137562014-02-20 Richard Henderson <rth@redhat.com>
672ce939
RH
13757
13758 PR c++/60272
13759 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
13760 on failure the store back into EXPECT.
13761
95ce7613
CLT
137622014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
13763 Sandra Loosemore <sandra@codesourcery.com>
13764
13765 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
84d7e312
UB
13766 * config/nios2/nios2.c (nios2_function_profiler): Add
13767 -fPIC (flag_pic == 2) support.
95ce7613
CLT
13768 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
13769 (nios2_large_offset_p): New function.
13770 (nios2_unspec_reloc_p): Move up position, update to use
13771 nios2_large_offset_p.
13772 (nios2_unspec_address): Remove function.
13773 (nios2_unspec_offset): New function.
13774 (nios2_large_got_address): New function.
13775 (nios2_got_address): Add large offset support.
13776 (nios2_legitimize_tls_address): Update usage of removed and new
13777 functions.
13778 (nios2_symbol_binds_local_p): New function.
13779 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
13780 (nios2_legitimize_address): Update to use nios2_large_offset_p.
13781 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
13782 (nios2_print_operand): Merge H/L processing, add hiadj/lo
13783 processing for (const (unspec ...)).
13784 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
13785
efd2d3c8
RB
137862014-02-20 Richard Biener <rguenther@suse.de>
13787
13788 * tree-cfg.c (replace_uses_by): Mark altered BBs before
13789 doing the substitution.
004a7e45 13790 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
efd2d3c8 13791
9576e7b1
MJ
137922014-02-20 Martin Jambor <mjambor@suse.cz>
13793
13794 PR ipa/55260
13795 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
13796 info when checking whether lattices are bottom.
13797
25fe40b0
RB
137982014-02-20 Richard Biener <rguenther@suse.de>
13799
13800 PR middle-end/60221
13801 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
13802 regions at -O0.
13803
bd936951
JH
138042014-02-20 Jan Hubicka <hubicka@ucw.cz>
13805
13806 PR ipa/58555
004a7e45
UB
13807 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
13808 parameter specifying the scaling.
bd936951
JH
13809 (inline_call): Update.
13810 (want_inline_recursively): Guard division by zero.
13811 (recursive_inlining): Update.
13812 * ipa-inline.h (clone_inlined_nodes): Update.
13813
3c898e1a
IT
138142014-02-20 Ilya Tocar <ilya.tocar@intel.com>
13815
13816 PR target/60204
13817 * config/i386/i386.c (classify_argument): Pass structures of size
13818 64 bytes or less in register.
13819
df62b4af 138202014-02-20 Ilya Tocar <ilya.tocar@intel.com>
004a7e45 13821 Kirill Yukhin <kirill.yukhin@intel.com>
df62b4af
IT
13822
13823 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
13824 (_mm_rcp28_round_ss): Ditto.
13825 (_mm_rsqrt28_round_sd): Ditto.
13826 (_mm_rsqrt28_round_ss): Ditto.
13827 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
13828 (_mm_rcp14_round_ss): Ditto.
13829 (_mm_rsqrt14_round_sd): Ditto.
13830 (_mm_rsqrt14_round_ss): Ditto.
13831 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
13832 the first input operand, get rid of match_dup.
13833 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
13834 attribute to sse.
13835 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
13836 Ditto.
13837 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
13838 operand as the first input operand, set type attribute.
13839 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
13840 Set type attribute.
13841 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
13842 operand as the first input operand, set type attribute.
13843
9254148e
BS
138442014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13845
13846 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
13847 bit of zero.
13848
fff91793
L
138492014-02-19 H.J. Lu <hongjiu.lu@intel.com>
13850
13851 PR target/60207
13852 * config/i386/i386.c (construct_container): Remove TFmode check
13853 for X86_64_INTEGER_CLASS.
13854
6aa5b4b8
UB
138552014-02-19 Uros Bizjak <ubizjak@gmail.com>
13856
13857 PR target/59794
13858 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
13859 only when -Wpsabi is enabled.
13860
aadc1c43
MHD
138612014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
13862
13863 PR target/59799
13864 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
13865 passing arrays in registers are the same as for structs, so remove the
13866 special case for them.
13867
322913f8
EB
138682014-02-19 Eric Botcazou <ebotcazou@adacore.com>
13869
13870 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
13871 destination type, extract only the valid bits if the source type is not
13872 integral and has a different mode.
13873
fd9710dc
RB
138742014-02-19 Richard Biener <rguenther@suse.de>
13875
13876 PR ipa/60243
13877 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
13878 for all calls.
13879
4df65a85
RB
138802014-02-19 Richard Biener <rguenther@suse.de>
13881
13882 PR ipa/60243
13883 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
13884 (ipa_modify_call_arguments): Emit an argument load explicitely and
13885 preserve virtual SSA form there and for the replacement call.
13886 Do not update SSA form nor free dominance info.
13887
7fea98d8
JH
138882014-02-18 Jan Hubicka <hubicka@ucw.cz>
13889
13890 * ipa.c (function_and_variable_visibility): Also clear WEAK
13891 flag when disolving COMDAT_GROUP.
13892
0a2550e7
JH
138932014-02-18 Jan Hubicka <hubicka@ucw.cz>
13894
13895 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
13896 * ipa-prop.c (ipa_set_jf_known_type): Return early when
13897 not devirtualizing.
13898 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
13899 do more sanity checks.
13900 (detect_type_change): Return true when giving up early.
13901 (compute_complex_assign_jump_func): Fix type parameter of
13902 ipa_set_ancestor_jf.
13903 (compute_complex_ancestor_jump_func): Likewise.
13904 (update_jump_functions_after_inlining): Fix updating of
13905 ancestor function.
6aa5b4b8 13906 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
0a2550e7 13907
2dbe8b70
JH
139082014-02-18 Jan Hubicka <hubicka@ucw.cz>
13909
13910 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
13911 inline clones when edge disappears.
13912
b9809dc4
MM
139132014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
13914
13915 PR target/60203
13916 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
13917 Split 64-bit moves into 2 patterns. Do not allow the use of
13918 direct move for TDmode in little endian, since the decimal value
13919 has little endian bytes within a word, but the 64-bit pieces are
13920 ordered in a big endian fashion, and normal subreg's of TDmode are
13921 not allowed.
13922 (mov<mode>_64bit_dm): Likewise.
13923 (movtd_64bit_nodm): Likewise.
13924
bababbfb
EB
139252014-02-18 Eric Botcazou <ebotcazou@adacore.com>
13926
13927 PR tree-optimization/60174
13928 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
13929 statement of an SSA_NAME that occurs in an abnormal PHI node.
13930
70aacc97
JJ
139312014-02-18 Jakub Jelinek <jakub@redhat.com>
13932
13933 PR sanitizer/60142
13934 * final.c (SEEN_BB): Remove.
13935 (SEEN_NOTE, SEEN_EMITTED): Renumber.
13936 (final_scan_insn): Don't force_source_line on second
13937 NOTE_INSN_BASIC_BLOCK.
13938
223cdd15
UB
139392014-02-18 Uros Bizjak <ubizjak@gmail.com>
13940
13941 PR target/60205
13942 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
13943 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
13944 (type_natural_mode): Warn ABI change when %zmm register is not
13945 available for AVX512F vector value passing.
13946
48810be0
KT
139472014-02-18 Kai Tietz <ktietz@redhat.com>
13948
13949 PR target/60193
223cdd15
UB
13950 * config/i386/i386.c (ix86_expand_prologue): Use value in
13951 rax register as displacement when restoring %r10 or %rax.
13952 Fix wrong offset when restoring both registers.
48810be0 13953
20afe640
EB
139542014-02-18 Eric Botcazou <ebotcazou@adacore.com>
13955
13956 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
13957 assertion with conditional return.
13958
d0b50387
JJ
139592014-02-18 Jakub Jelinek <jakub@redhat.com>
13960 Uros Bizjak <ubizjak@gmail.com>
13961
13962 PR driver/60233
13963 * config/i386/driver-i386.c (host_detect_local_cpu): If
13964 YMM state is not saved by the OS, also clear has_f16c. Move
13965 CPUID 0x80000001 handling before YMM state saving checking.
13966
c4cd7435
AB
139672014-02-18 Andrey Belevantsev <abel@ispras.ru>
13968
13969 PR rtl-optimization/58960
13970 * haifa-sched.c (alloc_global_sched_pressure_data): New,
13971 factored out from ...
13972 (sched_init): ... here.
13973 (free_global_sched_pressure_data): New, factored out from ...
13974 (sched_finish): ... here.
13975 * sched-int.h (free_global_sched_pressure_data): Declare.
13976 * sched-rgn.c (nr_regions_initial): New static global.
13977 (haifa_find_rgns): Initialize it.
13978 (schedule_region): Disable sched-pressure for the newly
13979 generated regions.
13980
f0281fde
RB
139812014-02-17 Richard Biener <rguenther@suse.de>
13982
13983 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
13984 release SSA defs of pattern stmts.
13985
c742772c
RB
139862014-02-17 Richard Biener <rguenther@suse.de>
13987
13988 * tree-inline.c (expand_call_inline): Release the virtual
13989 operand defined by the call we are about to inline.
13990
0492158e
RB
139912014-02-17 Richard Biener <rguenther@suse.de>
13992
13993 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
13994
583a9919
KY
139952014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
13996 Ilya Tocar <ilya.tocar@intel.com>
13997
13998 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
13999 arguments order in builtin.
14000 (_mm512_permutexvar_epi64): Ditto.
14001 (_mm512_mask_permutexvar_epi64): Ditto
14002 (_mm512_maskz_permutexvar_epi32): Ditto
14003 (_mm512_permutexvar_epi32): Ditto
14004 (_mm512_mask_permutexvar_epi32): Ditto
14005
d737743f
BS
140062014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14007
223cdd15 14008 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
d737743f
BS
14009 (p8_vmrgow): Likewise.
14010
54c4bfd7
BS
140112014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14012
14013 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
14014 endian targets.
14015
518fea64
MM
140162014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
14017
14018 PR target/60203
14019 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
14020 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
14021 into 64-bit and 32-bit moves. On 64-bit moves, add support for
14022 using direct move instructions on ISA 2.07. Also adjust
14023 instruction length for 64-bit.
14024 (mov<mode>_64bit, TFmode/TDmode): Likewise.
14025 (mov<mode>_32bit, TFmode/TDmode): Likewise.
14026
61640916
AM
140272014-02-15 Alan Modra <amodra@gmail.com>
14028
14029 PR target/58675
14030 PR target/57935
14031 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
14032 find_replacement on parts of insn rtl that might be reloaded.
14033
a2b33cc3
RB
140342014-02-15 Richard Biener <rguenther@suse.de>
14035
14036 PR tree-optimization/60183
223cdd15 14037 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
a2b33cc3
RB
14038 (tree_ssa_phiprop): Calculate and free post-dominators.
14039
059742a4
JL
140402014-02-14 Jeff Law <law@redhat.com>
14041
14042 PR rtl-optimization/60131
14043 * ree.c (get_extended_src_reg): New function.
223cdd15 14044 (combine_reaching_defs): Use it rather than assuming location of REG.
059742a4
JL
14045 (find_and_remove_re): Verify first operand of extension is
14046 a REG before adding the insns to the copy list.
14047
88f7c49a
RM
140482014-02-14 Roland McGrath <mcgrathr@google.com>
14049
14050 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
14051 * configure: Regenerated.
14052 * config.in: Regenerated.
14053 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
14054 instead of ASM_SHORT.
14055
2ae577fd
VM
140562014-02-14 Vladimir Makarov <vmakarov@redhat.com>
14057 Richard Earnshaw <rearnsha@arm.com>
14058
14059 PR rtl-optimization/59535
14060 * lra-constraints.c (process_alt_operands): Encourage alternative
14061 when unassigned pseudo class is superset of the alternative class.
14062 (inherit_reload_reg): Don't inherit when optimizing for code size.
14063 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
14064 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
14065 modes not less than 4 for Thumb1.
14066
5d88af08
KM
140672014-02-14 Kyle McMartin <kyle@redhat.com>
14068
14069 PR pch/60010
14070 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
14071
3069b421
RB
140722014-02-14 Richard Biener <rguenther@suse.de>
14073
14074 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
14075 (get_frame_arg): Drop the assert with langhook types_compatible_p.
14076 Do not strip INDIRECT_REFs.
14077
1966fd99
RB
140782014-02-14 Richard Biener <rguenther@suse.de>
14079
14080 PR lto/60179
14081 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
14082 DECL_FUNCTION_SPECIFIC_TARGET.
14083 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
14084 * tree-streamer-out.c (pack_ts_target_option): Remove.
223cdd15 14085 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
1966fd99
RB
14086 (write_ts_function_decl_tree_pointers): Do not stream
14087 DECL_FUNCTION_SPECIFIC_TARGET.
14088 * tree-streamer-in.c (unpack_ts_target_option): Remove.
14089 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
14090 (lto_input_ts_function_decl_tree_pointers): Do not stream
14091 DECL_FUNCTION_SPECIFIC_TARGET.
14092
b010d601
JJ
140932014-02-14 Jakub Jelinek <jakub@redhat.com>
14094
223cdd15 14095 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
b010d601
JJ
14096 (get_initial_def_for_induction, vectorizable_induction): Ignore
14097 debug stmts when looking for exit_phi.
14098 (vectorizable_live_operation): Fix up condition.
14099
f2dafb91
CJW
141002014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
14101
14102 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
14103 nreverse() because it changes the content of original tree list.
14104
59043e75
CJW
141052014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
14106
14107 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
14108 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
14109
810f736f
CJW
141102014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
14111
14112 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
14113 GNU coding standards.
14114
1a025bbf
JJ
141152014-02-13 Jakub Jelinek <jakub@redhat.com>
14116
14117 PR debug/60152
14118 * dwarf2out.c (gen_subprogram_die): Don't call
14119 add_calling_convention_attribute if subr_die is old_die.
14120
69479ebd
SS
141212014-02-13 Sharad Singhai <singhai@google.com>
14122
14123 * doc/optinfo.texi: Fix order of nodes.
14124
1287ae50
UB
141252014-02-13 Uros Bizjak <ubizjak@gmail.com>
14126
14127 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
14128 operands[2], not operands[3].
14129
43372236
RB
141302014-02-13 Richard Biener <rguenther@suse.de>
14131
14132 PR bootstrap/59878
14133 * doc/install.texi (ISL): Update recommended version to 0.12.2,
14134 mention the possibility of an in-tree build.
14135 (CLooG): Update recommended version to 0.18.1, mention the
14136 possibility of an in-tree build and clarify that the ISL
14137 bundled with CLooG does not work.
14138
a4d70cfa
JJ
141392014-02-13 Jakub Jelinek <jakub@redhat.com>
14140
14141 PR target/43546
14142 * expr.c (compress_float_constant): If x is a hard register,
14143 extend into a pseudo and then move to x.
14144
e697d119
DV
141452014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
14146
14147 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
14148 caused by bad second argument to warning_at() with -mhotpatch and
14149 nested functions (e.g. with gfortran).
14150
9f8da907
RS
141512014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
14152
14153 * opts.c (option_name): Remove "enabled by default" rider.
14154
0fdd1196
JDA
141552014-02-12 John David Anglin <danglin@gcc.gnu.org>
14156
14157 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
14158
0544c448
L
141592014-02-12 H.J. Lu <hongjiu.lu@intel.com>
14160 Uros Bizjak <ubizjak@gmail.com>
14161
14162 PR target/60151
1287ae50 14163 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
0544c448
L
14164 * configure: Regenerated.
14165
3a938d75
RB
141662014-02-12 Richard Biener <rguenther@suse.de>
14167
14168 * vec.c (vec_prefix::calculate_allocation): Move as
14169 inline variant to vec.h.
14170 (vec_prefix::calculate_allocation_1): New out-of-line version.
14171 * vec.h (vec_prefix::calculate_allocation_1): Declare.
14172 (vec_prefix::m_has_auto_buf): Rename to ...
14173 (vec_prefix::m_using_auto_storage): ... this.
14174 (vec_prefix::calculate_allocation): Inline the easy cases
14175 and dispatch to calculate_allocation_1 which doesn't need the
14176 prefix address.
14177 (va_heap::reserve): Use gcc_checking_assert.
14178 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
14179 m_using_auto_storage.
14180 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
14181 member and adjust.
14182 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
14183 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
14184 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
14185
ad0188be
RB
141862014-02-12 Richard Biener <rguenther@suse.de>
14187
14188 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
14189 when we found a dependence.
14190
64e5ace5
TS
141912014-02-12 Thomas Schwinge <thomas@codesourcery.com>
14192
88ac13da
TS
14193 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
14194 common code...
14195 (maybe_fold_stmt): ... into this new function.
14196 * omp-low.c (lower_omp): Update comment.
14197
bae729a2
TS
14198 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
14199 last use.
14200
64e5ace5
TS
14201 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
14202 dereference.
14203
7b40f5cf
JG
142042014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
14205
14206 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
14207 identifiers in comments.
14208 (cortexa53_extra_costs): Likewise.
1287ae50 14209 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
7b40f5cf
JG
14210 (cortexa7_extra_costs): Likewise.
14211 (cortexa12_extra_costs): Likewise.
14212 (cortexa15_extra_costs): Likewise.
14213 (v7m_extra_costs): Likewise.
14214
c4c8514e
RB
142152014-02-12 Richard Biener <rguenther@suse.de>
14216
14217 PR middle-end/60092
14218 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
14219 of posix_memalign being successful.
14220 (lower_stmt): Restrict lowering of posix_memalign to when
14221 -ftree-bit-ccp is enabled.
14222
8eb651bd
SKS
142232014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14224
14225 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
14226 arg_loc.
14227 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
14228
62b03553
EB
142292014-02-12 Eric Botcazou <ebotcazou@adacore.com>
14230
14231 PR rtl-optimization/60116
14232 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
14233 other_insn once the combination has been validated.
14234
ec77d61f
JH
142352014-02-11 Jan Hubicka <hubicka@ucw.cz>
14236
14237 PR lto/59468
14238 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
14239 and wrapper.
14240 * ipa-devirt.c: Include demangle.h
14241 (odr_violation_reported): New static variable.
14242 (add_type_duplicate): Update odr_violations.
14243 (maybe_record_node): Add completep parameter; update it.
14244 (record_target_from_binfo): Add COMPLETEP parameter;
14245 update it as needed.
14246 (possible_polymorphic_call_targets_1): Likewise.
14247 (struct polymorphic_call_target_d): Add nonconstruction_targets;
14248 rename FINAL to COMPLETE.
14249 (record_targets_from_bases): Sanity check we found the binfo;
14250 fix COMPLETEP updating.
14251 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
14252 parameter, fix computing of COMPLETEP.
1287ae50
UB
14253 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
14254 at LTO time do demangling.
ec77d61f
JH
14255 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
14256 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
14257 parameter.
14258 (gimple_get_virt_method_for_binfo): Likewise.
14259 * gimple-fold.h (gimple_get_virt_method_for_binfo,
14260 gimple_get_virt_method_for_vtable): Update prototypes.
14261
5a4dcd9b
VM
142622014-02-11 Vladimir Makarov <vmakarov@redhat.com>
14263
14264 PR target/49008
14265 * genautomata.c (add_presence_absence): Fix typo with
14266 {final_}presence_list.
14267
69b7afed
MM
142682014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
14269
14270 PR target/60137
14271 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
14272 for VSX/Altivec vectors that land in GPR registers.
14273
8268ad5c
JJ
142742014-02-11 Richard Henderson <rth@redhat.com>
14275 Jakub Jelinek <jakub@redhat.com>
14276
14277 PR debug/59776
14278 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
14279 around drhs if type conversion to lacc->type is not useless.
14280
4fd92af6
KT
142812014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14282
14283 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
14284 tuning struct.
14285 (cortex-a57.cortex-a53): Likewise.
14286 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
14287
7cb14cb8
KT
142882014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14289
14290 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
14291 arm_restrict_it.
14292
6d3715b9
RL
142932014-02-11 Renlin Li <Renlin.Li@arm.com>
14294
14295 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
14296 add_options_for_arm_vfp3.
14297
cddddfff
JL
142982014-02-11 Jeff Law <law@redhat.com>
14299
14300 PR middle-end/54041
14301 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
14302 object with an undesirable mode.
14303
7c1aef7e
RO
143042014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14305
14306 PR libgomp/60107
14307 * config/i386/sol2-9.h: New file.
14308 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
14309 *-*-solaris2.9*): Use it.
14310
4bb66ef3 143112014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
d63f1311
NM
14312
14313 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
14314 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
14315
4bb66ef3 143162014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
ed8b71cc
NM
14317
14318 * config/microblaze/microblaze.c: Extend mcpu version format
14319
4bb66ef3 143202014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
9b5414c6
DH
14321
14322 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
14323
004a7e45 143242014-02-10 Richard Henderson <rth@redhat.com>
f830ddc2
RH
14325
14326 PR target/59927
14327 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
14328 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
14329 ms-abi vs -mno-accumulate-outgoing-args.
14330 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
14331 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
14332 respect to ms-abi.
14333
e2fc3b4f
BE
143342014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
14335
14336 PR middle-end/60080
14337 * cfgexpand.c (expand_asm_operands): Attach source location to
14338 ASM_INPUT rtx objects.
14339 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
14340
3a22ad89
NC
143412014-02-10 Nick Clifton <nickc@redhat.com>
14342
14343 * config/mn10300/mn10300.c (popcount): New function.
14344 (mn10300_expand_prologue): Include saved registers in stack usage
14345 count.
14346
f27be550
JL
143472014-02-10 Jeff Law <law@redhat.com>
14348
14349 PR middle-end/52306
14350 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
1287ae50 14351 when changing the SET_DEST of a prior insn to avoid an input reload.
f27be550 14352
e15e3815
UW
143532014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14354
14355 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
14356 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
14357 -mcall-openbsd, or -mcall-linux.
14358 (CC1_ENDIAN_BIG_SPEC): Remove.
14359 (CC1_ENDIAN_LITTLE_SPEC): Remove.
14360 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
14361 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
14362 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
14363 and %cc1_endian_default.
14364 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
14365
4e1f39e4
RB
143662014-02-10 Richard Biener <rguenther@suse.de>
14367
14368 PR tree-optimization/60115
14369 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
14370 MEM_REF handling. Properly verify that the accesses are not
14371 out of the objects bound.
14372
e7af1c22
KT
143732014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14374
14375 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
14376 coretex to cortex.
14377
79c7de84
EB
143782014-02-10 Eric Botcazou <ebotcazou@adacore.com>
14379
14380 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
14381 proper constants and fix formatting.
14382 (possible_polymorphic_call_targets): Fix formatting.
14383
cf73ee60
KY
143842014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
14385 Ilya Tocar <ilya.tocar@intel.com>
14386
14387 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
14388 (_mm512_loadu_epi32): Renamed into...
14389 (_mm512_loadu_si512): This.
14390 (_mm512_storeu_epi32): Renamed into...
14391 (_mm512_storeu_si512): This.
14392 (_mm512_maskz_ceil_ps): Removed.
14393 (_mm512_maskz_ceil_pd): Ditto.
14394 (_mm512_maskz_floor_ps): Ditto.
14395 (_mm512_maskz_floor_pd): Ditto.
14396 (_mm512_floor_round_ps): Ditto.
14397 (_mm512_floor_round_pd): Ditto.
14398 (_mm512_ceil_round_ps): Ditto.
14399 (_mm512_ceil_round_pd): Ditto.
14400 (_mm512_mask_floor_round_ps): Ditto.
14401 (_mm512_mask_floor_round_pd): Ditto.
14402 (_mm512_mask_ceil_round_ps): Ditto.
14403 (_mm512_mask_ceil_round_pd): Ditto.
14404 (_mm512_maskz_floor_round_ps): Ditto.
14405 (_mm512_maskz_floor_round_pd): Ditto.
14406 (_mm512_maskz_ceil_round_ps): Ditto.
14407 (_mm512_maskz_ceil_round_pd): Ditto.
14408 (_mm512_expand_pd): Ditto.
14409 (_mm512_expand_ps): Ditto.
14410 * config/i386/i386.c (ix86_builtins): Remove
14411 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
14412 (bdesc_args): Ditto.
14413 * config/i386/predicates.md (const1256_operand): New.
14414 (const_1_to_2_operand): Ditto.
14415 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
14416 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
14417 (*avx512pf_gatherpf<mode>sf): Ditto.
14418 (avx512pf_gatherpf<mode>df): Ditto.
14419 (*avx512pf_gatherpf<mode>df_mask): Ditto.
14420 (*avx512pf_gatherpf<mode>df): Ditto.
14421 (avx512pf_scatterpf<mode>sf): Ditto.
14422 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
14423 (*avx512pf_scatterpf<mode>sf): Ditto.
14424 (avx512pf_scatterpf<mode>df): Ditto.
14425 (*avx512pf_scatterpf<mode>df_mask): Ditto.
14426 (*avx512pf_scatterpf<mode>df): Ditto.
14427 (avx512f_expand<mode>): Removed.
14428 (<shift_insn><mode>3<mask_name>): Change predicate type.
14429
8fcbce72
JJ
144302014-02-08 Jakub Jelinek <jakub@redhat.com>
14431
41475e96
JJ
14432 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
14433 not at the end of datarefs vector use ordered_remove to avoid
14434 reordering datarefs vector.
14435
c74559df
JJ
14436 PR c/59984
14437 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
14438 mark local addressable non-static vars as GOVD_PRIVATE
14439 instead of GOVD_LOCAL.
14440 * omp-low.c (lower_omp_for): Move gimple_bind_vars
14441 and BLOCK_VARS of gimple_bind_block to new_stmt rather
14442 than copying them.
14443
8fcbce72
JJ
14444 PR middle-end/60092
14445 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
14446 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
14447 assume_aligned or alloc_align attributes.
14448 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
14449 arguments. Handle also assume_aligned and alloc_align attributes.
1287ae50
UB
14450 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
14451 calls to functions with assume_aligned or alloc_align attributes.
14452 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
8fcbce72 14453
451bdd23
TG
144542014-02-08 Terry Guo <terry.guo@arm.com>
14455
14456 * doc/invoke.texi: Document ARM -march=armv7e-m.
14457
d31d42c7
JJ
144582014-02-08 Jakub Jelinek <jakub@redhat.com>
14459
d71dfeb7
JJ
14460 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
14461 flag on __cilkrts_rethrow builtin.
14462
d31d42c7
JJ
14463 PR ipa/60026
14464 * ipa-cp.c (determine_versionability): Fail at -O0
14465 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
14466 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
14467
14468 Revert:
14469 2014-02-04 Jakub Jelinek <jakub@redhat.com>
14470
14471 PR ipa/60026
14472 * tree-inline.c (copy_forbidden): Fail for
14473 __attribute__((optimize (0))) functions.
14474
a0a98fef
JH
144752014-02-07 Jan Hubicka <hubicka@ucw.cz>
14476
14477 * varpool.c: Include pointer-set.h.
14478 (varpool_remove_unreferenced_decls): Variables in other partitions
14479 will not be output; be however careful to not lose information
14480 about partitioning.
14481
8c311b50
JH
144822014-02-07 Jan Hubicka <hubicka@ucw.cz>
14483
14484 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
14485 lookup in the vtable constructor.
14486
7ba03e5e
JL
144872014-02-07 Jeff Law <law@redhat.com>
14488
63e6247d
JL
14489 PR target/40977
14490 * config/m68k/m68k.md (ashldi_extsi): Turn into a
14491 define_insn_and_split.
14492
7ba03e5e
JL
14493 * ipa-inline.c (inline_small_functions): Fix typos.
14494
177bc204
RS
144952014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
14496
14497 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
14498 (s390_can_use_return_insn): Declare.
14499 * config/s390/s390.h (EPILOGUE_USES): Define.
14500 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
14501 instructions.
14502 (s390_chunkify_start): Handle return JUMP_LABELs.
14503 (s390_early_mach): Emit a main_pool instruction on the entry edge.
14504 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
14505 (s390_can_use_return_insn): New functions.
14506 (s390_fix_long_loop_prediction): Handle conditional returns.
14507 (TARGET_SET_UP_BY_PROLOGUE): Define.
14508 * config/s390/s390.md (ANY_RETURN): New code iterator.
14509 (*creturn, *csimple_return, return, simple_return): New patterns.
14510
0621cf3c
RS
145112014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
14512
14513 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
14514 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
14515 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
14516 REG_CFA_RESTORE list when deciding not to restore a register.
14517
4099494d
RS
145182014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
14519
14520 * config/s390/s390.c: Include tree-pass.h and context.h.
14521 (s390_early_mach): New function, split out from...
14522 (s390_emit_prologue): ...here.
14523 (pass_data_s390_early_mach): New pass structure.
14524 (pass_s390_early_mach): New class.
14525 (s390_option_override): Create and register early_mach pass.
14526 Move to end of file.
14527
3489cc33
RS
145282014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
14529
14530 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
14531 to match for the exit block.
14532
75cc21e2
AK
145332014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14534
14535 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
14536 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
14537 Reject misaligned operands.
14538
8bd7070a
AK
145392014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14540
1287ae50 14541 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
8bd7070a 14542
831806cb
RB
145432014-02-07 Richard Biener <rguenther@suse.de>
14544
14545 PR middle-end/60092
14546 * gimple-low.c (lower_builtin_posix_memalign): New function.
14547 (lower_stmt): Call it to lower posix_memalign in a way
14548 to make alignment info accessible.
14549
7ee9c16f
JJ
145502014-02-07 Jakub Jelinek <jakub@redhat.com>
14551
14552 PR c++/60082
14553 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
14554 __builtin_setjmp_receiver.
14555
32cab212
RB
145562014-02-07 Richard Biener <rguenther@suse.de>
14557
14558 PR middle-end/60092
14559 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
14560 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
14561 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14562 Handle BUILT_IN_POSIX_MEMALIGN.
14563 (find_func_clobbers): Likewise.
14564 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
14565 (call_may_clobber_ref_p_1): Likewise.
14566
6d6af792
JH
145672014-02-06 Jan Hubicka <hubicka@ucw.cz>
14568
14569 PR ipa/59918
1287ae50
UB
14570 * ipa-devirt.c (record_target_from_binfo): Remove overactive
14571 sanity check.
6d6af792 14572
3c0f1105
JH
145732014-02-06 Jan Hubicka <hubicka@ucw.cz>
14574
14575 PR ipa/59469
14576 * lto-cgraph.c (lto_output_node): Use
14577 symtab_get_symbol_partitioning_class.
14578 (lto_output_varpool_node): likewise.
14579 (symtab_get_symbol_partitioning_class): Move here from
14580 lto/lto-partition.c
14581 * cgraph.h (symbol_partitioning_class): Likewise.
14582 (symtab_get_symbol_partitioning_class): Declare.
14583
b3bb0eb9
JH
145842014-02-06 Jan Hubicka <hubicka@ucw.cz>
14585
14586 * ggc.h (ggc_internal_cleared_alloc): New macro.
14587 * vec.h (vec_safe_copy): Handle memory stats.
14588 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
14589 * target-globals.c (save_target_globals): Likewise.
14590
145912014-02-06 Jan Hubicka <hubicka@ucw.cz>
e2f0f5f7
JJ
14592
14593 PR target/60077
14594 * expr.c (emit_move_resolve_push): Export; be bit more selective
14595 on when to clear alias set.
14596 * expr.h (emit_move_resolve_push): Declare.
14597 * function.h (struct function): Add tail_call_marked.
14598 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
14599 * config/i386/i386-protos.h (ix86_expand_push): Remove.
14600 * config/i386/i386.md (TImode move expander): De not call
14601 ix86_expand_push.
14602 (FP push expanders): Preserve memory attributes.
14603 * config/i386/sse.md (push<mode>1): Remove.
1287ae50 14604 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
e2f0f5f7
JJ
14605 (ix86_expand_push): Remove.
14606 * config/i386/mmx.md (push<mode>1): Remove.
14607
47d552eb
JJ
146082014-02-06 Jakub Jelinek <jakub@redhat.com>
14609
14610 PR rtl-optimization/60030
14611 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
14612 lopart with paradoxical subreg before shifting it up by hprec.
14613
45c75ea7
KT
146142014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14615
14616 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
14617 Remove extra newline at end of file.
14618 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
14619 (arm_issue_rate): Handle cortexa57.
14620 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
14621 (cortex-a57.cortex-a53): Likewise.
14622
af116cae
JJ
146232014-02-06 Jakub Jelinek <jakub@redhat.com>
14624
652a3e3a
JJ
14625 PR target/59575
14626 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
14627 don't record in REG_FRAME_RELATED_EXPR registers not set in that
14628 bitmask.
14629 (arm_expand_prologue): Adjust all callers.
14630 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
14631 info, registers also at the lowest numbered registers side. Use
14632 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
14633 XEXP.
14634
af116cae 14635 PR debug/59992
1287ae50
UB
14636 * var-tracking.c (adjust_mems): Before adding a SET to
14637 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
af116cae 14638
fdcee33b
AM
146392014-02-06 Alan Modra <amodra@gmail.com>
14640
14641 PR target/60032
14642 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
14643 change SDmode to DDmode when lra_in_progress.
14644
251901a0
JJ
146452014-02-06 Jakub Jelinek <jakub@redhat.com>
14646
d3ef8c53
JJ
14647 PR middle-end/59150
14648 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
14649 free_data_ref on the dr first, and before goto again also set dr
14650 to the next dr. For simd_lane_access, free old datarefs[i] before
14651 overwriting it. For get_vectype_for_scalar_type failure, don't
14652 free_data_ref if simd_lane_access.
14653
2754b38f
JJ
14654 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
14655
251901a0
JJ
14656 PR target/60062
14657 * tree.h (opts_for_fn): New inline function.
14658 (opt_for_fn): Define.
14659 * config/i386/i386.c (ix86_function_regparm): Use
14660 opt_for_fn (decl, optimize) instead of optimize.
14661
4a985a37
MS
146622014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
14663
14664 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
14665 for SYMBOL_REF in large memory model.
14666
c366d38c
KT
146672014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14668
14669 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
14670 and crypto support.
14671 (cortex-a57): Likewise.
14672 (cortex-a57.cortex-a53): Likewise.
14673
c801e246
YG
146742014-02-06 Yury Gribov <y.gribov@samsung.com>
14675 Kugan Vivekanandarajah <kuganv@linaro.org>
14676
14677 * config/arm/arm.c (arm_vector_alignment_reachable): Check
14678 unaligned_access.
14679 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
14680
d50f7b84
RB
146812014-02-06 Richard Biener <rguenther@suse.de>
14682
14683 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
14684 set_loop_copy and initialize_original_copy_tables.
14685
179d2941
AV
146862014-02-06 Alex Velenko <Alex.Velenko@arm.com>
14687
14688 * config/aarch64/aarch64-simd.md
14689 (aarch64_ashr_simddi): Change QI to SI.
14690
78b1469d
JH
146912014-02-05 Jan Hubicka <hubicka@ucw.cz>
14692 Jakub Jelinek <jakub@redhat.com>
14693
14694 PR middle-end/60013
14695 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
14696 of the dataflow.
14697
d85f364c
BS
146982014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14699
14700 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
14701 CODE_FOR_altivec_vpku[hw]um to
14702 CODE_FOR_altivec_vpku[hw]um_direct.
14703 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
14704 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
14705 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
14706 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
14707
7b1cd427
BS
147082014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14709
14710 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
14711 generation for -maltivec=be.
14712 (altivec_vsumsws): Simplify redundant test.
14713
52a93551
BS
147142014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14715
14716 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
14717 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
14718 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
14719 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
14720 gen_altivec_vpkuwum.
14721 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
14722 BYTES_BIG_ENDIAN.
14723 (altivec_vpks<VI_char>ss): Likewise.
14724 (altivec_vpks<VI_char>us): Likewise.
14725 (altivec_vpku<VI_char>us): Likewise.
14726 (altivec_vpku<VI_char>um): Likewise.
14727 (altivec_vpku<VI_char>um_direct): New (copy of
14728 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
14729 internal use).
14730 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
14731 target is little endian and -maltivec=be is not specified.
14732 (*altivec_vupkhs<VU_char>_direct): New (copy of
1287ae50 14733 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
52a93551
BS
14734 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
14735 target is little endian and -maltivec=be is not specified.
14736 (*altivec_vupkls<VU_char>_direct): New (copy of
1287ae50 14737 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
52a93551
BS
14738 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
14739 little endian and -maltivec=be is not specified.
14740 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
14741 little endian and -maltivec=be is not specified.
14742
004a7e45 147432014-02-05 Richard Henderson <rth@redhat.com>
76df831f
RH
14744
14745 PR debug/52727
14746 * combine-stack-adj.c: Revert r206943.
14747 * sched-int.h (struct deps_desc): Add last_args_size.
14748 * sched-deps.c (init_deps): Initialize it.
14749 (sched_analyze_insn): Add OUTPUT dependencies between insns that
14750 contain REG_ARGS_SIZE notes.
14751
f300e7b8
JH
147522014-02-05 Jan Hubicka <hubicka@ucw.cz>
14753
14754 * lto-cgraph.c (asm_nodes_output): Make global.
14755 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
1287ae50 14756 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
f300e7b8
JH
14757 (driver_handle_option): Handle OPT_fwpa.
14758
609524d2
JJ
147592014-02-05 Jakub Jelinek <jakub@redhat.com>
14760
add5c763
JJ
14761 PR ipa/59947
14762 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
14763 a comment typo and formatting issue. If odr_hash hasn't been
14764 created, return vNULL and set *completep to false.
14765
609524d2
JJ
14766 PR middle-end/57499
14767 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
14768 bb with no successors.
14769
05ab6e21
JG
147702014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
14771
14772 PR target/59718
14773 * doc/invoke.texi (-march): Clarify documentation for ARM.
14774 (-mtune): Likewise.
14775 (-mcpu): Likewise.
14776
d55d9ed0
RB
147772014-02-05 Richard Biener <rguenther@suse.de>
14778
14779 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
14780 when not vectorizing because of too many alias checks.
14781 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
14782 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
14783
c70da878
NC
147842014-02-05 Nick Clifton <nickc@redhat.com>
14785
14786 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
1287ae50 14787 accept extended registers in any mode when compiling for the MN10300.
c70da878 14788
25a07c7e
YG
147892014-02-05 Yury Gribov <y.gribov@samsung.com>
14790
14791 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
14792 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
14793 sanitization attributes.
14794 (can_inline_edge_p): Likewise.
14795 (sanitize_attrs_match_for_inline_p): New function.
14796
4bf2a588
JH
147972014-02-04 Jan Hubicka <hubicka@ucw.cz>
14798
14799 * ipa-prop.c (detect_type_change): Shor circuit testing of
14800 type changes on THIS pointer.
14801
d92f4df0
JDA
148022014-02-04 John David Anglin <danglin@gcc.gnu.org>
14803
14804 PR target/59777
14805 * config/pa/pa.c (legitimize_tls_address): Return original address
14806 if not passed a SYMBOL_REF rtx.
14807 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
14808 addresses.
14809 (pa_emit_move_sequence): Simplify TLS source operands.
14810 (pa_legitimate_constant_p): Reject all TLS constants.
14811 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
14812 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
14813
d665f8dd
JH
148142014-02-04 Jan Hubicka <hubicka@ucw.cz>
14815
14816 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
14817 groups when we know they are controlled by LTO.
14818 * varasm.c (default_binds_local_p_1): If object is in other partition,
14819 it will be resolved locally.
14820
6a071860
BE
148212014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
14822
e2fc3b4f 14823 * config/host-linux.c (linux_gt_pch_use_address): Don't
1287ae50 14824 use SSIZE_MAX because it is not always defined.
6a071860 14825
8e9d68a9
VM
148262014-02-04 Vladimir Makarov <vmakarov@redhat.com>
14827
14828 PR bootstrap/59913
14829 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
14830 threshold for pseudo splitting.
14831 (update_ebb_live_info): Process call argument hard registers and
14832 hard registers from insn definition too.
14833 (max_small_class_regs_num): New constant.
14834 (inherit_in_ebb): Update live hard regs through EBBs. Update
14835 reloads_num only for small register classes. Don't split for
14836 outputs of jumps.
14837
8472fa80
MT
148382014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
14839
14840 PR ipa/60058
14841 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
14842 is non-null.
14843
df98e37f
JH
148442014-02-04 Jan Hubicka <hubicka@ucw.cz>
14845
1287ae50
UB
14846 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
14847 visibility is safe.
df98e37f 14848
71e55f04
MP
148492014-02-04 Marek Polacek <polacek@redhat.com>
14850
14851 * gdbinit.in (pel): Define.
14852
229e56f9
BE
148532014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
14854
14855 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
14856 behavior.
14857
c39276b8
RB
148582014-02-04 Richard Biener <rguenther@suse.de>
14859
14860 PR lto/59723
14861 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
14862 in function context local.
14863 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
14864 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
14865 similar to LTO_imported_decl_ref.
14866
66b3ed5f
JJ
148672014-02-04 Jakub Jelinek <jakub@redhat.com>
14868
029ce7a2
JJ
14869 PR tree-optimization/60002
14870 * cgraphclones.c (build_function_decl_skip_args): Clear
14871 DECL_LANG_SPECIFIC.
14872
8e91d222
JJ
14873 PR tree-optimization/60023
14874 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
14875 false to gsi_replace.
14876 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
14877 has been in some EH region and vec_stmt could throw, add
14878 vec_stmt into the same EH region.
14879 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
14880 has no lhs, ignore it.
14881 * internal-fn.c (expand_MASK_LOAD): Likewise.
14882
eb259c4a
JJ
14883 PR ipa/60026
14884 * tree-inline.c (copy_forbidden): Fail for
14885 __attribute__((optimize (0))) functions.
14886
92d05580
JJ
14887 PR other/58712
14888 * omp-low.c (simd_clone_struct_copy): If from->inbranch
14889 is set, copy one less argument.
30540e79
JJ
14890 (expand_simd_clones): Don't subtract clone_info->inbranch
14891 from simd_clone_struct_alloc argument.
92d05580 14892
be3afd67
JJ
14893 PR rtl-optimization/57915
14894 * recog.c (simplify_while_replacing): If all unary/binary/relational
14895 operation arguments are constant, attempt to simplify those.
14896
66b3ed5f
JJ
14897 PR middle-end/59261
14898 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
14899 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
14900
5961d779
RB
149012014-02-04 Richard Biener <rguenther@suse.de>
14902
14903 PR tree-optimization/60012
14904 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
14905 TBAA disambiguation to all DDRs.
14906
91da0481
RO
149072014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14908
14909 PR target/59788
14910 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
14911 (LINK_SPEC): Use it for -shared, -shared-libgcc.
14912
39960d1c
JH
149132014-02-03 Jan Hubicka <hubicka@ucw.cz>
14914
14915 PR ipa/59882
14916 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
14917
149182014-02-03 Jan Hubicka <hubicka@ucw.cz>
6f746413
JH
14919
14920 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
14921 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
14922
39960d1c 149232014-02-03 Jan Hubicka <hubicka@ucw.cz>
5bccb77a
JH
14924
14925 PR ipa/59831
14926 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
14927 to figure out targets of polymorphic calls with known decl.
14928 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
14929 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
14930 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
14931 (get_polymorphic_call_info): ... here.
14932 (get_polymorphic_call_info_from_invariant): New function.
14933
39960d1c 149342014-02-03 Jan Hubicka <hubicka@ucw.cz>
9de2f554
JH
14935
14936 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
14937 lookup via vtable pointer; check for type consistency
14938 and turn inconsitent facts into UNREACHABLE.
14939 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
1287ae50
UB
14940 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
14941 type inconsistent querries; return UNREACHABLE instead.
9de2f554 14942
ade3ff24
RH
149432014-02-03 Richard Henderson <rth@twiddle.net>
14944
14945 PR tree-opt/59924
14946 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
14947 already processed this node.
14948 (normalize_one_pred_1): Pass along mark_set.
14949 (normalize_one_pred): Create and destroy a pointer_set_t.
14950 (normalize_one_pred_chain): Likewise.
14951
55428cc3
LA
149522014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
14953
14954 PR gcov-profile/58602
1287ae50 14955 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
55428cc3 14956
85942f45
JH
149572014-02-03 Jan Hubicka <hubicka@ucw.cz>
14958
14959 PR ipa/59831
1287ae50
UB
14960 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
14961 -fno-devirtualize; try to devirtualize by the knowledge of
14962 virtual table pointer given by aggregate propagation.
85942f45 14963 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
1287ae50 14964 (ipa_print_node_jump_functions): Dump also offset that
85942f45
JH
14965 is relevant for polymorphic calls.
14966 (determine_known_aggregate_parts): Add arg_type parameter; use it
14967 instead of determining the type from pointer type.
14968 (ipa_compute_jump_functions_for_edge): Update call of
14969 determine_known_aggregate_parts.
14970 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
14971 (gimple_get_virt_method_for_binfo): ... here; simplify using
14972 vtable_pointer_value_to_vtable.
14973 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
14974 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
1287ae50 14975 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
85942f45
JH
14976 (vtable_pointer_value_to_vtable): Break out from ...; handle also
14977 POINTER_PLUS_EXPR.
14978 (vtable_pointer_value_to_binfo): ... here.
14979 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
14980
bddc974e
TJ
149812014-02-03 Teresa Johnson <tejohnson@google.com>
14982
14983 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
14984 redef of outer loop index variable.
14985
5d77fb19
MG
149862014-02-03 Marc Glisse <marc.glisse@inria.fr>
14987
14988 PR c++/53017
14989 PR c++/59211
14990 * doc/extend.texi (Function Attributes): Typo.
14991
cf5b2be2
CH
149922014-02-03 Cong Hou <congh@google.com>
14993
14994 PR tree-optimization/60000
14995 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
14996 if the vectorized statement is a store. A store statement can only
14997 appear at the end of pattern statements.
14998
a2a1ddb5
L
149992014-02-03 H.J. Lu <hongjiu.lu@intel.com>
15000
15001 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
15002 (ix86_option_override_internal): Default long double to 64-bit for
15003 32-bit Bionic and to 128-bit for 64-bit Bionic.
15004
15005 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
15006 TARGET_LONG_DOUBLE_128 is true.
15007 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
15008
15009 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
15010 (mlong-double-64): Negate -mlong-double-128.
15011 (mlong-double-128): New option.
15012
15013 * config/i386/i386-c.c (ix86_target_macros): Define
15014 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
15015
15016 * doc/invoke.texi: Document -mlong-double-128.
15017
f742cf90
L
150182014-02-03 H.J. Lu <hongjiu.lu@intel.com>
15019
15020 PR rtl-optimization/60024
15021 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
15022
8f36fd30
MT
150232014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
15024
1287ae50 15025 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
8f36fd30 15026
861ec4f3
AB
150272014-02-03 Andrey Belevantsev <abel@ispras.ru>
15028
15029 PR rtl-optimization/57662
15030 * sel-sched.c (code_motion_path_driver): Do not mark already not
15031 existing blocks in the visiting bitmap.
15032
fe08255d
AB
150332014-02-03 Andrey Belevantsev <abel@ispras.ru>
15034
15035 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
15036 on the insn being emitted.
15037
96d3a240
JG
150382014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
15039 Will Deacon <will.deacon@arm.com>
15040
15041 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
15042
9dd6c9f7
KT
150432014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15044
15045 * config/arm/arm-tables.opt: Regenerate.
15046
60331d00
BS
150472014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15048
15049 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
15050 for vector types other than V16QImode.
15051 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
15052 define_expand, and call altivec_expand_vec_perm_le when producing
15053 code with little endian element order.
15054 (*altivec_vperm_<mode>_internal): New insn having previous
15055 behavior of altivec_vperm_<mode>.
15056 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
15057 altivec_expand_vec_perm_le when producing code with little endian
15058 element order.
15059 (*altivec_vperm_<mode>_uns_internal): New insn having previous
15060 behavior of altivec_vperm_<mode>_uns.
15061
b80afde9
BS
150622014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15063
15064 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
15065 (altivec_vsumsws): Add handling for -maltivec=be with a little
15066 endian target.
15067 (altivec_vsumsws_direct): New.
15068 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
15069 gen_altivec_vsumsws.
15070
39960d1c 150712014-02-02 Jan Hubicka <hubicka@ucw.cz>
390675c8
JH
15072
15073 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
15074 vtable_pointer_value_to_binfo): New functions.
15075 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
15076 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
15077
02b67731
SL
150782014-02-02 Sandra Loosemore <sandra@codesourcery.com>
15079
15080 * config/nios2/nios2.md (load_got_register): Initialize GOT
15081 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
15082 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
15083
2ace77c2
JH
150842014-02-02 Jan Hubicka <hubicka@ucw.cz>
15085
15086 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
15087 preserverd by passthrough, do not propagate the type.
15088
70b2d364
RS
150892014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
15090
15091 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
15092 (mips_atomic_assign_expand_fenv): New function.
15093 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
15094
a90c0245
RS
150952014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
15096
15097 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
15098 (__builtin_mips_set_fcsr): Likewise.
15099 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
15100 MIPS_USI_FTYPE_VOID.
15101 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
15102 (mips16_expand_set_fcsr): Likewise.
15103 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
15104 (mips16_set_fcsr_stub): Likewise.
15105 (mips16_get_fcsr_one_only_stub): New class.
15106 (mips16_set_fcsr_one_only_stub): Likewise.
15107 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
15108 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
15109 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
15110 (hard_float): New availability predicate.
15111 (mips_builtins): Add get_fcsr and set_fcsr.
15112 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
15113 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
15114 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
15115 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
15116 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
15117 patterns.
15118
6d51cc90
RS
151192014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
15120
15121 * config/mips/mips.c (mips_one_only_stub): New class.
15122 (mips_need_mips16_rdhwr_p): Replace with...
15123 (mips16_rdhwr_stub): ...this new variable.
15124 (mips16_stub_call_address): New function.
15125 (mips16_rdhwr_one_only_stub): New class.
15126 (mips_expand_thread_pointer): Use mips16_stub_call_address.
15127 (mips_output_mips16_rdhwr): Delete.
15128 (mips_finish_stub): New function.
15129 (mips_code_end): Use it to handle rdhwr stubs.
15130
6c90f137
UB
151312014-02-02 Uros Bizjak <ubizjak@gmail.com>
15132
15133 PR target/60017
15134 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
15135 when calculating size of integer atomic types.
15136
5e64bbbb
L
151372014-02-02 H.J. Lu <hongjiu.lu@intel.com>
15138
15139 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
15140
021293cb
JJ
151412014-02-01 Jakub Jelinek <jakub@redhat.com>
15142
15143 PR tree-optimization/60003
15144 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
15145 * profile.c (branch_prob): Use gimple_call_builtin_p
15146 to check for BUILT_IN_SETJMP_RECEIVER.
15147 * tree-inline.c (copy_bb): Call notice_special_calls.
15148
6334f3e9
VM
151492014-01-31 Vladimir Makarov <vmakarov@redhat.com>
15150
15151 PR bootstrap/59985
15152 * lra-constraints.c (process_alt_operands): Update reload_sum only
15153 on the first pass.
15154
efa7882f
RH
151552014-01-31 Richard Henderson <rth@redhat.com>
15156
15157 PR middle-end/60004
15158 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
15159 until after else_eh is processed.
15160
de72ea02
IT
151612014-01-31 Ilya Tocar <ilya.tocar@intel.com>
15162
15163 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
15164 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
15165 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
15166 in smmintrin.h, remove them.
15167 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
15168 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
15169 * config/i386/i386.md (ROUND_SAE): Fix value.
15170 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
15171 (const48_operand): New.
15172 * config/i386/subst.md (round), (round_expand): Use
15173 const_4_or_8_to_11_operand.
15174 (round_saeonly), (round_saeonly_expand): Use const48_operand.
15175
be792bce
IT
151762014-01-31 Ilya Tocar <ilya.tocar@intel.com>
15177
15178 * config/i386/constraints.md (Yk): Swap meaning with k.
15179 * config/i386/i386.md (movhi_internal): Change Yk to k.
15180 (movqi_internal): Ditto.
15181 (*k<logic><mode>): Ditto.
15182 (*andhi_1): Ditto.
15183 (*andqi_1): Ditto.
15184 (kandn<mode>): Ditto.
15185 (*<code>hi_1): Ditto.
15186 (*<code>qi_1): Ditto.
15187 (kxnor<mode>): Ditto.
15188 (kortestzhi): Ditto.
15189 (kortestchi): Ditto.
15190 (kunpckhi): Ditto.
15191 (*one_cmplhi2_1): Ditto.
15192 (*one_cmplqi2_1): Ditto.
15193 * config/i386/sse.md (): Change k to Yk.
15194 (avx512f_load<mode>_mask): Ditto.
15195 (avx512f_blendm<mode>): Ditto.
15196 (avx512f_store<mode>_mask): Ditto.
15197 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
15198 (avx512f_storedqu<mode>_mask): Ditto.
33425d6c
UB
15199 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
15200 Ditto.
be792bce
IT
15201 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
15202 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
15203 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
15204 (avx512f_maskcmp<mode>3): Ditto.
15205 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
15206 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
15207 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
15208 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
15209 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
15210 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
15211 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
15212 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
15213 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
15214 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
15215 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
15216 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
15217 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
15218 (vec_extract_lo_<mode>_maskm): Ditto.
15219 (vec_extract_hi_<mode>_maskm): Ditto.
15220 (avx512f_vternlog<mode>_mask): Ditto.
15221 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
15222 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
15223 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
15224 (avx512f_<code>v8div16qi2_mask): Ditto.
15225 (avx512f_<code>v8div16qi2_mask_store): Ditto.
15226 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
15227 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
15228 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
15229 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
15230 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
15231 (*avx512pf_gatherpf<mode>df_mask): Ditto.
15232 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
15233 (*avx512pf_scatterpf<mode>df_mask): Ditto.
15234 (avx512cd_maskb_vec_dupv8di): Ditto.
15235 (avx512cd_maskw_vec_dupv16si): Ditto.
15236 (avx512f_vpermi2var<mode>3_maskz): Ditto.
15237 (avx512f_vpermi2var<mode>3_mask): Ditto.
15238 (avx512f_vpermi2var<mode>3_mask): Ditto.
15239 (avx512f_vpermt2var<mode>3_maskz): Ditto.
15240 (*avx512f_gathersi<mode>): Ditto.
15241 (*avx512f_gathersi<mode>_2): Ditto.
15242 (*avx512f_gatherdi<mode>): Ditto.
15243 (*avx512f_gatherdi<mode>_2): Ditto.
15244 (*avx512f_scattersi<mode>): Ditto.
15245 (*avx512f_scatterdi<mode>): Ditto.
15246 (avx512f_compress<mode>_mask): Ditto.
15247 (avx512f_compressstore<mode>_mask): Ditto.
15248 (avx512f_expand<mode>_mask): Ditto.
15249 * config/i386/subst.md (mask): Change k to Yk.
15250 (mask_scalar_merge): Ditto.
15251 (sd): Ditto.
15252
0878d68a
MG
152532014-01-31 Marc Glisse <marc.glisse@inria.fr>
15254
15255 * doc/extend.texi (Vector Extensions): Document ?: in C++.
15256
fdfd537b
RB
152572014-01-31 Richard Biener <rguenther@suse.de>
15258
15259 PR middle-end/59990
15260 * builtins.c (fold_builtin_memory_op): Make sure to not
15261 use a floating-point mode or a boolean or enumeral type for
15262 the copy operation.
15263
4f50b9ff
DD
152642014-01-30 DJ Delorie <dj@redhat.com>
15265
15266 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
15267 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
15268 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
15269 whenever main() has an epilogue.
15270
c3e96073
BS
152712014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15272
15273 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
15274 unused variable "field".
15275 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
15276 (vsx_mergeh_<mode>): Likewise.
15277 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
15278 (altivec_vmrghh): Likewise.
15279 (altivec_vmrghw): Likewise.
15280 (altivec_vmrglb): Likewise.
15281 (altivec_vmrglh): Likewise.
15282 (altivec_vmrglw): Likewise.
15283 (altivec_vspltb): Add missing uses.
15284 (altivec_vsplth): Likewise.
15285 (altivec_vspltw): Likewise.
15286 (altivec_vspltsf): Likewise.
15287
4bb9c32d
JJ
152882014-01-30 Jakub Jelinek <jakub@redhat.com>
15289
15290 PR target/59923
15291 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
15292 frame related instructions.
15293
7613fa50
VM
152942014-01-30 Vladimir Makarov <vmakarov@redhat.com>
15295
15296 PR rtl-optimization/59959
15297 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
15298 any reload of register whose subreg is invalid.
15299
6fb82517
JJ
153002014-01-30 Jakub Jelinek <jakub@redhat.com>
15301
33425d6c 15302 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
6fb82517
JJ
15303 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
15304 Add missing return type - void.
15305
bf53d4b8
BS
153062014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15307
15308 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
15309 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
15310 remove element index adjustment for endian (now handled in vsx.md
15311 and altivec.md).
15312 (altivec_expand_vec_perm_const): Use
15313 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
15314 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
15315 (vsx_xxspltw_<mode>): Adjust element index for little endian.
15316 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
15317 define_expand and a new define_insn *altivec_vspltb_internal;
15318 adjust for -maltivec=be on a little endian target.
15319 (altivec_vspltb_direct): New.
15320 (altivec_vsplth): Divide into a define_expand and a new
15321 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
15322 little endian target.
15323 (altivec_vsplth_direct): New.
15324 (altivec_vspltw): Divide into a define_expand and a new
15325 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
15326 little endian target.
15327 (altivec_vspltw_direct): New.
15328 (altivec_vspltsf): Divide into a define_expand and a new
15329 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
15330 a little endian target.
15331
c965e187
RB
153322014-01-30 Richard Biener <rguenther@suse.de>
15333
15334 PR tree-optimization/59993
15335 * tree-ssa-forwprop.c (associate_pointerplus): Check we
15336 can propagate form the earlier stmt and avoid the transform
15337 when the intermediate result is needed.
15338
ba117645
AD
153392014-01-30 Alangi Derick <alangiderick@gmail.com>
15340
15341 * README.Portability: Fix typo.
15342
4bb66ef3 153432014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
29bd5728
DH
15344
15345 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
15346 comparison_operator with ordered_comparison_operator.
15347
c345a0b1
NC
153482014-01-30 Nick Clifton <nickc@redhat.com>
15349
15350 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
15351 Rename to mn10300_store_multiple_regs.
15352 * config/mn10300/mn10300.c: Likewise.
15353 * config/mn10300/mn10300.md (store_movm): Fix typo: call
15354 store_multiple_regs.
15355 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
15356 Call mn10300_store_multiple_regs.
15357
2d70f6d4
NC
153582014-01-30 Nick Clifton <nickc@redhat.com>
15359 DJ Delorie <dj@redhat.com>
15360
15361 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
15362 %fp 2 to keep registers after it properly word-aligned.
15363 (rl78_alloc_physical_registers_umul): Handle the case where both
15364 input operands are the same.
15365
c972624e
RB
153662014-01-30 Richard Biener <rguenther@suse.de>
15367
15368 PR tree-optimization/59903
15369 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
15370 check properly.
15371
fc044323
JM
153722014-01-30 Jason Merrill <jason@redhat.com>
15373
404c2aea
JM
15374 PR c++/59633
15375 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
15376
fc044323
JM
15377 PR c++/59645
15378 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
15379
f30a0ba5
RB
153802014-01-30 Richard Biener <rguenther@suse.de>
15381
15382 PR tree-optimization/59951
33425d6c 15383 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
f30a0ba5 15384
aad8816f
SZ
153852014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
15386
15387 PR target/59784
15388 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
15389 SFmode to DFmode case.
15390
3b16363e
DD
153912014-01-29 DJ Delorie <dj@redhat.com>
15392
15393 * config/msp430/msp430.opt (-minrt): New.
15394 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
15395 if -minrt given.
15396 (ENDFILE_SPEC): Likewise.
15397
39960d1c 153982014-01-29 Jan Hubicka <hubicka@ucw.cz>
3100142a
JH
15399
15400 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
15401 (estimate_function_body_sizes): Use it.
15402
1200933c
PC
154032014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
15404
15405 PR c++/58561
15406 * dwarf2out.c (is_cxx_auto): New.
15407 (is_base_type): Use it.
15408 (gen_type_die_with_usage): Likewise.
15409
68d3bacf
BS
154102014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15411
15412 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
15413 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
15414 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
15415 -maltivec=be with LE targets.
15416 (vsx_mergeh_<mode>): Likewise.
33425d6c 15417 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
68d3bacf
BS
15418 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
15419 (altivec_vmrghb): Replace with define_expand and new
33425d6c 15420 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
68d3bacf
BS
15421 (altivec_vmrghb_direct): New define_insn.
15422 (altivec_vmrghh): Replace with define_expand and new
33425d6c 15423 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
68d3bacf
BS
15424 (altivec_vmrghh_direct): New define_insn.
15425 (altivec_vmrghw): Replace with define_expand and new
33425d6c 15426 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
68d3bacf
BS
15427 (altivec_vmrghw_direct): New define_insn.
15428 (*altivec_vmrghsf): Adjust for endianness.
15429 (altivec_vmrglb): Replace with define_expand and new
33425d6c 15430 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
68d3bacf
BS
15431 (altivec_vmrglb_direct): New define_insn.
15432 (altivec_vmrglh): Replace with define_expand and new
33425d6c 15433 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
68d3bacf
BS
15434 (altivec_vmrglh_direct): New define_insn.
15435 (altivec_vmrglw): Replace with define_expand and new
33425d6c 15436 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
68d3bacf
BS
15437 (altivec_vmrglw_direct): New define_insn.
15438 (*altivec_vmrglsf): Adjust for endianness.
15439 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
15440 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
15441 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
15442 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
15443 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
15444 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
15445 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
15446 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
15447
aef66c94
MS
154482014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
15449
15450 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
15451 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
15452 whitespace.
15453
77574c35
RB
154542014-01-29 Richard Biener <rguenther@suse.de>
15455
15456 PR tree-optimization/58742
15457 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
15458 associate_pointerplus_align.
15459 (associate_pointerplus_diff): New function.
15460 (associate_pointerplus): Likewise. Call associate_pointerplus_align
15461 and associate_pointerplus_diff.
15462
15b25b24
RB
154632014-01-29 Richard Biener <rguenther@suse.de>
15464
15465 * lto-streamer.h (LTO_major_version): Bump to 3.
15466 (LTO_minor_version): Reset to 0.
15467
eb6006ad
RL
154682014-01-29 Renlin Li <Renlin.Li@arm.com>
15469
15470 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
15471 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
15472 (arm_file_start): Generate correct asm header for armv7ve.
15473 * config/arm/bpabi.h: Add multilib support for armv7ve.
15474 * config/arm/driver-arm.c: Change the architectures of cortex-a7
15475 and cortex-a15 to armv7ve.
15476 * config/arm/t-aprofile: Add multilib support for armv7ve.
15477 * doc/invoke.texi: Document -march=armv7ve.
15478
4bfb2fa2
RB
154792014-01-29 Richard Biener <rguenther@suse.de>
15480
15481 PR tree-optimization/58742
15482 * tree-ssa-forwprop.c (associate_plusminus): Return true
15483 if we changed sth, defer EH cleanup to ...
15484 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
15485 (simplify_mult): New function.
15486
42eb8bd1
JJ
154872014-01-29 Jakub Jelinek <jakub@redhat.com>
15488
09b22f48
JJ
15489 PR middle-end/59917
15490 PR tree-optimization/59920
15491 * tree.c (build_common_builtin_nodes): Remove
15492 __builtin_setjmp_dispatcher initialization.
15493 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
15494 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
15495 instead of gsi_after_labels + manually skipping debug stmts.
15496 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
15497 ignore bbs with IFN_ABNORMAL_DISPATCHER.
15498 * tree-inline.c (copy_edges_for_bb): Remove
15499 can_make_abnormal_goto argument, instead add abnormal_goto_dest
15500 argument. Ignore computed_goto_p stmts. Don't call
15501 make_abnormal_goto_edges. If a call might need abnormal edges
15502 for non-local gotos, see if it already has an edge to
15503 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
15504 with true argument, don't do anything then, otherwise add
15505 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
15506 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
15507 caller.
15508 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
15509 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
15510 (lower_stmt): Don't set data->calls_builtin_setjmp.
15511 (lower_builtin_setjmp): Adjust comment.
15512 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
15513 * tree-cfg.c (found_computed_goto): Remove.
15514 (factor_computed_gotos): Remove.
15515 (make_goto_expr_edges): Return bool, true for computed gotos.
15516 Don't call make_abnormal_goto_edges.
15517 (build_gimple_cfg): Don't set found_computed_goto, don't call
15518 factor_computed_gotos.
15519 (computed_goto_p): No longer static.
15520 (make_blocks): Don't set found_computed_goto.
15521 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
15522 (make_edges): If make_goto_expr_edges returns true, push bb
15523 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
15524 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
15525 vector. Record mapping between bbs and OpenMP regions if there
15526 are any, adjust make_gimple_omp_edges caller. Call
15527 handle_abnormal_edges.
15528 (make_abnormal_goto_edges): Remove.
15529 * tree-cfg.h (make_abnormal_goto_edges): Remove.
15530 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
15531 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
33425d6c 15532 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
09b22f48
JJ
15533 * internal-fn.def (ABNORMAL_DISPATCHER): New.
15534 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
15535 filling *region also set *region_idx to (*region)->entry->index.
15536
42eb8bd1
JJ
15537 PR other/58712
15538 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
15539 For REGs set ORIGINAL_REGNO.
15540
4a271b7e
BM
155412014-01-29 Bingfeng Mei <bmei@broadcom.com>
15542
33425d6c 15543 * doc/md.texi: Mention that a target shouldn't implement
4a271b7e
BM
15544 vec_widen_(s|u)mul_even/odd pair if it is less efficient
15545 than hi/lo pair.
15546
3d54b29d
JJ
155472014-01-29 Jakub Jelinek <jakub@redhat.com>
15548
15549 PR tree-optimization/59594
15550 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
15551 a copy of the datarefs vector rather than the vector itself.
15552
2e5e7103
JM
155532014-01-28 Jason Merrill <jason@redhat.com>
15554
15555 PR c++/53756
15556 * dwarf2out.c (auto_die): New static.
15557 (gen_type_die_with_usage): Handle C++1y 'auto'.
15558 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
15559 on definition.
15560
d5d618b5
L
155612014-01-28 H.J. Lu <hongjiu.lu@intel.com>
15562
15563 PR target/59672
15564 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
15565 (SPEC_X32): Likewise.
15566 (SPEC_64): Likewise.
15567 * config/i386/i386.c (ix86_option_override_internal): Turn off
15568 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
15569 for TARGET_16BIT.
15570 (x86_file_start): Output .code16gcc for TARGET_16BIT.
15571 * config/i386/i386.h (TARGET_16BIT): New macro.
15572 (TARGET_16BIT_P): Likewise.
15573 * config/i386/i386.opt: Add m16.
15574 * doc/invoke.texi: Document -m16.
15575
367c8286
DS
155762014-01-28 Jakub Jelinek <jakub@redhat.com>
15577
15578 PR preprocessor/59935
15579 * input.c (location_get_source_line): Bail out on when line number
33425d6c 15580 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
367c8286 15581
07ec81f9
RB
155822014-01-28 Richard Biener <rguenther@suse.de>
15583
15584 PR tree-optimization/58742
15585 * tree-ssa-forwprop.c (associate_plusminus): Handle
15586 pointer subtraction of the form (T)(P + A) - (T)P.
15587
5facb998
KT
155882014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15589
15590 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
15591 at const_int_cost.
15592
e04faf24
RB
155932014-01-28 Richard Biener <rguenther@suse.de>
15594
15595 Revert
15596 2014-01-28 Richard Biener <rguenther@suse.de>
15597
15598 PR rtl-optimization/45364
15599 PR rtl-optimization/59890
15600 * var-tracking.c (local_get_addr_clear_given_value): Handle
15601 already cleared slot.
15602 (val_reset): Handle not allocated local_get_addr_cache.
15603 (vt_find_locations): Use post-order on the inverted CFG.
15604
6593260b
RB
156052014-01-28 Richard Biener <rguenther@suse.de>
15606
33425d6c 15607 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
6593260b 15608
9ec2d2c1
RB
156092014-01-28 Richard Biener <rguenther@suse.de>
15610
15611 PR rtl-optimization/45364
15612 PR rtl-optimization/59890
15613 * var-tracking.c (local_get_addr_clear_given_value): Handle
15614 already cleared slot.
15615 (val_reset): Handle not allocated local_get_addr_cache.
15616 (vt_find_locations): Use post-order on the inverted CFG.
15617
2ceb362d
AM
156182014-01-28 Alan Modra <amodra@gmail.com>
15619
15620 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
15621 * configure.ac <recursive call for build != host>: Define
15622 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
15623 and LD_FOR_BUILD too.
15624 * configure: Regenerate.
15625
0ebe2584
ASJ
156262014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
15627
15628 * config/i386/i386.c (get_builtin_code_for_version): Separate
15629 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
15630 Broadwell from Haswell.
15631
a33fc7fe
SE
156322014-01-27 Steve Ellcey <sellcey@mips.com>
15633
15634 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
15635 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
15636 * config/mips/mips.c (mips_option_override): Change setting
15637 of TARGET_DSP.
15638 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
0ebe2584
ASJ
15639 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
15640 Change from Mask to Var.
a33fc7fe 15641
a99be3c9
JL
156422014-01-27 Jeff Law <law@redhat.com>
15643
15644 * ipa-inline.c (inline_small_functions): Fix typo.
15645
d256b866
IT
156462014-01-27 Ilya Tocar <ilya.tocar@intel.com>
15647
15648 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
15649 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
15650 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
15651 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
15652 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
15653 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
15654 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
15655 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
15656 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
15657 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
15658 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
15659 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
15660 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
15661 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
15662 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
15663 (_mm512_storeu_epi64): Ditto.
15664 (_mm512_cmpge_epi32_mask): Ditto.
15665 (_mm512_cmpge_epu32_mask): Ditto.
15666 (_mm512_cmpge_epi64_mask): Ditto.
15667 (_mm512_cmpge_epu64_mask): Ditto.
15668 (_mm512_cmple_epi32_mask): Ditto.
15669 (_mm512_cmple_epu32_mask): Ditto.
15670 (_mm512_cmple_epi64_mask): Ditto.
15671 (_mm512_cmple_epu64_mask): Ditto.
15672 (_mm512_cmplt_epi32_mask): Ditto.
15673 (_mm512_cmplt_epu32_mask): Ditto.
15674 (_mm512_cmplt_epi64_mask): Ditto.
15675 (_mm512_cmplt_epu64_mask): Ditto.
15676 (_mm512_cmpneq_epi32_mask): Ditto.
15677 (_mm512_cmpneq_epu32_mask): Ditto.
15678 (_mm512_cmpneq_epi64_mask): Ditto.
15679 (_mm512_cmpneq_epu64_mask): Ditto.
15680 (_mm512_expand_pd): Ditto.
15681 (_mm512_expand_ps): Ditto.
15682 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
15683 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
15684 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
15685 * config/i386/i386.c (ix86_builtins): Add
15686 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
15687 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
15688 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
15689 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
15690 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
15691 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
15692 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
15693 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
15694 IX86_BUILTIN_PMOVUSQW512_MEM.
15695 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
15696 __builtin_ia32_pmovsqd512mem_mask,
15697 __builtin_ia32_pmovqd512mem_mask,
15698 __builtin_ia32_pmovusqw512mem_mask,
15699 __builtin_ia32_pmovsqw512mem_mask,
15700 __builtin_ia32_pmovqw512mem_mask,
15701 __builtin_ia32_pmovusdw512mem_mask,
15702 __builtin_ia32_pmovsdw512mem_mask,
15703 __builtin_ia32_pmovdw512mem_mask,
15704 __builtin_ia32_pmovqb512mem_mask,
15705 __builtin_ia32_pmovusqb512mem_mask,
15706 __builtin_ia32_pmovsqb512mem_mask,
15707 __builtin_ia32_pmovusdb512mem_mask,
15708 __builtin_ia32_pmovsdb512mem_mask,
15709 __builtin_ia32_pmovdb512mem_mask.
15710 (bdesc_args): Add __builtin_ia32_expanddf512,
15711 __builtin_ia32_expandsf512.
15712 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
15713 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
15714 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
15715 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
15716 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
15717 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
15718 (avx512f_<code>v8div16qi2_mask_store): This.
15719 (avx512f_expand<mode>): New.
15720
e711dffd
KY
157212014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
15722
1287ae50 15723 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
0ebe2584 15724 New.
e711dffd
KY
15725 (_mm512_mask_prefetch_i64gather_pd): Ditto.
15726 (_mm512_prefetch_i32scatter_pd): Ditto.
15727 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
15728 (_mm512_prefetch_i64scatter_pd): Ditto.
15729 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
15730 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
15731 (_mm512_mask_prefetch_i64gather_ps): Ditto.
15732 (_mm512_prefetch_i32scatter_ps): Ditto.
15733 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
15734 (_mm512_prefetch_i64scatter_ps): Ditto.
15735 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
15736 * config/i386/i386-builtin-types.def: Define
0ebe2584
ASJ
15737 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
15738 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
e711dffd
KY
15739 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
15740 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
15741 IX86_BUILTIN_SCATTERPFQPD.
15742 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
15743 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
15744 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
15745 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
15746 __builtin_ia32_scatterpfqps.
15747 (ix86_expand_builtin): Expand new built-ins.
15748 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
15749 fix memory access data type.
15750 (*avx512pf_gatherpf<mode>_mask): Ditto.
15751 (*avx512pf_gatherpf<mode>): Ditto.
15752 (avx512pf_scatterpf<mode>): Ditto.
15753 (*avx512pf_scatterpf<mode>_mask): Ditto.
15754 (*avx512pf_scatterpf<mode>): Ditto.
15755 (GATHER_SCATTER_SF_MEM_MODE): New.
15756 (avx512pf_gatherpf<mode>df): Ditto.
15757 (*avx512pf_gatherpf<mode>df_mask): Ditto.
15758 (*avx512pf_scatterpf<mode>df): Ditto.
15759
904e5ccd
JJ
157602014-01-27 Jakub Jelinek <jakub@redhat.com>
15761
15762 PR bootstrap/59934
15763 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
15764 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
15765 reached.
15766
84e90123
JG
157672014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
15768
15769 * common/config/arm/arm-common.c
15770 (arm_rewrite_mcpu): Handle multiple names.
15771 * config/arm/arm.h
15772 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
15773
c6f6157a
JG
157742014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
15775
15776 * gimple-builder.h (create_gimple_tmp): Delete.
15777
770516c9
CB
157782014-01-27 Christian Bruel <christian.bruel@st.com>
15779
15780 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
15781 words comparisons.
15782
cc5cec10
JDA
157832014-01-26 John David Anglin <danglin@gcc.gnu.org>
15784
5aa3c762
JDA
15785 * config/pa/pa.md (call): Generate indirect long calls to non-local
15786 functions when outputing 32-bit code.
15787 (call_value): Likewise except for special call to buggy powf function.
15788
cc5cec10
JDA
15789 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
15790 portable runtime and PIC indirect calls.
15791 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
15792 and PIC call sequences. Use ldo instead of blr to set return register
15793 in PIC call sequence.
15794
6bb0e248
WL
157952014-01-25 Walter Lee <walt@tilera.com>
15796
15797 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
15798 avoid clobbering a live register.
15799
dab03fe3
WL
158002014-01-25 Walter Lee <walt@tilera.com>
15801
770516c9 15802 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
dab03fe3 15803 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
770516c9 15804 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
dab03fe3
WL
15805 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
15806
905c20c1
WL
158072014-01-25 Walter Lee <walt@tilera.com>
15808
15809 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
15810 arguments on even registers.
15811 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
15812 STACK_BOUNDARY.
15813 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
15814 (BIGGEST_ALIGNMENT): Ditto.
15815 (BIGGEST_FIELD_ALIGNMENT): Ditto.
15816
8e90a625
WL
158172014-01-25 Walter Lee <walt@tilera.com>
15818
15819 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
15820 insns before bundling.
0ebe2584 15821 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
8e90a625 15822
450c1ffe
WL
158232014-01-25 Walter Lee <walt@tilera.com>
15824
15825 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
15826 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
15827 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
317a951f 15828
450c1ffe 158292014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
770516c9 15830
317a951f
RS
15831 * config/mips/constraints.md (kl): Delete.
15832 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
15833 define expands, using...
15834 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
15835 instructions for MIPS16.
15836 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
15837 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
15838
3abe9053
WL
158392014-01-25 Walter Lee <walt@tilera.com>
15840
0ebe2584 15841 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
3abe9053
WL
15842 (clzdi2): Ditto.
15843 (ffsdi2): Ditto.
15844
b0e0fe41
WL
158452014-01-25 Walter Lee <walt@tilera.com>
15846
15847 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
15848 (TARGET_EXPAND_TO_RTL_HOOK): Define.
15849
2c8798a2
RS
158502014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
15851
15852 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
15853 Handle XOR.
15854
2105be5a
JJ
158552014-01-25 Jakub Jelinek <jakub@redhat.com>
15856
4def6060
JJ
15857 * print-rtl.c (in_call_function_usage): New var.
15858 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
15859 EXPR_LIST mode as mode and not as reg note name.
15860
2105be5a
JJ
15861 PR middle-end/59561
15862 * cfgloopmanip.c (copy_loop_info): If
15863 loop->warned_aggressive_loop_optimizations, make sure
15864 the flag is set in target loop too.
15865
b72271b9
BI
158662014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
15867
15868 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
15869 flag_cilkplus.
15870 * builtins.def: Likewise.
15871 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
15872 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
15873 * ira.c (ira_setup_eliminable_regset): Likewise.
15874 * omp-low.c (gate_expand_omp): Likewise.
15875 (execute_lower_omp): Likewise.
15876 (diagnose_sb_0): Likewise.
15877 (gate_diagnose_omp_blocks): Likewise.
15878 (simd_clone_clauses_extract): Likewise.
15879 (gate): Likewise.
15880
8adcc78b
BS
158812014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15882
15883 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
15884 correction for little endian...
15885 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
15886 here.
15887
3d750496
JL
158882014-01-24 Jeff Law <law@redhat.com>
15889
15890 PR tree-optimization/59919
15891 * tree-vrp.c (find_assert_locations_1): Do not register asserts
15892 for non-returning calls.
15893
1c05df59
JG
158942014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
15895
15896 * common/config/aarch64/aarch64-common.c
15897 (aarch64_rewrite_mcpu): Handle multiple names.
15898 * config/aarch64/aarch64.h
15899 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
15900
317363b4
DS
159012014-01-24 Dodji Seketeli <dodji@redhat.com>
15902
15903 * input.c (add_file_to_cache_tab): Handle the case where fopen
15904 returns NULL.
15905
16370fa7
L
159062014-01-23 H.J. Lu <hongjiu.lu@intel.com>
15907
15908 PR target/59929
15909 * config/i386/i386.md (pushsf splitter): Get stack adjustment
15910 from push operand if code of push isn't PRE_DEC.
15911
b846c948
MM
159122014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
15913
15914 PR target/59909
15915 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
15916 -mquad-memory-atomic. Update -mquad-memory documentation to say
15917 it is only used for non-atomic loads/stores.
15918
15919 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
15920 -mquad-memory or -mquad-memory-atomic switches.
15921
15922 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
15923 -mquad-memory-atomic to ISA 2.07 support.
15924
15925 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
0ebe2584
ASJ
15926 to separate support of normal quad word memory operations (ldq, stq)
15927 from the atomic quad word memory operations.
b846c948
MM
15928
15929 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
15930 support to separate non-atomic quad word operations from atomic
15931 quad word operations. Disable non-atomic quad word operations in
15932 little endian mode so that we don't have to swap words after the
15933 load and before the store.
15934 (quad_load_store_p): Add comment about atomic quad word support.
15935 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
15936 options printed with -mdebug=reg.
15937
15938 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
15939 -mquad-memory-atomic as the test for whether we have quad word
15940 atomic instructions.
0ebe2584
ASJ
15941 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
15942 or -mp8-vector are used, allow byte/half-word atomic operations.
b846c948
MM
15943
15944 * config/rs6000/sync.md (load_lockedti): Insure that the address
15945 is a proper indexed or indirect address for the lqarx instruction.
15946 On little endian systems, swap the hi/lo registers after the lqarx
15947 instruction.
15948 (load_lockedpti): Use indexed_or_indirect_operand predicate to
15949 insure the address is valid for the lqarx instruction.
15950 (store_conditionalti): Insure that the address is a proper indexed
15951 or indirect address for the stqcrx. instruction. On little endian
15952 systems, swap the hi/lo registers before doing the stqcrx.
15953 instruction.
15954 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
15955 insure the address is valid for the stqcrx. instruction.
15956
15957 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
15958 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
15959 type of quad memory support is available.
15960
6e23f296
VM
159612014-01-23 Vladimir Makarov <vmakarov@redhat.com>
15962
15963 PR regression/59915
15964 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
15965 there is a danger of looping.
15966
0a4f04e5
PH
159672014-01-23 Pat Haugen <pthaugen@us.ibm.com>
15968
15969 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
15970 force flag_ira_loop_pressure if set via command line.
15971
f9a4c9a6
AV
159722014-01-23 Alex Velenko <Alex.Velenko@arm.com>
15973
15974 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
15975 (ashr_simd): New builtin handling DI mode.
15976 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
15977 (aarch64_sshr_simddi): New match pattern.
15978 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
15979 (vshrd_n_s64): Likewise.
15980 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
15981
949ad971
NC
159822014-01-23 Nick Clifton <nickc@redhat.com>
15983
15984 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
15985 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
15986 favour of mcu specific scripts.
15987 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
15988 430x multilibs.
15989
d5ecead9
JG
159902014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
15991 Alex Velenko <Alex.Velenko@arm.com>
15992
15993 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
15994 (vaddv_s16): Likewise.
15995 (vaddv_s32): Likewise.
15996 (vaddv_u8): Likewise.
15997 (vaddv_u16): Likewise.
15998 (vaddv_u32): Likewise.
15999 (vaddvq_s8): Likewise.
16000 (vaddvq_s16): Likewise.
16001 (vaddvq_s32): Likewise.
16002 (vaddvq_s64): Likewise.
16003 (vaddvq_u8): Likewise.
16004 (vaddvq_u16): Likewise.
16005 (vaddvq_u32): Likewise.
16006 (vaddvq_u64): Likewise.
16007 (vaddv_f32): Likewise.
16008 (vaddvq_f32): Likewise.
16009 (vaddvq_f64): Likewise.
16010 (vmaxv_f32): Likewise.
16011 (vmaxv_s8): Likewise.
16012 (vmaxv_s16): Likewise.
16013 (vmaxv_s32): Likewise.
16014 (vmaxv_u8): Likewise.
16015 (vmaxv_u16): Likewise.
16016 (vmaxv_u32): Likewise.
16017 (vmaxvq_f32): Likewise.
16018 (vmaxvq_f64): Likewise.
16019 (vmaxvq_s8): Likewise.
16020 (vmaxvq_s16): Likewise.
16021 (vmaxvq_s32): Likewise.
16022 (vmaxvq_u8): Likewise.
16023 (vmaxvq_u16): Likewise.
16024 (vmaxvq_u32): Likewise.
16025 (vmaxnmv_f32): Likewise.
16026 (vmaxnmvq_f32): Likewise.
16027 (vmaxnmvq_f64): Likewise.
16028 (vminv_f32): Likewise.
16029 (vminv_s8): Likewise.
16030 (vminv_s16): Likewise.
16031 (vminv_s32): Likewise.
16032 (vminv_u8): Likewise.
16033 (vminv_u16): Likewise.
16034 (vminv_u32): Likewise.
16035 (vminvq_f32): Likewise.
16036 (vminvq_f64): Likewise.
16037 (vminvq_s8): Likewise.
16038 (vminvq_s16): Likewise.
16039 (vminvq_s32): Likewise.
16040 (vminvq_u8): Likewise.
16041 (vminvq_u16): Likewise.
16042 (vminvq_u32): Likewise.
16043 (vminnmv_f32): Likewise.
16044 (vminnmvq_f32): Likewise.
16045 (vminnmvq_f64): Likewise.
16046
1dd055a2
JG
160472014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
16048
16049 * config/aarch64/aarch64-simd.md
16050 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
16051 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
16052 (*aarch64_mul3_elt<mode>): Likewise.
16053 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
16054 (*aarch64_mul3_elt_to_64v2df): Likewise.
16055 (*aarch64_mla_elt<mode>): Likewise.
16056 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
16057 (*aarch64_mls_elt<mode>): Likewise.
16058 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
16059 (*aarch64_fma4_elt<mode>): Likewise.
16060 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
16061 (*aarch64_fma4_elt_to_64v2df): Likewise.
16062 (*aarch64_fnma4_elt<mode>): Likewise.
16063 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
16064 (*aarch64_fnma4_elt_to_64v2df): Likewise.
16065 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
16066 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
16067 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
16068 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
16069 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
16070 (aarch64_sqdmull_lane<mode>_internal): Likewise.
16071 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
16072
dafb9b64
AV
160732013-01-23 Alex Velenko <Alex.Velenko@arm.com>
16074
16075 * config/aarch64/aarch64-simd.md
16076 (aarch64_be_checked_get_lane<mode>): New define_expand.
16077 * config/aarch64/aarch64-simd-builtins.def
0ebe2584 16078 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
dafb9b64
AV
16079 New builtin definition.
16080 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
16081 Use new safe be builtin.
16082
89b4515c
AV
160832014-01-23 Alex Velenko <Alex.Velenko@arm.com>
16084
16085 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
16086 New define_insn.
16087 (aarch64_be_st1<mode>): Likewise.
16088 (aarch_ld1<VALL:mode>): Define_expand modified.
16089 (aarch_st1<VALL:mode>): Likewise.
16090 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
16091 (UNSPEC_ST1): Likewise.
16092
4bb66ef3 160932014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
f3eeb82c
DH
16094
16095 * config/microblaze/microblaze.md: Add trap insn and attribute
16096
7ecc3eb9
DS
160972014-01-23 Dodji Seketeli <dodji@redhat.com>
16098
16099 PR preprocessor/58580
16100 * input.h (location_get_source_line): Take an additional line_size
16101 parameter.
16102 (void diagnostics_file_cache_fini): Declare new function.
16103 * input.c (struct fcache): New type.
16104 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
16105 New static constants.
16106 (diagnostic_file_cache_init, total_lines_num)
16107 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
16108 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
16109 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
16110 (get_next_line, read_next_line, goto_next_line, read_line_num):
16111 New static function definitions.
16112 (diagnostic_file_cache_fini): New function.
16113 (location_get_source_line): Take an additional output line_len
16114 parameter. Re-write using lookup_or_add_file_to_cache_tab and
16115 read_line_num.
16116 * diagnostic.c (diagnostic_finish): Call
16117 diagnostic_file_cache_fini.
16118 (adjust_line): Take an additional input parameter for the length
16119 of the line, rather than calculating it with strlen.
16120 (diagnostic_show_locus): Adjust the use of
16121 location_get_source_line and adjust_line with respect to their new
16122 signature. While displaying a line now, do not stop at the first
16123 null byte. Rather, display the zero byte as a space and keep
16124 going until we reach the size of the line.
16125 * Makefile.in: Add vec.o to OBJS-libcommon
16126
2196a885 161272014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
40c0a159 16128 Ilya Tocar <ilya.tocar@intel.com>
2196a885
KY
16129
16130 * config/i386/avx512fintrin.h (_mm512_kmov): New.
16131 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
16132 (__builtin_ia32_kmov16): Ditto.
16133 * config/i386/i386.md (UNSPEC_KMOV): New.
16134 (kmovw): Ditto.
16135
70473c63
KY
161362014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
16137
16138 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
16139 (_mm512_storeu_si512): Ditto.
16140
f9ae4df8
RS
161412014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
16142
16143 PR target/52125
16144 * rtl.h (get_referenced_operands): Declare.
16145 * recog.c (get_referenced_operands): New function.
16146 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
16147 operands have been referenced when recording LO_SUM references.
16148
4bb66ef3 161492014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
e50f5f2e
DH
16150
16151 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
16152
39960d1c 161532014-01-22 Jan Hubicka <hubicka@ucw.cz>
33b64438
JH
16154
16155 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
16156 Enable for generic and recent AMD targets.
16157
39960d1c 161582014-01-22 Jan Hubicka <hubicka@ucw.cz>
77b7a218
JH
16159
16160 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
16161 ARG_SIZE note when adjustment was eliminated.
16162
bb50b870
JL
161632014-01-22 Jeff Law <law@redhat.com>
16164
16165 PR tree-optimization/59597
16166 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
16167 in file. Accept new argument REGISTERING and use it to modify
16168 dump output appropriately.
16169 (register_jump_thread): Corresponding changes.
16170 (mark_threaded_blocks): Reinstate code to cancel unprofitable
16171 thread paths involving joiner blocks. Add code to dump cancelled
16172 jump threading paths.
16173
df2980be
VM
161742014-01-22 Vladimir Makarov <vmakarov@redhat.com>
16175
16176 PR rtl-optimization/59477
16177 * lra-constraints.c (inherit_in_ebb): Process call for living hard
0ebe2584 16178 regs. Update reloads_num and potential_reload_hard_regs for all insns.
df2980be 16179
1bb99900
TT
161802014-01-22 Tom Tromey <tromey@redhat.com>
16181
16182 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
16183 PARAMS.
16184 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
16185
9102dadd
VM
161862014-01-21 Vladimir Makarov <vmakarov@redhat.com>
16187
16188 PR rtl-optimization/59896
16189 * lra-constraints.c (process_alt_operands): Check unused note for
16190 matched operands of insn with no output reloads.
16191
ca376eb8
RS
161922014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
16193
16194 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
16195 (mips_move_from_gpr_cost): Likewise.
16196
a9711f36
VM
161972014-01-21 Vladimir Makarov <vmakarov@redhat.com>
16198
16199 PR rtl-optimization/59858
16200 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
16201 ira_class_hard_regs_num.
16202 (process_alt_operands): Increase reject for dying matched operand.
16203
f8ea7cb0
JJ
162042014-01-21 Jakub Jelinek <jakub@redhat.com>
16205
16206 PR target/59003
16207 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
16208 smaller than size, perform several stores or loads and stores
16209 at dst + count - size to store or copy all of size bytes, rather
16210 than just last modesize bytes.
16211
84db09e3
DD
162122014-01-20 DJ Delorie <dj@redhat.com>
16213
16214 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
16215 that CLOBBERs are REGs before propogating their values.
16216
1cf11770
L
162172014-01-20 H.J. Lu <hongjiu.lu@intel.com>
16218
16219 PR middle-end/59789
16220 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
16221 (cgraph_inline_failed_type): New function.
16222 * cgraph.h (DEFCIFCODE): Add type.
16223 (cgraph_inline_failed_type_t): New enum.
16224 (cgraph_inline_failed_type): New prototype.
16225 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
16226 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
16227 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
16228 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
16229 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
16230 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
16231 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
0ebe2584 16232 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
1cf11770
L
16233 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
16234 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
16235 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
16236 OPTIMIZATION_MISMATCH.
16237 * tree-inline.c (expand_call_inline): Emit errors during
0ebe2584 16238 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
1cf11770 16239
8586e4bd
UB
162402014-01-20 Uros Bizjak <ubizjak@gmail.com>
16241
16242 PR target/59685
16243 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
16244 mode attribute in insn output.
16245
99482090
EB
162462014-01-20 Eric Botcazou <ebotcazou@adacore.com>
16247
16248 * output.h (output_constant): Delete.
16249 * varasm.c (output_constant): Make private.
16250
ede23272
AV
162512014-01-20 Alex Velenko <Alex.Velenko@arm.com>
16252
16253 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
16254
9a7eefec
JJ
162552014-01-20 Jakub Jelinek <jakub@redhat.com>
16256
16257 PR middle-end/59860
16258 * tree.h (fold_builtin_strcat): New prototype.
16259 * builtins.c (fold_builtin_strcat): No longer static. Add len
16260 argument, if non-NULL, don't call c_strlen. Optimize
16261 directly into __builtin_memcpy instead of __builtin_strcpy.
16262 (fold_builtin_2): Adjust fold_builtin_strcat caller.
16263 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
16264
3e729145
UB
162652014-01-20 Uros Bizjak <ubizjak@gmail.com>
16266
16267 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
16268 for SImode_address_operand operands, having only a REG argument.
16269
eee0e487
MS
162702014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
16271
16272 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
16273 loader name using mbig-endian.
16274 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
16275
9e540e37
JG
162762014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
16277
16278 * doc/invoke.texi (-march): Clarify documentation for AArch64.
16279 (-mtune): Likewise.
16280 (-mcpu): Likewise.
16281
69675d50
TB
162822014-01-20 Tejas Belagod <tejas.belagod@arm.com>
16283
16284 * config/aarch64/aarch64-protos.h
16285 (aarch64_cannot_change_mode_class_ptr): Declare.
16286 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
16287 aarch64_cannot_change_mode_class_ptr): New.
16288 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
16289 backend hook aarch64_cannot_change_mode_class.
16290
ffee7aa9
JG
162912014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
16292
16293 * common/config/aarch64/aarch64-common.c
16294 (aarch64_handle_option): Don't handle any option order logic here.
16295 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
16296 selected_cpu, warn on architecture version mismatch.
16297 (aarch64_override_options): Fix parsing order for option strings.
16298
c7169779
JBG
162992014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16300 Iain Sandoe <iain@codesourcery.com>
16301
16302 PR bootstrap/59496
16303 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
16304 warning. Amend comment to reflect current functionality.
16305
409b6ac1
RB
163062014-01-20 Richard Biener <rguenther@suse.de>
16307
16308 PR middle-end/59860
16309 * builtins.c (fold_builtin_strcat): Remove case better handled
16310 by tree-ssa-strlen.c.
16311
608df31f
AL
163122014-01-20 Alan Lawrence <alan.lawrence@arm.com>
16313
16314 * config/aarch64/aarch64.opt
16315 (mcpu, march, mtune): Make case-insensitive.
16316
0fabe5f3
JJ
163172014-01-20 Jakub Jelinek <jakub@redhat.com>
16318
16319 PR target/59880
16320 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
16321 if operands[1] is a REG or ZERO_EXTEND of a REG.
16322
39960d1c 163232014-01-19 Jan Hubicka <hubicka@ucw.cz>
cdafab3d
JH
16324
16325 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
16326
925cb97d
JDA
163272014-01-19 John David Anglin <danglin@gcc.gnu.org>
16328
16329 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
16330 long non-pic millicode calls.
16331
f43856db
JBG
163322014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16333
16334 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
16335
d2be9965
ILT
163362014-01-19 Kito Cheng <kito@0xlab.org>
16337
16338 * builtins.c (expand_movstr): Check movstr expand done or fail.
16339
efc90043
UB
163402014-01-18 Uros Bizjak <ubizjak@gmail.com>
16341 H.J. Lu <hongjiu.lu@intel.com>
16342
16343 PR target/59379
16344 * config/i386/i386.md (*lea<mode>): Zero-extend return register
16345 to DImode for zero-extended addresses.
16346
8fce217e
JJ
163472014-01-19 Jakub Jelinek <jakub@redhat.com>
16348
16349 PR rtl-optimization/57763
16350 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
16351 on the new indirect jump_insn and increment LABEL_NUSES (label).
16352
efc90043 163532014-01-18 H.J. Lu <hongjiu.lu@intel.com>
646bdeab
L
16354
16355 PR bootstrap/59580
16356 PR bootstrap/59583
16357 * config.gcc (x86_archs): New variable.
16358 (x86_64_archs): Likewise.
16359 (x86_cpus): Likewise.
16360 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
16361 --with-arch/--with-cpu= options.
16362 Support --with-arch=/--with-cpu={nehalem,westmere,
16363 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
16364
7f3af6d3
UB
163652014-01-18 Uros Bizjak <ubizjak@gmail.com>
16366
16367 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
16368 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
16369
163702014-01-18 Uros Bizjak <ubizjak@gmail.com>
16371
16372 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
16373
fa5d6c75
JJ
163742014-01-18 Jakub Jelinek <jakub@redhat.com>
16375
16376 PR target/58944
16377 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
16378 clear cpp_get_options (parse_in)->warn_unused_macros for
16379 ix86_target_macros_internal with cpp_define.
16380
04da5680
RS
163812014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
16382
16383 * jump.c (delete_related_insns): Keep (use (insn))s.
16384 * reorg.c (redundant_insn): Check for barriers too.
16385
1e99bee5
L
163862014-01-17 H.J. Lu <hongjiu.lu@intel.com>
16387
7f3af6d3 16388 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
1e99bee5 16389
fa7d0c60
JDA
163902014-01-17 John David Anglin <danglin@gcc.gnu.org>
16391
16392 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
16393 call to $$dyncall when TARGET_LONG_CALLS is true.
16394
2043135a
JL
163952014-01-17 Jeff Law <law@redhat.com>
16396
16397 * ree.c (combine_set_extension): Temporarily disable test for
16398 changing number of hard registers.
16399
39960d1c 164002014-01-17 Jan Hubicka <hubicka@ucw.cz>
f3e11e05
JH
16401
16402 PR middle-end/58125
16403 * ipa-inline-analysis.c (inline_free_summary):
16404 Do not free summary of aliases.
16405
664ceb1e
JJ
164062014-01-17 Jakub Jelinek <jakub@redhat.com>
16407
16408 PR middle-end/59706
16409 * gimplify.c (gimplify_expr): Use create_tmp_var
16410 instead of create_tmp_var_raw. If cond doesn't have
16411 integral type, don't add the IFN_ANNOTATE builtin at all.
16412
aef83682
MJ
164132014-01-17 Martin Jambor <mjambor@suse.cz>
16414
16415 PR ipa/59736
16416 * ipa-cp.c (prev_edge_clone): New variable.
16417 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
16418 Also resize prev_edge_clone vector.
16419 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
16420 (ipcp_edge_removal_hook): New function.
16421 (ipcp_driver): Register ipcp_edge_removal_hook.
16422
4bb66ef3 164232014-01-17 Andrew Pinski <apinski@cavium.com>
3b9c787b
AP
16424 Steve Ellcey <sellcey@mips.com>
16425
16426 PR target/59462
16427 * config/mips/mips.c (mips_print_operand): Check operand mode instead
16428 of operator mode.
16429
4ee5c752
JL
164302014-01-17 Jeff Law <law@redhat.com>
16431
16432 PR middle-end/57904
16433 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
16434 so that pass_ccp runs first.
16435
40cfac7c
L
164362014-01-17 H.J. Lu <hongjiu.lu@intel.com>
16437
16438 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
16439 (ix86_adjust_cost): Use !TARGET_XXX.
16440 (do_reorder_for_imul): Likewise.
16441 (swap_top_of_ready_list): Likewise.
16442 (ix86_sched_reorder): Likewise.
16443
9a7f94d7
L
164442014-01-17 H.J. Lu <hongjiu.lu@intel.com>
16445
16446 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16447 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
16448 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
16449 (intel_memset): New. Duplicate slm_memset.
16450 (intel_cost): New. Duplicate slm_cost.
16451 (m_INTEL): New macro.
16452 (processor_target_table): Add "intel".
16453 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
16454 with PROCESSOR_INTEL for "intel".
16455 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
16456 PROCESSOR_SILVERMONT.
9a7f94d7
L
16457 (ix86_issue_rate): Likewise.
16458 (ix86_adjust_cost): Likewise.
16459 (ia32_multipass_dfa_lookahead): Likewise.
16460 (swap_top_of_ready_list): Likewise.
16461 (ix86_sched_reorder): Likewise.
8cdcf750
L
16462 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
16463 instead of TARGET_OPT_AGU.
9a7f94d7
L
16464 * config/i386/i386.h (TARGET_INTEL): New.
16465 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
16466 (processor_type): Add PROCESSOR_INTEL.
7f3af6d3
UB
16467 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
16468 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
9a7f94d7 16469
30078c0a
MP
164702014-01-17 Marek Polacek <polacek@redhat.com>
16471
16472 PR c/58346
16473 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
16474 size is zero.
16475
14379e66
RB
164762014-01-17 Richard Biener <rguenther@suse.de>
16477
16478 PR tree-optimization/46590
16479 * opts.c (default_options_table): Add entries for
16480 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
16481 all enabled at -O1 but not for -Og.
16482 * common.opt (fbranch-count-reg): Remove Init(1).
16483 (fmove-loop-invariants): Likewise.
16484 (ftree-pta): Likewise.
16485
f7d594d2
JJ
164862014-01-17 Jakub Jelinek <jakub@redhat.com>
16487
88e18bd5
JJ
16488 * config/i386/i386.c (ix86_data_alignment): For compatibility with
16489 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
16490 decls to at least the GCC 4.8 used alignments.
16491
f7d594d2
JJ
16492 PR fortran/59440
16493 * tree-nested.c (convert_nonlocal_reference_stmt,
16494 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
16495 of GIMPLE_BIND stmts, adjust associated decls.
16496
32500433
RB
164972014-01-17 Richard Biener <rguenther@suse.de>
16498
16499 PR tree-optimization/46590
16500 * vec.h (vec<>::bseach): New member function implementing
16501 binary search according to C89 bsearch.
16502 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
16503 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
16504 bitmap pointer again. Make accesses_in_loop a flat array.
16505 (mem_ref_obstack): New global.
16506 (outermost_indep_loop): Adjust for mem_ref->stored changes.
16507 (mark_ref_stored): Likewise.
16508 (ref_indep_loop_p_2): Likewise.
16509 (set_ref_stored_in_loop): New helper function.
16510 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
16511 (memref_free): Adjust.
16512 (record_mem_ref_loc): Simplify.
16513 (gather_mem_refs_stmt): Adjust.
16514 (sort_locs_in_loop_postorder_cmp): New function.
16515 (analyze_memory_references): Sort accesses_in_loop after
16516 loop postorder number.
16517 (find_ref_loc_in_loop_cmp): New function.
16518 (for_all_locs_in_loop): Find relevant cluster of locs in
16519 accesses_in_loop and iterate without recursion.
16520 (execute_sm): Avoid uninit warning.
16521 (struct ref_always_accessed): Simplify.
16522 (ref_always_accessed::operator ()): Likewise.
16523 (ref_always_accessed_p): Likewise.
16524 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
16525 loop postorder numbers here.
16526 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
16527 numbers.
16528
24fcf4bc
JJ
165292014-01-17 Jan Hubicka <hubicka@ucw.cz>
16530
16531 PR c++/57945
16532 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
16533 on decls for which assemble_alias has been called.
16534
d4f283a1
NC
165352014-01-17 Nick Clifton <nickc@redhat.com>
16536
16537 * config/msp430/msp430.opt: (mcpu): New option.
16538 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
16539 (msp430_option_override): Parse target_cpu. If the MCU name
16540 matches a generic string, clear target_mcu.
16541 (msp430_attr): Allow numeric interrupt values up to 63.
16542 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
16543 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
16544 option.
16545 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
16546 Add mcpu matches.
16547 * config/msp430/msp430.md (popm): Use %J rather than %I.
16548 (addsi3): Use msp430_nonimmediate_operand for operand 2.
16549 (addhi_cy_i): Use immediate_operand for operand 2.
16550 * doc/invoke.texi: Document -mcpu option.
16551
7be64667
RB
165522014-01-17 Richard Biener <rguenther@suse.de>
16553
16554 PR rtl-optimization/38518
16555 * df.h (df_analyze_loop): Declare.
16556 * df-core.c: Include cfgloop.h.
16557 (df_analyze_1): Split out main part of df_analyze.
16558 (df_analyze): Adjust.
16559 (loop_inverted_post_order_compute): New function.
16560 (loop_post_order_compute): Likewise.
16561 (df_analyze_loop): New function avoiding whole-function
16562 postorder computes.
16563 * loop-invariant.c (find_defs): Use df_analyze_loop.
16564 (find_invariants): Adjust.
16565 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
16566
82a197a2
ZC
165672014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
16568
16569 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
16570 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
16571
c68b3f52
IE
165722014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
16573
16574 * ipa-ref.c (ipa_remove_stmt_references): Fix references
16575 traversal when removing references.
16576
39960d1c 165772014-01-16 Jan Hubicka <hubicka@ucw.cz>
f910753d
JH
16578
16579 PR ipa/59775
16580 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
16581
9e6f9ad6
BS
165822014-01-16 Bernd Schmidt <bernds@codesourcery.com>
16583
16584 PR middle-end/56791
16585 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
16586 pushing a reload for an autoinc when we had previously reloaded an
16587 inner part of the address.
16588
a611d7cb
JJ
165892014-01-16 Jakub Jelinek <jakub@redhat.com>
16590
d1417442
JJ
16591 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
16592 field.
16593 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
16594 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
16595 when not giving up or versioning for alias only because of
16596 loop->safelen.
16597 (vect_analyze_data_ref_dependences): Set to true.
16598 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
16599 is a GIMPLE_PHI.
16600 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
16601 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
16602 to the condition.
16603
42ed6cde
JJ
16604 PR middle-end/58344
16605 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
16606
a611d7cb 16607 PR target/59839
7f3af6d3
UB
16608 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
16609 operand 0 predicate for gathers, use a new pseudo as subtarget.
a611d7cb 16610
8f21260c
VM
166112014-01-16 Vladimir Makarov <vmakarov@redhat.com>
16612
16613 PR middle-end/59609
7f3af6d3
UB
16614 * lra-constraints.c (process_alt_operands): Add printing debug info.
16615 Check absence of input/output reloads for matched operands too.
8f21260c 16616
1a788c05
VM
166172014-01-16 Vladimir Makarov <vmakarov@redhat.com>
16618
16619 PR rtl-optimization/59835
16620 * ira.c (ira_init_register_move_cost): Increase cost for
16621 impossible modes.
16622
4cf24d27
AL
166232014-01-16 Alan Lawrence <alan.lawrence@arm.com>
16624
cc3a9f0d 16625 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
4cf24d27 16626
030d03b8
RE
166272014-01-16 Richard Earnshaw <rearnsha@arm.com>
16628
16629 PR target/59780
16630 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
16631 non-register objects. Use gen_(high/low)part more consistently.
16632 Fix assertions.
16633
e78f06a8
MM
166342014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
16635
16636 PR target/59844
16637 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
16638 endian support, remove tests for WORDS_BIG_ENDIAN.
16639 (p8_mfvsrd_3_<mode>): Likewise.
16640 (reload_gpr_from_vsx<mode>): Likewise.
16641 (reload_gpr_from_vsxsf): Likewise.
16642 (p8_mfvsrd_4_disf): Likewise.
16643
9d1ae52c
RB
166442014-01-16 Richard Biener <rguenther@suse.de>
16645
16646 PR rtl-optimization/46590
16647 * lcm.c (compute_antinout_edge): Use postorder iteration.
16648 (compute_laterin): Use inverted postorder iteration.
16649
54c7a7f3
NC
166502014-01-16 Nick Clifton <nickc@redhat.com>
16651
16652 PR middle-end/28865
16653 * varasm.c (output_constant): Return the number of bytes actually
16654 emitted.
16655 (output_constructor_array_range): Update the field size with the
16656 number of bytes emitted by output_constant.
16657 (output_constructor_regular_field): Likewise. Also do not
16658 complain if the total number of bytes emitted is now greater
16659 than the expected fieldpos.
7f3af6d3 16660 * output.h (output_constant): Update prototype and descriptive comment.
54c7a7f3 16661
5147d10a
MP
166622014-01-16 Marek Polacek <polacek@redhat.com>
16663
16664 PR middle-end/59827
16665 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
16666 it is error_mark_node.
16667
4ac005ba
UB
166682014-01-15 Uros Bizjak <ubizjak@gmail.com>
16669
16670 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
16671 VALID_AVX256_REG_OR_OI_MODE.
16672
5d7574fa
PH
166732014-01-15 Pat Haugen <pthaugen@us.ibm.com>
16674
16675 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
16676 current procedure should be profiled.
16677
6ee70f81
AP
166782014-01-15 Andrew Pinski <apinski@cavium.com>
16679
16680 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
16681 of moving from/to the STACK_REG register class.
16682
004a7e45 166832014-01-15 Richard Henderson <rth@redhat.com>
af6e8467
RH
16684
16685 PR debug/54694
16686 * reginfo.c (global_regs_decl): Globalize.
16687 * rtl.h (global_regs_decl): Declare.
16688 * ira.c (do_reload): Diagnose frame_pointer_needed and it
16689 reserved via global_regs.
16690
4583fada
TJ
166912014-01-15 Teresa Johnson <tejohnson@google.com>
16692
16693 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
16694
d13dfec8
BS
166952014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
16696
16697 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
16698 and vmulosh rather than call gen_vec_widen_smult_*.
16699 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
16700 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
16701 (vec_widen_smult_even_v16qi): Likewise.
16702 (vec_widen_umult_even_v8hi): Likewise.
16703 (vec_widen_smult_even_v8hi): Likewise.
16704 (vec_widen_umult_odd_v16qi): Likewise.
16705 (vec_widen_smult_odd_v16qi): Likewise.
16706 (vec_widen_umult_odd_v8hi): Likewise.
16707 (vec_widen_smult_odd_v8hi): Likewise.
16708 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
16709 vmuloub rather than call gen_vec_widen_umult_*.
16710 (vec_widen_umult_lo_v16qi): Likewise.
16711 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
16712 vmulosb rather than call gen_vec_widen_smult_*.
16713 (vec_widen_smult_lo_v16qi): Likewise.
16714 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
16715 rather than call gen_vec_widen_umult_*.
16716 (vec_widen_umult_lo_v8hi): Likewise.
16717 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
16718 rather than call gen_vec_widen_smult_*.
16719 (vec_widen_smult_lo_v8hi): Likewise.
16720
a6a2d67b
JL
167212014-01-15 Jeff Law <law@redhat.com>
16722
16723 PR tree-optimization/59747
16724 * ree.c (find_and_remove_re): Properly handle case where a second
16725 eliminated extension requires widening a copy created for elimination
16726 of a prior extension.
16727 (combine_set_extension): Ensure that the number of hard regs needed
16728 for a destination register does not change when we widen it.
16729
aefe4056
SH
167302014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
16731
16732 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
16733 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
16734 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
16735 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
16736 (avr-*-rtems*): Likewise.
16737 (bfin*-rtems*): Likewise.
16738 (moxie-*-rtems*): Likewise.
16739 (h8300-*-rtems*): Likewise.
16740 (i[34567]86-*-rtems*): Likewise.
16741 (lm32-*-rtems*): Likewise.
16742 (m32r-*-rtems*): Likewise.
16743 (m68k-*-rtems*): Likewise.
16744 (microblaze*-*-rtems*): Likewise.
16745 (mips*-*-rtems*): Likewise.
16746 (powerpc-*-rtems*): Likewise.
16747 (sh-*-rtems*): Likewise.
16748 (sparc-*-rtems*): Likewise.
16749 (sparc64-*-rtems*): Likewise.
16750 (v850-*-rtems*): Likewise.
16751 (m32c-*-rtems*): Likewise.
16752
fef37404
VM
167532014-01-15 Vladimir Makarov <vmakarov@redhat.com>
16754
16755 PR rtl-optimization/59511
16756 * ira.c (ira_init_register_move_cost): Use memory costs for some
16757 cases of register move cost calculations.
16758 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
16759 instead of BB frequency.
16760 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
16761 * lra-assigns.c (find_hard_regno_for): Ditto.
16762
6b916b36
RB
167632014-01-15 Richard Biener <rguenther@suse.de>
16764
16765 PR tree-optimization/59822
16766 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
16767 (vectorizable_load): Use it to hoist defs of uses of invariant
16768 loads out of the loop.
16769
d103f29b 167702014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
1287ae50 16771 Kugan Vivekanandarajah <kuganv@linaro.org>
d103f29b
MGD
16772
16773 PR target/59695
16774 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
16775 truncation.
16776
95cb8697
RB
167772014-01-15 Richard Biener <rguenther@suse.de>
16778
16779 PR rtl-optimization/59802
16780 * lcm.c (compute_available): Use inverted postorder to seed
16781 the initial worklist.
16782
cb4b6d17
AK
167832014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16784
1c8b5303 16785 PR target/59803
cb4b6d17
AK
16786 * config/s390/s390.c (s390_preferred_reload_class): Don't return
16787 ADDR_REGS for invalid symrefs in non-PIC code.
16788
2738b4c7
JJ
167892014-01-15 Jakub Jelinek <jakub@redhat.com>
16790
16791 PR other/58712
16792 * builtins.c (determine_block_size): Initialize *probable_max_size
16793 even if len_rtx is CONST_INT.
16794
d126a4ae
AP
167952014-01-14 Andrew Pinski <apinski@cavium.com>
16796
16797 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
16798 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
16799 (cortexa53_tunings): Likewise.
16800 (aarch64_sched_issue_rate): New function.
16801 (TARGET_SCHED_ISSUE_RATE): Define.
16802
dc687582
VM
168032014-01-14 Vladimir Makarov <vmakarov@redhat.com>
16804
16805 * ira-costs.c (find_costs_and_classes): Add missed
16806 ira_init_register_move_cost_if_necessary.
16807
e940b2ec
VM
168082014-01-14 Vladimir Makarov <vmakarov@redhat.com>
16809
16810 PR target/59787
16811 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
16812
3292e376
L
168132014-01-14 H.J. Lu <hongjiu.lu@intel.com>
16814
16815 PR target/59794
16816 * config/i386/i386.c (type_natural_mode): Add a bool parameter
4ac005ba
UB
16817 to indicate if type is used for function return value. Warn ABI
16818 change if the vector mode isn't available for function return value.
3292e376
L
16819 (ix86_function_arg_advance): Pass false to type_natural_mode.
16820 (ix86_function_arg): Likewise.
16821 (ix86_gimplify_va_arg): Likewise.
16822 (function_arg_32): Don't warn ABI change.
16823 (ix86_function_value): Pass true to type_natural_mode.
16824 (ix86_return_in_memory): Likewise.
16825 (ix86_struct_value_rtx): Removed.
16826 (TARGET_STRUCT_VALUE_RTX): Likewise.
16827
db930875
RS
168282014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
16829
16830 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
16831 converting a conditional jump into a conditional return.
16832
a0e35eb0
RB
168332014-01-14 Richard Biener <rguenther@suse.de>
16834
16835 PR tree-optimization/58921
16836 PR tree-optimization/59006
16837 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
16838 hoisting invariant stmts.
16839 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
16840 invariant loads on the preheader edge if possible.
16841
a984e92e
JY
168422014-01-14 Joey Ye <joey.ye@arm.com>
16843
16844 * doc/plugin.texi (Building GCC plugins): Update to C++.
16845
c56a42b9
KY
168462014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
16847
3292e376 16848 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
c56a42b9
KY
16849 (_mm_rcp28_round_ss): Ditto.
16850 (_mm_rsqrt28_round_sd): Ditto.
16851 (_mm_rsqrt28_round_ss): Ditto.
16852 (_mm_rcp28_sd): Ditto.
16853 (_mm_rcp28_ss): Ditto.
16854 (_mm_rsqrt28_sd): Ditto.
16855 (_mm_rsqrt28_ss): Ditto.
16856 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
16857 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
16858 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
16859 (IX86_BUILTIN_RCP28SD): Ditto.
16860 (IX86_BUILTIN_RCP28SS): Ditto.
16861 (IX86_BUILTIN_RSQRT28SD): Ditto.
16862 (IX86_BUILTIN_RSQRT28SS): Ditto.
16863 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
16864 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
16865 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
16866 (ix86_expand_special_args_builtin): Expand new FTYPE.
16867 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
16868 (srcp14<mode>): Make insn unary.
16869 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
16870 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
16871 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
16872 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
16873 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
16874 Fix rounding: make it SAE only.
4ac005ba
UB
16875 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
16876 Ditto.
16877 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
16878 Ditto.
c56a42b9
KY
16879 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
16880 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
16881 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
16882 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
16883 (round_saeonly_mask_scalar_operand4): Ditto.
16884 (round_saeonly_mask_scalar_op3): Ditto.
16885 (round_saeonly_mask_scalar_op4): Ditto.
16886
09fccb62
BS
168872014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16888
16889 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16890 Implement -maltivec=be for vec_insert and vec_extract.
16891
fb28dac0
DD
168922014-01-10 DJ Delorie <dj@redhat.com>
16893
16894 * config/msp430/msp430.md (call_internal): Don't allow memory
16895 references with SP as the base register.
16896 (call_value_internal): Likewise.
16897 * config/msp430/constraints.md (Yc): New. For memory references
16898 that don't use SP as a base register.
16899
16900 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
16901 "an integer without a # prefix"
16902 * config/msp430/msp430.md (epilogue_helper): Use it.
16903
19e51b40
JJ
169042014-01-13 Jakub Jelinek <jakub@redhat.com>
16905
03b9e8e4
JJ
16906 PR target/59617
16907 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
16908 AVX512F gather builtins.
16909 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
16910 on gather decls with INTEGER_TYPE masktype.
16911 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
16912 directly into the builtin rather than hoisting it before loop.
16913
19e51b40
JJ
16914 PR tree-optimization/59387
16915 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
16916 (scev_const_prop): If folded_casts and type has undefined overflow,
16917 use force_gimple_operand instead of force_gimple_operand_gsi and
16918 for each added stmt if it is assign with
16919 arith_code_with_undefined_signed_overflow, call
16920 rewrite_to_defined_overflow.
16921 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
16922 gimple-fold.h instead.
16923 (arith_code_with_undefined_signed_overflow,
16924 rewrite_to_defined_overflow): Moved to ...
16925 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
16926 rewrite_to_defined_overflow): ... here. No longer static.
16927 Include gimplify-me.h.
16928 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
16929 rewrite_to_defined_overflow): New prototypes.
16930
cd794ed4
KT
169312014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16932
16933 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
16934
e75fde1a
EB
169352014-01-13 Eric Botcazou <ebotcazou@adacore.com>
16936
16937 * builtins.c (get_object_alignment_2): Minor tweak.
16938 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
16939
eae298d6
CB
169402014-01-13 Christian Bruel <christian.bruel@st.com>
16941
16942 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
e75fde1a 16943 optimized non constant lengths.
eae298d6 16944
8175be9a
JJ
169452014-01-13 Jakub Jelinek <jakub@redhat.com>
16946
16947 PR libgomp/59194
16948 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
16949 load as __atomic_load_N if possible.
16950
9c111368
DE
169512014-01-11 David Edelsohn <dje.gcc@gmail.com>
16952
16953 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
16954 target parameter.
16955 (rs6000_expand_builtin): Adjust call.
16956
c82846bc
DE
169572014-01-11 David Edelsohn <dje.gcc@gmail.com>
16958
16959 PR target/58115
16960 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
16961 * config/rs6000/rs6000.c: Include target-globals.h.
16962 (rs6000_set_current_function): Instead of doing target_reinit
16963 unconditionally, use save_target_globals_default_opts and
16964 restore_target_globals.
16965
16966 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
16967 FPSCR.
16968 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
16969 (rs6000_expand_builtin): Handle mffs and mtfsf.
16970 (rs6000_init_builtins): Define mffs and mtfsf.
16971 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
16972 (rs6000_mffs): New pattern.
16973 (rs6000_mtfsf): New pattern.
16974
2c407426
BC
169752014-01-11 Bin Cheng <bin.cheng@arm.com>
16976
16977 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
16978 Start narrowing with START. Apply candidate-use pair
16979 and check overall cost in narrowing.
16980 (iv_ca_prune): Pass new argument.
16981
7e41c852
JL
169822014-01-10 Jeff Law <law@redhat.com>
16983
16984 PR middle-end/59743
16985 * ree.c (combine_reaching_defs): Ensure the defining statement
16986 occurs before the extension when optimizing extensions with
16987 different source and destination hard registers.
16988
39960d1c 169892014-01-10 Jan Hubicka <hubicka@ucw.cz>
b270b096
JH
16990
16991 PR ipa/58585
4ac005ba
UB
16992 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
16993 vtables into the type inheritance graph.
b270b096 16994
0d6d7b9a
JJ
169952014-01-10 Jakub Jelinek <jakub@redhat.com>
16996
16997 PR rtl-optimization/59754
16998 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
16999 modes in the REGNO != REGNO case.
17000
110132c1
BS
170012014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17002
17003 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
17004
5da96960
JJ
170052014-01-10 Jakub Jelinek <jakub@redhat.com>
17006
4f87d581
JJ
17007 PR tree-optimization/59745
17008 * tree-predcom.c (tree_predictive_commoning_loop): Call
17009 free_affine_expand_cache if giving up because components is NULL.
17010
5da96960
JJ
17011 * target-globals.c (save_target_globals): Allocate < 4KB structs using
17012 GC in payload of target_globals struct instead of allocating them on
17013 the heap and the larger structs separately using GC.
17014 * target-globals.h (struct target_globals): Make regs, hard_regs,
17015 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
17016 of GTY((skip)) and change type to void *.
17017 (reset_target_globals): Cast loads from those fields to corresponding
17018 types.
17019
1aa26aac
SE
170202014-01-10 Steve Ellcey <sellcey@mips.com>
17021
17022 PR plugins/59335
17023 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
17024 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
17025 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
17026
1c992d1e
RE
170272014-01-10 Richard Earnshaw <rearnsha@arm.com>
17028
7783a246 17029 PR target/59744
1c992d1e
RE
17030 * aarch64-modes.def (CC_Zmode): New flags mode.
17031 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
17032 represents an equality.
7783a246 17033 (aarch64_get_condition_code): Handle CC_Zmode.
1c992d1e
RE
17034 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
17035
86464cbd
AK
170362014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17037
17038 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
17039 extraction in good case.
17040
5e6667b2
RB
170412014-01-10 Richard Biener <rguenther@suse.de>
17042
17043 PR tree-optimization/59374
17044 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
17045 checking after SLP discovery. Mark stmts not participating
17046 in any SLP instance properly.
17047
5619162c
KT
170482014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17049
17050 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
17051 when handling a SET rtx.
17052
2d17b99f
KT
170532014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17054
17055 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
17056 (cortex-a57): Likewise.
17057 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
17058
bcca645c
KT
170592014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17060
17061 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
17062 non-iwmmxt builtins.
17063
a3788dde
JH
170642014-01-10 Jan Hubicka <hubicka@ucw.cz>
17065
17066 PR ipa/58252
17067 PR ipa/59226
17068 * ipa-devirt.c record_target_from_binfo): Take as argument
17069 stack of binfos and lookup matching one for virtual inheritance.
17070 (possible_polymorphic_call_targets_1): Update.
17071
87ed883e
HC
170722014-01-10 Huacai Chen <chenhc@lemote.com>
17073
17074 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
17075 kernel strings for Loongson-2E/2F/3A.
17076
cd4447e2
JJ
170772014-01-10 Jakub Jelinek <jakub@redhat.com>
17078
17079 PR middle-end/59670
17080 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
17081 is_gimple_call before calling gimple_call_internal_p.
17082
3fadf78a
SE
170832014-01-09 Steve Ellcey <sellcey@mips.com>
17084
17085 * Makefile.in (TREE_FLOW_H): Remove.
17086 (TREE_SSA_H): Add file names from tree-flow.h.
17087 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
17088 * tree.h: Remove tree-flow.h reference.
17089 * hash-table.h: Remove tree-flow.h reference.
17090 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
17091 reference with tree-ssa-loop.h.
17092
6edc217d
BS
170932014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17094
17095 * doc/invoke.texi: Add -maltivec={be,le} options, and document
17096 default element-order behavior for -maltivec.
17097 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
17098 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
17099 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
17100 when targeting big endian, at least for now.
17101 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
17102
a70e9985
JJ
171032014-01-09 Jakub Jelinek <jakub@redhat.com>
17104
3396aba5
JJ
17105 PR middle-end/47735
17106 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
17107 var satisfies use_register_for_decl, just take into account type
17108 alignment, rather than decl alignment.
17109
a70e9985
JJ
17110 PR tree-optimization/59622
17111 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
17112 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
17113 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
17114 Don't devirtualize for inplace at all. For targets.length () == 1,
17115 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
17116
6e9cc565
L
171172014-01-09 H.J. Lu <hongjiu.lu@intel.com>
17118
17119 * config/i386/i386.md (cpu): Remove the unused btver1.
17120
d1c0e4ac
L
171212014-01-09 H.J. Lu <hongjiu.lu@intel.com>
17122
17123 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
17124
e83b8e2e
JJ
171252014-01-09 Jakub Jelinek <jakub@redhat.com>
17126
17127 PR target/58115
17128 * tree-core.h (struct target_globals): New forward declaration.
17129 (struct tree_target_option): Add globals field.
17130 * tree.h (TREE_TARGET_GLOBALS): Define.
17131 (prepare_target_option_nodes_for_pch): New prototype.
17132 * target-globals.h (struct target_globals): Define even if
17133 !SWITCHABLE_TARGET.
17134 * tree.c (prepare_target_option_node_for_pch,
17135 prepare_target_option_nodes_for_pch): New functions.
17136 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
17137 * config/i386/i386.c: Include target-globals.h.
17138 (ix86_set_current_function): Instead of doing target_reinit
17139 unconditionally, use save_target_globals_default_opts and
17140 restore_target_globals.
17141
2aaed0f3
RB
171422014-01-09 Richard Biener <rguenther@suse.de>
17143
17144 PR tree-optimization/59715
17145 * tree-cfg.h (split_critical_edges): Declare.
17146 * tree-cfg.c (split_critical_edges): Export.
17147 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
17148
b5ebc991
MO
171492014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
17150
4ac005ba 17151 * cfgexpand.c (expand_stack_vars): Optionally disable
b5ebc991
MO
17152 asan stack protection.
17153 (expand_used_vars): Likewise.
17154 (partition_stack_vars): Likewise.
4ac005ba 17155 * asan.c (asan_emit_stack_protection): Optionally disable
b5ebc991 17156 after return stack usage.
7f3af6d3 17157 (instrument_derefs): Optionally disable memory access instrumentation.
b5ebc991
MO
17158 (instrument_builtin_call): Likewise.
17159 (instrument_strlen_call): Likewise.
7f3af6d3 17160 (asan_protect_global): Optionally disable global variables protection.
b5ebc991
MO
17161 * doc/invoke.texi: Added doc for new options.
17162 * params.def: Added new options.
17163 * params.h: Likewise.
17164
b59e0455
JJ
171652014-01-09 Jakub Jelinek <jakub@redhat.com>
17166
17167 PR rtl-optimization/59724
17168 * ifcvt.c (cond_exec_process_if_block): Don't call
17169 flow_find_head_matching_sequence with 0 longest_match.
17170 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
17171 non-active insns if !stop_after.
17172 (try_head_merge_bb): Revert 2014-01-07 changes.
17173
650c4c85
JL
171742014-01-08 Jeff Law <law@redhat.com>
17175
17176 * ree.c (get_sub_rtx): New function, extracted from...
17177 (merge_def_and_ext): Here.
17178 (combine_reaching_defs): Use get_sub_rtx.
17179
ff36fcbe
EB
171802014-01-08 Eric Botcazou <ebotcazou@adacore.com>
17181
17182 * cgraph.h (varpool_variable_node): Do not choke on null node.
17183
9f9d82aa
CM
171842014-01-08 Catherine Moore <clm@codesourcery.com>
17185
4ac005ba
UB
17186 * config/mips/mips.md (simple_return): Attempt to use JRC
17187 for microMIPS.
9f9d82aa
CM
17188 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
17189
df6c8808
RS
171902014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
17191
17192 PR rtl-optimization/59137
17193 * reorg.c (steal_delay_list_from_target): Call update_block for
17194 elided insns.
17195 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
17196
6170ceff
BS
171972014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17198
17199 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
17200 two duplicate entries.
17201
3f140f32
RS
172022014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
17203
17204 Revert:
17205 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
17206
17207 * config/mips/mips.c (mips_truncated_op_cost): New function.
17208 (mips_rtx_costs): Adjust test for BADDU.
17209 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
17210
17211 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
17212
17213 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
17214 (*baddu_si): ...this new pattern.
17215
c6de6665
JJ
172162014-01-08 Jakub Jelinek <jakub@redhat.com>
17217
17218 PR ipa/59722
17219 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
17220
4c437f02
BE
172212014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
17222
17223 PR middle-end/57748
17224 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
17225 inner_reference_p.
17226 (expand_expr, expand_normal): Adjust.
17227 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
17228 inner_reference_p. Use inner_reference_p to expand inner references.
17229 (store_expr): Adjust.
17230 * cfgexpand.c (expand_call_stmt): Adjust.
17231
4ac005ba 172322014-01-08 Rong Xu <xur@google.com>
40d6b753
RX
17233
17234 * gcov-io.c (gcov_var): Move from gcov-io.h.
17235 (gcov_position): Ditto.
17236 (gcov_is_error): Ditto.
17237 (gcov_rewrite): Ditto.
17238 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
17239 only part to libgcc/libgcov.h.
17240
ab04b46e
MP
172412014-01-08 Marek Polacek <polacek@redhat.com>
17242
17243 PR middle-end/59669
17244 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
17245
06636b32
MP
172462014-01-08 Marek Polacek <polacek@redhat.com>
17247
17248 PR sanitizer/59667
17249 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
17250
c15677b6
JJ
172512014-01-08 Jakub Jelinek <jakub@redhat.com>
17252
17253 PR rtl-optimization/59649
17254 * stor-layout.c (get_mode_bounds): For BImode return
17255 0 and STORE_FLAG_VALUE.
17256
5c944c6c
RB
172572014-01-08 Richard Biener <rguenther@suse.de>
17258
17259 PR middle-end/59630
17260 * gimple.h (is_gimple_builtin_call): Remove.
17261 (gimple_builtin_call_types_compatible_p): New.
17262 (gimple_call_builtin_p): New overload.
17263 * gimple.c (is_gimple_builtin_call): Remove.
17264 (validate_call): Rename to ...
17265 (gimple_builtin_call_types_compatible_p): ... this and export. Also
17266 check return types.
17267 (validate_type): New static function.
17268 (gimple_call_builtin_p): New overload and adjust.
17269 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
17270 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
17271 (gimple_fold_stmt_to_constant_1): Likewise.
17272 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
17273
0bd34ae4
RB
172742014-01-08 Richard Biener <rguenther@suse.de>
17275
17276 PR middle-end/59471
17277 * gimplify.c (gimplify_expr): Gimplify register-register type
17278 VIEW_CONVERT_EXPRs to separate stmts.
17279
04af8ab6
JL
172802014-01-07 Jeff Law <law@redhat.com>
17281
3c92da90
JL
17282 PR middle-end/53623
17283 * ree.c (combine_set_extension): Handle case where source
17284 and destination registers in an extension insn are different.
4ac005ba
UB
17285 (combine_reaching_defs): Allow source and destination registers
17286 in extension to be different under limited circumstances.
3c92da90 17287 (add_removable_extension): Remove restriction that the
4ac005ba 17288 source and destination registers in the extension are the same.
3c92da90
JL
17289 (find_and_remove_re): Emit a copy from the extension's
17290 destination to its source after the defining insn if
17291 the source and destination registers are different.
17292
04af8ab6
JL
17293 PR middle-end/59285
17294 * ifcvt.c (merge_if_block): If we are merging a block with more than
17295 one successor with a block with no successors, remove any BARRIER
17296 after the second block.
17297
4bb66ef3 172982014-01-07 Dan Xio Qiang <ziyan01@163.com>
955b33ed
JL
17299
17300 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
17301
55ada375
JDA
173022014-01-07 John David Anglin <danglin@gcc.gnu.org>
17303
17304 PR target/59652
17305 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
17306 for 14-bit register offsets when INT14_OK_STRICT is false.
17307
877c72e7
RS
173082014-01-07 Roland Stigge <stigge@antcom.de>
17309 Michael Meissner <meissner@linux.vnet.ibm.com>
17310
17311 PR 57386/target
17312 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
4ac005ba 17313 Only check TFmode for SPE constants. Don't check TImode or TDmode.
877c72e7 17314
8b2721da
JG
173152014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
17316
17317 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
17318 -mcpu.
17319
5d72b79f
YZ
173202014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
17321
17322 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
17323 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
17324 rtx is const0_rtx or not.
17325
48d53439
RS
173262014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
17327
17328 PR target/58115
17329 * target-globals.c (save_target_globals): Remove this_fn_optab
17330 handling.
17331 * toplev.c: Include optabs.h.
17332 (target_reinit): Temporarily restore the global options if another
17333 set of options are in force.
17334
41626746
JJ
173352014-01-07 Jakub Jelinek <jakub@redhat.com>
17336
a0cbe71e
JJ
17337 PR rtl-optimization/58668
17338 * cfgcleanup.c (flow_find_cross_jump): Don't count
17339 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
17340 to determine what is counted.
17341 (flow_find_head_matching_sequence): Use active_insn_p to determine
17342 what is counted.
17343 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
17344 counting change.
17345 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
17346 determine what is counted.
17347
41626746
JJ
17348 PR tree-optimization/59643
17349 * tree-predcom.c (split_data_refs_to_components): If one dr is
17350 read and one write, determine_offset fails and the write isn't
17351 in the bad component, just put the read into the bad component.
17352
cc349a39
MS
173532014-01-07 Mike Stump <mikestump@comcast.net>
17354 Jakub Jelinek <jakub@redhat.com>
17355
17356 PR pch/59436
17357 * tree-core.h (struct tree_optimization_option): Change optabs
17358 type from unsigned char * to void *.
17359 * optabs.c (init_tree_optimization_optabs): Adjust
17360 TREE_OPTIMIZATION_OPTABS initialization.
17361
529a6471
JJ
173622014-01-06 Jakub Jelinek <jakub@redhat.com>
17363
17364 PR target/59644
17365 * config/i386/i386.h (struct machine_function): Add
17366 no_drap_save_restore field.
17367 * config/i386/i386.c (ix86_save_reg): Use
17368 !cfun->machine->no_drap_save_restore instead of
17369 crtl->stack_realign_needed.
17370 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
17371 this function clears frame_pointer_needed. Set
17372 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
17373 and DRAP reg is needed.
17374
96066ce1
MP
173752014-01-06 Marek Polacek <polacek@redhat.com>
17376
17377 PR c/57773
17378 * doc/implement-c.texi: Mention that other integer types are
17379 permitted as bit-field types in strictly conforming mode.
17380
955b33ed 173812014-01-06 Felix Yang <fei.yang0953@gmail.com>
33444996
FY
17382
17383 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
17384 is newly allocated.
17385
328402a9
RE
173862014-01-06 Richard Earnshaw <rearnsha@arm.com>
17387
17388 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
17389
a4e33812
MJ
173902014-01-06 Martin Jambor <mjambor@suse.cz>
17391
17392 PR ipa/59008
17393 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
17394 to int.
17395 * ipa-prop.c (ipa_print_node_params): Fix indentation.
17396
b5cd2a02
EB
173972014-01-06 Eric Botcazou <ebotcazou@adacore.com>
17398
17399 PR debug/59350
17400 PR debug/59510
17401 * var-tracking.c (add_stores): Preserve the value of the source even if
17402 we don't record the store.
17403
c7d19c0b
TG
174042014-01-06 Terry Guo <terry.guo@arm.com>
17405
17406 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
17407
e0c70bd7
IS
174082014-01-05 Iain Sandoe <iain@codesourcery.com>
17409
17410 PR bootstrap/59541
17411 * config/darwin.c (darwin_function_section): Adjust return values to
17412 correspond to optimisation changes made in r206070.
17413
c30f016c
UB
174142014-01-05 Uros Bizjak <ubizjak@gmail.com>
17415
17416 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
17417 from prefetch_block tune setting.
17418 (nocona_cost): Correct size of prefetch block to 64.
17419
f2bc252b
EB
174202014-01-04 Eric Botcazou <ebotcazou@adacore.com>
17421
17422 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
17423 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
17424 used to save the static chain register in the computation of the offset
17425 from which the FP registers need to be restored.
17426
dad5ed2e
JJ
174272014-01-04 Jakub Jelinek <jakub@redhat.com>
17428
39719c84
JJ
17429 PR tree-optimization/59519
17430 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
17431 ICE if get_current_def (current_new_name) is already non-NULL, as long
17432 as it is a phi result of some other phi in *new_exit_bb that has
17433 the same argument.
17434
dad5ed2e
JJ
17435 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
17436 or vmovdqu* for misaligned_operand.
17437 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
17438 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
17439 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
17440 aligned_mem for AVX512F masked aligned load and store builtins and for
17441 non-temporal moves.
17442
174432014-01-03 Bingfeng Mei <bmei@broadcom.com>
82d89471
BM
17444
17445 PR tree-optimization/59651
c30f016c 17446 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
82d89471
BM
17447 Address range for negative step should be added by TYPE_SIZE_UNIT.
17448
e864837a
AS
174492014-01-03 Andreas Schwab <schwab@linux-m68k.org>
17450
17451 * config/m68k/m68k.c (handle_move_double): Handle pushes with
7f3af6d3 17452 overlapping registers also for registers other than the stack pointer.
e864837a 17453
56a34230
MP
174542014-01-03 Marek Polacek <polacek@redhat.com>
17455
17456 PR other/59661
17457 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
17458 __builtin_FILE.
17459
039eee3f
JJ
174602014-01-03 Jakub Jelinek <jakub@redhat.com>
17461
3bcdbd50
JJ
17462 PR target/59625
17463 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
17464 asm goto as jump.
17465
039eee3f
JJ
17466 * config/i386/i386.md (MODE_SIZE): New mode attribute.
17467 (push splitter): Use <P:MODE_SIZE> instead of
17468 GET_MODE_SIZE (<P:MODE>mode).
17469 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
17470 (mov -1, reg peephole2): Likewise.
17471 * config/i386/sse.md (*mov<mode>_internal,
17472 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
17473 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
17474 *<code><mode>3, *andnot<mode>3<mask_name>,
17475 <mask_codefor><code><mode>3<mask_name>): Likewise.
17476 * config/i386/subst.md (mask_mode512bit_condition,
17477 sd_mask_mode512bit_condition): Likewise.
17478
927734cf
XDL
174792014-01-02 Xinliang David Li <davidxl@google.com>
17480
17481 PR tree-optimization/59303
039eee3f 17482 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
927734cf
XDL
17483 (dump_predicates): Better output format.
17484 (pred_equal_p): New function.
17485 (is_neq_relop_p): Ditto.
17486 (is_neq_zero_form_p): Ditto.
17487 (pred_expr_equal_p): Ditto.
17488 (pred_neg_p): Ditto.
17489 (simplify_pred): Ditto.
17490 (simplify_preds_2): Ditto.
17491 (simplify_preds_3): Ditto.
17492 (simplify_preds_4): Ditto.
17493 (simplify_preds): Ditto.
17494 (push_pred): Ditto.
17495 (push_to_worklist): Ditto.
17496 (get_pred_info_from_cmp): Ditto.
17497 (is_degenerated_phi): Ditto.
17498 (normalize_one_pred_1): Ditto.
17499 (normalize_one_pred): Ditto.
17500 (normalize_one_pred_chain): Ditto.
17501 (normalize_preds): Ditto.
17502 (normalize_cond_1): Remove function.
17503 (normalize_cond): Ditto.
17504 (is_gcond_subset_of): Ditto.
17505 (is_subset_of_any): Ditto.
17506 (is_or_set_subset_of): Ditto.
17507 (is_and_set_subset_of): Ditto.
17508 (is_norm_cond_subset_of): Ditto.
17509 (pred_chain_length_cmp): Ditto.
17510 (convert_control_dep_chain_into_preds): Type change.
17511 (find_predicates): Ditto.
17512 (find_def_preds): Ditto.
17513 (destroy_predicates_vecs): Ditto.
17514 (find_matching_predicates_in_rest_chains): Ditto.
17515 (use_pred_not_overlap_with_undef_path_pred): Ditto.
17516 (is_pred_expr_subset): Ditto.
17517 (is_pred_chain_subset_of): Ditto.
17518 (is_included_in): Ditto.
17519 (is_superset_of): Ditto.
17520
23a5b65a
RS
175212014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
17522
c30f016c 17523 Update copyright years.
23a5b65a 17524
f9030485
RS
175252014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
17526
17527 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
17528 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
c30f016c
UB
17529 config/arc/arc.md, config/arc/arc.opt,
17530 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
17531 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
17532 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
17533 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
17534 config/linux-protos.h, config/linux.c, config/winnt-c.c,
17535 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
17536 vtable-verify.c, vtable-verify.h: Use the standard form for the
17537 copyright notice.
f9030485 17538
98db73df
TB
175392014-01-02 Tobias Burnus <burnus@net-b.de>
17540
17541 * gcc.c (process_command): Update copyright notice dates.
17542 * gcov-dump.c: Ditto.
17543 * gcov.c: Ditto.
17544 * doc/cpp.texi: Bump @copying's copyright year.
17545 * doc/cppinternals.texi: Ditto.
17546 * doc/gcc.texi: Ditto.
17547 * doc/gccint.texi: Ditto.
17548 * doc/gcov.texi: Ditto.
17549 * doc/install.texi: Ditto.
17550 * doc/invoke.texi: Ditto.
17551
2898d204 175522014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8ca77de0
JBG
17553
17554 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
17555
dfebbdc6 175562014-01-01 Jakub Jelinek <jakub@redhat.com>
cf3e5a89 17557
726c3546
JJ
17558 * config/i386/sse.md (*mov<mode>_internal): Guard
17559 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
17560
dfebbdc6
JJ
17561 PR rtl-optimization/59647
17562 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
17563 new_rtx into UNSIGNED_FLOAT rtxes.
ad41bd84 17564\f
970c3b33 17565Copyright (C) 2014 Free Software Foundation, Inc.
ad41bd84
JM
17566
17567Copying and distribution of this file, with or without modification,
17568are permitted in any medium without royalty provided the copyright
17569notice and this notice are preserved.