re PR tree-optimization/66949 (ICE at -O2 and -O3 on x86_64-linux-gnu in tree_ssa_phi...
[gcc.git] / gcc / ChangeLog
1 2015-12-09 Marek Polacek <polacek@redhat.com>
2
3 PR tree-optimization/66949
4 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Don't call
5 single_non_singleton_phi_for_edges to get the PHI from
6 factor_out_conditional_conversion. Use NULL_TREE instead of NULL.
7 (factor_out_conditional_conversion): Adjust declaration. Make it
8 return the newly-created PHI.
9
10 2015-12-09 James Greenhalgh <james.greenhalgh@arm.com>
11
12 * config/aarch64/aarch64-protos.h
13 (aarch64_cannot_change_mode_class): Bring back.
14 * config/aarch64/aarch64.c
15 (aarch64_cannot_change_mode_class): Likewise.
16 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Likewise.
17 * config/aarch64/aarch64.md (aarch64_movdi_<mode>low): Use
18 zero_extract rather than truncate.
19 (aarch64_movdi_<mode>high): Likewise.
20
21 2015-12-09 Jakub Jelinek <jakub@redhat.com>
22
23 PR tree-optimization/68786
24 * tree-if-conv.c: Include builtins.h.
25 (predicate_mem_writes): Put result of get_object_alignment (ref)
26 into second argument's value.
27 * tree-vect-stmts.c (vectorizable_mask_load_store): Put minimum
28 pointer alignment into second argument's value.
29 * tree-data-ref.c (get_references_in_stmt): Use value of second
30 argument for build_aligned_type, and only the type to build
31 a zero second argument for MEM_REF.
32 * internal-fn.c (expand_mask_load_optab_fn,
33 expand_mask_store_optab_fn): Likewise.
34
35 2015-12-09 Richard Biener <rguenther@suse.de>
36
37 PR tree-optimization/68583
38 * tree-if-conv.c (if_convertible_phi_p): Drop
39 flag_tree_loop_if_convert_stores check in favor of the
40 existing any_mask_load_store check.
41 (insert_gimplified_predicates): Likewise.
42 (combine_blocks): Likewise.
43 (tree_if_conversion): Likewise.
44 (ifcvt_memrefs_wont_trap): Properly check
45 flag_tree_loop_if_convert_stores in all places that can end
46 up introducing store-data-races.
47 (if_convertible_gimple_assign_stmt_p): Remove restriction
48 on flag_tree_loop_if_convert_stores for stores we can if-convert
49 without introducing store-data-races. Force versioning for
50 all if-converted stores.
51
52 2015-12-09 Tom de Vries <tom@codesourcery.com>
53
54 PR tree-optimization/68716
55 * tree-ssa-structalias.c (find_func_clobbers): Fix handling of
56 BUILT_IN_GOMP_PARALLEL and BUILT_IN_GOACC_PARALLEL.
57
58 2015-12-09 Martin Liska <mliska@suse.cz>
59
60 * hash-traits.h (struct typed_delete_remove): New function.
61 (typed_delete_remove ::remove): Likewise.
62 * tree-ssa-loop-ivopts.c (struct iv_common_cand): Replace
63 auto_vec with vec.
64 (record_common_cand): Replace XNEW with operator new.
65
66 2015-12-09 Martin Liska <mliska@suse.cz>
67
68 * tree-if-conv.c (ifcvt_local_dce): Replace vec with auto_vec.
69
70 2015-12-09 Martin Liska <mliska@suse.cz>
71
72 PR ipa/68790
73 * ipa-icf.c (sem_function::param_used_p): Return true
74 if ipa_node_params_sum equals to NULL.
75
76 2015-12-09 Richard Biener <rguenther@suse.de>
77
78 PR tree-optimization/68583
79 * tree-if-conv.c (ifc_dr): Make flags bool, add w_unconditionally
80 flag and rename predicates to w_predicate, rw_predicate and
81 base_w_predicate.
82 (DR_WRITTEN_AT_LEAST_ONCE): Rename to ...
83 (DR_BASE_W_UNCONDITIONALLY): ... this.
84 (DR_W_UNCONDITIONALLY): Add.
85 (hash_memrefs_baserefs_and_store_DRs_read): Adjust. Compute
86 unconditionally written separately from read or written.
87 (ifcvt_memrefs_wont_trap): Properly treat reads.
88 (ifcvt_could_trap_p): Inline ...
89 (if_convertible_gimple_assign_stmt_p): ... here. Refactor
90 to avoid code duplication.
91 (if_convertible_loop_p_1): Adjust and properly initialize
92 predicates.
93
94 2015-12-09 Richard Biener <rguenther@suse.de>
95
96 * tree-vect-stmts.c (vectorizable_load): Set new vinfo only
97 if it was not yet set.
98 * tree-vectorizer.h (set_vinfo_for_stmt): Assert we don't
99 overwrite an existing entry.
100
101 2015-12-09 Chung-Lin Tang <cltang@codesourcery.com>
102
103 * c-family/c-omp.c (c_finish_oacc_wait): Remove add_stmt() call.
104 * c/c-parser.c (c_parser_oacc_wait): Add add_stmt() call.
105 * cp/parser.c (cp_parser_oacc_wait): Add finish_expr_stmt() call.
106
107 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
108
109 PR ipa/61886
110 * symtab.c (symtab_node::equal_address_to): New parameter
111 MEMORY_ACCESSED.
112 * cgraph.h (symtab_node::equal_address_to): Update prototype.
113
114 2015-12-08 DJ Delorie <dj@redhat.com>
115
116 * config/rx/rx.opt (-mjsr): Add.
117 * config/rx/predicates.md (rx_call_operand): Avoid overflowing
118 calls when -mjsr.
119 * config/rx/rx.c (rx_function_ok_for_sibcall): Likewise for
120 overflowing jumps.
121 * doc/invoke.texi (-mjsr): Document it.
122
123 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
124
125 PR ipa/61886
126 * lto-streamer.h (lto_symtab_merge_decls, lto_symtab_merge_symbols,
127 lto_symtab_prevailing_decl): MOve to lto-symtab.h.
128 * lto-streamer-out.c (DFS::DFS_write_tree_body): Check that
129 DECL_ABSTRACT_ORIGIN is not error_mark_node.
130
131 2015-12-08 David Malcolm <dmalcolm@redhat.com>
132
133 * tree-nested.c (convert_tramp_reference_stmt): Fix indentation.
134
135 2015-12-08 David Malcolm <dmalcolm@redhat.com>
136
137 * tree-ssa-loop-unswitch.c (tree_unswitch_outer_loop): Fix
138 indentation.
139
140 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
141
142 PR ipa/61886
143 * lto-cgraph.c (compute_ltrans_boundary): Add transparent alias targets
144 into the boundary.
145
146 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
147
148 PR ipa/61886
149 * varpool.c (varpool_node::get_availability): Recurse only on
150 weakrefs with definition in the target.
151 (symbol_table::remove_unreferenced_decls): Keep aliases in the boundary.
152
153 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
154
155 PR ipa/61886
156 * ipa-visibility.c (can_replace_by_local_alias): Look through
157 transparent aliases; refuse weakrefs.
158 (update_visibility_by_resolution_info): Skip transparent aliases in the
159 analysis part
160
161 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
162
163 PR ipa/61886
164 * symtab.c (symtab_node::verify_base): Fix thinko in a conditional.
165 (symtab_node::noninterposable_alias): Do not accept transparent
166 aliases.
167
168 2015-12-08 Nathan Sidwell <nathan@acm.org>
169
170 * config/nvptx/nvptx.c (decl_chunk_size, decl_chunk_mode,
171 decl_offset, init_part, object_size, object_finished): Replace
172 with ...
173 (struct init_frag): ... this new struct variable.
174 (begin_decl_field, output_decl_chunk): Replace with ...
175 (output_init_frag): ... this new function.
176 (nvptx_assemble_value): Reimplement.
177 (nvptx_assemble_integer, nvptx_output_skip): Adjust.
178 (nvptx_assemble_decl_begin, nvptx_assemble_decl_end): Adjust.
179 (nvptx_output_aligned_decl): Call nvptx_assemble_decl_end.
180
181 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
182
183 PR middle-end/68291
184 PR middle-end/68292
185 * cfgexpand.c (set_rtl): Always accept mode mismatch for SSA names
186 with BLKmode promoted mode based on RESULT_DECLs.
187
188 2015-12-08 Uros Bizjak <ubizjak@gmail.com>
189
190 PR target/68701
191 * config/i386/i386.c (ix86_option_override_internal): Enable
192 -maccumulate-outgoing-args when %ebp is fixed due to stack
193 realignment requirements.
194
195 2015-12-08 Tom de Vries <tom@codesourcery.com>
196
197 PR tree-optimization/68640
198 * omp-low.c (install_var_field): Clear the restrict qualifier on the var
199 type.
200
201 2015-12-08 Kirill Yukhin <kirill.yukhin@intel.com>
202
203 * config/i386/sse.md (define_insn "<avx512>_vec_dup<mode>_1"): Fix
204 assembler to make source always 128bit.
205
206 2015-12-08 Jakub Jelinek <jakub@redhat.com>
207
208 PR c/48088
209 PR c/68657
210 * common.opt (Wframe-larger-than=): Add Warning.
211 * opts.h (control_warning_option): Add ARG argument.
212 * opts-common.c (cmdline_handle_error): New function.
213 (read_cmdline_option): Use it.
214 (control_warning_option): Likewise. Add ARG argument.
215 If non-NULL, decode it if needed and pass through
216 to handle_generated_option. Handle CLVC_ENUM like
217 CLVC_BOOLEAN.
218 * opts.c (common_handle_option): Adjust control_warning_option
219 caller.
220 (enable_warning_as_error): Likewise.
221
222 2015-12-08 Matthew Wahab <matthew.wahab@arm.com>
223
224 * config/aarch64/aarch64-options-extensions.def: Remove
225 AARCH64_FL_RDMA from "fp" and "simd". Remove "pan", "lor",
226 "rdma".
227 * config/aarch64/aarch64.h (AARCH64_FL_PAN): Remove.
228 (AARCH64_FL_LOR): Remove.
229 (AARCH64_FL_RDMA): Remove.
230 (AARCH64_FL_V8_1): New.
231 (AARCH64_FL_FOR_AARCH8_1): Replace AARCH64_FL_PAN, AARCH64_FL_LOR
232 and AARCH64_FL_RDMA with AARCH64_FL_V8_1.
233 (AARCH64_ISA_RDMA): Replace AARCH64_FL_RDMA with AARCH64_FL_V8_1.
234 * doc/invoke.texi (AArch64 -march): Rewrite initial paragraph and
235 section on -march=native. Group descriptions of permitted
236 architecture names together. Expand description of
237 -march=armv8.1-a.
238 (AArch64 -mtune): Slightly rework section on -march=native.
239 (AArch64 -mcpu): Slightly rework section on -march=native.
240 (AArch64 Feature Modifiers): Remove "pan", "lor" and "rdma".
241 State that -march=armv8.1-a enables "crc" and "lse".
242
243 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
244
245 * doc/invoke.texi (SPARC options): Fix typo.
246
247 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
248
249 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
250 (output_probe_stack_range): Rotate the loop and simplify.
251
252 2015-12-08 Uros Bizjak <ubizjak@gmail.com>
253
254 * config/i386/i386.c (ix86_emit_swsqrtsf): Cleanup
255 infinity filterning code.
256
257 2015-12-08 Ilya Enkovich <enkovich.gnu@gmail.com>
258
259 PR tree-optimization/68766
260 * tree-vectorizer.c (vectorize_loops): Check for
261 if-converted loops when debug counters are used.
262
263 2015-12-07 DJ Delorie <dj@redhat.com>
264
265 * config/rl78/constraints.md (Wfr): Change to be a non-memory
266 constraint.
267 * config/rl78/rl78-protos.h (rl78_one_far_p): Declare.
268 * config/rl78/rl78.c (rl78_one_far_p): Define.
269 * config/rl78/rl78-virt (movqi_virt): Fix far memory
270 alternatives.
271 (movhi_virt): Likewise.
272 (zero_extendqihi2_virt): Likewise.
273 (extendqihi2_virt): Likewise.
274 (add<mode>3_virt): Likewise.
275 (sub<mode>3_virt): Likewise.
276 (andqi3_virt): Likewise.
277 (iorqi3_virt): Likewise.
278 (xorqi3_virt): Likewise.
279 * config/rl78/rl78-real.md (bf,br): Use long forms to avoid reloc
280 overflow in large files.
281
282 2015-12-07 Eric Botcazou <ebotcazou@adacore.com>
283
284 PR target/63668
285 * doc/invoke.texi (SPARC options): Document -mstd-struct-return.
286 * config/sparc/sparc.c (sparc_struct_value_rtx): Minor tweaks.
287 * config/sparc/sparc.h (CALL_REALLY_USED_REGISTERS): Define.
288 * config/sparc/sparc.opt (mstd-struct-return): Accept negative.
289
290 2015-12-07 Steve Ellcey <sellcey@imgtec.com>
291
292 * reorg.c (optimize_skip): Do not put frame related instructions
293 in annulled delay slots.
294 (steal_delay_list_from_target): Ditto.
295 (fill_slots_from_thread): Ditto.
296
297 2015-12-07 Evandro Menezes <e.menezes@samsung.com>
298
299 * config/aarch64/aarch64-cores.def: Use the Exynos M1 sched model.
300 * config/aarch64/aarch64.md: Include "exynos-m1.md".
301 * config/arm/arm.md: Likewise.
302 * config/arm/exynos-m1.md: New file.
303
304 2015-12-07 Jan Hubicka <hubicka@ucw.cz>
305
306 * fold-const.c (operand_equal_p): Drop flag_strict_aliasing check.
307
308 2015-12-07 Nathan Sidwell <nathan@acm.org>
309
310 * config//nvptx/nvptx.c (write_return): New.
311 (write_fn_proto, nvptx_declare_function_name): Call it.
312
313 2015-12-07 Jan Hubicka <hubicka@ucw.cz>
314
315 PR ipa/61886
316 * symtab.c (ultimate_transparent_alias_target): New inline function.
317 (symbol_table::assembler_names_equal_p): New method; break out from ...
318 (symbol_table::decl_assembler_name_equal): ... here.
319 (symbol_table::change_decl_assembler_name): Also update names and
320 translation links of transparent aliases.
321 (symtab_node::dump_base): Dump transparent_alias.
322 (symtab_node::verify_base): Implement basic transparent alias
323 verification.
324 (symtab_node::make_decl_local): Support localization of weakrefs;
325 recurse to transparent aliases; set TREE_STATIC.
326 (symtab_node::ultimate_alias_target_1): Handle visibility of
327 transparent aliases.
328 (symtab_node::resolve_alias): New parmaeter transparent; handle
329 transparent aliases; recurse to aliases of aliases to fix comdat
330 groups.
331 (symtab_node::get_partitioning_class): Handle transparent aliases.
332 * ipa-visibility.c (cgraph_externally_visible_p,
333 varpool_node::externally_visible_p): Visibility of transparent alias
334 depends on its target.
335 (function_and_variable_visibility): Do not tweak visibility of
336 transparent laiases.
337 (function_and_variable_visibility): Likewise.
338 * ipa.c (symbol_table::remove_unreachable_nodes): Clear
339 transparent_alias flag.
340 * alias.c (cgraph_node::create_alias, cgraph_node::get_availability):
341 Support transparent aliases.
342 * cgraph.h (symtab_node): Update prototype of resolve_alias;
343 add transparent_alias flag.
344 (symbol_table: Add assembler_names_equal_p.
345 (symtab_node::real_symbol_p): Skip transparent aliases.
346 * cgraphunit.c (cgraph_node::reset): Reset transparent_alias flag.
347 (handle_alias_pairs): Set transparent_alias for weakref.
348 (cgraph_node::assemble_thunks_and_aliases): Do not asemble transparent
349 aliases.
350 * lto-cgraph.c (lto_output_node): When outputting same_comdat_group
351 skip symbols not put into boundary; stream transparent_alias.
352 (lto_output_varpool_node): Likewise.
353 (input_overwrite_node, input_varpool_node): Stream transparent alias.
354 * varpool.c (ctor_for_folding, varpool_node::get_availability,
355 varpool_node::assemble_aliases,
356 symbol_table::remove_unreferenced_decls): Handle transparent aliase.
357 (varpool_node::create_alias): Set transparent_alias.
358
359 2015-12-07 Eric Botcazou <ebotcazou@adacore.com>
360
361 PR middle-end/68291
362 PR middle-end/68292
363 * cfgexpand.c (set_rtl): Always accept PARALLELs with BLKmode for
364 SSA names based on RESULT_DECLs.
365 * function.c (expand_function_start): Do not create BLKmode REGs
366 for GIMPLE registers when coalescing is enabled.
367
368 2015-12-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
369
370 * final.c (shorten_branches): Fix check for basic asm.
371 * ipa-icf-gimple.c (func_checker::compare_gimple_asm): Add check for
372 basic asm.
373
374 2015-12-07 Nathan Sidwell <nathan@acm.org>
375
376 * config/nvptx/nvptx.c (nvptx_output_call_insn): Emit trap after no
377 return call.
378
379 2015-12-07 David Malcolm <dmalcolm@redhat.com>
380
381 * pretty-print.c (text_info::set_range): Rename to...
382 (text_info::set_location): ...this, converting 2nd param
383 from source_range to a location_t.
384 * pretty-print.h (text_info::set_location): Convert
385 from inline function to external definition.
386 (text_info::set_range): Delete.
387
388 2015-12-07 Nathan Sidwell <nathan@acm.org>
389
390 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Look inside
391 complex and vector types. Cope with packed structs.
392
393 2015-12-07 Kirill Yukhin <kirill.yukhin@intel.com>
394
395 PR target/68627
396 * config/i386/sse.md: Make 'v' alternative work on 'avx512f' ISA only.
397 Force destination to 512 bits register.
398
399 2015-12-07 Kirill Yukhin <kirill.yukhin@intel.com>
400
401 PR target/68633
402 * config/i386/sse.md (define_insn "kunpckhi"): Fix operands order.
403 (define_insn "kunpcksi"): Ditto.
404 (define_insn "kunpckdi"): Ditto.
405
406 2015-12-06 Kaz Kojima <kkojima@gcc.gnu.org>
407
408 * config/sh/sh.md (rsqrtsf2): Adjust for canonical form with unspec.
409
410 2015-12-06 Victoria Stepanyan <victoria.stepanyan@amd.com>
411
412 * common/config/i386/i386-common.c
413 (OPTION_MASK_ISA_CLZERO_SET): New.
414 (ix86_handle_option): Handle clzero.
415 * config.gcc (i[34567]86-*-*): Add clzerointrin.h,
416 (x86_64-*-*): Likewise.
417 * config/i386/clzerointrin.h: New header.
418 * config/i386/cpuid.h (bit_CLZERO): Define.
419 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
420 CLZERO support.
421 * config/i386/i386.opt (clzero): New.
422 * config/i386/i386-c.c: Define __CLZERO__ if needed.
423 * config/i386/i386.c (ix86_target_string): Define -mclzero option.
424 (PTA_CLZERO): New.
425 (ix86_option_override_internal): Handle new option.
426 (processor_alias_table): Added PTA_CLZERO.
427 (ix86_valid_target_attribute_inner_p): Add OPT_mclzero.
428 (ix86_builtins): Add IX86_BUILTIN_CLZERO, IX86_BUILTIN_CLZERO.
429 (ix86_expand_builtin): Handle IX86_BUILTIN_CLZERO and
430 IX86_BUILTIN_CLZERO built-ins.
431 * config/i386/i386.h (TARGET_CLZERO): New.
432 * config/i386/i386.md (unspecv): Add UNSPEC_CLZERO.
433 (clzero): New pattern.
434 (clzero_<mode>): New pattern.
435 * config/i386/x86intrin.h: Include clzerointrin.h.
436 * doc/extend.texi: Document clzero builtins.
437 * doc/invoke.texi: Document -mclzero option.
438
439 2015-12-05 Jan Hubicka <hubicka@ucw.cz>
440
441 * ipa-icf.c (sem_function::merge): Check that local_original exists.
442
443 2015-12-05 David Edelsohn <dje.gcc@gmail.com>
444
445 PR target/68609
446 * config/rs6000/rs6000-protos.h (rs6000_emit_swsqrt): Rename and add
447 bool arguement.
448 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Rename. Add
449 non-reciporcal path.
450 * config/rs6000/rs6000.md (rsqrt<mode>2): Call new function name.
451 (sqrt<mode>2): Replace define_insn with define_expand that may call
452 rs6000_emit_swsqrt.
453
454 2015-12-04 Aditya Kumar <aditya.k7@samsung.com>
455 Sebastian Pop <s.pop@samsung.com>
456
457 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
458 Improve debug.
459 (get_rename_from_scev): Check that all the ops in an expression
460 have their uses dominated by corresponding defs.
461
462 2015-12-04 Aditya Kumar <aditya.k7@samsung.com>
463 Sebastian Pop <s.pop@samsung.com>
464
465 PR tree-optimization/68693
466 * graphite-scop-detection.c (dot_all_sese): New
467 (dot_all_scops_1): Renamed to dot_all_sese.
468 (dot_all_scops): Removed.
469 (dot_sese): New.
470 (dot_cfg): New.
471 (scop_detection::get_nearest_dom_with_single_entry): Check that
472 preds are from different loop levels.
473 (scop_detection::get_nearest_pdom_with_single_exit): Check that
474 succs are from different loop levels.
475 (scop_detection::print_sese): Inlined.
476 (scop_detection::print_edge): New.
477 (scop_detection::merge_sese): Added dumps.
478 * graphite.h: Add declarations.
479
480 2015-12-04 James Greenhalgh <james.greenhalgh@arm.com>
481
482 * config/aarch64/aarch64.md (add<mode>3_pluslong): Add register
483 constraints.
484
485 2015-12-04 Vladimir Makarov <vmakarov@redhat.com>
486
487 PR rtl-optimization/68349
488 * lra-eliminations.c (move_plus_up): New function.
489 (lra_eliminate_regs_1): Use the function.
490
491 2015-12-04 Nathan Sidwell <nathan@acm.org>
492
493 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): New, replacing ...
494 (init_output_initializer): ... this.
495 (nvptx_output_aligned_decl, nvptx_asm_declare_constant_name,
496 nvptx_declare_object_name, nvptx_assemble_undefined_decl): Use
497 nvptx_assemble_decl_begin.
498
499 2015-12-04 Dmitry Vyukov <dvyukov@google.com>
500
501 * sancov.c: New file.
502 * Makefile.in (OBJS): Add sancov.o.
503 * invoke.texi (-fsanitize-coverage=trace-pc): Describe.
504 * passes.def (sancov_pass): Add.
505 * tree-pass.h (sancov_pass): Add.
506 * common.opt (-fsanitize-coverage=trace-pc): Add.
507 * sanitizer.def (BUILT_IN_SANITIZER_COV_TRACE_PC): Add.
508 * builtins.def (DEF_SANITIZER_BUILTIN): Enable for
509 flag_sanitize_coverage.
510
511 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
512
513 PR middle-end/65958
514 * config/arm/unspecs.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
515 (unspecv): Add VUNSPEC_PROBE_STACK_RANGE.
516 * config/arm/arm.md (probe_stack_range): Adjust.
517 * config/aarch64/aarch64.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
518 (unspecv): Add UNSPECV_PROBE_STACK_RANGE.
519 (probe_stack_range_<PTR:mode>): Adjust.
520
521 2015-12-04 David Malcolm <dmalcolm@redhat.com>
522
523 * convert.c (convert_to_real_1): When converting from a
524 REAL_TYPE, preserve the location of EXPR in the result.
525 * tree.c (get_pure_location): Make non-static.
526 (set_source_range): Return the resulting location_t.
527 (make_location): New function.
528 * tree.h (get_pure_location): New decl.
529 (get_finish): New inline function.
530 (set_source_range): Convert return type from void to location_t.
531 (make_location): New decl.
532
533 2015-12-04 Jakub Jelinek <jakub@redhat.com>
534
535 PR c/68656
536 * toplev.c (init_asm_output): Pass UNKNOWN_LOCATION instead of
537 input_location to inform.
538 (process_options): Use warning_at (UNKNOWN_LOCATION instead of
539 warning ( and error_at (UNKNOWN_LOCATION instead of error (.
540 Pass UNKNOWN_LOCATION instead of input_location to fatal_error.
541
542 2015-12-04 Jan Hubicka <hubicka@ucw.cz>
543
544 * ipa-inline.c (can_inline_edge_p) Use merged_comdat.
545 * cgraphclones.c (cgraph_node::create_clone): Use merged_comdat.
546 * cgraph.c (cgraph_node::dump): Dump merged_comdat.
547 * ipa-icf.c (sem_function::merge): Drop merged_comdat when merging
548 comdat and non-comdat.
549 * cgraph.h (cgraph_node): Rename merged to merged_comdat.
550 * ipa-inline-analysis.c (simple_edge_hints): Check both merged_comdat
551 and icf_merged.
552
553 2015-12-04 Segher Boessenkool <segher@kernel.crashing.org>
554
555 * config/rs6000/rs6000.md (cstore<mode>4_unsigned): Use gpc_reg_operand
556 instead of register_operand. Remove empty constraints. Use std::swap.
557 (cstore_si_as_di, cstore<mode>4_signed_imm,
558 cstore<mode>4_unsigned_imm, cstore<mode>4 for GPR): Use
559 gpc_reg_operand instead of register_operand.
560 (cstore<mode>4 for FP): Use gpc_reg_operand instead of
561 register_operand. Remove empty constraints.
562
563 2015-12-04 Nick Clifton <nickc@redhat.com>
564
565 * config.gcc (extra_gcc_objs): Define for MSP430.
566 * common/config/msp430/msp430-common.c (msp430_handle_option):
567 Pass both -mmcu and -mcpu on to the back end if they are both defined.
568 * config/msp430/msp430.c (hwmult_name): New function.
569 (msp430_option_override): If an unrecognised MCU name is
570 detected only warn if the user has not provided suitable
571 -mhwmult and -mcpu options. Use msp430_warn_mcu to control
572 warning messages. Generate warnings about conflicts between
573 -mmcu and -mcpu and -mhwmult options.
574 If neither -mcpu nor -mmcu have been specified but -mhwmult=
575 f5series has the select the 430X isa.
576 (msp430_no_hwmult): If -mmcu has not been specified and
577 msp430_hwmult_type is AUTO then return true.
578 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Define.
579 (LIB_SPEC): Add hardware multiply library selection.
580 * config/msp430/t-msp430: Delete hardware multiply multilibs.
581 Add rule to build driver-msp430.o
582 * config/msp430/driver-msp430.c: New file.
583 * config/msp430/msp430.opt (warn-mcu): New option.
584 * doc/invoke.texi: Update description of -mhwmult=auto.
585 Document -mwarn-mcu option.
586
587 2015-12-04 Segher Boessenkool <segher&kernel.crashing.org>
588
589 * config/rs6000/rs6000.md (cstore<mode>4_signed): New expander.
590 (cstore<mode>4): Call it.
591
592 2015-12-04 Jakub Jelinek <jakub@redhat.com>
593
594 * tree-tailcall.c (find_tail_calls): Ignore GIMPLE_NOPs.
595
596 PR tree-optimization/68680
597 * calls.c (special_function_p): Return ECF_MAY_BE_ALLOCA for
598 BUILT_IN_ALLOCA{,_WITH_ALIGN}. Don't check for __builtin_alloca
599 by name.
600
601 PR tree-optimization/68671
602 * tree-ssa-reassoc.c (maybe_optimize_range_tests): For basic
603 blocks starting with the successor of first bb we've modified
604 and ending with last_bb call reset_flow_sensitive_info_in_bb.
605
606 2015-12-04 Jeff Law <law@redhat.com>
607
608 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Return boolean
609 indicating if a gimple conditional was optimized to true/false.
610 (reassociate_bb): Bubble up return value from
611 maybe_optimize_range_tests.
612 (do_reassoc): Similarly, but for reassociate_bb.
613 (execute_reassoc): Return TODO_cleanup_cfg as needed.
614
615 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
616
617 * config/aarch64/aarch64.c (aarch64_override_options_internal):
618 Do not alter target_flags due to TARGET_GENERAL_REGS_ONLY_P.
619 * doc/invoke.texi (AArch64 options): Mention that -mgeneral-regs-only
620 does not affect the assembler directives.
621
622 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
623
624 * config/s390/s390.c (s390_asm_file_start): Implement hook function to
625 emit .machine and .machinemode to the top of the assembler file.
626 (TARGET_ASM_FILE_START): Provide target hook.
627 (s390_asm_output_machine_for_arch): Protect with
628 HAVE_AS_MACHINE_MACHINEMODE instead of S390_USE_TARGET_ATTRIBUTE.
629
630 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
631
632 * config/s390/s390.opt (s390_arch_string): Remove.
633 (s390_tune_string): Likewise.
634 (s390_cost_pointer): Add Variable.
635 (s390_tune_flags): Add TargetVariable.
636 (s390_arch_flags, march=, mbackchain, mdebug, mesa, mhard-dfp),
637 (mhard-float, mlong-double-128, mlong-double-64, mhtm, mvx),
638 (mpacked-stack, msmall-exec, msoft-float, mstack-guard=, mstack-size=),
639 (mtune=, mmvcle, mzvector, mzarch, mbranch-cost=, mwarn-dynamicstack),
640 (mwarn-framesize=): Save option.
641 (mno-stack-guard, mno-stack-guard): New option.
642 (mwarn-dynamicstack): Allow mno-warn-dynamicstack.
643 (mwarn-framesize=): Convert to UInteger (negative values are rejected
644 now).
645 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Split setting
646 macros changeable through the GCC target pragma into a separate
647 function.
648 (s390_cpu_cpp_builtins): Likewise.
649 (s390_pragma_target_parse): New function, implement GCC target pragma
650 if enabled.
651 (s390_register_target_pragmas): Register s390_pragma_target_parse if
652 available.
653 * common/config/s390/s390-common.c (s390_handle_option):
654 Export.
655 Move setting s390_arch_flags to s390.c.
656 Remove s390_tune_flags.
657 Allow 0 as argument to -mstack-size (switch to default value).
658 Allow 0 as argument to -mstack-guard (switch off).
659 Remove now unnecessary explicit parsing code for -mwarn-framesize.
660 * config/s390/s390-protos.h (s390_handle_option): Export.
661 (s390_valid_target_attribute_tree): Export.
662 (s390_reset_previous_fndecl): Export.
663 * config/s390/s390-builtins.def: Use new macro B_GROUP to mark the start
664 and end of HTM and VX builtins.
665 (s390_asm_output_function_prefix): Declare hook.
666 (s390_asm_declare_function_size): Likewise.
667 * config/s390/s390-builtins.h (B_GROUP): Use macro.
668 * config/s390/s390-opts.h: Add comment about processor_type usage.
669 * config/s390/s390.h (TARGET_CPU_IEEE_FLOAT_P, TARGET_CPU_ZARCH_P),
670 (TARGET_CPU_LONG_DISPLACEMENT_P, TARGET_CPU_EXTIMM_P, TARGET_CPU_DFP_P),
671 (TARGET_CPU_Z10_P, TARGET_CPU_Z196_P, TARGET_CPU_ZEC12_P),
672 (TARGET_CPU_HTM_P, TARGET_CPU_Z13_P, TARGET_CPU_VX_P),
673 (TARGET_HARD_FLOAT_P, TARGET_LONG_DISPLACEMENT_P, TARGET_EXTIMM_P),
674 (TARGET_DFP_P, TARGET_Z10_P, TARGET_Z196_P, TARGET_ZEC12_P),
675 (TARGET_HTM_P, TARGET_Z13_P, TARGET_VX_P, TARGET_CPU_EXTIMM),
676 (TARGET_CPU_DFP, TARGET_CPU_Z10, TARGET_CPU_Z196, TARGET_CPU_ZEC12),
677 (TARGET_CPU_HTM, TARGET_CPU_Z13, TARGET_LONG_DISPLACEMENT),
678 (TARGET_EXTIMM, TARGET_DFP, TARGET_Z10, TARGET_Z196, TARGET_ZEC12),
679 (TARGET_Z13, TARGET_VX, S390_USE_TARGET_ATTRIBUTE),
680 (S390_USE_ARCHITECTURE_MODIFIERS, SWITCHABLE_TARGET),
681 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
682 * config/s390/vecintrin.h: Use vector definitions even if __VEC__ is
683 undefined.
684 (vec_all_nan): Rewrite as macro using statement expressions to avoid
685 that the vector keyword needs to be defined when including the file.
686 (vec_all_numeric): Likewise.
687 (vec_any_nan): Likewise.
688 (vec_any_numeric): Likewise.
689 * config/s390/s390.c (s390_previous_fndecl): New static variable.
690 (s390_set_current_function): New function.
691 (s390_cost): Wrapper macro to allow defining the cost table pointer in
692 the options file.
693 (processor_table): Table for march= and mtune= parsing.
694 (s390_init_builtins): Enable all builtins and types unconditionally.
695 (s390_expand_builtin): Generate an error message if builtin is not
696 supported by current options.
697 Correct an error message.
698 (s390_function_specific_restore): New function to set s390_cost.
699 (s390_asm_output_machine_for_arch): New function for emitting .machine
700 and .machinmode directives to the assembler file.
701 (s390_asm_output_function_prefix): Likewise.
702 (s390_asm_declare_function_size): Likewise.
703 (s390_asm_output_function_label): Add mdebug output for feature testing.
704 (s390_option_override): Move implementation into internal function.
705 (s390_option_override_internal): Likewise.
706 Implement option overriding based on current options.
707 (s390_valid_target_attribute_inner_p): New function implementing target
708 attribute logic.
709 (s390_valid_target_attribute_tree): Likewise.
710 (s390_valid_target_attribute_p): Likewise.
711 (s390_reset_previous_fndecl): Likewise.
712 (s390_set_current_function): Likewise.
713 (TARGET_SET_CURRENT_FUNCTION): Provide target hook function.
714 (TARGET_OPTION_VALID_ATTRIBUTE_P): Likewise.
715 (TARGET_OPTION_RESTORE): Likewise.
716 * doc/extend.texi: S390: Document target attribute and pragma.
717 * config.in: Regenerated.
718 * configure: Regenerated.
719 * configure.ac: S390: Check for .machinemode and .machine in gas.
720 S390: Check for architecture modifiers support in gas.
721
722 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
723
724 * doc/extend.texi ("simd"): Describe new flags.
725
726 2015-12-04 Ilya Enkovich <enkovich.gnu@gmail.com>
727
728 * config/i386/sse.md (<avx512>_store<mode>_mask): Fix
729 operand checked for alignment.
730
731 2015-12-04 Nathan Sidwell <nathan@acm.org>
732
733 * config/nvptx/nvptx.c (write_one_arg): Deal with prologue
734 emission too. Change 'no_arg_types' to 'prototyped'.
735 (write_fn_proto): Use write_one_arg for stdarg, static chain &
736 main.
737 (nvptx_declare_function_name): Use write_one_arg for prologue copies.
738
739 2015-12-04 Richard Biener <rguenther@suse.de>
740
741 * tree-ssa-sccvn.c (sccvn_dom_walker): Add unreachable_dom
742 member and initialize it.
743 (sccvn_dom_walker::after_dom_children): Reset unreachable_dom
744 if necessary.
745 (sccvn_dom_walker::before_dom_children): If unreachable_dom
746 is set BB is not reachable either. Set unreachable_dom
747 if not set and BB is unreachable.
748
749 2015-12-04 Richard Biener <rguenther@suse.de>
750
751 * bitmap.c (bitmap_find_bit): Guard the bitmap descriptor
752 query with GATHER_STATISTICS.
753
754 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
755
756 PR middle-end/65958
757 * gimplify.c (struct gimplify_ctx): Turn boolean fields into 1-bit
758 fields, add keep_stack and reorder them.
759 (gimplify_bind_expr): Save gimplify_ctxp->keep_stack on entry then
760 set it to false. Do not insert a stack save/restore pair if it has
761 been set to true by the gimplification of the statements.
762 Restore it to the saved value on exit if it is still false.
763 (gimplify_vla_decl): Do not set gimplify_ctxp->save_stack here.
764 (gimplify_call_expr) <BUILT_IN_ALLOCA[_WITH_ALIGN]>: New case. Set
765 either save_stack or keep_stack depending on CALL_ALLOCA_FOR_VAR_P.
766 * doc/extend.texi (Variable Length): Document new behavior.
767 * doc/generic.texi (Blocks): Document new handling of VLAs.
768
769 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
770 Tristan Gingold <gingold@adacore.com>
771
772 PR middle-end/65958
773 * config/aarch64/aarch64-protos.h (aarch64_output_probe_stack-range):
774 Declare.
775 * config/aarch64/aarch64.md: Declare UNSPECV_BLOCKAGE and
776 UNSPEC_PROBE_STACK_RANGE.
777 (blockage): New instruction.
778 (probe_stack_range_<PTR:mode>): Likewise.
779 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): New
780 function.
781 (aarch64_output_probe_stack_range): Likewise.
782 (aarch64_expand_prologue): Invoke aarch64_emit_probe_stack_range if
783 static builtin stack checking is enabled.
784 * config/aarch64/aarch64-linux.h (STACK_CHECK_STATIC_BUILTIN):
785 Define to 1.
786
787 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
788
789 PR target/68214
790 * config/arm/arm.md (*call_mem): Delete pattern.
791 (*call_value_mem): Likewise.
792 * config/arm/arm.c (output_call_mem): Delete.
793 * config/arm/arm-protos.h (output_call_mem): Delete prototype.
794
795 2015-12-04 Bin Cheng <bin.cheng@arm.com>
796
797 * config/aarch64/atomics.md (atomic_store<mode>): Use predicate
798 aarch64_sync_memory_operand.
799
800 2015-12-04 Jakub Jelinek <jakub@redhat.com>
801
802 PR target/68655
803 * config/i386/i386.c (canonicalize_vector_int_perm): New function.
804 (expand_vec_perm_1): Use it and recurse if everything else
805 failed. Use nd.perm instead of perm2.
806 (expand_vec_perm_even_odd_1): If testing_p, use gen_raw_REG
807 instead of gen_lowpart for the target.
808 (ix86_expand_vec_perm_const_1): Use canonicalize_vector_int_perm
809 and recurse if everything else failed.
810
811 2015-12-04 Richard Biener <rguenther@suse.de>
812
813 PR middle-end/68636
814 * builtins.c (get_pointer_alignment_1): Take care of byte to
815 bit alignment computation overflow.
816
817 2015-12-04 Richard Biener <rguenther@suse.de>
818
819 PR middle-end/67438
820 * match.pd: Guard ~X cmp ~Y -> Y cmp X and the variant with
821 a constant with single_use.
822
823 2015-12-04 Bin Cheng <bin.cheng@arm.com>
824 Jiong Wang <jiong.wang@arm.com>
825
826 * config/aarch64/aarch64.c (aarch64_legitimize_address): legitimize
827 address expressions like Ra + Rb + CONST and Ra + Rb<<SCALE + CONST.
828
829 2015-12-03 Jan Hubicka <hubicka@ucw.cz>
830
831 * alias.c (alias_set_subset_of, alias_sets_must_conflict_p):
832 Add short circuit for !flag_strict_aliasing
833 (get_alias_set): Remove flag_strict_aliasing check.
834 (new_alias_set): Likewise.
835
836 2015-12-03 Evandro Menezes <e.menezes@samsung.com>
837
838 * config/aarch64/aarch64-cores.def: Use the Exynos M1 cost model.
839 * config/aarch64/aarch64.c (exynosm1_addrcost_table): New variable.
840 (exynosm1_regmove_cost): Likewise.
841 (exynosm1_vector_cost): Likewise.
842 (exynosm1_tunings): Likewise.
843 * config/arm/aarch-cost-tables.h (exynosm1_extra_costs): Likewise.
844 * config/arm/arm.c (arm_exynos_m1_tune): Likewise.
845
846 2015-12-03 Alan Lawrence <alan.lawrence@arm.com>
847 Richard Biener <richard.guenther@gmail.com>
848
849 * cfgexpand.c (pass_expand::execute): Replace call to
850 redirect_edge_var_map_destroy with redirect_edge_var_map_empty.
851 * tree-ssa.c (delete_tree_ssa): Likewise.
852 * function.c (set_cfun): Call redirect_edge_var_map_empty.
853 * passes.c (execute_one_ipa_transform_pass, execute_one_pass): Likewise.
854 * tree-ssa.h (redirect_edge_var_map_destroy): Remove.
855 (redirect_edge_var_map_empty): New.
856 * tree-ssa.c (redirect_edge_var_map_destroy): Remove.
857 (redirect_edge_var_map_empty): New.
858
859 2015-12-03 Jeff Law <law@redhat.com>
860
861 PR tree-optimization/68599
862 * loop-init.c (rtl_loop_init): Set LOOPS_HAVE_RECORDED_EXITS
863 in call to loop_optimizer_init.
864 * loop-iv.c (get_simple_loop_desc): Only allow unsafe loop
865 optimization to drop the assumptions/infinite notations if
866 the loop has a single exit.
867
868 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
869
870 * doc/md.texi (vec_load_lanes@var{m}@var{n}): Document that
871 the pattern cannot FAIL.
872 (vec_store_lanes@var{m}@var{n}): Likewise.
873 (maskload@var{m}@var{n}): Likewise.
874 (maskstore@var{m}@var{n}): Likewise. Fix a cut-&-paste error
875 in the name of the pattern.
876 (rsqrt@var{m}2): Document that mode m must be a scalar or vector
877 floating-point mode and that all operands have that mode.
878 (fmin@var{m}3, fmax@var{m}3): Likewise. Document that the
879 pattern cannot FAIL.
880 (sqrt@var{m}2): Document that mode m must be a scalar or vector
881 floating-point mode, that all operands have that mode, and that
882 the patterns cannot FAIL. Remove previous documentation referring
883 to @code{double} and @code{float}.
884 (fmod@var{m}3, remainder@var{m}3, cos@var{m}2, sin@var{m}2)
885 (sincos@var{m}3, log@var{m}2, pow@var{m}3, atan2@var{m}3)
886 (copysign@var{m}3): Likewise.
887 (exp@var{m}2): Likewise. Explicitly state the base.
888 (floor@var{m}2): As for sqrt@var{m}2, but also specify the operands.
889 (btrunc@var{m}2, rint@var{m}2): Likewise.
890 (round@var{m}2): Likewise. Fix incorrect description of rounding
891 effect.
892 (ceil@var{m}2): As for round@var{m}2.
893 (nearbyint@var{m}2): As for floor@var{m}2, but also mention that
894 the instruction must not raise an inexact condition.
895 (scalb@var{m}3): Document previously-undocumented pattern
896 (ldexp@var{m}3, tan@var{m}2, asin@var{m}2, acos@var{m}2)
897 (atan@var{m}2, expm1@var{m}2, exp10@var{m}2, exp2@var{m}2)
898 (log1p@var{m}2, log10@var{m}2, log2@var{m}2, logb@var{m}2)
899 (significand@var{m}2): Likewise.
900 (ffs@var{m}2): Fix the description of the modes, so that operand 1 has
901 mode m and operand 0 is defined more freely. Document that @var{m}
902 can be a scalar or vector integer mode and that the pattern is not
903 allowed to FAIL.
904 (clz@var{m}2, ctz@var{m}2, popcount@var{m}2, parity@var{m}2): Likewise.
905 (clrsb@var{m}2): Likewise, except that the description of the
906 mode was missing in this case.
907
908 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
909
910 * internal-fn.def (RSQRT): New function.
911 * optabs.def (rsqrt_optab): New optab.
912 * doc/md.texi (rsqrtM2): Document.
913 * target.def (builtin_reciprocal): Replace gcall argument with
914 a function decl. Restrict hook to machine functions.
915 * doc/tm.texi: Regenerate.
916 * targhooks.h (default_builtin_reciprocal): Update prototype.
917 * targhooks.c (default_builtin_reciprocal): Likewise.
918 * tree-ssa-math-opts.c: Include internal-fn.h.
919 (internal_fn_reciprocal): New function.
920 (pass_cse_reciprocals::execute): Call it, and build a call to an
921 internal function on success. Only call targetm.builtin_reciprocal
922 for machine functions.
923 * config/aarch64/aarch64-protos.h (aarch64_builtin_rsqrt): Remove
924 second argument.
925 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin_rsqrt):
926 Rename aarch64_rsqrt_<mode>2 to rsqrt<mode>2.
927 (aarch64_builtin_rsqrt): Remove md_fn argument and only handle
928 machine functions.
929 * config/aarch64/aarch64.c (use_rsqrt_p): New function.
930 (aarch64_builtin_reciprocal): Replace gcall argument with a
931 function decl. Use use_rsqrt_p. Remove optimize_size check.
932 Only handle machine functions. Update call to aarch64_builtin_rsqrt.
933 (aarch64_optab_supported_p): New function.
934 (TARGET_OPTAB_SUPPORTED_P): Define.
935 * config/aarch64/aarch64-simd.md (aarch64_rsqrt_<mode>2): Rename to...
936 (rsqrt<mode>2): ...this.
937 * config/i386/i386.c (use_rsqrt_p): New function.
938 (ix86_builtin_reciprocal): Replace gcall argument with a
939 function decl. Use use_rsqrt_p. Remove optimize_insn_for_size_p
940 check. Only handle machine functions.
941 (ix86_optab_supported_p): Handle rsqrt_optab.
942 * config/rs6000/rs6000.c (TARGET_OPTAB_SUPPORTED_P): Define.
943 (rs6000_builtin_reciprocal): Replace gcall argument with a
944 function decl. Remove optimize_insn_for_size_p check.
945 Only handle machine functions.
946 (rs6000_optab_supported_p): New function.
947
948 2015-12-03 Bernd Schmidt <bschmidt@redhat.com>
949
950 PR target/68471
951 PR target/68472
952 * config/i386/i386.c (ix86_mitigate_rop): Don't call
953 compute_bb_for_insn again. Call df_insn_rescan_all.
954 * config/i386/i386.md (set_got_rex64): Override modrm_class.
955
956 * regrename.c (build_def_use): Ignore stack regs if regstack_completed.
957
958 2015-12-03 Nathan Sidwell <nathan@acm.org>
959
960 * config/nvptx/nvptx-protos.h (npvptx_section_from_addr_space): Delete.
961 * config/nvptx/nvptx.c (enum nvptx_data_area): New.
962 (SYMBOL_DATA_AREA, SET_SYMBOL_DATA_AREA): New defines.
963 (nvptx_option_override): Set data ares for worker vars.
964 (nvptx_addr_space_from_sym): Delete.
965 (nvptx_encode_section_info): New.
966 (section_for_sym, section_for_decl): New.
967 (nvptx_maybe_convert_symbolic_operand): Get data area from symbol flags.
968 (nvptx_section_from_addr_space): Delete.
969 (nvptx_section_for_decl): Delete.
970 (nvptx_output_aligned, nvptx_declare_object_name,
971 nvptx_assemble_undefined_decl): Use section_for_decl, remove
972 unnecessary checks.
973 (nvptx_print_operand): Add 'D', adjust 'A'.
974 (nvptx_expand_worker_addr): Adjust unspec generation.
975 (TARGET_ENCODE_SECTION_INFO): Override.
976 * config/nvptx/nvptx.h (ADDR_SPACE_GLOBAL, ADDR_SPACE_SHARED,
977 ADDR_SPACE_CONST, ADDR_SPACE_LOCAL, ADDR_SPACE_PARAM): Delete.
978 * config/nvptx/nvptx.md (UNSPEC_FROM_GLOBAL, UNSPEC_FROM_LOCAL,
979 UNSPEC_FROM_PARAM, UNSPEC_FROM_SHARED, UNSPEC_FROM_CONST,
980 UNSPEC_TO_GLOBAL, UNSPEC_TO_LOCAL, UNSPEC_TO_PARAM,
981 UNSPEC_TO_SHARED, UNSPEC_TO_CONST): Delete.
982 (UNSPEC_TO_GENERIC): New.
983 (nvptx_register_or_symbolic_operand): Delete.
984 (cvt_code, cvt_name, cvt_str): Delete.
985 (convaddr_<cvt_name><mode> [P]): Delete.
986 (convaddr_<mode> [P]): New.
987
988 2015-12-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
989
990 PR rtl-optimization/68624
991 * ifcvt.c (noce_try_cmove_arith): Check clobbers of temp regs in both
992 blocks if they exist and simplify the logic choosing the order to emit
993 them in.
994
995 2015-12-03 Richard Biener <rguenther@suse.de>
996
997 PR tree-optimization/66051
998 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
999 on load group size. Do not pass in vectorization_factor.
1000 (vect_transform_slp_perm_load): Do not require any permute support.
1001 (vect_build_slp_tree): Do not pass in vectorization factor.
1002 (vect_analyze_slp_instance): Do not compute vectorization
1003 factor estimate. Use vector size instead of vectorization factor
1004 estimate to split store groups for BB vectorization.
1005
1006 2015-12-03 Ilya Enkovich <enkovich.gnu@gmail.com>
1007
1008 * cfgexpand.c (expand_gimple_stmt_1): Return statement with
1009 DECL as return value is allowed to have NULL bounds.
1010
1011 2015-12-03 Tom de Vries <tom@codesourcery.com>
1012
1013 * graphite-isl-ast-to-gimple.c (binary_op_to_tree)
1014 (gcc_expression_from_isl_expr_op): Guard isl_ast_op_zdiv_r usage with
1015 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
1016
1017 2015-12-03 Richard Biener <rguenther@suse.de>
1018
1019 PR tree-optimization/67800
1020 PR tree-optimization/68333
1021 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Restore
1022 restriction to reduction contexts but allow SLP reductions as well.
1023 (vect_recog_sad_pattern): Likewise.
1024 (vect_recog_widen_sum_pattern): Likewise.
1025
1026 2015-12-03 Richard Biener <rguenther@suse.de>
1027
1028 PR tree-optimization/68639
1029 * tree-vect-data-refs.c (dr_group_sort_cmp): Split groups
1030 belonging to different loops.
1031 (vect_analyze_data_ref_accesses): Likewise.
1032
1033 2015-12-02 Kirill Yukhin <kirill.yukhin@intel.com>
1034
1035 * config/i386/sse.md (define_insn "vec_extract_hi_<mode>_maskm"):
1036 Remove "prefix_extra".
1037 (define_insn "vec_extract_hi_<mode>_mask"): New.
1038 (define_insn "vec_extract_hi_<mode>"): Remove masking.
1039
1040 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
1041
1042 * ipa-pure-const.c (ignore_edge_for_pure_const): New function.
1043 (propagate_pure_const): Use it; fix comments and optimize loops.
1044
1045 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
1046
1047 * ipa-pure-const.c (ignore_edge): Rename to ...
1048 (ignore_edge_for_nothrow) ... this one; also ignore eges to
1049 interposable functions or ones that can not throw.
1050 (propagate_nothrow): Fix handling of availability.
1051
1052 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
1053
1054 PR ipa/68184
1055 * cgraphunit.c (cgraph_node::analyze): Set can_throw_external.
1056
1057 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
1058 Sebastian Pop <s.pop@samsung.com>
1059
1060 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Handle
1061 isl_ast_op_zdiv_r.
1062 (gcc_expression_from_isl_expr_op): Same.
1063
1064 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
1065 Sebastian Pop <s.pop@samsung.com>
1066
1067 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Check
1068 that insertion point is still in the region.
1069
1070 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
1071 Sebastian Pop <s.pop@samsung.com>
1072
1073 PR tree-optimization/68550
1074 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Add dump.
1075 (copy_bb_and_scalar_dependences): Do not code generate loop peeled
1076 statements.
1077
1078 2015-12-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1079
1080 * configure.ac: Check assembler support for R_PPC64_ENTRY relocation.
1081 * configure: Regenerate.
1082 * config.in: Regenerate.
1083 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p): New
1084 function.
1085 (rs6000_output_function_prologue): Use it instead of checking
1086 cfun->machine->r2_setup_needed. Use internal labels instead of
1087 GNU as local label extension. Handle ELFv2 large code model.
1088 (rs6000_output_mi_thunk): Do not set cfun->machine->r2_setup_needed.
1089 (rs6000_elf_declare_function_name): Handle ELFv2 large code model.
1090
1091 2015-12-02 Jakub Jelinek <jakub@redhat.com>
1092
1093 PR target/68647
1094 * optabs.c (expand_doubleword_popcount, expand_doubleword_parity):
1095 New functions.
1096 (expand_unop): Use them.
1097
1098 2015-12-02 Marek Polacek <polacek@redhat.com>
1099
1100 PR c++/68653
1101 * tree.c (nonnull_arg_p): Allow OFFSET_TYPE.
1102
1103 2015-12-02 Nathan Sidwell <nathan@acm.org>
1104
1105 * config/nvptx/nvptx.c (enum nvptx_shuffle_kind): New. Absorb
1106 SHUFFLE defines.
1107 (nvptx_gen_shuffle, nvptx_print_operand, nvptx_expand_shuffle): Adjust.
1108
1109 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
1110 Sebastian Pop <s.pop@samsung.com>
1111
1112 * graphite-dependences.c (scop_get_reads): Add extra dumps.
1113 (scop_get_must_writes): Same.
1114 (scop_get_may_writes): Same.
1115 (compute_deps): Same.
1116 * graphite-sese-to-poly.c (bounds_are_valid): New.
1117 (pdr_add_data_dimensions): Call bounds_are_valid.
1118
1119 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
1120 Sebastian Pop <s.pop@samsung.com>
1121
1122 * common.opt (flag_loop_optimize_isl): Renamed flag_loop_nest_optimize.
1123 * graphite-poly.c (apply_poly_transforms): Same.
1124 * graphite.c (gate_graphite_transforms): Same.
1125 * toplev.c (process_options): Same.
1126
1127 2015-12-02 Eric Botcazou <ebotcazou@adacore.com>
1128
1129 * config/mips/mips.c (mips_emit_probe_stack_range): Adjust.
1130 (mips_output_probe_stack_range): Rotate the loop and simplify.
1131
1132 2015-12-02 David Sherwood <david.sherwood@arm.com>
1133
1134 * config/aarch64/aarch64.md: New pattern.
1135 * config/aarch64/aarch64-simd.md: Likewise.
1136 * config/aarch64/iterators.md: New unspecs, iterators.
1137
1138 2015-12-02 Pierre-Marie de Rodat <derodat@adacore.com>
1139
1140 * dwarf2out.c (dwar2out_var_location): In addition to notes,
1141 process indirect calls whose target is compile-time known.
1142 Enhance pattern matching to get the SYMBOL_REF they embed.
1143 (gen_subprogram_die): Handle such calls.
1144 * final.c (final_scan_insn): For call instructions, invoke the
1145 var_location debug hook only after the call has been emitted.
1146
1147 2015-12-02 Tom de Vries <tom@codesourcery.com>
1148
1149 * gimplify.c (enum gimplify_omp_var_data): Add enum value
1150 GOVD_MAP_FORCE.
1151 (oacc_default_clause): Fix default for scalars in oacc kernels.
1152 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_FORCE.
1153
1154 2015-12-02 Tom de Vries <tom@codesourcery.com>
1155
1156 * omp-low.c (install_var_field, scan_sharing_clauses): Add and handle
1157 parameter base_pointers_restrict.
1158 (omp_target_base_pointers_restrict_p): New function.
1159 (scan_omp_target): Call scan_sharing_clauses with
1160 base_pointers_restrict arg.
1161
1162 2015-12-02 Nathan Sidwell <nathan@acm.org>
1163
1164 * config/nvptx/nvptx-protos.h (nvptx_output_mov_insn): Declare.
1165 (nvptx_underlying_object_mode): Delete.
1166 * config/nvptx/nvptx.c (nvptx_underlying_object_mode): Delete.
1167 (output_reg): New.
1168 (nvptx_declare_function_name): Use output_reg. Remove punning buffer.
1169 (nvptx_output_mov_insn): New.
1170 (nvptx_print_operand): Separate SUBREG handling, remove 'f' case,
1171 Use output_reg. Merge 't' and 'u' handling.
1172 * config/nvptx/nvptx.h (NVPTX_PUNNING_BUFFER_REGNUM): Delete.
1173 (struct machine_function): Remvoe punning_buffer_size.
1174 (REGISTER_NAMES): Remove %punbuffer.
1175 * config/nvptx/nvptx.md (UNSPEC_CPLX_LOWPART,
1176 UNSPEC_CPLX_HIGHPART): Delete.
1177 (*mov<mode>_insn [QHSDIM): Remove unnecessary constraints, use
1178 nvptx_output_mov_insn.
1179 (*mov<mode>_insn [SDFM): Reorder constraints to match integer moc.
1180 Use nvptx_output_mov_insn.
1181 (highpartscsf2, set_highpartscsf2, lowpartscsf2, set_lowpartscsf2):
1182 Delete.
1183 (mov<mode> [SDCM]): Delete.
1184
1185 2015-12-02 Richard Biener <rguenther@suse.de>
1186
1187 * tree.h (tree_invariant_p): Declare.
1188 * tree.c (tree_invariant_p): Export.
1189 * genmatch.c (dt_simplify::gen_1): For GENERIC code-gen never
1190 create SAVE_EXPRs but reject patterns if we would need to.
1191
1192 2015-12-02 Tom de Vries <tom@codesourcery.com>
1193
1194 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call)
1195 (find_func_clobbers, ipa_pta_execute): Handle BUILT_IN_GOACC_PARALLEL.
1196
1197 2015-12-02 Segher Boessenkool <segher@kernel.crashing.org>
1198
1199 * config/rs6000/rs6000.md (cstore_si_as_di): New expander.
1200 (cstore<mode>4): Use it.
1201
1202 2015-12-02 Richard Biener <rguenther@suse.de>
1203
1204 PR tree-optimization/68625
1205 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not call
1206 cleanup_control_flow_bb.
1207 (cleanup_tree_cfg_1): First perform cleanup_control_flow_bb
1208 on all BBs, then cleanup_tree_cfg_bb and finally iterate
1209 over the worklist doing both.
1210
1211 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
1212
1213 PR tree-optimization/68432
1214 * coretypes.h (optimization_type): New enum.
1215 * doc/tm.texi.in (TARGET_OPTAB_SUPPORTED_P): New hook.
1216 * doc/tm.texi: Regenerate.
1217 * target.def (optab_supported_p): New hook.
1218 * targhooks.h (default_optab_supported_p): Declare.
1219 * targhooks.c (default_optab_supported_p): New function.
1220 * predict.h (function_optimization_type): Declare.
1221 (bb_optimization_type): Likewise.
1222 * predict.c (function_optimization_type): New function.
1223 (bb_optimization_type): Likewise.
1224 * optabs-query.h (convert_optab_handler): Define an overload
1225 that takes an optimization type.
1226 (direct_optab_handler): Likewise.
1227 * optabs-query.c (convert_optab_handler): Likewise.
1228 (direct_optab_handler): Likewise.
1229 * internal-fn.h (direct_internal_fn_supported_p): Take an
1230 optimization_type argument.
1231 * internal-fn.c (direct_optab_supported_p): Likewise.
1232 (multi_vector_optab_supported_p): Likewise.
1233 (direct_internal_fn_supported_p): Likewise.
1234 * builtins.c (replacement_internal_fn): Update call to
1235 direct_internal_fn_supported_p.
1236 * gimple-match-head.c (build_call_internal): Likewise.
1237 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
1238 * tree-vect-stmts.c (vectorizable_internal_function): Likewise.
1239 * tree.c (maybe_build_call_expr_loc): Likewise.
1240 * config/i386/i386.c (ix86_optab_supported_p): New function.
1241 (TARGET_OPTAB_SUPPORTED_P): Define.
1242 * config/i386/i386.md (asinxf2): Remove optimize_insn_for_size_p check.
1243 (asin<mode>2, acosxf2, acos<mode>2, log1pxf2, log1p<mode>2)
1244 (expNcorexf3, expxf2, exp<mode>2, exp10xf2, exp10<mode>2, exp2xf2)
1245 (exp2<mode>2, expm1xf2, expm1<mode>2, ldexpxf3, ldexp<mode>3)
1246 (scalbxf3, scalb<mode>3, rint<mode>2, round<mode>2)
1247 (<rounding_insn>xf2, <rounding_insn><mode>2): Likewise.
1248
1249 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
1250
1251 * Makefile.in (GENSUPPORT_H): New macro.
1252 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
1253 (build/genattr-common.o, build/genattrtab.o, build/genautomata.o)
1254 (build/gencodes.o, build/genconditions.o, build/genconfig.o)
1255 (build/genconstants.o, build/genextract.o, build/genflags.o)
1256 (build/gentarget-def.o): Use it.
1257 (build/genemit.o): Likewise. Depend on internal-fn.def.
1258 * genopinit.c: Move block comment to optabs.def.
1259 (optab_tag, optab_def): Move to gensupport.h
1260 (pattern): Likewise, renaming to optab_pattern.
1261 (match_pattern): Move to gensupport.c
1262 (gen_insn): Use find_optab.
1263 (patterns, pattern_cmp): Replace pattern with optab_pattern.
1264 (main): Likewise. Use num_optabs.
1265 * optabs.def: Add comment that was previously in genopinit.c.
1266 * gensupport.h (optab_tag): Moved from genopinit.c
1267 (optab_def): Likewise, expanding commentary.
1268 (optab_pattern): Likewise, after renaming from pattern.
1269 (optabs, num_optabs, find_optab): Declare.
1270 * gensupport.c (optabs): Moved from genopinit.c.
1271 (num_optabs): New variable.
1272 (match_pattern): Moved from genopinit.c.
1273 (find_optab): New function, extracted from genopinit.c:gen_insn.
1274 * genemit.c (nofail_optabs): New variable.
1275 (emit_c_code): New function.
1276 (gen_expand): Check whether the instruction is an optab that isn't
1277 allowed to fail. Call emit_c_code.
1278 (gen_split): Call emit_c_code here too.
1279 (main): Initialize nofail_optabs. Don't emit FAIL and DONE here.
1280
1281 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1282
1283 * config/s390/predicates.md (const_mask_operand): New predicate.
1284 * config/s390/s390-builtins.def: Set a smaller bitmask
1285 for a few builtins.
1286 * config/s390/vector.md: Change predicate from immediate_operand
1287 to either const_int_operand or const_mask_operand. Add special
1288 insn conditions on patterns which have to exclude certain values.
1289 * config/s390/vx-builtins.md: Likewise.
1290
1291 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1292
1293 * config/s390/vector.md ("*vec_set<mode>"): Change shift count
1294 mode from DI to SI.
1295
1296 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1297
1298 * config/s390/s390-builtin-types.def: New builtin types added.
1299 * config/s390/s390-builtins.def: Add s390_vec_splat_* definitions.
1300 * config/s390/s390.c (s390_expand_builtin): Always truncate
1301 constants to the mode in the pattern.
1302 * config/s390/vecintrin.h: Let the vec_splat_* macros point to the
1303 respective builtin __builtin_s390_vec_splat_*.
1304
1305 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1306
1307 * config/s390/s390-builtin-types.def: Sort builtin types.
1308
1309 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1310
1311 * config/s390/s390-c.c (s390_get_vstring_flags): Invert the
1312 condition for the RT flag.
1313
1314 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1315
1316 * config/s390/constraints.md ("jKK"): New constraint.
1317 * config/s390/s390.c (tm-constrs.h): Include for
1318 satisfies_constraint_*.
1319 (s390_legitimate_constant_p): Allow jKK constants. Use
1320 satisfies_constraint_* also for the others.
1321 (legitimate_reload_vector_constant_p): Likewise.
1322 (print_operand): Allow h output modifier on vectors.
1323 * config/s390/vector.md ("mov<mode>"): Add vrepi.
1324
1325 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1326
1327 * config/s390/vector.md ("*vec_splats<mode>"): Fix constraint
1328 letter I->K.
1329
1330 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1331
1332 * config/s390/s390.md ("bswap<mode>2"): Add support for strv and strvg.
1333 ("bswaphi2"): New pattern.
1334 New splitter for HI reg-reg bswap.
1335
1336 2015-11-27 Jiri Engelthaler <engycz@gmail.com>
1337
1338 PR driver/68029
1339 * opts-common.c (prune_options): Don't ignore -fdiagnostics-color
1340 if it is the first parameter.
1341
1342 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
1343
1344 PR tree-optimization/68577
1345 * tree-vect-stmts.c (simple_integer_narrowing): New function.
1346 (vectorizable_call): Restrict internal function handling
1347 to NONE and NARROW cases, using simple_integer_narrowing
1348 to test for the latter. Add cost of narrowing operation
1349 and insert it where necessary.
1350
1351 2015-12-01 Andreas Tobler <andreast@gcc.gnu.org>
1352
1353 * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add new macro.
1354 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
1355 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
1356
1357 2015-12-01 Nathan Sidwell <nathan@acm.org>
1358
1359 * config/nvptx/nvptx-protos.h (nvptx_output_aligned_decl): Declare.
1360 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
1361 ASM_OUTPUT_ALIGNED_DECL_LOCAL): Forward to nvptx_output_aligned_decl.
1362 * config/nvptx/nvptx.c (write_fn_marker, write_var_marker): New.
1363 (write_fn_proto, write_fn_proto_from_insn): Call write_fn_marker.
1364 (init_output_initializer): Call write_var_marker.
1365 (nvptx_output_aligned_decl): New.
1366 (nvptx_assemble_undefined_decl, nvptx_file_end): Call write_var_marker.
1367
1368 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
1369
1370 * c-common.c (parse_optimize_options): Do not silently ignore
1371 -fstrict-aliasing changes.
1372
1373 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
1374
1375 * lto-streamer-out.c (hash_tree): Do not stream TYPE_ALIAS_SET.
1376 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not
1377 stream TYPE_ALIAS_SET.
1378 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Do not
1379 stream TYPE_ALIAS_SET.
1380
1381 2015-12-01 Nathan Sidwell <nathan@acm.org>
1382
1383 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
1384 consider mode.
1385
1386 2015-12-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1387
1388 * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra
1389 indirection for large and small code models.
1390 (adjust_vperm): Likewise.
1391
1392 2015-12-01 Julian Brown <julian@codesourcery.com>
1393 Cesar Philippidis <cesar@codesourcery.com>
1394 James Norris <James_Norris@mentor.com>
1395
1396 * gimple-pretty-print.c (dump_gimple_omp_target): Add host_data support.
1397 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_HOST_DATA.
1398 (is_gimple_omp_oacc): Add support for above.
1399 * gimplify.c (omp_region_type): Add ORT_ACC_HOST_DATA.
1400 (omp_notice_variable): Diagnose undefined implicit uses of
1401 use_device variables in offloaded regions.
1402 (gimplify_scan_omp_clauses): Add host_data, use_device
1403 support. Diagnose undefined mapping of use_device variables in
1404 OpenACC clauses.
1405 (gimplify_omp_workshare): Add host_data support.
1406 (gimplify_expr): Likewise.
1407 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): New.
1408 * omp-low.c (lookup_decl_in_outer_ctx)
1409 (maybe_lookup_decl_in_outer_ctx): Add optional argument to skip
1410 host_data regions.
1411 (scan_sharing_clauses): Support use_device.
1412 (check_omp_nesting_restrictions): Support host_data.
1413 (expand_omp_target): Support host_data.
1414 (lower_omp_target): Skip over outer host_data regions when looking
1415 up decls. Support use_device.
1416 (make_gimple_omp_edges): Support host_data.
1417 * tree-nested.c (convert_nonlocal_omp_clauses): Add use_device clause.
1418
1419 2015-12-01 Marek Polacek <polacek@redhat.com>
1420
1421 PR middle-end/68582
1422 * cgraphunit.c (check_global_declaration): Only depend
1423 on TREE_THIS_VOLATILE for VAR_DECLs.
1424
1425 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
1426
1427 PR tree-optimization/68474
1428 * tree-call-cdce.c (use_internal_fn): Protect call to
1429 gen_shrink_wrap_conditions.
1430
1431 2015-12-01 Christian Bruel <christian.bruel@st.com>
1432
1433 PR target/68617
1434 * config/arm/arm.opt (unaligned_access): Save.
1435 * config/arm/arm-c.c (__ARM_FEATURE_UNALIGNED): Conditionally define.
1436 * config/arm/arm.c (arm_option_override): Move unaligned_access setting.
1437 (arm_option_override_internal): ... here.
1438 * config/arm/arm.h (TARGET_32BIT_P): New macro.
1439
1440 2015-12-01 Richard Biener <rguenther@suse.de>
1441
1442 PR tree-optimization/68379
1443 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1444 always base loads on the first used DR of a group.
1445 * tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
1446 Compute alignment of the first scalar element unconditionally.
1447
1448 2015-12-01 Richard Biener <rguenther@suse.de>
1449
1450 PR middle-end/68590
1451 * genmatch.c (struct capture_info): Add match_use_count.
1452 (capture_info::walk_match): Increment match_use_count.
1453 (dt_simplify::gen_1): For GENERIC, only wrap multi-use
1454 replacements in a save_expr if they occur more often than
1455 in the original expression.
1456
1457 2015-12-01 Richard Biener <rguenther@suse.de>
1458
1459 PR ipa/68470
1460 * ipa-split.c (split_function): Handle main part not returning.
1461
1462 2015-12-01 Ilya Enkovich <enkovich.gnu@gmail.com>
1463
1464 PR middle-end/68595
1465 * tree-vect-stmts.c (vect_init_vector): Cast boolean
1466 scalars to a proper value before building a vector.
1467
1468 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
1469
1470 * genattrtab.c (check_attr_test): Take an attr_desc instead of
1471 an is_const flag. Put the file_location argument first.
1472 Update recursive calls. Improve error messages.
1473 (check_attr_value): Take a file location and use it instead
1474 of attr->loc. Improve error messages. Update calls to
1475 check_attr_test.
1476 (check_defs): Update call to check_attr_value.
1477 (make_canonical): Likewise.
1478 (gen_attr): Likewise.
1479 (main): Likewise.
1480 (gen_insn_reserv): Update call to check_attr_test.
1481
1482 2015-12-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1483
1484 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
1485
1486 2015-12-01 Richard Biener <rguenther@suse.de>
1487
1488 PR middle-end/68590
1489 * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
1490
1491 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
1492
1493 * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
1494 odr_type_p): Move to ...
1495 * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
1496 odr_type_p): here; miscro-optimize.
1497
1498 2015-12-01 Bin Cheng <bin.cheng@arm.com>
1499
1500 PR tree-optimization/68529
1501 * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
1502 Compute no-overflow information for control iv.
1503 (number_of_iterations_lt, number_of_iterations_le): Add new param.
1504 (number_of_iterations_cond): Pass new argument to above functions.
1505
1506 2015-11-30 Jan Hubicka <hubicka@ucw.cz>
1507
1508 * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
1509 inlining -fno-strict-aliasing into -fstrict-aliasing body.
1510
1511 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
1512 Sebastian Pop <s.pop@samsung.com>
1513
1514 PR tree-optimization/68565
1515 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
1516 codegen_error. Fail when rhs of division operations is integer_zerop.
1517 (ternary_op_to_tree): Early return on codegen_error.
1518 (unary_op_to_tree): Same.
1519 (nary_op_to_tree): Same.
1520 (gcc_expression_from_isl_expr_op): Same.
1521 (gcc_expression_from_isl_expression): Same.
1522 (graphite_create_new_loop): On codegen_error continue generating
1523 wrong code.
1524 (graphite_create_new_loop_guard): Same.
1525 (build_iv_mapping): Same.
1526 (graphite_create_new_guard): Same.
1527
1528 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
1529 Sebastian Pop <s.pop@samsung.com>
1530
1531 * graphite-isl-ast-to-gimple.c: Fix dump messages.
1532 * graphite-scop-detection.c: Same.
1533 * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
1534
1535 2015-11-30 Cesar Philippidis <cesar@codesourcery.com>
1536
1537 * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
1538 OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
1539 (convert_local_omp_clauses): Likewise.
1540
1541 2015-11-30 Tom de Vries <tom@codesourcery.com>
1542
1543 PR tree-optimization/46032
1544 * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
1545 factored out of ...
1546 (find_func_aliases_for_call): ... here.
1547 (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
1548 BUILT_IN_GOMP_PARALLEL.
1549 (ipa_pta_execute): Same. Handle node->parallelized_function as a local
1550 function.
1551
1552 2015-11-30 Jakub Jelinek <jakub@redhat.com>
1553
1554 PR tree-optimization/68501
1555 * target.def (builtin_reciprocal): Replace the 3 arguments with
1556 a gcall * one, adjust description.
1557 * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
1558 with a gcall * one.
1559 * targhooks.c (default_builtin_reciprocal): Likewise.
1560 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
1561 targetm.builtin_reciprocal even on internal functions, adjust
1562 the arguments and allow replacing an internal function with normal
1563 built-in.
1564 * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
1565 with a gcall * one. Handle internal fns too.
1566 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
1567 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
1568 * doc/tm.texi (builtin_reciprocal): Document.
1569
1570 2015-11-30 Richard Biener <rguenther@suse.de>
1571
1572 PR tree-optimization/68592
1573 * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
1574 on the pattern def sequence.
1575
1576 2015-11-30 Nathan Sidwell <nathan@acm.org>
1577
1578 * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
1579 (write_one_arg): Reorder parms, add 'sep' param.
1580 (nvptx_write_function_decl): Rename to ...
1581 (write_fn_proto): ... here. Do name replacement. Emit linaer
1582 comment marker. Deal with both decls and defns. Simplify argument
1583 formatting.
1584 (write_function_decl_and_comment): Delete.
1585 (write_func_decl_from_insn): Rename to ...
1586 (write_fn_proto_from_insn): ... here. Don't do name replacement.
1587 (nvptx_record_fndecl): Call write_fn_proto.
1588 (nvptx_record_libfunc): Call write_fn_proto_from_insn.
1589 (nvptx_declare_function_name): Adjust for write_fn_proto changes.
1590 (nvotx_output_call_insn): Call write_fn_prot_from_insn.
1591
1592 2015-11-30 Kirill Yukhin <kirill.yukhin@intel.com>
1593
1594 * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
1595 (define_insn "*k<logic><mode>"): Use new iterator.
1596
1597 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
1598
1599 PR target/28115
1600 * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
1601 (sparc_adjust_cost): Add missing space.
1602
1603 2015-11-30 Richard Biener <rguenther@suse.de>
1604
1605 PR c/68162
1606 * dwarf2out.c (gen_type_die_with_usage): Keep variant types of arrays.
1607
1608 2015-11-30 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
1609
1610 * tree-if-conv.c (struct ifc_dr): Add new tree base_predicate field.
1611 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
1612 base ref, DR pairs and store base_predicate for write type DRs.
1613 (ifcvt_memrefs_wont_trap): Guard checks with
1614 -ftree-loop-if-convert-stores flag.
1615
1616 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
1617
1618 * cgraph.c (cgraph_node::make_local): No name is unique during
1619 incremental linking.
1620 * cgraph.h (can_be_discarded_p): Update comment; also common and
1621 WEAK in named sections can be discarded; when doing incremental
1622 link do not rely on resolution being the final one.
1623 * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
1624 When symbol can be discarded, do not rely on resolution info.
1625 * symtab.c (symtab_node::nonzero_address): Take into account that
1626 symbol can be discarded.
1627 * ipa-visibility.c (update_visibility_by_resolution_info): Handle
1628 definition correctly.
1629 (function_and_variable_visibility): Do not set unique_name when
1630 incrementally linking.
1631
1632 2015-11-29 Nathan Sidwell <nathan@acm.org>
1633
1634 * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
1635 const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
1636 (ctrap<mode>): Use const0_operand.
1637
1638 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
1639
1640 * ipa-devirt.c (add_type_duplicate): Remove redundant
1641 ODR violation dump.
1642
1643 2015-11-29 David Edelsohn <dje.gcc@gmail.com>
1644
1645 PR target/28115
1646 * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
1647 recog_memoized test for insn and check recog_memoized for dep_insn.
1648
1649 2015-11-28 Nathan Sidwell <nathan@acm.org>
1650
1651 * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
1652 (FRAME_POINTER_CFA_OFFSET): Define.
1653 (struct nvptx_args): Use 'tree' type.
1654 (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
1655
1656 2015-11-28 Tom de Vries <tom@codesourcery.com>
1657
1658 * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
1659
1660 2015-11-27 Jonathan Wakely <jwakely@redhat.com>
1661
1662 * doc/invoke.texi (Option Summary): Use negative form of
1663 -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
1664 sort alphabetically and re-justify.
1665
1666 2015-11-27 Vladimir Makarov <vmakarov@redhat.com>
1667
1668 PR rtl-optimization/68536
1669 * lra.c (lra_emit_add): Add code for null base.
1670 * lra-constraints.c (curr_insn_transform): Skip operators for
1671 subreg reloads.
1672
1673 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1674
1675 Revert
1676 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1677
1678 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
1679 multiple_sets.
1680 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
1681 are not modified by the final modified insns in the basic blocks.
1682
1683 2015-11-27 Nathan Sidwell <nathan@acm.org>
1684
1685 * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
1686 Don't declare.
1687 * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
1688 (nvptx_maybe_convert_symbolic_operand): Simplify.
1689 (nvptx_addr_space_from_address): Delete.
1690 (nvptx_print_operand): Adjust 'A' case.
1691
1692 2015-11-27 Richard Biener <rguenther@suse.de>
1693
1694 PR tree-optimization/68559
1695 * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
1696 peeling for gap checks ...
1697 * tree-vect-stmts.c (vectorizable_load): ... here and relax for SLP.
1698 * tree-vect-loop.c (vect_analyze_loop_2): Re-set
1699 LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
1700
1701 2015-11-27 Nathan Sidwell <nathan@acm.org>
1702
1703 * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't declare.
1704 * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
1705 (nvptx_record_fndecl): Don't return value, remove force
1706 argument. Require fndecl.
1707 (nvptx_record_libfunc): New.
1708 (nvptx_record_needed_decl): Deteermine how to record decl here.
1709 (nvptx_maybe_record_fnsym): New.
1710 (nvptx_expand_call): Don't record libfuncs here,
1711 (nvptx_maybe_convert_symbolic_operand): Use
1712 nvptx_maye_record_fnsym.
1713 (nvptx_assemble_integer): Reimplement with single switch.
1714 (nvptx_output_call_insn): Register libfuncs here.
1715 (nvptx_file_end): Adjust nvptx_record_fndecl call.
1716 * config/nvptx/nvptx.md (expand_movdi): Don't call
1717 nvptx_record_needed_decl.
1718
1719 2015-11-27 Richard Biener <rguenther@suse.de>
1720
1721 PR tree-optimization/68553
1722 * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
1723 generation for 1:1 permutations.
1724 (vect_transform_slp_perm_load): Detect 1:1 permutations.
1725
1726 2015-11-27 Bernd Schmidt <bschmidt@redhat.com>
1727
1728 * gimple.h (nonbarrier_call_p): Declare.
1729 * gimple.c (nonbarrier_call_p): New function.
1730 * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
1731 Also increment call phase for ASMs with vdef and potential barrier
1732 calls.
1733
1734 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1735
1736 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
1737 multiple_sets.
1738 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
1739 are not modified by the final modified insns in the basic blocks.
1740
1741 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1742
1743 PR rtl-optimization/68506
1744 * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
1745 first if emit_a exists or then_bb modifies 'b'. Reindent if-else
1746 blocks.
1747
1748 2015-11-27 Martin Liska <mliska@suse.cz>
1749
1750 PR c++/68312
1751 * vec.h (release_vec_vec): New function.
1752
1753 2015-11-27 Jakub Jelinek <jakub@redhat.com>
1754
1755 PR tree-optimization/68552
1756 * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
1757 (expand_vec_perm): ... here. Do it regardless of vec_perm_const_optab
1758 or whether v0 == v1.
1759
1760 2015-11-27 Martin Liska <mliska@suse.cz>
1761
1762 * tree-ssa-uninit.c: Fix whitespaces in the source file.
1763 The change is just automatical.
1764
1765 2015-11-27 Martin Liska <mliska@suse.cz>
1766
1767 * tree-chkp.c (chkp_make_static_bounds): Release buffer
1768 used for string.
1769
1770 2015-11-27 Martin Liska <mliska@suse.cz>
1771
1772 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1773 Do not release memory for comp_alias_ddrs.
1774 * tree-vect-loop.c (destroy_loop_vec_info): Release
1775 the memory for all loop_vec_info.
1776
1777 2015-11-27 Martin Liska <mliska@suse.cz>
1778
1779 * ipa-devirt.c (ipa_devirt): Use auto_vec instead
1780 of a local-scope vec.
1781 (struct final_warning_record): Use auto_vec instead of vec.
1782
1783 2015-11-27 Richard Biener <rguenther@suse.de>
1784
1785 PR tree-optimization/68553
1786 * tree-vect-slp.c (vect_get_mask_element): Remove.
1787 (vect_transform_slp_perm_load): Implement in a simpler way.
1788
1789 2015-11-26 Alexandre Oliva <aoliva@redhat.com>
1790
1791 PR rtl-optimization/67753
1792 PR rtl-optimization/64164
1793 * function.c (assign_parm_setup_block): Right-shift
1794 upward-padded big-endian args when bypassing the stack slot.
1795
1796 2015-11-26 Maciej W. Rozycki <macro@imgtec.com>
1797
1798 * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
1799 `-mcompact-branches='.
1800 (MIPS Options): Likewise.
1801
1802 2015-11-26 Jakub Jelinek <jakub@redhat.com>
1803
1804 * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
1805
1806 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
1807
1808 * doc/install.texi (Prerequisites): Increase ISL requirement to
1809 0.14 or 0.15.
1810
1811 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1812
1813 * config/aarch64/arm_neon.h
1814 (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
1815 (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
1816 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
1817 (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
1818 (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
1819 (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
1820 (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
1821 (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
1822 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
1823 (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
1824 (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
1825 (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
1826
1827 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1828
1829 * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
1830 (vqrdmlahq_s16, vqrdmlahq_s32): New.
1831 (vqrdmlsh_s16, vqrdmlsh_s32): New.
1832 (vqrdmlshq_s16, vqrdmlshq_s32): New.
1833
1834 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1835
1836 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
1837 ARM_FEATURE_QRDMX.
1838
1839 2015-11-26 Pierre-Marie de Rodat <derodat@adacore.com>
1840
1841 PR debug/53927
1842 * tree-nested.c (finalize_nesting_tree_1): Append a field to
1843 hold the frame base address.
1844 * dwarf2out.c (gen_subprogram_die): Generate for
1845 DW_AT_static_link a location description that computes the value
1846 of this field.
1847
1848 2015-11-26 Tom de Vries <tom@codesourcery.com>
1849
1850 revert:
1851 2015-11-25 Tom de Vries <tom@codesourcery.com>
1852
1853 * cfgloop.c (find_single_latch): New function, factored out of ...
1854 (flow_loops_find): ... here.
1855 (verify_loop_structure): Improve verification of loop->latch.
1856 * cfgloop.h (find_single_latch): Declare.
1857 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
1858
1859 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1860
1861 * config/aarch64/aarch64-simd-builtins.def:
1862 Add missing changes from r230962.
1863
1864 2015-11-26 Nathan Sidwell <nathan@acm.org>
1865
1866 * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
1867 arg with name. Don't deal with split regs. Tweak formatting.
1868 (nvptx_expand_call): Adjust write_func_decl_from_insn call.
1869 (nvptx_output_call_insn): Don't deal with split regs here.
1870
1871 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1872
1873 * config/aarch64/aarch64-simd-builtins.def
1874 (sqrdmlah, sqrdmlsh): New.
1875 (sqrdmlah_lane, sqrdmlsh_lane): New.
1876 (sqrdmlah_laneq, sqrdmlsh_laneq): New.
1877
1878 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1879
1880 * config/aarch64/aarch64-simd.md
1881 (aarch64_sqmovun<mode>): Fix some white-space.
1882 (aarch64_<sur>qmovun<mode>): Likewise.
1883 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
1884 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
1885 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
1886 * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
1887 (UNSPEC_SQRDMLSH): New.
1888 (SQRDMLH_AS): New.
1889 (rdma_as): New.
1890
1891 2015-11-26 Richard Biener <rguenther@suse.de>
1892
1893 PR tree-optimization/66721
1894 * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
1895 iteration cost earlier. Re-do analysis without SLP when
1896 vectorization using SLP fails and without has a chance to succeed.
1897
1898 2015-11-26 Richard Biener <rguenther@suse.de>
1899
1900 * genmatch.c (dt_simplify::gen_1): For generic wrap all
1901 multi-result-use captures in a SAVE_EXPR.
1902
1903 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1904
1905 * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
1906 (TARGET_SIMD_RDMA): New.
1907
1908 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1909
1910 * combine.c (subst): Do not return clobber of zero in widening mult
1911 case. Just return x unchanged if it is a no-op substitution.
1912
1913 2015-11-26 Vladimir Makarov <vmakarov@redhat.com>
1914
1915 PR target/68416
1916 * config/i386/i386.h (enum reg_class): Add
1917 bounds registers to ALL_REGS.
1918
1919 2015-11-26 Jakub Jelinek <jakub@redhat.com>
1920
1921 PR tree-optimization/68128
1922 * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
1923 * gimplify.c: Include gimple-walk.h.
1924 (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
1925 (omp_notice_variable): Set flags to n->value if n already
1926 exists in target region, but we need to jump to do_outer.
1927 (omp_shared_to_firstprivate_optimizable_decl_p,
1928 omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
1929 functions.
1930 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
1931 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
1932 not modified in the body. Call omp_mark_stores for outer
1933 contexts on OMP_CLAUSE_SHARED clauses if they could be written
1934 in the body or on OMP_CLAUSE_LASTPRIVATE.
1935 (gimplify_adjust_omp_clauses): Add body argument, call
1936 omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
1937 Set OMP_CLAUSE_SHARED_READONLY
1938 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
1939 not modified in the body. Call omp_mark_stores for outer
1940 contexts on OMP_CLAUSE_SHARED clauses if they could be written
1941 in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
1942 without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
1943 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
1944 gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
1945 gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
1946 * tree-nested.c (convert_nonlocal_omp_clauses,
1947 convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
1948 non-local vars or local vars referenced from nested routines.
1949 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
1950 attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE. Even for
1951 TREE_READONLY, don't call use_pointer_for_field with non-NULL
1952 second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
1953
1954 2015-11-26 Paolo Bonzini <bonzini@gnu.org>
1955
1956 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
1957 about signed left shift stronger and clarify the cases when they're
1958 broken.
1959
1960 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1961 Bernd Schmidt <bschmidt@redhat.com>
1962
1963 PR rtl-optimization/67226
1964 * calls.c (store_one_arg): Take into account
1965 crtl->args.pretend_args_size when checking for overlap between
1966 arg->value and argblock + arg->locate.offset during sibcall
1967 optimization.
1968
1969 2015-11-26 Wilco Dijkstra <wdijkstr@arm.com>
1970
1971 * config/aarch64/aarch64.md (cbranch<mode>4): Use
1972 aarch64_fp_compare_operand.
1973 (store_pairsf): Use aarch64_reg_or_fp_zero.
1974 (store_pairdf): Likewise.
1975 (cstore<mode>4): Use aarch64_fp_compare_operand.
1976 (cmov<mode>6): Likewise.
1977 * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
1978
1979 2015-11-25 Aditya Kumar <aditya.k7@samsung.com>
1980 Sebastian Pop <s.pop@samsung.com>
1981
1982 PR tree-optimization/68453
1983 * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
1984 not redirect edges already pointing to their destination.
1985 (translate_isl_ast_node_for): Split edges after loops to create
1986 basic blocks for close phi nodes. Save merge points at the end of
1987 a loop guard.
1988 (translate_isl_ast_node_if): Save merge points at the end of the
1989 if region.
1990 (add_close_phis_to_outer_loops): New.
1991 (add_close_phis_to_merge_points): New.
1992 (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
1993 (copy_bb_and_scalar_dependences): Do not split basic blocks on
1994 loop close phi locations.
1995
1996 2015-11-25 Jan Hubicka <jh@suse.cz>
1997
1998 * ipa-visibility.c (cgraph_externally_visible_p,
1999 varpool_node::externally_visible_p): When doing incremental linking,
2000 hidden symbols may be still used later.
2001 (update_visibility_by_resolution_info): Do not drop weak during
2002 incremental link.
2003 (function_and_variable_visibility): Fix formating.
2004 * flag-types.h (lto_linker_output): Declare.
2005 * common.opt 9flag_incremental_link): New flag.
2006
2007 2015-11-25 Michael Meissner <meissner@linux.vnet.ibm.com>
2008
2009 * config/rs6000/constraints.md (wb constraint): New constraint for
2010 ISA 3.0 d-form scalar addressing.
2011
2012 * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
2013 for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
2014 Altivec registers. Add wb constraint for Altivec registers with
2015 D-form addressing. If we have ISA 3.0 d-form support, undo
2016 secondary reload support for using FPR registers if we want to do
2017 D-form addressing.
2018 (rs6000_debug_reg_global): Likewise.
2019 (rs6000_setup_reg_addr_masks): Likewise.
2020 (rs6000_init_hard_regno_mode_ok): Likewise.
2021 (rs6000_secondary_reload): Likewise.
2022 (rs6000_preferred_reload_class): Likewise.
2023 (rs6000_secondary_reload_class): Likewise.
2024
2025 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
2026 constraint.
2027
2028 * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
2029 for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
2030 (f32_lm2): Likewise.
2031 (f32_li2): Likewise.
2032 (f32_sr2): Likewise.
2033 (f32_sm2): Likewise.
2034 (f32_si2): Likewise.
2035 (f64_p9): Likewise.
2036 (extendsfdf2_fpr): Likewise.
2037 (mov<mode>_hardfloat): Likewise.
2038 (mov<mode>_hardfloat32): Likewise.
2039 (mov<mode>_hardfloat64): Likewise.
2040
2041 * doc/md.texi (RS/6000 constraints): Document wb constraint.
2042 Fixup we constraint documentation.
2043
2044 2015-11-25 Tom de Vries <tom@codesourcery.com>
2045
2046 * omp-low.c (pass_expand_omp_ssa::clone): New function.
2047 * passes.def: Add pass_oacc_kernels pass group.
2048 * tree-ssa-loop-ch.c (pass_ch::clone): New function.
2049
2050 2015-11-25 Tom de Vries <tom@codesourcery.com>
2051
2052 * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
2053 Declare.
2054 * tree-ssa-loop.c (gate_oacc_kernels): New static function.
2055 (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
2056 (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
2057 (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
2058
2059 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
2060
2061 * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
2062 TV_IPA_LTO_OUTPUT): New.
2063 * lto-compress.c: Include timevar.h
2064 (lto_end_compression, lto_end_uncompression): Add timers.
2065 * langhooks.c: Include timevar.h.
2066 (lhd_append_data): Add timer.
2067
2068 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
2069
2070 * varasm.c (default_elf_asm_output_limited_string,
2071 default_elf_asm_output_ascii): Replace fprintf by putc.
2072
2073 2015-11-25 Vladimir Makarov <vmakarov@redhat.com>
2074
2075 PR rtl-optimization/67954
2076 * lra-constraints.c (curr_insn_transform): Add check on scratch
2077 pseudo when change class to NO_REGS. Add an assert.
2078
2079 2015-11-25 Nathan Sidwell <nathan@acm.org>
2080
2081 * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
2082 constraint is 'n'.
2083 * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg number.
2084 (nvptx_write_function_decl): Number args from 0.
2085 (nvptx_declare_function_name): Likewise.
2086 (nvptx_function_incoming_arg): Likewise.
2087 (nvptx_output_call_insn): Correct formatting.
2088
2089 2015-11-25 David Sherwood <david.sherwood@arm.com>
2090
2091 * optabs.def: Add new optabs fmax_optab/fmin_optab.
2092 * internal-fn.def: Add new fmax/fmin internal functions.
2093 * doc/md.texi: Add fmin and fmax patterns.
2094
2095 2015-11-25 Jason Merrill <jason@redhat.com>
2096
2097 PR c++/68385
2098 * tree.c (integer_zerop, integer_onep, integer_each_onep)
2099 (integer_all_onesp, integer_minus_onep, integer_pow2p)
2100 (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
2101 (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
2102
2103 2015-11-25 Richard Biener <rguenther@suse.de>
2104
2105 PR middle-end/68528
2106 * fold-const.c (fold_binary_loc): Do not call negate_expr_p
2107 on stripped operands.
2108
2109 2015-11-25 Nathan Sidwell <nathan@acm.org>
2110
2111 * config/nvptx/nvptx.c (walk_args_for_params): Delete.
2112 (nvptx_declare_function_name): Move assignments next to register
2113 declarations, and process params here.
2114
2115 2015-11-25 David Edelsohn <dje.gcc@gmail.com>
2116
2117 * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
2118 both the symbol and the "dot" symbol for function descriptors. Fix
2119 inversion for rename of symbols with dollar sign.
2120
2121 2015-11-25 Tom de Vries <tom@codesourcery.com>
2122
2123 * cfgloop.c (find_single_latch): New function, factored out of ...
2124 (flow_loops_find): ... here.
2125 (verify_loop_structure): Improve verification of loop->latch.
2126 * cfgloop.h (find_single_latch): Declare.
2127 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
2128
2129 2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2130
2131 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
2132 (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
2133 (STARTFILE_SPEC): Use %(startfile_vtv).
2134 (ENDFILE_SPEC): Use %(endfile_vtv).
2135 (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
2136 ENDFILE_VTV_SPEC.
2137
2138 * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
2139
2140 2015-11-25 Bernd Schmidt <bschmidt@redhat.com>
2141
2142 * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
2143 noce_can_store_speculate): Delete.
2144 (noce_process_if_block): Don't try to handle single MEM stores.
2145 * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
2146 * alias.c (memory_must_be_modified_in_insn_p): Delete.
2147
2148 2015-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2149
2150 PR rtl-optimization/68435
2151 * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
2152 for conflicts between a, b and the set destinations.
2153
2154 2015-11-25 Richard Biener <rguenther@suse.de>
2155
2156 PR tree-optimization/68517
2157 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
2158 Properly handle zero-sized types.
2159
2160 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
2161
2162 * ipa-inline-analysis.c: Include gimplify.h
2163 (set_cond_stmt_execution_predicate,
2164 set_switch_stmt_execution_predicate): Be sure to not leak locations
2165 to function body.
2166
2167 2015-11-25 Jakub Jelinek <jakub@redhat.com>
2168
2169 PR target/67089
2170 * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
2171 match_uaddsub_overflow): New functions.
2172 (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
2173
2174 2015-11-25 Richard Biener <rguenther@suse.de>
2175
2176 PR tree-optimization/68492
2177 * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
2178 op from scalars after operand swapping.
2179
2180 2015-11-25 Richard Biener <rguenther@suse.de>
2181
2182 PR tree-optimization/68502
2183 * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
2184 check that the step is a multiple of the type size.
2185
2186 2015-11-24 Michael Collison <michael.collison@linaro.org>
2187
2188 * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
2189 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
2190 * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
2191
2192 2015-11-24 Steve Ellcey <sellcey@imgtec.com>
2193
2194 * frame-header-opt.c (gate): Check for optimize > 0.
2195 (has_inlined_assembly): New function.
2196 (needs_frame_header_p): Remove is_leaf_function check,
2197 add argument type check.
2198 (callees_functions_use_frame_header): Add is_leaf_function
2199 and has_inlined_assembly calls..
2200 (set_callers_may_not_allocate_frame): New function.
2201 (frame_header_opt): Add is_leaf_function call, add
2202 set_callers_may_not_allocate_frame call.
2203 * config/mips/mips.c (mips_compute_frame_info): Add check
2204 to see if callee saved regs can be put in frame header.
2205 (mips_expand_prologue): Add check to see if step1 is zero,
2206 fix cfa restores when using frame header to store regs.
2207 (mips_can_use_return_insn): Check to see if registers are
2208 stored in frame header.
2209 * config/mips/mips.h (machine_function): Add
2210 callers_may_not_allocate_frame and
2211 use_frame_header_for_callee_saved_regs fields.
2212
2213 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
2214
2215 PR rtl-optimization/68520
2216 * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
2217 its bit was already set in BB_WITH.
2218
2219 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
2220
2221 * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
2222 double check that type is main variant.
2223 * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
2224 variant.
2225 (verify_type_variant): Verify that variants have no
2226 TYPE_ALIAS_SET_KNOWN_P set
2227 * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
2228 streaming so constant fields come first; stream TYPE_ALIAS_SET==0
2229 only for main variants; stream TYPE_ALIAS_SET as a bit.
2230 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
2231 accordingly.
2232
2233 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
2234
2235 * tree.c (make_vector_type): Properly compute canonical type of the
2236 main variant.
2237 (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
2238 a main variant.
2239
2240 2015-11-24 Nathan Sidwell <nathan@acm.org>
2241
2242 * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
2243 VOIDmode, don't alter incoming mode.
2244 (nvptx_split_reg_p): Delete.
2245 (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
2246 write_func_decl_from_insn, nvptx_output_call_insn): Adjust
2247 maybe_split_mode calls.
2248 (nvptx_print_operand): Use maybe_split_mode.
2249
2250 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
2251
2252 * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
2253 only for types where LTO sets them.
2254 * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
2255 (make_vector_type): Likewise.
2256 (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
2257 * tree.h (canonical_type_used_p): New inline.
2258 * alias.c (get_alias_set): Handle structural equality for all
2259 types that pass canonical_type_used_p.
2260 (record_component_aliases): Look through all types with
2261 record_component_aliases for possible pointers; sanity check that
2262 the alias sets match.
2263
2264 2015-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2265
2266 * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
2267
2268 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
2269
2270 * tree.c (free_node): New function.
2271 (type_hash_canon): Use it.
2272 * tree.h (free_node): Declare.
2273
2274 2015-11-24 David Edelsohn <dje.gcc@gmail.com>
2275 Michael Meissner <meissner@linux.vnet.ibm.com>
2276
2277 * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
2278 (Fv2): New mode attribute to be used when ISA 2.07 instructions
2279 are used on SF values, and ISA 2.06 instructions on DF values.
2280 (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
2281 (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
2282 (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
2283 (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
2284 (sqrt<mode>2): Use <Fv2> instead of <Fv>.
2285 (fre<Fs>): Use <Fv2> instead of <Fv>.
2286 (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
2287 (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
2288 (xsrdpi<mode>): Add support for the lround function.
2289 (lround<mode>di2): Likewise.
2290 (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
2291 (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
2292 (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
2293 (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
2294
2295 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
2296 Sebastian Pop <s.pop@samsung.com>
2297
2298 PR tree-optimization/67984
2299 * graphite-isl-ast-to-gimple.c (is_constant): New.
2300 (get_rename): Call is_constant.
2301 (get_new_name): Same.
2302
2303 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
2304 Sebastian Pop <s.pop@samsung.com>
2305
2306 * graphite-dependences.c: Only include graphite.h.
2307 * graphite-isl-ast-to-gimple.c: Same.
2308 * graphite-optimize-isl.c: Same.
2309 * graphite-poly.c: Same.
2310 * graphite-scop-detection.c: Same.
2311 * graphite-sese-to-poly.c: Same.
2312 * graphite.c: Same.
2313 * graphite-isl-ast-to-gimple.h: Move to graphite.h.
2314 * graphite-poly.h: Same.
2315 * graphite-scop-detection.h: Same.
2316 * graphite.h: New.
2317
2318 2015-11-24 Pierre-Marie de Rodat <derodat@adacore.com>
2319
2320 * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
2321 DW_TAG_namespace for IMPORTED_DECL declarations. Call
2322 dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
2323 function already takes care of checking what it can emit.
2324
2325 2015-11-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
2326
2327 * doc/invoke.texi (-fpic): Add the AArch64 limit.
2328 (-fPIC): Add AArch64.
2329
2330 2015-11-24 Tom de Vries <tom@codesourcery.com>
2331
2332 * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
2333 (pass_lim::execute): Allow to run outside pass_tree_loop.
2334
2335 2015-11-24 Wilco Dijkstra <wdijkstr@arm.com>
2336
2337 * config/aarch64/aarch64.md (add<mode>3):
2338 Block early expansion into 2 add instructions.
2339 (add<mode>3_pluslong): New pattern to combine complex
2340 immediates into 2 additions.
2341
2342 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
2343
2344 PR target/66217
2345 PR target/67677
2346 PR target/68332
2347 * config/rs6000/predicates.md (and_operand): Check that the operand
2348 is a const_int before calling rs6000_is_valid_and_mask.
2349
2350 2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2351
2352 * config/aarch64/aarch64.md (*condjump): Rename to...
2353 (condjump): ... This.
2354 (*compare_condjump<mode>): New define_insn_and_split.
2355 (*compare_cstore<mode>_insn): Likewise.
2356 (*cstore<mode>_insn): Rename to...
2357 (cstore<mode>_insn): ... This.
2358 * config/aarch64/iterators.md (CMP): Handle ne code.
2359 * config/aarch64/predicates.md (aarch64_imm24): New predicate.
2360
2361 2015-11-24 Mikhail Maltsev <maltsevm@gmail.com>
2362
2363 PR target/68497
2364 * config/i386/i386.c (output_387_binary_op): Fix assertion for
2365 -fno-checking case.
2366
2367 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2368
2369 * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
2370 (val_ssa_equiv_hash_traits::remove): Likewise.
2371 (pass_uncprop::execute): Adjust.
2372
2373 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2374
2375 * hash-map-traits.h (simple_hashmap_traits ::remove): call
2376 destructors on values that are being removed.
2377 * mem-stats.h (hash_map): Pass type of values to
2378 simple_hashmap_traits.
2379 * tree-sra.c (sra_deinitialize): Remove work around for hash
2380 maps not destructing values.
2381 * genmatch.c (sinfo_hashmap_traits): Adjust.
2382 * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
2383
2384 2015-11-24 Richard Biener <rguenther@suse.de>
2385 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2386
2387 PR middle-end/68375
2388 * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
2389 bogus assertion.
2390
2391 2015-11-24 Jakub Jelinek <jakub@redhat.com>
2392
2393 PR target/68483
2394 * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
2395 is valid vec_shr pattern, don't lower it even if can_vec_perm_p
2396 returns false.
2397 * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
2398 whenever first is nelt or above. Don't mask expected with
2399 2 * nelt - 1.
2400
2401 2015-11-24 Ilya Enkovich <enkovich.gnu@gmail.com>
2402
2403 PR c/68337
2404 * gimple-fold.c: Include ipa-chkp.h.
2405 (gimple_fold_builtin_memory_op): Don't fold call if we
2406 are going to instrument it and it may copy pointers.
2407
2408 2015-11-24 Bernd Schmidt <bschmidt@redhat.com>
2409 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2410
2411 PR rtl-optimization/68194
2412 PR rtl-optimization/68328
2413 PR rtl-optimization/68185
2414 * ree.c (combine_reaching_defs): Reject copy_needed case if
2415 copies_list is not empty.
2416
2417 2015-11-24 Richard Biener <rguenther@suse.de>
2418
2419 PR middle-end/68221
2420 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
2421 use mem_ref_offset.
2422
2423 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
2424
2425 PR rtl-optimization/68381
2426 * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
2427 is poisoned.
2428
2429 2015-11-23 Nick Clifton <nickc@redhat.com>
2430 Jeff Law <law@redhat.com>
2431
2432 * ree.c (add_removable_extension): Avoid mis-optimizing cases where
2433 the source/dest of the target extension require a different number of
2434 hard registers.
2435 (combine_set_extension): Remove #if 0 code.
2436
2437 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
2438 Sebastian Pop <s.pop@samsung.com>
2439
2440 PR tree-optimization/68314
2441 * graphite-optimize-isl.c (optimize_isl): Do not call
2442 isl_union_map_is_equal.
2443 * graphite-poly.c (new_scop): Remove original_schedule.
2444 (free_scop): Same.
2445 * graphite-poly.h (struct scop): Same.
2446 * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons):
2447 Remove.
2448 (build_pbb_scattering_polyhedrons): Add back.
2449 (build_scop_minimal_scattering): Remove.
2450 (build_scop_scattering): Add back.
2451 (build_scop_original_schedule): Remove.
2452 (build_poly_scop): Revert to only call build_scop_scattering.
2453
2454 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
2455 Sebastian Pop <s.pop@samsung.com>
2456
2457 PR tree-optimization/68493
2458 * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
2459 missing early return when codegen_error is set.
2460
2461 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
2462 Sebastian Pop <s.pop@samsung.com>
2463
2464 PR tree-optimization/68279
2465 * graphite-poly.c (new_scop): Remove poly_scop_p.
2466 * graphite-poly.h (struct scop): Same.
2467 (build_poly_scop): Declare.
2468 * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
2469 (cleanup_loop_iter_dom): New.
2470 (build_loop_iteration_domains): Early return when scev analysis fails.
2471 (create_pw_aff_from_tree): Same.
2472 (add_condition_to_pbb): Same.
2473 (add_conditions_to_domain): Same.
2474 (add_conditions_to_constraints): Same.
2475 (build_scop_iteration_domain): Same.
2476 (build_poly_scop): Same. Do not initialize poly_scop_p.
2477 * graphite-sese-to-poly.h: Remove.
2478 * graphite.c: Do not include graphite-sese-to-poly.h.
2479 (graphite_transform_loops): Stop before code generation when
2480 build_poly_scop fails.
2481 * sese.c (scalar_evolution_in_region): Add fixme note about scev
2482 analysis.
2483
2484 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
2485 Sebastian Pop <s.pop@samsung.com>
2486
2487 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
2488 Remove call to update_ssa.
2489 * sese.c (sese_insert_phis_for_liveouts): Same.
2490
2491 2015-11-23 Marek Polacek <polacek@redhat.com>
2492
2493 PR tree-optimization/68455
2494 * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
2495 extract_range_from_multiplicative_op_1 on symbolic ranges.
2496
2497 2015-11-23 Richard Henderson <rth@redhat.com>
2498
2499 * optabs.def (uaddv4_optab, usubv4_optab): New.
2500 * internal-fn.c (expand_addsub_overflow): Use them.
2501 * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
2502
2503 * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
2504 to reversed operands.
2505 * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
2506 (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
2507 (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
2508 (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
2509 (*add<SWI>3_cconly_overflow_2): New.
2510 (*add<SWI>3_cc_overflow_2): New.
2511 (*addsi3_zext_cc_overflow_2): New.
2512
2513 2015-11-23 Richard Biener <rguenther@suse.de>
2514
2515 PR tree-optimization/68465
2516 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
2517 Also record equalities from multiple predecessor blocks if
2518 only one non-backedge exists.
2519
2520 2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2521
2522 PR target/68363
2523 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
2524 that are not INSN_P.
2525
2526 2015-11-23 Bilyan Borisov <bilyan.borisov@arm.com>
2527
2528 * config/aarch64/aarch64-builtins.c
2529 (aarch64_gimple_fold_builtin): Fold FMULX.
2530
2531 2015-11-23 David Edelsohn <dje.gcc@gmail.com>
2532
2533 * system.h: Don't poison calloc and strdup if USES_ISL is defined.
2534 * graphite-dependences.c: Define USES_ISL. Include ISL header files
2535 after GCC header files and before graphite header files.
2536 * graphite-dependences.c: Same.
2537 * graphite-isl-ast-to-gimple.c: Same.
2538 * graphite-optimize-isl.c: Same.
2539 * graphite-poly.c: Same.
2540 * graphite-scop-detection.c: Same.
2541 * graphite-sese-to-poly.c: Same.
2542 * graphite.c: Same.
2543
2544 2015-11-23 Richard Biener <rguenth@gcc.gnu.org>
2545 Jiong Wang <jiong.wang@arm.com>
2546
2547 PR tree-optimization/68317
2548 PR tree-optimization/68326
2549 * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
2550 final min and max are not infinity.
2551
2552 2015-11-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2553 Richard Biener <rguenther@suse.de>
2554
2555 PR tree-optimization/68327
2556 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
2557 compute vectype for non-relevant mask producers.
2558 * tree-vect-stmts.c (vectorizable_comparison): Check stmt
2559 relevance earlier.
2560
2561 2015-11-23 Tom de Vries <tom@codesourcery.com>
2562
2563 PR tree-optimization/68460
2564 * tree-parloops.c (gather_scalar_reductions): Also call
2565 free_stmt_vec_info_vec if simple_loop_info == NULL.
2566
2567 2015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
2568
2569 * opts.c (finish_options): Allow -fsanitize-recover=address for
2570 userspace sanitization.
2571 * asan.c (asan_expand_check_ifn): Redefine recover_p.
2572 * doc/invoke.texi (fsanitize-recover): Update documentation.
2573
2574 2015-11-23 Tom de Vries <tom@codesourcery.com>
2575
2576 * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
2577
2578 2015-11-23 Richard Biener <rguenther@suse.de>
2579
2580 PR tree-optimization/68445
2581 * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
2582 two different strides.
2583
2584 2015-11-23 Robin Dapp <rdapp@linux.vnet.ibm.com>
2585
2586 * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
2587 * config/s390/s390.c (s390_check_symref_alignment): Use new
2588 symref flags, early abort on wrong alignment
2589 (s390_secondary_reload): Use new symref flags.
2590 (s390_encode_section_info): Likewise.
2591 * config/s390/predicates.md: Likewise.
2592
2593 2015-11-23 Kugan Vivekanandarajah <kuganv@linaro.org>
2594
2595 PR target/68390
2596 * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
2597 for indirect function call.
2598
2599 2015-11-22 Bilyan Borisov <bilyan.borisov@arm.com>
2600
2601 * config/aarch64/aarch64-simd.md
2602 (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
2603 (*aarch64_mulx_elt<mode>, VDQF): Likewise.
2604 (*aarch64_mulx_elt_to_64v2df): Likewise.
2605 (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
2606 * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
2607 (vmulx_lane_f64): Likewise.
2608 (vmulxq_lane_f32): Refactored & moved.
2609 (vmulxq_lane_f64): Likewise.
2610 (vmulx_laneq_f32): New.
2611 (vmulx_laneq_f64): Likewise.
2612 (vmulxq_laneq_f32): Likewise.
2613 (vmulxq_laneq_f64): Likewise.
2614 (vmulxs_lane_f32): Likewise.
2615 (vmulxs_laneq_f32): Likewise.
2616 (vmulxd_lane_f64): Likewise.
2617 (vmulxd_laneq_f64): Likewise.
2618
2619 2015-11-21 Jan Hubicka <hubicka@ucw.cz>
2620
2621 * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
2622 In LTO we do not compute TYPE_CANONICAL of pointers.
2623 (gimple_canonical_types_compatible_p): Improve coments; sanity check
2624 that pointers do not have canonical type that would make us believe
2625 they are different.
2626 * alias.c (get_alias_set): Do structural type equality on pointers;
2627 enable pointer path for LTO; also glob pointer to vector with pointer
2628 to vector element; glob pointers and references for LTO; do more strict
2629 sanity checking about build_pointer_type returning the canonical type
2630 which is also the main variant.
2631 (record_component_aliases): When component type is pointer and we
2632 do LTO; record void_type_node alias set.
2633
2634 2015-11-21 Nathan Sidwell <nathan@acm.org>
2635
2636 * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
2637
2638 * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
2639 leading blank line.
2640 (write_func_decl_from_insn): Likewise.
2641 (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
2642 (nvptx_file_end): Likewise.
2643 (nvptx_function_end): Undent output.
2644 (nvptx_expand_call): Fix formatting.
2645 (nvptx_output_call_insn): Indent output.
2646 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
2647 ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
2648
2649 2015-11-21 Jakub Jelinek <jakub@redhat.com>
2650
2651 PR debug/66432
2652 * tree-inline.c (copy_debug_stmt): If
2653 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
2654 in decl_debug_args, don't call remap_gimple_op_r on it.
2655
2656 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
2657
2658 * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
2659 do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
2660 Check that all record types are complete.
2661 * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
2662 compare alias sets for types w/o alias sets.
2663
2664 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
2665
2666 * config/sparc/sparc.md (umulxhi_vis): Move around.
2667 (*umulxhi_sp64): Likewise.
2668 (umulxhi_v8plus): Likewise.
2669 (xmulx_vis): Likewise.
2670 (*xmulx_sp64): Likewise.
2671 (xmulx_v8plus): Likewise.
2672 (xmulxhi_vis): Likewise.
2673 (*xmulxhi_sp64): Likewise.
2674 (xmulxhi_v8plus): Likewise.
2675
2676 2015-11-20 David Malcolm <dmalcolm@redhat.com>
2677
2678 PR 62314
2679 * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
2680 (class layout): Update comment
2681 (layout::print_any_fixits): New method.
2682 (layout::move_to_column): New method.
2683 (diagnostic_show_locus): Add call to layout.print_any_fixits.
2684
2685 2015-11-20 Jakub Jelinek <jakub@redhat.com>
2686
2687 PR middle-end/68221
2688 * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
2689 has non-zero bias, subtract it in integer type instead of
2690 pointer plus of negated bias.
2691
2692 PR middle-end/68339
2693 * omp-low.c (expand_simd_clones): Call node->get_body () before
2694 allocating stuff in GC.
2695
2696 2015-11-20 Jim Wilson <jim.wilson@linaro.org>
2697
2698 * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
2699
2700 2015-11-20 Evandro Menezes <e.menezes@samsung.com>
2701
2702 * config/aarch64/aarch64.md (predicated): Copy attribute from
2703 "arm.md".
2704 * config/arm/arm.md (predicated): Added description.
2705
2706 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2707
2708 * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
2709 for unaligned_access.
2710 * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
2711 from matching condition.
2712 (unaligned_loadhis): Likewise.
2713 (unaligned_loadhiu): Likewise.
2714 (unaligned_storesi): Likewise.
2715 (unaligned_storehi): Likewise.
2716
2717 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2718
2719 PR target/68149
2720 * config/arm/arm.md (unaligned_loaddi): Delete.
2721 (unaligned_storedi): Likewise.
2722 * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
2723 unaligned DImode memory ops. Instead perform two back-to-back
2724 unaligned SImode ops.
2725
2726 2015-11-20 Nathan Sidwell <nathan@codesourcery.com>
2727 James Norris <jnorris@codesourcery.com>
2728
2729 * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
2730 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
2731
2732 2015-11-20 Alan Hayward <alan.hayward@arm.com>
2733
2734 PR tree-optimization/68413
2735 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
2736 evolution base
2737 (vectorizable_reduction): Use cached base
2738
2739 2015-11-20 Tom de Vries <tom@codesourcery.com>
2740
2741 * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
2742 dump-file string.
2743 (try_create_reduction_list): Same. Fix typo in dump-file string.
2744
2745 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
2746
2747 * doc/md.texi (Standard Names): Move entry for addptr3 around,
2748 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
2749 glitch in entries for cbranch4 and jump.
2750
2751 2015-11-20 Tom de Vries <tom@codesourcery.com>
2752
2753 PR tree-optimization/68373
2754 * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
2755 of ...
2756 (scev_const_prop): ... here.
2757 * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
2758 * tree-parloops.c (try_create_reduction_list): Call
2759 final_value_replacement_loop.
2760
2761 2015-11-20 Bin Cheng <bin.cheng@arm.com>
2762
2763 PR tree-optimization/52272
2764 * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
2765 (struct iv_common_cand_hasher): New struct.
2766 (iv_common_cand_hasher::hash): New function.
2767 (iv_common_cand_hasher::equal): New function.
2768 (struct ivopts_data): New fields, iv_common_cand_tab and
2769 iv_common_cands.
2770 (tree_ssa_iv_optimize_init): Initialize above fields.
2771 (record_common_cand, common_cand_cmp): New functions.
2772 (add_iv_candidate_derived_from_uses): New function.
2773 (add_iv_candidate_for_use): Record iv_common_cands derived from
2774 iv use in hash table, instead of adding candidates directly.
2775 (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
2776 (record_important_candidates): Add important candidates to iv uses'
2777 related_cands. Always keep related_cands for future use.
2778 (try_add_cand_for): Use iv uses' related_cands.
2779 (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
2780 in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
2781
2782 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2783
2784 * config/s390/s390.md ("bswaphi2"): New pattern.
2785
2786 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
2787
2788 * config/s390/s390.md (GPR1_REGNUM): New constant.
2789 ("*trunc<BFP:mode><DFP_ALL:mode>2")
2790 ("*trunc<DFP_ALL:mode><BFP:mode>2")
2791 ("trunc<BFP:mode><DFP_ALL:mode>2")
2792 ("trunc<DFP_ALL:mode><BFP:mode>2")
2793 ("*extend<BFP:mode><DFP_ALL:mode>2")
2794 ("*extend<DFP_ALL:mode><BFP:mode>2")
2795 ("extend<BFP:mode><DFP_ALL:mode>2")
2796 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
2797
2798 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
2799 Sebastian Pop <s.pop@samsung.com>
2800
2801 PR tree-optimization/68428
2802 * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
2803 over basic blocks outside the scop.
2804
2805 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
2806 Sebastian Pop <s.pop@samsung.com>
2807
2808 PR tree-optimization/68341
2809 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
2810 gcc_unreachable and safely fail codegen.
2811 (copy_loop_close_phi_args): Do not insert merge phis in a basic
2812 block with loop phi nodes.
2813 (edge_for_new_close_phis): New.
2814 (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
2815
2816 2015-11-19 Nathan Sidwell <nathan@acm.org>
2817
2818 * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
2819 * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
2820 (nvptx_declare_objec_name): Likewise.
2821
2822 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
2823
2824 * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
2825 (get_false_edge_from_guard_bb): Move...
2826 * sese.c (get_false_edge_from_guard_bb)
2827 (get_true_edge_from_guard_bb): ... here.
2828
2829 2015-11-19 David Edelsohn <dje.gcc@gmail.com>
2830
2831 Revert
2832 2015-11-18 Alan Modra <amodra@gmail.com>
2833
2834 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
2835 type-limits warning.
2836
2837
2838 2015-11-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2839
2840 * tree.h (desired_pro_or_demotion_p): New function.
2841 * tree-vrp.c (simplify_cond_using_ranges): Call it.
2842
2843 2015-11-19 Michael Matz <matz@suse.de>
2844
2845 * fwprop.c (update_uses): Use flag_checking instead of
2846 gcc_checking_assert.
2847
2848 2015-11-19 David Malcolm <dmalcolm@redhat.com>
2849
2850 * doc/gty.texi (Support for inheritance): Fix missing
2851 parentheses in example.
2852
2853 2015-11-19 Marek Polacek <polacek@redhat.com>
2854
2855 PR tree-optimization/68431
2856 * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
2857
2858 2015-11-19 Nathan Sidwell <nathan@acm.org>
2859
2860 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
2861 atomic_exchange<mode>): Input values can be immediates.
2862
2863 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
2864
2865 PR lto/61313
2866 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
2867 by the user.
2868 * configure: Regenerate.
2869
2870 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
2871
2872 PR target/68408
2873 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
2874 (DTORS_SECTION_ASM_OP): Likewise.
2875
2876 2015-11-19 Jakub Jelinek <jakub@redhat.com>
2877
2878 PR rtl-optimization/68376
2879 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
2880 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
2881
2882 2015-11-19 Richard Biener <rguenther@suse.de>
2883
2884 PR middle-end/68117
2885 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
2886 redirect_edge_var_map_destroy.
2887
2888 2015-11-19 Jakub Jelinek <jakub@redhat.com>
2889
2890 PR target/67770
2891 * config/i386/i386.md (simple_return): Disable if
2892 ix86_static_chain_on_stack is true.
2893
2894 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
2895
2896 PR bootstrap/68393
2897 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
2898 destinations.
2899
2900 2015-11-18 Jeff Law <law@redhat.com>
2901
2902 PR tree-optimization/68198
2903 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
2904 between threading a multi-way branch and a thread path that contains
2905 a multi-way branch. Disallow the case where a path contains a
2906 multi-way branch and does not thread a multi-way branch.
2907 (thread_through_all_blocks): Update comment.
2908
2909 2015-11-18 Joseph Myers <joseph@codesourcery.com>
2910
2911 PR c/65083
2912 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
2913 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
2914 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
2915 functions before defining as macros.
2916
2917 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
2918
2919 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
2920 (nvptx_record_offload_symbol): Remove code compensating for lack
2921 of default dimension handling.
2922 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
2923
2924 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
2925
2926 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
2927 type to bool for early exit.
2928 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
2929 in case of error.
2930 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
2931 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
2932 predecessor dominates the other.
2933 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
2934 element is not found it returns -1.
2935 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
2936 out early when codegen fails.
2937 (graphite_regenerate_ast_isl): Remove codegen region when pending
2938 phis could not be generated.
2939
2940 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
2941
2942 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
2943 semicolon.
2944 (class translate_isl_ast_to_gimple): Indentation.
2945 (translate_pending_phi_nodes): Comment.
2946 (add_parameters_to_ivs_params): Moved from sese.c inside class
2947 translate_isl_ast_to_gimple.
2948 (get_max_schedule_dimensions): Same.
2949 (generate_isl_context): Same.
2950 (extend_schedule): Same.
2951 (generate_isl_schedule): Same.
2952 (set_options): Same.
2953 (scop_to_isl_ast): Same.
2954 (is_valid_rename): Same.
2955 (get_rename): Same.
2956 (get_rename_from_scev): Same.
2957 (get_def_bb_for_const): Same.
2958 (get_new_name): Same.
2959 (collect_all_ssa_names): Same.
2960 (copy_loop_phi_args): Same.
2961 (copy_loop_phi_nodes): Same.
2962 (copy_loop_close_phi_args): Same.
2963 (copy_loop_close_phi_nodes): Same.
2964 (copy_cond_phi_args): Same.
2965 (copy_cond_phi_nodes): Same.
2966 (graphite_copy_stmts_from_block): Same.
2967 (copy_bb_and_scalar_dependences): Same.
2968 (add_phi_arg_for_new_expr): Same.
2969 (rename_uses): Same.
2970 (set_rename): Same.
2971 (set_rename_for_each_def): Same.
2972 (gsi_insert_earliest): Same.
2973 (rename_all_uses): Same.
2974 (codegen_error_p): Same.
2975 (print_isl_ast_node): Same.
2976 (translate_isl_ast_for_loop): Call function codegen_error_p.
2977 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
2978 (translate_isl_ast_node_user): Make nb_loops const and release
2979 iv_map before exit.
2980 (get_true_edge_from_guard_bb): Move all free-functions early.
2981 (get_false_edge_from_guard_bb): Same.
2982 (bb_contains_loop_close_phi_nodes): Same.
2983 (bb_contains_loop_phi_nodes): Same.
2984 (is_loop_closed_ssa_use): Same.
2985 (number_of_phi_nodes): Same.
2986 (phi_uses_name): Same.
2987 (later_of_the_two): Same.
2988 (substitute_ssa_name):
2989 (get_edges): Same.
2990 (get_loc): Same.
2991 (get_loop_init_value): Same.
2992 (find_init_value): Same.
2993 (find_init_value_close_phi): Same.
2994 (ast_build_before_for): Same.
2995 (graphite_regenerate_ast_isl): Formatting changes.
2996 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
2997 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
2998 (set_rename): Same.
2999 (gsi_insert_earliest): Same.
3000 (collect_all_ssa_names): Same.
3001 (rename_all_uses): Same.
3002 (rename_uses): Same.
3003 (get_def_bb_for_const): Same.
3004 (copy_loop_phi_nodes): Same.
3005 (copy_loop_close_phi_args): Same.
3006 (copy_loop_close_phi_nodes): Same.
3007 (copy_cond_phi_args): Same.
3008 (copy_cond_phi_nodes): Same.
3009 (set_rename_for_each_def): Same.
3010 (graphite_copy_stmts_from_block): Same.
3011 (copy_bb_and_scalar_dependences): Same.
3012 (if_region_set_false_region): Same.
3013 (scev_analyzable_p): Same.
3014 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
3015
3016 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
3017
3018 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
3019 commit from r125920 for FreeBSD.
3020
3021 2015-11-18 Jason Merrill <jason@redhat.com>
3022
3023 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
3024 to be vecs of vecs.
3025 (add_finalizer): Split out from ggc_internal_alloc.
3026 (ggc_handle_finalizers): Run finalizers for the current depth.
3027 (init_ggc, ggc_pch_read): Reserve space for finalizers.
3028
3029 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
3030
3031 PR target/68410
3032 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
3033 from || expression.
3034
3035 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3036
3037 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
3038 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
3039 and atmega328pb.
3040 * doc/avr-mmcu.texi: Regenerate.
3041
3042 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
3043
3044 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
3045 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
3046 (struct bb_sese): New struct.
3047 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
3048 (BB_GET_SESE, BB_SET_SESE): Define.
3049 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
3050 (nvptx_find_sese): New.
3051 (nvptx_neuter_pars): Find SESE regions when optimizing.
3052
3053 2015-11-18 Alan Modra <amodra@gmail.com>
3054
3055 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
3056 type-limits warning.
3057
3058 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
3059
3060 PR bootstrap/68406
3061 * hash-set.h (hash_set::traverse): Expand Key typedef.
3062
3063 2015-11-18 Martin Liska <mliska@suse.cz>
3064
3065 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
3066 options struct.
3067
3068 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
3069
3070 * config/nvptx/nvptx.c (global_lock_var): New.
3071 (nvptx_global_lock_addr): New.
3072 (nvptx_lockless_update): Recomment and adjust for clarity.
3073 (nvptx_lockfull_update): New.
3074 (nvptx_reduction_update): New.
3075 (nvptx_goacc_reduction_fini): Call it.
3076
3077 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
3078
3079 * regrename.h (struct du_head): Add target_data_1 and target_data_2
3080 fields.
3081 * regrename.c (create_new_chain): Clear entire struct after allocating.
3082
3083 * config/i386/i386.opt (mmitigate-rop): New option.
3084 * doc/invoke.texi (mmitigate-rop): Document.
3085 * config/i386/i386.c: Include "regrename.h".
3086 (ix86_rop_should_change_byte_p, reg_encoded_number,
3087 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
3088 static functions.
3089 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
3090 * config/i386/i386.md (attr "modrm_class"): New.
3091 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
3092 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
3093 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
3094
3095 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
3096
3097 PR target/68405
3098 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
3099
3100 2015-11-18 Jakub Jelinek <jakub@redhat.com>
3101
3102 PR tree-optimization/68157
3103 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
3104 pow_stmt or mul_stmt from stmt's uid.
3105 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
3106
3107 2015-11-18 Martin Liska <mliska@suse.cz>
3108
3109 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
3110
3111 2015-11-18 Martin Liska <mliska@suse.cz>
3112
3113 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
3114 Fix GNU coding style.
3115 (find_def_preds): Use auto_vec.
3116 (destroy_predicate_vecs): Change signature of the function.
3117 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
3118 new signature.
3119 (simplify_preds_4): Use destroy_predicate_vecs instread of
3120 just releasing preds vector.
3121 (normalize_preds): Likewise.
3122 (is_use_properly_guarded): Use new signature of
3123 destroy_predicate_vecs.
3124 (find_uninit_use): Likewise.
3125
3126 2015-11-18 Richard Biener <rguenther@suse.de>
3127
3128 PR tree-optimization/67790
3129 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
3130 IL rewrite for MINUS_EXPR reductions, rename back to ...
3131 (vect_is_simple_reduction): ... this, removing the wrapper.
3132 (vect_force_simple_reduction): Adjust.
3133 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
3134 reductions and make use if reduc_index in all places. For
3135 the final reduction of MINUS_EXPR use PLUS_EXPR.
3136
3137 2015-11-18 Alan Modra <amodra@gmail.com>
3138
3139 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
3140 to ld.
3141 * configure: Regenerate.
3142
3143 2015-11-17 Tom de Vries <tom@codesourcery.com>
3144
3145 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
3146
3147 2015-11-17 Tom de Vries <tom@codesourcery.com>
3148
3149 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
3150 uses of ssa_name with constant.
3151
3152 2015-11-17 Tom de Vries <tom@codesourcery.com>
3153
3154 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
3155 something changed.
3156
3157 2015-11-17 Tom de Vries <tom@codesourcery.com>
3158
3159 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
3160 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
3161 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
3162
3163 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
3164
3165 * regrename.c (regrename_find_superclass): New function, code moved
3166 from ...
3167 (rename_chains): ... here. Call it.
3168 * regrename.h (regrename_find_superclass): Declare.
3169
3170 * regrename.c (record_out_operands): Terminate earlyclobbered
3171 operands here.
3172
3173 PR target/66785
3174 * regrename.c (record_operand_use): Keep track of failed operands
3175 and stop appending if we see any.
3176 * regrename.h (struct operand_rr_info): Add a failed field and shrink
3177 n_chains to short.
3178
3179 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
3180
3181 PR 48568
3182 * doc/extend.texi (Common Function Attributes) [visibility]:
3183 Add cross-references to matching variable and type attributes.
3184 (Common Variable Attributes) [visibility]: Add missing entry.
3185
3186 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3187
3188 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
3189 entries that map directly to optabs.
3190
3191 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3192
3193 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
3194 entries that map directly to optabs.
3195
3196 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3197
3198 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
3199 * internal-fn.c (direct_internal_fn_array): Update accordingly.
3200 * tree-vectorizer.h (vectorizable_function): Delete.
3201 * tree-vect-stmts.c: Include internal-fn.h.
3202 (vectorizable_internal_function): New function.
3203 (vectorizable_function): Inline into...
3204 (vectorizable_call): ...here. Explicitly reject calls that read
3205 from or write to memory. Try using an internal function before
3206 falling back on the old vectorizable_function behavior.
3207
3208 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3209
3210 * target.def (builtin_vectorized_function): Take a combined_fn (in
3211 the form of an unsigned int) rather than a function decl.
3212 (builtin_md_vectorized_function): New.
3213 * targhooks.h (default_builtin_vectorized_function): Replace the
3214 fndecl argument with an unsigned int.
3215 (default_builtin_md_vectorized_function): Declare.
3216 * targhooks.c (default_builtin_vectorized_function): Replace the
3217 fndecl argument with an unsigned int.
3218 (default_builtin_md_vectorized_function): New function.
3219 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
3220 New hook.
3221 * doc/tm.texi: Regenerate.
3222 * tree-vect-stmts.c (vectorizable_function): Update call to
3223 builtin_vectorized_function, also passing internal functions.
3224 Call builtin_md_vectorized_function for target-specific builtins.
3225 * config/aarch64/aarch64-protos.h
3226 (aarch64_builtin_vectorized_function): Replace fndecl argument
3227 with an unsigned int.
3228 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
3229 (aarch64_builtin_vectorized_function): Update after above changes.
3230 Use CASE_CFN_*.
3231 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
3232 fndecl argument with an unsigned int.
3233 * config/arm/arm-builtins.c: Include case-cfn-macros.h
3234 (arm_builtin_vectorized_function): Update after above changes.
3235 Use CASE_CFN_*.
3236 * config/i386/i386.c: Include case-cfn-macros.h
3237 (ix86_veclib_handler): Take a combined_fn rather than a
3238 built_in_function.
3239 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
3240 mathfn_built_in rather than calling builtin_decl_implicit directly.
3241 (ix86_builtin_vectorized_function) Update after above changes.
3242 Use CASE_CFN_*.
3243 * config/rs6000/rs6000.c: Include case-cfn-macros.h
3244 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
3245 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
3246 than calling builtin_decl_implicit directly.
3247 (rs6000_builtin_vectorized_function): Update after above changes.
3248 Use CASE_CFN_*. Move BUILT_IN_MD to...
3249 (rs6000_builtin_md_vectorized_function): ...this new function.
3250 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
3251
3252 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3253
3254 * tree-vect-patterns.c: Include internal-fn.h.
3255 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
3256
3257 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3258
3259 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
3260 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
3261
3262 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3263
3264 * builtins.c (expand_errno_check, expand_builtin_mathfn)
3265 (expand_builtin_mathfn_2): Delete.
3266 (expand_builtin): Remove handling of functions with
3267 internal function equivalents.
3268 * internal-fn.def (SET_EDOM): New internal function.
3269 * internal-fn.h (set_edom_supported_p): Declare.
3270 * internal-fn.c (expand_SET_EDOM): New function.
3271 (set_edom_supported_p): Likewise.
3272 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
3273 Rewrite comment at head of file.
3274 (is_call_dce_candidate): Rename to...
3275 (can_test_argument_range): ...this. Don't check gimple_call_lhs
3276 or gimple_call_builtin_p here.
3277 (edom_only_function): New function.
3278 (shrink_wrap_one_built_in_call_with_conds): New function, split out
3279 from...
3280 (shrink_wrap_one_built_in_call): ...here.
3281 (can_use_internal_fn, use_internal_fn): New functions.
3282 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
3283 for calls that have an lhs.
3284 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
3285 (pass_call_cdce::execute): Skip blocks that are optimized for size.
3286 Check gimple_call_builtin_p here. Use can_use_internal_fn for
3287 calls with an lhs.
3288 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
3289 at -O and above.
3290
3291 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3292
3293 * builtins.h (called_as_built_in): Declare.
3294 * builtins.c (called_as_built_in): Make external.
3295 * internal-fn.h (expand_internal_call): Define a variant that
3296 specifies the internal function explicitly.
3297 * internal-fn.c (expand_load_lanes_optab_fn)
3298 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
3299 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
3300 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
3301 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
3302 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
3303 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
3304 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
3305 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
3306 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
3307 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
3308 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
3309 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
3310 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
3311 argument.
3312 (internal_fn_expanders): Update prototype.
3313 (expand_internal_call): Define a variant that specifies the
3314 internal function explicitly. Use it to implement the previous
3315 interface.
3316 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
3317 functions as calls to internal functions.
3318
3319 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3320
3321 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
3322 (generated_files): Likewise.
3323 (s-cfn-operators, cfn-operators.pd): New rules.
3324 (s-match): Depend on cfn-operators.pd.
3325 * gencfn-macros.c: Expand comment to describe -o behavior.
3326 (print_define_operator_list): New function.
3327 (main): Accept -o. Call print_define_operator_list.
3328 * genmatch.c (main): Add the current directory to the include path.
3329 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
3330 instead.
3331
3332 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3333
3334 * doc/match-and-simplify.texi: Document the "null" identifier.
3335 * genmatch.c (id_base::NULL_ID): New kind.
3336 (null_id): New variable.
3337 (get_operator): Add a parameter that says whether null identifiers
3338 are allowed.
3339 (contains_id): New function.
3340 (lower_for): Skip substitutions that would have a null_id in
3341 either the match or the result.
3342 (parser::parse_for): Allow the null identifier to be used.
3343 (parser::parse_operator_list): Likewise.
3344 (main): Initialize null_id.
3345
3346 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3347
3348 * match.pd: Use HYPOT and COS rather than hypot and cos.
3349 Use CASE_CFN_* macros. Guard log/exp folds with
3350 SCALAR_FLOAT_TYPE_P.
3351 * genmatch.c (internal_fn): New enum.
3352 (fn_id::fn): Change to an unsigned int.
3353 (fn_id::fn_id): Accept internal_fn too.
3354 (add_builtin): Rename to...
3355 (add_function): ...this and turn into a template.
3356 (get_operator): Only try one variation if the original name fails.
3357 Only add _EXPR if the original name was all lower case.
3358 Try converting internal and built-in function names to their
3359 CFN equivalents.
3360 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
3361 (dt_simplify::gen_1): Likewise.
3362 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
3363 and get_call_combined_fn for generic.
3364 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
3365 (decision_tree::gen): Likewise.
3366 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
3367 Use add_function rather than add_builtin. Register internal
3368 functions too.
3369 * generic-match-head.c: Include case-cfn-macros.h.
3370 * gimple-fold.c (replace_stmt_with_simplification): Use
3371 gimple_call_combined_fn to test whether we can keep an
3372 existing call.
3373 * gimple-match.h (code_helper): Replace built_in_function
3374 with combined_fn.
3375 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
3376 and case-fn-macros.h.
3377 (gimple_resimplify1): Use fold_const_call.
3378 (gimple_resimplify2, gimple_resimplify3): Likewise.
3379 (build_call_internal, build_call): New functions.
3380 (maybe_push_res_to_seq): Use them.
3381 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
3382 rather than a built-in function.
3383 * tree.h (build_call_expr_internal_loc): Declare.
3384 (maybe_build_call_expr_loc): Likewise.
3385 * tree.c (build_call_expr_internal_loc_array): New function.
3386 (maybe_build_call_expr_loc): Likewise.
3387
3388 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3389
3390 * builtins.h (mathfn_built_in): Add a variant that takes
3391 a combined_fn.
3392 * builtins.c: Include case-cfn-macros.h.
3393 (CASE_MATHFN): Use CASE_CFN_*.
3394 (CASE_MATHFN_REENT): Use CFN_ codes.
3395 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
3396 argument with a combined_fn.
3397 (mathfn_built_in): Add a variant that takes a combined_fn.
3398 (expand_builtin_int_roundingfn_2): Update callers accordingly.
3399 (fold_builtin_sincos, fold_builtin_classify): Likewise.
3400
3401 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3402
3403 * tree-vect-patterns.c: Include case-cfn-macros.h.
3404 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
3405
3406 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3407
3408 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
3409 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
3410 (pass_cse_sincos::execute): Likewise.
3411
3412 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3413
3414 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
3415 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
3416 (decrement_power, acceptable_pow_call): Likewise.
3417 (attempt_builtin_copysign): Likewise.
3418
3419 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3420
3421 * tree-vrp.c: Include case-cfn-macros.h.
3422 (extract_range_basic): Switch on combined_fn rather than handling
3423 built-in functions and internal functions separately.
3424
3425 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3426
3427 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
3428 than a built_in_function.
3429 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
3430 a function decl.
3431 (integer_valued_real_call_p): Likewise.
3432 * fold-const.c: Include case-cfn-macros.h
3433 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
3434 (negate_expr_p): Update accordingly.
3435 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
3436 a function decl.
3437 (integer_valued_real_call_p): Likewise.
3438 (tree_invalid_nonnegative_warnv_p): Update accordingly.
3439 (integer_valued_real_p): Likewise.
3440 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
3441 to tree_call_nonnegative_warnv_p.
3442 (gimple_call_integer_valued_real_p): Likewise
3443 integer_valued_real_call_p.
3444 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
3445 (backprop::process_builtin_call_use): Extend to combined_fn.
3446 (strip_sign_op_1): Likewise.
3447 (backprop::process_use): Don't check for built-in calls here.
3448 (backprop::execute): Likewise.
3449 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
3450
3451 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3452
3453 * fold-const-call.h (fold_const_call): Replace built_in_function
3454 arguments with combined_fn arguments.
3455 * fold-const-call.c: Include case-cfn-macros.h.
3456 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
3457 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
3458 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
3459 built_in_function arguments with combined_fn arguments.
3460 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
3461 (fold_builtin_3): Update calls to fold_const_call.
3462
3463 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3464
3465 * Makefile.in (HASH_TABLE_H): Add GGC_H.
3466 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
3467 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
3468 (build/gencfn-macros$(build_exeext): New rules.
3469 (genprogerr): Add cfn-macros.
3470 * hash-set.h (hash_set): Use the traits value_type as the key.
3471 * gencfn-macros.c: New file.
3472
3473 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3474
3475 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
3476 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
3477 * builtins.c (associated_internal_fn): Handle them.
3478
3479 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3480
3481 * builtins.h (associated_internal_fn): Declare.
3482 (replacement_internal_fn): Likewise.
3483 * builtins.c: Include internal-fn.h
3484 (associated_internal_fn, replacement_internal_fn): New functions.
3485 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
3486 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
3487 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
3488 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
3489 (LDEXP): New functions.
3490 * internal-fn.c: Include recog.h.
3491 (unary_direct, binary_direct): New macros.
3492 (expand_direct_optab_fn): New function.
3493 (expand_unary_optab_fn): New macro.
3494 (expand_binary_optab_fn): Likewise.
3495 (direct_unary_optab_supported_p): Likewise.
3496 (direct_binary_optab_supported_p): Likewise.
3497
3498 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3499
3500 * coretypes.h (tree_pair): New type.
3501 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
3502 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
3503 * internal-fn.h (direct_internal_fn_info): New structure.
3504 (direct_internal_fn_array): Declare.
3505 (direct_internal_fn_p, direct_internal_fn): New functions.
3506 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
3507 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
3508 (mask_store_direct, store_lanes_direct): New macros.
3509 (direct_internal_fn_array) New array.
3510 (get_multi_vector_move): Return the optab handler without asserting
3511 that it is available.
3512 (expand_LOAD_LANES): Rename to...
3513 (expand_load_lanes_optab_fn): ...this and add an optab argument.
3514 (expand_STORE_LANES): Rename to...
3515 (expand_store_lanes_optab_fn): ...this and add an optab argument.
3516 (expand_MASK_LOAD): Rename to...
3517 (expand_mask_load_optab_fn): ...this and add an optab argument.
3518 (expand_MASK_STORE): Rename to...
3519 (expand_mask_store_optab_fn): ...this and add an optab argument.
3520 (direct_internal_fn_types, direct_optab_supported_p)
3521 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
3522 (direct_internal_fn_supported_p): New functions.
3523 (direct_mask_load_optab_supported_p): New macro.
3524 (direct_load_lanes_optab_supported_p): Likewise.
3525 (direct_mask_store_optab_supported_p): Likewise.
3526 (direct_store_lanes_optab_supported_p): Likewise.
3527
3528 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3529
3530 * tree-core.h (internal_fn): Move immediately after the definition
3531 of built_in_function.
3532 (combined_fn): New enum.
3533 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
3534 (internal_fn_p, as_internal_fn): New functions.
3535 (get_call_combined_fn, combined_fn_name): Declare.
3536 * tree.c (get_call_combined_fn): New function.
3537 (combined_fn_name): Likewise.
3538 * gimple.h (gimple_call_combined_fn): Declare.
3539 * gimple.c (gimple_call_combined_fn): New function.
3540
3541 2015-11-17 Martin Sebor <msebor@redhat.com>
3542
3543 PR c++/68308
3544 * cp/init.c (build_new_1): Check for expression constness
3545 the right way.
3546
3547 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
3548
3549 PR target/53587
3550 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
3551 option list.
3552 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
3553 discussion of the Microsoft structure layout details here from
3554 its former home in extend.texi.
3555 * doc/extend.texi (x86 Variable Attributes): Replace detailed
3556 discussion with pointer to its new location. Add cross-reference
3557 to corresponding type attributes.
3558 (x86 Type Attributes): Add cross-references to command-line options
3559 and variable attributes.
3560
3561 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
3562
3563 PR middle-end/68134
3564 * targhooks.c (default_get_mask_mode): Filter out
3565 scalar modes returned by mode_for_vector.
3566
3567 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3568
3569 PR target/68143
3570 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
3571 offset from dstbase and use it appropriately in
3572 adjust_automodify_address.
3573 (arm_block_set_aligned_vect): Likewise.
3574
3575 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
3576
3577 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
3578 (MULTILIB_DIRNAMES): Adjust accordingly.
3579
3580 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
3581
3582 * config/aarch64/aarch64-cores.def (cortex-a35): New.
3583 * config/aarch64/aarch64.c (cortexa35_tunings): New.
3584 * config/aarch64/aarch64-tune.md: Regenerate.
3585 * doc/invoke.texi (-mcpu): Add Cortex-A35
3586
3587 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
3588
3589 PR target/68263
3590 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
3591 to 32 for IAMCU.
3592 * config/i386/sse.md (*mov<mode>_internal): Always enable
3593 AVX and SSE unaligned moves for IAMCU.
3594
3595 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
3596
3597 * tree-if-conv.c: Include varasm.h
3598 (ref_DR_map): Define.
3599 (baseref_DR_map): Like wise
3600 (struct ifc_dr): Add new tree predicate field.
3601 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
3602 (memrefs_read_or_written_unconditionally): Remove.
3603 (write_memrefs_written_at_least_once): Remove.
3604 (ifcvt_memrefs_wont_trap): Use hash maps to query
3605 unconditional read/written information.
3606 (if_convertible_loop_p_1): Initialize hash maps and predicates
3607 before hashing data references and delete hashmaps at the end.
3608
3609 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
3610
3611 PR 56036
3612 * doc/invoke.texi (Optimize Options): Move @end table to the right
3613 place.
3614
3615 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
3616
3617 PR 65129
3618 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
3619 return value.
3620
3621 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
3622
3623 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
3624 128-bit types, just types that fit in a single vector.
3625 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
3626
3627 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
3628
3629 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
3630 in the user documentation.
3631 (define_peephole2, define_split): Similarly.
3632
3633 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
3634
3635 * lto-streamer-out.c (write_global_references): Adjust integer type.
3636 (lto_output_decl_state_refs): Likewise.
3637
3638 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
3639
3640 * config/arm/arm-cores.def (cortex-a35): New.
3641 * config/arm/arm.c (arm_cortex_a35_tune): New.
3642 * config/arm/arm-tables.opt: Regenerate.
3643 * config/arm/arm-tune.md: Regenerate.
3644 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
3645 * config/arm/t-aprofile: Likewise.
3646 * doc/invoke.texi (-mcpu): Likewise.
3647
3648 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
3649
3650 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
3651 and qdf24xx and xgene1 to match -march=armv8-a.
3652
3653 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
3654
3655 PR rtl-optimization/68330
3656 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
3657 of LSHIFTRT by a non-zero constant integer.
3658
3659 2015-11-16 Richard Biener <rguenther@suse.de>
3660
3661 PR tree-optimization/68306
3662 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
3663 bogus copying from verify_data_ref_alignment and use continue
3664 instead of return.
3665
3666 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
3667 Kaz Kojima <kkojima@gcc.gnu.org>
3668
3669 PR target/68277
3670 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
3671 operands[2].
3672 (*addsi3): Add another insn_and_split variant for reload.
3673
3674 2015-11-16 Richard Biener <rguenther@suse.de>
3675
3676 PR middle-end/68117
3677 * cfgexpand.c (pass_expand::execute): Destroy the edge
3678 redirection var map before setting RTL CFG hooks.
3679
3680 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
3681
3682 * config/i386/sse.md (reduc_splus_v8df): Rename to...
3683 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
3684
3685 (reduc_splus_v4df): Rename to...
3686 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
3687
3688 (reduc_splus_v2df): Rename to...
3689 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
3690
3691 (reduc_splus_v16sf): Rename to...
3692 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
3693
3694 (reduc_splus_v8sf): Rename to...
3695 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
3696
3697 (reduc_splus_v4sf): Rename to...
3698 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
3699
3700 (reduc_<code>_<mode>, all 3 variants): Rename each to...
3701 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
3702
3703 (reduc_umin_v8hf): Rename to...
3704 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
3705
3706 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
3707
3708 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
3709 without additional conditions.
3710 * doc/extend.texi (@item simd): New.
3711
3712 2015-11-16 Tom de Vries <tom@codesourcery.com>
3713
3714 * passes.c (first_pass_instance): Remove variable.
3715 (execute_todo): Remove setting of first_pass_instance.
3716 * tree-pass.h (first_pass_instance): Remove declaration.
3717
3718 2015-11-16 Tom de Vries <tom@codesourcery.com>
3719
3720 * passes.def: Add arg to pass_ccp pass instantiation.
3721 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
3722 instead of first_pass_instance.
3723 (do_ssa_ccp): Add and handle param nonzero_p.
3724 (pass_ccp::pass_ccp): Initialize nonzero_p.
3725 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
3726 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
3727 (pass_ccp::nonzero_p): New private member.
3728
3729 2015-11-16 Tom de Vries <tom@codesourcery.com>
3730
3731 * passes.def: Add arg to pass_object_sizes pass instantiation.
3732 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
3733 insert_min_max_p.
3734 (pass_object_sizes::set_pass_param): New member function. Set
3735 insert_min_max_p.
3736 (pass_object_sizes::insert_min_max_p): New private member.
3737 (pass_object_sizes::execute): Use insert_min_max_p instead of
3738 first_pass_instance.
3739
3740 2015-11-16 Tom de Vries <tom@codesourcery.com>
3741
3742 * passes.def: Add arg to pass_dominator pass instantiation.
3743 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
3744 of comment.
3745 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
3746 may_peel_loop_headers_p.
3747 (pass_dominator::set_pass_param): New member function. Set
3748 may_peel_loop_headers_p.
3749 (pass_dominator::may_peel_loop_headers_p): New private member.
3750 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
3751 first_pass_instance.
3752
3753 2015-11-16 Tom de Vries <tom@codesourcery.com>
3754
3755 * passes.def: Add arg to pass_reassoc pass instantiation.
3756 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
3757 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
3758 of first_pass_instance.
3759 (execute_reassoc): Add and handle insert_powi_p parameter.
3760 (pass_reassoc::insert_powi_p): New private member.
3761 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
3762 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
3763 (pass_reassoc::execute): Call execute_reassoc with extra arg.
3764
3765 2015-11-16 Tom de Vries <tom@codesourcery.com>
3766
3767 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
3768 * gen-pass-instances.awk (handle_line): Same.
3769 * pass_manager.h (class pass_manager): Define and undefine
3770 NEXT_PASS_WITH_ARG.
3771 * passes.c (opt_pass::set_pass_param): New function.
3772 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
3773 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
3774 * tree-pass.h (gimple_opt::set_pass_param): Declare.
3775 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
3776 warn_array_bounds_p parameter.
3777 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
3778 (pass_vrp::set_pass_param): New function.
3779 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
3780 (pass_vrp::warn_array_bounds_p): New private member.
3781
3782 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
3783
3784 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
3785 (output_probe_stack_range): Rotate the loop and simplify.
3786
3787 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
3788
3789 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
3790 (output_probe_stack_range): Rotate the loop and simplify.
3791
3792 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
3793
3794 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
3795 an lea instruction when possible.
3796 (output_adjust_stack_and_probe): Rotate the loop and simplify.
3797 (ix86_emit_probe_stack_range): Adjust.
3798 (output_probe_stack_range): Rotate the loop and simplify.
3799
3800 2015-11-16 Christian Bruel <christian.bruel@st.com>
3801
3802 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
3803 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
3804 with appropriate pragma GCC target.
3805
3806 2015-11-16 Christian Bruel <christian.bruel@st.com>
3807
3808 PR target/65837
3809 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
3810 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
3811
3812 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
3813
3814 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
3815 (cortexa57_tunings): Use it.
3816
3817 2015-11-16 Christian Bruel <christian.bruel@st.com>
3818
3819 PR target/65837
3820 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
3821 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
3822 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
3823 undefine __ARM_FP.
3824 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
3825 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
3826 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
3827 * doc/extend.texi (-mfpu=): Describe attribute.
3828
3829 2015-11-16 Christian Bruel <christian.bruel@st.com>
3830
3831 PR target/65837
3832 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
3833 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
3834 arm_init_neon_builtins.
3835 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
3836 (arm_init_neon_builtins_internal)
3837 (arm_init_crypto_builtins_internal):
3838 Test and set neon_set_p, neon_crypto_set_p.
3839 (neon_set_p, neon_crypto_set_p): New static booleans.
3840
3841 2015-11-16 Christian Bruel <christian.bruel@st.com>
3842
3843 PR target/65837
3844 * config/arm/arm.c (arm_fpu_desc): Remove.
3845 (all_fpus): Make global.
3846 (arm_option_override): Use FPU TARGET accessors.
3847 (arm_declare_function_name): Likewise.
3848 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
3849 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
3850 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
3851 (TARGET_NEON): Likewise.
3852 (all_fpus): Declare extern.
3853 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
3854 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
3855
3856 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3857
3858 PR middle-end/68366
3859 * sdbout.c: Include emit-rtl.h and function.h.
3860
3861 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
3862
3863 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
3864 Remove support for FreeBSD 5 and earlier.
3865
3866 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3867
3868 * configure: Regenerate.
3869 * configure.ac: Always define ENABLE_OFFLOADING.
3870 * cgraph.c (cgraph_node::create): Adjust.
3871 * gcc.c (process_command): Likewise.
3872 * omp-low.c (create_omp_child_function): Likewise.
3873 (expand_omp_target): Likewise.
3874 * varpool.c (varpool_node::get_create): Likewise.
3875
3876 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3877
3878 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
3879 * df-scan.c (df_get_exit_block_use_set): Adjust.
3880 * except.c (expand_eh_return): Likewise.
3881
3882 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3883
3884 * config/i386/i386.h (TARGET_PECOFF): Remove define.
3885 * defaults.h (TARGET_PECOFF): New default definition.
3886 * varasm.c (handle_vtv_comdat_section): Adjust.
3887
3888 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3889
3890 * defaults.h: New definition of SDB_DEBUGGING_INFO.
3891 * doc/tm.texi: Regenerate.
3892 * doc/tm.texi.in: Adjust.
3893 * final.c (rest_of_clean_state): Remove check if
3894 SDB_DEBUGGING_INFO is defined.
3895 * function.c (number_blocks): Likewise.
3896 * output.h: Likewise.
3897 * sdbout.c: Likewise.
3898 * toplev.c (process_options): Likewise.
3899
3900 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3901
3902 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
3903 (enum sdb_masks): Likewise.
3904 * sdbout.c (plain_type_1): Likewise.
3905 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
3906
3907 2015-11-14 Jakub Jelinek <jakub@redhat.com>
3908
3909 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
3910 internal calls - 0 if ordered simd and 1 for ordered threads simd.
3911 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
3912 argument is 1, replace it with GOMP_ordered_* call instead of removing
3913 it.
3914
3915 2015-11-13 Rich Felker <dalias@libc.org>
3916
3917 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
3918 address loading hack for FDPIC targets.
3919
3920 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
3921 Jeff Law <law@redhat.com>
3922
3923 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
3924 * common.opt (-fsplit-paths): New flag controlling path splitting.
3925 * doc/invoke.texi (fsplit-paths): Document.
3926 * opts.c (default_options_table): Add -fsplit-paths to -O2.
3927 * passes.def: Add split_paths pass.
3928 * timevar.def (TV_SPLIT_PATHS): New timevar.
3929 * tracer.c: Include "tracer.h"
3930 (ignore_bb_p): No longer static.
3931 (transform_duplicate): New function, broken out of tail_duplicate.
3932 (tail_duplicate): Use transform_duplicate.
3933 * tracer.h (ignore_bb_p): Declare
3934 (transform_duplicate): Likewise.
3935 * tree-pass.h (make_pass_split_paths): Declare.
3936 * gimple-ssa-split-paths.c: New file.
3937
3938 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
3939 Marek Polacek <polacek@redhat.com>
3940 Jason Merrill <jason@redhat.com>
3941
3942 * convert.c (maybe_fold_build1_loc): New.
3943 (maybe_fold_build2_loc): New.
3944 (convert_to_pointer_1): Split out from convert_to_pointer.
3945 (convert_to_pointer_nofold): New.
3946 (convert_to_real_1): Split out from convert_to_real.
3947 (convert_to_real_nofold): New.
3948 (convert_to_integer_1): Split out from convert_to_integer.
3949 (convert_to_integer_nofold): New.
3950 (convert_to_complex_1): Split out from convert_to_complex.
3951 (convert_to_complex_nofold): New.
3952 * convert.h: Declare new functions.
3953 * tree-complex.c (create_one_component_var): Break up line to
3954 avoid sequence point issues.
3955
3956 2015-11-13 Jason Merrill <jason@redhat.com>
3957
3958 * fold-const.c (fold_convert_const): Fold changing cv-quals on
3959 VECTOR_CST.
3960
3961 * hash-map.h (hash_map::empty): New.
3962
3963 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
3964
3965 * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
3966 (oacc_loop_fixed_partitions): Correct return type to bool.
3967 (oacc_loop_auto_partitions): New.
3968 (oacc_loop_partition): Take mask argument, call
3969 oacc_loop_auto_partitions.
3970 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
3971
3972 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
3973
3974 * config/rs6000/constraints.md (we constraint): New constraint for
3975 64-bit power9 vector support.
3976 (wL constraint): New constraint for the element in a vector that
3977 can be addressed by the MFVSRLD instruction.
3978
3979 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
3980 declaration.
3981 (convert_int_to_float128): Likewise.
3982 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
3983 hardware support for IEEE 128-bit floating point.
3984 (rs6000_expand_float128_convert): Likewise.
3985 (convert_float128_to_int): Likewise.
3986 (convert_int_to_float128): Likewise.
3987
3988 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
3989 ISA 3.0 hardware IEEE 128-bit floating point.
3990 (UNSPEC_IEEE128_MOVE): Likewise.
3991 (UNSPEC_IEEE128_CONVERT): Likewise.
3992 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
3993 (Ff): Add support for DImode.
3994 (Fv): Likewise.
3995 (any_fix code iterator): New and updated iterators for IEEE
3996 128-bit floating point hardware support.
3997 (any_float code iterator): Likewise.
3998 (s code attribute): Likewise.
3999 (su code attribute): Likewise.
4000 (az code attribute): Likewise.
4001 (uns code attribute): Likewise.
4002 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
4003 floating point hardware support.
4004 (abs<mode>2, FLOAT128 iterator): Likewise.
4005 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
4006 floating point hardware.
4007 (sub<mode>3, IEEE128 iterator): Likewise.
4008 (mul<mode>3, IEEE128 iterator): Likewise.
4009 (div<mode>3, IEEE128 iterator): Likewise.
4010 (copysign<mode>3, IEEE128 iterator): Likewise.
4011 (sqrt<mode>2, IEEE128 iterator): Likewise.
4012 (neg<mode>2, IEEE128 iterator): Likewise.
4013 (abs<mode>2, IEEE128 iterator): Likewise.
4014 (nabs<mode>2, IEEE128 iterator): Likewise.
4015 (fma<mode>4_hw, IEEE128 iterator): Likewise.
4016 (fms<mode>4_hw, IEEE128 iterator): Likewise.
4017 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
4018 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
4019 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
4020 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
4021 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
4022 (fix_fixuns code attribute): Likewise.
4023 (float_floatuns code attribute): Likewise.
4024 (fix<uns>_<mode>si2_hw): Likewise.
4025 (fix<uns>_<mode>di2_hw): Likewise.
4026 (float<uns>_<mode>si2_hw): Likewise.
4027 (float<uns>_<mode>di2_hw): Likewise.
4028 (xscvqp<su>wz_<mode>): Likewise.
4029 (xscvqp<su>dz_<mode>): Likewise.
4030 (xscv<su>dqp_<mode): Likewise.
4031 (ieee128_mfvsrd): Likewise.
4032 (ieee128_mfvsrwz): Likewise.
4033 (ieee128_mtvsrw): Likewise.
4034 (ieee128_mtvsrd): Likewise.
4035 (trunc<mode>df2_odd): Likewise.
4036 (cmp<mode>_h): Likewise.
4037 (128-bit GPR splitters): Don't split a 128-bit move that is a
4038 direct move between GPR and vector registers using ISA 3.0 direct
4039 move instructions.
4040 (maddld4): Add support for the ISA 3.0 integer multiply-add
4041 instruction.
4042
4043 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
4044 debugging.
4045 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
4046 constraint. Disable the VSX<->GPR direct move helpers if we have
4047 the MFVSRLD and MTVSRDD instructions.
4048 (rs6000_secondary_reload_simple_move): Add support for doing
4049 vector direct moves directly without additional scratch registers
4050 if we have ISA 3.0 instructions.
4051 (rs6000_secondary_reload_direct_move): Update comments.
4052 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
4053 instructions.
4054
4055 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
4056 direct move instructions.
4057 (vsx_movti_64bit): Likewise.
4058 (vsx_extract_<mode>): Likewise.
4059
4060 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
4061 macros for ISA 3.0 direct move instructions.
4062 (TARGET_DIRECT_MOVE_128): Likewise.
4063 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
4064 instruction.
4065
4066 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
4067 constraints. Update wa documentation to say not to use %x<n> on
4068 instructions that only take Altivec registers.
4069
4070 2015-11-13 David Malcolm <dmalcolm@redhat.com>
4071
4072 * Makefile.in (OBJS): Add gcc-rich-location.o.
4073 * diagnostic.c (diagnostic_append_note): Pass line_table to
4074 rich_location ctor.
4075 (emit_diagnostic): Likewise.
4076 (inform): Likewise.
4077 (inform_n): Likewise.
4078 (warning): Likewise.
4079 (warning_at): Likewise.
4080 (warning_n): Likewise.
4081 (pedwarn): Likewise.
4082 (permerror): Likewise.
4083 (error): Likewise.
4084 (error_n): Likewise.
4085 (error_at): Likewise.
4086 (sorry): Likewise.
4087 (fatal_error): Likewise.
4088 (internal_error): Likewise.
4089 (internal_error_no_backtrace): Likewise.
4090 (source_range::debug): Likewise.
4091 * gcc-rich-location.c: New file.
4092 * gcc-rich-location.h: New file.
4093 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
4094 (warning_at): Likewise.
4095 * gimple.h (gimple_set_block): Use set_block function.
4096 * input.c (dump_line_table_statistics): Dump stats on how many
4097 ranges were optimized vs how many needed ad-hoc table.
4098 (write_digit_row): Add "map" param; use its range_bits
4099 to calculate the per-character offset.
4100 (dump_location_info): Print the range and column bits for each
4101 ordinary map. Use the range bits to calculate the per-character
4102 offset. Pass the map as a new param to the various calls to
4103 write_digit_row. Eliminate uses of
4104 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
4105 * print-tree.c (print_node): Print any source range information.
4106 * rtl-error.c (diagnostic_for_asm): Likewise.
4107 * toplev.c (general_init): Initialize line_table's
4108 default_range_bits.
4109 * tree-cfg.c (move_block_to_fn): Likewise.
4110 (move_block_to_fn): Likewise.
4111 * tree-inline.c (copy_phis_for_bb): Likewise.
4112 * tree.c (tree_set_block): Likewise.
4113 (get_pure_location): New function.
4114 (set_source_range): New functions.
4115 (set_block): New function.
4116 (set_source_range): New functions.
4117 * tree.h (CAN_HAVE_RANGE_P): New.
4118 (EXPR_LOCATION_RANGE): New.
4119 (EXPR_HAS_RANGE): New.
4120 (get_expr_source_range): New inline function.
4121 (DECL_LOCATION_RANGE): New.
4122 (set_source_range): New decls.
4123 (get_decl_source_range): New inline function.
4124
4125 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
4126
4127 PR tree-optimization/67682
4128 * tree-vect-slp.c (vect_split_slp_store_group): New.
4129 (vect_analyze_slp_instance): During basic block SLP, recurse on
4130 subgroups if vect_build_slp_tree fails after 1st vector.
4131
4132 2015-11-13 Christian Bruel <christian.bruel@st.com>
4133
4134 PR target/65837
4135 * config/arm/arm.c (arm_option_override): Move NEON check...
4136 (arm_option_check_internal): here
4137 (arm_file_start): Move .fpu print...
4138 (arm_declare_function_name): here
4139 (arm_option_print): Dump current fpu name.
4140 * config/arm/arm.opt (arm_fpu_index): Mark Save.
4141
4142 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
4143 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4144
4145 * combine.c (subst): Don't substitute or simplify when
4146 handling register-wise widening multiply.
4147 (force_to_mode): Likewise.
4148
4149 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
4150
4151 PR tree-optimization/68264
4152 * tree-call-cdce.c (gen_one_condition): Update commentary.
4153 (gen_conditions_for_pow_int_base): Invert the sense of the tests
4154 passed to gen_one_condition.
4155 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
4156 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
4157 using EDGE_FALSE_VALUE for edges to the call block and
4158 EDGE_TRUE_VALUE for the others.
4159
4160 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4161
4162 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
4163 complex types.
4164
4165 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4166
4167 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
4168
4169 2015-11-13 Tom de Vries <tom@codesourcery.com>
4170
4171 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
4172 len_of_prefix.
4173
4174 2015-11-13 Tom de Vries <tom@codesourcery.com>
4175
4176 * gen-pass-instances.awk (handle_line): Add args_str variable.
4177
4178 2015-11-13 Martin Liska <mliska@suse.cz>
4179
4180 * graphite-poly.c (free_scop): Release scop->drs vector.
4181 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
4182 Release dom vector.
4183 (try_generate_gimple_bb): Use vNULL as a default initialization
4184 for vectors.
4185
4186 2015-11-13 Martin Liska <mliska@suse.cz>
4187
4188 PR ipa/68311
4189 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
4190 Replace array initialization (using a variable post-increment)
4191 that possible triggers multiple unsequenced modifications
4192 with a pair of pushes to a vector.
4193
4194 2015-11-13 Richard Biener <rguenther@suse.de>
4195
4196 PR tree-optimization/68306
4197 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
4198 loop related checks ...
4199 (vect_verify_datarefs_alignment): ... here.
4200 (vect_slp_analyze_and_verify_node_alignment): Compute and
4201 verify alignment of the single DR that it matters.
4202 * tree-vect-stmts.c (vectorizable_store): Add an assert.
4203 (vectorizable_load): Add a comment.
4204 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
4205 for determining load cost.
4206
4207 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
4208
4209 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
4210 mix of boolean and integer vectors in a single statement.
4211 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
4212 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
4213 determine constant type.
4214 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
4215 for loop invariants.
4216
4217 2015-11-13 Alan Hayward <alan.hayward@arm.com>
4218
4219 PR tree-optimization/66558
4220 * tree-vect-loop.c (is_integer_induction):Add.
4221 (vectorizable_reduction): Add integer induction checks.
4222
4223 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
4224
4225 Revert [ARM] Remove neon-testgen.ml and generated tests.
4226
4227 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
4228
4229 [ARM] Remove neon-testgen.ml and generated tests.
4230
4231 * config/arm/neon-testgen.ml: Remove.
4232
4233 2015-11-13 Richard Biener <rguenther@suse.de>
4234
4235 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
4236 Signal fatal failure if early checks fail.
4237 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
4238 do not bother testing further vector sizes.
4239
4240 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
4241
4242 * config/i386/predicates.md (misaligned_operand): Return true if
4243 operand is aligned to less than its natural alignmnet.
4244
4245 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
4246
4247 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
4248 (vec_cmpu@var{m}@var{n}): New item.
4249 (vcond@var{m}@var{n}): Specify comparison is signed.
4250 (vcondu@var{m}@var{n}): New item.
4251 (vcond_mask_@var{m}@var{n}): New item.
4252 (maskload@var{m}@var{n}): New item.
4253 (maskstore@var{m}@var{n}): New item.
4254
4255 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
4256
4257 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
4258 types of stored value and storage are compatible.
4259
4260 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
4261
4262 * gcc.c (POST_LINK_SPEC): Define if not already defined.
4263 (LINK_COMMAND_SPEC): Use post_link.
4264 (post_link_spec): New, initialize to POST_LINK_SPEC.
4265 (post_link): Initialize new static spec.
4266 * doc/tm.texi.in (POST_LINK_SPEC): Document.
4267 * doc/tm.texi: Regenerated.
4268
4269 2015-11-13 David Malcolm <dmalcolm@redhat.com>
4270
4271 PR driver/67613
4272 * Makefile.in (GCC_OBJS): Add spellcheck.o.
4273 (OBJS): Add spellcheck-tree.o.
4274 * gcc.c: Include "spellcheck.h".
4275 (suggest_option): New function.
4276 (driver::handle_unrecognized_options): Call suggest_option to
4277 provide a hint about misspelled options.
4278 * spellcheck.c: Update file comment.
4279 (levenshtein_distance): Convert 4-param implementation from static
4280 to extern scope. Remove note about unit tests from leading
4281 comment for const char * implementation. Move tree
4282 implementation to...
4283 * spellcheck-tree.c: New file.
4284 * spellcheck.h (levenshtein_distance): Add 4-param decl.
4285
4286 2015-11-13 David Malcolm <dmalcolm@redhat.com>
4287
4288 * Makefile.in (OBJS): Add spellcheck.o.
4289 * spellcheck.c: New file.
4290 * spellcheck.h: New file.
4291
4292 2015-11-13 James Bowman <james.bowman@ftdichip.com>
4293
4294 * config/ft32/ft32.md (*sne): New insn pattern.
4295
4296 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
4297
4298 * cprop.c (is_too_expensive): Remove.
4299 (gcse.h): Include.
4300 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
4301 is_too_expensive.
4302 * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
4303 * gcse.c (is_too_expensive): Rename to ...
4304 (gcse_or_cprop_is_too_expensive): ... this.
4305 Expand warning to add required size of max-gcse-memory.
4306 (one_pre_gcse_pass): Use it.
4307 (one_code_hoisting_pass): Use it.
4308 * params.def (max-gcse-memory): Increase from 50MB to 128MB.
4309
4310 2015-11-12 James Norris <jnorris@codesourcery.com>
4311 Joseph Myers <joseph@codesourcery.com>
4312
4313 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
4314 GF_OMP_TARGET_KIND_OACC_DECLARE.
4315 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
4316 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
4317 * gimplify.c (oacc_declare_returns): New.
4318 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
4319 (device_resident_p): New function.
4320 (oacc_default_clause): Handle device_resident clause.
4321 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
4322 (gimplify_expr): Handle OACC_DECLARE.
4323 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
4324 * omp-low.c (expand_omp_target): Handle
4325 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
4326 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
4327 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
4328 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
4329 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
4330 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
4331 GOMP_MAP_DEVICE_RESIDENT.
4332
4333 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
4334
4335 [ARM] Remove neon-testgen.ml and generated tests.
4336
4337 * config/arm/neon-testgen.ml: Remove.
4338
4339 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
4340
4341 * config/aarch64/aarch64-cores.def (qdf24xx): New.
4342 * config/aarch64/aarch64-tune.md: Regenerated.
4343 * config/arm/arm-cores.def (qdf24xx): New.
4344 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
4345 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
4346 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
4347 (ARM Options/-mtune): Likewise.
4348
4349 2015-11-12 Martin Liska <mliska@suse.cz>
4350
4351 * config/i386/i386.c (ix86_valid_target_attribute_p):
4352 Finalize options at the of the function.
4353 * gcc.c (driver_get_configure_time_options): Call newly
4354 introduced init_opts_obstack.
4355 * lto-wrapper.c (main): Likewise.
4356 * opts.c (init_opts_obstack): New function.
4357 (init_options_struct): Call newly introduced init_opts_obstack.
4358 * opts.h (init_options_struct): Declare.
4359
4360 2015-11-12 Martin Liska <mliska@suse.cz>
4361
4362 PR ipa/68035
4363 * ipa-icf.c (void sem_item::set_hash): New function.
4364 (sem_function::get_hash): Use renamed m_hash member variable.
4365 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
4366 (sem_item::update_hash_by_local_refs): Likewise.
4367 (sem_variable::get_hash): Use renamed m_hash member variable.
4368 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
4369 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
4370 (sem_item_optimizer::build_graph): As the hash value of an item
4371 is lazy initialized, force the calculation.
4372 * ipa-icf.h (set_hash): Declare new function and rename hash member
4373 variable to m_hash.
4374
4375 2015-11-12 Richard Biener <rguenther@suse.de>
4376
4377 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
4378 Rename to vect_slp_analyze_instance_dependence.
4379 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
4380 Remove WAR special-case.
4381 (vect_slp_analyze_node_dependences): Instead add more specific
4382 code here, not relying on other instances being vectorized.
4383 (vect_slp_analyze_instance_dependence): Adjust accordingly.
4384 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
4385 vertical space in dump files.
4386 (vect_print_slp_tree): Likewise.
4387 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
4388 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
4389 not vectorized stmts until after dependence analysis removed
4390 instances. Merge alignment and dependence checks.
4391 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
4392 flag on all stmts.
4393
4394 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
4395
4396 * config/aarch64/aarch64-protos.h (tune_params): Add new members
4397 "max_case_values" and "cache_line_size".
4398 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
4399 function.
4400 (aarch64_override_options_internal): Tune heuristics based on new
4401 members in "tune_params".
4402 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
4403
4404 2015-11-12 Richard Biener <rguenther@suse.de>
4405
4406 PR tree-optimization/68306
4407 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
4408 relevant and vectorizable checks here.
4409 (vect_verify_datarefs_alignment): Add relevant check here.
4410
4411 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
4412
4413 * gimplify.c (oacc_default_clause): New.
4414 (omp_notice_variable): Call it.
4415
4416 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
4417
4418 PR tree-optimization/68305
4419 * tree-vect-slp.c (vect_get_constant_vectors): Support
4420 COND_EXPR with SSA_NAME as a condition.
4421
4422 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
4423
4424 * config/visium/visium-protos.h (notice_update_cc): Delete.
4425 (print_operand): Likewise.
4426 (print_operand_address): Likewise.
4427
4428 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
4429
4430 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
4431 FUNCTION_VALUE_REGNO_P): Remove.
4432 * config/alpha/alpha-protos.h (function_value): Remove.
4433 * config/alpha/alpha.c (function_value): Rename to...
4434 (alpha_function_value_1): ... this. Make static.
4435 (alpha_function_value, alpha_libcall_value,
4436 alpha_function_value_regno_p): New functions.
4437 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4438 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4439
4440 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
4441
4442 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4443 * config/alpha/alpha.c (alpha_memory_latency): Make static.
4444 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
4445 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
4446
4447 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
4448
4449 PR target/67265
4450 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
4451 assertion on the CFA register.
4452
4453 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
4454
4455 * expr.c (do_store_flag): Expand vector comparison as
4456 VEC_COND_EXPR if vector comparison is not supported by target.
4457
4458 2015-11-12 Renlin Li <renlin.li@arm.com>
4459
4460 * config/arm/arm.md (addsi3_compare_op2): Make the order of
4461 assembly pattern consistent with constraint order.
4462
4463 2015-11-12 Tom de Vries <tom@codesourcery.com>
4464
4465 * gen-pass-instances.awk (handle_line): Simplify match regexp.
4466
4467 2015-11-12 Tom de Vries <tom@codesourcery.com>
4468
4469 * gen-pass-instances.awk (handle_line): Simplify init of
4470 postfix_starts_at.
4471
4472 2015-11-12 Tom de Vries <tom@codesourcery.com>
4473
4474 * gen-pass-instances.awk (handle_line): Rename var where to
4475 call_starts_at.
4476
4477 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
4478
4479 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
4480 do not expand to rtl.
4481
4482 2015-11-12 Richard Biener <rguenther@suse.de>
4483
4484 PR tree-optimization/58497
4485 * tree-vect-generic.c: Include gimplify.h.
4486 (tree_vec_extract): Lookup constant/constructor DEFs.
4487 (do_cond): Unshare cond.
4488
4489 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
4490
4491 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
4492 combined insn if the alignment of vector mode memory operand
4493 is less than ssememalign.
4494
4495 2015-11-12 Tom de Vries <tom@codesourcery.com>
4496
4497 * gen-pass-instances.awk (handle_line): Print parentheses and
4498 pass_name explicitly.
4499
4500 2015-11-12 Tom de Vries <tom@codesourcery.com>
4501
4502 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
4503 and postfix vars.
4504
4505 2015-11-12 Tom de Vries <tom@codesourcery.com>
4506
4507 * gen-pass-instances.awk (handle_line): Add comments.
4508
4509 2015-11-12 Tom de Vries <tom@codesourcery.com>
4510
4511 * gen-pass-instances.awk (handle_line): Rename len_of_end to
4512 len_of_close.
4513
4514 2015-11-12 Tom de Vries <tom@codesourcery.com>
4515
4516 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
4517
4518 2015-11-12 Tom de Vries <tom@codesourcery.com>
4519
4520 * gen-pass-instances.awk (handle_line): Restructure using early-out.
4521
4522 2015-11-12 Tom de Vries <tom@codesourcery.com>
4523
4524 * gen-pass-instances.awk (handle_line): Unify semicolon use.
4525
4526 2015-11-12 Tom de Vries <tom@codesourcery.com>
4527
4528 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
4529
4530 2015-11-12 Tom de Vries <tom@codesourcery.com>
4531
4532 * gen-pass-instances.awk: Add emacs indent setting.
4533
4534 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4535
4536 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
4537 to match.pd.
4538 Move Convert A/(B/C) to (A/B)*C to match.pd.
4539 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
4540 Move Optimize (X & (-A)) / A where A is a power of 2, to
4541 X >> log2(A) to match.pd.
4542
4543 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
4544 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
4545 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
4546 New simplifier.
4547 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
4548
4549 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
4550
4551 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
4552 variable.
4553 (neon_vst2_lane<mode>): Likewise.
4554 (neon_vld3_lane<mode>): Likewise.
4555 (neon_vst3_lane<mode>): Likewise.
4556 (neon_vld4_lane<mode>): Likewise.
4557 (neon_vst4_lane<mode>): Likewise.
4558
4559 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
4560 Sebastian Pop <s.pop@samsung.com>
4561
4562 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
4563 New member codegen_error
4564 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
4565 early return.
4566 (translate_isl_ast_node_user): Early return in case of error.
4567 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
4568 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
4569 (add_parameters_to_ivs_params): Remove macro.
4570 (graphite_regenerate_ast_isl): Add if_region pointer to region.
4571 * graphite-poly.c (new_poly_dr): Remove macro.
4572 (print_pdr): Same.
4573 (new_gimple_poly_bb): Same.
4574 (free_gimple_poly_bb): Same.
4575 (print_scop_params): Same.
4576 * graphite-poly.h (struct poly_dr): Same.
4577 (struct poly_bb): Add new_bb.
4578 (gbb_from_bb): Remove dead code.
4579 (pbb_from_bb): Same.
4580 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
4581 (parameter_index_in_region): Same.
4582 (find_scop_parameters): Same.
4583 (build_cross_bb_scalars_def): New.
4584 (build_cross_bb_scalars_use): New.
4585 (graphite_find_cross_bb_scalar_vars): New
4586 (try_generate_gimple_bb): Reads and Writes.
4587 (build_alias_set): Move.
4588 (gather_bbs::before_dom_children): Gather bbs visited.
4589 (build_scops): call build_alias_set.
4590 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
4591 (remove_simple_copy_phi): Delete.
4592 (remove_invariant_phi): Delete.
4593 (simple_copy_phi_p): Delete.
4594 (reduction_phi_p): Delete.
4595 (isl_id_for_dr): Remove unused param.
4596 (parameter_index_in_region_1): Remove macro usage.
4597 (set_scop_parameter_dim): Same.
4598 (add_param_constraints): Same.
4599 (add_conditions_to_constraints): Same
4600 (build_scop_iteration_domain): Same.
4601 (pdr_add_alias_set): Comment.
4602 (add_scalar_version_numbers): New.
4603 (build_poly_dr): ISL id.
4604 (build_scop_drs): Move.
4605 (build_poly_sr_1): Same.
4606 (insert_stmts): Remove.
4607 (build_poly_sr): New.
4608 (new_pbb_from_pbb): Delete.
4609 (insert_out_of_ssa_copy_on_edge): Delete.
4610 (create_zero_dim_array): Delete.
4611 (scalar_close_phi_node_p): Delete.
4612 (propagate_expr_outside_region): Delete.
4613 (rewrite_close_phi_out_of_ssa): Delete.
4614 (rewrite_phi_out_of_ssa): Delete.
4615 (rewrite_degenerate_phi): Delete.
4616 (rewrite_reductions_out_of_ssa): Delete.
4617 (rewrite_cross_bb_scalar_dependence): Delete.
4618 (handle_scalar_deps_crossing_scop_limits):
4619 (rewrite_cross_bb_scalar_deps): Delete.
4620 (build_poly_scop): Remove calls to out-of-ssa functions.
4621 * graphite.c (graphite_transform_loops): Early return in case of
4622 codegen error.
4623 * sese.c (debug_rename_map_1): Delete.
4624 (debug_rename_map): Delete.
4625 (sese_record_loop): Remove macro.
4626 (build_sese_loop_nests): Same.
4627 (new_sese_info): Same.
4628 (free_sese_info): Same.
4629 (sese_insert_phis_for_liveouts):
4630 (is_loop_closed_ssa_use): New.
4631 (number_of_phi_nodes): New.
4632 (bb_contains_loop_close_phi_nodes): New.
4633 (bb_contains_loop_phi_nodes): New.
4634 (phi_uses_name): New.
4635 (is_valid_rename):
4636 (get_rename): Add old_bb and loop_phi for more precise matching of
4637 exprs.
4638 (set_rename): Pass region.
4639 (later_of_the_two): New.
4640 (gsi_insert_earliest): New.
4641 (collect_all_ssa_names): New.
4642 (substitute_ssa_name): New.
4643 (rename_all_uses): New.
4644 (get_rename_from_scev): New.
4645 (rename_uses): Pass old_bb for more precise matching of exprs.
4646 (get_def_bb_for_const): New.
4647 (get_new_name): New.
4648 (get_loc): New.
4649 (get_edges): New.
4650 (copy_loop_phi_args): New.
4651 (copy_loop_phi_nodes): New.
4652 (get_loop_init_value): New.
4653 (find_init_value): New.
4654 (find_init_value_close_phi): New.
4655 (copy_loop_close_phi_args): New.
4656 (copy_loop_close_phi_nodes): New.
4657 (add_phi_arg_for_new_expr): New.
4658 (copy_cond_phi_args): New.
4659 (copy_cond_phi_nodes): New.
4660 (copy_phi_nodes): New.
4661 (should_copy_to_new_region): New.
4662 (set_rename_for_each_def): New.
4663 (graphite_copy_stmts_from_block): Early return in case of error.
4664 (copy_bb_and_scalar_dependences): Same.
4665 * sese.h (vec_find): New.
4666 (SESE_PARAMS): Delete.
4667 (SESE_LOOPS): Delete.
4668 (SESE_LOOP_NEST): Delete.
4669 (sese_contains_loop): Remove macro usage.
4670 (sese_nb_params): Same.
4671 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
4672
4673 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4674
4675 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
4676 isl_union_map_add_map on every pbb->schedule.
4677
4678 2015-11-11 Tom de Vries <tom@codesourcery.com>
4679
4680 * tree-parloops.c (create_parallel_loop): Return void.
4681
4682 2015-11-11 Tom de Vries <tom@codesourcery.com>
4683
4684 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
4685 block only when needed.
4686
4687 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
4688
4689 * config/alpha/alpha-protos.h (print_operand): Remove.
4690 (print_operand_address): Remove.
4691 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
4692 (PRINT_OPERAND_ADDRESS): Remove.
4693 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
4694 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
4695 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
4696 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
4697 (print_operand_address): Rename to...
4698 (alpha_print_operand_address): ...this and make static.
4699 (print_operand): Rename to...
4700 (alpha_print_operand): ...this and make static.
4701 (alpha_print_operand_punct_valid_p): New static function.
4702
4703 2015-11-11 Richard Biener <rguenther@suse.de>
4704
4705 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
4706 Declare.
4707 (vect_analyze_data_refs_alignment): Make loop vect specific.
4708 (vect_verify_datarefs_alignment): Likewise.
4709 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
4710 Add missing continue.
4711 (vect_compute_data_ref_alignment): Export.
4712 (vect_compute_data_refs_alignment): Merge into...
4713 (vect_analyze_data_refs_alignment): ... this.
4714 (verify_data_ref_alignment): Split out from ...
4715 (vect_verify_datarefs_alignment): ... here.
4716 (vect_slp_analyze_and_verify_node_alignment): New function.
4717 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
4718 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
4719 misplaced checks on alignment.
4720 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
4721 alignment analysis after SLP discovery and do it per instance.
4722 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
4723 bother to re-try using different vector sizes.
4724
4725 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
4726 Cesar Philippidis <cesar@codesourcery.com>
4727
4728 * gimplify.c (enum omp_region_type): Add ORT_ACC,
4729 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
4730 (gimple_add_tmp_var): Add ORT_ACC checks.
4731 (gimplify_var_or_parm_decl): Likewise.
4732 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
4733 (omp_add_variable): Look in outer contexts for openacc and allow
4734 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
4735 (omp_notice_variable, omp_is_private, omp_check_private): Add
4736 ORT_ACC checks.
4737 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
4738 Permit private openacc reductions.
4739 (gimplify_oacc_cache): Specify ORT_ACC.
4740 (gimplify_omp_workshare): Adjust OpenACC region types.
4741 (gimplify_omp_target_update): Likewise.
4742 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
4743 (lower-rec_input_clauses): Don't handle openacc firstprivate
4744 references here.
4745 (lower_omp_target): Emit initializers for openacc firstprivate vars.
4746
4747 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
4748
4749 PR target/67265
4750 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
4751 frame pointer for stack checking if non-call exceptions aren't used.
4752 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
4753
4754 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
4755
4756 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
4757 [LA]SHIFTRT.
4758
4759 2015-11-11 Martin Liska <mliska@suse.cz>
4760 Richard Biener <rguenther@suse.de>
4761
4762 PR rtl-optimization/68287
4763 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
4764 number of elements.
4765
4766 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
4767
4768 * config/mips/mips.c (mips_breakable_sequence_p): New function.
4769 (mips_break_sequence): New function.
4770 (mips_reorg_process_insns): Use them. Use compact branches in selected
4771 situations.
4772
4773 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
4774
4775 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
4776
4777 2015-11-11 Jiong Wang <jiong.wang@arm.com>
4778 Jim Wilson <wilson@gcc.gnu.org>
4779
4780 PR target/67305
4781 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
4782 be true and eliminable registers mentioned.
4783
4784 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
4785
4786 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
4787 options.
4788 * config/arc/arc-opts.h: Add ARCv2 CPUs.
4789 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
4790 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
4791 situation, and store instructions with large offsets.
4792 (arc_secondary_reload_conv): New function.
4793 (arc_init): Add ARCv2 options.
4794 (arc_conditional_register_usage): Select the proper register usage
4795 for ARCv2 processors.
4796 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
4797 architecture.
4798 (arc_compute_function_type): Likewise.
4799 (arc_print_operand): Handle new ARCv2 punctuation characters.
4800 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
4801 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
4802 function.
4803 (arc_reorg, arc_hazard): Use it.
4804 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
4805 (ASM_SPEC): Add ARCv2 options.
4806 (TARGET_NORM): ARC HS has norm instructions by default.
4807 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
4808 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
4809 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
4810 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
4811 Likewise.
4812 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
4813 (TARGET_LP_WR_INTERLOCK): Likewise.
4814 * config/arc/arc.md
4815 (commutative_binary_mult_comparison_result_used, movsicc_insn)
4816 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
4817 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
4818 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
4819 Use it for ARCv2.
4820 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
4821 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
4822 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
4823 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
4824 (extzvsi): New pattern.
4825 * config/arc/arc.opt: New ARCv2 options.
4826 * config/arc/arcEM.md: New file.
4827 * config/arc/arcHS.md: Likewise.
4828 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
4829 values.
4830 (Cm2): A signed 9-bit integer constant constraint.
4831 (C62): An unsigned 6-bit integer constant constraint.
4832 (C16): A signed 16-bit integer constant constraint.
4833 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
4834 (short_const_int_operand): New predicate.
4835 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
4836 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
4837 -mcode-density and -mdiv-rem.
4838
4839 2015-11-11 Julia Koval <julia.koval@intel.com>
4840
4841 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
4842
4843 2015-11-11 Julia Koval <julia.koval@intel.com>
4844
4845 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
4846
4847 2015-11-11 Martin Liska <mliska@suse.cz>
4848
4849 * gimple-ssa-strength-reduction.c (create_phi_basis):
4850 Use auto_vec.
4851 * passes.c (release_dump_file_name): New function.
4852 (pass_init_dump_file): Used from this function.
4853 (pass_fini_dump_file): Likewise.
4854 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
4855 * var-tracking.c (vt_initialize): Use pool_allocator.
4856
4857 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
4858 Jiong Wang <jiong.wang@arm.com>
4859
4860 PR tree-optimization/68234
4861 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
4862 node which estimiated to be VR_VARYING initially.
4863
4864 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
4865
4866 * regname.c (scan_rtx_reg): Check the matching number of consecutive
4867 registers when tying chains.
4868 (build_def_use): Move terminated_this_insn earlier in the function.
4869
4870 2015-11-10 Mike Frysinger <vapier@gentoo.org>
4871
4872 * configure.ac: Use = with test and not ==.
4873 * configure: Regenerated.
4874
4875 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
4876
4877 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
4878 machine asserts. Update defines for 64 bit.
4879
4880 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
4881
4882 PR target/63870
4883 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
4884 lane number.
4885 (neon_vst1_lane<mode>): Likewise.
4886 (neon_vld2_lane<mode>): Likewise.
4887 (neon_vst2_lane<mode>): Likewise.
4888 (neon_vld3_lane<mode>): Likewise.
4889 (neon_vst3_lane<mode>): Likewise.
4890 (neon_vld4_lane<mode>): Likewise.
4891 (neon_vst4_lane<mode>): Likewise.
4892
4893 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
4894
4895 PR target/63870
4896 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
4897 qualifier_struct_load_store_lane_index.
4898 (arm_storestruct_lane_qualifiers) Likewise.
4899 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
4900 big-endian.
4901 (neon_vst1_lane<mode>) Likewise.
4902 (neon_vld2_lane<mode>) Likewise.
4903 (neon_vst2_lane<mode>) Likewise.
4904 (neon_vld3_lane<mode>) Likewise.
4905 (neon_vst3_lane<mode>) Likewise.
4906 (neon_vld4_lane<mode>) Likewise.
4907 (neon_vst4_lane<mode>) Likewise.
4908
4909 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
4910
4911 PR target/63870
4912 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
4913 qualifier_struct_load_store_lane_index.
4914 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4915 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
4916 argument qualifiers.
4917 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
4918 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
4919
4920 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
4921
4922 * config/nvptx/nvptx.opt (moptimize): New flag.
4923 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
4924 default.
4925 (nvptx_optimize_inner): New.
4926 (nvptx_process_pars): Call it when optimizing.
4927 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
4928
4929 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4930
4931 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
4932 Remove redundant code.
4933
4934 2015-11-10 Jeff Law <law@redhat.com>
4935
4936 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
4937 call to output_address.
4938 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
4939 Add unnamed machine_mode argument.
4940
4941 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4942
4943 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
4944 default to 64-bit.
4945
4946 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
4947
4948 * config/i386/i386.md (*movabs<mode>_1): Add explicit
4949 size directives for -masm=intel.
4950 (*movabs<mode>_2): Ditto.
4951
4952 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
4953
4954 * config/i386/i386.c (ix86_print_operand): Remove dead code that
4955 tried to avoid (%rip) for call operands.
4956
4957 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
4958
4959 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
4960 argument. Do not use RIP relative addressing when no_rip is set.
4961 (ix86_print_operand): Update call to ix86_print_operand_address_as.
4962 (ix86_print_operand_address): Ditto.
4963 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
4964 absolute movabs operand 0. Add square braces for -masm=intel.
4965 (*movabs<mode>_2): Ditto for operand 1.
4966
4967 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4968
4969 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
4970 combine_vcvtf2i pattern.
4971
4972 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4973
4974 * config/arm/arm.c (neon_valid_immediate): Remove integer
4975 CONST_DOUBLE handling. It should never occur.
4976
4977 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
4978
4979 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
4980 (ATOMIC_LDOP): Likewise.
4981 (atomic_ldop): Likewise.
4982 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
4983 (ATOMIC_LDOP): Likewise.
4984 (atomic_ldop): Likewise.
4985
4986 2015-11-10 Martin Liska <mliska@suse.cz>
4987
4988 * alloc-pool.h (allocate_raw): New function.
4989 (operator new (size_t, object_allocator<T> &a)): Use the
4990 function instead of object_allocator::allocate).
4991
4992 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4993
4994 * config/i386/sse.md (HALFMASKMODE): New attribute.
4995 (DOUBLEMASKMODE): New attribute.
4996 (vec_pack_trunc_qi): New.
4997 (vec_pack_trunc_<mode>): New.
4998 (vec_unpacks_lo_hi): New.
4999 (vec_unpacks_lo_si): New.
5000 (vec_unpacks_lo_di): New.
5001 (vec_unpacks_hi_hi): New.
5002 (vec_unpacks_hi_<mode>): New.
5003
5004 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
5005
5006 * optabs.c (expand_binop_directly): Allow scalar mode for
5007 vec_pack_trunc_optab.
5008 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
5009 boolean vector producers from pattern sequence when computing VF.
5010 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
5011 vect_recog_mask_conversion_pattern.
5012 (search_type_for_mask): Choose the smallest
5013 type if different size types are mixed.
5014 (build_mask_conversion): New.
5015 (vect_recog_mask_conversion_pattern): New.
5016 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
5017 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
5018 load with pattern.
5019 (vectorizable_conversion): Support boolean vectors.
5020 (free_stmt_vec_info): Allow patterns for statements with no lhs.
5021 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
5022
5023 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
5024
5025 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
5026 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
5027 Cast mask to FP mode if required.
5028 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
5029 (vcond_mask_<mode><avx512fmaskmodelower>): New.
5030 (vcond_mask_<mode><sseintvecmodelower>): New.
5031 (vcond_mask_<mode><sseintvecmodelower>): New.
5032 (vcond_mask_v2div2di): New.
5033 (vcond_mask_<mode><sseintvecmodelower>): New.
5034 (vcond_mask_<mode><sseintvecmodelower>): New.
5035
5036 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
5037
5038 * optabs-query.h (get_vcond_mask_icode): New.
5039 * optabs-tree.c (expand_vec_cond_expr_p): Use
5040 get_vcond_mask_icode for VEC_COND_EXPR with mask.
5041 * optabs.c (expand_vec_cond_mask_expr): New.
5042 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
5043 * optabs.def (vcond_mask_optab): New.
5044 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
5045 generate redundant comparison for COND_EXPR.
5046 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
5047 as a condition.
5048 (vectorizable_condition): Likewise.
5049 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
5050 cond_exp with no embedded comparison.
5051 (vect_build_slp_tree_1): Likewise.
5052
5053 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
5054
5055 * config/i386/sse.md (maskload<mode>): Rename to ...
5056 (maskload<mode><sseintvecmodelower>): ... this.
5057 (maskstore<mode>): Rename to ...
5058 (maskstore<mode><sseintvecmodelower>): ... this.
5059 (maskload<mode><avx512fmaskmodelower>): New.
5060 (maskstore<mode><avx512fmaskmodelower>): New.
5061
5062 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
5063
5064 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
5065 (expand_MASK_STORE): Adjust to maskstore optab changes.
5066 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
5067 Adjust to maskload, maskstore optab changes.
5068 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
5069 * optabs.def (maskload_optab): Transform into convert optab.
5070 (maskstore_optab): Likewise.
5071 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
5072 can_vec_mask_load_store_p signature change.
5073 (predicate_mem_writes): Use boolean mask.
5074 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
5075 can_vec_mask_load_store_p signature change. Allow invariant masks.
5076 (vectorizable_operation): Ignore type precision for boolean vectors.
5077
5078 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
5079
5080 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
5081 (const_vector_mask_from_tree): New.
5082 (const_vector_from_tree): Use const_vector_mask_from_tree
5083 for boolean vectors.
5084 * optabs-query.h (get_vec_cmp_icode): New.
5085 * optabs-tree.c (expand_vec_cmp_expr_p): New.
5086 * optabs-tree.h (expand_vec_cmp_expr_p): New.
5087 * optabs.c (vector_compare_rtx): Add OPNO arg.
5088 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
5089 (expand_vec_cmp_expr): New.
5090 * optabs.def (vec_cmp_optab): New.
5091 (vec_cmpu_optab): New.
5092 * optabs.h (expand_vec_cmp_expr): New.
5093 * tree-vect-generic.c (expand_vector_comparison): Add vector
5094 comparison optabs check.
5095 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
5096 operations for VF. Add mask type computation.
5097 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
5098 (vectorizable_comparison): New.
5099 (vect_analyze_stmt): Add vectorizable_comparison.
5100 (vect_transform_stmt): Likewise.
5101 (vect_init_vector): Support boolean vector invariants.
5102 (vect_get_vec_def_for_operand): Add VECTYPE arg.
5103 (vectorizable_condition): Directly provide vectype for invariants
5104 used in comparison.
5105 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
5106 (enum vect_var_kind): Add vect_mask_var.
5107 (enum stmt_vec_info_type): Add comparison_vec_info_type.
5108 (vectorizable_comparison): New.
5109 (vect_get_vec_def_for_operand): Add VECTYPE arg.
5110 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
5111 (vect_create_destination_var): Likewise.
5112 * tree-vect-patterns.c (check_bool_pattern): Check fails
5113 if we can vectorize comparison directly.
5114 (search_type_for_mask): New.
5115 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
5116 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
5117 comparison statements.
5118 (vect_get_constant_vectors): Support boolean vector constants.
5119 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
5120 (ix86_expand_int_vec_cmp): New.
5121 (ix86_expand_fp_vec_cmp): New.
5122 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
5123 op_true and op_false.
5124 (ix86_int_cmp_code_to_pcmp_immediate): New.
5125 (ix86_fp_cmp_code_to_pcmp_immediate): New.
5126 (ix86_cmp_code_to_pcmp_immediate): New.
5127 (ix86_expand_mask_vec_cmp): New.
5128 (ix86_expand_fp_vec_cmp): New.
5129 (ix86_expand_int_sse_cmp): New.
5130 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
5131 (ix86_expand_int_vec_cmp): New.
5132 (ix86_get_mask_mode): New.
5133 (TARGET_VECTORIZE_GET_MASK_MODE): New.
5134 * config/i386/sse.md (avx512fmaskmodelower): New.
5135 (vec_cmp<mode><avx512fmaskmodelower>): New.
5136 (vec_cmp<mode><sseintvecmodelower>): New.
5137 (vec_cmpv2div2di): New.
5138 (vec_cmpu<mode><avx512fmaskmodelower>): New.
5139 (vec_cmpu<mode><sseintvecmodelower>): New.
5140 (vec_cmpuv2div2di): New.
5141
5142 2015-11-10 Richard Biener <rguenther@suse.de>
5143
5144 PR tree-optimization/68240
5145 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
5146 properly.
5147 (visit_phi): For PHIs with just a single executable edge
5148 take its value directly.
5149 (expressions_equal_p): Handle VN_TOP properly.
5150
5151 2015-11-10 Richard Biener <rguenther@suse.de>
5152
5153 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
5154 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
5155 conservatively.
5156
5157 2015-11-10 Richard Biener <rguenther@suse.de>
5158
5159 PR tree-optimization/56118
5160 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
5161 cost favor vectorized version.
5162
5163 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5164
5165 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
5166 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
5167 (neg_not_op): New code attribute.
5168
5169 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5170
5171 * ifcvt.c (noce_try_inverse_constants): New function.
5172 (noce_process_if_block): Call it.
5173 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
5174 * optabs.def (negcc_optab, notcc_optab): Declare.
5175 * optabs.c (emit_conditional_neg_or_complement): New function.
5176 * doc/tm.texi (Standard Names): Document negcc, notcc names.
5177
5178 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5179
5180 PR rtl-optimization/68236
5181 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
5182 if insn_queue doesn't exist.
5183 (haifa_sched_finish): Reset insn_queue to NULL.
5184
5185 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
5186
5187 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
5188 (build_def_use): Initialize terminated_this_insn.
5189 (find_best_rename_reg): Pick and check register from the tied chain.
5190 (regrename_do_replace): Mark head as renamed.
5191 (struct du_head *terminated_this_insn). New static variable.
5192 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
5193 * regrename.h (struct du_head): Add tied_chain, renamed members.
5194
5195 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5196
5197 PR bootstrap/68256
5198 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
5199 Return false.
5200
5201 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5202
5203 PR target/57845
5204 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
5205 not promote the mode for aggregate types.
5206
5207 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
5208
5209 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
5210 * omp-low.c (build_oacc_routine_dims): New.
5211
5212 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
5213
5214 * config/rs6000/constraints.md (wF constraint): New constraints
5215 for power9/toc fusion.
5216 (wG constraint): Likewise.
5217
5218 * config/rs6000/predicates.md (u6bit_cint_operand): New
5219 predicate, recognize 0..63.
5220 (upper16_cint_operand): New predicate for power9 and toc fusion.
5221 (fpr_reg_operand): Likewise.
5222 (toc_fusion_or_p9_reg_operand): Likewise.
5223 (toc_fusion_mem_raw): Likewise.
5224 (toc_fusion_mem_wrapped): Likewise.
5225 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
5226 address range.
5227 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
5228 instead.
5229 (fusion_addis_mem_combo_load): Add support for power9 fusion of
5230 floating point loads, floating point stores, and gpr stores.
5231 (fusion_addis_mem_combo_store): Likewise.
5232 (fusion_offsettable_mem_operand): Likewise.
5233
5234 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
5235 (emit_fusion_load_store): Likewise.
5236 (fusion_p9_p): Likewise.
5237 (expand_fusion_p9_load): Likewise.
5238 (expand_fusion_p9_store): Likewise.
5239 (emit_fusion_p9_load): Likewise.
5240 (emit_fusion_p9_store): Likewise.
5241 (fusion_wrap_memory_address): Likewise.
5242
5243 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
5244 elements for power9 fusion.
5245 (rs6000_debug_print_mode): Rework debug information to print more
5246 information about fusion.
5247 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
5248 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
5249 offsettable memory address.
5250 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
5251 (emit_fusion_gpr_load): Move most of the code from
5252 emit_fusion_gpr_load into emit_fusion-addis that handles both
5253 power8 and power9 fusion.
5254 (emit_fusion_addis): Likewise.
5255 (emit_fusion_load_store): Likewise.
5256 (fusion_wrap_memory_address): Add support for TOC fusion.
5257 (fusion_split_address): Likewise.
5258 (fusion_p9_p): Add support for power9 fusion.
5259 (expand_fusion_p9_load): Likewise.
5260 (expand_fusion_p9_store): Likewise.
5261 (emit_fusion_p9_load): Likewise.
5262 (emit_fusion_p9_store): Likewise.
5263
5264 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
5265 new instructions in ISA 3.0.
5266 (TARGET_CTZ): Likewise.
5267 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
5268 (TARGET_TOC_FUSION_FP): Likewise.
5269
5270 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
5271 fusion unspecs.
5272 (UNSPEC_FUSION_ADDIS): Likewise.
5273 (QHSI mode iterator): New iterator for power9 fusion.
5274 (GPR_FUSION): Likewise.
5275 (FPR_FUSION): Likewise.
5276 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
5277 (umod<mode>3): Likewise.
5278 (divmod peephole): Likewise.
5279 (udivmod peephole): Likewise.
5280 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
5281 instructions.
5282 (ctz<mode>2_h): Likewise.
5283 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
5284 (ashdi3_extswsli_dot): Likewise.
5285 (ashdi3_extswsli_dot2): Likewise.
5286 (power9 fusion splitter): New power9/toc fusion support.
5287 (toc_fusionload_<mode>): Likewise.
5288 (toc_fusionload_di): Likewise.
5289 (fusion_gpr_load_<mode>): Update predicate function.
5290 (power9 fusion peephole2s): New power9/toc fusion support.
5291 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
5292 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
5293 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
5294 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
5295 (fusion_p9_<mode>_constant): Likewise.
5296
5297 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
5298
5299 * optabs.c (prepare_libcall_arg): New function.
5300 (expand_fixed_convert): Add call to prepare_libcall_arg.
5301
5302 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
5303
5304 * sched-int.h (dump_rgn_dependencies_dot): Declare
5305 * sched-rgn.c (dump_rgn_dependencies_dot): New function
5306 * print-rtl.h (print_insn): Add prototype
5307
5308 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
5309 * common.opt (-fsched-verbose): Set default value to 1.
5310 * invoke.texi (-fsched-verbose): Update the option's description.
5311
5312 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5313
5314 * config/visium/visium.h (PRINT_OPERAND): Delete.
5315 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
5316 (PRINT_OPERAND_ADDRESS): Likewise.
5317 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
5318 to...
5319 (visium_print_operand_punct_valid_p): ...this. New function.
5320 (TARGET_PRINT_OPERAND): Define to...
5321 (print_operand): Rename to...
5322 (visium_print_operand): ...this.
5323 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
5324 (visium_output_address): Rename to...
5325 (visium_print_operand_address): ...this.
5326 (print_operand_address): Delete.
5327
5328 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5329
5330 PR middle-end/68259
5331 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
5332 Check that the type of the first operand is an aggregate type.
5333
5334 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
5335
5336 * omp-low.c: Fix some OpenACC comment typos.
5337 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
5338 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
5339 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
5340
5341 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
5342
5343 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
5344
5345 2015-11-09 Jeff Law <law@redhat.com>
5346
5347 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
5348 being in gimple/ssa form. Remove redundant check for SSA_NAME.
5349 Fix comment typo.
5350
5351 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
5352 Peter Bergner <bergner@vnet.ibm.com>
5353
5354 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
5355 ISA 3.0 (power9).
5356 (-mpower9-vector): Likewise.
5357 (-mpower9-dform): Likewise.
5358 (-mpower9-minmax): Likewise.
5359 (-mtoc-fusion): Likewise.
5360 (-mmodulo): Likewise.
5361 (-mfloat128-hardware): Likewise.
5362
5363 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
5364 mask for ISA 3.0 (power9).
5365 (POWERPC_MASKS): Add new ISA 3.0 switches.
5366 (power9 cpu): Add power9 cpu.
5367
5368 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
5369 (ASM_CPU_SPEC): Likewise.
5370 (EXTRA_SPECS): Likewise.
5371
5372 * config/rs6000/rs6000-opts.h (enum processor_type): Add
5373 PROCESSOR_POWER9.
5374
5375 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
5376 (rs6000_debug_reg_global): Add support for power9 fusion.
5377 (rs6000_setup_reg_addr_masks): Cache mode size.
5378 (rs6000_option_override_internal): Until real power9 tuning is
5379 added, use -mtune=power8 for -mcpu=power9.
5380 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
5381 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
5382 of Altivec registers.
5383 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
5384 (rs6000_loop_align): Add support for power9 cpu.
5385 (rs6000_file_start): Likewise.
5386 (rs6000_adjust_cost): Likewise.
5387 (rs6000_issue_rate): Likewise.
5388 (insn_must_be_first_in_group): Likewise.
5389 (insn_must_be_last_in_group): Likewise.
5390 (force_new_group): Likewise.
5391 (rs6000_register_move_cost): Likewise.
5392 (rs6000_opt_masks): Likewise.
5393
5394 * config/rs6000/rs6000.md (cpu attribute): Add power9.
5395 * config/rs6000/rs6000-tables.opt: Regenerate.
5396
5397 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
5398 _ARCH_PWR9 if power9 support is available.
5399
5400 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
5401 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
5402
5403 * configure.ac: Determine if the assembler supports the ISA 3.0
5404 instructions.
5405 * config.in (HAVE_AS_POWER9): Likewise.
5406 * configure: Regenerate.
5407
5408 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
5409 switches.
5410
5411 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5412
5413 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
5414 Remove integer CONST_DOUBLE handling. It should never occur.
5415
5416 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5417
5418 PR target/68129
5419 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
5420 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
5421 Delete VOIDmode case. Assert that mode is not VOIDmode.
5422 * config/aarch64/predicates.md (const0_operand): Remove const_double
5423 match.
5424
5425 2015-11-09 Martin Liska <mliska@suse.cz>
5426
5427 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
5428 body_info release function.
5429 * ipa-prop.c (ipa_release_body_info): New function.
5430 (ipa_analyze_node): Call the function.
5431 (ipa_node_params::~ipa_node_params): Release known_csts.
5432 * ipa-prop.h (ipa_release_body_info): Declare.
5433
5434 2015-11-09 Martin Liska <mliska@suse.cz>
5435
5436 * gcc.c (record_temp_file): Release name string.
5437 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
5438 * lra-lives.c (free_live_range_list): Utilize
5439 lra_live_range_pool for allocation and deallocation.
5440 (create_live_range): Likewise.
5441 (copy_live_range): Likewise.
5442 (lra_merge_live_ranges): Likewise.
5443 (remove_some_program_points_and_update_live_ranges): Likewise.
5444 (lra_create_live_ranges_1): Release point_freq_vec that can
5445 be not freed from previous iteration of the function.
5446 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
5447 * tree-sra.c (sra_deinitialize): Release all vectors in
5448 base_access_vec.
5449 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
5450 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
5451 Release edge_info for a removed edge.
5452 (thread_through_all_blocks): Free region vector.
5453 * tree-ssa.h (free_dom_edge_info): Declare function extern.
5454
5455 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
5456
5457 * optabs.c (expand_vec_cond_expr): Always get sign from type.
5458 * tree.c (wide_int_to_tree): Support negative values for boolean.
5459 (build_nonstandard_boolean_type): Use signed type for booleans.
5460
5461 2015-11-09 Richard Biener <rguenther@suse.de>
5462
5463 PR tree-optimization/68248
5464 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
5465
5466 2015-11-09 Richard Biener <rguenther@suse.de>
5467
5468 PR tree-optimization/56118
5469 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
5470 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
5471 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
5472 function.
5473 (vect_slp_analyze_data_ref_dependences): Instead of computing
5474 all dependences of the region DRs just analyze the code motions
5475 SLP vectorization will perform. Remove SLP instances that
5476 cannot have their store/load motions applied.
5477 (vect_analyze_data_refs): Allow DRs without a vectype
5478 in BB vectorization.
5479
5480 2015-11-09 Julian Brown <julian@codesourcery.com>
5481
5482 * final.c (output_asm_insn): Pass VOIDmode to output_address.
5483 (output_address): Add MODE argument. Pass to print_operand_address
5484 hook.
5485 * targhooks.c (default_print_operand_address): Add MODE argument.
5486 * targhooks.h (default_print_operand_address): Update prototype.
5487 * output.h (output_address): Update prototype.
5488 * target.def (print_operand_address): Add MODE argument.
5489 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
5490 output_address.
5491 (print_operand): Pass access mode to output_address.
5492 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
5493 argument.
5494 (mcore_print_operand): Update calls to mcore_print_operand_address.
5495 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
5496 output_address.
5497 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
5498 output_address.
5499 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
5500 global.
5501 (tilegx_print_operand): Don't set above global. Update calls to
5502 output_address.
5503 (tilegx_print_operand_address): Add MODE argument. Use instead of
5504 output_memory_reference_mode global.
5505 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
5506 (frv_print_operand): Pass mode to frv_print_operand_address calls.
5507 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
5508 output_address.
5509 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
5510 (cris_print_operand): Pass mode to output_address calls.
5511 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
5512 * config/aarch64/aarch64.h (aarch64_print_operand)
5513 (aarch64_print_operand_address): Remove prototypes.
5514 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
5515 global.
5516 (aarch64_print_operand): Make static. Update calls to output_address.
5517 (aarch64_print_operand_address): Add MODE argument. Use instead of
5518 aarch64_memory_reference_mode global.
5519 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
5520 hooks.
5521 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
5522 Delete macro definitions.
5523 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
5524 * config/xtensa/xtensa.c (print_operand): Pass mode in
5525 output_address calls.
5526 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
5527 argument.
5528 (h83000_print_operand): Update calls to h8300_print_operand_address
5529 and output_address.
5530 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
5531 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
5532 global.
5533 (tilepro_print_operand): Pass mode to output_address.
5534 (tilepro_print_operand_address): Add MODE argument. Use instead of
5535 output_memory_reference_mode.
5536 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
5537 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
5538 to output_address calls.
5539 (nvptx_print_operand_address): Add MODE argument.
5540 * config/alpha/alpha.c (print_operand): Pass mode argument in
5541 output_address calls.
5542 * config/m68k/m68k.c (print_operand): Pass mode argument in
5543 output_address call.
5544 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
5545 (avr_print_operand): Update calls to avr_print_operand_address.
5546 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
5547 argument. Update calls to output_address.
5548 (sparc_print_operand): Pass mode to output_address.
5549 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
5550 argument.
5551 (iq2000_print_operand): Pass mode in output_address calls.
5552 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
5553 MODE argument.
5554 (xstormy16_print_operand): Pass mode to
5555 xstormy16_print_operand_address calls.
5556 * config/mips/mips.c (mips_print_operand): Update calls to
5557 output_address.
5558 (mips_print_operand_address): Add MODE argument.
5559 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
5560 to output_address.
5561 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
5562 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
5563 output_address.
5564 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
5565 (rx_print_operand): Update calls to output_address,
5566 rx_print_operand_address.
5567 * config/nds32/nds32.c (nds32_print_operand): Update calls to
5568 output_address.
5569 (nds32_print_operand_address): Add MODE argument.
5570 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
5571 output_address calls.
5572 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
5573 output_address call.
5574 (c6x_print_address_operand): Update calls to output_address.
5575 (c6x_print_operand_address): Pass mode to above.
5576 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
5577 (v850_print_operand): Pass mode to v850_print_operand_address,
5578 output_address.
5579 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
5580 (mmix_print_operand): Pass mode in output_address calls.
5581 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
5582 (sh_print_operand): Pass mem mode to output_address,
5583 sh_print_operand_address.
5584 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
5585 (cr16_print_operand): Pass mode to output_address,
5586 cr16_print_operand_address.
5587 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
5588 output_address.
5589 * config/microblaze/microblaze.c (print_operand): Pass mode to
5590 output_address.
5591 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
5592 output_address.
5593 (nios2_print_operand_address): Add MODE argument. Update call to
5594 nios2_print_operand_address.
5595 * config/s390/s390.c (print_operand): Pass mode to output_address.
5596 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
5597 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
5598 output_address.
5599 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
5600 Use instead of output_memory_reference_mode.
5601 (output_memory_reference_mode): Delete global.
5602 (arm_print_operand): Pass mem mode to output_address.
5603 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
5604 (m32r_print_operand): Pass mode to output_address.
5605 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
5606 argument.
5607 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
5608 * config/i386/i386.c (ix86_print_operand): Pass mode to
5609 output_address calls.
5610 (ix86_print_operand_address): Add MODE argument.
5611
5612 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5613
5614 PR middle-end/68251
5615 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
5616 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
5617 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
5618 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
5619
5620 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5621
5622 PR rtl-optimization/67749
5623 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
5624 case before emitting the two blocks. Instead modify the register
5625 in the corresponding final insn of the basic block.
5626
5627 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5628
5629 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
5630 assembler syntax.
5631 Support Solaris ld.
5632 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
5633
5634 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
5635 HAVE_INITFINI_ARRAY_SUPPORT.
5636 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
5637
5638 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
5639 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
5640 Don't check HAVE_AS_SPARC_NOBITS.
5641 Heed SECTION_NOTYPE.
5642
5643 * configure: Regenerate.
5644 * config.in: Regenerate.
5645
5646 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5647
5648 PR middle-end/68253
5649 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
5650
5651 2015-11-09 Richard Henderson <rth@redhat.com>
5652
5653 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
5654 __SEG_GS, __SEG_TLS.
5655 (ix86_register_pragmas): Register address spaces __seg_fs,
5656 __seg_gs, __seg_tls.
5657 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
5658 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
5659 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
5660 * config/i386/i386.c (ix86_decompose_address): Likewise.
5661 (ix86_legitimate_address_p): Likewise.
5662 (memory_address_length): Likewise. Check mem address space too.
5663 (ix86_print_operand): Use ix86_print_operand_address_as.
5664 (ix86_print_operand_address_as): Rename from
5665 ix86_print_operand_address, add new addr_space_t parameter.
5666 Validate that either the parameter or the ix86_address segment
5667 is default address space. Handle ADDR_SPACE_SEG_TLS.
5668 (ix86_print_operand_address): New.
5669 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
5670 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
5671 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
5672 (ix86_addr_space_zero_address_valid): New.
5673 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
5674 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
5675 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
5676 * config/i386/predicates.md (address_no_seg_operand): Likewise.
5677 (vsib_address_operand): Likewise.
5678 (address_mpx_no_base_operand): Likewise.
5679 (address_mpx_no_index_operand): Likewise.
5680 * doc/extend.texi (x86 Named Address Spaces): New section.
5681
5682 * config/i386/i386.c (ix86_check_no_addr_space): New.
5683 (decide_alg): Add have_as parameter.
5684 (alg_usable_p): Likewise; disable rep algorithms if set.
5685 (ix86_expand_set_or_movmem): Notice if either MEM has a
5686 non-default address space.
5687 (ix86_expand_strlen): Likewise.
5688 * config/i386/i386.md (strmov, strset): Likewise.
5689 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
5690 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
5691 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
5692 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
5693 *cmpstrnqi_1, *strlenqi_1): Likewise.
5694
5695 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
5696 (*movabs<mode>_2): Likewise.
5697
5698 * dwarf2out.c (modified_type_die): Pass the address space number
5699 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
5700 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
5701 * targhooks.c (default_addr_space_debug): New.
5702 * targhooks.h (default_addr_space_debug): Declare.
5703 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
5704 * doc/tm.texi: Rebuild.
5705
5706 * gimple.c (check_loadstore): Return false when 0 is a valid address.
5707 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
5708 null when 0 is valid in the source address space.
5709 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
5710 * targhooks.c (default_addr_space_zero_address_valid): New.
5711 * targhooks.h (default_addr_space_zero_address_valid): Declare.
5712 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
5713 * doc/tm.texi: Rebuild.
5714
5715 * cselib.c (add_mem_for_addr): Compare address spaces when
5716 matching memories.
5717 (cselib_lookup_mem): Likewise.
5718 * fold-const.c (operand_equal_p): Check address spaces of
5719 pointer types before checking integer constants.
5720
5721 PR tree-opt/66768
5722 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
5723 the correct type for the base.
5724
5725 2015-11-09 Jeff Law <law@redhat.com>
5726
5727 * tree-into-ssa.c (names_to_release): No longer static.
5728 * tree-into-ssa.h (names_to_release): Declare.
5729 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
5730 (release_free_names_and_compact_live_names): New function extracted
5731 from pass_release_ssa_names::execute.
5732 (pass_release_ssa_names::execute): Use it.
5733
5734 2015-11-09 Alan Modra <amodra@gmail.com>
5735
5736 * gensupport.c (add_mnemonic_string): Make len param a size_t.
5737 (gen_mnemonic_setattr): Make "size" var a size_t. Use
5738 obstack_blank_fast to shrink obstack. Cast obstack_next_free
5739 return value.
5740
5741 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
5742
5743 PR rtl-optimization/68182
5744 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
5745 branch with only one successor just like unconditional branches.
5746
5747 2015-11-08 Jeff Law <law@redhat.com>
5748
5749 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
5750 non-FSM path has no edges marked with EDGE_DFS_BACK.
5751 (ssa_redirect_edges): No longer call mark_loop_for_removal.
5752 (thread_single_edge, def_split_header_continue_p): Remove.
5753 (bb_ends_with_multiway_branch): Likewise.
5754 (thread_through_loop_header): Remove cases of threading from
5755 latch through the header. Simplify knowing we won't thread
5756 the latch.
5757 (thread_through_all_blocks): Simplify knowing that only the FSM
5758 threader needs to handle backedges.
5759
5760 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
5761
5762 * doc/extend.texi (type attributes): Document scalar_storage_order.
5763 (Structure-Packing Pragmas): Rename into...
5764 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
5765 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
5766 (Warnings): Document -Wno-scalar-storage-order.
5767 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
5768 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
5769 extract_bit_field and store_bit_field.
5770 (initialize_argument_information): Adjust call to store_expr.
5771 (load_register_parameters): Adjust call to extract_bit_field.
5772 * expmed.c (check_reverse_storage_order_support): New function.
5773 (check_reverse_float_storage_order_support): Likewise.
5774 (flip_storage_order): Likewise.
5775 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
5776 of the value if it is true. Pass REVERSE to recursive call after
5777 adjusting the target offset.
5778 Do not use extraction or movstrict instruction if REVERSE is true.
5779 Pass REVERSE to store_fixed_bit_field.
5780 (store_bit_field): Add REVERSE parameter and pass to it to above.
5781 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
5782 store_split_bit_field and store_fixed_bit_field_1.
5783 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
5784 order of the value if it is true and adjust the target offset.
5785 (store_split_bit_field): Add REVERSE parameter and pass it to
5786 store_fixed_bit_field. Adjust the target offset if it is true.
5787 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
5788 of the value if it is true. Pass REVERSE to recursive call after
5789 adjusting the target offset.
5790 Do not use extraction or subreg instruction if REVERSE is true.
5791 Pass REVERSE to extract_fixed_bit_field.
5792 (extract_bit_field): Add REVERSE parameter and pass to it to above.
5793 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
5794 extract_split_bit_field and extract_fixed_bit_field_1.
5795 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
5796 order of the value if it is true and adjust the target offset.
5797 (extract_split_bit_field): Add REVERSE parameter and pass it to
5798 extract_fixed_bit_field. Adjust the target offset if it is true.
5799 * expmed.h (flip_storage_order): Declare.
5800 (store_bit_field): Adjust prototype.
5801 (extract_bit_field): Likewise.
5802 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
5803 (emit_group_store): Adjust call to store_bit_field.
5804 (copy_blkmode_from_reg): Likewise.
5805 (copy_blkmode_to_reg): Likewise.
5806 (write_complex_part): Likewise.
5807 (read_complex_part): Likewise.
5808 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
5809 that it isn't true if the target is a register.
5810 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
5811 and flip the storage order of the value.
5812 <BIT_IOR_EXPR>: Flip the storage order of the value.
5813 (get_bit_range): Adjust call to get_inner_reference.
5814 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
5815 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
5816 with reverse storage order.
5817 (store_expr_with_bounds): Add REVERSE parameter and pass it to
5818 recursive calls and call to store_bit_field. Force the value into a
5819 register if it is true and then flip the storage order of the value.
5820 (store_expr): Add REVERSE parameter and pass it to above.
5821 (categorize_ctor_elements_1): Adjust call to
5822 initializer_constant_valid_p.
5823 (store_constructor_field): Add REVERSE parameter and pass it to
5824 recursive calls and call to store_field.
5825 (store_constructor): Add REVERSE parameter and pass it to calls to
5826 store_constructor_field and store_expr. Set it to true for an
5827 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
5828 (store_field): Add REVERSE parameter and pass it to recursive calls
5829 and calls to store_expr and store_bit_field. Temporarily flip the
5830 storage order of the value with record type and integral mode and
5831 adjust the shift if it is true.
5832 (get_inner_reference): Add PREVERSEP parameter and set it to true
5833 upon encoutering a reference with reverse storage order.
5834 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
5835 (expand_constructor): Adjust call to store_constructor.
5836 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
5837 of the union type to store_expr in the MEM case and assert that it
5838 isn't set in the REG case. Adjust call to store_field.
5839 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
5840 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
5841 get_inner_reference and extract_bit_field. Temporarily flip the
5842 storage order of the value with record type and integral mode and
5843 adjust the shift if it is true. Flip the storage order of the value
5844 at the end if it is true.
5845 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
5846 get_inner_reference. Do not fetch an inner reference if it is true.
5847 * expr.h (store_expr_with_bounds): Ajust prototype.
5848 (store_expr): Likewise.
5849 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
5850 REF_REVERSE_STORAGE_ORDER on the reference according to it.
5851 (optimize_bit_field_compare): Deal with reverse storage order.
5852 Adjust calls to get_inner_reference and make_bit_field_ref.
5853 (decode_field_reference): Add PREVERSEP parameter and adjust call to
5854 get_inner_reference.
5855 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
5856 to decode_field_reference and make_bit_field_ref.
5857 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
5858 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
5859 (fold_comparison): Adjust call to get_inner_reference.
5860 (split_address_to_core_and_offset): Adjust call to
5861 get_inner_reference.
5862 * gimple-expr.c (useless_type_conversion_p): Return false for array
5863 types with different TYPE_REVERSE_STORAGE_ORDER flag.
5864 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
5865 REF_REVERSE_STORAGE_ORDER flag.
5866 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
5867 * output.h (assemble_real): Adjust prototype.
5868 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
5869 * stor-layout.c (finish_record_layout): Propagate the
5870 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
5871 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
5872 (TYPE_SATURATING): Adjust.
5873 (REF_REVERSE_STORAGE_ORDER): Document.
5874 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
5875 set it to true upon encoutering a reference with reverse storage order.
5876 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
5877 * tree-inline.c (remap_gimple_op_r): Propagate the
5878 REF_REVERSE_STORAGE_ORDER flag.
5879 (copy_tree_body_r): Likewise.
5880 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
5881 store_expr.
5882 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
5883 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
5884 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
5885 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
5886 REF_REVERSE_STORAGE_ORDER flag.
5887 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
5888 (gimple_canonical_types_compatible_p): Likewise.
5889 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
5890 (TYPE_SATURATING): Adjust.
5891 (REF_REVERSE_STORAGE_ORDER): New flag.
5892 (reverse_storage_order_for_component_p): New inline predicate.
5893 (storage_order_barrier_p): Likewise.
5894 (get_inner_reference): Adjust prototype.
5895 * varasm.c: Include expmed.h.
5896 (assemble_variable_contents): Adjust call to output_constant.
5897 (assemble_real): Add REVERSE parameter. Flip the storage
5898 order of the value if REVERSE is true.
5899 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
5900 (assemble_constant_contents): Adjust call to output_constant.
5901 (output_constant_pool_2): Adjust call to assemble_real.
5902 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
5903 TYPE_REVERSE_STORAGE_ORDER.
5904 (initializer_constant_valid_p): Add REVERSE parameter.
5905 (output_constant): Add REVERSE parameter.
5906 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
5907 <REAL_TYPE>: Adjust call to assemble_real.
5908 <COMPLEX_TYPE>: Pass it to recursive calls.
5909 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
5910 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
5911 (struct oc_local_state): Add REVERSE field.
5912 (output_constructor_array_range): Adjust calls to output_constant.
5913 (output_constructor_regular_field): Likewise.
5914 (output_constructor_bitfield): Adjust call to output_constructor.
5915 Flip the storage order of the value if REVERSE is true.
5916 (output_constructor): Add REVERSE parameter. Set it to true for an
5917 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
5918 output_constructor_bitfield.
5919 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
5920 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
5921 * builtins.c (get_object_alignment_2): Likewise.
5922 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
5923 and get_ref_base_and_extent.
5924 * dbxout.c (dbxout_expand_expr): Likewise.
5925 * dwarf2out.c (add_var_loc_to_decl): Likewise.
5926 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
5927 (loc_list_from_tree): Likewise.
5928 (fortran_common): Likewise.
5929 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
5930 get_ref_base_and_extent.
5931 (get_base_constructor): Likewise.
5932 (fold_const_aggregate_ref_1): Likewise.
5933 * gimple-laddress.c (pass_laddress::execute): Adjust call to
5934 get_inner_reference.
5935 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
5936 get_inner_reference and bail out on reverse storage order.
5937 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
5938 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
5939 build_ref_for_offset.
5940 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
5941 get_ref_base_and_extent.
5942 (ipa_polymorphic_call_context): Likewise.
5943 (extr_type_from_vtbl_ptr_store): Likewise.
5944 (check_stmt_for_type_change): Likewise.
5945 (get_dynamic_type): Likewise.
5946 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
5947 get_ref_base_and_extent.
5948 (compute_complex_assign_jump_func): Likewise.
5949 (get_ancestor_addr_info): Likewise.
5950 (compute_known_type_jump_func): Likewise.
5951 (determine_known_aggregate_parts): Likewise.
5952 (ipa_get_adjustment_candidate): Likewise.
5953 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
5954 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
5955 (build_ref_for_offset): Adjust prototype.
5956 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
5957 get_inner_reference.
5958 * tree-affine.c (tree_to_aff_combination): Adjust call to
5959 get_inner_reference.
5960 (get_inner_reference_aff): Likewise.
5961 * tree-data-ref.c (split_constant_offset_1): Likewise.
5962 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
5963 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
5964 get_inner_reference.
5965 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
5966 (dump_access): Print new fields.
5967 (create_access): Adjust call to get_ref_base_and_extent and set the
5968 REVERSE flag according to the result.
5969 (completely_scalarize_record): Set the REVERSE flag.
5970 (scalarize_elem): Add REVERSE parameter.
5971 (build_access_from_expr_1): Preserve storage order barriers.
5972 (build_accesses_from_assign): Likewise.
5973 (build_ref_for_offset): Add REVERSE parameter and set the
5974 REF_REVERSE_STORAGE_ORDER flag accordingly.
5975 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
5976 the REF_REVERSE_STORAGE_ORDER flag if there are components.
5977 (analyze_access_subtree): Likewise.
5978 (create_artificial_child_access): Set the REVERSE flag.
5979 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
5980 (turn_representatives_into_adjustments): Propagate REVERSE flag.
5981 (ipa_sra_check_caller): Adjust call to get_inner_reference.
5982 * tree-ssa-alias.c (ao_ref_base): Adjust call to
5983 get_ref_base_and_extent.
5984 (aliasing_component_refs_p): Likewise.
5985 (stmt_kills_ref_p_1): Likewise.
5986 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
5987 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
5988 Return true if reverse storage order.
5989 <BIT_FIELD_REF>: Likewise.
5990 <COMPONENT_REF>: Likewise.
5991 <ARRAY_REF>: Likewise.
5992 <ARRAY_RANGE_REF>: Likewise.
5993 (split_address_cost): Likewise. Bail out if reverse storage order.
5994 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
5995 get_inner_reference. Bail out if reverse storage order.
5996 (bswap_replace): Adjust call to get_inner_reference.
5997 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
5998 the REF_REVERSE_STORAGE_ORDER flag.
5999 <BIT_FIELD_REF>: Likewise.
6000 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
6001 barriers.
6002 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
6003 to the REF_REVERSE_STORAGE_ORDER flag.
6004 <BIT_FIELD_REF>: Likewise.
6005 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
6006 (contains_storage_order_barrier_p): New predicate.
6007 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
6008 Punt on storage order barriers if necessary.
6009 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
6010 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
6011 call to get_ref_base_and_extent.
6012 (do_structure_copy): Likewise.
6013 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
6014 get_inner_reference.
6015 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
6016 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
6017 * ubsan.c (instrument_bool_enum_load): Likewise.
6018 (instrument_object_size): Likewise.
6019 * var-tracking.c (track_expr_p): Adjust call to
6020 get_ref_base_and_extent.
6021 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
6022 get_inner_reference.
6023 * config/s390/s390.c (s390_expand_atomic): Adjust call to
6024 store_bit_field.
6025 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
6026 extract_bit_field.
6027 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
6028
6029 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
6030
6031 * config/sparc/sparc.opt (mfix-at697f): Add final period.
6032
6033 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
6034
6035 PR rtl-optimization/67864
6036 * common/config/i386/i386-common.c (ix86_option_optimization_table)
6037 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
6038 at -Os and up.
6039
6040 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6041
6042 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
6043 internal functions.
6044
6045 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6046
6047 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
6048 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
6049
6050 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6051
6052 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
6053 * internal-fn.c: Don't undef it here.
6054 * tree-core.h: Likewise.
6055
6056 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6057
6058 * builtins.c (fold_builtin_nan): Delete.
6059 (fold_builtin_memcmp): Remove case where both arguments are constant.
6060 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
6061 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
6062 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
6063 * fold-const-call.c: Include fold-const.h.
6064 (host_size_t_cst_p): New function.
6065 (build_cmp_result, fold_const_builtin_nan): Likewise.
6066 (fold_const_call_1): New function, split out from...
6067 (fold_const_call): ...here (for all three interfaces). Handle
6068 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
6069
6070 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6071
6072 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
6073 (fold_builtin_1): Don't call them.
6074 * fold-const-call.c: Include tm.h.
6075 (fold_const_call_ss): New variant for integer-to-integer folds.
6076 (fold_const_call): Call it.
6077
6078 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6079
6080 * builtins.c (fold_builtin_classify): Move constant cases to...
6081 * fold-const-call.c (fold_const_call_ss): ...here.
6082
6083 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6084
6085 * builtins.h (c_getstr): Move to...
6086 * fold-const.h (c_getstr): ...here.
6087 * builtins.c (c_getstr): Move to...
6088 * fold-const.c (c_getstr): ...here.
6089
6090 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6091
6092 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
6093 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
6094
6095 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6096
6097 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
6098 the dominance info; free it if we can't.
6099 (pass_call_cdce::execute): Don't free the dominance info here.
6100
6101 2015-11-06 Jeff Law <law@redhat.com>
6102
6103 * tree-ssa-threadedge.c (dummy_simplify): Remove.
6104 (thread_around_empty_blocks): Remove backedge_seen_p argument.
6105 If we thread to a backedge, then return false. Update recursive
6106 call to eliminate backedge_seen_p argument.
6107 (thread_through_normal_block): Remove backedge_seen_p argument.
6108 Remove backedge_seen_p argument from calls to
6109 thread_around_empty_blocks. Remove checks on backedge_seen_p.
6110 If we thread to a backedge, then return 0.
6111 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
6112 pass it to thread_through_normal_block or thread_through_empty_blocks.
6113 For joiner handling, if we see a backedge, do not try normal
6114 threading.
6115
6116 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6117
6118 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
6119 * graphite-poly.c (new_scop): Initialize original_schedule.
6120 (free_scop): Free original_schedule.
6121 * graphite-poly.h (struct scop): Add field original_schedule.
6122 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
6123 (build_poly_scop): Call build_scop_original_schedule.
6124
6125 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6126
6127 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
6128 (build_pbb_minimal_scattering_polyhedrons): New.
6129 (build_scop_scattering): Remove.
6130 (build_scop_minimal_scattering): New.
6131 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
6132 (build_poly_scop): Call build_scop_minimal_scattering.
6133
6134 2015-11-06 Jeff Law <law@redhat.com>
6135
6136 * cfg-flags.def (IGNORE): New edge flag.
6137 * tree-vrp.c (identify_jump_threads): Mark and clear edges
6138 scheduled for removal with EDGE_IGNORE around call into
6139 jump threader. Do no thread across edges with EDGE_IGNORE,
6140 but do allow threading across those with EDGE_DFS_BACK.
6141
6142 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
6143
6144 * doc/md.texi (multi-alternative constraints): Don't document
6145 alternatives inherently tied to reload for the user documentation.
6146
6147 2015-11-06 Michael Collison <michael.collison@linaro.org>
6148 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6149
6150 Revert:
6151 2015-08-01 Michael Collison <michael.collison@linaro.org
6152 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6153
6154 * config/arm/arm.md (*arm_smin_cmp): New pattern.
6155 (*arm_umin_cmp): Likewise.
6156
6157 2015-11-06 Jakub Jelinek <jakub@redhat.com>
6158
6159 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
6160 * omp-low.c (check_omp_nesting_restrictions): Update for the
6161 various new OpenMP 4.5 nesting restrictions, clarified
6162 nesting glossary, closely nested region relationship clarified
6163 to mean explicit or implicit parallel regions (target/teams),
6164 use %</%> or %qs where appropriate.
6165
6166 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
6167 Sebastian Pop <s.pop@samsung.com>
6168
6169 * graphite-scop-detection.c (loop_is_valid_scop): Call
6170 optimize_loop_nest_for_speed_p.
6171
6172 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
6173 Sebastian Pop <s.pop@samsung.com>
6174
6175 * graphite-optimize-isl.c (optimize_isl): Call
6176 isl_options_set_schedule_maximize_band_depth.
6177
6178 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
6179 Sebastian Pop <s.pop@samsung.com>
6180
6181 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
6182 and exit edges should not be a part of irreducible loop.
6183 (scop_detection::can_represent_loop_1): Loops should not be
6184 irreducible.
6185 (scop_detection::harmful_stmt_in_region): All the basic block
6186 should belong to reducible loops.
6187
6188 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
6189
6190 * config/aarch64/aarch64-simd-builtins.def: Update builtins
6191 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
6192 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
6193 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
6194 (aarch64_tbx4v8qi): Rename to...
6195 aarch64_tbx4<mode>): ... this.
6196 (aarch64_qtbl3<mode>): New pattern.
6197 (aarch64_qtbx3<mode>): New pattern.
6198 (aarch64_qtbl4<mode>): New pattern.
6199 (aarch64_qtbx4<mode>): New pattern.
6200 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
6201 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
6202 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
6203 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
6204 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
6205 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
6206 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
6207 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
6208 functions.
6209
6210 2015-11-06 Mike Stump <mikestump@comcast.net>
6211
6212 PR debug/66728
6213 * dwarf2out.c (get_full_len): Return a value based upon the actual
6214 precision needed for the value.
6215 (add_const_value_attribute): Use a maximal wide-int for
6216 CONST_WIDE_INTs, not VOIDmode.
6217 (output_die): Don't ever output NULL with printf.
6218
6219 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
6220 BLKmode nor VOIDmode values.
6221
6222 2015-11-06 David Malcolm <dmalcolm@redhat.com>
6223
6224 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
6225 and "range2".
6226 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
6227 * diagnostic-core.h (warning_at_rich_loc): New declaration.
6228 (error_at_rich_loc): New declaration.
6229 (permerror_at_rich_loc): New declaration.
6230 (inform_at_rich_loc): New declaration.
6231 * diagnostic-show-locus.c (adjust_line): Delete.
6232 (struct point_state): New struct.
6233 (class colorizer): New class.
6234 (class layout_point): New class.
6235 (class layout_range): New class.
6236 (struct line_bounds): New.
6237 (class layout): New class.
6238 (colorizer::colorizer): New ctor.
6239 (colorizer::~colorizer): New dtor.
6240 (layout::layout): New ctor.
6241 (layout::print_source_line): New method.
6242 (layout::print_annotation_line): New method.
6243 (layout::get_state_at_point): New method.
6244 (layout::get_x_bound_for_row): New method.
6245 (diagnostic_show_locus): Reimplement in terms of class layout.
6246 (diagnostic_print_caret_line): Delete.
6247 * diagnostic.c (diagnostic_initialize): Replace
6248 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
6249 (diagnostic_set_info_translated): Convert param from location_t
6250 to rich_location *. Eliminate calls to set_location on the
6251 message in favor of storing the rich_location ptr there.
6252 (diagnostic_set_info): Convert param from location_t to
6253 rich_location *.
6254 (diagnostic_build_prefix): Break out array into...
6255 (diagnostic_kind_color): New variable.
6256 (diagnostic_get_color_for_kind): New function.
6257 (diagnostic_report_diagnostic): Colorize the option_text
6258 using the color for the severity.
6259 (diagnostic_append_note): Update for change in signature of
6260 diagnostic_set_info.
6261 (diagnostic_append_note_at_rich_loc): New function.
6262 (emit_diagnostic): Update for change in signature of
6263 diagnostic_set_info.
6264 (inform): Likewise.
6265 (inform_at_rich_loc): New function.
6266 (inform_n): Update for change in signature of diagnostic_set_info.
6267 (warning): Likewise.
6268 (warning_at): Likewise.
6269 (warning_at_rich_loc): New function.
6270 (warning_n): Update for change in signature of diagnostic_set_info.
6271 (pedwarn): Likewise.
6272 (permerror): Likewise.
6273 (permerror_at_rich_loc): New function.
6274 (error): Update for change in signature of diagnostic_set_info.
6275 (error_n): Likewise.
6276 (error_at): Likewise.
6277 (error_at_rich_loc): New function.
6278 (sorry): Update for change in signature of diagnostic_set_info.
6279 (fatal_error): Likewise.
6280 (internal_error): Likewise.
6281 (internal_error_no_backtrace): Likewise.
6282 (source_range::debug): New function.
6283 * diagnostic.h (struct diagnostic_info): Eliminate field
6284 "override_column". Add field "richloc".
6285 (struct diagnostic_context): Add field "colorize_source_p".
6286 (diagnostic_override_column): Delete.
6287 (diagnostic_set_info): Convert param from location_t to
6288 rich_location *.
6289 (diagnostic_set_info_translated): Likewise.
6290 (diagnostic_append_note_at_rich_loc): New function.
6291 (diagnostic_num_locations): New function.
6292 (diagnostic_expand_location): Get the location from the
6293 rich_location.
6294 (diagnostic_print_caret_line): Delete.
6295 (diagnostic_get_color_for_kind): New declaration.
6296 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
6297 (error_cb): Update for change in signature of "error" callback.
6298 (fatal_at): Likewise.
6299 (warning_at): Likewise.
6300 * input.c (linemap_client_expand_location_to_spelling_point): New.
6301 * pretty-print.c (text_info::set_range): New method.
6302 (text_info::get_location): New method.
6303 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
6304 (struct text_info): Eliminate "locations" array in favor of
6305 "m_richloc", a rich_location *.
6306 (textinfo::set_location): Add a "caret_p" param, and reimplement
6307 in terms of a call to set_range.
6308 (textinfo::get_location): Eliminate inline implementation in favor of
6309 an out-of-line reimplementation.
6310 (textinfo::set_range): New method.
6311 * rtl-error.c (diagnostic_for_asm): Update for change in signature
6312 of diagnostic_set_info.
6313 * tree-diagnostic.c (default_tree_printer): Update for new
6314 "caret_p" param for textinfo::set_location.
6315 * tree-pretty-print.c (percent_K_format): Likewise.
6316
6317 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6318
6319 Properly apply.
6320 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6321 * config/aarch64/aarch64.c
6322 (aarch64_can_use_per_function_literal_pools_p): New.
6323 (aarch64_use_blocks_for_constant_p): Adjust declaration
6324 and use aarch64_can_use_function_literal_pools_p.
6325 (aarch64_select_rtx_section): Update.
6326
6327 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6328
6329 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
6330 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
6331 (arm_output_multireg_pop): Likewise.
6332 (output_move_double): Likewise.
6333 (output_move_quad): Likewise.
6334 (output_return_instruction): Likewise.
6335 (arm_print_operand): Remove support for %( and %. print modifiers.
6336 (arm_output_shift): Make unified asm.
6337 (arm_declare_function_name): Likewise.
6338 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
6339 (ASM_APP_OFF): Adjust.
6340 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
6341 (ASM_OUTPUT_REG_POP): Likewise.
6342 * config/arm/arm.md: Adjust uses of %., %(, %)
6343 * config/arm/sync.md: Likewise.
6344 * config/arm/thumb2.md: Likewise.
6345 * config/arm/ldmstm.md: Regenerate.
6346 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
6347 * doc/invoke.texi (masm-unified-syntax): Update documentation.
6348
6349 2015-11-06 David Malcolm <dmalcolm@redhat.com>
6350
6351 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
6352
6353 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
6354
6355 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
6356 add OEP_MATCH_SIDE_EFFECTS.
6357 * fold-const.c (operand_equal_p): Update documentation; handle
6358 OEP_MATCH_SIDE_EFFECTS.
6359 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
6360 OEP_MATCH_SIDE_EFFECTS.
6361
6362 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
6363 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
6364
6365 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
6366 * config/aarch64/aarch64-protos.h: Declare.
6367 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
6368 frsqrts.
6369 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
6370 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
6371 code when applicable.
6372 * config/aarch64/aarch64.md: Added enum entries.
6373 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
6374
6375 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
6376
6377 PR ipa/68057
6378 PR ipa/68220
6379 * ipa-polymorphic-call.c
6380 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
6381 issue when offset is out of range.
6382 (contains_type_p): Fix out of range check, clear dynamic flag.
6383
6384 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
6385
6386 * config.gcc (e6500): Fix cpu_is_64bit typo.
6387
6388 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
6389
6390 * tree-sra.c (completely_scalarize): Properly handle negative array
6391 indices using offset_int.
6392
6393 2015-11-06 Richard Biener <rguenther@suse.de>
6394
6395 * alloc-pool.h (object_allocator::allocate): Default-initialize
6396 object.
6397
6398 2015-11-06 Richard Biener <rguenther@suse.de>
6399
6400 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
6401 * lra.c (init_reg_info): Truncate copy_vec instead of
6402 re-allocating a new one and leaking the old.
6403 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
6404 bb_infos vec.
6405 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
6406 * postreload-gcse.c (free_mem): Free modify_mem_list and
6407 canon_modify_mem_list.
6408
6409 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
6410
6411 PR tree-optimization/68145
6412 * tree-vect-stmts.c (vectorizable_operation): Fix
6413 determination for booleans.
6414
6415 2015-11-06 Tom de Vries <tom@codesourcery.com>
6416
6417 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
6418 cond_jump, instead of split after last nondebug insn before cond_jump.
6419 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
6420 returning.
6421
6422 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6423
6424 PR target/68088
6425 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
6426 subregs from accumulator and make sure it's a register.
6427
6428 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
6429
6430 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
6431 low part to scalar.
6432 (reduc_uplus_<mode>): Remove.
6433 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
6434 loongson_extract_lo_<mode>.
6435 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
6436 reduc_smax_<mode>, reduc_smax_<mode>, use vec
6437 loongson_extract_lo_<mode>.
6438 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
6439
6440 2015-11-06 Richard Biener <rguenther@suse.de>
6441
6442 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
6443 members.
6444 (vect_stmt_in_region_p): Declare.
6445 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
6446 (destroy_bb_vec_info): Likewise.
6447 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
6448 (vect_get_and_check_slp_defs): Likewise.
6449 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
6450 (vect_slp_bb): Likewise.
6451 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
6452 in terms of vect_stmt_in_region_p.
6453 (vect_pattern_recog): Iterate over the BB region.
6454 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
6455 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
6456 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
6457 * config/i386/i386.c: Include gimple-iterator.h.
6458 * config/aarch64/aarch64.c: Likewise.
6459
6460 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
6461
6462 PR rtl-optimization/67753
6463 PR rtl-optimization/64164
6464 * function.c (assign_parm_setup_block): Avoid allocating a
6465 stack slot if we don't have an ABI-reserved one. Emit the
6466 copy to target_reg in the conversion seq if the copy from
6467 entry_parm is in it too. Don't use the conversion seq to copy
6468 a PARALLEL to a REG or a CONCAT.
6469
6470 2015-11-06 Richard Biener <rguenther@suse.de>
6471
6472 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
6473 equal_keys.
6474
6475 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
6476 Thomas Schwinge <thomas@codesourcery.com>
6477 James Norris <jnorris@codesourcery.com>
6478
6479
6480 * gimplify.c (gimplify_scan_omp_clauses): Add support for
6481 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
6482 (gimplify_adjust_omp_clauses): Likewise.
6483 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
6484 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
6485 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
6486 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
6487 (omp_clause_code_name): Likewise.
6488 (walk_tree_1): Handle OMP_CLAUSE_TILE.
6489 * tree.h (OMP_TILE_LIST): New macro.
6490
6491 2015-11-05 Martin Sebor <msebor@redhat.com>
6492
6493 PR c++/67942
6494 * doc/invoke.texi (-Wplacement-new): Document new option.
6495
6496 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
6497
6498 PR tree-optimization/65963
6499 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
6500 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
6501
6502 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
6503
6504 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
6505 (noce_convert_multiple_sets): Likewise.
6506 (noce_process_if_block): Call them.
6507
6508 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
6509
6510 * gimple-fold.c: Include omp-low.h.
6511 (fold_internal_goacc_dim): New.
6512 (gimple_fold_call): Call it.
6513
6514 2015-11-05 Jakub Jelinek <jakub@redhat.com>
6515 Ilya Verbin <ilya.verbin@intel.com>
6516
6517 * builtin-types.def
6518 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
6519 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
6520 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
6521 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
6522 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
6523 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
6524 (struct cgraph_simd_clone_arg): Adjust comment.
6525 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
6526 to GOMP_target_ext. Add num_teams and thread_limit arguments.
6527 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
6528 to GOMP_target_data_ext.
6529 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
6530 to GOMP_target_update_ext.
6531 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
6532 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
6533 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
6534 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
6535 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
6536 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
6537 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
6538 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
6539 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
6540 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
6541 * tree-core.h (enum omp_clause_schedule_kind): Add
6542 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
6543 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
6544 OMP_CLAUSE_SCHEDULE_LAST value.
6545 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
6546 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
6547 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
6548 OMP_FOR_CHECK. Remove comment.
6549 * tree-pretty-print.c (dump_omp_clause): Handle
6550 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
6551 Simplify. Print schedule clause modifiers.
6552 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
6553 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
6554 cases.
6555 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
6556 (omp_default_clause): Tweak for
6557 private/firstprivate/is_device_ptr variables on target
6558 construct and use_device_ptr on target data.
6559 (omp_check_private): Likewise.
6560 (omp_notice_variable): For references check whether what it refers
6561 to has mappable type, rather than the reference itself.
6562 (omp_is_private): Diagnose linear iteration variables on non-simd
6563 constructs.
6564 (omp_no_lastprivate): Return true only for Fortran.
6565 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
6566 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
6567 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
6568 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
6569 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
6570 lastprivate and linear when combined with distribute. Gimplify
6571 variable low-bound for array reduction. Look through
6572 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
6573 reductions.
6574 (gimplify_adjust_omp_clauses_1): For implicit references to
6575 variables with reference type and when not ref to scalar or
6576 ref to pointer, map what they refer to using tofrom and
6577 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
6578 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
6579 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
6580 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
6581 Diagnose the same var on both firstprivate and lastprivate on
6582 distribute construct.
6583 (gimplify_omp_for): Fix up handling of predetermined
6584 lastprivate or linear iter vars when combined with distribute.
6585 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
6586 functions.
6587 (gimplify_omp_workshare): Call optimize_target_teams.
6588 * omp-low.c (struct omp_region): Add sched_modifiers field.
6589 (struct omp_for_data): Likewise.
6590 (omp_any_child_fn_dumped): New variable.
6591 (extract_omp_for_data): Fill in sched_modifiers, and mask out
6592 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
6593 from sched_kind.
6594 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
6595 bits of OMP_CLAUSE_SCHED_KIND.
6596 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
6597 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
6598 for array section reductions.
6599 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
6600 for distribute parallel for, if there are lastprivate clauses on the
6601 for.
6602 (lower_rec_input_clauses): Handle non-zero low-bound on array
6603 section reductions.
6604 (lower_reduction_clauses): Likewise.
6605 (lower_send_clauses): Look through POINTER_PLUS_EXPR
6606 for array section reductions.
6607 (expand_parallel_call): Use nonmonotonic entrypoints for
6608 nonmonotonic: dynamic/guided.
6609 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
6610 child_fn if current_function_decl has assembler name set, but child_fn
6611 does not. Dump the header and IL of the child function when not in SSA
6612 form.
6613 (expand_omp_target): Likewise. Pass num_teams and thread_limit
6614 arguments to BUILT_IN_GOMP_TARGET.
6615 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
6616 Initialize the extra _looptemp_ clause to fd->loop.n2.
6617 (expand_omp_for): Use nonmonotonic entrypoints for
6618 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
6619 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
6620 again if we have dumped any child functions.
6621 (lower_omp_for_lastprivate): Determine the right count variable
6622 for distribute simd, or distribute parallel for{, simd}.
6623 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
6624 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
6625 support.
6626 (simd_clone_clauses_extract): Handle variable step
6627 for references and arguments passed by reference.
6628 (simd_clone_mangle): Mangle ref/uval/val variable steps.
6629 (simd_clone_adjust_argument_types): Handle
6630 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
6631 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
6632 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
6633 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
6634 (simd_clone_linear_addend): New function.
6635 (simd_clone_adjust): Handle variable step like similarly
6636 to constant step, use simd_clone_linear_addend to determine
6637 the actual step at runtime.
6638
6639 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
6640
6641 * target.def (goacc.dim_limit): New hook.
6642 * targhooks.h (default_goacc_dim_limit): Declare.
6643 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
6644 * doc/tm.texi: Rebuilt.
6645 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
6646 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
6647 (default_goacc_dim_limit): New.
6648 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
6649 (nvptx_goacc_dim_limit) New.
6650 (TARGET_GOACC_DIM_LIMIT): Override.
6651 * tree-vrp.c: Include omp-low.h, target.h.
6652 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
6653 IFN_GOACC_DIM_POS.
6654
6655 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
6656
6657 * tree-vect-generic.c (do_compare): Use -1 for true
6658 result instead of 1.
6659
6660 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6661
6662 * config/aarch64/aarch64.c
6663 (aarch64_can_use_per_function_literal_pools_p): New.
6664 (aarch64_use_blocks_for_constant_p): Adjust declaration
6665 and use aarch64_can_use_function_literal_pools_p.
6666 (aarch64_select_rtx_section): Update.
6667
6668 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
6669
6670 * targhooks.c (default_get_mask_mode): Use BLKmode in
6671 case target doesn't support required vector mode.
6672 * stor-layout.c (layout_type); Check for BLKmode.
6673
6674 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
6675 Sebastian Pop <s.pop@samsung.com>
6676
6677 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
6678 Remove use of parameter_rename_map.
6679 (copy_def): Remove.
6680 (copy_internal_parameters): Remove.
6681 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
6682 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
6683 (free_sese_info): Do not free parameter_rename_map.
6684 (set_rename): Do not use parameter_rename_map.
6685 (rename_uses): Update call to set_rename.
6686 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
6687 * sese.h (parameter_rename_map_t): Remove.
6688 (struct sese_info_t): Remove field parameter_rename_map.
6689
6690 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
6691 Sebastian Pop <s.pop@samsung.com>
6692
6693 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
6694 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
6695 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
6696 anonymous namespace.
6697 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
6698 (isl_id_for_pbb): Use a buffer of size 10.
6699 (isl_id_for_ssa_name): Same.
6700 * sese.c (set_rename): Add more dumps.
6701
6702 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6703
6704 * omp-low.c (struct omp_context): Remove reduction_map field.
6705 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
6706 (new_omp_context, delete_omp_context, scan_omp_target): Remove
6707 reduction_map handling.
6708 (lower_omp_target): Remove obsolete openacc reduction handling.
6709
6710 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6711
6712 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
6713
6714 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6715 Cesar Philippidis <cesar@codesourcery.com>
6716
6717 * config/nvptx/nvptx.c: Include gimple headers.
6718 (worker_red_size, worker_red_align, worker_red_name,
6719 worker_red_sym): New.
6720 (nvptx_option_override): Initialize worker reduction buffer.
6721 (nvptx_file_end): Write out worker reduction buffer var.
6722 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
6723 nvptx_expand_cmp_swap): New builtin expanders.
6724 (enum nvptx_builtins): New.
6725 (nvptx_builtin_decls): New.
6726 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
6727 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
6728 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
6729 nvptx_lockless_update): New helpers.
6730 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
6731 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
6732 (nvptx_goacc_reduction): New.
6733 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
6734 TARGET_BUILTIN_DECL): Override.
6735 (TARGET_GOACC_REDUCTION): Override.
6736
6737 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6738 Cesar Philippidis <cesar@codesourcery.com>
6739
6740 * internal-fn.def (GOACC_REDUCTION): New.
6741 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
6742 * internal-fn.c (expand_GOACC_REDUCTION): New.
6743 * target.def (goacc.reduction): New OpenACC hook.
6744 * targhooks.h (default_goacc_reduction): Declare.
6745 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
6746 * doc/tm.texi: Rebuilt.
6747 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
6748 scan_sharing_clauses): Remove oacc reduction handling here.
6749 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
6750 (oacc_lower_reduction_var_helper): Delete.
6751 (lower_oacc_reductions): New.
6752 (lower_reduction_clauses): Don't handle OpenACC reductions here.
6753 (lower_oacc_head_tail): Call lower_oacc_reductions.
6754 (oacc_gimple_assign, oacc_init_reduction_array,
6755 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
6756 oacc_process_reduction_data): Delete.
6757 (lower_omp_target): Remove old OpenACC reduction handling. Insert
6758 dummy OpenACC gang reduction for reductions at outer level.
6759 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
6760 (default_goacc_reduction): New.
6761 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
6762
6763 2015-11-04 Martin Liska <mliska@suse.cz>
6764
6765 * cgraphunit.c (cgraph_node::expand_thunk): Call
6766 allocate_struct_function before init_function_start.
6767 (cgraph_node::expand): Use push_cfun and pop_cfun.
6768 * config/i386/i386.c (ix86_code_end): Call
6769 allocate_struct_function before init_function_start.
6770 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
6771 * function.c (init_function_start): Move preamble to all
6772 callers.
6773 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
6774 (execute_one_pass): Handle newly added TODO_discard_function.
6775 (execute_pass_list_1): Terminate if cfun equals to NULL.
6776 (execute_pass_list): Do not push and pop cfun, expect that
6777 cfun is set.
6778 * tree-pass.h (TODO_discard_function): Define.
6779
6780 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
6781
6782 * cfganal.c (inverted_post_order_compute): Remove conditional
6783 compilation, use flag_checking.
6784 * config.in: Regenerate.
6785 * configure: Regenerate.
6786 * configure.ac: Remove ENABLE_CHECKING.
6787 * genconditions.c: Do not #undef ENABLE_CHECKING.
6788 * sese.h (bb_in_region): Comment out broken check.
6789 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
6790 conditional compilation, use flag_checking.
6791
6792 2015-11-04 Tom de Vries <tom@codesourcery.com>
6793
6794 PR tree-optimization/67742
6795 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
6796 field.
6797 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
6798 (create_variable_info_for_1): Add and handle handle_param parameter.
6799 Add restrict handling.
6800 (create_variable_info_for): Call create_variable_info_for_1 with extra
6801 arg.
6802 (make_param_constraints): Drop restrict_name parameter. Ignore
6803 vi->only_restrict_pointers.
6804 (intra_create_variable_infos): Call create_variable_info_for_1 with
6805 extra arg. Remove restrict handling. Call make_param_constraints with
6806 one fewer arg.
6807
6808 2015-11-04 Tom de Vries <tom@codesourcery.com>
6809
6810 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
6811 variable.
6812
6813 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6814
6815 * config/arm/coff.h: Remove.
6816
6817 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
6818
6819 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
6820 check for aggregate types and beef up comment for mode check.
6821
6822 2015-11-03 Richard Biener <rguenther@suse.de>
6823
6824 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
6825 data references here.
6826 * tree-vect-loop.c: Include cgraph.h.
6827 (vect_analyze_loop_2): Collect data references here.
6828 * tree-vect-slp.c (find_bb_location): Inline ...
6829 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
6830 Factor in vect_slp_transform_bb.
6831 (vect_slp_transform_bb): Removed.
6832 (vect_slp_analyze_bb_1): Collect data references here.
6833 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
6834 vect_slp_bb.
6835 * tree-vectorizer.h (vect_slp_bb): Declare.
6836 (vect_slp_analyze_bb): Remove.
6837 (vect_slp_transform_bb): Remove.
6838 (find_bb_location): Remove.
6839 (vect_analyze_data_refs): Remove stmt count reference parameter.
6840
6841 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
6842
6843 * multiple_target.c (create_dispatcher_calls): Add target check
6844 on ifunc.
6845 (create_target_clone): Change assembler name for versioned declarations.
6846
6847 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
6848 Chung-Lin Tang <cltang@codesourcery.com>
6849
6850 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
6851 * omp-low.c (check_omp_nesting_restrictions): Allow
6852 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
6853 contexts.
6854
6855 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
6856
6857 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
6858 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
6859 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
6860 builtin.
6861 (vmulxq_f32): Likewise.
6862 (vmulx_f64): New.
6863 (vmulxq_f64): Rewrite to call fmulx builtin.
6864 (vmulxs_f32): Likewise.
6865 (vmulxd_f64): Likewise.
6866 (vmulx_lane_f32): Remove.
6867 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
6868
6869 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
6870
6871 * config/aarch64/aarch64.md (*movhf_aarch64): Use
6872 aarch64_reg_or_fp_zero for second operand.
6873
6874 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
6875
6876 * gimple-expr.c: Include hash-set.h and rtl.h.
6877 (mark_addressable_queue): New var.
6878 (mark_addressable): Factor actual marking into...
6879 (mark_addressable_1): ... this. Queue it up during expand.
6880 (mark_addressable_2): New.
6881 (flush_mark_addressable_queue): New.
6882 * gimple-expr.h (flush_mark_addressable_queue): Declare.
6883 * cfgexpand.c: Include gimple-expr.h.
6884 (pass_expand::execute): Flush mark_addressable queue.
6885
6886 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
6887
6888 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
6889 bb_no_side_effects_p tests...
6890 (tree_ssa_ifcombine_bb): ... here.
6891
6892 PR tree-optimization/68083
6893 * tree-ssa-ifcombine.c: Include tree-ssa.h.
6894 (bb_no_side_effects_p): Test for undefined uses too.
6895 * tree-ssa.c (gimple_uses_undefined_value_p): New.
6896 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
6897
6898 2015-11-02 Jeff Law <law@redhat.com>
6899
6900 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
6901 cases where the loop latch edge is in the middle of an FSM path.
6902
6903 2015-11-03 Tom de Vries <tom@codesourcery.com>
6904
6905 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
6906 (make_param_constraints): ... this. Add and handle restrict_name
6907 parameter. Handle is_full_var case.
6908 (intra_create_variable_infos): Use make_param_constraints.
6909
6910 2015-11-03 Tom de Vries <tom@codesourcery.com>
6911
6912 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
6913 make_copy_constraint call with make_constraint_from call.
6914
6915 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
6916
6917 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
6918 PIE executables.
6919
6920 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
6921
6922 * builtins.h (fold_fma): Move to fold-const-call.h.
6923 * builtins.c: Include fold-const-call.h.
6924 (mathfn_built_in_2): New function, split out from...
6925 (mathfn_built_in_1): ...here.
6926 (do_real_to_int_conversion, fold_const_builtin_pow)
6927 (fold_const_builtin_logb, fold_const_builtin_significand)
6928 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
6929 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
6930 (fold_builtin_sincos): Use fold_const_call to handle constants.
6931 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
6932 checks for ERROR_MARK. Use fold_const_call to handle constant
6933 folds for math functions.
6934 (fold_fma): Move to fold-const-call.c.
6935 * fold-const.c: Include fold-const-call.h.
6936 * Makefile.in (OBJS): Add fold-const-call.o.
6937 (PLUGIN_HEADERS): Add fold-const-call.h.
6938 * realmpfr.h (real_from_mpfr): Allow the format to be specified
6939 directly.
6940 * realmpfr.c (real_from_mpfr): Likewise.
6941 * fold-const-call.h, fold-const-call.c: New files.
6942
6943 2015-11-02 Julian Brown <julian@codesourcery.com>
6944
6945 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
6946 brackets and semicolon.
6947
6948 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
6949
6950 Revert:
6951 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
6952
6953 PR tree-optimization/65963
6954 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
6955 LSHIFT_EXPRs as equivalent MULT_EXPRs.
6956
6957 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
6958
6959 PR middle-end/68166
6960 * fold-const.c: Include "md5.h".
6961
6962 2015-11-01 Jeff Law <law@redhat.com>
6963
6964 * vmsdbgout.c: Revert unused header file reduction patch.
6965
6966 * config/mcore/mcore.c: Include regs.h.
6967
6968 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
6969
6970 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
6971
6972 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
6973
6974 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
6975 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
6976 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
6977
6978 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
6979
6980 * ggc-common.c: Restore needed header for checking=release.
6981
6982 2015-10-31 Tom de Vries <tom@codesourcery.com>
6983
6984 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
6985
6986 2015-10-31 Tom de Vries <tom@codesourcery.com>
6987
6988 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
6989 existing varinfo for arguments.
6990
6991 2015-10-31 Tom de Vries <tom@codesourcery.com>
6992
6993 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
6994 create_function_info_for. Dump constraints generated during
6995 create_function_info_for. Move intra_create_variable_infos call and
6996 function-return-values-escape bit to ...
6997 (create_function_info_for): ... here, and merge
6998 intra_create_variable_infos call with argument loop. Add and handle
6999 nonlocal_p parameter.
7000
7001 2015-10-31 Tom de Vries <tom@codesourcery.com>
7002
7003 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
7004 updating is alap, and seperated from preceding code. Make sure
7005 insert_vi_for_tree is seperated from surrounding code.
7006
7007 2015-10-31 Tom de Vries <tom@codesourcery.com>
7008
7009 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
7010
7011 2015-10-30 Jeff Law <law@redhat.com>
7012 Nathan Sidwell <nathan@acm.org>
7013
7014 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
7015 args.
7016 (MOVE_MAX): Set to 8.
7017
7018 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
7019
7020 * cgraph.c: Include context.h for offloading.
7021 * varpool.c: Include context.h and omp-low.h.
7022
7023 2015-10-30 Anatoly Sokolov <aesok@post.ru>
7024
7025 * rtl.h (contains_symbol_ref_p): Declare.
7026 (SYMBOL_REF_P): Define.
7027 * rtlanal.c (contains_symbol_ref_p: New function.
7028 * lra-constraints.c (contains_symbol_ref_p): Remove.
7029 * var-tracking.c (contains_symbol_ref): Remove.
7030 (track_expr_p): Use contains_symbol_ref_p instead of
7031 contains_symbol_ref.
7032
7033 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
7034
7035 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
7036 * fold-const.c (get_array_ctor_element_at_index): New.
7037 (fold): Remove binary-search through CONSTRUCTOR, call previous.
7038
7039 * fold-const.h (get_array_ctor_element_at_index): New.
7040
7041 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
7042
7043 * Makefile.in (OBJS): Add multiple_target.o.
7044 * attrib.c (make_attribute): Moved from config/i386/i386.c
7045 * config/i386/i386.c (make_attribute): Deleted.
7046 * multiple_target.c (create_dispatcher_calls): New.
7047 (get_attr_len): Ditto.
7048 (get_attr_str): Ditto.
7049 (separate_attrs): Ditto.
7050 (is_valid_asm_symbol): Ditto.
7051 (create_new_asm_name): Ditto.
7052 (create_target_clone): Ditto.
7053 (expand_target_clones): Ditto.
7054 (ipa_target_clone): Ditto.
7055 (ipa_dispatcher_calls): Ditto.
7056 * passes.def (pass_target_clone): Two new ipa passes.
7057 * tree-pass.h (make_pass_target_clone): Ditto.
7058 * doc/extend.texi (target_clones): New attribute description.
7059
7060 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
7061
7062 PR rtl-optimization/68106
7063 * lra-remat.c (input_regno_present_p): Process hard regs
7064 explicitly present in machine description insns.
7065 (call_used_input_regno_present_p): Ditto.
7066 (calculate_gen_cands): Ditto.
7067 (do_remat): Ditto.
7068
7069 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
7070
7071 * config/arm/neon-testgen.ml: Fix comment typo.
7072
7073 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7074
7075 * rtlanal.c (reg_set_p): Expand function comment.
7076
7077 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
7078
7079 * alias.c: Remove unused headers.
7080 * asan.c: Likewise.
7081 * attribs.c: Likewise.
7082 * auto-inc-dec.c: Likewise.
7083 * auto-profile.c: Likewise.
7084 * bb-reorder.c: Likewise.
7085 * bitmap.c: Likewise.
7086 * bt-load.c: Likewise.
7087 * builtins.c: Likewise.
7088 * caller-save.c: Likewise.
7089 * calls.c: Likewise.
7090 * ccmp.c: Likewise.
7091 * cfg.c: Likewise.
7092 * cfganal.c: Likewise.
7093 * cfgbuild.c: Likewise.
7094 * cfgcleanup.c: Likewise.
7095 * cfgexpand.c: Likewise.
7096 * cfghooks.c: Likewise.
7097 * cfgloop.c: Likewise.
7098 * cfgloopanal.c: Likewise.
7099 * cfgloopmanip.c: Likewise.
7100 * cfgrtl.c: Likewise.
7101 * cgraph.c: Likewise.
7102 * cgraphbuild.c: Likewise.
7103 * cgraphclones.c: Likewise.
7104 * cgraphunit.c: Likewise.
7105 * cilk-common.c: Likewise.
7106 * combine-stack-adj.c: Likewise.
7107 * combine.c: Likewise.
7108 * compare-elim.c: Likewise.
7109 * convert.c: Likewise.
7110 * coverage.c: Likewise.
7111 * cppbuiltin.c: Likewise.
7112 * cprop.c: Likewise.
7113 * cse.c: Likewise.
7114 * cselib.c: Likewise.
7115 * data-streamer-in.c: Likewise.
7116 * data-streamer-out.c: Likewise.
7117 * data-streamer.c: Likewise.
7118 * dbxout.c: Likewise.
7119 * dce.c: Likewise.
7120 * ddg.c: Likewise.
7121 * debug.c: Likewise.
7122 * df-core.c: Likewise.
7123 * df-problems.c: Likewise.
7124 * df-scan.c: Likewise.
7125 * dfp.c: Likewise.
7126 * dojump.c: Likewise.
7127 * dominance.c: Likewise.
7128 * domwalk.c: Likewise.
7129 * double-int.c: Likewise.
7130 * dse.c: Likewise.
7131 * dumpfile.c: Likewise.
7132 * dwarf2asm.c: Likewise.
7133 * dwarf2cfi.c: Likewise.
7134 * dwarf2out.c: Likewise.
7135 * emit-rtl.c: Likewise.
7136 * except.c: Likewise.
7137 * explow.c: Likewise.
7138 * expmed.c: Likewise.
7139 * expr.c: Likewise.
7140 * final.c: Likewise.
7141 * fixed-value.c: Likewise.
7142 * fold-const.c: Likewise.
7143 * function.c: Likewise.
7144 * fwprop.c: Likewise.
7145 * gcse.c: Likewise.
7146 * generic-match-head.c: Likewise.
7147 * ggc-common.c: Likewise.
7148 * gimple-builder.c: Likewise.
7149 * gimple-expr.c: Likewise.
7150 * gimple-fold.c: Likewise.
7151 * gimple-iterator.c: Likewise.
7152 * gimple-low.c: Likewise.
7153 * gimple-match-head.c: Likewise.
7154 * gimple-pretty-print.c: Likewise.
7155 * gimple-ssa-isolate-paths.c: Likewise.
7156 * gimple-ssa-strength-reduction.c: Likewise.
7157 * gimple-streamer-in.c: Likewise.
7158 * gimple-streamer-out.c: Likewise.
7159 * gimple-walk.c: Likewise.
7160 * gimple.c: Likewise.
7161 * gimplify-me.c: Likewise.
7162 * gimplify.c: Likewise.
7163 * godump.c: Likewise.
7164 * graph.c: Likewise.
7165 * graphds.c: Likewise.
7166 * haifa-sched.c: Likewise.
7167 * hw-doloop.c: Likewise.
7168 * ifcvt.c: Likewise.
7169 * init-regs.c: Likewise.
7170 * internal-fn.c: Likewise.
7171 * ipa-chkp.c: Likewise.
7172 * ipa-comdats.c: Likewise.
7173 * ipa-cp.c: Likewise.
7174 * ipa-devirt.c: Likewise.
7175 * ipa-icf-gimple.c: Likewise.
7176 * ipa-icf.c: Likewise.
7177 * ipa-inline-analysis.c: Likewise.
7178 * ipa-inline-transform.c: Likewise.
7179 * ipa-inline.c: Likewise.
7180 * ipa-polymorphic-call.c: Likewise.
7181 * ipa-profile.c: Likewise.
7182 * ipa-prop.c: Likewise.
7183 * ipa-pure-const.c: Likewise.
7184 * ipa-ref.c: Likewise.
7185 * ipa-reference.c: Likewise.
7186 * ipa-split.c: Likewise.
7187 * ipa-utils.c: Likewise.
7188 * ipa-visibility.c: Likewise.
7189 * ipa.c: Likewise.
7190 * ira-build.c: Likewise.
7191 * ira-color.c: Likewise.
7192 * ira-conflicts.c: Likewise.
7193 * ira-costs.c: Likewise.
7194 * ira-emit.c: Likewise.
7195 * ira-lives.c: Likewise.
7196 * ira.c: Likewise.
7197 * jump.c: Likewise.
7198 * langhooks.c: Likewise.
7199 * lcm.c: Likewise.
7200 * lists.c: Likewise.
7201 * loop-doloop.c: Likewise.
7202 * loop-init.c: Likewise.
7203 * loop-invariant.c: Likewise.
7204 * loop-iv.c: Likewise.
7205 * loop-unroll.c: Likewise.
7206 * lower-subreg.c: Likewise.
7207 * lra-assigns.c: Likewise.
7208 * lra-coalesce.c: Likewise.
7209 * lra-constraints.c: Likewise.
7210 * lra-eliminations.c: Likewise.
7211 * lra-lives.c: Likewise.
7212 * lra-remat.c: Likewise.
7213 * lra-spills.c: Likewise.
7214 * lra.c: Likewise.
7215 * lto-cgraph.c: Likewise.
7216 * lto-compress.c: Likewise.
7217 * lto-opts.c: Likewise.
7218 * lto-section-in.c: Likewise.
7219 * lto-section-out.c: Likewise.
7220 * lto-streamer-in.c: Likewise.
7221 * lto-streamer-out.c: Likewise.
7222 * lto-streamer.c: Likewise.
7223 * mcf.c: Likewise.
7224 * mode-switching.c: Likewise.
7225 * modulo-sched.c: Likewise.
7226 * optabs.c: Likewise.
7227 * opts-global.c: Likewise.
7228 * passes.c: Likewise.
7229 * plugin.c: Likewise.
7230 * postreload-gcse.c: Likewise.
7231 * postreload.c: Likewise.
7232 * predict.c: Likewise.
7233 * print-tree.c: Likewise.
7234 * profile.c: Likewise.
7235 * real.c: Likewise.
7236 * realmpfr.c: Likewise.
7237 * recog.c: Likewise.
7238 * ree.c: Likewise.
7239 * reg-stack.c: Likewise.
7240 * regcprop.c: Likewise.
7241 * reginfo.c: Likewise.
7242 * regrename.c: Likewise.
7243 * regstat.c: Likewise.
7244 * reload.c: Likewise.
7245 * reload1.c: Likewise.
7246 * reorg.c: Likewise.
7247 * resource.c: Likewise.
7248 * rtl-chkp.c: Likewise.
7249 * rtl-error.c: Likewise.
7250 * rtlanal.c: Likewise.
7251 * rtlhooks.c: Likewise.
7252 * sanopt.c: Likewise.
7253 * sched-deps.c: Likewise.
7254 * sched-ebb.c: Likewise.
7255 * sched-rgn.c: Likewise.
7256 * sdbout.c: Likewise.
7257 * sel-sched-dump.c: Likewise.
7258 * sel-sched-ir.c: Likewise.
7259 * sel-sched.c: Likewise.
7260 * sese.c: Likewise.
7261 * shrink-wrap.c: Likewise.
7262 * simplify-rtx.c: Likewise.
7263 * stack-ptr-mod.c: Likewise.
7264 * statistics.c: Likewise.
7265 * stmt.c: Likewise.
7266 * stor-layout.c: Likewise.
7267 * store-motion.c: Likewise.
7268 * stringpool.c: Likewise.
7269 * symtab.c: Likewise.
7270 * target-globals.c: Likewise.
7271 * targhooks.c: Likewise.
7272 * toplev.c: Likewise.
7273 * tracer.c: Likewise.
7274 * trans-mem.c: Likewise.
7275 * tree-affine.c: Likewise.
7276 * tree-call-cdce.c: Likewise.
7277 * tree-cfg.c: Likewise.
7278 * tree-cfgcleanup.c: Likewise.
7279 * tree-chkp-opt.c: Likewise.
7280 * tree-chkp.c: Likewise.
7281 * tree-chrec.c: Likewise.
7282 * tree-complex.c: Likewise.
7283 * tree-data-ref.c: Likewise.
7284 * tree-dfa.c: Likewise.
7285 * tree-diagnostic.c: Likewise.
7286 * tree-dump.c: Likewise.
7287 * tree-eh.c: Likewise.
7288 * tree-emutls.c: Likewise.
7289 * tree-if-conv.c: Likewise.
7290 * tree-inline.c: Likewise.
7291 * tree-into-ssa.c: Likewise.
7292 * tree-iterator.c: Likewise.
7293 * tree-loop-distribution.c: Likewise.
7294 * tree-nested.c: Likewise.
7295 * tree-nrv.c: Likewise.
7296 * tree-object-size.c: Likewise.
7297 * tree-outof-ssa.c: Likewise.
7298 * tree-parloops.c: Likewise.
7299 * tree-phinodes.c: Likewise.
7300 * tree-predcom.c: Likewise.
7301 * tree-pretty-print.c: Likewise.
7302 * tree-profile.c: Likewise.
7303 * tree-scalar-evolution.c: Likewise.
7304 * tree-sra.c: Likewise.
7305 * tree-ssa-address.c: Likewise.
7306 * tree-ssa-alias.c: Likewise.
7307 * tree-ssa-ccp.c: Likewise.
7308 * tree-ssa-coalesce.c: Likewise.
7309 * tree-ssa-copy.c: Likewise.
7310 * tree-ssa-dce.c: Likewise.
7311 * tree-ssa-dse.c: Likewise.
7312 * tree-ssa-forwprop.c: Likewise.
7313 * tree-ssa-ifcombine.c: Likewise.
7314 * tree-ssa-live.c: Likewise.
7315 * tree-ssa-loop-ch.c: Likewise.
7316 * tree-ssa-loop-im.c: Likewise.
7317 * tree-ssa-loop-ivcanon.c: Likewise.
7318 * tree-ssa-loop-ivopts.c: Likewise.
7319 * tree-ssa-loop-manip.c: Likewise.
7320 * tree-ssa-loop-niter.c: Likewise.
7321 * tree-ssa-loop-prefetch.c: Likewise.
7322 * tree-ssa-loop-unswitch.c: Likewise.
7323 * tree-ssa-loop.c: Likewise.
7324 * tree-ssa-math-opts.c: Likewise.
7325 * tree-ssa-operands.c: Likewise.
7326 * tree-ssa-phiopt.c: Likewise.
7327 * tree-ssa-phiprop.c: Likewise.
7328 * tree-ssa-pre.c: Likewise.
7329 * tree-ssa-propagate.c: Likewise.
7330 * tree-ssa-reassoc.c: Likewise.
7331 * tree-ssa-scopedtables.c: Likewise.
7332 * tree-ssa-sink.c: Likewise.
7333 * tree-ssa-strlen.c: Likewise.
7334 * tree-ssa-structalias.c: Likewise.
7335 * tree-ssa-tail-merge.c: Likewise.
7336 * tree-ssa-ter.c: Likewise.
7337 * tree-ssa-threadupdate.c: Likewise.
7338 * tree-ssa-uncprop.c: Likewise.
7339 * tree-ssa-uninit.c: Likewise.
7340 * tree-ssa.c: Likewise.
7341 * tree-ssanames.c: Likewise.
7342 * tree-stdarg.c: Likewise.
7343 * tree-streamer-in.c: Likewise.
7344 * tree-streamer-out.c: Likewise.
7345 * tree-streamer.c: Likewise.
7346 * tree-switch-conversion.c: Likewise.
7347 * tree-tailcall.c: Likewise.
7348 * tree-vect-data-refs.c: Likewise.
7349 * tree-vect-generic.c: Likewise.
7350 * tree-vect-loop-manip.c: Likewise.
7351 * tree-vect-loop.c: Likewise.
7352 * tree-vect-patterns.c: Likewise.
7353 * tree-vect-slp.c: Likewise.
7354 * tree-vect-stmts.c: Likewise.
7355 * tree-vectorizer.c: Likewise.
7356 * tree-vrp.c: Likewise.
7357 * tree.c: Likewise.
7358 * tsan.c: Likewise.
7359 * ubsan.c: Likewise.
7360 * value-prof.c: Likewise.
7361 * var-tracking.c: Likewise.
7362 * varasm.c: Likewise.
7363 * varpool.c: Likewise.
7364 * vmsdbgout.c: Likewise.
7365 * vtable-verify.c: Likewise.
7366 * web.c: Likewise.
7367 * wide-int-print.cc: Likewise.
7368 * wide-int.cc: Likewise.
7369 * xcoffout.c: Likewise.
7370
7371 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
7372
7373 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
7374 between pass numbering and execution order.
7375
7376 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7377
7378 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
7379 check for dependencies.
7380
7381 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
7382
7383 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
7384 CDI_DOMINATORS.
7385
7386 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
7387
7388 * real.h (format_helper): New.
7389 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
7390 (real_from_target, real_nan, real_2expN, real_value_truncate)
7391 (significand_size, real_from_string2, exact_real_inverse)
7392 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
7393 (real_round, real_isinteger, real_from_integer): Replace
7394 machine_mode arguments with format_helper arguments.
7395 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
7396 (real_from_integer, real_nan, real_2expN, real_convert)
7397 (real_value_truncate, exact_real_truncate, real_to_target)
7398 (real_from_target, significand_size, real_powi, real_trunc)
7399 (real_floor, real_ceil, real_round, real_isinteger): Replace
7400 machine_mode arguments with format_helper arguments.
7401 (real_to_target_fmt, real_from_target_fmt): Delete.
7402 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
7403 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
7404 argument with real_format.
7405 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
7406
7407 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
7408
7409 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
7410 (fixed_to_decimal, fixed_convert_from_real)
7411 (real_convert_from_fixed): Fix mode arguments to real_2expN.
7412
7413 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
7414
7415 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
7416 SCALAR_FLOAT_MODE_P.
7417
7418 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
7419
7420 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
7421 (completely_scalarize): Comment zero-length arrays.
7422 (get_access_replacement): Correct comment re. precondition.
7423
7424 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7425
7426 * config/i386/i386.c (get_builtin_code_for_version): Set priority
7427 for PROCESSOR_ZNVER1.
7428 (enum processor_model): Add M_AMDFAM17H_znver1.
7429 (struct arch_names_table): Likewise.
7430 * doc/extend.texi: ADD znver1.
7431
7432 2015-10-30 Richard Biener <rguenther@suse.de>
7433
7434 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
7435 fold () on single RHSs. Allow CONSTRUCTORS with trailing
7436 zeros to be folded to VECTOR_CSTs.
7437 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
7438 * fold-const.c (fold): Use build_vector_from_ctor.
7439
7440 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
7441
7442 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
7443 "mov %0.h[0], %1.h[0] to "neon_move".
7444 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
7445 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
7446 "mov_imm".
7447 (*cmovsi_insn_uxtw): Likewise.
7448
7449 2015-10-30 Tom de Vries <tom@codesourcery.com>
7450
7451 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
7452 unsigned, and initialize, and use initial value instead of hardcoded
7453 constant. Add generic constraints dumping section. Don't dump global
7454 initializers constraints dumping section if empty. Don't update
7455 variable from if unused.
7456
7457 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
7458
7459 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
7460 flag_checking and/or CHECKING_P to eliminate conditional compilation
7461 on ENABLE_CHECKING.
7462 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
7463 * config/bfin/bfin.c (hwloop_optimize): Likewise.
7464 * config/i386/i386.c (ix86_print_operand_address): Likewise.
7465 (output_387_binary_op): Likewise.
7466 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
7467 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
7468 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
7469 Likewise.
7470 * config/rs6000/rs6000.h: Likewise.
7471 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
7472
7473 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
7474
7475 * config/sh/sh.opt (mfdpic): Add missing period.
7476
7477 2015-08-29 Anatoly Sokolov <aesok@post.ru>
7478
7479 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7480 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
7481 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7482 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
7483 mcore_base_register_rtx_p, mcore_legitimate_index_p,
7484 mcore_legitimate_address_p): New functions.
7485 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
7486
7487 2015-10-29 Jeff Law <law@redhat.com>
7488
7489 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
7490 method.
7491 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
7492 * tree-ssa-threadedge.c
7493 (record_temporary_equivalences_from_stmts_at_dest): Remove
7494 backedge_seen argument and associated code which invalidated
7495 equivalences based on the value of that argument.
7496 (thread_through_normal_block): Corresponding changes.
7497
7498 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
7499
7500 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
7501 function earlier in the file.
7502 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
7503 df_regs_ever_live_p.
7504
7505 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
7506
7507 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
7508 by ignoring it.
7509
7510 2015-10-29 Richard Henderson <rth@redhat.com>
7511
7512 PR target/68124
7513 PR rtl-opt/67609
7514 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
7515 sse check to the exact conditions of PR 67609.
7516
7517 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
7518
7519 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
7520 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
7521 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
7522 of the traditional names that TFmode uses for handling IEEE
7523 extended double. If -mfloat128, add KFmode functions for all of
7524 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
7525 make TFmode use the same emulation functions as KFmode.
7526 (init_float128_ibm): Likewise.
7527 (init_float128_ieee): Likewise.
7528 (rs6000_generate_compare): For IEEE 128-bit floating point
7529 comparisons, call the unordered comparison function instead of the
7530 ordered comparison function.
7531 (rs6000_expand_float128_convert): Deal with operands that are
7532 memory operands. Restructure the code to use a switch statement on
7533 the mode. Add support for TFmode defaulting to either IBM extended
7534 double or IEEE 128-bit floating point. If the underlying types are
7535 the same, use a move instead of a conversion function.
7536 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
7537 use for IEEE 128-bit floating point constants with -mfloat128.
7538 (rs6000_c_mode_for_suffix): Likewise.
7539 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
7540 128-bit floating point with IBM extended double floating point.
7541 (rs6000_invalid_binary_op): Likewise.
7542 (rs6000_gen_le_vsx_permute): On little endian systems generate a
7543 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
7544 types that can go in vector registers.
7545 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
7546 point types that can go in vector registers on little endian
7547 PowerPC systems.
7548 (mark_swaps_for_removal): Likewise.
7549 (rs6000_analyze_swaps): Likewise.
7550 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
7551
7552 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
7553 rework IEEE 128-bit floating point insns to deal with TFmode being
7554 either IBM extended double or IEEE 128-bit floating point.
7555 (IFKF): Likewise.
7556 (IBM128): Update iterator to add condition that the mode is IBM
7557 extended double.
7558 (IEEE128): New iterator for IEEE 128-bit floating point.
7559 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
7560 (FLOAT128): Likewise.
7561 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
7562 iterator.
7563 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
7564 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
7565 instead of hard coding TFmode or KFmode.
7566 (negtf2_internal): Likewise.
7567 (neg<mode>2_internal): Likewise.
7568 (abs<mode>2): Likewise.
7569 (abstf2_internal): Likewise.
7570 (abs<mode>2_internal): Likewise.
7571 (ieee_128bit_neg<mode>2): Likewise.
7572 (ieee_128bit_neg<mode>2_internal): Likewise.
7573 (ieee_128bit_abs<mode>2): Likewise.
7574 (ieee_128bit_abs<mode>2_internal): Likewise.
7575 (ieee_128bit_nabs<mode>2): Likewise.
7576 (ieee_128bit_nabs<mode>2_internal): Likewise.
7577 (extendiftf2): Add explicit conversions between 128-bit floating
7578 point types. Drop the old conversions that had become unwieldy.
7579 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
7580 (extendifkf2): Likewise.
7581 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
7582 (extendtfkf2): Likewise.
7583 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
7584 (trunciftf2): Likewise.
7585 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
7586 (truncifkf2): Likewise.
7587 (float<SDI:mode><IFKF:mode>2): Likewise.
7588 (trunckftf2): Likewise.
7589 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
7590 (trunctfif2): Likewise.
7591 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
7592 (extenddftf2): Rework 128-bit floating point conversions to
7593 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
7594 KFmode expanders into one function.
7595 (extenddf<mode>2): Likewise.
7596 (extenddftf2_fprs): Likewise.
7597 (extenddf<mode>2_fprs): Likewise.
7598 (extenddftf2_vsx): Likewise.
7599 (extenddf<mode>2_vsx): Likewise.
7600 (extendsftf2): Likewise.
7601 (extendsf<mode>2): Likewise.
7602 (trunctfdf2): Likewise.
7603 (trunc<mode>df2): Likewise.
7604 (trunctfdf2_internal1): Likewise.
7605 (trunc<mode>df2_internal1): Likewise.
7606 (trunctfdf2_internal2): Likewise.
7607 (trunc<mode>df2_internal2): Likewise.
7608 (trunctfsf2): Likewise.
7609 (trunc<mode>sf2): Likewise.
7610 (trunctfsf2_fprs): Likewise.
7611 (trunc<mode>sf2_fprs): Likewise.
7612 (floatsit2f): Likewise.
7613 (floatsi<mode>2): Likewise.
7614 (fix_trunc_helper): Likewise.
7615 (fix_trunc_helper<mode>): Likewise.
7616 (fix_trunctfsi2): Likewise.
7617 (fix_trunc<mode>si2): Likewise.
7618 (fix_trunctfsi2_fprs): Likewise.
7619 (fix_trunc<mode>si2_fprs): Likewise.
7620 (fix_trunctfsi2_internal): Likewise.
7621 (fix_trunc<mode>si2_internal): Likewise.
7622 (fix_trunctfdi2): Likewise.
7623 (fix_trunc<mode>di2): Likewise.
7624 (fixuns_trunctf<mode>2): Likewise.
7625 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
7626 (floatditf2): Likewise.
7627 (floatdi<mode>2): Likewise.
7628 (floatuns<mode>tf2): Likewise.
7629 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
7630 (cmptf_internal1): Use a mode iterator to add support for both
7631 types (IFmode, TFmode) that support IBM extended double.
7632 (cmp<mode>_internal1): Likewise.
7633 (cmptf_internal2): Likewise.
7634 (cmp<mode>_internal2): Likewise.
7635
7636 * doc/extend.texi (Floating Types): Document __ibm128 and
7637 __float128 on PowerPC.
7638
7639 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7640 -mfloat128 and -mno-float128.
7641
7642 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
7643
7644 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
7645 floating point modes that can go in vector registers.
7646 (MODES_TIEABLE_P): Move tests for vector modes before tests for
7647 scalar floating point, so that IEEE 128-bit floating point that
7648 can go in vector registers bind with vectors and not FP.
7649 (struct rs6000_args): Add libcall field.
7650
7651 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
7652 and -mfloat128-software switches. Replace them with a binary
7653 -mfloat128 switch.
7654 (-mfloat128): Likewise.
7655
7656 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
7657 128-bit floating point types in GPRs, even if the appropriate
7658 option enabling the type was not used.
7659 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
7660 debugging.
7661 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
7662 pre-decrement on IEEE 128-bit floating point values.
7663 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
7664 is IEEE 128-bit floating point.
7665 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
7666 128-bit floating point types that can go in vector registers.
7667 (rs6000_option_override_internal): Change -mfloat128-none and
7668 -mfloat128-software to -mfloat128, and move code to be near other
7669 VSX option handling.
7670 (rs6000_option_override_internal): Disable -mfloat128 if we don't
7671 have the Altivec ABI.
7672 (rs6000_init_builtins): Don't make TFmode use either IFmode or
7673 KFmode floating point nodes. Instead, have three separate nodes.
7674 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
7675 eventually moving the long double default to IEEE 128-bit floating
7676 point.
7677 (rs6000_opt_masks): Add -mfloat128.
7678 (struct rs6000_opt_var): Fix typo in comment.
7679 (init_cumulative_args): Initialize libcall field in
7680 CUMULATIVE_ARGS.
7681 (rs6000_function_arg): Treat library functions as if they had
7682 prototypes to prevent IEEE 128-bit support functions from passing
7683 arguments in both GPRs and vector registers.
7684 (rs6000_arg_partial_bytes): Likewise.
7685
7686 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
7687 an option that can be turned on via -mcpu=<xxx>.
7688
7689 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
7690 longer used.
7691
7692 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
7693 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
7694 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
7695 double is IBM extended double.
7696
7697 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
7698 SUBREGs.
7699
7700 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
7701
7702 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
7703 * genconditions.c: Define CHECKING_P in the generated code.
7704 * genextract.c: Use flag_checking in insn_extract.
7705 * gengtype.c (main): Remove conditional compilation.
7706 * gengtype.h: Likewise.
7707
7708 2015-10-29 Jeff Law <law@redhat.com>
7709
7710 PR tree-optimization/67892
7711 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
7712 in comment.
7713 (thread_through_normal_block): If we have seen a backedge, then
7714 do nothing. No longer call find_jump_threads_backwards here.
7715 (thread_across_edge): Use find_jump_threads_backwards to find
7716 jump threads if the old style threader was not successful.
7717 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
7718 gsi_last_nondebug_bb. Return NULL if the block does not end
7719 with a control statement.
7720 (find_jump_threads_backwards): Setup code moved here from
7721 tree-ssa-threadedge.c::thread_through_normal_block. Accept
7722 single edge argument instead of name & block.
7723 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
7724 prototype.
7725
7726 2015-10-29 Tom de Vries <tom@codesourcery.com>
7727
7728 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
7729 types.
7730
7731 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
7732
7733 * omp-low.c (lower_omp_target): Remove unreachable code & merge
7734 ifs.
7735
7736 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
7737
7738 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
7739
7740 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
7741
7742 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
7743 guard_bb0 and use guard_bb throughout.
7744
7745 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
7746
7747 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
7748 unnecessary label.
7749
7750 2015-10-29 Richard Biener <rguenther@suse.de>
7751
7752 PR middle-end/68142
7753 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
7754 overflow.
7755
7756 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
7757
7758 * alias.c: Reorder #include statements and remove duplicates.
7759 * asan.c: Likewise.
7760 * attribs.c: Likewise.
7761 * auto-inc-dec.c: Likewise.
7762 * auto-profile.c: Likewise.
7763 * bb-reorder.c: Likewise.
7764 * bt-load.c: Likewise.
7765 * builtins.c: Likewise.
7766 * caller-save.c: Likewise.
7767 * calls.c: Likewise.
7768 * ccmp.c: Likewise.
7769 * cfg.c: Likewise.
7770 * cfganal.c: Likewise.
7771 * cfgbuild.c: Likewise.
7772 * cfgcleanup.c: Likewise.
7773 * cfgexpand.c: Likewise.
7774 * cfghooks.c: Likewise.
7775 * cfgloop.c: Likewise.
7776 * cfgloopanal.c: Likewise.
7777 * cfgloopmanip.c: Likewise.
7778 * cfgrtl.c: Likewise.
7779 * cgraph.c: Likewise.
7780 * cgraphbuild.c: Likewise.
7781 * cgraphclones.c: Likewise.
7782 * cgraphunit.c: Likewise.
7783 * cilk-common.c: Likewise.
7784 * combine-stack-adj.c: Likewise.
7785 * combine.c: Likewise.
7786 * compare-elim.c: Likewise.
7787 * convert.c: Likewise.
7788 * coverage.c: Likewise.
7789 * cppbuiltin.c: Likewise.
7790 * cprop.c: Likewise.
7791 * cse.c: Likewise.
7792 * cselib.c: Likewise.
7793 * data-streamer-in.c: Likewise.
7794 * data-streamer-out.c: Likewise.
7795 * data-streamer.c: Likewise.
7796 * dbxout.c: Likewise.
7797 * dce.c: Likewise.
7798 * ddg.c: Likewise.
7799 * debug.c: Likewise.
7800 * df-core.c: Likewise.
7801 * df-problems.c: Likewise.
7802 * df-scan.c: Likewise.
7803 * dfp.c: Likewise.
7804 * dojump.c: Likewise.
7805 * dominance.c: Likewise.
7806 * double-int.c: Likewise.
7807 * dse.c: Likewise.
7808 * dumpfile.c: Likewise.
7809 * dwarf2asm.c: Likewise.
7810 * dwarf2cfi.c: Likewise.
7811 * dwarf2out.c: Likewise.
7812 * emit-rtl.c: Likewise.
7813 * except.c: Likewise.
7814 * explow.c: Likewise.
7815 * expmed.c: Likewise.
7816 * expr.c: Likewise.
7817 * final.c: Likewise.
7818 * fixed-value.c: Likewise.
7819 * fold-const.c: Likewise.
7820 * function.c: Likewise.
7821 * fwprop.c: Likewise.
7822 * gcse.c: Likewise.
7823 * generic-match-head.c: Likewise.
7824 * ggc-common.c: Likewise.
7825 * gimple-builder.c: Likewise.
7826 * gimple-expr.c: Likewise.
7827 * gimple-fold.c: Likewise.
7828 * gimple-iterator.c: Likewise.
7829 * gimple-low.c: Likewise.
7830 * gimple-match-head.c: Likewise.
7831 * gimple-pretty-print.c: Likewise.
7832 * gimple-ssa-isolate-paths.c: Likewise.
7833 * gimple-ssa-strength-reduction.c: Likewise.
7834 * gimple-streamer-in.c: Likewise.
7835 * gimple-streamer-out.c: Likewise.
7836 * gimple-walk.c: Likewise.
7837 * gimple.c: Likewise.
7838 * gimplify-me.c: Likewise.
7839 * gimplify.c: Likewise.
7840 * godump.c: Likewise.
7841 * graph.c: Likewise.
7842 * graphite-poly.c: Likewise.
7843 * haifa-sched.c: Likewise.
7844 * hw-doloop.c: Likewise.
7845 * ifcvt.c: Likewise.
7846 * incpath.c: Likewise.
7847 * init-regs.c: Likewise.
7848 * internal-fn.c: Likewise.
7849 * ipa-chkp.c: Likewise.
7850 * ipa-comdats.c: Likewise.
7851 * ipa-cp.c: Likewise.
7852 * ipa-devirt.c: Likewise.
7853 * ipa-icf-gimple.c: Likewise.
7854 * ipa-icf.c: Likewise.
7855 * ipa-inline-analysis.c: Likewise.
7856 * ipa-inline-transform.c: Likewise.
7857 * ipa-inline.c: Likewise.
7858 * ipa-polymorphic-call.c: Likewise.
7859 * ipa-profile.c: Likewise.
7860 * ipa-prop.c: Likewise.
7861 * ipa-pure-const.c: Likewise.
7862 * ipa-ref.c: Likewise.
7863 * ipa-reference.c: Likewise.
7864 * ipa-split.c: Likewise.
7865 * ipa-utils.c: Likewise.
7866 * ipa-visibility.c: Likewise.
7867 * ipa.c: Likewise.
7868 * ira-build.c: Likewise.
7869 * ira-color.c: Likewise.
7870 * ira-conflicts.c: Likewise.
7871 * ira-costs.c: Likewise.
7872 * ira-emit.c: Likewise.
7873 * ira-lives.c: Likewise.
7874 * ira.c: Likewise.
7875 * jump.c: Likewise.
7876 * langhooks.c: Likewise.
7877 * lcm.c: Likewise.
7878 * lists.c: Likewise.
7879 * loop-doloop.c: Likewise.
7880 * loop-init.c: Likewise.
7881 * loop-invariant.c: Likewise.
7882 * loop-iv.c: Likewise.
7883 * loop-unroll.c: Likewise.
7884 * lower-subreg.c: Likewise.
7885 * lra-assigns.c: Likewise.
7886 * lra-coalesce.c: Likewise.
7887 * lra-constraints.c: Likewise.
7888 * lra-eliminations.c: Likewise.
7889 * lra-lives.c: Likewise.
7890 * lra-remat.c: Likewise.
7891 * lra-spills.c: Likewise.
7892 * lra.c: Likewise.
7893 * lto-cgraph.c: Likewise.
7894 * lto-compress.c: Likewise.
7895 * lto-opts.c: Likewise.
7896 * lto-section-in.c: Likewise.
7897 * lto-section-out.c: Likewise.
7898 * lto-streamer-in.c: Likewise.
7899 * lto-streamer-out.c: Likewise.
7900 * lto-streamer.c: Likewise.
7901 * mode-switching.c: Likewise.
7902 * modulo-sched.c: Likewise.
7903 * omp-low.c: Likewise.
7904 * optabs.c: Likewise.
7905 * opts-global.c: Likewise.
7906 * passes.c: Likewise.
7907 * plugin.c: Likewise.
7908 * postreload-gcse.c: Likewise.
7909 * postreload.c: Likewise.
7910 * predict.c: Likewise.
7911 * print-tree.c: Likewise.
7912 * profile.c: Likewise.
7913 * real.c: Likewise.
7914 * realmpfr.c: Likewise.
7915 * recog.c: Likewise.
7916 * ree.c: Likewise.
7917 * reg-stack.c: Likewise.
7918 * regcprop.c: Likewise.
7919 * reginfo.c: Likewise.
7920 * regrename.c: Likewise.
7921 * regstat.c: Likewise.
7922 * reload.c: Likewise.
7923 * reload1.c: Likewise.
7924 * reorg.c: Likewise.
7925 * resource.c: Likewise.
7926 * rtl-chkp.c: Likewise.
7927 * rtl-error.c: Likewise.
7928 * rtlanal.c: Likewise.
7929 * rtlhooks.c: Likewise.
7930 * sanopt.c: Likewise.
7931 * sched-deps.c: Likewise.
7932 * sched-ebb.c: Likewise.
7933 * sched-rgn.c: Likewise.
7934 * sese.c: Likewise.
7935 * shrink-wrap.c: Likewise.
7936 * simplify-rtx.c: Likewise.
7937 * stack-ptr-mod.c: Likewise.
7938 * statistics.c: Likewise.
7939 * stmt.c: Likewise.
7940 * stor-layout.c: Likewise.
7941 * store-motion.c: Likewise.
7942 * stringpool.c: Likewise.
7943 * symtab.c: Likewise.
7944 * target-globals.c: Likewise.
7945 * targhooks.c: Likewise.
7946 * toplev.c: Likewise.
7947 * tracer.c: Likewise.
7948 * trans-mem.c: Likewise.
7949 * tree-affine.c: Likewise.
7950 * tree-call-cdce.c: Likewise.
7951 * tree-cfg.c: Likewise.
7952 * tree-cfgcleanup.c: Likewise.
7953 * tree-chkp-opt.c: Likewise.
7954 * tree-chkp.c: Likewise.
7955 * tree-chrec.c: Likewise.
7956 * tree-complex.c: Likewise.
7957 * tree-data-ref.c: Likewise.
7958 * tree-dfa.c: Likewise.
7959 * tree-diagnostic.c: Likewise.
7960 * tree-dump.c: Likewise.
7961 * tree-eh.c: Likewise.
7962 * tree-emutls.c: Likewise.
7963 * tree-if-conv.c: Likewise.
7964 * tree-inline.c: Likewise.
7965 * tree-into-ssa.c: Likewise.
7966 * tree-iterator.c: Likewise.
7967 * tree-loop-distribution.c: Likewise.
7968 * tree-nested.c: Likewise.
7969 * tree-nrv.c: Likewise.
7970 * tree-object-size.c: Likewise.
7971 * tree-outof-ssa.c: Likewise.
7972 * tree-parloops.c: Likewise.
7973 * tree-phinodes.c: Likewise.
7974 * tree-predcom.c: Likewise.
7975 * tree-pretty-print.c: Likewise.
7976 * tree-profile.c: Likewise.
7977 * tree-scalar-evolution.c: Likewise.
7978 * tree-sra.c: Likewise.
7979 * tree-ssa-address.c: Likewise.
7980 * tree-ssa-alias.c: Likewise.
7981 * tree-ssa-ccp.c: Likewise.
7982 * tree-ssa-coalesce.c: Likewise.
7983 * tree-ssa-copy.c: Likewise.
7984 * tree-ssa-dce.c: Likewise.
7985 * tree-ssa-dom.c: Likewise.
7986 * tree-ssa-dse.c: Likewise.
7987 * tree-ssa-forwprop.c: Likewise.
7988 * tree-ssa-ifcombine.c: Likewise.
7989 * tree-ssa-live.c: Likewise.
7990 * tree-ssa-loop-ch.c: Likewise.
7991 * tree-ssa-loop-im.c: Likewise.
7992 * tree-ssa-loop-ivcanon.c: Likewise.
7993 * tree-ssa-loop-ivopts.c: Likewise.
7994 * tree-ssa-loop-manip.c: Likewise.
7995 * tree-ssa-loop-niter.c: Likewise.
7996 * tree-ssa-loop-prefetch.c: Likewise.
7997 * tree-ssa-loop-unswitch.c: Likewise.
7998 * tree-ssa-loop.c: Likewise.
7999 * tree-ssa-math-opts.c: Likewise.
8000 * tree-ssa-operands.c: Likewise.
8001 * tree-ssa-phiopt.c: Likewise.
8002 * tree-ssa-phiprop.c: Likewise.
8003 * tree-ssa-pre.c: Likewise.
8004 * tree-ssa-propagate.c: Likewise.
8005 * tree-ssa-reassoc.c: Likewise.
8006 * tree-ssa-sccvn.c: Likewise.
8007 * tree-ssa-scopedtables.c: Likewise.
8008 * tree-ssa-sink.c: Likewise.
8009 * tree-ssa-strlen.c: Likewise.
8010 * tree-ssa-structalias.c: Likewise.
8011 * tree-ssa-tail-merge.c: Likewise.
8012 * tree-ssa-ter.c: Likewise.
8013 * tree-ssa-threadedge.c: Likewise.
8014 * tree-ssa-threadupdate.c: Likewise.
8015 * tree-ssa-uncprop.c: Likewise.
8016 * tree-ssa-uninit.c: Likewise.
8017 * tree-ssa.c: Likewise.
8018 * tree-ssanames.c: Likewise.
8019 * tree-stdarg.c: Likewise.
8020 * tree-streamer-in.c: Likewise.
8021 * tree-streamer-out.c: Likewise.
8022 * tree-streamer.c: Likewise.
8023 * tree-switch-conversion.c: Likewise.
8024 * tree-tailcall.c: Likewise.
8025 * tree-vect-data-refs.c: Likewise.
8026 * tree-vect-generic.c: Likewise.
8027 * tree-vect-loop-manip.c: Likewise.
8028 * tree-vect-loop.c: Likewise.
8029 * tree-vect-patterns.c: Likewise.
8030 * tree-vect-slp.c: Likewise.
8031 * tree-vect-stmts.c: Likewise.
8032 * tree-vectorizer.c: Likewise.
8033 * tree-vrp.c: Likewise.
8034 * tree.c: Likewise.
8035 * tsan.c: Likewise.
8036 * ubsan.c: Likewise.
8037 * value-prof.c: Likewise.
8038 * var-tracking.c: Likewise.
8039 * varasm.c: Likewise.
8040 * varpool.c: Likewise.
8041 * vtable-verify.c: Likewise.
8042 * web.c: Likewise.
8043 * wide-int-print.cc: Likewise.
8044 * wide-int.cc: Likewise.
8045 * xcoffout.c: Likewise.
8046
8047 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
8048
8049 * Makefile.in (NO_PIE_CFLAGS): New.
8050 (NO_PIE_FLAG): Likewise.
8051 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
8052 (NO_PIE_FLAG_FOR_BUILD): Likewise.
8053 (BUILD_NO_PIE_CFLAGS): Likewise.
8054 (BUILD_NO_PIE_FLAG): Likewise.
8055 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
8056 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
8057 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
8058 $(BUILD_NO_PIE_CFLAGS).
8059 (BUILD_CXXFLAGS): Likewise.
8060 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
8061 $(BUILD_NO_PIE_FLAG).
8062 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
8063 (BUILD_NO_PIE_FLAG): Likewise.
8064 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
8065 (NO_PIE_FLAG_FOR_BUILD): Likewise.
8066 * configure: Regenerated.
8067
8068 2015-10-29 Richard Biener <rguenther@suse.de>
8069
8070 PR middle-end/56956
8071 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
8072 unsigned conditonal negation to ABS_EXPR.
8073
8074 2015-10-29 Richard Biener <rguenther@suse.de>
8075
8076 * gimple-match-head.c (gimple_simplify): Remove premature checking
8077 of builtin_decl_implicit of function calls we simplify.
8078
8079 2015-10-29 Bin Cheng <bin.cheng@arm.com>
8080
8081 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
8082 (get_computation_cost_at): Ditto.
8083 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
8084 and inv_expr_id.
8085
8086 2015-10-28 Tom de Vries <tom@codesourcery.com>
8087
8088 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
8089 superfluous code.
8090
8091 2015-10-28 Jason Merrill <jason@redhat.com>
8092
8093 * Makefile.in (TAGS): Include libcpp and libiberty.
8094
8095 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
8096
8097 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
8098 (extract_omp_for_data): Remove OpenACC special handling of
8099 chunking.
8100
8101 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
8102 (struct parallel): Update comment.
8103 (nvptx_reorg): Likewise.
8104 (nvptx_neuter): Cleanup whitespace.
8105
8106 2015-10-28 Richard Henderson <rth@redhat.com>
8107
8108 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
8109
8110 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8111
8112 PR target/67839
8113 * config/avr/predicates.md (low_io_address_operand): Don't
8114 consider MODE when computing upper bound.
8115 (io_address_operand): Likewise.
8116
8117 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
8118
8119 * fold-const.c (operand_equal_p): Do not verify that types are
8120 compatible for MEM_REFs.
8121
8122 2015-10-28 Richard Biener <rguenther@suse.de>
8123
8124 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
8125 in simplifying VEC_COND_EXPR conditions.
8126
8127 2015-10-28 Tom de Vries <tom@codesourcery.com>
8128
8129 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
8130 into vi_next of a full_var.
8131
8132 2015-10-28 Tom de Vries <tom@codesourcery.com>
8133
8134 * tree-ssa-structalias.c (new_var_info, make_heapvar)
8135 (make_constraint_from_restrict, make_constraint_from_global_restrict)
8136 (create_function_info_for, create_variable_info_for_1)
8137 (create_variable_info_for): Add and handle add_id parameter.
8138 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
8139 (init_base_vars): Add extra argument to calls to new_var_info.
8140 (get_vi_for_tree): Add extra argument to call to
8141 create_variable_info_for.
8142 (process_constraint, do_deref, process_all_all_constraints): Add extra
8143 argument to calls to new_scalar_tmp_constraint_exp.
8144 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
8145 argument to calls to make_heapvar.
8146 (make_restrict_var_constraints): Add extra argument to call to
8147 make_constraint_from_global_restrict.
8148 (intra_create_variable_infos): Add extra argument to call to
8149 create_variable_info_for_1.
8150 (ipa_pta_execute): Add extra argument to call to
8151 create_function_info_for.
8152
8153 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8154
8155 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
8156 (sibcall_value): Likewise.
8157
8158 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
8159
8160 * config/nvptx/nvptx.h (struct machine_function): Add
8161 axis_predicate.
8162 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
8163 nvptx_expand_oacc_join): Declare.
8164 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
8165 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
8166 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
8167 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
8168 UNSPECV_JOINING, UNSPECV_JOIN): New.
8169 (BITS, BITD): New mode iterators.
8170 (br_true_uni, br_false_uni): New.
8171 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
8172 (oacc_dim_size, oacc_dim_pos): New.
8173 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
8174 (oacc_fork, oacc_join): New.
8175 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
8176 (worker_load<mode>, worker_store<mode>): New.
8177 (nvptx_barsync): New.
8178 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
8179 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
8180 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
8181 worker_bcast_sym): New.
8182 (nvptx_option_override): Initialize worker broadcast buffer.
8183 (nvptx_emit_forking, nvptx_emit_joining): New.
8184 (nvptx_init_axis_predicate): New.
8185 (nvptx_declare_function_name): Init axis predicates.
8186 (nvptx_expand_call): Add fork/join markers around routine call.
8187 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
8188 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
8189 (nvptx_gen_vcast): New.
8190 (struct wcast_data_t): New.
8191 (enum propagate_mask): New.
8192 (nvptx_gen_wcast): New.
8193 (nvptx_print_operand): Add 'S' case.
8194 (struct parallel): New.
8195 (parallel::parallel, parallel::~parallel): New.
8196 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
8197 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
8198 nvptx_find_par, nvptx_discover_pars): New.
8199 (nvptx_propagate): New.
8200 (vprop_gen, nvptx_vpropagate): New.
8201 (wprop_gen, nvptx_wpropagate): New.
8202 (nvptx_wsync): New.
8203 (nvptx_single, nvptx_skip_par): New.
8204 (nvptx_process_pars, nvptx_neuter_pars): New.
8205 (ntptx_reorg): Split blocks, generate parallel structure, apply
8206 neutering.
8207 (nvptx_cannot_copy_insn_p): New.
8208 (nvptx_file_end): Emit worker broadcast decl.
8209 (nvptx_goacc_fork_join): New.
8210 (TARGET_CANNOT_COPY_INSN_P): Override.
8211 (TARGET_GOACC_FORK_JOIN): Override.
8212
8213 2015-10-28 Richard Biener <rguenther@suse.de>
8214
8215 * fold-const.c (negate_expr_p): Adjust the division case to
8216 properly avoid introducing undefined overflow.
8217 (fold_negate_expr): Likewise.
8218
8219 2015-10-28 Richard Biener <rguenther@suse.de>
8220
8221 PR tree-optimization/65962
8222 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8223 Avoid creating loop carried dependences also for outer loops
8224 of the loop a use to replace is in.
8225
8226 2015-10-28 Richard Biener <rguenther@suse.de>
8227
8228 * common.opt (fchecking): New flag controlling flag_checking.
8229 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
8230 * timevar.c (timer::print): Adjust output.
8231 * doc/invoke.texi (fchecking): Document.
8232
8233 2015-10-28 Richard Biener <rguenther@suse.de>
8234
8235 PR middle-end/68067
8236 * fold-const.c (negate_expr_p): We cannot negate plus or minus
8237 if overflow is not wrapping. Likewise multiplication unless
8238 one operand is constant and not power of two.
8239 (fold_negate_expr): Adjust accordingly.
8240
8241 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8242
8243 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
8244 fields.
8245 (is_oacc_parallel, is_oacc_kernels): New.
8246 (enclosing_target_ctx): May return NULL.
8247 (ctx_in_oacc_kernels_region): New.
8248 (check_oacc_kernel_gwv): New.
8249 (oacc_loop_or_target_p): Delete.
8250 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
8251 operands. Strip reductions fro kernels.
8252 (scan_omp_target): Don't calculate gwv mask.
8253 (lower_oacc_head_mark, lower_oacc_loop_marker,
8254 lower_oacc_head_tail): New.
8255 (struct oacc_collapse): New.
8256 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
8257 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
8258 Remove OpenACC handling.
8259 (expand_oacc_for): New.
8260 (expand_omp_for): Call expand_oacc_for.
8261 (lower_omp_for): Call lower_oacc_head_tail.
8262
8263 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
8264
8265 * attribs.c (check_attribute_tables): New function, broken out from...
8266 (init_attributes): Use it.
8267 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
8268 gcc_checking_assert and checking_* functions to eliminate
8269 ENABLE_CHECKING conditionals.
8270 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
8271 (pass_expand::execute): Likewise.
8272 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
8273 * cgraphunit.c (mark_functions_to_output): Likewise.
8274 (cgraph_node::expand_thunk): Likewise.
8275 (symbol_table::compile): Likewise.
8276 * ddg.c (add_cross_iteration_register_deps): Likewise.
8277 (create_ddg_all_sccs): Likewise.
8278 * df-core.c (df_finish_pass, df_analyze): Likewise.
8279 * diagnostic-core.h: Likewise.
8280 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
8281 * dominance.c (calculate_dominance_info): Likewise.
8282 * dwarf2out.c (add_AT_die_ref): Likewise.
8283 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
8284 (loc_list_from_tree, gen_lexical_block_die): Likewise.
8285 gen_type_die_with_usage, gen_type_die): Likewise.
8286 (dwarf2out_decl): Likewise.
8287 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
8288 * except.c (duplicate_eh_regions): Likewise.
8289 * fwprop.c (register_active_defs, update_df_init): Likewise.
8290 (fwprop_init, fwprop_done): Likewise.
8291 (update_uses): Likewise.
8292 * ggc-page.c (ggc_grow): Likewise.
8293 * gimplify.c (gimplify_body): Likewise.
8294 (gimplify_hasher::equal): Likewise.
8295 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
8296 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
8297 Likewise.
8298 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
8299 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
8300 * hash-table.h (::find_empty_slot_for_expand): Likewise.
8301 * ifcvt.c (if_convert): Likewise.
8302 * ipa-cp.c (ipcp_propagate_stage): Likewise.
8303 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
8304 (odr_type_p, odr_types_equivalent_p): Likewise.
8305 (add_type_duplicate, get_odr_type): Likewise.
8306 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
8307 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
8308 (sem_item_optimizer::verify_classes): Likewise.
8309 (sem_item_optimizer::traverse_congruence_split): Likewise.
8310 (sem_item_optimizer::checking_verify_classes): New.
8311 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
8312 method.
8313 * cfgrtl.c (commit_edge_insertions): Likewise.
8314 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
8315 (rtl_flow_call_edges_add): Likewise.
8316 * cgraph.c (symbol_table::create_edge): Likewise.
8317 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
8318 * cgraph.h (symtab_node): Likewise.
8319 (symtab_node::checking_verify_symtab_nodes): Define.
8320 (cgraph_node::checking_verify_cgraph_nodes): Define.
8321 * cfghooks.h (checking_verify_flow_info): Define.
8322 * cfgloop.h (checking_verify_loop_structure): Define.
8323 * dominance.h (checking_verify_dominators): Define.
8324 * et-forest.c: Fix comment.
8325 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
8326 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
8327 ENABLE_CHECKING conditionals.
8328 * ipa-inline-transform.c (save_inline_function_body): Likewise.
8329 * ipa-inline.c (inline_small_functions): Likewise.
8330 (early_inliner): Likewise.
8331 * ipa-inline.h (estimate_edge_growth): Likewise.
8332 * ipa-visibility.c (function_and_variable_visibility): Likewise.
8333 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
8334 (ipa_single_use): Likewise.
8335 * ira-int.h: Likewise.
8336 * ira.c (ira): Likewise.
8337 * loop-doloop.c (doloop_optimize_loops): Likewise.
8338 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
8339 * loop-invariant.c (move_loop_invariants): Likewise.
8340 * lra-assigns.c (lra_assign): Likewise.
8341 * lra-constraints.c (lra_constraints): Likewise.
8342 * lra-eliminations.c (lra_eliminate): Likewise.
8343 * lra-int.h (struct lra_reg): Likewise.
8344 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
8345 (lra_create_live_ranges_1): Likewise.
8346 * lra-remat.c (create_remat_bb_data): Likewise.
8347 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
8348 (lra): Likewise.
8349 (check_rtl): Always define. Remove incorrect guard around
8350 extract_constrain_insn call.
8351 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
8352 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
8353 ENABLE_CHECKING conditionals.
8354 * lto-streamer-out.c (DFS::DFS): Likewise.
8355 (lto_output): Likewise.
8356 * lto-streamer.c (lto_streamer_init): Likewise.
8357 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
8358 expand_omp_target, execute_expand_omp): Likewise.
8359 (lower_omp_target): Likewise.
8360 * passes.c (execute_function_todo): Likewise.
8361 (execute_todo, execute_one_pass): Likewise.
8362 (verify_curr_properties): Always define.
8363 * predict.c (tree_estimate_probability: Use flag_checking,
8364 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
8365 ENABLE_CHECKING conditionals.
8366 (propagate_freq): Likewise.
8367 * pretty-print.c (pp_format): Likewise.
8368 * real.c (real_to_decimal_for_mode): Likewise.
8369 * recog.c (split_all_insns): Likewise.
8370 * regcprop.c (kill_value_one_regno): Likewise.
8371 (copy_value): Likewise.
8372 (validate_value_data): Define unconditionally.
8373 * reload.c: Fix comment.
8374 * timevar.c: Include options.h
8375 * tree-ssa.h (checking_verify_ssa): Define.
8376 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
8377 * sched-deps.c (CHECK): Remove unused macro.
8378 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
8379 gcc_checking_assert and checking_* functions to eliminate
8380 ENABLE_CHECKING conditionals.
8381 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
8382 * sel-sched.c (struct moveop_static_params): Likewise.
8383 (find_best_reg_for_expr, move_cond_jump): Likewise.
8384 (move_op_orig_expr_not_found): Likewise.
8385 (code_motion_process_successors, move_op): Likewise.
8386 * ssa-iterators.h (first_readonly_imm_use): Likewise.
8387 (next_readonly_imm_use): Likewise.
8388 * store-motion.c (compute_store_table): Likewise.
8389 * symbol-summary.h (function_summary::function_summary): Likewise.
8390 * target.h (cumulative_args_t): Likewise.
8391 (get_cumulative_args, pack_cumulative_args): Likewise.
8392 * timevar.c: (timer::print): Likewise.
8393 * trans-mem.c (ipa_tm_execute): Likewise.
8394 * tree-cfg.c (move_stmt_op): Likewise.
8395 (move_sese_region_to_fn): Likewise.
8396 (gimple_flow_call_edges_add): Likewise.
8397 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
8398 Likewise.
8399 * tree-eh.c (remove_unreachable_handlers): Likewise.
8400 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
8401 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
8402 * tree-into-ssa.c (update_ssa): Likewise.
8403 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
8404 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
8405 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
8406 * tree-predcom.c (suitable_component_p): Likewise.
8407 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
8408 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
8409 * tree-ssa-live.c (verify_live_on_entry): Likewise.
8410 * tree-ssa-live.h (register_ssa_partition): Likewise.
8411 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
8412 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
8413 (tree_transform_and_unroll_loop): Likewise.
8414 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
8415 * tree-ssa-operands.c (get_expr_operands): Likewise.
8416 * tree-ssa-propagate.c (replace_exp_1): Likewise.
8417 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
8418 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
8419 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
8420 * tree-ssanames.c (release_ssa_name_fn): Likewise.
8421 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
8422 * tree-vect-loop-manip.c
8423 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
8424 (slpeel_checking_verify_cfg_after_peeling): Likewise.
8425 (vect_do_peeling_for_loop_bound): Likewise.
8426 (vect_do_peeling_for_alignment): Likewise.
8427 * tree-vrp.c (supports_overflow_infinity): Likewise.
8428 (set_value_range): Likewise.
8429 * tree.c (free_lang_data_in_cgraph): Likewise.
8430 * value-prof.c (gimple_remove_histogram_value): Likewise.
8431 (free_hist): Likewise.
8432 * var-tracking.c (canonicalize_values_star): Likewise.
8433 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
8434
8435 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8436
8437 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
8438 IFN_GOACC_LOOP): New.
8439 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
8440 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
8441 IFN_UNIQUE_OACC_TAIL_MARK.
8442 (enum ifn_goacc_loop_kind): New.
8443 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
8444 IFN_UNIQUE_OACC_JOIN cases.
8445 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
8446 (expand_GOACC_LOOP): New.
8447 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
8448 * omp-low.c: Include gimple-pretty-print.h.
8449 (struct oacc_loop): New.
8450 (enum oacc_loop_flags): New.
8451 (oacc_thread_numbers): New.
8452 (oacc_xform_loop): New.
8453 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
8454 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
8455 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
8456 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
8457 oacc_loop_discovery): New.
8458 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
8459 oacc_loop_process): New.
8460 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
8461 (execute_oacc_device_lower): Discover & process loops. Process
8462 internal fns.
8463 * target.def (goacc.fork_join): Change sense of hook, clarify
8464 documentation.
8465 * doc/tm.texi: Regenerated.
8466
8467 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8468
8469 * target-insns.def (oacc_fork, oacc_join): Define.
8470 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
8471 (goacc.fork_join): New GOACC hook.
8472 * targhooks.h (default_goacc_fork_join): Declare.
8473 * omp-low.c (default_goacc_forkjoin): New.
8474 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
8475 * doc/tm.texi: Regenerate.
8476
8477 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8478
8479 * omp-low.c (oacc_init_rediction_array): New.
8480 (oacc_initialize_reduction_data): Initialize array.
8481
8482 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8483
8484 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
8485
8486 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8487
8488 * internal-fn.c (expand_UNIQUE): New.
8489 * internal-fn.h (enum ifn_unique_kind): New.
8490 * internal-fn.def (IFN_UNIQUE): New.
8491 * target-insns.def (unique): Define.
8492 * gimple.h (gimple_call_internal_unique_p): New.
8493 * gimple.c (gimple_call_same_target_p): Check internal fn
8494 uniqueness.
8495 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
8496 * tree-ssa-threadedge.c
8497 (record_temporary_equivalences_from_stmts): Likewise.
8498 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
8499
8500 2015-10-27 Richard Henderson <rth@redhat.com>
8501
8502 PR rtl-opt/67609
8503 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
8504 narrowing subregs on SSE and MMX registers.
8505 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
8506 appear to be sub-words of multi-register pseudos must be rejected.
8507 * doc/tm.texi: Regenerate.
8508
8509 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8510
8511 PR target/68102
8512 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
8513 operands[0] is a reg before taking its REGNO in split condition.
8514 (*movdi_aarch64): Likewise.
8515
8516 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8517
8518 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
8519 Handle floating point inner modes properly.
8520
8521 2015-10-27 Alan Hayward <alan.hayward@arm.com>
8522
8523 * tree-vect-looop.c
8524 (vectorizable_live_operation): Change iterator.
8525
8526 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
8527 Aditya Kumar <aditya.k7@samsung.com>
8528
8529 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
8530 function to schedule based on isl_schedule_node.
8531 (get_schedule_map_st): New schedule optimizer based on
8532 isl_schedule_node.
8533 (scop_get_domains): New. Return the isl_union_set containing the
8534 domains of all the pbbs.
8535 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
8536
8537 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
8538
8539 PR target/67215
8540 * calls.c (prepare_call_address): Don't handle -fno-plt here.
8541 * config/i386/i386.c (ix86_expand_call): Generate indirect call
8542 via GOT for -fno-plt. Support indirect call via GOT for x32.
8543 * config/i386/predicates.md (sibcall_memory_operand): Allow
8544 GOT memory operand.
8545
8546 2015-10-27 Richard Biener <rguenther@suse.de>
8547
8548 PR tree-optimization/68104
8549 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
8550 strided access check ...
8551 (vect_compute_data_refs_alignment): ... here.
8552
8553 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
8554 Joseph Myers <joseph@codesourcery.com>
8555 Mark Shinwell <shinwell@codesourcery.com>
8556 Andrew Stubbs <ams@codesourcery.com>
8557 Rich Felker <dalias@libc.org>
8558
8559 * config.gcc: Handle --enable-fdpic.
8560 * config/sh/constraints.md (Ccl): New constraint.
8561 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
8562 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
8563 __SH_FDPIC__.
8564 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
8565 library functions.
8566 * config/sh/sh-protos.h (function_symbol_result): New struct.
8567 (function_symbol): Return function_symbol_result.
8568 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
8569 declarations.
8570 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
8571 target hook.
8572 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
8573 (sh_option_override): Force -fPIC if FDPIC is in effect.
8574 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
8575 UNSPEC_GOTOFFFUNCDESC cases.
8576 (prepare_move_operands): Use FDPIC initial GOT register for
8577 TLS-related GOT access; inhibit cross-section address offset constants
8578 for FDPIC.
8579 (sh_assemble_integer): New function.
8580 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
8581 PC-relative call sites.
8582 (expand_ashiftrt): Adapt invocation of function_symbol.
8583 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
8584 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
8585 UNSPEC_GOTOFFFUNCDESC.
8586 (legitimize_pic_address): Resolve function symbols to function
8587 descriptors for FDPIC. Do not use GOT-relative addressing for local
8588 data that may be read-only on FDPIC.
8589 (sh_emit_storesi, sh_emit_storehi): New functions.
8590 (sh_trampoline_init): Generate FDPIC trampolines.
8591 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
8592 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
8593 (sh_output_mi_thunk): Generate FDPIC call.
8594 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
8595 FDPIC, generate call site labels to use PC-relative addressing rather
8596 than GOT-relative addressing.
8597 (sh_conditional_register_usage): Make PIC register fixed and call used
8598 when FDPIC is in effect.
8599 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
8600 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
8601 sh_get_fdpic_reg_initial_val): New functions.
8602 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
8603 Handle -mfdpic.
8604 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
8605 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
8606 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
8607 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
8608 FDPIC_SELF_SPECS.
8609 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
8610 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
8611 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
8612 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
8613 constants.
8614 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
8615 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
8616 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
8617 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
8618 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
8619 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
8620 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
8621 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
8622 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
8623 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
8624 block_move_real, block_lump_real, block_move_real_i4,
8625 block_lump_real_i4): Add support for FDPIC calls.
8626 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
8627 call_value_pop): Adjust for new function_symbol signature.
8628 * config/sh/sh.opt (-mfdpic): New option.
8629 * doc/install.texi (Options specification): Document --enable-fdpic.
8630 * doc/invoke.texi (SH Options): Document -mfdpic.
8631
8632
8633 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
8634
8635 PR tree-optimization/65963
8636 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
8637 LSHIFT_EXPRs as equivalent MULT_EXPRs.
8638
8639 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8640
8641 PR target/67929
8642 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
8643 * config/arm/constraints.md (Dp): Update callsite.
8644 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
8645
8646 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8647
8648 * builtins.c (fold_builtin_load_exponent): Rename to...
8649 (fold_const_builtin_load_exponent): ...this and only handle
8650 constant arguments.
8651 (fold_builtin_2): Update accordingly.
8652 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
8653
8654 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8655
8656 * builtins.c (fold_builtin_logb): Rename to...
8657 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
8658 (fold_builtin_significand): Rename to...
8659 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
8660 (fold_builtin_1): Update accordingly.
8661
8662 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8663
8664 * builtins.c (fold_builtin_fmin_fmax): Delete.
8665 (fold_builtin_2): Handle constant fmin and fmax arguments here.
8666 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
8667
8668 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
8669
8670 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
8671 for register extension into sign and zero register extension.
8672 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
8673 for sign and zero register extension.
8674 (cortexa57_addrcost_table): Likewise.
8675 (xgene1_addrcost_table): Likewise.
8676
8677 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8678
8679 * fold-const.c (fold_minmax): Delete.
8680 (fold_binary_loc): Don't call it.
8681 * match.pd: Add rules previously handled by fold_minmax.
8682
8683 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8684
8685 * builtins.c (fold_builtin_fma): Remove constant handling.
8686 (fold_builtin_3): Handle constant fma arguments here.
8687
8688 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8689
8690 * builtins.c (fold_builtin_fabs): Remove constant handling.
8691 (fold_builtin_abs): Likewise.
8692
8693 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8694
8695 * builtins.c (fold_builtin_copysign): Delete.
8696 (fold_builtin_2): Handle constant copysign arguments here.
8697 * match.pd: Add rules previously handled by fold_builtin_copysign.
8698
8699 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8700
8701 * builtins.c (fold_builtin_signbit): Delete.
8702 (fold_builtin_2): Handle constant signbit arguments here.
8703 * match.pd: Add rules previously handled by fold_builtin_signbit.
8704
8705 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8706
8707 * match.pd: Handle sqrt(x) cmp 0 specially.
8708
8709 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
8710
8711 * tree-vect-generic.c (expand_vector_operations_1): Check
8712 optab type before using it.
8713
8714 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8715
8716 * config/aarch64/aarch64-protos.h
8717 (struct tune_params): Add autoprefetcher_model field.
8718 * config/aarch64/aarch64.c: Include params.h
8719 (generic_tunings): Specify autoprefetcher_model value.
8720 (cortexa53_tunings): Likewise.
8721 (cortexa57_tunings): Likewise.
8722 (cortexa72_tunings): Likewise.
8723 (thunderx_tunings): Likewise.
8724 (xgene1_tunings): Likewise.
8725 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
8726 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
8727 (aarch64_override_options_internal): Set
8728 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
8729
8730 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8731
8732 * builtins.c (fold_builtin_exponent): Delete.
8733 (fold_builtin_2): Handle constant expN arguments here.
8734 * match.pd: Fold expN(logN(x)) -> x.
8735
8736 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8737
8738 * builtins.c (fold_builtin_powi): Delete.
8739 (fold_builtin_2): Handle constant powi arguments here.
8740 * match.pd: Add rules previously handled by fold_builtin_powi.
8741
8742 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8743
8744 * builtins.c (fold_builtin_pow): Delete in favor of...
8745 (fold_const_builtin_pow): ...this new function. Only handle constant
8746 arguments.
8747 (fold_builtin_2): Update accordingly.
8748 * match.pd: Add rules previously handled by fold_builtin_pow.
8749
8750 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8751
8752 * builtins.c (fold_builtin_hypot): Delete.
8753 (fold_builtin_2): Handle constant hypot arguments here.
8754 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
8755 hypot(x, x) to fabs(x)*sqrt(2).
8756
8757 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8758
8759 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
8760 instead of make_ssa_name if not yet in SSA form.
8761
8762 2015-10-27 Richard Biener <rguenther@suse.de>
8763
8764 * cfg.c (free_edge): Add function argument and use it instead of cfun.
8765 (clear_edges): Likewise.
8766 * cfg.h (clear_edges): Adjust prototype.
8767 * cfgexpand.c (pass_expand::execute): Adjust.
8768 * cfgloop.c (release_recorded_exits): Add function argument and use
8769 it instead of cfun.
8770 * cfgloop.h (release_recorded_exits): Adjust prototype.
8771 (loops_state_satisfies_p): Add overload with function argument.
8772 (loops_state_set): Likewise.
8773 (loops_state_clear): Likewise.
8774 (struct loop_iterator): Add function argument to constructor
8775 and iterator and use it instead of cfun.
8776 (FOR_EACH_LOOP_FN): New macro.
8777 (loop_optimizer_finalize): Add overload with function argument.
8778 * loop-init.c (loop_optimizer_init): Adjust.
8779 (fix_loop_structure): Likewise.
8780 (loop_optimizer_finaliz): Add function argument and use it
8781 instead of cfun.
8782 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
8783 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
8784 * cgraph.c (release_function_body): Do not push/pop cfun.
8785 * final.c (rest_of_clean_state): Adjust.
8786 * graphite.c (graphite_finalize): Likewise.
8787 * tree-ssa-copy.c (fini_copy_prop): Likewise.
8788 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
8789 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
8790 (tree_unroll_loops_completely): Likewise.
8791 (pass_complete_unrolli::execute): Likewise.
8792 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
8793 Add function argument and use it instead of cfun.
8794 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
8795 Adjust prototype.
8796 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
8797 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
8798 instead of cfun.
8799 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
8800 * tree-ssanames.c (fini_ssanames): Add function argument and use it
8801 instead of cfun.
8802 * tree-ssanames.c (fini_ssanames): Adjust prototype.
8803 * tree-vrp.c (execute_vrp): Adjust.
8804 * value-prof.c (free_histograms): Add function argument and use it
8805 instead of cfun.
8806 * value-prof.h (free_histograms): Adjust prototype.
8807
8808 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
8809
8810 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
8811 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
8812 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
8813
8814 2015-10-27 Tom de Vries <tom@codesourcery.com>
8815
8816 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
8817 field_type.
8818
8819 2015-10-27 Bin Cheng <bin.cheng@arm.com>
8820
8821 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
8822 (inv_can_prop_to_addr_use): New function.
8823 (record_use): Call can_prop_to_addr_uses, set the new field.
8824 (get_inv_cost): Count cost if inv can't be propagated into its
8825 address uses.
8826
8827 2015-10-26 Doug Evans <dje@google.com>
8828
8829 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
8830
8831 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
8832
8833 * match.pd (fold_widened_comparison): Apply simplifications to all
8834 integral types.
8835
8836 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
8837
8838 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
8839 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
8840 * doc/tm.texi: Regenerated.
8841 * reorg.c (dbr_schedule): Use new hook.
8842 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
8843
8844 2015-10-26 Jeff Law <law@redhat.com>
8845
8846 PR tree-optimization/68013
8847 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8848 Make sure the first block in the path is in VISITED_BBs.
8849
8850 2015-10-26 Richard Biener <rguenther@suse.de>
8851 Dominik Vogt <vogt@linux.vnet.ibm.com>
8852
8853 PR middle-end/67443
8854 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
8855 Properly prune ref->ref for accesses outside of ref.
8856
8857 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
8858
8859 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
8860 new statements to be inserted if inplace. Allow calls to have
8861 nonempty sequences.
8862
8863 2015-10-26 Richard Biener <rguenther@suse.de>
8864
8865 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
8866 (do_valueize): New function.
8867 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
8868 replace_uses_by.
8869 * tree-ssa-threadedge.c: Remove builtins.h include, include
8870 gimple-fold.h
8871 (fold_assignment_stmt): Remove.
8872 (threadedge_valueize): New function.
8873 (record_temporary_equivalences_from_stmts): Use
8874 gimple_fold_stmt_to_constant_1, note additional cleanup
8875 opportunities.
8876
8877 2015-10-26 Richard Biener <rguenther@suse.de>
8878
8879 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
8880 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
8881
8882 2015-10-26 Alan Hayward <alan.hayward@arm.com>
8883
8884 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
8885 VEC_COND_EXPR types.
8886
8887 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8888
8889 * auto-inc-dec.c (insert_move_insn_before): Delete.
8890 (attempt_change): Remember to cost the simple move in the
8891 FORM_PRE_ADD and FORM_POST_ADD cases.
8892
8893 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
8894
8895 PR target/68091
8896 * config/sh/sh.c (sh_vector_mode_supported_p): Use
8897 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
8898
8899 2015-10-26 Tom de Vries <tom@codesourcery.com>
8900
8901 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
8902 factored out of ...
8903 (intra_create_variable_infos): ... here.
8904
8905 2015-10-26 Tom de Vries <tom@codesourcery.com>
8906
8907 * tree-ssa-structalias.c (intra_create_variable_infos): Add
8908 restrict_pointer_p and recursive_restrict_p variables.
8909
8910 2015-10-26 Tom de Vries <tom@codesourcery.com>
8911
8912 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
8913 get_vi_for_tree call.
8914
8915 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8916
8917 PR middle-end/67989
8918 * optabs.c (expand_atomic_compare_and_swap): Handle case when
8919 ptarget_oval or ptarget_bool are const0_rtx.
8920
8921 2015-10-26 Christian Bruel <christian.bruel@st.com>
8922
8923 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
8924 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
8925 * cp/method.c (implicitly_declare_fn): Likewise.
8926 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
8927 * java/class.c (add_method_1): Likewise.
8928
8929 2015-10-26 Richard Biener <rguenther@suse.de>
8930
8931 * alloc-pool.h (base_pool_allocator): Use placement new.
8932 (base_pool_allocator::remove): Likewise. Compute size outside of
8933 flag_checking.
8934
8935 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
8936
8937 * builtins.c (do_real_to_int_conversion): New function.
8938 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
8939 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
8940 arguments here.
8941 * match.pd: Add rules previously handled by fold_fixed_mathfn
8942 and fold_builtin_int_roundingfn.
8943
8944 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
8945
8946 * match.pd: Use macros to define built-in operator lists.
8947
8948 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
8949 Richard Biener <rguenther@suse.de>
8950
8951 * genmatch.c (dt_simplify::gen): Skip captures that are
8952 part of the result.
8953 (parser::parse_expr): Allow captures in results too.
8954 * builtins.c (fold_builtin_cexp): Delete.
8955 (fold_builtin_1): Handle constant cexp arguments here.
8956 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
8957
8958 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
8959
8960 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
8961 conditional compilation.
8962 (base_pool_allocator::remove): Use flag_checking.
8963
8964 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
8965
8966 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
8967
8968 PR middle-end/68079
8969 * dojump.c (do_compare_and_jump): Canonicalize both function and
8970 method types.
8971
8972 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
8973
8974 PR target/68084
8975 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
8976 for =@ccae.
8977
8978 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8979
8980 PR ipa/pr67600
8981 * ipa-polymorphic-call.c
8982 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
8983 instance offset with offset of outer type.
8984
8985 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8986
8987 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
8988
8989 2015-10-23 Caroline Tice <cmtice@google.com>
8990
8991 (from Richard Biener
8992 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
8993 call to iterative_hash_host_wide_int.
8994
8995 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
8996
8997 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
8998 Define as yes.
8999
9000 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
9001
9002 * tree-vect-generic.c (expand_vector_operations_1): Check
9003 optab exists before use it.
9004
9005 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
9006
9007 * tree-vect-generic.c (expand_vector_condition): Avoid
9008 uninitialized variable warning.
9009
9010 2015-10-23 Jeff Law <law@redhat.com>
9011
9012 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
9013 here. Instead...
9014 (execute_todo): Call it here.
9015 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
9016 statistics
9017 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
9018
9019 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
9020 Szabolcs Nagy <szabolcs.nagy@arm.com>
9021
9022 * config.gcc (enable_secureplt): Add *-linux*-musl*.
9023
9024 2015-10-23 Jeff Law <law@redhat.com>
9025
9026 PR tree-optimization/67830
9027 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
9028 Explicitly verify the mask has no bits outside the type of
9029 the innermost operands.
9030
9031 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
9032 Szabolcs Nagy <szabolcs.nagy@arm.com>
9033
9034 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
9035 (MUSL_DYNAMIC_LINKER64): Define.
9036 (GNU_USER_DYNAMIC_LINKER32): Update.
9037 (GNU_USER_DYNAMIC_LINKER64): Update.
9038 (CHOOSE_DYNAMIC_LINKER): Update.
9039
9040 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
9041 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
9042 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
9043 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
9044 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
9045 (CHOOSE_DYNAMIC_LINKER): Update.
9046 (INCLUDE_DEFAULTS): Redefine.
9047
9048 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
9049
9050 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
9051
9052 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
9053 comparing addresses.
9054
9055 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
9056
9057 * fold-const.c (operand_equal_p): Handle matching of vector
9058 constructors.
9059
9060 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
9061
9062 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
9063
9064 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
9065 Andrew Pinski <apinski@cavium.com>
9066
9067 PR rtl-optimization/67736
9068 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
9069 of gen_lowpart.
9070
9071 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
9072
9073 PR middle-end/68066
9074 * tree.c (build_truth_vector_type): Support BLK mode
9075 returned for boolean vector.
9076
9077 2015-10-23 Alan Hayward <alan.hayward@arm.com>
9078
9079 PR tree-optimization/65947
9080 * tree-vect-loop.c
9081 (vect_is_simple_reduction_1): Find condition reductions.
9082 (vect_model_reduction_cost): Add condition reduction costs.
9083 (get_initial_def_for_reduction): Add condition reduction initial var.
9084 (vect_create_epilog_for_reduction): Add condition reduction epilog.
9085 (vectorizable_reduction): Condition reduction support.
9086 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
9087 * doc/sourcebuild.texi (Vector-specific attributes): Document
9088 vect_max_reduc
9089
9090 2015-10-23 Richard Biener <rguenther@suse.de>
9091
9092 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
9093 and builtins.def.
9094
9095 2015-10-23 Richard Biener <rguenther@suse.de>
9096 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9097
9098 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
9099 into (A ^ B) - B to match.pd
9100 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
9101
9102 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
9103 New simplifier.
9104 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
9105 New simplifier.
9106 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
9107 New simplifier.
9108 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
9109 New simplifier.
9110 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
9111 INTEGER_CST@1)): New simplifier.
9112
9113 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
9114
9115 * builtins.c (integer_valued_real_p): Move to fold-const.c.
9116 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
9117 (fold_builtin_ceil, fold_builtin_round): Delete.
9118 (fold_builtin_1): Handle constant trunc, floor, ceil and round
9119 arguments here.
9120 * convert.c (convert_to_real): Remove narrowing of rounding
9121 functions.
9122 * fold-const.h (integer_valued_real_unary_p)
9123 (integer_valued_real_binary_p, integer_valued_real_call_p)
9124 (integer_valued_real_single_p, integer_valued_real_p): Declare.
9125 * fold-const.c (tree_single_nonnegative_warnv_p): Move
9126 name_registered_for_update_p check to SSA_NAME case statement.
9127 Don't call tree_simple_nonnegative_warnv_p for SSA names.
9128 (integer_valued_real_unary_p, integer_valued_real_binary_p)
9129 (integer_valued_real_call_p, integer_valued_real_single_p)
9130 (integer_valued_real_invalid_p): New functions.
9131 (integer_valued_real_p): Move from fold-const.c and rework
9132 to call the functions above. Handle SSA names.
9133 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
9134 * gimple-fold.c (gimple_assign_integer_valued_real_p)
9135 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
9136 (gimple_stmt_integer_valued_real_p): New functions.
9137 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
9138 Fold f(x)->x for the same f if x is known to be integer-valued.
9139 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
9140 the result. Canonicalize floor(x) as trunc(x) if x is
9141 nonnegative.
9142
9143 2015-10-23 Tom de Vries <tom@codesourcery.com>
9144
9145 * tree-ssa-structalias.c (intra_create_variable_infos): Use
9146 make_constraint_from.
9147
9148 2015-10-23 Tom de Vries <tom@codesourcery.com>
9149
9150 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
9151 setting of is_full_var in case of a single field.
9152
9153 2015-10-22 Martin Sebor <msebor@redhat.com>
9154
9155 PR driver/68043
9156 * config/i386/i386.opt: Add missing periods to the ends of sentences.
9157 * config/msp430/msp430.opt: Same.
9158
9159 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
9160
9161 * doc/extend.exp (Global Register Variables): Rewrite.
9162
9163 2015-10-22 Jeff Law <law@redhat.com>
9164
9165 * genattrtab.c (main): If we do not have any annul-true or annul-false
9166 slots, then write out a dummy eligible_for_annul_true or
9167 eligible_for_annul_false as needed.
9168
9169 2015-10-22 Nick Clifton <nickc@redhat.com>
9170
9171 * config/msp430/msp430.opt: Add -msilicon-errata and
9172 -msilicon-errata-warn.
9173 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
9174 assembler.
9175 * doc/invoke.texi: Document new options.
9176
9177 2015-10-22 Richard Biener <rguenther@suse.de>
9178
9179 PR tree-optimization/58497
9180 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
9181 (expand_vector_operations_1): Use it. Lower operations on
9182 all uniform vectors to scalar operations if the HW supports it.
9183
9184 2015-10-22 Richard Biener <rguenther@suse.de>
9185
9186 PR tree-optimization/19049
9187 PR tree-optimization/65962
9188 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
9189 to strided accesses if single-element interleaving doesn't work.
9190
9191 2015-10-22 Richard Biener <rguenther@suse.de>
9192
9193 PR middle-end/68046
9194 PR middle-end/61893
9195 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
9196 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
9197 (expand_unop): Likewise.
9198
9199 2015-10-22 Richard Biener <rguenther@suse.de>
9200
9201 * fold-const.c (fold_addr_of_array_ref_difference): Properly
9202 convert operands before folding a MINUS_EXPR.
9203 (fold_binary_loc): Move simplification of MINUS_EXPR on
9204 converted POINTER_PLUS_EXPRs ...
9205 * match.pd: ... here.
9206
9207 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
9208
9209 * builtins.c (fold_builtin_tan): Delete.
9210 (fold_builtin_1): Handle constant tan arguments here.
9211 * match.pd: Simplify (tan (atan x)) to x.
9212
9213 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
9214
9215 * builtins.c (fold_builtin_cproj): Delete.
9216 (fold_builtin_1): Handle constant arguments here.
9217 (build_complex_cproj): Move and rename to...
9218 * tree.c: (build_complex_inf): ...this.
9219 * tree.h (build_complex_inf): Declare.
9220 * match.pd: Fold cproj(x)->x if x has no infinity.
9221 Use build_complex_inf for existing cproj rules.
9222
9223 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9224
9225 PR target/68015
9226 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
9227 already have a comparison result.
9228
9229 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9230
9231 PR target/63304
9232 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
9233 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
9234 (aarch64_classify_address): Likewise.
9235 (aarch64_secondary_reload): Likewise.
9236 (aarch64_override_options_after_change_1): Adjust.
9237 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
9238 Use aarch64_nopcrelative_literal_loads.
9239 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
9240 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
9241 Declare.
9242
9243 2015-10-21 Martin Sebor <msebor@redhat.com>
9244
9245 PR driver/68043
9246 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
9247 (print_filtered_help): Reference aliased option's name and encourage
9248 readers to use it in preference to the alias if the former is not
9249 documented. Mention when using an option is diagnosed.
9250 * gcc.c (display_help): End each sentence with a period.
9251
9252 * common.opt: End each sentence that describes an option with
9253 a period.
9254 * config/aarch64/aarch64.opt: Same.
9255 * config/alpha/alpha.opt: Same.
9256 * config/arc/arc.opt: Same.
9257 * config/arm/arm.opt: Same.
9258 * config/avr/avr.opt: Same.
9259 * config/bfin/bfin.opt: Same.
9260 * config/c6x/c6x.opt: Same.
9261 * config/cr16/cr16.opt: Same.
9262 * config/cris/cris.opt: Same.
9263 * config/cris/linux.opt: Same.
9264 * config/darwin.opt: Same.
9265 * config/epiphany/epiphany.opt: Same.
9266 * config/fr30/fr30.opt: Same.
9267 * config/frv/frv.opt: Same.
9268 * config/ft32/ft32.opt: Same.
9269 * config/g.opt: Same.
9270 * config/h8300/h8300.opt: Same.
9271 * config/i386/cygming.opt: Same.
9272 * config/i386/djgpp.opt: Same.
9273 * config/i386/i386.opt: Same.
9274 * config/i386/interix.opt: Same.
9275 * config/i386/mingw-w64.opt: Same.
9276 * config/i386/mingw.opt: Same.
9277 * config/ia64/ia64.opt: Same.
9278 * config/ia64/ilp32.opt: Same.
9279 * config/iq2000/iq2000.opt: Same.
9280 * config/linux.opt: Same.
9281 * config/lm32/lm32.opt: Same.
9282 * config/lynx.opt: Same.
9283 * config/m32c/m32c.opt: Same.
9284 * config/m32r/m32r.opt: Same.
9285 * config/m68k/ieee.opt: Same.
9286 * config/m68k/m68k.opt: Same.
9287 * config/mcore/mcore.opt: Same.
9288 * config/mep/mep.opt: Same.
9289 * config/microblaze/microblaze.opt: Same.
9290 * config/mips/mips.opt: Same.
9291 * config/mmix/mmix.opt: Same.
9292 * config/mn10300/mn10300.opt: Same.
9293 * config/moxie/moxie.opt: Same.
9294 * config/msp430/msp430.opt: Same.
9295 * config/nios2/elf.opt: Same.
9296 * config/nios2/nios2.opt: Same.
9297 * config/nvptx/nvptx.opt: Same.
9298 * config/pa/pa-hpux.opt: Same.
9299 * config/pa/pa-hpux1010.opt: Same.
9300 * config/pa/pa-hpux1111.opt: Same.
9301 * config/pa/pa-hpux1131.opt: Same.
9302 * config/pa/pa.opt: Same.
9303 * config/pa/pa64-hpux.opt: Same.
9304 * config/pdp11/pdp11.opt: Same.
9305 * config/rl78/rl78.opt: Same.
9306 * config/rs6000/476.opt: Same.
9307 * config/rs6000/aix64.opt: Same.
9308 * config/rs6000/darwin.opt: Same.
9309 * config/rs6000/linux64.opt: Same.
9310 * config/rs6000/rs6000.opt: Same.
9311 * config/rs6000/sysv4.opt: Same.
9312 * config/s390/s390.opt: Same.
9313 * config/s390/tpf.opt: Same.
9314 * config/sh/sh.opt: Same.
9315 * config/sol2.opt: Same.
9316 * config/sparc/long-double-switch.opt: Same.
9317 * config/sparc/sparc.opt: Same.
9318 * config/spu/spu.opt: Same.
9319 * config/stormy16/stormy16.opt: Same.
9320 * config/tilegx/tilegx.opt: Same.
9321 * config/tilepro/tilepro.opt: Same.
9322 * config/v850/v850.opt: Same.
9323 * config/vax/vax.opt: Same.
9324 * config/visium/visium.opt: Same.
9325 * config/vms/vms.opt: Same.
9326 * config/vxworks.opt: Same.
9327 * config/xtensa/xtensa.opt: Same.
9328
9329 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
9330 Sebastian Pop <s.pop@samsung.com>
9331
9332 * graphite-scop-detection.c (parameter_index_in_region): Update call to
9333 invariant_in_sese_p_rec.
9334 * graphite-sese-to-poly.c (extract_affine): Same.
9335 * sese.c (invariant_in_sese_p_rec): Pass in an extra
9336 parameter has_vdefs.
9337 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
9338 variable depends on virtual definitions in the current region.
9339 * sese.h (invariant_in_sese_p_rec): Update declaration.
9340
9341 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
9342 Sebastian Pop <s.pop@samsung.com>
9343
9344 * graphite-scop-detection.c (build_scops): Do not handle scops
9345 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
9346 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
9347
9348 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
9349
9350 * config.in: Regenerate.
9351 * configure: Regenerate.
9352 * configure.ac (CHECKING_P): Define.
9353 * system.h: Use CHECKING_P.
9354
9355 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9356
9357 PR ipa/67056
9358 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
9359 is negative we don't know the type.
9360 (check_stmt_for_type_change): Skip constructors of non-polymorphic
9361 types as those won't help devirutalization.
9362
9363 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9364
9365 * fold-const.c (operand_equal_p): Add code matching empty constructors.
9366
9367 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
9368
9369 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
9370 comments.
9371 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
9372 Add comments on sign of the result.
9373 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
9374 Recurse on operand #1 instead of operand #0.
9375 <CEIL_MOD_EXPR>: Do not recurse.
9376 <ROUND_MOD_EXPR>: Likewise.
9377
9378 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9379
9380 * cfgrtl.c (pass_free_cfg::execute): Adjust.
9381 * final.c (dbr_sequence_length): Always define.
9382 (shorten_branches): Adjust.
9383 * genattr-common.c (main): Always define DELAY_SLOTS.
9384 * genattr.c (main): Unconditionally declare functions and define
9385 macros related to delay slots.
9386 * genattrtab.c (write_eligible_delay): Adjust.
9387 (main): Always write out delay slot functions.
9388 * opts.c (default_options_table): Adjust.
9389 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
9390 (redirect_with_delay_list_safe_p): Likewise.
9391 (fill_simple_delay_slots): Likewise.
9392 (fill_slots_from_thread): Likewise.
9393 (make_return_insns): Likewise.
9394 (dbr_schedule): Likewise.
9395 (rest_of_handle_delay_slots): Likewise.
9396 (pass_delay_slots::gate): Likewise.
9397 * toplev.c (process_options): Likewise.
9398
9399 2015-10-21 Richard Henderson <rth@redhat.com>
9400
9401 * targhooks.c (default_addr_space_pointer_mode): Remove check
9402 for generic address space.
9403 (default_addr_space_address_mode): Likewise.
9404 (default_addr_space_valid_pointer_mode): Likewise.
9405 (default_addr_space_legitimate_address_p): Likewise.
9406 (default_addr_space_legitimize_address): Likewise.
9407 * target.def (addr_space.pointer_mode): Update documentation
9408 of default behavior.
9409 (addr_space.address_mode): Likewise.
9410 * tm.texi: Update.
9411
9412 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
9413 address spaces.
9414
9415 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
9416
9417 * builtins.c (fold_builtin_cabs): Delete.
9418 (fold_builtin_1): Update accordingly. Handle constant arguments here.
9419 * match.pd: Add rules previously handled by fold_builtin_cabs.
9420
9421 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
9422
9423 * fold-const.h (fold_strip_sign_ops): Delete.
9424 * fold-const.c (fold_strip_sign_ops): Likewise.
9425 (fold_unary_loc, fold_binary_loc): Remove calls to it.
9426 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
9427 (fold_builtin_ccos): Delete.
9428 (fold_builtin_pow): Don't call fold_strip_sign_ops.
9429 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
9430 Remove fndecl argument.
9431 (fold_builtin_1): Update calls accordingly. Handle constant
9432 cos, cosh, ccos and ccosh here.
9433
9434 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
9435
9436 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
9437 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
9438 * common.opt (fssa-backprop): New option.
9439 * fold-const.h (negate_mathfn_p): Declare.
9440 * fold-const.c (negate_mathfn_p): Make public.
9441 * timevar.def (TV_TREE_BACKPROP): New.
9442 * tree-pass.h (make_pass_backprop): Declare.
9443 * passes.def (pass_backprop): Add.
9444 * gimple-ssa-backprop.c: New file.
9445
9446 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
9447 Sebastian Pop <s.pop@samsung.com>
9448
9449 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
9450 Do not call create_empty_if_region_on_edge when cond_expr is true.
9451 (translate_isl_ast_node_for): Check whether a guard has been generated.
9452
9453 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
9454
9455 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
9456 (operator=): Removed.
9457 (dr_info): Make alias_set number the last argument with default
9458 value of invalid_alias_set.
9459 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
9460 of dr_info.
9461 (rewrite_reductions_out_of_ssa): Iterate only through the
9462 basic blocks which are inside region.
9463 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
9464 * sese.h (struct sese_l): Removed assignment operator.
9465 (split_region_for_bb): Removed dead code.
9466
9467 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
9468
9469 * graphite-poly.h (struct dr_info): Removed conversion constructor.
9470 (struct scop): Renamed scop::region to scop::scop_info
9471 (scop_set_region): Same.
9472 (SCOP_REGION): Removed
9473 (SCOP_CONTEXT): Removed.
9474 (POLY_SCOP_P): Removed.
9475 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
9476 Rename scop->region to scop->scop_info.
9477 (add_parameters_to_ivs_params): Same.
9478 (graphite_regenerate_ast_isl): Same.
9479 * graphite-poly.c (new_scop): Same.
9480 (free_scop): Same.
9481 (print_scop_params): Same.
9482 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
9483 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
9484 (dot_all_scops_1): Rename scop->region to scop->scop_info.
9485 (scop_detection::nb_pbbs_in_loops): Same.
9486 (find_scop_parameters): Same.
9487 (try_generate_gimple_bb): Same.
9488 (gather_bbs::before_dom_children): Same.
9489 (gather_bbs::after_dom_children): Same.
9490 (build_scops): Same.
9491 * graphite-sese-to-poly.c (build_scop_scattering): Same.
9492 (extract_affine_chrec): Same.
9493 (extract_affine): Same.
9494 (set_scop_parameter_dim): Same.
9495 (build_loop_iteration_domains): Same.
9496 (create_pw_aff_from_tree): Same.
9497 (add_param_constraints): Same.
9498 (build_scop_iteration_domain): Same.
9499 (build_scop_drs): Same.
9500 (analyze_drs_in_stmts): Same.
9501 (insert_out_of_ssa_copy_on_edge): Same.
9502 (rewrite_close_phi_out_of_ssa):Same.
9503 (rewrite_reductions_out_of_ssa):Same.
9504 (handle_scalar_deps_crossing_scop_limits):Same.
9505 (rewrite_cross_bb_scalar_deps):Same.
9506 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
9507 (build_poly_scop):Same.
9508 (build_alias_set): Use pointer to dr_info.
9509 * graphite.c (print_graphite_scop_statistics):
9510 (graphite_transform_loops):
9511 * sese.h (struct sese_l): Remove conversion constructor.
9512
9513 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9514
9515 PR middle-end/67966
9516 * tree.c (verify_type): Verify that TYPE_MODE match
9517 between TYPE_CANONICAL and type.
9518 * expr.c (store_expr_with_bounds): Revert my previous change.
9519 * expmed.c (store_bit_field_1): Revert prevoius change.
9520 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
9521 to match for all types.
9522
9523 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
9524
9525 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
9526 nesting.
9527
9528 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
9529
9530 * doc/tm.texi: Regenerated.
9531 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
9532 * stor-layout.c (layout_type): Use mode to get vector mask size.
9533 * target.def (get_mask_mode): New.
9534 * targhooks.c (default_get_mask_mode): New.
9535 * targhooks.h (default_get_mask_mode): New.
9536 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
9537 for boolean vector.
9538 * tree.c (MAX_BOOL_CACHED_PREC): New.
9539 (nonstandard_boolean_type_cache): New.
9540 (build_nonstandard_boolean_type): New.
9541 (make_vector_type): Vector mask has no canonical type.
9542 (build_truth_vector_type): New.
9543 (build_same_sized_truth_vector_type): New.
9544 (truth_type_for): Support vector masks.
9545 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
9546 (build_truth_vector_type): New.
9547 (build_same_sized_truth_vector_type): New.
9548 (build_nonstandard_boolean_type): New.
9549 * tree-cfg.c (verify_gimple_comparison) Require boolean
9550 vector type for vector comparison.
9551 (verify_gimple_assign_ternary): Likewise.
9552 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
9553 condition operand.
9554 * tree-vect-stmts.c (vectorizable_condition): Use boolean
9555 vector type for vector comparison.
9556 * tree-vect-generic.c (elem_op_func): Add new operand to hold
9557 vector type.
9558 (do_unop): Adjust to modified function type.
9559 (do_binop): Likewise.
9560 (do_plus_minus): Likewise.
9561 (do_negate); Likewise.
9562 (expand_vector_piecewise): Likewise.
9563 (do_cond): Likewise.
9564 (do_compare): Use comparison instead of condition.
9565 (expand_vector_divmod): Use boolean vector type for comparison.
9566 (expand_vector_operations_1): Skip scalar mask operations.
9567
9568 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
9569
9570 * omp-low.c (simd_clone_create): Set in_other_partition
9571 for created clones.
9572
9573 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
9574
9575 * doc/extend.exp (Local Register Variables): Rewrite.
9576
9577 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
9578
9579 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
9580 and x*x in cases where the operands are sign ops. Extend these
9581 rules to handle copysign as a sign op (including for cos, cosh
9582 and pow, which already treated negate and abs as sign ops).
9583
9584 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
9585
9586 PR target/68018
9587 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
9588 for 64-bit MS_ABI targets also when default incoming stack boundary
9589 is overriden.
9590
9591 2015-10-21 Richard Biener <rguenther@suse.de>
9592
9593 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
9594 cond stmts, enhanced and split out from ...
9595 (vn_phi_eq): ... here.
9596
9597 2015-10-21 Richard Biener <rguenther@suse.de>
9598
9599 PR middle-end/68031
9600 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
9601 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
9602 (tree_single_nonnegative_warnv_p): ... here. For SSA names
9603 make sure they are not registered for update.
9604
9605 2015-10-21 Richard Biener <rguenther@suse.de>
9606
9607 PR tree-optimization/68026
9608 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
9609 unsigned VARYING values.
9610
9611 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
9612
9613 * asan.c (asan_emit_stack_protection): Don't pass local stack to
9614 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
9615 NULL and use local stack than.
9616 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
9617 in addition to __asan_init.
9618 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
9619 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
9620 * asan.h (asan_intercepted_p): Handle new string builtins.
9621 * ubsan.c (ubsan_use_new_style_p): New function.
9622 (ubsan_instrument_float_cast): If location is unknown, assign
9623 input_location to loc. Propagate loc to ubsan_create_data if
9624 ubsan_use_new_style_p returned true.
9625
9626 2015-10-21 Jeff Law <law@redhat.com>
9627
9628 * Makefile.in (OBJS): Remove sched-vis.c
9629 * sched-vis.c: Removed. Code moved into...
9630 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
9631 * rtl.h: Remove prototypes for functions now living in print-rtl.c
9632 * print-rtl.h Add prototypes for new functions in print-rtl.c.
9633 * auto-inc-dec.c: Include print-rtl.h
9634 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
9635 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
9636
9637 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
9638 ATTRIBUTE_UNUSED.
9639
9640 2015-10-21 Richard Biener <rguenther@suse.de>
9641 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9642
9643 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
9644 to match.pd.
9645 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
9646 about signed left shift stronger and clarify the cases when they're
9647 broken.
9648 Move (a * (1 << b)) is (a << b) to match.pd.
9649 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
9650 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
9651 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
9652
9653 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
9654 New simplifier.
9655 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
9656 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
9657 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
9658 : New simplifier.
9659 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
9660 New simplifier.
9661 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
9662
9663 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
9664 Szabolcs Nagy <szabolcs.nagy@arm.com>
9665 Alan Modra <amodra@gmail.com>
9666
9667 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
9668 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
9669 (LINK_SPEC): Add %(link_secure_plt).
9670 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
9671 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
9672
9673 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
9674 Szabolcs Nagy <szabolcs.nagy@arm.com>
9675
9676 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
9677 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
9678
9679 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9680
9681 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
9682 New function.
9683 (fusion_load_store): Use it.
9684 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
9685 ldp and stp in VD modes.
9686 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
9687 (store_pair<mode>, VD): Likewise.
9688
9689 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
9690
9691 PR rtl-optimization/67609
9692 * lra-splill.c (lra_final_code_change): Don't remove all
9693 sub-registers.
9694
9695 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9696
9697 * simplify-rtx.c (simplify_binary_operation): If either operand was
9698 a constant pool reference use them if all other simplifications failed.
9699
9700 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9701
9702 * config/aarch64/aarch64.md
9703 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
9704 * config/aarch64/aarch64-simd.md
9705 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
9706 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
9707 (aarch64_fpconst_pow_of_2): New function.
9708 (aarch64_vec_fpconst_pow_of_2): Likewise.
9709 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
9710 prototype.
9711 (aarch64_vec_fpconst_pow_of_2): Likewise.
9712 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
9713 (aarch64_fp_vec_pow2): Likewise.
9714
9715 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
9716
9717 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
9718 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
9719 * config/alpha/alpha.c (alpha_function_arg_advance): Update
9720 ALPHA_ARG_SIZE usage.
9721 (alpha_arg_partial_bytes): Ditto.
9722
9723 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
9724
9725 PR target/66810
9726 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
9727 error_mark_node decls.
9728
9729 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
9730
9731 PR target/67963
9732 PR target/67985
9733 * common/config/i386/i386-common.c (ix86_handle_option): Remove
9734 OPT_miamcu handling.
9735 * config/i386/i386.c (PTA_NO_80387): New macro.
9736 (processor_alias_table): Add PTA_NO_80387 to lakemont.
9737 (ix86_option_override_internal): Update MASK_80387 from
9738 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
9739 SSE math only if 80387 is supported. Don't change
9740 MASK_FLOAT_RETURNS.
9741 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
9742 80387 is supported.
9743 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
9744 if TARGET_80387 is true and TARGET_IAMCU is false.
9745 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
9746 is true and TARGET_IAMCU_P is false.
9747
9748 2015-10-20 Richard Biener <rguenther@suse.de>
9749
9750 PR tree-optimization/68017
9751 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
9752
9753 2015-10-20 Martin Liska <mliska@suse.cz>
9754
9755 * cgraphclones.c (cgraph_node::create_virtual_clone):
9756 Verify cgraph_node.local.versionable instead of calling
9757 tree_versionable_function_p.
9758 * ipa-cp.c (determine_versionability): Save the information
9759 to ipa_node_params summary.
9760 (ipcp_versionable_function_p): Use it.
9761 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
9762 (ipcp_generate_summary): Do not compute cgraph_node
9763 versionability.
9764 * ipa-inline-analysis.c (inline_generate_summary): Compute
9765 versionability for all cgraph nodes.
9766 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
9767 ipa_node_params::versionability.
9768 * ipa-prop.h (struct ipa_node_params): Declare it.
9769
9770 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9771
9772 PR other/67868
9773 * varasm.c (assemble_variable): Move special vtv handling to..
9774 (handle_vtv_comdat_sections): .. here. New function.
9775 (output_object_block): Handle vtv sections.
9776
9777 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
9778
9779 PR target/66912
9780 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
9781
9782 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
9783
9784 * doc/extend.texi: Update documentation WRT inline functions.
9785
9786 2015-10-20 Alan Modra <amodra@gmail.com>
9787
9788 PR go/66870
9789 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
9790 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
9791 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
9792
9793 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
9794
9795 PR rtl-optimization/66790
9796 * df.h (DF_MIR): New macro.
9797 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
9798 (DF_MIR_INFO_BB): New macro.
9799 (DF_MIR_IN, DF_MIR_OUT): New macros.
9800 (struct df_mir_bb_info): New.
9801 (df_mir): New macro.
9802 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
9803 declarations.
9804 (df_mir_get_bb_info): New.
9805 * df-problems.c (struct df_mir_problem_data): New.
9806 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
9807 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
9808 df_mir_confluence_0, df_mir_confluence_n,
9809 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
9810 df_mir_bottom_dump, df_mir_verify_solution_start,
9811 df_mir_verify_solution_end): New.
9812 (problem_MIR): New.
9813 (df_mir_add_problem, df_mir_simulate_one_insn): New.
9814 * timevar.def (TV_DF_MIR): New.
9815 * ree.c: Include bitmap.h
9816 (add_removable_extension): Add an INIT_REGS parameter. Use it
9817 to skip zero-extensions that may get an uninitialized register.
9818 (find_removable_extensions): Compute must-initialized registers
9819 using the MIR dataflow problem. Update the call to
9820 add_removable_extension.
9821 (find_and_remove_re): Call df_mir_add_problem.
9822
9823 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
9824
9825 * common/config/mn10300/mn10300-common.c
9826 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
9827 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
9828
9829 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
9830
9831 * doc/extend.texi (Explicit Register Variables): Simplify and
9832 avoid unnecessary and confusion abbreviations. Update cross
9833 references.
9834 doc/implement-c.tex: Update cross reference.
9835
9836 2015-10-19 Jeff Law <law@redhat.com>
9837
9838 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
9839 that create irreducible loops unless the path elimiantes a multiway
9840 branch.
9841
9842 2015-10-19 Richard Biener <rguenther@suse.de>
9843
9844 PR tree-optimization/67975
9845 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
9846 * tree-cfg.c (extract_true_false_controlled_edges): Split out
9847 core worker from ...
9848 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
9849 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
9850 instead of block number for PHIs with two or one args.
9851 (vn_phi_eq): Compare edge predicates of PHIs that are in different
9852 blocks.
9853
9854 2015-10-19 Richard Biener <rguenther@suse.de>
9855
9856 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
9857 (gimple_stmt_nonnegative_warnv_p): Use it.
9858 * match.pd (CPROJ): New operator list.
9859 (cproj (complex ...)): Move simplifications from ...
9860 * builtins.c (fold_builtin_cproj): ... here.
9861
9862 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
9863
9864 * config/i386/i386.c (ix86_expand_vector_move): Use
9865 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
9866 alignment.
9867
9868 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
9869
9870 * doc/invoke.texi: Replace @optindex with @opindex.
9871
9872 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
9873
9874 PR target/67995
9875 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
9876 arch= is set, clear all bits in x_ix86_isa_flags, except for
9877 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
9878
9879 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
9880
9881 PR middle-end/68002
9882 * common.opt (fkeep-static-functions): New option.
9883 * doc/invoke.texi: Document it.
9884 * cgraphunit.c (cgraph_node::finalize_function): Use it.
9885
9886 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9887
9888 * sched-int.h (struct autopref_multipass_data_): Remove offset
9889 field. Add min_offset, max_offset, multi_mem_insn_p fields.
9890 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
9891 (autopref_multipass_init): Use it. Handle PARALLEL sets.
9892 (autopref_rank_data): New function.
9893 (autopref_rank_for_schedule): Use it.
9894 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
9895
9896 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
9897
9898 PR other/65800
9899 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
9900
9901 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9902
9903 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
9904 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
9905 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
9906 (STANDARD_STARTFILE_PREFIX_1): New.
9907 (STANDARD_STARTFILE_PREFIX_2): New.
9908
9909 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9910
9911 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
9912 (darwin_driver_init): Note a version-min when provided on the c/l.
9913 * config/darwin.h (%darwin_minversion): Remove.
9914 * config/i386/darwin.h: Likewise.
9915 * config/rs6000/darwin.h: Likewise.
9916 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
9917 rather than an arbitrary constant.
9918
9919 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9920
9921 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
9922 PPC, detect conflicts between -arch and multilib settings. Detect
9923 and warn about conflicts between multiple -arch definitions.
9924
9925 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9926
9927 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
9928
9929 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9930
9931 * lra-constraints.c (add_next_usage_insn): Change argument type
9932 from rtx to rtx_insn *.
9933
9934 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
9935
9936 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
9937 for Lakemont.
9938
9939 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
9940
9941 * config/tilepro/gen-mul-tables.cc: Adjust include files.
9942 * config/tilegx/mul-tables.c: Regenerate.
9943 * config/tilepro/mul-tables.c: Regenerate.
9944
9945 * config/tilegx/tilegx-c.c: Adjust include files.
9946 * config/tilegx/tilegx.c: Likewise.
9947 * config/tilepro/tilepro-c.c: Likewise.
9948 * config/tilepro/tilepro.c: Likewise.
9949 * config/aarch64/aarch64-builtins.c: Likewise.
9950 * config/aarch64/aarch64.c: Likewise.
9951 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9952 * config/alpha/alpha.c: Likewise.
9953 * config/arc/arc.c: Likewise.
9954 * config/arm/aarch-common.c: Likewise.
9955 * config/arm/arm-builtins.c: Likewise.
9956 * config/arm/arm-c.c: Likewise.
9957 * config/arm/arm.c: Likewise.
9958 * config/avr/avr-c.c: Likewise.
9959 * config/avr/avr-devices.c: Likewise.
9960 * config/avr/avr-log.c: Likewise.
9961 * config/avr/avr.c: Likewise.
9962 * config/bfin/bfin.c: Likewise.
9963 * config/c6x/c6x.c: Likewise.
9964 * config/cr16/cr16.c: Likewise.
9965 * config/cris/cris.c: Likewise.
9966 * config/darwin-c.c: Likewise.
9967 * config/darwin-driver.c: Likewise.
9968 * config/darwin.c: Likewise.
9969 * config/default-c.c: Likewise.
9970 * config/epiphany/epiphany.c: Likewise.
9971 * config/epiphany/mode-switch-use.c: Likewise.
9972 * config/epiphany/resolve-sw-modes.c: Likewise.
9973 * config/fr30/fr30.c: Likewise.
9974 * config/frv/frv.c: Likewise.
9975 * config/ft32/ft32.c: Likewise.
9976 * config/glibc-c.c: Likewise.
9977 * config/h8300/h8300.c: Likewise.
9978 * config/i386/host-cygwin.c: Likewise.
9979 * config/i386/host-mingw32.c: Likewise.
9980 * config/i386/i386-c.c: Likewise.
9981 * config/i386/i386.c: Likewise.
9982 * config/i386/msformat-c.c: Likewise.
9983 * config/i386/winnt-cxx.c: Likewise.
9984 * config/i386/winnt-stubs.c: Likewise.
9985 * config/i386/winnt.c: Likewise.
9986 * config/ia64/ia64-c.c: Likewise.
9987 * config/ia64/ia64.c: Likewise.
9988 * config/iq2000/iq2000.c: Likewise.
9989 * config/lm32/lm32.c: Likewise.
9990 * config/m32c/m32c-pragma.c: Likewise.
9991 * config/m32c/m32c.c: Likewise.
9992 * config/m32r/m32r.c: Likewise.
9993 * config/mcore/mcore.c: Likewise.
9994 * config/mep/mep-pragma.c: Likewise.
9995 * config/mep/mep.c: Likewise.
9996 * config/microblaze/microblaze-c.c: Likewise.
9997 * config/microblaze/microblaze.c: Likewise.
9998 * config/mips/mips-tables.opt
9999 * config/mips/mips.c: Likewise.
10000 * config/mmix/mmix.c: Likewise.
10001 * config/mn10300/mn10300.c: Likewise.
10002 * config/moxie/moxie.c: Likewise.
10003 * config/msp430/msp430-c.c: Likewise.
10004 * config/msp430/msp430.c: Likewise.
10005 * config/nds32/nds32-cost.c: Likewise.
10006 * config/nds32/nds32-fp-as-gp.c: Likewise.
10007 * config/nds32/nds32-intrinsic.c: Likewise.
10008 * config/nds32/nds32-isr.c: Likewise.
10009 * config/nds32/nds32-md-auxiliary.c: Likewise.
10010 * config/nds32/nds32-memory-manipulation.c: Likewise.
10011 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10012 * config/nds32/nds32-predicates.c: Likewise.
10013 * config/nds32/nds32.c: Likewise.
10014 * config/nios2/nios2.c: Likewise.
10015 * config/nvptx/mkoffload.c: Likewise.
10016 * config/nvptx/nvptx.c: Likewise.
10017 * config/pa/pa.c: Likewise.
10018 * config/pdp11/pdp11.c: Likewise.
10019 * config/rl78/rl78-c.c: Likewise.
10020 * config/rl78/rl78.c: Likewise.
10021 * config/rs6000/host-darwin.c: Likewise.
10022 * config/rs6000/rs6000-c.c: Likewise.
10023 * config/rs6000/rs6000-linux.c: Likewise.
10024 * config/rs6000/rs6000.c: Likewise.
10025 * config/rx/rx.c: Likewise.
10026 * config/s390/s390-c.c: Likewise.
10027 * config/s390/s390.c: Likewise.
10028 * config/sh/sh-c.c: Likewise.
10029 * config/sh/sh-mem.cc: Likewise.
10030 * config/sh/sh.c: Likewise.
10031 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10032 * config/sh/sh_treg_combine.cc: Likewise.
10033 * config/sol2-c.c: Likewise.
10034 * config/sol2-cxx.c: Likewise.
10035 * config/sol2-stubs.c: Likewise.
10036 * config/sol2.c: Likewise.
10037 * config/sparc/sparc-c.c: Likewise.
10038 * config/sparc/sparc.c: Likewise.
10039 * config/spu/spu-c.c: Likewise.
10040 * config/spu/spu.c: Likewise.
10041 * config/stormy16/stormy16.c: Likewise.
10042 * config/v850/v850-c.c: Likewise.
10043 * config/v850/v850.c: Likewise.
10044 * config/vax/vax.c: Likewise.
10045 * config/visium/visium.c: Likewise.
10046 * config/vms/vms-c.c: Likewise.
10047 * config/vms/vms.c: Likewise.
10048 * config/vxworks.c: Likewise.
10049 * config/winnt-c.c: Likewise.
10050 * config/xtensa/xtensa.c: Likewise.
10051
10052 2015-10-16 Christian Bruel <christian.bruel@st.com>
10053
10054 PR target/67745
10055 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
10056 (FUNCTION_BOUNDARY_P): New macro:
10057 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
10058 New hook.
10059 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
10060 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
10061 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
10062 * function.c (allocate_struct_function): Call
10063 relayout_function hook.
10064 * passes.c (rest_of_decl_compilation): Likewise.
10065
10066 2015-10-16 Christian Bruel <christian.bruel@st.com>
10067
10068 PR target/67745
10069 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
10070 * config/arm/arm.c (arm_option_override_internal): Call
10071 arm_override_options_after_change_1.
10072 (arm_override_options_after_change): New function.
10073 (arm_override_options_after_change_1): Likewise.
10074 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
10075
10076 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10077
10078 Revert:
10079 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
10080 empty constructors.
10081
10082 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
10083
10084 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
10085 argument is an ADDR_EXPR.
10086
10087 2015-10-16 Richard Biener <rguenther@suse.de>
10088
10089 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
10090 and get rid of force_gimple_operand_gsi.
10091 (gimple_fold_builtin_memory_chk): Likewise.
10092 (gimple_fold_builtin_stxcpy_chk): Likewise.
10093 (rewrite_to_defined_overflow): Likewise.
10094 (gimple_convert_to_ptrofftype): New function.
10095 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
10096
10097 2015-10-16 Richard Biener <rguenther@suse.de>
10098
10099 * tree-nested.h (build_addr): Adjust prototype.
10100 * tree-nested.c (build_addr): Remove context argument and use
10101 mark_addressable.
10102 (get_static_chain): Adjust calls to build_addr.
10103 (convert_nl_goto_reference): Likewise.
10104 (convert_tramp_reference_op): Likewise.
10105 (finalize_nesting_tree_1): Likewise.
10106 * value-prof.c (gimple_ic): Likewise.
10107 * gimple-low.c (lower_builtin_setjmp): Likewise.
10108 * tree-parloops.c (take_address_of): Likewise.
10109 (create_call_for_reduction_1): Likewise.
10110 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
10111 (gimple_gen_ic_func_profiler): Likewise.
10112
10113 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10114
10115 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
10116 empty constructors.
10117
10118 2015-10-16 Michael Collison <michael.collison@linaro.org>
10119 Andrew Pinski <andrew.pinski@caviumnetworks.com>
10120
10121 * match.pd ((x < y) && (x < z) -> x < min (y,z),
10122 (x > y) and (x > z) -> x > max (y,z))
10123
10124 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
10125 Szabolcs Nagy <szabolcs.nagy@arm.com>
10126
10127 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
10128 (DYNAMIC_LINKER): Renamed to ...
10129 (GLIBC_DYNAMIC_LINKER): This.
10130 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
10131
10132 2015-10-15 Marek Polacek <polacek@redhat.com>
10133
10134 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
10135 gimple_call_builtin instead of is_gimple_call.
10136
10137 2015-10-15 Richard Biener <rguenther@suse.de>
10138
10139 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
10140
10141 2015-10-15 Richard Biener <rguenther@suse.de>
10142
10143 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
10144 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
10145 * tree-vect-loop.c (get_initial_def_for_induction): Drop
10146 use of force_gimple_operand in favor of gimple_build.
10147 Use vect_get_new_ssa_name.
10148 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
10149 (vectorizable_mask_load_store): Likewise.
10150 (vectorizable_call): Likewise.
10151 (vectorizable_store): Likewise.
10152 (vectorizable_load): Likewise.
10153 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
10154
10155 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
10156
10157 PR tree-optimization/67945
10158 * tree-pass.h (PROP_gimple_opt_math): New property flag.
10159 * generic-match-head.c (canonicalize_math_p): New function.
10160 * gimple-match-head.c: Include tree-pass.h.
10161 (canonicalize_math_p): New function.
10162 * match.pd: Group math built-in rules into simplifications
10163 and canonicalizations. Guard the latter with canonicalize_math_p.
10164 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
10165 PROP_gimple_opt_math property.
10166
10167 2015-10-15 Marek Polacek <polacek@redhat.com>
10168
10169 PR tree-optimization/67953
10170 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
10171
10172 2015-10-15 Jiong Wang <jiong.wang@arm.com>
10173
10174 * config.gcc: Recognize "." in architecture base name for AArch64.
10175
10176 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
10177
10178 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
10179 ROUND_UP macro.
10180 * config/mips/mips.c (mips_setup_incoming_varargs): Use
10181 ROUND_DOWN to calculate off.
10182 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
10183 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
10184 rounded_size.
10185
10186 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
10187
10188 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
10189
10190 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
10191 Torvald Riegel <triegel@redhat.com>
10192
10193 PR target/67281
10194 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
10195 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
10196 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
10197 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
10198 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
10199 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
10200 trechkpt, treclaim, tsr, ttest): New define_expands.
10201 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
10202 __TM_FENCE__ for htm.
10203 * doc/extend.texi: Update documentation for htm builtins.
10204
10205 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
10206
10207 PR target/67967
10208 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
10209 REG_CFA_EXPRESSION to aligned SSE stores.
10210
10211 2015-10-14 Jeff Law <law@redhat.com>
10212
10213 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
10214 num_threaded_edges for successful FSM threads too.
10215
10216 2015-10-14 Richard Biener <rguenther@suse.de>
10217
10218 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
10219 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
10220 (vect_get_vec_def_for_operand): Remove unused parameter.
10221 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
10222 (vect_create_epilog_for_reduction): Likewise.
10223 (vectorizable_reduction): Likewise.
10224 (vectorizable_live_operation): Likewise.
10225 * tree-vect-patterns.c (type_conversion_p): Likewise.
10226 (vect_recog_vector_vector_shift_pattern): Likewise.
10227 (check_bool_pattern): Likewise.
10228 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
10229 (vect_analyze_slp_cost_1): Likewise.
10230 * tree-vect-stmts.c (process_use): Likewise.
10231 (vect_get_vec_def_for_operand): Do not handle reductions.
10232 (vect_get_vec_defs): Adjust.
10233 (vectorizable_mask_load_store): Likewise.
10234 (vectorizable_call): Likewise.
10235 (vectorizable_simd_clone_call): Likewise.
10236 (vect_get_loop_based_defs): Likewise.
10237 (vectorizable_conversion): Likewise.
10238 (vectorizable_assignment): Likewise.
10239 (vectorizable_shift): Likewise.
10240 (vectorizable_operation): Likewise.
10241 (vectorizable_store): Likewise.
10242 (vectorizable_load): Likewise.
10243 (vect_is_simple_cond): Likewise.
10244 (vectorizable_condition): Likewise.
10245 (vect_is_simple_use): Remove unused parameters.
10246 (vect_is_simple_use_1): Adjust and rename.
10247
10248 2015-10-14 Richard Biener <rguenther@suse.de>
10249
10250 PR tree-optimization/67915
10251 * match.pd: Handle comparisons of addresses of STRING_CSTs.
10252 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
10253 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
10254 stmt folding in favor of GIMPLE one.
10255
10256 2015-10-14 Marek Polacek <polacek@redhat.com>
10257
10258 PR tree-optimization/67815
10259 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
10260 (reassociate_bb): Call it.
10261
10262 2015-10-14 Richard Biener <rguenther@suse.de>
10263
10264 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
10265 Reset info at start.
10266 (vect_analyze_group_access_1): Add debug print.
10267 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
10268 (vect_compute_single_scalar_iteration_cost): ... to this.
10269 (vect_analyze_loop_2): Adjust.
10270 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
10271 * tree-vectorizer.h: ... here.
10272 (add_stmt_info_to_vec): Remove.
10273 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
10274
10275 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
10276
10277 * targhooks.c (default_target_option_pragma_parse): Do not warn if
10278 called on behalf of "#pragma GCC pop_options".
10279
10280 2015-10-14 Tom de Vries <tom@codesourcery.com>
10281
10282 * cfganal.c (verify_no_unreachable_blocks): New function.
10283 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
10284 verify_no_unreachable_blocks.
10285 cfganal.h (verify_no_unreachable_blocks): Declare.
10286
10287 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
10288
10289 * common.opt: Add flag_checking.
10290 * system.h (CHECKING_P): Define.
10291
10292 2015-10-13 Jakub Jelinek <jakub@redhat.com>
10293 Aldy Hernandez <aldyh@redhat.com>
10294 Ilya Verbin <ilya.verbin@intel.com>
10295
10296 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
10297 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
10298 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
10299 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
10300 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
10301 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
10302 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
10303 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
10304 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
10305 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
10306 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
10307 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
10308 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
10309 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
10310 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
10311 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
10312 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
10313 (struct cgraph_simd_clone_arg): Adjust comment.
10314 * coretypes.h (struct gomp_ordered): New forward decl.
10315 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
10316 set critical clauses to it.
10317 (gimple_build_omp_ordered): Return gomp_ordered * instead of
10318 gimple *. Add CLAUSES argument, set ordered clauses to it.
10319 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
10320 GIMPLE_OMP_ORDERED.
10321 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
10322 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
10323 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
10324 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
10325 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
10326 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
10327 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
10328 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
10329 renumber
10330 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
10331 (gomp_critical): Add clauses field.
10332 (gomp_ordered): New struct.
10333 (is_a_helper <gomp_ordered *>::test): New inline.
10334 (gimple_build_omp_critical): Add CLAUSES argument.
10335 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
10336 instead of gimple *.
10337 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
10338 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
10339 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
10340 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
10341 inline functions.
10342 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
10343 (dump_gimple_omp_target): Handle enter data and exit data.
10344 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
10345 (dump_gimple_omp_critical): Print clauses.
10346 (dump_gimple_omp_ordered): New function.
10347 (dump_gimple_omp_task): Handle taskloop.
10348 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
10349 GIMPLE_OMP_ORDERED.
10350 * gimple-walk.c (walk_gimple_op): Walk clauses on
10351 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
10352 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
10353 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
10354 (struct gimplify_omp_ctx): Add loop_iter_var,
10355 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
10356 and target_firstprivatize_array_bases fields.
10357 (delete_omp_context): Release loop_iter_var.
10358 (gimplify_bind_expr): Handle ORT_NONE.
10359 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
10360 ORT_COMBINED_TARGET.
10361 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
10362 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
10363 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
10364 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
10365 ctx->target_map_scalars_firstprivate.
10366 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
10367 data sharing clauses. For data sharing clause with VLA decl
10368 on omp target/target data don't add firstprivate for the pointer.
10369 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
10370 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
10371 the addition of ORT_COMBINED_TARGET.
10372 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
10373 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
10374 pointers as zero length array sections and
10375 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
10376 data sharing.
10377 (omp_check_private): Handle omp_member_access_dummy_var vars.
10378 (find_decl_expr): New function.
10379 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
10380 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
10381 Handle OMP_CLAUSE_GANG separately. Handle
10382 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
10383 clauses. Diagnose linear clause on combined
10384 distribute {, parallel for} simd construct, unless it is the loop
10385 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
10386 Handle map clauses with COMPONENT_REF. Initialize
10387 ctx->target_map_scalars_firstprivate,
10388 ctx->target_firstprivatize_array_bases and
10389 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
10390 linear clause even to target region if combined. Remove
10391 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
10392 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
10393 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
10394 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
10395 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
10396 For linear clause on worksharing loop combined with parallel add
10397 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
10398 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
10399 omp_member_access_dummy_var vars. Add lastprivate clause to outer
10400 taskloop if needed.
10401 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
10402 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
10403 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
10404 GOMP_MAP_POINTER.
10405 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
10406 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
10407 in target body. Handle removal of struct mapping if struct is not
10408 seen in target body. Remove GOMP_MAP_STRUCT map clause on
10409 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
10410 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
10411 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
10412 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
10413 clause appear together. Handle
10414 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
10415 clause if it has map-type-modifier always. Handle
10416 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
10417 clauses.
10418 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
10419 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
10420 callers.
10421 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
10422 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
10423 iterators in doacross loops.
10424 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
10425 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
10426 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
10427 for the addition of ORT_COMBINED_TARGET.
10428 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
10429 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
10430 and OMP_TARGET_EXIT_DATA.
10431 (gimplify_omp_ordered): New function.
10432 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
10433 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
10434 Gimplify clauses on OMP_CRITICAL.
10435 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
10436 expand_GOMP_SIMD_ORDERED_END): New functions.
10437 * internal-fn.def (GOMP_SIMD_ORDERED_START,
10438 GOMP_SIMD_ORDERED_END): New internal functions.
10439 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
10440 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
10441 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
10442 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
10443 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
10444 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
10445 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
10446 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
10447 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
10448 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
10449 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
10450 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
10451 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
10452 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
10453 adjust type.
10454 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
10455 GOMP_target_data_41, adjust type.
10456 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
10457 GOMP_target_update_41, adjust type.
10458 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
10459 field.
10460 (struct omp_for_data): Add ordered and simd_schedule fields.
10461 (omp_member_access_dummy_var, unshare_and_remap_1,
10462 unshare_and_remap, is_taskloop_ctx): New functions.
10463 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
10464 (extract_omp_for_data): Handle taskloops and doacross loops
10465 and simd schedule modifier.
10466 (omp_adjust_chunk_size): New function.
10467 (get_ws_args_for): Use it.
10468 (lookup_sfield): Change first argument to splay_tree_key,
10469 add overload with first argument tree.
10470 (maybe_lookup_field): Likewise.
10471 (use_pointer_for_field): Handle omp_member_access_dummy_var.
10472 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
10473 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
10474 (build_outer_var_ref): Add LASTPRIVATE argument, handle
10475 taskloops and omp_member_access_dummy_var vars.
10476 (build_sender_ref): Change first argument to splay_tree_key,
10477 add overload with first argument tree.
10478 (install_var_field): For mask & 8 use &DECL_UID as key instead
10479 of the tree itself.
10480 (fixup_child_record_type): Const qualify *.omp_data_i.
10481 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
10482 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
10483 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
10484 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
10485 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
10486 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
10487 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
10488 kinds.
10489 (add_taskreg_looptemp_clauses): New function.
10490 (scan_omp_parallel): Use it.
10491 (scan_omp_task): Likewise.
10492 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
10493 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
10494 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
10495 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
10496 sandwiched taskloop constructs. Type check
10497 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
10498 region. Diagnose depend(source) or depend(sink:...) on
10499 target constructs or task/taskloop.
10500 (handle_simd_reference): Use get_name.
10501 (lower_rec_input_clauses): Likewise. Ignore all
10502 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
10503 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
10504 before passing it to omp_clause_{default,copy}_ctor. Handle
10505 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
10506 lastprivate_firstprivate flag for linear that needs copyin and
10507 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
10508 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
10509 on taskloop lookup decl in outer context. Pass true to
10510 build_outer_var_ref lastprivate argument. Handle
10511 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
10512 outside of outer taskloop for.
10513 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
10514 OMP_CLAUSE_DECL.
10515 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
10516 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
10517 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
10518 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
10519 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
10520 abstract origin. Handle omp_member_access_dummy_var vars.
10521 (expand_parallel_call): Use expand_omp_build_assign.
10522 (expand_task_call): Handle taskloop construct expansion. Add
10523 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
10524 integers. Add priority argument to GOMP_task* calls. Or in
10525 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
10526 GOMP_task call.
10527 (expand_omp_build_assign): Add prototype. Add AFTER
10528 argument, if true emit statements after *GSI_P and continue linking.
10529 (expand_omp_taskreg): Adjust expand_task_call caller.
10530 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
10531 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
10532 zero_iter2_bb and first_zero_iter2 arguments, handle computation
10533 of counts even for ordered loops.
10534 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
10535 (expand_omp_ordered_source, expand_omp_ordered_sink,
10536 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
10537 functions.
10538 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
10539 clauses on worksharing loop. Handle DOACROSS loop expansion.
10540 (expand_omp_for_static_nochunk): Handle linear clauses on
10541 worksharing loop. Adjust expand_omp_for_init_counts
10542 callers.
10543 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
10544 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
10545 expand_omp_for_init_counts callers.
10546 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
10547 functions.
10548 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
10549 Handle doacross loops.
10550 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10551 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
10552 GOMP_target_{41,update_41,enter_exit_data} libcalls.
10553 (expand_omp): Don't expand ordered depend constructs here, record
10554 ord_stmt instead for later expand_omp_for_generic.
10555 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10556 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
10557 clause as stand-alone directive.
10558 (lower_omp_ordered_clauses): New function.
10559 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
10560 don't lower anything.
10561 (lower_omp_for_lastprivate): Use last _looptemp_ clause
10562 on taskloop for comparison.
10563 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
10564 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
10565 expansion for linear adjustments.
10566 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
10567 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
10568 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
10569 to tree * pointing to the stmt's clauses.
10570 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
10571 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
10572 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
10573 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
10574 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
10575 clauses. Always use short kind and 8-bit align shift.
10576 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
10577 (struct lower_omp_regimplify_operands_data): New type.
10578 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
10579 New functions.
10580 (lower_omp_1): Use lower_omp_regimplify_operands instead of
10581 gimple_regimplify_operands.
10582 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10583 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
10584 clause as stand-alone directive.
10585 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
10586 (simd_clone_mangle): Mangle the various linear kinds
10587 per the new ABI.
10588 (simd_clone_adjust_argument_types): Handle
10589 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
10590 (simd_clone_init_simd_arrays): Don't do anything for uval.
10591 (simd_clone_adjust): Handle
10592 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
10593 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
10594 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
10595 * omp-low.h (omp_member_access_dummy_var): New prototype.
10596 * passes.def (pass_simduid_cleanup): Schedule another copy of the
10597 pass after all optimizations.
10598 * tree.c (omp_clause_code_name): Add entries for
10599 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10600 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
10601 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
10602 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
10603 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
10604 OMP_CLAUSE_REDUCTION 5 arguments. Handle
10605 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10606 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
10607 clauses.
10608 * tree-core.h (enum omp_clause_linear_kind): New.
10609 (struct tree_omp_clause): Change type of map_kind
10610 from unsigned char to unsigned int. Add subcode.if_modifier
10611 and subcode.linear_kind fields.
10612 (enum omp_clause_code): Add
10613 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10614 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
10615 (OMP_CLAUSE_REDUCTION): Document
10616 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
10617 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
10618 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
10619 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
10620 operand.
10621 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
10622 operand.
10623 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
10624 codes.
10625 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
10626 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
10627 char.
10628 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
10629 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
10630 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
10631 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
10632 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
10633 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
10634 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
10635 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
10636 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
10637 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
10638 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
10639 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
10640 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
10641 * tree-inline.c (remap_gimple_stmt): Handle clauses on
10642 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
10643 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
10644 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
10645 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
10646 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
10647 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
10648 (convert_local_omp_clauses): Likewise.
10649 * tree-pretty-print.c (dump_omp_clause): Handle
10650 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
10651 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
10652 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
10653 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
10654 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
10655 GOMP_MAP_FORCE_DEALLOC. Handle
10656 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
10657 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
10658 and clauses on OMP_ORDERED and OMP_CRITICAL.
10659 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
10660 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
10661 (vectorize_loops): Adjust comments.
10662 (pass_simduid_cleanup::execute): Likewise.
10663 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
10664 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
10665 * wide-int.h (wi::gcd): New.
10666
10667 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
10668
10669 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
10670 (ix86_function_arg_advance): Ditto.
10671 (ix86_function_arg): Ditto.
10672 (ix86_gimplify_va_arg): Ditto.
10673 (ix86_class_max_nregs): Ditto.
10674 (inline_memory_move_cost): Ditto.
10675 (ix86_set_reg_reg_cost): Ditto.
10676 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
10677
10678 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
10679
10680 PR middle-end/67912
10681 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
10682
10683 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
10684
10685 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
10686 ROUND_UP macro and UNITS_PER_WORD * 2.
10687 * config/sparc/sparc.c (sparc_compute_frame_size):
10688 Use ROUND_UP and ROUND_DOWN macros where applicable.
10689 (function_arg_record_value, function_arg_record_value_1)
10690 (function_arg_record_value_1): Ditto.
10691 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
10692 alignment to double-word.
10693 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
10694 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
10695 rounded_size.
10696
10697 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
10698
10699 * rtl.h (print_insn): Fix prototype.
10700
10701 2015-10-13 Tom de Vries <tom@codesourcery.com>
10702
10703 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
10704 -1. Add assert that returned entry matches phi argument.
10705 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
10706 free_stmt_vec_info_vec ...
10707 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
10708 with -1.
10709
10710 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
10711
10712 PR tree-optimization/67909, 67947
10713 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
10714 really skip the inner loop.
10715
10716 2015-10-13 Jeff Law <law@redhat.com>
10717
10718 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10719 Allow single block jump threading paths.
10720
10721 2015-10-13 Tom de Vries <tom@codesourcery.com>
10722
10723 PR tree-optimization/67476
10724 * doc/invoke.texi (@item parloops-schedule): New item.
10725 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
10726 * tree-parloops.c: Include params-enum.h.
10727 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
10728
10729 2015-10-13 Tom de Vries <tom@codesourcery.com>
10730
10731 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
10732 * params-enum.h: New file.
10733 * opts.c (handle_param): Handle case that param arg is a string.
10734 * params-list.h: Handle DEFPARAMENUM5 in params.def.
10735 * params.c (find_param): New function, factored out of ...
10736 (set_param_value): ... here.
10737 (param_string_value_p): New function.
10738 * params.h (struct param_info): Add value_names field.
10739 (find_param, param_string_value_p): Declare.
10740
10741 2015-10-13 Tom de Vries <tom@codesourcery.com>
10742
10743 PR tree-optimization/67476
10744 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
10745
10746 2015-10-13 Richard Biener <rguenther@suse.de>
10747
10748 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
10749 the data dependence vector.
10750 (vect_peeling_hash_insert): Get the peeling hash table as argument.
10751 (vect_peeling_hash_get_lowest_cost): Likewise.
10752 (vect_enhance_data_refs_alignment): Adjust.
10753 (struct _vect_peel_info, struct _vect_peel_extended_info,
10754 struct peel_info_hasher): Move from ...
10755 * tree-vectorizer.h: ... here.
10756 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
10757 (LOOP_VINFO_PEELING_HTAB): Likewise.
10758 (struct _loop_vec_info): Remove min_profitable_iters and
10759 peeling_htab members.
10760 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
10761 here.
10762 (destroy_loop_vec_info): Adjust.
10763 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
10764 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
10765 to estimate alias versioning cost.
10766 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
10767
10768 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
10769
10770 * real.h (real_isinteger): Declare.
10771 * real.c (real_isinteger): New function.
10772 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
10773 if y is an even integer.
10774
10775 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10776
10777 revert:
10778 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10779 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
10780 counts when these are more informative.
10781
10782 2015-10-12 Jeff Law <law@redhat.com>
10783
10784 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
10785 (fsm_find_control_stmt_paths): Change name of first argument to
10786 more accurately relfect what it really is. Handle simplification
10787 of GIMPLE_COND after finding a thread path for NAME.
10788 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
10789 nontrivial conditions to be handled by FSM threader.
10790 (thread_through_normal_block): Extract the name to looup via
10791 FSM threader from COND_EXPR.
10792
10793 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
10794 restriction that traced SSA_NAME is a user variable.
10795
10796 2015-10-12 Tom de Vries <tom@codesourcery.com>
10797
10798 PR tree-optimization/67476
10799 * omp-low.c (expand_omp_for_generic): Add missing phis.
10800
10801 2015-10-12 Tom de Vries <tom@codesourcery.com>
10802
10803 PR tree-optimization/67476
10804 * omp-low.c (expand_omp_for_generic): Handle simple latch.
10805
10806 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
10807
10808 * config/aarch64/aarch64-simd-builtins.def: Update builtins
10809 tables: add tbl3 and tbx4.
10810 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
10811 (aarch64_tbx4v8qi): New.
10812 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
10813 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
10814 Rewrite using builtin functions.
10815 * config/aarch64/iterators.md (UNSPEC_TBX): New.
10816
10817 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
10818
10819 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
10820 ROUND_UP macro.
10821 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
10822 Use ROUND_UP and ROUND_DOWN macros where applicable.
10823 (rs6000_darwin64_record_arg_flush): Ditto.
10824 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
10825 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
10826 rounded_size.
10827
10828 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
10829
10830 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
10831 (AARCH64_ROUND_DOWN): Ditto.
10832 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
10833
10834 2015-10-12 Richard Biener <rguenther@suse.de>
10835
10836 PR ipa/67783
10837 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
10838 code that analyzes IVs on each stmt but in a cheaper way avoiding
10839 quadratic behavior.
10840
10841 2015-10-12 Nick Clifton <nickc@redhat.com>
10842
10843 * config/msp430/msp430.c (msp430_mcu_names): Rename to
10844 msp430_mcu_data, add fields for ISA and hardware multiply
10845 support. Import latest data from the devices.csv file.
10846 (msp430_override_option): Use the data from the new array.
10847 (msp430_use_f5_series_hwmult): Likewise.
10848 (use_32bit_hwmult): Likewise.
10849 (msp430_no_hwmult): Likewise.
10850 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
10851 MCU names.
10852 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
10853 not recognised then no hardware multiply support is assumed and
10854 that only the MSP430 ISA is allowed.
10855
10856 2015-10-12 Richard Biener <rguenther@suse.de>
10857
10858 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
10859 related code ...
10860 (vect_analyze_loop_2): ... here.
10861
10862 2015-10-11 Jason Merrill <jason@redhat.com>
10863
10864 PR c++/67557
10865 * expr.c (store_field): Call store_constructor directly when
10866 storing a CONSTRUCTOR into a target smaller than its type.
10867 Guard against unsafe bitwise copy.
10868
10869 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10870
10871 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
10872 counts when these are more informative.
10873
10874 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10875
10876 * tree-profile.c (tree_profiling): Do not clear
10877 pure/const when not instrumenting.
10878 (pass tree_profile): Add dump of symtab.
10879
10880 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10881
10882 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
10883 addresses.
10884 (fold_addr_of_array_ref_difference): Likewise.
10885
10886 2015-10-11 Jeff Law <law@redhat.com>
10887
10888 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
10889 tree-ssa-threadbackward.c.
10890 (fsm_find_control_statement_thread_paths): Likewise.
10891 (thread_through_normal_block): Break out FSM bits and move them
10892 into a new function in tree-ssa-threadbackward.c. Call new function
10893 instead.
10894 Minimize header file usage.
10895 * tree-ssa-threadbackward.h: New file.
10896 * tree-ssa-threadbackward.c: Likewise.
10897 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
10898
10899 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
10900
10901 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
10902
10903 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
10904
10905 PR rtl-optimization/67864
10906 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
10907 fallthrough edges for conditional jumps. Don't sort candidate
10908 edges if not optimizing for speed.
10909
10910 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10911
10912 * defaults.h (REVERSE_CONDITION): New default definition.
10913 * jump.c (reversed_comparison_code_parts): Adjust.
10914
10915 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10916
10917 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
10918 check HARD_FRAME_POINTER_IS_ARG_POINTER.
10919
10920 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10921
10922 * defaults.h (FRAME_ADDR_RTX): New default definition.
10923 * builtins.c (expand_builtin_return_addr): Adjust.
10924
10925 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10926
10927 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
10928 * builtins.c (expand_builtin_return_addr): Adjust.
10929
10930 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10931
10932 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
10933 * builtins.c (expand_builtin_return_addr): Adjust.
10934 * doc/tm.texi: Likewise.
10935 * doc/tm.texi.in: Likewise.
10936 * except.c (expand_builtin_unwind_init): Likewise.
10937
10938 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10939
10940 * builtins.c (expand_builtin_return_addr): Adjust.
10941 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
10942
10943 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
10944
10945 * tree.c (type_with_interoperable_signedness): New.
10946 (gimple_canonical_types_compatible_p): Use it.
10947 * tree.h (type_with_interoperable_signedness): Declare
10948
10949 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
10950
10951 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
10952 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
10953 when OEP_ADDRESS_OF is se.
10954
10955 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
10956 Sebastian Pop <s.pop@samsung.com>
10957
10958 * graphite-dependences.c (scop_get_dependences): Add dump of the
10959 data dependence graph.
10960 * graphite-poly.c (print_isl_union_map): New.
10961 (debug_isl_union_map): New.
10962 * graphite-poly.h (print_isl_union_map): Declare.
10963 (debug_isl_union_map): Declare.
10964
10965 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
10966 Sebastian Pop <s.pop@samsung.com>
10967
10968 * graphite-poly.c (print_iteration_domain): Remove verbosity.
10969 Remove OpenScop formatting.
10970 (print_iteration_domains): Same.
10971 (debug_iteration_domain): Same.
10972 (debug_iteration_domains): Same.
10973 (print_pdr): Same.
10974 (debug_pdr): Same.
10975 (dump_gbb_cases): Same.
10976 (dump_gbb_conditions): Same.
10977 (print_pdrs): Same.
10978 (debug_pdrs): Same.
10979 (print_pbb_body): Same.
10980 (print_pbb): Same.
10981 (print_scop_params): Same.
10982 (print_scop_context): Same.
10983 (print_scop): Same.
10984 (debug_pbb_domain): Same.
10985 (debug_pbb): Same.
10986 (debug_scop_context): Same.
10987 (debug_scop): Same.
10988 (debug_scop_params): Same.
10989 * graphite-poly.h: Same.
10990 * graphite.c (graphite_transform_loops): Same.
10991
10992 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10993
10994 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
10995 call that isn't needed.
10996
10997 2015-10-09 Jeff Law <law@redhat.com>
10998
10999 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
11000 rather than moving each name to the freelist individually.
11001
11002 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
11003
11004 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
11005 * frame-header-opt.c: New file.
11006 * config/mips/mips-proto.h (mips_register_frame_header_opt):
11007 Add prototype.
11008 * config/mips/mips.c (mips_compute_frame_info): Check
11009 optimize_call_stack flag.
11010 (mips_option_override): Register new frame_header_opt pass.
11011 (mips_frame_info, mips_int_mask, mips_shadow_set,
11012 machine_function): Move these types to...
11013 * config/mips/mips.h: here.
11014 (machine_function): Add does_not_use_frame_header and
11015 optimize_call_stack fields.
11016 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
11017 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
11018 Document new flags.
11019 * config/mips/mips.opt (mframe-header-opt): Add new option.
11020
11021 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
11022
11023 * config/i386/i386.c
11024 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
11025 ROUND_DOWN where applicable.
11026
11027 2015-10-09 Jeff Law <law@redhat.com>
11028
11029 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
11030 correct statement.
11031
11032 2015-10-09 Renlin Li <renlin.li@arm.com>
11033
11034 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
11035 operands[0] and operands[2].
11036 (neon_vtrn<mode>_insn): Likewise.
11037 (neon_vzip<mode>_insn): Likewise.
11038
11039 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
11040
11041 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
11042 ((X & C2) << C1): Expand to...
11043 (X {&,^,|} C2 << C1): ...This.
11044 ((X & C2) >> C1): Expand to...
11045 (X {&,^,|} C2 >> C1): ...This.
11046
11047 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
11048
11049 PR target/67895
11050 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
11051 Adjust embedded rounding/SAE specifier position.
11052 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
11053 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
11054 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
11055 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
11056 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
11057 Likewise.
11058 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
11059
11060 2015-10-09 Martin Jambor <mjambor@suse.cz>
11061
11062 tree-optimization/67794
11063 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
11064 between types of state,ents but accept original definitions as a
11065 parameter.
11066 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
11067 iterate over definitions.
11068
11069 2015-10-09 James Norris <jnorris@codesourcery.com>
11070
11071 * config/rs6000/rs6000.c (rs6000_offload_options): New.
11072 (TARGET_OFFLOAD_OPTIONS): New.
11073
11074 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
11075
11076 PR middle-end/67891
11077 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
11078
11079 PR middle-end/67766
11080 * function.c (expand_function_end): Move return value
11081 promotion past the handling of PARALLELs and CONCATs.
11082
11083 PR rtl-optimization/67828
11084 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
11085 (tree_may_unswitch_on): Don't unswitch on expressions
11086 involving undefined values.
11087
11088 2015-10-09 Richard Biener <rguenther@suse.de>
11089
11090 * genmatch.c (print_operand): Fix formatting.
11091 (dt_node::append_simplify): Warn for multiple simplifiers
11092 that match the same pattern.
11093 * match.pd (log (exp @0)): Remove duplicates.
11094
11095 2015-10-09 Richard Biener <rguenth@suse.de>
11096
11097 PR target/67366
11098 * gimple-fold.c (optabs-query.h): Include
11099 (gimple_fold_builtin_memory_op): Allow unaligned stores
11100 when movmisalign_optabs are available.
11101
11102 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11103
11104 PR target/67366
11105 * config/arm/arm.md (movmisalign<mode>): New.
11106 * config/arm/iterators.md (HSI): New.
11107
11108 2015-10-09 Richard Biener <rguenther@suse.de>
11109
11110 PR tree-optimization/67891
11111 * gimple-match.h (gimple_simplified_result_is_gimple_val):
11112 New helper.
11113 (gimple_resimplify1): Declare.
11114 (gimple_resimplify2): Likewise.
11115 (gimple_resimplify3): Likewise.
11116 * gimple-match-head.c (gimple_resimplify1): Export.
11117 (gimple_resimplify2): Likewise.
11118 (gimple_resimplify3): Likewise.
11119 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
11120 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
11121 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
11122 to avoid creating stmts without VN info.
11123
11124 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
11125
11126 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
11127 of availability.
11128
11129 2015-10-08 Jeff Law <law@redhat.com>
11130
11131 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
11132 and release_ssa_name in two places.
11133 (gimple_stringop_fixed_value): Similarly.
11134
11135 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
11136 release_defs.
11137
11138 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
11139 unlink_stmt_vdef and release_ssa_name_fn.
11140
11141 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
11142 release_defs.
11143
11144 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
11145
11146 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
11147 SSE register save area to 16 bytes only if the incoming stack
11148 boundary is no less than 16 bytes.
11149
11150 2015-10-08 Jeff Law <law@redhat.com>
11151
11152 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
11153 release_ssa_name. Fix typo in comment.
11154
11155 2015-10-08 Nathan Sidwell <nathan@acm.org>
11156
11157 * config/nvptx/nvptx.h (struct machine_function): Add comment.
11158 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
11159 may return pointer as well as in memory.
11160 (nvptx_output_return): Likewise.
11161
11162 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
11163
11164 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
11165 (fold_builtin_1): Update accordingly. Handle constant arguments here.
11166 * match.pd: Add rules previously handled by fold_builtin_sqrt
11167 and fold_builtin_cbrt.
11168
11169 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
11170
11171 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
11172 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
11173 * fold-const.h (tree_unary_nonnegative_warnv_p)
11174 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
11175 (tree_expr_nonnegative_warnv_p): Add depth parameters.
11176 * fold-const.c: Include gimple-fold.h and params.h.
11177 (tree_ssa_name_nonnegative_warnv_p): New function.
11178 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
11179 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
11180 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
11181 Add a depth parameter and increment it for recursive calls to
11182 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
11183 to handle SSA names.
11184 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
11185 (gimple_stmt_nonnegative_warnv_p): Declare.
11186 * tree-vrp.c (remove_range_assertions): Remove assert that condition
11187 cannot be proven false.
11188 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
11189 (gimple_stmt_nonnegative_warnv_p): Move to...
11190 * gimple-fold.c: ...here. Add depth parameters and pass them
11191 down to the tree routines. Accept statements that aren't
11192 assignments or calls but just return false for them.
11193 (gimple_val_nonnegative_real_p): Delete.
11194 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
11195 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
11196 Check HONOR_NANs first.
11197
11198 2015-10-08 Martin Jambor <mjambor@suse.cz>
11199
11200 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
11201 unnecessary MIN.
11202
11203 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
11204
11205 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
11206 in the tail of outer-loop.
11207
11208 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
11209
11210 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
11211 return UI_NONE.
11212
11213 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
11214
11215 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
11216 "cfghooks.h", add prototypes for introduced new functions.
11217 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
11218 checks on ability of loop unswitching to tree_unswitch_single_loop;
11219 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
11220 on innermost loop check.
11221 (tree_unswitch_single_loop): Add all required checks on ability of
11222 loop unswitching under zero recursive level guard.
11223 (tree_unswitch_outer_loop): New function.
11224 (find_loop_guard): Likewise.
11225 (empty_bb_without_guard_p): Likewise.
11226 (used_outside_loop_p): Likewise.
11227 (get_vop_from_header): Likewise.
11228 (hoist_guard): Likewise.
11229 (check_exit_phi): Likewise.
11230
11231 2015-10-08 Marek Polacek <polacek@redhat.com>
11232
11233 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
11234 ops element.
11235
11236 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11237
11238 PR c/65345
11239 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
11240 create_tmp_var_raw instead of create_tmp_var.
11241
11242 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
11243
11244 * expr.c (store_expr_with_bounds): Handle aggregate moves from
11245 BLKmode.
11246 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
11247 to define gimple type system; compare aggregates only by size.
11248
11249 2015-10-07 Jeff Law <law@redhat.com>
11250
11251 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
11252 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
11253 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
11254 unnecessarily.
11255
11256 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
11257 Sebastian Pop <s.pop@samsung.com>
11258
11259 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
11260 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
11261 (generate_isl_schedule): Same.
11262 * graphite-optimize-isl.c (scop_get_domains): Same.
11263 (apply_schedule_map_to_scop): Same.
11264 * graphite-poly.c (print_iteration_domains): Same.
11265 (remove_gbbs_in_scop): Same.
11266 (new_scop): Same.
11267 (free_scop): Same.
11268 (print_scop): Same.
11269 * graphite-poly.h (struct scop): Rename bbs to pbbs.
11270 (SCOP_BBS): Remove.
11271 * graphite-scop-detection.c (compare_bb_depths): Remove.
11272 (graphite_sort_dominated_info): Remove.
11273 (try_generate_gimple_bb): Move out of scop_detection.
11274 (all_non_dominated_preds_marked_p): Remove.
11275 (build_scop_bbs_1): Remove.
11276 (build_scop_bbs): Remove.
11277 (nb_pbbs_in_loops): Do not use SCOP_BBS.
11278 (find_scop_parameters): Same.
11279 (sese_dom_walker): Rename gather_bbs.
11280 (before_dom_children): Call try_generate_gimple_bb and collect gbb
11281 and pbb.
11282 (build_scops): Call gather_bbs.
11283 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
11284 (add_conditions_to_constraints): Same.
11285 (build_scop_iteration_domain): Same.
11286 (build_scop_drs): Same.
11287 (new_pbb_from_pbb): Same.
11288 * sese.c (new_sese_info): Create bbs.
11289 * sese.h (struct sese_info_t): Add bbs.
11290
11291 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
11292
11293 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
11294 encoding in 64-bit mode.
11295
11296 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
11297
11298 PR target/66697
11299 * config/i386/i386.c (ix86_option_override_internal): Always use
11300 8-byte minimum stack boundary in 64-bit mode.
11301 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
11302 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
11303 Add a REG_CFA_EXPRESSION note if needed.
11304 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
11305 (ix86_handle_force_align_arg_pointer_attribute): New.
11306 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
11307 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
11308 with ix86_handle_force_align_arg_pointer_attribute.
11309 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
11310
11311 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
11312 Sebastian Pop <s.pop@samsung.com>
11313
11314 * graphite-scop-detection.c (parameter_index_in_region): Remove
11315 use of SESE_ADD_PARAMS.
11316 (find_scop_parameters): Same.
11317 * sese.c (new_sese_info): Same.
11318 * sese.h (struct sese_info_t): Remove add_params.
11319 (SESE_ADD_PARAMS): Remove.
11320
11321 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
11322 Sebastian Pop <s.pop@samsung.com>
11323
11324 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
11325 an sese_info_p.
11326 (copy_def): Same.
11327 (copy_internal_parameters): Same.
11328 (translate_isl_ast_to_gimple): Use an sese_l.
11329 (build_iv_mapping): Same.
11330 * graphite-poly.c (new_sese): Rename new_sese_info.
11331 (free_sese): Rename free_sese_info.
11332 * graphite-poly.h (struct scop): Use an sese_info_p.
11333 (scop_set_region): Same.
11334 * graphite-scop-detection.c (struct sese_l): Moved...
11335 (get_entry_bb): Moved...
11336 (get_exit_bb): Moved...
11337 (parameter_index_in_region_1): Use an sese_info_p.
11338 (parameter_index_in_region): Same.
11339 (scan_tree_for_params): Same.
11340 (find_params_in_bb): Same.
11341 (sese_dom_walker): Use an sese_l.
11342 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
11343 (reduction_phi_p): Same.
11344 (parameter_index_in_region_1): Use an sese_info_p.
11345 (propagate_expr_outside_region): Use an sese_l.
11346 * graphite.c: Replace uses of SCOP_REGION.
11347 * sese.c (sese_record_loop): Use an sese_info_p.
11348 (build_sese_loop_nests): Same.
11349 (sese_build_liveouts_use): Same.
11350 (sese_build_liveouts_bb): Same.
11351 (sese_build_liveouts_bb): Same.
11352 (sese_bad_liveouts_use): Same.
11353 (sese_reset_debug_liveouts_bb): Same.
11354 (sese_build_liveouts): Same.
11355 (new_sese): Renamed new_sese_info.
11356 (free_sese): Renamed free_sese_info.
11357 (set_rename): Use an sese_info_p.
11358 (graphite_copy_stmts_from_block): Same.
11359 (copy_bb_and_scalar_dependences): Same.
11360 (outermost_loop_in_sese_1): Use an sese_l.
11361 (outermost_loop_in_sese): Same.
11362 (if_region_set_false_region): Use an sese_info_p.
11363 (move_sese_in_condition): Same.
11364 (scalar_evolution_in_region): Use an sese_l.
11365 * sese.h (struct sese_l): ... here.
11366 (SESE_ENTRY): Remove.
11367 (SESE_ENTRY_BB): Remove.
11368 (SESE_EXIT): Remove.
11369 (SESE_EXIT_BB): Remove.
11370 (sese_contains_loop): Use an sese_info_p.
11371 (sese_nb_params): Same.
11372 (bb_in_sese_p): Use an sese_l.
11373 (stmt_in_sese_p): Same.
11374 (defined_in_sese_p): Same.
11375 (loop_in_sese_p): Same.
11376 (sese_loop_depth): Same.
11377 (struct ifsese_s): Use an sese_info_p.
11378 (gbb_loop_at_index): Use an sese_l.
11379 (nb_common_loops): Same.
11380 (scev_analyzable_p): Same.
11381
11382 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
11383
11384 * config/i386/i386.c (ix86_conditional_register_usage): Use
11385 CALL_USED_REGISTERS_MASK.
11386 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
11387
11388 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
11389
11390 PR bootstrap/67385
11391 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
11392 * configure: Regenerated.
11393
11394 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
11395
11396 PR target/67850
11397 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
11398 (ix86_set_current_function): This.
11399 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
11400
11401 2015-10-07 Richard Biener <rguenther@suse.de>
11402
11403 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
11404 (vinfo_for_stmt): Adjust.
11405 (set_vinfo_for_stmt): Likewise.
11406 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
11407 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
11408 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
11409 of inner loop.
11410 (vect_analyze_loop_1): Remove.
11411 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
11412 inner loop when vectorizing an outer loop by splitting out from ...
11413 (vect_analyze_loop_form): ... here.
11414
11415 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11416
11417 PR c/65345
11418 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
11419 Use create_tmp_var_raw instead of create_tmp_var.
11420
11421 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
11422
11423 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
11424 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
11425 * real.c (CACHED_FRACTION): New helper macro.
11426 (dconst_third_ptr): Use it.
11427 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
11428 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
11429 dconst_sixth.
11430 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
11431
11432 2015-10-06 Jeff Law <law@redhat.com>
11433
11434 PR tree-optimization/67816
11435 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
11436 from remove_jump_threads_starting_at. Accept an edge rather than
11437 a basic block.
11438 * tree-ssa-threadupdate.c (removed_edges): New hash table.
11439 (remove_jump_threads_including): Note edges that get removed from
11440 the CFG for later pruning of jump threading paths including them.
11441 (thread_through_all_blocks): Remove paths which include edges that
11442 have been removed.
11443 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
11444 on each outgoing edges when optimizing away a control statement.
11445
11446 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11447
11448 * reorg.c (emit_delay_sequence): Store list of delay slot insns
11449 in a vector instead of rtx_insn_list.
11450 (add_to_delay_list): Likewise.
11451 (delete_from_delay_slot): Likewise.
11452 (optimize_skip): Likewise.
11453 (redirect_with_delay_list_safe_p): Likewise.
11454 (check_annul_list_true_false): Likewise.
11455 (steal_delay_list_from_target): Likewise.
11456 (steal_delay_list_from_fallthrough): Likewise.
11457 (redundant_insn): Likewise.
11458 (fill_simple_delay_slots): Likewise.
11459 (fill_slots_from_thread): Likewise.
11460 (fill_eager_delay_slots): Likewise.
11461 (relax_delay_slots): Likewise.
11462
11463 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
11464
11465 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
11466 For -mgpopt=local, also exclude unintialized common symbols.
11467 * doc/invoke.texi (Nios II Options): Document the change.
11468
11469 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11470
11471 * config/aarch64/iterators.md (vwcore): Add missing cases for
11472 V4HF/V8HF modes.
11473
11474 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
11475 Sebastian Pop <s.pop@samsung.com>
11476
11477 * graphite-poly.c (new_scop): Initialize drs.
11478 * graphite-poly.h (struct dr_info): New.
11479 (struct scop): Add drs.
11480 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
11481 (pdr_add_memory_accesses): Same.
11482 (build_poly_dr): Same.
11483 (build_alias_set): Same.
11484 (build_scop_drs): Same.
11485 (build_pbb_drs): Remove.
11486 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
11487 * tree-data-ref.h (data_reference): Remove alias_set.
11488
11489 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
11490 Sebastian Pop <s.pop@samsung.com>
11491
11492 * graphite-poly.c (free_data_refs_aux): Remove.
11493 (free_gimple_poly_bb): Do not call free_data_refs_aux.
11494 * graphite-poly.h (struct base_alias_pair): Remove.
11495 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
11496 base_alias_pair and dr->aux.
11497 (build_alias_set): Same.
11498 * tree-data-ref.c (create_data_ref): Initialize alias_set.
11499 * tree-data-ref.h (data_reference): Add alias_set.
11500
11501 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
11502 Sebastian Pop <s.pop@samsung.com>
11503
11504 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
11505 Do not set PDR_BASE_OBJECT_SET.
11506 * graphite-poly.h (poly_dr): Same.
11507 (PDR_BASE_OBJECT_SET): Remove.
11508 (new_poly_dr): Update decl.
11509 * graphite-sese-to-poly.c (build_poly_dr): Update call to
11510 new_poly_dr.
11511 (write_alias_graph_to_ascii_dimacs): Remove.
11512 (write_alias_graph_to_ascii_dot): Remove.
11513 (write_alias_graph_to_ascii_ecc): Remove.
11514 (dr_same_base_object_p): Remove.
11515 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
11516 code.
11517 (build_base_obj_set_for_drs): Remove.
11518 (dump_alias_graphs): Remove.
11519 (build_scop_drs): Remove dead code.
11520
11521 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
11522 Peter Bergner <bergner@vnet.ibm.com>
11523
11524 PR target/67808
11525 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
11526 allow registers, but provide insns for the combiner to create for
11527 loads from memory. Separate VSX code from non-VSX code. For
11528 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
11529 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
11530 so that registers come before memory operations. Drop support from
11531 converting DFmode to TFmode, if the DFmode value is in a GPR
11532 register.
11533 (extenddftf2_fprs): Likewise.
11534 (extenddftf2_internal): Likewise.
11535 (extenddftf2_vsx): Likewise.
11536 (extendsftf2): In the expander, only allow registers, but provide
11537 insns for the combiner to create for stores and loads.
11538
11539 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11540
11541 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
11542 from the decl parameter.
11543
11544 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
11545
11546 PR 67861
11547 * gimple-fold.c (gimple_fold_builtin): Add break after
11548 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
11549
11550 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
11551
11552 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
11553 to scop->isl_context.
11554
11555 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
11556
11557 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
11558 (output_probe_stack_range): Rotate the loop and simplify.
11559 (thumb1_expand_prologue): Tweak sorry message.
11560 * config/arm/arm.md (probe_stack): Use bare string.
11561
11562 2015-10-06 Nick Clifton <nickc@redhat.com>
11563
11564 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
11565
11566 2015-10-06 Nick Clifton <nickc@redhat.com>
11567
11568 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
11569 (ATTR_PERSIST): New constant.
11570 (msp430_data_attr): New function - verifies an attribute that only
11571 applies to variables.
11572 (msp430_attributes): Add noinit and persistent attributes.
11573 (noinit_section): New variable.
11574 (presis_section): New variable.
11575 (TARGET_ASM_INIT_SECTIONS): Define.
11576 (msp430_init_sections): New function - initialises the noinit and
11577 persist section variables.
11578 (msp430_select_section): Add support for noinit and persist
11579 attributes.
11580 (msp430_section_type_flags): Likewise.
11581 * doc/extend.texi: Document the reent, critical, wakeup, noinit
11582 and persistent attributes.
11583
11584 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11585 Sebastian Pop <s.pop@samsung.com>
11586
11587 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
11588 (no_violations): Remove.
11589 (subtract_commutative_associative_deps): Remove.
11590 (compute_deps): Do not call subtract_commutative_associative_deps.
11591 (transform_is_safe): Remove.
11592 (graphite_legal_transform): Remove.
11593 * graphite-poly.h (graphite_legal_transform): Remove.
11594
11595 2015-10-05 Aditya Kumar <hiraditya@msn.com>
11596
11597 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
11598 which are in this region are passed so gcc_assert and remove redundant
11599 computation.
11600 * sese.c (sese_build_liveouts): Pass only those bbs which are not
11601 in region.
11602 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
11603 gcc_assert on that and remove unnecessary computation.
11604 (sese_build_liveouts_use): Same.
11605
11606 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11607
11608 * graphite-dependences.c (scop_get_reads): Renamed scop->context
11609 to scop->param_context.
11610 (scop_get_must_writes): Same.
11611 (scop_get_may_writes): Same.
11612 (scop_get_original_schedule): Same.
11613 (scop_get_transformed_schedule): Same.
11614 (subtract_commutative_associative_deps): Same.
11615 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
11616 (generate_isl_context): Same.
11617 (generate_isl_schedule): Same.
11618 (scop_to_isl_ast): Same.
11619 (graphite_regenerate_ast_isl): Same.
11620 * graphite-optimize-isl.c (scop_get_domains): Same.
11621 (optimize_isl): Renamed scop->context to scop->param_context.
11622 * graphite-poly.c (new_poly_bb): Change the type of argument to
11623 gimple_poly_bb_p.
11624 (new_scop): Renamed scop->context to scop->param_context.
11625 (free_scop): Same.
11626 (print_scop_context): Same.
11627 * graphite-poly.h (new_poly_dr): Change the type of argument from
11628 void* to data_reference_p.
11629 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
11630 (new_poly_bb): Change the type of argument from void* to
11631 gimple_poly_bb_p.
11632 (pbb_set_black_box): Same.
11633 (struct scop): Rename context to param_context, ctx to isl_context.
11634 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
11635 Move declarations closer to assignment.
11636 (find_params_in_bb): Same.
11637 (find_scop_parameters): Same.
11638 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
11639 Global to be used for statement IDs.
11640 (isl_id_for_pbb): Use ssa_name_version_typesize.
11641 (simple_copy_phi_p): Move declarations closer to assignment.
11642 (build_pbb_scattering_polyhedrons): Same.
11643 (build_scop_scattering): Same.
11644 (isl_id_for_ssa_name): Same.
11645 (extract_affine_name): Same.
11646 (extract_affine_int): Same.
11647 (extract_affine): Same.
11648 (set_scop_parameter_dim): Use renamed member.
11649 (build_loop_iteration_domains): Same.
11650 (add_param_constraints): Same.
11651 (build_scop_iteration_domain): Same.
11652 (pdr_add_data_dimensions): Same.
11653 (build_poly_dr): Same.
11654 (build_scop_drs): Move declarations closer to assignment.
11655 (analyze_drs_in_stmts): Same.
11656 (insert_out_of_ssa_copy): Same.
11657 (insert_out_of_ssa_copy_on_edge): Same.
11658 (propagate_expr_outside_region): Same.
11659 (rewrite_phi_out_of_ssa): Same.
11660 (rewrite_degenerate_phi): Same.
11661 (rewrite_reductions_out_of_ssa): Same.
11662 (rewrite_cross_bb_scalar_dependence): Same.
11663 (handle_scalar_deps_crossing_scop_limits): Same.
11664 (rewrite_cross_bb_scalar_deps): Same.
11665 * graphite.c (graphite_transform_loops): Use renamed member.
11666
11667 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
11668
11669 PR c/65345
11670 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
11671 create_tmp_var_raw instead of create_tmp_var.
11672
11673 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11674
11675 PR c/65345
11676 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
11677 Use create_tmp_var_raw instead of create_tmp_var.
11678
11679 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
11680
11681 PR target/67849
11682 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
11683 split for upper-bank registers when target does not support
11684 AVX512VL.
11685 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
11686 split when target does not support AVX512VL.
11687
11688 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
11689
11690 PR c/65345
11691 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
11692 Adjust to use create_tmp_var_raw instead of create_tmp_var.
11693
11694 2015-10-06 Nick Clifton <nickc@redhat.com>
11695
11696 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
11697 multiplication.
11698
11699 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
11700
11701 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
11702 (case ${target}): Add znver1.
11703 * config/i386/cpuid.h(bit_CLZERO): Define.
11704 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
11705 -march=native recognize znver1 processors.
11706 * config/i386/i386-c.c (ix86_target_macros_internal): Add
11707 znver1, clzero def_and_undef.
11708 * config/i386/i386.c (struct processor_costs znver1_cost): New.
11709 (m_znver1): New definition.
11710 (m_AMD_MULTIPLE): Includes m_znver1.
11711 (processor_target_table): Add znver1 entry.
11712 (ix86_target_string) : Add clzero entry.
11713 (static const char *const cpu_names): Add znver1 entry.
11714 (ix86_option_override_internal): Add znver1 instruction sets.
11715 (PTA_CLZERO) : New definition.
11716 (ix86_option_override_internal): Handle new clzerooption.
11717 (ix86_issue_rate): Add znver1.
11718 (ix86_adjust_cost): Add znver1.
11719 (ia32_multipass_dfa_lookahead): Add znver1.
11720 (has_dispatch): Add znver1.
11721 * config/i386/i386.h (TARGET_znver1): New definition.
11722 (TARGET_CLZERO): Define.
11723 (TARGET_CLZERO_P): Define.
11724 (struct ix86_size_cost): Add TARGET_ZNVER1.
11725 (enum processor_type): Add PROCESSOR_znver1.
11726 * config/i386/i386.md (define_attr "cpu"): Add znver1.
11727 (set_attr znver1_decode): New definitions for znver1.
11728 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
11729 (mclzero): New.
11730 * config/i386/mmx.md (set_attr znver1_decode): New definitions
11731 for znver1.
11732 * config/i386/sse.md (set_attr znver1_decode): Likewise.
11733 * config/i386/x86-tune.def: Add znver1 tunings.
11734 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
11735 * doc/invoke.texi: Add details about znver1
11736
11737 2015-10-06 Richard Biener <rguenther@suse.de>
11738
11739 PR tree-optimization/67859
11740 * tree-ssa-pre.c (create_expression_by_pieces): Properly
11741 discard not inserted stmts.
11742
11743 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
11744
11745 * doc/extend.texi (Template Instantiation): Reorder options and
11746 de-emphasize -frepo.
11747 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
11748 example instead of -frepo.
11749
11750 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
11751
11752 PR c/65345
11753 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
11754 use create_tmp_var_raw rather than create_tmp_var.
11755
11756 2015-10-06 Richard Biener <rguenther@suse.de>
11757
11758 * tree-vectorizer.h (vec_info): New base class for...
11759 (_loop_vec_info): ... this and ...
11760 (_bb_vec_info): ... this.
11761 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
11762 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
11763 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
11764 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
11765 vect_destroy_datarefs): Adjust interface to take a vec_info *
11766 rather than both a loop_vec_info and a bb_vec_info argument.
11767 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
11768 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
11769 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
11770 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
11771 accordingly.
11772 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
11773 (destroy_loop_vec_info, vect_analyze_loop_2,
11774 vect_is_simple_reduction_1, get_initial_def_for_induction,
11775 vect_create_epilog_for_reduction, vectorizable_reduction,
11776 vectorizable_live_operation, vect_transform_loop): Adjust.
11777 * tree-vect-patterns.c (type_conversion_p,
11778 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
11779 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
11780 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
11781 check_bool_pattern, vect_recog_bool_pattern,
11782 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
11783 * tree-vect-slp.c (vect_get_and_check_slp_defs,
11784 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
11785 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
11786 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
11787 (new_bb_vec_info): Initialize base classs.
11788 * tree-vect-stmts.c (record_stmt_cost, process_use,
11789 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
11790 vectorizable_mask_load_store, vectorizable_call,
11791 vectorizable_simd_clone_call, vectorizable_conversion,
11792 vectorizable_assignment, vectorizable_shift,
11793 vectorizable_operation, vectorizable_store,
11794 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
11795 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
11796 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
11797
11798 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
11799
11800 PR c/65345
11801 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
11802 create_tmp_var_raw rather than create_tmp_var.
11803
11804 2015-10-05 Marek Polacek <polacek@redhat.com>
11805
11806 * tree-ssa-loop-im.c
11807 (move_computations_dom_walker::before_dom_children): Don't set
11808 SSA_NAME_ANTI_RANGE_P.
11809 * tree-ssa-phiopt.c (value_replacement): Likewise.
11810
11811 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11812 Sebastian Pop <s.pop@samsung.com>
11813
11814 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
11815
11816 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11817 Sebastian Pop <s.pop@samsung.com>
11818
11819 * graphite-poly.c (new_gimple_poly_bb): ... here.
11820 (free_data_refs_aux): ... here.
11821 (free_gimple_poly_bb): ... here.
11822 (remove_gbbs_in_scop): ... here.
11823 (new_scop): Call new_sese.
11824 (free_scop): Call remove_gbbs_in_scop and free_sese.
11825 * graphite-poly.h (base_alias_pair): ... here.
11826 (new_gimple_poly_bb): Declare.
11827 (free_gimple_poly_bb): Declare.
11828 * graphite-scop-detection.c (parameter_index_in_region_1):
11829 (parameter_index_in_region): ... here.
11830 (scan_tree_for_params): ... here.
11831 (find_params_in_bb): ... here.
11832 (find_scop_parameters): ... here.
11833 (build_scops): Call find_scop_parameters.
11834 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
11835 (free_scops): Move...
11836 (single_pred_cond_non_loop_exit): Move...
11837 (sese_dom_walker::before_dom_children): Move...
11838 (sese_dom_walker::after_dom_children): Move...
11839 (build_poly_scop): Move...
11840 * graphite-sese-to-poly.h (base_alias_pair): Move...
11841 * graphite.c (free_scops): ... here.
11842
11843 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11844 Sebastian Pop <s.pop@samsung.com>
11845
11846 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
11847 (trivially_empty_bb_p): Move...
11848 (same_close_phi_node): Move...
11849 (new_gimple_poly_bb): Move...
11850 (compare_bb_depths): Move...
11851 (graphite_sort_dominated_info): Move...
11852 (remove_duplicate_close_phi): Move...
11853 (make_close_phi_nodes_unique): Move...
11854 (canonicalize_loop_closed_ssa): Move...
11855 (canonicalize_loop_closed_ssa_form): Move...
11856 (loop_ivs_can_be_represented): Move...
11857 (single_pred_cond_non_loop_exit): Move...
11858 (graphite_can_represent_init): Move...
11859 (graphite_can_represent_scev): Move...
11860 (stmt_has_simple_data_refs_p): Move...
11861 (stmt_has_side_effects): Move...
11862 (graphite_can_represent_stmt): Move...
11863 (scop_detection): ... here.
11864 (sese_dom_walker): ... and here.
11865 (build_scops): Call all moved functions.
11866 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
11867 (all_non_dominated_preds_marked_p): Move...
11868 (build_scop_bbs_1): Move...
11869 (build_scop_bbs): Move...
11870 (set_scop_parameter_dim): Move...
11871 (nb_pbbs_in_loops): Move...
11872 (build_poly_scop): Do not call all the moved functions.
11873
11874 2015-10-05 Martin Jambor <mjambor@suse.cz>
11875 Jan Hubicka <hubicka@ucw.cz>
11876
11877 * ipa-cp.c (ipcp_alignment_lattice): New type.
11878 (ipcp_param_lattices): Use the above to represent alignment.
11879 (ipcp_alignment_lattice::print): New function.
11880 (print_all_lattices): Use it to print alignment information.
11881 (ipcp_alignment_lattice::top_p): New function.
11882 (ipcp_alignment_lattice::bottom_p): Likewise.
11883 (ipcp_alignment_lattice::set_to_bottom): Likewise.
11884 (ipcp_alignment_lattice::meet_with_1): Likewise.
11885 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
11886 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
11887 (initialize_node_lattices): Likewise.
11888 (propagate_alignment_accross_jump_function): Work with the new class
11889 for alignment lattices.
11890 (propagate_constants_accross_call): Pass only the alignment lattice to
11891 propagate_alignment_accross_jump_function.
11892 (ipcp_store_alignment_results): Work with the new class for alignment
11893 lattices.
11894
11895 2015-10-05 Marek Polacek <polacek@redhat.com>
11896
11897 PR tree-optimization/67821
11898 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
11899
11900 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
11901
11902 PR other/65021
11903 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
11904 function to...
11905 (mkoffload_cleanup): ... this. Adjust all users.
11906 (maybe_unlink): Look at save_temps and verbose flags instead of
11907 debug flag.
11908 (main): Parse "-save-temps" flag.
11909 (generate_target_descr_file, generate_target_offloadend_file)
11910 (generate_host_descr_file, prepare_target_image): Pass it on.
11911 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
11912 (mkoffload_cleanup): New function.
11913 (maybe_unlink): Look at save_temps and verbose flags instead of
11914 debug flag.
11915 (main): Instead of calling utils_cleanup, register atexit handler
11916 for mkoffload_cleanup.
11917 (main): Parse "-save-temps" flag.
11918 (compile_native, main): Pass it on.
11919 * lto-wrapper.c (compile_offload_image): Likewise.
11920
11921 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11922
11923 * gimple.h (gimple_op_ptr): Require a non const gimple *.
11924 (gimple_assign_lhs_ptr): Likewise.
11925 (gimple_assign_rhs1_ptr): Likewise.
11926 (gimple_assign_rhs2_ptr): Likewise.
11927 (gimple_assign_rhs3_ptr): Likewise.
11928 (gimple_call_lhs_ptr): Likewise.
11929 (gimple_call_fn_ptr): Likewise.
11930 (gimple_call_chain_ptr): Likewise.
11931 (gimple_call_arg_ptr): Likewise.
11932 (gimple_cond_lhs_ptr): Likewise.
11933 (gimple_cond_rhs_ptr): Likewise.
11934 (gimple_switch_index_ptr): Likewise.
11935 (gimple_return_retval_ptr): Likewise.
11936
11937 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11938
11939 * gimple.h (gimple_asm_input_op_ptr): Remove.
11940 (gimple_asm_output_op_ptr): Likewise.
11941
11942 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11943
11944 * gimple.h (gimple_location_ptr): Remove.
11945 * tree-vrp.c (check_all_array_refs): Adjust.
11946
11947 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11948
11949 * tree-ssa-operands.c (build_uses): store tree * instead of
11950 tree.
11951 (finalize_ssa_uses): Adjust.
11952 (append_use): Likewise.
11953 (verify_ssa_operands): Likewise.
11954
11955 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11956
11957 * real.h (build_real_truncate): Declare.
11958 * tree.c (build_real_truncate): New function.
11959 (strip_float_extensions): Use it.
11960 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
11961 (fold_builtin_hypot, fold_builtin_pow): Likewise.
11962 * match.pd: Likewise.
11963
11964 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
11965 Jiong Wang <jiong.wang@arm.com>
11966
11967 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
11968
11969 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11970
11971 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
11972 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
11973 (aarch64_print_operand, aarch64_float_const_representable_p)
11974 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
11975 instead of REAL_VALUE_FROM_CONST_DOUBLE.
11976 * config/arc/arc.c (arc_print_operand): Likewise.
11977 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
11978 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
11979 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
11980 Likewise.
11981 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
11982 (consttable_16): Likewise.
11983 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
11984 * config/avr/avr.c (avr_print_operand): Likewise.
11985 * config/bfin/bfin.md: Likewise (in a define_split).
11986 * config/c6x/c6x.md: Likewise (in a define_split).
11987 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
11988 (cr16_print_operand): Likewise.
11989 * config/cris/cris.c (cris_print_operand): Likewise.
11990 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
11991 * config/fr30/fr30.c (fr30_print_operand): Likewise.
11992 (fr30_const_double_is_zero): Likewise.
11993 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
11994 * config/frv/frv.md: Likewise (in a define_split).
11995 * config/frv/predicates.md (int_2word_operand): Likewise.
11996 * config/h8300/h8300.c (h8300_print_operand): Likewise.
11997 * config/i386/i386.c (standard_80387_constant_p): Likewise.
11998 (ix86_print_operand, ix86_split_to_parts): Likewise.
11999 * config/i386/i386.md: Likewise (in a define_split).
12000 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
12001 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
12002 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
12003 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
12004 (print_operand): Likewise.
12005 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
12006 * config/mep/mep.md: Likewise (in define_split).
12007 * config/microblaze/microblaze.c (microblaze_const_double_ok)
12008 (print_operand): Likewise.
12009 * config/mips/mips.md (consttable_float): Likewise.
12010 * config/mmix/mmix.c (mmix_intval): Likewise.
12011 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
12012 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
12013 * config/pa/pa.c (pa_singlemove_string): Likewise.
12014 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
12015 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
12016 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
12017 (output_toc): Likewise.
12018 * config/rs6000/rs6000.md: Likewise (in define_splits).
12019 * config/rx/rx.c (rx_print_operand): Likewise.
12020 * config/s390/s390.c (s390_output_pool_entry): Likewise.
12021 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
12022 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
12023 (and also in define_splits).
12024 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
12025 (fp_high_losum_p): Likewise.
12026 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
12027 (*movsf_high): Likewise.
12028 * config/spu/spu.c (const_double_to_hwint): Likewise.
12029 * config/v850/v850.c (const_double_split): Likewise.
12030 * config/vax/vax.c (vax_float_literal): Likewise.
12031 * config/visium/visium.c (visium_expand_copysign): Likewise.
12032 * config/visium/visium.md: Likewise (in define_split).
12033 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
12034 * config/xtensa/xtensa.c (print_operand): Likewise.
12035 (xtensa_output_literal): Likewise.
12036 * cprop.c (implicit_set_cond_p): Likewise.
12037 * dwarf2out.c (insert_float): Likewise.
12038 * expmed.c (expand_mult, make_tree): Likewise.
12039 * expr.c (compress_float_constant): Likewise.
12040 * rtlanal.c (split_double): Likewise.
12041 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
12042 (simplify_const_unary_operation, simplify_binary_operation_1)
12043 (simplify_const_binary_operation): Likewise.
12044 (simplify_const_relational_operation): Likewise.
12045 * varasm.c (output_constant_pool_2): Likewise.
12046
12047 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
12048
12049 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
12050 instead of CONST_DOUBLE_FROM_REAL_VALUE.
12051 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
12052 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
12053 instead of CONST_DOUBLE_FROM_REAL_VALUE.
12054 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
12055 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
12056 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
12057 (ix86_emit_swsqrtsf): Likewise.
12058 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
12059 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
12060 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
12061 * config/pa/pa.c (pa_expand_builtin): Likewise.
12062 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
12063 (rs6000_scale_v2df): Likewise.
12064 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
12065 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
12066 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
12067 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
12068 (vec_ctul): Likewise.
12069 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
12070 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
12071 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
12072 * cse.c (fold_rtx): Likewise.
12073 * emit-rtl.c (immed_double_const): Likewise (in comments).
12074 (init_emit_once): Likewise.
12075 * expr.c (compress_float_constant, expand_expr_real_1)
12076 (const_vector_from_tree): Likewise.
12077 * optabs.c (expand_float, expand_fix): Likewise.
12078 * reg-stack.c (reg_to_stack): Likewise.
12079 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
12080 (simplify_const_unary_operation, simplify_binary_operation_1)
12081 (simplify_const_binary_operation, simplify_relational_operation)
12082 (simplify_immed_subreg): Likewise.
12083
12084 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
12085
12086 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
12087 * doc/tm.texi: Regenerate.
12088 * real.h (REAL_ARITHMETIC): Delete.
12089 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
12090 (ix86_expand_round_sse4): Use real_arithmetic instead of
12091 REAL_ARITHMETIC.
12092 * config/i386/sse.md (round<mode>2): Likewise.
12093 * rtl.h (rtx_to_tree_code): Likewise (in comment).
12094 * explow.c (rtx_to_tree_code): Likewise (in comment).
12095 * match.pd: Likewise.
12096 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
12097 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
12098 (expand_pow_as_sqrts): Likewise.
12099 * tree-pretty-print.c (dump_generic_node): Remove code that
12100 was conditional on REAL_ARITHMETIC being undefined.
12101
12102 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
12103
12104 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
12105 * doc/tm.texi: Regenerate.
12106 * real.h (real_less): Declare.
12107 (REAL_VALUES_LESS): Delete.
12108 * real.c (real_less): New function.
12109 (real_compare): Use it.
12110 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
12111 of REAL_VALUES_LESS.
12112 * config/microblaze/microblaze.c (microblaze_const_double_ok):
12113 Likewise.
12114 * fold-const.c (fold_convert_const_int_from_real): Likewise.
12115 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
12116 (simplify_const_relational_operation): Likewise.
12117 * tree-call-cdce.c (check_pow): Likewise.
12118 (gen_conditions_for_pow_cst_base): Likewise.
12119
12120 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
12121
12122 * real.h (REAL_VALUES_IDENTICAL): Delete.
12123 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
12124 instead of REAL_VALUES_IDENTICAL.
12125 * fold-const.c (operand_equal_p): Likewise.
12126 * ipa-icf.c (sem_variable::equals): Likewise.
12127 * tree-complex.c (some_nonzerop): Likewise.
12128 (expand_complex_multiplication): Likewise.
12129 * tree.c (simple_cst_equal): Likewise.
12130 * varasm.c (compare_constant): Likewise.
12131
12132 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
12133
12134 * real.h (real_equal): Declare.
12135 (REAL_VALUES_EQUAL): Delete.
12136 * real.c (real_equal): New function.
12137 (real_compare): Use it.
12138 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
12139 * doc/tm.texi: Regenerate.
12140 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
12141 real_equal instead of REAL_VALUES_EQUAL.
12142 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
12143 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
12144 (fp_const_from_val): Likewise.
12145 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
12146 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
12147 (floating_exact_log2): Likewise.
12148 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
12149 * config/vax/vax.c (vax_float_literal): Likewise.
12150 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
12151 * cprop.c (implicit_set_cond_p): Likewise.
12152 * expmed.c (expand_mult): Likewise.
12153 * fold-const.c (const_binop): Likewise.
12154 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
12155 (simplify_const_binary_operation): Likewise.
12156 (simplify_const_relational_operation): Likewise.
12157 * tree-call-cdce.c (check_pow): Likewise.
12158 (gen_conditions_for_pow_cst_base): Likewise.
12159 * tree-inline.c (estimate_num_insns): Likewise.
12160 * tree-ssa-dom.c (record_equality): Likewise.
12161 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
12162 (gimple_expand_builtin_pow): Likewise.
12163 (pass_optimize_widening_mul::execute): Likewise.
12164 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
12165 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
12166 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
12167
12168 2015-10-05 Richard Biener <rguenther@suse.de>
12169
12170 PR ipa/67783
12171 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
12172 consider loop header PHI defs as IVs.
12173
12174 2015-10-05 Richard Biener <rguenther@suse.de>
12175
12176 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
12177 call handling ...
12178 (create_expression_by_pieces): ... here and build GIMPLE
12179 calls directly. Use gimple_build API and avoid force_gimple_operand.
12180 (insert_into_preds_of_block): Simplify.
12181 (do_regular_insertion): Add comment.
12182
12183 2015-10-04 Jason Merrill <jason@redhat.com>
12184
12185 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
12186
12187 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
12188
12189 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
12190 check for general register.
12191 (ix86_emit_save_regs): Ditto.
12192 (ix86_emit_save_regs_using_mov): Ditto.
12193 (ix86_emit_restore_regs_using_pop): Ditto.
12194 (ix86_emit_restore_regs_using_mov): Ditto.
12195
12196 2015-10-03 Marek Polacek <polacek@redhat.com>
12197
12198 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
12199 (insn-dfatab.o): Likewise.
12200
12201 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
12202
12203 * config.gcc (xtensa*-*-uclinux*): New configuration.
12204 * config/xtensa/uclinux.h: New file.
12205 * config/xtensa/uclinux.opt: New file.
12206
12207 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
12208
12209 * doc/cpp.texi (Standard Predefined Macros): Document value of
12210 __cplusplus for C++14.
12211
12212 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
12213
12214 * gcc.c (process_command): Use spec_machine rather than
12215 spec_host_machine to build tooldir_prefix2.
12216
12217 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
12218 Bernd Schmidt <bernds@codesourcery.com>
12219
12220 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
12221 (Token, Stmt): Remove structs.
12222 (decls, vars, fns): Remove variables.
12223 (alloc_comment, append_stmt, is_keyword): Remove macros.
12224 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
12225 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
12226 (parse_init, parse_file): Remove functions.
12227 (read_file): Accept a pointer to a length and store into it.
12228 (process): Don't try to parse the input file, just write it out as
12229 a string, but looking for maps. Also write out the length.
12230 (main): Don't use "-S" to compile PTX code.
12231
12232 2015-10-02 Jeff Law <law@redhat.com>
12233
12234 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
12235 fixups.
12236
12237 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
12238
12239 PR target/67822
12240 * config/nvptx/mkoffload.c (main): Scan the argument vector for
12241 -fopenmp, and skip generating an offloading image if specified.
12242
12243 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
12244
12245 * system.h (ROUND_UP): New macro definition.
12246 (ROUND_DOWN): Ditto.
12247 * ggc-page.c (ROUND_UP): Remove local macro definition.
12248 (PAGE_ALIGN): Implement using ROUND_UP macro.
12249
12250 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
12251 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
12252 to align values.
12253 (ix86_compute_frame_layout): Ditto.
12254 (ix86_expand_prologue): Ditto.
12255 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
12256 to round down values.
12257 (expand_set_or_movmem_via_rep): Ditto.
12258
12259 2015-10-02 Marek Polacek <polacek@redhat.com>
12260
12261 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
12262
12263 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
12264
12265 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
12266 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
12267 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
12268 (free_gimple_bb): Renamed free_gimple_poly_bb.
12269 (try_generate_gimple_bb): Hoist loop invariant code.
12270 (analyze_drs_in_stmts): Same.
12271 (build_scop_drs): Call renamed functions.
12272 (new_pbb_from_pbb): Same.
12273 (scop_ivs_can_be_represented): Delete as functionality now moved to
12274 graphite-scop-detection.c
12275 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
12276
12277 2015-10-02 Aditya Kumar <hiraditya@msn.com>
12278
12279 * graphite-scop-detection.c (stmt_has_side_effects): New function
12280 outlined from stmt_simple_for_scop_p.
12281 (graphite_can_represent_stmt): Same.
12282 (stmt_simple_for_scop_p): Moved code out of this function for better
12283 readability.
12284
12285 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
12286
12287 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
12288 F_AVX512IFMA.
12289 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
12290
12291 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12292
12293 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
12294
12295 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
12296
12297 PR rtl-optimization/67756
12298 * lra-constraints.c (match_reload): Add a new parameter. Use it
12299 for creating a pseudo with the same value.
12300 (curr_insn_transform): Pass a new argument to match_reload.
12301
12302 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
12303
12304 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
12305 (expand_vec_perm_even_odd_1): Handle V64QImode.
12306 (ix86_expand_vec_perm_const_1): Try expansion with
12307 expand_vec_perm_even_odd_trunc as well.
12308 * config/i386/sse.md (VI124_AVX512F): Rename to ...
12309 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
12310 to V54QI.
12311 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
12312 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
12313 to V32HI and V16SI.
12314 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
12315 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
12316 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
12317 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
12318 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
12319 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
12320
12321 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
12322
12323 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
12324 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
12325
12326 2015-10-02 Jason Merrill <jason@redhat.com>
12327
12328 PR c/59218
12329 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
12330 (diagnose_tm_1_op): Also diagnose volatile accesses in
12331 transaction_safe function.
12332
12333 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
12334
12335 * system.h (malloc.h): Don't include obsolete header.
12336
12337 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12338
12339 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
12340 (TLS_SECTION_ASM_FLAG): Delete.
12341
12342 2015-10-02 Marek Polacek <polacek@redhat.com>
12343
12344 PR c/64249
12345 * doc/invoke.texi: Document -Wduplicated-cond.
12346 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
12347 (insn-dfatab.o): Likewise.
12348 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
12349 warning.
12350
12351 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
12352
12353 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
12354 sequences.
12355
12356 2015-10-02 Renlin Li <renlin.li@arm.com>
12357
12358 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
12359
12360 2015-10-02 Renlin Li <renlin.li@arm.com>
12361
12362 PR target/66776
12363 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
12364
12365 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12366
12367 PR rtl-optimization/67786
12368 PR rtl-optimization/67787
12369 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
12370 it modifies a reg used in the condition calculation.
12371
12372 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
12373
12374 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
12375 alternatives for reads from memory and moves from general-purpose
12376 registers.
12377 (*aarch64_combinez_be<mode>): Likewise.
12378
12379 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
12380
12381 PR target/51726
12382 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
12383 selectany within this function without need to keep attribute.
12384 (i386_pe_encode_section_info): Remove selectany-code.
12385
12386 2015-10-02 Richard Biener <rguenther@suse.de>
12387
12388 * tree-ssa-sccvn.c (has_VN_INFO): New function.
12389 (free_scc_vn): Use it.
12390 (visit_use): Remove dead code and refactor to use gassign
12391 and use less indentation.
12392
12393 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12394
12395 PR target/67788
12396 PR target/67789
12397 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
12398 (rs6000_cannot_copy_insn_p): New function.
12399 * config/rs6000/rs6000.md (cannot_copy): New attribute.
12400 (load_toc_v4_PIC_1_normal): Set cannot_copy.
12401 (load_toc_v4_PIC_1_476): Ditto.
12402
12403 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
12404
12405 * graphite-scop-detection.c (struct sese_l): New conversion constructor
12406 so that this type can be pushed into a vec.
12407 (class scop_builder): use sese_l to collect scops.
12408 (get_scops): New getter function.
12409 (remove_intersecting_scops): Use sese_l instead of scops_p.
12410 (intersects): Same.
12411 (add_scop): Same.
12412 (subsumes): Same.
12413 (remove_subscops): Same.
12414 (build_scops): Add scops to vec<scops_p> once all the scops have been
12415 detected.
12416
12417 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
12418
12419 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
12420 Renamed type from gimple_bb_p to gimple_poly_bb_p.
12421 (translate_isl_ast_node_user): Same.
12422 * graphite-poly.c (new_poly_bb): Same.
12423 * graphite-poly.h (gbb_from_bb): Same.
12424 * sese.h: Same.
12425 * graphite-sese-to-poly.c (new_gimple_bb):
12426 gimple_bb_p -> gimple_poly_bb_p
12427 (build_scop_scattering): Same.
12428 (find_params_in_bb): Same.
12429 (add_conditions_to_domain): Same.
12430 (sese_dom_walker::before_dom_children): Same.
12431 (analyze_drs_in_stmts): Same.
12432 (new_pbb_from_pbb): Same.
12433 (free_data_refs_aux): New pointer to type base_alias_pair.
12434 * graphite-sese-to-poly.h: Same.
12435 * sese.c (if_region_set_false_region): Fixed Indentation.
12436 (move_sese_in_condition): Same.
12437
12438 2015-10-01 Sebastian Pop <s.pop@samsung.com>
12439 Aditya Kumar <aditya.k7@samsung.com>
12440
12441 PR tree-optimization/66980
12442 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
12443 when data reference analysis has failed.
12444
12445 2015-10-01 Sebastian Pop <s.pop@samsung.com>
12446 Aditya Kumar <aditya.k7@samsung.com>
12447
12448 PR tree-optimization/67754
12449 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
12450 scev analysis on the same loop nest as analyze_drs_in_stmts.
12451 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
12452 renamed...
12453 (try_generate_gimple_bb): Call outermost_loop_in_sese.
12454 (analyze_drs_in_stmts): Same.
12455 * sese.c (outermost_loop_in_sese): ...here.
12456
12457 2015-10-01 Sebastian Pop <s.pop@samsung.com>
12458 Aditya Kumar <aditya.k7@samsung.com>
12459
12460 PR tree-optimization/67754
12461 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
12462 recursion on the inner loops.
12463
12464 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12465
12466 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
12467 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
12468 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
12469 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
12470 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
12471
12472 2015-10-01 Marek Polacek <polacek@redhat.com>
12473
12474 PR c/65345
12475 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
12476 create_tmp_var_raw rather than create_tmp_var.
12477
12478 2015-10-01 Marek Polacek <polacek@redhat.com>
12479
12480 PR tree-optimization/67769
12481 * tree-ssa-phiopt.c (conditional_replacement): Call
12482 reset_flow_sensitive_info_in_bb.
12483 (minmax_replacement): Likewise.
12484 (abs_replacement): Likewise.
12485
12486 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
12487
12488 * builtins.c: Don't include gomp-constants.h.
12489 (fold_builtin_1): Don't fold acc_on_device here.
12490 * gimple-fold.c: Include gomp-constants.h.
12491 (gimple_fold_builtin_acc_on_device): New.
12492 (gimple_fold_builtin): Call it.
12493
12494 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
12495
12496 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
12497 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
12498
12499 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
12500
12501 * config/arm/aarch-common-protos.h
12502 (aarch_accumulator_forwarding): New.
12503 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
12504 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
12505 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
12506 * config/arm/cortex-a53.md: Rewrite.
12507
12508 2015-10-01 Richard Biener <rguenther@suse.de>
12509
12510 * gimple-match.h (mprts_hook): Declare.
12511 * gimple-match.head.c (mprts_hook): Define.
12512 (maybe_push_res_to_seq): Use new hook.
12513 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
12514 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
12515 (vn_ssa_aux::has_constants): Remove.
12516 * tree-ssa-sccvn.c: Include gimple-match.h.
12517 (VN_INFO_GET): Assert we don't re-use SSA names.
12518 (vn_get_expr_for): Remove.
12519 (expr_has_constants): Likewise.
12520 (stmt_has_constants): Likewise.
12521 (simplify_binary_expression): Likewise.
12522 (simplify_unary_expression): Likewise.
12523 (vn_lookup_simplify_result): New hook.
12524 (visit_copy): Adjust.
12525 (visit_reference_op_call): Likewise.
12526 (visit_phi): Likewise.
12527 (visit_use): Likewise.
12528 (process_scc): Likewise.
12529 (init_scc_vn): Likewise.
12530 (visit_reference_op_load): Likewise. Use match-and-simplify and
12531 a gimple seq for inserted expressions.
12532 (try_to_simplify): Remove GENERIC stmt combining code.
12533 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
12534 * tree-ssa-pre.c (eliminate_insert): Adjust.
12535 (eliminate_dom_walker::before_dom_children): Likewise.
12536
12537 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12538
12539 * doc/invoke.texi (Optimization Options): Add
12540 -freorder-blocks-algorithm=.
12541 (Optimize Options) <-O>: Add -freorder-blocks.
12542 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
12543 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
12544 <-freorder-blocks>: Also enabled at levels -O and -Os.
12545 <-freorder-blocks-algorithm=>: Document new option.
12546
12547 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12548
12549 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
12550 with flag_reorder_blocks_algorithm.
12551 * common.opt (freorder-blocks-algorithm=): New flag.
12552 (reorder_blocks_algorithm): New enum.
12553 * flag-types.h (reorder_blocks_algorithm): New enum.
12554 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
12555 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
12556
12557 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12558
12559 * bb-reorder.c: Add intro comment.
12560 (reorder_basic_blocks_software_trace_cache): Print a header to
12561 the dump file.
12562 (edge_order): New function.
12563 (reorder_basic_blocks_simple): New function.
12564 (reorder_basic_blocks): Choose between the STC and the simple
12565 algorithms (always choose the former).
12566
12567 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12568
12569 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
12570 function, factored out from ...
12571 (reorder_basic_blocks): ... here.
12572
12573 2015-10-01 Tom de Vries <tom@codesourcery.com>
12574
12575 * tree-cfg.c (dump_function_to_file): Dump function attributes using
12576 __attribute__(()) string. Move dumping of function attributes to before
12577 function name.
12578
12579 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
12580
12581 PR target/66870
12582 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
12583 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
12584 based on gold linker version.
12585 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
12586 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
12587 * configure, config.in: Regenerate.
12588
12589 2015-10-01 Alan Modra <amodra@gmail.com>
12590
12591 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
12592 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
12593 (rs6000_output_mi_thunk): Likewise.
12594
12595 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
12596
12597 * config/nvptx/mkoffload.c (process): Change offload data format.
12598
12599 2015-09-30 Jeff Law <law@redhat.com>
12600
12601 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
12602 with constant conditions.
12603 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
12604 (remove_ctrl_stmt_and_useless_edges): No longer static.
12605 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
12606 (remove_ctrl_stmt_and_useless_edges): Likewise.
12607
12608 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
12609 Cesar Philippidis <cesar@codesourcery.com>
12610
12611 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
12612 (TARGET_GOACC_VALIDATE_DIMS): Override.
12613 * target.def (TARGET_GOACC): New target hook prefix.
12614 (validate_dims): New hook.
12615 * targhooks.h (default_goacc_validate_dims): New.
12616 * omp-low.c (oacc_validate_dims): New.
12617 (execute_oacc_device_lower): New.
12618 (default_goacc_validate_dims): New.
12619 (pass_data_oacc_device_lower): New.
12620 (pass_oacc_device_lower): New pass.
12621 (make_pass_oacc_device_lower): New.
12622 * tree-pass.h (make_pass_oacc_device_lower): Declare.
12623 * passes.def (pass_oacc_device_lower): Add it.
12624 * doc/tm.texi: Rebuilt.
12625 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
12626 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
12627
12628 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
12629
12630 PR rtl-optimization/67037
12631 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
12632
12633 2015-09-30 Bernd Schmidt <bernds@redhat.com>
12634
12635 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
12636 * passes.c: Include tree-ssanames.h.
12637 (execute_function_todo): Flush the pending free SSA_NAMEs after
12638 eliminating unreachable basic blocks.
12639 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
12640 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
12641 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
12642 (flush_ssanames_freelist): New function.
12643 (release_ssaname_fn): Put released names on the queue.
12644 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
12645 * tree-ssanames.h (flush_ssanames_freelist): Declare.
12646
12647 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
12648
12649 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
12650 (generate_target_descr_file, generate_target_offloadend_file)
12651 (generate_host_descr_file, prepare_target_image): Pass it on.
12652 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
12653 (compile_native, main): Pass it on.
12654 * lto-wrapper.c (compile_offload_image): Likewise.
12655
12656 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
12657 Ilya Verbin <ilya.verbin@intel.com>
12658 Andrey Turetskiy <andrey.turetskiy@intel.com>
12659
12660 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
12661 (prepare_target_image, main): Refactor argv building to use
12662 obstacks.
12663
12664 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12665
12666 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
12667 * config/spu/spu.c (spu_expand_atomic_op): New function.
12668 * config/spu/spu.md (AINT): New mode iterator.
12669 (ATOMIC): New code iterator.
12670 (atomic_name, atomic_pred): New code predicates.
12671 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
12672 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
12673 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
12674 "atomic_<atomic_name>_fetch<mode>"): Likewise.
12675
12676 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
12677
12678 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
12679 debug insns.
12680 (scalar_chain::convert_reg): Likewise.
12681
12682 2015-09-30 Richard Biener <rguenther@suse.de>
12683
12684 * builtins.c: Add comment that no new simplifications should
12685 be added here.
12686
12687 2015-09-30 Marek Polacek <polacek@redhat.com>
12688
12689 PR tree-optimization/67690
12690 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
12691 reset_flow_sensitive_info_in_bb.
12692 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
12693 * tree-ssanames.c: Include "gimple-iterator.h".
12694 (reset_flow_sensitive_info_in_bb): New function.
12695 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
12696
12697 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
12698
12699 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
12700 variable, replacing it with...
12701 (offload_abi): ... this new variable. Adjust all users.
12702 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
12703
12704 2015-09-30 Matthias Klose <doko@ubuntu.com>
12705
12706 * configure.ac: Remove extraneous ;;.
12707 * configure: Regenerate.
12708
12709 2015-09-29 James Bowman <james.bowman@ftdichip.com>
12710
12711 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
12712 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
12713 predicate, disallow register for operand 2.
12714
12715 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
12716
12717 * graphite-dependences.c (scop_get_dependences): Moved in down
12718 in order to be visible to its caller.
12719 * graphite-poly.h: Removed compute_deps, and extend_schedule.
12720
12721 2015-09-29 Sebastian Pop <s.pop@samsung.com>
12722 Aditya Kumar <aditya.k7@samsung.com>
12723
12724 PR tree-optimization/67754
12725 * graphite-optimize-isl.c (optimize_isl): Call
12726 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
12727
12728 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
12729
12730 * builtins.c (expand_builtin_acc_on_device): Delete.
12731 (expand_builtin): Don't call it.
12732 (fold_builtin_1): Fold acc_on_device.
12733
12734 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
12735
12736 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
12737 (ix86_nsaved_sseregs): Likewise.
12738
12739 2015-09-29 Jeff Law <law@redhat.com>
12740
12741 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
12742 computation of unused value.
12743
12744 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
12745 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
12746 inline macro expansion.
12747
12748 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
12749
12750 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
12751 (gen_shl_sext): Likewise.
12752 * config/sh/sh.md (divsi3): Likewise.
12753 (imm->ext_dest_operand splitter): Likewise.
12754
12755 2015-09-29 Sebastian Pop <s.pop@samsung.com>
12756 Aditya Kumar <aditya.k7@samsung.com>
12757
12758 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
12759 (nb_data_writes_in_bb): Remove.
12760 (split_pbb): Remove.
12761 (split_reduction_stmt): Remove.
12762 (is_reduction_operation_p): Remove.
12763 (phi_contains_arg): Remove.
12764 (follow_ssa_with_commutative_ops): Remove.
12765 (detect_commutative_reduction_arg): Remove.
12766 (detect_commutative_reduction_assign): Remove.
12767 (follow_inital_value_to_phi): Remove.
12768 (edge_initial_value_for_loop_phi): Remove.
12769 (initial_value_for_loop_phi): Remove.
12770 (used_outside_reduction): Remove.
12771 (detect_commutative_reduction): Remove.
12772 (translate_scalar_reduction_to_array_for_stmt): Remove.
12773 (remove_phi): Remove.
12774 (dr_indices_valid_in_loop): Remove.
12775 (close_phi_written_to_memory): Remove.
12776 (translate_scalar_reduction_to_array): Remove.
12777 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
12778 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
12779 (rewrite_commutative_reductions_out_of_ssa): Remove.
12780 (build_poly_scop): Remove call to
12781 rewrite_commutative_reductions_out_of_ssa.
12782
12783 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
12784
12785 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
12786 Add new insn types for vector load and store pairs.
12787 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
12788 types "neon_ldp{,_q}".
12789 * config/arm/cortex-a57.md (neon_load_c): Add insn types
12790 "neon_ldp{,_q}".
12791 (neon_store_complex): Add insn types "neon_stp{,_q}".
12792 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
12793 "neon_{ldp,stp}_q".
12794
12795 2015-09-29 Jeff Law <law@redhat.com>
12796
12797 * config/rx/constraints.md (Int08): Fix undefined left shift
12798 behaviour.
12799 (Sint08, Sint16, Sint24): Likewise.
12800 * config/rx/rx.c (rx_get_stack_layout): Likewise.
12801
12802 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
12803 behaviour.
12804
12805 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
12806 left shift behaviour.
12807 * config/msp430/constraints.md ('L' constraint): Similarly.
12808 ('Ys' constraint): Similarly.
12809
12810 2015-09-29 Richard Biener <rguenther@suse.de>
12811
12812 PR tree-optimization/67170
12813 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
12814 the translate function pointer parameter to get the
12815 bool whether to disambiguate only by reference.
12816 (walk_non_aliased_vuses): Likewise.
12817 * tree-ssa-alias.c (maybe_skip_until): Adjust.
12818 (get_continuation_for_phi_1): Likewise.
12819 (get_continuation_for_phi): Likewise.
12820 (walk_non_aliased_vuses): Likewise.
12821 * tree-ssa-sccvn.c (const_parms): New bitmap.
12822 (vn_reference_lookup_3): Adjust for interface change.
12823 Disambiguate parameters pointing to readonly memory.
12824 (free_scc_vn): Free const_parms.
12825 (run_scc_vn): Initialize const_parms from a fn spec attribute.
12826
12827 2015-09-29 Richard Biener <rguenther@suse.de>
12828
12829 PR tree-optimization/67741
12830 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
12831 builtin calls with correct signature.
12832
12833 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
12834
12835 PR target/65105
12836 * config/i386/i386.c: Include dbgcnt.h.
12837 (has_non_address_hard_reg): New.
12838 (convertible_comparison_p): New.
12839 (scalar_to_vector_candidate_p): New.
12840 (remove_non_convertible_regs): New.
12841 (scalar_chain): New.
12842 (scalar_chain::scalar_chain): New.
12843 (scalar_chain::~scalar_chain): New.
12844 (scalar_chain::add_to_queue): New.
12845 (scalar_chain::mark_dual_mode_def): New.
12846 (scalar_chain::analyze_register_chain): New.
12847 (scalar_chain::add_insn): New.
12848 (scalar_chain::build): New.
12849 (scalar_chain::compute_convert_gain): New.
12850 (scalar_chain::replace_with_subreg): New.
12851 (scalar_chain::replace_with_subreg_in_insn): New.
12852 (scalar_chain::emit_conversion_insns): New.
12853 (scalar_chain::make_vector_copies): New.
12854 (scalar_chain::convert_reg): New.
12855 (scalar_chain::convert_op): New.
12856 (scalar_chain::convert_insn): New.
12857 (scalar_chain::convert): New.
12858 (convert_scalars_to_vector): New.
12859 (pass_data_stv): New.
12860 (pass_stv): New.
12861 (make_pass_stv): New.
12862 (ix86_option_override): Created and register stv pass.
12863 (flag_opts): Add -mstv.
12864 (ix86_option_override_internal): Likewise.
12865 * config/i386/i386.md (SWIM1248x): New.
12866 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
12867 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
12868 (*anddi3_doubleword): New.
12869 (*zext<mode>_doubleword): New.
12870 (*zextsi_doubleword): New.
12871 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
12872 (*<code>di3_doubleword): New.
12873 * config/i386/i386.opt (mstv): New.
12874 * dbgcnt.def (stv_conversion): New.
12875
12876 2015-09-29 Tom de Vries <tom@codesourcery.com>
12877
12878 * tree-cfg.c (dump_function_to_file): Dump function attributes.
12879
12880 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
12881
12882 PR target/67716
12883 * config/sh/sh.c (sh_override_options_after_change): New.
12884 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
12885 (sh_option_override): Move align_loops, align_jumps and
12886 align_functions handling into sh_override_options_after_change.
12887
12888 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
12889
12890 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
12891 (nvptx_record_offload_symbol): Record function execution geometry.
12892 * config/nvptx/mkoffload.c (process): Include launch geometry in
12893 function data.
12894 * omp-low.c (oacc_launch_pack): New.
12895 (replace_oacc_fn_attrib): New.
12896 (set_oacc_fn_attrib): New.
12897 (get_oacc_fn_attrib): New.
12898 (expand_omp_target): Create keyed varargs for GOACC_parallel call
12899 generation.
12900 * omp-low.h (get_oacc_fn_attrib): Declare.
12901 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
12902 (DEF_FUNCTION_TYPE_VAR_11): Delete.
12903 * tree.h (OMP_CLAUSE_EXPR): New.
12904 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
12905
12906 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
12907 Sebastian Pop <s.pop@samsung.com>
12908
12909 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
12910
12911 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
12912 Sebastian Pop <s.pop@samsung.com>
12913
12914 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
12915 * graphite-scop-detection.c (struct sese_l): New type.
12916 (get_entry_bb): API for getting entry bb of SESE.
12917 (get_exit_bb): API for getting exit bb of SESE.
12918 (class debug_printer): New type. Simple printer in debug mode.
12919 (trivially_empty_bb_p): New. Return true when BB is empty or
12920 contains only debug instructions.
12921 (graphite_can_represent_expr): Call scalar_evoution_in_region
12922 instead of analyze_scalar_evolution. Pass in scop instead of only
12923 the scop entry.
12924 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
12925 scop entry.
12926 (stmt_simple_for_scop_p): Same.
12927 (harmful_stmt_in_bb): Same.
12928 (graphite_can_represent_loop): Deleted.
12929 (struct scopdet_info): Deleted.
12930 (scopdet_basic_block_info): Deleted.
12931 (build_scops_1): Deleted.
12932 (bb_in_sd_region): Deleted.
12933 (find_single_entry_edge): Deleted.
12934 (find_single_exit_edge): Deleted.
12935 (create_single_entry_edge): Deleted.
12936 (sd_region_without_exit): Deleted.
12937 (create_single_exit_edge): Deleted.
12938 (unmark_exit_edges): Deleted.
12939 (mark_exit_edges): Deleted.
12940 (create_sese_edges): Deleted.
12941 (build_graphite_scops): Deleted.
12942 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
12943 (build_scops): Use the new scop_builder to build scops.
12944 (dot_all_scops_1): Use the new pretty printer. Print loop father
12945 as well.
12946 (loop_body_is_valid_scop): New. Return true if loop body is a
12947 valid scop.
12948 (class scop_builder): New. Builds SCoPs for polyhedral
12949 optimizations.
12950 (scop_builder): New constructor.
12951 (static sese_l invalid_sese): sese_l with invalid edges.
12952 (get_sese): Get an sese (from a loop) if possible, invalid_sese
12953 otherwise.
12954 (get_nearest_dom_with_single_entry): Get nearest dominator of a
12955 basic_block with single entry. Return NULL if we get to the
12956 beginning of a function.
12957 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
12958 a basic_block with single exit. Return NULL if we get to the
12959 beginning of a function.
12960 (print_sese): Pretty-print SESE.
12961 (merge_sese): Merge two SESEs if possible and return the new SESE.
12962 (build_scop_depth): Start building the SCoP within a loop nest.
12963 (build_scop_breadth): Start building the SCoP at a single loop
12964 depth. Merge adjacent SESEs if valid.
12965 (can_represent_loop_1): Returns true if Graphite can represent
12966 loop inside SCoP. Helper for can_represent_loop.
12967 (can_represent_loop): Returns true if Graphite can represent LOOP
12968 and all its nested loops in SCoP.
12969 (loop_is_valid_scop): Returns true if LOOP and all its nests
12970 constitute a valid SCoP.
12971 (region_has_one_loop): Returns true of a region has only one loop.
12972 (add_scop): Add SCoP to the list of valid scops. Removes an
12973 already existing scop if it intersects with or subsumed by this one.
12974 (harmful_stmt_in_region): Returns true if SCoP has any statment
12975 which cannot be represented by Graphite.
12976 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
12977 (remove_subscops): Remove any SCoP from the list of already found
12978 SCoPs, if subsumed by S1.
12979 (intersects): Return true if region bounded by SCoPs S1 and S2
12980 intersect.
12981 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
12982 * graphite.c (print_graphite_scop_statistics):
12983 (print_graphite_statistics): Print SCoP info while debugging.
12984 (graphite_initialize): Early exit in case number of loops in a
12985 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
12986 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
12987 (graphite_finalize):
12988 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
12989 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
12990 (recompute_all_dominators): Recalculate POST_DOMINATORS.
12991 * tree-cfg.c (print_loops): Print the function name while printing
12992 loops.
12993
12994 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
12995 Sebastian Pop <s.pop@samsung.com>
12996
12997 PR tree-optimization/67700
12998 * graphite-sese-to-poly.c (parameter_index_in_region): Call
12999 invariant_in_sese_p_rec.
13000 (extract_affine): Same.
13001 (rewrite_cross_bb_scalar_deps): Call update_ssa.
13002 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
13003 * sese.h (invariant_in_sese_p_rec): Declare.
13004
13005 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
13006
13007 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
13008
13009 2015-09-28 Jiong Wang <jiong.wang@arm.com>
13010
13011 Revert:
13012 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13013 Jiong Wang <jiong.wang@arm.com>
13014
13015 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
13016 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
13017 (REG_CLASS_NAMES): Likewise.
13018 (REG_CLASS_CONTENTS): Likewise.
13019 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
13020 (aarch64_register_move_cost): Likewise.
13021 (aarch64_load_symref_appropriately): Invoke the new added pattern if
13022 possible.
13023 * config/aarch64/constraints.md (Uc0): New constraint.
13024
13025 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
13026
13027 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
13028
13029 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
13030
13031 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
13032 SECTION_EXCLUDE in XO mapping class.
13033
13034 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
13035
13036 PR target/54236
13037 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
13038 and handle ne and eq codes.
13039 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
13040 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
13041 CONST_INT_P. Use reverse_condition.
13042 (sh_split_treg_set_expr): Likewise.
13043
13044 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
13045
13046 * config/arm/types.md (type): Add rotate_imm.
13047 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
13048 ROR immediate case.
13049 (*rorsi3_insn_uxtw): Likewise.
13050 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
13051 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
13052 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
13053
13054 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13055
13056 PR rtl-optimization/67481
13057 * ifcvt.c (contains_ccmode_rtx_p): New function.
13058 (insn_valid_noce_process_p): Use it.
13059
13060 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13061
13062 PR rtl-optimization/67456
13063 PR rtl-optimization/67464
13064 PR rtl-optimization/67465
13065 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
13066 move in the mode of x. Handle combination of complex and simple
13067 block pairs as well as the case when one is empty.
13068
13069 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13070
13071 * doc/gimple.texi: Update references to gimple_statement_base.
13072 * gdbhooks.py: Likewise.
13073 * gimple.h: Likewise.
13074
13075 2015-09-28 Daniel Cederman <cederman@gaisler.com>
13076
13077 * config/sparc/driver-sparc.c: map LEON to leon3
13078
13079 2015-09-28 Daniel Cederman <cederman@gaisler.com>
13080
13081 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
13082 and make it inverse to change default
13083 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
13084 supervisor mode
13085 * doc/invoke.texi: Document change of default
13086
13087 2015-09-28 Daniel Cederman <cederman@gaisler.com>
13088
13089 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
13090 true on %f0 for a target without FPU.
13091 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
13092 without FPU.
13093 (untyped_return): Do not load %f0 for a target without FPU.
13094
13095 2015-09-28 Andrew Pinski <apinski@cavium.com>
13096
13097 * config/aarch64/aarch64.md (prefetch):
13098 Change the predicate of operand 0 to register_operand.
13099
13100 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
13101
13102 * config/i386/predicates.md (register_sse4nonimm_operand): New
13103 predicate.
13104 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
13105 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
13106 Use register_sse4nonimm_operand as operand 0 predicate.
13107 (*vec_extractv8hi_sse2): Remove insn pattern.
13108 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
13109 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
13110
13111 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
13112 Kaz Kojima <kkojima@gcc.gnu.org>
13113
13114 PR target/67391
13115 * config/sh/sh-protos.h (sh_lra_p): Declare.
13116 * config/sh/sh.c (sh_lra_p): Make non-static.
13117 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
13118 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
13119 Expand into addsi3_scr if operands[2] if needed.
13120 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
13121 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
13122 (addsi3_scr, *addsi3): New insn_and_split patterns.
13123
13124 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
13125
13126 PR rtl-optimization/64164
13127 PR tree-optimization/67312
13128 PR middle-end/67340
13129 PR middle-end/67490
13130 PR bootstrap/67597
13131 * cfgexpand.c (parm_in_stack_slot_p): Remove.
13132 (ssa_default_def_partition): Remove.
13133 (get_rtl_for_parm_ssa_default_def): Remove.
13134 (set_rtl): Check that RTL assignments match expectations.
13135 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
13136 default def location for params and results. Record SSA names
13137 or types in REG and MEM attrs, respectively.
13138 (set_parm_rtl): New.
13139 (expand_one_ssa_partition): Drop logic that assigned MEMs with
13140 unassigned addresses.
13141 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
13142 deferred stack alloc vars.
13143 (expand_used_vars): Skip partitions holding parm default defs.
13144 Move adjust_one_expanded_partition_var loop...
13145 (pass_expand::execute): ... here. Drop redundant assert.
13146 Adjust comments before the final loop over all ssa names.
13147 Require assigned rtl of parms and results to match exactly.
13148 Reset its attributes to match them, not any other variables in
13149 the same partition.
13150 (expand_debug_expr): Use entry value for PARM's default defs
13151 only iff they have zero nondebug uses.
13152 * cfgexpand.h (parm_in_stack_slot_p): Remove.
13153 (get_rtl_for_parm_ssa_default_def): Remove.
13154 (set_parm_rtl): Declare.
13155 * doc/invoke.texi: Improve wording.
13156 * explow.c (promote_decl_mode): Fix promote_function_mode for
13157 result decls not by reference.
13158 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
13159 bypass TYPE_MODE to get the actual vector mode.
13160 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
13161 2015-08-19's changes as follows. Drop include of
13162 basic-block.h and df.h.
13163 (rtl_for_parm): Remove.
13164 (maybe_reset_rtl_for_parm): Remove.
13165 (parm_in_unassigned_mem_p): Remove.
13166 (use_register_for_decl): Add logic for RESULT_DECLs matching
13167 assign_parms' behavior.
13168 (split_complex_args): Revert.
13169 (assign_parms_augmented_arg_list): Revert. Add comment
13170 referencing the logic above.
13171 (assign_parm_adjust_stack_rtl): Revert.
13172 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
13173 of SET_DECL_RTL. Set up a REG if the parm demands so.
13174 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
13175 calls into a single set_parm_rtl. Set up a temporary RTL
13176 temporarily for expand_assignment.
13177 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
13178 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
13179 (assign_bounds): Revert.
13180 (assign_parms): Revert. Use set_parm_rtl.
13181 (allocate_struct_function): Relayout result and parms of
13182 non-abstruct functions.
13183 (expand_function_start): Revert. Use set_parm_rtl. If the
13184 result is not a hard reg, create a pseudo from the promoted
13185 mode of the default def. Promote static chain mode.
13186 * tree-outof-ssa.c (remove_ssa_form): Drop unused
13187 partition_has_default_def. Set up
13188 partitions_for_parm_default_defs.
13189 (finish_out_of_ssa): Remove partition_has_default_def.
13190 Release partitions_for_parm_default_defs.
13191 * tree-outof-ssa.h (struct ssaexpand): Remove
13192 partition_has_default_def. Add
13193 partitions_for_parm_default_defs.
13194 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
13195 stor-layout.h.
13196 (build_ssa_conflict_graph): Fix conflict-detection of default
13197 defs of even unused default defs of params and results.
13198 (for_all_parms): New.
13199 (create_default_def): New.
13200 (register_default_def): New.
13201 (coalesce_with_default): New.
13202 (create_outofssa_var_map): Create default defs for all parms
13203 and results, and register their partitions. Add GIMPLE_RETURN
13204 operands as coalesce candidates with results. Add default
13205 defs of each parm or result as coalesce candidates with its
13206 other defs. Mark each result def, and each default def of
13207 parms, as used_in_copy.
13208 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
13209 with the ssa names, even anonymous ones. Drop
13210 parm_in_stack_slot_p calls. Require same signedness and
13211 alignment.
13212 (coalesce_ssa_name): Add coalesce candidates for all defs of
13213 each parm and result, even unused ones.
13214 (parm_default_def_partition_arg): New type.
13215 (set_parm_default_def_partition): New.
13216 (get_parm_default_def_partitions): New.
13217 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
13218 * tree-ssa-live.c (partition_view_init): Regard unused defs of
13219 parms and results as used.
13220 (verify_live_on_entry): Don't error out just because they're
13221 not live.
13222
13223 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
13224
13225 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
13226 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
13227 (output_fde): Don't output length for debug_frame on AIX.
13228 (output_call_frame_info): Don't output length for debug_frame on AIX.
13229 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
13230 HAVE_XCOFF_DWARF_EXTRAS.
13231 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
13232 HAVE_XCOFF_DWARF_EXTRAS.
13233 (output_compilation_unit_header): Don't output length on AIX.
13234 (output_pubnames): Don't output length on AIX.
13235 (output_aranges): Delete argument. Compute length locally. Don't
13236 output length on AIX.
13237 (output_line_info): Don't output length on AIX.
13238 (dwarf2out_finish): Don't compute aranges_length.
13239 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
13240 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
13241 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
13242 symbol decoration for AIX.
13243 (rs6000_xcoff_debug_unwind_info): New.
13244 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
13245 for SECTION_DEBUG.
13246 (rs6000_xcoff_declare_function_name): Emit different
13247 .function pseudo-op when DWARF2_DEBUG. Don't call
13248 xcoffout_declare_function for DWARF2_DEBUG.
13249 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
13250 Redefine.
13251 * config/rs6000/aix71.h: New.
13252 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
13253 locations support.
13254 * configure: Regenerate.
13255 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
13256 DWARF support.
13257
13258 2015-09-26 Jeff Law <law@redhat.com>
13259
13260 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
13261 behaviour.
13262 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
13263 behaviour.
13264
13265 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
13266 behaviour
13267
13268 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
13269 undefined behaviour.
13270
13271 * config/cris/cris.md (asrandb): Fix left shift undefined
13272 behaviour.
13273 (asrandw): Likewise.
13274
13275 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
13276
13277 PR target/61578
13278 * lra-constarints.c (match_reload): Check presence of the input pseudo
13279 in the output operand.
13280
13281 2015-09-25 Tobias Burnus <burnus@net-b.de>
13282
13283 * doc/invoke.texi (-fsanitize): Minor wording tweak.
13284
13285 2015-09-25 Tobias Burnus <burnus@net-b.de>
13286
13287 * doc/invoke.texi (-fsanitize): Update URLs.
13288
13289 2015-09-25 Teresa Johnson <tejohnson@google.com>
13290
13291 * opts.c (finish_options): Unset -freorder-blocks-and-partition
13292 if not using profile.
13293
13294 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
13295
13296 PR pretty-print/67567
13297 * pretty-print.c (pp_string): Add gcc_checking_assert.
13298 * pretty-print.h (output_buffer_append_r): Likewise.
13299
13300 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
13301
13302 PR target/67675
13303 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
13304 addr2 individually. Don't emit logical or insn if one is known to
13305 be aligned approriately.
13306 (sh_expand_cmpnstr): Likewise.
13307
13308 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
13309
13310 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
13311 __builtin_aarch64_fp[sc]r arguments into a register.
13312
13313 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
13314
13315 * config.gcc (x86_archs): Replace lakemount with lakemont.
13316 (with_cpu): Likewise.
13317 (with_arch): Likewise.
13318 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
13319 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
13320 __tune_lakemount__ with __tune_lakemont__.
13321 * config/i386/i386.c (lakemount_cost): Renamed to ...
13322 (lakemont_cost): This.
13323 (m_LAKEMOUNT): Renamed to ...
13324 (m_LAKEMONT): This.
13325 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
13326 (processor_target_table): Replace "lakemount" with "lakemont".
13327 (processor_alias_table): Likewise.
13328 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
13329 PROCESSOR_LAKEMONT.
13330 (ix86_adjust_cost): Likewise.
13331 (ia32_multipass_dfa_lookahead): Likewise.
13332 * config/i386/i386.h (processor_type): Likewise.
13333 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
13334 * doc/invoke.texi: Replace lakemount with lakemont. Replace
13335 Lakemount with Lakemont.
13336
13337 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
13338
13339 * config.gcc (x86_archs): Replace iamcu with lakemount.
13340 (with_cpu): Likewise.
13341 (with_arch): Likewise.
13342 * doc/invoke.texi: Likewise.
13343 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
13344 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
13345 __tune_iamcu__ with __tune_lakemount__.
13346 * config/i386/i386.c (iamcu_cost): Renamed to ...
13347 (lakemount_cost): This.
13348 (m_IAMCU): Renamed to ...
13349 (m_LAKEMOUNT): This.
13350 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
13351 (processor_target_table): Replace "iamcu" with "lakemount".
13352 (processor_alias_table): Likewise.
13353 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
13354 PROCESSOR_LAKEMOUNT.
13355 (ix86_adjust_cost): Likewise.
13356 (ia32_multipass_dfa_lookahead): Likewise.
13357 * config/i386/i386.h (processor_type): Likewise.
13358 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
13359
13360 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
13361
13362 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
13363 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
13364 Declare.
13365 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
13366 (pa_expand_compare_and_swap_loop): New.
13367 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
13368 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
13369 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
13370 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
13371 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
13372 Revise.
13373
13374 2015-09-24 Michael Collison <michael.collison@linaro.org>
13375
13376 PR other/57195
13377 * read-md.c (read_name): Allow mode iterators inside angle
13378 brackets in rtl expressions.
13379
13380 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
13381
13382 PR target/61578
13383 * ira-color.c (update_allocno_cost): Add parameter.
13384 (update_costs_from_allocno): Decrease conflict cost. Pass the new
13385 parameter.
13386
13387 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
13388
13389 PR driver/67640
13390 * opts-common.c (prune_options): Discard all -fdiagnostics-color
13391 but the last one, which is moved to the front to be processed
13392 first.
13393 * opts.c (enable_warning_as_error): Reject options that do not
13394 control warnings.
13395
13396 2015-09-24 Jiong Wang <jiong.wang@arm.com>
13397
13398 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
13399
13400 2015-09-24 Jiong Wang <jiong.wang@arm.com>
13401
13402 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
13403 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
13404 (aarch64_cannot_force_const_mem): Likewise.
13405 (aarch64_classify_address): Likewise.
13406 (aarch64_classify_symbolic_expression): Likewise.
13407 (aarch64_print_operand): Likewise.
13408 (aarch64_classify_symbol): Likewise.
13409 (aarch64_mov_operand_p): Likewise.
13410 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
13411 (aarch64_mov_operand): Likewise.
13412
13413 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
13414
13415 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
13416 for info->spe_gp_size.
13417
13418 2015-09-24 Richard Biener <rguenther@suse.de>
13419
13420 PR lto/67699
13421 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
13422 abstract origins.
13423
13424 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
13425
13426 * tree-object-size.c (plus_stmt_object_size)
13427 (cond_expr_object_size): Change the formal parameters from gimple
13428 to gimple *.
13429 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
13430 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
13431 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
13432
13433 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13434
13435 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
13436 Check for ld -type pie on Solaris 11.x and 12.
13437 * configure: Regenerate.
13438 * config.in: Regenerate.
13439
13440 * gcc.c (LD_PIE_SPEC): Allow redefinition.
13441
13442 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
13443 (STARTFILE_SPEC): Use it.
13444 (ENDFILE_CRTEND_SPEC): Define.
13445 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
13446 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
13447 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
13448 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
13449 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
13450 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
13451 (ENDFILE_ARCH_SPEC): Define.
13452 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
13453
13454 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13455
13456 * configure.ac (gcc_cv_solaris_crts): New test.
13457 * configure. Regenerate.
13458 * config.in: Regenerate.
13459 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
13460 HAVE_SOLARIS_CRTS variant.
13461
13462 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13463
13464 * tree-inline.h (count_insns_seq): Delete prototype.
13465 (estimate_num_insns_seq): Define prototype.
13466 * tree-inline.c (count_insns_seq): Delete.
13467 (estimate_num_insns_seq): Remove static qualifier.
13468 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
13469 with estimate_num_insns_seq.
13470
13471 2015-09-24 Richard Biener <rguenther@suse.de>
13472
13473 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
13474 members.
13475 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
13476 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
13477 offset.
13478 (ao_ref_init_from_vn_reference): Record clique and base in the
13479 built base.
13480 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
13481
13482 2015-09-24 Richard Biener <rguenther@suse.de>
13483
13484 PR tree-optimization/48885
13485 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
13486 as not including any restrict tags from other pointers.
13487
13488 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
13489
13490 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
13491 character when appending to offload_targets.
13492
13493 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
13494 offload targets by commas, not colons.
13495 * config.in: Regenerate.
13496 * configure: Likewise.
13497 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
13498 instead of setting up the default offload targets here...
13499 (process_command): ..., do it here.
13500 libgomp/
13501 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
13502 targets are separated by commas.
13503 * config.h.in: Regenerate.
13504
13505 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
13506 Nathan Sidwell <nathan@codesourcery.com>
13507
13508 * omp-low.h (omp_reduction_init_op): Declare.
13509 * omp-low.c (omp_reduction_init_op): New, broken out of ...
13510 (omp_reduction_init): ... here. Call it.
13511 * tree-parloops.c (initialize_reductions): Use
13512 omp_reduction_init_op.
13513
13514 2015-09-23 Richard Biener <rguenther@suse.de>
13515
13516 PR middle-end/67662
13517 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
13518 undefined overflow unless they will cancel out.
13519
13520 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
13521
13522 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
13523 insn emit.
13524
13525 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
13526
13527 PR c/49655
13528 * opts.h (write_langs): Declare.
13529 * opts-global.c (write_langs): Make it extern.
13530
13531 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
13532
13533 PR target/67391
13534 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
13535 overlapping regs when matching the pattern.
13536
13537 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
13538
13539 * config/aarch64/aarch64-simd.md
13540 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
13541 (aarch64_float_truncate_hi_v4sf_le): New.
13542 (aarch64_float_truncate_hi_v4sf_be): Likewise.
13543
13544 2015-09-23 Richard Biener <rguenther@suse.de>
13545
13546 * tree-ssa-structalias.c (intra_create_variable_infos): Build
13547 representatives for all restrict qualified pointer destinations.
13548
13549 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
13550
13551 * config/i386/i386.md (define_code_attr mshift): New.
13552 (define_mode_iterator SWI1248_AVX512BW): Rename ...
13553 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
13554 only.
13555 (define_insn "*k<logic><mode>"): Use new iterator name.
13556 (define_insn "*<mshift><mode>3"): New.
13557
13558 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
13559
13560 PR middle-end/67649
13561 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
13562 mark the block as accessible.
13563
13564 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
13565
13566 * function.c (thread_prologue_and_epilogue_insns): Delete
13567 orig_entry_edge argument to try_shrink_wrapping.
13568 * shrink-wrap.c (can_get_prologue): New function.
13569 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
13570 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
13571 can_get_prologue where needed. Remove code that finds a single
13572 edge for the prologue. Remove code that tests if any reg clobbered
13573 by the prologue is live on the prologue edge. Remove code that finds
13574 the new prologue edge after duplicating blocks. Make a new prologue
13575 block and edge.
13576 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
13577
13578 2015-09-22 Jeff Law <law@redhat.com>
13579
13580 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
13581 behavior.
13582
13583 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
13584
13585 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
13586 -Wtemplates, -Wnamespaces): Document.
13587
13588 2015-09-22 Tom de Vries <tom@codesourcery.com>
13589
13590 PR tree-optimization/67671
13591 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
13592 pointer references as restrict.
13593
13594 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
13595
13596 * config/nios2/nios2.c (nios2_legitimize_address): When handling
13597 'reg + reloc' cases, allow first operand to be non-REG, and use
13598 force_reg() to enforce address pattern.
13599
13600 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
13601
13602 PR target/67480
13603 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
13604 (define_mode_iterator VI12_AVX_AVX512F): New.
13605 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
13606 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
13607 (define_insn "*<code><mode>3"): ... Into new pattern using
13608 VI12_AVX_AVX512F iterators without masking.
13609
13610 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
13611
13612 * config.gcc: Support "skylake-avx512".
13613 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13614 PROCESSOR_SKYLAKE_AVX512.
13615 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
13616 (processor_target_table): Add "skylake-avx512".
13617 (PTA_SKYLAKE_AVX512): Define.
13618 (ix86_option_override_internal): Add "skylake_avx512".
13619 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
13620 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
13621 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
13622 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
13623 * doc/invoke.texi (skylake-avx512): New.
13624
13625 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
13626
13627 * config/i386/i386.md (define_insn "kunpckhi"): Fix
13628 operand in pattern.
13629 (define_insn "kunpcksi"): Ditto.
13630 (define_insn "kunpckdi"): Ditto.
13631
13632 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
13633
13634 * config/i386/i386.md (define_split not/xor SWI1248x): Use
13635 iterator instead of fixed modes.
13636
13637 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13638
13639 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
13640 Adjust declaration.
13641 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
13642 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
13643 out_result. Update to support update-fetch operations.
13644 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
13645 Adjust for change to aarch64_gen_atomic_ldop.
13646 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
13647 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
13648 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
13649 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
13650 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
13651
13652 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13653
13654 * config/aarch64/aarch64-protos.h
13655 (aarch64_atomic_ldop_supported_p): Declare.
13656 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
13657 (enum aarch64_atomic_load_op_code): New.
13658 (aarch64_emit_atomic_load_op): New.
13659 (aarch64_gen_atomic_ldop): Update to support load-operate
13660 patterns.
13661 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
13662 to an expander.
13663 (aarch64_atomic_<atomic_optab><mode>): New.
13664 (aarch64_atomic_<atomic_optab><mode>_lse): New.
13665 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
13666 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
13667 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
13668
13669 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13670
13671 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
13672 (UNSPECV_ATOMIC_LDOP_OR): New.
13673 (UNSPECV_ATOMIC_LDOP_BIC): New.
13674 (UNSPECV_ATOMIC_LDOP_XOR): New.
13675 (UNSPECV_ATOMIC_LDOP_PLUS): New.
13676 (ATOMIC_LDOP): New.
13677 (atomic_ldop): New.
13678 (aarch64_atomic_load<atomic_ldop><mode>): New.
13679
13680 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13681
13682 * config/aarch64/aarch64.md
13683 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
13684 pattern.
13685
13686 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13687
13688 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
13689 Declare.
13690 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
13691 (aarch64_gen_atomic_ldop): New.
13692 (aarch64_split_atomic_op): Fix whitespace and add a comment.
13693 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
13694 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
13695 (atomic_exchange<mode>): Replace with an expander.
13696 (aarch64_atomic_exchange<mode>): New.
13697 (aarch64_atomic_exchange<mode>_lse): New.
13698 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
13699 (aarch64_atomic_swp<mode>): New.
13700
13701 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
13702
13703 * tree-inline.c (expand_call_inline): Use inform for extra note.
13704 Do not give a note with UNKNOWN_LOCATION.
13705 Replace input_location with gimple_location (stmt).
13706 Use true/false instead of TRUE/FALSE.
13707
13708 2015-09-22 Tom de Vries <tom@codesourcery.com>
13709
13710 PR tree-optimization/67666
13711 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
13712 with single field non-conservative.
13713
13714 2015-09-21 David S. Miller <davem@davemloft.net>
13715
13716 PR/67622
13717 Revert:
13718 2015-09-11 David S. Miller <davem@davemloft.net>
13719
13720 * config/sparc/constraints.md: Make "U" constraint a real register
13721 constraint.
13722 * config/sparc/sparc.c (TARGET_LRA_P): Define.
13723 (D_MODES, DF_MODES): Add missing cast.
13724 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
13725 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
13726 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
13727 cost to 8.
13728 * config/sparc/sparc.h (PROMOTE_MODE): Define.
13729 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
13730 provide these insn when flag_pic.
13731
13732 2015-09-17 David S. Miller <davem@davemloft.net>
13733
13734 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
13735 Declare.
13736 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
13737 function.
13738 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
13739 (HARD_REGNO_CALLER_SAVE_MODE): Define.
13740 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
13741 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
13742 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
13743 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
13744 provide when flag_pic.
13745
13746 2015-09-21 Jeff Law <law@redhat.com>
13747
13748 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
13749 behavior.
13750
13751 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13752
13753 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
13754
13755 2015-09-21 Richard Biener <rguenther@suse.de>
13756
13757 * passes.c (rest_of_decl_compilation): Do not call
13758 dwarf2out_early_global_decl for aliases.
13759
13760 2015-09-21 Richard Biener <rguenther@suse.de>
13761
13762 PR debug/67664
13763 * dwarf2out.c (add_location_or_const_value_attribute): Remove
13764 attribute parameter. Early exit if either DW_AT_const_value
13765 or DW_AT_location are present already.
13766 (gen_variable_die): Adjust caller.
13767 (dwarf2out_late_global_decl): Likewise.
13768
13769 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
13770
13771 PR target/67657
13772 * config/sh/sh.c (sh_remove_overlapping_post_inc,
13773 sh_peephole_emit_move_insn): Add new functions.
13774 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
13775 sh_peephole_emit_move_insn): Declere them.
13776 * config/sh/sh.md: Use them in various peephole2 patterns.
13777
13778 2015-09-21 Richard Biener <rguenther@suse.de>
13779
13780 PR middle-end/67651
13781 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
13782 address with -fno-delete-null-pointer-checks.
13783
13784 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
13785
13786 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
13787 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
13788 (reduc_uplus_v16qi): Remove.
13789
13790 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
13791 (reduc_<VEC_reduc_name>_v2df): Remove.
13792 (reduc_<VEC_reduc_name>_v4sf): Remove.
13793 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
13794
13795 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
13796 gen_ function by removing * prefix.
13797 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
13798
13799 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
13800
13801 PR middle-end/60832
13802 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
13803 Print i_bound without converting it to a tree.
13804
13805 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
13806
13807 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
13808 operands[4] operands[5] swap with std::swap, removed tmp variable.
13809 (arm_evpc_neon_vzip): Replaced in0/in1 and
13810 out0/out1 swaps with std::swap, removed x variable.
13811 (arm_evpc_neon_vtrn): Replaced in0/int1 and
13812 out0/out1 swaos with std::swap, removed x variable.
13813 (arm_expand_vec_perm_const_1): Replaced
13814 d->op0/d->op1 swap with std::swap, removed x variable.
13815 (arm_evpc_neon_vuzp): Replaced in0/in1 and
13816 out0/out1 swaps with std::swap, removed x variable.
13817
13818 2015-09-21 Jonathan Yong <10walls@gmail.com>
13819
13820 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
13821 sysroot/usr/lib/32api for additional win32 libraries,
13822 fixes failing Cygwin bootstrapping.
13823
13824 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
13825
13826 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
13827
13828 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
13829
13830 PR target/67126
13831 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
13832 (*mov_t_msb_neg): Rewrite negc pattern.
13833
13834 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13835
13836 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
13837 immediate generation code.
13838
13839 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13840
13841 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
13842 redundant immediate generation code.
13843
13844 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13845
13846 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
13847 (AARCH64_NUM_BITMASKS): Remove.
13848 (aarch64_bitmasks_cmp): Remove.
13849 (aarch64_build_bitmask_table): Remove.
13850
13851 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13852
13853 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
13854 slow immediate matching loops with a faster algorithm.
13855
13856 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13857
13858 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
13859 faster algorithm.
13860
13861 2015-09-20 Jeff Law <law@redhat.com>
13862
13863 PR tree-optimization/47679
13864 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
13865 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
13866 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
13867 (thread_through_normal_block): Use record_temporary_equivalences.
13868
13869 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
13870
13871 * coretypes.h (gimple): Change typedef to be a forward declaration.
13872 * gimple.h (gimple_statement_base): rename to gimple.
13873 * (all functions and types using gimple): Adjust.
13874 * *.[ch]: Likewise.
13875
13876 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
13877 David Edelsohn <dje.gcc@gmail.com>
13878
13879 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
13880 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13881 (EH_FRAME_THROUGH_COLLECT2): Define.
13882 (EH_TABLES_CAN_BE_READ_ONLY): Define.
13883 (ASM_OUTPUT_DWARF_PCREL): Define.
13884 (ASM_OUTPUT_DWARF_DATAREL): Define.
13885
13886 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
13887
13888 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
13889 of TARGET_ELF32.
13890
13891 2015-09-18 Jeff Law <law@redhat.com>
13892
13893 PR tree-optimization/47679
13894 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
13895 it here ...
13896 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
13897 object. Update constructor.
13898 (pass_dominator::execute): Corresponding chagnes to declaration
13899 and initialization of avail_exprs_stack. Update constructor call
13900 for dom_opt_dom_walker object.
13901 (lookup_avail_expr, record_cond): Accept additional argument. Pass
13902 it down to children as needed.
13903 (record_equivalences_from_incoming_edge): Likewise.
13904 (eliminate_redundant_computations): Likewise.
13905 (record_equivalences_from_stmt): Likewise.
13906 (simplify_stmt_for_jump_threading): Likewise.
13907 (record_temporary_equivalences): Likewise.
13908 (optimize_stmt): Likewise.
13909 (dom_opt_dom_walker::thread_across_edge): Update access to
13910 avail_exprs_stack object and pass it to children as needed.
13911 (dom_opt_dom_walker::before_dom_children): Similarly.
13912 (dom_opt_dom_walker::after_dom_children): Similarly.
13913 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
13914 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
13915 Add avail_expr_stack argument. Pass it to children as needed.
13916 (dummy_simplify): Likewise.
13917 (simplify_control_stmt_condition): Likewise.
13918 (thread_around_empty_blocks): Likewise.
13919 (thread_through_normal_block): Likewise.
13920 (thread_across_edge): Likewise.
13921 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
13922 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
13923
13924 PR tree-optimization/47679
13925 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
13926 it here ...
13927 (dom_opt_dom_walker): New private member holding the const_and_copies
13928 object. Update constructor.
13929 (pass_dominator::execute): Corresponding changes to declaration
13930 and initialization of const_and_copies. Update constructor call
13931 for the dom_opt_dom_walker object.
13932 (record_temporary_equivalences): Accept const_and_copies argument
13933 pass it down to children as needed.
13934 (record_equality): Likewise.
13935 (record_equivalences_from_incoming_edge): Likewise.
13936 (cprop_into_successor_phis, optimize_stmt): Likewise.
13937 (eliminate_redundant_computations): Likewise.
13938 (dom_opt_dom_walker::thread_across_edge): Update access to
13939 const_and_copies object and pass it to children as needed.
13940 (dom_opt_dom_walker::before_dom_children): Similarly.
13941 (dom_opt_dom_walker::after_dom_children): Similarly.
13942
13943 PR tree-optimization/47679
13944 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
13945 it into the avail_exprs_stack class.
13946 (pass_dominator::execute): Corresponding changes to declaration
13947 and initialization of avail_exprs. Pass avail_exprs to
13948 dump_dominator_optimization_stats.
13949 (record_cond): Extract avail_exprs from avail_exprs_stack.
13950 (lookup_avail_expr): Similarly.
13951 (htab_staticstics): Remove unnecessary prototype. Move to earlier
13952 position in file.
13953 (dump_dominator_optimization_stats): Make static and prototype.
13954 Add argument for the hash table to dump.
13955 (debug_dominator_optimization_stats): Remove.
13956 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
13957 prototype.
13958 (debug_dominator_optimization_stats): Similarly.
13959 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
13960 "void" in prototype for pop_to_marker method. Add accessor method
13961 for the underlying avail_exprs table.
13962
13963 * tree-ssa-threadedge.c: Remove trailing whitespace.
13964
13965 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
13966
13967 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
13968 unsigned.
13969 (pa_ldil_cint_p): Likewise.
13970 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
13971 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
13972 Update callers.
13973 * config/pa/pa.md: Likewise.
13974
13975 2015-09-18 David Malcolm <dmalcolm@redhat.com>
13976
13977 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
13978 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
13979 (diagnostic_show_locus): Likewise.
13980 (diagnostic_print_caret_line): Likewise.
13981 * diagnostic-show-locus.c: New file.
13982
13983 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
13984
13985 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
13986 "back" parameter. Declare label in #if block.
13987
13988 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
13989
13990 PR middle-end/67619
13991 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
13992 the address to a register.
13993
13994 2015-09-18 Jeff Law <law@redhat.com>
13995
13996 PR tree-optimization/47679
13997 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
13998 * tree-ssa-dom.c: Remove unnecessary header includes.
13999 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
14000 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
14001 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
14002 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
14003 (pass_phi_only_cprop::execute): Likewise.
14004 (make_pass_phi_only_cprop): Likewise.
14005 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
14006 uses of file scoped statics by passing the required objects
14007 as parameters wherever needed.
14008
14009 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
14010 David Edelsohn <dje.gcc@gmail.com>
14011
14012 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
14013 EH_FRAME_THROUGH_COLLECT2.
14014 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
14015 DW_EH_PE_datarel.
14016 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
14017 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
14018 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
14019 * except.c (switch_to_exception_section): Use a read-only section
14020 even if EH_FRAME_SECTION_NAME is undefined.
14021 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
14022 * collect2.c (write_c_file_stat): Provide dbase on AIX.
14023 (scan_prog_file): Don't export __dso_handle nor
14024 __gcc_unwind_dbase.
14025 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14026 (EH_TABLES_CAN_BE_READ_ONLY): Define.
14027 (ASM_OUTPUT_DWARF_PCREL): Define.
14028 (ASM_OUTPUT_DWARF_DATAREL): Define.
14029 (EH_FRAME_THROUGH_COLLECT2): Define.
14030 (EH_FRAME_IN_DATA_SECTION): Delete.
14031 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
14032 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
14033 Declare.
14034 (rs6000_asm_output_dwarf_datarel): Declare.
14035 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
14036 (rs6000_aix_asm_output_dwarf_datarel): New.
14037 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
14038 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
14039 (EH_FRAME_THROUGH_COLLECT2): Define.
14040 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
14041 (EH_FRAME_THROUGH_COLLECT2): Define.
14042 (EH_TABLES_CAN_BE_READ_ONLY): Define.
14043 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
14044 (EH_FRAME_THROUGH_COLLECT2): New.
14045 (ASM_OUTPUT_DWARF_DATAREL): New.
14046 * doc/tm.texi: Regenerate.
14047
14048 2015-09-18 Richard Biener <rguenther@suse.de>
14049
14050 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
14051 we're in early phase.
14052 (schedule_generic_params_dies_gen): Likewise.
14053 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
14054 work as possible, retaining unhandled cases.
14055 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
14056 clear out generic_type_instances at the end.
14057 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
14058 (dwarf2out_early_finish): ... here. Do most of
14059 gen_remaining_tmpl_value_param_die_attribute here.
14060
14061 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
14062
14063 PR tree-optimization/67283
14064 * tree-sra.c (type_consists_of_records_p): Rename to...
14065 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14066 (completely_scalarize_record): Rename to...
14067 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
14068 (scalarize_elem): New.
14069 (analyze_all_variable_accesses): Follow renamings.
14070
14071 2015-09-18 Richard Biener <rguenther@suse.de>
14072
14073 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
14074 in early-dwarf.
14075
14076 2015-09-18 Richard Biener <rguenther@suse.de>
14077
14078 PR tree-optimization/66142
14079 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
14080 treat MEM[&x] and x the same.
14081 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
14082 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
14083 when we simplified sth.
14084 (vn_reference_maybe_forwprop_address): Likewise.
14085 (valueize_refs_1): When we simplified through
14086 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
14087 set valueized_anything to true.
14088 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
14089 one ref kills the other instead of just a offset-based test.
14090 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
14091 for the operand_equal_p test to compare bases and also compare
14092 sizes.
14093
14094 2015-09-17 Christian Bruel <christian.bruel@st.com>
14095
14096 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
14097
14098 2015-09-17 Richard Henderson <rth@redhat.com>
14099
14100 PR libstdc++/65913
14101 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
14102 pointers that encode the alignment of the object.
14103
14104 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
14105
14106 PR rtl-optimization/66790
14107 * df-problems.c (LIVE): Amend documentation.
14108
14109 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
14110
14111 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
14112 and optabs-tree.o.
14113 (GTFILES): Replace optabs.c with optabs-libfunc.c.
14114 * genopinit.c (main): Add an include guard to insn-opinit.h.
14115 Protect the rtx_code parts with NUM_RTX_CODE.
14116 * optabs.h: Split parts out to...
14117 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
14118 * optabs.c: Split parts out to...
14119 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
14120 * cilk-common.c: Include optabs-query.h rather than optabs.h.
14121 * fold-const.c: Likewise.
14122 * target-globals.c: Likewise.
14123 * tree-if-conv.c: Likewise.
14124 * tree-ssa-forwprop.c: Likewise.
14125 * tree-ssa-loop-prefetch.c: Likewise.
14126 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
14127 Remove unncessary include files.
14128 * tree-ssa-phiopt.c: Likewise.
14129 * tree-ssa-reassoc.c: Likewise.
14130 * tree-switch-conversion.c: Likewise.
14131 * tree-vect-data-refs.c: Likewise.
14132 * tree-vect-generic.c: Likewise.
14133 * tree-vect-loop.c: Likewise.
14134 * tree-vect-patterns.c: Likewise.
14135 * tree-vect-slp.c: Likewise.
14136 * tree-vect-stmts.c: Likewise.
14137 * tree-vrp.c: Likewise.
14138 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
14139 rather than optabs.h.
14140 * expr.c: Include optabs-tree.h.
14141 * function.c: Likewise.
14142
14143 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
14144
14145 PR middle-end/65958
14146 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
14147 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
14148 * config/arm/arm.c: Include common/common-target.h.
14149 (use_return_insn): Return 0 if the static chain register was saved
14150 above a non-APCS frame.
14151 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
14152 (struct scratch_reg): New.
14153 (get_scratch_register_on_entry): New function.
14154 (release_scratch_register_on_entry): Likewise.
14155 (arm_emit_probe_stack_range): Likewise.
14156 (output_probe_stack_range): Likewise.
14157 (arm_expand_prologue): Factor out code dealing with the IP register
14158 for nested function and adjust it for stack checking.
14159 Invoke arm_emit_probe_stack_range if static builtin stack checking
14160 is enabled.
14161 (thumb1_expand_prologue): Sorry out if static builtin stack checking
14162 is enabled.
14163 (arm_expand_epilogue): Add the saved static chain register, if any, to
14164 the amount of pre-pushed registers to pop.
14165 (arm_frame_pointer_required): Return true if static stack checking is
14166 enabled and we want to catch the exception with the EABI unwinder.
14167 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
14168 (UNSPEC_PROBE_STACK_RANGE): Likewise.
14169 * config/arm/arm.md (probe_stack): New insn.
14170 (probe_stack_range): Likewise.
14171
14172 2015-09-17 Richard Biener <rguenther@suse.de>
14173
14174 * genmatch.c (parser::parse_expr): Improve error message
14175 for mis-placed flags.
14176
14177 2015-09-17 Richard Biener <rguenther@suse.de>
14178
14179 * passes.c (rest_of_decl_compilation): Always call early_global_decl
14180 debug hook when we created a varpool node.
14181 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
14182 dwarf2out_early_global_decl, when not just add location or
14183 value attributes to existing DIEs.
14184
14185 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
14186
14187 * config/aarch64/aarch64.md (copysigndf3): New.
14188 (copysignsf3): Likewise.
14189
14190 2015-09-17 David S. Miller <davem@davemloft.net>
14191
14192 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
14193 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
14194 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
14195 (HARD_REGNO_CALLER_SAVE_MODE): Define.
14196 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
14197 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
14198 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
14199 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
14200 provide when flag_pic.
14201
14202 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
14203
14204 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
14205 object_allocator change.
14206
14207 2015-09-17 Bin Cheng <bin.cheng@arm.com>
14208
14209 PR tree-optimization/66388
14210 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
14211 (dump_iv): Dump no_overflow information.
14212 (alloc_iv): Initialize new field for struct iv.
14213 (mark_bivs): Count number of no_overflow bivs.
14214 (find_deriving_biv_for_expr, record_biv_for_address_use): New
14215 functions.
14216 (idx_find_step): Call new functions above.
14217 (add_candidate_1, add_candidate): New paramter.
14218 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
14219 (get_computation_aff): Simplify convertion of cand for BIV.
14220 (get_computation_cost_at): Step cand's base if necessary.
14221
14222 2015-09-17 Bin Cheng <bin.cheng@arm.com>
14223
14224 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
14225 parameter.
14226 (tree_simplify_using_condition): Ditto.
14227 (simplify_using_initial_conditions): Ditto.
14228 (loop_exits_before_overflow): Pass new argument to function
14229 simplify_using_initial_conditions. Remove case for type conversions
14230 simplification.
14231 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
14232 parameter.
14233 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
14234 in iv base using loop initial conditions.
14235
14236 2015-09-16 Jeff Law <law@redhat.com>
14237
14238 PR tree-optimization/47679
14239 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
14240 (free_all_edge_infos): Use it.
14241 (allocate_edge_info): Free preexisting edge info data.
14242 (pass_dominator::execute): Set up initial edge info structures.
14243 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
14244 thread_across_edge.
14245 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
14246 If non-null, then push/pop markers appropriately.
14247 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
14248 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
14249 thread-across_edge.
14250
14251 2015-09-16 James Bowman <james.bowman@ftdichip.com>
14252
14253 * config/ft32/ft32.c: Fix the memory address space predicate.
14254
14255 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
14256
14257 PR target/67573
14258 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
14259 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
14260
14261 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
14262
14263 * toplev.h (check_global_declaration): Remove declaration.
14264 * toplev.c (check_global_declaration): Move to ...
14265 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
14266 (analyze_functions): Update call.
14267
14268 2015-09-16 David S. Miller <davem@davemloft.net>
14269
14270 * lra-constraints.c (simplify_operand_subreg): Do not assume that
14271 lowpart of a SUBREG has offset zero.
14272
14273 2015-09-16 Jeff Law <law@redhat.com>
14274
14275 PR tree-optimization/47679
14276 * tree-ssa-dom.c (enum expr_kind): Moved from here to
14277 tree-ssa-scopedtables.h.
14278 (struct hashable_expr, class expr_hash_elt): Likewise.
14279 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
14280 Move associated methods into tree-ssa-scopedtables.c.
14281 (avail_expr_hash, initialize_expr_from_cond): Similarly.
14282 (hashable_expr_equal_p, add_expr_commutative): Likewise.
14283 (add_hashable_expr): Likewise.
14284 (record_cond): Delete element directly.
14285 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
14286 private copy ctor and assignment operator methods.
14287 (expr_elt_hasher): Inline trivial methods.
14288 (initialize_expr_from_cond): Prototype.
14289 * tree-ssa-scopedtables.c: Add necessary includes, functions and
14290 methods that were previously in tree-ssa-dom.c. Improve various
14291 comments.
14292
14293 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
14294
14295 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
14296
14297 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
14298
14299 PR bootstrap/67587
14300 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
14301 fixup_partitions.
14302
14303 2015-09-16 Richard Biener <rguenther@suse.de>
14304
14305 PR middle-end/67253
14306 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
14307 location of possibly shared trees.
14308
14309 2015-09-16 Richard Biener <rguenther@suse.de>
14310
14311 PR middle-end/67271
14312 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
14313
14314 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
14315
14316 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
14317 offset and size computations instead of HOST_WIDE_INT.
14318
14319 2015-09-16 Richard Biener <rguenther@suse.de>
14320
14321 PR middle-end/67442
14322 * fold-const.c (extract_muldiv_1): Properly extend multiplication
14323 result before builting a tree via wide_int_to_tree.
14324
14325 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
14326
14327 * Makefile.in: Add memory-block.cc
14328 (pool_allocator::initialize): Use fixed block size.
14329 (pool_allocator::release): Use memory_block_pool.
14330 (pool_allocator::allocate): Likewise.
14331 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
14332 object pools.
14333 * cfg.c (initialize_original_copy_tables): Likewise.
14334 * cselib.c (elt_list_pool, elt_loc_list_pool,
14335 cselib_val_pool): Likewise.
14336 * df-problems.c (df_chain_alloc): Likewise.
14337 * df-scan.c (df_scan_alloc): Likewise.
14338 * dse.c (cse_store_info_pool, rtx_store_info_pool,
14339 read_info_type_pool, insn_info_type_pool, bb_info_pool,
14340 group_info_pool, deferred_change_pool): Likewise.
14341 * et-forest.c (et_nodes, et_occurrences): Likewise.
14342 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
14343 ipcp_agg_lattice_pool): Likewise.
14344 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
14345 * ipa-profile.c (histogram_pool): Likewise.
14346 * ipa-prop.c (ipa_refdesc_pool): Likewise.
14347 * ira-build.c (live_range_pool, allocno_pool, object_pool,
14348 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
14349 * ira-color.c (update_cost_record_pool): Likewise.
14350 * lra-lives.c (lra_live_range_pool): Likewise.
14351 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
14352 * memory-block.cc: New file.
14353 * memory-block.h: New file.
14354 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
14355 * sched-deps.c (sched_deps_init): Likewise.
14356 * sel-sched-ir.c (sched_lists_pool): Likewise.
14357 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
14358 * tree-sra.c (access_pool): Likewise.
14359 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
14360 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
14361 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
14362 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
14363 * tree-ssa-strlen.c (strinfo_pool): Likewise.
14364 * tree-ssa-structalias.c (variable_info_pool): Likewise.
14365 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
14366 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
14367
14368 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
14369
14370 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
14371 definition.
14372 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
14373 call0 ABI.
14374
14375 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
14376
14377 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
14378 to pass TLS call argument, according to current ABI.
14379 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
14380 callx0 for TLS call, according to current ABI.
14381
14382 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
14383
14384 * tree-eh.c (lower_try_finally_dup_block): Clear location information
14385 on stack restore statements.
14386 (decide_copy_try_finally): Do not consider a stack restore statement as
14387 coming from sources.
14388
14389 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
14390
14391 * config/alpha/alpha.c (alpha_expand_block_clear): Use
14392 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
14393
14394 2015-09-15 Jeff Law <law@redhat.com>
14395
14396 PR tree-optimization/47679
14397 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
14398 methods and private members.
14399 (avail_exprs_stack): Similarly. Change type of global
14400 from a pair of expr_hash_elt_t to the new class.
14401 (expr_elt_hasher::hash): Corresponding changes.
14402 (expr_elt_hasher::equal): Similarly.
14403 (avail_expr_hash): Similarly.
14404 (pass_dominator::execute): Similarly.
14405 (dom_opt_dom_walker::thread_across_edge): Similarly.
14406 (record_cond): Similarly.
14407 (dom_opt_dom_walker::before_dom_children): Similarly.
14408 (dom_opt_dom_walker::after_dom_children): Similarly.
14409 (lookup_avail_expr): Likewise.
14410 (initialize_hash_element): Now a expr_hash_elt constructor.
14411 (initialize_hash_element_from_expr): Similarly.
14412 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
14413 (free_expr_hash_elt): Call dtor for the element.
14414 (remove_local_expressions_from_table): Now the "pop_to_marker"
14415 method in the available_exprs_stack class.
14416 (avail_expr_stack::record_expr): Method factored out.
14417 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
14418 Fix formatting.
14419 (hashable_expr_equal_p): Fix formatting.
14420
14421 2015-09-15 David Malcolm <dmalcolm@redhat.com>
14422
14423 * input.h (location_get_source_line): Drop "expanded_location"
14424 param in favor of a file and line number.
14425 * input.c (location_get_source_line): Likewise.
14426 (dump_location_info): Update for change in signature of
14427 location_get_source_line.
14428 * diagnostic.c (diagnostic_print_caret_line): Likewise.
14429
14430 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
14431
14432 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
14433 Bump to 4KB for SJLJ exceptions.
14434 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
14435 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
14436 * doc/tm.texi: Regenerate.
14437
14438 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14439
14440 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
14441 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
14442 Update prototype.
14443
14444 2015-09-15 Richard Biener <rguenther@suse.de>
14445
14446 PR tree-optimization/67470
14447 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
14448 structure for PHI hoisting by inserting a forwarder block
14449 if appropriate.
14450
14451 2015-09-15 Christian Bruel <christian.bruel@st.com>
14452
14453 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
14454 (arm_option_print): New function.
14455
14456 2015-09-15 Christian Bruel <christian.bruel@st.com>
14457
14458 PR target/52144
14459 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
14460 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
14461 Remove flags parameter.
14462 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
14463 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
14464 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
14465 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
14466 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
14467 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
14468 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
14469 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
14470
14471 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14472
14473 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
14474
14475 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
14476 AARCH64_VALID_SIMD_DREG_MODE.
14477
14478 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14479
14480 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
14481 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
14482 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
14483 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
14484 aarch64_ld4_lane<mode>): Combine together, making...
14485 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
14486 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
14487 aarch64_st4_lane<mode>): Combine together, making...
14488 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
14489 * config/aarch64/iterators.md (nregs): Add comment.
14490
14491 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14492
14493 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
14494 Change operand mode from <V_TWO_ELEM> to BLK.
14495 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
14496 (aarch64_vec_store_lanesoi_lane<mode): Likewise
14497 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
14498 (aarch64_ld2_lane<mode>): Likewise.
14499 (aarch64_st2_lane<VQ:mode>): Likewise.
14500 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
14501
14502 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14503
14504 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
14505 Change operand mode from <V_FOUR_ELEM> to BLK.
14506 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
14507 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
14508 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
14509 (aarch64_ld4_lane<mode>): Likewise.
14510 (aarch64_st4_lane<mode>): Likewise.
14511 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
14512
14513 2015-09-15 Richard Biener <rguenther@suse.de>
14514
14515 PR middle-end/67563
14516 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
14517 transfer EH info from old to new stmt.
14518 (replace_call_with_value): Likewise.
14519 (replace_call_with_call_and_fold): Likewise.
14520 (gimple_fold_builtin_memory_op): Likewise.
14521 (gimple_fold_builtin_memset): Likewise.
14522 (gimple_fold_builtin_stpcpy): Likewise.
14523 (gimple_fold_call): Likewise.
14524
14525 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14526
14527 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
14528 comment.
14529 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
14530 (aarch64_simd_intEI_type_node): Likewise.
14531 (aarch64_simd_builtin_std_type): Remove EImode case.
14532 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
14533 * config/aarch64/aarch64-modes.def: Remove EImode.
14534
14535 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14536
14537 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
14538 Change operand mode from <V_THREE_ELEM> to BLK.
14539 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
14540 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
14541 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
14542 (aarch64_ld3_lane<mode>): Likewise.
14543 (aarch64_st3_lane<mode>): Likewise.
14544 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
14545
14546 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14547
14548 * config/aarch64/aarch64-simd.md
14549 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
14550 Change all TImode operands to BLKmode.
14551 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
14552 Change all EImode operands to BLKmode.
14553 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
14554 Change all OImode operands to BLKmode.
14555
14556 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
14557 and call set_mem_size.
14558 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
14559
14560 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
14561
14562 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14563
14564 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
14565 to...
14566 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
14567
14568 (vec_store_lanesci_lane<mode>): Rename to...
14569 (aarch64_vec_store_lanesci_lane<mode>): ...this.
14570
14571 (vec_store_lanesxi_lane<mode>): Rename to...
14572 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
14573
14574 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
14575 aarch64_st4_lane<mode>): Follow renaming.
14576
14577 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14578
14579 * config/s390/s390.c (s390_const_operand_ok): Add missing
14580 brackets.
14581
14582 2015-09-15 Richard Biener <rguenther@suse.de>
14583
14584 PR lto/67568
14585 * lto-streamer.h (lto_location_cache::current_sysp): Properly
14586 initialize.
14587 * lto-streamer-out.c (clear_line_info): Likewise.
14588
14589 2015-09-15 Richard Biener <rguenther@suse.de>
14590
14591 * doc/match-and-simplify.texi: Fix wording.
14592
14593 2015-09-15 Bin Cheng <bin.cheng@arm.com>
14594
14595 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
14596 unnecessary type conversion in op1.
14597
14598 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
14599
14600 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
14601 (dup_block_and_redirect): Delete function.
14602 (can_dup_for_shrink_wrapping): New function.
14603 (fix_fake_fallthrough_edge): New function.
14604 (try_shrink_wrapping): Rewrite function.
14605 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
14606
14607 2015-09-14 Rich Felker <dalias@libc.org>
14608
14609 * configure.ac: Change target pattern for sh TLS support
14610 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
14611 * configure: Regenerate.
14612
14613 2015-09-14 Jeff Law <law@redhat.com>
14614
14615 PR tree-optimization/47679
14616 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
14617 type rather than void *.
14618
14619 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
14620
14621 PR fortran/67460
14622 * diagnostic.c (diagnostic_initialize): Do not set
14623 some_warnings_are_errors.
14624 (diagnostic_finish): Use DK_WERROR count instead.
14625 (diagnostic_report_diagnostic): Do not set
14626 some_warnings_are_errors.
14627 * diagnostic.h (struct diagnostic_context): Remove
14628 some_warnings_are_errors.
14629
14630 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
14631
14632 * config/sparc/predicates.md (const_all_ones_operand): Use
14633 CONSTM1_RTX to simplify definition.
14634
14635 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
14636
14637 PR target/67061
14638 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
14639 Handle call insns.
14640
14641 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
14642
14643 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
14644 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
14645 OPT_fshow_column to handled saved option cases.
14646 (append_compiler_options): Do not skip the above added options.
14647
14648 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14649
14650 PR target/63304
14651 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
14652 nopcrelative_literal_loads.
14653 (aarch64_classify_address): Likewise.
14654 (aarch64_constant_pool_reload_icode): Define.
14655 (aarch64_secondary_reload): Handle secondary reloads for
14656 literal pools.
14657 (aarch64_override_options): Handle nopcrelative_literal_loads.
14658 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
14659 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
14660 Define.
14661 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
14662 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
14663 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
14664 predicate.
14665 * doc/invoke.texi (mpc-relative-literal-loads): Document.
14666
14667 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
14668
14669 PR middle-end/67401
14670 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
14671 sync_compare_and_swap_optab libcall to target_oval.
14672
14673 2015-09-14 Marek Polacek <polacek@redhat.com>
14674
14675 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
14676 value.
14677 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
14678
14679 2015-09-11 Mark Wielaard <mjw@redhat.com>
14680
14681 PR c/28901
14682 * toplev.c (check_global_declaration): Check and use
14683 warn_unused_const_variable.
14684 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
14685 (-Wunused-variable): Remove non-constant. For C implies
14686 -Wunused-const-variable.
14687 (-Wunused-const-variable): New.
14688
14689 2015-09-14 Richard Biener <rguenther@suse.de>
14690
14691 * doc/match-and-simplify.texi: Update for changed syntax
14692 of inner ifs and the new switch expression.
14693
14694 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
14695
14696 * config/i386/haswell.md: New file describing Haswell pipeline.
14697 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
14698 haswell-like processors.
14699 (ix86_reassociation_width): Increase reassociation width for 64-bit
14700 Haswell processor family.
14701 * config/i386/i386.md: Introduce haswell cpu and include new md file.
14702
14703 2015-09-14 Richard Biener <rguenther@suse.de>
14704
14705 * doc/match-and-simplify.texi: Fixup some formatting issues
14706 and document the 's' flag.
14707
14708 2015-09-13 Olivier Hainque <hainque@adacore.com>
14709 Eric Botcazou <ebotcazou@adacore.com>
14710
14711 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
14712 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
14713 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
14714 (TARGET_CPU_gr5): Likewise.
14715 (TARGET_CPU_gr6): Likewise.
14716 (MULTILIB_DEFAULTS): Likewise.
14717 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
14718 for mcpu=gr5 and mcpu=gr6.
14719 (MULTILIB_DIRNAMES): Adjust accordingly.
14720
14721 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14722
14723 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
14724 (mem_ref_p): Likewise.
14725 (outermost_indep_loop): Adjust.
14726 (mem_ref_in_stmt): Likewise.
14727 (determine_max_movement): Likewise.
14728 (mem_ref_alloc): Likewise.
14729 (record_mem_ref_loc): Likewise.
14730 (set_ref_stored_in_loop): Likewise.
14731 (mark_ref_stored): Likewise.
14732 (gather_mem_refs_stmt): Likewise.
14733 (mem_refs_may_alias_p): Likewise.
14734 (for_all_locs_in_loop): Likewise.
14735 (struct rewrite_mem_ref_loc): Likewise.
14736 (rewrite_mem_refs): Likewise.
14737 (struct first_mem_ref_loc_1): Likewise.
14738 (first_mem_ref_loc): Likewise.
14739 (struct sm_set_flag_if_changed): Likewise.
14740 (execute_sm_if_changed_flag_set): Likewise.
14741 (execute_sm): Likewise.
14742 (hoist_memory_references):
14743 (struct ref_always_accessed): Likewise.
14744 (ref_always_accessed_p): Likewise.
14745 (refs_independent_p): Likewise.
14746 (record_dep_loop): Likewise.
14747 (ref_indep_loop_p_1): Likewise.
14748 (ref_indep_loop_p_2): Likewise.
14749 (ref_indep_loop_p): Likewise.
14750 (can_sm_ref_p): Likewise.
14751 (find_refs_for_sm): Likewise.
14752 (tree_ssa_lim_finalize): Likewise.
14753
14754 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14755
14756 * dwarf2out.c (dw_attr_ref): Remove typedef.
14757 (dw_line_info_ref): Likewise.
14758 (pubname_ref): Likewise.
14759 (dw_ranges_ref): Likewise.
14760 (dw_ranges_by_label_ref): Likewise.
14761 (comdat_type_node_ref): Likewise.
14762 (get_AT): Adjust.
14763 (get_AT_low_pc): Likewise.
14764 (get_AT_hi_pc): Likewise.
14765 (get_AT_string): Likewise.
14766 (get_AT_flag): Likewise.
14767 (get_AT_unsigned): Likewise.
14768 (get_AT_ref): Likewise.
14769 (get_AT_file): Likewise.
14770 (remove_AT): Likewise.
14771 (print_die): Likewise.
14772 (check_die): Likewise.
14773 (die_checksum): Likewise.
14774 (attr_checksum_ordered): Likewise.
14775 (struct checksum_attributes): Likewise.
14776 (collect_checksum_attributes): Likewise.
14777 (die_checksum_ordered): Likewise.
14778 (same_die_p): Likewise.
14779 (is_declaration_die): Likewise.
14780 (clone_die): Likewise.
14781 (clone_as_declaration): Likewise.
14782 (copy_declaration_context): Likewise.
14783 (break_out_comdat_types): Likewise.
14784 (copy_decls_walk): Likewise.
14785 (output_location_lists): Likewise.
14786 (external_ref_hasher::hash): Likewise.
14787 (optimize_external_refs_1): Likewise.
14788 (build_abbrev_table): Likewise.
14789 (size_of_die): Likewise.
14790 (unmark_all_dies): Likewise.
14791 (size_of_pubnames): Likewise.
14792 (output_die_abbrevs): Likewise.
14793 (output_die): Likewise.
14794 (output_pubnames): Likewise.
14795 (add_ranges_num): Likewise.
14796 (add_ranges_by_labels): Likewise.
14797 (add_high_low_attributes): Likewise.
14798 (gen_producer_string): Likewise.
14799 (dwarf2out_set_name): Likewise.
14800 (new_line_info_table): Likewise.
14801 (prune_unused_types_walk_attribs): Likewise.
14802 (prune_unused_types_update_strings): Likewise.
14803 (prune_unused_types): Likewise.
14804 (resolve_addr): Likewise.
14805 (optimize_location_lists_1): Likewise.
14806 (index_location_lists): Likewise.
14807 (dwarf2out_finish): Likewise.
14808
14809 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14810
14811 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
14812
14813 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14814
14815 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
14816 (dump_asserts_for): Adjust.
14817 (register_new_assert_for): Likewise.
14818 (process_assert_insertions): Likewise.
14819 (insert_range_assertions): Likewise.
14820
14821 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14822
14823 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
14824 and remove typedef.
14825 (new_temp_expr_table): Adjust.
14826 (free_temp_expr_table): Likewise.
14827 (version_to_be_replaced_p): Likewise.
14828 (make_dependent_on_partition): Likewise.
14829 (add_to_partition_kill_list): Likewise.
14830 (remove_from_partition_kill_list): Likewise.
14831 (add_dependence): Likewise.
14832 (finished_with_expr): Likewise.
14833 (process_replaceable): Likewise.
14834 (kill_expr): Likewise.
14835 (kill_virtual_exprs): Likewise.
14836 (mark_replaceable): Likewise.
14837 (find_replaceable_in_bb): Likewise.
14838 (find_replaceable_exprs): Likewise.
14839 (debug_ter): Likewise.
14840
14841 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14842
14843 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
14844 (struct btr_user): Rename from btr_user_s.
14845 (struct btr_def): Rename from btr_def_s.
14846 (find_btr_def_group): Adjust.
14847 (add_btr_def): Likewise.
14848 (new_btr_user): Likewise.
14849 (note_other_use_this_block): Likewise.
14850 (compute_defs_uses_and_gen): Likewise.
14851 (link_btr_uses): Likewise.
14852 (build_btr_def_use_webs): Likewise.
14853 (block_at_edge_of_live_range_p): Likewise.
14854 (btr_def_live_range): Likewise.
14855 (combine_btr_defs): Likewise.
14856 (move_btr_def): Likewise.
14857 (migrate_btr_def): Likewise.
14858 (migrate_btr_defs): Likewise.
14859
14860 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14861
14862 * var-tracking.c (shared_hash_def): Rename to shared_hash.
14863 (shared_hash): Remove typedef.
14864 (struct dataflow_set): Adjust.
14865 (shared_hash_unshare): Likewise.
14866 (dataflow_set_merge): Likewise.
14867 (vt_initialize): Likewise.
14868 (vt_finalize): Likewise.
14869
14870 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14871
14872 * var-tracking.c (struct location_chain): Rename from
14873 location_chain_def.
14874 (struct variable_part): Adjust.
14875 (variable_htab_free): Likewise.
14876 (unshare_variable): Likewise.
14877 (get_init_value): Likewise.
14878 (get_addr_from_local_cache): Likewise.
14879 (drop_overlapping_mem_locs): Likewise.
14880 (val_reset): Likewise.
14881 (struct variable_union_info): Likewise.
14882 (variable_union): Likewise.
14883 (find_loc_in_1pdv): Likewise.
14884 (insert_into_intersection): Likewise.
14885 (intersect_loc_chains): Likewise.
14886 (canonicalize_loc_order_check): Likewise.
14887 (canonicalize_values_mark): Likewise.
14888 (canonicalize_values_star): Likewise.
14889 (canonicalize_vars_star): Likewise.
14890 (variable_merge_over_cur): Likewise.
14891 (remove_duplicate_values): Likewise.
14892 (variable_post_merge_new_vals): Likewise.
14893 (variable_post_merge_perm_vals): Likewise.
14894 (find_mem_expr_in_1pdv): Likewise.
14895 (dataflow_set_preserve_mem_locs): Likewise.
14896 (dataflow_set_remove_mem_locs): Likewise.
14897 (variable_part_different_p): Likewise.
14898 (onepart_variable_different_p): Likewise.
14899 (find_src_set_src): Likewise.
14900 (dump_var): Likewise.
14901 (set_slot_part): Likewise.
14902 (clobber_slot_part): Likewise.
14903 (delete_slot_part): Likewise.
14904 (vt_expand_var_loc_chain): Likewise.
14905 (emit_note_insn_var_location): Likewise.
14906 (vt_finalize): Likewise.
14907
14908 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14909
14910 * dse.c (store_info_t): Remove typedef.
14911 (group_info_t): Likewise.
14912 (const_group_info_t): Likewise.
14913 (deferred_change_t): Likewise.
14914 (get_group_info): Adjust.
14915 (free_store_info): Likewise.
14916 (canon_address): Likewise.
14917 (clear_rhs_from_active_local_stores): Likewise.
14918 (record_store): Likewise.
14919 (replace_read): Likewise.
14920 (check_mem_read_rtx): Likewise.
14921 (scan_insn): Likewise.
14922 (remove_useless_values): Likewise.
14923 (dse_step1): Likewise.
14924 (dse_step2_init): Likewise.
14925 (dse_step2_nospill): Likewise.
14926 (scan_stores_nospill): Likewise.
14927 (scan_reads_nospill): Likewise.
14928 (dse_step3_exit_block_scan): Likewise.
14929 (dse_step3): Likewise.
14930 (dse_step5_nospill): Likewise.
14931 (dse_step6): Likewise.
14932
14933 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14934
14935 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
14936 (alias_set_entry): Remove typedef.
14937 (alias_set_subset_of): Adjust.
14938 (alias_sets_conflict_p): Likewise.
14939 (init_alias_set_entry): Likewise.
14940 (get_alias_set): Likewise.
14941 (new_alias_set): Likewise.
14942 (record_alias_subset): Likewise.
14943
14944 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
14945
14946 * doc/install.texi (Downloading the source): Mark up
14947 contrib/download_prerequisites properly and drop leading "./".
14948
14949 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14950
14951 * config/arc/arc.h: Remove define of STRUCT_VALUE.
14952 * config/lm32/lm32.h: Likewise.
14953 * config/mep/mep.h: Likewise.
14954 * config/visium/visium.h: Likewise.
14955 * system.h: Poison STRUCT_VALUE macro.
14956
14957 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
14958
14959 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
14960 CONSTANT_P operands.
14961
14962 2015-09-11 David S. Miller <davem@davemloft.net>
14963
14964 * config/sparc/constraints.md: Make "U" constraint a real register
14965 constraint.
14966 * config/sparc/sparc.c (TARGET_LRA_P): Define.
14967 (D_MODES, DF_MODES): Add missing cast.
14968 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
14969 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
14970 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
14971 cost to 8.
14972 * config/sparc/sparc.h (PROMOTE_MODE): Define.
14973 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
14974 provide these insn when flag_pic.
14975
14976 2015-09-11 Jeff Law <law@redhat.com>
14977
14978 PR tree-optimization/47679
14979 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
14980 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
14981 member with m_. Update inline member functions as necessary. Add
14982 toplevel comment.
14983 * tree-ssa-scopedtables.c: Update const_and_copies's member
14984 functions to use m_ prefix to access the stack.
14985
14986 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
14987
14988 * graphite-optimize-isl.c (disable_tiling): Remove.
14989 (get_schedule_for_band): Do not use disable_tiling.
14990 (get_prevector_map): Delete function.
14991 (enable_polly_vector): Remove.
14992 (get_schedule_for_band_list): Remove dead code.
14993
14994 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
14995
14996 * graphite-optimize-isl.c (get_tile_map): Refactor.
14997 (get_schedule_for_band): Same.
14998 (getScheduleForBand): Same.
14999 (get_prevector_map): Same.
15000 (get_schedule_for_band_list): Same.
15001 (get_schedule_map): Same.
15002 (get_single_map): Same.
15003 (apply_schedule_map_to_scop): Same.
15004 (optimize_isl): Same.
15005
15006 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15007
15008 PR target/63304
15009 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
15010 (movtf): Delete.
15011 * config/aarch64/iterators.md (GPF_TF_F16): New.
15012 (GPF_F16): Delete.
15013
15014 2015-09-10 Nathan Sidwell <nathan@acm.org>
15015
15016 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
15017 (nvptx_reorg): Adjust comments.
15018
15019 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
15020
15021 PR bootstrap/67363
15022 * configure.ac: Check if setenv and unsetenv are declared.
15023 * configure: Rebuild.
15024 * config.in: Rebuild.
15025 * system.h: Declare setenv and unsetenv if not declared.
15026
15027 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15028
15029 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
15030 commentary to simplify permute mask adjustment equation.
15031 (special_handling_values): Add SH_VPERM.
15032 (const_load_sequence_p): New function.
15033 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
15034 the mask loaded from the constant pool.
15035 (adjust_vperm): New function.
15036 (handle_special_swappables): Call adjust_vperm.
15037 (dump_swap_insn_table): Handle SH_VPERM.
15038
15039 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
15040
15041 * shrink-wrap.c (requires_stack_frame_p): Remove static.
15042 * shrink-wrap.h (requires_stack_frame_p): Put back.
15043
15044 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
15045
15046 * reload1.c (elimination_costs_in_insn): Locally turn
15047 -Wmaybe-uninitialized into a warning.
15048
15049 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
15050
15051 * shrink-wrap.c (requires_stack_frame_p): Make static.
15052 (prepare_shrink_wrap): Likewise.
15053 (dup_block_and_redirect): Likewise.
15054 * shrink-wrap.h: Remove declarations of those functions.
15055
15056 2015-09-10 Mark Wielaard <mjw@redhat.com>
15057
15058 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
15059
15060 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
15061
15062 PR target/67506
15063 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
15064 missing simplify_gen_subreg.
15065
15066 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15067
15068 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
15069 the vector element is bigger than 64 bit.
15070
15071 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15072
15073 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
15074 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
15075
15076 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15077
15078 * config/s390/s390.c: Add V1TImode to constant pool modes.
15079
15080 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15081
15082 PR target/67439
15083 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
15084 predicate. Set predicable_short_it attr to "no".
15085
15086 2015-09-10 Jiong Wang <jiong.wang@arm.com>
15087
15088 PR rtl-optimization/67421
15089 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
15090 left wide shift tranformation.
15091
15092 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
15093
15094 * common/config/arc/arc-common.c: Remove references to A5.
15095 * config/arc/arc-opts.h: Likewise.
15096 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
15097 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
15098 * config/arc/t-arc-newlib: Likewise.
15099
15100 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
15101
15102 * config/arc/arc.md (length): Fix attribute length for conditional
15103 executed instructions with long immediate.
15104
15105 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15106
15107 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
15108 type for second alternative.
15109
15110 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
15111
15112 * doc/invoke.texi (Downloading GCC): Mention
15113 contrib/download_prerequisites script.
15114
15115 2015-09-10 Jakub Jelinek <jakub@redhat.com>
15116
15117 PR c++/67523
15118 * gimplify.c (gimplify_omp_for): If inner stmt is not found
15119 for combined loop, assert seen_error () and return GS_ERROR.
15120
15121 PR middle-end/67521
15122 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
15123 if decl is already in outer->variables.
15124
15125 PR middle-end/67517
15126 * gimplify.c (gimplify_scan_omp_clauses): Instead of
15127 asserting that decl is not specified in octx->variables,
15128 break out of the loop if it is.
15129
15130 PR c++/67514
15131 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
15132 iterator is not explicitly determined, but is defined inside
15133 of the combined workshare region, handle it like if it has
15134 DECL_EXPR in OMP_FOR_PRE_BODY.
15135
15136 2015-09-09 Nathan Sidwell <nathan@acm.org>
15137
15138 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
15139 (*cmp<mode>): Add assembler spacing.
15140 (setcc_int<mode>, set_cc_float<mode>): Likewise.
15141 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
15142 level.
15143 (write_func_decl_from_insn): Refactor argument loops & comma emission.
15144 (nvptx_expand_call): Likewise.
15145 (nvptx_output_call_insn): Likewise.
15146 (nvptx_reorg_subreg): Add spacing.
15147
15148 2015-09-09 Marek Polacek <polacek@redhat.com>
15149
15150 PR middle-end/67512
15151 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
15152 for comparisons.
15153
15154 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
15155
15156 PR c++/53184
15157 * doc/invoke.texi ([Wsubobject-linkage]): Document.
15158
15159 2015-09-09 Tom de Vries <tom@codesourcery.com>
15160
15161 * params-list.h: Add missing copyright notice.
15162
15163 2015-09-09 Nathan Sidwell <nathan@acm.org>
15164
15165 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
15166 sel_truesi, not andsi.
15167
15168 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15169
15170 * config/arm/arm.md (*subsi3_compare0): Rename to...
15171 (subsi3_compare0): ... This.
15172 (modsi3): New define_expand.
15173 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
15174 when operand is power of 2.
15175
15176 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15177
15178 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
15179 (*neg<mode>2_compare0): Rename to...
15180 (neg<mode>2_compare0): ... This.
15181 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
15182 Move check for speed inside the if-then-elses. Reflect
15183 CSNEG sequence in MOD by power of 2 case.
15184
15185 2015-09-09 Alan Modra <amodra@gmail.com>
15186
15187 PR target/67378
15188 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
15189 reload replacement for PRE_MODIFY address reg.
15190
15191 2015-09-09 Sebastian Pop <s.pop@samsung.com>
15192
15193 PR tree-optimization/53852
15194 * config.in: Regenerate.
15195 * configure: Regenerate.
15196 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
15197 * graphite-optimize-isl.c (optimize_isl): Stop computation when
15198 PARAM_MAX_ISL_OPERATIONS is reached.
15199 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
15200 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
15201 result equal to isl_stat_ok as the status now can be isl_error_quota.
15202 (subtract_commutative_associative_deps): Same.
15203 (compute_deps): Same.
15204
15205 2015-09-08 Aditya Kumar <hiraditya@msn.com>
15206 Sebastian Pop <s.pop@samsung.com>
15207
15208 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
15209 Return the parameter if it was saved in corresponding
15210 parameter_rename_map of the region.
15211 (copy_def): Copy def from sese region to the newly created region.
15212 (copy_internal_parameters): Copy all the internal parameters defined
15213 within a region to the newly created region.
15214 (graphite_regenerate_ast_isl): Copy parameters to the new region before
15215 translating isl to gimple.
15216 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
15217 the loop-nest does not have any data-references.
15218 (build_graphite_scops): Create a scop only when there is at least one
15219 loop inside it.
15220 (contains_only_close_phi_nodes): Deleted.
15221 (print_graphite_scop_statistics): Deleted
15222 (print_graphite_statistics): Deleted
15223 (limit_scops): Deleted.
15224 (build_scops): Removed call to limit_scops.
15225 * sese.c (new_sese): Construct.
15226 (free_sese): Destruct.
15227 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
15228 added.
15229 (set_rename): Pass sese region so that parameters inside the region can
15230 be added to its parameter_rename_map.
15231 (rename_uses): Pass sese region.
15232 (graphite_copy_stmts_from_block): Do not copy parameters that have been
15233 generated in the header of the scop. For each SSA_NAME in the
15234 parameter_rename_map rename its usage.
15235 (invariant_in_sese_p_rec): Return false if tree t is defined outside
15236 sese region.
15237 (scalar_evolution_in_region): If the tree t is invariant just return t.
15238 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
15239 struct sese to keep track of all the parameters which need renaming.
15240 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
15241 any data-refs.
15242 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
15243
15244 2015-09-08 Tom de Vries <tom@codesourcery.com>
15245
15246 * Makefile.in (generated_files): Add params.list.
15247 (params.list, s-params.list): Add rule.
15248 * params.h (enum compiler_param): Include params-list.h. Move define
15249 DEFPARAM, include params.def and undef DEFPARAM ...
15250 * params-list.h: ... here. New file.
15251
15252 2015-09-08 David Malcolm <dmalcolm@redhat.com>
15253
15254 * pretty-print.h (printer_fn): Fix typo in comment.
15255
15256 2015-09-07 Jeff Law <law@redhat.com>
15257
15258 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
15259
15260 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15261
15262 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
15263 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
15264 (arm_neon_fp16_hw): New.
15265
15266 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15267
15268 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
15269 UNITS_PER_WORD >= 4.
15270
15271 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15272
15273 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
15274 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
15275 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
15276 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
15277 (aarch64_float_extend_lo_v2df): Rename to...
15278 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
15279
15280 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
15281 (float_extend_lo): Add v4sf.
15282
15283 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
15284 * config/aarch64/iterators.md (VQ_HSF): New iterator.
15285 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
15286 (Vwide): New mode_attr.
15287
15288 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15289
15290 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
15291 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
15292 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
15293 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
15294 V4HF and V8HF variants to iterator.
15295
15296 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
15297
15298 * config/aarch64/iterators.md (VDQF_F16): New.
15299 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
15300
15301 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15302
15303 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
15304 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
15305 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
15306 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
15307 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
15308 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
15309 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
15310 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
15311 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
15312 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
15313 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
15314 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
15315 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
15316 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
15317 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
15318 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
15319 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
15320 vld1q_dup_f16): New.
15321
15322 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15323
15324 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
15325 Reparameterize to...
15326 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
15327 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
15328 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
15329
15330 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
15331 v8hf variant.
15332 (float_truncate_lo_): Use BUILTIN_VDF iterator.
15333
15334 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
15335
15336 * config/aarch64/iterators.md (VDF, Vdtype): New.
15337 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
15338
15339 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15340
15341 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
15342 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
15343 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
15344 Add __builtin_aarch64_simd_hf.
15345 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
15346 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
15347 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
15348 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
15349 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
15350 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
15351 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
15352 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
15353 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
15354
15355 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
15356 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
15357 (VDC, Vdbl): Add V4HF.
15358
15359 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15360
15361 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
15362 V4HFmode and V8HFmode.
15363 (aarch64_split_simd_move): Add case for V8HFmode.
15364 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
15365 (aarch64_simd_builtin_std_type): Handle HFmode.
15366 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
15367
15368 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
15369 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
15370 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
15371
15372 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
15373 Float16x8_t.
15374
15375 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
15376 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
15377 New typedefs.
15378 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
15379 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
15380 vst1q_lane_f16): New.
15381 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
15382 (VALLDI_F16, VALL_F16): New.
15383 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
15384 Add cases for V4HF and V8HF.
15385 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
15386
15387 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15388
15389 * config/arm/arm-builtins.c (VAR11, VAR12): New.
15390 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
15391 vld4_dup): Add v4hf variant.
15392 (vget_high, vget_low): Add v8hf variant.
15393 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
15394 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
15395 v4hf and v8hf variants.
15396
15397 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
15398 (VDX): Add V4HF.
15399 (V_DOUBLE): Add case for V4HF.
15400 (VQX): Add V8HF.
15401 (V_HALF): Add case for V8HF.
15402 (VDQX): Add V4HF, V8HF.
15403 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
15404 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
15405
15406 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
15407 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
15408 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
15409 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
15410 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
15411 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
15412 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
15413 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
15414 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
15415
15416 (neon_vcreate, neon_vreinterpretv8qi<mode>,
15417 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
15418 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
15419 Change VDX to VD_RE.
15420
15421 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
15422 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
15423 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
15424
15425 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
15426 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
15427 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
15428 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
15429 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
15430 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
15431 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
15432 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
15433 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
15434
15435 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15436
15437 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
15438 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
15439 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
15440 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
15441 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
15442 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
15443 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
15444 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
15445 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
15446 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
15447 New.
15448
15449 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15450
15451 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
15452
15453 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
15454
15455 * config/arm/arm-builtins.c (v8hf_UP): New.
15456 (arm_init_simd_builtin_types): Initialise Float16x8_t.
15457
15458 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
15459
15460 * config/arm/arm_neon.h (float16x8_t): New typedef.
15461
15462 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15463
15464 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
15465 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
15466 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
15467 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
15468 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
15469 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
15470 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
15471 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
15472 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
15473 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
15474
15475 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
15476
15477 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
15478 non-alphanumeric characters in the symbol name.
15479
15480 2015-09-07 Marek Polacek <polacek@redhat.com>
15481
15482 PR inline-asm/67448
15483 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
15484 a memory input.
15485
15486 2015-09-07 Marek Polacek <polacek@redhat.com>
15487
15488 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
15489
15490 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
15491
15492 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
15493 not warn.
15494
15495 2015-09-04 Jakub Jelinek <jakub@redhat.com>
15496
15497 PR middle-end/67452
15498 * tree-ssa-live.c: Include cfgloop.h.
15499 (remove_unused_locals): Clear loop->simduid if simduid is about
15500 to be removed from cfun->local_decls.
15501
15502 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15503
15504 PR target/65210
15505 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
15506 attribute as well.
15507
15508 2015-09-04 Tom de Vries <tom@codesourcery.com>
15509
15510 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
15511
15512 2015-09-04 Jeff Law <law@redhat.com>
15513
15514 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
15515 unnecessary constructor. It's now trivial and implemented inside...
15516 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
15517 constructor. Add comments to various methods. Remove unused
15518 private fields.
15519 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
15520 * tree-vrp.c (identify_jump_threads): Likewise.
15521 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
15522 indentation issues.
15523 (thread_across_edge): Similarly.
15524 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
15525 arguments in constructor call.
15526
15527 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
15528
15529 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
15530 temp path contains a '-'.
15531
15532 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
15533 Petr Murzin <petr.murzin@intel.com>
15534 Kirill Yukhin <kirill.yukhin@intel.com>
15535
15536 * config/i386/i386-builtin-types.def
15537 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
15538 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
15539 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
15540 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
15541 * config/i386/i386.c
15542 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
15543 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
15544 IX86_BUILTIN_SCATTERALTDIV16SI.
15545 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
15546 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
15547 __builtin_ia32_scatteraltdiv8si.
15548 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
15549 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
15550 IX86_BUILTIN_SCATTERALTDIV16SI.
15551 (ix86_vectorize_builtin_scatter): New.
15552 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
15553 ix86_vectorize_builtin_scatter.
15554
15555 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
15556 Petr Murzin <petr.murzin@intel.com>
15557 Kirill Yukhin <kirill.yukhin@intel.com>
15558
15559 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
15560 * doc/tm.texi: Regenerate.
15561 * target.def: Add scatter builtin.
15562 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
15563 for loads/stores in case of gather/scatter accordingly.
15564 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
15565 STMT_VINFO_GATHER_P(S).
15566 (vect_check_gather): Rename to ...
15567 (vect_check_gather_scatter): this.
15568 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
15569 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
15570 (vect_check_gather_scatter): Use it instead of vect_check_gather.
15571 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
15572 variable and new checkings for it accordingly.
15573 * tree-vect-stmts.c
15574 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
15575 STMT_VINFO_GATHER_P(S).
15576 (vect_check_gather_scatter): Use it instead of vect_check_gather.
15577 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
15578
15579 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
15580
15581 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
15582 define_insn.
15583 (mulv16qi3): New define_expand.
15584
15585 2015-09-03 Martin Sebor <msebor@redhat.com>
15586
15587 PR c/66516
15588 * doc/extend.texi (Other Builtins): Document when the address
15589 of a built-in function can be taken.
15590
15591 2015-09-03 Richard Biener <rguenther@suse.de>
15592
15593 * dwarf2out.c (flush_limbo_die_list): Split out from ...
15594 (dwarf2out_early_finish): ... here.
15595 (dwarf2out_finish): Do not call dwarf2out_early_finish but
15596 flush_limbo_die_list. Assert we have no deferred asm names.
15597
15598 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15599
15600 * optabs.c (expand_binop): Don't create a broadcast vector with a
15601 source element wider than the inner mode.
15602
15603 2015-09-03 Richard Biener <rguenther@suse.de>
15604
15605 * varasm.c (output_constant): Use fold_convert instead of
15606 wide_int_to_tree.
15607
15608 2015-09-03 Tom de Vries <tom@codesourcery.com>
15609
15610 PR tree-optimization/65637
15611 * omp-low.c (expand_omp_for_static_chunk): Handle case that
15612 fin_bb has 2 predecessors.
15613
15614 2015-09-03 Tom de Vries <tom@codesourcery.com>
15615
15616 PR tree-optimization/65637
15617 * omp-low.c (find_phi_with_arg_on_edge): New function.
15618 (expand_omp_for_static_chunk): Fix inner loop phi.
15619
15620 2015-09-03 Tom de Vries <tom@codesourcery.com>
15621
15622 PR tree-optimization/65637
15623 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
15624 that head is NULL.
15625
15626 2015-09-03 Tom de Vries <tom@codesourcery.com>
15627
15628 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
15629
15630 2015-09-03 Tom de Vries <tom@codesourcery.com>
15631
15632 * doc/invoke.texi (parloops-chunk-size): Add item.
15633 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
15634 * tree-parloops.c: Include params.h.
15635 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
15636 param parloops-chunk-size is used.
15637
15638 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15639
15640 PR middle-end/67351
15641 * fold-const.c (fold_binary_loc) : Move
15642 Transform (x >> c) << c into x & (-1<<c) or
15643 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
15644 types using simplify and match.
15645 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
15646 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
15647
15648 2015-09-03 Richard Biener <rguenther@suse.de>
15649
15650 PR ipa/66705
15651 * tree-ssa-structalias.c (ctor_for_analysis): New function.
15652 (create_variable_info_for_1): Use ctor_for_analysis instead
15653 of get_constructor.
15654 (create_variable_info_for): Likewise.
15655
15656 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
15657
15658 PR ipa/67280
15659 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
15660 in new callgraph edge.
15661
15662 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
15663
15664 PR target/59810
15665 PR target/63652
15666 PR target/63653
15667 * config/aarch64/aarch64-simd.md
15668 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
15669 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
15670 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
15671 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
15672
15673 2015-09-02 Alan Modra <amodra@gmail.com>
15674
15675 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
15676 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
15677 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
15678
15679 2015-09-02 Alan Modra <amodra@gmail.com>
15680
15681 PR target/67417
15682 * config/rs6000/predicates.md (current_file_function_operand): Don't
15683 return true for weak symbols.
15684 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
15685
15686 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
15687 Andrew Bennett <andrew.bennett@imgtec.com>
15688
15689 * config/mips/mips-opts.h (mips_cb_setting): New enum.
15690 * config/mips/mips-protos.h: Add definitions for
15691 mips_output_jump and mips_output_equal_conditional_branch
15692 * config/mips/mips.c (MIPS_JR): Change to support the
15693 JIC instruction.
15694 (mips_emit_compare): Add support for the MIPS R6 conditional
15695 compact branches.
15696 (mips_process_sync_loop): Likewise.
15697 (mips_output_order_conditional_branch): Likewise.
15698 (mips16_build_call_stub): Change MIPS_CALL to
15699 mips_output_jump.
15700 (mips_print_operand_punctuation): Update 's' case to only
15701 apply to micromips r2.
15702 (mips_adjust_insn_length): Add support for forbidden slot
15703 hazards.
15704 (mips_avoid_hazard): Likewise.
15705 (mips_reorg_process_insns): Likewise.
15706 (mips_output_jump): New function.
15707 (mips_output_equal_conditional_branch): Likewise.
15708 (mips_output_conditional_branch): Use jrc/bc if compact
15709 branch support is enabled. Ensure the forbidden slots
15710 between the two branch instructions is filled with a nop.
15711 (mips_option_override): Add support to process the compact
15712 branch option and set the correct defaults. Prevent
15713 non-explict relocs being using for MIPS R6.
15714 (mips_trampoline_init): Add compact branch support.
15715 (mips_mult_zero_zero_cost): Allow zero initialisation of
15716 accumulators with TARGET_DSP.
15717 * config/mips/mips.h (TARGET_CB_NEVER): New define.
15718 (TARGET_CB_MAYBE): New define.
15719 (TARGET_CB_ALWAYS): New define.
15720 (ISA_HAS_DELAY_SLOTS): New define.
15721 (ISA_HAS_COMPACT_BRANCHES): New define.
15722 (ISA_HAS_JRC): New define.
15723 (MIPS_BRANCH_C): New define.
15724 (MIPS_CALL): Removed.
15725 (MICROMIPS_J): Removed.
15726 * config/mips/mips.md (compact_form): New attr.
15727 (hazard): Add support for forbidden slots.
15728 (define_delay): Add support for compact branches.
15729 (*branch_order<mode>): Likewise.
15730 (*branch_order<mode>_inverted): Likewise.
15731 (*branch_equality<mode>): Likewise.
15732 (*branch_equality<mode>_inverted): Likewise.
15733 (*jump_absolute): Likewise.
15734 (*jump_pic): Likewise.
15735 (indirect_jump): Use mips_output_jump to produce assembly output.
15736 (tablejump_<mode>"): Likewise.
15737 (*<optab>"): Likewise.
15738 (<optab>_internal): Likewise.
15739 (sibcall_internal): Likewise.
15740 (sibcall_value_internal): Likewise.
15741 (sibcall_value_multiple_internal): Likewise.
15742 (call_internal): Likewise.
15743 (call_split): Likewise.
15744 (call_internal_direct): Likewise.
15745 (call_direct_split): Likewise.
15746 (call_value_internal): Likewise.
15747 (call_value_split): Likewise.
15748 (call_value_internal_direct): Likewise.
15749 (call_value_direct_split): Likewise.
15750 (call_value_multiple_internal): Likewise.
15751 (call_value_multiple_split): Likewise.
15752 (mips_get_fcsr_mips16_<mode>): Likewise.
15753 (mips_set_fcsr_mips16_<mode>): Likewise.
15754 (tls_get_tp_mips16_<mode>): Likewise.
15755 * config/mips/mips.opt: Add -mcompact-branches option.
15756 * config/mips/predicates.md (order_operator): Ensure the
15757 conditional compact branches are only used if the ISA them.
15758 * doc/invoke.texi: Document -mcompact-branches option.
15759
15760 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
15761
15762 PR target/61578
15763 * lra-lives.c (process_bb_lives): Process move pseudos with the
15764 same value for copies and preferences
15765 * lra-constraints.c (match_reload): Create match reload pseudo
15766 with the same value from single dying input pseudo.
15767
15768 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
15769
15770 PR target/67405
15771 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
15772
15773 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
15774
15775 * trans-mem.c: Add contributed-by.
15776 * trans-mem.h: Same.
15777
15778 2015-09-01 Richard Biener <rguenther@suse.de>
15779
15780 * expr.c (expand_expr_real_1): For expanding TERed defs
15781 set the current location to that of the def if not UNKNOWN.
15782
15783 2015-09-01 David Sherwood <david.sherwood@arm.com>
15784
15785 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
15786
15787 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15788
15789 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
15790 then_cost, else_cost fields. Change branch_cost field to unsigned int.
15791 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
15792 Include rtl-iter.h.
15793 (noce_simple_bbs): New function.
15794 (noce_try_move): Bail if basic blocks are not simple.
15795 (noce_try_store_flag): Likewise.
15796 (noce_try_store_flag_constants): Likewise.
15797 (noce_try_addcc): Likewise.
15798 (noce_try_store_flag_mask): Likewise.
15799 (noce_try_cmove): Likewise.
15800 (noce_try_minmax): Likewise.
15801 (noce_try_abs): Likewise.
15802 (noce_try_sign_mask): Likewise.
15803 (noce_try_bitop): Likewise.
15804 (bbs_ok_for_cmove_arith): New function.
15805 (noce_emit_all_but_last): Likewise.
15806 (noce_emit_insn): Likewise.
15807 (noce_emit_bb): Likewise.
15808 (noce_try_cmove_arith): Handle non-simple basic blocks.
15809 (insn_valid_noce_process_p): New function.
15810 (contains_mem_rtx_p): Likewise.
15811 (bb_valid_for_noce_process_p): Likewise.
15812 (noce_process_if_block): Allow non-simple basic blocks
15813 where appropriate.
15814
15815 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
15816
15817 * tree-ssa-dom.c (record_equivalences_from_phis,
15818 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
15819 (lookup_avail_expr): Likewise, and remove comment and unused temp.
15820
15821 2015-09-01 Nick Clifton <nickc@redhat.com>
15822
15823 * config/msp430/msp430.opt (mcpu): Fix typo.
15824
15825 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15826
15827 * config/aarch64/aarch64.c (aarch64_set_current_function):
15828 Re-layout any vector parameters have non-simd layout.
15829 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
15830 Delete.
15831 (aarch64_simd_expand_args): Delete call to the above.
15832
15833 2015-08-31 Mike Frysinger <vapier@gentoo.org>
15834
15835 * doc/invoke.texi (asan-stack): Add space before option.
15836
15837 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
15838
15839 * tree.h (zerop): New function.
15840 * tree.c (zerop): Likewise.
15841 (element_precision): Handle expressions.
15842 * match.pd (define_predicates): Add zerop.
15843 (x <= +Inf): Fix comment.
15844 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
15845 * fold-const.c (fold_binary_loc): ... here. Remove.
15846
15847 2015-08-31 Richard Biener <rguenther@suse.de>
15848
15849 PR middle-end/67381
15850 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
15851
15852 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
15853
15854 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
15855 (CEXPI): New operator list.
15856 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
15857 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
15858 Converted from ...
15859 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
15860
15861 2015-08-31 Tom de Vries <tom@codesourcery.com>
15862
15863 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
15864 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
15865 parameter.
15866 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
15867 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
15868 (rewrite_into_loop_closed_ssa): ... here.
15869 (replace_uses_in_dominated_bbs): Remove function.
15870 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
15871 rewrite_into_loop_closed_ssa_1.
15872
15873 2015-08-31 Michael Matz <matz@suse.de>
15874
15875 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
15876 enter entry and exit blocks for reverse post order.
15877
15878 2015-08-31 Richard Biener <rguenther@suse.de>
15879
15880 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
15881 (lto_location_cache::current_sysp): Likewise.
15882 (output_block::current_sysp): Likewise.
15883 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
15884 (lto_location_cache::apply_location_cache): Properly record
15885 system header locations.
15886 (lto_location_cache::input_location): Input whether a file
15887 is a system header.
15888 * lto-streamer-out.c (lto_output_location): Stream whether a file
15889 is a system header.
15890
15891 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15892
15893 PR bootstrap/67363
15894 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
15895
15896 2015-08-31 Tom de Vries <tom@codesourcery.com>
15897
15898 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
15899 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
15900 Improve function header comments.
15901
15902 2015-08-30 Michael Collison <michael.collison@linaro.org>
15903
15904 PR other/67320
15905 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
15906 standard names
15907
15908 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15909
15910 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
15911 special_handling bitfield.
15912 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
15913 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
15914 that represents a general xxpermdi.
15915 (insn_is_swappable_p): Add handling for vec_concat of two
15916 doublewords, which maps to a specific xxpermdi.
15917 (adjust_xxpermdi): New function.
15918 (adjust_concat): Likewise.
15919 (handle_special_swappables): Call adjust_xxpermdi and
15920 adjust_concat.
15921 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
15922
15923 2015-08-30 Rich Felker <dalias@libc.org>
15924
15925 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
15926 case instead of sh[123456ble]-*-*.
15927
15928 2015-08-29 Anatoly Sokolov <aesok@post.ru>
15929
15930 * ira.c (print_unform_and_important_classes,
15931 print_translated_classes): Remove reg_class_names static array.
15932 (print_unform_and_important_classes): Rename to ...
15933 (print_uniform_and_important_classes): ... this.
15934 (ira_debug_allocno_classes): Update accordingly.
15935
15936 2015-08-29 Tom de Vries <tom@codesourcery.com>
15937
15938 PR tree-optimization/46193
15939 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
15940 clause.
15941
15942 2015-08-28 Jeff Law <law@redhat.com>
15943
15944 PR lto/66752
15945 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
15946 unable to find X NE 0 in the tables, return X as the simplified
15947 condition.
15948 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
15949 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
15950 to VISISTED_BBS.
15951 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
15952 after removing the control flow statement and unnecessary edges.
15953
15954 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
15955
15956 Revert:
15957 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
15958
15959 PR tree-optimization/67283
15960 * tree-sra.c (type_consists_of_records_p): Rename to...
15961 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
15962
15963 (completely_scalarize_record): Rename to...
15964 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
15965 code to:
15966 (scalarize_elem): New.
15967
15968 2015-08-28 Jiong Wang <jiong.wang@arm.com>
15969
15970 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
15971 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
15972 (aarch64_symbol_type): Likewise.
15973 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15974 Likewise.
15975 (aarch64_expand_mov_immediate): Likewise.
15976 (aarch64_print_operand): Likewise.
15977 (aarch64_classify_tls_symbol): Likewise.
15978
15979 2015-08-28 Richard Biener <rguenther@suse.de>
15980
15981 * cgraphunit.c (symbol_table::compile): Move early debug generation
15982 and finish...
15983 (symbol_table::finalize_compilation_unit): ... back here and
15984 add a !seen_error () guard.
15985
15986 2015-08-27 Sebastian Pop <s.pop@samsung.com>
15987
15988 * toplev.c (process_options): Do not use flag_loop_block,
15989 flag_loop_interchange, and flag_loop_strip_mine. Add check for
15990 flag_loop_optimize_isl.
15991
15992 2015-08-27 Sebastian Pop <s.pop@samsung.com>
15993
15994 * Makefile.in (OBJS): Remove graphite-blocking.o and
15995 graphite-interchange.o.
15996 * common.opt (floop-strip-mine, floop-interchange, floop-block):
15997 Alias of floop-nest-optimize.
15998 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
15999 Document as alias of -floop-nest-optimize.
16000 * graphite-blocking.c: Remove.
16001 * graphite-interchange.c: Remove.
16002 * graphite-optimize-isl.c: Include dumpfile.h.
16003 (getScheduleForBand): Add dump for tiled loops. Use
16004 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
16005 * graphite-poly.c (scop_max_loop_depth): Remove.
16006 (print_scattering_function_1): Remove.
16007 (print_scattering_function): Remove.
16008 (print_scattering_functions): Remove.
16009 (debug_scattering_function): Remove.
16010 (debug_scattering_functions): Remove.
16011 (apply_poly_transforms): Remove use of flag_loop_block,
16012 flag_loop_strip_mine, and flag_loop_interchange.
16013 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
16014 PBB_ORIGINAL.
16015 (print_pdr_access_layout): Remove.
16016 (print_pdr): Print ISL representation.
16017 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
16018 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
16019 (free_scop): Same.
16020 (openscop_print_pbb_domain): Remove.
16021 (print_pbb): Remove call to print_scattering_function.
16022 (openscop_print_scop_context): Remove.
16023 (print_scop_context): Do not print matrices anymore.
16024 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
16025 SCOP_TRANSFORMED_SCHEDULE.
16026 (print_isl_set): Add printing of a new line.
16027 (print_isl_map): Same.
16028 (print_isl_aff): Same.
16029 (print_isl_constraint): Same.
16030 (loop_to_lst): Remove.
16031 (scop_to_lst): Remove.
16032 (lst_indent_to): Remove.
16033 (print_lst): Remove.
16034 (debug_lst): Remove.
16035 (dot_lst_1): Remove.
16036 (dot_lst): Remove.
16037 (reverse_loop_at_level): Remove.
16038 (reverse_loop_for_pbbs): Remove.
16039 * graphite-poly.h (pdr_dim_iter_domain): Remove.
16040 (pdr_nb_params): Remove.
16041 (pdr_alias_set_dim): Remove.
16042 (pdr_subscript_dim): Remove.
16043 (pdr_iterator_dim): Remove.
16044 (pdr_parameter_dim): Remove.
16045 (same_pdr_p): Remove.
16046 (struct poly_scattering): Remove.
16047 (struct poly_bb): Remove _original, _transformed, _saved.
16048 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
16049 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
16050 (PBB_NB_LOCAL_VARIABLES): Remove.
16051 (PBB_NB_SCATTERING_TRANSFORM): Remove.
16052 (schedule_to_scattering): Remove.
16053 (number_of_write_pdrs): Remove.
16054 (pbb_dim_iter_domain): Remove.
16055 (pbb_nb_params): Remove.
16056 (pbb_nb_scattering_orig): Remove.
16057 (pbb_nb_scattering_transform): Remove.
16058 (pbb_nb_dynamic_scattering_transform): Remove.
16059 (pbb_nb_local_vars): Remove.
16060 (pbb_iterator_dim): Remove.
16061 (pbb_parameter_dim): Remove.
16062 (psco_scattering_dim): Remove.
16063 (psct_scattering_dim): Remove.
16064 (psct_local_var_dim): Remove.
16065 (psco_iterator_dim): Remove.
16066 (psct_iterator_dim): Remove.
16067 (psco_parameter_dim): Remove.
16068 (psct_parameter_dim): Remove.
16069 (psct_dynamic_dim): Remove.
16070 (psct_static_dim): Remove.
16071 (psct_add_local_variable): Remove.
16072 (new_lst_loop): Remove.
16073 (new_lst_stmt): Remove.
16074 (free_lst): Remove.
16075 (copy_lst): Remove.
16076 (lst_add_loop_under_loop): Remove.
16077 (lst_depth): Remove.
16078 (lst_dewey_number): Remove.
16079 (lst_dewey_number_at_depth): Remove.
16080 (lst_pred): Remove.
16081 (lst_succ): Remove.
16082 (lst_find_pbb): Remove.
16083 (find_lst_loop): Remove.
16084 (lst_find_first_pbb): Remove.
16085 (lst_empty_p): Remove.
16086 (lst_find_last_pbb): Remove.
16087 (lst_contains_p): Remove.
16088 (lst_contains_pbb): Remove.
16089 (lst_create_nest): Remove.
16090 (lst_remove_from_sequence): Remove.
16091 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
16092 (lst_niter_for_loop): Remove.
16093 (pbb_update_scattering): Remove.
16094 (lst_update_scattering_under): Remove.
16095 (lst_update_scattering): Remove.
16096 (lst_insert_in_sequence): Remove.
16097 (lst_replace): Remove.
16098 (lst_substitute_3): Remove.
16099 (lst_distribute_lst): Remove.
16100 (lst_remove_all_before_including_pbb): Remove.
16101 (lst_remove_all_before_excluding_pbb): Remove.
16102 (struct scop): Remove original_schedule, transformed_schedule, and
16103 saved_schedule.
16104 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
16105 (SCOP_SAVED_SCHEDULE): Remove.
16106 (poly_scattering_new): Remove.
16107 (poly_scattering_free): Remove.
16108 (poly_scattering_copy): Remove.
16109 (store_scattering_pbb): Remove.
16110 (store_lst_schedule): Remove.
16111 (restore_lst_schedule): Remove.
16112 (store_scattering): Remove.
16113 (restore_scattering_pbb): Remove.
16114 (restore_scattering): Remove.
16115 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
16116 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
16117 compute the scattering polyhedron dimension from the dimension of
16118 pbb->domain.
16119 (build_scop_scattering): Update call to
16120 build_pbb_scattering_polyhedrons.
16121 (build_poly_scop): Remove call to scop_to_lst.
16122 * graphite.c (graphite_transform_loops): Add call to print_scop.
16123 (gate_graphite_transforms): Remove use of flag_loop_block,
16124 flag_loop_interchange, and flag_loop_strip_mine.
16125
16126 2015-08-27 Sebastian Pop <s.pop@samsung.com>
16127
16128 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
16129 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
16130 -floop-nest-optimize.
16131 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
16132 (generate_luj_sepclass): Remove.
16133 (generate_luj_options): Remove.
16134 (set_options): Remove opt_luj.
16135 (scop_to_isl_ast): Remove opt_luj.
16136 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
16137 flag_loop_unroll_jam.
16138 (getPrevectorMap_full): Remove.
16139 (getScheduleForBandList): Remove map_sepcl.
16140 (getScheduleMap): Same.
16141 (apply_schedule_map_to_scop): Remove sepcl.
16142 (optimize_isl): Same.
16143 * graphite-poly.c (apply_poly_transforms): Remove check for
16144 flag_loop_unroll_jam.
16145 (new_poly_bb): Remove map_sepclass.
16146 * graphite-poly.h (struct poly_bb): Same.
16147 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
16148 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
16149 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
16150 * toplev.c (process_options): Remove flag_loop_unroll_jam.
16151
16152 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
16153
16154 PR target/67317
16155 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
16156 (addqi3_cc): Ditto.
16157 (UNSPEC_ADD_CARRY): Remove.
16158 (addqi3_cconly_overflow): New expander.
16159 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
16160 Adjust for changed add<mode>3_carry.
16161 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
16162 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
16163 (<plusminus_insn><mode>3_carry): Remove expander.
16164 (*<plusminus_insn><mode>3_carry): Split insn pattern to
16165 add<mode>3_carry and sub<mode>3_carry.
16166 (plusminus_carry_mnemonic): Remove code attribute.
16167 (add<mode>3_carry): Canonicalize insn pattern.
16168 (*addsi3_carry_zext): Ditto.
16169 (sub<mode>3_carry): Ditto.
16170 (*subsi3_carry_zext): Ditto.
16171 (adcx<mode>3): Remove insn pattern.
16172 (addcarry<mode>): New insn pattern.
16173 (subborrow<mode>): Ditto.
16174 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
16175 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
16176 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
16177 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
16178 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
16179 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
16180 Rewrite expander to not clobber carry flag chains.
16181
16182 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
16183
16184 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
16185 instead of a rotate.
16186
16187 2015-08-27 Marek Polacek <polacek@redhat.com>
16188
16189 PR middle-end/67005
16190 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
16191 an entry into an irreducible region.
16192
16193 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16194
16195 * configure: Regenerate.
16196
16197 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
16198
16199 PR tree-optimization/67283
16200 * tree-sra.c (type_consists_of_records_p): Rename to...
16201 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
16202
16203 (completely_scalarize_record): Rename to...
16204 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
16205 (scalarize_elem): New.
16206
16207 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
16208
16209 * tree-sra.c (completely_scalarize_var): Rename to...
16210 (create_total_scalarization_access): ... Here. Drop call to
16211 completely_scalarize_record.
16212
16213 (analyze_all_variable_accesses): Replace completely_scalarize_var
16214 with create_total_scalarization_access and completely_scalarize_record.
16215
16216 2015-08-27 Alan Modra <amodra@gmail.com>
16217
16218 PR target/67356
16219 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
16220 for operand 1.
16221
16222 2015-08-27 Richard Biener <rguenther@suse.de>
16223
16224 * passes.c (rest_of_decl_compilation): Guard early_global_decl
16225 call with !seen_error ().
16226 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
16227 early debug generation and finish...
16228 (symbol_table::compile): ... here to put it after a !seen_error ()
16229 guard.
16230
16231 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16232
16233 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
16234 Solaris 12+.
16235
16236 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16237 Andre Vieira <andre.simoesdiasvieira@arm.com>
16238
16239 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
16240 (*cb<optab><mode>1): Likewise.
16241 (*tb<optab><mode>1): Likewise.
16242 (*cb<optab><mode>1): Likewise.
16243 * config/aarch64/iterators.md (inv_cb): New code attribute.
16244 (inv_tb): Likewise.
16245 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
16246 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
16247
16248 2015-08-27 Richard Biener <rguenther@suse.de>
16249
16250 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
16251
16252 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
16253
16254 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
16255 trap to fix ICE.
16256
16257 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
16258
16259 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
16260 Add declaration.
16261
16262 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
16263 comment.
16264 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
16265 floating point in VSX registers.
16266 (rs6000_output_move_128bit): Always print out the set insn if we
16267 can't generate an appropriate 128-bit move.
16268 (rs6000_generate_compare): Add support for IEEE 128-bit floating
16269 point in VSX registers comparisons.
16270 (rs6000_expand_float128_convert): Likewise.
16271
16272 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
16273 predicate for only GPR hard registers.
16274
16275 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
16276 modes to iterators. Add new iterators for moving 128-bit values in
16277 scalar FPR registers and VSX registers.
16278 (FMOVE128): Likewise.
16279 (FMOVE128_FPR): Likewise.
16280 (FMOVE128_GPR): Likewise.
16281 (FMOVE128_VSX): Likewise.
16282 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
16283 in VSX registers.
16284 (IFKF): Likewise.
16285 (IBM128): Likewise.
16286 (TFIFKF): Likewise.
16287 (RELOAD): Add IEEE 128-bit floating point modes.
16288 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
16289 floating point in VSX registers modes.
16290 (signbit<mode>2, IBM128 iterator): Likewise.
16291 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
16292 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
16293 (negtf2): Likewise.
16294 (neg<mode>2, TFIFKF iterator): Likewise.
16295 (negtf2_internal): Likewise.
16296 (abstf2): Likewise.
16297 (abs<mode>2, TFIFKF iterator): Likewise.
16298 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
16299 VSX insn support for negate, absolute value, and negative absolute
16300 value.
16301 (ieee_128bit_vsx_neg<mode>2): Likewise.
16302 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
16303 (ieee_128bit_vsx_abs<mode>2): Likewise.
16304 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
16305 (ieee_128bit_vsx_nabs<mode>2): Likewise.
16306 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
16307 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
16308 floating point in VSX registers.
16309 (unpack<mode>_dm): Likewise.
16310 (unpack<mode>_nodm): Likewise.
16311 (pack<mode>): Likewise.
16312 (unpackv1ti): Likewise.
16313 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
16314 (packv1ti): Likewise.
16315 (pack<mode>, FMOVE128_VSX iterator): Likewise.
16316 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
16317 registers.
16318 (extenddftf2_internal): Likewise.
16319 (trunctfdf2): Likewise.
16320 (trunctfdf2_internal2): Likewise.
16321 (fix_trunc_helper): Likewise.
16322 (fix_trunctfdi2"): Likewise.
16323 (floatditf2): Likewise.
16324 (floatuns<mode>tf2): Likewise.
16325 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
16326 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
16327 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
16328 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
16329 (float<SDI:mode><IFKF:mode>2): Likewise.
16330 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
16331
16332 2015-08-26 Renlin Li <renlin.li@arm.com>
16333
16334 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
16335
16336 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
16337 Jiong Wang <jiong.wang@arm.com>
16338
16339 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
16340 (tlsie_tiny_<mode>): New define_insn.
16341 (tlsie_tiny_sidi): Likewise.
16342 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
16343 SYMBOL_TINY_TLSIE.
16344 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
16345 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
16346 SYMBOL_TINY_TLSIE.
16347 (aarch64_expand_mov_immediate): Likewise.
16348 (aarch64_print_operand): Likewise.
16349 (arch64_classify_tls_symbol): Likewise.
16350
16351 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
16352
16353 * config/arm/arm-arches.def: Replace single value flags with
16354 an initializer built from ARM_FSET_MAKE_CPU1.
16355 * config/arm/arm-cores.def: Likewise.
16356 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
16357 derivation from the ARM_CORE macro definition, use the given value
16358 instead.
16359 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
16360 ARM_ARCH macro definition, use the given value instead.
16361
16362 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
16363
16364 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
16365 feature set.
16366 (struct builtin_description): Replace field mask with field
16367 features.
16368 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
16369 (IWMMXT2_BUILTIN): Likewise.
16370 (IWMMXT2_BUILTIN2): Likewise.
16371 (FP_BUILTIN): Likewise.
16372 (CRC32_BUILTIN): Likewise.
16373 (CRYPTO_BUILTIN): Likewise.
16374 (iwmmx_mbuiltin): Likewise.
16375 (iwmmx2_mbuiltin): Likewise.
16376 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
16377 struct builtin_description.
16378
16379 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
16380
16381 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
16382 (struct builtin_description): Change type of mask to unsigned
16383 long.
16384 * config/arm/arm-protos.h (insn_flags): Declare as type
16385 arm_feature_set.
16386 (tune_flags): Likewise.
16387 * config/arm/arm.c (feature_count): New.
16388 (insn_flags): Define as type arm_feature_set.
16389 (tune_flags): Likewise.
16390 (struct processors): Define field flags as type arm_feature_set.
16391 (all_cores): Update for change to struct processors.
16392 (all_architectures): Likewise.
16393 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
16394 macros.
16395 (arm_option_override_internal): Likewise.
16396 (arm_option_override): Likewise.
16397
16398 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
16399 Jiong Wang <jiong.wang@arm.com>
16400
16401 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
16402 tls size for tiny, small, large memory model.
16403 (aarch64_load_symref_appropriately): Support new symbol types.
16404 (aarch64_expand_mov_immediate): Likewise.
16405 (aarch64_print_operand): Likewise.
16406 (aarch64_classify_tls_symbol): Likewise.
16407 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
16408 (aarch64_symbol_type): Likewise.
16409 * config/aarch64/aarch64.md (tlsle): Deleted.
16410 (tlsle12_<mode>): New define_insn.
16411 (tlsle24_<mode>): Likewise.
16412 (tlsle32_<mode>): Likewise.
16413 (tlsle48_<mode>): Likewise.
16414 * doc/sourcebuild.texi (AArch64-specific attributes): Document
16415 "aarch64_tlsle32".
16416
16417 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
16418
16419 * config/arm/arm-protos.h (FL_NONE): New.
16420 (FL_ANY): New.
16421 (arm_feature_set): New.
16422 (ARM_FSET_MAKE): New.
16423 (ARM_FSET_MAKE_CPU1): New.
16424 (ARM_FSET_MAKE_CPU2): New.
16425 (ARM_FSET_CPU1): New.
16426 (ARM_FSET_CPU2): New.
16427 (ARM_FSET_EMPTY): New.
16428 (ARM_FSET_ANY): New.
16429 (ARM_FSET_HAS_CPU1): New.
16430 (ARM_FSET_HAS_CPU2): New.
16431 (ARM_FSET_HAS_CPU): New.
16432 (ARM_FSET_ADD_CPU1): New.
16433 (ARM_FSET_ADD_CPU2): New.
16434 (ARM_FSET_DEL_CPU1): New.
16435 (ARM_FSET_DEL_CPU2): New.
16436 (ARM_FSET_UNION): New.
16437 (ARM_FSET_INTER): New.
16438 (ARM_FSET_XOR): New.
16439 (ARM_FSET_EXCLUDE): New.
16440 (AFM_FSET_IS_EMPTY): New.
16441 (ARM_FSET_CPU_SUBSET): New.
16442
16443 2015-08-26 Jiong Wang <jiong.wang@arm.com>
16444
16445 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
16446 SYMBOL_TLSLE to SYMBOL_TLSLE24.
16447 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
16448 Likewise.
16449 (aarch64_expand_mov_immediate): Likewise.
16450 (aarch64_print_operand): Likewise.
16451 (aarch64_classify_symbol): Likewise.
16452
16453 2015-08-26 Jiong Wang <jiong.wang@arm.com>
16454
16455 * config/aarch64/aarch64.opt (mtls-size): New entry.
16456 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
16457 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
16458 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
16459
16460 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
16461
16462 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
16463 ARM_CORE entry. Fix some white-space.
16464 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
16465 ARM_CORE definition.
16466
16467 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16468
16469 * fold-const.c (fold_binary_loc) : Move Optimize
16470 root(x)*root(y) as root(x*y) to match.pd.
16471 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
16472 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
16473 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
16474 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
16475 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
16476 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
16477 (mult (exps:s @0) (exps:s @1)) : New simplifier.
16478 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
16479 (rdiv @0 (exps:s @1)) : New simplifier.
16480
16481 2015-08-25 Joseph Myers <joseph@codesourcery.com>
16482
16483 * gcc.c (driver::finalize): Only assign to extra_specs if
16484 [EXTRA_SPECS].
16485
16486 2015-08-25 Marek Polacek <polacek@redhat.com>
16487
16488 PR middle-end/67330
16489 * varasm.c (declare_weak): Return after giving an error.
16490
16491 2015-08-25 David Malcolm <dmalcolm@redhat.com>
16492
16493 * gcc-main.c (main): Add params to driver ctor.
16494 * gcc.c (class env_manager): New.
16495 (env): New global.
16496 (env_manager::init): New.
16497 (env_manager::get): New.
16498 (env_manager::xput): New.
16499 (env_manager::restore): New.
16500 Poison getenv and putenv.
16501 (DEFAULT_TARGET_SYSTEM_ROOT): New.
16502 (target_system_root): Update initialization to use
16503 DEFAULT_TARGET_SYSTEM_ROOT.
16504 (struct spec_list): Add field "default_ptr".
16505 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
16506 (init_spec): Likewise.
16507 (set_spec): Clear field "default_ptr".
16508 (read_specs): Free "spec" and "buffer".
16509 (xputenv): Reimplement in terms of env_manager.
16510 (process_command): Replace ::getenv calls with calls to the
16511 env_manager singleton.
16512 (process_brace_body): Free string in three places.
16513 (driver::driver): New.
16514 (driver::~driver): New.
16515 (used_arg): Convert from a function to...
16516 (class used_arg_t): ...this class, and...
16517 (used_arg): ...this new global instance.
16518 (used_arg_t::finalize): New function.
16519 (getenv_spec_function): Add "const" to local "value". Replace
16520 ::getenv call with call to the env_manager singleton.
16521 (path_prefix_reset): New function.
16522 (driver::finalize): New function.
16523 * gcc.h (driver::driver): New.
16524 (driver::~driver): New.
16525 (driver::finalize): New.
16526
16527 2015-08-25 Nathan Sidwell <nathan@acm.org>
16528
16529 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
16530 target doesn't have one.
16531
16532 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
16533
16534 PR target/67346
16535 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
16536
16537 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
16538
16539 PR target/67344
16540 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
16541 a define_insn, remove second alternative.
16542
16543 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
16544 Joseph Myers <joseph@codesourcery.com>
16545
16546 * gcc.c (struct switchstr): Expand comment.
16547
16548 2015-08-25 Nathan Sidwell <nathan@acm.org>
16549
16550 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
16551 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
16552
16553 2015-08-25 Richard Biener <rguenther@suse.de>
16554
16555 PR middle-end/67306
16556 * genmatch.c (expr::gen_transform): Verify the result of
16557 builtin_decl_implicit.
16558 (dt_simplify::gen_1): Likewise.
16559
16560 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
16561
16562 * config/arm/constraints.md: Also list Cs and US ARM-specific
16563 constraints as used.
16564
16565 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
16566
16567 PR target/66609
16568 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
16569 UNSPEC_PCREL.
16570 (nonpic_symbol_mentioned_p): Likewise.
16571 (sh_delegitimize_address): Likewise.
16572 (sh_function_ok_for_sibcall): Take into account weak symbols.
16573 (sh_expand_sym_label2reg): New.
16574 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
16575 * config/sh/sh.md (UNSPEC_PCREL): New enum.
16576 (call_pcrel): Use sh_expand_sym_label2reg.
16577 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
16578 (symPCREL_label2reg) New expand.
16579
16580 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
16581
16582 * graphite-poly.c: Change type of region from void* to sese.
16583 * graphite-poly.h (struct scop): Changing the type of scop::region
16584 from void* to sese. Change accessor macro accordingly.
16585 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
16586
16587 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
16588
16589 * graphite-scop-detection.c (stmt_simple_for_scop_p):
16590 Constrain only on INTEGER_TYPE.
16591
16592 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
16593
16594 PR target/67211
16595 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
16596 -mefficient-unaligned-vsx on ISA 2.7.
16597
16598 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
16599 option to a masked option.
16600
16601 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
16602 logic for -mefficient-unaligned-vsx so that it is set via an arch
16603 ISA option, instead of being set if -mtune=power8 is set. Move
16604 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
16605 near other default option handling.
16606
16607 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16608
16609 * genflags.c (gen_macro): Delete.
16610 (gen_proto): Don't create GEN.*CALL.* macros.
16611 * gensupport.h (get_file_location): Declare.
16612 * gensupport.c (rtx_locs): New variable.
16613 (read_md_rtx): Record rtx locations.
16614 (get_file_location): New function.
16615 * target-insns.def (call, call_pop, call_value, call_value_pop)
16616 (sibcall, sibcall_value): New patterns.
16617 * gentarget-def.c (parse_argument): New function.
16618 (def_target_insn): Use it. Handle optional operands. Raise an
16619 error if an .md pattern has the wrong number of operands for the
16620 pattern name. Remove the names of unused operands from the prototype.
16621 * builtins.c (expand_builtin_apply): Use targetm functions
16622 instead of HAVE_call_value and GEN_CALL_VALUE.
16623 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
16624 and sibcall_value_pop.
16625 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
16626 of GEN_CALL.
16627 * config/alpha/alpha.md (untyped_call): Likewise.
16628 * config/iq2000/iq2000.md (untyped_call): Likewise.
16629 * config/m68k/m68k.md (untyped_call): Likewise.
16630 * config/mips/mips.md (untyped_call): Likewise.
16631 * config/pa/pa.md (untyped_call): Likewise.
16632 * config/rs6000/rs6000.md (untyped_call): Likewise.
16633 * config/sparc/sparc.md (untyped_call): Likewise.
16634 * config/tilegx/tilegx.md (untyped_call): Likewise.
16635 * config/tilepro/tilepro.md (untyped_call): Likewise.
16636 * config/visium/visium.md (untyped_call): Likewise.
16637 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
16638 gen_call_value instead of GEN_CALL_VALUE.
16639 * config/arm/arm.md (untyped_call): Likewise.
16640 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
16641 GEN_CALL.
16642
16643 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16644
16645 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
16646 (have_cbranchcc4): New variable.
16647 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
16648 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
16649 (if_convert): Initialize have_cbranchcc4.
16650
16651 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16652
16653 * builtins.c (expand_cmpstrn): Rename to...
16654 (expand_cmpstrn_or_cmpmem): ...this.
16655 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
16656 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
16657 Remove mode argument.
16658 (expand_builtin): Update accordingly.
16659
16660 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16661
16662 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
16663 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
16664 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
16665 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
16666 Add predicates for operands 0 and 3.
16667 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
16668 operand.
16669 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
16670 immediate_operand to nonmemory_operand.
16671
16672 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16673
16674 * df-scan.c (df_insn_info_init_fields): New function, split out
16675 from...
16676 (df_insn_create_insn_record): ...here.
16677 (df_insn_info_free_fields): New function, split out from...
16678 (df_insn_info_delete): ...here.
16679 (df_insn_rescan): Use the new functions instead of freeing and
16680 reallocating the df_insn_info.
16681
16682 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16683
16684 * doc/install.texi (Binaries): Remove links no longer valid.
16685
16686 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
16687
16688 * config/nvptx/mkoffload.c (process): Replace
16689 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
16690
16691 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
16692
16693 PR target/67329
16694 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
16695
16696 2015-08-24 Renlin Li <renlin.li@arm.com>
16697
16698 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
16699 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
16700 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
16701 * config/arm/constraints.md ("j"): Add check for high code.
16702
16703 2015-08-24 Tom de Vries <tom@codesourcery.com>
16704
16705 PR tree-optimization/65468
16706 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
16707 chunk_size is one.
16708
16709 2015-08-24 Nathan Sidwell <nathan@acm.org>
16710
16711 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
16712 change to nvptx_type_from_mode call. Use arg_promotion for both
16713 split and non-split args.
16714
16715 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16716
16717 * target-insns.def (movstr): New pattern.
16718 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
16719 (expand_movstr): Use targetm rather than HAVE_movstr/
16720 CODE_FOR_movstr.
16721
16722 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16723
16724 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
16725 cast syntax.
16726
16727 2015-08-24 Andrew Pinski <apinski@cavium.com>
16728
16729 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
16730 AARCH64_EXTRA_TUNING_OPTION.
16731 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
16732 New enum.
16733 (aarch64_extra_tuning_flags): Base the shifted value on the index
16734 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
16735 * config/aarch64/aarch64.c: Remove the last argument to
16736 AARCH64_EXTRA_TUNING_OPTION.
16737
16738 2015-08-23 Nathan Sidwell <nathan@acm.org>
16739
16740 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
16741 decls.
16742 (nvptx_declare_function_name): Insert formatting tabs for
16743 consistency.
16744
16745 2015-08-23 Tom de Vries <tom@codesourcery.com>
16746
16747 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
16748 parm_decl, rather than generating a dummy default def in cfun.
16749 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
16750 ssa_name from cfun and child_fn do not share a stmt as def stmt.
16751 (move_stmt_op): Handle PARM_DECl.
16752 (gather_ssa_name_hash_map_from): New function.
16753 (move_sese_region_to_fn): Add default defs for function params, and add
16754 them to vars_map. Release copied ssa names.
16755 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
16756
16757 2015-08-23 Tom de Vries <tom@codesourcery.com>
16758
16759 * doc/sourcebuild.texi: Rename vect_no_int_max with
16760 vect_no_int_min_max. Update description.
16761
16762 2015-08-22 Andrew Pinski <apinski@cavium.com>
16763
16764 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
16765 * config/aarch64/aarch64-protos.h
16766 (aarch64_fusion_pairs_index): New enum.
16767 (aarch64_fusion_pairs): Base the shifted value on the index instead
16768 Rewrite AARCH64_FUSE_ALL to be based on the end index.
16769 of the argument to AARCH64_FUSION_PAIR.
16770 * config/aarch64/aarch64.c: Remove the last argument to
16771 AARCH64_FUSION_PAIR.
16772
16773 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
16774
16775 * dominance.c (new_zero_array): Define.
16776 (dom_info): Redefine as class with proper encapsulation.
16777 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
16778 Add new members.
16779 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
16780 allocations/deallocations. Pass function as parameter (instead of
16781 using cfun).
16782 (dom_info::get_idom): Define accessor method.
16783 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
16784 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
16785 (calculate_dominance_info): Adjust to use dom_info class.
16786 (verify_dominators): Likewise.
16787
16788 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
16789
16790 * print-rtl.c (print_rtx): Check the correct range for
16791 flag_dump_unnumbered_links to behave as documented.
16792
16793 PR rtl-optimization/67227
16794 PR rtl-optimization/64164
16795 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
16796 (nonoverlapping_memrefs_p): Test offsets and sizes when given
16797 identical gimple_reg exprs.
16798
16799 2015-08-21 Nathan Sidwell <nathan@acm.org>
16800
16801 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
16802 expansion.
16803 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
16804 crtl->stack_alignment_needed to determine alignment.
16805 (nvptx_get_drap_rtx): New.
16806 (TARGET_GET_DRAP_RTX): Override.
16807 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
16808
16809 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16810
16811 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
16812
16813 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16814
16815 * configure.ac: Remove uwin* cases.
16816 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
16817 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
16818 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
16819 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
16820 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
16821 i[34567]86-*-uwin*, powerpc-*-beos*.
16822
16823 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
16824
16825 * gencodes.c (gencodes): Print the comma for the preceding
16826 enum value rather than the current one. Use aliased enum values
16827 rather than #defines for compiled-out patterns.
16828 (main): Update accordingly. Replace LAST_INSN_CODE with
16829 NUM_INSN_CODES.
16830 * lra.c (insn_code_data): Update accordingly.
16831 (finish_insn_code_data_once, get_static_insn_data): Likewise.
16832 * recog.h (target_recog): Likewise.
16833 (preprocess_insn_constraints): Change parameter to unsigned int.
16834 * recog.c (preprocess_insn_constraints): Likewise.
16835 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
16836 * tree-vect-stmts.c (vectorizable_operation): Simplify.
16837
16838 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
16839
16840 PR rtl-optimization/61657
16841 * loop-iv.c (iv_number_of_iterations): Declare up and down as
16842 unsigned. Remove superflous uint64_t cast.
16843
16844 2014-08-21 Felix Yang <felix.yang@huawei.com>
16845 Jiji Jiang <jiangjiji@huawei.com>
16846
16847 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
16848 argument and get builtin function code directly from CALL.
16849 (gimple_stringop_fixed_value): Modified accordingly.
16850 (gimple_stringops_transform, gimple_stringops_values_to_profile):
16851 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
16852
16853 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
16854
16855 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
16856
16857 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16858
16859 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
16860 to match.pd.
16861 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
16862 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
16863 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
16864 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
16865 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
16866 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
16867 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
16868 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
16869 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
16870 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
16871
16872 * match.pd (SIN ) : New Operator.
16873 (TAN) : New Operator.
16874 (mult (SQRT@1 @0) @1) : New simplifier.
16875 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
16876 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
16877 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
16878 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
16879 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
16880 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
16881 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
16882 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
16883 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
16884 (rdiv @0 (POW:s @1 @2)) : New simplifier.
16885
16886 2015-08-21 Bin Cheng <bin.cheng@arm.com>
16887
16888 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
16889 loop if EXPR is simplified to const value.
16890
16891 2015-08-21 Yury Gribov <y.gribov@samsung.com>
16892
16893 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
16894 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
16895
16896 2015-08-21 Richard Biener <rguenther@suse.de>
16897
16898 PR middle-end/67285
16899 * gimple-fold.c (replace_stmt_with_simplification): Assert
16900 seq is empty when replacing a call with itself but different
16901 arguments.
16902 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
16903 a call require that it is const.
16904
16905 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16906
16907 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
16908 * builtins.c (get_object_alignment_2): Adjust.
16909 * varasm.c (align_variable): Likewise.
16910 (get_variable_align): Likewise.
16911 (build_constant_desc): Likewise.
16912 (force_const_mem): Likewise.
16913 * doc/tm.texi.in: Likewise.
16914 * doc/tm.texi: Regenerate.
16915
16916 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16917
16918 * genconfig.c (main): Always define HAVE_cc0.
16919 * recog.c (rest_of_handle_peephole2): Adjust.
16920
16921 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16922
16923 * reorg.c (relax_delay_slots): Don't use #if to check value of
16924 HAVE_cc0.
16925
16926 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16927
16928 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
16929 * targhooks.c (default_have_conditional_execution): Adjust.
16930
16931 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
16932
16933 * rtl.h (rtvec_all_equal_p): Declare.
16934 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
16935 * rtl.c (rtvec_all_equal_p): New function.
16936 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
16937 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
16938 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
16939 * config/arm/arm.c (neon_vdup_constant): Likewise.
16940 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
16941 * config/tilegx/constraints.md (W, Y): Likewise.
16942 * config/tilepro/constraints.md (W, Y): Likewise.
16943 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
16944 (classify_immediate): Use unwrap_const_vec_duplicate.
16945 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
16946 (reg_or_v2s8bit_operand): Likewise.
16947 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
16948 (reg_or_v4s8bit_operand): Likewise.
16949
16950 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16951
16952 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
16953 (vec_shasigma_be): New #define.
16954 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
16955 (VPMSUMH): Likewise.
16956 (VPMSUMW): Likewise.
16957 (VPMSUMD): Likewise.
16958 (VPMSUM): New BU_P8V_OVERLOAD_2.
16959 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
16960 entries for VEC_MADD and VEC_VPMSUM.
16961
16962 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
16963
16964 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
16965 Multiply argument avr_n_flash by 64 to match unit of "KiB".
16966 (avr_pgm_check_var_decl): Same.
16967
16968 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
16969
16970 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
16971 initialization of HFmode scalar type (float16_t) to...
16972 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
16973 code.
16974
16975 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
16976
16977 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
16978 having an -mfp16-format.
16979
16980 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
16981
16982 * config/i386/predicates.md (vector_all_ones_operand): Use
16983 CONSTM1_RTX to simplify definition.
16984
16985 2015-08-20 Richard Biener <rguenther@suse.de>
16986
16987 * toplev.c (compile_file): Remove loop calling late_global_decl
16988 on all symbols.
16989 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
16990 on decls we assembled.
16991
16992 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
16993
16994 * common/config/aarch64/aarch64-common.c
16995 (AARCH64_CPU_NAME_LENGTH): Delete.
16996 (aarch64_option_extension): New.
16997 (all_extensions): Likewise.
16998 (processor_name_to_arch): Likewise.
16999 (arch_to_arch_name): Likewise.
17000 (all_cores): New.
17001 (all_architectures): Likewise.
17002 (aarch64_get_extension_string_for_isa_flags): Likewise.
17003 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
17004 architecture names.
17005 * config/aarch64/aarch64-protos.h
17006 (aarch64_get_extension_string_for_isa_flags): New.
17007 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
17008 (aarch64_option_print): Get the string to print from
17009 aarch64_get_extension_string_for_isa_flags.
17010 (aarch64_declare_function_name): Likewise.
17011 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
17012 (MCPU_TO_MARCH_SPEC): This.
17013 (ASM_CPU_SPEC): Use it.
17014 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
17015 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
17016 (EXTRA_SPEC_FUNCTIONS): Use it.
17017
17018 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
17019
17020 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
17021 expansion when !ISA_HAS_LWL_LWR.
17022 (mips_block_move_straight): Update the size of elements copied to
17023 account for alignment when !ISA_HAS_LWL_LWR.
17024 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
17025
17026 2015-08-19 Jiong Wang <jiong.wang@arm.com>
17027
17028 * expr.c (expand_expr_real_2): Check gimple statement during
17029 LSHIFT_EXPR expand.
17030
17031 2015-08-19 Magnus Granberg <zorry@gentoo.org>
17032
17033 * common.opt (fstack-protector): Initialize to -1.
17034 (fstack-protector-all): Likewise.
17035 (fstack-protector-strong): Likewise.
17036 (fstack-protector-explicit): Likewise.
17037 * configure.ac: Add --enable-default-ssp.
17038 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
17039 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
17040 -1.
17041 * doc/install.texi: Document --enable-default-ssp.
17042 * config.in: Regenerated.
17043 * configure: Likewise.
17044
17045 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
17046
17047 PR rtl-optimization/64164
17048 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
17049 (parm_in_stack_slot_p): ... this. Disregard mode, what
17050 matters is whether the parm will live in a pseudo or a stack
17051 slot.
17052 (expand_one_ssa_partition): Deal with params without a default
17053 def. Disregard mode.
17054 * cfgexpand.h: Renamed function declaration.
17055 * tree-ssa-coalesce.c: Adjust.
17056 * function.c (split_complex_args): Allocate stack slot for
17057 unassigned parms before splitting.
17058 (parm_in_unassigned_mem_p): New. Use it instead of
17059 parm_maybe_byref_p throughout this file.
17060 (assign_parm_setup_block): Use it. Accept pseudos in the
17061 expand-assigned rtl.
17062 (assign_parm_setup_reg): Drop BLKmode requirement.
17063 (assign_parm_setup_stack): Allocate and fill in the address of
17064 unassigned MEM parms.
17065
17066 2015-08-19 David Sherwood <david.sherwood@arm.com>
17067
17068 * genmodes.c (emit_mode_unit_size_inline): New function.
17069 (emit_mode_unit_precision_inline): New function.
17070 (emit_insn_modes_h): Emit new #define. Emit new functions.
17071 (emit_mode_unit_size): New function.
17072 (emit_mode_unit_precision): New function.
17073 (emit_mode_adjustments): Add mode_unit_size adjustments.
17074 (emit_insn_modes_c): Emit new arrays.
17075 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
17076 use new inline methods.
17077
17078 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17079
17080 * config/aarch64/aarch64.c (bit_count): Delete prototype
17081 and definition.
17082 (aarch64_print_operand): Use popcount_hwi instead of the above.
17083
17084 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17085
17086 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
17087 comment.
17088
17089 2015-08-19 Marek Polacek <polacek@redhat.com>
17090
17091 PR middle-end/67133
17092 * gimple-ssa-isolate-paths.c
17093 (insert_trap_and_remove_trailing_statements): Rename to ...
17094 (insert_trap): ... this. Don't remove trailing statements; split
17095 block instead.
17096 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
17097
17098 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
17099
17100 PR other/67042
17101 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
17102 conditionalize the whole on __GNUC__. Add fallback code
17103 depending neither on undefined nor implementation-defined behaviour.
17104
17105 2015-08-19 Jiong Wang <jiong.wang@arm.com>
17106
17107 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
17108 whitespaces with tab.
17109
17110 2015-08-19 Florian Weimer <fweimer@redhat.com>
17111
17112 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
17113 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
17114 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
17115 Move Name_Ids instantiation to the Prj.Proc package, to avoid
17116 trampolines.
17117
17118 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17119
17120 * config/arm/arm.c (bounds_check): Use %wd print format
17121 for HOST_WIDE_INT arguments.
17122
17123 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
17124
17125 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
17126 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
17127 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
17128 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
17129 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
17130 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
17131 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
17132 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
17133 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
17134 typedefs.
17135
17136 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
17137
17138 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
17139 function.c, graphite-scop-detection.c, haifa-sched.c,
17140 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
17141 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
17142 varasm.c: Remove typedefs of structs.
17143
17144 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
17145
17146 * config/rs6000/altivec.h (vec_adde): New define.
17147 (vec_addec): Likewise.
17148 (vec_double): Likewise.
17149 (vec_bperm): Likewise.
17150 (vec_gb): Likewise.
17151 * config/rs6000/rs6000-builtin.def (ADDE): New
17152 BU_ALTIVEC_OVERLOAD_3.
17153 (ADDEC): Likewise.
17154 (DOUBLE): New BU_VSX_OVERLOAD_1.
17155 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
17156 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
17157 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
17158 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
17159 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
17160 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
17161 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
17162 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
17163 and P8V_BUILTIN_VEC_VBPERMQ.
17164
17165 2015-08-18 Jason Merrill <jason@redhat.com>
17166
17167 * print-tree.c (print_node): Handle TREE_BINFO.
17168
17169 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17170
17171 PR middle-end/36757
17172 * builtins.c (expand_builtin_signbit): Add asserts to make sure
17173 we can expand BUILT_IN_SIGNBIT inline.
17174 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
17175 * doc/extend.texi: Document the type-generic __builtin_signbit.
17176
17177 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
17178
17179 PR rtl-optimization/67218
17180 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
17181 (simplify_unary_operation_1): Use it.
17182
17183 2015-08-18 Marek Polacek <polacek@redhat.com>
17184
17185 PR middle-end/67222
17186 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
17187 if the call isn't valid.
17188 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
17189 gimple_call_builtin_p.
17190 (call_may_clobber_ref_p_1): Likewise.
17191 (stmt_kills_ref_p): Likewise.
17192
17193 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
17194
17195 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
17196 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
17197 (mips_hard_regno_scratch_ok): Likewise.
17198 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
17199 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
17200
17201 2015-08-18 Bin Cheng <bin.cheng@arm.com>
17202
17203 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
17204 (determine_value_range): Call refine_value_range_using_guard for
17205 each loop initial condition to improve value range.
17206
17207 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
17208
17209 * config/i386/i386.c: Remove include of fibheap.h.
17210
17211 2015-08-17 Richard Biener <rguenther@suse.de>
17212
17213 PR tree-optimization/67221
17214 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
17215 (sccvn_dom_walker::before_dom_children): Mark backedges of
17216 non-executable blocks as not executable.
17217
17218 2015-08-17 David Sherwood <david.sherwood@arm.com>
17219
17220 * config/arm/arm.c (neon_element_bits): Replace call to
17221 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
17222 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
17223 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
17224 (neon_vdup_lane<mode>): Likewise.
17225 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
17226 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
17227 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
17228 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
17229 * config/spu/spu.c (arith_immediate_p): Likewise.
17230 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
17231 * expr.c (expand_expr_real_2): Likewise.
17232 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
17233 * simplify-rtx.c (simplify_immed_subreg): Likewise.
17234 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
17235 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
17236 New variable.
17237 * fold-const.c (fold_binary_loc): Replace call to
17238 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
17239 GET_MODE_UNIT_PRECISION (m).
17240
17241 2015-08-17 Mike Stump <mikestump@comcast.net>
17242
17243 * config/arm/arm.c (arm_block_move_unaligned_straight):
17244 Emit normal move instead of unaligned load when source or destination
17245 are appropriately aligned.
17246
17247 2015-08-17 Richard Biener <rguenther@suse.de>
17248 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17249
17250 PR middle-end/16107
17251 * match.pd (div (coss (op @0) : New simplifier.
17252
17253 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
17254
17255 PR rtl-optimization/64164
17256 PR bootstrap/66978
17257 PR middle-end/66983
17258 PR rtl-optimization/67000
17259 PR middle-end/67034
17260 PR middle-end/67035
17261 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17262 * tree-ssa-copyrename.c: Removed.
17263 * opts.c (default_options_table): Drop -ftree-copyrename. Add
17264 -ftree-coalesce-vars.
17265 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17266 * common.opt (ftree-copyrename): Ignore.
17267 (ftree-coalesce-inlined-vars): Likewise.
17268 * doc/invoke.texi: Remove the ignored options above.
17269 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17270 * tree-ssa-coalesce.h: ... here.
17271 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17272 headers required by it.
17273 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17274 across variables when flag_tree_coalesce_vars. Check register
17275 use and promoted modes to allow coalescing. Do not coalesce
17276 maybe-byref parms with SSA_NAMEs of other variables, or
17277 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
17278 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17279 with its member functions to tree-ssa-coalesce.c.
17280 (var_map_base_init): Likewise. Renamed to
17281 compute_samebase_partition_bases.
17282 (partition_view_normal): Drop want_bases parameter.
17283 (partition_view_bitmap): Likewise.
17284 * tree-ssa-live.h: Adjust declarations.
17285 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
17286 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17287 default defs at the entry point.
17288 (dump_part_var_map): New.
17289 (compute_optimized_partition_bases): New, called by...
17290 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17291 of compute_samebase_partition_bases. Adjust.
17292 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17293 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
17294 (ssa_default_def_partition): New.
17295 (get_rtl_for_parm_ssa_default_def): New.
17296 (align_local_variable, add_stack_var): Support anonymous SSA
17297 names.
17298 (defer_stack_allocation): Likewise. Declare earlier.
17299 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17300 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17301 Do no record deferred-allocation marker in
17302 SA.partition_to_pseudo.
17303 (expand_stack_vars): Adjust check for the marker in it.
17304 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
17305 redundant MEM attr setting.
17306 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
17307 from...
17308 (expand_one_stack_var): ... this. New wrapper to check and
17309 skip already expanded SSA partitions.
17310 (record_alignment_for_reg_var): New, factored out of...
17311 (expand_one_var): ... this.
17312 (expand_one_ssa_partition): New.
17313 (adjust_one_expanded_partition_var): New.
17314 (expand_one_register_var): Check and skip already expanded SSA
17315 partitions.
17316 (expand_used_vars): Don't create DECLs for anonymous SSA
17317 names. Expand all SSA partitions, then adjust all SSA names.
17318 (pass::execute): Replace the loops that set
17319 SA.partition_to_pseudo from partition leaders and cleared
17320 DECL_RTL for multi-location variables, and that which used to
17321 rename vars and set attrs, with one that clears DECL_RTL and
17322 checks that PARMs and RESULTs default_defs match DECL_RTL.
17323 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17324 * emit-rtl.c: Include stor-layout.h.
17325 (set_reg_attrs_for_parm): Handle NULL decl.
17326 (set_reg_attrs_for_decl_rtl): Take mode from expression if
17327 it's not a DECL.
17328 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
17329 rather than its possibly-NULL DECL.
17330 * explow.c (promote_ssa_mode): New.
17331 * explow.h (promote_ssa_mode): Declare.
17332 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17333 (read_complex_part): Export.
17334 * expr.h (read_complex_part): Declare.
17335 * cfgexpand.h (parm_maybe_byref_p): Declare.
17336 * function.c: Include cfgexpand.h.
17337 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17338 (use_register_for_parm_decl): Wrapper for the above to
17339 special-case the result_ptr.
17340 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17341 (split_complex_args): Take assign_parm_data_all argument.
17342 Pass it to rtl_for_parm. Set up rtl and context for split
17343 args. Reset complex parm before fetching its default decl
17344 rtl.
17345 (assign_parms_unsplit_complex): Use the default-def complex
17346 parm rtl if it matches the components.
17347 (assign_parms_augmented_arg_list): Adjust.
17348 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17349 multiple locations. Recognize split complex args.
17350 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17351 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
17352 (assign_parm_setup_block): Prefer SSA-assigned location, and
17353 fill in its address if the memory location of a maybe-byref
17354 parm was not assigned by cfgexpand.
17355 (assign_parm_setup_reg): Likewise. Adjust its mode as
17356 needed. Use entry_parm for equiv if stack_parm is NULL. Make
17357 sure passed_pointer parms don't need conversion. Copy address
17358 or value as needed.
17359 (assign_parm_setup_stack): Prefer SSA-assigned location.
17360 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
17361 rtl before testing for pointer bounds. Special-case result_ptr.
17362 (expand_function_start): Maybe reset DECL_RTL of result.
17363 Prefer SSA-assigned location for result and static chain.
17364 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
17365 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
17366 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17367 anonymous SSA names. Use promote_ssa_mode.
17368 (get_temp_reg): Likewise.
17369 (remove_ssa_form): Adjust.
17370 * stor-layout.c (layout_decl): Don't set mem attributes of
17371 non-MEMs.
17372 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17373 and get its reg_usage for reg invalidation.
17374 (compute_bb_dataflow): Pass it insn.
17375 (emit_notes_in_bb): Likewise.
17376
17377 2015-08-14 Marek Polacek <polacek@redhat.com>
17378
17379 * tree-core.h (tree_base): Fix typo.
17380
17381 2015-08-14 Marek Polacek <polacek@redhat.com>
17382
17383 PR middle-end/67133
17384 * gimple.c (infer_nonnull_range_by_attribute): Check that the
17385 nonnull argument position is not outside function arguments.
17386
17387 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
17388
17389 PR target/67143
17390 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
17391 'lconst_atomic' with 'const_atomic'.
17392 (atomic_fetch_<optab><mode>): Likewise.
17393 (atomic_<optab>_fetch<mode>): Likewise.
17394 * config/aarch64/iterators.md (lconst-atomic): Move below
17395 'const_atomic'.
17396 (const_atomic): New.
17397
17398 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
17399 Bernd Schmidt <bernds@codesourcery.com>
17400
17401 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
17402 debug options.
17403 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
17404 (DWARF2_DEBUGGING_INFO): Don't define.
17405 * debug.h (dwarf2_lineno_debug_hooks): Declare.
17406 * toplev.c (process_options): Add a case for it.
17407 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
17408 (dwarf2out_init): Skip most initializations if
17409 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
17410 case.
17411 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
17412 DWARF2_LINENO_DEBUGGING_INFO.
17413 * opts.c (set_debug_level): Likewise.
17414
17415 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
17416
17417 * config/arm/types.md (is_neon_type): Add missing types.
17418
17419 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
17420
17421 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
17422 for skylake.
17423 * config/i386/i386.c (PTA_SKYLAKE): New macros.
17424 (processor_alias_table): Add skylake description.
17425 (enum processor_model): Add skylake processor.
17426 (arch_names_table): Add skylake record.
17427 * doc/invoke.texi: Add skylake item.
17428
17429 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
17430
17431 * ira-int.h: Include recog.h.
17432 * ira-build.c: Don't include recog.h.
17433 * ira-color.c: Likewise.
17434 * ira-conflicts.c: Likewise.
17435 * ira-costs.c: Likewise.
17436 * ira-emit.c: Likewise.
17437 * ira-lives.c: Likewise.
17438 * ira.c: Likewise.
17439 * sched-deps.c: Likewise.
17440 * sel-sched.c: Likewise.
17441 * target-globals.c: Likewise.
17442
17443 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
17444
17445 PR bootstrap/55035
17446 * reload1.c (elimination_costs_in_insn): Make it obvious to the
17447 compiler that the n_dups and n_operands loop bounds are invariant.
17448
17449 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17450
17451 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
17452 expressions in A and B.
17453
17454 2015-08-13 Richard Biener <rguenther@suse.de>
17455
17456 * tree.c (nonnull_arg_p): Move from ...
17457 * tree-vrp.c (nonnull_arg_p): ... here.
17458 * tree.h (nonnull_arg_p): Declare.
17459 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
17460 here, register ptr != 0 for nonnull_arg_p pointer arguments.
17461 Properly initialize static chain and by-reference result pointer.
17462 (run_scc_vn): Adjust.
17463
17464 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
17465
17466 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
17467 TUNE_I6400.
17468
17469 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
17470
17471 * config/aarch64/aarch64-protos.h
17472 (aarch64_gen_atomic_cas): Declare.
17473 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
17474 Choose appropriate instruction pattern for the target.
17475 (aarch64_gen_atomic_cas): New.
17476 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
17477 (atomic_compare_and_swap<mode>_1): Rename to
17478 aarch64_compare_and_swap<mode>. Fix some indentation.
17479 (aarch64_compare_and_swap<mode>_lse): New.
17480 (aarch64_atomic_cas<mode>): New.
17481
17482 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
17483
17484 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
17485 (TARGET_LSE): New.
17486
17487 2015-08-13 Richard Biener <rguenther@suse.de>
17488
17489 PR tree-optimization/67191
17490 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
17491 assert we value-numbered last stmts operand because it can validly
17492 trigger for unreachable code.
17493
17494 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17495
17496 PR rtl-optimization/67103
17497 * ifcvt.c (noce_try_store_flag_constants): Move
17498 x = (-(test != 0) & (b - a)) + a transformation to...
17499 (noce_try_cmove): ... Here. Try it if normal conditional
17500 move fails.
17501
17502 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
17503
17504 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
17505 pseudo-processors.
17506 * config/mips/mips.md (processor): Remove w32 and w64.
17507
17508 2015-08-13 Richard Biener <rguenther@suse.de>
17509
17510 PR tree-optimization/66502
17511 PR tree-optimization/67167
17512 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
17513 backedge arguments.
17514 (vn_phi_lookup): Adjust.
17515 (vn_phi_insert): Likewise.
17516 (visit_phi): Prefer to value-number to another PHI node
17517 over value-numbering to a PHI argument.
17518 (init_scc_vn): Mark DFS back edges.
17519
17520 2015-08-13 Richard Biener <rguenther@suse.de>
17521
17522 * gimple.h (gcall::code_): New constant static member.
17523 (gcond::code_): Likewise.
17524 * gimple.c (gcall::code_): Define.
17525 (gcond::code_): Likewise.
17526 (is_a_helper <const gcond *>): Add.
17527 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
17528 and forward to a new gcall overload with less checking and a
17529 cheaper way to access the operand.
17530 (gimple_call_lhs_ptr): Likewise.
17531 (gimple_call_set_lhs): Likewise.
17532 (gimple_call_internal_p): Likewise.
17533 (gimple_call_with_bounds_p): Likewise.
17534 (gimple_call_set_with_bounds): Likewise.
17535 (gimple_call_internal_fn): Likewise.
17536 (gimple_call_set_ctrl_altering): Likewise.
17537 (gimple_call_ctrl_altering_p): Likewise.
17538 (gimple_call_fntype): Likewise.
17539 (gimple_call_fn): Likewise.
17540 (gimple_call_fn_ptr): Likewise.
17541 (gimple_call_set_fndecl): Likewise.
17542 (gimple_call_fndecl): Likewise.
17543 (gimple_call_chain): Likewise.
17544 (gimple_call_num_args): Likewise.
17545 (gimple_call_arg): Likewise.
17546 (gimple_call_arg_ptr): Likewise.
17547 (gimple_call_set_arg): Likewise.
17548 (gimple_call_noreturn_p): Likewise.
17549 (gimple_cond_code): Likewise.
17550 (gimple_cond_lhs): Likewise.
17551 (gimple_cond_rhs): Likewise.
17552 (gimple_has_lhs): Reduce checking.
17553
17554 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17555
17556 PR middle-end/25529
17557 * match.pd (div (mult @0 @1) @1) : New simplifier.
17558
17559 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17560
17561 PR target/67071
17562 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
17563 predicate to allow construction of vector constants using the
17564 VSLDOI vector shift instruction.
17565
17566 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
17567 declaration.
17568
17569 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
17570 the number of bytes to be shifted left and filled in with either
17571 all zero or all one bits.
17572 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
17573 methods exist.
17574 (output_vec_const_move): On power8, generate XXLORC to generate
17575 a vector constant with all 1's. Do a split if we need to use a
17576 VSLDOI instruction.
17577
17578 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
17579 properly test for the MSB.
17580
17581 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
17582 vector constants that can be created with VSLDOI.
17583
17584 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
17585
17586 revert:
17587 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
17588 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
17589 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
17590 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
17591 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
17592 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17593 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
17594 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
17595 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
17596
17597 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
17598
17599 * config/xtensa/constraints.md (define_constraint "Y"): New
17600 constraint.
17601 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
17602 * config/xtensa/linux.h (ASM_SPEC): Likewise.
17603 * config/xtensa/predicates.md (move_operand): Match constants
17604 and symbols in the presence of TARGET_AUTO_LITPOOLS.
17605 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
17606 immediate references to TLS data.
17607 (xtensa_emit_move_sequence): Don't force constants to memory in
17608 the presence of TARGET_AUTO_LITPOOLS.
17609 (print_operand): Add 'y' format, same as default, but capable of
17610 printing SF mode constants as well.
17611 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
17612 (movsf_internal): Add movi pattern that loads literal.
17613 (movsf, movdf): Don't force constants to memory in the presence
17614 of TARGET_AUTO_LITPOOLS.
17615 (movdf_internal): Add 'Y' constraint.
17616 * config/xtensa/xtensa.opt (mauto-litpools): New option.
17617 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
17618
17619 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
17620
17621 * config/arm/arm-fpus.def: Replace booleans with feature flags.
17622 Update comment.
17623 * config/arm/arm.c (ARM_FPU): Update macro.
17624 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
17625 (TARGET_FP16): Likewise.
17626 (TARGET_CRYPTO): Likewise.
17627 (TARGET_NEON): Likewise.
17628 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
17629 field features.
17630
17631 2015-08-12 Tom de Vries <tom@codesourcery.com>
17632
17633 PR other/67092
17634 PR other/67098
17635 * doc/install.texi: Remove --with_host_libstdcxx item. Update
17636 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
17637 accordingly. Mention default for --with-stage1-ldflags.
17638
17639 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
17640
17641 * config/arm/arm.h (arm_fpu_feature_set): New.
17642 (ARM_FPU_FSET_HAS): New.
17643 (FPU_FL_NONE): New.
17644 (FPU_FL_NEON): New.
17645 (FPU_FL_FP16): New.
17646 (FPU_FL_CRYPTO): New.
17647
17648 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17649
17650 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
17651 after -mcmodel=large -fPIC sorry.
17652
17653 2015-08-12 Richard Biener <rguenther@suse.de>
17654
17655 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
17656 comparison operand order and commutative ternary op operand order.
17657 (sccvn_dom_walker::cond_stack): New state to track temporary
17658 expressions.
17659 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
17660 no longer valid.
17661 (sccvn_dom_walker::record_cond): Add a single temporary conditional
17662 expression.
17663 (sccvn_dom_walker::record_conds): Add a temporary conditional
17664 expressions and all related expressions also true/false.
17665 (sccvn_dom_walker::before_dom_children): Record temporary
17666 expressions based on the controlling condition of a single
17667 predecessor. When trying to simplify a conditional statement
17668 lookup expressions we might have inserted earlier.
17669
17670 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
17671
17672 PR target/67127
17673 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
17674 to ARM core registers.
17675
17676 2015-08-12 Nathan Sidwell <nathan@acm.org>
17677
17678 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
17679 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
17680
17681 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
17682
17683 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
17684 line with comments.
17685 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
17686
17687 2015-08-12 Richard Biener <rguenther@suse.de>
17688
17689 * gimple.h (remove_pointer): New trait.
17690 (GIMPLE_CHECK2): New inline template function.
17691 (gassign::code_): New constant static member.
17692 (is_a_helper<const gassign *>): Add.
17693 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
17694 and forward to a new gassign overload with less checking and a
17695 cheaper way to access the operand.
17696 (gimple_assign_lhs_ptr): Likewise.
17697 (gimple_assign_set_lhs): Likewise.
17698 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
17699 Likewise.
17700 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
17701 Likewise.
17702 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
17703 Likewise.
17704 (gimple_assign_rhs_code): Likewise.
17705 * gimple.c (gassign::code_): Define.
17706
17707 2015-08-12 Richard Biener <rguenther@suse.de>
17708
17709 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17710 Eliminate edges marked as not executable by SCCVN.
17711 * tree-ssa-sccvn.c: Include gimple-iterator.h.
17712 (cond_dom_walker): Rename to sccvn_dom_walker.
17713 (sccvn_dom_walker::before_dom_children): Value-number defs
17714 of all stmts.
17715 (run_scc_vn): Remove loop value-numbering all SSA names.
17716 Drop not visited SSA names to varying.
17717
17718 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
17719
17720 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
17721 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
17722 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
17723 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
17724 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
17725 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17726 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
17727 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
17728 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
17729
17730 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
17731
17732 PR target/66954
17733 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
17734 to enum feature_priority and feature_list.
17735 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
17736 and isa_names_table.
17737
17738 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
17739
17740 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
17741 vect_induction_def.
17742
17743 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
17744
17745 PR c/66098
17746 PR c/66711
17747 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
17748 account when deciding what was the command-line status.
17749
17750 2015-08-11 Nathan Sidwell <nathan@acm.org>
17751
17752 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
17753
17754 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
17755 we're not the only contributor to target phi.
17756
17757 2015-08-11 Jiong Wang <jiong.wang@arm.com>
17758
17759 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
17760 FIXED_REG0.
17761
17762 2015-08-11 Tom de Vries <tom@codesourcery.com>
17763
17764 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
17765
17766 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
17767
17768 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
17769 with CPU_SLM.
17770 * config/i386/i386.md (cpu): Remove knl.
17771
17772 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
17773
17774 PR libgomp/65742
17775 PR middle-end/66332
17776 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
17777 open-coded sequence.
17778 * omp-low.c (oacc_process_reduction_data): Remove handline of
17779 GOMP_DEVICE_HOST_NONSHM.
17780
17781 * lto-streamer-in.c (lto_input_mode_table): Adjust to
17782 GET_MODE_INNER changes.
17783
17784 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
17785 Ilya Verbin <ilya.verbin@intel.com>
17786
17787 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
17788
17789 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
17790
17791 * doc/options.texi (EnabledBy): Document that the argument must be
17792 a Common option.
17793 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
17794 Not enabled by -Wall.
17795 * optc-gen.awk: Give nicer error messages. Detect if the argument
17796 of EnabledBy is not a Common option.
17797 * common.opt (Wnull-dereference): Not enabled by -Wall.
17798 * opt-functions.awk (lang_enabled_by): Nicer error messages.
17799
17800 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
17801
17802 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
17803 model == 0x4f as Broadwell.
17804
17805 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17806
17807 PR rtl-optimization/67028
17808 * combine.c (simplify_comparison): Fix comment. Rearrange code.
17809 Add test to see if a const_int fits in the new mode.
17810
17811 2015-08-07 DJ Delorie <dj@redhat.com>
17812
17813 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
17814
17815 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
17816
17817 PR rtl-optimization/67029
17818 * ira-color.c: Include "recog.h" before including "ira-int.h".
17819 * target-globals.c: Likewise.
17820 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
17821 adds an alternative_mask argument and use it instead of
17822 preferred_alternatives.
17823 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
17824 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
17825 * sched-deps.c: Include "ira-int.h" after including "ira.h".
17826 (sched_analyze_insn): Update call to
17827 ira_implicitly_set_insn_hard_regs.
17828 * sel-sched.c: Include "ira-int.h" after including "ira.h".
17829 (implicit_clobber_conflict_p): Update call to
17830 ira_implicitly_set_insn_hard_regs.
17831
17832 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
17833
17834 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
17835
17836 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
17837
17838 PR target/67002
17839 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
17840 currently_expanding_to_rtl is set.
17841
17842 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
17843
17844 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
17845 * configure: Regenerate.
17846
17847 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17848 Jiong Wang <jiong.wang@arm.com>
17849
17850 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
17851 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
17852 (REG_CLASS_NAMES): Likewise.
17853 (REG_CLASS_CONTENTS): Likewise.
17854 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
17855 (aarch64_register_move_cost): Likewise.
17856 (aarch64_load_symref_appropriately): Invoke the new added pattern if
17857 possible.
17858 * config/aarch64/constraints.md (Uc0): New constraint.
17859
17860 2015-08-06 Jiong Wang <jiong.wang@arm.com>
17861
17862 * config/aarch64/constraints.md (Usf): Add the test of
17863 aarch64_is_noplt_call_p.
17864
17865 2015-08-06 Jiong Wang <jiong.wang@arm.com>
17866
17867 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
17868 declaration.
17869 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
17870 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
17871 (call_symbol): Likewise.
17872
17873 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
17874
17875 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
17876 for vectorizing multiplication patterns.
17877 * tree-vectorizer.h: Adjust the number of patterns.
17878
17879 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
17880
17881 * config/i386/sse.md (*vec_concatv2df): Declare added
17882 alternatives as sselog type.
17883
17884 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17885
17886 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
17887 all GPRs.
17888
17889 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17890
17891 * config/s390/s390.c (s390_expand_tbegin): Expand either
17892 tbegin_1_z13 or tbegin_1 depending on VX flag.
17893 * config/s390/s390.md ("tbegin_1_z13"): New expander.
17894
17895 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17896
17897 * config/s390/s390.opt: Clarify description for -mzvector
17898 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
17899 -mzvector.
17900
17901 2015-08-06 Richard Biener <rguenther@suse.de>
17902
17903 * gimple.h (gimple_call_set_fn): Access op member directly.
17904 (gimple_call_chain_ptr): Likewise.
17905 (gimple_call_set_chain): Likewise.
17906 (gimple_cond_lhs_ptr): Likewise.
17907 (gimple_cond_set_lhs): Likewise.
17908 (gimple_cond_rhs_ptr): Likewise.
17909 (gimple_cond_set_rhs): Likewise.
17910 (gimple_cond_true_label): Likewise.
17911 (gimple_cond_set_true_label): Likewise.
17912 (gimple_cond_set_false_label): Likewise.
17913 (gimple_cond_false_label): Likewise.
17914 (gimple_label_label): Likewise.
17915 (gimple_label_set_label): Likewise.
17916 (gimple_goto_set_dest): Likewise.
17917 (gimple_asm_input_op): Likewise.
17918 (gimple_asm_input_op_ptr): Likewise.
17919 (gimple_asm_set_input_op): Likewise.
17920 (gimple_asm_output_op): Likewise.
17921 (gimple_asm_output_op_ptr): Likewise.
17922 (gimple_asm_set_output_op): Likewise.
17923 (gimple_asm_clobber_op): Likewise.
17924 (gimple_asm_set_clobber_op): Likewise.
17925 (gimple_asm_label_op): Likewise.
17926 (gimple_asm_set_label_op): Likewise.
17927 (gimple_switch_index): Likewise.
17928 (gimple_switch_index_ptr): Likewise.
17929 (gimple_return_retval_ptr): Likewise.
17930 (gimple_return_retval): Likewise.
17931 (gimple_return_set_retval): Likewise.
17932 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
17933 (gimple_switch_label): Likewise.
17934 (gimple_switch_set_label): Likewise.
17935
17936 2015-08-06 Richard Biener <rguenther@suse.de>
17937
17938 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
17939 bool comparison canonicalization and restrict to integers.
17940
17941 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
17942
17943 * coretypes.h (enum symbol_visibility): Relocate here.
17944 * flag-types.h (enum symbol_visibility): Remove.
17945 * tree-core.h (enum symbol_visibility): Remove.
17946
17947 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
17948
17949 PR target/66870
17950 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
17951 for no_split_stack function attribute along with
17952 flag_split_stack.
17953 (rs6000_expand_split_stack_prologue): Likewise.
17954
17955 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
17956 Jeff Law <law@redhat.com>
17957
17958 PR c/16351
17959 * doc/invoke.texi (Wnull-dereference): New.
17960 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
17961 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
17962 Warn for potential NULL dereferences.
17963 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
17964 * ubsan.c (instrument_nonnull_arg): Call
17965 infer_nonnull_range_by_attribute.
17966 (instrument_nonnull_return): Likewise.
17967 * common.opt (Wnull-dereference); New.
17968 * gimple.c (infer_nonnull_range): Remove bool arguments.
17969 (infer_nonnull_range_by_dereference): New.
17970 (infer_nonnull_range_by_attribute): New.
17971 * gimple.h: Update declarations.
17972
17973 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17974
17975 * gensupport.c (sequence_num): Replace with...
17976 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
17977 ...these new variables.
17978 (init_rtx_reader_args_cb): Update accordingly.
17979 (get_num_code_insns): Likewise.
17980 (read_md_rtx): Rework to use a while loop and get_c_test.
17981 Use the new counters. Remove redundant DEFINE_SUBST case.
17982 * genoutput.c (gen_split): Delete.
17983 (main): Don't call it.
17984
17985 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17986
17987 * gensupport.h (get_c_test): Declare.
17988 * gensupport.c (get_c_test): New function.
17989 * genconditions.c (main): Use it.
17990 * genrecog.c (validate_pattern): Likewise.
17991 (match_pattern_1): Likewise. Remove c_test argument.
17992 (match_pattern): Update accordingly and remove c_test argument.
17993 (main): Update accordingly.
17994
17995 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17996
17997 * gensupport.h (get_num_insn_codes): Declare.
17998 * gensupport.c (get_num_insn_codes): New function.
17999 * genattrtab.c (optimize_attrs): Rename max_insn_code to
18000 num_insn_codes.
18001 (main): Likewise. Use get_num_insn_codes.
18002 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
18003
18004 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
18005
18006 PR middle-end/66311
18007 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
18008 is zero- rather than sign-extended.
18009
18010 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
18011
18012 * target-insns.def (can_extend): Delete.
18013
18014 2015-08-05 Richard Biener <rguenther@suse.de>
18015
18016 PR tree-optimization/67121
18017 * tree-if-conv.c (combine_blocks): Clear range-info produced
18018 by stmts no longer executed conditionally.
18019
18020 2015-08-05 Nick Clifton <nickc@redhat.com>
18021
18022 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
18023 to allow identical far pointers to remain.
18024
18025 2015-08-05 Richard Biener <rguenther@suse.de>
18026
18027 PR middle-end/67120
18028 * match.pd: Compare address bases with == if they are decls
18029 or SSA names, not operand_equal_p. Otherwise fail.
18030
18031 2015-08-05 Richard Biener <rguenther@suse.de>
18032
18033 PR tree-optimization/67055
18034 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
18035 NULL gimple_block.
18036
18037 * g++.dg/torture/pr67055.C: New testcase.
18038
18039 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
18040
18041 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
18042 noavx512vl.
18043 (define_attr "enabled"): Handle avx521vl and noavx512vl.
18044 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
18045 AVX-512 alternative out of SSE.
18046 (define_insn "*vec_concatv2df"): Ditto.
18047
18048 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
18049
18050 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
18051 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
18052 CODE_FOR_avx_ptestv4di.
18053 * config/i386/sse.md (define_mode_iterator V_AVX): New.
18054 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
18055 (define_insn "avx_ptest256"): Merge this ...
18056 (define_insn "sse4_1_ptest"): And this ...
18057 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
18058
18059 2015-08-05 Richard Biener <rguenther@suse.de>
18060
18061 PR tree-optimization/67109
18062 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
18063 against too big groups. Print whether this is a load or store
18064 group. Rename from ...
18065 (vect_analyze_group_access): ... this which is now a wrapper
18066 dissolving an invalid group.
18067 (vect_analyze_data_ref_accesses): Print whether this is a load
18068 or store group.
18069
18070 2015-08-05 Richard Biener <rguenther@suse.de>
18071
18072 PR middle-end/67107
18073 * match.pd: Guard const_binop result checking against NULL_TREE
18074 result.
18075
18076 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
18077
18078 * cse.c (cse_insn): Restoring old behaviour for src_eqv
18079 when dest and value in the REG_EQUAL are same and dest
18080 is STRICT_LOW_PART.
18081
18082 2015-08-04 Anatoly Sokolov <aesok@post.ru>
18083
18084 * config/moxie/moxie.h (PRINT_OPERAND,
18085 PRINT_OPERAND_ADDRESS): Remove macros.
18086 * config/moxie/moxie-protos.h (moxie_print_operand,
18087 moxie_print_operand_address): Remove declaration.
18088 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
18089 TARGET_PRINT_OPERAND_ADDRESS): Define.
18090 (moxie_print_operand, moxie_print_operand_address): Make static.
18091
18092 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
18093
18094 PR target/66731
18095 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
18096 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
18097
18098 2015-08-04 Richard Biener <rguenther@suse.de>
18099
18100 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
18101 generated code.
18102 (dt_operand::gen_gimple_expr): Adjust.
18103
18104 2015-08-04 Richard Biener <rguenther@suse.de>
18105
18106 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
18107 bool compares on RHS.
18108 * match.pd: Add X ==/!= !X is false/true pattern.
18109
18110 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
18111
18112 * config/aarch64/aarch64.c: Change inner loop statement cost
18113 to be consistent with other targets.
18114
18115 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
18116
18117 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
18118 targets.
18119
18120 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
18121
18122 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
18123 (machine_function): Remove pseudos field.
18124
18125 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18126
18127 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
18128 Exit early and use target_option_current_node if processing current
18129 pragma.
18130
18131 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18132
18133 * doc/extend.texi (AArch64 Function Attributes): New node.
18134 (AArch64 Pragmas): Likewise.
18135
18136 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18137
18138 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
18139 Initialize simd builtins if TARGET_SIMD.
18140 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
18141 Make sure that the builtins are initialized only once no matter how
18142 many times the function is called.
18143 (aarch64_init_builtins): Unconditionally initialize crc builtins.
18144 (aarch64_relayout_simd_param): New function.
18145 (aarch64_simd_expand_args): Use above during argument expansion.
18146 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
18147 simd builtins if TARGET_SIMD.
18148 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
18149 prototype.
18150 (aarch64_relayout_simd_types): Likewise.
18151
18152 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18153
18154 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
18155 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
18156 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
18157 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
18158 static keyword.
18159 (aarch64_reset_previous_fndecl): New function.
18160 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
18161 the string.
18162 * config/aarch64/aarch64-c.c: New file.
18163 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
18164 Push and pop options at beginning and end. Remove ifdef
18165 __ARM_FEATURE_CRC32.
18166 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
18167 Add pragma +nothing+simd and +nothing+crypto where appropriate.
18168 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
18169 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
18170 Define prototype.
18171 (aarch64_register_pragmas): Likewise.
18172 (aarch64_reset_previous_fndecl): Likewise.
18173 (aarch64_process_target_attr): Likewise.
18174 (aarch64_override_options_internal): Likewise.
18175
18176 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18177
18178 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
18179 New function.
18180 (aarch64_can_inline_p): Likewise.
18181 (TARGET_CAN_INLINE_P): Define.
18182
18183 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18184
18185 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
18186 Remove static. Handle OPT_mgeneral_regs_only,
18187 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
18188 OPT_momit_leaf_frame_pointer.
18189 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
18190 (aarch64_attr_opt_type): New enum.
18191 (aarch64_attribute_info): New struct.
18192 (aarch64_handle_attr_arch): New function.
18193 (aarch64_handle_attr_cpu): Likewise.
18194 (aarch64_handle_attr_tune): Likewise.
18195 (aarch64_handle_attr_isa_flags): Likewise.
18196 (aarch64_attributes): New table.
18197 (aarch64_process_one_target_attr): New function.
18198 (num_occurences_in_str): Likewise.
18199 (aarch64_process_target_attr): Likewise.
18200 (aarch64_option_valid_attribute_p): Likewise.
18201 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
18202 * config/aarch64/aarch64-protos.h: Include input.h
18203 (aarch64_handle_option): Declare prototype.
18204
18205 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18206
18207 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
18208 * config/aarch64/aarch64.c: Include target-globals.h
18209 (aarch64_previous_fndecl): New variable.
18210 (aarch64_set_current_function): New function.
18211 (TARGET_SET_CURRENT_FUNCTION): Define.
18212
18213 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18214
18215 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
18216 (explicit_arch): Likewise.
18217 (x_aarch64_isa_flags): Likewise.
18218 (mgeneral-regs-only): Mark as Save.
18219 (mfix-cortex-a53-835769): Likewise.
18220 (mcmodel=): Likewise.
18221 (mstrict-align): Likewise.
18222 (momit-leaf-frame-pointer): Likewise.
18223 (mtls-dialect): Likewise.
18224 (master=): Likewise.
18225 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
18226 (aarch64_isa_flags): Remove extern declaration.
18227 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
18228 to indicate success or failure.
18229 (aarch64_validate_march): Likewise.
18230 (aarch64_validate_mtune): Likewise.
18231 (aarch64_isa_flags): Delete.
18232 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
18233 instead of aarch64_isa_flags.
18234 (aarch64_get_tune_cpu): New function.
18235 (aarch64_get_arch): Likewise.
18236 (aarch64_override_options): Use above and set up explicit_tune_core
18237 and explicit_arch.
18238 (aarch64_print_extension): Move earlier in file. Add isa_flags
18239 argument and use that instead of the global aarch64_isa_flags.
18240 (aarch64_option_save): New function.
18241 (aarch64_option_restore): Likewise.
18242 (aarch64_option_print): Likewise.
18243 (aarch64_declare_function_name): Likewise.
18244 (aarch64_start_file): Delete.
18245 (TARGET_ASM_FILE_START): Do not define.
18246 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
18247 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
18248 Declare prototype.
18249
18250 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18251
18252 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
18253 flag_omit_leaf_frame_pointer to 2.
18254
18255 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18256
18257 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
18258 define to 0 or 1.
18259 (TARGET_FIX_ERR_A53_835769): New macro.
18260 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
18261 handling of opts->x_aarch64_fix_a53_err835769.
18262 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
18263 than aarch64_fix_a53_err835769.
18264 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
18265 * config/aarch64/aarch64-linux.h: Likewise.
18266
18267 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
18268
18269 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
18270 ix86_expand_int_movcc as boolean.
18271
18272 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18273
18274 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
18275 (aarch64_cpu_string): Likewise.
18276 (aarch64_tune_string): Likewise.
18277 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
18278 (aarch64_parse_extension): Return aarch64_parse_opt_result.
18279 Add extra argument to put result into.
18280 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
18281 (aarch64_parse_cpu): Add arguments to put results into. Return
18282 aarch64_parse_opt_result.
18283 (aarch64_parse_tune): Likewise.
18284 (aarch64_override_options_after_change_1): New function.
18285 (aarch64_override_options_internal): New function.
18286 (aarch64_validate_mcpu): Likewise.
18287 (aarch64_validate_march): Likewise.
18288 (aarch64_validate_mtune): Likewise.
18289 (aarch64_override_options): Update to reflect above changes.
18290 Move some logic into aarch64_override_options_internal.
18291 Initialize target_option_default_node and target_option_current_node.
18292 (aarch64_override_options_after_change): Move logic into
18293 aarch64_override_options_after_change_1 and call it with global_options.
18294 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
18295 flag values from that.
18296
18297 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18298
18299 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
18300 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
18301 * config/aarch64/aarch64.c (struct processor): Add arch field.
18302 (all_architectures): Handle above, move above all_cores.
18303 (all_cores): Handle above.
18304 (aarch64_parse_arch): Handle above changes.
18305 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
18306 above. Update comments.
18307 (armv8.1-a): Likewise.
18308 * config/aarch64/aarch64-cores.def: Update according to above.
18309 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
18310 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
18311 aarch64_arch_driver_info.
18312
18313 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18314
18315 * config/aarch64/aarch64.c (struct processor): Add ident field.
18316 Rename core sched_core.
18317 (all_cores): Handle above changes.
18318 (all_architectures): Likewise.
18319 (aarch64_parse_arch): Likewise.
18320 (aarch64_override_options): Likewise.
18321
18322 2015-08-04 Richard Biener <rguenther@suse.de>
18323
18324 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
18325 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
18326 comparisons embedded in [VEC_]COND_EXPRs.
18327
18328 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
18329
18330 * tree-if-conv.c: Fix various typos in comments.
18331 * tree-vect-stmts.c: Likewise.
18332
18333 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
18334
18335 PR tree-optimization/67043
18336 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
18337 preheader after hoisting invariant in it.
18338 (find_defs): Force recomputation of all luids.
18339
18340 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
18341
18342 * config/rs6000/htm.md (tabort.): Restrict the source operand to
18343 using a base register.
18344
18345 2015-08-03 David Malcolm <dmalcolm@redhat.com>
18346
18347 * main.c (main): Pass in NULL for toplev's external_timer.
18348 * timevar.c: Include coretypes.h.
18349 (class timer::named_items): New.
18350 (timer::named_items::named_items): New.
18351 (timer::named_items::~named_items): New.
18352 (timer::named_items::push): New.
18353 (timer::named_items::pop): New.
18354 (timer::named_items::print): New.
18355 (timer::timer): Initialize field "m_jit_client_items".
18356 (timer::~timer): New.
18357 (timer::push): Move bulk of implementation to...
18358 (timer::push_internal): ...here. New function.
18359 (timer::pop): Move bulk of implementation to...
18360 (timer::pop_internal): ...here. New function.
18361 (timer::push_client_item): New.
18362 (timer::pop_client_item): New.
18363 (timer::print_row): New function, taken from timer::print.
18364 (timer::print): Print "GCC items" header if we also have client
18365 items. Move row-printing to timer::print_row. Print any client
18366 items.
18367 (timer::get_topmost_item_name): New method.
18368 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
18369 (TV_JIT_CLIENT_CODE): New.
18370 * timevar.h (timer::push_client_item): New declaration.
18371 (timer::pop_client_item): New declaration.
18372 (timer::get_topmost_item_name): New method.
18373 (timer::push_internal): New declaration.
18374 (timer::pop_internal): New declaration.
18375 (timer::print_row): New declaration.
18376 (timer::named_items): New declaration.
18377 (timer::m_jit_client_items): New field.
18378 (timer): Add friend class named_items.
18379 (auto_timevar::auto_timevar): Add timer param.
18380 (auto_timevar::~auto_timevar): Use field "m_timer".
18381 (auto_timevar::m_timer): New field.
18382 * toplev.c (initialize_rtl): Add g_timer as param when
18383 constructing auto_timevar instance.
18384 (toplev::toplev): Add "external_timer" param, and use it to
18385 initialize the "g_timer" global if non-NULL.
18386 (toplev::~toplev): If this created "g_timer", delete it.
18387 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
18388 with "external_timer" timer *.
18389
18390 2015-08-03 Alexander Basov <coohpt@gmail.com>
18391
18392 PR middle-end/64744
18393 PR middle-end/48470
18394 PR middle-end/43404
18395 * cfgexpand.c (expand_one_var): Add check if stack is going to
18396 be used in naked function.
18397 * expr.c (expand_expr_addr_expr_1): Remove excess checking
18398 whether expression should not reside in MEM.
18399 * function.c (use_register_for_decl): Do not use registers for
18400 non-register things (volatile, float, BLKMode) in naked functions.
18401
18402 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
18403
18404 PR target/67060
18405 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
18406 Adjust splits to match new pattern.
18407
18408 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
18409
18410 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
18411 (VEC_M): Likewise.
18412 (VEC_N): Likewise.
18413 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
18414 point in VSX registers.
18415
18416 * config/rs6000/constraints.md (wb constraint): Document unused
18417 w<x> constraint.
18418 (we constraint): Likewise.
18419 (wo constraint): Likewise.
18420 (wp constraint): New constraint for IEEE 128-bit floating point in
18421 VSX registers.
18422 (wq constraint): Likewise.
18423
18424 * config/rs6000/predicates.md (easy_fp_constant): Add support for
18425 IEEE 128-bit floating point in VSX registers.
18426 (easy_scalar_constant): Likewise.
18427
18428 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
18429 constraints (wp, wq) for IEEE 128-bit floating point in VSX
18430 registers.
18431 (rs6000_init_hard_regno_mode_ok): Likewise.
18432
18433 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
18434 floating point in VSX registers.
18435 (VSX_L): Likewise.
18436 (VSX_M): Likewise.
18437 (VSX_M2): Likewise.
18438 (VSm): Likewise.
18439 (VSs): Likewise.
18440 (VSr): Likewise.
18441 (VSa): Likewise.
18442 (VSv): Likewise.
18443 (vsx_le_permute_<mode>): Add support to properly swap bytes for
18444 IEEE 128-bit floating point in VSX registers on little endian.
18445 (vsx_le_undo_permute_<mode>): Likewise.
18446 (vsx_le_perm_load_<mode>): Likewise.
18447 (vsx_le_perm_store_<mode>): Likewise.
18448 (splitters for IEEE 128-bit fp moves): Likewise.
18449
18450 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
18451 wq constraints.
18452
18453 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
18454 floating point in VSX registers.
18455 (VM2): Likewise.
18456
18457 * doc/md.text (Machine Constraints): Document wp and wq
18458 constraints on PowerPC.
18459
18460 2015-08-03 Jeff Law <law@redhat.com>
18461
18462 PR middle-end/66314
18463 PR gcov-profile/66899
18464 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
18465 iterate over the jump threading paths when an element in the
18466 jump threading paths array is eliminated.
18467
18468 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
18469
18470 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
18471
18472 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
18473
18474 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
18475 is_use_properly_guarded the variable def_preds. Free its
18476 contents before returning.
18477 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
18478 (is_use_properly_guarded): Replace local variable def_preds with
18479 a parameter. Adjust accordingly. Only update *def_preds if it's
18480 the empty vector.
18481
18482 2015-08-03 Richard Biener <rguenther@suse.de>
18483
18484 * genmatch.c (simplify::for_subst_vec): New member.
18485 (binary_ok): New helper for for lowering.
18486 (lower_for): Delay substituting operators into result expressions
18487 if we can merge the results eventually again.
18488 (capture_info::walk_result): Adjust for user_id appearing as
18489 result expression operator.
18490 (expr::gen_transform): Likewise.
18491 (dt_simplify::gen_1): Likewise.
18492 (dt_simplify::gen): Pass not substituted operators to tail
18493 functions or initialize local variable with it.
18494 (decision_tree::gen): Adjust function signature.
18495 * match.pd: Fix tests against global code and add default
18496 cases to switch stmts.
18497
18498 2015-08-03 Richard Biener <rguenther@suse.de>
18499
18500 * genmatch.c (dt_simplify::gen): Create captures array
18501 with an initializer.
18502
18503 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18504
18505 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
18506 the host compiler is affected by placement new aliasing bug.
18507 * configure: Regenerate.
18508 * Makefile.in (ALIASING_FLAGS): New variable.
18509 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
18510
18511 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
18512
18513 PR target/66731
18514 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
18515 (negmulsf3_vfp): Likewise.
18516 (muldf3negdf_vfp): Disable for -frounding-math.
18517 (mulsf3negsf_vfp): Likewise.
18518 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
18519 fix MULT cost with -frounding-math.
18520
18521 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18522
18523 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
18524 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
18525 explicit. Prefer to add the flag whenever possible.
18526 (noce_process_if_block): Try noce_try_store_flag_constants before
18527 noce_try_cmove.
18528
18529 2015-08-03 Richard Biener <rguenther@suse.de>
18530
18531 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
18532 New hash-map to record equivalent transforms.
18533 (dt_node::analyze): Populate the equivalent transforms hash-map.
18534 (dt_simplify::info): Add reference to hash-map entry.
18535 (dt_simplify::gen): If we have split out a function for the
18536 transform, generate a call to it.
18537 (sinfo_hashmap_traits::hash): New function.
18538 (compare_op): New helper function for ...
18539 (sinfo_hashmap_traits::equal_keys): ... this new function.
18540 (decision_tree::gen): Split out common equivalent transforms
18541 into functions.
18542
18543 2015-08-03 Richard Biener <rguenther@suse.de>
18544
18545 * gimple-fold.c (fold_gimple_assign): Remove folding of
18546 the comparison in COND_EXPRs.
18547
18548 2015-08-03 Richard Biener <rguenther@suse.de>
18549
18550 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
18551 on the rhs of assignments first simplify the embedded
18552 GENERIC condition.
18553
18554 2015-08-03 Richard Biener <rguenther@suse.de>
18555
18556 PR tree-optimization/66917
18557 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
18558 field.
18559 (DR_VECT_AUX): New macro.
18560 (set_dr_misalignment): Adjust.
18561 (dr_misalignment): Likewise.
18562 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18563 Compute whether the base is at least element aligned.
18564 * tree-vect-stmts.c (ensure_base_align): Adjust.
18565 (vectorizable_store): If the base is not element aligned
18566 preserve alignment of the original access if misalignment is unknown.
18567 (vectorizable_load): Likewise.
18568
18569 2015-08-02 Martin Sebor <msebor@redhat.com>
18570
18571 * doc/invoke.texi (Wframe-address): Document it.
18572 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
18573 Clarify possible effects of calling the functions with non-zero
18574 arguments and mention -Wframe-address.
18575 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
18576
18577 2015-08-01 Michael Collison <michael.collison@linaro.org
18578 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18579
18580 * config/arm/arm.md (*arm_smin_cmp): New pattern.
18581 (*arm_umin_cmp): Likewise.
18582
18583 2015-08-01 Caroline Tice <cmtice@google.com>
18584
18585 PR 66521
18586 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
18587 global variables.
18588 (vtbl_find_mangled_name): New function.
18589 (vtbl_register_mangled_name): New function.
18590 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
18591 mangled name in mangled name vectors.
18592 (find_or_create_vtbl_map_node): Ditto.
18593 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
18594 update recursion_depth on function entry; pass it to every recursive
18595 call; automatically exit if depth > 25 (give up looking at that point).
18596 (verify_bb_vtables): Initialize recursion_depth and pass it to
18597 var_is_used_for_virtual_call_p.
18598 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
18599 global variable decls.
18600 (vtbl_register_mangled_name): New extern function decl.
18601
18602 2015-08-01 Tom de Vries <tom@codesourcery.com>
18603
18604 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
18605 function.
18606 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
18607 Declare.
18608 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
18609 operation_no_trapping_overflow. Allow non-overflow operations.
18610 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
18611 operations.
18612
18613 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
18614
18615 PR target/67049
18616 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
18617
18618 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18619
18620 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
18621 Enable for TARGET_32BIT.
18622 (*if_move_neg): Likewise.
18623
18624 2015-07-31 Nick Clifton <nickc@redhat.com>
18625
18626 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
18627 Returns true for __model__.
18628 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
18629
18630 2015-07-31 Alan Modra <amodra@gmail.com>
18631
18632 PR target/66870
18633 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
18634 (rs6000_emit_prologue): Set it.
18635 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
18636
18637 2015-07-31 Richard Biener <rguenther@suse.de>
18638
18639 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
18640 -> X == (C1 ^ C2) which is already implemented in match.pd.
18641 Remove redundant dispatching to fold_relational_const.
18642 Move unordered self and NaN compares ...
18643 * match.pd: ... as patterns here. Remove some stray captures
18644 and add a comment.
18645
18646 2015-07-31 Petr Murzin <petr.murzin@intel.com>
18647
18648 * config/i386/i386.c
18649 (bdesc_special_args): Convert mask type from signed to unsigned for
18650 masked builtins.
18651 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
18652 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
18653 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
18654 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
18655 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
18656 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
18657 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
18658 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
18659 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
18660 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
18661 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
18662 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
18663 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
18664 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
18665 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
18666 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
18667 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
18668 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
18669 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
18670 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
18671 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
18672 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
18673 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
18674 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
18675 * config/i386/i386-builtin-types.def
18676 (V16QI_FTYPE_V16SI): Remove.
18677 (V8DF_FTYPE_V8SI): Ditto.
18678 (V8HI_FTYPE_V8DI): Ditto.
18679 (V8SI_FTYPE_V8DI): Ditto.
18680 (V8SF_FTYPE_V8DF): Ditto.
18681 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
18682 (V16HI_FTYPE_V16SI): Ditto.
18683 (V16SF_FTYPE_V16HI): Ditto.
18684 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
18685 (V16SF_FTYPE_V16SI): Ditto.
18686 (V4DI_FTYPE_V4DI): Ditto.
18687 (V16SI_FTYPE_V16SF): Ditto.
18688 (V16SF_FTYPE_FLOAT): Ditto.
18689 (V8DF_FTYPE_DOUBLE): Ditto.
18690 (V8DI_FTYPE_INT64): Ditto.
18691 (V8DI_FTYPE_V4DI): Ditto.
18692 (V16QI_FTYPE_V8DI): Ditto.
18693 (UINT_FTYPE_V4SF): Ditto.
18694 (UINT64_FTYPE_V4SF): Ditto.
18695 (UINT_FTYPE_V2DF): Ditto.
18696 (UINT64_FTYPE_V2DF): Ditto.
18697 (V16SI_FTYPE_V16SI): Ditto.
18698 (V8DI_FTYPE_V8DI): Ditto.
18699 (V16SI_FTYPE_PV4SI): Ditto.
18700 (V16SF_FTYPE_PV4SF): Ditto.
18701 (V8DI_FTYPE_PV2DI): Ditto.
18702 (V8DF_FTYPE_PV2DF): Ditto.
18703 (V4DI_FTYPE_PV2DI): Ditto.
18704 (V4DF_FTYPE_PV2DF): Ditto.
18705 (V16SI_FTYPE_PV2SI): Ditto.
18706 (V16SF_FTYPE_PV2SF): Ditto.
18707 (V8DI_FTYPE_PV4DI): Ditto.
18708 (V8DF_FTYPE_PV4DF): Ditto.
18709 (V8SF_FTYPE_FLOAT): Ditto.
18710 (V4SF_FTYPE_FLOAT): Ditto.
18711 (V4DF_FTYPE_DOUBLE): Ditto.
18712 (V8SF_FTYPE_PV4SF): Ditto.
18713 (V8SI_FTYPE_PV4SI): Ditto.
18714 (V4SI_FTYPE_PV2SI): Ditto.
18715 (V8SF_FTYPE_PV2SF): Ditto.
18716 (V8SI_FTYPE_PV2SI): Ditto.
18717 (V16SF_FTYPE_PV8SF): Ditto.
18718 (V16SI_FTYPE_PV8SI): Ditto.
18719 (V8DI_FTYPE_V8SF): Ditto.
18720 (V4DI_FTYPE_V4SF): Ditto.
18721 (V2DI_FTYPE_V4SF): Ditto.
18722 (V64QI_FTYPE_QI): Ditto.
18723 (V32HI_FTYPE_HI): Ditto.
18724 (V8UHI_FTYPE_V8UHI): Ditto.
18725 (V16UHI_FTYPE_V16UHI): Ditto.
18726 (V32UHI_FTYPE_V32UHI): Ditto.
18727 (V2UDI_FTYPE_V2UDI): Ditto.
18728 (V4UDI_FTYPE_V4UDI): Ditto.
18729 (V8UDI_FTYPE_V8UDI): Ditto.
18730 (V4USI_FTYPE_V4USI): Ditto.
18731 (V8USI_FTYPE_V8USI): Ditto.
18732 (V16USI_FTYPE_V16USI): Ditto.
18733 (V2DF_FTYPE_V2DF_UINT64): Ditto.
18734 (V2DI_FTYPE_V2DF_V2DF): Ditto.
18735 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
18736 (V8DF_FTYPE_V8DF_V8DI): Ditto.
18737 (V4SF_FTYPE_V4SF_UINT64): Ditto.
18738 (V4SI_FTYPE_V4SF_V4SF): Ditto.
18739 (V16SF_FTYPE_V16SF_V16SI): Ditto.
18740 (V64QI_FTYPE_V32HI_V32HI): Ditto.
18741 (V32HI_FTYPE_V16SI_V16SI): Ditto.
18742 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
18743 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
18744 (V32HI_FTYPE_V64QI_V64QI): Ditto.
18745 (V32HI_FTYPE_V32HI_V32HI): Ditto.
18746 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
18747 (V16SI_FTYPE_V16SI_V4SI): Ditto.
18748 (V16SI_FTYPE_V16SI_V16SI): Ditto.
18749 (V16SI_FTYPE_V32HI_V32HI): Ditto.
18750 (V16SI_FTYPE_V16SI_SI): Ditto.
18751 (V8DI_FTYPE_V8DI_V8DI): Ditto.
18752 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
18753 (V8DI_FTYPE_V16SI_V16SI): Ditto.
18754 (V8DI_FTYPE_V8DI_V2DI): Ditto.
18755 (QI_FTYPE_QI): Ditto.
18756 (SI_FTYPE_SI): Ditto.
18757 (DI_FTYPE_DI): Ditto.
18758 (QI_FTYPE_QI_QI): Ditto.
18759 (QI_FTYPE_QI_INT): Ditto.
18760 (HI_FTYPE_HI_INT): Ditto.
18761 (SI_FTYPE_SI_INT): Ditto.
18762 (DI_FTYPE_DI_INT): Ditto.
18763 (HI_FTYPE_V16QI_V16QI): Ditto.
18764 (SI_FTYPE_V32QI_V32QI): Ditto.
18765 (DI_FTYPE_V64QI_V64QI): Ditto.
18766 (QI_FTYPE_V8HI_V8HI): Ditto.
18767 (HI_FTYPE_V16HI_V16HI): Ditto.
18768 (SI_FTYPE_V32HI_V32HI): Ditto.
18769 (QI_FTYPE_V4SI_V4SI): Ditto.
18770 (QI_FTYPE_V8SI_V8SI): Ditto.
18771 (QI_FTYPE_V2DI_V2DI): Ditto.
18772 (QI_FTYPE_V4DI_V4DI): Ditto.
18773 (QI_FTYPE_V8DI_V8DI): Ditto.
18774 (HI_FTYPE_V16SI_V16SI): Ditto.
18775 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
18776 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
18777 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
18778 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
18779 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
18780 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
18781 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
18782 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
18783 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
18784 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
18785 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
18786 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
18787 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
18788 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
18789 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
18790 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
18791 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
18792 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
18793 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
18794 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
18795 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
18796 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
18797 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
18798 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
18799 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
18800 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
18801 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
18802 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
18803 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
18804 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
18805 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
18806 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
18807 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
18808 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
18809 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
18810 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
18811 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
18812 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
18813 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
18814 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
18815 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
18816 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
18817 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
18818 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
18819 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
18820 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
18821 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
18822 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
18823 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
18824 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
18825 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
18826 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
18827 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
18828 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
18829 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
18830 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
18831 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
18832 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
18833 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
18834 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
18835 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
18836 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
18837 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
18838 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
18839 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
18840 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
18841 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
18842 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
18843 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
18844 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
18845 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
18846 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
18847 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
18848 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
18849 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
18850 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
18851 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
18852 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
18853 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
18854 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
18855 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
18856 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
18857 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
18858 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
18859 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
18860 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
18861 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
18862 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
18863 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
18864 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
18865 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
18866 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
18867 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
18868 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
18869 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
18870 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
18871 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
18872 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
18873 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
18874 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
18875 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
18876 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
18877 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
18878 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
18879 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
18880 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
18881 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
18882 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
18883 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
18884 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
18885 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
18886 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
18887 (HI_FTYPE_HI): Ditto.
18888 (HI_FTYPE_V16QI): Ditto.
18889 (SI_FTYPE_V32QI): Ditto.
18890 (DI_FTYPE_V64QI): Ditto.
18891 (QI_FTYPE_V8HI): Ditto.
18892 (HI_FTYPE_V16HI): Ditto.
18893 (SI_FTYPE_V32HI): Ditto.
18894 (QI_FTYPE_V4SI): Ditto.
18895 (QI_FTYPE_V8SI): Ditto.
18896 (HI_FTYPE_V16SI): Ditto.
18897 (QI_FTYPE_V2DI): Ditto.
18898 (QI_FTYPE_V4DI): Ditto.
18899 (QI_FTYPE_V8DI): Ditto.
18900 (V16QI_FTYPE_HI): Ditto.
18901 (V32QI_FTYPE_SI): Ditto.
18902 (V64QI_FTYPE_DI): Ditto.
18903 (V8HI_FTYPE_QI): Ditto.
18904 (V16HI_FTYPE_HI): Ditto.
18905 (V32HI_FTYPE_SI): Ditto.
18906 (V4SI_FTYPE_QI): Ditto.
18907 (V4SI_FTYPE_HI): Ditto.
18908 (V8SI_FTYPE_QI): Ditto.
18909 (V8SI_FTYPE_HI): Ditto.
18910 (V2DI_FTYPE_QI): Ditto.
18911 (V4DI_FTYPE_QI): Ditto.
18912 (HI_FTYPE_HI_HI): Ditto.
18913 (SI_FTYPE_SI_SI): Ditto.
18914 (DI_FTYPE_DI_DI): Ditto.
18915 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
18916 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
18917 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
18918 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
18919 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
18920 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
18921 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
18922 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
18923 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
18924 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
18925 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
18926 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
18927 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
18928 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
18929 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
18930 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
18931 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
18932 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
18933 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
18934 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
18935 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
18936 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
18937 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
18938 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
18939 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
18940 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
18941 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
18942 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
18943 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
18944 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
18945 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
18946 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
18947 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
18948 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
18949 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
18950 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
18951 (V16SI_FTYPE_HI): Ditto.
18952 (V8DI_FTYPE_QI): Ditto.
18953 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
18954 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
18955 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
18956 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
18957 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
18958 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
18959 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
18960 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
18961 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
18962 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
18963 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
18964 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
18965 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
18966 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
18967 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
18968 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
18969 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
18970 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
18971 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
18972 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
18973 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
18974 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
18975 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
18976 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
18977 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
18978 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
18979 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
18980 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
18981 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
18982 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
18983 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
18984 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
18985 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
18986 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
18987 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
18988 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
18989 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
18990 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
18991 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
18992 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
18993 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
18994 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
18995 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
18996 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
18997 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
18998 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
18999 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
19000 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
19001 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
19002 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
19003 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
19004 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
19005 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
19006 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
19007 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
19008 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
19009 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
19010 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
19011 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
19012 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
19013 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
19014 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
19015 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
19016 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
19017 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
19018 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
19019 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
19020 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
19021 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
19022 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
19023 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
19024 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
19025 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
19026 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
19027 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
19028 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
19029 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
19030 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
19031 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
19032 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
19033 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
19034 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
19035 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
19036 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
19037 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
19038 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
19039 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
19040 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
19041 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
19042 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
19043 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
19044 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
19045 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
19046 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
19047 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
19048 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
19049 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
19050 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
19051 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
19052 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
19053 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
19054 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
19055 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
19056 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
19057 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
19058 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
19059 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
19060 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
19061 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
19062 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
19063 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
19064 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
19065 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
19066 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
19067 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
19068 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
19069 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
19070 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
19071 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
19072 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
19073 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
19074 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
19075 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
19076 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
19077 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
19078 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
19079 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
19080 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
19081 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
19082 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
19083 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
19084 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
19085 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
19086 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
19087 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
19088 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
19089 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
19090 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
19091 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
19092 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
19093 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
19094 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
19095 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
19096 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
19097 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
19098 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
19099 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
19100 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
19101 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
19102 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
19103 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
19104 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
19105 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
19106 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
19107 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
19108 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
19109 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
19110 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
19111 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
19112 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
19113 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
19114 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
19115 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
19116 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
19117 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
19118 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
19119 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
19120 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
19121 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
19122 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
19123 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
19124 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
19125 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
19126 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
19127 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
19128 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
19129 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
19130 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
19131 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
19132 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
19133 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
19134 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
19135 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
19136 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
19137 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
19138 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
19139 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
19140 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
19141 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
19142 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
19143 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
19144 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
19145 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
19146 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
19147 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
19148 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
19149 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
19150 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
19151 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
19152 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
19153 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
19154 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
19155 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
19156 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
19157 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
19158 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
19159 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
19160 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
19161 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
19162 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
19163 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
19164 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
19165 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
19166 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
19167 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
19168 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
19169 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
19170 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
19171 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
19172 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
19173 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
19174 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
19175 (QI_FTYPE_V8DF_INT_QI): Ditto.
19176 (QI_FTYPE_V4DF_INT_QI): Ditto.
19177 (QI_FTYPE_V2DF_INT_QI): Ditto.
19178 (HI_FTYPE_V16SF_INT_HI): Ditto.
19179 (QI_FTYPE_V8SF_INT_QI): Ditto.
19180 (QI_FTYPE_V4SF_INT_QI): Ditto.
19181 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
19182
19183 2015-07-31 Richard Biener <rguenther@suse.de>
19184
19185 * gimple-fold.c (fold_gimple_assign): Remove folding of
19186 GIMPLE_BINARY_RHS.
19187
19188 2015-07-31 Tom de Vries <tom@codesourcery.com>
19189
19190 PR tree-optimization/66846
19191 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
19192 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
19193 (expand_omp_target) [ENABLE_CHECKING]: Same.
19194 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
19195 cfun if !LOOPS_NEED_FIXUP.
19196 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
19197 that omp_for already has its own loop struct.
19198 * tree-parloops.c (create_phi_for_local_result)
19199 (create_call_for_reduction): Handle simple latch bb.
19200 (create_parallel_loop): Add simple latch bb to preserve
19201 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
19202 (gen_parallel_loop): Remove call to cancel_loop_tree.
19203 (parallelize_loops): Skip loops that are inner loops of parallelized
19204 loops.
19205 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
19206 verify_loop_structure.
19207
19208 2015-07-30 Anatoly Sokolov <aesok@post.ru>
19209
19210 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
19211 * config/v850/v850.md (RV_REGNUM): New constants.
19212 * config/v850/v850.c (v850_libcall_value): New functions.
19213 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
19214 (TARGET_LIBCALL_VALUE): Define.
19215
19216 2015-07-30 Anatoly Sokolov <aesok@post.ru>
19217
19218 * rtl.h (lowpart_subreg): Move in file.
19219 * loop-iv.c (lowpart_subreg): Move to...
19220 * simplify-rtx.c (lowpart_subreg): ...here.
19221 (simplify_binary_operation_1): Use lowpart_subreg instead of
19222 simplify_gen_subreg.
19223 * expr.c (expand_expr_real_2): Ditto.
19224 * emit-rtl.c (gen_lowpart_common): Ditto.
19225 * combine.c (gen_lowpart_for_combine): Ditto.
19226 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
19227 expand_debug_source_expr): Ditto.
19228
19229 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
19230
19231 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
19232 (expand_builtin_atomic_clear): Remove support for atomic_clear
19233 pattern.
19234
19235 2015-07-30 Richard Biener <rguenther@suse.de>
19236
19237 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
19238 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
19239 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
19240 redundant operand canonicalization.
19241
19242 2015-07-30 David Sherwood <david.sherwood@arm.com>
19243
19244 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
19245 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
19246 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
19247 * config/arm/arm.c (neon_valid_immediate): Likewise.
19248 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
19249 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
19250 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
19251 (expand_vec_perm_vpshufb2_vpermq): Likewise.
19252 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
19253 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
19254 * config/i386/sse.md
19255 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
19256 (*ssse3_palignr<mode>_perm): Likewise.
19257 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
19258 * config/spu/spu.c (arith_immediate_p): Likewise.
19259 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
19260 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
19261
19262 2015-07-30 Richard Biener <rguenther@suse.de>
19263
19264 * genmatch.c (decision_tree::gen_gimple): Merge with ...
19265 (decision_tree::gen_generic): ... this into ...
19266 (decision_tree::gen): ... this.
19267 (main): Adjust callers.
19268
19269 2015-07-30 Richard Biener <rguenther@suse.de>
19270
19271 * genmatch.c (verbose): New global.
19272 (warning_at): Add overload with source_location.
19273 (capture_info::capture_info): Add bool whether generating gimple
19274 or generic. Add gimple member.
19275 (capture_info::cinfo): Add capture member.
19276 (capture_info::walk_match): Record capture. Warn on
19277 non-captured leafs.
19278 (capture_info::walk_c_expr): Add more fragments captures cannot
19279 escape through. Warn on escaped captures.
19280 (dt_simplify::gen_1): Warn on operands we force to have no
19281 side-effects.
19282 (main): Initialize verbose.
19283 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
19284
19285 2015-07-30 Richard Biener <rguenther@suse.de>
19286
19287 PR middle-end/67053
19288 * match.pd: Allow both operands to independently have conversion
19289 when simplifying compares of addresses.
19290
19291 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
19292
19293 PR target/66217
19294 PR target/67045
19295 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
19296 around those cases that need one.
19297
19298 2015-07-29 Aditya Kumar <hiraditya@msn.com>
19299
19300 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
19301
19302 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
19303
19304 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
19305 New. Copied from config/i386/gnu-user.h.
19306 (ASM_COMMENT_START): Likewise.
19307 (DBX_REGISTER_NUMBER): Likewise.
19308
19309 2015-07-29 Richard Biener <rguenther@suse.de>
19310
19311 * gimple-fold.c (fold_gimple_cond): Remove.
19312 (fold_stmt_1): Do not call it.
19313
19314 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
19315
19316 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
19317 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
19318
19319 * config/aarch64/aarch64-modes.def: Add HFmode.
19320
19321 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
19322 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
19323
19324 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
19325 aarch64_promoted_type): New.
19326
19327 (aarch64_float_const_representable_p): Disable HFmode.
19328 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
19329 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
19330 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
19331
19332 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
19333 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
19334
19335 * config/aarch64/iterators.md (GPF_F16): New.
19336
19337 2015-07-29 Richard Biener <rguenther@suse.de>
19338
19339 * match.pd: Merge address comparison patterns and make them
19340 handle some more cases.
19341
19342 2015-07-29 Richard Biener <rguenther@suse.de>
19343
19344 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
19345 (parser::parse_capture): Add bool argument on whether to reject
19346 unknown captures.
19347 (parser::parse_expr): Adjust.
19348 (parser::parse_op): Likewise.
19349 (parser::parse_pattern): Likewise.
19350
19351 2015-07-29 Richard Biener <rguenther@suse.de>
19352
19353 * gimple-fold.c (has_use_on_stmt): New function.
19354 (replace_stmt_with_simplification): Use it to allow
19355 abnormals originally referenced in the stmt.
19356 (fold_stmt_1): Canonicalize operand order.
19357
19358 2015-07-28 David Sherwood <david.sherwood@arm.com>
19359
19360 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
19361 GET_MODE_INNER unconditionally.
19362 * config/spu/spu.c (arith_immediate_p): Likewise.
19363 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
19364 * expmed.c (synth_mult): Remove check for VOIDmode result from
19365 GET_MODE_INNER.
19366 (expand_mult_const): Likewise.
19367 * fold-const.c (fold_binary_loc): Replace call to element_precision
19368 with call to GET_MODE_PRECISION.
19369 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
19370 m->name.
19371 (emit_mode_inner): Likewise.
19372 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
19373 result check.
19374 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
19375 (GET_MODE_UNIT_PRECISION): Likewise.
19376 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
19377 * simplify-rtx.c (simplify_immed_subreg): Likewise.
19378 * stor-layout.c (bitwise_type_for_mode): Update assert.
19379 (element_precision): Remove.
19380
19381 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19382
19383 * target-insns.def (reload_load_address): New targetm instruction
19384 pattern.
19385 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
19386
19387 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19388
19389 * target-insns.def (atomic_test_and_set): New targetm instruction
19390 pattern.
19391 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
19392 HAVE_*/gen_* interface.
19393
19394 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19395
19396 * target-insns.def (can_extend, ptr_extend): New targetm instruction
19397 patterns.
19398 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
19399 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
19400 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
19401 * rtlanal.c (nonzero_bits1): Likewise.
19402 (num_sign_bit_copies1): Likewise.
19403
19404 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19405
19406 * target-insns.def (eh_return): New targetm instruction pattern.
19407 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
19408 interface.
19409 * function.c (thread_prologue_and_epilogue_insns): Remove
19410 preprocessor condition.
19411
19412 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19413
19414 * target-insns.def (indirect_jump): New targetm instruction pattern.
19415 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
19416 interface.
19417
19418 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19419
19420 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
19421 instead of nonimmediate_operand. Remove C condiition.
19422
19423 2015-07-28 Richard Biener <rguenther@suse.de>
19424
19425 * match.pd: Add more simplification of address comparisons.
19426
19427 2015-07-28 Richard Biener <rguenther@suse.de>
19428
19429 * match.pd: Re-order two cases in comparison with max/min
19430 value simplification to make it apply for bools.
19431
19432 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19433
19434 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
19435 Handle simple SIGN_EXTEND or ZERO_EXTEND.
19436 (aarch64_rtx_costs): Properly strip extend or extract before
19437 passing down to rtx costs again.
19438
19439 2015-07-28 Nick Clifton <nickc@redhat.com>
19440
19441 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
19442 Optimizes the case where -mes0 is active and a constant symbolic
19443 address is used.
19444 * config/rl78/rl78-protos.h: Prototype the new function.
19445 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
19446
19447 2015-07-28 Tom de Vries <tom@codesourcery.com>
19448
19449 * tree-parloops.c (reduc_stmt_res): New function.
19450 (initialize_reductions, add_field_for_reduction)
19451 (create_phi_for_local_result, create_loads_for_reductions)
19452 (create_stores_for_reduction, build_new_reduction): Handle case that
19453 reduc_stmt is a phi.
19454 (gather_scalar_reductions): Allow double_reduc reductions.
19455
19456 2015-07-28 Richard Biener <rguenther@suse.de>
19457
19458 * fold-const.c (fold_comparison): Remove equality folding
19459 of decl addresses ...
19460 * match.pd: ... here and merge with existing pattern.
19461
19462 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
19463
19464 PR tree-optimization/66828
19465 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
19466 from int64_t to uint64_t.
19467
19468 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
19469
19470 * opts-common.c (read_cmdline_option): List DriverOnly enum values
19471 as valid only in the error message of the driver, not in the
19472 messages of the language compilers.
19473
19474 2015-07-27 Tom de Vries <tom@codesourcery.com>
19475
19476 * tree-parloops.c (gather_scalar_reductions): Simplify function
19477 structure.
19478
19479 2015-07-27 Marek Polacek <polacek@redhat.com>
19480
19481 * ipa-devirt.c (types_same_for_odr): Fix typo.
19482
19483 2015-07-27 Jason Merrill <jason@redhat.com>
19484
19485 PR debug/66468
19486 * dwarf2out.c (gen_inlined_subroutine_die): Check
19487 cgraph_function_possibly_inlined_p.
19488
19489 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
19490
19491 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
19492 Place integer variant first.
19493 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
19494
19495 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
19496
19497 PR/63870
19498 * config/arm/arm-builtins.c (enum arm_builtins):
19499 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
19500 (ARM_BUILTIN_NEON_BASE): Rename macro to....
19501 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
19502 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
19503 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
19504
19505 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
19506
19507 PR/63870
19508 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
19509 Add qualifier_lane_index.
19510 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
19511 (arm_getlane_qualifiers): Use qualifier_lane_index.
19512 (arm_lanemac_qualifiers): Rename to...
19513 (arm_mac_n_qualifiers): ...this.
19514 (LANEMAC_QUALIFIERS): Rename to...
19515 (MAC_N_QUALIFIERS): ...this.
19516 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
19517 (arm_setlane_qualifiers): Use qualifier_lane_index.
19518 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
19519 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
19520 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
19521 (arm_expand_neon_builtin): Handle qualifier_lane_index.
19522
19523 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
19524 * config/arm/arm.c (bounds_check): Likewise, improve error message.
19525 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
19526 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
19527 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
19528 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
19529 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
19530 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
19531 qualifiers to TERNOP_IMM.
19532 (vdup_lane): Change qualifiers to GETLANE.
19533 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
19534 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
19535 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
19536 vqdmlsl_n): Change qualifiers to MAC_N.
19537
19538 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
19539 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
19540 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
19541 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
19542 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
19543 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
19544 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
19545 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
19546 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
19547 Remove call to neon_lane_bounds.
19548
19549 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
19550
19551 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
19552 Place integer variant first.
19553
19554 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
19555
19556 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
19557 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
19558 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
19559 for armv6kz targets.
19560 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
19561 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
19562 (FL_FOR_ARCH6ZK): Remove.
19563 (FL_FOR_ARCH6KZ): New.
19564 (arm_arch6zk): New declaration.
19565 * config/arm/arm-tables.opt: Regenerate.
19566 * config/arm/arm.c (arm_arch6kz): New.
19567 (arm_option_override): Set arm_arch6kz.
19568 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
19569 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
19570 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
19571
19572 2015-07-27 Marek Polacek <polacek@redhat.com>
19573
19574 PR c++/66555
19575 PR c/54979
19576 * doc/invoke.texi: Document -Wtautological-compare.
19577
19578 2015-07-27 Richard Biener <rguenther@suse.de>
19579
19580 * genmatch.c (decision_tree::gen_gimple): Split out large
19581 subtrees into separate functions.
19582 (decision_tree::gen_generic): Likewise.
19583
19584 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
19585
19586 * config/alpha/alpha.c: Use SUBREG_P predicate.
19587 * config/alpha/predicates.md: Ditto.
19588
19589 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
19590
19591 * config.host (s390*-*-*): Include driver-native.c only when
19592 building with s390* as host *and* target.
19593
19594 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
19595
19596 PR target/66930
19597 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
19598 T bit register modified_between_p check.
19599
19600 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19601
19602 * config/i386/i386.c: Use SUBREG_P predicate.
19603 * config/i386/i386.md: Ditto.
19604 * config/i386/sse.md: Ditto.
19605 * config/i386/predicates.md: Ditto.
19606
19607 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19608
19609 PR target/67004
19610 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
19611 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
19612
19613 2015-07-25 Sebastian Pop <s.pop@samsung.com>
19614
19615 * Makefile.in: Remove use of TREEBROWSER.
19616 * config.in: Regenerated.
19617 * configure: Regenerated.
19618 * configure.ac: Remove definition of TREEBROWSER.
19619 * tree-browser.c: Removed.
19620 * tree-browser.def: Removed.
19621
19622 2015-07-25 Sebastian Pop <s.pop@samsung.com>
19623
19624 * graphite-scop-detection.c: Include gimple-pretty-print.h.
19625 (stmt_simple_for_scop_p): Print when a stmt is not handled in
19626 Graphite.
19627 (scopdet_basic_block_info): Print when a loop or bb cannot be
19628 represented in Graphite.
19629
19630 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19631
19632 PR target/66648
19633 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
19634 execution guard when min_size is less than size_needed.
19635
19636 2015-07-25 Sebastian Pop <s.pop@samsung.com>
19637
19638 * doc/install.texi: Document supported versions of ISL.
19639
19640 2015-07-25 Jeff Law <law@redhat.com>
19641
19642 Revert:
19643 PR lto/66752
19644 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
19645 unable to find X NE 0 in the tables, return X as the simplified
19646 condition.
19647 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
19648 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
19649 to VISISTED_BBS. */
19650 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
19651 after removing the control flow statement and unnecessary edges.
19652
19653 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
19654
19655 Revert:
19656 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
19657
19658 PR rtl-optimization/64164
19659 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19660 * tree-ssa-copyrename.c: Removed.
19661 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19662 -ftree-coalesce-vars.
19663 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19664 * common.opt (ftree-copyrename): Ignore.
19665 (ftree-coalesce-inlined-vars): Likewise.
19666 * doc/invoke.texi: Remove the ignored options above.
19667 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19668 * tree-ssa-coalesce.h: ... here.
19669 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19670 headers required by it.
19671 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19672 across variables when flag_tree_coalesce_vars. Check register
19673 use and promoted modes to allow coalescing. Moved to
19674 tree-ssa-coalesce.c.
19675 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19676 with its member functions to tree-ssa-coalesce.c.
19677 (var_map_base_init): Likewise. Renamed to
19678 compute_samebase_partition_bases.
19679 (partition_view_normal): Drop want_bases parameter.
19680 (partition_view_bitmap): Likewise.
19681 * tree-ssa-live.h: Adjust declarations.
19682 * tree-ssa-coalesce.c: Include explow.h.
19683 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19684 default defs at the entry point.
19685 (dump_part_var_map): New.
19686 (compute_optimized_partition_bases): New, called by...
19687 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19688 of compute_samebase_partition_bases. Adjust.
19689 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19690 * cfgexpand.c (leader_merge): New.
19691 (get_rtl_for_parm_ssa_default_def): New.
19692 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19693 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19694 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19695 redundant MEM attr setting.
19696 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19697 from...
19698 (expand_one_stack_var): ... this. New wrapper to check and
19699 skip already expanded SSA partitions.
19700 (record_alignment_for_reg_var): New, factored out of...
19701 (expand_one_var): ... this.
19702 (expand_one_ssa_partition): New.
19703 (adjust_one_expanded_partition_var): New.
19704 (expand_one_register_var): Check and skip already expanded SSA
19705 partitions.
19706 (expand_used_vars): Don't create DECLs for anonymous SSA
19707 names. Expand all SSA partitions, then adjust all SSA names.
19708 (pass::execute): Replace the loops that set
19709 SA.partition_to_pseudo from partition leaders and cleared
19710 DECL_RTL for multi-location variables, and that which used to
19711 rename vars and set attrs, with one that clears DECL_RTL and
19712 checks that PARMs and RESULTs default_defs match DECL_RTL.
19713 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19714 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19715 * explow.c (promote_ssa_mode): New.
19716 * explow.h (promote_ssa_mode): Declare.
19717 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19718 * function.c: Include cfgexpand.h.
19719 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19720 (use_register_for_parm_decl): Wrapper for the above to
19721 special-case the result_ptr.
19722 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19723 (split_complex_args): Take assign_parm_data_all argument.
19724 Pass it to rtl_for_parm. Set up rtl and context for split
19725 args.
19726 (assign_parms_augmented_arg_list): Adjust.
19727 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19728 multiple locations. Recognize split complex args.
19729 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19730 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19731 (assign_parm_setup_block): Prefer SSA-assigned location.
19732 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
19733 if stack_parm is NULL.
19734 (assign_parm_setup_stack): Prefer SSA-assigned location.
19735 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19736 rtl before testing for pointer bounds. Special-case result_ptr.
19737 (expand_function_start): Maybe reset DECL_RTL of result.
19738 Prefer SSA-assigned location for result and static chain.
19739 Factor out DECL_RESULT and SET_DECL_RTL.
19740 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19741 anonymous SSA names. Use promote_ssa_mode.
19742 (get_temp_reg): Likewise.
19743 (remove_ssa_form): Adjust.
19744 * stor-layout.c (layout_decl): Don't set mem attributes of
19745 non-MEMs.
19746 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19747 and get its reg_usage for reg invalidation.
19748 (compute_bb_dataflow): Pass it insn.
19749 (emit_notes_in_bb): Likewise.
19750
19751 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19752
19753 * config/i386/i386.c (ix86_va_start): Remove
19754 unneeded !TARGET_64BIT check.
19755 (ix86_gimplify_va_arg): Ditto.
19756
19757 2015-07-24 Tom de Vries <tom@codesourcery.com>
19758
19759 * graphite-sese-to-poly.c (build_poly_scop): Always call
19760 rewrite_commutative_reductions_out_of_ssa.
19761
19762 2015-07-24 Tom de Vries <tom@codesourcery.com>
19763
19764 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
19765 flag_associative_math to FLOAT_TYPE_P. Honour
19766 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
19767
19768 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
19769
19770 PR c++/64079
19771 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
19772 and "%qD" in warning_at instead of "%q+D" in warning.
19773
19774 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
19775
19776 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
19777 (ix86_function_abi): Cleanup.
19778
19779 2015-07-24 Michael Darling <darlingm@gmail.com>
19780
19781 PR other/66259
19782 * acinclude.m4: Reflects renaming of configure.in to configure.ac
19783 * configure: Likewise
19784 * configure.ac: Likewise
19785 * doc/install.texi: Likewise
19786 * doc/tm.texi: Likewise
19787 * doc/tm.texi.in: Likewise
19788
19789 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19790
19791 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
19792 manually swapping values.
19793 * cse.c (fold_rtx): Likewise.
19794 * lra-eliminations.c (form_sum): Likewise.
19795
19796 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
19797
19798 PR target/64003
19799 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
19800 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
19801 (*jcc_1, *jcc_2, jump, simple_return_internal)
19802 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
19803 Set length_nobnd attribute instead of length attribute.
19804 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
19805 (length_nobnd): Remove attribute.
19806 (length): Remove length_nobnd processing.
19807
19808 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
19809
19810 * gimplify.c (omp_default_clause): New function. Reorganize flow
19811 for clarity. Broken out of ...
19812 (omp_notice_variable): ... here.
19813
19814 2015-07-24 Gary Funck <gary@intrepid.com>
19815
19816 PR middle-end/66984
19817 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
19818 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
19819
19820 2015-07-24 Tom de Vries <tom@codesourcery.com>
19821
19822 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
19823 exit-first loop transform.
19824
19825 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
19826
19827 PR 66714
19828 * tree-cfg.c (struct replace_decls_d): New struct.
19829 (replace_block_vars_by_duplicates_1): New function.
19830 (replace_block_vars_by_duplicates): Use it to replace the decls
19831 in the value exprs by duplicates.
19832
19833 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
19834
19835 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
19836 -shared, -symbolic, -rdynamic.
19837
19838 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
19839
19840 PR target/65711
19841 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
19842 -dynamic-linker within %{!static %{!shared, and -rdynamic within
19843 %{!static.
19844
19845 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
19846
19847 PR ipa/66566
19848 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
19849 edge summary is available.
19850
19851 2015-07-24 Richard Biener <rguenther@suse.de>
19852
19853 * genmatch.c (struct dt_node): Add statistic fields.
19854 (dt_node::analyze): New method.
19855 (decision_tree::gen_gimple): Call analyze on the root node
19856 and print statistics to stderr.
19857 (decision_tree::gen_generic): Likewise.
19858
19859 2015-07-24 Richard Biener <rguenther@suse.de>
19860
19861 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
19862 against the highest or lowest possible integer ...
19863 * match.pd: ... as patterns here.
19864
19865 2015-07-24 Richard Biener <rguenther@suse.de>
19866
19867 * genmatch.c (struct capture_info): Add same_as field.
19868 (capture_info::capture_info): Initialize same_as.
19869 (capture_info::walk_match): Compute same_as.
19870 (capture_info::walk_result): Compute stuff for the leader.
19871 (capture_info::walk_c_expr): Likewise.
19872 (dt_simplify::gen_1): Only look at leaders when deciding
19873 to force no side-effects or emit side-effects of omitted operands.
19874
19875 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19876
19877 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
19878 reg note to the GPR -> FPR save instructions.
19879
19880 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19881
19882 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
19883 cheaper.
19884 (s390_expand_insv): Don't generate risbg pattern for constant zero
19885 sources.
19886 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
19887 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
19888 splitters.
19889
19890 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19891
19892 * config/s390/s390.c (s390_reorg): Clean up handling of processors
19893 with
19894 -mtune=
19895 (s390_issue_rate): Likewise.
19896 (s390_sched_reorder): Likewise.
19897 (s390_sched_variable_issue): Likewise.
19898 (s390_loop_unroll_adjust): Likewise.
19899 (s390_option_override): Likewise.
19900
19901 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19902
19903 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
19904 processor capabilities with -march=native.
19905 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
19906 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
19907 (S390_TARGET_BITS_STRING): Macro to simplify specs.
19908
19909 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19910
19911 * config/s390/s390.c (s390_issue_rate): Handle
19912 PROCESSOR_2094_Z9_EC.
19913 (s390_option_override): Likewise.
19914 (s390_adjust_priority): Likewise.
19915
19916 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19917
19918 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
19919 when cross compiling.
19920
19921 2015-07-24 Richard Biener <rguenther@suse.de>
19922
19923 * fold-const.c (maybe_canonicalize_comparison_1): Move
19924 A code CST canonicalization ...
19925 * match.pd: ... to a pattern here.
19926
19927 2015-07-24 Jiong Wang <jiong.wang@arm.com>
19928
19929 Revert:
19930 2015-07-22 Jiong Wang <jiong.wang@arm.com>
19931 PR target/63521
19932 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
19933 (HONOR_REG_ALLOC_ORDER): Define.
19934
19935 2015-07-24 Richard Biener <rguenther@suse.de>
19936
19937 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
19938 * fold-const.c (fold_comparison): Move parameter does not
19939 alias &local simplification ...
19940 * match.pd: ... as a pattern here.
19941
19942 2015-07-24 Richard Biener <rguenther@suse.de>
19943
19944 * gimple-fold.c (replace_stmt_with_simplification): Special-case
19945 valueizing call operands.
19946 * gimple-match-head.c (maybe_push_res_to_seq): Take
19947 number of call arguments from ops array.
19948 (do_valueize): New function.
19949 (gimple_simplify): Return true if valueization changed
19950 any operand even if the result didn't simplify further.
19951
19952 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19953
19954 PR middle-end/25530
19955 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
19956
19957 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19958
19959 PR middle-end/25529
19960 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
19961
19962 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19963
19964 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
19965 instruction.
19966
19967 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19968
19969 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
19970 clean up.
19971
19972 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
19973
19974 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
19975 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
19976 targets here.
19977 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
19978 ms_va_list_type_node initialization.
19979
19980 2015-07-23 Jeff Law <law@redhat.com>
19981
19982 PR lto/66752
19983 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
19984 unable to find X NE 0 in the tables, return X as the simplified
19985 condition.
19986 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
19987 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
19988 to VISISTED_BBS. */
19989 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
19990 after removing the control flow statement and unnecessary edges.
19991
19992 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
19993
19994 * tree-pass.h (get_current_pass_name): Removed.
19995
19996 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
19997
19998 PR rtl-optimization/64164
19999 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
20000 * tree-ssa-copyrename.c: Removed.
20001 * opts.c (default_options_table): Drop -ftree-copyrename. Add
20002 -ftree-coalesce-vars.
20003 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
20004 * common.opt (ftree-copyrename): Ignore.
20005 (ftree-coalesce-inlined-vars): Likewise.
20006 * doc/invoke.texi: Remove the ignored options above.
20007 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
20008 * tree-ssa-coalesce.h: ... here.
20009 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
20010 headers required by it.
20011 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
20012 across variables when flag_tree_coalesce_vars. Check register
20013 use and promoted modes to allow coalescing. Moved to
20014 tree-ssa-coalesce.c.
20015 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
20016 with its member functions to tree-ssa-coalesce.c.
20017 (var_map_base_init): Likewise. Renamed to
20018 compute_samebase_partition_bases.
20019 (partition_view_normal): Drop want_bases parameter.
20020 (partition_view_bitmap): Likewise.
20021 * tree-ssa-live.h: Adjust declarations.
20022 * tree-ssa-coalesce.c: Include explow.h.
20023 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
20024 default defs at the entry point.
20025 (dump_part_var_map): New.
20026 (compute_optimized_partition_bases): New, called by...
20027 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
20028 of compute_samebase_partition_bases. Adjust.
20029 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
20030 * cfgexpand.c (leader_merge): New.
20031 (get_rtl_for_parm_ssa_default_def): New.
20032 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
20033 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
20034 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
20035 redundant MEM attr setting.
20036 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
20037 from...
20038 (expand_one_stack_var): ... this. New wrapper to check and
20039 skip already expanded SSA partitions.
20040 (record_alignment_for_reg_var): New, factored out of...
20041 (expand_one_var): ... this.
20042 (expand_one_ssa_partition): New.
20043 (adjust_one_expanded_partition_var): New.
20044 (expand_one_register_var): Check and skip already expanded SSA
20045 partitions.
20046 (expand_used_vars): Don't create DECLs for anonymous SSA
20047 names. Expand all SSA partitions, then adjust all SSA names.
20048 (pass::execute): Replace the loops that set
20049 SA.partition_to_pseudo from partition leaders and cleared
20050 DECL_RTL for multi-location variables, and that which used to
20051 rename vars and set attrs, with one that clears DECL_RTL and
20052 checks that PARMs and RESULTs default_defs match DECL_RTL.
20053 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
20054 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
20055 * explow.c (promote_ssa_mode): New.
20056 * explow.h (promote_ssa_mode): Declare.
20057 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
20058 * function.c: Include cfgexpand.h.
20059 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
20060 (use_register_for_parm_decl): Wrapper for the above to
20061 special-case the result_ptr.
20062 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
20063 (split_complex_args): Take assign_parm_data_all argument.
20064 Pass it to rtl_for_parm. Set up rtl and context for split
20065 args.
20066 (assign_parms_augmented_arg_list): Adjust.
20067 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
20068 multiple locations. Recognize split complex args.
20069 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
20070 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
20071 (assign_parm_setup_block): Prefer SSA-assigned location.
20072 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
20073 if stack_parm is NULL.
20074 (assign_parm_setup_stack): Prefer SSA-assigned location.
20075 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
20076 rtl before testing for pointer bounds. Special-case result_ptr.
20077 (expand_function_start): Maybe reset DECL_RTL of result.
20078 Prefer SSA-assigned location for result and static chain.
20079 Factor out DECL_RESULT and SET_DECL_RTL.
20080 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
20081 anonymous SSA names. Use promote_ssa_mode.
20082 (get_temp_reg): Likewise.
20083 (remove_ssa_form): Adjust.
20084 * stor-layout.c (layout_decl): Don't set mem attributes of
20085 non-MEMs.
20086 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
20087 and get its reg_usage for reg invalidation.
20088 (compute_bb_dataflow): Pass it insn.
20089 (emit_notes_in_bb): Likewise.
20090
20091 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
20092
20093 PR target/66217
20094 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
20095 prototype.
20096 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
20097 (rs6000_emit_2insn_and): Handle dot forms.
20098 * config/rs6000/rs6000.md (and<mode>3): Adjust.
20099 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
20100 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
20101
20102 2015-07-23 Richard Biener <rguenther@suse.de>
20103
20104 * generic-match-head.c: Include cgraph.h.
20105 * gimple-match-head.c: Likewise.
20106 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
20107 SSA names.
20108 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
20109 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
20110 pattern.
20111
20112 2015-07-23 Richard Biener <rguenther@suse.de>
20113
20114 * gimple-fold.c (fold_gimple_cond): Do not require folding
20115 results to pass valid_gimple_rhs_p.
20116 * tree-cfg.h (fold_cond_expr_cond): Remove.
20117 * tree-cfg.c (fold_cond_expr_cond): Likewise.
20118 (make_edges): Do not call it.
20119 * tree-inline.c (tree_function_versioning): Likewise.
20120
20121 2015-07-23 Tom de Vries <tom@codesourcery.com>
20122
20123 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
20124 vect_force_simple_reduction.
20125 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
20126 (vect_is_simple_reduction_1): Add and handle
20127 need_wrapping_integral_overflow parameter.
20128 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
20129 need_wrapping_integral_overflow parameter.
20130 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
20131 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
20132 decl.
20133
20134 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
20135
20136 PR tree-optimization/66926,66951
20137 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
20138 INNER_LOOP and fix up condition for renaming virtual operands.
20139
20140 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20141
20142 * combine.c (try_combine): Use std::swap instead of manually
20143 swapping.
20144
20145 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
20146
20147 * config/mips/i6400.md: New file.
20148 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
20149 (mips64r6): Likewise.
20150 (i6400): Define.
20151 * config/mips/mips-tables.opt: Regenerate.
20152 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
20153 (mips_issue_rate): Add support for i6400.
20154 (mips_multipass_dfa_lookahead): Likewise.
20155 * config/mips/mips.h (TUNE_I6400): Define.
20156 * config/mips/mips.md: Include i6400.md.
20157 (processor): Add i6400.
20158 * doc/invoke.texi (-march=@var{arch}): Add i6400.
20159
20160 2015-07-23 Richard Biener <rguenther@suse.de>
20161
20162 PR middle-end/66916
20163 * match.pd: Guard widen and sign-change comparison simplification
20164 with single_use.
20165
20166 2015-07-23 Richard Biener <rguenther@suse.de>
20167
20168 PR tree-optimization/66945
20169 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
20170 ::before_dom_children): Force the propagators idea of
20171 non-executable edges to materialize, not what the folder
20172 chooses.
20173
20174 2015-07-23 Richard Biener <rguenther@suse.de>
20175
20176 * gimple.h (gimple_cond_make_false): Use 0 != 0.
20177 (gimple_cond_make_true): Use 1 != 0.
20178
20179 2015-07-22 DJ Delorie <dj@redhat.com>
20180
20181 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
20182 slashes.
20183
20184 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
20185 (ashrhi3): Likewise.
20186 (lshrhi3): Likewise.
20187 (movhi): Take advantage of zero-extend to load small constants.
20188 (movpsi): Likewise.
20189 (and<mode>3): Likewise.
20190 (zero_extendqihi2): Likewise.
20191 (zero_extendqisi2): New.
20192 * config/msp430/constraints.md (N,O): New.
20193 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
20194
20195 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
20196
20197 PR target/66954
20198 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
20199 to enum feature_priority and feature_list.
20200 (fold_builtin_cpu): Add F_AES to enum processor_features
20201 and isa_names_table.
20202
20203 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
20204
20205 PR driver/66737
20206 * config/i386/linux-common.h (MPX_SPEC): Use linker option
20207 for 64bit target only.
20208
20209 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
20210
20211 * config/nvptx/nvptx.c: Expand some comments.
20212
20213 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
20214
20215 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
20216 (cortex_a53_advsimd): ...This.
20217
20218 2015-07-22 Richard Biener <rguenther@suse.de>
20219
20220 * genmatch.c (expr::gen_transform): Clarify error message
20221 and display location.
20222
20223 2015-07-22 Richard Biener <rguenther@suse.de>
20224
20225 * genmatch.c (struct operand): Add location member.
20226 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
20227 constructors.
20228 (struct simplify): Remove match_location and result_location
20229 members.
20230 (elsehwere): Adjust.
20231
20232 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
20233
20234 * config/mips/m5100.md: New file.
20235 * config/mips/mips-cpus.def (m5100, m5101): Define.
20236 * config/mips/mips-tables.opt: Regenerate.
20237 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
20238 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
20239 -march=m5101 to -mips32r5.
20240 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
20241 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
20242 !-msoft-float.
20243 * config/mips/mips.md: Include m5100.md.
20244 (processor): Add m5100.
20245 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
20246
20247 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
20248
20249 * config/mips/mips-cpus.def (interaptiv): Define.
20250 * config/mips/mips-tables.opt: Regenerate.
20251 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
20252 -mips32r2.
20253 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
20254 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
20255
20256 2015-07-22 Jiong Wang <jiong.wang@arm.com>
20257
20258 PR target/63521
20259 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
20260 (HONOR_REG_ALLOC_ORDER): Define.
20261
20262 2015-07-22 Richard Biener <rguenther@suse.de>
20263
20264 PR tree-optimization/66952
20265 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
20266 blocks we end up executing unconditionally reset all SSA
20267 info such as range and alignment.
20268 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
20269 * tree-ssanames.c (reset_flow_sensitive_info): New function.
20270
20271 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
20272
20273 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
20274 typo in attribute.
20275
20276 2015-07-22 Richard Biener <rguenther@suse.de>
20277
20278 * genmatch.c (parser::parse_result): Properly handle
20279 match with result operands and conditions.
20280
20281 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
20282
20283 PR target/63870
20284 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
20285 Add qualifier_struct_load_store_lane_index.
20286 (aarch64_types_loadstruct_lane_qualifiers): Use
20287 qualifier_struct_load_store_lane_index for lane index argument for
20288 last argument.
20289 (aarch64_types_storestruct_lane_qualifiers): Ditto.
20290 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
20291 (aarch64_simd_expand_args): Add new argument describing mode of
20292 builtin. Check lane bounds for arguments with
20293 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
20294 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
20295 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
20296 (aarch64_simd_expand_builtin): Handle arguments with
20297 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
20298 aarch64_simd_expand_args.
20299 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
20300 vst[234]_lane with BUILTIN_VALLDIF.
20301 * config/aarch64/aarch64-simd.md:
20302 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
20303 endianness reversal on lane index.
20304 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
20305 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
20306 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
20307 (vec_store_lanesci_lane<mode>): Ditto.
20308 (vec_store_lanesxi_lane<mode>): Ditto.
20309 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
20310 reversal of lane index.
20311 (aarch64_ld3_lane<mode>): Ditto.
20312 (aarch64_ld4_lane<mode>): Ditto.
20313 (aarch64_st2_lane<mode>): Ditto.
20314 (aarch64_st3_lane<mode>): Ditto.
20315 (aarch64_st4_lane<mode>): Ditto.
20316 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
20317 to qmode. Add new mode parameter. Update uses.
20318 (__LD3_LANE_FUNC): Ditto.
20319 (__LD4_LANE_FUNC): Ditto.
20320 (__ST2_LANE_FUNC): Ditto.
20321 (__ST3_LANE_FUNC): Ditto.
20322 (__ST4_LANE_FUNC): Ditto.
20323
20324 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
20325
20326 * doc/invoke.texi (Language Independent Options): Rename node to
20327 Diagnostic Message Formatting Options.
20328
20329 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
20330
20331 PR ipa/66424.
20332 * lra-remat.c (operand_to_remat): Prevent using insns with input
20333 subregs processed separately by IRA.
20334
20335 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
20336
20337 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
20338 straight loops.
20339 (single_imm_use): Check for iterator node.
20340 (num_imm_uses): Likewise.
20341 * tree-ssa-operands.c (has_zero_uses_1): Delete.
20342 (single_imm_use_1): Check for iterator node.
20343
20344 2015-07-21 Mike Frysinger <vapier@gentoo.org>
20345 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20346
20347 * configure.ac: Add check for new options in isl-0.15.
20348 * config.in, configure: Rebuilt.
20349 * graphite-blocking.c: Include <isl/constraint.h>
20350 * graphite-interchange.c, graphite-poly.c: Likewise.
20351 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
20352 * graphite.c: Likewise.
20353 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
20354 <isl/union_set.h>.
20355 * graphite-dependences.c: Include <isl/constraint.h>.
20356 (max_number_of_out_dimensions): Returns isl_stat.
20357 (extend_schedule_1): Likewise
20358 (extend_schedule): Corresponding changes.
20359 * graphite-optimize-isl.c: Include <isl/constraint.h> and
20360 <isl/union_set.h>.
20361 (getSingleMap): Change return type of isl_stat.
20362 (optimize_isl): Conditionally use
20363 isl_options_set_schedule_serialize_sccs.
20364 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
20365 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
20366
20367 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
20368
20369 PR target/66956
20370 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
20371 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
20372
20373 2015-07-21 Richard Biener <rguenther@suse.de>
20374
20375 PR tree-optimization/66948
20376 * genmatch.c (capture_info::walk_match): Also recurse to
20377 captures. Properly compute expr state from captures of
20378 captures.
20379 * match.pd: Add single-use guards to
20380 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
20381
20382 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
20383
20384 * config/nvptx/mkoffload.c (process): Add static destructor call.
20385
20386 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20387
20388 PR middle-end/66915
20389 * match.pd (A - B -> A + (-B)): Don't allow folding
20390 when type if a fixed-point type.
20391
20392 2015-07-20 DJ Delorie <dj@redhat.com>
20393
20394 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
20395 (iorqi3_real): Likewise for set1.
20396
20397 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
20398
20399 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
20400 for !TARGET_64BIT.
20401
20402 2015-07-20 Aditya Kumar <hiraditya@msn.com>
20403
20404 * graphite-isl-ast-to-gimple.c:
20405 Refactor so that each function can access 'region'. This will help
20406 maintain a parameter rename_map within a region.
20407
20408 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
20409
20410 * config/rs6000/rs6000.md (*lt0_disi): New.
20411
20412 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
20413
20414 PR target/66217
20415 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
20416 "available letters" comment.
20417 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
20418 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
20419 and_2rld_operand): Delete.
20420 (and_operand): Adjust.
20421 (rotate_mask_operator): New.
20422 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
20423 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
20424 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
20425 extract_ME): Delete.
20426 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
20427 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
20428 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
20429 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
20430 rs6000_emit_2insn_and): New.
20431 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
20432 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
20433 includes_rldic_lshift_p, includes_rldicr_lshift_p,
20434 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
20435 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
20436 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
20437 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
20438 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
20439 rs6000_emit_2insn_and): New.
20440 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
20441 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
20442 handling.
20443 <NOT>: Don't fall through to next case.
20444 <AND>: Handle the various rotate-and-mask cases directly.
20445 <IOR>: Always cost as one insn.
20446 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
20447 (and<mode>3): Adjust expander for the new patterns.
20448 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
20449 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
20450 (*and<mode>3_imm_dot_shifted): New.
20451 (*and<mode>3_mask): Delete, rewrite as ...
20452 (and<mode>3_mask): ... New.
20453 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
20454 (andsi3_internal0_nomc): Delete.
20455 (*andsi3_internal6): Delete.
20456 (*and<mode>3_2insn): New.
20457 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
20458 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
20459 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
20460 *insvdi_internal3): Delete.
20461 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
20462 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
20463 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
20464 *ior<mode>_mask): New.
20465 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
20466 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
20467 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
20468 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
20469 Delete.
20470 (ashr<mode>3): Delete expander.
20471 (*ashr<mode>3): Rename to ...
20472 (ashr<mode>3): ... This.
20473 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
20474 (*rotldi3_internal4, *rotldi3_internal5 and split,
20475 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
20476 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
20477 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
20478 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
20479 (splitter for loading a mask): Adjust.
20480 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
20481
20482 2015-07-20 Marek Polacek <polacek@redhat.com>
20483
20484 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
20485 output_add_clobbers, output_added_clobbers_hard_reg_p,
20486 gen_rtx_scratch): Remove declarations.
20487
20488 2015-07-20 Marek Polacek <polacek@redhat.com>
20489
20490 PR c++/55095
20491 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
20492
20493 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20494
20495 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
20496 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
20497
20498 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20499
20500 * combine.c (combine_simplify_rtx): Move simplification step
20501 before various transformations/substitutions.
20502
20503 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
20504
20505 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
20506 (struct int_traits): Likewise.
20507
20508 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20509
20510 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
20511 function to vmsdbgout_function_decl.
20512
20513 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
20514
20515 PR target/66922
20516 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
20517 from misaligned positions.
20518 (ix86_expand_pinsr): Reject insertions to misaligned positions.
20519
20520 2015-07-18 Sebastian Pop <s.pop@samsung.com>
20521
20522 PR middle-end/46851
20523 PR middle-end/60340
20524 * Makefile.in: Removed omega.o.
20525 * common.opt: Document flag fcheck-data-deps as deprecated.
20526 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
20527 its associated params: omega-max-vars, omega-max-geqs,
20528 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
20529 omega-max-keys, omega-eliminate-redundant-constraints.
20530 * doc/loop.texi: Remove all the section on Omega.
20531 * graphite-blocking.c: Include missing params.h: it used to be
20532 included through tree-data-ref.h and omega.h.
20533 * graphite-isl-ast-to-gimple.c: Same.
20534 * graphite-optimize-isl.c: Same.
20535 * graphite-sese-to-poly.c: Same.
20536 * graphite.c: Same.
20537 * omega.c: Remove.
20538 * omega.h: Remove.
20539 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
20540 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
20541 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
20542 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
20543 * passes.def: Remove pass_check_data_deps.
20544 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
20545 (dump_conflict_function): Same.
20546 (dump_subscript): Same.
20547 (print_direction_vector): Same.
20548 (print_dir_vectors): Same.
20549 (print_lambda_vector): Same.
20550 (print_dist_vectors): Same.
20551 (dump_data_dependence_relation): Same.
20552 (dump_data_dependence_relations): Same.
20553 (dump_dist_dir_vectors): Same.
20554 (dump_ddrs): Same.
20555 (init_omega_eq_with_af): Removed.
20556 (omega_extract_distance_vectors): Removed.
20557 (omega_setup_subscript): Removed.
20558 (init_omega_for_ddr_1): Removed.
20559 (init_omega_for_ddr): Removed.
20560 (ddr_consistent_p): Removed.
20561 (compute_affine_dependence): Do not use omega to check data
20562 dependences.
20563 (compute_data_dependences_for_bb): Removed.
20564 (analyze_all_data_dependences): Removed.
20565 (tree_check_data_deps): Removed.
20566 * tree-data-ref.h: Do not include omega.h.
20567 (compute_data_dependences_for_bb): Removed.
20568 (tree_check_data_deps): Removed.
20569 * tree-ssa-loop.c (pass_check_data_deps): Removed.
20570 (make_pass_check_data_deps): Removed.
20571 * tree-ssa-phiopt.c: Include params.h.
20572 * tree-vect-data-refs.c: Same.
20573 * tree-vect-slp.c: Same.
20574
20575 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
20576
20577 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
20578 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
20579 (mem->fpreg splitters): Ditto.
20580 (general_operand->nonimmediate_operand splitter): Use explicit modes.
20581 Disable DFmode for TARGET_64BIT.
20582
20583 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
20584
20585 PR target/66906
20586 * config/i386/i386.c (ix86_expand_prologue): Replicate static
20587 chain on the stack.
20588
20589 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
20590
20591 * config/nvptx/mkoffload.c (process): Constify host data.
20592 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
20593 Constify host data.
20594 (generate_host_descr_file): Likewise.
20595
20596 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
20597 Sebastian Pop <s.pop@samsung.com>
20598
20599 PR middle-end/61929
20600 * graphite-dependences.c (add_pdr_constraints): Renamed
20601 pdr->extent to pdr->subscript_sizes.
20602 * graphite-interchange.c (build_linearized_memory_access): Add
20603 back all gcc_assert's that the "isl_int to isl_val conversion"
20604 patch has removed. Refactored.
20605 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
20606 * graphite-poly.c (new_poly_dr): Same.
20607 (free_poly_dr): Same.
20608 * graphite-poly.h (struct poly_dr): Same.
20609 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
20610 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
20611 * graphite-scop-detection.h: Fix space.
20612 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
20613 back all gcc_assert's removed by a previous patch.
20614 (wrap): Remove the_isl_ctx global variable that the same patch has
20615 added.
20616 (build_loop_iteration_domains): Same.
20617 (add_param_constraints): Same.
20618 (pdr_add_data_dimensions): Same. Refactored.
20619 (build_poly_dr): Renamed extent to subscript_sizes.
20620
20621 2015-07-17 Marek Polacek <polacek@redhat.com>
20622
20623 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
20624 * match.pd: ... here.
20625
20626 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
20627
20628 * config/nvptx/mkoffload.c (process): Constify target data.
20629 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
20630 Constify target data.
20631 (generate_target_offloadend_file): Likewise.
20632
20633 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
20634
20635 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
20636 to allow renaming of PHI arguments on edges incoming from outer
20637 loop header, add corresponding check before start PHI iterator.
20638 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
20639 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
20640 with true force_vectorize. Set-up dominator for outer loop too.
20641 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
20642 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
20643 was marked with force_vectorize and has restricted cfg.
20644 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
20645 inner loop.
20646 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
20647 do peeling for outer loops.
20648
20649 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
20650 Matthias Klose <doko@ubuntu.com>
20651
20652 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
20653 build-sysroot, sysroot from the `Miscenalleous configure options' to
20654 the `Directories' section and strip trailing `/' from with_sysroot.
20655 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
20656 * configure: Regenerated.
20657
20658 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
20659
20660 PR target/66824
20661 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
20662 (TARGET_HARD_DF_REGS): Ditto.
20663 (TARGET_HARD_XF_REGS): Ditto.
20664 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
20665 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
20666 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
20667 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
20668 (*movsf_internal): Add alternatives 16 and 17. Enable
20669 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
20670
20671 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
20672
20673 PR rtl-optimization/66891
20674 * calls.c (expand_call): Wrap precompute_register_parameters with
20675 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
20676
20677 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
20678
20679 * config/nvptx/mkoffload.c (process): Constify mapping variables.
20680 Define target data struct and initialize it.
20681
20682 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
20683
20684 PR rtl-optimization/66626
20685 * ira.h (emit-rtl.h): Include.
20686 (non_spilled_static_chain_regno_p): New.
20687 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
20688 unless it is non spilled static chain pseudo.
20689 (assign_hard_rego): Spill memory profitable allocno unless it is
20690 non spilled static chain pseudo.
20691 (allocno_spill_priority_compare): Put non spilled static chain
20692 pseudo at the end of sorted array.
20693 (improve_allocation): Do nothing if we have static chain and
20694 non-local goto.
20695 (allocno__priority_compare_func): Put non spilled static chain
20696 pseudo at the beginning of sorted array.
20697 (move_spill_restore): Ignore non spilled static chain pseudo.
20698 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
20699 to non spilled static chain pseudo.
20700 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
20701 pseudo at the beginning of sorted array.
20702 (spill_for): Spill non spilled static chain pseudo last.
20703 * lra-constraints.c (lra_constraints): Remove static chain pseudo
20704 check for equivalence.
20705
20706 2015-07-16 Martin Liska <mliska@suse.cz>
20707
20708 PR ipa/66896.
20709 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
20710 dst_ctx if it does not exist.
20711
20712 2015-07-16 Martin Liska <mliska@suse.cz>
20713
20714 * hash-set.h (remove): New function.
20715 (iterator): New iteration class for hash_set.
20716
20717 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20718
20719 * genattrtab.c (make_canonical): Add a file_location parameter.
20720 Use fatal_at rather than fatal.
20721 (get_attr_value): Likewise. Update call to make_canonical.
20722 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
20723 (make_internal_attr): Update calls accordingly.
20724
20725 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20726
20727 * read-md.h (message_with_line, error_with_line): Delete.
20728 * read-md.c (message_with_line, error_with_line): Delete.
20729 * gensupport.h: Include read-md.h.
20730 (md_rtx_info): New structure.
20731 (read_md_rtx): Use it. Return a bool success value.
20732 * gensupport.c (read_md_rtx): Likewise.
20733 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
20734 (main): Update after interface changes.
20735 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
20736 (main): Update after interface changes.
20737 * genattrtab.c (insn_code_number): Delete.
20738 (optimize_attrs): Add a max_insn_code parameter and use it instead
20739 of insn_code_number.
20740 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
20741 Use *_at rather than *_with_line functions.
20742 (gen_insn): Likewise.
20743 (gen_delay): Likewise.
20744 (gen_insn_reserv): Likewise.
20745 (gen_bypass): Take an md_rtx_info rather than an rtx.
20746 (main): Update after interface changes. Use a local max_insn_code
20747 variable instead of insn_code_number.
20748 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
20749 an rtx. Use fatal_at rather than fatal.
20750 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
20751 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
20752 (gen_absence_set, gen_final_absence_set, gen_automaton)
20753 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
20754 (main): Update after interface changes.
20755 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
20756 and code number.
20757 (main): Update after interface changes.
20758 * genconditions.c (main): Use new read_md_rtx interface.
20759 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
20760 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
20761 (main): Update after interface changes.
20762 * genemit.c (insn_code_number, insn_index_number): Delete.
20763 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20764 Use fatal_at rather than fatal.
20765 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
20766 rather than fatal.
20767 (gen_split): Likewise.
20768 (main): Update after interface changes.
20769 * genextract.c (line_no): Delete.
20770 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20771 Update call to walk_rtx.
20772 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
20773 rather than message_with_line.
20774 (walk_rtx): Add an md_rtx_info argument. Update call to
20775 VEC_safe_set_locstr.
20776 (main): Update after interface changes.
20777 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
20778 and lineno. Use error_at rather than separate message_with_line
20779 calls and have_error assignments.
20780 (main): Update after interface changes.
20781 * genmddump.c (main): Use new read_md_rtx interface.
20782 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
20783 (main): Update after interface changes.
20784 * genoutput.c (next_code_number): Delete.
20785 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20786 (gen_peephole, gen_expand, gen_split): Likewise.
20787 (note_constraint): Likewise. Use *_at rather than *_with_line
20788 functions.
20789 (main): Update after interface changes.
20790 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
20791 rtx and lineno.
20792 (main): Update after interface changes.
20793 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
20794 than an rtx and lineno.
20795 (process_define_constraint): Likewise.
20796 (process_define_register_constraint): Likewise.
20797 (main): Update after interface changes.
20798 * genrecog.c (next_insn_code, pattern_lineno): Delete.
20799 (validate_pattern): Replace top-level rtx with an md_rtx_info.
20800 Use *_at rather than *_with_line functions.
20801 (match_pattern_2): Likewise.
20802 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
20803 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
20804 Use *_at rather than *_with_line functions.
20805 * gentarget-def.c (add_insn): New function.
20806 (main): Use it. Use new read_md_rtx interface.
20807
20808 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20809
20810 * gensupport.h (compute_test_codes): Take a file_location rather
20811 than a line number.
20812 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
20813 rather than *_with_line functions.
20814 (process_define_predicate): Update call to compute_test_codes.
20815 * genpreds.c (validate_exp): Take a file_location rather than a
20816 line number. Use *_at functions rather than *_with_line functions.
20817 (process_define_predicate): Update call to validate_exp.
20818 (constraint_data): Replace lineno field with a file_location.
20819 (add_constraint): Take a file_location rather than a line number.
20820 Use *_at functions rather than *_with_line functions. Fix error
20821 message for address constraints. Update after changes to
20822 validate_exp, constraint_data and compute_test_codes.
20823 (process_define_constraint): Update accordingly.
20824 (process_define_register_constraint): Likewise.
20825
20826 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20827
20828 * genoutput.c (data): Use a file_location to record the source
20829 position.
20830 (nothing): Delete.
20831 (idata, idata_end): Remove initialization.
20832 (constraint_data): Replace lineno with a file_location.
20833 (output_insn_data): Update after changes to data.
20834 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
20835 (scan_operands): Likewise, using *_at rather than *_with_line
20836 functions.
20837 (process_template): Likewise.
20838 (validate_insn_alternatives): Likewise.
20839 (validate_insn_operands): Likewise.
20840 (validate_optab_operands): Likewise.
20841 (init_insn_for_nothing): Initialize idata and idata_end.
20842 (note_constraint): Update after changes to constraint_data,
20843 using at rather than with_line functions.
20844 (mdep_constraint_len): Take a file_location rather than a
20845 line number. Use at rather than with_line functions.
20846
20847 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20848
20849 * read-md.h (fatal_at): Declare.
20850 * read-md.c (fatal_at): New function.
20851 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
20852 to record the source position.
20853 (check_attr_test): Take a file_location instead of a line number.
20854 Use fatal_at instead of fatal.
20855 (check_attr_value): Update after above changes, using "at"
20856 rather than "with_line" reporting functions.
20857 (convert_set_attr_alternative): Likewise.
20858 (gen_attr): Likewise.
20859 (check_defs): Likewise. Don't assign to read_md_filename.
20860 (gen_insn): Update initialization after above changes.
20861 (gen_delay): Likewise.
20862 (write_insn_cases): Print the filename for a define_peephole.
20863 (gen_insn_reserv): Take a line number as argument and update
20864 the call to check_attr_test.
20865 (main): Pass a line number to gen_insn_reserv.
20866
20867 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20868
20869 * read-md.h (file_location): New structure.
20870 (directive_handler_t): Take a file_location rather than a line number.
20871 (message_at, error_at): Declare.
20872 (read_skip_construct): Delete.
20873 * read-md.c (message_with_line_1): Replace with...
20874 (message_at_1): ...this new function.
20875 (message_at, error_at): New functions.
20876 (message_with_line, error_with_line): Update to use message_at_1.
20877 (handle_enum): Take a file_location rather than a line number
20878 and use error_at for error reporting.
20879 (handle_include): Likewise.
20880 (read_skip_construct): Likewise. Make static.
20881 (handle_file): Update after above changes. Pass a file_location
20882 rather than a line number to handle_directive.
20883 * gensupport.c (queue_elem): Replace separate filename and lineno
20884 with a file_location.
20885 (queue_pattern): Replace filename and lineno arguments with a
20886 file_location. Update after change to queue_elem.
20887 (process_define_predicate): Replace lineno argument with a
20888 file_location and use error_at for error reporting. Update
20889 after above changes.
20890 (process_rtx): Likewise.
20891 (subst_pattern_match): Likewise.
20892 (get_alternatives_number): Likewise.
20893 (alter_predicate_for_insn): Likewise.
20894 (rtx_handle_directive): Likewise.
20895 (is_predicable): Update after above changes, using error_at rather
20896 than error_with_line.
20897 (has_subst_attribute): Likewise.
20898 (identify_predicable_attribute): Likewise.
20899 (alter_attrs_for_subst_insn): Likewise.
20900 (process_one_cond_exec): Likewise.
20901 (process_substs_on_one_elem): Likewise.
20902 (process_define_subst): Likewise.
20903 (check_define_attr_duplicates): Likewise.
20904 (read_md_rtx): Update after change to queue_elem.
20905
20906 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20907
20908 * genoutput.c (next_index_number): Delete.
20909 (data): Remove index_number.
20910 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
20911 (main): Remove manipulation of next_index_number.
20912
20913 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20914
20915 * genattrtab.c (check_attr_value): Remove handling of null attrs.
20916 (make_canonical): Likewise.
20917
20918 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
20919
20920 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
20921 instead of adjust_address_nv.
20922 (restore_stack_nonlocal): Likewise.
20923 (nonlocal_goto): Likewise.
20924
20925 2015-07-16 Tom de Vries <tom@codesourcery.com>
20926
20927 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
20928 not have a corresponding loop header phi.
20929
20930 2015-07-16 Tom de Vries <tom@codesourcery.com>
20931
20932 * tree-parloops.c (create_loads_for_reductions): Handle case that
20933 reduction is unused.
20934
20935 2015-07-16 Richard Biener <rguenther@suse.de>
20936
20937 PR tree-optimization/66894
20938 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
20939 about deriving NE_EXPR from truncated values.
20940
20941 2015-07-16 Martin Liska <mliska@suse.cz>
20942
20943 * alloc-pool.h
20944 (object_allocator): Add new class.
20945 (pool_allocator::initialize): Use the underlying class.
20946 (pool_allocator::allocate): Likewise.
20947 (pool_allocator::remove): Likewise.
20948 (operator new): A new generic allocator.
20949 * asan.c (struct asan_mem_ref): Remove unused members.
20950 (asan_mem_ref_new): Replace new operator with
20951 object_allocator::allocate.
20952 (free_mem_ref_resources): Change deallocation.
20953 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
20954 with object_allocator.
20955 * config/sh/sh.c (add_constant): Replace new operator with
20956 object_allocator::allocate.
20957 (sh_reorg): Change call to a release method.
20958 * cselib.c (struct elt_list): Remove unused members.
20959 (new_elt_list): Replace new operator with
20960 object_allocator::allocate.
20961 (new_elt_loc_list): Likewise.
20962 (new_cselib_val): Likewise.
20963 (unchain_one_elt_list): Change delete operator with remove method.
20964 (unchain_one_elt_loc_list): Likewise.
20965 (unchain_one_value): Likewise.
20966 (cselib_finish): Release newly added static allocators.
20967 * cselib.h (struct cselib_val): Remove unused members.
20968 (struct elt_loc_list): Likewise.
20969 * df-problems.c (df_chain_alloc): Replace pool_allocator with
20970 object_allocator.
20971 * df-scan.c (struct df_scan_problem_data): Likewise.
20972 (df_scan_alloc): Likewise.
20973 * df.h (struct dataflow): Likewise.
20974 * dse.c (struct read_info_type): Likewise.
20975 (struct insn_info_type): Likewise.
20976 (struct dse_bb_info_type): Likewise.
20977 (struct group_info): Likewise.
20978 (struct deferred_change): Likewise.
20979 (get_group_info): Likewise.
20980 (delete_dead_store_insn): Likewise.
20981 (free_read_records): Likewise.
20982 (replace_read): Likewise.
20983 (check_mem_read_rtx): Likewise.
20984 (scan_insn): Likewise.
20985 (dse_step1): Likewise.
20986 (dse_step7): Likewise.
20987 * et-forest.c (struct et_occ): Remove unused members.
20988 (et_new_occ): Use allocate instead of new operator.
20989 (et_new_tree): Likewise.
20990 (et_free_tree): Call release method explicitly.
20991 (et_free_tree_force): Likewise.
20992 (et_free_pools): Likewise.
20993 (et_split): Use remove instead of delete operator.
20994 * et-forest.h (struct et_node): Remove unused members.
20995 * ipa-cp.c: Change pool_allocator to object_allocator.
20996 * ipa-inline-analysis.c: Likewise.
20997 * ipa-profile.c: Likewise.
20998 * ipa-prop.c: Likewise.
20999 * ipa-prop.h: Likewise.
21000 * ira-build.c (initiate_cost_vectors): Cast return value.
21001 (ira_allocate_cost_vector): Likewise.
21002 * ira-color.c (struct update_cost_record): Remove unused members.
21003 * lra-int.h (struct lra_live_range): Likewise.
21004 (struct lra_copy): Likewise.
21005 (struct lra_insn_reg): Likewise.
21006 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
21007 * lra.c (new_insn_reg): Replace new operator with allocate method.
21008 (free_insn_regs): Same for operator delete.
21009 (finish_insn_regs): Release new static allocator.
21010 (finish_insn_recog_data): Likewise.
21011 (lra_free_copies): Replace delete operator with remove method.
21012 (lra_create_copy): Replace operator new with allocate method.
21013 (invalidate_insn_data_regno_info): Same for remove method.
21014 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
21015 (free_debug_insn_changes): Replace delete operator with remove method.
21016 (replace_oldest_value_reg): Replace operator new with allocate method.
21017 (pass_cprop_hardreg::execute): Release new static variable.
21018 * sched-deps.c (sched_deps_init): Change pool_allocator to
21019 object_allocator.
21020 * sel-sched-ir.c: Likewise.
21021 * sel-sched-ir.h: Likewise.
21022 * stmt.c (expand_case): Likewise.
21023 (expand_sjlj_dispatch_table): Likewise.
21024 * tree-sra.c (struct access): Remove unused members.
21025 (struct assign_link): Likewise.
21026 (sra_deinitialize): Release newly added static pools.
21027 (create_access_1):Replace operator new with allocate method.
21028 (build_accesses_from_assign): Likewise.
21029 (create_artificial_child_access): Likewise.
21030 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
21031 pool_allocator to object_allocator.
21032 * tree-ssa-pre.c: Likewise.
21033 * tree-ssa-reassoc.c: Likewise.
21034 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
21035 * tree-ssa-strlen.c: Likewise.
21036 * tree-ssa-structalias.c: Likewise.
21037 * var-tracking.c (onepart_pool_allocate): New function.
21038 (unshare_variable): Use the newly added function.
21039 (variable_merge_over_cur): Likewise.
21040 (variable_from_dropped): Likewise.
21041 (variable_was_changed): Likewise.
21042 (set_slot_part): Likewise.
21043 (emit_notes_for_differences_1): Likewise.
21044 (vt_finalize): Release newly added static pools.
21045
21046 2015-07-16 Martin Jambor <mjambor@suse.cz>
21047
21048 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
21049 all uses. Fix two typos in its general comment.
21050 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
21051
21052 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
21053
21054 * config/i386/linux-common.h (LINK_MPX): New.
21055 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
21056 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
21057 indicating '-z bndplt' support by linker.
21058 * configure: Regenerate.
21059 * config.in: Regenerate.
21060
21061 2015-07-16 Richard Biener <rguenther@suse.de>
21062
21063 * fold-const.c (fold_widened_comparison): Remove.
21064 (fold_sign_changed_comparison): Likewise.
21065 (fold_comparison): Move widened and sign-changed comparison
21066 simplification ...
21067 * match.pd: ... to patterns here.
21068 * generic-match-head.c: Include target.h.
21069 * gimple-match-head.c: Likewise.
21070
21071 2015-07-16 Richard Biener <rguenther@suse.de>
21072
21073 * tree-ssa-dom.c (dom_valueize): New function.
21074 (record_temporary_equivalences): Also record equivalences
21075 for dominating stmts that have uses of equivalences we are
21076 about to record.
21077
21078 2015-07-16 Bin Cheng <bin.cheng@arm.com>
21079
21080 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
21081 add_autoinc_candidates.
21082 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
21083 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
21084 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
21085 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
21086 Call new function.
21087 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
21088 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
21089 Remove parameter struct iv*. Call add_autoinc_candidates here.
21090 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
21091 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
21092 Call new function.
21093 (find_iv_candidates): Call new functions.
21094
21095 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
21096
21097 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
21098 uninitialized-variable warning.
21099
21100 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
21101
21102 PR target/65249
21103 * config/sh/sh.md (movdi): Split simple reg move to two movsi
21104 when the destination is R0.
21105
21106 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
21107
21108 PR target/66866
21109 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
21110 * config/i386/i386.c (ix86_expand_pextr): New function.
21111 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
21112 for non-lowpart subregs.
21113 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
21114 (insv<mode>): Use SWI248 mode iterator.
21115 (insv<mode>_1): Ditto.
21116
21117 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
21118 Sebastian Pop <s.pop@samsung.com>
21119
21120 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
21121 iterator to use_stmt.
21122
21123 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
21124 Sebastian Pop <s.pop@samsung.com>
21125
21126 * graphite-scop-detection.c (build_scops_1): Discard scops for
21127 which entry==exit.
21128
21129 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
21130 Sebastian Pop <s.pop@samsung.com>
21131
21132 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
21133 case of a return statement in scop.
21134
21135 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
21136 Sebastian Pop <s.pop@samsung.com>
21137
21138 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
21139 INTEGER_TYPE parameters.
21140 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
21141 VECTOR_CST in scan_tree_for_params.
21142 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
21143
21144 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
21145
21146 * gimple-pretty-print.h: Don't include pretty-print.h.
21147 * tree-streamer.h: Don't include lto-streamer.h.
21148 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
21149 * gimple-streamer-in.c: Remove redundant includes.
21150 * gimple-streamer-out.c: Likewise.
21151 * ipa-devirt.c: Likewise.
21152 * ipa-icf.c: Likewise.
21153 * ipa-inline-analysis.c: Likewise.
21154 * ipa-polymorphic-call.c: Likewise.
21155 * ipa-profile.c: Likewise.
21156 * ipa-prop.c: Likewise.
21157 * ipa-pure-const.c: Likewise.
21158 * lto-cgraph.c: Likewise.
21159 * lto-streamer-in.c: Likewise.
21160 * lto-streamer-out.c: Likewise.
21161 * lto-streamer.c: Likewise.
21162 * tree-streamer-in.c: Likewise.
21163 * tree-streamer-out.c: Likewise.
21164 * tree-streamer.c: Likewise.
21165
21166 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
21167
21168 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
21169 include input.h.
21170 * opts.c: Remove multiline #include comment.
21171
21172 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
21173
21174 * config/nvptx/mkoffload.c (process): Add C++ protection to
21175 emitted code.
21176
21177 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
21178
21179 PR target/66854
21180 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
21181 null before IEEE 128-bit floating point support patch.
21182
21183 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21184
21185 * simplify-rtx.c (simplify_ternary_operation): Add simplification
21186 for (!c) != {0,...,0} ? a : b for vector modes.
21187
21188 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
21189 Martin Jambor <mjambor@suse.cz>
21190
21191 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
21192 struct func_body_info* instead of struct ipa_node_params*, expecting
21193 fbi->info to be filled in. Replace throughout. Adjust call to
21194 ipa_load_from_parm_agg.
21195 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
21196 instead of struct ipa_node_params*. Adjust calls to other functions
21197 so that they pass either fbi or fbi->info.
21198 (set_switch_stmt_execution_predicate): Likewise.
21199 (will_be_nonconstant_predicate): Likewise.
21200 (compute_bb_predicates): Likewise.
21201 (estimate_function_body_sizes): Move asserts earlier. Fill in
21202 struct func_body_info, replace parms_info with fbi.info. Adjust
21203 calls to functions that now accept struct func_body_info.
21204 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
21205 (struct func_body_info): Likewise.
21206 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
21207 remove static. Adjust callers.
21208 (ipa_load_from_parm_agg): Remove.
21209 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
21210 (func_body_info): Likewise.
21211 (ipa_load_from_parm_agg): Adjust prototype.
21212
21213 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21214
21215 * gensupport.c (rtx_handle_directive): Adjust.
21216 * read-rtl.c (apply_iterators): Take vector to add rtxs to
21217 instead of expr list rtx.
21218 (add_define_attr_for_define_subst): Likewise.
21219 (add_define_subst_attr): Likewise.
21220 (read_subst_mapping): Likewise.
21221 (read_rtx): Likewise.
21222 * rtl.h (read_rtx): Adjust.
21223
21224 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21225
21226 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
21227
21228 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
21229
21230 PR target/58066
21231 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
21232 (*tls_local_dynamic_base_64_<mode>): Ditto.
21233 (*tls_local_dynamic_base_64_largepic): Ditto.
21234 (tls_global_dynamic_64_<mode>): Update expander pattern.
21235 (tls_local_dynamic_base_64_<mode>): Ditto.
21236
21237 2015-07-15 Richard Biener <rguenther@suse.de>
21238
21239 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
21240 and bool_var == 1 -> bool_var simplifications ...
21241 * match.pd: ... to patterns here. Factor out negate_expr_p
21242 cases from the A - B -> A + (-B) patterns as negate_expr_p
21243 predicate and add a -(A + B) -> (-B) - A pattern.
21244
21245 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
21246
21247 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
21248
21249 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
21250 Robert Suchanek <robert.suchanek@imgtec.com>
21251
21252 * config/mips/mips.c (mips_int_mask): New enum.
21253 (mips_shadow_set): Likewise.
21254 (int_mask): New variable.
21255 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
21256 (machine_function): Add int_mask and use_shadow_register_set.
21257 (mips_attribute_table): Add attribute handlers for interrupt and
21258 use_shadow_register_set.
21259 (mips_interrupt_mask): New static function.
21260 (mips_handle_interrupt_attr): Likewise.
21261 (mips_handle_use_shadow_register_set_attr): Likewise.
21262 (mips_use_shadow_register_set): Change return type to enum
21263 mips_shadow_set. Add argument handling for use_shadow_register_set
21264 attribute.
21265 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
21266 compare with mips_shadow_set enum.
21267 (mips_compute_frame_info): Add interrupt mask and
21268 use_shadow_register_set to per-function information structure.
21269 Add a stack slot for EPC unconditionally.
21270 (mips_expand_prologue): Compare use_shadow_register_set value
21271 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
21272 masked interrupt register but in EIC mode use K0 and save Cause in K0.
21273 EPC saved and restored unconditionally. Use PMODE_INSN macro when
21274 copying the stack pointer from the shadow register set.
21275 * config/mips/mips.h (SR_IM0): New define.
21276 * config/mips/mips.md (mips_rdpgpr): Rename to...
21277 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
21278 * doc/extend.texi (Declaring Attributes of Functions): Document
21279 optional arguments for interrupt and use_shadow_register_set
21280 attributes.
21281
21282 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
21283
21284 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
21285 interrupt attribute.
21286 (mips_expand_prologue): Disable the floating point unit in an ISR.
21287 * config/mips/mips.h (SR_COP1): New define.
21288
21289 2015-07-15 Richard Biener <rguenther@suse.de>
21290
21291 * genmatch.c (parser::peek, parser::peek_ident): Add argument
21292 to tell how many tokens to peek ahead (default 1).
21293 (parser::eat_token, parser::eat_ident): Return token consumed.
21294 (parser::parse_result): Parse new switch statement.
21295 * match.pd: Use case statements where appropriate.
21296
21297 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
21298
21299 PR rtl-optimization/58066
21300 * calls.c (expand_call): Precompute register parameters before stack
21301 alignment is performed.
21302
21303 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
21304
21305 PR rtl-optimization/66838
21306 * postreload.c (reload_cse_move2add): Also process
21307 CALL_INSN_FUNCTION_USAGE when resetting information of
21308 call-clobbered registers.
21309
21310 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21311 Cesar Philippidis <cesar@codesourcery.com>
21312 Chung-Lin Tang <cltang@codesourcery.com>
21313
21314 * config/nios2/constraints.md (U, v): New constraints.
21315 * config/nios2/predicates.md (rdprs_dcache_operand): New.
21316 (ldstex_memory_operand): New.
21317 * config/nios2/sync.md: New file.
21318 * config/nios2/nios2.md (unspecv): Add new builtin function
21319 UNSPECV codes.
21320 (rdprs, flushd, flushda, wrpie, eni): New patterns.
21321 (top-level): Include sync.md.
21322 * config/nios2/nios2.c (N2_FTYPES): Add function types for
21323 new builtins.
21324 (N2_BUILTINS): Add arch field setting, add new builtins.
21325 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
21326 for arch field.
21327 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
21328 Also handle ldex/stex/ldsex/stsex builtins.
21329 (nios2_expand_rdprs_builtin): New function.
21330 (nios2_expand_cache_builtin): New function.
21331 (nios2_expand_wrpie_builtin): New function.
21332 (nios2_expand_eni_builtin): New function.
21333 (nios2_expand_builtin): Add arch field handling and new builtin
21334 cases.
21335 * doc/extend.texi (Altera Nios II Built-in Functions): Document
21336 new builtins.
21337 * doc/md.texi (Machine Constraints): Document U and v constraints.
21338
21339 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21340 Cesar Philippidis <cesar@codesourcery.com>
21341 Chung-Lin Tang <cltang@codesourcery.com>
21342
21343 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
21344 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
21345 callee_save_reg_size and uses_anonymous_args fields.
21346 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
21347 (nios2_create_cfa_notes): New function.
21348 (nios2_adjust_stack): New function for adjusting stack.
21349 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
21350 Use nios2_adjust_stack.
21351 (nios2_expand_epilogue): Likewise.
21352 (nios2_expand_return): New function.
21353 (nios2_can_use_return_insn): Update for CDX pop.n usage.
21354 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
21355 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
21356 * config/nios2/nios2.md (return): Use nios2_expand_return.
21357
21358 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21359 Cesar Philippidis <cesar@codesourcery.com>
21360 Chung-Lin Tang <cltang@codesourcery.com>
21361
21362 * config/nios2/predicates.md (pop_operation): New.
21363 (ldwm_operation, stwm_operation): New.
21364 (nios2_hard_register_operand): New.
21365 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
21366 (ldstwm_operation_p): Declare.
21367 (gen_ldstwm_peep): Declare.
21368 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
21369 (base_reg_adjustment_p): New.
21370 (pop_operation_p): New.
21371 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
21372 (nios2_ldstwm_regset_p): New.
21373 (ldstwm_operation_p): New.
21374 (gen_ldst): New.
21375 (nios2_ldst_parallel): New.
21376 (struct ldswm_operand): Declare.
21377 (compare_ldstwm_operands): New.
21378 (can_use_cdx_ldstw): New.
21379 (gen_ldstwm_peep): New.
21380 * config/nios2/nios2-ldstwm.sml: New.
21381 * config/nios2/nios2.md: Include ldstwm.md.
21382 * config/nios2/ldstwm.md: Generated.
21383
21384 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21385 Cesar Philippidis <cesar@codesourcery.com>
21386 Chung-Lin Tang <cltang@codesourcery.com>
21387
21388 * config/nios2/nios2.h (LABEL_ALIGN): Define.
21389 (REG_ALLOC_ORDER): Define.
21390 (ADJUST_REG_ALLOC_ORDER): Define.
21391 (HONOR_REG_ALLOC_ORDER): Define.
21392 (CDX_REG_P): Define.
21393 (ANDCLEAR_INT): Define.
21394 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
21395 (nios2_label_align): Declare.
21396 (nios2_cdx_narrow_form_p): Declare.
21397 (nios2_adjust_reg_alloc_order): Declare.
21398 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
21399 operation.
21400 (nios2_large_unspec_reloc_p): New function, split from...
21401 (nios2_legitimate_pic_operand_p): ...here.
21402 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
21403 (nios2_print_operand_punct_valid_p): New.
21404 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
21405 (split_mem_address): New.
21406 (split_alu_insn): New.
21407 (cdxreg): New.
21408 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
21409 (enum nios2_add_insn_kind): New.
21410 (nios2_add_insn_names, nios2_add_insn_narrow): New.
21411 (nios2_add_insn_classify): New.
21412 (nios2_add_insn_asm): New.
21413 (nios2_cdx_narrow_form_p): New.
21414 (label_align, min_labelno, max_labelno): New.
21415 (nios2_reorg): New.
21416 (nios2_label_align): New.
21417 (nios2_adjust_reg_alloc_order): New.
21418 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
21419 (TARGET_MACHINE_DEPENDENT_REORG): Define.
21420 * config/nios2/constraints.md (P): New constraint.
21421 * config/nios2/predicates.md (const_and_operand): New.
21422 (and_operand): New.
21423 (stack_memory_operand): New.
21424 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
21425 (length): Update to use nios2_cdx_narrow_form_p().
21426 (type): Add new insn type values.
21427 (control, alu, st, ld, shift): Update insn reservations with
21428 new insn type values.
21429 (*high, *lo_sum): Define new insn patterns for constant generation.
21430 (movqi_internal, movhi_internal, movsi_internal): Reduce
21431 alternatives, update asm template to handle CDX variants, update
21432 type attributes.
21433 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
21434 template, update type attributes.
21435 (extendhisi2, extendqi<mode>2): Likewise.
21436 (addsi3): Change to use function for asm string.
21437 (subsi3): Add CDX notation to asm template, update type attributes.
21438 (negsi3, one_cmplsi3): Likewise.
21439 (andsi3): New pattern, specialized from logical patterns.
21440 (<code>si3): Remove and case, combine alternatives, update asm
21441 template.
21442 (<shift_op>si3): Add CDX notation, update type attributes.
21443 (rotrsi3): Update type attribute.
21444 (*merge, extzv, insv): New insn patterns.
21445 (return): Change to define_expand.
21446 (simple_return): Add CDX notation, update type attributes.
21447 (indirect_jump): Add CDX notation.
21448 (jump): Update asm cases, update length attribute expression.
21449 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
21450 (nios2_cbranch): Update asm cases and length attribute expression
21451 to handle CDX variants.
21452 (nios2_cmp<code>): Update asm template.
21453 (nop): Add CDX notation, update type attributes.
21454 (trap): Add CDX notation.
21455 (ctrapsi4): Update asm cases and length attribute expression to
21456 handle CDX variant.
21457 * doc/md.texi (Machine Constraints): Document P constraint.
21458
21459 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21460 Cesar Philippidis <cesar@codesourcery.com>
21461 Chung-Lin Tang <cltang@codesourcery.com>
21462
21463 * config/nios2/nios2.h (SMALL_INT12): New macro.
21464 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
21465 (nios2_valid_addr_expr_p): Use it.
21466 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
21467 with implicit "io" instructions on R2.
21468 * config/nios2/constraints.md (w): New constraint.
21469 * config/nios2/predicates.md (ldstio_memory_operand): New.
21470 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
21471 operand predicate and constraint.
21472 (ld<bh>io_signed, st<bhw>io>): Likewise.
21473 * doc/md.texi (Machine Constraints): Document w constraint.
21474
21475 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21476 Cesar Philippidis <cesar@codesourcery.com>
21477 Chung-Lin Tang <cltang@codesourcery.com>
21478
21479 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
21480 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
21481 Nios II architecture level.
21482 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
21483 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
21484 (OPTION_DEFAULT_SPECS): Define.
21485 (ASM_SPEC): Add -march= spec strings.
21486 * config/nios2/nios2.c (nios2_option_override): Check for
21487 conflicts involving new options.
21488 * config.gcc (nios2*-*-*): Support --with-arch=.
21489 * doc/invoke.texi (Option Summary, Nios II Options): Document
21490 -march=, -mbmx, and -mcdx.
21491
21492 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
21493
21494 PR rtl-optimization/66626
21495 * lra-constraints.c (lra_constraints): Prevent equivalence
21496 substitution for static chain pseudo in functions with nonlocal
21497 goto.
21498
21499 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21500
21501 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
21502 (nios2_emit_stack_limit_check): Add size parameter. Handle
21503 -fstack-limit-symbol as well as -fstack-limit-register.
21504 (nios2_expand_prologue): Emit only a single stack limit check,
21505 even if multiple stack adjustments are required.
21506 (nios2_option_override): Diagnose unsupported combination of -fpic
21507 and -stack-limit-symbol.
21508
21509 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
21510
21511 * Makefile.in (top_srcdir): New.
21512 * configure.ac: Use AM_ZLIB.
21513 * configure: Regeneated.
21514
21515 2015-07-14 Matthias Klose <doko@ubuntu.com>
21516
21517 PR target/66840
21518 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
21519
21520 2015-07-14 Richard Biener <rguenther@suse.de>
21521
21522 PR tree-optimization/66863
21523 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
21524 what we record for conversion use stmt lhs inequalities.
21525
21526 2015-07-14 Richard Biener <rguenther@suse.de>
21527
21528 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
21529 (decision_tree::gen_gimple): Likewise.
21530
21531 2015-07-14 Tom de Vries <tom@codesourcery.com>
21532
21533 * gcc.c (greater_than_spec_func): Declare forward.
21534 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
21535 -ftree-parallelize-loops={0,1}.
21536 (static_spec_functions): Add greater_than_spec_func function with name
21537 "gt".
21538 (greater_than_spec_func): New function.
21539
21540 2015-07-14 Richard Biener <rguenther@suse.de>
21541
21542 * tree-ssa-dom.c (record_temporary_equivalences): Merge
21543 wideing type conversion case from record_equivalences_from_incoming_edge
21544 and use record_equality to record equivalences.
21545 (record_equivalences_from_incoming_edge): Call
21546 record_temporary_equivalences.
21547
21548 2015-07-14 Richard Biener <rguenther@suse.de>
21549
21550 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
21551 (struct if_expr): New.
21552 (struct with_expr): Likewise.
21553 (is_a_helper): Add helpers for if_expr and with_expr.
21554 (struct simplify): Add simplify_kind enum and member. Remove
21555 ifexpr_vec member.
21556 (simplify::simplify): Adjust.
21557 (lower_commutative): Adjust.
21558 (lower_opt_convert): Likewise.
21559 (lower_cond): Likewise.
21560 (replace_id): Handle with_expr and if_expr.
21561 (lower_for): Adjust.
21562 (dt_simplify::gen_1): New recursive worker, split out from ...
21563 (dt_simplify::gen): ... here. Deal with if and with expansion
21564 recursively.
21565 (capture_info::capture_info): Take context argument
21566 (capture_info::walk_result): Only analyze specific result.
21567 (parser::parse_result): New function.
21568 (parser::parse_simplify): Adjust to parse ifs with then end
21569 else case.
21570 (parser::parse_if): Simplify.
21571 (parser::parse_pattern): Pass down simplify kind.
21572 * match.pd: Convert if structure to new syntax.
21573
21574 2015-07-13 Marek Polacek <polacek@redhat.com>
21575
21576 * rtl.c (rtx_equal_p_cb): Fix typo.
21577
21578 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
21579
21580 * omega.h: Don't include config.h, don't include params.h again if
21581 omega.h has already been included.
21582 * graphite-poly.h: Include sese.h.
21583 * graphite.c: Don't include sese.h, remove needless includes and
21584 minimize includes outside #ifdef HAVE_isl block.
21585 * graphite-blocking.c: Don't include sese.h, remove needless includes,
21586 and wrap entire file in #ifdef HAVE_isl
21587 * graphite-dependences.c: Likewise.
21588 * graphite-interchange.c: Likewise.
21589 * graphite-isl-ast-to-gimple.c: Likewise.
21590 * graphite-optimize-isl.c: Likewise.
21591 * graphite-poly.c: Likewise.
21592 * graphite-scop-detection.c: Likewise.
21593 * graphite-sese-to-poly.c: Likewise.
21594
21595 2015-07-13 Tom de Vries <tom@codesourcery.com>
21596
21597 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
21598
21599 2015-07-13 Renlin Li <renlin.li@arm.com>
21600
21601 PR rtl/66556
21602 * simplify-rtx.c (simplify_const_relational_operation): Add
21603 side_effects_p checks.
21604
21605 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
21606
21607 * bitmap.h: Fix double word typos.
21608 * builtins.c: Same.
21609 * calls.c: Same.
21610 * cfgloopmanip.c: Same.
21611 * cgraph.c: Same.
21612 * cgraph.h: Same.
21613 * cgraphclones.c: Same.
21614 * combine.c: Same.
21615 * config/aarch64/aarch64-protos.h: Same.
21616 * config/aarch64/aarch64.c: Same.
21617 * config/aarch64/aarch64.md: Same.
21618 * config/arm/arm.md: Same.
21619 * config/arm/arm1020e.md: Same.
21620 * config/arm/arm1026ejs.md: Same.
21621 * config/arm/arm926ejs.md: Same.
21622 * config/arm/fa526.md: Same.
21623 * config/arm/fa606te.md: Same.
21624 * config/arm/fa626te.md: Same.
21625 * config/arm/fa726te.md: Same.
21626 * config/arm/fmp626.md: Same.
21627 * config/darwin.c: Same.
21628 * config/epiphany/epiphany.c: Same.
21629 * config/frv/frv.c: Same.
21630 * config/ft32/ft32.c: Same.
21631 * config/gnu-user.h: Same.
21632 * config/h8300/constraints.md: Same.
21633 * config/i386/i386.c: Same.
21634 * config/i386/i386.md: Same.
21635 * config/iq2000/iq2000.md: Same.
21636 * config/mips/mips.c: Same.
21637 * config/mmix/mmix.md: Same.
21638 * config/moxie/moxie.c: Same.
21639 * config/nds32/nds32.md: Same.
21640 * config/pa/pa.h: Same.
21641 * config/rs6000/aix.h: Same.
21642 * config/rs6000/rs6000.h: Same.
21643 * config/sh/sh.c: Same.
21644 * config/tilegx/tilegx.md: Same.
21645 * config/tilepro/gen-mul-tables.cc: Same.
21646 * cse.c: Same.
21647 * dbxout.c: Same.
21648 * doc/invoke.texi: Same.
21649 * dse.c: Same.
21650 * dwarf2out.c: Same.
21651 * final.c: Same.
21652 * gcc.c: Same.
21653 * genmatch.c: Same.
21654 * gimplify.c: Same.
21655 * hash-table.h: Same.
21656 * internal-fn.c: Same.
21657 * ipa-cp.c: Same.
21658 * ipa-devirt.c: Same.
21659 * ipa-icf.c: Same.
21660 * ipa-icf.h: Same.
21661 * ipa-profile.c: Same.
21662 * ipa-prop.c: Same.
21663 * ipa-prop.h: Same.
21664 * ira.c: Same.
21665 * omp-low.c: Same.
21666 * reg-stack.c: Same.
21667 * regcprop.c: Same.
21668 * reorg.c: Same.
21669 * rtl.h: Same.
21670 * sbitmap.h: Same.
21671 * tree-eh.c: Same.
21672 * tree-inline.c: Same.
21673 * tree-sra.c: Same.
21674 * tree-ssa-dom.c: Same.
21675 * tree-ssa-loop-ivopts.c: Same.
21676 * tree-ssa-structalias.c: Same.
21677 * tree-ssa-tail-merge.c: Same.
21678 * tree-ssa-ter.c: Same.
21679 * tree-ssa-threadupdate.c: Same.
21680 * tree-ssa-uninit.c: Same.
21681 * tree-ssanames.c: Same.
21682 * tree-vect-loop-manip.c: Same.
21683 * tree-vrp.c: Same.
21684 * tree.c: Same.
21685 * valtrack.c: Same.
21686 * vec.h: Same.
21687
21688 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
21689
21690 PR middle-end/66726
21691 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
21692 tree_ssa_phiopt_worker): Call it.
21693
21694 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
21695
21696 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
21697 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
21698 REG_EQUAL note.
21699
21700 2015-07-11 Marek Polacek <polacek@redhat.com>
21701
21702 PR middle-end/66353
21703 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
21704 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
21705 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
21706 rather than bb_has_abnormal_call_pred.
21707 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
21708 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
21709 rather than bb_has_abnormal_call_pred.
21710
21711 2015-07-10 Anatoly Sokolov <aesok@post.ru>
21712
21713 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
21714 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
21715 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
21716 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
21717 v850_legitimate_address_p): New functions.
21718 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
21719
21720 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
21721
21722 PR target/66819
21723 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
21724 indirect sibcall with register arguments if register available
21725 for argument passing.
21726 (init_cumulative_args): Set cfun->machine->arg_reg_available
21727 to (cum->nregs > 0) or to true if function has a variable
21728 argument list.
21729 (function_arg_advance_32): Set cfun->machine->arg_reg_available
21730 to false if cum->nregs <= 0.
21731 * config/i386/i386.h (machine_function): Add arg_reg_available.
21732
21733 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
21734
21735 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
21736 and gen_higpart instead of gen_rtx_SUBREG.
21737 * config/i386/i386.md
21738 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
21739 (read-modify peephole2): Use gen_lowpart instead of
21740 gen_rtx_SUBREG for operand 5.
21741
21742 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
21743
21744 * config/tilepro/gen-mul-tables.cc (main): Change include list for
21745 generated files.
21746 * config/tilepro/mul-tables.c: Regenerate.
21747 * config/tilegx/mul-tables.c: Regenerate.
21748
21749 2015-07-10 Richard Biener <rguenther@suse.de>
21750
21751 * fold-const.c (distribute_bit_expr): Remove.
21752 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
21753 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
21754 to A & (B | C) and simplifying A << C1 << C2 to ...
21755 * match.pd: ... patterns here.
21756
21757 2015-07-10 Jiong Wang <jiong.wang@arm.com>
21758
21759 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
21760 Mark mem as READONLY and NOTRAP for PIC symbol.
21761
21762 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
21763
21764 * gimple-predict.h: New file.
21765 (gimple_predict_predictor, gimple_predict_set_predictor,
21766 gimple_predict_outcome, gimple_predict_set_outcome,
21767 gimple_build_predict): Relocate here.
21768 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
21769 gimple_predict_outcome, gimple_predict_set_outcome): Move to
21770 gimple-predict.h.
21771 * gimple.c (gimple_build_predict): Move to gimple-predict.h
21772 * basic-block.h: Don't include cfghooks.h.
21773 * backend.h: Don't include predict.h.
21774 * cfghooks.h: Include predict.h.
21775 * gimple-pretty-print.c: Include gimple-predict.h.
21776 * gimplify.c: Likwise.
21777 * predict.c: Adjust includes.
21778 * tree-inline.c: Likewise.
21779 * asan.c: Likewise.
21780 * auto-inc-dec.c: Likewise.
21781 * auto-profile.c: Likewise.
21782 * bb-reorder.c: Likewise.
21783 * builtins.c: Likewise.
21784 * caller-save.c: Likewise.
21785 * calls.c: Likewise.
21786 * cfganal.c: Likewise.
21787 * cfgbuild.c: Likewise.
21788 * cfg.c: Likewise.
21789 * cfgcleanup.c: Likewise.
21790 * cfgexpand.c: Likewise.
21791 * cfghooks.c: Likewise.
21792 * cfgloopanal.c: Likewise.
21793 * cfgloop.c: Likewise.
21794 * cfgloopmanip.c: Likewise.
21795 * cfgrtl.c: Likewise.
21796 * cgraph.c: Likewise.
21797 * cgraphunit.c: Likewise.
21798 * combine.c: Likewise.
21799 * cprop.c: Likewise.
21800 * cse.c: Likewise.
21801 * dce.c: Likewise.
21802 * dojump.c: Likewise.
21803 * dse.c: Likewise.
21804 * except.c: Likewise.
21805 * expmed.c: Likewise.
21806 * expr.c: Likewise.
21807 * final.c: Likewise.
21808 * fold-const.c: Likewise.
21809 * function.c: Likewise.
21810 * fwprop.c: Likewise.
21811 * gcc-plugin.h: Likewise.
21812 * gcse.c: Likewise.
21813 * genattrtab.c: Likewise.
21814 * genemit.c: Likewise.
21815 * gengtype.c: Likewise.
21816 * genopinit.c: Likewise.
21817 * genoutput.c: Likewise.
21818 * genpreds.c: Likewise.
21819 * genrecog.c: Likewise.
21820 * gimple-fold.c: Likewise.
21821 * gimple-iterator.c: Likewise.
21822 * gimple-ssa-isolate-paths.c: Likewise.
21823 * gimple-ssa-strength-reduction.c: Likewise.
21824 * graph.c: Likewise.
21825 * graphite-blocking.c: Likewise.
21826 * graphite.c: Likewise.
21827 * graphite-dependences.c: Likewise.
21828 * graphite-interchange.c: Likewise.
21829 * graphite-isl-ast-to-gimple.c: Likewise.
21830 * graphite-optimize-isl.c: Likewise.
21831 * graphite-poly.c: Likewise.
21832 * graphite-scop-detection.c: Likewise.
21833 * graphite-sese-to-poly.c: Likewise.
21834 * haifa-sched.c: Likewise.
21835 * ifcvt.c: Likewise.
21836 * internal-fn.c: Likewise.
21837 * ipa-cp.c: Likewise.
21838 * ipa-profile.c: Likewise.
21839 * ipa-split.c: Likewise.
21840 * ipa-utils.c: Likewise.
21841 * ira-build.c: Likewise.
21842 * ira-color.c: Likewise.
21843 * ira-conflicts.c: Likewise.
21844 * ira-costs.c: Likewise.
21845 * ira-emit.c: Likewise.
21846 * ira-lives.c: Likewise.
21847 * jump.c: Likewise.
21848 * loop-doloop.c: Likewise.
21849 * loop-init.c: Likewise.
21850 * loop-invariant.c: Likewise.
21851 * loop-unroll.c: Likewise.
21852 * lower-subreg.c: Likewise.
21853 * lra-assigns.c: Likewise.
21854 * lra.c: Likewise.
21855 * lra-coalesce.c: Likewise.
21856 * lra-constraints.c: Likewise.
21857 * lra-lives.c: Likewise.
21858 * lto-cgraph.c: Likewise.
21859 * lto-streamer-in.c: Likewise.
21860 * mode-switching.c: Likewise.
21861 * modulo-sched.c: Likewise.
21862 * omp-low.c: Likewise.
21863 * optabs.c: Likewise.
21864 * passes.c: Likewise.
21865 * postreload.c: Likewise.
21866 * postreload-gcse.c: Likewise.
21867 * profile.c: Likewise.
21868 * recog.c: Likewise.
21869 * regstat.c: Likewise.
21870 * reload1.c: Likewise.
21871 * reorg.c: Likewise.
21872 * rtlanal.c: Likewise.
21873 * sched-ebb.c: Likewise.
21874 * sel-sched-ir.c: Likewise.
21875 * sese.c: Likewise.
21876 * shrink-wrap.c: Likewise.
21877 * simplify-rtx.c: Likewise.
21878 * stmt.c: Likewise.
21879 * store-motion.c: Likewise.
21880 * tracer.c: Likewise.
21881 * trans-mem.c: Likewise.
21882 * tree-call-cdce.c: Likewise.
21883 * tree-cfg.c: Likewise.
21884 * tree-cfgcleanup.c: Likewise.
21885 * tree-chkp.c: Likewise.
21886 * tree-complex.c: Likewise.
21887 * tree-eh.c: Likewise.
21888 * tree-if-conv.c: Likewise.
21889 * tree-loop-distribution.c: Likewise.
21890 * tree-outof-ssa.c: Likewise.
21891 * tree-parloops.c: Likewise.
21892 * tree-predcom.c: Likewise.
21893 * tree-pretty-print.c: Likewise.
21894 * tree-profile.c: Likewise.
21895 * tree-sra.c: Likewise.
21896 * tree-ssa.c: Likewise.
21897 * tree-ssa-coalesce.c: Likewise.
21898 * tree-ssa-dce.c: Likewise.
21899 * tree-ssa-dom.c: Likewise.
21900 * tree-ssa-forwprop.c: Likewise.
21901 * tree-ssa-ifcombine.c: Likewise.
21902 * tree-ssa-loop-ch.c: Likewise.
21903 * tree-ssa-loop-im.c: Likewise.
21904 * tree-ssa-loop-ivcanon.c: Likewise.
21905 * tree-ssa-loop-ivopts.c: Likewise.
21906 * tree-ssa-loop-manip.c: Likewise.
21907 * tree-ssa-loop-prefetch.c: Likewise.
21908 * tree-ssa-loop-unswitch.c: Likewise.
21909 * tree-ssa-math-opts.c: Likewise.
21910 * tree-ssa-phiopt.c: Likewise.
21911 * tree-ssa-pre.c: Likewise.
21912 * tree-ssa-reassoc.c: Likewise.
21913 * tree-ssa-sink.c: Likewise.
21914 * tree-ssa-tail-merge.c: Likewise.
21915 * tree-ssa-threadedge.c: Likewise.
21916 * tree-ssa-threadupdate.c: Likewise.
21917 * tree-switch-conversion.c: Likewise.
21918 * tree-tailcall.c: Likewise.
21919 * tree-vect-data-refs.c: Likewise.
21920 * tree-vect-loop.c: Likewise.
21921 * tree-vect-loop-manip.c: Likewise.
21922 * tree-vectorizer.c: Likewise.
21923 * tree-vrp.c: Likewise.
21924 * ubsan.c: Likewise.
21925 * value-prof.c: Likewise.
21926 * varasm.c: Likewise.
21927 * var-tracking.c: Likewise.
21928 * config/aarch64/aarch64-builtins.c: Likewise.
21929 * config/aarch64/aarch64.c: Likewise.
21930 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21931 * config/alpha/alpha.c: Likewise.
21932 * config/arc/arc.c: Likewise.
21933 * config/arm/arm.c: Likewise.
21934 * config/avr/avr.c: Likewise.
21935 * config/bfin/bfin.c: Likewise.
21936 * config/c6x/c6x.c: Likewise.
21937 * config/cr16/cr16.c: Likewise.
21938 * config/cris/cris.c: Likewise.
21939 * config/darwin.c: Likewise.
21940 * config/darwin-c.c: Likewise.
21941 * config/epiphany/epiphany.c: Likewise.
21942 * config/epiphany/mode-switch-use.c: Likewise.
21943 * config/epiphany/resolve-sw-modes.c: Likewise.
21944 * config/fr30/fr30.c: Likewise.
21945 * config/frv/frv.c: Likewise.
21946 * config/ft32/ft32.c: Likewise.
21947 * config/h8300/h8300.c: Likewise.
21948 * config/i386/i386.c: Likewise.
21949 * config/i386/winnt.c: Likewise.
21950 * config/ia64/ia64.c: Likewise.
21951 * config/iq2000/iq2000.c: Likewise.
21952 * config/lm32/lm32.c: Likewise.
21953 * config/m32c/m32c.c: Likewise.
21954 * config/m32r/m32r.c: Likewise.
21955 * config/m68k/m68k.c: Likewise.
21956 * config/mcore/mcore.c: Likewise.
21957 * config/mep/mep.c: Likewise.
21958 * config/microblaze/microblaze.c: Likewise.
21959 * config/mips/mips.c: Likewise.
21960 * config/mmix/mmix.c: Likewise.
21961 * config/mn10300/mn10300.c: Likewise.
21962 * config/moxie/moxie.c: Likewise.
21963 * config/msp430/msp430.c: Likewise.
21964 * config/nds32/nds32.c: Likewise.
21965 * config/nds32/nds32-cost.c: Likewise.
21966 * config/nds32/nds32-fp-as-gp.c: Likewise.
21967 * config/nds32/nds32-intrinsic.c: Likewise.
21968 * config/nds32/nds32-isr.c: Likewise.
21969 * config/nds32/nds32-md-auxiliary.c: Likewise.
21970 * config/nds32/nds32-memory-manipulation.c: Likewise.
21971 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21972 * config/nds32/nds32-predicates.c: Likewise.
21973 * config/nios2/nios2.c: Likewise.
21974 * config/nvptx/nvptx.c: Likewise.
21975 * config/pa/pa.c: Likewise.
21976 * config/pdp11/pdp11.c: Likewise.
21977 * config/rl78/rl78.c: Likewise.
21978 * config/rs6000/rs6000.c: Likewise.
21979 * config/rx/rx.c: Likewise.
21980 * config/s390/s390.c: Likewise.
21981 * config/sh/sh.c: Likewise.
21982 * config/sh/sh-mem.cc: Likewise.
21983 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21984 * config/sh/sh_treg_combine.cc: Likewise.
21985 * config/sparc/sparc.c: Likewise.
21986 * config/spu/spu.c: Likewise.
21987 * config/stormy16/stormy16.c: Likewise.
21988 * config/tilegx/tilegx.c: Likewise.
21989 * config/tilepro/tilepro.c: Likewise.
21990 * config/v850/v850.c: Likewise.
21991 * config/vax/vax.c: Likewise.
21992 * config/visium/visium.c: Likewise.
21993 * config/xtensa/xtensa.c: Likewise.
21994
21995 2015-07-10 Richard Biener <rguenther@suse.de>
21996
21997 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
21998 (decision_tree::gen_gimple): Likewise.
21999 (decision_tree::gen_generic): Likewise.
22000
22001 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
22002
22003 PR target/66813
22004 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
22005 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
22006
22007 2015-07-10 Jakub Jelinek <jakub@redhat.com>
22008
22009 PR middle-end/66820
22010 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
22011 or ORT_TASK contexts.
22012 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
22013 is non-zero.
22014
22015 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22016
22017 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
22018 above function.
22019
22020 2015-07-10 Tom de Vries <tom@codesourcery.com>
22021
22022 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
22023 insert nit + 1 bound.
22024
22025 2015-07-10 Richard Biener <rguenther@suse.de>
22026
22027 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
22028 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
22029 (if_convertible_loop_p_1): For this always compute bb predicates.
22030 (if_convertible_loop_p): And free them.
22031
22032 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22033
22034 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
22035 in dump message.
22036
22037 2015-07-10 Richard Biener <rguenther@suse.de>
22038
22039 PR tree-optimization/66823
22040 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
22041 inverted predicate.
22042
22043 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
22044
22045 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
22046 to handle mips[32|64]r3 and mips[32|64]r5.
22047
22048 2015-07-09 Jakub Jelinek <jakub@redhat.com>
22049
22050 PR middle-end/66633
22051 * tree-nested.c (get_static_chain): Or in a flag into
22052 info->static_chain_added.
22053 (get_frame_field, get_nonlocal_debug_decl): Likewise.
22054 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
22055 2015-07-01 changes.
22056 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
22057 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
22058 add it to clauses.
22059
22060 PR tree-optimization/66718
22061 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
22062 field.
22063 (vect_simd_lane_linear): New function.
22064 (vectorizable_simd_clone_call): Support using linear arguments for
22065 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
22066
22067 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
22068
22069 PR target/66821
22070 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
22071
22072 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
22073
22074 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
22075 Use machine mode, not enum machine_mode in the prototype.
22076
22077 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
22078 classify 128-bit floating point support.
22079 (FLOAT128_IBM_P): Likewise.
22080 (FLOAT128_VECTOR_P): Likewise.
22081 (FLOAT128_2REG_P): Likewise.
22082 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
22083 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
22084 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
22085 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
22086
22087 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
22088 tests against TFmode/TDmode, since those modes do not use VSX
22089 addresses.
22090 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
22091 support.
22092 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
22093 tests against TFmode, etc.
22094 (invalid_e500_subreg): Add tests against IFmode/KFmode.
22095 (reg_offset_addressing_ok_p): Likewise.
22096 (rs6000_legitimate_offset_address_p): Likewise.
22097 (rs6000_legitimize_address): Likewise.
22098 (rs6000_legitimize_reload_address): Likewise.
22099 (rs6000_legitimate_address_p): Clean up tests against TFmode and
22100 TDmode to use the new helper macros, which will include IFmode and
22101 KFmode.
22102 (rs6000_emit_move): Likewise.
22103 (rs6000_darwin64_record_arg_recurse): Likewise.
22104 (print_operand): Likewise.
22105 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
22106 that uses a single vector register as a vector and not as a
22107 floating point register in terms of the calling sequence.
22108 (rs6000_discover_homogeneous_aggregate): Likewise.
22109 (rs6000_return_in_memory): Likewise.
22110 (init_cumulative_args): Likewise.
22111 (rs6000_function_arg_boundary): Likewise.
22112 (rs6000_function_arg_advance_1): Likewise.
22113 (rs6000_function_arg): Likewise.
22114 (rs6000_pass_by_reference): Likewise.
22115 (rs6000_gimplify_va_arg): Likewise.
22116 (rs6000_secondary_reload_memory): Use machine_mode not enum
22117 machine mode.
22118 (rs6000_split_multireg_move): Use new helper macros.
22119 (spe_func_has_64bit_regs_p): Likewise.
22120 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
22121 (output_toc): Use new helper macros.
22122 (rs6000_register_move_cost): Likewise.
22123 (rs6000_function_value): Add IEEE 128-bit floating point calling
22124 sequence support.
22125 (rs6000_libcall_value): Likewise.
22126 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
22127 floating point support.
22128 (rs6000_vector_mode_supported_p): Likewise.
22129
22130 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
22131
22132 PR rtl-optimization/66782
22133 * lra-int.h (struct lra_insn_recog_data): Add comment about
22134 clobbered hard regs for arg_hard_regs.
22135 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
22136 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
22137 Add condition for processing used hard regs.
22138 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
22139 Process clobbered hard regs.
22140
22141 2015-07-09 Michael Matz <matz@suse.de>
22142
22143 * genmatch.c (fprintf_indent): New function.
22144 (operand::gen_transform): Add indent parameter.
22145 (expr::gen_transform, c_expr::gen_transform,
22146 capture::gen_transform): Ditto and use fprintf_indent.
22147 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
22148 (dt_operand::gen, dt_operand::gen_predicate,
22149 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
22150 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
22151 (decision_tree::gen_gimple): Adjust calls and indent generated
22152 code.
22153 (decision_tree::gen_generic): Ditto.
22154 (write_predicate): Ditto.
22155
22156 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
22157
22158 PR target/66814
22159 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
22160 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
22161 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
22162 {GENERAL,SSE,MMX}_REG_P where appropriate.
22163
22164 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
22165
22166 * lto-streamer.h: Don't include target.h and alloc-pool.h.
22167 * builtins.c: Adjust includes.
22168 * gimple.c: Likewise.
22169 * ipa-icf.c: Likewise.
22170 * lto-opts.c: Likewise.
22171 * ipa-reference.c: Likewise.
22172 * lto-section-out.c: Likewise.
22173 * lto-streamer-in.c: Likewise.
22174 * lto-streamer-out.c: Likewise.
22175 * opts-global.c: Likewise.
22176 * symtab.c: Likewise.
22177 * tree-chkp.c: Likewise.
22178 * tree-ssa-live.c: Likewise.
22179 * tree-streamer-in.c: Likewise.
22180 * tree-streamer-out.c: Likewise.
22181 * config/darwin.c: Likewise.
22182 * config/i386/winnt.c: Likewise.
22183
22184 2015-07-09 Richard Biener <rguenther@suse.de>
22185
22186 * genmatch.c (struct expr): Add force_single_use flag.
22187 (expr::expr): Add copy constructor.
22188 (capture_info::walk_match): Gather force_single_use captures.
22189 (expr::gen_transform): Use possibly NULLified sequence.
22190 (dt_simplify::gen): Apply single-use restrictions by NULLifying
22191 seq if any constrained expr is not single-use.
22192 (parser::parse_expr): Refactor to allow multiple flags. Handle
22193 's' flag to force an expression have a single-use if the pattern
22194 simplifies to more than one statement.
22195 * match.pd: Convert most single_use conditionals to :s flags.
22196
22197 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
22198
22199 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
22200 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
22201 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
22202
22203 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
22204
22205 * flags.h: Don't include flag-types.h or options.h.
22206 * opts-common.c: Adjust includes.
22207 * opts-global.c: Likewise.
22208 * common/config/epiphany/epiphany-common.c: Likewise.
22209
22210 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
22211
22212 PR target/66818
22213 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
22214 for IA MCU.
22215
22216 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
22217
22218 PR target/66817
22219 * config/i386/i386.c (ix86_return_in_memory): Return true
22220 if int_size_in_bytes returns negative for IA MCU.
22221
22222 2015-07-09 Marek Polacek <polacek@redhat.com>
22223
22224 PR tree-optimization/66718
22225 * Makefile.in (OBJS): Add gimple-laddress.o.
22226 * passes.def: Schedule pass_laddress.
22227 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
22228 * tree-pass.h (make_pass_laddress): Declare.
22229 * gimple-laddress.c: New file.
22230
22231 2015-07-09 Richard Biener <rguenther@suse.de>
22232
22233 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
22234
22235 2015-07-09 Richard Biener <rguenther@suse.de>
22236
22237 PR tree-optimization/66807
22238 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
22239
22240 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
22241
22242 * function.c (stack_protect_epilogue): Use if rather than switch for
22243 check targetm.have_stack_protect_test.
22244
22245 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22246
22247 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
22248 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
22249 * config/arc/arc.h: Likewise.
22250 * config/arm/arm.h: Likewise.
22251 * config/bfin/bfin.h: Likewise.
22252 * config/epiphany/epiphany.h: Likewise.
22253 * config/frv/frv.h: Likewise.
22254 * config/ia64/ia64.h: Likewise.
22255 * config/iq2000/iq2000.h: Likewise.
22256 * config/lm32/lm32.h: Likewise.
22257 * config/m32r/m32r.h: Likewise.
22258 * config/mcore/mcore.h: Likewise.
22259 * config/mep/mep.h: Likewise.
22260 * config/microblaze/microblaze.h: Likewise.
22261 * config/mips/mips.h: Likewise.
22262 * config/mmix/mmix.h: Likewise.
22263 * config/mn10300/mn10300.h: Likewise.
22264 * config/nds32/nds32.h: Likewise.
22265 * config/nios2/nios2.h: Likewise.
22266 * config/pa/pa.h: Likewise.
22267 * config/rl78/rl78.h: Likewise.
22268 * config/sh/sh.h: Likewise.
22269 * config/sparc/sparc.h: Likewise.
22270 * config/stormy16/stormy16.h: Likewise.
22271 * config/tilegx/tilegx.h: Likewise.
22272 * config/tilepro/tilepro.h: Likewise.
22273 * config/v850/v850.h: Likewise.
22274 * config/xtensa/xtensa.h: Likewise.
22275 * doc/tm.texi: Regenerate.
22276 * doc/tm.texi.in: Adjust.
22277 * combine.c (simplify_set): Likewise.
22278 (simplify_comparison): Likewise.
22279 * expr.c (store_constructor): Likewise.
22280 * internal-fn.c (expand_arith_overflow): Likewise.
22281 * reload.c (push_reload): Likewise.
22282 (find_reloads): Likewise.
22283 (find_reloads_subreg_address): Likewise.
22284 * reload1.c (eliminate_regs_1): Likewise.
22285 * rtlanal.c (nonzero_bits1): Likewise.
22286 (num_sign_bit_copies1): Likewise.
22287 * simplify-rtx.c (simplify_truncation): Likewise.
22288
22289 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22290
22291 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
22292 of AUTO_INC_DEC with the preprocessor.
22293 * combine.c (combine_instructions): Likewise.
22294 (can_combine_p): Likewise.
22295 (try_combine): Likewise.
22296 * emit-rtl.c (try_split): Likewise.
22297 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
22298 * lower-subreg.c (resolve_simple_move): Likewise.
22299 * lra.c (update_inc_notes): Likewise.
22300 * recog.c (asm_operand_ok): Likewise.
22301 (constrain_operands): Likewise.
22302 * regrename.c (scan_rtx_address): Likewise.
22303 * reload.c (update_auto_inc_notes): Likewise.
22304 (reg_inc_found_and_valid_p): Likewise.
22305 * reload1.c (reload): Likewise.
22306 (emit_input_reload_insns): Likewise.
22307 (delete_output_reload): Likewise.
22308 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
22309 * valtrack.c (cleanup_auto_inc_dec): Likewise.
22310
22311 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22312
22313 * rtl.h: Always define AUTO_INC_DEC.
22314 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
22315 * combine.c (combine_instructions): Likewise.
22316 (can_combine_p): Likewise.
22317 (try_combine): Likewise.
22318 * emit-rtl.c (try_split): Likewise.
22319 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
22320 * lower-subreg.c (resolve_simple_move): Likewise.
22321 * lra.c (update_inc_notes): Likewise.
22322 * recog.c (asm_operand_ok): Likewise.
22323 (constrain_operands): Likewise.
22324 * regrename.c (scan_rtx_address): Likewise.
22325 * reload.c (update_auto_inc_notes): Likewise.
22326 (find_equiv_reg): Likewise.
22327 * reload1.c (reload): Likewise.
22328 (reload_as_needed): Likewise.
22329 (choose_reload_regs): Likewise.
22330 (emit_input_reload_insns): Likewise.
22331 (delete_output_reload): Likewise.
22332 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
22333 * valtrack.c (cleanup_auto_inc_dec): Likewise.
22334
22335 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22336
22337 * combine.c (can_combine_def_p): Don't check the value of
22338 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
22339 (combinable_i3pat): Likewise.
22340 (mark_used_regs_combine): Likewise.
22341 * regrename.c (rename_chains): Likewise.
22342 * reload.c (find_reloads_address): Likewise.
22343 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
22344
22345 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22346
22347 * combine.c (update_rsp_from_reg_equal): Don't check if
22348 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
22349 (reg_nonzero_bits_for_combine): Likewise.
22350 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
22351 1.
22352 * config/frv/frv.h: Likewise.
22353 * config/lm32/lm32.h: Likewise.
22354 * config/mep/mep.h: Likewise.
22355 * config/mips/mips.h: Likewise.
22356 * config/rs6000/rs6000.h: Likewise.
22357 * config/sh/sh.h: Likewise.
22358 * config/tilegx/tilegx.h (enum reg_class): Likewise.
22359 * config/tilepro/tilepro.h: Likewise.
22360 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
22361 * doc/tm.texi: Regenerate.
22362 * doc/tm.texi.in: Adjust.
22363 * rtlanal.c (nonzero_bits1): Likewise.
22364
22365 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22366
22367 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
22368 with the preprocessor.
22369 (combine_instructions): Likewise.
22370 (try_combine): Likewise.
22371 (subst): Likewise.
22372 (distribute_notes): Likewise.
22373
22374 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22375
22376 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
22377 defined.
22378 (simplify_set): Likewise.
22379 * cse.c (cse_insn): Likewise.
22380 * fold-const.c (fold_single_bit_test): Likewise.
22381 (fold_unary_loc): Likewise.
22382 * postreload.c (reload_cse_simplify_set): Likewise.
22383 (reload_cse_simplify_operands): Likewise.
22384
22385 2015-07-08 Jiong Wang <jiong.wang@arm.com>
22386
22387 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
22388 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
22389
22390 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
22391
22392 PR target/66746
22393 * config/i386/x86intrin.h: Include <adxintrin.h> even if
22394 __iamcu__ is defined.
22395
22396 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
22397
22398 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
22399
22400 2015-07-08 Iain Sandoe <iain@codesourcery.com>
22401
22402 PR target/66523
22403 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
22404 names from preservation.
22405
22406 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
22407
22408 PR target/66806
22409 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
22410 change for IAMCU.
22411 (function_arg_advance_32): Don't pass vectors in registers for
22412 IAMCU.
22413 (function_arg_32): Likewise.
22414 (ix86_return_in_memory): Don't return vectors in registers for
22415 IAMCU.
22416
22417 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
22418
22419 PR middle-end/66334
22420 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
22421 hard regno live at the start of BB with incoming abnormal edges.
22422 * lra-lives.c (process_bb_lives): Ditto.
22423
22424 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
22425
22426 PR libgomp/65099
22427 * config/nvptx/mkoffload.c (main): Create an offload image only in
22428 64-bit configurations.
22429
22430 2015-07-08 Martin Liska <mliska@suse.cz>
22431
22432 PR bootstrap/66744
22433 * tree-sra.c (create_access_1): Call ctor without brackets.
22434 (create_artificial_child_access): Likewise.
22435
22436 2015-07-08 Richard Biener <rguenther@suse.de>
22437
22438 PR tree-optimization/66793
22439 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
22440 Properly split the block after stmts ending it.
22441
22442 2015-07-08 Richard Biener <rguenther@suse.de>
22443
22444 PR tree-optimization/66794
22445 * passes.c (execute_function_todo): Assert that post-dominators
22446 are not computed.
22447 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
22448 Free post-dominators.
22449
22450 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22451
22452 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
22453 with early exit.
22454
22455 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
22456
22457 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
22458 more than or equal 8 and less than 32 when optimizing for size.
22459
22460 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22461
22462 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
22463 COSTS_N_INSNS (1) and increment it appropriately throughout the
22464 function.
22465
22466 2015-07-08 Richard Biener <rguenther@suse.de>
22467
22468 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
22469
22470 2015-07-08 Alan Modra <amodra@gmail.com>
22471
22472 * target.def (rtx_costs): Remove "code" param, add "mode".
22473 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
22474 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
22475 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
22476 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
22477 call. Track mode when given in rtx.
22478 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
22479 (default_address_cost): Pass Pmode to rtx_cost.
22480 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
22481 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
22482 with NULL set.
22483 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
22484 (notreg_cost): Add mode param. Use it.
22485 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
22486 mode param and pass to set_src_cost. Update all calls.
22487 (hash_scan_set): Formatting.
22488 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
22489 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
22490 * hooks.h: Ditto.
22491 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
22492 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
22493 emit_store_flag): Update set_src_cost and rtx_cost calls.
22494 * auto-inc-dec.c (attempt_change): Likewise.
22495 * calls.c (precompute_register_parameters): Likewise.
22496 * combine.c (expand_compound_operation, make_extraction,
22497 force_to_mode, distribute_and_simplify_rtx): Likewise.
22498 * dojump.c (prefer_and_bit_test): Likewise.
22499 * dse.c (find_shift_sequence): Likewise.
22500 * expr.c (compress_float_constant): Likewise.
22501 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
22502 * ifcvt.c (noce_try_sign_mask): Likewise.
22503 * loop-doloop.c (doloop_optimize): Likewise.
22504 * loop-invariant.c (create_new_invariant): Likewise.
22505 * lower-subreg.c (shift_cost, compute_costs): Likewise.
22506 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
22507 lshift_cheap_p): Likewise.
22508 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
22509 try_replace_in_use, reload_cse_move2add): Likewise.
22510 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
22511 Likewise.
22512 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
22513 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
22514 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
22515 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
22516 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
22517 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
22518 to rtx_cost calls.
22519 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
22520 * config/arc/arc.c (arc_rtx_costs): Likewise.
22521 * config/arm/arm.c (arm_rtx_costs): Likewise.
22522 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
22523 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
22524 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
22525 * config/cris/cris.c (cris_rtx_costs): Likewise.
22526 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
22527 * config/frv/frv.c (frv_rtx_costs): Likewise.
22528 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
22529 * config/i386/i386.c (ix86_rtx_costs): Likewise.
22530 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
22531 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
22532 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
22533 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
22534 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
22535 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
22536 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
22537 * config/mep/mep.c (mep_rtx_cost): Likewise.
22538 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
22539 * config/mips/mips.c (mips_rtx_costs): Likewise.
22540 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
22541 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
22542 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
22543 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
22544 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
22545 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
22546 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
22547 * config/pa/pa.c (hppa_rtx_costs): Likewise.
22548 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
22549 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
22550 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
22551 * config/s390/s390.c (s390_rtx_costs): Likewise.
22552 * config/sh/sh.c (sh_rtx_costs): Likewise.
22553 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
22554 * config/spu/spu.c (spu_rtx_costs): Likewise.
22555 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
22556 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
22557 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
22558 * config/v850/v850.c (v850_rtx_costs): Likewise.
22559 * config/vax/vax.c (vax_rtx_costs): Likewise.
22560 * config/visium/visium.c (visium_rtx_costs): Likewise.
22561 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
22562 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
22563 "code" param, and pass as outer_code to first rtx_cost call. Pass
22564 mode to rtx_cost calls.
22565 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
22566 calls.
22567 (aarch64_rtx_costs_wrapper): Update.
22568 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
22569 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
22570 rtx_cost calls.
22571 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
22572 and rtx_cost calls.
22573 (avr_operand_rtx_cost): Similarly.
22574 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
22575 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
22576 * config/mips/mips.c (mips_stack_address_p): Comment typo.
22577 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
22578 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
22579 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
22580 rtx_cost.
22581 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
22582 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
22583 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
22584 * doc/tm.texi: Regenerate.
22585
22586 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
22587
22588 * tree-core.h: Include symtab.h.
22589 * rtl.h: Include hard-reg-set.h but not flags.h.
22590 (HARD_CONST): Remove condition compilation involving HARD_CONST since
22591 hard-reg-set.h is always included.
22592 * regs.h: Don't include hard-reg-set.h or rtl.h.
22593 * cfg.h: Include dominance.h.
22594 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
22595 * backend.h: New. Aggregate commonly used backend header files.
22596 * gimple-ssa.h: Don't include tree-hasher.h.
22597 * ssa.h: New. Aggregate commonly used SSA header files.
22598 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
22599 * sel-sched-ir.h: Flatten includes.
22600 * lra-int.h: Flatten completely.
22601 * sel-sched-dump.h: Flatten includes.
22602 * ira-int.h: Flatten includes.
22603 * gimple-streamer.h: Remove all includes.
22604 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
22605 * resource.h: Flatten hard-reg-set.h and df.h.
22606 * sched-int.h: Flatten insn-arrt.h and df.h.
22607 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
22608 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
22609 * genattrtab.c (write_header): Adjust generated includes.
22610 * genautomata.c (main): Likewise.
22611 * genconditions.c (write-header): Likewise.
22612 * genemit.c (main): Likewise.
22613 * gengtype.c (open_base_files): Likewise.
22614 * genopinit.c (main): Likewise.
22615 * genoutput.c (output_prologue): Likewise.
22616 * genpeep.c (main): Likewise.
22617 * genpreds.c (write_insn_preds_c): Likewise.
22618 * genrecog.c (write_header): Likewise.
22619 * alias.c: Adjust includes.
22620 * asan.c: Likewise.
22621 * attribs.c: Likewise.
22622 * auto-inc-dec.c: Likewise.
22623 * auto-profile.c: Likewise.
22624 * bb-reorder.c: Likewise.
22625 * bt-load.c: Likewise.
22626 * builtins.c: Likewise.
22627 * caller-save.c: Likewise.
22628 * calls.c: Likewise.
22629 * ccmp.c: Likewise.
22630 * cfg.c: Likewise.
22631 * cfganal.c: Likewise.
22632 * cfgbuild.c: Likewise.
22633 * cfgcleanup.c: Likewise.
22634 * cfgexpand.c: Likewise.
22635 * cfghooks.c: Likewise.
22636 * cfgloop.c: Likewise.
22637 * cfgloopanal.c: Likewise.
22638 * cfgloopmanip.c: Likewise.
22639 * cfgrtl.c: Likewise.
22640 * cgraph.c: Likewise.
22641 * cgraphbuild.c: Likewise.
22642 * cgraphclones.c: Likewise.
22643 * cgraphunit.c: Likewise.
22644 * cilk-common.c: Likewise.
22645 * combine-stack-adj.c: Likewise.
22646 * combine.c: Likewise.
22647 * compare-elim.c: Likewise.
22648 * convert.c: Likewise.
22649 * coverage.c: Likewise.
22650 * cppbuiltin.c: Likewise.
22651 * cprop.c: Likewise.
22652 * cse.c: Likewise.
22653 * cselib.c: Likewise.
22654 * data-streamer-in.c: Likewise.
22655 * data-streamer-out.c: Likewise.
22656 * data-streamer.c: Likewise.
22657 * dbxout.c: Likewise.
22658 * dce.c: Likewise.
22659 * ddg.c: Likewise.
22660 * debug.c: Likewise.
22661 * df-core.c: Likewise.
22662 * df-problems.c: Likewise.
22663 * df-scan.c: Likewise.
22664 * dfp.c: Likewise.
22665 * dojump.c: Likewise.
22666 * dominance.c: Likewise.
22667 * domwalk.c: Likewise.
22668 * double-int.c: Likewise.
22669 * dse.c: Likewise.
22670 * dumpfile.c: Likewise.
22671 * dwarf2asm.c: Likewise.
22672 * dwarf2cfi.c: Likewise.
22673 * dwarf2out.c: Likewise.
22674 * emit-rtl.c: Likewise.
22675 * et-forest.c: Likewise.
22676 * except.c: Likewise.
22677 * explow.c: Likewise.
22678 * expmed.c: Likewise.
22679 * expr.c: Likewise.
22680 * final.c: Likewise.
22681 * fixed-value.c: Likewise.
22682 * fold-const.c: Likewise.
22683 * function.c: Likewise.
22684 * fwprop.c: Likewise.
22685 * gcc-plugin.h: Likewise.
22686 * gcse-common.c: Likewise.
22687 * gcse.c: Likewise.
22688 * generic-match-head.c: Likewise.
22689 * ggc-page.c: Likewise.
22690 * gimple-builder.c: Likewise.
22691 * gimple-expr.c: Likewise.
22692 * gimple-fold.c: Likewise.
22693 * gimple-iterator.c: Likewise.
22694 * gimple-low.c: Likewise.
22695 * gimple-match-head.c: Likewise.
22696 * gimple-pretty-print.c: Likewise.
22697 * gimple-ssa-isolate-paths.c: Likewise.
22698 * gimple-ssa-strength-reduction.c: Likewise.
22699 * gimple-streamer-in.c: Likewise.
22700 * gimple-streamer-out.c: Likewise.
22701 * gimple-walk.c: Likewise.
22702 * gimple.c: Likewise.
22703 * gimplify-me.c: Likewise.
22704 * gimplify.c: Likewise.
22705 * godump.c: Likewise.
22706 * graph.c: Likewise.
22707 * graphite-blocking.c: Likewise.
22708 * graphite-dependences.c: Likewise.
22709 * graphite-interchange.c: Likewise.
22710 * graphite-isl-ast-to-gimple.c: Likewise.
22711 * graphite-optimize-isl.c: Likewise.
22712 * graphite-poly.c: Likewise.
22713 * graphite-scop-detection.c: Likewise.
22714 * graphite-sese-to-poly.c: Likewise.
22715 * graphite.c: Likewise.
22716 * haifa-sched.c: Likewise.
22717 * hw-doloop.c: Likewise.
22718 * ifcvt.c: Likewise.
22719 * init-regs.c: Likewise.
22720 * internal-fn.c: Likewise.
22721 * ipa-chkp.c: Likewise.
22722 * ipa-comdats.c: Likewise.
22723 * ipa-cp.c: Likewise.
22724 * ipa-devirt.c: Likewise.
22725 * ipa-icf-gimple.c: Likewise.
22726 * ipa-icf.c: Likewise.
22727 * ipa-inline-analysis.c: Likewise.
22728 * ipa-inline-transform.c: Likewise.
22729 * ipa-inline.c: Likewise.
22730 * ipa-polymorphic-call.c: Likewise.
22731 * ipa-profile.c: Likewise.
22732 * ipa-prop.c: Likewise.
22733 * ipa-pure-const.c: Likewise.
22734 * ipa-ref.c: Likewise.
22735 * ipa-reference.c: Likewise.
22736 * ipa-split.c: Likewise.
22737 * ipa-utils.c: Likewise.
22738 * ipa-visibility.c: Likewise.
22739 * ipa.c: Likewise.
22740 * ira-build.c: Likewise.
22741 * ira-color.c: Likewise.
22742 * ira-conflicts.c: Likewise.
22743 * ira-costs.c: Likewise.
22744 * ira-emit.c: Likewise.
22745 * ira-lives.c: Likewise.
22746 * ira.c: Likewise.
22747 * jump.c: Likewise.
22748 * langhooks.c: Likewise.
22749 * lcm.c: Likewise.
22750 * loop-doloop.c: Likewise.
22751 * loop-init.c: Likewise.
22752 * loop-invariant.c: Likewise.
22753 * loop-iv.c: Likewise.
22754 * loop-unroll.c: Likewise.
22755 * lower-subreg.c: Likewise.
22756 * lra-assigns.c: Likewise.
22757 * lra-coalesce.c: Likewise.
22758 * lra-constraints.c: Likewise.
22759 * lra-eliminations.c: Likewise.
22760 * lra-lives.c: Likewise.
22761 * lra-remat.c: Likewise.
22762 * lra-spills.c: Likewise.
22763 * lra.c: Likewise.
22764 * lto-cgraph.c: Likewise.
22765 * lto-compress.c: Likewise.
22766 * lto-opts.c: Likewise.
22767 * lto-section-in.c: Likewise.
22768 * lto-section-out.c: Likewise.
22769 * lto-streamer-in.c: Likewise.
22770 * lto-streamer-out.c: Likewise.
22771 * lto-streamer.c: Likewise.
22772 * mcf.c: Likewise.
22773 * mode-switching.c: Likewise.
22774 * modulo-sched.c: Likewise.
22775 * omega.c: Likewise.
22776 * omp-low.c: Likewise.
22777 * optabs.c: Likewise.
22778 * opts-global.c: Likewise.
22779 * passes.c: Likewise.
22780 * plugin.c: Likewise.
22781 * postreload-gcse.c: Likewise.
22782 * postreload.c: Likewise.
22783 * predict.c: Likewise.
22784 * print-rtl.c: Likewise.
22785 * print-tree.c: Likewise.
22786 * profile.c: Likewise.
22787 * real.c: Likewise.
22788 * realmpfr.c: Likewise.
22789 * recog.c: Likewise.
22790 * ree.c: Likewise.
22791 * reg-stack.c: Likewise.
22792 * regcprop.c: Likewise.
22793 * reginfo.c: Likewise.
22794 * regrename.c: Likewise.
22795 * regstat.c: Likewise.
22796 * reload.c: Likewise.
22797 * reload1.c: Likewise.
22798 * reorg.c: Likewise.
22799 * resource.c: Likewise.
22800 * rtl-chkp.c: Likewise.
22801 * rtlanal.c: Likewise.
22802 * rtlhooks.c: Likewise.
22803 * sanopt.c: Likewise.
22804 * sched-deps.c: Likewise.
22805 * sched-ebb.c: Likewise.
22806 * sched-rgn.c: Likewise.
22807 * sched-vis.c: Likewise.
22808 * sdbout.c: Likewise.
22809 * sel-sched-dump.c: Likewise.
22810 * sel-sched-ir.c: Likewise.
22811 * sel-sched.c: Likewise.
22812 * sese.c: Likewise.
22813 * shrink-wrap.c: Likewise.
22814 * simplify-rtx.c: Likewise.
22815 * stack-ptr-mod.c: Likewise.
22816 * stmt.c: Likewise.
22817 * stor-layout.c: Likewise.
22818 * store-motion.c: Likewise.
22819 * stringpool.c: Likewise.
22820 * symtab.c: Likewise.
22821 * target-globals.c: Likewise.
22822 * targhooks.c: Likewise.
22823 * toplev.c: Likewise.
22824 * tracer.c: Likewise.
22825 * trans-mem.c: Likewise.
22826 * tree-affine.c: Likewise.
22827 * tree-browser.c: Likewise.
22828 * tree-call-cdce.c: Likewise.
22829 * tree-cfg.c: Likewise.
22830 * tree-cfgcleanup.c: Likewise.
22831 * tree-chkp-opt.c: Likewise.
22832 * tree-chkp.c: Likewise.
22833 * tree-chrec.c: Likewise.
22834 * tree-complex.c: Likewise.
22835 * tree-data-ref.c: Likewise.
22836 * tree-dfa.c: Likewise.
22837 * tree-diagnostic.c: Likewise.
22838 * tree-dump.c: Likewise.
22839 * tree-eh.c: Likewise.
22840 * tree-emutls.c: Likewise.
22841 * tree-if-conv.c: Likewise.
22842 * tree-inline.c: Likewise.
22843 * tree-into-ssa.c: Likewise.
22844 * tree-iterator.c: Likewise.
22845 * tree-loop-distribution.c: Likewise.
22846 * tree-nested.c: Likewise.
22847 * tree-nrv.c: Likewise.
22848 * tree-object-size.c: Likewise.
22849 * tree-outof-ssa.c: Likewise.
22850 * tree-parloops.c: Likewise.
22851 * tree-phinodes.c: Likewise.
22852 * tree-predcom.c: Likewise.
22853 * tree-pretty-print.c: Likewise.
22854 * tree-profile.c: Likewise.
22855 * tree-scalar-evolution.c: Likewise.
22856 * tree-sra.c: Likewise.
22857 * tree-ssa-address.c: Likewise.
22858 * tree-ssa-alias.c: Likewise.
22859 * tree-ssa-ccp.c: Likewise.
22860 * tree-ssa-coalesce.c: Likewise.
22861 * tree-ssa-copy.c: Likewise.
22862 * tree-ssa-copyrename.c: Likewise.
22863 * tree-ssa-dce.c: Likewise.
22864 * tree-ssa-dom.c: Likewise.
22865 * tree-ssa-dse.c: Likewise.
22866 * tree-ssa-forwprop.c: Likewise.
22867 * tree-ssa-ifcombine.c: Likewise.
22868 * tree-ssa-live.c: Likewise.
22869 * tree-ssa-loop-ch.c: Likewise.
22870 * tree-ssa-loop-im.c: Likewise.
22871 * tree-ssa-loop-ivcanon.c: Likewise.
22872 * tree-ssa-loop-ivopts.c: Likewise.
22873 * tree-ssa-loop-manip.c: Likewise.
22874 * tree-ssa-loop-niter.c: Likewise.
22875 * tree-ssa-loop-prefetch.c: Likewise.
22876 * tree-ssa-loop-unswitch.c: Likewise.
22877 * tree-ssa-loop.c: Likewise.
22878 * tree-ssa-math-opts.c: Likewise.
22879 * tree-ssa-operands.c: Likewise.
22880 * tree-ssa-phiopt.c: Likewise.
22881 * tree-ssa-phiprop.c: Likewise.
22882 * tree-ssa-pre.c: Likewise.
22883 * tree-ssa-propagate.c: Likewise.
22884 * tree-ssa-reassoc.c: Likewise.
22885 * tree-ssa-sccvn.c: Likewise.
22886 * tree-ssa-scopedtables.c: Likewise.
22887 * tree-ssa-sink.c: Likewise.
22888 * tree-ssa-strlen.c: Likewise.
22889 * tree-ssa-structalias.c: Likewise.
22890 * tree-ssa-tail-merge.c: Likewise.
22891 * tree-ssa-ter.c: Likewise.
22892 * tree-ssa-threadedge.c: Likewise.
22893 * tree-ssa-threadupdate.c: Likewise.
22894 * tree-ssa-uncprop.c: Likewise.
22895 * tree-ssa-uninit.c: Likewise.
22896 * tree-ssa.c: Likewise.
22897 * tree-ssanames.c: Likewise.
22898 * tree-stdarg.c: Likewise.
22899 * tree-streamer-in.c: Likewise.
22900 * tree-streamer-out.c: Likewise.
22901 * tree-streamer.c: Likewise.
22902 * tree-switch-conversion.c: Likewise.
22903 * tree-tailcall.c: Likewise.
22904 * tree-vect-data-refs.c: Likewise.
22905 * tree-vect-generic.c: Likewise.
22906 * tree-vect-loop-manip.c: Likewise.
22907 * tree-vect-loop.c: Likewise.
22908 * tree-vect-patterns.c: Likewise.
22909 * tree-vect-slp.c: Likewise.
22910 * tree-vect-stmts.c: Likewise.
22911 * tree-vectorizer.c: Likewise.
22912 * tree-vrp.c: Likewise.
22913 * tree.c: Likewise.
22914 * tsan.c: Likewise.
22915 * ubsan.c: Likewise.
22916 * valtrack.c: Likewise.
22917 * value-prof.c: Likewise.
22918 * var-tracking.c: Likewise.
22919 * varasm.c: Likewise.
22920 * varpool.c: Likewise.
22921 * vmsdbgout.c: Likewise.
22922 * vtable-verify.c: Likewise.
22923 * web.c: Likewise.
22924 * wide-int.cc: Likewise.
22925 * xcoffout.c: Likewise.
22926 * config/aarch64/aarch64-builtins.c: Likewise.
22927 * config/aarch64/aarch64.c: Likewise.
22928 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22929 * config/alpha/alpha.c: Likewise.
22930 * config/arc/arc.c: Likewise.
22931 * config/arm/aarch-common.c: Likewise.
22932 * config/arm/arm-builtins.c: Likewise.
22933 * config/arm/arm-c.c: Likewise.
22934 * config/arm/arm.c: Likewise.
22935 * config/avr/avr-c.c: Likewise.
22936 * config/avr/avr-log.c: Likewise.
22937 * config/avr/avr.c: Likewise.
22938 * config/bfin/bfin.c: Likewise.
22939 * config/c6x/c6x.c: Likewise.
22940 * config/cr16/cr16.c: Likewise.
22941 * config/cris/cris.c: Likewise.
22942 * config/darwin-c.c: Likewise.
22943 * config/darwin.c: Likewise.
22944 * config/epiphany/epiphany.c: Likewise.
22945 * config/epiphany/mode-switch-use.c: Likewise.
22946 * config/epiphany/resolve-sw-modes.c: Likewise.
22947 * config/fr30/fr30.c: Likewise.
22948 * config/frv/frv.c: Likewise.
22949 * config/ft32/ft32.c: Likewise.
22950 * config/h8300/h8300.c: Likewise.
22951 * config/i386/i386-c.c: Likewise.
22952 * config/i386/i386.c: Likewise.
22953 * config/i386/msformat-c.c: Likewise.
22954 * config/i386/winnt-cxx.c: Likewise.
22955 * config/i386/winnt-stubs.c: Likewise.
22956 * config/i386/winnt.c: Likewise.
22957 * config/ia64/ia64-c.c: Likewise.
22958 * config/ia64/ia64.c: Likewise.
22959 * config/iq2000/iq2000.c: Likewise.
22960 * config/lm32/lm32.c: Likewise.
22961 * config/m32c/m32c-pragma.c: Likewise.
22962 * config/m32c/m32c.c: Likewise.
22963 * config/m32r/m32r.c: Likewise.
22964 * config/m68k/m68k.c: Likewise.
22965 * config/mcore/mcore.c: Likewise.
22966 * config/mep/mep-pragma.c: Likewise.
22967 * config/mep/mep.c: Likewise.
22968 * config/microblaze/microblaze-c.c: Likewise.
22969 * config/microblaze/microblaze.c: Likewise.
22970 * config/mips/mips.c: Likewise.
22971 * config/mmix/mmix.c: Likewise.
22972 * config/mn10300/mn10300.c: Likewise.
22973 * config/moxie/moxie.c: Likewise.
22974 * config/msp430/msp430-c.c: Likewise.
22975 * config/msp430/msp430.c: Likewise.
22976 * config/nds32/nds32-cost.c: Likewise.
22977 * config/nds32/nds32-fp-as-gp.c: Likewise.
22978 * config/nds32/nds32-intrinsic.c: Likewise.
22979 * config/nds32/nds32-isr.c: Likewise.
22980 * config/nds32/nds32-md-auxiliary.c: Likewise.
22981 * config/nds32/nds32-memory-manipulation.c: Likewise.
22982 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22983 * config/nds32/nds32-predicates.c: Likewise.
22984 * config/nds32/nds32.c: Likewise.
22985 * config/nios2/nios2.c: Likewise.
22986 * config/nvptx/nvptx.c: Likewise.
22987 * config/pa/pa.c: Likewise.
22988 * config/pdp11/pdp11.c: Likewise.
22989 * config/rl78/rl78-c.c: Likewise.
22990 * config/rl78/rl78.c: Likewise.
22991 * config/rs6000/rs6000-c.c: Likewise.
22992 * config/rs6000/rs6000.c: Likewise.
22993 * config/rx/rx.c: Likewise.
22994 * config/s390/s390-c.c: Likewise.
22995 * config/s390/s390.c: Likewise.
22996 * config/sh/sh-c.c: Likewise.
22997 * config/sh/sh-mem.cc: Likewise.
22998 * config/sh/sh.c: Likewise.
22999 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23000 * config/sh/sh_treg_combine.cc: Likewise.
23001 * config/sol2-c.c: Likewise.
23002 * config/sol2-cxx.c: Likewise.
23003 * config/sol2-stubs.c: Likewise.
23004 * config/sol2.c: Likewise.
23005 * config/sparc/sparc-c.c: Likewise.
23006 * config/sparc/sparc.c: Likewise.
23007 * config/spu/spu-c.c: Likewise.
23008 * config/spu/spu.c: Likewise.
23009 * config/stormy16/stormy16.c: Likewise.
23010 * config/tilegx/mul-tables.c: Likewise.
23011 * config/tilegx/tilegx-c.c: Likewise.
23012 * config/tilegx/tilegx.c: Likewise.
23013 * config/tilepro/mul-tables.c: Likewise.
23014 * config/tilepro/tilepro-c.c: Likewise.
23015 * config/tilepro/tilepro.c: Likewise.
23016 * config/v850/v850-c.c: Likewise.
23017 * config/v850/v850.c: Likewise.
23018 * config/vax/vax.c: Likewise.
23019 * config/visium/visium.c: Likewise.
23020 * config/vms/vms-c.c: Likewise.
23021 * config/vms/vms.c: Likewise.
23022 * config/vxworks.c: Likewise.
23023 * config/xtensa/xtensa.c: Likewise.
23024
23025 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
23026
23027 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
23028 Remove operand constraints. Change operand 2 predicate to
23029 nonmemory operand. Limit const_int values to mode bitsize. Only
23030 allow const_int values less than 32 when optimizing for size.
23031 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
23032 Remove operand constraints.
23033 (*bt<mode>): Use SImode for const_int values less than 32.
23034 (regmode): Remove mode attribute.
23035
23036 2015-07-07 Anatoly Sokolov <aesok@post.ru>
23037
23038 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
23039 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
23040 moxie_legitimate_address_p): New functions.
23041 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
23042
23043 2015-07-07 Tom de Vries <tom@codesourcery.com>
23044
23045 PR tree-optimization/66642
23046 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
23047 header comment. Rename split_edge variable to edge_at_split. Split
23048 exit edge to create new loop exit bb. Insert loop exit phis in new
23049 loop exit bb.
23050
23051 2015-07-07 Tom de Vries <tom@codesourcery.com>
23052
23053 * tree-cfg.c (get_virtual_phi): New function.
23054 * tree-cfg.h (get_virtual_phi): Declare.
23055 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
23056 (rewrite_virtuals_into_loop_closed_ssa): New function.
23057 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
23058 Declare.
23059 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
23060 (transform_to_exit_first_loop_alt): Use
23061 rewrite_virtuals_into_loop_closed_ssa.
23062
23063 2015-07-07 Richard Biener <rguenther@suse.de>
23064
23065 * fold-const.c (fold_binary_loc): Move
23066 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
23067 * match.pd: ... here.
23068 Add (X * C1) % C2 -> 0 simplification pattern derived from
23069 extract_muldiv_1.
23070
23071 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
23072
23073 PR target/66780
23074 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
23075 change for target/65249.
23076
23077 2015-07-07 Paulo Matos <pmatos@broadcom.com>
23078
23079 * symtab.c (address_matters_1): Fix typo in comment above.
23080 (can_increase_alignment_p): Likewise.
23081
23082 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23083
23084 * function.c (free_after_compilation): Clear PROP_cfg in
23085 f->curr_properties.
23086
23087 2015-07-07 Richard Biener <rguenther@suse.de>
23088
23089 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
23090 add which use to.
23091 (add_control_edge): Remove excessive vertical space in dumping.
23092 (process_ssa_edge_worklist): Simulate at most one statement and
23093 return whether we did. Do not simulate PHIs if they are in a
23094 BB not yet simulated.
23095 (ssa_propagate): Adjust to always drain the BB worklist whenever
23096 a BB is available there, likewise the VARYING edges list before
23097 the interesting edge list.
23098
23099 2015-07-07 Christian Bruel <christian.bruel@st.com>
23100
23101 PR target/52144
23102 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
23103
23104 2015-07-07 Richard Biener <rguenther@suse.de>
23105
23106 PR middle-end/66739
23107 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
23108 A - B.
23109
23110 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
23111
23112 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
23113 modes for operands 0 and 3. Use SImode for operands 2 and 3.
23114 Copy operand 0 to a temporary if !ext_register_operand. Remove
23115 ancient extract_bit_field workaround.
23116 (insv<mode>_1): Rename from mov<mode>_insv_1.
23117 (*insvqi): Rename from *movqi_insv_2.
23118 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
23119 for renamed insvsi_1.
23120 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
23121
23122 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
23123
23124 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
23125 call to nvptx_reorg_subreg.
23126
23127 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
23128
23129 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
23130 * graphite-dependencies.c, graphite-interchange.c,
23131 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
23132 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
23133 Likewise.
23134
23135 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
23136
23137 * match.pd: Remove element_mode inside HONOR_*.
23138 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
23139 (~X | X -> -1, ~X ^ X -> -1): Merge.
23140 * tree.c (build_each_one_cst): New function.
23141 * tree.h (build_each_one_cst): Likewise.
23142
23143 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
23144
23145 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
23146 PROCESSOR_IAMCU.
23147
23148 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
23149
23150 * config.gcc <mips*-*-*>: Add fused-madd.opt.
23151 * config/mips/mips.opt (mfused-madd): Remove.
23152 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
23153 * config/mips/mips.h (TARGET_MIPS8000): New.
23154 (ISA_HAS_FP_MADD4_MSUB4): Remove.
23155 (ISA_HAS_FP_MADDF_MSUBF): Remove.
23156 (ISA_HAS_FP_MADD3_MSUB3): Remove.
23157 (ISA_HAS_NMADD4_NMSUB4): Remove.
23158 (ISA_HAS_NMADD3_NMSUB3): Remove.
23159 (ISA_HAS_FUSED_MADD4): New.
23160 (ISA_HAS_UNFUSED_MADD4): New.
23161 (ISA_HAS_FUSED_MADDF): New.
23162 (ISA_HAS_FUSED_MADD3): New.
23163 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
23164 (*fma<mode>4_madd3) New.
23165 (*fma<mode>4_madd4) New.
23166 (*fma<mode>4_maddf) New.
23167 (fms<mode>4) New.
23168 (*fms<mode>4_msub3) New.
23169 (*fms<mode>4_msub4) New.
23170 (fnma<mode>4) New.
23171 (*fnma<mode>4_nmadd3) New.
23172 (*fnma<mode>4_nmadd4) New.
23173 (fnms<mode>4) New.
23174 (*fnms<mode>4_nmsub3) New.
23175 (*fnms<mode>4_nmsub4) New.
23176 (*madd4<mode>) Modify to be unfused only.
23177 (*msub4<mode>) Modify to be unfused only.
23178 (*nmadd4<mode>) Modify to be unfused only.
23179 (*nmsub4<mode>) Modify to be unfused only.
23180 (*madd3<mode>) Remove.
23181 (*msub3<mode>) Remove.
23182 (*nmadd3<mode>) Remove.
23183 (*nmsub3<mode>) Remove.
23184 (*nmadd3<mode>_fastmath) Remove.
23185 (*nmsub3<mode>_fastmath) Remove.
23186 (*nmadd4<mode>_fastmath) Update condition.
23187 (*nmsub4<mode>_fastmath) Update condition.
23188
23189 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
23190
23191 PR target/65956
23192 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
23193 alignment attribute, exploring one level down for records and arrays.
23194
23195 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
23196
23197 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
23198 modes for operands 0 and 1. Use SImode for operands 2 and 3.
23199 Copy operand 1 to a temporary if !ext_register_operand. Remove
23200 ancient extract_bit_field workaround.
23201 (*extv<mode>): Rename from *mov<mode>_extv_1.
23202 (*extvqi): Rename from *movqi_extv_1.
23203 (extzv<mode>): Rename from extzv. Use SWI248 modes for
23204 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
23205 to a temporary if !ext_register_operand. Remove ancient
23206 extract_bit_field workaround.
23207 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
23208 (*extzvqi): Rename from *movqi_extzv_2.
23209 (*testqi_ext_3): Remove modes from const_int_operand predicated
23210 operands. Add "n" constraint.
23211 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
23212 operand. Add "J" constraint.
23213 (*btsq, *btrq, *btcq peephole2s): Remove mode from
23214 const_0_to_63 predicated operand.
23215 (regmode): New insn attribute.
23216 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
23217 to nonmemory_operand. Use regmode insn attribute.
23218 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
23219 (*jcc_bt<mode>_mask): Remove mode from operand 3.
23220 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
23221 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
23222 operands. Use "N" constraint instead of "n".
23223
23224 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
23225
23226 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
23227
23228 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
23229
23230 PR target/66749
23231 * config/i386/i386.c (iamcu_cost): New.
23232 (m_IAMCU): Likewise.
23233 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
23234 (processor_target_table): Add an entry for "iamcu".
23235 (processor_alias_table): Likewise.
23236 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
23237 (ix86_adjust_cost): Likewise.
23238 (ia32_multipass_dfa_lookahead): Likewise.
23239 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
23240 * config/i386/x86-tune.def: Updated for m_IAMCU.
23241
23242 2015-07-06 Richard Biener <rguenther@suse.de>
23243
23244 PR tree-optimization/66772
23245 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
23246 values are available in the PHI node BB when there are
23247 still unexecutable edges.
23248
23249 2015-07-06 Richard Biener <rguenther@suse.de>
23250
23251 PR tree-optimization/66767
23252 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
23253 Make sure to build the alignment test on a SSA name without
23254 final alignment info valid only if the alignment test
23255 evaluates to true.
23256
23257 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
23258
23259 PR target/66620
23260 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
23261 loop start when inserting LSETUP.
23262
23263 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
23264
23265 PR target/53383
23266 * config/i386/i386.c (ix86_option_override_internal): Allow
23267 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
23268
23269 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23270
23271 * read-md.c (decimal_string): Rename to ...
23272 (md_decimal_string): ... this.
23273 (handle_enum): Reflect this.
23274
23275 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
23276
23277 PR target/66731
23278 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
23279
23280 2015-07-06 Richard Biener <rguenther@suse.de>
23281
23282 PR middle-end/66759
23283 * match.pd: Add missing constraint of y to REAL_CST in
23284 REAL_CST - x CMP y to y - CST CMP x simplification.
23285
23286 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
23287
23288 PR tree-optimization/66757
23289 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
23290
23291 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
23292 Sandra Loosemore <sandra@codesourcery.com>
23293
23294 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
23295 Delete extern declaration.
23296 (gprel_constant_p): Add extern declaration.
23297 * config/nios2/constraints.md ("S"): Use gprel_constant_p
23298 instead of nios2_symbol_ref_in_small_data_p.
23299 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
23300 (nios2_symbol_ref_in_small_data_p): Make static.
23301 (gprel_constant_p): Make non-static.
23302
23303 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
23304
23305 * doc/fragments.texi (Target Fragment): Convert debian.org
23306 link to use https.
23307 * doc/install.texi (Configuration): Ditto.
23308
23309 2015-07-05 Jakub Jelinek <jakub@redhat.com>
23310
23311 PR tree-optimization/66718
23312 * tree-vect-stmts.c (vectorizable_call): Replace uses of
23313 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
23314
23315 PR tree-optimization/66718
23316 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
23317 vectorizable_load, vectorizable_condition): Move vectype,
23318 nunits, ncopies computation after checking what kind of statement
23319 stmt is.
23320
23321 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23322
23323 * target-insns.def (extv, extzv, insv): New targetm instruction
23324 patterns.
23325 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
23326 interface.
23327 * recog.c (simplify_while_replacing): Likewise.
23328
23329 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23330
23331 * target-insns.def (doloop_begin, doloop_end): New targetm
23332 instruction patterns.
23333 * loop-init.c: Include target.h.
23334 (pass_loop2::gate): Use the new targetm patterns instead of
23335 HAVE_*/gen_* interface.
23336 (pass_rtl_doloop::gate): Likewise.
23337 (pass_rtl_doloop::execute): Remove preprocessor condition.
23338 * hw-doloop.c: Build unconditionally.
23339 * loop-doloop.c: Likewise.
23340 (doloop_optimize): Use the new targetm patterns instead of
23341 HAVE_*/gen_* interface.
23342 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
23343 * modulo-sched.c (doloop_register_get): Likewise.
23344
23345 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23346
23347 * target-insns.def (clear_cache): New targetm instruction pattern.
23348 * builtins.c (expand_builtin___clear_cache): Use it instead of
23349 HAVE_*/gen_* interface.
23350
23351 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23352
23353 * target-insns.def (allocate_stack, check_stack, probe_stack)
23354 (probe_stack_address, split_stack_prologue, split_stack_space_check):
23355 New targetm instruction patterns.
23356 * explow.c (allocate_dynamic_stack_space): Use them instead of
23357 HAVE_*/gen_* interface.
23358 (emit_stack_probe): Likewise.
23359 (probe_stack_range): Likewise.
23360 * function.c (thread_prologue_and_epilogue_insns): Likewise.
23361
23362 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23363
23364 * target-insns.def (stack_protect_set, stack_protect_test): New
23365 targetm instruction patterns.
23366 * cfgexpand.c (stack_protect_prologue): Use them instead of
23367 HAVE_*/gen_* interface.
23368 * function.c (stack_protect_epilogue): Likewise.
23369
23370 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23371
23372 * expr.h (gen_move_insn_uncast): Delete.
23373 * expr.c (gen_move_insn_uncast): Delete.
23374
23375 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23376
23377 * target-insns.def (restore_stack_block, restore_stack_function)
23378 (restore_stack_nonlocal, save_stack_block, save_stack_function)
23379 (save_stack_nonlocal): New targetm instruction patterns.
23380 * builtins.c (expand_builtin_apply): Use them instead of
23381 HAVE_*/gen_* interface.
23382 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
23383
23384 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23385
23386 * target-insns.def (trap): New targetm instruction pattern.
23387 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
23388 interface.
23389 * explow.c (allocate_dynamic_stack_space): Likewise.
23390 * ifcvt.c (find_if_header): Likewise.
23391
23392 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23393
23394 * target-insns.def (prefetch): New targetm instruction pattern.
23395 * tree-ssa-loop-prefetch.c: Include targeth.
23396 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
23397 of HAVE_*/gen_* interface.
23398 * builtins.c (expand_builtin_prefetch): Likewise.
23399 * toplev.c (process_options): Likewise.
23400
23401 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23402
23403 * target-insns.def (untyped_call, untyped_return): New targetm
23404 instruction patterns.
23405 * builtins.c (expand_builtin_apply): Use them instead of
23406 HAVE_*/gen_* interface.
23407 (result_vector): Define unconditionally.
23408
23409 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23410
23411 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
23412 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
23413 (nonlocal_goto_receiver): New targetm instruction patterns.
23414 * builtins.c (expand_builtin_setjmp_setup): Use them instead
23415 of HAVE_*/gen_* interface.
23416 (expand_builtin_setjmp_receiver): Likewise.
23417 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
23418 * except.c (expand_dw2_landing_pad_for_region): Likewise.
23419
23420 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23421
23422 * target.def: Add code_for_* hooks.
23423 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
23424 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
23425 * target-insns.def (casesi, tablejump): New targetm instruction
23426 patterns.
23427 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
23428 (do_tablejump): Likewise.
23429 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
23430 (expand_sjlj_dispatch_table): Likewise.
23431 * targhooks.c (default_case_values_threshold): Likewise.
23432
23433 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
23434
23435 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
23436 Use rtx_insn * instead of rtx.
23437 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
23438 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
23439 (nios2_call_tls_get_addr): Likewise.
23440 (nios2_emit_expensive_div): Likewise.
23441 (nios2_emit_move_sequence): Change return type to bool.
23442 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
23443 Change return type to bool.
23444
23445 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23446
23447 PR target/66747
23448 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
23449
23450 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
23451
23452 PR target/66114
23453 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
23454 of register_operand. Remove constraint.
23455
23456 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
23457
23458 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
23459 the first argument.
23460
23461 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
23462
23463 * attribs.c (decl_attributes): Guard inform with the return value
23464 of the preceding warning.
23465
23466 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
23467
23468 * doc/invoke.texi (moverride): Move to correct section.
23469
23470 2015-07-03 Richard Biener <rguenther@suse.de>
23471
23472 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
23473 Copy from tree.c
23474 (dt_operand::gen_gimple_expr): After valueizing operands
23475 re-canonicalize operand order for commutative tree codes.
23476
23477 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
23478
23479 PR target/66746.
23480 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
23481 is defined.
23482 (__crc32w): Likewise.
23483 (__crc32d): Likewise.
23484 (__rdpmc): Likewise.
23485 (__rdtscp): Likewise.
23486 (_rdpmc): Likewise.
23487 (_rdtscp): Likewise.
23488 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
23489 is defined.
23490
23491 2015-07-03 Richard Biener <rguenther@suse.de>
23492
23493 * fold-const.c (fold_mathfn_compare): Remove.
23494 (fold_inf_compare): Likewise.
23495 (fold_comparison): Move floating point comparison simplifications...
23496 * match.pd: ... to patterns here. Introduce simple_comparisons
23497 operator list and use it for patterns formerly in fold_comparison.
23498
23499 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
23500
23501 PR tree-optimization/66119
23502 * toplev.c (process_options): Don't set up default values for
23503 the sra_max_scalarization_size_{speed,size} parameters.
23504 * tree-sra (analyze_all_variable_accesses): If no values
23505 have been set for the sra_max_scalarization_size_{speed,size}
23506 parameters, call get_move_ratio to get target defaults.
23507
23508 2015-07-03 Richard Biener <rguenther@suse.de>
23509
23510 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
23511 * match.pd: ... here.
23512
23513 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
23514
23515 PR target/37072
23516 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
23517 is not actually the default on FreeBSD.
23518
23519 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23520
23521 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
23522 definition.
23523 (CMPGE_8HI): Likewise.
23524 (CMPGE_4SI): Likewise.
23525 (CMPGE_2DI): Likewise.
23526 (CMPGE_U16QI): Likewise.
23527 (CMPGE_U8HI): Likewise.
23528 (CMPGE_U4SI): Likewise.
23529 (CMPGE_U2DI): Likewise.
23530 (CMPLE_16QI): Likewise.
23531 (CMPLE_8HI): Likewise.
23532 (CMPLE_4SI): Likewise.
23533 (CMPLE_2DI): Likewise.
23534 (CMPLE_U16QI): Likewise.
23535 (CMPLE_U8HI): Likewise.
23536 (CMPLE_U4SI): Likewise.
23537 (CMPLE_U2DI): Likewise.
23538 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23539 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
23540 ALTIVEC_BUILTIN_VEC_CMPLE.
23541 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
23542 floating-point vector modes.
23543 (vector_nlt<mode>): New define_expand.
23544 (vector_nltu<mode>): Likewise.
23545 (vector_ngt<mode>): Likewise.
23546 (vector_ngtu<mode>): Likewise.
23547
23548 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
23549
23550 PR rtl-optimization/66706
23551 * combine.c (make_compound_operation): If an AND of SUBREG of
23552 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
23553
23554 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
23555
23556 * tree-pass.h (make_pass_ch_vect): New.
23557 * passes.def: Add pass_ch_vect just before pass_if_conversion.
23558
23559 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
23560 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
23561 make_pass_ch_vect): New.
23562 (pass_ch): Extend ch_base.
23563
23564 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
23565 (ch_base::copy_headers): ...here.
23566
23567 2015-07-02 Richard Biener <rguenther@suse.de>
23568
23569 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
23570 * fold-const.c (get_pointer_modulus_and_residue): Remove.
23571 (fold_binary_loc): Implement (T)ptr & CST in terms of
23572 get_pointer_alignment_1.
23573 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
23574 Make sure to build the alignment test on a SSA name without
23575 final alignment info valid only after the prologue.
23576
23577 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
23578
23579 * config/cris/cris.md ("epilogue"): Remove condition.
23580 ("prologue"): Ditto.
23581
23582 2015-07-02 Richard Biener <rguenther@suse.de>
23583
23584 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
23585 parameter to record a condition that is false.
23586 (record_conditions): When recording an extra NE_EXPR that is
23587 true also record a EQ_EXPR that is false.
23588
23589 2015-07-02 Bin Cheng <bin.cheng@arm.com>
23590
23591 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
23592 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
23593 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
23594 (set_iv, find_interesting_uses_address, add_candidate_1): New
23595 argument to alloc_iv.
23596 (find_interesting_uses_op, find_interesting_uses_cond): Don't
23597 duplicate struct iv.
23598 (free_loop_data): Don't free struct iv explicitly.
23599 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
23600
23601 2015-07-01 DJ Delorie <dj@redhat.com>
23602
23603 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
23604 (LIB_SPEC): Add.
23605 (SUPPORTS_DISCRIMINATOR): Define.
23606
23607 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
23608
23609 PR bootstrap/66685
23610 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
23611 there are no CALLs in the same pattern.
23612
23613 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
23614
23615 PR rtl-optimization/61047
23616 * rtlanal.c (get_initial_register_offset): New function.
23617 (rtx_addr_can_trap_p_1): Check offsets of stack references.
23618
23619 2015-07-01 Richard Biener <rguenther@suse.de>
23620
23621 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
23622 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
23623 ~X CMP C -> X CMP' ~C to ...
23624 * match.pd: ... patterns here.
23625
23626 2015-07-01 Nick Clifton <nickc@redhat.com>
23627
23628 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
23629 a 16-bit value into a 20-bit memory slot.
23630
23631 2015-07-01 Jiong Wang <jiong.wang@arm.com>
23632
23633 * doc/sourcebuild.texi (AArch64-specific attributes): Document
23634 "aarch64_tiny", "aarch64_small", "aarch64_large",
23635 "aarch64_little_endian", "aarch64_big_endian".
23636
23637 2015-07-01 Jiong Wang <jiong.wang@arm.com>
23638
23639 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
23640 Document "aarch64_small_fpic".
23641
23642 2015-07-01 Jiong Wang <jiong.wang@arm.com>
23643
23644 * configure.ac: Add check for aarch64 assembler -fpic relocation
23645 modifier support.
23646 * configure: Regenerate.
23647 * config.in: Regenerate.
23648 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
23649 to -fPIC if not support of -fpic relocation modifier in assembler.
23650
23651 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
23652
23653 PR bootstrap/66685
23654 * rtl.c (classify_insn): Handle returns in PARALLELs.
23655
23656 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
23657
23658 PR middle-end/66633
23659 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
23660 to true if the function is nested and if not optimizing.
23661 (convert_local_omp_clauses): Initialize need_frame to true if the
23662 function contains nested functions and if not optimizing.
23663
23664 2015-07-01 Richard Biener <rguenther@suse.de>
23665
23666 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
23667 (X & Y) ^ Y -> ~X & Y transforms to ...
23668 * match.pd: ... here.
23669
23670 2015-07-01 Richard Biener <rguenther@suse.de>
23671
23672 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
23673 of converts to avoid uninteresting noise from the conversion
23674 simplifying patterns.
23675
23676 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
23677
23678 * config/c6x/c6x.c (try_rename_operands): Do not depend on
23679 gcc_assert evaluating its argument for side-effect.
23680
23681 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
23682
23683 PR target/64833
23684 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
23685 flag_pic is set.
23686
23687 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
23688
23689 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
23690 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
23691 (hash_scc): Add this_ref_p and ref_p parameters and pass them
23692 to the inner DFS walk.
23693
23694 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23695
23696 * target-insns.def (jump): New targetm instruction pattern.
23697 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
23698 instead of gen_jump.
23699 (fix_up_crossing_landing_pad): Likewise.
23700 (add_labels_and_missing_jumps): Likewise.
23701 (fix_crossing_conditional_branches): Likewise.
23702 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
23703 (force_nonfallthru_and_redirect): Likewise.
23704 * cse.c (cse_insn): Likewise.
23705 * expmed.c (expand_divmod): Likewise.
23706 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
23707 * haifa-sched.c (init_before_recovery): Likewise.
23708 (sched_create_recovery_edges): Likewise.
23709 * ifcvt.c (find_cond_trap): Likewise.
23710 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
23711 (expand_float, expand_fix): Likewise.
23712 * stmt.c (emit_jump): Likewise.
23713
23714 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23715
23716 * defaults.h (HAVE_load_multiple, gen_load_multiple)
23717 (HAVE_store_multiple, gen_store_multiple): Delete.
23718 * target-insns.def (load_multiple, store_multiple): New targetm
23719 instruction patterns.
23720 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
23721 of HAVE_*/gen_* interface.
23722
23723 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23724
23725 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
23726 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
23727 (gen_mem_signal_fence): Delete.
23728 * target-insns.def (mem_signal_fence, mem_thread_fence)
23729 (memory_barrier): New targetm instruction patterns.
23730 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
23731 interface.
23732 (expand_mem_signal_fence): Likewise.
23733
23734 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23735
23736 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
23737 * target-insns.def (epilogue, prologue, sibcall_prologue): New
23738 targetm instruction patterns.
23739 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
23740 interface.
23741 * calls.c (expand_call): Likewise.
23742 * cfgrtl.c (cfg_layout_finalize): Likewise.
23743 * df-scan.c (df_get_entry_block_def_set): Likewise.
23744 (df_get_exit_block_use_set): Likewise.
23745 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
23746 * final.c (final_start_function): Likewise.
23747 * function.c (thread_prologue_and_epilogue_insns): Likewise.
23748 (reposition_prologue_and_epilogue_notes): Likewise.
23749 * reorg.c (find_end_label): Likewise.
23750 * toplev.c (process_options): Likewise.
23751
23752 2015-06-30 David Malcolm <dmalcolm@redhat.com>
23753
23754 * typed-splay-tree.h: New file.
23755
23756 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
23757
23758 PR debug/66691
23759 * lra-int.h (lra_substitute_pseudo): Add a parameter.
23760 (lra_substitute_pseudo_within_insn): Ditto.
23761 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
23762 of constant.
23763 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
23764 to lra_substitute_pseudo.
23765 * lra-lives.c (process_bb_lives): Add an argument to
23766 lra_substitute_pseudo_within_insn call.
23767 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
23768 argument to lra_substitute_pseudo and
23769 lra_substitute_pseudo_within_insn calls.
23770 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
23771
23772 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
23773
23774 * configure: Regenerated.
23775
23776 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
23777
23778 * config.gcc: Support i[34567]86-*-elfiamcu target.
23779 * config/i386/iamcu.h: New.
23780 * config/i386/i386.opt: Add -miamcu.
23781 * doc/invoke.texi: Document -miamcu.
23782 * common/config/i386/i386-common.c (ix86_handle_option): Turn
23783 off x87/MMX/SSE/AVX codegen for -miamcu.
23784 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23785 __iamcu/__iamcu__ for -miamcu.
23786 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
23787 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
23788 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
23789 * config/i386/i386.c (ix86_option_override_internal): Ignore and
23790 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
23791 MCU by default. Default long double to 64-bit for Intel MCU.
23792 Turn on -freg-struct-return for Intel MCU. Issue an error when
23793 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
23794 AVX is turned on.
23795 (function_arg_advance_32): Pass value whose size is no larger
23796 than 8 bytes in registers for Intel MCU.
23797 (function_arg_32): Likewise.
23798 (ix86_return_in_memory): Return value whose size is no larger
23799 than 8 bytes in registers for Intel MCU.
23800 (iamcu_alignment): New function.
23801 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
23802 true.
23803 (ix86_local_alignment): Don't increase alignment for Intel MCU.
23804 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
23805 true.
23806
23807 2015-06-30 Marek Polacek <polacek@redhat.com>
23808
23809 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
23810 both operands of the resulting expression.
23811
23812 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
23813 the final expression with the operand's type and then convert
23814 it to the type of the expression.
23815
23816 2015-06-30 Richard Biener <rguenther@suse.de>
23817
23818 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
23819 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
23820 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
23821 * match.pd: ... to patterns here.
23822
23823 2015-06-30 Richard Biener <rguenther@suse.de>
23824
23825 PR tree-optimization/66704
23826 * tree-vect-data-refs.c (vect_setup_realignment): Use
23827 make_ssa_name for non-SSA name source.
23828
23829 2015-06-30 Jakub Jelinek <jakub@redhat.com>
23830
23831 PR middle-end/66702
23832 * omp-low.c (simd_clone_adjust): Handle addressable linear
23833 or uniform parameters or non-gimple type uniform parameters.
23834
23835 2015-06-30 Richard Biener <rguenther@suse.de>
23836
23837 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
23838 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
23839 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
23840 * match.pd: ... here.
23841 Add a few cases of A - B -> A + (-B) when B "easily" negates.
23842 Move (x & y) | x -> x and friends before
23843 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
23844
23845 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
23846
23847 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
23848 -mfix-ut699 is not specified.
23849 (leon3_load): Rename into...
23850 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
23851 is specified.
23852
23853 2015-06-30 Marek Polacek <polacek@redhat.com>
23854
23855 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
23856 * match.pd: ... here.
23857
23858 2015-06-30 Richard Biener <rguenther@suse.de>
23859
23860 * target-insns.def (canonicalize_funcptr_for_compare): Add.
23861 * fold-const.c (build_range_check): Replace uses of
23862 HAVE_canonicalize_funcptr_for_compare.
23863 (fold_widened_comparison): Likewise.
23864 (fold_sign_changed_comparison): Likewise.
23865 * dojump.c: Include "target.h".
23866 (do_compare_and_jump): Replace uses of
23867 HAVE_canonicalize_funcptr_for_compare and
23868 gen_canonicalize_funcptr_for_compare.
23869 * expr.c (do_store_flag): Likewise.
23870
23871 2015-06-30 Tom de Vries <tom@codesourcery.com>
23872
23873 PR tree-optimization/66652
23874 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
23875 max_loop_iterations to determine if nit + 1 overflows.
23876
23877 2015-06-30 Richard Biener <rguenther@suse.de>
23878
23879 * tree-vrp.c (register_edge_assert_for_2): Also register
23880 asserts for dominating conversion results.
23881
23882 2015-06-30 Bin Cheng <bin.cheng@arm.com>
23883
23884 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
23885 field in struct iv.
23886
23887 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
23888
23889 PR target/66509
23890 * configure.ac: Fix filds and fildq test for 64-bit.
23891 * configure: Regenerated.
23892
23893 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
23894
23895 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
23896 (nvptx_reorg): Here. Keep the non-subreg pieces.
23897
23898 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
23899
23900 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
23901 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
23902
23903 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
23904
23905 * config/i386/i386.md (*jcc_1): Use %! in asm template.
23906 Set attribute "length_nobnd" instead of "length".
23907 (*jcc_2): Ditto.
23908 (jump): Ditto.
23909 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
23910
23911 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
23912
23913 * config/nios2/nios2.c (nios2_delegitimize_address): Make
23914 assert less restrictive.
23915
23916 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
23917
23918 PR fortran/66605
23919 * cgraphunit.c (cgraph_node::finalize_function): Do not call
23920 do_warn_unused_parameter.
23921 * function.c (do_warn_unused_parameter): Move from here.
23922 * function.h (do_warn_unused_parameter): Do not declare.
23923
23924 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23925
23926 PR target/65697
23927 * gcc.target/arm/armv-sync-comp-swap.c: New.
23928 * gcc.target/arm/armv-sync-op-acquire.c: New.
23929 * gcc.target/arm/armv-sync-op-full.c: New.
23930 * gcc.target/arm/armv-sync-op-release.c: New.
23931
23932 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23933
23934 PR target/65697
23935 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
23936 initial acquire barrier with final barrier.
23937
23938 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23939
23940 PR target/65697
23941 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
23942 initial acquire barrier with final barrier.
23943
23944 2015-06-29 Richard Henderson <rth@redhat.com>
23945
23946 * config/i386/constraints.md (Bf): New constraint.
23947 * config/i386/i386-c.c (ix86_target_macros): Define
23948 __GCC_ASM_FLAG_OUTPUTS__.
23949 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
23950 as flags outputs.
23951 * doc/extend.texi (FlagOutputOperands): Document them.
23952
23953 2015-06-29 Jiong Wang <jiong.wang@arm.com>
23954
23955 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
23956 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
23957 unspec name.
23958 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
23959 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
23960 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
23961 (aarch64_symbol_context): Ditto.
23962 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
23963 and use new pattern name.
23964 (aarch64_expand_mov_immediate): Ditto.
23965 (aarch64_print_operand): Ditto.
23966 (aarch64_classify_tls_symbol): Ditto.
23967
23968 2015-06-29 Marek Polacek <polacek@redhat.com>
23969 Marc Glisse <marc.glisse@inria.fr>
23970
23971 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
23972 * match.pd: ... pattern here.
23973
23974 2015-06-29 Tom de Vries <tom@codesourcery.com>
23975
23976 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
23977 function structure.
23978
23979 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23980
23981 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
23982 feature description, split out the native option, add a link to
23983 the feature documentation, rearrange and slightly rewrite text.
23984 (Aarch64 options, -mcpu): Likewise.
23985 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
23986 +rdma implies Adv. SIMD.
23987
23988 2015-06-29 Marek Polacek <polacek@redhat.com>
23989
23990 PR c/66322
23991 * function.c (stack_protect_epilogue): Remove a cast to int.
23992 * doc/invoke.texi: Update -Wswitch-bool description.
23993
23994 2015-06-29 Richard Biener <rguenther@suse.de>
23995
23996 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
23997 * fold-const.c (fold_binary_loc): Move &A - &B simplification
23998 via ptr_difference_const ...
23999 * match.pd: ... here.
24000 When matching (X ^ Y) == Y also match with swapped operands.
24001
24002 2015-06-29 Richard Biener <rguenther@suse.de>
24003
24004 * lto-streamer.h (LTO_major_version): Bump to 5.
24005
24006 2015-06-29 Richard Biener <rguenther@suse.de>
24007
24008 PR tree-optimization/66677
24009 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
24010 STMT_VINFO_VEC_STMT clobbering less strict.
24011
24012 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
24013
24014 PR middle-end/64130
24015 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
24016 division, compute max and min when value ranges for dividend and
24017 divisor are available.
24018
24019 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
24020 Sandra Loosemore <sandra@codesourcery.com>
24021
24022 * regrename.h (regrename_do_replace): Change to return bool.
24023 * regrename.c (rename_chains): Check return value of
24024 regname_do_replace.
24025 (regrename_do_replace): Re-validate the modified insns and
24026 return bool status.
24027 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
24028 Update to match rename_chains changes.
24029 * config/c6x/c6x.c (try_rename_operands): Assert that
24030 regrename_do_replace returns true.
24031
24032 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
24033
24034 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
24035 operand 2 here. Use copy_addr_to_reg to copy non-index
24036 register operand 2 to a temporary.
24037 (<mode>_stx): Ditto for operand 1.
24038 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
24039 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
24040 (ix86_store_bounds): Ditto.
24041
24042 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
24043
24044 * print-tree.c (print_node) [TREE_VEC]: Print its length.
24045
24046 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
24047
24048 * gimple.c (gimple_call_set_fndecl): Remove.
24049 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
24050 build1_loc directly instead of build_fold_addr_expr_loc.
24051
24052 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
24053
24054 * hash-map.h (hash_map::traverse): Use the definition of the
24055 Key typedef rather than the typedef itself.
24056
24057 2015-06-26 Martin Jambor <mjambor@suse.cz>
24058
24059 PR debug/66301
24060 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
24061 NULL instead of calling dump_enabled_p.
24062
24063 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
24064
24065 * config/aarch64/aarch64.opt: (override): New.
24066 * doc/invoke.texi (override): Document.
24067 * config/aarch64/aarch64.c (aarch64_flag_desc): New
24068 (aarch64_fusible_pairs): Likewise.
24069 (aarch64_tuning_flags): Likewise.
24070 (aarch64_tuning_override_function): Likewise.
24071 (aarch64_tuning_override_functions): Likewise.
24072 (aarch64_parse_one_option_token): Likewise.
24073 (aarch64_parse_boolean_options): Likewise.
24074 (aarch64_parse_fuse_string): Likewise.
24075 (aarch64_parse_tune_string): Likewise.
24076 (aarch64_parse_one_override_token): Likewise.
24077 (aarch64_parse_override_string): Likewise.
24078 (aarch64_override_options): Parse the -override string if it
24079 is present.
24080
24081 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
24082
24083 * config/aarch64/aarch64-protos.h (tune_params): Remove
24084 const from members.
24085 (aarch64_tune_params): Remove const, change to no longer be
24086 a pointer.
24087 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
24088 change to no longer be a pointer, initialize to generic_tunings.
24089 (aarch64_min_divisions_for_recip_mul): Change dereference of
24090 aarch64_tune_params to member access.
24091 (aarch64_reassociation_width): Likewise.
24092 (aarch64_rtx_mult_cost): Likewise.
24093 (aarch64_address_cost): Likewise.
24094 (aarch64_branch_cost): Likewise.
24095 (aarch64_rtx_costs): Likewise.
24096 (aarch64_register_move_cost): Likewise.
24097 (aarch64_memory_move_cost): Likewise.
24098 (aarch64_sched_issue_rate): Likewise.
24099 (aarch64_builtin_vectorization_cost): Likewise.
24100 (aarch64_override_options): Take a copy of the selected tuning
24101 struct in to aarch64_tune_params, rather than just setting
24102 a pointer, change dereferences of aarch64_tune_params to member
24103 accesses.
24104 (aarch64_override_options_after_change): Change dereferences of
24105 aarch64_tune_params to member access.
24106 (aarch64_macro_fusion_p): Likewise.
24107 (aarch_macro_fusion_pair_p): Likewise.
24108 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
24109
24110 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
24111
24112 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
24113 (aarch64_tune_flags): Likewise.
24114 (AARCH64_TUNE_FMA_STEERING): Likewise.
24115 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
24116 to AARCH64_FL_USE_FMA_STEERING_PASS.
24117 (cortex-a57.cortex-a53): Likewise.
24118 (cortex-a72): Use cortexa72_tunings.
24119 (cortex-a72.cortex-a53): Likewise.
24120 (exynos-m1): Likewise.
24121 * config/aarch64/aarch64-protos.h (tune_params): Add
24122 a field: extra_tuning_flags.
24123 * config/aarch64/aarch64-tuning-flags.def: New.
24124 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
24125 (aarch64_extra_tuning_flags): Likewise.
24126 (aarch64_tune_params): Declare here.
24127 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
24128 (cortexa53_tunings): Likewise.
24129 (cortexa57_tunings): Likewise.
24130 (thunderx_tunings): Likewise.
24131 (xgene1_tunings): Likewise.
24132 (cortexa72_tunings): New.
24133 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
24134 (gate): Check against aarch64_tune_params.
24135 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
24136 aarch64-protos.h.
24137
24138 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
24139
24140 * config/aarch64/aarch64-fusion-pairs.def: New.
24141 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
24142 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
24143 aarch64_fusion_pairs.
24144 (AARCH64_FUSE_MOV_MOVK): Likewise.
24145 (AARCH64_FUSE_ADRP_ADD): Likewise.
24146 (AARCH64_FUSE_MOVK_MOVK): Likewise.
24147 (AARCH64_FUSE_ADRP_LDR): Likewise.
24148 (AARCH64_FUSE_CMP_BRANCH): Likewise.
24149
24150 2015-06-26 Jiong Wang <jiong.wang@arm.com>
24151
24152 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
24153 SYMBOL_SMALL_GOT_28K.
24154 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
24155 relocation modifiers.
24156 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
24157 (ldr_got_small_28k_<mode>): New.
24158 (ldr_got_small_28k_sidi): New.
24159 * config/aarch64/iterators.md (got_modifier): New mode iterator.
24160 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
24161 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
24162 SYMBOL_SMALL_GOT_28K.
24163 (aarch64_rtx_costs): Add costs for new instruction sequences.
24164 (initialize_aarch64_code_model): Initialize new model.
24165 (aarch64_classify_symbol): Recognize new model and new symbol classification.
24166 (aarch64_asm_preferred_eh_data_format): Support new model.
24167 (aarch64_load_symref_appropriately): Generate new instruction
24168 sequences for -fpic.
24169 (TARGET_USE_PSEUDO_PIC_REG): New definition.
24170 (aarch64_use_pseudo_pic_reg): New function.
24171
24172 2015-06-26 Jiong Wang <jiong.wang@arm.com>
24173
24174 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
24175 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
24176 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
24177 (aarch64_expand_mov_immediate): Ditto.
24178 (aarch64_print_operand): Ditto.
24179 (aarch64_classify_symbol): Ditto.
24180
24181 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
24182
24183 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
24184
24185 2015-06-26 Bin Cheng <bin.cheng@arm.com>
24186
24187 PR bootstrap/66638
24188 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
24189 assertion failed. Remove assertion itself.
24190
24191 2015-06-26 Richard Biener <rguenther@suse.de>
24192
24193 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
24194 and -A CMP CST -> A CMP -CST which is redundant with a pattern
24195 in match.pd.
24196 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
24197 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
24198 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
24199 * match.pd: ... patterns here.
24200
24201 2015-06-26 Marek Polacek <polacek@redhat.com>
24202
24203 * match.pd ((x | y) & ~(x & y) -> x ^ y,
24204 (x | y) & (~x ^ y) -> x & y): New patterns.
24205
24206 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
24207
24208 * rtl.h (emit): Add an optional boolean parameter to control
24209 whether barriers are emitted.
24210 * emit-rtl.c (emit): Likewise.
24211 * gensupport.c (get_emit_function): Return null rather than "emit".
24212 * genemit.c (gen_emit_seq): Handle the null return value.
24213 Don't emit barriers after the final instruction in the sequence.
24214 * gentarget-def.c (main): Don't emit barriers after the instruction.
24215
24216 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24217
24218 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
24219 TARGET_UNIFIED_ASM.
24220
24221 2015-06-26 Richard Biener <rguenther@suse.de>
24222
24223 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
24224
24225 2015-06-26 Richard Biener <rguenther@suse.de>
24226
24227 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
24228 irrespective on whether the inner operation has a single use
24229 of both off are constant.
24230
24231 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
24232 Segher Boessenkool <segher@kernel.crashing.org>
24233
24234 PR target/66412
24235 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
24236 before doing PUT_MODE or PUT_CODE on operands to avoid
24237 in-place RTX modification.
24238
24239 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
24240
24241 * gentarget-def.c (def_target_insn): Cast return of strtol to
24242 unsigned int.
24243
24244 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24245
24246 * gimple.h (gimple_call_set_fn): Move inline function.
24247 * gimple.c (gimple_call_set_fn): Relocate here.
24248
24249 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
24250
24251 PR target/65979
24252 PR target/66611
24253 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
24254 the replacement insn will work.
24255
24256 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
24257
24258 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
24259 by default.
24260
24261 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24262
24263 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
24264 * cgraph.h: Include ipa-ref.h and plugin-api.h.
24265 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
24266 (symtab_node::address_can_be_compared_p): Move function.
24267 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
24268 definition here.
24269 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
24270 * auto-profile.c: Likewise.
24271 * bb-reorder.c: Likewise.
24272 * builtins.c: Likewise.
24273 * calls.c: Likewise.
24274 * cfgexpand.c: Likewise.
24275 * cgraphbuild.c: Likewise.
24276 * cgraphclones.c: Likewise.
24277 * cgraphunit.c: Likewise.
24278 * combine.c: Likewise.
24279 * coverage.c: Likewise.
24280 * data-streamer-in.c: Likewise.
24281 * data-streamer-out.c: Likewise.
24282 * data-streamer.c: Likewise.
24283 * dbxout.c: Likewise.
24284 * dwarf2out.c: Likewise.
24285 * except.c: Likewise.
24286 * expr.c: Likewise.
24287 * final.c: Likewise.
24288 * fold-const.c: Likewise.
24289 * ggc-page.c: Likewise.
24290 * gimple-fold.c: Likewise.
24291 * gimple-iterator.c: Likewise.
24292 * gimple-pretty-print.c: Likewise.
24293 * gimple-streamer-in.c: Likewise.
24294 * gimple-streamer-out.c: Likewise.
24295 * gimple.c: Likewise.
24296 * gimplify.c: Likewise.
24297 * ipa-chkp.c: Likewise.
24298 * ipa-comdats.c: Likewise.
24299 * ipa-cp.c: Likewise.
24300 * ipa-devirt.c: Likewise.
24301 * ipa-icf-gimple.c: Likewise.
24302 * ipa-icf.c: Likewise.
24303 * ipa-inline-analysis.c: Likewise.
24304 * ipa-inline-transform.c: Likewise.
24305 * ipa-inline.c: Likewise.
24306 * ipa-polymorphic-call.c: Likewise.
24307 * ipa-profile.c: Likewise.
24308 * ipa-prop.c: Likewise.
24309 * ipa-pure-const.c: Likewise.
24310 * ipa-ref.c: Likewise.
24311 * ipa-reference.c: Likewise.
24312 * ipa-split.c: Likewise.
24313 * ipa-utils.c: Likewise.
24314 * ipa-visibility.c: Likewise.
24315 * ipa.c: Likewise.
24316 * langhooks.c: Likewise.
24317 * lto-cgraph.c: Likewise.
24318 * lto-compress.c: Likewise.
24319 * lto-opts.c: Likewise.
24320 * lto-section-in.c: Likewise.
24321 * lto-section-out.c: Likewise.
24322 * lto-streamer-in.c: Likewise.
24323 * lto-streamer-out.c: Likewise.
24324 * lto-streamer.c: Likewise.
24325 * omp-low.c: Likewise.
24326 * opts-global.c: Likewise.
24327 * passes.c: Likewise.
24328 * predict.c: Likewise.
24329 * print-tree.c: Likewise.
24330 * profile.c: Likewise.
24331 * ree.c: Likewise.
24332 * sanopt.c: Likewise.
24333 * stor-layout.c: Likewise.
24334 * symtab.c: Likewise.
24335 * toplev.c: Likewise.
24336 * trans-mem.c: Likewise.
24337 * tree-cfg.c: Likewise.
24338 * tree-chkp.c: Likewise.
24339 * tree-eh.c: Likewise.
24340 * tree-emutls.c: Likewise.
24341 * tree-inline.c: Likewise.
24342 * tree-nested.c: Likewise.
24343 * tree-parloops.c: Likewise.
24344 * tree-pretty-print.c: Likewise.
24345 * tree-profile.c: Likewise.
24346 * tree-sra.c: Likewise.
24347 * tree-ssa-alias.c: Likewise.
24348 * tree-ssa-live.c: Likewise.
24349 * tree-ssa-loop-ivcanon.c: Likewise.
24350 * tree-ssa-loop-ivopts.c: Likewise.
24351 * tree-ssa-pre.c: Likewise.
24352 * tree-ssa-sccvn.c: Likewise.
24353 * tree-ssa-strlen.c: Likewise.
24354 * tree-ssa-structalias.c: Likewise.
24355 * tree-streamer-in.c: Likewise.
24356 * tree-streamer-out.c: Likewise.
24357 * tree-streamer.c: Likewise.
24358 * tree-switch-conversion.c: Likewise.
24359 * tree-tailcall.c: Likewise.
24360 * tree-vect-data-refs.c: Likewise.
24361 * tree-vect-stmts.c: Likewise.
24362 * tree-vectorizer.c: Likewise.
24363 * tree.c: Likewise.
24364 * tsan.c: Likewise.
24365 * ubsan.c: Likewise.
24366 * value-prof.c: Likewise.
24367 * varasm.c: Likewise.
24368 * varpool.c: Likewise.
24369 * config/arm/arm.c: Likewise.
24370 * config/bfin/bfin.c: Likewise.
24371 * config/c6x/c6x.c: Likewise.
24372 * config/cris/cris.c: Likewise.
24373 * config/darwin-c.c: Likewise.
24374 * config/darwin.c: Likewise.
24375 * config/i386/i386.c: Likewise.
24376 * config/i386/winnt.c: Likewise.
24377 * config/microblaze/microblaze.c: Likewise.
24378 * config/mips/mips.c: Likewise.
24379 * config/rs6000/rs6000.c: Likewise.
24380 * config/rx/rx.c: Likewise.
24381 * config/s390/s390.c: Likewise.
24382 * config/tilegx/mul-tables.c: Likewise.
24383
24384 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24385
24386 * config/aarch64/aarch64.c, config/alpha/alpha.c,
24387 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
24388 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
24389 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
24390 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
24391 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
24392 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
24393 config/microblaze/microblaze.c, config/mips/mips.c,
24394 config/mmix/mmix.c, config/mn10300/mn10300.c,
24395 config/moxie/moxie.c, config/msp430/msp430.c,
24396 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
24397 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
24398 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
24399 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
24400 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
24401 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
24402 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
24403 target-def.h include.
24404 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
24405
24406 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24407
24408 * Makefile.in (TARGET_DEF): Add target-insns.def.
24409 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
24410 (build/gentarget-def.o): New rule.
24411 (genprogrtl): Add target-def.
24412 * target-insns.def, gentarget-def.c: New files.
24413 * target.def: Add targetm.have_* and targetm.gen_* hooks,
24414 based on the contents of target-insns.def.
24415 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
24416 (HAVE_return, gen_return): Delete.
24417 * target-def.h: Include insn-target-def.h.
24418 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
24419 instead of direct calls. Rely on them to do the appropriate assertions.
24420 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
24421 (convert_jumps_to_returns): Use targetm interface instead of
24422 direct calls.
24423 (thread_prologue_and_epilogue_insns): Likewise.
24424 * reorg.c (find_end_label, dbr_schedule): Likewise.
24425 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
24426 * shrink-wrap.c (convert_to_simple_return): Likewise.
24427 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
24428
24429 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24430
24431 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
24432 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
24433 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
24434 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
24435 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
24436 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
24437 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
24438 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
24439 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
24440 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
24441 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
24442 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
24443 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
24444 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
24445 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
24446 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
24447 includes to end.
24448
24449 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24450
24451 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
24452 (unbounded_int_hashmap_traits::key_type): Likewise.
24453 * hash-map.h (hash_map): Get the key type from the traits.
24454 * hash-traits.h (default_hash_traits): By default, inherit from the
24455 template parameter.
24456 * alias.c (alias_set_traits): Delete.
24457 (alias_set_entry_d::children): Use alias_set_hash as the first
24458 template parameter.
24459 (record_alias_subset): Update accordingly.
24460 * except.c (tree_hash_traits): Delete.
24461 (type_to_runtime_map): Use tree_hash as the first template parameter.
24462 (init_eh): Update accordingly.
24463 * genmatch.c (capture_id_map_hasher): Delete.
24464 (cid_map_t): Use nofree_string_hash as first template parameter.
24465 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
24466 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
24467 Use symbol_compare_hash as the first template parameter in
24468 subdivide_hash_map.
24469 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
24470 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
24471 template parameter.
24472 * passes.c (pass_registry_hasher): Delete.
24473 (name_to_pass_map): Use nofree_string_hash as the first template
24474 parameter.
24475 (register_pass_name): Update accordingly.
24476 * sanopt.c (sanopt_tree_map_traits): Delete.
24477 (sanopt_tree_triplet_map_traits): Delete.
24478 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
24479 template parameter.
24480 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
24481 the first template parameter.
24482 * sese.c (rename_map_hasher): Delete.
24483 (rename_map_type): Use tree_ssa_name_hash as the first template
24484 parameter.
24485 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
24486 (function_summary::m_map): Use map_hash as the first template
24487 parameter.
24488 (function_summary::release): Update accordingly.
24489 * tree-if-conv.c (phi_args_hash_traits): Delete.
24490 (predicate_scalar_phi): Use tree_operand_hash as the first template
24491 parameter to phi_arg_map.
24492 * tree-inline.h (dependence_hasher): Delete.
24493 (copy_body_data::dependence_map): Use dependence_hash as the first
24494 template parameter.
24495 * tree-inline.c (remap_dependence_clique): Update accordingly.
24496 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
24497 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
24498 parameter.
24499 (addr_stridxptr): Update accordingly.
24500 * value-prof.c (profile_id_traits): Delete.
24501 (cgraph_node_map): Use profile_id_hash as the first template
24502 parameter.
24503 (init_node_map): Update accordingly.
24504 * config/alpha/alpha.c (string_traits): Delete.
24505 (machine_function::links): Use nofree_string_hash as the first
24506 template parameter.
24507 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
24508 * config/m32c/m32c.c (pragma_traits): Delete.
24509 (pragma_htab): Use nofree_string_hash as the first template parameter.
24510 (m32c_note_pragma_address): Update accordingly.
24511 * config/mep/mep.c (pragma_traits): Delete.
24512 (pragma_htab): Use nofree_string_hash as the first template parameter.
24513 (mep_note_pragma_flag): Update accordingly.
24514 * config/mips/mips.c (mips16_flip_traits): Delete.
24515 (mflip_mips16_htab): Use nofree_string_hash as the first template
24516 parameter.
24517 (mflip_mips16_use_mips16_p): Update accordingly.
24518 (local_alias_traits): Delete.
24519 (mips16_local_aliases): Use nofree_string_hash as the first template
24520 parameter.
24521 (mips16_local_alias): Update accordingly.
24522
24523 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24524
24525 * hash-map-traits.h (default_hashmap_traits): Delete.
24526
24527 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24528
24529 * hash-map-traits.h (unbounded_hashmap_traits): New class.
24530 (unbounded_int_hashmap_traits): Likewise.
24531 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
24532
24533 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24534
24535 * ipa-icf.h (symbol_compare_hash): New class.
24536 (symbol_compare_hashmap_traits): Use it.
24537 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
24538 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
24539 (mem_alloc_description::reverse_mem_map_t): Remove redundant
24540 default_hashmap_traits.
24541 * sanopt.c (sanopt_tree_triplet_hash): New class.
24542 (sanopt_tree_triplet_map_traits): Use it.
24543
24544 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24545
24546 * gengtype-parse.c (require_template_declaration): Allow '+' in
24547 template parameters. Consolidate cases.
24548 * hash-traits.h (int_hash): New class.
24549 * alias.c (alias_set_hash): New structure.
24550 (alias_set_traits): Use it.
24551 * symbol-summary.h (function_summary::map_hash): New class.
24552 (function_summary::summary_hashmap_traits): Use it.
24553 * tree-inline.h (dependence_hash): New class.
24554 (dependence_hasher): Use it.
24555 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
24556 * value-prof.c (profile_id_hash): New class.
24557 (profile_id_traits): Use it.
24558
24559 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24560
24561 * config/mips/mips.c (mips16_flip_traits): Use it.
24562 (local_alias_traits, mips16_local_aliases): Convert from a map of
24563 rtxes to a map of symbol names.
24564 (mips16_local_alias): Update accordingly.
24565
24566 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24567
24568 * hash-traits.h (string_hash, nofree_string_hash): New classes.
24569 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
24570 * passes.c (pass_registry_hasher): Likewise.
24571 * config/alpha/alpha.c (string_traits): Likewise.
24572 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
24573 * config/m32c/m32c.c (pragma_traits): Likewise.
24574 * config/mep/mep.c (pragma_traits): Likewise.
24575
24576 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24577
24578 * tree-hash-traits.h (tree_hash): New class.
24579 * except.c: Include tree-hash-traits.h.
24580 (tree_hash_traits): Use tree_hash.
24581
24582 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24583
24584 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
24585 * sese.c: Include tree-hash-traits.h.
24586 (rename_map_hasher): Use tree_ssa_name_hasher.
24587
24588 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24589
24590 * tree-hash-traits.h (tree_decl_hash): New class.
24591 * tree-ssa-strlen.c: Include tree-hash-traits.h.
24592 (stridxlist_hash_traits): Use tree_decl_hash.
24593
24594 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24595
24596 * tree-hash-traits.h: New file.
24597 (tree_operand_hash): New class.
24598 * sanopt.c: Include tree-hash-traits.h.
24599 (sanopt_tree_map_traits): Use tree_operand_hash.
24600 * tree-if-conv.c: Include tree-hash-traits.h.
24601 (phi_args_hash_traits): Use tree_operand_hash.
24602 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
24603 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
24604
24605 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24606
24607 * hash-map-traits.h: Include hash-traits.h.
24608 (simple_hashmap_traits): New class.
24609 * mem-stats.h (hash_map): Change the default traits to
24610 simple_hashmap_traits<default_hash_traits<Key> >.
24611
24612 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24613
24614 * hash-table.h: Update comments.
24615
24616 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24617
24618 * hash-traits.h (default_hash_traits): New structure.
24619 * hash-set.h (default_hashset_traits): Delete.
24620 (hash_set): Use default_hash_traits<Key> instead of
24621 default_hashset_traits. Delete hash_entry type and use Key directly.
24622 * ipa-devirt.c (pair_traits): Delete.
24623 (default_hash_traits <type_pair>): Override.
24624 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
24625 (odr_types_equivalent_p, add_type_duplicate): Likewise.
24626
24627 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24628
24629 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
24630
24631 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24632
24633 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
24634 (has_is_empty, is_empty_helper): Delete.
24635 (has_mark_deleted, mark_deleted_helper): Delete.
24636 (has_mark_empty, mark_empty_helper): Delete.
24637 (hash_table::is_deleted): Call the Descriptor unconditionally.
24638 (hash_table::is_empty): Likewise.
24639 (hash_table::mark_deleted): Likewise.
24640 (hash_table::mark_empty): Likewise.
24641
24642 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24643
24644 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
24645 redundant typedefs and members.
24646 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
24647 redundant typedefs.
24648 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
24649 * ipa-devirt.c (odr_name_hasher): Likewise.
24650 (polymorphic_call_target_hasher): Likewise.
24651 * ira-costs.c (cost_classes_hasher): Likewise.
24652 * statistics.c (stats_counter_hasher): Likewise.
24653 * trans-mem.c (log_entry_hasher): Likewise.
24654 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
24655 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
24656 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
24657 * var-tracking.c (variable_hasher): Likewise.
24658 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
24659 Remove redundant typedefs and members.
24660
24661 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24662
24663 * hash-traits.h (ggc_cache_hasher): Rename to...
24664 (ggc_cache_remove): ...this and remove typedefs.
24665 (ggc_cache_ptr_hash): New class.
24666 * hash-table.h: Update commentary.
24667 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
24668 rather than ggc_cache_hasher.
24669 (const_wide_int_hasher, reg_attr_hasher): Likewise.
24670 (const_double_hasher, const_fixed_hasher): Likewise.
24671 * function.c (insn_cache_hasher): Likewise.
24672 * trans-mem.c (tm_wrapper_hasher): Likewise.
24673 * tree.h (tree_decl_map_cache_hasher): Likewise.
24674 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
24675 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
24676 * ubsan.c (tree_type_map_cache_hasher): Likewise.
24677 * varasm.c (tm_clone_hasher): Likewise.
24678 * config/i386/i386.c (dllimport_hasher): Likewise.
24679 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
24680 (tree_hasher): Likewise.
24681
24682 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24683
24684 * hash-traits.h (ggc_hasher): Rename to...
24685 (ggc_remover): ...this and remove typedefs.
24686 (ggc_cache_hasher): Update accordingly. Add typedefs.
24687 (ggc_ptr_hash): New class.
24688 * hash-table.h: Update comment.
24689 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
24690 ggc_hasher.
24691 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
24692 (tree_descriptor_hasher): Likewise.
24693 * cgraph.c (function_version_hasher): Likewise.
24694 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
24695 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
24696 (dw_loc_list_hasher, addr_hasher): Likewise.
24697 * function.h (used_type_hasher): Likewise.
24698 * function.c (temp_address_hasher): Likewise.
24699 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
24700 * libfuncs.h (libfunc_hasher): Likewise.
24701 * lto-streamer.h (decl_state_hasher): Likewise.
24702 * optabs.c (libfunc_decl_hasher): Likewise.
24703 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
24704 * varasm.c (section_hasher, object_block_hasher): Likewise.
24705 (const_rtx_desc_hasher): Likewise.
24706 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
24707 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
24708
24709 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24710
24711 * hash-traits.h (free_ptr_hash): New class.
24712 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
24713 rather than typed_free_remove. Remove redudant typedefs.
24714 (external_ref_hasher): Likewise.
24715 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
24716 (ehspec_hasher): Likewise.
24717 * ggc-common.c (saving_hasher): Likewise.
24718 * gimplify.c (gimplify_hasher): Likewise.
24719 * haifa-sched.c (delay_i2_hasher): Likewise.
24720 * loop-invariant.c (invariant_expr_hasher): Likewise.
24721 * loop-iv.c (biv_entry_hasher): Likewise.
24722 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
24723 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
24724 * tree-cfg.c (locus_discrim_hasher): Likewise.
24725 * tree-eh.c (finally_tree_hasher): Likewise.
24726 * tree-into-ssa.c (var_info_hasher): Likewise.
24727 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
24728 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
24729 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
24730 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
24731 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
24732 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
24733 (shared_bitmap_hasher): Likewise.
24734 * tree-ssa-threadupdate.c (redirection_data): Likewise.
24735 * tree-vectorizer.h (peel_info_hasher): Likewise.
24736 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
24737 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
24738
24739 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24740
24741 * hash-table.h: Update comments.
24742 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
24743 (nofree_ptr_hash): New class.
24744 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
24745 than typed_noop_remove. Remove redudant typedefs.
24746 * attribs.c (attribute_hasher): Likewise.
24747 * cfg.c (bb_copy_hasher): Likewise.
24748 * cselib.c (cselib_hasher): Likewise.
24749 * dse.c (invariant_group_base_hasher): Likewise.
24750 * dwarf2cfi.c (trace_info_hasher): Likewise.
24751 * dwarf2out.c (macinfo_entry_hasher): Likewise.
24752 (comdat_type_hasher, loc_list_hasher): Likewise.
24753 * gcse.c (pre_ldst_expr_hasher): Likewise.
24754 * genmatch.c (id_base): Likewise.
24755 * genrecog.c (test_pattern_hasher): Likewise.
24756 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
24757 * haifa-sched.c (delay_i1_hasher): Likewise.
24758 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
24759 * ipa-icf.h (congruence_class_group_hash): Likewise.
24760 * ipa-profile.c (histogram_hash): Likewise.
24761 * ira-color.c (allocno_hard_regs_hasher): Likewise.
24762 * lto-streamer.h (string_slot_hasher): Likewise.
24763 * lto-streamer.c (tree_entry_hasher): Likewise.
24764 * plugin.c (event_hasher): Likewise.
24765 * postreload-gcse.c (expr_hasher): Likewise.
24766 * store-motion.c (st_expr_hasher): Likewise.
24767 * tree-sra.c (uid_decl_hasher): Likewise.
24768 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
24769 (ssa_name_var_hash): Likewise.
24770 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
24771 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
24772 * tree-ssa-pre.c (pre_expr_d): Likewise.
24773 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
24774 * vtable-verify.h (registration_hasher): Likewise.
24775 * vtable-verify.c (vtbl_map_hasher): Likewise.
24776 * config/arm/arm.c (libcall_hasher): Likewise.
24777 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
24778 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
24779 * config/sol2.c (comdat_entry_hasher): Likewise.
24780 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
24781 (print_fold_checksum, fold_checksum_tree): Likewise.
24782 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
24783 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
24784 (fold_build_call_array_loc): Likewise.
24785 * tree-ssa-ccp.c (gimple_htab): Likewise.
24786 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
24787 rather than pointer_type.
24788
24789 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24790
24791 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
24792 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
24793
24794 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24795
24796 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
24797 (ggc_hasher::ggc_mx): Likewise.
24798 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
24799 that duplicate ggc_hasher ones.
24800
24801 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24802
24803 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
24804 (gt_cleare_cache): Check here for deleted and empty entries.
24805 Replace handle_cache_entry with a call to keep_cache_entry.
24806 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
24807 (ggc_cache_hasher::keep_cache_entry): New function.
24808 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
24809 (tm_wrapper_hasher::keep_cache_entry): New function.
24810 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
24811 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
24812 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
24813 (type_cache_hasher::keep_cache_entry): New function.
24814 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
24815 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
24816 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
24817 (tree_type_map_cache_hasher::keep_cache_entry): New function.
24818 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
24819 (tm_clone_hasher::keep_cache_entry): New function.
24820 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
24821 (dllimport_hasher::keep_cache_entry): New function.
24822
24823 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24824
24825 * hash-table.h: Include hash-traits.h.
24826 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
24827 (ggc_cache_hasher): Move to...
24828 * hash-traits.h: ...this new file.
24829
24830 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24831
24832 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
24833 struct cl_optimization.
24834 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
24835 * tree.c (make_node_stat): Allocate cl_optimization struct.
24836 (copy_node_stat): Allocate and copy cl_optimization struct.
24837
24838 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24839
24840 * function.h (struct incoming_args): Move struct.
24841 (pass_by_reference, reference_callee_copied): Remove prototypes.
24842 * emit-rtl.h (struct incoming_args): Relocate struct here.
24843 * calls.h (pass_by_reference, reference_callee_copied): Relocate
24844 prototypes here.
24845 * function.c (pass_by_reference, reference_callee_copied): Move.
24846 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
24847 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
24848 * ipa-chkp.c: Include calls.h.
24849
24850 2015-06-25 Andrew Macleod <amacleod@redhat.com>
24851
24852 * alias.h (alias_set_type): Move typedef.
24853 * coretypes.h (alias_set_type): Relocate typedef here.
24854 * rtl.h: Don't include alias.h.
24855
24856 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24857
24858 * cgraph.h (cgraph_rtl_info): Move to rtl.h
24859 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
24860 and instance.
24861 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
24862 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
24863 doesn't exist.
24864 * calls.c: Include hard-reg-set.h before rtl.h.
24865 * ira.c: Likewise.
24866
24867 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24868 Vladimir Makarov <vmakarov@redhat.com>
24869
24870 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
24871 Add assert.
24872
24873 2015-06-25 Richard Biener <rguenther@suse.de>
24874
24875 * fold-const.c (fold_binary_loc): Move simplification of
24876 (X <<>> C1) & C2 ...
24877 * match.pd: ... here.
24878
24879 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
24880
24881 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
24882
24883 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24884
24885 * match.pd: Add patterns for vec_conds between 1 and 0.
24886
24887 2015-06-25 Richard Biener <rguenther@suse.de>
24888
24889 * tree-vect-stmts.c (vectorizable_conversion): Do not set
24890 STMT_VINFO_VEC_STMT for SLP.
24891 (vectorizable_store): Likewise.
24892 (vectorizable_load): Likewise.
24893 (vect_transform_stmt): Catch SLP vectorization clobbering
24894 STMT_VINFO_VEC_STMT.
24895
24896 2015-06-25 Richard Biener <rguenther@suse.de>
24897
24898 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
24899 dumping.
24900 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
24901 cleanup resulting dead code and parameters.
24902 (vect_transform_slp_perm_load): Adjust.
24903
24904 2015-06-25 Nick Clifton <nickc@redhat.com>
24905
24906 * config/bfin/bfin.c (bfin_expand_prologue): Set
24907 current_function_static_stack_size if flag_stack_usage_info is set.
24908 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
24909 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
24910 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
24911 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
24912
24913 2015-06-25 Tom de Vries <tom@codesourcery.com>
24914
24915 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
24916 comment that the generated IV is unsigned.
24917
24918 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24919
24920 PR target/29693
24921 * config/arm/arm.c (arm_dbx_register_number): Return
24922 DWARF_FRAME_REGISTERS by default.
24923
24924 2015-06-25 Tom de Vries <tom@codesourcery.com>
24925
24926 * dominance.c (calculate_dominance_info): Fix verify_dominators call
24927 argument. Call verify_dominator when reusing dominator info.
24928
24929 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
24930
24931 PR target/66563
24932 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
24933 an additional element of the unspec vector. Modify indices
24934 of operands.
24935 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
24936 * config/sh/sh.c (prepare_move_operands): Pass incremented
24937 const_int to gen_GOTaddr2picreg.
24938 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
24939
24940 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
24941
24942 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
24943 Condition on TARGET_FLOAT.
24944
24945 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
24946
24947 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
24948 and (no)crypto.
24949
24950 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
24951
24952 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
24953
24954 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
24955 aarch64_err_no_fpadvsimd.
24956
24957 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
24958 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
24959 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
24960 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
24961 Turn error into assert, test TARGET_FLOAT.
24962 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
24963 TARGET_FLOAT.
24964
24965 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
24966
24967 PR debug/66482
24968 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
24969
24970 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
24971
24972 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
24973
24974 2015-06-24 Renlin Li <renlin.li@arm.com>
24975
24976 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
24977 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
24978
24979 2015-06-24 Richard Biener <rguenther@suse.de>
24980
24981 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
24982 (main): Likewise.
24983 (lower_opt_convert): Support lowering of conditional view_convert.
24984 (parser::parse_operation): Likewise.
24985 (parser::parse_for): Likewise.
24986
24987 2015-06-24 Renlin Li <renlin.li@arm.com>
24988
24989 * varasm.c (emit_local): Use unsigned int for align variable.
24990
24991 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24992
24993 PR target/63408
24994 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
24995 for negative numbers.
24996
24997 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24998
24999 PR rtl-optimization/66306
25000 * reload.c (find_reloads): Swap the match_dup info for
25001 commutative operands.
25002
25003 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25004
25005 * config/s390/vx-builtins.md
25006 ("vec_scatter_element<mode>_<non_vec_int>")
25007 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
25008 attribute with bhfgq.
25009
25010 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25011
25012 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
25013
25014 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25015
25016 * config/s390/s390-builtin-types.def: Add flag to indicate the
25017 options under which the function type is needed.
25018 * config/s390/s390-builtins.def: Add flag to indicate the options
25019 under which the builtin is enabled.
25020 * config/s390/s390-builtins.h: Add flags parameter to macro
25021 definitions.
25022 (bflags_for_builtin): New function.
25023 (flags_for_builtin): Renamed to ...
25024 (opflags_for_builtin): ... this.
25025 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
25026 flags_for_builtin to bflags_for_builtin and
25027 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
25028 * config/s390/s390.c: Add initialization of bflags_builtin and
25029 opflags_builtin arrays.
25030 Remove code for flags_builtin.
25031 (s390_init_builtins): Only create builtin function types if one of
25032 their flags is active.
25033 Only create builtins if all of their flags are active.
25034 (s390_expand_builtin): Rename flags_for_builtin to
25035 opflags_for_builtin.
25036
25037 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25038
25039 * config/s390/vecintrin.h: Remove internal builtins.
25040
25041 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25042
25043 * config/s390/s390.c (s390_secondary_reload): Fix check for
25044 GENERAL_REGS register class.
25045
25046 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25047
25048 * config/s390/s390.c (s390_support_vector_misalignment): Call
25049 default implementation for !TARGET_VX.
25050
25051 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25052
25053 * config/s390/s390.c (s390_legitimate_constant_p): Add
25054 TARGET_VX check.
25055
25056 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25057
25058 * config/s390/s390.c (s390_vector_abi): New variable definition.
25059 (s390_check_type_for_vector_abi): New function.
25060 (TARGET_ASM_FILE_END): New macro definition.
25061 (s390_asm_file_end): New function.
25062 (s390_function_arg): Call s390_check_type_for_vector_abi.
25063 (s390_gimplify_va_arg): Likewise.
25064 * configure: Regenerate.
25065 * configure.ac: Check for .gnu_attribute Binutils feature.
25066
25067 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
25068
25069 PR target/65803
25070 * config/bfin/bfin.c (hwloop_optimize): Initialize
25071 JUMP_LABEL for newly created jump.
25072
25073 2015-06-23 Tristan Gingold <gingold@adacore.com>
25074
25075 * collect-utils.c (collect_wait): Unlink the response file here
25076 instead of...
25077 (do_wait): ...here.
25078 (utils_cleanup): ...and here.
25079
25080 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
25081
25082 * df-scan.c: Don't include target-def.h.
25083 * targhooks.c: Likewise.
25084 * config/arm/arm-c.c: Likewise.
25085 * config/i386/i386-c.c: Likewise.
25086 * config/nds32/nds32-cost.c: Likewise.
25087 * config/nds32/nds32-fp-as-gp.c: Likewise.
25088 * config/nds32/nds32-intrinsic.c: Likewise.
25089 * config/nds32/nds32-isr.c: Likewise.
25090 * config/nds32/nds32-md-auxiliary.c: Likewise.
25091 * config/nds32/nds32-memory-manipulation.c: Likewise.
25092 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25093 * config/nds32/nds32-predicates.c: Likewise.
25094
25095 2015-06-23 Richard Biener <rguenther@suse.de>
25096
25097 PR tree-optimization/66636
25098 * tree-vect-stmts.c (vectorizable_store): Properly compute the
25099 def type for further defs for strided stores.
25100
25101 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
25102
25103 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
25104 conditional selects.
25105 (setcc_int<mode>, setcc_float<mode>): Reformat.
25106
25107 2015-06-23 Marek Polacek <polacek@redhat.com>
25108
25109 * match.pd ((x + y) - (x | y) -> x & y,
25110 (x + y) - (x & y) -> x | y): New patterns.
25111
25112 2015-06-23 Ludovic Courtès <ludo@gnu.org>
25113
25114 PR 65711
25115 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
25116 '-dynamic-linker' within %{!shared: ...}.
25117
25118 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
25119
25120 PR target/66560
25121 * config/i386/predicates.md (addsub_vm_operator): New predicate.
25122 (addsub_vs_operator): Ditto.
25123 (addsub_vs_parallel): Ditto.
25124 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
25125 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
25126 Put minus RTX before plus and adjust vec_merge selector.
25127 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
25128 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
25129 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
25130 (addsub vec_merge splitters): New combiner splitters.
25131 (addsub vec_select/vec_concat splitters): Ditto.
25132
25133 2015-06-23 Bin Cheng <bin.cheng@arm.com>
25134
25135 PR tree-optimization/66449
25136 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
25137 POINTER_PLUS_EXPR for pointers.
25138
25139 2015-06-23 Alan Modra <amodra@gmail.com>
25140
25141 * rtlanal.c (commutative_operand_precedence): Correct comments.
25142 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
25143 declaration. Return an int. Distinguish REG,REG return from
25144 others.
25145 (struct simplify_plus_minus_op_data): Make local to function.
25146 (simplify_plus_minus): Don't set canonicalized if merely sorting
25147 registers. Avoid packing ops if nothing changes. White space fixes.
25148
25149 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
25150
25151 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
25152 -fdump-ada-spec is passed but not if -fsyntax-only is.
25153
25154 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
25155
25156 PR bootstrap/63740
25157 * lra-lives.c (process_bb_lives): Check insn copying the same
25158 reload pseudo and don't create a copy for it.
25159
25160 2015-06-22 Tom de Vries <tom@codesourcery.com>
25161
25162 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
25163 for cond_stmt.
25164
25165 2015-06-22 Tom de Vries <tom@codesourcery.com>
25166
25167 * builtins.def (DEF_GOMP_BUILTIN): Test
25168 'flag_tree_parallelize_loops > 1' instead of
25169 'flag_tree_parallelize_loops'. Test flag_cilkplus.
25170
25171 2015-06-22 Tom de Vries <tom@codesourcery.com>
25172
25173 * dominance.c (calculate_dominance_info): Verify dominators if
25174 early-out.
25175
25176 2015-06-22 Marek Polacek <polacek@redhat.com>
25177
25178 * match.pd ((x ^ y) ^ (x | y) -> x & y,
25179 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
25180 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
25181 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
25182
25183 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
25184
25185 PR target/65871
25186 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
25187 cost of embedded comparison.
25188
25189 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25190
25191 PR target/65914
25192 * config/rs6000/predicates.md (altivec_register_operand): Permit
25193 virtual stack registers.
25194 (vsx_register_operand): Likewise.
25195 (vfloat_operand): Likewise.
25196 (vint_operand): Likewise.
25197 (vlogical_operand): Likewise.
25198
25199 2015-06-22 Richard Biener <rguenther@suse.de>
25200
25201 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
25202 and single_scalar_iteration_cost members.
25203 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
25204 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
25205 (vect_get_single_scalar_iteration_cost): Remove.
25206 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
25207 Use LOOP_VINFO_SCALAR_ITERATION_COST.
25208 * tree-vect-loop.c (destroy_loop_vec_info): Free
25209 scalar_cost_vec.
25210 (vect_get_single_scalar_iteration_cost): Compute result into
25211 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
25212 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
25213 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
25214 (vect_estimate_min_profitable_iters): Use them.
25215
25216 2015-06-22 Christian Bruel <christian.bruel@st.com>
25217
25218 PR target/52144
25219 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
25220 (TARGET_INSERT_ATTRIBUTES): Define.
25221 (thumb_flipper): New var.
25222 * config/arm/arm.opt (-mflip-thumb): New switch.
25223
25224 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
25225 Martin Liska <mliska@suse.cz>
25226
25227 PR ipa/65908
25228 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
25229 construction of arg_types.
25230 (sem_function::sem_function): Likewise.
25231 (sem_function::~sem_function): Remove destruction of arg_types.
25232 (sem_function::compatible_parm_types_p): New function.
25233 (sem_function::equals_wpa): Reorg matching of return values
25234 and parameter types.
25235 (sem_function::equals_private): Reorg mathcing of argument types.
25236 (sem_function::parse_tree_args): Remove.
25237 * ipa-icf.h (init_wpa): Do not call it.
25238 (parse_tree_args): Remove.
25239 (compatible_parm_types_p): Declare.
25240 (result_type): Remove.
25241 (arg_types): Remove.
25242
25243 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
25244
25245 PR ipa/66351
25246 * ipa-polymorphic-call.c
25247 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
25248 initializing alias oracle; fix formating; set base_alias_set if it
25249 is known.
25250
25251 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
25252
25253 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
25254 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
25255 (find_inc): Likewise.
25256 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
25257 swapping.
25258 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
25259 * df-scan.c (df_swap_refs): Remove.
25260 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
25261 * dominance.c (link_roots): Use std::swap instead of manually swapping.
25262 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
25263 * fold-const.c (fold_relational_const): Likewise.
25264 * genattrtab.c (simplify_test_exp): Likewise.
25265 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
25266 gimple_simplify): Likewise.
25267 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
25268 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
25269 * ipa-devirt.c (add_type_duplicate): Likewise.
25270 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
25271 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
25272 * lra.c (lra_create_copy): Likewise.
25273 * lto-streamer-out.c (DFS::DFS): Likewise.
25274 * modulo-sched.c (get_sched_window): Likewise.
25275 * omega.c (omega_pretty_print_problem): Likewise.
25276 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
25277 * reload1.c (reloads_unique_chain_p): Likewise.
25278 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
25279 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
25280 use std::swap.
25281 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
25282 manually swapping.
25283 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
25284 predicate_mem_writes): Likewise.
25285 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
25286 * tree-predcom.c (combine_chains): Likewise.
25287 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
25288 refs_may_alias_p_1): Likewise.
25289 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
25290 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
25291 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
25292 number_of_iterations_cond): Likewise.
25293 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
25294 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
25295 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
25296 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
25297 * tree-vrp.c (extract_range_from_binary_expr_1,
25298 extract_range_from_unary_expr_1): Likewise.
25299
25300 2015-06-20 Marek Polacek <polacek@redhat.com>
25301
25302 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
25303
25304 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
25305
25306 PR target/66591
25307 * config/sh/sh.c (prepare_move_operands): Replace subreg
25308 index term with R0 for base and index addressing.
25309
25310 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
25311
25312 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
25313 op1 is an fp zero.
25314 (movsf_aarch64): Change condition from register_operand to
25315 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
25316 load1. Change type for alternative 7 to store1.
25317 (movdf_aarch64): Likewise.
25318
25319 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
25320
25321 * config/vax/vax.md: Adjust sign/zero extend patterns to
25322 handle SUBREGs in operands[1].
25323
25324 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25325
25326 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
25327 of manually swapping.
25328 (expand_vec_perm_interleave2): Likewise.
25329
25330 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
25331
25332 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
25333 reuse bounds created for abnormal ssa names.
25334
25335 2015-06-19 Jakub Jelinek <jakub@redhat.com>
25336
25337 * config/nvptx/nvptx.md (allocate_stack): Rename to...
25338 (allocate_stack_<mode>): ... this, and add :P on both
25339 match_operand and unspec.
25340 (allocate_stack): New expander.
25341
25342 2015-06-19 Christian Bruel <christian.bruel@st.com>
25343
25344 PR target/66541
25345 PR target/52144
25346 * config/arm/arm.c (arm_set_current_function): Handle
25347 explicit default options.
25348
25349 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
25350
25351 * config/i386/i386.md (*movsicc_noc_zext): New insn.
25352 (zero-extended cmove with mem peephole2): New pattern.
25353 (cmove with mem peephole2): Merge patterns.
25354
25355 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
25356
25357 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
25358
25359 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
25360
25361 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
25362 * config/mips/mips.md (*madd4<mode>): Ditto.
25363 (*nmadd3<mode>) Ditto.
25364 (*nmadd4<mode>_fastmath): Ditto.
25365 (*nmadd3<mode>_fastmath): Ditto.
25366 (*nmsub4<mode>): Ditto.
25367 (*nmsub3<mode>): Ditto.
25368 (*nmsub4<mode>_fastmath): Ditto.
25369 (*nmsub3<mode>_fastmath): Ditto.
25370
25371 2015-06-18 Michael Matz <matz@suse.de>
25372
25373 PR middle-end/66253
25374 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
25375 grouped strided stores.
25376 (vectorizable_load): Don't use the DR from first_stmt in
25377 the non-SLP grouped strided case.
25378
25379 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
25380
25381 PR target/66569
25382 * function.c (assign_bounds): Add arguments assign_regs,
25383 assign_special, assign_bt.
25384 (assign_parms): For vararg functions handle bounds in BT
25385 and special slots after incoming vararg bounds.
25386
25387 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
25388
25389 PR middle-end/66568
25390 * cfgexpand.c (expand_return): Handle missing bounds.
25391 (expand_gimple_stmt_1): Likewise.
25392 * tree-chkp.c (chkp_expand_zero_bounds): New.
25393 * tree-chkp.h (chkp_expand_zero_bounds): New.
25394
25395 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
25396
25397 PR middle-end/66567
25398 * ipa-chkp.c (chkp_maybe_create_clone): Require
25399 functions to be instrumentable.
25400 * tree-chkp.c (chkp_replace_function_pointer): Use
25401 chkp_instrumentable_p instead of attribute check.
25402
25403 2015-06-18 Richard Biener <rguenther@suse.de>
25404
25405 PR tree-optimization/66510
25406 * tree-vect-stmts.c (vectorizable_load): Properly compute the
25407 number of vector loads for SLP permuted loads.
25408 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
25409 check the stride for loop vectorization.
25410 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
25411 vectorization factor.
25412 (vect_analyze_group_access): If the group size is not a power
25413 of two require a epilogue loop.
25414 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
25415 compute and optimizing and alias test pruning after final
25416 vectorization factor computation.
25417 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
25418 vector alignment.
25419 (vect_transform_slp_perm_load): Properly compute the original
25420 number of vector load stmts.
25421
25422 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
25423
25424 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
25425 "unlikely character , in @var" warning.
25426
25427 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
25428
25429 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
25430 (ix86_function_arg_advance): Ditto.
25431 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
25432
25433 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
25434
25435 * function.h (struct rtl_data): Remove struct and accessor macros.
25436 * emit-rtl.h (struct rtl_data): Relocate to here.
25437 * Makefile.in (GTFILES): Add emit-rtl.h.
25438 * df-core.c: Include emit-rtl.h.
25439 * genattrtab.c: Likewise.
25440 * genconditions.c: Likewise.
25441 * genpreds.c: Likewise.
25442 * genrecog.c: Likewise.
25443 * regcprop.c: Likewise.
25444 * resource.c: Likewise.
25445 * sched-rgn.c: Likewise.
25446 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
25447 * config/i386/winnt.c: Likewise.
25448
25449 2015-06-17 Jakub Jelinek <jakub@redhat.com>
25450
25451 PR middle-end/66429
25452 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
25453 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
25454 and has_force_vectorize_loops flags from cfun into
25455 child_cfun.
25456 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
25457 if simduid is non-NULL.
25458 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
25459 * passes.def (pass_simduid_cleanup): Add new pass after loop
25460 passes.
25461 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
25462 indirection from htab argument's type.
25463 (shrink_simd_arrays): New function.
25464 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
25465 Don't call adjust_simduid_builtins if there are no loops.
25466 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
25467 (pass_simduid_cleanup::execute): New method.
25468 (make_pass_simduid_cleanup): New function.
25469
25470 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
25471
25472 * tree-core.h (tree_target_option): Make opts field a pointer to a
25473 cl_target_option instead of an instance of the struct.
25474 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
25475 the structure.
25476 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
25477 TARGET_OPTION_NODE.
25478 (copy_node_stat): Allocate and copy struct cl_target_option.
25479
25480 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
25481
25482 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
25483 Remove conditional exposure of prototypes.
25484 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
25485 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
25486 definitions in tree.h with functions.
25487 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
25488 anon_aggrname_p.
25489 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
25490
25491 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
25492
25493 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
25494 (*cmp<mode>_signed): ... this.
25495 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
25496 (*cmp<mode>_unsigned): ... this. Remove %b.
25497
25498 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
25499
25500 * coretypes.h: Include input.h and as-a.h.
25501 * rtl.h: Include input.h and as-a.h for generator files.
25502 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
25503 * vec.c: Don't include diagnostic-core.h.
25504 * alias.c: Do not include input.h, line-map.h or is-a.h.
25505 * asan.c: Likewise.
25506 * attribs.c: Likewise.
25507 * auto-inc-dec.c: Likewise.
25508 * auto-profile.c: Likewise.
25509 * bb-reorder.c: Likewise.
25510 * bt-load.c: Likewise.
25511 * builtins.c: Likewise.
25512 * caller-save.c: Likewise.
25513 * calls.c: Likewise.
25514 * ccmp.c: Likewise.
25515 * cfg.c: Likewise.
25516 * cfganal.c: Likewise.
25517 * cfgbuild.c: Likewise.
25518 * cfgcleanup.c: Likewise.
25519 * cfgexpand.c: Likewise.
25520 * cfghooks.c: Likewise.
25521 * cfgloop.c: Likewise.
25522 * cfgloop.h: Likewise.
25523 * cfgloopanal.c: Likewise.
25524 * cfgloopmanip.c: Likewise.
25525 * cfgrtl.c: Likewise.
25526 * cgraph.c: Likewise.
25527 * cgraphbuild.c: Likewise.
25528 * cgraphclones.c: Likewise.
25529 * cgraphunit.c: Likewise.
25530 * cilk-common.c: Likewise.
25531 * combine-stack-adj.c: Likewise.
25532 * combine.c: Likewise.
25533 * compare-elim.c: Likewise.
25534 * convert.c: Likewise.
25535 * coverage.c: Likewise.
25536 * cppbuiltin.c: Likewise.
25537 * cprop.c: Likewise.
25538 * cse.c: Likewise.
25539 * cselib.c: Likewise.
25540 * data-streamer-in.c: Likewise.
25541 * data-streamer-out.c: Likewise.
25542 * data-streamer.c: Likewise.
25543 * dbxout.c: Likewise.
25544 * dce.c: Likewise.
25545 * ddg.c: Likewise.
25546 * debug.c: Likewise.
25547 * df-core.c: Likewise.
25548 * df-problems.c: Likewise.
25549 * df-scan.c: Likewise.
25550 * df.h: Likewise.
25551 * dfp.c: Likewise.
25552 * diagnostic-core.h: Likewise.
25553 * diagnostic.c: Likewise.
25554 * dojump.c: Likewise.
25555 * dominance.c: Likewise.
25556 * domwalk.c: Likewise.
25557 * double-int.c: Likewise.
25558 * dse.c: Likewise.
25559 * dumpfile.c: Likewise.
25560 * dumpfile.h: Likewise.
25561 * dwarf2asm.c: Likewise.
25562 * dwarf2cfi.c: Likewise.
25563 * dwarf2out.c: Likewise.
25564 * emit-rtl.c: Likewise.
25565 * et-forest.c: Likewise.
25566 * except.c: Likewise.
25567 * explow.c: Likewise.
25568 * expmed.c: Likewise.
25569 * expr.c: Likewise.
25570 * final.c: Likewise.
25571 * fixed-value.c: Likewise.
25572 * fold-const.c: Likewise.
25573 * function.c: Likewise.
25574 * fwprop.c: Likewise.
25575 * gcc-plugin.h: Likewise.
25576 * gcse.c: Likewise.
25577 * generic-match-head.c: Likewise.
25578 * ggc-page.c: Likewise.
25579 * gimple-builder.c: Likewise.
25580 * gimple-expr.c: Likewise.
25581 * gimple-fold.c: Likewise.
25582 * gimple-iterator.c: Likewise.
25583 * gimple-low.c: Likewise.
25584 * gimple-match-head.c: Likewise.
25585 * gimple-pretty-print.c: Likewise.
25586 * gimple-ssa-isolate-paths.c: Likewise.
25587 * gimple-ssa-strength-reduction.c: Likewise.
25588 * gimple-streamer-in.c: Likewise.
25589 * gimple-streamer-out.c: Likewise.
25590 * gimple-streamer.h: Likewise.
25591 * gimple-walk.c: Likewise.
25592 * gimple.c: Likewise.
25593 * gimplify-me.c: Likewise.
25594 * gimplify.c: Likewise.
25595 * godump.c: Likewise.
25596 * graph.c: Likewise.
25597 * graphite-blocking.c: Likewise.
25598 * graphite-dependences.c: Likewise.
25599 * graphite-interchange.c: Likewise.
25600 * graphite-isl-ast-to-gimple.c: Likewise.
25601 * graphite-optimize-isl.c: Likewise.
25602 * graphite-poly.c: Likewise.
25603 * graphite-scop-detection.c: Likewise.
25604 * graphite-sese-to-poly.c: Likewise.
25605 * graphite.c: Likewise.
25606 * haifa-sched.c: Likewise.
25607 * hw-doloop.c: Likewise.
25608 * ifcvt.c: Likewise.
25609 * init-regs.c: Likewise.
25610 * input.c: Likewise.
25611 * internal-fn.c: Likewise.
25612 * ipa-chkp.c: Likewise.
25613 * ipa-comdats.c: Likewise.
25614 * ipa-cp.c: Likewise.
25615 * ipa-devirt.c: Likewise.
25616 * ipa-icf-gimple.c: Likewise.
25617 * ipa-icf.c: Likewise.
25618 * ipa-inline-analysis.c: Likewise.
25619 * ipa-inline-transform.c: Likewise.
25620 * ipa-inline.c: Likewise.
25621 * ipa-polymorphic-call.c: Likewise.
25622 * ipa-profile.c: Likewise.
25623 * ipa-prop.c: Likewise.
25624 * ipa-pure-const.c: Likewise.
25625 * ipa-ref.c: Likewise.
25626 * ipa-reference.c: Likewise.
25627 * ipa-split.c: Likewise.
25628 * ipa-utils.c: Likewise.
25629 * ipa-visibility.c: Likewise.
25630 * ipa.c: Likewise.
25631 * ira-build.c: Likewise.
25632 * ira-color.c: Likewise.
25633 * ira-conflicts.c: Likewise.
25634 * ira-costs.c: Likewise.
25635 * ira-emit.c: Likewise.
25636 * ira-lives.c: Likewise.
25637 * ira.c: Likewise.
25638 * jump.c: Likewise.
25639 * langhooks.c: Likewise.
25640 * lcm.c: Likewise.
25641 * loop-doloop.c: Likewise.
25642 * loop-init.c: Likewise.
25643 * loop-invariant.c: Likewise.
25644 * loop-iv.c: Likewise.
25645 * loop-unroll.c: Likewise.
25646 * lower-subreg.c: Likewise.
25647 * lra-assigns.c: Likewise.
25648 * lra-coalesce.c: Likewise.
25649 * lra-constraints.c: Likewise.
25650 * lra-eliminations.c: Likewise.
25651 * lra-lives.c: Likewise.
25652 * lra-remat.c: Likewise.
25653 * lra-spills.c: Likewise.
25654 * lra.c: Likewise.
25655 * lto-cgraph.c: Likewise.
25656 * lto-compress.c: Likewise.
25657 * lto-opts.c: Likewise.
25658 * lto-section-in.c: Likewise.
25659 * lto-section-out.c: Likewise.
25660 * lto-streamer-in.c: Likewise.
25661 * lto-streamer-out.c: Likewise.
25662 * lto-streamer.c: Likewise.
25663 * mcf.c: Likewise.
25664 * mode-switching.c: Likewise.
25665 * modulo-sched.c: Likewise.
25666 * omega.c: Likewise.
25667 * omp-low.c: Likewise.
25668 * optabs.c: Likewise.
25669 * opts-global.c: Likewise.
25670 * opts.h: Likewise.
25671 * passes.c: Likewise.
25672 * plugin.c: Likewise.
25673 * postreload-gcse.c: Likewise.
25674 * postreload.c: Likewise.
25675 * predict.c: Likewise.
25676 * pretty-print.h: Likewise.
25677 * print-rtl.c: Likewise.
25678 * print-tree.c: Likewise.
25679 * profile.c: Likewise.
25680 * real.c: Likewise.
25681 * realmpfr.c: Likewise.
25682 * recog.c: Likewise.
25683 * ree.c: Likewise.
25684 * reg-stack.c: Likewise.
25685 * regcprop.c: Likewise.
25686 * reginfo.c: Likewise.
25687 * regrename.c: Likewise.
25688 * regstat.c: Likewise.
25689 * reload.c: Likewise.
25690 * reload1.c: Likewise.
25691 * reorg.c: Likewise.
25692 * resource.c: Likewise.
25693 * rtl-chkp.c: Likewise.
25694 * rtl-error.c: Likewise.
25695 * rtlanal.c: Likewise.
25696 * rtlhooks.c: Likewise.
25697 * sanopt.c: Likewise.
25698 * sched-deps.c: Likewise.
25699 * sched-ebb.c: Likewise.
25700 * sched-rgn.c: Likewise.
25701 * sched-vis.c: Likewise.
25702 * sdbout.c: Likewise.
25703 * sel-sched-dump.c: Likewise.
25704 * sel-sched-ir.c: Likewise.
25705 * sel-sched.c: Likewise.
25706 * sese.c: Likewise.
25707 * shrink-wrap.c: Likewise.
25708 * simplify-rtx.c: Likewise.
25709 * stack-ptr-mod.c: Likewise.
25710 * statistics.c: Likewise.
25711 * stmt.c: Likewise.
25712 * stor-layout.c: Likewise.
25713 * store-motion.c: Likewise.
25714 * streamer-hooks.c: Likewise.
25715 * stringpool.c: Likewise.
25716 * symtab.c: Likewise.
25717 * target-globals.c: Likewise.
25718 * targhooks.c: Likewise.
25719 * toplev.c: Likewise.
25720 * tracer.c: Likewise.
25721 * trans-mem.c: Likewise.
25722 * tree-affine.c: Likewise.
25723 * tree-browser.c: Likewise.
25724 * tree-call-cdce.c: Likewise.
25725 * tree-cfg.c: Likewise.
25726 * tree-cfgcleanup.c: Likewise.
25727 * tree-chkp-opt.c: Likewise.
25728 * tree-chkp.c: Likewise.
25729 * tree-chrec.c: Likewise.
25730 * tree-complex.c: Likewise.
25731 * tree-data-ref.c: Likewise.
25732 * tree-dfa.c: Likewise.
25733 * tree-diagnostic.c: Likewise.
25734 * tree-dump.c: Likewise.
25735 * tree-eh.c: Likewise.
25736 * tree-emutls.c: Likewise.
25737 * tree-if-conv.c: Likewise.
25738 * tree-inline.c: Likewise.
25739 * tree-into-ssa.c: Likewise.
25740 * tree-iterator.c: Likewise.
25741 * tree-loop-distribution.c: Likewise.
25742 * tree-nested.c: Likewise.
25743 * tree-nrv.c: Likewise.
25744 * tree-object-size.c: Likewise.
25745 * tree-outof-ssa.c: Likewise.
25746 * tree-parloops.c: Likewise.
25747 * tree-phinodes.c: Likewise.
25748 * tree-predcom.c: Likewise.
25749 * tree-pretty-print.c: Likewise.
25750 * tree-profile.c: Likewise.
25751 * tree-scalar-evolution.c: Likewise.
25752 * tree-sra.c: Likewise.
25753 * tree-ssa-address.c: Likewise.
25754 * tree-ssa-alias.c: Likewise.
25755 * tree-ssa-ccp.c: Likewise.
25756 * tree-ssa-coalesce.c: Likewise.
25757 * tree-ssa-copy.c: Likewise.
25758 * tree-ssa-copyrename.c: Likewise.
25759 * tree-ssa-dce.c: Likewise.
25760 * tree-ssa-dom.c: Likewise.
25761 * tree-ssa-dse.c: Likewise.
25762 * tree-ssa-forwprop.c: Likewise.
25763 * tree-ssa-ifcombine.c: Likewise.
25764 * tree-ssa-live.c: Likewise.
25765 * tree-ssa-loop-ch.c: Likewise.
25766 * tree-ssa-loop-im.c: Likewise.
25767 * tree-ssa-loop-ivcanon.c: Likewise.
25768 * tree-ssa-loop-ivopts.c: Likewise.
25769 * tree-ssa-loop-manip.c: Likewise.
25770 * tree-ssa-loop-niter.c: Likewise.
25771 * tree-ssa-loop-prefetch.c: Likewise.
25772 * tree-ssa-loop-unswitch.c: Likewise.
25773 * tree-ssa-loop.c: Likewise.
25774 * tree-ssa-math-opts.c: Likewise.
25775 * tree-ssa-operands.c: Likewise.
25776 * tree-ssa-phiopt.c: Likewise.
25777 * tree-ssa-phiprop.c: Likewise.
25778 * tree-ssa-pre.c: Likewise.
25779 * tree-ssa-propagate.c: Likewise.
25780 * tree-ssa-reassoc.c: Likewise.
25781 * tree-ssa-sccvn.c: Likewise.
25782 * tree-ssa-scopedtables.c: Likewise.
25783 * tree-ssa-sink.c: Likewise.
25784 * tree-ssa-strlen.c: Likewise.
25785 * tree-ssa-structalias.c: Likewise.
25786 * tree-ssa-tail-merge.c: Likewise.
25787 * tree-ssa-ter.c: Likewise.
25788 * tree-ssa-threadedge.c: Likewise.
25789 * tree-ssa-threadupdate.c: Likewise.
25790 * tree-ssa-uncprop.c: Likewise.
25791 * tree-ssa-uninit.c: Likewise.
25792 * tree-ssa.c: Likewise.
25793 * tree-ssanames.c: Likewise.
25794 * tree-stdarg.c: Likewise.
25795 * tree-streamer-in.c: Likewise.
25796 * tree-streamer-out.c: Likewise.
25797 * tree-streamer.c: Likewise.
25798 * tree-switch-conversion.c: Likewise.
25799 * tree-tailcall.c: Likewise.
25800 * tree-vect-data-refs.c: Likewise.
25801 * tree-vect-generic.c: Likewise.
25802 * tree-vect-loop-manip.c: Likewise.
25803 * tree-vect-loop.c: Likewise.
25804 * tree-vect-patterns.c: Likewise.
25805 * tree-vect-slp.c: Likewise.
25806 * tree-vect-stmts.c: Likewise.
25807 * tree-vectorizer.c: Likewise.
25808 * tree-vrp.c: Likewise.
25809 * tree.c: Likewise.
25810 * tsan.c: Likewise.
25811 * ubsan.c: Likewise.
25812 * valtrack.c: Likewise.
25813 * value-prof.c: Likewise.
25814 * var-tracking.c: Likewise.
25815 * varasm.c: Likewise.
25816 * varpool.c: Likewise.
25817 * vmsdbgout.c: Likewise.
25818 * vtable-verify.c: Likewise.
25819 * web.c: Likewise.
25820 * wide-int.cc: Likewise.
25821 * xcoffout.c: Likewise.
25822 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
25823 * common/common-targhooks.c: Likewise.
25824 * config/aarch64/aarch64-builtins.c: Likewise.
25825 * config/aarch64/aarch64.c: Likewise.
25826 * config/alpha/alpha.c: Likewise.
25827 * config/arc/arc.c: Likewise.
25828 * config/arm/aarch-common.c: Likewise.
25829 * config/arm/arm-builtins.c: Likewise.
25830 * config/arm/arm-c.c: Likewise.
25831 * config/arm/arm.c: Likewise.
25832 * config/avr/avr-c.c: Likewise.
25833 * config/avr/avr-log.c: Likewise.
25834 * config/avr/avr.c: Likewise.
25835 * config/bfin/bfin.c: Likewise.
25836 * config/c6x/c6x.c: Likewise.
25837 * config/cr16/cr16.c: Likewise.
25838 * config/cris/cris.c: Likewise.
25839 * config/darwin-c.c: Likewise.
25840 * config/darwin.c: Likewise.
25841 * config/default-c.c: Likewise.
25842 * config/epiphany/epiphany.c: Likewise.
25843 * config/epiphany/mode-switch-use.c: Likewise.
25844 * config/epiphany/resolve-sw-modes.c: Likewise.
25845 * config/fr30/fr30.c: Likewise.
25846 * config/frv/frv.c: Likewise.
25847 * config/ft32/ft32.c: Likewise.
25848 * config/glibc-c.c: Likewise.
25849 * config/h8300/h8300.c: Likewise.
25850 * config/i386/i386-c.c: Likewise.
25851 * config/i386/i386.c: Likewise.
25852 * config/i386/msformat-c.c: Likewise.
25853 * config/i386/winnt-cxx.c: Likewise.
25854 * config/i386/winnt-stubs.c: Likewise.
25855 * config/i386/winnt.c: Likewise.
25856 * config/ia64/ia64-c.c: Likewise.
25857 * config/ia64/ia64.c: Likewise.
25858 * config/iq2000/iq2000.c: Likewise.
25859 * config/lm32/lm32.c: Likewise.
25860 * config/m32c/m32c-pragma.c: Likewise.
25861 * config/m32c/m32c.c: Likewise.
25862 * config/m32r/m32r.c: Likewise.
25863 * config/m68k/m68k.c: Likewise.
25864 * config/mcore/mcore.c: Likewise.
25865 * config/mep/mep-pragma.c: Likewise.
25866 * config/mep/mep.c: Likewise.
25867 * config/microblaze/microblaze-c.c: Likewise.
25868 * config/microblaze/microblaze.c: Likewise.
25869 * config/mips/mips.c: Likewise.
25870 * config/mmix/mmix.c: Likewise.
25871 * config/mn10300/mn10300.c: Likewise.
25872 * config/moxie/moxie.c: Likewise.
25873 * config/msp430/msp430-c.c: Likewise.
25874 * config/msp430/msp430.c: Likewise.
25875 * config/nds32/nds32-cost.c: Likewise.
25876 * config/nds32/nds32-fp-as-gp.c: Likewise.
25877 * config/nds32/nds32-intrinsic.c: Likewise.
25878 * config/nds32/nds32-isr.c: Likewise.
25879 * config/nds32/nds32-md-auxiliary.c: Likewise.
25880 * config/nds32/nds32-memory-manipulation.c: Likewise.
25881 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25882 * config/nds32/nds32-predicates.c: Likewise.
25883 * config/nds32/nds32.c: Likewise.
25884 * config/nios2/nios2.c: Likewise.
25885 * config/nvptx/nvptx.c: Likewise.
25886 * config/pa/pa.c: Likewise.
25887 * config/pdp11/pdp11.c: Likewise.
25888 * config/rl78/rl78-c.c: Likewise.
25889 * config/rl78/rl78.c: Likewise.
25890 * config/rs6000/rs6000-c.c: Likewise.
25891 * config/rs6000/rs6000.c: Likewise.
25892 * config/rx/rx.c: Likewise.
25893 * config/s390/s390-c.c: Likewise.
25894 * config/s390/s390.c: Likewise.
25895 * config/sh/sh-c.c: Likewise.
25896 * config/sh/sh-mem.cc: Likewise.
25897 * config/sh/sh.c: Likewise.
25898 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
25899 * config/sh/sh_treg_combine.cc: Likewise.
25900 * config/sol2-c.c: Likewise.
25901 * config/sol2-cxx.c: Likewise.
25902 * config/sol2-stubs.c: Likewise.
25903 * config/sol2.c: Likewise.
25904 * config/sparc/sparc-c.c: Likewise.
25905 * config/sparc/sparc.c: Likewise.
25906 * config/spu/spu-c.c: Likewise.
25907 * config/spu/spu.c: Likewise.
25908 * config/stormy16/stormy16.c: Likewise.
25909 * config/tilegx/mul-tables.c: Likewise.
25910 * config/tilegx/tilegx-c.c: Likewise.
25911 * config/tilegx/tilegx.c: Likewise.
25912 * config/tilepro/mul-tables.c: Likewise.
25913 * config/tilepro/tilepro-c.c: Likewise.
25914 * config/tilepro/tilepro.c: Likewise.
25915 * config/v850/v850-c.c: Likewise.
25916 * config/v850/v850.c: Likewise.
25917 * config/vax/vax.c: Likewise.
25918 * config/visium/visium.c: Likewise.
25919 * config/vms/vms-c.c: Likewise.
25920 * config/vms/vms.c: Likewise.
25921 * config/vxworks.c: Likewise.
25922 * config/winnt-c.c: Likewise.
25923 * config/xtensa/xtensa.c: Likewise.
25924
25925 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
25926
25927 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
25928 function.
25929 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
25930
25931 2015-06-17 Richard Biener <rguenther@suse.de>
25932
25933 PR tree-optimization/66251
25934 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
25935 stmts for SLP strided stores.
25936
25937 Revert
25938 2015-05-22 Richard Biener <rguenther@suse.de>
25939
25940 PR tree-optimization/66251
25941 * tree-vect-stmts.c (vectorizable_conversion): Properly
25942 set STMT_VINFO_VEC_STMT even for the SLP case.
25943
25944 2015-05-26 Michael Matz <matz@suse.de>
25945
25946 PR middle-end/66251
25947 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
25948 STMT_VINFO_VEC_STMT, also with SLP.
25949
25950 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
25951
25952 PR target/56766
25953 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
25954 (*avx_addsubv4df3_1s): Ditto.
25955 (*sse3_addsubv2df3_1): Ditto.
25956 (*sse3_addsubv2df3_1s): Ditto.
25957 (*avx_addsubv8sf3_1): Ditto.
25958 (*avx_addsubv8sf3_1s): Ditto.
25959 (*sse3_addsubv4sf3_1): Ditto.
25960 (*sse3_addsubv4sf3_1s): Ditto.
25961
25962 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
25963
25964 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
25965 (SYSROOT_SUFFIX_SPEC): Update.
25966 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
25967 (STARTFILE_PREFIX_SPEC): Update.
25968 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
25969 (MULTILIB_REQUIRED): New.
25970 (MULTILIB_OSDIRNAMES): New.
25971 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
25972 (MULTILIB_REQUIRED): New.
25973 (MULTILIB_OSDIRNAMES): New.
25974
25975 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
25976
25977 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
25978 * config/aarch64/aarch64-options-extensions.def: Update "fP",
25979 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
25980 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
25981 (AARCH64_FL_PAN): New.
25982 (AARCH64_FL_LOR): New.
25983 (AARCH64_FL_RDMA): New.
25984 (AARCH64_FL_FOR_ARCH8_1): New.
25985 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
25986 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
25987
25988 2015-06-16 Martin Liska <mliska@suse.cz>
25989
25990 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
25991 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
25992 guard.
25993
25994 2015-06-16 Richard Biener <rguenther@suse.de>
25995
25996 * tree-vect-stmts.c (vectorizable_store): Adjust.
25997 (vectorizable_load): Likewise.
25998 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
25999 Simplify.
26000 (vect_create_data_ref_ptr): Likewise.
26001 (bump_vector_ptr): Adjust.
26002
26003 2015-06-16 Richard Biener <rguenther@suse.de>
26004
26005 * tree-vect-stmts.c (vectorizable_load): Properly start loads
26006 with the first element if this is grouped loads.
26007
26008 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
26009
26010 * config/arm/arm-protos.h (struct tune_params): Rename
26011 log_op_non_sc to log_op_non_short_circuit, and rename enum
26012 values to expand SC to SHORT_CIRCUIT.
26013 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
26014 to LOG_OP_NON_SHORT_CIRCUIT.
26015 (arm_fastmul_tune):Likewise
26016 (arm_strongarm_tune): Likewise.
26017 (arm_xscale_tune): Likewise.
26018 (arm_9e_tune): Likewise.
26019 (arm_marvell_pj4_tune): Likewise.
26020 (arm_v6t2_tune): Likewise.
26021 (arm_cortex_tune): Likewise.
26022 (arm_cortex_a8_tune): Likewise.
26023 (arm_cortex_a7_tune): Likewise.
26024 (arm_cortex_a15_tune): Likewise.
26025 (arm_cortex_a53_tune): Likewise.
26026 (arm_cortex_a57_tune): Likewise.
26027 (arm_xgene1_tune): Likewise.
26028 (arm_cortex_a5_tune): Likewise.
26029 (arm_cortex_a9_tune): Likewise.
26030 (arm_cortex_a12_tune): Likewise.
26031 (arm_v7m_tune): Likewise.
26032 (arm_cortex_m7_tune): Likewise.
26033 (arm_v6m_tune): Likewise.
26034 (arm_fa726te_tune): Likewise.
26035
26036 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
26037
26038 * altivec.md: Delete UNSPEC_VMLADDUHM.
26039 (mulv4si3_p8): New pattern.
26040 (mulv4si3): Use it for POWER8.
26041 (mulv8hi3): Use vmladduhm with zero addend.
26042 (altivec_vmladduhm): Descriptive RTL.
26043
26044 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
26045
26046 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
26047 to use neon_move instead of mov_imm.
26048 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
26049 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
26050
26051 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
26052 aarch64_float_const_zero_rtx_p check before TFmode check.
26053 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
26054 an fp zero.
26055 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
26056 code and attributes to match. Change condition from register_operand
26057 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
26058 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
26059 to store2.
26060
26061 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
26062
26063 PR debug/66535
26064 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
26065 there is no parent.
26066
26067 2015-06-14 Shiva Chen <shiva0217@gmail.com>
26068
26069 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
26070 HOST_WIDE_INT parameter.
26071
26072 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
26073
26074 PR ipa/66181
26075 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
26076 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
26077 TYPE_NO_FORCE_BLK.
26078 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
26079
26080 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
26081
26082 * rtl.h (classify_insn): Declare.
26083 * emit-rtl.c (classify_insn): Move to...
26084 * rtl.c: ...here and add generator support.
26085 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
26086 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
26087 * genemit.c (gen_emit_seq): New function.
26088 (gen_expand, gen_split): Use it.
26089
26090 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
26091
26092 * tree.c (make_vector_stat): Fix comment to state that the
26093 function returns a VECTOR_CST.
26094
26095 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
26096
26097 * gensupport.h (add_implicit_parallel): Declare.
26098 * genrecog.c (add_implicit_parallel): Move to...
26099 * gensupport.c (add_implicit_parallel): ...here.
26100 (process_one_cond_exec): Use it.
26101 * genemit.c (gen_insn): Likewise.
26102
26103 2015-06-13 Iain Sandoe <iain@codesourcery.com>
26104
26105 PR bootstrap/66448
26106 * passes.c (rest_of_decl_compilation): Do not register globals for
26107 early debug if they are declared in built-ins.
26108
26109 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
26110
26111 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
26112
26113 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26114
26115 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
26116 manually swapping.
26117 (noce_try_cmove_arith): Likewise.
26118 (noce_get_alt_condition): Likewise.
26119
26120 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26121
26122 * common/config/i386/i386-common.c
26123 (OPTION_MASK_ISA_MWAITX_SET): New.
26124 (ix86_handle_option): Handle mwaitx.
26125 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
26126 (x86_64-*-*): Likewise.
26127 * config/i386/mwaitxintrin.h: New header.
26128 * config/i386/cpuid.h (bit_MWAITX): Define.
26129 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26130 MWAITX support.
26131 * config/i386/i386.opt (mwaitx): New.
26132 * config/i386/i386-builtin-types.def
26133 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
26134 * config/i386/i386-c.c: Define __MWAITX__ if needed.
26135 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
26136 (PTA_MWAITX): New.
26137 (ix86_option_override_internal): Handle new option.
26138 (processor_alias_table): Added PTA_MWAITX.
26139 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
26140 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
26141 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
26142 IX86_BUILTIN_MONITORX built-ins.
26143 * config/i386/i386.h (TARGET_MWAITX): New.
26144 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
26145 UNSPEC_MONITORX.
26146 (mwaitx): New pattern.
26147 (monitorx_<mode>): New pattern.
26148 * config/i386/x86intrin.h: Include mwaitxintrin.h.
26149 * doc/extend.texi: Document monitorx and mwaitx builtins.
26150 * doc/invoke.texi: Document -mmwaitx option.
26151
26152 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
26153
26154 * emit-rtl.c (need_atomic_barrier_p): Mask model with
26155 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
26156
26157 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
26158
26159 * dbxout.c (xcoff_debug_hooks): Provide a function for
26160 register_main_translation_unit hook.
26161
26162 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
26163
26164 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
26165 variants cases from switch.
26166 (rs6000_post_atomic_barrier): Same.
26167 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
26168 (rs6000_expand_atomic_exchange): Same.
26169 (rs6000_expand_atomic_op): Same.
26170 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
26171 SYNC variants cases from switch.
26172 (atomic_load): Same.
26173 (atomic_store): Same.
26174
26175 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
26176
26177 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
26178 CONST_INT for goto.
26179
26180 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
26181
26182 PR bootstrap/66448
26183 * dwarf2out.c (check_die): Check for common duplicate attributes.
26184 (add_location_or_const_value_attribute): Do not add duplicate
26185 attributes.
26186 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
26187 time around.
26188 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
26189 (gen_type_die_with_usage): Call check_die.
26190 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
26191
26192 2015-06-11 Jason Merrill <jason@redhat.com>
26193
26194 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
26195 dies.
26196
26197 2015-06-11 Marek Polacek <polacek@redhat.com>
26198
26199 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
26200
26201 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
26202
26203 PR bootstrap/66252
26204 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
26205 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
26206 (*addx_extend_sp32): Fix pasto.
26207 (*subx_extend): Rename into...
26208 (*subx_extend_sp32): ...this.
26209 (*adddi3_extend_sp32): Add earlyclobber.
26210 (*subdi3_insn_sp32): Likewise.
26211 (*subdi3_extend_sp32): Likewise.
26212 (*and_not_di_sp32): Likewise.
26213 (*or_not_di_sp32): Likewise.
26214 (*xor_not_di_sp32): Likewise.
26215 (*negdi2_sp32): Likewise.
26216 (*one_cmpldi2_sp32): Likewise.
26217
26218 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
26219
26220 * debug.h (struct gcc_debug_hooks): Add a
26221 register_main_translation_unit hook.
26222 * debug.c (do_nothing_debug_hooks): Provide a function for this
26223 new hook.
26224 * dbxout.c (dbx_debug_hooks): Likewise.
26225 * sdbout.c (sdb_debug_hooks): Likewise.
26226 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
26227 * dwarf2out.c (main_translation_unit): New global variable.
26228 (dwarf2out_register_main_translation_unit): New function
26229 implementing the new hook.
26230 (dwarf2_debug_hooks): Assign
26231 dwarf2out_register_main_translation_unit to this new hook.
26232 (dwarf2out_init): Associate any main translation unit to
26233 comp_unit_die ().
26234
26235 2015-06-11 Marek Polacek <polacek@redhat.com>
26236
26237 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
26238
26239 2015-06-11 Marek Polacek <polacek@redhat.com>
26240
26241 * match.pd: Use single_use throughout.
26242
26243 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26244
26245 * config/arm/arm.c (arm_option_params_internal): When optimising
26246 for speed set max_insns_skipped when arm_restrict_it.
26247
26248 2015-06-11 Christian Bruel <christian.bruel@st.com>
26249
26250 PR target/52144
26251 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
26252 macros in ...
26253 (arm_cpu_builtins): New function.
26254 (arm_pragma_target_parse): Call arm_cpu_builtins.
26255 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
26256 (arm_register_target_pragmas): Likewise.
26257 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
26258 Call arm_register_target_pragmas.
26259 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
26260 (arm_pragma_target_parse): Likewise.
26261
26262 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
26263
26264 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
26265 of the second operand.
26266
26267 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
26268
26269 PR target/66473
26270 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
26271 to prepare mask operand for AVX512 modes.
26272
26273 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
26274
26275 PR target/66474
26276 * doc/md.texi (Machine Constraints): Document that on the PowerPC
26277 if you use a constraint that targets a VSX register, you must use
26278 %x<n> in the template.
26279
26280 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
26281
26282 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
26283 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
26284 (define_insn "trap"): New definition.
26285
26286 2015-06-10 Richard Biener <rguenther@suse.de>
26287
26288 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
26289 out from ...
26290 (vect_supported_load_permutation_p): ... here. Handle
26291 supportable permutations in reductions.
26292 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
26293 for vectorizing strided group loads.
26294
26295 2015-06-10 Jakub Jelinek <jakub@redhat.com>
26296
26297 PR target/66470
26298 * config/i386/i386.c (ix86_split_long_move): For collisions
26299 involving direct tls segment refs, move the UNSPEC_TP possibly
26300 wrapped in ZERO_EXTEND out of the address for lea, to each of
26301 the memory loads.
26302
26303 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26304
26305 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
26306 dmb sy. Adjust tabs.
26307
26308 2015-06-10 Tom de Vries <tom@codesourcery.com>
26309
26310 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
26311
26312 2015-06-10 Martin Liska <mliska@suse.cz>
26313
26314 PR bootstrap/66471
26315 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
26316 all enum values in mem_alloc_origin.
26317 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
26318 name.
26319 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
26320 * bitmap.c (bitmap_register): Likewise.
26321 (dump_bitmap_statistics): Likewise.
26322 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
26323 (ggc_record_overhead): Likewise.
26324 * hash-map.h: Likewise.
26325 * hash-set.h: Likewise.
26326 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
26327 * hash-table.h: Likewise.
26328 * vec.c (vec_prefix::register_overhead): Likewise.
26329 (vec_prefix::release_overhead): Likewise.
26330 (dump_vec_loc_statistics): Likewise.
26331
26332 2015-06-09 Christian Bruel <christian.bruel@st.com>
26333
26334 PR target/52144
26335 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
26336 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
26337 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
26338 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
26339 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
26340 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
26341 (arm_valid_target_attribute_p): Likewise.
26342 (arm_set_current_function, arm_can_inline_p): Likewise.
26343 (arm_valid_target_attribute_rec): Likewise.
26344 (arm_previous_fndecl): New variable.
26345 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
26346 (TARGET_CAN_INLINE_P): Define.
26347 (arm_asm_trampoline_template): Emit mode.
26348 (arm_file_start): Don't set unified syntax.
26349 (arm_declare_function_name): Set unified syntax and mode.
26350 (arm_option_override): Init target_option_default_node.
26351 and target_option_current_node.
26352 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
26353 (*call_symbol): Likewise.
26354 * doc/extend.texi: Document ARM/Thumb target attribute.
26355 * doc/invoke.texi: Likewise.
26356
26357 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
26358
26359 Revert:
26360 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
26361 PR rtl-optimization/64164
26362 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
26363 * tree-ssa-copyrename.c: Removed.
26364 * opts.c (default_options_table): Drop -ftree-copyrename. Add
26365 -ftree-coalesce-vars.
26366 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
26367 * common.opt (ftree-copyrename): Ignore.
26368 (ftree-coalesce-inlined-vars): Likewise.
26369 * doc/invoke.texi: Remove the ignored options above.
26370 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
26371 * tree-ssa-coalesce.h: ... here.
26372 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
26373 headers required by it.
26374 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
26375 across variables when flag_tree_coalesce_vars. Check register
26376 use and promoted modes to allow coalescing. Moved to
26377 tree-ssa-coalesce.c.
26378 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
26379 with its member functions to tree-ssa-coalesce.c.
26380 (var_map_base_init): Likewise. Renamed to
26381 compute_samebase_partition_bases.
26382 (partition_view_normal): Drop want_bases parameter.
26383 (partition_view_bitmap): Likewise.
26384 * tree-ssa-live.h: Adjust declarations.
26385 * tree-ssa-coalesce.c: Include explow.h.
26386 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
26387 default defs at the entry point.
26388 (dump_part_var_map): New.
26389 (compute_optimized_partition_bases): New, called by...
26390 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
26391 of compute_samebase_partition_bases. Adjust.
26392 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
26393 * cfgexpand.c (leader_merge): New.
26394 (get_rtl_for_parm_ssa_default_def): New.
26395 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
26396 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
26397 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
26398 redundant MEM attr setting.
26399 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
26400 from...
26401 (expand_one_stack_var): ... this. New wrapper to check and
26402 skip already expanded SSA partitions.
26403 (record_alignment_for_reg_var): New, factored out of...
26404 (expand_one_var): ... this.
26405 (expand_one_ssa_partition): New.
26406 (adjust_one_expanded_partition_var): New.
26407 (expand_one_register_var): Check and skip already expanded SSA
26408 partitions.
26409 (expand_used_vars): Don't create DECLs for anonymous SSA
26410 names. Expand all SSA partitions, then adjust all SSA names.
26411 (pass::execute): Replace the loops that set
26412 SA.partition_to_pseudo from partition leaders and cleared
26413 DECL_RTL for multi-location variables, and that which used to
26414 rename vars and set attrs, with one that clears DECL_RTL and
26415 checks that PARMs and RESULTs default_defs match DECL_RTL.
26416 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
26417 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
26418 * explow.c (promote_ssa_mode): New.
26419 * explow.h (promote_ssa_mode): Declare.
26420 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
26421 * function.c: Include cfgexpand.h.
26422 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
26423 (use_register_for_parm_decl): Wrapper for the above to
26424 special-case the result_ptr.
26425 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
26426 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
26427 multiple locations.
26428 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
26429 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
26430 (assign_parm_setup_block): Prefer SSA-assigned location.
26431 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
26432 if stack_parm is NULL.
26433 (assign_parm_setup_stack): Prefer SSA-assigned location.
26434 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
26435 rtl before testing for pointer bounds. Special-case result_ptr.
26436 (expand_function_start): Maybe reset DECL_RTL of result.
26437 Prefer SSA-assigned location for result and static chain.
26438 Factor out DECL_RESULT and SET_DECL_RTL.
26439 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
26440 anonymous SSA names. Use promote_ssa_mode.
26441 (get_temp_reg): Likewise.
26442 (remove_ssa_form): Adjust.
26443 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
26444 and get its reg_usage for reg invalidation.
26445 (compute_bb_dataflow): Pass it insn.
26446 (emit_notes_in_bb): Likewise.
26447 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
26448 fail assert on conversion between unsigned types.
26449
26450 2015-06-09 Tom de Vries <tom@codesourcery.com>
26451
26452 PR tree-optimization/65460
26453 * omp-low.c (expand_omp_target): Set parallelized_function on
26454 cgraph_node for child_fn.
26455
26456 2015-06-09 Tom de Vries <tom@codesourcery.com>
26457
26458 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
26459 parallelized_function before add_new_function.
26460
26461 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
26462
26463 * gcc-plugin.h: Move decls to plugin.h and include it.
26464 * plugin.h: Relocate decls from gcc-plugin.h
26465 * ggc-page.c: Include required header files.
26466 * passes.c: Likewise.
26467 * cgraphunit.c: Likewise.
26468
26469 2015-06-09 Tom de Vries <tom@codesourcery.com>
26470
26471 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
26472
26473 2015-06-09 Jason Merrill <jason@redhat.com>
26474
26475 PR bootstrap/66448
26476 * toplev.c (check_global_declaration): Don't warn about a clone.
26477
26478 2015-06-09 Marek Polacek <polacek@redhat.com>
26479
26480 PR tree-optimization/66299
26481 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
26482 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
26483 patterns.
26484
26485 2015-06-09 Richard Biener <rguenther@suse.de>
26486
26487 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
26488 (vect_analyze_slp_instance): Instead do not falsely drop
26489 load permutations.
26490
26491 2015-06-09 Richard Biener <rguenther@suse.de>
26492
26493 PR middle-end/66423
26494 * match.pd: Handle A % (unsigned)(1 << B).
26495
26496 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
26497
26498 * varasm.c (output_object_block_htab): Remove.
26499 (output_object_block_compare): New.
26500 (output_object_blocks): Sort named object_blocks before outputting
26501 them.
26502
26503 2015-06-09 Richard Biener <rguenther@suse.de>
26504
26505 PR tree-optimization/66419
26506 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
26507 consider GROUP_GAP when detecting a perfect subchain.
26508
26509 2015-06-09 Nick Clifton <nickc@redhat.com>
26510
26511 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
26512 place read only data in the .frodata section.
26513
26514 2015-06-09 Shiva Chen <shiva0217@gmail.com>
26515
26516 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
26517 (atomic_store<mode>): Likewise.
26518
26519 2015-06-09 Richard Biener <rguenther@suse.de>
26520
26521 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
26522
26523 2015-06-09 Richard Biener <rguenther@suse.de>
26524
26525 PR middle-end/66413
26526 * tree-inline.c (insert_init_debug_bind): Unshare value.
26527
26528 2015-06-09 Richard Biener <rguenther@suse.de>
26529
26530 PR tree-optimization/66396
26531 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
26532 Rename virtual operands.
26533
26534 2015-06-09 Tom de Vries <tom@codesourcery.com>
26535
26536 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
26537 always return false.
26538
26539 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
26540
26541 PR rtl-optimization/64164
26542 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
26543 * tree-ssa-copyrename.c: Removed.
26544 * opts.c (default_options_table): Drop -ftree-copyrename. Add
26545 -ftree-coalesce-vars.
26546 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
26547 * common.opt (ftree-copyrename): Ignore.
26548 (ftree-coalesce-inlined-vars): Likewise.
26549 * doc/invoke.texi: Remove the ignored options above.
26550 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
26551 * tree-ssa-coalesce.h: ... here.
26552 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
26553 headers required by it.
26554 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
26555 across variables when flag_tree_coalesce_vars. Check register
26556 use and promoted modes to allow coalescing. Moved to
26557 tree-ssa-coalesce.c.
26558 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
26559 with its member functions to tree-ssa-coalesce.c.
26560 (var_map_base_init): Likewise. Renamed to
26561 compute_samebase_partition_bases.
26562 (partition_view_normal): Drop want_bases parameter.
26563 (partition_view_bitmap): Likewise.
26564 * tree-ssa-live.h: Adjust declarations.
26565 * tree-ssa-coalesce.c: Include explow.h.
26566 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
26567 default defs at the entry point.
26568 (dump_part_var_map): New.
26569 (compute_optimized_partition_bases): New, called by...
26570 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
26571 of compute_samebase_partition_bases. Adjust.
26572 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
26573 * cfgexpand.c (leader_merge): New.
26574 (get_rtl_for_parm_ssa_default_def): New.
26575 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
26576 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
26577 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
26578 redundant MEM attr setting.
26579 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
26580 from...
26581 (expand_one_stack_var): ... this. New wrapper to check and
26582 skip already expanded SSA partitions.
26583 (record_alignment_for_reg_var): New, factored out of...
26584 (expand_one_var): ... this.
26585 (expand_one_ssa_partition): New.
26586 (adjust_one_expanded_partition_var): New.
26587 (expand_one_register_var): Check and skip already expanded SSA
26588 partitions.
26589 (expand_used_vars): Don't create DECLs for anonymous SSA
26590 names. Expand all SSA partitions, then adjust all SSA names.
26591 (pass::execute): Replace the loops that set
26592 SA.partition_to_pseudo from partition leaders and cleared
26593 DECL_RTL for multi-location variables, and that which used to
26594 rename vars and set attrs, with one that clears DECL_RTL and
26595 checks that PARMs and RESULTs default_defs match DECL_RTL.
26596 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
26597 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
26598 * explow.c (promote_ssa_mode): New.
26599 * explow.h (promote_ssa_mode): Declare.
26600 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
26601 * function.c: Include cfgexpand.h.
26602 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
26603 (use_register_for_parm_decl): Wrapper for the above to
26604 special-case the result_ptr.
26605 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
26606 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
26607 multiple locations.
26608 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
26609 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
26610 (assign_parm_setup_block): Prefer SSA-assigned location.
26611 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
26612 if stack_parm is NULL.
26613 (assign_parm_setup_stack): Prefer SSA-assigned location.
26614 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
26615 rtl before testing for pointer bounds. Special-case result_ptr.
26616 (expand_function_start): Maybe reset DECL_RTL of result.
26617 Prefer SSA-assigned location for result and static chain.
26618 Factor out DECL_RESULT and SET_DECL_RTL.
26619 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
26620 anonymous SSA names. Use promote_ssa_mode.
26621 (get_temp_reg): Likewise.
26622 (remove_ssa_form): Adjust.
26623 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
26624 and get its reg_usage for reg invalidation.
26625 (compute_bb_dataflow): Pass it insn.
26626 (emit_notes_in_bb): Likewise.
26627 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
26628 fail assert on conversion between unsigned types.
26629
26630 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
26631
26632 PR debug/58315
26633 * tree-inline.c (reset_debug_binding): New.
26634 (reset_debug_bindings): Likewise.
26635 (expand_call_inline): Call it.
26636
26637 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
26638
26639 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
26640 TYPE_STRING_FLAG.
26641
26642 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
26643
26644 * lto-streamer-out.c (lto_output_location): Stream
26645 reserved locations correctly.
26646 * lto-streamer-in.c (lto_output_location): Likewise.
26647
26648 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
26649
26650 * coretypes.h: Include hash-table.h and hash-set.h for host files.
26651 * ggc.h: Don't include statistics.h>
26652 * hash-map.h: Remove all includes.
26653 * hash-set.h: Likewise.
26654 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
26655 the include list. Remove <new>.
26656 * inchash.h: Remove all includes.
26657 * mem-stats.h: Likewise.
26658 * vec.h: No special processing for generators or ggc.
26659 * alias.c : Adjust include files.
26660 * alloc-pool.c : Likewise.
26661 * alloc-pool.h : Likewise.
26662 * asan.c : Likewise.
26663 * attribs.c : Likewise.
26664 * auto-inc-dec.c : Likewise.
26665 * auto-profile.c : Likewise.
26666 * bb-reorder.c : Likewise.
26667 * bitmap.c : Likewise.
26668 * bitmap.h : Likewise.
26669 * bt-load.c : Likewise.
26670 * builtins.c : Likewise.
26671 * caller-save.c : Likewise.
26672 * calls.c : Likewise.
26673 * ccmp.c : Likewise.
26674 * cfg.c : Likewise.
26675 * cfganal.c : Likewise.
26676 * cfgbuild.c : Likewise.
26677 * cfgcleanup.c : Likewise.
26678 * cfgexpand.c : Likewise.
26679 * cfghooks.c : Likewise.
26680 * cfgloop.c : Likewise.
26681 * cfgloop.h : Likewise.
26682 * cfgloopanal.c : Likewise.
26683 * cfgloopmanip.c : Likewise.
26684 * cfgrtl.c : Likewise.
26685 * cgraph.c : Likewise.
26686 * cgraphbuild.c : Likewise.
26687 * cgraphclones.c : Likewise.
26688 * cgraphunit.c : Likewise.
26689 * cilk-common.c : Likewise.
26690 * combine-stack-adj.c : Likewise.
26691 * combine.c : Likewise.
26692 * compare-elim.c : Likewise.
26693 * context.c : Likewise.
26694 * convert.c : Likewise.
26695 * coverage.c : Likewise.
26696 * cppbuiltin.c : Likewise.
26697 * cprop.c : Likewise.
26698 * cse.c : Likewise.
26699 * cselib.c : Likewise.
26700 * data-streamer-in.c : Likewise.
26701 * data-streamer-out.c : Likewise.
26702 * data-streamer.c : Likewise.
26703 * data-streamer.h : Likewise.
26704 * dbxout.c : Likewise.
26705 * dce.c : Likewise.
26706 * ddg.c : Likewise.
26707 * debug.c : Likewise.
26708 * df-core.c : Likewise.
26709 * df-problems.c : Likewise.
26710 * df-scan.c : Likewise.
26711 * df.h : Likewise.
26712 * dfp.c : Likewise.
26713 * dojump.c : Likewise.
26714 * dominance.c : Likewise.
26715 * domwalk.c : Likewise.
26716 * double-int.c : Likewise.
26717 * dse.c : Likewise.
26718 * dumpfile.c : Likewise.
26719 * dwarf2asm.c : Likewise.
26720 * dwarf2cfi.c : Likewise.
26721 * dwarf2out.c : Likewise.
26722 * emit-rtl.c : Likewise.
26723 * et-forest.c : Likewise.
26724 * except.c : Likewise.
26725 * except.h : Likewise.
26726 * explow.c : Likewise.
26727 * expmed.c : Likewise.
26728 * expr.c : Likewise.
26729 * final.c : Likewise.
26730 * fixed-value.c : Likewise.
26731 * fold-const.c : Likewise.
26732 * function.c : Likewise.
26733 * fwprop.c : Likewise.
26734 * gcc-plugin.h : Likewise.
26735 * gcc.c : Likewise.
26736 * gcse-common.c : Likewise.
26737 * gcse.c : Likewise.
26738 * genattrtab.c : Likewise.
26739 * genautomata.c : Likewise.
26740 * genconditions.c : Likewise.
26741 * genemit.c : Likewise.
26742 * generic-match-head.c : Likewise.
26743 * genextract.c : Likewise.
26744 * gengtype-state.c : Likewise.
26745 * gengtype.c : Likewise.
26746 * genhooks.c : Likewise.
26747 * genmatch.c : Likewise.
26748 * genmodes.c : Likewise.
26749 * genrecog.c : Likewise.
26750 * gensupport.c : Likewise.
26751 * ggc-common.c : Likewise.
26752 * ggc-internal.h : Likewise.
26753 * ggc-none.c : Likewise.
26754 * ggc-page.c : Likewise.
26755 * gimple-builder.c : Likewise.
26756 * gimple-expr.c : Likewise.
26757 * gimple-fold.c : Likewise.
26758 * gimple-iterator.c : Likewise.
26759 * gimple-low.c : Likewise.
26760 * gimple-match-head.c : Likewise.
26761 * gimple-pretty-print.c : Likewise.
26762 * gimple-ssa-isolate-paths.c : Likewise.
26763 * gimple-ssa-strength-reduction.c : Likewise.
26764 * gimple-ssa.h : Likewise.
26765 * gimple-streamer-in.c : Likewise.
26766 * gimple-streamer-out.c : Likewise.
26767 * gimple-streamer.h : Likewise.
26768 * gimple-walk.c : Likewise.
26769 * gimple.c : Likewise.
26770 * gimplify-me.c : Likewise.
26771 * gimplify.c : Likewise.
26772 * godump.c : Likewise.
26773 * graph.c : Likewise.
26774 * graphds.c : Likewise.
26775 * graphite-blocking.c : Likewise.
26776 * graphite-dependences.c : Likewise.
26777 * graphite-interchange.c : Likewise.
26778 * graphite-isl-ast-to-gimple.c : Likewise.
26779 * graphite-optimize-isl.c : Likewise.
26780 * graphite-poly.c : Likewise.
26781 * graphite-scop-detection.c : Likewise.
26782 * graphite-sese-to-poly.c : Likewise.
26783 * graphite.c : Likewise.
26784 * haifa-sched.c : Likewise.
26785 * hard-reg-set.h : Likewise.
26786 * hw-doloop.c : Likewise.
26787 * ifcvt.c : Likewise.
26788 * inchash.c : Likewise.
26789 * incpath.c : Likewise.
26790 * init-regs.c : Likewise.
26791 * input.c : Likewise.
26792 * internal-fn.c : Likewise.
26793 * ipa-chkp.c : Likewise.
26794 * ipa-comdats.c : Likewise.
26795 * ipa-cp.c : Likewise.
26796 * ipa-devirt.c : Likewise.
26797 * ipa-icf-gimple.c : Likewise.
26798 * ipa-icf.c : Likewise.
26799 * ipa-inline-analysis.c : Likewise.
26800 * ipa-inline-transform.c : Likewise.
26801 * ipa-inline.c : Likewise.
26802 * ipa-polymorphic-call.c : Likewise.
26803 * ipa-profile.c : Likewise.
26804 * ipa-prop.c : Likewise.
26805 * ipa-pure-const.c : Likewise.
26806 * ipa-ref.c : Likewise.
26807 * ipa-reference.c : Likewise.
26808 * ipa-split.c : Likewise.
26809 * ipa-utils.c : Likewise.
26810 * ipa-visibility.c : Likewise.
26811 * ipa.c : Likewise.
26812 * ira-build.c : Likewise.
26813 * ira-color.c : Likewise.
26814 * ira-conflicts.c : Likewise.
26815 * ira-costs.c : Likewise.
26816 * ira-emit.c : Likewise.
26817 * ira-lives.c : Likewise.
26818 * ira.c : Likewise.
26819 * jump.c : Likewise.
26820 * langhooks.c : Likewise.
26821 * lcm.c : Likewise.
26822 * libfuncs.h : Likewise.
26823 * lists.c : Likewise.
26824 * loop-doloop.c : Likewise.
26825 * loop-init.c : Likewise.
26826 * loop-invariant.c : Likewise.
26827 * loop-iv.c : Likewise.
26828 * loop-unroll.c : Likewise.
26829 * lower-subreg.c : Likewise.
26830 * lra-assigns.c : Likewise.
26831 * lra-coalesce.c : Likewise.
26832 * lra-constraints.c : Likewise.
26833 * lra-eliminations.c : Likewise.
26834 * lra-lives.c : Likewise.
26835 * lra-remat.c : Likewise.
26836 * lra-spills.c : Likewise.
26837 * lra.c : Likewise.
26838 * lto-cgraph.c : Likewise.
26839 * lto-compress.c : Likewise.
26840 * lto-opts.c : Likewise.
26841 * lto-section-in.c : Likewise.
26842 * lto-section-out.c : Likewise.
26843 * lto-streamer-in.c : Likewise.
26844 * lto-streamer-out.c : Likewise.
26845 * lto-streamer.c : Likewise.
26846 * lto-streamer.h : Likewise.
26847 * mcf.c : Likewise.
26848 * mode-switching.c : Likewise.
26849 * modulo-sched.c : Likewise.
26850 * omega.c : Likewise.
26851 * omp-low.c : Likewise.
26852 * optabs.c : Likewise.
26853 * opts-global.c : Likewise.
26854 * opts.h : Likewise.
26855 * passes.c : Likewise.
26856 * plugin.c : Likewise.
26857 * postreload-gcse.c : Likewise.
26858 * postreload.c : Likewise.
26859 * predict.c : Likewise.
26860 * print-rtl.c : Likewise.
26861 * print-tree.c : Likewise.
26862 * profile.c : Likewise.
26863 * read-md.c : Likewise.
26864 * read-md.h : Likewise.
26865 * read-rtl.c : Likewise.
26866 * real.c : Likewise.
26867 * realmpfr.c : Likewise.
26868 * recog.c : Likewise.
26869 * ree.c : Likewise.
26870 * reg-stack.c : Likewise.
26871 * regcprop.c : Likewise.
26872 * reginfo.c : Likewise.
26873 * regrename.c : Likewise.
26874 * regstat.c : Likewise.
26875 * reload.c : Likewise.
26876 * reload1.c : Likewise.
26877 * reorg.c : Likewise.
26878 * resource.c : Likewise.
26879 * rtl-chkp.c : Likewise.
26880 * rtl.c : Likewise.
26881 * rtl.h : Likewise.
26882 * rtlanal.c : Likewise.
26883 * rtlhash.c : Likewise.
26884 * rtlhash.h : Likewise.
26885 * rtlhooks.c : Likewise.
26886 * sanopt.c : Likewise.
26887 * sched-deps.c : Likewise.
26888 * sched-ebb.c : Likewise.
26889 * sched-rgn.c : Likewise.
26890 * sched-vis.c : Likewise.
26891 * sdbout.c : Likewise.
26892 * sel-sched-dump.c : Likewise.
26893 * sel-sched-ir.c : Likewise.
26894 * sel-sched-ir.h : Likewise.
26895 * sel-sched.c : Likewise.
26896 * sese.c : Likewise.
26897 * shrink-wrap.c : Likewise.
26898 * shrink-wrap.h : Likewise.
26899 * simplify-rtx.c : Likewise.
26900 * stack-ptr-mod.c : Likewise.
26901 * statistics.c : Likewise.
26902 * stmt.c : Likewise.
26903 * stor-layout.c : Likewise.
26904 * store-motion.c : Likewise.
26905 * stringpool.c : Likewise.
26906 * symtab.c : Likewise.
26907 * target-globals.c : Likewise.
26908 * targhooks.c : Likewise.
26909 * tlink.c : Likewise.
26910 * toplev.c : Likewise.
26911 * tracer.c : Likewise.
26912 * trans-mem.c : Likewise.
26913 * tree-affine.c : Likewise.
26914 * tree-affine.h : Likewise.
26915 * tree-browser.c : Likewise.
26916 * tree-call-cdce.c : Likewise.
26917 * tree-cfg.c : Likewise.
26918 * tree-cfgcleanup.c : Likewise.
26919 * tree-chkp-opt.c : Likewise.
26920 * tree-chkp.c : Likewise.
26921 * tree-chrec.c : Likewise.
26922 * tree-complex.c : Likewise.
26923 * tree-data-ref.c : Likewise.
26924 * tree-dfa.c : Likewise.
26925 * tree-diagnostic.c : Likewise.
26926 * tree-dump.c : Likewise.
26927 * tree-eh.c : Likewise.
26928 * tree-eh.h : Likewise.
26929 * tree-emutls.c : Likewise.
26930 * tree-hasher.h : Likewise.
26931 * tree-if-conv.c : Likewise.
26932 * tree-inline.c : Likewise.
26933 * tree-inline.h : Likewise.
26934 * tree-into-ssa.c : Likewise.
26935 * tree-iterator.c : Likewise.
26936 * tree-loop-distribution.c : Likewise.
26937 * tree-nested.c : Likewise.
26938 * tree-nrv.c : Likewise.
26939 * tree-object-size.c : Likewise.
26940 * tree-outof-ssa.c : Likewise.
26941 * tree-parloops.c : Likewise.
26942 * tree-phinodes.c : Likewise.
26943 * tree-predcom.c : Likewise.
26944 * tree-pretty-print.c : Likewise.
26945 * tree-profile.c : Likewise.
26946 * tree-scalar-evolution.c : Likewise.
26947 * tree-sra.c : Likewise.
26948 * tree-ssa-address.c : Likewise.
26949 * tree-ssa-alias.c : Likewise.
26950 * tree-ssa-ccp.c : Likewise.
26951 * tree-ssa-coalesce.c : Likewise.
26952 * tree-ssa-copy.c : Likewise.
26953 * tree-ssa-copyrename.c : Likewise.
26954 * tree-ssa-dce.c : Likewise.
26955 * tree-ssa-dom.c : Likewise.
26956 * tree-ssa-dse.c : Likewise.
26957 * tree-ssa-forwprop.c : Likewise.
26958 * tree-ssa-ifcombine.c : Likewise.
26959 * tree-ssa-live.c : Likewise.
26960 * tree-ssa-loop-ch.c : Likewise.
26961 * tree-ssa-loop-im.c : Likewise.
26962 * tree-ssa-loop-ivcanon.c : Likewise.
26963 * tree-ssa-loop-ivopts.c : Likewise.
26964 * tree-ssa-loop-manip.c : Likewise.
26965 * tree-ssa-loop-niter.c : Likewise.
26966 * tree-ssa-loop-prefetch.c : Likewise.
26967 * tree-ssa-loop-unswitch.c : Likewise.
26968 * tree-ssa-loop.c : Likewise.
26969 * tree-ssa-math-opts.c : Likewise.
26970 * tree-ssa-operands.c : Likewise.
26971 * tree-ssa-phiopt.c : Likewise.
26972 * tree-ssa-phiprop.c : Likewise.
26973 * tree-ssa-pre.c : Likewise.
26974 * tree-ssa-propagate.c : Likewise.
26975 * tree-ssa-reassoc.c : Likewise.
26976 * tree-ssa-sccvn.c : Likewise.
26977 * tree-ssa-scopedtables.c : Likewise.
26978 * tree-ssa-sink.c : Likewise.
26979 * tree-ssa-strlen.c : Likewise.
26980 * tree-ssa-structalias.c : Likewise.
26981 * tree-ssa-tail-merge.c : Likewise.
26982 * tree-ssa-ter.c : Likewise.
26983 * tree-ssa-threadedge.c : Likewise.
26984 * tree-ssa-threadupdate.c : Likewise.
26985 * tree-ssa-uncprop.c : Likewise.
26986 * tree-ssa-uninit.c : Likewise.
26987 * tree-ssa.c : Likewise.
26988 * tree-ssanames.c : Likewise.
26989 * tree-stdarg.c : Likewise.
26990 * tree-streamer-in.c : Likewise.
26991 * tree-streamer-out.c : Likewise.
26992 * tree-streamer.c : Likewise.
26993 * tree-streamer.h : Likewise.
26994 * tree-switch-conversion.c : Likewise.
26995 * tree-tailcall.c : Likewise.
26996 * tree-vect-data-refs.c : Likewise.
26997 * tree-vect-generic.c : Likewise.
26998 * tree-vect-loop-manip.c : Likewise.
26999 * tree-vect-loop.c : Likewise.
27000 * tree-vect-patterns.c : Likewise.
27001 * tree-vect-slp.c : Likewise.
27002 * tree-vect-stmts.c : Likewise.
27003 * tree-vectorizer.c : Likewise.
27004 * tree-vectorizer.h : Likewise.
27005 * tree-vrp.c : Likewise.
27006 * tree.c : Likewise.
27007 * tsan.c : Likewise.
27008 * ubsan.c : Likewise.
27009 * valtrack.c : Likewise.
27010 * valtrack.h : Likewise.
27011 * value-prof.c : Likewise.
27012 * var-tracking.c : Likewise.
27013 * varasm.c : Likewise.
27014 * varpool.c : Likewise.
27015 * vec.c: Likewise.
27016 * vmsdbgout.c : Likewise.
27017 * vtable-verify.c : Likewise.
27018 * vtable-verify.h : Likewise.
27019 * web.c : Likewise.
27020 * wide-int.cc : Likewise.
27021 * xcoffout.c : Likewise.
27022 * config/aarch64/aarch64-builtins.c : Likewise.
27023 * config/aarch64/aarch64.c : Likewise.
27024 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
27025 * config/alpha/alpha.c : Likewise.
27026 * config/arc/arc.c : Likewise.
27027 * config/arm/aarch-common.c : Likewise.
27028 * config/arm/arm-builtins.c : Likewise.
27029 * config/arm/arm-c.c : Likewise.
27030 * config/arm/arm.c : Likewise.
27031 * config/avr/avr-c.c : Likewise.
27032 * config/avr/avr-log.c : Likewise.
27033 * config/avr/avr.c : Likewise.
27034 * config/bfin/bfin.c : Likewise.
27035 * config/c6x/c6x.c : Likewise.
27036 * config/cr16/cr16.c : Likewise.
27037 * config/cris/cris.c : Likewise.
27038 * config/darwin-c.c : Likewise.
27039 * config/darwin.c : Likewise.
27040 * config/default-c.c : Likewise.
27041 * config/epiphany/epiphany.c : Likewise.
27042 * config/epiphany/mode-switch-use.c : Likewise.
27043 * config/epiphany/resolve-sw-modes.c : Likewise.
27044 * config/fr30/fr30.c : Likewise.
27045 * config/frv/frv.c : Likewise.
27046 * config/ft32/ft32.c : Likewise.
27047 * config/glibc-c.c : Likewise.
27048 * config/h8300/h8300.c : Likewise.
27049 * config/i386/i386-c.c : Likewise.
27050 * config/i386/i386.c : Likewise.
27051 * config/i386/msformat-c.c : Likewise.
27052 * config/i386/winnt-cxx.c : Likewise.
27053 * config/i386/winnt-stubs.c : Likewise.
27054 * config/i386/winnt.c : Likewise.
27055 * config/ia64/ia64-c.c : Likewise.
27056 * config/ia64/ia64.c : Likewise.
27057 * config/iq2000/iq2000.c : Likewise.
27058 * config/lm32/lm32.c : Likewise.
27059 * config/m32c/m32c-pragma.c : Likewise.
27060 * config/m32c/m32c.c : Likewise.
27061 * config/m32r/m32r.c : Likewise.
27062 * config/m68k/m68k.c : Likewise.
27063 * config/mcore/mcore.c : Likewise.
27064 * config/mep/mep-pragma.c : Likewise.
27065 * config/mep/mep.c : Likewise.
27066 * config/microblaze/microblaze-c.c : Likewise.
27067 * config/microblaze/microblaze.c : Likewise.
27068 * config/mips/mips.c : Likewise.
27069 * config/mmix/mmix.c : Likewise.
27070 * config/mn10300/mn10300.c : Likewise.
27071 * config/moxie/moxie.c : Likewise.
27072 * config/msp430/msp430-c.c : Likewise.
27073 * config/msp430/msp430.c : Likewise.
27074 * config/nds32/nds32-cost.c : Likewise.
27075 * config/nds32/nds32-fp-as-gp.c : Likewise.
27076 * config/nds32/nds32-intrinsic.c : Likewise.
27077 * config/nds32/nds32-isr.c : Likewise.
27078 * config/nds32/nds32-md-auxiliary.c : Likewise.
27079 * config/nds32/nds32-memory-manipulation.c : Likewise.
27080 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
27081 * config/nds32/nds32-predicates.c : Likewise.
27082 * config/nds32/nds32.c : Likewise.
27083 * config/nios2/nios2.c : Likewise.
27084 * config/nvptx/nvptx.c : Likewise.
27085 * config/pa/pa.c : Likewise.
27086 * config/pdp11/pdp11.c : Likewise.
27087 * config/rl78/rl78-c.c : Likewise.
27088 * config/rl78/rl78.c : Likewise.
27089 * config/rs6000/rs6000-c.c : Likewise.
27090 * config/rs6000/rs6000.c : Likewise.
27091 * config/rx/rx.c : Likewise.
27092 * config/s390/s390-c.c : Likewise.
27093 * config/s390/s390.c : Likewise.
27094 * config/sh/sh-c.c : Likewise.
27095 * config/sh/sh-mem.cc : Likewise.
27096 * config/sh/sh.c : Likewise.
27097 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
27098 * config/sh/sh_treg_combine.cc : Likewise.
27099 * config/sol2-c.c : Likewise.
27100 * config/sol2-cxx.c : Likewise.
27101 * config/sol2-stubs.c : Likewise.
27102 * config/sol2.c : Likewise.
27103 * config/sparc/sparc-c.c : Likewise.
27104 * config/sparc/sparc.c : Likewise.
27105 * config/spu/spu-c.c : Likewise.
27106 * config/spu/spu.c : Likewise.
27107 * config/stormy16/stormy16.c : Likewise.
27108 * config/tilegx/mul-tables.c : Likewise.
27109 * config/tilegx/tilegx-c.c : Likewise.
27110 * config/tilegx/tilegx.c : Likewise.
27111 * config/tilepro/mul-tables.c : Likewise.
27112 * config/tilepro/tilepro-c.c : Likewise.
27113 * config/tilepro/tilepro.c : Likewise.
27114 * config/v850/v850-c.c : Likewise.
27115 * config/v850/v850.c : Likewise.
27116 * config/vax/vax.c : Likewise.
27117 * config/visium/visium.c : Likewise.
27118 * config/vms/vms-c.c : Likewise.
27119 * config/vms/vms.c : Likewise.
27120 * config/vxworks.c : Likewise.
27121 * config/winnt-c.c : Likewise.
27122 * config/xtensa/xtensa.c : Likewise.
27123
27124 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
27125
27126 PR lto/65378
27127 * ipa-utils.h (warn_types_mismatch): Update prototype.
27128 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
27129 parameters.
27130 (type_mismatch_p): New function.
27131 (warn_types_mismatch): Reorg to work better on non-C++ types.
27132 (odr_types_equivalent_p): Add loc1/loc2 parameters.
27133 (add_type_duplicate): Update.
27134
27135 2015-06-08 Tom de Vries <tom@codesourcery.com>
27136
27137 PR rtl-optimization/66444
27138 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
27139 call_used_regs.
27140
27141 2015-06-08 Richard Biener <rguenther@suse.de>
27142
27143 PR tree-optimization/66422
27144 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
27145 block after inserted gcc_unreachable.
27146
27147 2015-06-08 Nick Clifton <nickc@redhat.com>
27148
27149 * config/rx/rx.c (rx_function_value): Do not promote vector types.
27150 (rx_promote_function_mode): Likewise.
27151 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
27152
27153 2015-06-08 Jakub Jelinek <jakub@redhat.com>
27154
27155 * genattrtab.c (insn_alternatives): Change type from int *
27156 to uint64_t *.
27157 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
27158 (get_attr_value): Change type of num_alt to uint64_t.
27159 (compute_alternative_mask): Change return type from
27160 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
27161 (make_alternative_compare, mk_attr_alt): Change argument type
27162 from int to uint64_t.
27163 (simplify_test_exp): Change type of i from int to uint64_t.
27164 Shift ((uint64_t) 1) instead of 1 up.
27165 (main): Adjust oballocvec first argument from int to uint64_t.
27166 Shift ((uint64_t) 1) instead of 1 up.
27167
27168 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
27169
27170 PR other/65366
27171 * gdbhooks.py: Import sys.
27172 (intptr): New function. Replace int(...) by intptr(...).
27173
27174 2015-06-08 Richard Biener <rguenther@suse.de>
27175
27176 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
27177 adjustment for gaps at the end of a SLP load group properly.
27178 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
27179 all permutations we can generate.
27180 (vect_transform_slp_perm_load): Use the correct group-size.
27181
27182 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
27183
27184 * genmatch.c (expr::gen_transform): For conditions, guess the type
27185 from the second operand.
27186
27187 2015-06-08 Tom de Vries <tom@codesourcery.com>
27188
27189 PR tree-optimization/66442
27190 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
27191 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
27192 if the loop latch is not a singleton. Use
27193 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
27194
27195 2015-06-08 Marek Polacek <polacek@redhat.com>
27196
27197 PR sanitizer/66452
27198 * toplev.c (check_global_declaration): Don't warn about artificial
27199 decls.
27200
27201 2015-06-08 Tom de Vries <tom@codesourcery.com>
27202
27203 PR tree-optimization/66436
27204 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
27205 dump file.
27206 * gimplify.c: Add tree-dump.h include.
27207 (gimplify_function_tree): Dump function to gimple dump file.
27208 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
27209 dump file.
27210
27211 2015-06-08 Tom de Vries <tom@codesourcery.com>
27212
27213 PR tree-optimization/66435
27214 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
27215 function.
27216
27217 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
27218
27219 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
27220 of ptr_type_node to not be ptr_to_node.
27221 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
27222 TREE_TYPE of pointers.
27223 * gimple-expr.c (useless_type_conversion): Reorder the check for
27224 function pointers and TYPE_CANONICAL.
27225
27226 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
27227
27228 PR bootstrap/66319
27229 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
27230 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
27231 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
27232 later.
27233 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
27234 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
27235 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
27236 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
27237 and non iso if unix2003.
27238
27239 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
27240
27241 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
27242
27243 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
27244
27245 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
27246 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
27247 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
27248 except.c, final.c, function.c, gcse-common.c, genemit.c,
27249 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
27250 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
27251 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
27252 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
27253 more derived ones.
27254
27255 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
27256
27257 * combine.c (combine_split_insns): Remove cast.
27258 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
27259 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
27260 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
27261 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
27262 * genemit.c (gen_split): Change return type of generated functions to
27263 rtx_insn.
27264 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
27265 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
27266 gen_peephole2_* functions.
27267 (print_subroutine, main): Likewise.
27268 * recog.c (peephole2_optimize): Remove cast.
27269 (peep2_next_insn): Promote return type to rtx_insn.
27270 * recog.h (peep2_next_insn): Fix prototype.
27271 * rtl.h (try_split, split_insns): Likewise.
27272
27273 2015-06-06 DJ Delorie <dj@redhat.com>
27274
27275 * config/msp430/msp430.c (msp430_asm_integer): Support addition
27276 and subtraction too.
27277
27278 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
27279
27280 PR target/66410
27281 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
27282 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
27283 instead of Snd. Disparage Sid/z alternative with '^'.
27284
27285 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
27286
27287 * dwarf2out.c: Remove deferred_locations*.
27288 (dwarf2_debug_hooks): Add early_finish hook.
27289 Remove global_decl hook.
27290 Add early_global_decl and late_global_decl hook.
27291 New global early_dwarf.
27292 New structure set_early_dwarf.
27293 (output_die): Indicate whether a DIE was generated early
27294 when generating assembly with -dA.
27295 (struct limbo_die_struct): Document created_for field.
27296 Remove file_table_last_lookup.
27297 (remove_AT): Return TRUE if successful.
27298 (remove_child_TAG): Clear die_parent.
27299 (reparent_child): New function abstracted from...
27300 (splice_child_die): ...here.
27301 (new_die): ICE if a DIE ends up in limbo too late.
27302 (check_die): New.
27303 (defer_location): Remove.
27304 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
27305 (fill_variable_array_bounds): New.
27306 (decl_start_label): Call fill_variable_array_bounds.
27307 (gen_formal_parameter_die): Rewrite to reuse previously generated
27308 DIEs.
27309 (gen_subprogram_die): Same.
27310 (gen_variable_die): Same.
27311 (gen_const_die): Same.
27312 (gen_label_die): Same.
27313 (gen_lexical_block_die): Same.
27314 (decl_will_get_specification_p): New.
27315 (local_function_static): New.
27316 (gen_struct_or_union_type_die): Fill in variable-length fields.
27317 (gen_typedef_die): Fill in variable-length typedefs.
27318 (gen_tagged_type_die): Gracefully return on error_mark_node.
27319 Handle re-entrancy.
27320 (gen_type_die_with_usage): Handle variable-length types.
27321 Remove duplicate code for ARRAY_TYPE case.
27322 (process_scope_var): Only process imported modules during early
27323 dwarf.
27324 (dwarf2out_early_global_decl): New.
27325 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
27326 (dwarf2out_type_decl): Set early_dwarf while calling
27327 dwarf2out_decl.
27328 (dwarf2out_decl): Verify that we did not recreate a previously
27329 generated DIE.
27330 Do not return on DECL_EXTERNALs in VAR_DECLs.
27331 Abstract some code to local_function_static.
27332 (lookup_filename): Remove use of file_table_last_lookup.
27333 Gracefully exit on missing file_name.
27334 (dwarf2out_finish): Verify limbo list.
27335 Remove deferred_locations_list use.
27336 Move deferred_asm_name and limbo flushing to...
27337 (dwarf2out_early_finish): ...here. New.
27338 (dwarf2out_c_finalize): Remove set of deferred_location_list,
27339 deferred_asm_name, and file_table_last_lookup.
27340 * cgraph.h (referred_to_p): Add default argument.
27341 * cgraphunit.c (referred_to_p): Add and handle include_self
27342 argument.
27343 (analyze_functions): Add first_time argument.
27344 Call check_global_declaration for all symbols.
27345 Call late_global_decl for nodes for moribund nodes.
27346 (finalize_compilation_unit): Add new argument to
27347 analyze_functions.
27348 Call early_global_decl for functions.
27349 Call early_finish debug hook.
27350 * dbxout.c (dbxout_early_global_decl): New.
27351 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
27352 (dbx_debug_hooks): Add new hooks.
27353 (xcoff_debug_hooks): Same.
27354 * debug.c (do_nothing_debug_hooks): Add early_finish field.
27355 Add early and late debug hooks.
27356 Remove global_decl hook.
27357 * debug.h (struct gcc_debug_hooks): Add early_finish,
27358 early_global_decl, and late_global_decl fields.
27359 Remove global_decl field.
27360 Document gcc_debug_hooks.
27361 * gengtype.c (output_typename): Remove.
27362 * godump.c (go_early_global_decl): New.
27363 (go_late_global_decl): New.
27364 (go_global_decl): Remove.
27365 (dump_go_spec_init): Remove global_decl. Add
27366 {early,late}_global_decl.
27367 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
27368 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
27369 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
27370 (write_global_declarations): Remove.
27371 (global_decl_processing): New.
27372 * langhooks.h (struct lang_hooks_for_decls): Remove
27373 final_write_globals field.
27374 Add post_compilation_parsing_cleanups field.
27375 * passes.c (rest_of_decl_compilation): Call early_global_decl.
27376 * sdbout.c: Add early and late_global_decl hooks. Remove
27377 sdbout_global_decl hook.
27378 Add early_finish field for sdb_debug_hooks.
27379 (sdbout_global_decl): Remove.
27380 (sdbout_early_global_decl): New.
27381 (sdbout_late_global_decl): New.
27382 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
27383 * toplev.c (check_global_declaration): Rename from
27384 check_global_declaration_1.
27385 Adapt to use symtab infrastructure.
27386 (check_global_declarations): Remove.
27387 (emit_debug_global_declarations): Remove.
27388 (compile_file): Remove call to final_write_globals langhook.
27389 Run the actual compilation process.
27390 Perform any post compilation parser cleanups.
27391 Generate late debug info.
27392 * toplev.h (check_global_declaration): New.
27393 (check_global_declaration_1): Remove.
27394 (check_global_declarations): Remove.
27395 (write_global_declarations): Remove.
27396 (emit_debug_global_declarations): Remove.
27397 (global_decl_processing): New.
27398 * tree-core.h (struct tree_block): Add DIE field.
27399 * tree.h (BLOCK_DIE): New.
27400 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
27401 throughout.
27402 (vmsdbgout_early_global_decl): New.
27403 (vmsdbgout_late_global_decl): New.
27404 Add early_finish debug hook field to vmsdbg_debug_hooks.
27405 Remove vmsdbgout_decl to vmsdbgout_function_decl.
27406 Add early and late_global_decl debug hooks.
27407
27408 2015-06-05 Julian Brown <julian@codesourcery.com>
27409 Sandra Loosemore <sandra@codesourcery.com>
27410
27411 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
27412 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
27413 to print-sysroot-suffix.sh script.
27414
27415 2015-06-05 Tom de Vries <tom@codesourcery.com>
27416
27417 merge from gomp4 branch:
27418 2015-05-28 Tom de Vries <tom@codesourcery.com>
27419
27420 PR tree-optimization/65443
27421 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
27422 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
27423 (try_transform_to_exit_first_loop_alt): New function.
27424 (transform_to_exit_first_loop): Use
27425 try_transform_to_exit_first_loop_alt.
27426
27427 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
27428
27429 * builtins.c (expand_builtin_atomic_compare_exchange): Call
27430 emit_cmp_and_jump_insns with the mode of target.
27431
27432 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
27433
27434 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
27435
27436 2015-06-04 DJ Delorie <dj@redhat.com>
27437
27438 * config/msp430/msp430.md (movsi_s): New. Special case for
27439 storing a 20-bit symbol into a 32-bit register.
27440 * config/msp430/msp430.c (msp430_subreg): Add support for it.
27441 * config/msp430/predicates.md (msp430_symbol_operand): New.
27442
27443 2015-06-04 Sriraman Tallam <tmsriram@google.com>
27444
27445 * calls.c (prepare_call_address): Check for noplt
27446 attribute.
27447 * config/i386/i386.c (ix86_expand_call): Check
27448 for noplt attribute.
27449 (ix86_nopic_noplt_attribute_p): New function.
27450 (ix86_output_call_insn): Output indirect call for non-pic
27451 no plt calls.
27452 * doc/extend.texi (noplt): Document new attribute.
27453 * doc/invoke.texi: Document new attribute.
27454
27455 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
27456
27457 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
27458 real.h, and fixed-value.h when included in host source files.
27459 * double-int.h: Remove redundant #includes listed above.
27460 * fixed-value.h: Likewise.
27461 * real.h: Likewise.
27462 * wide-int.h: Likewise.
27463 * inchash.h: Likewise.
27464 * rtl.h: Add some include files When included from a generator file.
27465 * target.h: Remove wide-int.h and insn-modes.h from the include list.
27466 * internal-fn.h: Don't include coretypes.h.
27467 * alias.c: Adjust includes for restructured coretypes.h.
27468 * asan.c: Likewise.
27469 * attribs.c: Likewise.
27470 * auto-inc-dec.c: Likewise.
27471 * auto-profile.c: Likewise.
27472 * bb-reorder.c: Likewise.
27473 * bt-load.c: Likewise.
27474 * builtins.c: Likewise.
27475 * caller-save.c: Likewise.
27476 * calls.c: Likewise.
27477 * ccmp.c: Likewise.
27478 * cfg.c: Likewise.
27479 * cfganal.c: Likewise.
27480 * cfgbuild.c: Likewise.
27481 * cfgcleanup.c: Likewise.
27482 * cfgexpand.c: Likewise.
27483 * cfghooks.c: Likewise.
27484 * cfgloop.c: Likewise.
27485 * cfgloop.h: Likewise.
27486 * cfgloopanal.c: Likewise.
27487 * cfgloopmanip.c: Likewise.
27488 * cfgrtl.c: Likewise.
27489 * cgraph.c: Likewise.
27490 * cgraphbuild.c: Likewise.
27491 * cgraphclones.c: Likewise.
27492 * cgraphunit.c: Likewise.
27493 * cilk-common.c: Likewise.
27494 * combine-stack-adj.c: Likewise.
27495 * combine.c: Likewise.
27496 * compare-elim.c: Likewise.
27497 * convert.c: Likewise.
27498 * coverage.c: Likewise.
27499 * cppbuiltin.c: Likewise.
27500 * cprop.c: Likewise.
27501 * cse.c: Likewise.
27502 * cselib.c: Likewise.
27503 * data-streamer-in.c: Likewise.
27504 * data-streamer-out.c: Likewise.
27505 * data-streamer.c: Likewise.
27506 * dbxout.c: Likewise.
27507 * dce.c: Likewise.
27508 * ddg.c: Likewise.
27509 * debug.c: Likewise.
27510 * df-core.c: Likewise.
27511 * df-problems.c: Likewise.
27512 * df-scan.c: Likewise.
27513 * df.h: Likewise.
27514 * dfp.c: Likewise.
27515 * dojump.c: Likewise.
27516 * dominance.c: Likewise.
27517 * domwalk.c: Likewise.
27518 * double-int.c: Likewise.
27519 * dse.c: Likewise.
27520 * dumpfile.c: Likewise.
27521 * dwarf2asm.c: Likewise.
27522 * dwarf2cfi.c: Likewise.
27523 * dwarf2out.c: Likewise.
27524 * dwarf2out.h: Likewise.
27525 * emit-rtl.c: Likewise.
27526 * et-forest.c: Likewise.
27527 * except.c: Likewise.
27528 * explow.c: Likewise.
27529 * expmed.c: Likewise.
27530 * expr.c: Likewise.
27531 * final.c: Likewise.
27532 * fixed-value.c: Likewise.
27533 * fold-const.c: Likewise.
27534 * function.c: Likewise.
27535 * fwprop.c: Likewise.
27536 * gcc-plugin.h: Likewise.
27537 * gcse.c: Likewise.
27538 * generic-match-head.c: Likewise.
27539 * ggc-page.c: Likewise.
27540 * gimple-builder.c: Likewise.
27541 * gimple-expr.c: Likewise.
27542 * gimple-fold.c: Likewise.
27543 * gimple-iterator.c: Likewise.
27544 * gimple-low.c: Likewise.
27545 * gimple-match-head.c: Likewise.
27546 * gimple-pretty-print.c: Likewise.
27547 * gimple-ssa-isolate-paths.c: Likewise.
27548 * gimple-ssa-strength-reduction.c: Likewise.
27549 * gimple-streamer-in.c: Likewise.
27550 * gimple-streamer-out.c: Likewise.
27551 * gimple-streamer.h: Likewise.
27552 * gimple-walk.c: Likewise.
27553 * gimple.c: Likewise.
27554 * gimplify-me.c: Likewise.
27555 * gimplify.c: Likewise.
27556 * godump.c: Likewise.
27557 * graph.c: Likewise.
27558 * graphite-blocking.c: Likewise.
27559 * graphite-dependences.c: Likewise.
27560 * graphite-interchange.c: Likewise.
27561 * graphite-isl-ast-to-gimple.c: Likewise.
27562 * graphite-optimize-isl.c: Likewise.
27563 * graphite-poly.c: Likewise.
27564 * graphite-scop-detection.c: Likewise.
27565 * graphite-sese-to-poly.c: Likewise.
27566 * graphite.c: Likewise.
27567 * haifa-sched.c: Likewise.
27568 * hooks.h: Likewise.
27569 * hw-doloop.c: Likewise.
27570 * ifcvt.c: Likewise.
27571 * incpath.c: Likewise.
27572 * init-regs.c: Likewise.
27573 * internal-fn.c: Likewise.
27574 * ipa-chkp.c: Likewise.
27575 * ipa-comdats.c: Likewise.
27576 * ipa-cp.c: Likewise.
27577 * ipa-devirt.c: Likewise.
27578 * ipa-icf-gimple.c: Likewise.
27579 * ipa-icf.c: Likewise.
27580 * ipa-inline-analysis.c: Likewise.
27581 * ipa-inline-transform.c: Likewise.
27582 * ipa-inline.c: Likewise.
27583 * ipa-polymorphic-call.c: Likewise.
27584 * ipa-profile.c: Likewise.
27585 * ipa-prop.c: Likewise.
27586 * ipa-pure-const.c: Likewise.
27587 * ipa-ref.c: Likewise.
27588 * ipa-reference.c: Likewise.
27589 * ipa-split.c: Likewise.
27590 * ipa-utils.c: Likewise.
27591 * ipa-visibility.c: Likewise.
27592 * ipa.c: Likewise.
27593 * ira-build.c: Likewise.
27594 * ira-color.c: Likewise.
27595 * ira-conflicts.c: Likewise.
27596 * ira-costs.c: Likewise.
27597 * ira-emit.c: Likewise.
27598 * ira-lives.c: Likewise.
27599 * ira.c: Likewise.
27600 * jump.c: Likewise.
27601 * langhooks.c: Likewise.
27602 * lcm.c: Likewise.
27603 * loop-doloop.c: Likewise.
27604 * loop-init.c: Likewise.
27605 * loop-invariant.c: Likewise.
27606 * loop-iv.c: Likewise.
27607 * loop-unroll.c: Likewise.
27608 * lower-subreg.c: Likewise.
27609 * lra-assigns.c: Likewise.
27610 * lra-coalesce.c: Likewise.
27611 * lra-constraints.c: Likewise.
27612 * lra-eliminations.c: Likewise.
27613 * lra-lives.c: Likewise.
27614 * lra-remat.c: Likewise.
27615 * lra-spills.c: Likewise.
27616 * lra.c: Likewise.
27617 * lto-cgraph.c: Likewise.
27618 * lto-compress.c: Likewise.
27619 * lto-opts.c: Likewise.
27620 * lto-section-in.c: Likewise.
27621 * lto-section-out.c: Likewise.
27622 * lto-streamer-in.c: Likewise.
27623 * lto-streamer-out.c: Likewise.
27624 * lto-streamer.c: Likewise.
27625 * mcf.c: Likewise.
27626 * mode-switching.c: Likewise.
27627 * modulo-sched.c: Likewise.
27628 * omega.c: Likewise.
27629 * omp-low.c: Likewise.
27630 * optabs.c: Likewise.
27631 * opts-global.c: Likewise.
27632 * passes.c: Likewise.
27633 * plugin.c: Likewise.
27634 * postreload-gcse.c: Likewise.
27635 * postreload.c: Likewise.
27636 * predict.c: Likewise.
27637 * print-rtl.c: Likewise.
27638 * print-tree.c: Likewise.
27639 * profile.c: Likewise.
27640 * real.c: Likewise.
27641 * realmpfr.c: Likewise.
27642 * realmpfr.h: Likewise.
27643 * recog.c: Likewise.
27644 * ree.c: Likewise.
27645 * reg-stack.c: Likewise.
27646 * regcprop.c: Likewise.
27647 * reginfo.c: Likewise.
27648 * regrename.c: Likewise.
27649 * regs.h: Likewise.
27650 * regstat.c: Likewise.
27651 * reload.c: Likewise.
27652 * reload1.c: Likewise.
27653 * reorg.c: Likewise.
27654 * resource.c: Likewise.
27655 * rtl-chkp.c: Likewise.
27656 * rtlanal.c: Likewise.
27657 * rtlhooks.c: Likewise.
27658 * sanopt.c: Likewise.
27659 * sched-deps.c: Likewise.
27660 * sched-ebb.c: Likewise.
27661 * sched-rgn.c: Likewise.
27662 * sched-vis.c: Likewise.
27663 * sdbout.c: Likewise.
27664 * sel-sched-dump.c: Likewise.
27665 * sel-sched-ir.c: Likewise.
27666 * sel-sched.c: Likewise.
27667 * sese.c: Likewise.
27668 * shrink-wrap.c: Likewise.
27669 * shrink-wrap.h: Likewise.
27670 * simplify-rtx.c: Likewise.
27671 * stack-ptr-mod.c: Likewise.
27672 * statistics.c: Likewise.
27673 * stmt.c: Likewise.
27674 * stor-layout.c: Likewise.
27675 * store-motion.c: Likewise.
27676 * stringpool.c: Likewise.
27677 * symtab.c: Likewise.
27678 * target-globals.c: Likewise.
27679 * targhooks.c: Likewise.
27680 * toplev.c: Likewise.
27681 * tracer.c: Likewise.
27682 * trans-mem.c: Likewise.
27683 * tree-affine.c: Likewise.
27684 * tree-affine.h: Likewise.
27685 * tree-browser.c: Likewise.
27686 * tree-call-cdce.c: Likewise.
27687 * tree-cfg.c: Likewise.
27688 * tree-cfgcleanup.c: Likewise.
27689 * tree-chkp-opt.c: Likewise.
27690 * tree-chkp.c: Likewise.
27691 * tree-chrec.c: Likewise.
27692 * tree-complex.c: Likewise.
27693 * tree-data-ref.c: Likewise.
27694 * tree-dfa.c: Likewise.
27695 * tree-diagnostic.c: Likewise.
27696 * tree-dump.c: Likewise.
27697 * tree-eh.c: Likewise.
27698 * tree-emutls.c: Likewise.
27699 * tree-if-conv.c: Likewise.
27700 * tree-inline.c: Likewise.
27701 * tree-into-ssa.c: Likewise.
27702 * tree-iterator.c: Likewise.
27703 * tree-loop-distribution.c: Likewise.
27704 * tree-nested.c: Likewise.
27705 * tree-nrv.c: Likewise.
27706 * tree-object-size.c: Likewise.
27707 * tree-outof-ssa.c: Likewise.
27708 * tree-parloops.c: Likewise.
27709 * tree-phinodes.c: Likewise.
27710 * tree-predcom.c: Likewise.
27711 * tree-pretty-print.c: Likewise.
27712 * tree-pretty-print.h: Likewise.
27713 * tree-profile.c: Likewise.
27714 * tree-scalar-evolution.c: Likewise.
27715 * tree-sra.c: Likewise.
27716 * tree-ssa-address.c: Likewise.
27717 * tree-ssa-alias.c: Likewise.
27718 * tree-ssa-ccp.c: Likewise.
27719 * tree-ssa-coalesce.c: Likewise.
27720 * tree-ssa-copy.c: Likewise.
27721 * tree-ssa-copyrename.c: Likewise.
27722 * tree-ssa-dce.c: Likewise.
27723 * tree-ssa-dom.c: Likewise.
27724 * tree-ssa-dse.c: Likewise.
27725 * tree-ssa-forwprop.c: Likewise.
27726 * tree-ssa-ifcombine.c: Likewise.
27727 * tree-ssa-live.c: Likewise.
27728 * tree-ssa-loop-ch.c: Likewise.
27729 * tree-ssa-loop-im.c: Likewise.
27730 * tree-ssa-loop-ivcanon.c: Likewise.
27731 * tree-ssa-loop-ivopts.c: Likewise.
27732 * tree-ssa-loop-manip.c: Likewise.
27733 * tree-ssa-loop-niter.c: Likewise.
27734 * tree-ssa-loop-prefetch.c: Likewise.
27735 * tree-ssa-loop-unswitch.c: Likewise.
27736 * tree-ssa-loop.c: Likewise.
27737 * tree-ssa-loop.h: Likewise.
27738 * tree-ssa-math-opts.c: Likewise.
27739 * tree-ssa-operands.c: Likewise.
27740 * tree-ssa-phiopt.c: Likewise.
27741 * tree-ssa-phiprop.c: Likewise.
27742 * tree-ssa-pre.c: Likewise.
27743 * tree-ssa-propagate.c: Likewise.
27744 * tree-ssa-reassoc.c: Likewise.
27745 * tree-ssa-sccvn.c: Likewise.
27746 * tree-ssa-scopedtables.c: Likewise.
27747 * tree-ssa-sink.c: Likewise.
27748 * tree-ssa-strlen.c: Likewise.
27749 * tree-ssa-structalias.c: Likewise.
27750 * tree-ssa-tail-merge.c: Likewise.
27751 * tree-ssa-ter.c: Likewise.
27752 * tree-ssa-threadedge.c: Likewise.
27753 * tree-ssa-threadupdate.c: Likewise.
27754 * tree-ssa-uncprop.c: Likewise.
27755 * tree-ssa-uninit.c: Likewise.
27756 * tree-ssa.c: Likewise.
27757 * tree-ssanames.c: Likewise.
27758 * tree-stdarg.c: Likewise.
27759 * tree-streamer-in.c: Likewise.
27760 * tree-streamer-out.c: Likewise.
27761 * tree-streamer.c: Likewise.
27762 * tree-switch-conversion.c: Likewise.
27763 * tree-tailcall.c: Likewise.
27764 * tree-vect-data-refs.c: Likewise.
27765 * tree-vect-generic.c: Likewise.
27766 * tree-vect-loop-manip.c: Likewise.
27767 * tree-vect-loop.c: Likewise.
27768 * tree-vect-patterns.c: Likewise.
27769 * tree-vect-slp.c: Likewise.
27770 * tree-vect-stmts.c: Likewise.
27771 * tree-vectorizer.c: Likewise.
27772 * tree-vrp.c: Likewise.
27773 * tree.c: Likewise.
27774 * tsan.c: Likewise.
27775 * ubsan.c: Likewise.
27776 * valtrack.c: Likewise.
27777 * value-prof.c: Likewise.
27778 * var-tracking.c: Likewise.
27779 * varasm.c: Likewise.
27780 * varpool.c: Likewise.
27781 * vmsdbgout.c: Likewise.
27782 * vtable-verify.c: Likewise.
27783 * web.c: Likewise.
27784 * wide-int-print.cc: Likewise.
27785 * wide-int-print.h: Likewise.
27786 * wide-int.cc: Likewise.
27787 * xcoffout.c: Likewise.
27788 * config/aarch64/aarch64-builtins.c: Likewise.
27789 * config/aarch64/aarch64.c: Likewise.
27790 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
27791 * config/alpha/alpha.c: Likewise.
27792 * config/arc/arc.c: Likewise.
27793 * config/arm/aarch-common.c: Likewise.
27794 * config/arm/arm-builtins.c: Likewise.
27795 * config/arm/arm-c.c: Likewise.
27796 * config/arm/arm.c: Likewise.
27797 * config/avr/avr-c.c: Likewise.
27798 * config/avr/avr-log.c: Likewise.
27799 * config/avr/avr.c: Likewise.
27800 * config/bfin/bfin.c: Likewise.
27801 * config/c6x/c6x.c: Likewise.
27802 * config/cr16/cr16.c: Likewise.
27803 * config/cris/cris.c: Likewise.
27804 * config/darwin-c.c: Likewise.
27805 * config/darwin.c: Likewise.
27806 * config/default-c.c: Likewise.
27807 * config/epiphany/epiphany.c: Likewise.
27808 * config/epiphany/mode-switch-use.c: Likewise.
27809 * config/epiphany/resolve-sw-modes.c: Likewise.
27810 * config/fr30/fr30.c: Likewise.
27811 * config/frv/frv.c: Likewise.
27812 * config/ft32/ft32.c: Likewise.
27813 * config/glibc-c.c: Likewise.
27814 * config/h8300/h8300.c: Likewise.
27815 * config/i386/i386-c.c: Likewise.
27816 * config/i386/i386.c: Likewise.
27817 * config/i386/msformat-c.c: Likewise.
27818 * config/i386/winnt-cxx.c: Likewise.
27819 * config/i386/winnt-stubs.c: Likewise.
27820 * config/i386/winnt.c: Likewise.
27821 * config/ia64/ia64-c.c: Likewise.
27822 * config/ia64/ia64.c: Likewise.
27823 * config/iq2000/iq2000.c: Likewise.
27824 * config/lm32/lm32.c: Likewise.
27825 * config/m32c/m32c-pragma.c: Likewise.
27826 * config/m32c/m32c.c: Likewise.
27827 * config/m32r/m32r.c: Likewise.
27828 * config/m68k/m68k.c: Likewise.
27829 * config/mcore/mcore.c: Likewise.
27830 * config/mep/mep-pragma.c: Likewise.
27831 * config/mep/mep.c: Likewise.
27832 * config/microblaze/microblaze-c.c: Likewise.
27833 * config/microblaze/microblaze.c: Likewise.
27834 * config/mips/mips.c: Likewise.
27835 * config/mmix/mmix.c: Likewise.
27836 * config/mn10300/mn10300.c: Likewise.
27837 * config/moxie/moxie.c: Likewise.
27838 * config/msp430/msp430-c.c: Likewise.
27839 * config/msp430/msp430.c: Likewise.
27840 * config/nds32/nds32-cost.c: Likewise.
27841 * config/nds32/nds32-fp-as-gp.c: Likewise.
27842 * config/nds32/nds32-intrinsic.c: Likewise.
27843 * config/nds32/nds32-isr.c: Likewise.
27844 * config/nds32/nds32-md-auxiliary.c: Likewise.
27845 * config/nds32/nds32-memory-manipulation.c: Likewise.
27846 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
27847 * config/nds32/nds32-predicates.c: Likewise.
27848 * config/nds32/nds32.c: Likewise.
27849 * config/nios2/nios2.c: Likewise.
27850 * config/nvptx/nvptx.c: Likewise.
27851 * config/pa/pa.c: Likewise.
27852 * config/pdp11/pdp11.c: Likewise.
27853 * config/rl78/rl78-c.c: Likewise.
27854 * config/rl78/rl78.c: Likewise.
27855 * config/rs6000/rs6000-c.c: Likewise.
27856 * config/rs6000/rs6000.c: Likewise.
27857 * config/rx/rx.c: Likewise.
27858 * config/s390/s390-c.c: Likewise.
27859 * config/s390/s390.c: Likewise.
27860 * config/sh/sh-c.c: Likewise.
27861 * config/sh/sh-mem.cc: Likewise.
27862 * config/sh/sh.c: Likewise.
27863 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
27864 * config/sh/sh_treg_combine.cc: Likewise.
27865 * config/sol2-c.c: Likewise.
27866 * config/sol2-cxx.c: Likewise.
27867 * config/sol2-stubs.c: Likewise.
27868 * config/sol2.c: Likewise.
27869 * config/sparc/sparc-c.c: Likewise.
27870 * config/sparc/sparc.c: Likewise.
27871 * config/spu/spu-c.c: Likewise.
27872 * config/spu/spu.c: Likewise.
27873 * config/stormy16/stormy16.c: Likewise.
27874 * config/tilegx/mul-tables.c: Likewise.
27875 * config/tilegx/tilegx-c.c: Likewise.
27876 * config/tilegx/tilegx.c: Likewise.
27877 * config/tilepro/mul-tables.c: Likewise.
27878 * config/tilepro/tilepro-c.c: Likewise.
27879 * config/tilepro/tilepro.c: Likewise.
27880 * config/v850/v850-c.c: Likewise.
27881 * config/v850/v850.c: Likewise.
27882 * config/vax/vax.c: Likewise.
27883 * config/visium/visium.c: Likewise.
27884 * config/vms/vms-c.c: Likewise.
27885 * config/vms/vms.c: Likewise.
27886 * config/vxworks.c: Likewise.
27887 * config/winnt-c.c: Likewise.
27888 * config/xtensa/xtensa.c: Likewise.
27889 * common/config/bfin/bfin-common.c: Likewise.
27890
27891 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
27892
27893 * tree.h (tree_code_for_canonical_type_merging): New function.
27894 * tree.c (gimple_canonical_types_compatible_p): Use
27895 tree_code_for_canonical_type_merging..
27896
27897 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27898
27899 PR c++/66192
27900 PR target/66200
27901 * doc/tm.texi: Regenerate.
27902 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
27903 * target.def (TARGET_RELAXED_ORDERING): Likewise.
27904 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
27905 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
27906 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
27907 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
27908 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
27909 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
27910 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
27911
27912 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27913
27914 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
27915 register fma steering pass.
27916 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
27917 AARCH64_TUNE_FMA_STEERING.
27918
27919 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
27920
27921 * tree.c (verify_type_variant): Verify that type and variant is
27922 compatible.
27923 (gimple_canonical_types_compatible_p): Look for main variants.
27924
27925 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
27926
27927 * config.gcc (powerpc*-*-*): Add support for a new configure
27928 option --with-advance-toolchain=<xxx> which overrides using the
27929 default header files, libraries and dynamic linker.
27930
27931 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
27932 specs to support the configure --with-advance-toolchain=<xxx>
27933 option.
27934 (INCLUDE_EXTRA_SPEC): Likewise.
27935 (LINK_OS_EXTRA_SPEC32): Likewise.
27936 (LINK_OK_EXTRA_SPEC64): Likewise.
27937 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
27938 (DYNAMIC_LINKER_PREFIX): Likewise.
27939 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
27940 toolchain support.
27941 (GLIBC_DYNAMIC_LINKER32): Likewise.
27942 (GLIBC_DYNAMIC_LINKER64): Likewise.
27943 (LINK_OS_LINUX_SPEC32): Likewise.
27944 (LINK_OS_LINUX_SPEC64): Likewise.
27945
27946 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
27947 configuration option.
27948
27949 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
27950
27951 PR target/66275
27952 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
27953 to determine current function ABI.
27954 (ix86_function_value_regno_p): Ditto.
27955
27956 2015-06-03 Martin Liska <mliska@suse.cz>
27957
27958 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
27959 * bitmap.h (struct bitmap_usage): Likewise.
27960 * ggc-common.c (struct ggc_usage): Likewise.
27961 * mem-stats.h (struct mem_location): Likewise.
27962 (struct mem_usage): Likewise.
27963 * vec.c (struct vec_usage): Likewise.
27964
27965 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
27966
27967 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
27968 -Bsymbolic.
27969
27970 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
27971
27972 * doc/plugins.texi (enum plugin_event): New event.
27973 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
27974 and PLUGIN_FINISH_FUNCTION.
27975 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
27976 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
27977
27978 2015-06-03 Richard Biener <rguenther@suse.de>
27979
27980 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
27981 compute GROUP_GAP for the first element.
27982 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
27983 on in-group gaps.
27984
27985 2015-06-03 Nick Clifton <nickc@redhat.com>
27986
27987 * config/rl78/rl78-real.md: Add peepholes to avoid a register
27988 copy when calling a function.
27989 * config/rl78/rl78.c (need_to_save): Do not push the frame
27990 pointer in an interrupt handler prologue if it is never used.
27991
27992 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27993
27994 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
27995
27996 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
27997
27998 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
27999 reference when cloning alias node.
28000
28001 2015-06-03 Martin Liska <mliska@suse.cz>
28002
28003 * alloc-pool.h (struct pool_usage): Correct space padding.
28004 * ggc-page.c (ggc_print_statistics): Align columns in a report.
28005 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
28006 * tree.c (dump_tree_statistics): Align columns in a report.
28007
28008 2015-06-03 Martin Liska <mliska@suse.cz>
28009
28010 * alloc-pool.c (allocate_pool_descriptor): Remove.
28011 (struct pool_output_info): Likewise.
28012 (print_alloc_pool_statistics): Likewise.
28013 (dump_alloc_pool_statistics): Likewise.
28014 * alloc-pool.h (struct pool_usage): New struct.
28015 (pool_allocator::initialize): Change usage of memory statistics
28016 to a new interface.
28017 (pool_allocator::release): Likewise.
28018 (pool_allocator::allocate): Likewise.
28019 (pool_allocator::remove): Likewise.
28020 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
28021 for a pool allocator.
28022 * mem-stats.h (struct mem_location): Add new ctor.
28023 (struct mem_usage): Add counter for number of
28024 instances.
28025 (mem_alloc_description::register_descriptor): New overload of
28026 * mem-stats.h (mem_location::to_string): New function.
28027 * bitmap.h (struct bitmap_usage): Use this new function.
28028 * ggc-common.c (struct ggc_usage): Likewise.
28029 the function.
28030
28031 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
28032
28033 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
28034 of GCC_INSN_FLAGS_H block.
28035
28036 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
28037
28038 * explow.c (plus_constant): Update check after force_const_mem call
28039 to see if the value returned is not a NULL_RTX.
28040
28041 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
28042
28043 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
28044 remove instumentation thunks calling reachable functions.
28045 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
28046 * lto/lto-partition.c (privatize_symbol_name_1): New.
28047 (privatize_symbol_name): Privatize both decl and orig_decl
28048 names for instrumented functions.
28049 * cgraph.c (cgraph_node::verify_node): Add transparent
28050 alias chain check for instrumented node.
28051
28052 2015-06-03 Marek Polacek <polacek@redhat.com>
28053
28054 PR c/64223
28055 PR c/29358
28056 * tree.c (attribute_value_equal): Handle attribute format.
28057 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
28058
28059 2015-06-03 Richard Biener <rguenther@suse.de>
28060
28061 PR tree-optimization/63916
28062 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
28063 Forward-propagate non-invariant addresses by splicing their
28064 reference ops if the result isn't going to be used by PRE.
28065 (vn_reference_lookup_3): Remove pointless assert.
28066
28067 2015-06-03 Richard Biener <rguenther@suse.de>
28068
28069 PR tree-optimization/66375
28070 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
28071 add to the evolution before following SSA edges.
28072
28073 2015-06-03 Bin Cheng <bin.cheng@arm.com>
28074
28075 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
28076 (dump_use, dump_cand, find_induction_variables): Pass new argument
28077 to dump_iv.
28078 (record_use): Preserve the ssa name information in IV.
28079
28080 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
28081
28082 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
28083 NO_MODE_TEST.
28084 (add_mode_tests): Don't add mode tests if the predicate only
28085 accepts scalar constant integers. Otherwise, allow the mode
28086 of "op" to be VOIDmode if the predicate does accept such integers.
28087
28088 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
28089
28090 PR target/66258
28091 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
28092 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
28093 (aarch64_secondary_reload): Likewise
28094 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
28095 to !TARGET_FLOAT.
28096 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
28097 Likewise.
28098
28099 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
28100 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28101
28102 PR target/65768
28103 * cprop.c (try_replace_reg): Check cost of constants before propagating.
28104
28105 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
28106
28107 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
28108 provide access to the IBM extended double floating point mode if
28109 long double is IEEE 128-bit floating point.
28110 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
28111 point if long double is the IBM extended double type.
28112
28113 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
28114 enable adding IEEE 128-bit floating point support.
28115 (-mfloat128-software): Likewise.
28116 (-mfloat128-sw): Likewise.
28117
28118 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
28119 128-bit floating point types to occupy any register if
28120 -mlong-double-64. Do not allow use of IFmode/KFmode unless
28121 -mfloat128-software is enabled.
28122 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
28123 support.
28124 (rs6000_option_override_internal): Add -mfloat128-* support.
28125 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
28126
28127 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
28128 and float128 type nodes.
28129 (ieee128_float_type_node): Likewise.
28130 (ibm128_float_type_node): Likewise.
28131
28132 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28133
28134 PR target/66136
28135 * config/aarch64/geniterators.sh: Rewrite in awk.
28136
28137 2015-06-02 Martin Liska <mliska@suse.cz>
28138
28139 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
28140 values to avoid -Wmaybe-uninitialized errors.
28141
28142 2015-06-02 Richard Biener <rguenther@suse.de>
28143
28144 PR debug/65549
28145 * dwarf2out.c (lookup_context_die): New function.
28146 (resolve_addr): Avoid forcing a full DIE for the
28147 target of a DW_TAG_GNU_call_site during late compilation.
28148 Instead create a stub DIE without a type if we have a
28149 context DIE present.
28150
28151 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
28152
28153 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
28154
28155 2015-06-02 Bin Cheng <bin.cheng@arm.com>
28156
28157 PR tree-optimization/48052
28158 * cfgloop.h (struct control_iv): New.
28159 (struct loop): New field control_ivs.
28160 * tree-ssa-loop-niter.c : Include "stor-layout.h".
28161 (number_of_iterations_lt): Set no_overflow information.
28162 (number_of_iterations_exit): Init control iv in niter struct.
28163 (record_control_iv): New.
28164 (estimate_numbers_of_iterations_loop): Call record_control_iv.
28165 (loop_exits_before_overflow): New. Interface factored out of
28166 scev_probably_wraps_p.
28167 (scev_probably_wraps_p): Factor loop niter related code into
28168 loop_exits_before_overflow.
28169 (free_numbers_of_iterations_estimates_loop): Free control ivs.
28170 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
28171
28172 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
28173
28174 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
28175 the target doesn't belong to the current function.
28176
28177 2015-06-02 Marek Polacek <polacek@redhat.com>
28178
28179 PR middle-end/66345
28180 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
28181 get_maxval_strlen does not produce an INTEGER_CST.
28182
28183 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
28184
28185 * config/arc/constraints.md: Use lower-case names in match_code.
28186 * config/mmix/constraints.md: Likewise.
28187
28188 2015-06-02 Richard Biener <rguenther@suse.de>
28189
28190 PR tree-optimization/65961
28191 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
28192 check and clarify dump message.
28193 (vect_build_slp_tree): If all children are built up from scalars
28194 build up the parent from scalars instead.
28195 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
28196
28197 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
28198
28199 PR other/65366
28200 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
28201 instead of print ... .
28202
28203 2015-06-02 Alan Modra <amodra@gmail.com>
28204
28205 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
28206 2014-08-11 change.
28207
28208 2015-06-02 Bin Cheng <bin.cheng@arm.com>
28209
28210 PR tree-optimization/52563
28211 PR tree-optimization/62173
28212 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
28213 (alloc_iv, set_iv): New parameter.
28214 (determine_biv_step): Delete.
28215 (find_bivs): Inline original determine_biv_step. Pass new
28216 argument to set_iv.
28217 (idx_find_step): Use no_overflow information for conversion.
28218 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
28219 resolve_mixers handle folded_casts.
28220 (instantiate_scev_name): Change bool parameter to bool pointer.
28221 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
28222 (instantiate_array_ref, instantiate_scev_not): Ditto.
28223 (instantiate_scev_3, instantiate_scev_2): Ditto.
28224 (instantiate_scev_1, instantiate_scev_r): Ditto.
28225 (instantiate_scev_convert, ): Change parameter. Pass argument
28226 to chrec_convert_aggressive.
28227 (instantiate_scev): Change argument.
28228 (resolve_mixers): New parameter and set it.
28229 (scev_const_prop): New argument.
28230 * tree-scalar-evolution.h (resolve_mixers): New parameter.
28231 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
28232 of chrec_conert_1.
28233 (chrec_convert): New parameter. Move definition below.
28234 (chrec_convert_aggressive): New parameter and set it. Call
28235 convert_affine_scev.
28236 * tree-chrec.h (chrec_convert): New parameter.
28237 (chrec_convert_aggressive): Ditto.
28238
28239 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
28240
28241 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
28242 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
28243 the LHS of a no-return call if its type has variable size.
28244 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
28245 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
28246
28247 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
28248
28249 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
28250 * config.in: Regenerate.
28251
28252 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
28253
28254 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
28255 consecutive accesses within outer-loop with force_vectorize
28256 for references with zero step in inner-loop.
28257
28258 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
28259
28260 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
28261 rather than from gcc/build directory.
28262
28263 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
28264
28265 PR target/65697
28266 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
28267 for __sync memory models, emit initial loads and final barriers as
28268 appropriate.
28269
28270 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
28271
28272 PR target/65697
28273 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
28274 (aarch64_split_atomic_op): Check for __sync memory models, emit
28275 appropriate initial loads and final barriers.
28276
28277 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
28278
28279 * Makefile.in: Fix gcov dependencies that should
28280 not point to a build folder.
28281
28282 2015-06-01 Richard Biener <rguenther@suse.de>
28283
28284 Revert
28285 2015-05-29 Richard Biener <rguenther@suse.de>
28286
28287 PR tree-optimization/66314
28288 * tree-ssa-threadupdate.c (create_block_for_threading): Add
28289 parameter that says which loop the new block belongs to.
28290 (ssa_create_duplicates): Blocks duplicated for the threaded
28291 path belong to the loop of the thread destination.
28292
28293 2015-06-01 Martin Liska <mliska@suse.cz>
28294
28295 * sched-deps.c: Include pool-alloc.h before
28296 cselib.h header file is included.
28297
28298 2015-06-01 Richard Biener <rguenther@suse.de>
28299
28300 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
28301 functions.
28302
28303 2015-06-01 Martin Liska <mliska@suse.cz>
28304
28305 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
28306 a function local variable.
28307
28308 2015-06-01 Martin Liska <mliska@suse.cz>
28309
28310 * alloc-pool.c (create_alloc_pool): Remove.
28311 (empty_alloc_pool): Likewise.
28312 (free_alloc_pool): Likewise.
28313 (free_alloc_pool_if_empty): Likewise.
28314 (pool_alloc): Likewise.
28315 (pool_free): Likewise.
28316 * alloc-pool.h: Remove old declarations.
28317
28318 2015-06-01 Martin Liska <mliska@suse.cz>
28319
28320 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
28321 (ira_create_object): Likewise.
28322 (ira_create_allocno): Likewise.
28323 (ira_create_live_range): Likewise.
28324 (copy_live_range): Likewise.
28325 (ira_finish_live_range): Likewise.
28326 (ira_free_allocno_costs): Likewise.
28327 (finish_allocno): Likewise.
28328 (finish_allocnos): Likewise.
28329 (initiate_prefs): Likewise.
28330 (ira_create_pref): Likewise.
28331 (finish_pref): Likewise.
28332 (finish_prefs): Likewise.
28333 (initiate_copies): Likewise.
28334 (ira_create_copy): Likewise.
28335 (finish_copy): Likewise.
28336 (finish_copies): Likewise.
28337 (finish_prefs): Likewise.
28338
28339 2015-06-01 Martin Liska <mliska@suse.cz>
28340
28341 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
28342 (allocate_and_init_ipcp_value): Likewise.
28343 (ipcp_lattice::add_value): Likewise.
28344 (merge_agg_lats_step): Likewise.
28345 (ipcp_driver): Likewise.
28346 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
28347 (ipa_free_all_structures_after_iinln): Likewise.
28348 * ipa-prop.h: Likewise.
28349
28350 2015-06-01 Martin Liska <mliska@suse.cz>
28351
28352 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
28353 pool allocator.
28354 (set_hint_predicate): Likewise.
28355 (inline_summary_alloc): Likewise.
28356 (reset_inline_edge_summary): Likewise.
28357 (reset_inline_summary): Likewise.
28358 (set_cond_stmt_execution_predicate): Likewise.
28359 (set_switch_stmt_execution_predicate): Likewise.
28360 (compute_bb_predicates): Likewise.
28361 (estimate_function_body_sizes): Likewise.
28362 (inline_free_summary): Likewise.
28363
28364 2015-06-01 Martin Liska <mliska@suse.cz>
28365
28366 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
28367 (ipa_edge_duplication_hook): Likewise.
28368 (ipa_free_all_structures_after_ipa_cp): Likewise.
28369 (ipa_free_all_structures_after_iinln): Likewise.
28370
28371 2015-06-01 Martin Liska <mliska@suse.cz>
28372
28373 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
28374 (ipa_profile_generate_summary): Likewise.
28375 (ipa_profile_read_summary): Likewise.
28376 (ipa_profile): Likewise.
28377
28378 2015-06-01 Martin Liska <mliska@suse.cz>
28379
28380 * tree-ssa-structalias.c (new_var_info): Use new type-based
28381 pool allocator.
28382 (new_constraint): Likewise.
28383 (init_alias_vars): Likewise.
28384 (delete_points_to_sets): Likewise.
28385
28386 2015-06-01 Martin Liska <mliska@suse.cz>
28387
28388 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
28389 (free_strinfo): Likewise.
28390 (pass_strlen::execute): Likewise.
28391
28392 2015-06-01 Martin Liska <mliska@suse.cz>
28393
28394 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
28395 pool allocator.
28396 (vn_reference_insert_pieces): Likewise.
28397 (vn_phi_insert): Likewise.
28398 (visit_reference_op_call): Likewise.
28399 (copy_phi): Likewise.
28400 (copy_reference): Likewise.
28401 (process_scc): Likewise.
28402 (allocate_vn_table): Likewise.
28403 (free_vn_table): Likewise.
28404
28405 2015-06-01 Martin Liska <mliska@suse.cz>
28406
28407 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
28408 pool allocator.
28409 (add_repeat_to_ops_vec): Likewise.
28410 (get_ops): Likewise.
28411 (maybe_optimize_range_tests): Likewise.
28412 (init_reassoc): Likewise.
28413 (fini_reassoc): Likewise.
28414
28415 2015-06-01 Martin Liska <mliska@suse.cz>
28416
28417 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
28418 pool allocator.
28419 (bitmap_set_new): Likewise.
28420 (get_or_alloc_expr_for_constant): Likewise.
28421 (get_or_alloc_expr_for): Likewise.
28422 (phi_translate_1): Likewise.
28423 (compute_avail): Likewise.
28424 (init_pre): Likewise.
28425 (fini_pre): Likewise.
28426
28427 2015-06-01 Martin Liska <mliska@suse.cz>
28428
28429 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
28430 (delete_dep_node): Likewise.
28431 (create_deps_list): Likewise.
28432 (free_deps_list): Likewise.
28433 (sched_deps_init): Likewise.
28434 (sched_deps_finish): Likewise.
28435
28436 2015-06-01 Martin Liska <mliska@suse.cz>
28437
28438 * regcprop.c (free_debug_insn_changes): Use new type-based
28439 pool allocator.
28440 (replace_oldest_value_reg): Likewise.
28441 (pass_cprop_hardreg::execute): Likewise.
28442
28443 2015-06-01 Martin Liska <mliska@suse.cz>
28444
28445 * ira-build.c (initiate_cost_vectors): Use new type-based
28446 pool allocator.
28447 (ira_allocate_cost_vector): Likewise.
28448 (ira_free_cost_vector): Likewise.
28449 (finish_cost_vectors): Likewise.
28450
28451 2015-06-01 Martin Liska <mliska@suse.cz>
28452
28453 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
28454 pool allocator.
28455 (free_sched_pools): Likewise.
28456 * sel-sched-ir.h (_list_alloc): Likewise.
28457 (_list_remove): Likewise.
28458
28459 2015-06-01 Martin Liska <mliska@suse.cz>
28460
28461 * stmt.c (add_case_node): Use new type-based pool allocator.
28462 (expand_case): Likewise.
28463 (expand_sjlj_dispatch_table): Likewise.
28464
28465 2015-06-01 Martin Liska <mliska@suse.cz>
28466
28467 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
28468 (free_bb): Likewise.
28469 (pass_cse_reciprocals::execute): Likewise.
28470
28471 2015-06-01 Martin Liska <mliska@suse.cz>
28472
28473 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
28474 (sra_deinitialize) Likewise.
28475 (create_access_1) Likewise.
28476 (build_accesses_from_assign) Likewise.
28477 (create_artificial_child_access) Likewise.
28478
28479 2015-06-01 Martin Liska <mliska@suse.cz>
28480
28481 * dse.c (get_group_info):Use new type-based pool allocator.
28482 (dse_step0) Likewise.
28483 (free_store_info) Likewise.
28484 (delete_dead_store_insn) Likewise.
28485 (free_read_records) Likewise.
28486 (record_store) Likewise.
28487 (replace_read) Likewise.
28488 (check_mem_read_rtx) Likewise.
28489 (scan_insn) Likewise.
28490 (dse_step1) Likewise.
28491 (dse_step7) Likewise.
28492
28493 2015-06-01 Martin Liska <mliska@suse.cz>
28494
28495 * df-scan.c (struct df_scan_problem_data):Use new type-based
28496 pool allocator.
28497 (df_scan_free_internal) Likewise.
28498 (df_scan_alloc) Likewise.
28499 (df_grow_reg_info) Likewise.
28500 (df_free_ref) Likewise.
28501 (df_insn_create_insn_record) Likewise.
28502 (df_mw_hardreg_chain_delete) Likewise.
28503 (df_insn_info_delete) Likewise.
28504 (df_free_collection_rec) Likewise.
28505 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
28506 (df_sort_and_compress_mws) Likewise.
28507 (df_ref_create_structure) Likewise.
28508 (df_ref_record) Likewise.
28509
28510 2015-06-01 Martin Liska <mliska@suse.cz>
28511
28512 * df-problems.c (df_chain_create):Use new type-based pool allocator.
28513 (df_chain_unlink_1) Likewise.
28514 (df_chain_unlink) Likewise.
28515 (df_chain_remove_problem) Likewise.
28516 (df_chain_alloc) Likewise.
28517 (df_chain_free) Likewise.
28518 * df.h (struct dataflow) Likewise.
28519
28520 2015-06-01 Martin Liska <mliska@suse.cz>
28521
28522 * cselib.c (new_elt_list):Use new type-based pool allocator.
28523 (new_elt_loc_list) Likewise.
28524 (unchain_one_elt_list) Likewise.
28525 (unchain_one_elt_loc_list) Likewise.
28526 (unchain_one_value) Likewise.
28527 (new_cselib_val) Likewise.
28528 (cselib_init) Likewise.
28529 (cselib_finish) Likewise.
28530
28531 2015-06-01 Martin Liska <mliska@suse.cz>
28532
28533 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
28534 (sh_reorg) Likewise.
28535
28536 2015-06-01 Martin Liska <mliska@suse.cz>
28537
28538 * cfg.c (initialize_original_copy_tables):Use new type-based
28539 pool allocator.
28540 (free_original_copy_tables) Likewise.
28541 (copy_original_table_clear) Likewise.
28542 (copy_original_table_set) Likewise.
28543
28544 2015-06-01 Martin Liska <mliska@suse.cz>
28545
28546 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
28547 pool allocator.
28548 (asan_mem_ref_new) Likewise.
28549 (free_mem_ref_resources) Likewise.
28550
28551 2015-06-01 Martin Liska <mliska@suse.cz>
28552
28553 * var-tracking.c (variable_htab_free):Use new type-based
28554 pool allocator.
28555 (attrs_list_clear) Likewise.
28556 (attrs_list_insert) Likewise.
28557 (attrs_list_copy) Likewise.
28558 (shared_hash_unshare) Likewise.
28559 (shared_hash_destroy) Likewise.
28560 (unshare_variable) Likewise.
28561 (var_reg_delete_and_set) Likewise.
28562 (var_reg_delete) Likewise.
28563 (var_regno_delete) Likewise.
28564 (drop_overlapping_mem_locs) Likewise.
28565 (variable_union) Likewise.
28566 (insert_into_intersection) Likewise.
28567 (canonicalize_values_star) Likewise.
28568 (variable_merge_over_cur) Likewise.
28569 (dataflow_set_merge) Likewise.
28570 (remove_duplicate_values) Likewise.
28571 (variable_post_merge_new_vals) Likewise.
28572 (dataflow_set_preserve_mem_locs) Likewise.
28573 (dataflow_set_remove_mem_locs) Likewise.
28574 (variable_from_dropped) Likewise.
28575 (variable_was_changed) Likewise.
28576 (set_slot_part) Likewise.
28577 (clobber_slot_part) Likewise.
28578 (delete_slot_part) Likewise.
28579 (loc_exp_insert_dep) Likewise.
28580 (notify_dependents_of_changed_value) Likewise.
28581 (emit_notes_for_differences_1) Likewise.
28582 (vt_emit_notes) Likewise.
28583 (vt_initialize) Likewise.
28584 (vt_finalize) Likewise.
28585
28586 2015-06-01 Martin Liska <mliska@suse.cz>
28587
28588 * ira-color.c (init_update_cost_records):Use new type-based
28589 pool allocator.
28590 (get_update_cost_record) Likewise.
28591 (free_update_cost_record_list) Likewise.
28592 (finish_update_cost_records) Likewise.
28593 (initiate_cost_update) Likewise.
28594
28595 2015-06-01 Martin Liska <mliska@suse.cz>
28596
28597 * lra.c (init_insn_regs): Use new type-based pool allocator.
28598 (new_insn_reg) Likewise.
28599 (free_insn_reg) Likewise.
28600 (free_insn_regs) Likewise.
28601 (finish_insn_regs) Likewise.
28602 (init_insn_recog_data) Likewise.
28603 (init_reg_info) Likewise.
28604 (finish_reg_info) Likewise.
28605 (lra_free_copies) Likewise.
28606 (lra_create_copy) Likewise.
28607 (invalidate_insn_data_regno_info) Likewise.
28608
28609 2015-06-01 Martin Liska <mliska@suse.cz>
28610
28611 * lra-lives.c (free_live_range): Use new type-based pool allocator.
28612 (free_live_range_list) Likewise.
28613 (create_live_range) Likewise.
28614 (copy_live_range) Likewise.
28615 (lra_merge_live_ranges) Likewise.
28616 (remove_some_program_points_and_update_live_ranges) Likewise.
28617 (lra_live_ranges_init) Likewise.
28618 (lra_live_ranges_finish) Likewise.
28619
28620 2015-06-01 Martin Liska <mliska@suse.cz>
28621
28622 * et-forest.c (et_new_occ): Use new type-based pool allocator.
28623 (et_new_tree): Likewise.
28624 (et_free_tree): Likewise.
28625 (et_free_tree_force): Likewise.
28626 (et_free_pools): Likewise.
28627 (et_split): Likewise.
28628
28629 2015-06-01 Martin Liska <mliska@suse.cz>
28630
28631 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
28632 to header file.
28633 * alloc-pool.h (pool_allocator::pool_allocator): New function.
28634 (pool_allocator::release): Likewise.
28635 (inline pool_allocator::release_if_empty): Likewise.
28636 (inline pool_allocator::~pool_allocator): Likewise.
28637 (pool_allocator::allocate): Likewise.
28638 (pool_allocator::remove): Likewise.
28639
28640 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
28641
28642 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
28643 in comment.
28644
28645 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
28646
28647 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
28648 to fusible_ops.
28649 * config/arm/arm.c (arm_print_tune_info): Likewise.
28650 (arm_macro_fusion_p): Likewise.
28651 (arm_macro_fusion_pair_p): Likewise.
28652
28653 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
28654
28655 * config/aarch64/aarch64-protos.h (tune_params): Rename
28656 fuseable_ops to fusible_ops.
28657 * config/aarch64/aarch64.c (generic_tunings): Rename
28658 fuseable_ops to fusible_ops.
28659 (cortexa53_tunings): Likewise.
28660 (cortexa57_tunings): Likewise.
28661 (thunderx_tunings): Likewise.
28662 (xgene1_tunings): Likewise.
28663 (aarch64_macro_fusion_p): Likewise.
28664 (aarch64_macro_fusion_pair_p): Likewise.
28665
28666 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
28667
28668 * config/s390/driver-native.c: New file.
28669 * config/s390/x-native: New file.
28670 * config.host: Add new files for s390.
28671 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
28672 and -march=native
28673 * config.gcc: Likewise.
28674 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
28675 * config/s390/s390-opts.h (enum processor_type): Ditto.
28676 * config/s390/s390.c (s390_option_override): Catch unhandled
28677 PROCESSOR_NATIVE
28678
28679 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
28680
28681 PR target/65527
28682 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
28683 redirection for instrumented calls.
28684 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
28685 (append_compiler_options): Append -fcheck-pointer-bounds.
28686 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
28687 (chkp_redirect_edge): New.
28688 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
28689 (chkp_redirect_edge): New.
28690
28691 2015-06-01 Richard Biener <rguenther@suse.de>
28692
28693 PR tree-optimization/66280
28694 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
28695 def-use walking.
28696
28697 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28698
28699 * config/aarch64/aarch64.md
28700 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
28701 logic_shift_imm.
28702
28703 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
28704
28705 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
28706 Remove obsolete kludge.
28707
28708 2015-06-01 Richard Biener <rguenther@suse.de>
28709
28710 * tree-ssa-reassoc.c (get_rank): Simplify.
28711
28712 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
28713
28714 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
28715 * configure: Regenerated.
28716
28717 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
28718
28719 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
28720 issue (add space between string literal and macro).
28721 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
28722
28723 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
28724
28725 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
28726 implict or explicit -fPIE or -fpie.
28727
28728 2015-05-30 Mike Frysinger <vapier@gentoo.org>
28729
28730 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
28731
28732 2015-05-28 DJ Delorie <dj@redhat.com>
28733
28734 * expmed.c (extract_bit_field_1): Avoid clobbering a
28735 yet-to-be-used base/index register.
28736
28737 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
28738
28739 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
28740 (alias_stats): Add num_universal.
28741 (alias_set_subset_of): Special case pointers; be ready for NULL
28742 children.
28743 (alias_sets_conflict_p): Special case pointers; be ready for NULL
28744 children.
28745 (init_alias_set_entry): Break out from ...
28746 (record_alias_subset): ... here; propagate new fields;
28747 allocate children only when really needed.
28748 (get_alias_set): Do less generous pointer globbing.
28749 (dump_alias_stats_in_alias_c): Update statistics.
28750
28751 2015-05-30 Alan Modra <amodra@gmail.com>
28752
28753 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
28754 correct block for use of r12.
28755 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
28756
28757 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
28758
28759 PR target/66215
28760 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
28761 with -mhotpatch=.
28762
28763 2015-05-29 Jakub Jelinek <jakub@redhat.com>
28764
28765 PR tree-optimization/66142
28766 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
28767 virtual phis that feed themselves.
28768
28769 2015-05-29 Richard Biener <rguenther@suse.de>
28770
28771 PR tree-optimization/66314
28772 * tree-ssa-threadupdate.c (create_block_for_threading): Add
28773 parameter that says which loop the new block belongs to.
28774 (ssa_create_duplicates): Blocks duplicated for the threaded
28775 path belong to the loop of the thread destination.
28776
28777 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28778
28779 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
28780 to cleanup-saved-temps.
28781 * doc/sourcebuild.texi (Clean up generated test files): Expand
28782 introduction.
28783 (dg-keep-saved-temps): Document new proc.
28784 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
28785 cleanup-saved-temps): Remove.
28786
28787 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
28788
28789 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
28790 gcc_AC_CHECK_DECLS.
28791 * configure: Regenerate.
28792
28793 2015-05-28 Mike Frysinger <vapier@gentoo.org>
28794
28795 * config/nios2/linux.h (CPP_SPEC): Define.
28796
28797 2015-05-28 Mike Frysinger <vapier@gentoo.org>
28798
28799 * config/microblaze/linux.h (CPP_SPEC): Define.
28800
28801 2015-05-28 Mike Frysinger <vapier@gentoo.org>
28802
28803 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
28804 -pthread is specified.
28805
28806 2015-05-28 Richard Biener <rguenther@suse.de>
28807
28808 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
28809 (vect_fixup_scalar_cycles_with_patterns): Likewise.
28810 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
28811 after pattern recog.
28812 (vect_create_epilog_for_reduction): Properly handle reductions
28813 with patterns.
28814 (vectorizable_reduction): Likewise.
28815 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
28816 reduction chains.
28817 (vect_get_constant_vectors): Create the correct number of
28818 initial values for reductions.
28819 (vect_schedule_slp_instance): Handle reduction chains that are
28820 type changing properly.
28821 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
28822
28823 2015-05-28 Richard Biener <rguenther@suse.de>
28824
28825 PR tree-optimization/66142
28826 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
28827 values better in memcpy destination handling. Handle non-aliasing
28828 we discover here.
28829
28830 2015-05-28 Lawrence Velázquez <vq@larryv.me>
28831
28832 PR target/63810
28833 * config/darwin-c.c (version_components): New global enum.
28834 (parse_version, version_as_legacy_macro)
28835 (version_as_modern_macro, macosx_version_as_macro): New functions.
28836 (version_as_macro): Remove.
28837 (darwin_cpp_builtins): Use new function.
28838
28839 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
28840
28841 * builtins.c (expand_builtin_acc_on_device): Mark parameters
28842 with ATTRIBUTE_UNUSED.
28843
28844 2015-05-28 Julian Brown <julian@codesourcery.com>
28845
28846 PR libgomp/65742
28847
28848 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
28849 sequence for !ACCEL_COMPILER.
28850
28851 2015-05-28 Nick Clifton <nickc@redhat.com>
28852
28853 * config/rx/rx.c (push_regs): New function. Extracts code from...
28854 (rx_expand_prologue): ... here. Use push_regs to push even small
28855 spans of registers.
28856 (pop_regs): New function.
28857 (rx_expand_epilogue): Use pop_regs to pop even small spans of
28858 registers.
28859
28860 2015-05-28 Richard Biener <rguenther@suse.de>
28861
28862 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
28863 member.
28864 (SLP_INSTANCE_BODY_COST_VEC): Remove.
28865 (vect_update_slp_costs_according_to_vf): Likewise.
28866 (vect_slp_analyze_operations): Update prototype.
28867 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
28868 vect_update_slp_costs_according_to_vf, adjust.
28869 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
28870 (vect_analyze_slp_cost_1): Likewise.
28871 (vect_analyze_slp_cost): Likewise. Properly deal with
28872 widening reduction ops. Commit body costs.
28873 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
28874 cost for loops from here.
28875 (vect_slp_analyze_operations): But do it from here when
28876 the vectorization factor is known and stmts are analyzed.
28877 (vect_bb_vectorization_profitable_p): Simplify.
28878 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
28879 (vect_update_slp_costs_according_to_vf): Remove.
28880
28881 2015-05-27 Magnus Granberg <zorry@gentoo.org>
28882 H.J. Lu <hongjiu.lu@intel.com>
28883
28884 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
28885 (BUILD_CFLAGS): Likewise.
28886 (BUILD_CXXFLAGS): Likewise.
28887 (LINKER): Add @NO_PIE_FLAG@.
28888 (BUILD_LDFLAGS): Likewise.
28889 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
28890 --enable-default-pie.
28891 * common.opt (fPIE): Initialize to -1.
28892 (fpie): Likewise.
28893 (no-pie): New option.
28894 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
28895 * configure.ac: Add --enable-default-pie.
28896 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
28897 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
28898 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
28899 * gcc.c (NO_PIE_SPEC): New.
28900 (PIE_SPEC): Likewise.
28901 (NO_FPIE1_SPEC): Likewise.
28902 (FPIE1_SPEC): Likewise.
28903 (NO_FPIE2_SPEC): Likewise.
28904 (FPIE2_SPEC): Likewise.
28905 (NO_FPIE2_SPEC): Likewise.
28906 (FPIE_SPEC): Likewise.
28907 (NO_FPIE_SPEC): Likewise.
28908 (NO_FPIC1_SPEC): Likewise.
28909 (FPIC1_SPEC): Likewise.
28910 (NO_FPIC2_SPEC): Likewise.
28911 (FPIC2_SPEC): Likewise.
28912 (NO_FPIC2_SPEC): Likewise.
28913 (FPIC_SPEC): Likewise.
28914 (NO_FPIC_SPEC): Likewise.
28915 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
28916 (FPIE1_OR_FPIC1_SPEC): Likewise.
28917 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
28918 (FPIE2_OR_FPIC2_SPEC): Likewise.
28919 (NO_FPIE_AND_FPIC_SPEC): Likewise.
28920 (FPIE_OR_FPIC_SPEC): Likewise.
28921 (LD_PIE_SPEC): Likewise.
28922 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
28923 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
28924 * config/darwin.h (PIE_SPEC): Renamed to ...
28925 (DARWIN_PIE_SPEC): This.
28926 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
28927 * config/darwin9.h (PIE_SPEC): Renamed to ...
28928 (DARWIN_PIE_SPEC): This.
28929 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
28930 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
28931 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
28932 FPIE2_OR_FPIC2_SPEC.
28933 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
28934 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
28935 * config/sol2.h (ASM_PIC_SPEC): Likewise.
28936 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28937 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28938 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28939 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
28940 * config/m32r/m32r.h (ASM_SPEC): Likewise.
28941 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
28942 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
28943 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
28944 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
28945 * config/sparc/linux.h (ASM_SPEC): Likewise.
28946 * config/sparc/linux64.h (ASM_SPEC): Likewise.
28947 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
28948 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
28949 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28950 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
28951 * config/sparc/sparc.h (ASM_SPEC): Likewise.
28952 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
28953 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
28954 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
28955 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
28956 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
28957 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
28958 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
28959 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
28960 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
28961 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
28962 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
28963 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
28964 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28965 * config/vax/linux.h (ASM_SPEC): Likewise.
28966 * doc/install.texi: Document --enable-default-pie.
28967 * doc/invoke.texi: Document -no-pie.
28968 * config.in: Regenerated.
28969 * configure: Likewise.
28970
28971 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
28972
28973 PR rtl-optimization/66168
28974 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
28975 can_move_invariant_reg.
28976
28977 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
28978
28979 PR target/66148
28980 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
28981 REG_EQUAL note when doing insert.
28982
28983 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
28984 instead of "%d" for 'o' operand.
28985
28986 2015-05-27 Nathan Sidwell <nathan@acm.org>
28987
28988 PR c++/66270
28989 * tree.c (build_pointer_type_for_mode): Canonical type does not
28990 inherit can_alias_all.
28991 (build_reference_type_for_mode): Likewise.
28992
28993 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
28994
28995 * expr.h (array_at_struct_end_p): Move to...
28996 (array_ref_element_size): Likewise.
28997 (component_ref_field_offset): Likewise.
28998 * tree.h (array_ref_element_size): ...here.
28999 (array_at_struct_end_p): Likewise.
29000 (component_ref_field_offset): Likewise.
29001 * expr.c (array_ref_element_size): Move to...
29002 (array_ref_low_bound): Likewise.
29003 (array_at_struct_end_p): Likewise.
29004 (array_ref_up_bound): Likewise.
29005 (component_ref_field_offset): Likewise.
29006 * tree.c (array_ref_element_size): ...here.
29007 (array_ref_low_bound): Likewise.
29008 (array_ref_up_bound): Likewise.
29009 (array_at_struct_end_p): Likewise.
29010 (component_ref_field_offset): Likewise.
29011
29012 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
29013 Szabolcs Nagy <szabolcs.nagy@arm.com>
29014
29015 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
29016
29017 2015-05-27 Jason Merrill <jason@redhat.com>
29018
29019 PR bootstrap/66304
29020 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
29021 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
29022 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
29023
29024 2015-05-22 Aditya Kumar <hiraditya@msn.com>
29025
29026 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
29027 is true.
29028
29029 * statistics.c (statistics_fini_pass): Print pass name.
29030
29031 2015-05-27 Richard Biener <rguenther@suse.de>
29032
29033 PR tree-optimization/66272
29034 Revert parts of
29035 2014-08-15 Richard Biener <rguenther@suse.de>
29036
29037 PR tree-optimization/62031
29038 * tree-data-ref.c (dr_analyze_indices): Do not set
29039 DR_UNCONSTRAINED_BASE.
29040 (dr_may_alias_p): All indirect accesses have to go the
29041 formerly DR_UNCONSTRAINED_BASE path.
29042 * tree-data-ref.h (struct indices): Remove
29043 unconstrained_base member.
29044 (DR_UNCONSTRAINED_BASE): Remove.
29045
29046 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
29047
29048 * dwarf2out.c: Remove block_map.
29049 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
29050 (gen_lexical_block_die): Same.
29051 (dwarf2out_function_decl): Remove block_map use.
29052 (dwarf2out_c_finalize): Same.
29053 * tree-core.h (struct tree_block): Add die field.
29054 * tree.h (BLOCK_DIE): New.
29055
29056 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29057
29058 PR target/65358
29059 * expr.c (memory_load_overlap): New function.
29060 (emit_push_insn): When pushing partial args to the stack would
29061 clobber the register part load the overlapping part into a pseudo
29062 and put it into the hard reg after pushing. Change return type
29063 to bool. Add bool argument.
29064 * expr.h (emit_push_insn): Change return type to bool.
29065 Add bool argument.
29066 * calls.c (expand_call): Cancel sibcall optimization when encountering
29067 partial argument on targets with ARGS_GROW_DOWNWARD and
29068 !STACK_GROWS_DOWNWARD.
29069 (emit_library_call_value_1): Update callsite of emit_push_insn.
29070 (store_one_arg): Likewise.
29071
29072 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
29073
29074 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
29075
29076 2015-05-27 Martin Liska <mliska@suse.cz>
29077
29078 * Makefile.in: Add additional dependencies related to memory report
29079 enhancement.
29080 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
29081 * bitmap.c (struct bitmap_descriptor_d): Remove.
29082 (struct loc): Likewise.
29083 (struct bitmap_desc_hasher): Likewise.
29084 (bitmap_desc_hasher::hash): Likewise.
29085 (bitmap_desc_hasher::equal): Likewise.
29086 (get_bitmap_descriptor): Likewise.
29087 (bitmap_register): User new memory descriptor API.
29088 (register_overhead): Likewise.
29089 (bitmap_find_bit): Register nsearches and search_iter statistics.
29090 (struct bitmap_output_info): Remove.
29091 (print_statistics): Likewise.
29092 (dump_bitmap_statistics): Use new memory descriptor.
29093 * bitmap.h (struct bitmap_usage): New class.
29094 * genmatch.c: Extend header file inclusion.
29095 * genpreds.c: Likewise.
29096 * ggc-common.c (struct ggc_usage): New class.
29097 (struct ggc_loc_desc_hasher): Remove.
29098 (ggc_loc_desc_hasher::hash): Likewise.
29099 (ggc_loc_desc_hasher::equal): Likewise.
29100 (struct ggc_ptr_hash_entry): Likewise.
29101 (struct ptr_hash_hasher): Likewise.
29102 (ptr_hash_hasher::hash): Likewise.
29103 (ptr_hash_hasher::equal): Likewise.
29104 (make_loc_descriptor): Likewise.
29105 (ggc_prune_ptr): Likewise.
29106 (dump_ggc_loc_statistics): Use new memory descriptor.
29107 (ggc_record_overhead): Likewise.
29108 (ggc_free_overhead): Likewise.
29109 (final_cmp_statistic): Remove.
29110 (cmp_statistic): Likewise.
29111 (ggc_add_statistics): Liekwise.
29112 (ggc_prune_overhead_list): Likewise.
29113 * hash-map-traits.h: New file.
29114 * hash-map.h (struct default_hashmap_traits): Move the traits to a
29115 separate header file.
29116 * hash-set.h: Pass memory statistics info to ctor.
29117 * hash-table.c (void dump_hash_table_loc_statistics): New function.
29118 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
29119 (hash_table::~hash_table): Register memory release operation.
29120 (hash_table::alloc_entries): Handle memory allocation operation.
29121 (hash_table::expand): Likewise.
29122 * inchash.c (iterative_hash_hashval_t): Move implementation to header
29123 file.
29124 (iterative_hash_host_wide_int): Likewise.
29125 * inchash.h (class hash): Likewise.
29126 * mem-stats-traits.h: New file.
29127 * mem-stats.h: New file.
29128 (mem_location): Add new class.
29129 (mem_usage): Likewise.
29130 (mem_alloc_description): Likewise.
29131 * sese.c: Add new header file inclusision.
29132 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
29133 and hash_set.
29134 * tree-sra.c: Add new header file inclusision.
29135 * vec.c (struct vec_descriptor): Remove.
29136 (hash_descriptor): Likewise.
29137 (struct vec_usage): Likewise.
29138 (struct ptr_hash_entry): Likewise.
29139 (hash_ptr): Likewise.
29140 (eq_ptr): Likewise.
29141 (vec_prefix::register_overhead): Use new memory descriptor API.
29142 (vec_prefix::release_overhead): Likewise.
29143 (add_statistics): Remove.
29144 (dump_vec_loc_statistics): Use new memory descriptor API.
29145 * vec.h (struct vec_prefix): Likewise.
29146 (va_heap::reserve): Likewise.
29147 (va_heap::release): Likewise.
29148 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
29149
29150 2015-05-27 Richard Biener <rguenther@suse.de>
29151
29152 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
29153 earlier and remove ??? comment.
29154 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
29155 and got called from loop analysis bail out. Always pass the SLP
29156 node to the vectorizable_* functions.
29157 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
29158 the premature SLP check here.
29159 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
29160 detected SLP stmts.
29161 (vect_detect_hybrid_slp_1): Likewise.
29162
29163 2015-05-26 Jeff Law <law@redhat.com>
29164
29165 * combine.c (find_split_point): Verify that the shift count is a
29166 constant when choosing (plus (ashift ...)) as a split point.
29167
29168 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
29169 No functional changes.
29170
29171 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
29172
29173 * ipa-polymorphic-call.c
29174 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
29175 case when call target is already known.
29176
29177 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
29178
29179 PR target/65979
29180 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
29181 take into account the case that operands[1] and operands[2]
29182 are the same register.
29183
29184 2015-05-26 Michael Matz <matz@suse.de>
29185
29186 PR middle-end/66251
29187
29188 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
29189 stores.
29190 (vect_create_vectorized_demotion_stmts): Always set
29191 STMT_VINFO_VEC_STMT, also with SLP.
29192 (vectorizable_store): Handle strided group stores.
29193
29194 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29195
29196 PR target/66049
29197 * config/aarch64/aarch64.md
29198 (*adds_shift_imm_<mode>): New pattern.
29199 (*subs_shift_imm_<mode>): Likewise.
29200 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
29201 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
29202 (*add_uxt<mode>_shift2): Likewise.
29203 (*add_uxtsi_shift2_uxtw): Likewise.
29204 (*sub_uxt<mode>_shift2): Likewise.
29205 (*sub_uxtsi_shift2_uxtw): Likewise.
29206
29207 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
29208
29209 * config/rs6000/constraints.md (Y, U): Use match_test.
29210
29211 2015-05-26 Christian Bruel <christian.bruel@st.com>
29212
29213 PR target/52144
29214 * config/arm/arm.c (arm_option_check_internal)
29215 (arm_option_params_internal): Check opts->target_flags to set macros.
29216 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
29217 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
29218 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
29219 (builtin_define): Replaced with def_or_undef_macro.
29220 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
29221 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
29222 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
29223 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
29224 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
29225 (TARGET_ARM_FEATURE_LDREX_P)
29226 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
29227 * config/arm/arm-c.c (def_or_undef_macro): New function.
29228 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
29229
29230 2015-05-26 Christian Bruel <christian.bruel@st.com>
29231
29232 * c-common.h (builtin_define_with_int_value)
29233 (builtin_define_type_sizeof): Declare.
29234 * c-cppbuiltin.c (builtin_define_with_int_value)
29235 (builtin_define_type_sizeof): Externalize.
29236 (builtin_define_std): Cleanup declaration.
29237 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
29238 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
29239 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
29240 (builtin_define, builtin_assert): New macros.
29241
29242 2015-05-26 Richard Biener <rguenther@suse.de>
29243
29244 PR tree-optimization/66142
29245 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
29246 MEM_REFs for the same base address.
29247
29248 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29249
29250 PR ipa/66181
29251 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
29252
29253 2015-05-26 Jason Merrill <jason@redhat.com>
29254
29255 * configure.ac: Set CXXFLAGS for ISL test.
29256 * configure: Regenerate.
29257
29258 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
29259 strstr and basename.
29260 * configure: Regenerate.
29261
29262 2015-05-26 Richard Biener <rguenther@suse.de>
29263
29264 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
29265 X % C -> X & (C - 1) for C being a power-of two to ...
29266 * match.pd: ... patterns.
29267
29268 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
29269
29270 * match.pd (swapped_tcc_comparison): New operator list.
29271 (-A CMP -B): New simplification.
29272 * fold-const.c (fold_comparison): Remove corresponding code.
29273
29274 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
29275
29276 * caller-save.c (init_caller_save): Base temporary register numbers
29277 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
29278 * cfgloopanal.c (init_set_costs): Likewise.
29279 * dojump.c (prefer_and_bit_test): Likewise.
29280 * expr.c (init_expr_target): Likewise.
29281 * ira.c (setup_prohibited_mode_move_regs): Likewise.
29282 * lower-subreg.c (init_lower_subreg): Likewise.
29283 * postreload.c (reload_cse_regs_1): Likewise.
29284
29285 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
29286
29287 * gensupport.h (compute_test_codes): Declare.
29288 * gensupport.c (compute_predicate_codes): Rename to...
29289 (compute_test_codes): ...this. Generalize error message.
29290 (process_define_predicate): Update accordingly.
29291 * genpreds.c (compute_maybe_allows): Delete.
29292 (add_constraint): Use compute_test_codes to determine whether
29293 something can accept a SUBREG, REG or MEM.
29294
29295 2015-05-26 Torvald Riegel <triegel@redhat.com>
29296
29297 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
29298 'memory model' to align with C++11; fix description of memory orders;
29299 fix a few typos.
29300
29301 2015-05-26 Richard Biener <rguenther@suse.de>
29302
29303 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
29304 (vect_analyze_loop_operations): ... here. Remove slp parameter,
29305 detect whether we apply SLP. Remove call to
29306 vect_update_slp_costs_according_to_vf.
29307 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
29308 vect_update_slp_costs_according_to_vf from here. Dispatch
29309 to vect_slp_analyze_operations to analyze SLP stmts.
29310 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
29311 unused bb_vec_info parameter, adjust assert.
29312 (vect_slp_analyze_operations): Pass in the slp instance tree
29313 instead of bb_vec_info.
29314 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
29315 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
29316
29317 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
29318
29319 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
29320 Q_REGS. Expand comment.
29321 (REG_CLASS_NAMES): Ditto.
29322 (REG_CLASS_CONTENTS): Ditto.
29323
29324 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
29325
29326 PR target/66274
29327 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
29328 when LEGACY_INT_REGNO_P is processed.
29329
29330 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
29331
29332 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
29333
29334 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
29335
29336 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
29337 register if not marked dead/unused, before return.
29338
29339 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
29340
29341 PR lto/66180
29342 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
29343 is set; check for assembler name at LTO time.
29344 (type_in_anonymous_namespace): Remove hacks, check that all
29345 anonymous types are called "<anon>"
29346 (odr_type_p): Simplify; add check for "<anon>"
29347 (odr_subtypes_equivalent): Add odr_type_p check.
29348 * tree.c (need_assembler_name_p): Even anonymous namespace needs
29349 assembler name.
29350
29351 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
29352
29353 * ipa-utils.h (method_class_type): Remove.
29354 * cgraphunit.c (walk_polymorphic_call_targets): Use
29355 TYPE_METHOD_BASETYPE.
29356 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
29357 on main variants only.
29358 (method_class_type): Remove.
29359 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
29360 (build_type_inheritance_graph): Likewise.
29361 * ipa-icf.c (sem_function::equals_wpa): Likewise.
29362 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
29363 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
29364
29365 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
29366
29367 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
29368 is_typedef_decl, typedef_variant_p): Constify.
29369 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
29370 is_typedef_decl, typedef_variant_p): Constify.
29371
29372 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29373
29374 * defaults.h (gen_tablejump): New function.
29375 (HAVE_tablejump): Add default value.
29376 * expr.c: Adjust.
29377 * stmt.c: Likewise.
29378
29379 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29380
29381 * defaults.h (gen_store_multiple): New function.
29382 (HAVE_store_multiple): Add default value.
29383 * expr.c (move_block_from_reg): Adjust.
29384
29385 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29386
29387 * defaults.h (gen_load_multiple): New function.
29388 (HAVE_load_multiple): Add default value.
29389 * expr.c (move_block_to_reg): Adjust.
29390
29391 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29392
29393 * defaults.h (gen_mem_signal_fence): New function.
29394 (HAVE_mem_signal_fence): Add default value.
29395 * optabs.c: Adjust.
29396
29397 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29398
29399 * defaults.h (gen_memory_barrier): New function.
29400 (HAVE_memory_barrier): Add default value.
29401 * optabs.c: Adjust.
29402
29403 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29404
29405 * defaults.h (gen_mem_thread_fence): New function.
29406 (HAVE_mem_thread_fence): Add default definition.
29407 * optabs.c: Adjust.
29408
29409 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29410
29411 * combine.c (find_split_point): Check the value of HAVE_lo_sum
29412 instead of if it is defined.
29413 (combine_simplify_rtx): Likewise.
29414 * lra-constraints.c (process_address_1): Likewise.
29415 * config/darwin.c: Adjust.
29416 * genconfig.c (main): Always define HAVE_lo_sum.
29417
29418 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29419
29420 * genmatch.c (parser::parse_operation): Reject expanding
29421 operator-list inside 'for'.
29422
29423 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29424
29425 * genmatch.c (parser::parse_for): Reject iterator if used as
29426 operator-list.
29427
29428 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29429
29430 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
29431 after end of id-list.
29432
29433 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
29434
29435 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
29436 we do not try to compute canonical type for type that does not need
29437 alias set.
29438 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
29439 FUNCITON_TYPE.
29440 * tree.h (type_with_alias_set_p): New.
29441
29442 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
29443
29444 * tree.c (gimple_canonical_types_compatible_p): Do not compare
29445 function attributes.
29446 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
29447
29448 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
29449
29450 * Makefile.in (check_gcc_parallelize): Delete.
29451 (lang_checks_parallelized): Update comment.
29452
29453 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
29454
29455 PR rtl-optimization/66237
29456 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
29457 location of an "as_a" cast.
29458
29459 2015-05-22 Jeff Law <law@redhat.com>
29460
29461 * config/pa/pa.md (non-canonical shift-add insns): Remove.
29462 (peepholes with non-canonical RTL sources): Remove.
29463 (peepholes for indexed stores of FP regs in integer modes): Match and
29464 generate canonical RTL.
29465
29466 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
29467
29468 PR tree-optimization/63387
29469 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
29470 ((x ord x) & (y ord y) -> (x ord y),
29471 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
29472 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
29473 vectors like scalars.
29474
29475 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
29476
29477 * convert.c (convert_to_integer, convert_to_vector): Include the
29478 types in the error message.
29479
29480 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
29481
29482 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
29483 simplifications.
29484
29485 2015-05-22 Jeff Law <law@redhat.com>
29486
29487 * config/pa/pa.md (integer_indexed_store splitters): Use
29488 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
29489 insns -- adjusting the constant 2nd operand accordingly.
29490
29491 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
29492 (plus (ashift X log2) Y) if it is a split point.
29493
29494 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
29495 out of hppa_legitimize_address to handle both forms of a multiply
29496 by 2, 4 or 8.
29497 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
29498 Always generate the ASHIFT variant as the result is not directly
29499 used in a MEM. Update comments and refactor slightly to improve
29500 readability.
29501
29502 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29503
29504 PR target/65491
29505 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
29506 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
29507 (aarch64_composite_type_p): Return false if given type and mode are
29508 for a short vector.
29509
29510 2015-05-22 Richard Biener <rguenther@suse.de>
29511
29512 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
29513 member.
29514 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
29515 patterns when determining whether SLP is pure.
29516 (vect_is_slp_reduction): Remove check for pattern stmts.
29517 (vect_is_simple_reduction_1): Remove dead code.
29518 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
29519 (vect_get_and_check_slp_defs): Pass in the stmt number.
29520 Allow the first def in a reduction to be not a pattern stmt when
29521 the rest of the stmts def are patterns.
29522 (vect_build_slp_tree_1): Allow tcc_expression codes like
29523 SAD_EXPR and DOT_PROD_EXPR.
29524 (vect_build_slp_tree): Adjust.
29525 (vect_analyze_slp): Refactor and move BB vect error message ...
29526 (vect_slp_analyze_bb_1): ... here.
29527
29528 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
29529
29530 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
29531 for CSWTCH temporary.
29532
29533 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29534
29535 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
29536 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
29537 unknown unspecs.
29538
29539 2015-05-22 Richard Biener <rguenther@suse.de>
29540
29541 PR tree-optimization/66251
29542 * tree-vect-stmts.c (vectorizable_conversion): Properly
29543 set STMT_VINFO_VEC_STMT even for the SLP case.
29544
29545 2015-05-22 Marek Polacek <polacek@redhat.com>
29546
29547 * doc/extend.texi: Use @pxref instead of @xref.
29548
29549 2015-05-22 hiraditya <hiraditya@msn.com>
29550
29551 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
29552 redundant if.
29553
29554 2015-05-22 Richard Biener <rguenther@suse.de>
29555
29556 PR tree-optimization/65701
29557 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29558 Move peeling cost models into one place. Peel for alignment
29559 for single loads only if an aligned load is cheaper than
29560 an unaligned load.
29561
29562 2015-05-22 Marek Polacek <polacek@redhat.com>
29563
29564 PR c/47043
29565 * doc/extend.texi (Enumerator Attributes): New section.
29566 Document syntax of enumerator attributes.
29567
29568 2015-05-22 Richard Biener <rguenther@suse.de>
29569
29570 * tree-vect-loop.c (get_reduction_op): New function.
29571 (vect_model_reduction_cost): Use it, add reduc_index parameter.
29572 Make ready for BB reductions.
29573 (vect_create_epilog_for_reduction): Use get_reduction_op.
29574 (vectorizable_reduction): Init reduc_index to a valid value.
29575 Adjust vect_model_reduction_cost call.
29576 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
29577 operand for reduction defaults. Add SAD_EXPR support.
29578 Assert we have a neutral op for SLP reductions.
29579 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
29580 walking pattern stmt ops only recurse to SSA names.
29581
29582 2015-05-22 Richard Biener <rguenther@suse.de>
29583
29584 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
29585 assert with guard, remove check on detected reduction.
29586 (vect_recog_sad_pattern): Likewise.
29587 (vect_recog_widen_sum_pattern): Likewise.
29588
29589 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29590
29591 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
29592 __always_inline__ attribute.
29593 (vaesdq_u8): Likewise.
29594 (vaesmcq_u8): Likewise.
29595 (vaesimcq_u8): Likewise.
29596 (vsha1cq_u32): Likewise.
29597 (vsha1mq_u32): Likewise.
29598 (vsha1pq_u32): Likewise.
29599 (vsha1h_u32): Likewise.
29600 (vsha1su0q_u32): Likewise.
29601 (vsha1su1q_u32): Likewise.
29602 (vsha256hq_u32): Likewise.
29603 (vsha256h2q_u32): Likewise.
29604 (vsha256su0q_u32): Likewise.
29605 (vsha256su1q_u32): Likewise.
29606 (vmull_p64): Likewise.
29607 (vmull_high_p64): Likewise.
29608
29609 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29610
29611 * final.c (final_scan_insn): Don't check HAVE_peephole with the
29612 preprocessor.
29613 * output.h: Likewise.
29614 * genconfig.c (main): Alwways define HAVE_peephole.
29615 * genpeep.c: Don't emit checks of HAVE_peephole.
29616
29617 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29618
29619 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
29620 check HAVE_conditional_move with the preprocessor.
29621
29622 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29623
29624 * genconfig.c (main): Always define HAVE_conditional_move.
29625 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
29626 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
29627 is defined.
29628
29629 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29630
29631 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
29632 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
29633 and FRAME_POINTER_REGNUM with the preprocessor.
29634
29635 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29636
29637 * defaults.h: Add default for STACK_PUSH_CODE.
29638 * expr.c: Don't redefine STACK_PUSH_CODE.
29639 * recog.c: Likewise.
29640
29641 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29642
29643 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
29644 sched-deps.c: Use if instead of preprocessor checks with
29645 STACK_GROWS_DOWNWARD.
29646
29647 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29648
29649 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
29650 is defined.
29651 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
29652 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
29653 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
29654 * doc/tm.texi: Regenerate.
29655
29656 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
29657
29658 PR target/66232
29659 * config/i386/constraints.md (Bg): New constraint for GOT memory
29660 operand.
29661 * config/i386/i386.md (*call_got_x32): New pattern.
29662 (*call_value_got_x32): Likewise.
29663 * config/i386/predicates.md (GOT_memory_operand): New predicate.
29664
29665 2015-05-21 Jakub Jelinek <jakub@redhat.com>
29666
29667 PR tree-optimization/66233
29668 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
29669 Simplify.
29670
29671 2015-05-21 Jeff Law <law@redhat.com>
29672
29673 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
29674 than MULT for shadd sequences.
29675
29676 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
29677
29678 * alias.c (alias_stats): New static var.
29679 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
29680 (dump_alias_stats_in_alias_c): New function.
29681 * alias.h (dump_alias_stats_in_alias_c): Declare.
29682 * tree-ssa-alias.c (dump_alias_stats): Call it.
29683
29684 2015-05-08 Michael Matz <matz@suse.de>
29685
29686 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
29687 to strided_p.
29688 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
29689 (STMT_VINFO_STRIDED_P): ... this.
29690 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
29691 (vect_verify_datarefs_alignment): Likewise.
29692 (vect_enhance_data_refs_alignment): Likewise.
29693 (vect_analyze_data_ref_access): Likewise.
29694 (vect_analyze_data_refs): Accept strided stores.
29695 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
29696 (vect_model_load_cost): Adjust for macro rename.
29697 (vectorizable_mask_load_store): Likewise.
29698 (vectorizable_load): Likewise.
29699 (vectorizable_store): Open code strided stores.
29700
29701 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29702
29703 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
29704 Document sqrt_insn.
29705
29706 2015-05-21 Richard Biener <rguenther@suse.de>
29707
29708 PR c++/66211
29709 * match.pd: Guard pattern optimzing (int)(float)int
29710 conversions to apply only on GIMPLE.
29711
29712 2015-05-21 Jeff Law <law@redhat.com>
29713
29714 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
29715 multiply-accumulate/shift-add insn generation.
29716
29717 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
29718
29719 PR target/54236
29720 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
29721 operands[1] are the same.
29722
29723 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
29724
29725 PR middle-end/66221
29726 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
29727 build_distinct_type_copy to copy bounds.
29728
29729 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
29730
29731 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
29732 Change to unsigned int.
29733
29734 2015-05-20 Jeff Law <law@redhat.com>
29735
29736 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
29737 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
29738 (pa_shadd_constant_p): Allow constants for shadd insns rather
29739 than valid scaling constants for memory addresses.
29740 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
29741 * config/pa/predicates.md (mem_shadd_operand): New predicate.
29742 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
29743 (shift-add insns using ASHIFT): New patterns.
29744
29745 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
29746
29747 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
29748 feasible.
29749 (fix_up_fall_thru_edges): Likewise.
29750 (fix_crossing_conditional_branches): Likewise. Promote jump targets
29751 from to rtx_insn to rtx_code_label where feasible.
29752 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
29753 gen_move_insn (returned type changed to rtx_insn).
29754 * builtins.c (expand_errno_check): Fix arguments of
29755 do_compare_rtx_and_jump (now expects rtx_code_label).
29756 (expand_builtin_acc_on_device): Likewise.
29757 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
29758 invert_jump (now exprects rtx_jump_insn).
29759 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
29760 (construct_init_block): Use rtx_code_label.
29761 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
29762 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
29763 calling redirect_jump.
29764 (patch_jump_insn): Likewise.
29765 (redirect_branch_edge): Likewise.
29766 (force_nonfallthru_and_redirect): Likewise.
29767 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
29768 when suitable.
29769 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
29770 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
29771 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
29772 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
29773 to store the value retured by gen_label_rtx.
29774 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
29775 rtx_jump_insn.
29776 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
29777 (split_branches): Fix calls of redirect_jump.
29778 * dojump.c (jumpifnot): Promote argument type from rtx to
29779 rtx_code_label.
29780 (jumpifnot_1): Likewise.
29781 (jumpif): Likewise.
29782 (jumpif_1): Likewise.
29783 (do_jump_1): Likewise.
29784 (do_jump): Likewise. Use rtx_code_label when feasible.
29785 (do_jump_by_parts_greater_rtx): Likewise.
29786 (do_jump_by_parts_zero_rtx): Likewise.
29787 (do_jump_by_parts_equality_rtx): Likewise.
29788 (do_compare_rtx_and_jump): Likewise.
29789 * dojump.h: Update function prototypes.
29790 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
29791 returns rtx_insn).
29792 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
29793 rtx_jump_insn.
29794 (emit_label_before): Likewise.
29795 (emit_jump_insn_after_noloc): Likewise.
29796 (emit_jump_insn_after_setloc): Likewise.
29797 (emit_jump_insn_after): Likewise
29798 (emit_jump_insn_before_setloc): Likewise.
29799 (emit_jump_insn_before): Likewise.
29800 (emit_label_before): Promote return type to rtx_code_label.
29801 (emit_label): Likewise.
29802 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
29803 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
29804 gen_move_insn.
29805 (emit_stack_restore): Likewise.
29806 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
29807 (do_cmp_and_jump): Likewise.
29808 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
29809 from rtx to rtx_code_label.
29810 (gen_move_insn_uncast): New function.
29811 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
29812 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
29813 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
29814 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
29815 invert_jump_1 and redirect_jump_1.
29816 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
29817 do_compare_rtx_and_jump.
29818 (expand_addsub_overflow): Likewise.
29819 (expand_neg_overflow): Likewise.
29820 (expand_mul_overflow): Likewise.
29821 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
29822 return value of gen_move_insn.
29823 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
29824 * loop-doloop.c (add_test): Use rtx_code_label.
29825 (doloop_modify): Likewise.
29826 (doloop_optimize): Likewise.
29827 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
29828 * lra-constraints.c (emit_spill_move): Remove cast of value returned
29829 by gen_move_insn.
29830 (inherit_reload_reg): Add cast when calling dump_insn_slim.
29831 (split_reg): Likewise.
29832 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
29833 gen_move_insn.
29834 * optabs.c (expand_binop_directly): Remove casts of values returned by
29835 maybe_gen_insn.
29836 (expand_unop_direct): Likewise.
29837 (expand_abs): Likewise.
29838 (maybe_emit_unop_insn): Likewise.
29839 (maybe_gen_insn): Promote return type to rtx_insn.
29840 * optabs.h: Update prototype of maybe_gen_insn.
29841 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
29842 redundant cast.
29843 * recog.c (struct peep2_insn_data): Promote type of insn field to
29844 rtx_insn.
29845 (peep2_reinit_state): Use NULL instead of NULL_RTX.
29846 (peep2_attempt): Remove casts of insn in peep2_insn_data.
29847 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
29848 * recog.h (struct insn_gen_fn): Promote return types of function
29849 pointers and operator ().from rtx to rtx_insn.
29850 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
29851 (fill_eager_delay_slots): Likewise.
29852 (relax_delay_slots): Likewise.
29853 (make_return_insns): Likewise.
29854 (dbr_schedule): Likewise.
29855 (optimize_skips): Likewise.
29856 (reorg_redirect_jump): Likewise.
29857 (fill_slots_from_thread): Likewise.
29858 * reorg.h: Update prototypes.
29859 * resource.c (find_dead_or_set_registers): Use dyn_cast to
29860 rtx_jump_insn instead of check. Use it's jump_target method.
29861 * rtl.h (rtx_jump_insn::jump_label): Define new method.
29862 (rtx_jump_insn::jump_target): Define new method.
29863 (rtx_jump_insn::set_jump_target): Define new method.
29864 * rtlanal.c (tablejump_p): Promote type of one local variable.
29865 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
29866 (sched_analyze_insn): Likewise.
29867 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
29868 (print_insn): Likewise.
29869 * stmt.c (label_rtx): Promote return type to rtx_insn.
29870 (force_label_rtx): Likewise.
29871 (jump_target_rtx): Define new function.
29872 (expand_label): Use it, get rid of one cast.
29873 (expand_naked_return): Promote rtx to rtx_code_label.
29874 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
29875 (expand_case): Use rtx_code_label instread of rtx where feasible.
29876 (expand_sjlj_dispatch_table): Likewise.
29877 (emit_case_nodes): Likewise.
29878 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
29879 * store-motion.c (insert_store): Make use of new return type of
29880 gen_move_insn and remove a cast.
29881 (replace_store_insn): Likewise.
29882
29883 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
29884
29885 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
29886 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
29887
29888 2015-05-20 Jeff Law <law@redhat.com>
29889
29890 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
29891 dispose of the jump thread path when the jump threading
29892 opportunity is cancelled.
29893
29894 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
29895
29896 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
29897 when printing the caret character.
29898
29899 2015-05-20 Marek Polacek <polacek@redhat.com>
29900
29901 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
29902
29903 2015-05-20 Marek Polacek <polacek@redhat.com>
29904
29905 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
29906 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
29907 * gimple-fold.c (canonicalize_bool): Likewise.
29908 (same_bool_result_p): Likewise.
29909 * tree-if-conv.c (parse_predicate): Likewise.
29910
29911 2015-05-20 Marek Polacek <polacek@redhat.com>
29912
29913 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
29914 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
29915
29916 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29917
29918 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
29919 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
29920 values.
29921
29922 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
29923
29924 * config/mips/mips.h (micromips_globals): Declare.
29925
29926 2015-05-20 David Malcolm <dmalcolm@redhat.com>
29927
29928 * timevar.def (TV_INITIALIZE_RTL): New.
29929 * toplev.c (initialize_rtl): Use an auto_timevar to account this
29930 function's time to TV_INITIALIZE_RTL.
29931
29932 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
29933
29934 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
29935 gimple_build_nop calls.
29936 (chkp_find_bounds_for_elem): Likewise.
29937 (chkp_get_zero_bounds): Likewise.
29938 (chkp_get_none_bounds): Likewise.
29939 (chkp_get_bounds_by_definition): Likewise.
29940 (chkp_generate_extern_var_bounds): Likewise.
29941 (chkp_get_bounds_for_decl_addr): Likewise.
29942 (chkp_get_bounds_for_string_cst): Likewise.
29943
29944 2015-05-20 Bin Cheng <bin.cheng@arm.com>
29945
29946 PR tree-optimization/65447
29947 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
29948 (dump_use, dump_uses): Support to dump sub use.
29949 (record_use): New parameters to support sub use. Remove call to
29950 dump_use.
29951 (record_sub_use, record_group_use): New functions.
29952 (compute_max_addr_offset, split_all_small_groups): New functions.
29953 (group_address_uses, rewrite_use_address): New functions.
29954 (strip_offset): New declaration.
29955 (find_interesting_uses_address): Call record_group_use.
29956 (add_candidate): New assertion.
29957 (infinite_cost_p): Move definition forward.
29958 (add_costs): Check INFTY cost and return immediately.
29959 (get_computation_cost_at): Clear setup cost and dependent bitmap
29960 for sub uses.
29961 (determine_use_iv_cost_address): Compute cost for sub uses.
29962 (rewrite_use_address_1): Rename from old rewrite_use_address.
29963 (free_loop_data): Free sub uses.
29964 (tree_ssa_iv_optimize_loop): Call group_address_uses.
29965
29966 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
29967 Jim Wilson <jim.wilson@linaro.org>
29968
29969 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
29970 new fields loadv and storev.
29971 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
29972 Initialize loadv and storev.
29973 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
29974 (cortexa53_extra_costs): Likewise.
29975 (cortexa57_extra_costs): Likewise.
29976 (xgene1_extra_costs): Likewise.
29977 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
29978 rtx_costs.
29979
29980 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
29981
29982 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
29983 storev.
29984 (cortexa8_extra_costs): Likewise.
29985 (cortexa5_extra_costs): Likewise.
29986 (cortexa7_extra_costs): Likewise.
29987 (cortexa12_extra_costs): Likewise.
29988 (cortexa15_extra_costs): Likewise.
29989 (v7m_extra_costs): Likewise.
29990
29991 2015-05-20 Jeff Law <law@redhat.com>
29992
29993 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
29994 instead of open-coded version. Also delete the jump thread created
29995 within this function.
29996
29997 2015-05-20 Alan Modra <amodra@gmail.com>
29998
29999 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
30000 stack adjusting insn. Formatting.
30001 (rs6000_emit_prologue): Track stack adjusting insn, and use of
30002 r12. If possible, emit first -fsplit-stack arg pointer insn
30003 before stack adjust. Don't use r12 to save cr if split-stack.
30004
30005 2015-05-20 Alan Modra <amodra@gmail.com>
30006
30007 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
30008 Define.
30009 (rs6000_supports_split_stack): New function.
30010 * config/rs6000/rs6000.c (machine_function): Add
30011 split_stack_arg_pointer.
30012 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
30013 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
30014 rather than virtual_incoming_args_rtx.
30015 (rs6000_va_start): Likewise.
30016 (split_stack_arg_pointer_used_p): New function.
30017 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
30018 (morestack_ref): New var.
30019 (gen_add3_const, rs6000_expand_split_stack_prologue,
30020 rs6000_internal_arg_pointer, rs6000_live_on_entry,
30021 rs6000_split_stack_space_check): New functions.
30022 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
30023 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
30024 (UNSPECV_SPLIT_STACK_RETURN): Define.
30025 (split_stack_prologue, load_split_stack_limit,
30026 load_split_stack_limit_di, load_split_stack_limit_si,
30027 split_stack_return, split_stack_space_check): New expands and insns.
30028 * config/rs6000/rs6000-protos.h
30029 (rs6000_expand_split_stack_prologue): Declare.
30030 (rs6000_split_stack_space_check): Declare.
30031
30032 2015-05-20 Alan Modra <amodra@gmail.com>
30033
30034 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
30035 (direct_return): Test vrsave_size rather than vrsave_mask.
30036 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
30037 (rs6000_emit_epilogue): Likewise.
30038
30039 2015-05-20 Alan Modra <amodra@gmail.com>
30040
30041 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
30042 when not saving registers.
30043 (debug_stack_info): Adjust to omit printing unused offsets,
30044 as before.
30045 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
30046 expression.
30047
30048 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30049
30050 PR c++/65835
30051 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
30052 value_type to const char *.
30053
30054 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
30055
30056 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
30057 to build a biarch toolchain again.
30058
30059 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
30060
30061 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
30062 or implicit declarations.
30063 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
30064 into it.
30065 (get_odr_type): Check type has linkage before adding bases.
30066 (register_odr_type): Check that type has linkage before adding it.
30067 (type_known_to_have_no_deriavations_p): Rename to ..
30068 (type_known_to_have_no_derivations_p): This one.
30069 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
30070 (type_known_to_have_no_derivations_p): This one.
30071 * ipa-polymorphic-call.c
30072 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
30073 type has linkage.
30074
30075 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
30076
30077 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
30078 (layout_type): Use RECORD_OR_UNION_TYPE_P.
30079
30080 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30081
30082 * config/s390/s390.c (s390_vector_bool_type_p): New function.
30083 (s390_invalid_binary_op): New function.
30084 (TARGET_INVALID_BINARY_OP): Define macro.
30085
30086 2015-05-19 David Sherwood <david.sherwood@arm.com>
30087
30088 * loop-invariant.c (create_new_invariant): Don't calculate address cost
30089 if mode is not a scalar integer.
30090 (get_inv_cost): Increase computational cost for unused invariants.
30091
30092 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30093
30094 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
30095 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
30096 * config/s390/s390-builtin-types.def: New file.
30097 * config/s390/s390-builtins.def: New file.
30098 * config/s390/s390-builtins.h: New file.
30099 * config/s390/s390-c.c: New file.
30100 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
30101 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
30102 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
30103 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
30104 prototypes.
30105 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
30106 Include.
30107 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
30108 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
30109 variable definitions.
30110 (s390_const_operand_ok): New function.
30111 (s390_expand_builtin): Rewrite.
30112 (s390_init_builtins): New function.
30113 (s390_handle_vectorbool_attribute): New function.
30114 (s390_attribute_table): Add s390_vector_bool attribute.
30115 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
30116 (s390_branch_condition_mask): Generate masks for new modes.
30117 (s390_expand_vec_compare_cc): New function.
30118 (s390_mangle_type): Add mangling for vector bool types.
30119 (enum s390_builtin): Remove.
30120 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
30121 efpc builtins.
30122 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
30123 s390_cpu_cpp_builtins.
30124 (REGISTER_TARGET_PRAGMAS): New macro.
30125 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
30126 (insn_cmp mode attribute): Add new CC modes.
30127 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
30128 (lcbb): New pattern definition.
30129 * config/s390/s390intrin.h: Include vecintrin.h.
30130 * config/s390/t-s390: New file.
30131 * config/s390/vecintrin.h: New file.
30132 * config/s390/vector.md: Include vx-builtins.md.
30133 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
30134 support.
30135
30136 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30137
30138 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
30139 CCVFHE.
30140 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
30141 (s390_select_ccmode): Likewise.
30142 (s390_canonicalize_comparison): Swap operands if necessary.
30143 (s390_expand_vec_compare_scalar): Expand DFmode compare using
30144 single element vector instructions.
30145 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
30146 (s390_branch_condition_mask): Generate CC masks for the new modes.
30147 * config/s390/s390.md (v0, vf, vd): New mode attributes.
30148 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
30149 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
30150 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
30151 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
30152 (*extend<DSF:mode><BFP:mode>2): New insn definition.
30153 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
30154 (extend<DSF:mode><BFP:mode>2): Turn into expander.
30155 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
30156 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
30157 (sqrt<mode>2): Add vector instruction.
30158
30159 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30160
30161 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
30162 constraints.
30163 * config/s390/predicates.md (const0_operand, constm1_operand)
30164 (constable_operand): Accept vector operands.
30165 * config/s390/s390-modes.def: Add supported vector modes.
30166 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
30167 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
30168 (s390_bytemask_vector_p, s390_expand_vec_strlen)
30169 (s390_expand_vec_compare, s390_expand_vcond)
30170 (s390_expand_vec_init): Add prototypes.
30171 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
30172 (s390_vector_mode_supported_p): New function.
30173 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
30174 (s390_contiguous_bitmask_vector_p): New function.
30175 (s390_bytemask_vector_p): New function.
30176 (s390_split_ok_p): Vector regs don't work either.
30177 (regclass_map): Add VEC_REGS.
30178 (s390_legitimate_constant_p): Handle vector constants.
30179 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
30180 (legitimate_reload_vector_constant_p): New function.
30181 (s390_preferred_reload_class): Handle CONST_VECTOR.
30182 (s390_reload_symref_address): Likewise.
30183 (s390_secondary_reload): Vector memory instructions only support
30184 short displacements. Rename reload*_nonoffmem* to reload*_la*.
30185 (s390_emit_ccraw_jump): New function.
30186 (s390_expand_vec_strlen): New function.
30187 (s390_expand_vec_compare): New function.
30188 (s390_expand_vcond): New function.
30189 (s390_expand_vec_init): New function.
30190 (s390_dwarf_frame_reg_mode): New function.
30191 (print_operand): Handle addresses with 'O' and 'R' constraints.
30192 (NR_C_MODES, constant_modes): Add vector modes.
30193 (s390_output_pool_entry): Handle vector constants.
30194 (s390_hard_regno_mode_ok): Handle vector registers.
30195 (s390_class_max_nregs): Likewise.
30196 (s390_cannot_change_mode_class): New function.
30197 (s390_invalid_arg_for_unprototyped_fn): New function.
30198 (s390_function_arg_vector): New function.
30199 (s390_function_arg_float): Remove size variable.
30200 (s390_pass_by_reference): Handle vector arguments.
30201 (s390_function_arg_advance): Likewise.
30202 (s390_function_arg): Likewise.
30203 (s390_return_in_memory): Vector values are returned in a VR if
30204 possible.
30205 (s390_function_and_libcall_value): Handle vector arguments.
30206 (s390_gimplify_va_arg): Likewise.
30207 (s390_call_saved_register_used): Consider the arguments named.
30208 (s390_conditional_register_usage): Disable v16-v31 for non-vec
30209 targets.
30210 (s390_preferred_simd_mode): New function.
30211 (s390_support_vector_misalignment): New function.
30212 (s390_vector_alignment): New function.
30213 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
30214 (TARGET_VECTOR_MODE_SUPPORTED_P)
30215 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
30216 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
30217 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
30218 (TARGET_VECTOR_ALIGNMENT): Define target macro.
30219 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
30220 (FIRST_PSEUDO_REGISTER): Increase value.
30221 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
30222 (VECTOR_REG_P): Define macros.
30223 (FIXED_REGISTERS, CALL_USED_REGISTERS)
30224 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
30225 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
30226 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
30227 Add vector registers.
30228 (CANNOT_CHANGE_MODE_CLASS): Call C function.
30229 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
30230 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
30231 memory.
30232 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
30233 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
30234 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
30235 (VR*_REGNUM): New constants.
30236 (ALL): New mode iterator.
30237 (INTALL): Remove mode iterator.
30238 Include vector.md.
30239 (movti): Implement TImode moves for VRs.
30240 Disable TImode splitter for VR targets.
30241 Implement splitting TImode GPR<->VR moves.
30242 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
30243 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
30244 reload<mode>_la_in, reload<mode>_la_out.
30245 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
30246 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
30247 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
30248 (mov<mode> SF SD): Prefer lder, lde for loading.
30249 Add lrl and strl instructions.
30250 Add vector instructions.
30251 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
30252 Call s390_expand_vec_strlen on z13.
30253 (*cc_to_int): Change predicate to nonimmediate_operand.
30254 (addti3): Rename to *addti3. New expander.
30255 (subti3): Rename to *subti3. New expander.
30256 * config/s390/vector.md: New file.
30257
30258 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30259
30260 * common/config/s390/s390-common.c (processor_flags_table): Add
30261 z13.
30262 * config.gcc: Add z13.
30263 * config/s390/s390-opts.h (enum processor_type): Add
30264 PROCESSOR_2964_Z13.
30265 * config/s390/s390.c (s390_adjust_priority): Check for
30266 PROCESSOR_2964_Z13.
30267 (s390_reorg): Likewise.
30268 (s390_sched_reorder): Likewise.
30269 (s390_sched_variable_issue): Likewise.
30270 (s390_loop_unroll_adjust): Likewise.
30271 (s390_option_override): Likewise. Default to -mvx when available.
30272 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
30273 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
30274 (TARGET_VX_ABI): Define macros.
30275 macros.
30276 (TARGET_DEFAULT): Add MASK_OPT_VX.
30277 * config/s390/s390.md ("cpu" attribute): Add z13.
30278 ("cpu_facility" attribute): Add vec.
30279 * config/s390/s390.opt (processor_type): Add z13.
30280 (mvx): New options.
30281 * doc/invoke.texi: Add z13 option for -march.
30282
30283 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30284
30285 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
30286 mode check to make sure that only scalar integer values are
30287 accepted.
30288
30289 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
30290
30291 * tree.c (verify_type_variant): Fix #undef.
30292 (gimple_canonical_types_compatible_p): Move here from lto.c
30293 (verify_type): Verify TYPE_CANONICAL compatibility.
30294 * tree.h (gimple_canonical_types_compatible_p): Declare.
30295
30296 2015-05-19 Jakub Jelinek <jakub@redhat.com>
30297
30298 PR middle-end/66199
30299 * tree.h (OMP_TEAMS_COMBINED): Define.
30300 * gimplify.c (enum gimplify_omp_var_data): Add
30301 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
30302 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
30303 (omp_notice_variable): Accept both ORT_TEAMS
30304 and ORT_COMBINED_TEAMS. Don't recurse if
30305 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
30306 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
30307 GOVD_FIRSTPRIVATE.
30308 (omp_no_lastprivate): New function.
30309 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
30310 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
30311 notice_outer and set appropriate bits, otherwise make
30312 sure default(none) combined constructs won't complain.
30313 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
30314 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
30315 omp_no_lastprivate either remove the clause or turn it
30316 into OMP_CLAUSE_PRIVATE.
30317 (gimplify_omp_for): Fix up handling of implicit
30318 lastprivate or linear iterators.
30319 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
30320 ORT_COMBINED_TEAMS.
30321 * omp-low.c (lower_omp_for_lastprivate): For combined
30322 for simd use fd.loop.n2 from the for rather than simd.
30323
30324 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30325
30326 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
30327 instead of gen_rtx_raw_REG.
30328 (cris_expand_epilogue): Likewise.
30329 * config/microblaze/microblaze.c (microblaze_classify_address):
30330 Likewise.
30331 * config/sparc/sparc.md: Likewise.
30332
30333 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
30334
30335 * config/alpha/alpha.c (alpha_legitimize_reload_address)
30336 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
30337 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
30338 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
30339 Use CASE_CONST_SCALAR_INT.
30340 (print_operand) <case 'M'>: Use mode_width_operand to check the
30341 value of the constant.
30342 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
30343 * config/alpha/predicates.md (input_operand): Use general_operand
30344 instead of match_code as operand check.
30345 (symbolic_operand): Use match_code with subexpression digits.
30346 * config/alpha/constraints.md (Q): Ditto.
30347
30348 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30349
30350 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
30351
30352 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30353
30354 * config/s390/s390.c (s390_secondary_reload): Fix check for
30355 load/store relative.
30356
30357 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30358
30359 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
30360 alternative_mask to uint64_t.
30361
30362 2015-05-19 Jakub Jelinek <jakub@redhat.com>
30363
30364 PR tree-optimization/66187
30365 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
30366 Pass TYPE_SIGN to tree_int_cst_min_precision. If
30367 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
30368
30369 2015-05-19 David Malcolm <dmalcolm@redhat.com>
30370
30371 * diagnostic.c (diagnostic_report_current_module): Strengthen
30372 local "new_map" from const line_map * to
30373 const line_map_ordinary *.
30374 * genmatch.c (error_cb): Likewise for local "map".
30375 (output_line_directive): Likewise for local "map".
30376 * input.c (expand_location_1): Likewise for local "map".
30377 Pass NULL rather than &map to
30378 linemap_unwind_to_first_non_reserved_loc, since the value is never
30379 read from there, and the value written back not read from here.
30380 (is_location_from_builtin_token): Strengthen local "map" from
30381 const line_map * to const line_map_ordinary *.
30382 (dump_location_info): Strengthen locals "map" from
30383 line_map *, one to const line_map_ordinary *, the other
30384 to const line_map_macro *.
30385 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
30386 const line_map * to const line_map_macro *.
30387 (maybe_unwind_expanded_macro_loc): Add a call to
30388 linemap_check_macro when writing to the "map" field of the
30389 loc_map_pair.
30390 Introduce local const line_map_ordinary * "ord_map", using it in
30391 place of "map" in the part of the function where we know we have
30392 an ordinary map. Strengthen local "m" from const line_map * to
30393 const line_map_ordinary *.
30394
30395 2015-05-19 Nick Clifton <nickc@redhat.com>
30396
30397 PR target/66156
30398 * config/msp430/msp430.md (zero_extendhisi2): Add support for
30399 separate source and destination registers.
30400
30401 2015-05-19 Richard Biener <rguenther@suse.de>
30402
30403 PR tree-optimization/66165
30404 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
30405 for no load permutation.
30406
30407 PR tree-optimization/66185
30408 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
30409 when building the SLP node from scalars.
30410
30411 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
30412 Tristan Gingold <gingold@adacore.com>
30413
30414 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
30415 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
30416 (expand_stack_restore): Call record_new_stack_level.
30417 (expand_stack_save): Do not call do_pending_stack_adjust.
30418 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
30419 * calls.c (expand_call): Call record_new_stack_level for alloca.
30420 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
30421 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
30422 (update_sjlj_context): New global function.
30423 * except.h (update_sjlj_context): Declare.
30424 * explow.c (record_new_stack_level): New global function.
30425 (allocate_dynamic_stack_space): Call record_new_stack_level.
30426 * explow.h (record_new_stack_level): Declare.
30427 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
30428 * cfgrtl.c (duplicate_insn_chain): Likewise.
30429
30430 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30431
30432 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
30433 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
30434 STACK_GROWS_DOWNWARD as normal if.
30435 (expand_call): Likewise.
30436
30437 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
30438
30439 PR target/54236
30440 * config/sh/sh.md (*round_int_even): New insn_and_split and
30441 accompanying new unnamed split.
30442
30443 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30444
30445 * bitmap.c (bitmap_set_range): Handle count==1 specially.
30446 (bitmap_clear_range): Likewise.
30447 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
30448 bitmap_set_range unconditionally.
30449 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
30450 * df-scan.c (df_mark_reg): Likewise.
30451 * haifa-sched.c (setup_ref_regs): Likewise.
30452 * sched-rgn.c (update_live_1): Likewise.
30453
30454 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30455
30456 * regs.h (END_HARD_REGNO): Delete.
30457 (END_REGNO): Move to...
30458 * rtl.h: ...here.
30459 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
30460 * caller-save.c (mark_set_regs): Likewise.
30461 * combine.c (move_deaths, distribute_notes): Likewise.
30462 * cse.c (invalidate, invalidate_for_call): Likewise.
30463 * df-scan.c (df_ref_record): Likewise.
30464 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
30465 (record_last_reg_set_info): Likewise.
30466 * reg-stack.c (convert_regs_exit): Likewise.
30467 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
30468 * resource.c (update_live_status): Likewise.
30469 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
30470
30471 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30472
30473 * rtl.h (reg_info): Add an nregs field.
30474 (REG_NREGS): Use it.
30475 (SET_REGNO_RAW): Delete.
30476 (set_regno_raw): New function.
30477 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
30478 (END_REGNO): Redefine in terms of REG_NREGS.
30479 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
30480 SET_REGNO_RAW.
30481 * emit-rtl.c (set_mode_and_regno): Likewise.
30482 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
30483 instead of SET_REGNO_RAW.
30484
30485 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30486
30487 * rtl.h (PUT_MODE_RAW): New macro.
30488 (PUT_REG_NOTE_KIND): Use it.
30489 (set_mode_and_regno): Declare.
30490 (gen_raw_REG): Change regno to "unsigned int".
30491 (gen_rtx_REG): Change "unsigned" to "unsigned int".
30492 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
30493 use set_mode_and_regno to change the mode of registers.
30494 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
30495 * emit-rtl.c (set_mode_and_regno): New function.
30496 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
30497 * caller-save.c (reg_save_code): Use set_mode_and_regno.
30498 * expr.c (init_expr_target): Likewise.
30499 * ira.c (setup_prohibited_mode_move_regs): Likewise.
30500 * postreload.c (reload_cse_simplify_operands): Likewise.
30501
30502 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30503
30504 * caller-save.c (init_caller_save): Use word_mode and
30505 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
30506 * expr.c (init_expr_target): Likewise.
30507 * ira.c (setup_prohibited_mode_move_regs): Likewise.
30508 * postreload.c (reload_cse_regs_1): Likewise.
30509
30510 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30511
30512 * rtl.def (REG): Change format to "r".
30513 * rtl.h (rtunion): Remove rt_reg.
30514 (reg_info): New structure.
30515 (rtx_def): Add reg field to main union.
30516 (X0REGATTR): Delete.
30517 (REG_CHECK): New macro.
30518 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
30519 * rtl.c (rtx_format): Document "r".
30520 (rtx_code_size): Handle REG specially.
30521 * gengenrtl.c (special_format): Return true for formats
30522 that include 'r'.
30523 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
30524 Deal with REG_ATTRS after the field loop.
30525 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
30526 * expmed.c (init_expmed): Call gen_raw_REG instead of
30527 gen_rtx_raw_REG.
30528 * expr.c (init_expr_target): Likewise.
30529 * regcprop.c (maybe_mode_change): Likewise.
30530 * varasm.c (make_decl_rtl): Likewise.
30531 * final.c (leaf_renumber_regs_insn): Return early after
30532 handling REGs.
30533 * genemit.c (gen_exp): Handle 'r' fields.
30534 * genpeep.c (match_rtx): Likewise.
30535 * gensupport.c (subst_pattern_match): Likewise.
30536 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
30537 (alter_constraints, subst_dup): Likewise.
30538 * read-rtl.c (read_rtx_code): Likewise.
30539 * print-rtl.c (print_rtx): Likewise.
30540 * genrecog.c (find_operand, find_matching_operand): Likewise.
30541 (validate_pattern, match_pattern_2): Likewise.
30542 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
30543 (rtx_test::regno_field): New function.
30544 (operator ==, safe_to_hoist_p, transition_parameter_type)
30545 (parameter_type_string, print_parameter_value)
30546 (print_nonbool_test, print_test): Handle new enum values.
30547 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
30548 * lra-constraints.c (operands_match_p): Likewise.
30549
30550 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30551
30552 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
30553 Change type of new_regno to unsigned int.
30554 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
30555 new_regno to unsigned int.
30556 (df_ref_change_reg_with_loc): Remove old_regno parameter.
30557 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
30558 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
30559 (SET_REGNO_RAW): Add space after ",".
30560
30561 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30562
30563 * rtl.h (REG_NREGS): New macro
30564 * alias.c (record_set): Use it.
30565 * cfgcleanup.c (mark_effect): Likewise.
30566 * combine.c (likely_spilled_retval_1): Likewise.
30567 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
30568 (move_deaths, distribute_notes): Likewise.
30569 * cselib.c (cselib_record_set): Likewise.
30570 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
30571 * df-scan.c (df_mark_reg): Likewise.
30572 * dse.c (look_for_hardregs): Likewise.
30573 * dwarf2out.c (reg_loc_descriptor): Likewise.
30574 (multiple_reg_loc_descriptor): Likewise.
30575 * expr.c (write_complex_part, read_complex_part): Likewise.
30576 (emit_move_complex): Likewise.
30577 * haifa-sched.c (setup_ref_regs): Likewise.
30578 * ira-lives.c (mark_hard_reg_live): Likewise.
30579 * lra.c (lra_set_insn_recog_data): Likewise.
30580 * mode-switching.c (create_pre_exit): Likewise.
30581 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
30582 (reload_combine_recognize_pattern): Likewise.
30583 (reload_combine_note_use, move2add_record_mode): Likewise.
30584 (reload_cse_move2add): Likewise.
30585 * reg-stack.c (subst_stack_regs_pat): Likewise.
30586 * regcprop.c (kill_value, copy_value): Likewise.
30587 (copyprop_hardreg_forward_1): Likewise.
30588 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
30589 (build_def_use): Likewise.
30590 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
30591 (deps_analyze_insn): Likewise.
30592 * sched-rgn.c (check_live_1, update_live_1): Likewise.
30593 * sel-sched.c (count_occurrences_equiv): Likewise.
30594 * valtrack.c (dead_debug_insert_temp): Likewise.
30595
30596 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30597
30598 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
30599 * dse.c (note_add_store): Likewise.
30600 * ira-lives.c (mark_hard_reg_dead): Likewise.
30601 * loop-invariant.c (mark_reg_store): Likewise.
30602 (mark_reg_death): Likewise.
30603 * postreload.c (reload_combine): Likewise.
30604 (reload_combine_note_store): Likewise.
30605 (reload_combine_note_use): Likewise.
30606 * recog.c (peep2_reg_dead_p): Likewise.
30607
30608 2015-05-19 Alan Modra <amodra@gmail.com>
30609
30610 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
30611 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
30612 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
30613 unused predicates.
30614 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
30615 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
30616 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
30617 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
30618
30619 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
30620
30621 * config/mips/mips.md (JOIN_MODE): New mode iterator.
30622 (join2_load_Store<JOIN_MODE:mode>): New pattern.
30623 (join2_loadhi): Likewise.
30624 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
30625 load-load and store-stores.
30626 * config/mips/mips.opt (mload-store-pairs): New option.
30627 (TARGET_LOAD_STORE_PAIRS): New macro.
30628 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
30629 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
30630 * config/mips/mips.c (mips_load_store_bonding_p): New function.
30631
30632 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
30633
30634 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
30635 explicit swaps.
30636 * dojump.c (do_compare_rtx_and_jump): Likewise.
30637 * expmed.c (emit_store_flag_1): Likewise.
30638 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
30639 * final.c (sprint_ul): Use std::reverse for reversing a string.
30640 * fold-const.c (extract_muldiv_1): Use std::swap.
30641 * genmodes.c (emit_mode_int_n): Likewise.
30642 * ifcvt.c (dead_or_predicable): Likewise.
30643 * ira-build.c (ira_merge_live_ranges): Likewise.
30644 (swap_allocno_copy_ends_if_necessary): Likewise.
30645 * ira.c (ira_setup_alts): Likewise.
30646 * loop-iv.c (iv_analyze_expr): Likewise.
30647 (implies_p): Likewise.
30648 (canon_condition): Likewise.
30649 * lra-constraints.c (swap_operands): Likewise.
30650 * lra-lives.c (lra_merge_live_ranges): Likewise.
30651 * omega.c (swap): Remove.
30652 (bswap): Remove.
30653 (omega_unprotect_1): Use std::swap.
30654 (omega_solve_geq): Likewise.
30655 * optabs.c (expand_binop_directly): Likewise.
30656 (expand_binop): Likewise.
30657 (emit_conditional_move): Likewise.
30658 (emit_conditional_add): Likewise.
30659 * postreload.c (reload_cse_simplify_operands): Likewise.
30660 * reg-stack.c (emit_swap_insn): Likewise.
30661 (swap_to_top): Likewise.
30662 (compare_for_stack_reg): Likewise.
30663 (subst_asm_stack_regs): Likewise.
30664 * reload.c (find_reloads): Likewise.
30665 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
30666 * sel-sched.c (invoke_reorder_hooks): Likewise.
30667 (create_block_for_bookkeeping): Likewise.
30668 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
30669 (lambda_matrix_right_hermite): Use std::swap.
30670 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
30671 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
30672 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
30673 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
30674 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
30675 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
30676 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
30677 * tree-vrp.c (compare_ranges): Likewise.
30678 * var-tracking.c (add_with_sets): Likewise.
30679 (vt_find_locations): Likewise.
30680
30681 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
30682
30683 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
30684 pie executables.
30685 (FBSD_ENDFILE_SPEC): Likewise.
30686 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
30687 config/freebsd-spec.h.
30688 (ENDFILE_SPEC): Likewise.
30689
30690 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
30691 Richard Henderson <rth@redhat.com>
30692
30693 PR target/57032
30694 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
30695 Check for a memory location that is not a reference (using an AND)
30696 to an unaligned location here.
30697 * config/alpha/predicates.md (normal_memory_operand): Remove.
30698
30699 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
30700
30701 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
30702 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
30703
30704 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
30705
30706 * config/mips/mips.c (micromips_globals): New variable.
30707 (mips_set_compression_mode): Save and reinitialize target-dependent
30708 state for microMIPS.
30709
30710 2015-05-18 Martin Liska <mliska@suse.cz>
30711
30712 * dbgcnt.def: Add new counter.
30713 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
30714
30715 2015-05-18 Martin Liska <mliska@suse.cz>
30716
30717 * dbgcnt.def: Sort counters.
30718 * opts.c (common_handle_option): Do not compile if
30719 -fdbg-cnt-list is enabled.
30720
30721 2015-05-18 Tom de Vries <tom@codesourcery.com>
30722
30723 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
30724 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
30725 address operator to va_list operand.
30726 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
30727 unconditionally.
30728 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
30729 operand.
30730 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
30731 * config/s390/s390.c (s390_gimplify_va_arg): Same.
30732 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
30733
30734 2015-05-18 Tom de Vries <tom@codesourcery.com>
30735
30736 * tree-ssa-tail-merge.c: Fix whitespace.
30737
30738 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
30739
30740 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
30741 cortex-a17, and cortex-a17.cortex-a7.
30742
30743 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
30744
30745 PR target/54236
30746 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
30747
30748 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
30749
30750 PR target/66174
30751 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
30752 QImode inner modes for TARGET_AVX512BW. Force mask operand
30753 to a register for AVX512F modes.
30754
30755 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
30756
30757 * toplev.c (emit_debug_global_declarations): Do not output debug info
30758 when doing slim LTO objects.
30759
30760 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
30761
30762 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
30763 odr_types_equivalent_p): Declare.
30764 (odr_type_p): Use gcc_checking_assert.
30765 (type_in_anonymous_namespace_p) Declare.
30766 (type_with_linkage_p): Declare.
30767 * common.opt (Wlto-type-mismatch): New warning.
30768 * ipa-devirt.c (compound_type_base): New function.
30769 (odr_or_derived_type_p): New function.
30770 (odr_types_equivalent_p): New function.
30771 (add_type_duplicate): Simplify.
30772 (type_with_linkage_p): Add hack to prevent false positives on C types
30773 (type_in_anonymous_namespace_p): Likewise.
30774 * tree.c (need_assembler_name_p): Use type_with_linkage.
30775 * tree.h (type_in_anonymous_namespace_p): Remove.
30776 * doc/invoke.texi (-Wlto-type-mismatch): Document
30777
30778 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
30779
30780 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
30781 (verify_type): Verify STRING_FLAG.
30782
30783 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
30784
30785 PR fortran/44054
30786 * tree-pretty-print.c (percent_K_format): Replace locus pointer
30787 with accessor function.
30788 * tree-diagnostic.c (diagnostic_report_current_function): Use
30789 diagnostic_location function.
30790 (maybe_unwind_expanded_macro_loc): Likewise.
30791 (virt_loc_aware_diagnostic_finalizer): Likewise.
30792 (default_tree_printer): Replace locus pointer with accessor function.
30793 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
30794 (diagnostic_set_info_translated): Initialize second location.
30795 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
30796 (diagnostic_show_locus): Handle two locations. Call
30797 diagnostic_print_caret_line.
30798 (diagnostic_print_caret_line): New.
30799 (default_diagnostic_starter): Use diagnostic_location function.
30800 (diagnostic_report_diagnostic): Use diagnostic_location function.
30801 (verbatim): Do not set text.locus.
30802 * diagnostic.h (struct diagnostic_info): Remove location field.
30803 (struct diagnostic_context): Make caret_chars an array of two.
30804 (diagnostic_location): New inline.
30805 (diagnostic_expand_location): Handle two locations.
30806 (diagnostic_same_line): New inline.
30807 (diagnostic_print_caret_line): Declare.
30808 (CARET_LINE_MARGIN): New constant.
30809 * pretty-print.c (pp_printf): Do not set text.locus.
30810 (pp_verbatim): Do not set text.locus.
30811 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
30812 (struct text_info): Replace locus pointer with locations
30813 array. Add accessor functions.
30814
30815 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
30816 Zhenqiang Chen <zhenqiang.chen@linaro.org>
30817
30818 PR target/65768
30819 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
30820 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
30821 large constants in register instead of splitting them.
30822
30823 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
30824
30825 PR target/66140
30826 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
30827 replacements in memory addresses.
30828 (get_unaligned_address): Ditto.
30829
30830 2015-05-16 James Bowman <james.bowman@ftdichip.com>
30831
30832 * config/ft32/*: New files for FT32 port.
30833 * doc/install.texi: Add FT32 information.
30834 * doc/invoke.texi: Add FT32 information.
30835 * doc/md.texi: Add FT32 information.
30836 * doc/contrib.texi: Self added.
30837
30838 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
30839
30840 PR tree-optimization/64454
30841 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
30842 (-1 - A -> ~A): Remove unnecessary condition.
30843
30844 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
30845
30846 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
30847 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
30848 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
30849
30850 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
30851
30852 * ipa-chkp.h (chkp_wrap_function): New.
30853 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
30854 (chkp_wrap_function_name): New.
30855 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
30856 to get wrapper name.
30857 * lto-cgraph.c: Include ipa-chkp.h.
30858 (input_cgraph_1): Avoid alias chain for wrappers.
30859
30860 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
30861
30862 PR middle-end/66134
30863 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
30864 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
30865
30866 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30867
30868 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
30869 (AARCH64_FL_SLOWMUL): Delete.
30870 (AARCH64_FL_CRC): Redefine to 1<<3.
30871 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
30872
30873 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30874
30875 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
30876 casting.
30877
30878 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
30879
30880 * config/alpha/alpha.md (extendqidi2): Use general_operand
30881 instead of some_operand for operand[1] predicate.
30882 (extendhidi2): Ditto.
30883 (cbranchdi4): Use general_operand instead of some_operand
30884 for operand[1] and operands[2] predicates.
30885 (cstoredi4): Ditto.
30886 * config/alpha/predicates.md (some_operand): Remove unused predicate.
30887 (some_ni_operand): Ditto.
30888
30889 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
30890
30891 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
30892 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
30893 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
30894 low part of the constant using alpha_emit_set_const_1.
30895 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
30896
30897 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
30898
30899 * varasm.c (output_constant_pool_1): Pass down alignment from
30900 constant pool entry's descriptor to output_constant_pool_2.
30901 (output_object_block): Add comment prior to call to
30902 output_constant_pool_1.
30903
30904 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
30905
30906 PR rtl-optimization/65862
30907 * target.def (ira_change_pseudo_allocno_class): New hook.
30908 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
30909 value of the hook.
30910 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
30911 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
30912 hook.
30913 * ira-costs.c (find_costs_and_classes): Call the hook and change
30914 classes when it is necessary.
30915 * doc/tm.texi: Update.
30916
30917 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
30918
30919 * config/i386/i386.md (sibcall_memory): Check that register with
30920 callee address is not also used as one of the arguments, instead
30921 of checking that it is not live after the sibcall.
30922 (sibcall_pop_memory): Ditto.
30923 (sibcall_value_memory): Ditto.
30924 (sibcall_value_pop_memory): Ditto.
30925
30926 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
30927
30928 * generic-match-head.c (types_match): Handle non-types.
30929 * gimple-match-head.c (types_match): Likewise.
30930 * match.pd: Remove unnecessary TREE_TYPE for types_match.
30931
30932 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
30933
30934 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
30935 (csneg3<mode>_insn): Enable expansion of pattern.
30936
30937 2015-05-14 Nick Clifton <nickc@redhat.com>
30938
30939 * config/rl78/rl78.c (rl78_select_section): Select the correct
30940 default section based upon the category of the decl.
30941
30942 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
30943
30944 PR rtl-optimization/30967
30945 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
30946 destination mode for the cost of scc patterns.
30947
30948 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
30949
30950 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
30951 using SWIM248 mode iterator.
30952 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
30953 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
30954 for operand[2] constraint.
30955 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
30956
30957 2015-05-13 Jakub Jelinek <jakub@redhat.com>
30958
30959 PR middle-end/66133
30960 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
30961 make sure it is never noreturn, even when the task body does not
30962 return.
30963 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
30964 right before GIMPLE_OMP_RETURN.
30965 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
30966 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
30967 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
30968
30969 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30970
30971 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
30972 * tree-ssa-math-opts.c: Include params.h
30973 (pow_synth_sqrt_info): New struct.
30974 (representable_as_half_series_p): New function.
30975 (get_fn_chain): Likewise.
30976 (print_nested_fn): Likewise.
30977 (dump_fractional_sqrt_sequence): Likewise.
30978 (dump_integer_part): Likewise.
30979 (expand_pow_as_sqrts): Likewise.
30980 (gimple_expand_builtin_pow): Use above to attempt to expand
30981 pow as series of square roots. Removed now unused variables.
30982
30983 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
30984
30985 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
30986 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
30987 Remove *p0 and *p1 arguments. Rewrite function.
30988 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
30989 (alpha_split_const_mov): Update calls to alpha_extract_integer and
30990 alpha_emit_set_long_const.
30991 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
30992 (alpha_output_mi_thunk_osf): Ditto.
30993 * config/alpha/alpha.md (movti): Do not check operands[1]
30994 for CONST_DOUBLE.
30995
30996 2015-05-13 Richard Biener <rguenther@suse.de>
30997
30998 PR tree-optimization/66129
30999 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
31000 commutative.
31001 (vect_schedule_slp_instance): Fix typo.
31002
31003 2015-05-13 David Malcolm <dmalcolm@redhat.com>
31004
31005 * common.opt (fdump-internal-locations): New option.
31006 * input.c: Include diagnostic-core.h.
31007 (get_end_location): New function.
31008 (write_digit): New function.
31009 (write_digit_row): New function.
31010 (dump_location_range): New function.
31011 (dump_labelled_location_range): New function.
31012 (dump_location_info): New function.
31013 * input.h (dump_location_info): New prototype.
31014 * toplev.c (compile_file): Handle flag_dump_locations.
31015
31016 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
31017
31018 * gimple-expr.h (is_gimple_constant): Reorder.
31019 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
31020
31021 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
31022
31023 * combine.c (simplify_set): When generating a CC set, if the
31024 source already is in the correct mode, do not wrap it in a
31025 compare. Simplify the rest of that code.
31026
31027 2015-05-13 Richard Biener <rguenther@suse.de>
31028
31029 PR tree-optimization/66123
31030 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
31031 a taken edge.
31032
31033 2015-05-13 Richard Biener <rguenther@suse.de>
31034
31035 PR middle-end/66110
31036 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
31037 specially.
31038 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
31039
31040 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
31041
31042 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
31043 * aclocal.m4: Regenerated with automake-1.11.6.
31044
31045 2015-05-13 Tom de Vries <tom@codesourcery.com>
31046
31047 PR tree-optimization/66010
31048 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
31049 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
31050 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
31051 and rval based on do_deref.
31052
31053 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
31054
31055 PR target/65103
31056 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
31057 link time constants into adress expressions and therefore set
31058 their cost to 0.
31059
31060 2015-05-13 Jakub Jelinek <jakub@redhat.com>
31061
31062 PR target/66112
31063 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
31064 Use SWI248 iterator instead of SWI.
31065 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
31066 Use eq_attr "alternative" "0" instead of match_test in
31067 length_immediate attribute computation.
31068 (*mulvhi4, *mulvhi4_1): New define_insns.
31069
31070 PR target/66112
31071 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
31072 SIGNED to get precision of non-negative value.
31073
31074 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
31075
31076 PR target/66048
31077 * function.c (diddle_return_value_1): Process bounds first.
31078 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
31079 register.
31080
31081 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
31082
31083 PR rtl-optimization/64616
31084 * loop-invariant.c (can_move_invariant_reg): New.
31085 (move_invariant_reg): Call above new function to decide whether
31086 instruction can just be moved, skipping creation of temporary
31087 register.
31088
31089 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
31090
31091 PR target/pr66047.c
31092 * i386.c (ix86_function_sseregparm): Only return -1 if local function
31093 with implied regparm is called from -mno-sse function.
31094 (init_cumulative_args): Output error if ix86_function_sseregparm
31095 return -1 and SSE register would be needed.
31096 (function_arg_advance_32): Likewise.
31097 (function_arg_32): Likewise.
31098 * i386.h (ix86_args): Add decl field.
31099
31100 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
31101
31102 PR ipa/65873
31103 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
31104 inlines across optimization boundary.
31105
31106 2015-05-12 Jason Merrill <jason@redhat.com>
31107
31108 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
31109 string literal and macro name.
31110
31111 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
31112
31113 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
31114 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
31115 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
31116
31117 2015-05-12 David Malcolm <dmalcolm@redhat.com>
31118
31119 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
31120 (-Wmisleading-indentation): New option.
31121 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
31122
31123 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
31124
31125 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
31126 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
31127 (alpha_extract_integer): Ditto.
31128 (alpha_legitimate_constant_p): Ditto.
31129 (alpha_split_tmode_pair): Ditto.
31130 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
31131 (alpha_expand_mov): Ditto.
31132 (print_operand): Remove handling of 'H' modifier.
31133 <case 'm'>: Remove CONST_DOUBLE handling.
31134 (summarize_insn): Handle CONST_WIDE_INT.
31135 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
31136 (anddi3): Ditto.
31137 (movti): Handle CONST_WIDE_INT.
31138 * config/alpha/constraints.md ('H'): Remove constraint definition.
31139 ('G'): Do not match MODE_FLOAT class.
31140 * config/alpha/predicates.md (const0_operand): Also match
31141 const_wide_int.
31142 (non_add_const_operand): Ditto.
31143 (non_zero_const_operand): Ditto.
31144 (some_operand): Ditto.
31145 (input_operand): Ditto. Handle CONST_WIDE_INT.
31146 (and_operand): Do not match const_double.
31147 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
31148
31149 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
31150
31151 PR target/65697
31152 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
31153 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
31154 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
31155 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
31156 is_mm_seq_cst, is_mm_sync): New accessor functions.
31157 * builtins.c (expand_builtin_sync_operation,
31158 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
31159 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
31160 (get_memmodel, expand_builtin_atomic_compare_exchange,
31161 expand_builtin_atomic_load, expand_builtin_atomic_store,
31162 expand_builtin_atomic_clear): Use new accessor routines.
31163 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
31164 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
31165 (maybe_emit_sync_lock_test_and_set): Use new accessors and
31166 MEMMODEL_SYNC_ACQUIRE.
31167 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
31168 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
31169 expand_atomic_store): Use new accessors.
31170 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
31171 * tsan.c (instrument_builtin_call): Update check for memory model beyond
31172 final enum to use MEMMODEL_LAST.
31173 * c-family/c-common.c: Use new accessor for memmodel_base.
31174 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
31175 accessors.
31176 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
31177 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
31178 mem_thread_fence, *dmb): Likewise.
31179 * config/alpha/alpha.c (alpha_split_compare_and_swap,
31180 alpha_split_compare_and_swap_12): Likewise.
31181 * config/arm/arm.c (arm_expand_compare_and_swap,
31182 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
31183 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
31184 atomic_loaddi): Likewise.
31185 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
31186 Likewise.
31187 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
31188 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
31189 use new accessors.
31190 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
31191 atomic_store<mode>, atomic_compare_and_swap<mode>,
31192 atomic_exchange<mode>): Use new accessors.
31193 * config/mips/mips.c (mips_process_sync_loop): Likewise.
31194 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
31195 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
31196 rs6000_post_atomic_barrier): Add new cases.
31197 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
31198 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
31199 (atomic_load<mode>): Add new cases and use new accessors.
31200 (store_quadpti): Add new cases.
31201 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
31202 accessors.
31203 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
31204 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
31205 model, not 8.
31206
31207 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
31208
31209 * ipa-devirt.c (type_with_linkage_p): New function.
31210 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
31211 type has linkage.
31212 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
31213 (can_be_name_hashed_p): Simplify.
31214 (hash_odr_name): Check that type has linkage before checking if it is
31215 anonymous.
31216 (types_same_for_odr): Likewise.
31217 (odr_name_hasher::equal): Likewise.
31218 (odr_subtypes_equivalent_p): Likewise.
31219 (warn_types_mismatch): Likewise.
31220 (get_odr_type): Likewise.
31221 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
31222 * ipa-utils.h (odr_type_p): Move offline.
31223 * tree.c (need_assembler_name_p): Fix handling of types
31224 without linkages.
31225 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
31226
31227 2015-05-12 David Malcolm <dmalcolm@redhat.com>
31228
31229 * timevar.c (timevar_enable): Delete in favor of...
31230 (g_timer): New global.
31231 (struct timevar_def): Move to timevar.h inside class timer.
31232 (struct timevar_stack_def): Likewise.
31233 (timevars): Delete global in favor of field "m_timevars" within
31234 class timer in timevar.h
31235 (stack): Likewise, in favor of field "m_stack".
31236 (unused_stack_instances): Likewise, in favor of field
31237 "m_unused_stack_instances".
31238 (start_time): Likewise, in favor of field "m_start_time".
31239 (get_time): Eliminate check for timevar_enable.
31240 (timer::timer): New function, built from part of timevar_init.
31241 (timevar_init): Rewrite idempotency test from using
31242 "timevar_enable" bool to using dynamic allocation of "g_timer".
31243 Move rest of implementation into timer's constructor.
31244 (timevar_push_1): Rename to...
31245 (timer::push): ...this, adding "m_" prefixes to variables that
31246 are now fields of timer.
31247 (timevar_pop_1): Likewise, rename to...
31248 (timer::pop): ...this, and add "m_" prefixes.
31249 (timevar_start): Replace test for "timevar_enable" with one for
31250 "g_timer", and move bulk of implementation to...
31251 (timer::start): ...here, adding "m_" prefixes.
31252 (timevar_stop): Likewise, from here...
31253 (timer::stop): ...to here.
31254 (timevar_cond_start): Likewise, from here...
31255 (timer::cond_start): ...to here.
31256 (timevar_cond_stop): Likewise, from here...
31257 (timer::cond_stop): ...to here.
31258 (validate_phases): Rename to...
31259 (timer::validate_phases): ...this, and add "m_" prefixes. Make
31260 locals "total" and "tv" const.
31261 (timevar_print): Rename to...
31262 (timer::print): ...this, and add "m_" prefixes. Make locals
31263 "total" and "tv" const. Eliminate test for timevar_enable.
31264 * timevar.h (timevar_enable): Eliminate.
31265 (g_timer): New declaration.
31266 (timevar_push_1): Eliminate.
31267 (timevar_pop_1): Eliminate.
31268 (timevar_print): Eliminate.
31269 (class timer): New class.
31270 (timevar_push): Rewrite to use g_timer.
31271 (timevar_pop): Likewise.
31272 * toplev.c (toplev::~toplev): Likewise.
31273
31274 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
31275
31276 * arm-protos.h (arm_sched_autopref): Delete.
31277 (tune_params): Re-organize, use enums for flag values.
31278 (FUSE_OPS): New macro.
31279 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
31280 (ARM_PREFETCH_BENEFICIAL): Likewise.
31281 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
31282 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
31283 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
31284 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
31285 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
31286 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
31287 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
31288 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
31289 format.
31290 (arm_option_override, thumb2_reorg, arm_print_tune_info)
31291 (aarch_macro_fusion_pair_p): Update uses of current_tune.
31292 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
31293
31294 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
31295
31296 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
31297 "break".
31298
31299 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
31300 Sandra Loosemore <sandra@codesourcery.com>
31301
31302 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
31303 value.
31304 (REG_CLASS_NAMES): Add "IJMP_REGS".
31305 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
31306 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
31307 use new "c" register constraint.
31308 * config/nios2/constraint.md (c): New register constraint
31309 corresponding to IJMP_REGS.
31310
31311 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31312
31313 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
31314 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
31315 define_splits): Delete, revamp, transmogrify into ...
31316 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
31317 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
31318 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
31319 New.
31320
31321 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31322
31323 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
31324 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
31325
31326 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31327
31328 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
31329 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
31330 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
31331 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
31332 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
31333 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
31334 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
31335 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
31336 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
31337 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
31338 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
31339 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
31340 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
31341 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
31342 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
31343 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
31344 and 30 corresponding splitters): Delete.
31345
31346 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31347
31348 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
31349 zero_extract.
31350
31351 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31352
31353 * combine.c (recog_for_combine_1): New function, factored out
31354 from recog_for_combine.
31355 (change_zero_ext): New function.
31356 (recog_for_combine): If recog fails, try again with the pattern
31357 modified by change_zero_ext; if that still fails, restore the
31358 pattern.
31359
31360 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31361
31362 * combine.c (get_undo_marker): New function.
31363 (undo_to_marker): New function, largely factored out from ...
31364 (undo_all): ... this. Adjust.
31365
31366 2015-05-12 Richard Biener <rguenther@suse.de>
31367
31368 PR tree-optimization/66101
31369 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
31370 fixup if we turn a loop exit edge to a fallthru edge.
31371
31372 2015-05-12 Richard Biener <rguenther@suse.de>
31373
31374 PR tree-optimization/37021
31375 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
31376 (SLP_TREE_TWO_OPERATORS): New define.
31377 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
31378 SLP_TREE_TWO_OPERATORS.
31379 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
31380 SLP node.
31381 (vect_build_slp_tree): Adjust.
31382 (vect_analyze_slp_cost_1): Likewise.
31383 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
31384 emitting two vector stmts and mixing the results.
31385
31386 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
31387
31388 * call.c (print_z_candidates): Remove dead code.
31389
31390 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31391
31392 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
31393 and zEC12_simple_fp.
31394 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
31395 to 1.
31396
31397 2015-05-12 Tom de Vries <tom@codesourcery.com>
31398
31399 PR tree-optimization/66010
31400 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
31401 ifn_va_arg.
31402 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
31403 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
31404 va_lists are passed, and remove corresponding handling.
31405 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
31406 do_deref argument to ifn_va_arg.
31407 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
31408 ifn_va_arg.
31409
31410 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31411
31412 PR target/65955
31413 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
31414 REG before taking its REGNO.
31415
31416 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
31417
31418 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
31419 rsp->sign_bit_copies and rsp->nonzero_bits into ...
31420 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
31421 present to get more accurate information about the number of sign bit
31422 copies and non zero bits.
31423
31424 2015-05-12 Richard Biener <rguenther@suse.de>
31425
31426 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
31427 do not allow unrolling.
31428
31429 2015-05-11 Richard Henderson <rth@redhat.com>
31430
31431 * config/i386/i386-modes.def (CCP): New.
31432 * config/i386/i386.c (put_condition_code): Handle it.
31433 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
31434
31435 2015-05-11 Richard Henderson <rth@redhat.com>
31436
31437 * target.def (md_asm_clobbers): Replace with...
31438 (md_asm_adjust): this.
31439 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
31440 (TARGET_MD_ASM_ADJUST): New.
31441 * tm.texi: Rebuild.
31442 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
31443 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
31444 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
31445
31446 * cfgexpand.c (check_operand_nalternatives): Accept vector of
31447 constraints instead of lists of outputs and inputs.
31448 (expand_asm_stmt): Save and restore input_location around the
31449 body of the function. Move asm data into vectors instead of
31450 building tree lists. Generate cleanup sequences as needed,
31451 rather than waiting til the end. Use new md_asm_adjust hook.
31452
31453 * config/vxworks.c: Include vec.h before target.h.
31454 * gimple.c: Likewise.
31455 * incpath.c: Likewise.
31456 * mode-switching.c: Likewise.
31457
31458 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
31459 (cris_md_asm_adjust): this.
31460 (TARGET_MD_ASM_CLOBBERS): Remove.
31461 (TARGET_MD_ASM_ADJUST): New.
31462 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
31463 (ix86_md_asm_adjust): this.
31464 (TARGET_MD_ASM_CLOBBERS): Remove.
31465 (TARGET_MD_ASM_ADJUST): New.
31466 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
31467 (mn10300_md_asm_adjust): this.
31468 (TARGET_MD_ASM_CLOBBERS): Remove.
31469 (TARGET_MD_ASM_ADJUST): New.
31470 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
31471 (rs6000_md_asm_adjust): this.
31472 (TARGET_MD_ASM_CLOBBERS): Remove.
31473 (TARGET_MD_ASM_ADJUST): New.
31474 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
31475 (visium_md_asm_adjust): this.
31476 (TARGET_MD_ASM_CLOBBERS): Remove.
31477 (TARGET_MD_ASM_ADJUST): New.
31478
31479 2015-05-11 Richard Henderson <rth@redhat.com>
31480
31481 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
31482 if noutputs is zero.
31483 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
31484
31485 * cfgexpand.c (expand_asm_operands): Merge into...
31486 (expand_asm_stmt): ... here.
31487
31488 * cfgexpand.c (expand_asm_operands): Don't call
31489 resolve_asm_operand_names.
31490 * stmt.c (resolve_asm_operand_names): Clarify block comment.
31491
31492 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
31493
31494 * dwarf2out.c (gen_member_die): Sanity check that we access
31495 TYPE_MAIN_VARIANT for TYPE_METHODS.
31496 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
31497 checking TYPE_METHODS.
31498 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
31499 if non-null.
31500 (build_distinct_type_copy): Clear TYPE_METHODS.
31501 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
31502 (verify_type): Allow TYPE_METHODS to be error_mark_node.
31503 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
31504
31505 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
31506
31507 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
31508 (emit_pattern_before_setloc): Likewise.
31509
31510 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
31511
31512 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
31513 for define_peephole2s.
31514 (get_peephole2_pattern): New function.
31515 (main): Use it. Call validate_pattern.
31516
31517 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
31518
31519 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
31520 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
31521 (Last callee saved reg is different for AVR_TINY architecture)
31522
31523 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
31524
31525 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
31526 when looking for memory references.
31527
31528 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
31529
31530 PR target/65753
31531 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
31532 via function pointers.
31533
31534 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
31535
31536 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
31537 indirect call by forcing address into a pseudo with -fno-plt.
31538 * common.opt (flag_plt): New option.
31539 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
31540 ([-fno-plt]): Document.
31541
31542 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
31543
31544 PR bootstrap/66105
31545 * config/rs6000/option-defaults.h: Add space between string literal
31546 and macro name.
31547
31548 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
31549
31550 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
31551 accross ARM targets.
31552
31553 2015-05-11 Christian Bruel <christian.bruel@st.com>
31554
31555 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
31556 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
31557
31558 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
31559
31560 PR rtl-optimization/66076
31561 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
31562 Don't grow the heap array if it is already big enough from a
31563 previous iteration.
31564
31565 2015-05-11 Christian Bruel <christian.bruel@st.com>
31566
31567 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
31568 (is_called_in_ARM_mode): Remove.
31569 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
31570 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
31571 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
31572 arm_declare_function_name.
31573
31574 2015-05-11 Christian Bruel <christian.bruel@st.com>
31575
31576 * config/arm/arm.c (arm_option_override): Reoganized and split into :
31577 (arm_option_params_internal); New function.
31578 (arm_option_check_internal): New function.
31579 (arm_option_override_internal): New function.
31580 (thumb_code, thumb1_code): Remove.
31581 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
31582 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
31583 (thumb_code, thumb1_code): Remove.
31584 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
31585
31586 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
31587
31588 * config/alpha/alpha.c (alpha_emit_set_const_1)
31589 (alpha_emit_set_long_const, alpha_extract_integer)
31590 (alpha_legitimate_constant_p, alpha_split_const_mov)
31591 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
31592 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31593 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
31594 HOST_WIDE_INT_1U.
31595 * config/alpha/predicates.md (mode_mask_operand): Do not match
31596 const_double RTX.
31597 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31598 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
31599 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
31600 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31601 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
31602
31603 2015-05-11 Jakub Jelinek <jakub@redhat.com>
31604
31605 PR target/65780
31606 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
31607 default_binds_local_p_2.
31608 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
31609 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
31610
31611 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31612
31613 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
31614
31615 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31616
31617 Patch by Richard Biener
31618 * coverage.c (coverage_obj_init): Delay building of type variant
31619 until the type is finished.
31620
31621 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31622
31623 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
31624 mismatch between C and C++ type; compoare correctly ARG_TYPES
31625 for non-prototypes and output correctly parameter index for METHOD_TYPE.
31626 (odr_types_equivalent_p): Fix wording of warning about attributes;
31627 it is OK to match prototype and non-prototype.
31628
31629 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31630
31631 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
31632 TYPE_ARG_TYPES list.
31633 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
31634 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
31635
31636 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31637
31638 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
31639 * tree.h (is_lang_specific): Constify.
31640
31641 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
31642
31643 PR tree-optimization/64454
31644 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
31645 Rewrite.
31646
31647 2015-05-08 Jason Merrill <jason@redhat.com>
31648
31649 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
31650 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
31651 config/darwin.h, config/darwin9.h, config/elfos.h,
31652 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
31653 config/microblaze/microblaze.h, config/mips/mips.h,
31654 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
31655 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
31656 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
31657 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
31658 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
31659 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
31660 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
31661 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
31662 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
31663 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
31664 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
31665 between string literal and macro name.
31666
31667 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31668
31669 * jump.c: Change argument types to rtx_insn *.
31670 * rtl.h: Adjust.
31671
31672 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31673
31674 * lra-constraints.c: Change argument type to rtx_insn *.
31675
31676 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31677
31678 * df-problems.c: Change argument type to rtx_insn *.
31679
31680 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31681
31682 * combine.c: Change argument type to rtx_insn *.
31683
31684 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31685
31686 * rtl.h: Adjust.
31687 * rtlanal.c: Change argument type to rtx_insn *.
31688
31689 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31690
31691 * sched-deps.c: Change argument types to rtx_insn *.
31692 * sched-int.h: Adjust.
31693
31694 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31695
31696 * dwarf2cfi.c: Change argument type to rtx_insn *.
31697
31698 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31699
31700 * ira.c (decrease_live_ranges_number): Changetype of local
31701 variable to rtx_insn *.
31702 * recog.c: Change argument types to rtx_insn *.
31703 * recog.h: Adjust.
31704
31705 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31706
31707 * reorg.c: Change argument types to rtx_insn *.
31708
31709 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31710
31711 * ira-color.c: Change argument types to rtx_insn *.
31712 * lra-eliminations.c: Likewise.
31713 * ira.h: Adjust.
31714
31715 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31716
31717 * gcse.c: Change argument types to rtx_insn *.
31718
31719 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31720
31721 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
31722
31723 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31724
31725 * emit-rtl.c (emit_debug_insn_before): Change argument type to
31726 rtx_insn *.
31727 * rtl.h: Adjust.
31728
31729 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31730
31731 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
31732 * rtl.h: Adjust.
31733
31734 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31735
31736 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
31737 * rtl.h: Adjust.
31738
31739 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31740
31741 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
31742 * rtl.h: Adjust.
31743
31744 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31745
31746 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
31747 * rtl.h: Adjust.
31748
31749 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31750
31751 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
31752 to rtx_insn *.
31753 * rtl.h: Adjust.
31754
31755 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31756
31757 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
31758 to rtx_insn *.
31759 * rtl.h: Likewise.
31760
31761 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31762
31763 * except.c (can_nonlocal_goto): Change type of argument to
31764 rtx_insn *.
31765 * rtl.h: Adjust.
31766
31767 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31768
31769 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
31770 * rtl.h: Adjust.
31771
31772 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31773
31774 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
31775 * cfgrtl.c (can_delete_label_p): Adjust.
31776 * rtl.h: likewise.
31777
31778 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31779
31780 * reorg.c (stop_search_p): Change argument to rtx_insn *.
31781
31782 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31783
31784 * except.c (make_reg_eh_region_note): Change argument to
31785 rtx_insn *.
31786 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
31787 * except.h: Adjust.
31788
31789 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31790
31791 * mode-switching.c (commit_mode_sets): Change type of local
31792 variable from rtx to rtx_insn *.
31793
31794 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
31795
31796 * doc/install.texi (--enable-languages): Add missing jit and lto info.
31797 Add ^ to grep command.
31798 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
31799 arg to last gimple_simplify declaration. Add missing gimple_build
31800 declaration for built-in function case with four tree args.
31801
31802 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
31803 Szabolcs Nagy <szabolcs.nagy@arm.com>
31804
31805 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
31806 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
31807 (GNU_USER_DYNAMIC_LINKERN32): Update.
31808
31809 2015-05-08 Richard Biener <rguenther@suse.de>
31810
31811 PR tree-optimization/66036
31812 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
31813 Handle strided group loads.
31814 (vect_verify_datarefs_alignment): Likewise.
31815 (vect_enhance_data_refs_alignment): Likewise.
31816 (vect_analyze_group_access): Likewise.
31817 (vect_analyze_data_ref_access): Likewise.
31818 (vect_analyze_data_ref_accesses): Likewise.
31819 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
31820 (vectorizable_load): Likewise.
31821
31822 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
31823
31824 * config/rs6000/rs6000.md: Require operand inequality in one
31825 of the peepholes.
31826
31827 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
31828 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
31829
31830 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
31831 from (set ...).
31832 * config/rx/rx.md (movdi, movdf): Likewise.
31833 Likewise for define_peephole2s.
31834
31835 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
31836
31837 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
31838 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
31839 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
31840 vtst_u64): Rewrite using gcc vector extensions.
31841
31842 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
31843
31844 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
31845 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
31846
31847 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
31848
31849 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
31850
31851 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
31852
31853 * config/glibc-stdint.h (OPTION_MUSL): Define.
31854 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
31855 Change the definition based on OPTION_MUSL for 64 bit targets.
31856 * config/linux.h (OPTION_MUSL): Redefine.
31857 * config/alpha/linux.h (OPTION_MUSL): Redefine.
31858 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
31859 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
31860
31861 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
31862 Szabolcs Nagy <szabolcs.nagy@arm.com>
31863
31864 * config.gcc (LIBC_MUSL): New tm_defines macro.
31865 * config/linux.h (OPTION_MUSL): Define.
31866 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
31867 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
31868 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31869 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31870 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31871 * config/linux.opt (mmusl): New option.
31872 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
31873 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31874 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31875 * configure: Regenerate.
31876
31877 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
31878 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31879
31880 PR target/48904
31881 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
31882 * config/i386/knetbsd-gnu64.h: New file.
31883
31884 2015-05-08 Marek Polacek <polacek@redhat.com>
31885
31886 PR c/64918
31887 * doc/invoke.texi: Document -Woverride-init-side-effects.
31888
31889 2015-05-07 Marek Polacek <polacek@redhat.com>
31890
31891 PR c/65179
31892 * doc/invoke.texi: Document -Wshift-negative-value.
31893
31894 2015-05-06 Aditya Kumar <hiraditya@msn.com>
31895
31896 * gcov-tool.c (do_merge): Refactore to remove int ret.
31897 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
31898 !type == FUNC to type != FUNC.
31899 * reload.h (struct target_reload): Changee to type of
31900 x_spill_indirect_levels from bool to unsigned char.
31901
31902 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
31903
31904 * rtl.h (always_void_p): New function.
31905 * gengenrtl.c (always_void_p): Likewise.
31906 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
31907 with code foo are always VOIDmode.
31908 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
31909 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
31910 compare-elim.c, config/aarch64/aarch64.c,
31911 config/aarch64/aarch64.md, config/alpha/alpha.c,
31912 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
31913 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
31914 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
31915 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
31916 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
31917 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
31918 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
31919 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
31920 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
31921 config/ia64/vect.md, config/iq2000/iq2000.c,
31922 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
31923 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
31924 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
31925 config/mep/mep.c, config/microblaze/microblaze.c,
31926 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
31927 config/mn10300/mn10300.c, config/msp430/msp430.c,
31928 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
31929 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
31930 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
31931 config/rs6000/altivec.md, config/rs6000/rs6000.c,
31932 config/rs6000/rs6000.md, config/rs6000/vector.md,
31933 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
31934 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
31935 config/sh/sh.md, config/sh/sh_treg_combine.cc,
31936 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
31937 config/spu/spu.md, config/stormy16/stormy16.c,
31938 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
31939 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
31940 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
31941 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
31942 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
31943 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
31944 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
31945 var-tracking.c: Update calls accordingly.
31946
31947 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
31948
31949 PR middle-end/192
31950 PR middle-end/54303
31951 * varasm.c (function_mergeable_rodata_prefix): New function.
31952 (mergeable_string_section): Use it.
31953 (mergeable_constant_section): Use it.
31954
31955 2015-05-07 Jeff Law <law@redhat.com>
31956
31957 PR target/39726
31958 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
31959 simplifier to narrow arithmetic.
31960 * generic-match-head.c: (types_match, single_use): New functions.
31961 * gimple-match-head.c: (types_match, single_use): New functions.
31962
31963 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
31964
31965 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
31966 rtx type.
31967
31968 2015-05-07 Richard Biener <rguenther@suse.de>
31969
31970 PR tree-optimization/66002
31971 * passes.def: Schedule another pass_merge_phi after ifcombine, right
31972 before phiopt.
31973
31974 2015-05-07 Marek Polacek <polacek@redhat.com>
31975 Martin Uecker <uecker@eecs.berkeley.edu>
31976
31977 * doc/invoke.texi: Document -fsanitize=bounds-strict.
31978 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
31979 into SANITIZE_NONDEFAULT.
31980 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
31981
31982 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
31983
31984 PR target/66015
31985 * config/alpha/alpha.c (alpha_override_options_after_change): New.
31986 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
31987 (alpha_override_options): Move align_loops, align_jumps and
31988 align_functions handling into alpha_override_options_after_change.
31989
31990 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
31991 Chris Jones <chrisj@nvidia.com>
31992 Joshua Conner <jconner@nvidia.com>
31993
31994 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
31995 linking of crtfastmath.o.
31996 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
31997
31998 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
31999
32000 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
32001 (cstore<mode>4_unsigned_imm): New expander.
32002 (cstore<mode>4): Remove empty constraint strings. Use the new
32003 expanders.
32004
32005 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
32006
32007 PR target/64208
32008 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
32009 alternatives.
32010
32011 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
32012
32013 * config/aarch64/geniterators.sh: Use standard BRE in sed.
32014
32015 2015-05-06 Alan Modra <amodra@gmail.com>
32016
32017 PR target/66033
32018 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
32019 (UNSPEC_NOP): Define.
32020 (reload_vsx_from_gpr<mode>): Add missing DONE.
32021 (reload_gpr_from_vsx<mode>): Likewise.
32022 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
32023 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
32024
32025 2015-05-06 Christian Bruel <christian.bruel@st.com>
32026
32027 PR target/66015
32028 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
32029 align_jumps, align_functions into aarch64_override_options_after_change.
32030
32031 2015-05-06 Richard Biener <rguenther@suse.de>
32032
32033 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
32034 vect_transform_slp_perm_load to check if we support a permutation
32035 for basic-block vectorization.
32036
32037 2015-05-06 Nick Clifton <nickc@redhat.com>
32038
32039 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
32040 used, even if it is not being used as a frame pointer.
32041
32042 2015-05-05 Jason Merrill <jason@redhat.com>
32043
32044 * dwarf2out.c (gen_member_die): Don't emit anything for an
32045 anonymous class constructor.
32046
32047 2015-05-05 David Malcolm <dmalcolm@redhat.com>
32048
32049 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
32050 that it reflects the block structure.
32051 (afdo_propagate_edge): Likewise.
32052 (afdo_calculate_branch_prob): Likewise.
32053 (afdo_annotate_cfg): Likewise.
32054 * cfgcleanup.c (equal_different_set_p): Likewise.
32055 (try_crossjump_to_edge): Likewise.
32056 * cgraph.c (cgraph_node::verify_node): Likewise.
32057 * cgraphunit.c (expand_all_functions): Likewise.
32058 * config/i386/i386.c (ix86_expand_copysign): Likewise.
32059 (exact_dependency_1): Likewise.
32060 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
32061 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
32062 * gensupport.c (process_define_subst): Likewise.
32063 * lto-wrapper.c (merge_and_complain): Likewise.
32064 * tree-if-conv.c (if_convertible_bb_p): Likewise.
32065 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
32066 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
32067 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
32068 * tree-vect-loop.c (vectorizable_reduction): Likewise.
32069 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
32070 * tree-vect-stmts.c (vectorizable_shift): Likewise.
32071 * tree-vrp.c (vrp_finalize): Likewise.
32072 * tree.c (variably_modified_type_p): Likewise.
32073
32074 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
32075
32076 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
32077 on darwin12 and later.
32078 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
32079 file to pass -rdynamic on darwin12 and later.
32080 * config/darwin.opt (rdynamic): Add.
32081
32082 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
32083
32084 * doc/extend.texi (C Extensions): Update menu for moved Variable
32085 Attributes and Type Attributes sections.
32086
32087 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
32088
32089 PR target/65990
32090 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
32091 if rep_8byte stringop strategy was specified for 32-bit target.
32092
32093 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
32094
32095 PR target/65915
32096 * config/i386/i386.md (vector convert to float spltiter): Check for
32097 xmm16+, when splitting scalar float conversion.
32098 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
32099
32100 2015-05-05 Nick Clifton <nickc@redhat.com>
32101
32102 * config/msp430/msp430-opts.h (enum msp430_regions): New.
32103 * config/msp430/msp430.c (msp430_override_options): Complain if
32104 -mcode-region or -mdata-region is used on a non MSP430X.
32105 (msp430_section_attr): New function. Checks lower, upper and
32106 either attributes.
32107 (msp430_attribute_table): Add lower, upper and either.
32108 (gen_prefix): New function. Generates a prefix for a section
32109 name.
32110 (msp430_select_section): New function - handles the choice of
32111 section for an object. Takes into account memory region
32112 attributes and options.
32113 (msp430_function_section): Use gen_prefix.
32114 (TARGET_SECTION_TYPE_FLAGS): Define.
32115 (msp430_section_type_flags): New function.
32116 (TARGET_ASM_UNIQUE_SECTION): Define.
32117 (msp430_unique_section): New function.
32118 (msp430_output_aligned_decl_common): New function.
32119 (msp430_do_not_relax_short_jumps): New function.
32120 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
32121 Define.
32122 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
32123 * config/msp430/msp430-protos.h
32124 (msp430_do_not_relax_short_jumps): New prototype.
32125 (msp430_output_aligned_decl_common): New prototype.
32126 * config/msp430/msp430.md (length): New attribute.
32127 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
32128 then use a long code sequence for short jumps.
32129 * config/msp430/msp430.opt (mcode-region): New.
32130 (mdata-region): New.
32131 * doc/invoke.texi: Document new options.
32132 * doc/extend.texi: Document new attributes.
32133
32134 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
32135
32136 * config/aarch64-protos.h (struct cpu_branch_cost): New.
32137 (tune_params): Add field branch_costs.
32138 (aarch64_branch_cost): Declare.
32139 * config/aarch64.c (generic_branch_cost): New.
32140 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
32141 (cortexa53_tunings): Likewise.
32142 (cortexa57_tunings): Likewise.
32143 (thunderx_tunings): Likewise.
32144 (xgene1_tunings): Likewise.
32145 (aarch64_branch_cost): Define.
32146 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
32147
32148 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
32149
32150 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
32151 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
32152 * config/i386/i386.md: Ditto.
32153 * config/i386/winnt.c: Ditto.
32154
32155 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
32156
32157 * doc/extend.texi (__atomic Builtins): Move implementation details
32158 to the end of the description, rewrite opening paragraphs, state
32159 difference with __sync builtins, state C11/C++11 assumptions,
32160 weaken itemized descriptions, add explanation of memory model
32161 behaviour, expand description of compare-exchange, simplify text.
32162
32163 2015-05-05 Renlin Li <renlin.li@arm.com>
32164
32165 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
32166
32167 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
32168
32169 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
32170 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
32171 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
32172 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
32173 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
32174 * configure: Regenerate.
32175 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
32176 * doc/install.texi (aarch64*-*-*): Document new
32177 --enable-fix-cortex-a53-843419 option.
32178 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
32179 and -mno-fix-cortex-a53-843419 options.
32180
32181 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
32182
32183 PR target/65871
32184 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
32185
32186 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
32187
32188 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
32189 fix overactive TYPE_MIN_VALUE check and add FIXME for type
32190 compatibility problems.
32191
32192 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
32193
32194 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
32195 constraints.
32196 (cbranchsi4_reg): New.
32197 * config/microblaze/microblaze.c
32198 (microblaze_expand_conditional_branch_reg): New.
32199 * config/microblaze/microblaze-protos.h
32200 (microblaze_expand_conditional_branch_reg): New prototype.
32201
32202 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
32203
32204 * config/microblaze/microblaze.md (peephole2): New.
32205
32206 2015-05-04 Jeff Law <law@redhat.com>
32207
32208 Revert:
32209 2015-05-04 Jeff Law <law@redhat.com>
32210
32211 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
32212 simplifier to narrow arithmetic.
32213 * generic-match-head.c: (types_match, single_use): New functions.
32214 * gimple-match-head.c: (types_match, single_use): New functions.
32215
32216 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
32217
32218 PR target/65987
32219 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
32220 (split_branches): Likewise.
32221
32222 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
32223
32224 * common.opt (fdelete-null-pointer-checks): Init to -1.
32225 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
32226 override flag_delete_null_pointer_checks default.
32227 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
32228 behavior re address zero. Better document target-specific behavior.
32229 (-fisolate-errneous-paths-dereference): Mention relationship to
32230 -fdelete-null-pointer-checks.
32231
32232 2015-05-04 Jakub Jelinek <jakub@redhat.com>
32233
32234 PR tree-optimization/65984
32235 * ubsan.c: Include tree-cfg.h.
32236 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
32237 stmt_could_throw_p test, rename can_throw variable to ends_bb.
32238
32239 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
32240
32241 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
32242 to CONST_DOUBLE_P predicate.
32243 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
32244 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
32245 allow only operands that satisfy standard_sse_constant_p predicate.
32246 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
32247 to CONST_DOUBLE_P predicate.
32248
32249 2015-05-04 Jeff Law <law@redhat.com>
32250
32251 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
32252 simplifier to narrow arithmetic.
32253 * generic-match-head.c: (types_match, single_use): New functions.
32254 * gimple-match-head.c: (types_match, single_use): New functions.
32255
32256 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
32257
32258 * config/arm/arm.c: Restore bootstrap.
32259
32260 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
32261
32262 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
32263 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
32264 as CONST_WIDE_INT, not CONST_DOUBLE.
32265 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
32266 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
32267 (ix86_find_base_term): Do not check for CONST_DOUBLE.
32268 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
32269 (ix86_build_signbit_mask): Rewrite using wide ints.
32270 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
32271 (ix86_rtx_costs): Handle CONST_WIDE_INT.
32272 (find_constant): Ditto.
32273 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
32274 using gen_int_mode.
32275 * config/i386/predicates.md (x86_64_immediate_operand)
32276 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
32277 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
32278 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
32279 (const0_operand): Also match const_wide_int.
32280 (constm1_operand): Ditto.
32281 (const1_operand): Ditto.
32282
32283 2015-05-04 Richard Biener <rguenther@suse.de>
32284
32285 PR tree-optimization/65965
32286 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
32287 store groups at gaps.
32288
32289 2015-05-04 Richard Biener <rguenther@suse.de>
32290
32291 PR tree-optimization/65935
32292 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
32293 then make sure to apply that swapping to the IL.
32294
32295 2015-05-04 Jakub Jelinek <jakub@redhat.com>
32296
32297 * Makefile.in (PATCHLEVEL_c): New variable.
32298 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
32299 expand the same way as if DEVPHASE_c was non-empty.
32300
32301 2015-05-04 Kai Tietz <ktietz@redhat.com>
32302
32303 PR target/65559
32304 * lto-wrapper.c (run_gcc): Open filename
32305 in binary-mode.
32306
32307 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
32308
32309 * doc/extend.texi (Variable Attributes, Type Attributes): Move
32310 sections up in file, to immediately after the Function Attributes
32311 section.
32312
32313 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
32314
32315 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
32316
32317 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32318
32319 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
32320 (insert_partition_copy_on_edge): Adjust.
32321 (insert_rtx_to_part_on_edge): Likewise.
32322 (insert_part_to_rtx_on_edge): Likewise.
32323
32324 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32325
32326 * function.c (set_return_jump_label): Change type of argument to
32327 rtx_insn *.
32328 * function.h (set_return_jump_label): Adjust.
32329
32330 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32331
32332 * reload.h (struct reg_equivs_t): Change type of init to
32333 rtx_insn *.
32334 * ira.c (fix_reg_equiv_init): Adjust.
32335 * reload1.c (eliminate_regs_1): Likewise.
32336 (init_eliminable_invariants): Likewise.
32337
32338 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32339
32340 * cselib.c (fp_setter_insn): Take a rtx_insn *.
32341 * cselib.h (fp_setter_insn): Adjust.
32342
32343 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32344
32345 * recog.c (struct validate_replace_src_data): Change type of
32346 insn field to rtx_insn *.
32347 (validate_replace_src_group): Change type of argument to rtx_insn *.
32348 * recog.h (validate_replace_src_group): Adjust.
32349
32350 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32351
32352 * haifa-sched.c: Change the type of some variables to rtx_insn *.
32353 * sched-deps.c: Likewise.
32354 * sched-int.h: Likewise.
32355 * sched-rgn.c: Likewise.
32356 * sel-sched.c: Likewise.
32357
32358 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32359
32360 to rtx_insn *.
32361 * config/i386/i386.c: Change the type of some arguments to
32362 rtx_insn *.
32363 * config/arm/arm.c: Likewise.
32364
32365 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32366
32367 * lra-constraints.c: Change type of some arguments to rtx_insn *.
32368
32369 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32370
32371 * regcprop.c (kill_autoinc_value): Change type of argument to
32372 rtx_insn *.
32373
32374 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32375
32376 * genrecog.c (print_subroutine): Adjust.
32377 * recog.c (get_bool_attr_mask_uncached): Likewise.
32378 * recog.h (struct recog_data_d): Change the type of insn to
32379 rtx_insn *.
32380
32381 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32382
32383 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
32384
32385 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32386
32387 * df-problems.c (df_set_note): Change type of argument to
32388 rtx_insn *.
32389
32390 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32391
32392 * builtins.c (expand_builtin_trap): Change type of local
32393 variable to rtx_insn *.
32394 (add_sched_insns_for_speculation): Likewise.
32395 (ix86_emit_save_regs): Likewise.
32396 (get_scratch_register_on_entry): Likewise.
32397 (ix86_emit_restore_reg_using_pop): Likewise.
32398 (ix86_emit_leave): Likewise.
32399 (ix86_emit_restore_regs_using_mov): Likewise.
32400 (ix86_expand_epilogue): Likewise.
32401 Likewise.
32402 (rl78_alloc_physical_registers_umul): Likewise.
32403 * cselib.c (discard_useless_locs): Likewise.
32404 (cselib_invalidate_regno): Likewise.
32405 (cselib_invalidate_mem): Likewise.
32406 * function.c (expand_function_start): Likewise.
32407 (emit_use_return_register_into_block): Likewise.
32408 * gcse.c: Likewise.
32409 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
32410 * ifcvt.c (noce_get_alt_condition): Likewise.
32411 * loop-doloop.c (doloop_condition_get): Likewise.
32412 * lra-constraints.c (inherit_in_ebb): Likewise.
32413 * modulo-sched.c (sms_schedule_by_order): Likewise.
32414 * recog.c (next_insn_tests_no_inequality): Likewise.
32415 * reorg.c (emit_delay_sequence): Likewise.
32416 (update_reg_dead_notes): Likewise.
32417 (fix_reg_dead_note): Likewise.
32418 (fill_slots_from_thread): Likewise.
32419 (delete_computation): Likewise.
32420
32421 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
32422
32423 * doc/extend.texi (Variable Attributes): Add menu and proper
32424 @nodes to subsections. Move Microsoft Windows attributes to
32425 their own subsection.
32426 (Type Attributes): Reorganize introduction to remove duplicate
32427 list of attributes. Add menu and proper @nodes to subsections.
32428 Alphabetize the main table of common attributes.
32429
32430 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
32431
32432 * match.pd: New simplification patterns.
32433 (x + (x & 1)) -> ((x + 1) & ~1)
32434 (x & ~(x & y)) -> ((x & ~y))
32435 (x | ~(x | y)) -> ((x | ~y))
32436
32437 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32438
32439 * target.def (attribute_table): Mention that struct attribute_spec
32440 is defined in tree-core.h rather than tree.h
32441 * doc/tm.texi: Regenerate.
32442
32443 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
32444
32445 * genrecog.c (test): Rename to rtx_test. Update rest of file
32446 accordingly.
32447
32448 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
32449
32450 PR translation/65959
32451 * params.h (DEFPARAM): Rename msgid to nocmsgid.
32452
32453 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
32454
32455 * config/aarch64/aarch64-protos.h (tune_params):
32456 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
32457 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
32458 Return value depending on target.
32459 (generic_tunings): Initialize new target settings.
32460 (cortexa53_tunings): Likewise.
32461 (cortexa57_tunings): Likewise.
32462 (thunderx_tunings): Likewise.
32463 (xgene1_tunings): Likewise.
32464
32465 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
32466
32467 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
32468 Make Cortex-A53 shift costs more accurate.
32469
32470 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32471
32472 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
32473 UNSIGNED_FLOAT.
32474
32475 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
32476
32477 * config/aarch64/aarch64.c (aarch64_rtx_costs):
32478 Calculate cost of op0 and op1 in PLUS and MINUS cases.
32479
32480 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32481
32482 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
32483 Add cost of op0 in the compare-with-fpzero case.
32484
32485 2015-04-30 David Malcolm <dmalcolm@redhat.com>
32486
32487 * builtins.c (fold_builtin_1): Remove spurious second
32488 semicolon.
32489 * cgraph.h (symtab_node::get_availability): Likewise.
32490 * opts.c (common_handle_option): Remove spurious second semicolon.
32491 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
32492 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
32493
32494 2015-04-30 Caroline Tice <cmtice@google.com>
32495
32496 PR gcov-profile/65929
32497 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
32498 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
32499 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
32500 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
32501 * doc/tm.texi: Regenerate.
32502 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
32503 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
32504 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
32505 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
32506
32507 2015-04-30 Marek Polacek <polacek@redhat.com>
32508
32509 * varasm.c (handle_cache_entry): Fix logic.
32510
32511 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32512
32513 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
32514 (*extrsi5_insn_uxtw_alt): Likewise.
32515 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
32516 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
32517 operations.
32518
32519 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32520
32521 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
32522 fabd in ABS case.
32523
32524 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32525
32526 * config/aarch64/aarch64.md
32527 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
32528 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
32529 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
32530 appropriately. Handle alternative EON form.
32531
32532 2015-04-30 Renlin Li <renlin.li@arm.com>
32533
32534 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
32535 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
32536
32537 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
32538
32539 PR ipa/65873
32540 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
32541 -fstrict-aliasing boundaries.
32542
32543 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32544
32545 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
32546 and [SU]MNEGL patterns.
32547
32548 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32549
32550 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
32551 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
32552 combined arithmetic-shift ops. Properly handle all shift and extend
32553 operations that can occur in combination with PLUS/MINUS.
32554 Rename maybe_fma to compound_p.
32555 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
32556 arithmetic and shift operations.
32557
32558 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32559
32560 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
32561 rather than arith_shift cost when costing ADD/MINUS of an
32562 extended value.
32563
32564 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
32565
32566 PR lto/65948
32567 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
32568 to itself.
32569
32570 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
32571
32572 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
32573 are for the same position.
32574
32575 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
32576
32577 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
32578 vectorize_loops.
32579 (vectorize_loops): Use it.
32580
32581 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
32582
32583 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
32584 for aggregate types.
32585 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
32586 type to be non_ODR.
32587 * tree.c (need_assembler_name_p): Compute mangled name for
32588 non-fundamental types and integer types.
32589
32590 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
32591
32592 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
32593 manual swaps.
32594 * expr.c (expand_expr_real_2): Likewise.
32595
32596 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
32597
32598 * tree.c (build_common_builtin_nodes): Do not build
32599 __builtin_alloca_with_align as equivalent of library alloca.
32600
32601 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
32602
32603 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
32604 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
32605 bugus variants.
32606 * tree.c: Include print-tree.h and ipa-utils.h
32607 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
32608 (free_lang_data_in_cgraph): Call verify_type.
32609 (verify_type_variant): New function.
32610 (verify_type): New function.
32611 * tree.h (verify_type): Declare.
32612
32613 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
32614
32615 * config/mips/mips-cpus.def: (mips4): Change default processor
32616 from PROCESSOR_R8000 to PROCESSOR_R10000.
32617
32618 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
32619
32620 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
32621 la/jalr instead of jal.
32622
32623 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
32624
32625 PR target/65871
32626 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
32627 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
32628 (setcc+movzbl peephole2): Check also clobbered reg.
32629 (setcc+andl peephole2): Ditto.
32630
32631 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
32632
32633 PR libgomp/65099
32634 * config/nvptx/mkoffload.c (target_ilp32): New variable.
32635 (main): Set it depending on "-foffload-abi=[...]".
32636 (compile_native, main): Use it to pass "-m32" or "-m64" to the
32637 compiler.
32638
32639 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
32640
32641 PR target/65770
32642 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
32643 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
32644 Flip lane index back at assembly time for bigendian.
32645
32646 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
32647
32648 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
32649 * gimplify.c (gimplify_omp_workshare): Use it.
32650
32651 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
32652
32653 * Makefile.in (build/genrecog.o): Depend on inchash.h.
32654 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
32655 build/inchash.o
32656 * genrecog.c: Rewrite most of the code except for the third page.
32657
32658 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
32659
32660 * inchash.h, inchash.c: Include bconfig.h for build objects.
32661 * Makefile.in (build/inchash.o): New rule.
32662
32663 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
32664
32665 PR target/65924
32666 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
32667 number in type attribute expression.
32668
32669 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
32670
32671 * loop-iv.c (canon_condition): Generalize to all types of integer
32672 constant.
32673
32674 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
32675
32676 * gimple-walk.c: Prune duplicate or unneeded includes.
32677 (walk_gimple_asm): Only call parse_input_constraint or
32678 parse_output_constraint if their findings are used.
32679 Honour parse_input_constraint and parse_output_constraint
32680 result.
32681
32682 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
32683
32684 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
32685
32686 2015-04-29 Tom de Vries <tom@codesourcery.com>
32687
32688 PR tree-optimization/65893
32689 * passes.def (pass_all_optimizations): Move pass_stdarg to after
32690 pass_dce.
32691
32692 2015-04-29 Richard Biener <rguenther@suse.de>
32693
32694 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
32695 compute GROUP_SIZE for basic-block SLP.
32696 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
32697 take into account gaps.
32698 (vect_get_mask_element): Properly reject references to previous
32699 vectors.
32700 (vect_transform_slp_perm_load): Likewise.
32701
32702 2015-04-29 Christian Bruel <christian.bruel@st.com>
32703
32704 PR target/64835
32705 * config/i386/i386.c (ix86_default_align): New function.
32706 (ix86_override_options_after_change): Call ix86_default_align.
32707 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
32708 (ix86_override_options_after_change): New function.
32709
32710 2015-04-28 Jeff Law <law@redhat.com>
32711
32712 * tree-ssa-dom.c (record_equality); Fix comment typos.
32713
32714 2015-04-28 Tom de Vries <tom@codesourcery.com>
32715
32716 PR tree-optimization/65887
32717 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
32718
32719 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
32720
32721 * doc/extend.texi (Declaring Attributes of Functions): Split into
32722 subsections by target. Alphabetize the table of common attributes.
32723 Rewrite some of the introductory text to reflect the new structure.
32724 Update some cross-references to point to the new subsections.
32725 (Attribute Syntax): Put paragraph about "__" naming here. Remove
32726 duplicate copies in the discussion of function, label, and type
32727 attributes.
32728
32729 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
32730
32731 PR bootstrap/65910
32732 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
32733
32734 2015-04-28 Jason Merrill <jason@redhat.com>
32735
32736 PR c++/65734
32737 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
32738 (finalize_type_size): Respect TYPE_USER_ALIGN.
32739 (layout_type) [ARRAY_TYPE]: Likewise.
32740
32741 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
32742
32743 * config/arm/arm.md (*arm_movt): Fix type attribute.
32744 (*cmpsi_shiftsi): Likewise.
32745 (*cmpsi_shiftsi_swp): Likewise.
32746 (*movsicc_insn): Likewise.
32747 (*cond_move): Likewise.
32748 (*if_plus_move): Likewise.
32749 (*if_move_plus): Likewise.
32750 (*if_arith_move): Likewise.
32751 (*if_move_arith): Likewise.
32752 (*if_shift_move): Likewise.
32753 (*if_move_shift): Likewise.
32754 (*arm_movtas_ze): Likewise.
32755 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
32756 redundancy and type attribute.
32757 (*thumb2_movsi_insn): Fix type attribute.
32758 (*thumb2_addsi_short): Likewise.
32759 (thumb2_addsi3_compare0): Likewise.
32760 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
32761 attributes accordingly.
32762
32763 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
32764
32765 PR other/65911
32766 * function.c (pad_to_arg_alignment): Add parentheses.
32767
32768 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
32769
32770 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
32771 libgcc/config/frv/elf-lib.h.
32772
32773 2015-04-28 Tom de Vries <tom@codesourcery.com>
32774
32775 * tree-call-cdce.c: Fix example in header comment.
32776
32777 2015-04-28 Richard Biener <rguenther@suse.de>
32778
32779 PR tree-optimization/62283
32780 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
32781 fails fatally and we are vectorizing a basic-block simply
32782 cause the child to be constructed piecewise.
32783 (vect_analyze_slp_cost_1): Adjust.
32784 (vect_detect_hybrid_slp_stmts): Likewise.
32785 (vect_bb_slp_scalar_cost): Likewise.
32786 (vect_get_constant_vectors): For piecewise constructed
32787 constants place them after the last def.
32788 (vect_get_slp_defs): Adjust.
32789 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
32790 externals for basic-block vectorization.
32791
32792 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
32793
32794 PR target/63503
32795 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
32796 aarch64-*-*.
32797 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
32798 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
32799 (AARCH64_TUNE_FMA_STEERING): Likewise.
32800 * config/aarch64/aarch64-cores.def: Set
32801 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
32802 FMUL/FMADD instructions.
32803 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
32804 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
32805 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
32806 * config/aarch64/cortex-a57-fma-steering.h: New file.
32807 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
32808
32809 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
32810
32811 * gensupport.c (std_preds): Add missing codes to address_operand entry.
32812
32813 2015-04-28 Richard Biener <rguenther@suse.de>
32814
32815 PR tree-optimization/65851
32816 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
32817 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
32818 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
32819 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
32820 (ccp_visit_phi_node): Adjust.
32821 (evaluate_stmt): For simplifications to SSA names return its
32822 lattice value if that isn't VARYING. Return immediately when
32823 simplified to a constant.
32824 (visit_assignment): Adjust.
32825 (ccp_visit_stmt): Likewise.
32826
32827 2015-04-28 Tom de Vries <tom@codesourcery.com>
32828
32829 PR tree-optimization/65818
32830 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
32831 evaluated.
32832
32833 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32834
32835 * calls.c (save_fixed_argument_area): Don't check
32836 ARGS_GROW_DOWNWARD with the preprocessor.
32837 (restore_fixed_argument_area): Likewise.
32838 (mem_overlaps_already_clobbered_arg_p): Likewise.
32839 (check_sibcall_argument_overlap): Likewise.
32840 (expand_call): Likewise.
32841 (emit_library_call_value_1): Likewise.
32842 (store_one_arg): Likewise.
32843 * function.c (assign_parms): Likewise.
32844 (locate_and_pad_parm): Likewise.
32845 (pad_to_arg_alignment): Likewise.
32846 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
32847
32848 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32849
32850 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
32851 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
32852 * calls.c (save_fixed_argument_area): Don't chekc if
32853 ARGS_GROW_DOWNWARD is defined.
32854 (restore_fixed_argument_area): Likewise.
32855 (mem_overlaps_already_clobbered_arg_p): Likewise.
32856 (check_sibcall_argument_overlap): Likewise.
32857 (expand_call): Likewise.
32858 (emit_library_call_value_1): Likewise.
32859 (store_one_arg): Likewise.
32860 * function.c (assign_parms): Likewise.
32861 (locate_and_pad_parm): Likewise.
32862 (pad_to_arg_alignment): Likewise.
32863 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
32864
32865 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32866
32867 * defaults.h (gen_epilogue): New function.
32868 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
32869 defined.
32870 * cfgrtl.c (cfg_layout_finalize): Likewise.
32871 * df-scan.c: Likewise.
32872 * function.c (thread_prologue_and_epilogue_insns): Likewise.
32873 (reposition_prologue_and_epilogue_notes): Likewise.
32874 * reorg.c (find_end_label): Likewise.
32875 * toplev.c: Likewise.
32876
32877 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32878
32879 * bb-reorder.c (HAVE_return): Don't check if its undefined.
32880 * defaults.h (gen_simple_return): New function.
32881 (gen_simple_return): Likewise.
32882 (HAVE_return): Add default definition to false.
32883 (HAVE_simple_return): Likewise.
32884 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
32885 HAVE_return and HAVE_simple_return are defined.
32886 * function.c (gen_return_pattern): Likewise.
32887 (convert_jumps_to_returns): Likewise.
32888 (thread_prologue_and_epilogue_insns): Likewise.
32889 * reorg.c (find_end_label): Likewise.
32890 (dbr_schedule): Likewise.
32891 * shrink-wrap.c: Likewise.
32892 * shrink-wrap.h: Likewise.
32893
32894 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32895
32896 * defaults.h (EPILOGUE_USES): Add default definition of false.
32897 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
32898 * resource.c (init_resource_info): Likewise.
32899
32900 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32901
32902 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
32903 to false.
32904 * dwarf2out.c (field_byte_offset): REmove check if
32905 PCC_BITFIELD_TYPE_MATTERS is defined.
32906 * stor-layout.c (layout_decl): Likewise.
32907 (update_alignment_for_field): Likewise.
32908 (place_field): Likewise.
32909
32910 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32911
32912 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
32913 true.
32914 * regrename.c (check_new_reg_p): Remove check if
32915 HARD_REGNO_RENAME_OK is defined.
32916 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
32917
32918 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32919
32920 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
32921 * cse.c (fold_rtx): Likewise.
32922 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
32923 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
32924 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
32925 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
32926 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
32927 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
32928 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
32929 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
32930 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
32931 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
32932 * Likewise.
32933 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
32934 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
32935 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
32936 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
32937 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
32938 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
32939 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
32940 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
32941 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
32942 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
32943 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
32944 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
32945 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
32946 * doc/tm.texi: Regenerate.
32947 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
32948 either true or false.
32949
32950 2015-04-27 Jeff Law <law@redhat.com>
32951
32952 PR tree-optimization/65217
32953 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
32954 of them has a single use, make sure it is the LHS of the implied
32955 copy.
32956
32957 2015-04-28 Alan Modra <amodra@gmail.com>
32958
32959 PR target/65810
32960 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
32961 (offsettable_ok_by_alignment): Use minimum of decl and toc
32962 pointer alignment. Replace dead code with assertion.
32963 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
32964 case if size exceeds toc pointer alignment.
32965 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
32966 (rs6000_emit_move): Likewise.
32967 * configure.ac: Add linker toc pointer alignment check.
32968 * configure: Regenerate.
32969 * config.in: Regenerate.
32970
32971 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
32972
32973 * config.gcc: Add h8300-*-linux.
32974 * config/h8300/linux.h: New.
32975 * config/h8300/t-linux: New.
32976 * config/h8300/h8300.c (h8300_option_override): Normal mode
32977 is not supported for h8300-*-linux.
32978 (h8300_file_start): Target priority change.
32979 (get_shift_alg): Likewise.
32980 (h8300_shift_need_scratch_p): Likewise.
32981 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
32982 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
32983
32984 2015-04-27 Caroline Tice <cmtice@google.com>
32985
32986 * final.c (final_scan_insn): Output cold_function_name as function
32987 type.
32988 * varasm.c (cold_function_name): Make global.
32989 (assemble_start_function): Re-set cold_function_name.
32990 (assemble_end_function): Output cold partition size.
32991 * varasm.h (cold_function_name): Declare global.
32992
32993 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
32994
32995 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
32996 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
32997 constraint.
32998 (*movxi_internal_avx512f): Ditto.
32999 (define_split): Check for xmm16+, when splitting scalar float_extend.
33000 (*extendsfdf2_mixed): Use "v" constraint.
33001 (define_split): Check for xmm16+, when splitting scalar float_truncate.
33002 (*truncdfsf_fast_sse): Use "v" constraint.
33003 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
33004 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
33005 (define_peephole2): Check for xmm16+, when converting scalar
33006 float_truncate.
33007 (define_peephole2): Check for xmm16+, when converting scalar
33008 float_extend.
33009 (*fop_<mode>_comm_mixed): Use "v" constraint.
33010 (*fop_<mode>_comm_sse): Ditto.
33011 (*fop_<mode>_1_mixed): Ditto.
33012 (*sqrt<mode>2_sse): Ditto.
33013 (*ieee_s<ieee_maxmin><mode>3): Ditto.
33014
33015 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33016
33017 * combine.c (simplify_if_then_else): Use std::swap instead
33018 of manually swapping.
33019 (known_cond): Likewise.
33020 (simplify_comparison): Likewise.
33021
33022 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
33023
33024 PR target/64579
33025 * config/rs6000/htm.md: Remove all define_expands.
33026 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
33027 UNSPECV_HTM_TABORTWCI): Remove.
33028 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
33029 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
33030 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
33031 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
33032 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
33033 tabortwci_internal): Remove define_insns.
33034 (tabort<wd>c, tabort<wd>ci): New define_insns.
33035 (tabort): Use gpc_reg_operand.
33036 (tcheck): Remove operand.
33037 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
33038 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
33039 expected value.
33040 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
33041 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
33042 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
33043 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
33044 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
33045 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
33046 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
33047 (tcheck): Remove builtin argument.
33048 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
33049 not TARGET_64BIT.
33050 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
33051 tabortdc and tabortdci builtins when not in 64-bit mode.
33052 Modify code to handle the loss of the HTM define_expands.
33053 Emit code to copy the CR register to TARGET.
33054 (htm_init_builtins): Modify code to handle the loss of the HTM
33055 define_expands.
33056 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
33057 (RS6000_BTC_64BIT): Likewise.
33058 (RS6000_BTC_CR): New macro.
33059 * doc/extend.texi: Update documentation for htm builtins.
33060
33061 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33062
33063 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
33064 of manually swapping.
33065 (simplify_associative_operation): Likewise.
33066 (simplify_binary_operation): Likewise.
33067 (simplify_plus_minus): Likewise.
33068 (simplify_relational_operation): Likewise.
33069 (simplify_ternary_operation): Likewise.
33070
33071 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
33072
33073 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
33074 (xs_hi_nonmemory_operand): Remove error.
33075 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
33076 general_operand rather than xs_hi_general_operand.
33077
33078 2015-04-27 Richard Biener <rguenther@suse.de>
33079
33080 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
33081 (record_equivalences_from_stmt): Valueize rhs.
33082 (record_equality): Canonicalize x and y order via
33083 tree_swap_operands_p. Do not swap operands for same loop depth.
33084
33085 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
33086
33087 PR target/65296
33088 PR target/65895
33089 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
33090 Add hint how to use own spec file.
33091
33092 2015-04-27 Jakub Jelinek <jakub@redhat.com>
33093
33094 PR tree-optimization/65875
33095 * tree-vrp.c (update_value_range): If in is_new case setting
33096 old_vr to VR_VARYING, also set new_vr to it. Remove
33097 old_vr->type == VR_VARYING test.
33098 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
33099 SSA_PROP_INTERESTING if update_value_range returned true,
33100 but new range is VR_VARYING.
33101
33102 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
33103
33104 * combine.c (sign_extend_short_imm): New.
33105 (set_nonzero_bits_and_sign_copies): Use above new function for sign
33106 extension of src short immediate.
33107 (reg_nonzero_bits_for_combine): Likewise for tem.
33108
33109 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
33110
33111 * stor-layout.c (self_referential_component_ref_p): New predicate.
33112 (copy_self_referential_tree_r): Use it.
33113 (self_referential_size): Punt for simple operations directly involving
33114 self-referential component references.
33115 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
33116
33117 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
33118
33119 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
33120
33121 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
33122
33123 * vec.h (vec): Make splice arguments const. Update definitions
33124 accordingly.
33125
33126 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
33127
33128 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
33129 alternatives.
33130
33131 2015-04-26 Tom de Vries <tom@codesourcery.com>
33132
33133 PR tree-optimization/65826
33134 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
33135
33136 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
33137
33138 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
33139 (*madd3<mode>): Ditto.
33140 (*msub4<mode>): Ditto.
33141 (*msub3<mode>): Ditto.
33142 (*nmadd4<mode>): Ditto.
33143 (*nmadd3<mode>): Ditto.
33144 (*nmadd4<mode>_fastmath): Ditto.
33145 (*nmadd3<mode>_fastmath): Ditto.
33146 (*nmsub4<mode>): Ditto.
33147 (*nmsub3<mode>): Ditto.
33148 (*nmsub4<mode>_fastmath): Ditto.
33149 (*nmsub3<mode>_fastmath): Ditto.
33150
33151 2015-04-24 Jason Merrill <jason@redhat.com>
33152
33153 PR c++/50800
33154 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
33155 down when building TYPE_CANONICAL.
33156 (build_pointer_type_for_mode): Likewise.
33157
33158 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
33159
33160 * genrecog.c (validate_pattern): Check matching constraint refers
33161 to a lower numbered operand.
33162
33163 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
33164
33165 PR target/65849
33166 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
33167 save to independent variables use the Save attribute. This will
33168 allow these options to be modified with the #pragma/attribute
33169 target support.
33170 (-mallow-movmisalign): Likewise.
33171 (-mallow-df-permute): Likewise.
33172 (-msched-groups): Likewise.
33173 (-malways-hint): Likewise.
33174 (-malign-branch-targets): Likewise.
33175 (-mvectorize-builtins): Likewise.
33176 (-msave-toc-indirect): Likewise.
33177
33178 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
33179 can be set via the #pragma/attribute target support.
33180 (rs6000_opt_vars): Likewise.
33181 (rs6000_inner_target_options): If VSX was set, also set
33182 -mno-avoid-indexed-addresses.
33183
33184 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33185
33186 * config/arm/iterators.md (shiftable_ops): Rename to...
33187 (SHIFTABLE_OPS): ... This. Update use in comments.
33188 (ior_xor): Rename to...
33189 (IOR_XOR): ... This.
33190 (vqh_ops): Rename to...
33191 (VQH_OPS): ... This.
33192 (vqhs_ops): Rename to...
33193 (VQHS_OPS): ... This.
33194 (rshifts): Rename to...
33195 (RSHIFTS): ... This.
33196 (returns): Rename to...
33197 (RETURNS): ... This.
33198 * config/arm/arm.md: Update uses of the above.
33199 * config/arm/neon.md: Likewise.
33200
33201 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33202
33203 * config.host (case ${host}): Add aarch64*-*-linux case.
33204 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
33205 fields to all the cores.
33206 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
33207 Add MCPU_MTUNE_NATIVE_SPECS.
33208 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
33209 field to all extensions.
33210 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
33211 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
33212 Adjust definition of AARCH64_OPT_EXTENSION.
33213 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
33214 (MCPU_MTUNE_NATIVE_SPECS): Define.
33215 * config/aarch64/driver-aarch64.c: New file.
33216 * config/aarch64/x-arch64: New file.
33217 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
33218 -mtune and -march.
33219
33220 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
33221 Wei Mi <wmi@google.com>
33222
33223 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
33224 * config/i386/i386.c (extract_base_offset_in_addr): New function.
33225 (ix86_operands_ok_for_move_multiple): Ditto.
33226 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
33227 (movlpd/movhpd to movupd peephole2): Ditto.
33228
33229 2015-04-24 Marek Polacek <polacek@redhat.com>
33230
33231 PR c/61534
33232 * input.h (from_macro_expansion_at): Define.
33233
33234 PR c/63357
33235 * doc/invoke.texi: Update description of -Wlogical-op.
33236
33237 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
33238
33239 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
33240 ternary operator in fprintf and harmonize spacing.
33241
33242 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
33243
33244 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
33245 Mark operand1 commutative.
33246
33247 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
33248
33249 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
33250 input operands in memory.
33251 (*vec_concatv2si_sse4_1): Ditto.
33252 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
33253 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
33254 register_operand.
33255 (vec_extract_hi_v32hi): Ditto.
33256 (vec_extract_hi_v64hi): Ditto.
33257 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
33258
33259 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
33260 Steven Bosscher <steven@gcc.gnu.org>
33261
33262 PR rtl-optimization/34503
33263 * cprop.c (cprop_reg_p): New.
33264 (hash_scan_set): Use above function to check if register can be
33265 propagated.
33266 (find_avail_set): Return up to two sets, one whose source is a
33267 register and one whose source is a constant. Sets are returned in an
33268 array passed as parameter rather than as a return value.
33269 (cprop_insn): Use a do while loop rather than a goto. Try each of the
33270 sets returned by find_avail_set, starting with the one whose source is
33271 a constant. Use cprop_reg_p to check if register can be propagated.
33272 (do_local_cprop): Use cprop_reg_p to check if register can be
33273 propagated.
33274 (implicit_set_cond_p): Likewise.
33275
33276 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
33277
33278 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
33279 (sem_function::equals): IGNORED_NODES parameter is now unused;
33280 update call of equals_private.
33281 (sem_function::equals_private): Do not call equals_wpa; skip
33282 gimple body matching if there is no body.
33283 (sem_function::init): Add logic to hash tthunk info.
33284 (sem_function::parse): Also parse thunks.
33285 * ipa-icf.h (equals_private): Update declaration.
33286
33287 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33288
33289 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
33290 asterisk from name so this can be generated directly.
33291 (*altivec_stvx_<mode>_internal): Likewise.
33292 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
33293 that this is never called during or after reload/lra.
33294 (rs6000_frame_related): Remove split_reg
33295 argument and logic that references it.
33296 (emit_frame_save): Remove last parameter from call to
33297 rs6000_frame_related.
33298 (rs6000_emit_prologue): Remove last parameter from eight calls to
33299 rs6000_frame_related. Force generation of stvx instruction for
33300 Altivec register saves. Remove split_reg handling, which is no
33301 longer needed.
33302 (rs6000_emit_epilogue): Force generation of lvx instruction for
33303 Altivec register restores.
33304
33305 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33306
33307 * config/rs6000/rs6000.opt (mcrypto): Change option description to
33308 match category changes in ISA 2.07B.
33309
33310 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33311
33312 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
33313 iterators.
33314 (cmp_op, cmp_type): New code attributes.
33315 (NEON_VCMP, NEON_VACMP): New int iterators.
33316 (cmp_op_unsp): New int attribute.
33317 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
33318 (neon_vceq<mode>): Delete.
33319 (neon_vc<cmp_op><mode>_insn): New pattern.
33320 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
33321 (neon_vcgeu<mode>): Delete.
33322 (neon_vcle<mode>): Likewise.
33323 (neon_vclt<mode>: Likewise.
33324 (neon_vcage<mode>): Likewise.
33325 (neon_vcagt<mode>): Likewise.
33326 (neon_vca<cmp_op><mode>): New define_expand.
33327 (neon_vca<cmp_op><mode>_insn): New pattern.
33328 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
33329
33330 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
33331
33332 * tree.h (attribute_value_equal): Declare.
33333 * tree.c (attribute_value_equal): Export.
33334
33335 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
33336
33337 * ipa-icf.c (sem_item::compare_attributes): New function.
33338 (sem_item::compare_referenced_symbol_properties): Compare variable
33339 attributes.
33340 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
33341 (sem_function::param_used_p): New function.
33342 (sem_function::equals_wpa): Fix attribute comparsion; match
33343 parameter type codes; do not compare paremter flags when
33344 they are not used; compare edge flags; compare indirect calls.
33345 (sem_item::update_hash_by_addr_refs): Hash reference type.
33346 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
33347 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
33348 reference use type.
33349 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
33350 * ipa-icf.h (compare_attributes, param_used_p): Declare.
33351
33352 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
33353
33354 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
33355 cleanup.
33356 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
33357 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
33358 (sem_item::compare_referenced_symbol_properties): New.
33359 (sem_item::hash_referenced_symbol_properties): New.
33360 (sem_item::compare_cgraph_references): Rename to ...
33361 (sem_item::compare_symbol_references): ... this one; use
33362 compare_referenced_symbol_properties.
33363 (sem_function::equals_wpa): Do not compare
33364 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
33365 DECL_IS_OPERATOR_NEW; compare pointer sizes.
33366 (sem_item::update_hash_by_addr_refs): Call
33367 hash_referenced_symbol_properties.
33368 (sem_item::update_hash_by_local_refs): Cleanup.
33369 (sem_function::merge): Do not mix up symbol properties.
33370 (sem_variable::equals_wpa): Use compare_symbol_references.
33371 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
33372 (sem_item::hash_referenced_symbol_properties): New.
33373 (sem_item::compare_symbol_references): New.
33374 (sem_item::compare_cgraph_references): Remove.
33375
33376 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
33377
33378 PR target/26702
33379 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
33380 Emit size of local.
33381
33382 2015-04-23 Nick Clifton <nickc@redhat.com>
33383
33384 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
33385 ATTRIBUTE_UNUSED to x parameter.
33386 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
33387
33388 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33389
33390 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
33391 TARGET_CRYPTO to TARGET_P8_VECTOR>
33392 (crypto_vpermxor_<mode>): Likewise.
33393 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
33394 (BU_CRYPTO_3A): Likewise.
33395 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
33396 (BU_CRYPTO_OVERLOAD_3A): New #define.
33397 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
33398 (VPMSUMH): Likewise.
33399 (VPMSUMW): Likewise.
33400 (VPMSUMD): Likewise.
33401 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
33402 (VPERMXOR_V4SI): Likewise.
33403 (VPERMXOR_V8HI): Likewise.
33404 (VPERMXOR_V16QI): Likewise.
33405 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
33406 BU_CRYPTO_OVERLOAD_2A.
33407 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
33408 BU_CRYPTO_OVERLOAD_3A.
33409 * config/rs6000/rs6000.opt (mcrypto): Change description of
33410 option.
33411
33412 2015-04-23 Richard Biener <rguenther@suse.de>
33413
33414 * passes.def: Remove copy propagation passes run directly after CCP.
33415 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
33416 SSA names.
33417 (ccp_visit_phi_node): Rework to handle first executable edge
33418 specially.
33419
33420 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
33421
33422 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
33423 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
33424 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
33425 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
33426 (thumb_legimitimize_reload_address): Remove.
33427 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
33428 Remove.
33429 (thumb_legimitimize_reload_address): Remove.
33430
33431 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33432
33433 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
33434
33435 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33436
33437 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
33438 MAX_LDM_STM_OPS.
33439 (store_multiple): Likewise.
33440
33441 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33442
33443 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
33444 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
33445 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
33446 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
33447 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
33448 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
33449 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
33450 Specify issue_rate value.
33451 (arm_issue_rate): Look up issue rate from tuning structs. Remove
33452 large switch statement.
33453 (arm_marvell_pj4_tune): New struct.
33454 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
33455 struct.
33456
33457 2015-04-23 Richard Biener <rguenther@suse.de>
33458
33459 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
33460 (vect_find_last_store_in_slp_instance): Rename to ...
33461 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
33462 (vect_analyze_slp_cost_1): Use vector_load for constant defs
33463 and vec_construct for external defs when estimating prologue cost.
33464 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
33465 Compute costs here only when vectorizing loops.
33466 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
33467 have been determined.
33468 (vect_schedule_slp_instance): Simplify vectorized code placement
33469 and prepare for in-BB external defs.
33470 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
33471 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
33472 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
33473 guard.
33474 (vect_model_load_cost): Likewise.
33475 (vectorizable_store): Instead add it here.
33476 (vectorizable_load): Likewise.
33477 (vect_is_simple_use): Dump def type textually.
33478
33479 2015-04-23 Richard Biener <rguenther@suse.de>
33480
33481 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
33482 * cfgloop.c (verify_loop_structure): Verify the root loop node.
33483 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
33484 instead of get_eh_region_from_lp_number.
33485 * loop-init.c (fix_loop_structure): If we removed a loop, reset
33486 the SCEV cache.
33487
33488 2015-04-23 Anton Blanchard <anton@samba.org>
33489
33490 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
33491 need for -mprofile-kernel to save LR to stack.
33492
33493 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33494
33495 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
33496 adjustments.
33497 (insn_is_swappable_p): Return 1 for a convert from double to
33498 single precision when all of its uses are splats of BE element
33499 zero.
33500
33501 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
33502
33503 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
33504
33505 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33506
33507 PR target/65456
33508 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
33509 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
33510 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
33511 option.
33512 (rs6000_builtin_mask_for_load): Return 0 for targets with
33513 efficient unaligned VSX accesses so that the vectorizer will use
33514 direct unaligned loads.
33515 (rs6000_builtin_support_vector_misalignment): Always return true
33516 for targets with efficient unaligned VSX accesses.
33517 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
33518 stores on targets with efficient unaligned VSX accesses is almost
33519 always the same as the cost of an aligned load or store, so model
33520 it that way.
33521 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
33522 unaligned vectors if we have efficient unaligned VSX accesses.
33523 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
33524 undocumented option.
33525
33526 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33527
33528 Revert:
33529 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
33530
33531 * config.gcc (LIBC_MUSL): New tm_defines macro.
33532 * config/linux.h (OPTION_MUSL): Define.
33533 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
33534 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
33535 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
33536
33537 * config/linux.opt (mmusl): New option.
33538 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
33539 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
33540
33541 * configure: Regenerate.
33542
33543 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
33544
33545 * config.gcc (LIBC_MUSL): New tm_defines macro.
33546 * config/linux.h (OPTION_MUSL): Define.
33547 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
33548 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
33549 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
33550
33551 * config/linux.opt (mmusl): New option.
33552 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
33553 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
33554
33555 * configure: Regenerate.
33556
33557 2015-04-22 Yury Gribov <y.gribov@samsung.com>
33558
33559 * doc/invoke.texi (-fsanitize-sections): Update description.
33560 * asan.c (set_sanitized_sections): Parse incoming arg.
33561 (section_sanitized_p): Support wildcards.
33562
33563 2015-04-22 Tom de Vries <tom@codesourcery.com>
33564
33565 PR tree-optimization/65823
33566 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
33567 equality between ap_copy and ap.
33568
33569 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33570
33571 PR target/47098
33572 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
33573
33574 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33575
33576 PR target/47122
33577 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
33578
33579 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33580
33581 PR target/55144
33582 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
33583 remove already contained t-files.
33584
33585 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33586
33587 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
33588 Remove unneeded forward declarations.
33589 (suitable_for_tail_call_opt_p): Commentary typo fix.
33590
33591 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33592
33593 * varasm.c (emit_bss): Remove redundant guard.
33594
33595 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33596
33597 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
33598
33599 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33600
33601 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
33602
33603 2015-04-22 Hale Wang <hale.wang@arm.com>
33604 Terry Guo <terry.guo@arm.com>
33605
33606 PR rtl-optimization/64818
33607 * combine.c (can_combine_p): Don't combine user-specified
33608 register if it is in an asm input.
33609
33610 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
33611
33612 PR ipa/65076
33613 * passes.def (early_optimizations): Add pass_dse.
33614
33615 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33616
33617 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
33618 * reorg.c (redundant_insn): Remove ifdef
33619 INSN_REFERENCES_ARE_DELAYED.
33620 * resource.c (mark_referenced_resources): Likewise.
33621
33622 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33623
33624 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
33625 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
33626 * resource.c (mark_set_resources): Likewise.
33627
33628 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33629
33630 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
33631 * cfgcleanup.c (flow_find_cross_jump): Likewise.
33632 (flow_find_head_matching_sequence): Likewise.
33633 (try_head_merge_bb): Likewise.
33634 * combine.c (can_combine_p): Likewise.
33635 (try_combine): Likewise.
33636 (distribute_notes): Likewise.
33637 * df-problems.c (can_move_insns_across): Likewise.
33638 * final.c (final): Likewise.
33639 * gcse.c (insert_insn_end_basic_block): Likewise.
33640 * ira.c (find_moveable_pseudos): Likewise.
33641 * reorg.c (try_merge_delay_insns): Likewise.
33642 (fill_simple_delay_slots): Likewise.
33643 (fill_slots_from_thread): Likewise.
33644 * sched-deps.c (sched_analyze_2): Likewise.
33645
33646 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33647
33648 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
33649 PIC_OFFSET_TABLE_REGNUM.
33650
33651 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33652
33653 * alias.c (init_alias_target): Remove ifdef
33654 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
33655 * df-scan.c (df_insn_refs_collect): Likewise.
33656 (df_get_regular_block_artificial_uses): Likewise.
33657 (df_get_eh_block_artificial_uses): Likewise.
33658 (df_get_entry_block_def_set): Likewise.
33659 (df_get_exit_block_use_set): Likewise.
33660 * emit-rtl.c (gen_rtx_REG): Likewise.
33661 * ira.c (ira_setup_eliminable_regset): Likewise.
33662 * reginfo.c (init_reg_sets_1): Likewise.
33663 * regrename.c (rename_chains): Likewise.
33664 * reload1.c (reload): Likewise.
33665 (eliminate_regs_in_insn): Likewise.
33666 * resource.c (mark_referenced_resources): Likewise.
33667 (init_resource_info): Likewise.
33668
33669 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33670
33671 * defaults.h (MASK_RETURN_ADDR): New definition.
33672 * except.c (expand_builtin_extract_return_addr): Remove ifdef
33673 MASK_RETURN_ADDR.
33674
33675 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33676
33677 * defaults.h (RETURN_ADDR_OFFSET): New definition.
33678 * except.c (expand_builtin_extract_return_addr): Remove ifdef
33679 RETURN_ADDR_OFFSET.
33680 (expand_builtin_frob_return_addr): Likewise.
33681
33682 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33683
33684 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
33685 (try_redirect_by_replacing_jump): Likewise.
33686 (rtl_tidy_fallthru_edge): Likewise.
33687 * combine.c (insn_a_feeds_b): Likewise.
33688 (find_split_point): Likewise.
33689 (simplify_set): Likewise.
33690 * cprop.c (cprop_jump): Likewise.
33691 * cse.c (cse_extended_basic_block): Likewise.
33692 * df-problems.c (can_move_insns_across): Likewise.
33693 * function.c (emit_use_return_register_into_block): Likewise.
33694 * haifa-sched.c (sched_init): Likewise.
33695 * ira.c (find_moveable_pseudos): Likewise.
33696 * loop-invariant.c (find_invariant_insn): Likewise.
33697 * lra-constraints.c (curr_insn_transform): Likewise.
33698 * postreload.c (reload_combine_recognize_const_pattern):
33699 * Likewise.
33700 * reload.c (find_reloads): Likewise.
33701 * reorg.c (delete_scheduled_jump): Likewise.
33702 (steal_delay_list_from_target): Likewise.
33703 (steal_delay_list_from_fallthrough): Likewise.
33704 (redundant_insn): Likewise.
33705 (fill_simple_delay_slots): Likewise.
33706 (fill_slots_from_thread): Likewise.
33707 (delete_computation): Likewise.
33708 * sched-rgn.c (add_branch_dependences): Likewise.
33709
33710 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33711
33712 * genconfig.c (main): Always define HAVE_cc0.
33713 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
33714 HAVE_cc0.
33715 * cfgcleanup.c (flow_find_cross_jump): Likewise.
33716 (flow_find_head_matching_sequence): Likewise.
33717 (try_head_merge_bb): Likewise.
33718 * cfgrtl.c (rtl_merge_blocks): Likewise.
33719 (try_redirect_by_replacing_jump): Likewise.
33720 (rtl_tidy_fallthru_edge): Likewise.
33721 * combine.c (do_SUBST_MODE): Likewise.
33722 (insn_a_feeds_b): Likewise.
33723 (combine_instructions): Likewise.
33724 (can_combine_p): Likewise.
33725 (try_combine): Likewise.
33726 (find_split_point): Likewise.
33727 (subst): Likewise.
33728 (simplify_set): Likewise.
33729 (distribute_notes): Likewise.
33730 * cprop.c (cprop_jump): Likewise.
33731 * cse.c (cse_extended_basic_block): Likewise.
33732 * df-problems.c (can_move_insns_across): Likewise.
33733 * final.c (final): Likewise.
33734 (final_scan_insn): Likewise.
33735 * function.c (emit_use_return_register_into_block): Likewise.
33736 * gcse.c (insert_insn_end_basic_block): Likewise.
33737 * haifa-sched.c (sched_init): Likewise.
33738 * ira.c (find_moveable_pseudos): Likewise.
33739 * loop-invariant.c (find_invariant_insn): Likewise.
33740 * lra-constraints.c (curr_insn_transform): Likewise.
33741 * optabs.c (prepare_cmp_insn): Likewise.
33742 * postreload.c (reload_combine_recognize_const_pattern):
33743 * Likewise.
33744 * reload.c (find_reloads): Likewise.
33745 (find_reloads_address_1): Likewise.
33746 * reorg.c (delete_scheduled_jump): Likewise.
33747 (steal_delay_list_from_target): Likewise.
33748 (steal_delay_list_from_fallthrough): Likewise.
33749 (try_merge_delay_insns): Likewise.
33750 (redundant_insn): Likewise.
33751 (fill_simple_delay_slots): Likewise.
33752 (fill_slots_from_thread): Likewise.
33753 (delete_computation): Likewise.
33754 (relax_delay_slots): Likewise.
33755 * sched-deps.c (sched_analyze_2): Likewise.
33756 * sched-rgn.c (add_branch_dependences): Likewise.
33757
33758 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33759
33760 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
33761 that is trivially ded on non cc0 targets.
33762 (simplify_set): Likewise.
33763 (mark_used_regs_combine): Likewise.
33764 * cse.c (new_basic_block): Likewise.
33765 (fold_rtx): Likewise.
33766 (cse_insn): Likewise.
33767 (cse_extended_basic_block): Likewise.
33768 (set_live_p): Likewise.
33769 * rtlanal.c (canonicalize_condition): Likewise.
33770 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
33771
33772 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33773
33774 * conditions.h: Define macros even if HAVE_cc0 is undefined.
33775 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
33776 * final.c: Likewise.
33777 * jump.c: Likewise.
33778 * recog.c: Likewise.
33779 * recog.h: Declare functions even when HAVE_cc0 is undefined.
33780 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
33781
33782 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33783
33784 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
33785 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
33786 * builtins.c (expand_builtin): Remove check if
33787 EH_RETURN_DATA_REGNO is defined.
33788 * df-scan.c (df_bb_refs_collect): Likewise.
33789 (df_get_exit_block_use_set): Likewise.
33790 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
33791 * ira-lives.c (process_bb_node_lives): Likewise.
33792 * lra-lives.c (process_bb_lives): Likewise.
33793
33794 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
33795
33796 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
33797 FIRST_PSEUDO_REG): New.
33798 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
33799 (ARG_POINTER_REGNUM): Define to ARGP_REG.
33800 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
33801 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
33802 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
33803 (FIRST_INT_REG): New.
33804 (LAST_INT_REG): New.
33805 (FIRST_*_REG): Define using *_REG.
33806 (LAST_*_REG): Ditto.
33807 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
33808 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
33809 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
33810
33811 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33812
33813 * expmed.c: (synth_mult): Only assume overlapping
33814 shift with previous steps in alg_sub_t_m2 case.
33815
33816 2015-04-21 Richard Biener <rguenther@suse.de>
33817
33818 PR tree-optimization/65650
33819 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
33820 transitions involving copies.
33821 (set_lattice_value): Adjust for copy lattice state.
33822 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
33823 if that doesn't dominate the merge point.
33824 (bit_value_unop): Adjust what we treat as varying mask.
33825 (bit_value_binop): Likewise.
33826 (bit_value_assume_aligned): Likewise.
33827 (evaluate_stmt): When we simplified to a SSA name record a copy
33828 instead of dropping to varying.
33829 (visit_assignment): Simplify.
33830
33831 * gimple-match.h (gimple_simplify): Add another callback.
33832 * gimple-fold.c (fold_stmt_1): Adjust caller.
33833 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
33834 for the 2nd callback.
33835 * gimple-match-head.c (gimple_simplify): Add a callback that is
33836 used to valueize the stmt operands and use it that way.
33837
33838 2015-04-21 Richard Biener <rguenther@suse.de>
33839
33840 PR tree-optimization/65788
33841 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
33842
33843 2015-04-21 Richard Biener <rguenther@suse.de>
33844
33845 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
33846 vec_construct cost by vec_stmt_cost.
33847
33848 2015-04-21 Richard Biener <rguenther@suse.de>
33849
33850 * cfghooks.h (create_basic_block): Replace with two overloads
33851 for RTL and GIMPLE.
33852 (split_block): Likewise.
33853 * cfghooks.c (split_block): Rename to ...
33854 (split_block_1): ... this.
33855 (split_block): Add two type-safe overloads for RTL and GIMPLE.
33856 (split_block_after_labels): Call split_block_1.
33857 (create_basic_block): Rename to ...
33858 (create_basic_block_1): ... this.
33859 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
33860 (create_empty_bb): Call create_basic_block_1.
33861 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
33862 split_block_after_labels.
33863 * omp-low.c (expand_parallel_call): Likewise.
33864 (expand_omp_target): Likewise.
33865 (simd_clone_adjust): Likewise.
33866 * tree-chkp.c (chkp_get_entry_block): Likewise.
33867 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
33868 create_basic_block overload.
33869 (cgraph_node::expand_thunk): Likewise.
33870 * tree-cfg.c (make_blocks): Likewise.
33871 (handle_abnormal_edges): Likewise.
33872 * tree-inline.c (copy_bb): Likewise.
33873
33874 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33875
33876 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
33877 New pattern.
33878 (*xor_one_cmplsidi3_ze): Likewise.
33879
33880 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
33881
33882 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
33883 use df_remove_problem rather than manually removing problems, leaving
33884 holes in df->problems_in_order[].
33885
33886 2015-04-21 Tom de Vries <tom@codesourcery.com>
33887
33888 PR tree-optimization/65802
33889 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
33890
33891 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33892
33893 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
33894 Increase to 128.
33895 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
33896 at '.'. Assert that there's enough space for everything.
33897
33898 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
33899
33900 PR tree-optimization/64950
33901 Revert:
33902 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
33903
33904 PR target/41089
33905 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
33906 as volatile.
33907
33908 2015-04-20 Shiva Chen <shiva0217@gmail.com>
33909
33910 PR rtl-optimization/64916
33911 * cfgcleanup.c (values_equal_p): New function.
33912 (can_replace_by): Use it.
33913
33914 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
33915
33916 PR c++/65801
33917 * doc/invoke.texi ([-Wnarrowing]): Update.
33918
33919 2015-04-20 Jeff Law <law@redhat.com>
33920
33921 PR tree-optimization/65658
33922 * tree-ssa-threadupdate.c (redirection_block_p): Remove
33923 redundant test for GIMPLE_ASSIGN in last change.
33924
33925 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
33926
33927 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
33928 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
33929 (legitimize_tls_address): Ditto.
33930 (ix86_expand_move): Ditto.
33931 (ix86_expand_binary_operator): Remove reload_in_progress checks.
33932 (ix86_expand_unary_operator): Ditto.
33933 * config/i386/predicates.md (index_register_operand): Ditto.
33934
33935 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
33936
33937 * reorg.c (try_merge_delay_insns): Improve correctness checking
33938 for targets with multiple delay slots.
33939
33940 2015-04-20 Jeff Law <law@redhat.com>
33941
33942 PR tree-optimization/65658
33943 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
33944 statements too.
33945
33946 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
33947
33948 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
33949 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
33950 Delete.
33951
33952 2015-04-20 Jakub Jelinek <jakub@redhat.com>
33953
33954 PR debug/65807
33955 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
33956
33957 2015-04-20 Richard Biener <rguenther@suse.de>
33958
33959 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
33960 * gimple-fold.c (gimple_build_valueize): New function.
33961 (gimple_build): Always use gimple_build_valueize as valueize hook.
33962
33963 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
33964
33965 PR target/64134
33966 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
33967 and overwrite variable parts if <= 1/2 the elements are variable.
33968
33969 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
33970
33971 PR rtl-optimization/65805
33972 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
33973 Don't use difference of offset and previous offset if
33974 update_sp_offset is non-zero.
33975 (eliminate_regs_in_insn): Ditto.
33976 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
33977 lra_eliminate_regs_1 call.
33978 * lra-constraints.c (get_equiv_with_elimination): Ditto.
33979
33980 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
33981
33982 * hash-table.h: Remove version of hash_table that stored value_type *.
33983 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
33984 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
33985 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
33986 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
33987 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
33988 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
33989 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
33990 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
33991 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
33992 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
33993 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
33994 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
33995 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
33996 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
33997 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
33998 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
33999
34000 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34001 Jakub Jelinek <jakub@redhat.com>
34002
34003 PR target/65787
34004 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
34005 subsequent SH_NONE operand does not overwrite an existing *special
34006 value.
34007 (adjust_extract): Handle case where a vec_extract operation is
34008 wrapped in a PARALLEL.
34009
34010 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
34011
34012 PR target/65780
34013 * config/i386/i386.c (ix86_binds_local_p): Define only if
34014 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
34015
34016 2015-04-17 Jeff Law <law@redhat.com>
34017
34018 PR tree-optimization/47679
34019 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
34020 * tree-ssa-scopedtables.c: New file.
34021 * tree-ssa-scopedtables.h: New file.
34022 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
34023 (const_and_copies): Change name/type.
34024 (record_const_or_copy): Move into tree-ssa-scopedtables.c
34025 (record_const_or_copy_1): Similarly.
34026 (restore_vars_to_original_value): Similarly.
34027 (pass_dominator::execute): Create and destroy const_and_copies table.
34028 (thread_across_edge): Update passing of const_and_copies.
34029 (record_temporary_equivalence): Use method calls rather than
34030 manipulating const_and_copies directly.
34031 (record_equality, cprop_into_successor_phis): Similarly.
34032 (dom_opt_dom_walker::before_dom_children): Similarly.
34033 (dom_opt_dom_walker::after_dom_children): Similarly.
34034 (eliminate_redundant_computations): Similarly.
34035 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
34036 (record_temporary_equivalence): Likewise.
34037 (invalidate_equivalences): Likewise.
34038 (record_temporary_equivalences_from_phis): Update due to type
34039 change of const_and_copies. Use method calls rather than
34040 manipulating the stack directly.
34041 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
34042 (thread_through_normal_block, thread_across_edge): Likewise.
34043 (thread_across_edge): Likewise.
34044 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
34045 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
34046 of equiv_stack.
34047 (identify_jump_threads): Update due to type change of equiv_stack.
34048 (finalize_jump_threads): Delete the equiv_stack when complete.
34049
34050 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
34051
34052 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
34053 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
34054 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
34055
34056 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
34057
34058 PR target/65535
34059 * config.gcc: Exit with a comment when we do not have a major version
34060 number for the FreeBSD target.
34061
34062 2015-04-17 Jakub Jelinek <jakub@redhat.com>
34063
34064 PR target/65689
34065 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
34066 maybe_allows_mem bitfields.
34067 (maybe_allows_none_start, maybe_allows_none_end,
34068 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
34069 maybe_allows_mem_end): New variables.
34070 (compute_maybe_allows): New function.
34071 (add_constraint): Use it to initialize maybe_allows_reg and
34072 maybe_allows_mem fields.
34073 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
34074 is_address constraints such that those that allow neither mem nor
34075 reg come first, then those that only allow reg but not mem, then
34076 those that only allow mem but not reg, then the rest.
34077 (write_allows_reg_mem_function): New function.
34078 (write_tm_preds_h): Call it.
34079 * stmt.c (parse_output_constraint, parse_input_constraint): Use
34080 the generated insn_extra_constraint_allows_reg_mem function
34081 instead of always setting *allows_reg = true; *allows_mem = true;
34082 for unknown extra constraints.
34083
34084 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
34085
34086 PR target/65780
34087 * output.h (default_binds_local_p_3): New.
34088 * varasm.c (default_binds_local_p_3): Make it public. Take an
34089 argument to indicate if common symbol may be local. If common
34090 symbol may be local, treat non-external variable as defined
34091 locally.
34092 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
34093 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
34094 * config/i386/i386.c (ix86_binds_local_p): New.
34095 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
34096 ix86_binds_local_p.
34097
34098 2015-04-17 Jakub Jelinek <jakub@redhat.com>
34099
34100 PR debug/65771
34101 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
34102 trying mem_loc_descriptor on XEXP (rtl, 0).
34103
34104 2015-04-17 Martin Liska <mliska@suse.cz>
34105
34106 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
34107 Release symbol_compare_collection.
34108 * ipa-reference.c: Add TODO that a vector should be released.
34109
34110 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
34111
34112 PR target/65296
34113 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
34114 to new AVR-LibC file layout (bug #44574).
34115 (*avrlibc_devicelib): Same.
34116 * config/avr/avr-mcus.def: Adjust comments.
34117 * config/avr/avr.opt (nodevicelib): Adjust help.
34118
34119 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
34120
34121 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
34122
34123 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
34124
34125 PR c++/64527
34126 * gimplify.c (gimplify_init_constructor): Always emit a
34127 side-effecting constructor.
34128
34129 2015-04-17 Tom de Vries <tom@codesourcery.com>
34130
34131 PR tree-optimization/64950
34132 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
34133 in cfun->curr_properties.
34134 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
34135 if we generate an IFN_VA_ARG.
34136 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
34137 function if PROP_gimple_lva is not set in src function.
34138
34139 2015-04-17 Tom de Vries <tom@codesourcery.com>
34140 Michael Matz <matz@suse.de>
34141
34142 PR tree-optimization/64950
34143 * gimple-iterator.c (update_modified_stmts): Remove static.
34144 * gimple-iterator.h (update_modified_stmts): Declare.
34145 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
34146 (gimplify_va_arg_internal): New function.
34147 (gimplify_va_arg_expr): Use IFN_VA_ARG.
34148 * gimplify.h (gimplify_va_arg_internal): Declare.
34149 * internal-fn.c (expand_VA_ARG): New unreachable function.
34150 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
34151 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
34152 (expand_ifn_va_arg): New function.
34153 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
34154 (pass_stdarg::execute): Call expand_ifn_va_arg.
34155 (pass_data_lower_vaarg): New pass_data.
34156 (pass_lower_vaarg): New gimple_opt_pass.
34157 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
34158 (make_pass_lower_vaarg): New function.
34159 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
34160 properties_required field.
34161 * passes.def (all_passes): Add pass_lower_vaarg.
34162 * tree-pass.h (PROP_gimple_lva): Add define.
34163 (make_pass_lower_vaarg): Declare.
34164
34165 2015-04-17 Tom de Vries <tom@codesourcery.com>
34166
34167 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
34168 * calls.c (call_expr_flags): Same.
34169
34170 2015-04-17 Tom de Vries <tom@codesourcery.com>
34171
34172 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
34173 (pass_stdarg::execute): ... here.
34174
34175 2015-04-17 Tom de Vries <tom@codesourcery.com>
34176 Michael Matz <matz@suse.de>
34177
34178 * tree-cfg.c (make_blocks_1): Factor out of ...
34179 (make_blocks): ... here.
34180 (make_edges_bb): Factor out of ...
34181 (make_edges): ... here.
34182 (gimple_find_sub_bbs): New function.
34183 * tree-cfg.h (gimple_find_sub_bbs): Declare.
34184
34185 2015-04-17 Tom de Vries <tom@codesourcery.com>
34186
34187 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
34188
34189 2015-04-17 Yury Gribov <y.gribov@samsung.com>
34190
34191 * asan.c (set_sanitized_sections): New function.
34192 (section_sanitized_p): Ditto.
34193 (asan_protect_global): Optionally sanitize user-defined
34194 sections.
34195 * asan.h (set_sanitized_sections): Declare new function.
34196 * common.opt (fsanitize-sections): New option.
34197 * doc/invoke.texi (-fsanitize-sections): Document new option.
34198 * opts-global.c (handle_common_deferred_options): Handle new
34199 option.
34200
34201 2015-04-17 Jakub Jelinek <jakub@redhat.com>
34202
34203 PR debug/65771
34204 * dwarf2out.c (loc_list_from_tree): Return NULL
34205 for DEBUG_EXPR_DECL.
34206
34207 2015-04-17 Christian Bruel <christian.bruel@st.com>
34208
34209 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
34210 same attributes.
34211
34212 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
34213
34214 * ira-color.c (setup_left_conflict_sizes_p): Do not process
34215 node itself when computing left conflict subnode size.
34216
34217 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
34218
34219 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
34220 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
34221 *fop_<mode>_1_sse using enabled attribute. Use
34222 register_mixssei387nonimm_operand operand 1 predicate. Change
34223 alternative 3 constraints from "x" to "v".
34224
34225 2015-04-16 Richard Biener <rguenther@suse.de>
34226
34227 PR tree-optimization/65774
34228 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
34229 bit-value tracking on.
34230
34231 2015-04-16 Richard Biener <rguenther@suse.de>
34232
34233 PR tree-optimization/64277
34234 * tree-vrp.c (check_array_ref): Fix anti-range handling,
34235 simplify upper bound handling.
34236 (search_for_addr_array): Simplify.
34237 (check_array_bounds): Handle ADDR_EXPRs here.
34238 (check_all_array_refs): Simplify.
34239
34240 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
34241
34242 * config/i386/i386.c (print_reg): Rewrite function.
34243
34244 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34245
34246 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
34247 Invert the condition.
34248
34249 2015-04-16 Renlin Li <renlin.li@arm.com>
34250
34251 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
34252 simplifications for UNSIGNED_FLOAT.
34253
34254 2015-04-16 Nick Clifton <nickc@redhat.com>
34255
34256 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
34257 MUL_UNINIT.
34258 (enum rl78_cpu_type): New.
34259 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
34260 (umulhi3_shift_virt): Remove m constraint from operand 1.
34261 (umulqihi3_virt): Likewise.
34262 * config/rl78/rl78.c (rl78_option_override): Add code to process
34263 -mcpu and -mmul options.
34264 (rl78_alloc_physical_registers): Add code to handle divhi and
34265 divsi valloc attributes.
34266 (set_origin): Likewise.
34267 * config/rl78/rl78.h (RL78_MUL_G14): Define.
34268 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
34269 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
34270 __RL78_Gxx__.
34271 (ASM_SPEC): Pass -mcpu on to assembler.
34272 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
34273 (mulqi3_rl78): Likewise.
34274 (mulhi3_g13): Likewise.
34275 (mulhi3): Generate the G13 or G14 versions of the insn directly.
34276 (mulsi3): Likewise.
34277 (mulhi3_g14): Add clobbers of AX and BC.
34278 (mulsi3_g14): Likewise.
34279 (mulsi3_g13): Likewise.
34280 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
34281 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
34282 * config/rl78/rl78.opt (mmul): Initialise value to
34283 RL78_MUL_UNINIT.
34284 (mcpu): New option.
34285 (m13, m14, mrl78): New option aliases.
34286 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
34287 (MULTILIB_DIRNAMES): Add g13 and g14.
34288 * doc/invoke.texi: Document -mcpu and -mmul options.
34289
34290 2015-04-16 Richard Biener <rguenther@suse.de>
34291
34292 * tree-ssa-ccp.c (likely_value): See if we have operands that
34293 are marked as never simulate again and return CONSTANT in this
34294 case.
34295 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
34296 not have any operands that will be simulated again as
34297 not being simulated again.
34298
34299 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
34300
34301 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
34302 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
34303 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
34304 attribute.
34305 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
34306 enabled attribute.
34307 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
34308 *float<SWI48:mode><MODEF:mode>2_sse.
34309 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
34310 enabled attribute.
34311 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
34312 enabled attribute.
34313
34314 2015-04-15 Tom de Vries <tom@codesourcery.com>
34315
34316 PR other/65487
34317 * function.c (push_dummy_function): New function.
34318 (init_dummy_function_start): Use push_dummy_function.
34319 (pop_dummy_function): New function. Factored out of ...
34320 (expand_dummy_function_end): ... here.
34321 * function.h (push_dummy_function, pop_dummy_function): Declare.
34322 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
34323 pop_dummy_function.
34324 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
34325
34326 2015-04-15 Jeff Law <law@redhat.com>
34327
34328 PR tree-optimization/47679
34329 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
34330 need for forward declaration in upcoming changes.
34331 (record_conditions, record_edge_info): Likewise.
34332
34333 PR rtl-optimization/42522
34334 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
34335 SIGN_EXTRACT as a whole object rather than simplifying
34336 its operand.
34337
34338 2015-04-15 Jakub Jelinek <jakub@redhat.com>
34339
34340 PR ipa/65765
34341 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
34342 and GIMPLE_PREDICT use break instead of return true. For
34343 GIMPLE_EH_DISPATCH, compare dispatch region.
34344
34345 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
34346
34347 * doc/extend.texi (__sync Builtins): Simplify some text. Update
34348 details about the implementation. Make clear preference for
34349 __atomic builtins. Reduce possibility of future change.
34350
34351 2015-04-15 Nick Clifton <nickc@redhat.com>
34352
34353 * config/rx/rx.opt (mallow-string-insns): New option.
34354 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
34355 builtin if string instructions are denied.
34356 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
34357 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
34358 appropriate.
34359 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
34360 * config/rx/rx.md (movstr): Enable pattern only if string
34361 instructions are allowed.
34362 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
34363 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
34364 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
34365 (MULTILIB_DIRNAMES): Add no-strings.
34366 * doc/invoke.texi: Document -mno-allow-string-insns.
34367
34368 2015-04-15 Alan Modra <amodra@gmail.com>
34369
34370 PR target/65408
34371 PR target/58744
34372 PR middle-end/36043
34373 * calls.c (load_register_parameters): Don't load past end of
34374 mem unless suitably aligned.
34375
34376 2015-04-15 Nick Clifton <nickc@redhat.com>
34377
34378 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
34379 decrement instruction as being frame related.
34380 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
34381 based addresses.
34382 If zero extending a function address enclose the operation in
34383 %code(...).
34384 (rl78_preferred_reload_class): New function.
34385 (TARGET_PREFERRED_RELOAD_CLASS): Define.
34386 * config/rl78/rl78.md: Remove useless constraints in expanders.
34387 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
34388 (mulhi3_rl78): Likewise.
34389 (mulhi3_g13): Likewise.
34390 (mulsi3_rl78): Likewise.
34391 (es_addr): Move to before the multiply patterns.
34392
34393 2015-04-15 Alan Modra <amodra@gmail.com>
34394
34395 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
34396 and sequence_stack. Add seq.
34397 (seq_stack): Delete.
34398 * function.c (prepare_function_start): Don't access x_last_insn.
34399 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
34400 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
34401 * emit_rtl.c (start_sequence, push_topmost_sequence,
34402 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
34403 sequence accessors.
34404 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
34405 remove_insn): Likewise. Simplify.
34406 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
34407 and pop_topmost_sequence.
34408 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
34409 debug insns.
34410 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
34411
34412 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
34413
34414 PR target/65729
34415 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
34416 the assertiion.
34417
34418 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
34419
34420 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
34421 (LEGACY_INT_REGNO_P): Ditto.
34422 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
34423 (ANY_MASK_REG_P): Remove.
34424 (BND_REG_P): Rename from ANY_BND_REG_P.
34425 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
34426 legacy integer registers. Do not handle MMX_REG_P in a special way.
34427 Merge 64byte and 32byte SSE handling.
34428
34429 2015-04-14 Nick Clifton <nickc@redhat.com>
34430
34431 * expr.c (expand_assignment): Force an address offset computation
34432 into a register before changing its mode.
34433 (expand_expr_real_1): Likewise.
34434
34435 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
34436
34437 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
34438 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
34439 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
34440 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
34441 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
34442 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
34443 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
34444 and __aarch64_vget_lane_any.
34445
34446 2015-04-14 Jakub Jelinek <jakub@redhat.com>
34447
34448 PR rtl-optimization/65761
34449 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
34450 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
34451
34452 2015-04-14 Richard Biener <rguenther@suse.de>
34453
34454 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
34455 (graphite_can_represent_scev): Use POINTER_TYPE_P.
34456
34457 2015-04-14 Richard Biener <rguenther@suse.de>
34458
34459 PR tree-optimization/65758
34460 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
34461 against -1.
34462 (ccp_lattice_meet): Likewise.
34463 (bit_value_unop): Likewise.
34464 (bit_value_binop): Likewise.
34465 (bit_value_assume_aligned): Likewise.
34466
34467 2015-04-14 Christian Bruel <christian.bruel@st.com>
34468
34469 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
34470 function.
34471
34472 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
34473
34474 PR tree-optimization/63387
34475 * match.pd ((x unord x) | (y unord y) -> (x unord y),
34476 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
34477
34478 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
34479
34480 * config/i386/predicates.md (any_QIreg_operand): Rename from
34481 q_regs_operand. Do not process subregs.
34482 (QIreg_operand): Use QI_REGNO_P predicate.
34483 (ext_QIreg_operand): Ditto.
34484 (ext_register_operand): Ditto.
34485 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
34486 (AND splitters): Ditto.
34487 (AND with -65536 splitter): Add SWI48 mode for operand 0.
34488 (AND with -256 splitter): Use any_QIreg_operand predicate and
34489 SWI248 mode for operand 0.
34490 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
34491 mode for operand 0.
34492 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
34493
34494 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
34495
34496 * doc/plugins.texi: Rewrite first introductory paragraph.
34497
34498 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34499
34500 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
34501 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
34502
34503 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34504
34505 * ipa-profie.c (ipa_profile): Check number of parameters
34506 and possible polymorphic call targets before
34507 devirtualizing.
34508
34509 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
34510
34511 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
34512 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
34513
34514 2015-04-13 Richard Biener <rguenther@suse.de>
34515
34516 PR tree-optimization/65204
34517 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
34518 takens for bit-CCP.
34519
34520 2015-04-13 Richard Biener <rguenther@suse.de>
34521
34522 PR target/65660
34523 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
34524 and cond_not_taken_branch_cost to 4 and 2.
34525 (bdver2_cost): Likewise.
34526 (bdver3_cost): Likewise.
34527 (bdver4_cost): Likewise.
34528
34529 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34530
34531 * hash-table.h (hash_table constructor): Add mem stats.
34532 (alloc_entries): Likewise.
34533
34534 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34535
34536 * ipa-cp.c (ipcp_driver): Relase prev_edge.
34537 * passes.c (execute_one_pass): Only add transform if pass has one.
34538
34539 2015-04-12 Joseph Myers <joseph@codesourcery.com>
34540
34541 * config/i386/i386.c (ix86_option_override_internal): Don't set
34542 -fprefetch-loop-arrays if optimizing for size.
34543
34544 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34545 Gerald Pfeifer <gerald@pfeifer.com>
34546
34547 * doc/contrib.texi (Contributors): Add Martin Jambor and
34548 Michael Matz.
34549
34550 2015-04-12 Jakub Jelinek <jakub@redhat.com>
34551
34552 * BASE-VER: Set to 6.0.0.
34553
34554 PR tree-optimization/65747
34555 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
34556 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
34557
34558 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
34559
34560 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
34561 sentence. Improve grammar.
34562
34563 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
34564
34565 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
34566
34567 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
34568
34569 PR ipa/65743
34570 * ipa-inline-transform.c (speculation_removed): Remove static var.
34571 (check_speculations): New function.
34572 (clone_inlined_nodes): Do not check spculations.
34573 (inline_call): Call check_speculations.
34574 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
34575 consider non-invariants.
34576
34577 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
34578 Martin Liska <mliska@suse.cz>
34579
34580 PR ipa/65722
34581 * ipa-icf.c (sem_item::compare_cgraph_references): function and
34582 variable can not match.
34583 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
34584 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
34585
34586 2015-04-11 Jakub Jelinek <jakub@redhat.com>
34587
34588 PR tree-optimization/65735
34589 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
34590 Remove visited_phis argument, add visited_bbs, avoid recursing into the
34591 same bb rather than just into the same phi node.
34592 (thread_through_normal_block): Adjust caller.
34593
34594 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
34595
34596 * doc/contrib.texi (Contributors): Add Ira Rosen.
34597
34598 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
34599
34600 * gcov.c (find_source): Fix miswording in error message.
34601 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
34602 (ix86_expand_sse_comi_round): Fix typo in error message.
34603
34604 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
34605
34606 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
34607
34608 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
34609
34610 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
34611
34612 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
34613
34614 PR target/65710
34615 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
34616 Print bad_spills_num and insn_pseudos_num.
34617
34618 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34619
34620 PR target/65694
34621 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
34622 when creating +1 values for SImode.
34623
34624 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
34625
34626 PR target/65729
34627 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
34628 assert.
34629
34630 2015-04-10 Jakub Jelinek <jakub@redhat.com>
34631 Iain Sandoe <iain@codesourcery.com>
34632
34633 PR target/65351
34634 * configure: Regenerate.
34635
34636 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
34637
34638 PR target/65671
34639 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
34640
34641 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
34642
34643 * doc/contrib.texi (Contributors): Add John Marino.
34644
34645 2015-04-09 Jakub Jelinek <jakub@redhat.com>
34646
34647 PR tree-optimization/65709
34648 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
34649 TREE_TYPE (TREE_TYPE (t)).
34650
34651 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
34652
34653 PR target/65710
34654 * lra-int.h (lra_bad_spill_regno_start): New.
34655 * lra.c (lra_bad_spill_regno_start): New.
34656 (lra): Set up lra_bad_spill_regno_start. Set up
34657 lra_constraint_new_regno_start unconditionally.
34658 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
34659 spill preferences.
34660
34661 2015-04-09 Marek Polacek <polacek@redhat.com>
34662 Jakub Jelinek <jakub@redhat.com>
34663
34664 PR middle-end/65554
34665 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
34666 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
34667 of STRIP_NOPS.
34668
34669 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
34670
34671 PR rtl-optimization/65693
34672 * combine.c (is_parallel_of_n_reg_sets): Move outside of
34673 #ifndef HAVE_cc0.
34674
34675 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
34676
34677 PR target/65296
34678 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
34679 device specs file if "device-specs%s" didn't resolve to a path.
34680
34681 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
34682
34683 PR target/65676
34684 * config/i386/i386.c (fixup_modeless_constant): New.
34685 (ix86_expand_args_builtin): Fixup modeless constant operand.
34686 (ix86_expand_round_builtin): Ditto.
34687 (ix86_expand_special_args_builtin): Ditto.
34688 (ix86_expand_builtin): Ditto.
34689
34690 2015-04-09 Jakub Jelinek <jakub@redhat.com>
34691
34692 PR target/65693
34693 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
34694 any pow2 integer in between 2 and 0x80000000U inclusive.
34695
34696 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
34697
34698 PR rtl-optimization/65693
34699 * combine.c (is_parallel_of_n_reg_sets): Change first argument
34700 from an rtx_insn * to an rtx.
34701 (try_combine): Adjust both callers. Use it once more.
34702
34703 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
34704
34705 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
34706 (chkp_make_static_const_bounds): Search existing
34707 symbol by assembler name. Use make_decl_one_only.
34708 (chkp_get_zero_bounds_var): Remove node search which
34709 is now performed in chkp_make_static_const_bounds.
34710 (chkp_get_none_bounds_var): Likewise.
34711
34712 2015-04-08 Michael Witten <mfwitten@gmail.com>
34713
34714 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
34715 to an example.
34716
34717 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34718
34719 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
34720
34721 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
34722
34723 * doc/extend.texi (__sync Builtins): Fix grammar.
34724
34725 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34726
34727 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
34728
34729 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34730
34731 * varasm.c (emit_local): Move definition of align.
34732
34733 2015-04-08 Julian Brown <julian@codesourcery.com>
34734
34735 * config/nvptx/mkoffload.c (process): Support variable mapping.
34736
34737 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
34738
34739 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
34740 alpha_links **.
34741 (alpha_write_one_linkage): Correct typo.
34742
34743 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
34744
34745 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
34746
34747 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
34748
34749 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
34750
34751 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
34752
34753 * tree-chkp.h (chkp_insert_retbnd_call): New.
34754 * tree-chkp.c (chkp_insert_retbnd_call): New.
34755 * ipa-split.c (insert_bndret_call_after): Remove.
34756 (split_function): Use chkp_insert_retbnd_call.
34757 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
34758 bounds for instrumented functions.
34759
34760 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
34761
34762 PR ipa/65540
34763 * calls.c (initialize_argument_information): When producing tail
34764 call also turn SSA_NAMES passed by references to original PARM_DECLs
34765
34766 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
34767
34768 PR target/65648
34769 * lra-remat.c (do_remat): Process input and non-input insn
34770 registers separately.
34771
34772 2015-04-07 Jakub Jelinek <jakub@redhat.com>
34773
34774 PR debug/65678
34775 * valtrack.c (debug_lowpart_subreg): New function.
34776 (dead_debug_insert_temp): Use it.
34777
34778 PR middle-end/65680
34779 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
34780 into signed HOST_WIDE_INT the same as negative bit_offset.
34781
34782 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
34783
34784 * ipa-comdats.c (ipa_comdats): Visit all thunks
34785 to set proper comdat group.
34786
34787 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34788
34789 PR target/65489
34790 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
34791 on constants for NEON VSTRUCT modes.
34792
34793 2015-04-07 Jakub Jelinek <jakub@redhat.com>
34794 Iain Sandoe <iain@codesourcery.com>
34795
34796 PR target/65351
34797 * configure: Regenerate.
34798
34799 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
34800
34801 PR target/65614
34802 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
34803 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
34804 that LFD is used to load double constants instead of LFS. Add
34805 defaults for all costs structures. Add comments for missing
34806 initialization fields.
34807 (size32_cost): Likewise.
34808 (size64_cost): Likewise.
34809 (rs64a_cost): Likewise.
34810 (mpccore_cost): Likewise.
34811 (ppc403_cost): Likewise.
34812 (ppc405_cost): Likewise.
34813 (ppc440_cost): Likewise.
34814 (ppc476_cost): Likewise.
34815 (ppc601_cost): Likewise.
34816 (ppc603_cost): Likewise.
34817 (ppc604_cost): Likewise.
34818 (ppc604e_cost): Likewise.
34819 (ppc620_cost): Likewise.
34820 (ppc630_cost): Likewise.
34821 (ppccell_cost): Likewise.
34822 (ppc750_cost): Likewise.
34823 (ppc7450_cost): Likewise.
34824 (ppc8540_cost): Likewise.
34825 (ppce300c2c3_cost): Likewise.
34826 (ppce500mc_cost): Likewise.
34827 (ppce500mc64_cost): Likewise.
34828 (ppce5500_cost): Likewise.
34829 (ppce6500_cost): Likewise.
34830 (titan_cost): Likewise.
34831 (power4_cost): Likewise.
34832 (power6_cost): Likewise.
34833 (power7_cost): Likewise.
34834 (power8_cost): Likewise.
34835 (ppca2_cost): Likewise.
34836 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
34837
34838 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
34839 instead of XXLOR to copy SFmode to clear out dirty bits created
34840 when SFmode denormals are generated.
34841 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
34842 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
34843
34844 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
34845
34846 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
34847 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
34848 * config/aarch64/aarch64-tune.md: Regenerate.
34849
34850 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
34851
34852 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
34853 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
34854 * config/arm/arm-cores.def (exynos-m1): New core.
34855 * config/arm/arm-tune.md: Regenerate.
34856 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
34857 * config/arm/bpabi.h: Likewise.
34858
34859 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
34860
34861 * ipa-cp (set_single_call_flag): Remove too
34862 restrictive assert.
34863
34864 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
34865
34866 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
34867 GOMP_offload_unregister from the destructor.
34868
34869 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
34870
34871 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
34872 flags for instrumentation thunk.
34873 (chkp_produce_thunks): Likewise.
34874
34875 2015-04-05 Martin Liska <mliska@suse.cz>
34876
34877 PR ipa/65665
34878 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
34879 has computed data structure.
34880 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
34881
34882 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
34883
34884 * invoke.texi (inline-unit-growth): Increase growth to 20%
34885 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
34886
34887 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
34888
34889 PR target/65647
34890 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
34891 value checking.
34892 (lra_rematerialization_iter): New.
34893 * lra.c (lra): Initialize lra_rematerialization_iter.
34894 Stop updating lra_constraint_new_regno_start after switching of
34895 inheritance and rematerialization.
34896 * lra-remat.c (lra_rematerialization_iter): New.
34897 (lra_remat): Add printing pass iteration. Do rematerialization
34898 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
34899
34900 2015-04-04 Richard Biener <rguenther@suse.de>
34901
34902 PR tree-optimization/64909
34903 PR tree-optimization/65660
34904 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
34905 to take a cost vector for scalar iteration cost.
34906 (vect_get_single_scalar_iteration_cost): Likewise.
34907 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
34908 Compute the scalar iteration cost into a cost vector.
34909 (vect_get_known_peeling_cost): Use the scalar cost vector to
34910 account for the cost of the peeled iterations.
34911 (vect_estimate_min_profitable_iters): Likewise.
34912 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
34913 Likewise.
34914
34915 2015-04-04 Alan Modra <amodra@gmail.com>
34916
34917 PR target/65576
34918 PR target/65240
34919 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
34920 0.0 constant unless TARGET_VSX.
34921 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
34922 alternative.
34923
34924 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
34925
34926 PR ipa/65654
34927 * ipa-inline-transform.c (inline_call): Skip sanity check to work
34928 around the ICE
34929
34930 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
34931
34932 PR ipa/65655
34933 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
34934 speculative indirect edges to avoid ordering issue.
34935
34936 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
34937
34938 PR ipa/65076
34939 * ipa-inline.c (edge_badness): Add combined size to the denominator.
34940
34941 2015-04-03 Jakub Jelinek <jakub@redhat.com>
34942
34943 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
34944 TYPE_ARTIFICIAL on the .omp_data* types.
34945
34946 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34947
34948 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
34949 instrumentation thunks.
34950
34951 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34952
34953 * config/i386/i386.c (ix86_expand_call): Avoid nested
34954 PARALLEL in returned call value.
34955
34956 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34957
34958 * lto-cgraph.c (input_cgraph_1): Always link instrumented
34959 assembler name with original one.
34960
34961 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
34962
34963 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
34964
34965 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
34966
34967 Revert parts of r216820.
34968 * config/i386/i386.md (movqi_internal): Correct type calculation
34969 for alternatives 3 and 5.
34970
34971 2015-04-02 Jakub Jelinek <jakub@redhat.com>
34972
34973 PR preprocessor/61977
34974 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
34975 predefine __vector/__bool/__pixel macros nor context sensitive
34976 macros for CLK_ASM.
34977 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
34978
34979 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
34980
34981 * config/pa/pa.c (pa_output_move_double): Directly handle register
34982 indexed memory operand. Simplify handling of scaled register indexed
34983 memory operands.
34984
34985 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34986
34987 PR driver/65444
34988 * config/i386/linux-common.h (MPX_SPEC): New.
34989 (CHKP_SPEC): Add MPX_SPEC.
34990 * doc/invoke.texi (-fcheck-pointer-boudns): Document
34991 possible issues with '-z bndplt' support in linker.
34992
34993 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
34994
34995 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
34996 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
34997 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
34998 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
34999 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
35000
35001 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
35002
35003 * config/i386/sync.md (UNSPEC_MOVA): Remove.
35004 (atomic_load<mode>): Change operand 0 predicate to
35005 nonimmediate_operand and fix up the destination when needed.
35006 Use UNSPEC_LDA.
35007 (atomic_loaddi_fpu): Use UNSPEC_LDA.
35008 (atomic_store<mode>): Change operand 1 predicate to
35009 nonimmendate_operand and move the source to register when needed.
35010 Use UNSPEC_STA.
35011 (atomic_store<mode>_1): Use UNSPEC_STA.
35012 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
35013 Fix moves from memory operand. Use UNSPEC_STA.
35014
35015 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
35016
35017 * expmed.c (strict_volatile_bitfield_p): Check that the access will
35018 not cross a MODESIZE boundary.
35019 (store_bit_field, extract_bit_field): Added assertions in the
35020 strict volatile bitfields code path.
35021
35022 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
35023
35024 PR target/65624
35025 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
35026 Increase args array size by one to avoid buffer overflow.
35027
35028 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
35029
35030 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
35031 split_part.
35032 * ipa-inline.c (edge_badness): Add wrapper penalty.
35033 (sum_callers): Move up.
35034 (inline_small_functions): Set single_caller.
35035 * ipa-inline.h (inline_summary): Add single_caller.
35036 * ipa-split.c (split_function): Set split_part.
35037 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
35038 * cgraph.h (cgraph_node): Add split_part.
35039
35040 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
35041
35042 PR target/58945
35043 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
35044 Do not split operands 0 and operands 2 to halfmode.
35045 (atomic_compare_and_swap<mode>): Update for
35046 atomic_compare_and_swap<dwi>_doubleword changes.
35047
35048 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
35049
35050 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
35051 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
35052 no caching is done.
35053
35054 2015-03-31 Martin Liska <mliska@suse.cz>
35055
35056 PR ipa/65557
35057 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
35058 has already filled up function summary.
35059 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
35060
35061 2015-03-31 Richard Biener <rguenther@suse.de>
35062
35063 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
35064 of types.
35065
35066 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
35067
35068 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
35069 nested functions.
35070 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
35071 (s390_asm_output_function_label): Adapt to new signature of
35072 s390_function_num_hotpatch_hw
35073 Optimise the code generating assembler output.
35074 Add comments to assembler file.
35075
35076 2015-03-31 Richard Biener <rguenther@suse.de>
35077
35078 PR middle-end/65626
35079 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
35080 of the noreturn call so it is last and cleanup_control_flow_bb
35081 can do the CFG part.
35082
35083 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
35084
35085 PR target/65531
35086 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
35087 same_comdat_group for external symbols.
35088 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
35089 infinite same_comdat_group traversal loop.
35090
35091 2015-03-31 Jakub Jelinek <jakub@redhat.com>
35092
35093 PR plugins/61176
35094 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
35095 automatically to $headers.
35096
35097 2015-03-30 Jakub Jelinek <jakub@redhat.com>
35098
35099 PR ipa/65610
35100 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
35101 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
35102 function.
35103 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
35104 Use it.
35105 * ipa-prop.c (param_type_may_change_p): Likewise.
35106 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
35107 (remove_unused_scope_block_p): Add in_ctor_dtor_block
35108 argument. Before inlining, preserve
35109 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
35110 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
35111 recursive calls.
35112 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
35113
35114 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
35115
35116 PR ipa/65076
35117 * ipa-inline.c (edge_badness): Base denominator on callee's
35118 grwoth squared.
35119
35120 2015-03-27 Martin Jambor <mjambor@suse.cz>
35121
35122 PR ipa/65478
35123 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
35124 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
35125 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
35126 node_calling_single_call.
35127 * ipa-cp.c (count_callers): New function.
35128 (set_single_call_flag): Likewise.
35129 (initialize_node_lattices): Count callers and set single_flag_call if
35130 necessary.
35131 (incorporate_penalties): New function.
35132 (good_cloning_opportunity_p): Use it, dump new flags.
35133 (propagate_constants_topo): Set node_within_scc flag if appropriate.
35134 * doc/invoke.texi (ipa-cp-recursion-penalty,
35135 ipa-cp-single-call-pentalty): Document.
35136
35137 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
35138
35139 PR ipa/65588
35140 * symtab.c (symtab_node::get_partitioning_class): Register vars
35141 are duplicated.
35142 * varpool.c (symbol_table::output_variables) Do not assemble unefined
35143 decls for non-symbols.
35144
35145 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
35146
35147 PR target/65248
35148 * output.h (default_binds_local_p_2): New.
35149 * varasm.c (default_binds_local_p_2): Renamed to ...
35150 (default_binds_local_p_3): This. Don't return true on protected
35151 data symbol if protected data may be external.
35152 (default_binds_local_p): Use default_binds_local_p_3.
35153 (default_binds_local_p_1): Likewise.
35154 (default_binds_local_p_2): New.
35155 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
35156 default_binds_local_p_2 if TARGET_MACHO is undefined.
35157
35158 2015-03-27 Jakub Jelinek <jakub@redhat.com>
35159
35160 PR target/65593
35161 * config/i386/i386.c (legitimize_pic_address): If base
35162 is SYMBOL_REF or LABEL_REF using %rip addressing, force
35163 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
35164
35165 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
35166
35167 PR target/65531
35168 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
35169 comdat groups.
35170
35171 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
35172
35173 PR ipa/65600
35174 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
35175 of optimized out indirect call.
35176 (redirect_to_unreachable): Always build symbol table node for
35177 BUILT_IN_UNREACHABLE
35178
35179 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
35180
35181 PR target/65407
35182 * ira-costs.c (record_reg_classes): Process all constraint string
35183 containing 0-9.
35184
35185 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
35186
35187 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
35188 memory_operand.
35189
35190 PR target/65052
35191 * config/c6x/constraints.md (S3): New constraint.
35192 * config/c6x/c6x.md (real_jump): Use it.
35193
35194 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35195
35196 PR middle-end/65595
35197 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
35198 do redirection if the call is not optimized out.
35199
35200 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
35201
35202 PR target/65495
35203 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
35204 (fchkp-check-incomplete-type): Add LTO.
35205 (fchkp-zero-input-bounds-for-main): Likewise.
35206 (fchkp-first-field-has-own-bounds): Likewise.
35207 (fchkp-narrow-bounds): Likewise.
35208 (fchkp-narrow-to-innermost-array): Likewise.
35209 (fchkp-use-static-bounds): Likewise.
35210 (fchkp-use-static-const-bounds): Likewise.
35211 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
35212
35213 2015-03-27 Marek Polacek <polacek@redhat.com>
35214
35215 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
35216
35217 2015-03-27 Marek Polacek <polacek@redhat.com>
35218
35219 PR sanitizer/65583
35220 * ubsan.c (ubsan_create_edge): New function.
35221 (instrument_bool_enum_load): Call it.
35222 (instrument_nonnull_arg): Likewise.
35223 (instrument_nonnull_return): Likewise.
35224 (instrument_object_size): Likewise.
35225
35226 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35227
35228 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
35229 auto_vec.
35230
35231 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35232
35233 PR lto/65536
35234 * lto-streamer.h (class lto_location_cache): New.
35235 (struct data_in): Add location_cache.
35236 (lto_input_location): Update prototype.
35237 (stream_input_location_now): New.
35238 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
35239 pointer to location.
35240 (stream_input_location): Update.
35241 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
35242 (warn_odr): Apply location cache before warning.
35243 (lto_input_location): Update prototype.
35244 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
35245 Use stream_input_location_now.
35246 * lto-streamer-in.c (lto_location_cache::current_cache): New static
35247 variable.
35248 (lto_location_cache::cmp_loc): New function.
35249 (lto_location_cache::apply_location_cache): New function.
35250 (lto_location_cache::accept_location_cache): New function.
35251 (lto_location_cache::revert_location_cache): New function.
35252 (lto_location_cache::input_location): New function.
35253 (lto_input_location): Do location caching.
35254 (stream_input_location_now): New function.
35255 (input_eh_region, input_struct_function_base): Use
35256 stream_input_location_now.
35257 (lto_data_in_create): use new.
35258 (lto_data_in_delete): Use delete.
35259 * tree-streamer-in.c (unpack_ts_block_value_fields,
35260 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
35261 lto_input_ts_exp_tree_pointers): Update for cached location api.
35262
35263 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35264
35265 PR ipa/65076
35266 * passes.def: Add pass_nothrow.
35267 * ipa-pure-const.c: (pass_data_nothrow): New.
35268 (pass_nothrow): New.
35269 (pass_nothrow::execute): New.
35270 (make_pass_nothrow): New.
35271 * tree-pass.h (make_pass_nothrow): Declare.
35272
35273 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35274
35275 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
35276 edge to change by speculation resolution or redirection.
35277 (edge_set_predicate): Likewise.
35278 (inline_summary_t::duplicate): Likewise.
35279 (remap_edge_summaries): Likewise.
35280
35281 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35282
35283 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
35284 New macros.
35285 (can_inline_edge_p): Relax option matching for always inline functions.
35286
35287 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
35288
35289 PR target/65561
35290 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
35291 Check operand 4 and operand 0 for equality.
35292 (avx512f_vextract<shuffletype>32x4_1_maskm):
35293 Check operand 6 and operand 0 for equality.
35294 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
35295 for equality.
35296 (vec_extract_hi_<mode>_maskm): Ditto.
35297
35298 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35299
35300 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
35301 dead calls back to live.
35302 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
35303 cross check to ...
35304 (cgraph_node::verify_node): ... here; verify only callee edges,
35305 not caller.
35306 * cif-code.def (CILK_SPAWN): New code.
35307
35308 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35309
35310 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
35311 (edge_set_predicate): Use it to mark unreachable edges.
35312 (inline_summary_t::duplicate): Remove unnecesary code.
35313 (remap_edge_summaries): Likewise.
35314 (dump_inline_summary): Report contains_cilk_spawn.
35315 (compute_inline_parameters): Compute contains_cilk_spawn.
35316 (inline_read_section, inline_write_summary): Stream
35317 contains_cilk_spawn.
35318 * ipa-inline.c (can_inline_edge_p): Do not touch
35319 DECL_STRUCT_FUNCTION that may not be available;
35320 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
35321 remove check for callee_fun->can_throw_non_call_exceptions and
35322 replace it by optimization attribute check; check for flag_exceptions.
35323 * ipa-inline-transform.c (inline_call): Maintain
35324 DECL_FUNCTION_PERSONALITY
35325 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
35326
35327 2015-03-26 Jakub Jelinek <jakub@redhat.com>
35328
35329 PR tree-optimization/65551
35330 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
35331 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
35332
35333 2015-03-26 Richard Biener <rguenther@suse.de>
35334
35335 PR middle-end/65555
35336 * tree-cfg.c (verify_gimple_call): Do not require a call to
35337 have no LHS if it wasn't recognized as control altering yet.
35338
35339 2015-03-26 Jakub Jelinek <jakub@redhat.com>
35340
35341 PR tree-optimization/64715
35342 * passes.def: Add another instance of pass_object_sizes before ccp1.
35343 * tree-object-size.c (pass_object_sizes::execute): In
35344 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
35345 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
35346 __bos result and the computed constant. Remove redundant
35347 checks, obsoleted by gimple_call_builtin_p test.
35348
35349 * var-tracking.c (variable_tracking_main_1): Don't track
35350 variables for targetm.no_register_allocation targets.
35351
35352 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
35353
35354 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
35355 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
35356
35357 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
35358
35359 PR target/65569
35360 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
35361 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
35362 0.0 is correctly setup.
35363 (extenddftf2_internal): Likewise.
35364
35365 2015-03-25 Sebastian Pop <s.pop@samsung.com>
35366
35367 PR tree-optimization/65177
35368 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
35369 (bb_in_bbs): New.
35370 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
35371 edges not adjacent on the path to the original code.
35372
35373 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
35374
35375 PR bootstrap/65537
35376 * doc/install.texi (Building a native compiler): Document new
35377 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
35378 configuration assumes that the host supports the linker plugin.
35379
35380 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
35381
35382 PR target/65508
35383 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
35384 chain for generated call.
35385
35386 2015-03-25 Richard Biener <rguenther@suse.de>
35387
35388 * passes.c (pass_manager::execute_early_local_passes): Guard
35389 execution of pass_chkp_instrumentation_passes with
35390 flag_check_pointer_bounds.
35391 (pass_chkp_instrumentation_passes::gate): Likewise.
35392
35393 2015-03-25 Martin Liska <mliska@suse.cz>
35394
35395 PR tree-optimization/65538
35396 * symbol-summary.h (function_summary::~function_summary):
35397 Relese memory for allocated summaries.
35398 (function_summary::release): New function.
35399
35400 2015-03-25 Jakub Jelinek <jakub@redhat.com>
35401
35402 PR lto/65515
35403 * lto-streamer-out.c (DFS::worklist): New struct.
35404 (DFS::worklist_vec): New data member.
35405 (DFS::next_dfs_num): Remove.
35406 (DFS::DFS): Rewritten using worklist instead of recursion,
35407 using most of code from DFS::DFS_write_tree.
35408 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
35409 pass it to DFS_write_tree calls.
35410 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
35411 quick initial checks push it into worklist_vec and return.
35412
35413 2015-03-25 Richard Biener <rguenther@suse.de>
35414
35415 PR middle-end/65519
35416 * genmatch.c (expr::gen_transform): Re-write to avoid
35417 using gimple_build.
35418
35419 2015-03-25 Bin Cheng <bin.cheng@arm.com>
35420
35421 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
35422
35423 2015-03-25 Bin Cheng <bin.cheng@arm.com>
35424
35425 * config/arm/arm.opt (print_tune_info): New option.
35426 * config/arm/arm.c (arm_print_tune_info): New function.
35427 (arm_file_start): Call arm_print_tune_info.
35428 * config/arm/arm-protos.h (struct tune_params): Add comment.
35429 * doc/invoke.texi (@item -mprint-tune-info): New item.
35430 (-mtune): mention it in ARM Option Summary.
35431
35432 2015-03-25 DJ Delorie <dj@redhat.com>
35433
35434 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
35435 correct clause.
35436
35437 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
35438 Martin Liska <mliska@suse.cz>
35439
35440 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
35441 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
35442 (sem_item::add_type): New function.
35443 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
35444 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
35445 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
35446 (sem_function::equals_wpa): Fix typo.
35447 * ipa-icf.h (sem_item::add_type): New function.
35448 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
35449 order.
35450
35451 2015-03-24 Jakub Jelinek <jakub@redhat.com>
35452
35453 PR tree-optimization/65533
35454 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
35455 with swapped operands, call vect_free_slp_tree on
35456 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
35457 vector.
35458
35459 2015-03-24 Richard Biener <rguenther@suse.de>
35460
35461 PR middle-end/65517
35462 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
35463 for fixup if necessary.
35464
35465 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
35466
35467 * doc/extend.texi (Function Attributes): Add @cindex entries
35468 for all attributes and regularize their format. Delete text
35469 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
35470 information about "eightbit_data", "tiny_data", and "model"
35471 variable attributes to the Variable Attributes section. Fix
35472 some obvious typos and copy-editing issues.
35473 (Variable Attributes, Type Attributes): Likewise add/fix
35474 @cindex entries for all attributes.
35475
35476 2015-03-23 Jakub Jelinek <jakub@redhat.com>
35477
35478 PR target/65523
35479 * tree-chkp.c (chkp_build_returned_bound): Ignore
35480 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
35481
35482 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
35483
35484 PR target/65505
35485 * config/sh/predicates.md (simple_mem_operand,
35486 displacement_mem_operand): Add test for reg.
35487 (short_displacement_mem_operand): Test for displacement_mem_operand
35488 before invoking sh_disp_addr_displacement.
35489 * config/sh/constraints.md (Sdd, Sra): Simplify.
35490 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
35491 Remove redundant displacement_mem_operand tests.
35492
35493 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
35494
35495 PR target/65296
35496 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
35497 the same -mmcu=MCU more than once.
35498
35499 2015-03-23 Jakub Jelinek <jakub@redhat.com>
35500
35501 PR bootstrap/65522
35502 * ipa-devirt.c: Remove duplicate demangle.h include.
35503
35504 PR target/65504
35505 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
35506 on the pseudo.
35507 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
35508 REG_POINTER on *destptr after adjusting it for prologue size.
35509
35510 PR ipa/65521
35511 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
35512 ultimate_alias_target ()->order ints instead of
35513 ultimate_alias_target () pointers.
35514
35515 2015-03-23 Richard Biener <rguenther@suse.de>
35516
35517 PR tree-optimization/65518
35518 * tree-vect-stmts.c (vectorizable_load): Reject single-element
35519 interleaving cases we generate absymal code for.
35520
35521 2015-03-23 Richard Biener <rguenther@suse.de>
35522
35523 PR tree-optimization/65494
35524 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
35525 matches here.
35526 (vect_analyze_slp_instance): But do that here, always and once.
35527
35528 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35529
35530 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
35531 adding T or multiplying by T+1 and subracting T.
35532
35533 2015-03-22 Jeff Law <law@redhat.com>
35534
35535 PR rtl-optimization/64317
35536 * Makefile.in (OBJS): Add gcse-common.c
35537 * gcse.c: Include gcse-common.h
35538 (struct modify_pair_s): Move structure definition to gcse-common.h
35539 (compute_transp): Move function to gcse-common.c.
35540 (canon_list_insert): Similarly.
35541 (record_last_mem_set_info): Break out some code and put it into
35542 gcse-common.c. Call into the new common code.
35543 (compute_local_properties): Pass additional arguments to compute_transp.
35544 * postreload-gcse.c: Include gcse-common.h and df.h
35545 (modify_mem_list_set, blocks_with_calls): New variables.
35546 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
35547 (get_bb_avail_insn): Pass in the expression index too.
35548 (alloc_mem): Allocate memory for the new bitmaps and lists.
35549 (free_mem): Free memory for the new bitmaps and lists.
35550 (insert_expr_in_table): Record a bitmap index for each entry we
35551 add to the table.
35552 (record_last_mem_set_info): Call into common code in gcse-common.c.
35553 (get_bb_avail_insn): If no available insn was found in the requested
35554 BB. If BB has a single predecessor, see if the expression is
35555 transparent in BB and available in that single predecessor.
35556 (compute_expr_transp): New wrapper for compute_transp.
35557 (eliminate_partially_redundant_load): Pass expression's bitmap_index
35558 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
35559 (gcse_after_reload_main): If there are elements in the hash table,
35560 then compute transparency for all the elements in the hash table.
35561 * gcse-common.h: New file.
35562 * gcse-common.c: New file.
35563
35564 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
35565
35566 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
35567 as an adjective.
35568 (System Headers): Likewise.
35569 (Ifdef): Likewise.
35570 (Traditional macros): Likewise.
35571 (Invocation): Likewise.
35572 (Option Index): Likewise.
35573 * doc/cppopts.texi (-M): Likewise.
35574 (-finput-charset): Likewise.
35575 (--help): Likewise.
35576 * doc.invoke.texi (AVR Options): Likewise.
35577 (V850 Options): Likewise.
35578
35579 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
35580
35581 PR ipa/65475
35582 * ipa-devirt.c: Include demangle.h
35583 (odr_type_d): Add field rtti_broken.
35584 (odr_subtypes_equivalent_p): Do not require name to match.
35585 (compare_virtual_tables): Fix typo; if type already has ODR violation,
35586 bypass the tests; be ready for function referneces in vtables that are
35587 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
35588 (warn_odr): Give up for nameless types.
35589 (warn_types_mismatch): Report mismatch in mangled names;
35590 report mismatch in anonymous namespaces; look into component types to
35591 give useful error; report when mismatch is dragged in from other ODR
35592 type.
35593 (odr_types_equivalent_p): Match types for being polymorphic; avoid
35594 duplicated diagnostics.
35595 (add_type_duplicate): Reorder checks so more informative ones come
35596 first; fix typo; do not output "the extra base is defined here" when
35597 we did not warn.
35598 (BINFO_N_BASE_BINFOS): Relax sanity check.
35599
35600 2015-03-22 Martin Liska <mliska@suse.cz>
35601 Jakub Jelinek <jakub@redhat.com>
35602
35603 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
35604 masks that can potentially include a builtin.
35605 (ix86_add_new_builtins): Introduce fast filter for isa values
35606 that cannot trigger builtin inclusion.
35607
35608 2015-03-22 Martin Liska <mliska@suse.cz>
35609
35610 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
35611 (sem_item::update_hash_by_local_refs): Likewise.
35612 (sem_variable::get_hash): Empty line is fixed.
35613 (sem_item_optimizer::execute): Include adding of hash references.
35614 (sem_item_optimizer::update_hash_by_addr_refs): New function.
35615 (sem_item_optimizer::build_hash_based_classes): Use local hash.
35616 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
35617 (sem_item::update_hash_by_local_refs): Likewise.
35618
35619 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
35620
35621 PR ipa/65502
35622 * ipa-comdats.c (enqueue_references): Walk through thunks.
35623 (ipa_comdats): Likewise.
35624 (set_comdat_group_1): New function.
35625
35626 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
35627
35628 PR ipa/65475
35629 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
35630 non-polymorphic
35631
35632 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
35633 Gerald Pfeifer <gerald@pfeifer.com>
35634
35635 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
35636
35637 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
35638 Sandra Loosemore <sandra@codesourcery.com>
35639
35640 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
35641 function parameter declaration.
35642 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
35643 Update arguments to nios2_adjust_call_address().
35644 (sibcall_internal): Rename from *sibcall.
35645 (sibcall_value_internal): Rename from *sibcall_value.
35646 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
35647 (nios2_large_got_address): Add target temp reg parameter.
35648 (nios2_got_address): Adjust call to nios2_large_got_address, add
35649 force_reg around it.
35650 (nios2_load_pic_address): Add target temp reg parameter, replace call
35651 to nios2_got_address with corresponding code.
35652 (nios2_legitimize_constant_address): Update call to
35653 nios2_load_pic_address.
35654 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
35655 to use temp reg for PIC loading purposes.
35656 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
35657 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
35658 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
35659
35660 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
35661
35662 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
35663 usage of "the @option{...}".
35664 (-Wopenmp-simd): Likewise.
35665 (-fsanitize-recover): Likewise.
35666 (-fsanitize-undefined-trap-on-error): Likewise.
35667 (-flto): Likewise.
35668 (tracer-dynamic-coverage-feedback): Likewise.
35669 (reorder-block-duplicate-feedback): Likewise.
35670 (loop-unroll-jam-size): Likewise.
35671 (-B): Likewise.
35672 (-I-): Likewise.
35673 (-mabs=legacy): Likewise.
35674 (-mupper-regs-df): Likewise.
35675 (-mupper-regs-sf): Likewise.
35676 (-mpointers-to-nested-functions): Likewise.
35677
35678 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
35679
35680 * doc/extend.texi (Cilk Plus Builtins): Add markup.
35681
35682 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
35683
35684 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
35685 additional index entries and cross-references.
35686 (-fchkp-check-incomplete-type): Likewise.
35687 (-fchkp-first-field-has-own-bounds): Likewise.
35688 (-fchkp-narrow-to-innermost-array): Likewise.
35689 (-fchkp-use-fast-string-functions): Likewise.
35690 (-fchkp-use-nochk-string-functions): Likewise.
35691 (-fchkp-use-static-const-bounds): Likewise.
35692 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
35693 (-fchkp-instrument-marked-only): Likewise.
35694 (-fchkp-use-wrappers): Likewise.
35695 (-static-libmpx): Likewise.
35696 (-static-libmpxwrappers): Likewise.
35697 * doc/extend.texi (bnd_legacy): Likewise.
35698 (bnd_instrument): Likewise.
35699 (bnd_variable_size): Likewise.
35700 (Pointer Bounds Checker builtins): Likewise.
35701
35702 2015-03-21 Tom de Vries <tom@codesourcery.com>
35703
35704 PR tree-optimization/65458
35705 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
35706 * cgraph.h (cgraph_node): Add parallelized_function field.
35707 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
35708 (input_overwrite_node): Read parallelized_function field.
35709 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
35710 parallelized_function on cgraph_node for child_fn.
35711 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
35712 Remove include of gt-tree-parloops.h.
35713 (parallelized_functions): Remove static variable.
35714 (parallelized_function_p): Rewrite using parallelized_function field of
35715 cgraph_node.
35716 (create_loop_fn): Remove adding to parallelized_functions.
35717 * Makefile.in (GTFILES): Remove tree-parloops.c
35718
35719 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
35720
35721 PR rtl-optimization/64366
35722 * lra.c (lra_update_insn_regno_info): Consider regs in
35723 CALL_INSN_FUNCTION_USAGE memory.
35724
35725 2015-03-20 Richard Biener <rguenther@suse.de>
35726
35727 PR middle-end/64715
35728 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
35729 for type comparison and gcc_checking_assert.
35730 (chrec_fold_plus_poly_poly): Likewise.
35731 (chrec_fold_multiply_poly_poly): Likewise.
35732 (chrec_convert_1): Likewise.
35733 * gimplify.c (gimplify_expr): Remove premature folding of
35734 &X + CST to &MEM[&X, CST].
35735
35736 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
35737
35738 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
35739 already is final.
35740 (ipa_inline): Recompute inline_failed codes.
35741 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
35742 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
35743 CIF_FINAL_ERROR.
35744
35745 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
35746
35747 PR rtl-optimization/60851
35748 * recog.c (constrain_operands): Accept a pseudo register before reload
35749 for LRA enabled targets.
35750
35751 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
35752
35753 PR target/65240
35754 * config/rs6000/predicates.md (easy_fp_constant): Remove special
35755 -ffast-math handling that kept non-0 constants live in the RTL
35756 until reload. Remove logic testing the number of instructions it
35757 took to create a constant in a GPR that was never used, due to a
35758 test for soft-float earlier.
35759 (memory_fp_constant): Delete, no longer used.
35760
35761 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
35762 alternatives for loading non-0 constants into GPRs for hard
35763 floating point that is no longer needed due to changes in
35764 easy_fp_constant. Add support for loading 0.0 into GPRs.
35765 (mov<mode>_hardfloat32): Likewise.
35766 (mov<mode>_hardfloat64): Likewise.
35767 (mov<mode>_64bit_dm): Likewise.
35768 (movtd_64bit_nodm): Likewise.
35769 (pre-reload move FP constant define_split): Delete define_split,
35770 since it is no longer used.
35771 (extenddftf2_internal): Remove GHF constraints that are not valid
35772 for extenddftf2.
35773
35774 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
35775
35776 PR rtl-optimization/63491
35777 * lra-constraints.c (check_and_process_move): Use src instead of
35778 sreg. Remove some dead code.
35779
35780 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
35781
35782 PR ipa/65380
35783 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
35784 (sem_variable::merge): Likewise.
35785
35786 2015-03-19 Martin Liska <mliska@suse.cz>
35787
35788 PR ipa/65465
35789 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
35790 all fields of cgraph_thunk_info.
35791
35792 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
35793
35794 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
35795 clone instrumented thunks.
35796
35797 2015-03-19 Richard Biener <rguenther@suse.de>
35798
35799 Revert
35800 2015-03-10 Richard Biener <rguenther@suse.de>
35801
35802 PR middle-end/63155
35803 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
35804 * tree-ssa-coalesce.c: Include timevar.h.
35805 (attempt_coalesce): Handle graph being NULL.
35806 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
35807 Split out abnormal coalescing to ...
35808 (perform_abnormal_coalescing): ... this function.
35809 (coalesce_ssa_name): Perform abnormal coalescing without computing
35810 live/conflict.
35811 (verify_ssa_coalescing_worker): New function.
35812 (verify_ssa_coalescing): Likewise.
35813
35814 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
35815 Jakub Jelinek <jakub@redhat.com>
35816
35817 PR sanitizer/65400
35818 * tsan.c (instrument_gimple): Clear tail call flag on
35819 calls.
35820
35821 2015-03-19 Jakub Jelinek <jakub@redhat.com>
35822
35823 PR sanitizer/65400
35824 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
35825 call in the return bb.
35826 (find_split_points): Add RETURN_BB argument, don't call
35827 find_return_bb.
35828 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
35829 if true append TSAN_FUNC_EXIT internal call after the call to
35830 the split off function.
35831 (execute_split_functions): Call find_return_bb here.
35832 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
35833 Adjust find_split_points and split_function calls.
35834
35835 2015-03-18 DJ Delorie <dj@redhat.com>
35836
35837 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
35838 (iorqi3_virt): Likewise.
35839
35840 2015-03-18 Tom de Vries <tom@codesourcery.com>
35841
35842 * tree-parloops.c (parallelize_loops): Make static.
35843 * tree-parloops.h (parallelize_loops): Remove extern declaration.
35844
35845 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
35846
35847 PR middle-end/64491
35848 Revert:
35849 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
35850
35851 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
35852 condition would be removed due to undefined behaviour.
35853
35854 2015-03-18 Martin Liska <mliska@suse.cz>
35855
35856 PR ipa/65432
35857 * cgraph.c (cgraph_node::get_create): Remove unnecessary
35858 xstrdup_for_dump wrapper.
35859 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
35860 sem_item::name.
35861 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
35862 with xstrdup_for_dump.
35863 (sem_variable::equals): Likewise.
35864 (sem_item_optimizer::read_section): Use symtab_node::name instead of
35865 sem_item::name.
35866 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
35867 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
35868 symtab_node::asm_name with xstrdup_for_dump.
35869 (congruence_class::dump): Use symtab_node::name instead of
35870 sem_item::name.
35871 * ipa-icf.h (symtab_node::name): Remove.
35872 (symtab_node::asm_name): Likewise.
35873
35874 2015-03-18 Jakub Jelinek <jakub@redhat.com>
35875
35876 PR tree-optimization/65450
35877 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
35878 function.
35879 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
35880 it instead of duplicate_ssa_name_ptr_info.
35881
35882 PR target/65222
35883 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
35884
35885 2015-03-18 Richard Biener <rguenther@suse.de>
35886
35887 * tree-data-ref.h (struct access_matrix): Remove.
35888 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
35889 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
35890 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
35891 (am_vector_index_for_loop): Likewise.
35892 (struct data_reference): Remove access_matrix member.
35893 (DR_ACCESS_MATRIX): Remove.
35894 (lambda_vector_new): Add comment.
35895 (lambda_matrix_new): Use XOBNEWVEC.
35896
35897 2015-03-18 Richard Biener <rguenther@suse.de>
35898
35899 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
35900 (pass_ch::execute): Cleanup the CFG only if we did sth.
35901 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
35902
35903 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35904
35905 * expmed.c (synth_mult): Use std::swap instead of manually
35906 swapping algorithms.
35907
35908 2015-03-18 Jakub Jelinek <jakub@redhat.com>
35909
35910 PR target/65078
35911 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
35912
35913 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
35914
35915 PR target/65296
35916 * config/avr/avr.opt (-nodevicelib): New option.
35917 * doc/invoke.texi (AVR Options): Document it.
35918 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
35919 libgcc.a, libc.a, libm.a.
35920 * config/avr/specs.h: Same.
35921 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
35922 which don't (directly) depend on the device. Print more help.
35923 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
35924 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
35925 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
35926 case of an error.
35927 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
35928 for specs file name.
35929 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
35930 * config/avr/avr-mcus.def: Adjust initializers and comments.
35931
35932 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
35933
35934 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
35935 DECL_ONE_ONLY to check if decl is one only.
35936 * ipa-split.c (consider_split): Limit splitt of one only functions.
35937
35938 2015-03-16 Jakub Jelinek <jakub@redhat.com>
35939
35940 PR tree-optimization/65427
35941 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
35942 functions.
35943 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
35944
35945 2015-03-16 Marek Polacek <polacek@redhat.com>
35946
35947 * cgraph.h (add_new_static_var): Remove declaration.
35948 * varpool.c (add_new_static_var): Remove function.
35949
35950 2015-03-16 Jakub Jelinek <jakub@redhat.com>
35951
35952 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
35953 instead of vec<tree> * with vec_alloc and release for args.
35954 Adjust all users.
35955
35956 PR middle-end/65431
35957 * omp-low.c (delete_omp_context): Only splay_tree_delete
35958 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
35959 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
35960
35961 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
35962
35963 PR sanitizer/64820
35964 * cfgexpand.c (align_base): New function.
35965 (alloc_stack_frame_space): Call it.
35966 (expand_stack_vars): Align prev_frame to be sure
35967 data->asan_vec elements aligned properly.
35968
35969 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
35970
35971 PR middle-end/65409
35972 * expr.c (store_field): Do not do a direct block copy if the source is
35973 a PARALLEL with BLKmode.
35974
35975 2015-03-16 Tom de Vries <tom@codesourcery.com>
35976
35977 PR middle-end/65414
35978 Revert:
35979 2015-03-12 Tom de Vries <tom@codesourcery.com>
35980
35981 PR rtl-optimization/64895
35982 * lra-lives.c (check_pseudos_live_through_calls): Use
35983 actual_call_used_reg_set instead of call_used_reg_set, if available.
35984
35985 2015-03-16 Alan Modra <amodra@gmail.com>
35986
35987 PR target/63150
35988 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
35989 Modify Z->r bswapdi splitter to use dest in place of scratch.
35990 In r->Z and Z->r bswapdi splitter rename word_high, word_low
35991 to word1, word2 and rearrange logic to suit.
35992 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
35993 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
35994 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
35995 Add one '?' on r->r. Modify Z->r splitter to avoid need for
35996 early clobber.
35997
35998 2015-03-14 Jakub Jelinek <jakub@redhat.com>
35999
36000 PR tree-optimization/65369
36001 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
36002 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
36003 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
36004
36005 PR tree-optimization/65418
36006 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
36007 are casts in the first PLUS_EXPR operand, ensure tbias and
36008 *totallowp are in the inner type.
36009
36010 PR rtl-optimization/65401
36011 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
36012 argument. If true, adjust_address_nv of x with big-endian
36013 correction for the mode widening to GET_MODE (y).
36014 (make_field_assignment): Don't do MEM mode widening here.
36015 Use MEM_P instead of GET_CODE == MEM.
36016
36017 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
36018
36019 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
36020 the external decls.
36021
36022 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36023
36024 PR target/64600
36025 * config/arm/arm.c (arm_gen_constant, AND case): Use
36026 ARM_SIGN_EXTEND when constructing AND mask.
36027
36028 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
36029
36030 * graph.c (print_graph_cfg): Make function names visible and append
36031 parenthesis to it. Also make groups of basic blocks belonging to the
36032 same function visible.
36033
36034 2015-03-12 Richard Biener <rguenther@suse.de>
36035
36036 PR middle-end/44563
36037 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
36038 to avoid quadratic behavior with inline expansion splitting blocks.
36039 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
36040 with the successor if the predecessor will be merged with it.
36041 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
36042 entry block with its successor.
36043
36044 2015-03-13 Richard Biener <rguenther@suse.de>
36045
36046 PR middle-end/44563
36047 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
36048 (cleanup_tree_cfg_1): Do not call it.
36049 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
36050 (fixup_noreturn_call): Mark the stmt as control altering.
36051 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
36052 here.
36053 (pass_data_fixup_cfg): Produce a dump file.
36054 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
36055 (need_noreturn_fixup): New global.
36056 (pass_dominator::execute): Fixup queued noreturn calls.
36057 (optimize_stmt): Queue calls that became noreturn for fixup.
36058 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
36059 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
36060 (el_to_fixup): New global.
36061 (eliminate_dom_walker::before_dom_childre): Queue calls that
36062 became noreturn for fixup.
36063 (eliminate): Fixup queued noreturn calls.
36064 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
36065 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
36066 (substitute_and_fold_dom_walker::before_dom_children): Queue
36067 alls that became noreturn for fixup.
36068 (substitute_and_fold): Fixup queued noreturn calls.
36069
36070 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
36071
36072 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
36073 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
36074 are building; for methods check ODR type of class they belong to if
36075 they may lead to a polymorphic call.
36076 (sem_function::compare_polymorphic_p): Be bit smarter about testing
36077 when function may lead to a polymorphic call.
36078 (sem_function::compare_type_list): Remove.
36079 (sem_variable::equals): Update use of compatible_types_p.
36080 (sem_variable::parse_tree_refs): Remove.
36081 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
36082 cdtor.
36083 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
36084 matching here.
36085 (func_checker::compatible_polymorphic_types_p): Break out from ...
36086 (unc_checker::compatible_types_p): ... here.
36087 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
36088 Declare.
36089 (unc_checker::compatible_types_p): Update.
36090 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
36091 Remove.
36092
36093 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36094
36095 PR rtl-optimization/65235
36096 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
36097 When first element of vec_concat is const_int, calculate its size
36098 using second element.
36099
36100 2015-03-12 Richard Biener <rguenther@suse.de>
36101
36102 PR middle-end/65270
36103 * fold-const.c (operand_equal_p): Fix ordering of resetting
36104 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
36105
36106 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
36107
36108 * config/s390/s390.c (s390_reorg): Move code to output nops after label
36109 to s390_reorg ().
36110 (s390_asm_output_function_label): Likewise.
36111 * config/s390/s390.c (s390_asm_output_function_label):
36112 Fix function label alignment with -mhtopatch.
36113 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
36114 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
36115 ("nop_2_byte"): New define_insn.
36116 ("nop_4_byte"): Likewise.
36117 ("nop_6_byte"): Likewise.
36118 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
36119 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
36120
36121 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
36122
36123 PR target/65103
36124 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
36125 register.
36126
36127 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
36128
36129 PR target/65044
36130 * toplev.c (process_options): Restrict Pointer Bounds Checker
36131 usage with Address Sanitizer.
36132
36133 2015-03-12 Richard Biener <rguenther@suse.de>
36134
36135 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
36136 to split on.
36137 * omp-low.c (expand_omp_taskreg): Split block before removing
36138 the stmt.
36139 (expand_omp_target): Likewise.
36140 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
36141 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
36142 stmt to split_block.
36143
36144 2015-03-12 Tom de Vries <tom@codesourcery.com>
36145
36146 PR rtl-optimization/64895
36147 * lra-lives.c (check_pseudos_live_through_calls): Use
36148 actual_call_used_reg_set instead of call_used_reg_set, if available.
36149
36150 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
36151
36152 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
36153 (cgraph_node::remove): Likewise.
36154 (cgraph_node::get_untransformed_body): Likewise.
36155 * varpool.c (varpool_node::remove): Likewise.
36156 (varpool_node::get_constructor): Add sanity check.
36157
36158 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
36159
36160 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
36161 old GCC versions.
36162 (-fabi-compat-version): Likewise.
36163 (-ffriend-injection): Likewise.
36164 (-Wdeclaration-after-statement): Likewise.
36165 (-fomit-frame-pointer): Likewise.
36166 (-ftree-coalesce-inlined-vars): Likewise.
36167 (-fvisibility=): Likewise.
36168 * doc/extend.texi (Typeof): Likewise.
36169 (Zero Length): Likewise.
36170 (Escaped Newlines): Likewise.
36171 (Compound Literals): Likewise.
36172 (Function Attributes): Likewise.
36173 (Label Attributes): Likewise.
36174 (Type Attributes): Likewise.
36175 (Function Names): Likewise.
36176 (Other Builtins): Likewise.
36177 (Function Specific Option Pragmas): Likewise.
36178 (C++ Interface): Likewise.
36179
36180 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
36181
36182 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
36183
36184 2015-03-11 Marek Polacek <polacek@redhat.com>
36185
36186 PR tree-optimization/65388
36187 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
36188
36189 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
36190
36191 PR target/65296
36192 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
36193 * configure: Regenerate.
36194 * config.in: Regenerate.
36195 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
36196 [-mn-flash]: Document it.
36197 [__AVR_ARCH__]: Document avrtiny.
36198
36199 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
36200 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
36201 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
36202
36203 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
36204
36205 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
36206
36207 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
36208
36209 PR target/65242
36210 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
36211 allow reloads of PLUS in floating point/VSX registers.
36212
36213 2015-03-11 Junmo Park <junmoz.park@samsung.com>
36214
36215 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
36216 crypto_sha256_fast.
36217 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
36218
36219 2015-03-11 Richard Biener <rguenther@suse.de>
36220
36221 PR tree-optimization/65310
36222 * tree-sra.c (build_ref_for_offset): Also preserve larger
36223 alignment.
36224
36225 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
36226
36227 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
36228
36229 2015-03-10 Jakub Jelinek <jakub@redhat.com>
36230
36231 PR target/65368
36232 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
36233 new define_expand.
36234 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
36235
36236 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
36237
36238 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
36239 (sem_function::equals_wpa): ... here.
36240
36241 2015-03-10 Marek Polacek <polacek@redhat.com>
36242 Jakub Jelinek <jakub@redhat.com>
36243
36244 PR sanitizer/65367
36245 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
36246 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
36247 separately.
36248
36249 2015-03-10 Jakub Jelinek <jakub@redhat.com>
36250
36251 PR target/65286
36252 * config/rs6000/t-linux: For powerpc64* target set
36253 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
36254
36255 2015-03-10 Richard Biener <rguenther@suse.de>
36256
36257 PR middle-end/44563
36258 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
36259 for redirect_all_calls.
36260
36261 2015-03-10 Marek Polacek <polacek@redhat.com>
36262
36263 * gdbinit.in (pcfun): Define and document.
36264
36265 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
36266
36267 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
36268 of libgomp-plugin.h.
36269 (find_target_compiler): Support a case when the path to gcc is
36270 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
36271 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
36272 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
36273 libgomp-plugin.h.
36274 (main): Use GCC_INSTALL_NAME as target_driver_name.
36275 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
36276 define.
36277 (mkoffload.o): Remove obsolete include path and defines.
36278 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
36279
36280 2015-03-10 Richard Biener <rguenther@suse.de>
36281
36282 PR middle-end/63155
36283 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
36284 * tree-ssa-coalesce.c: Include timevar.h.
36285 (attempt_coalesce): Handle graph being NULL.
36286 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
36287 Split out abnormal coalescing to ...
36288 (perform_abnormal_coalescing): ... this function.
36289 (coalesce_ssa_name): Perform abnormal coalescing without computing
36290 live/conflict.
36291 (verify_ssa_coalescing_worker): New function.
36292 (verify_ssa_coalescing): Likewise.
36293
36294 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
36295
36296 PR target/65296
36297 * config.gcc (extra_options) [avr]: Remove.
36298 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
36299 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
36300 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
36301
36302 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
36303 (-mmcu=): Add Var and MissingArgError properties.
36304 (-march=): Remove.
36305 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
36306 * config/avr/t-multilib: Regenerate.
36307 * config/avr/specs.h: New file.
36308 * config/avr/driver-avr.c: New file.
36309 * config/avr/genopt.sh: Remove file.
36310 * config/avr/avr-tables.opt: Remove file.
36311 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
36312 * config/avr/avr-c.c: Same.
36313 * avr-arch.h: Same.
36314 (avr_current_device): Remove proto.
36315 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
36316 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
36317 (EXTRA_SPEC_FUNCTIONS): Define.
36318 (avr_devicespecs_file): New specs function proto.
36319 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
36320 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
36321 (avr_current_device): Remove definition and usage.
36322 (avr_set_core_architecture): New static function.
36323 (avr_option_override): Use it.
36324 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
36325 (mcu_name): New static array.
36326 (comparator, avr_archs_str, avr_mcus_str): New static functions.
36327 (avr_inform_devices, avr_inform_core_architectures): New functions.
36328 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
36329 (avrlibc.h) [WITH_AVRLIBC]: Include.
36330 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
36331 (print_mcu): Rewrite from scratch.
36332 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
36333 Forward to avr-specific specs defined in device-specs file.
36334 * config/avr/t-avr (driver-avr.o): New rule.
36335 (avr-devices.o): Depend on avr-arch.h.
36336 (avr-mcus): No more depend on avr-tables.opt.
36337 (avr-tables.opt): Remove rule.
36338 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
36339
36340 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
36341
36342 * c-family/c.opt (fchkp-use-wrappers): New.
36343 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
36344 (chkp_wrap_function): New.
36345 (chkp_build_instrumented_fndecl): Support wrapped
36346 functions.
36347 * doc/invoke.texi (-fcheck-pointer-bounds): New.
36348 (-fchkp-check-incomplete-type): New.
36349 (-fchkp-first-field-has-own-bounds): New.
36350 (-fchkp-narrow-bounds): New.
36351 (-fchkp-narrow-to-innermost-array): New.
36352 (-fchkp-optimize): New.
36353 (-fchkp-use-fast-string-functions): New.
36354 (-fchkp-use-nochk-string-functions): New.
36355 (-fchkp-use-static-bounds): New.
36356 (-fchkp-use-static-const-bounds): New.
36357 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
36358 (-fchkp-check-read): New.
36359 (-fchkp-check-write): New.
36360 (-fchkp-store-bounds): New.
36361 (-fchkp-instrument-calls): New.
36362 (-fchkp-instrument-marked-only): New.
36363 (-fchkp-use-wrappers): New.
36364 (-static-libmpx): New.
36365 (-static-libmpxwrappers): New.
36366
36367 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
36368
36369 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
36370 (CHKP_SPEC): Add wrappers library.
36371 * c-family/c.opt (static-libmpxwrappers): New.
36372
36373 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
36374
36375 * config/i386/linux-common.h (LIBMPX_LIBS): New.
36376 (LIBMPX_SPEC): New.
36377 (CHKP_SPEC): New.
36378 * gcc.c (CHKP_SPEC): New.
36379 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
36380 * c-family/c.opt (static-libmpx): New.
36381
36382 2015-03-10 Richard Biener <rguenther@suse.de>
36383
36384 PR middle-end/44563
36385 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
36386 for compare_type.
36387 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
36388 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
36389 (cgraph_add_edge_to_call_site_hash): Likewise.
36390 (cgraph_node::get_edge): Likewise.
36391 (cgraph_edge::set_call_stmt): Likewise.
36392 (cgraph_edge::remove_caller): Likewise.
36393
36394 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
36395
36396 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
36397 (callee_saved_gpr_regs_size): ... this.
36398 (callee_saved_regs_first_regno): Rename to ...
36399 (callee_saved_first_gpr_regno): ... this.
36400 (callee_saved_regs_last_regno) Rename to ...
36401 (callee_saved_last_gpr_regno): ... this.
36402 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
36403 variables.
36404 (nds32_initial_elimination_offset): Likewise.
36405 (nds32_expand_prologue): Likewise.
36406 (nds32_expand_epilogue): Likewise.
36407 (nds32_expand_prologue_v3push): Likewise.
36408 (nds32_expand_epilogue_v3pop): Likewise.
36409 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
36410 Adjust renamed variables.
36411 (nds32_output_stack_pop): Likewise.
36412
36413 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
36414
36415 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
36416 code in comment.
36417
36418 2015-03-10 Jakub Jelinek <jakub@redhat.com>
36419
36420 PR rtl-optimization/65321
36421 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
36422 than shift mode.
36423 * var-tracking.c (use_narrower_mode): Likewise.
36424
36425 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
36426
36427 PR tree-optimization/65355
36428 * varasm.c (notice_global_symbol): Do not produce RTL.
36429 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
36430 anchor.
36431 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
36432 check for section anchors.
36433
36434 2015-03-10 Alan Modra <amodra@gmail.com>
36435
36436 PR target/65286
36437 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
36438 to be single-arch by default. Set cpu_is_64bit for powerpc64
36439 given --with-cpu=native.
36440 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
36441 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
36442 and powerpc64le.
36443 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
36444 rs6000_isa_flags rather than TARGET_64BIT.
36445
36446 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
36447 Kaz Kojima <kkojima@gcc.gnu.org>
36448
36449 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
36450
36451 2015-03-09 Jakub Jelinek <jakub@redhat.com>
36452
36453 PR lto/65361
36454 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
36455 on a TREE_BINFO, instead use BINFO_TYPE.
36456
36457 2015-03-09 Richard Biener <rguenther@suse.de>
36458
36459 PR middle-end/65270
36460 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
36461 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
36462 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
36463 of that. When comparing dereferences compare alignment.
36464 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
36465
36466 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
36467
36468 * ipa-inline-analysis.c (check_callers): Check
36469 node->can_remove_if_no_direct_calls_and_refs_p.
36470 (growth_likely_positive): Reorganize to call
36471 can_remove_if_no_direct_calls_p later.
36472 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
36473 will_be_removed_from_program_if_no_direct_calls_p): Add
36474 will_inline parameter.
36475 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
36476 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
36477 Handle inliner case correctly.
36478
36479 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
36480
36481 PR tree-optimization/63743
36482 * cfgexpand.c (reorder_operands): Also reorder if only second operand
36483 had its definition forwarded by TER.
36484
36485 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
36486
36487 PR lto/65316
36488 * ipa-utils.h (types_odr_comparable): Add strict argument.
36489 * ipa-devirt.c: Fix whitespace;
36490 (odr_hasher): Remove.
36491 (odr_name_hasher, odr_vtable_hasher): New hashers.
36492 (can_be_name_hashed_p): New predicate.
36493 (hash_type_name): remove.
36494 (hash_odr_name): New.
36495 (odr_name_hasher::hash): new.
36496 (can_be_vtable_hashed_p): New.
36497 (hash_odr_vtable): New.
36498 (odr_vtable_hasher::hash): New.
36499 (types_same_for_odr): Add strict parameter.
36500 (types_odr_comparable): Likewise.
36501 (odr_name_hasher::equal): New.
36502 (odr_vtable_hasher::equal): New.
36503 (odr_name_hasher::remove): New.
36504 (odr_hash_type): Change to hash_table<odr_name_hasher>.
36505 (odr_vtable_hash_type): New.
36506 (odr_vtable_hash): New.
36507 (odr_subtypes_equivalent_p): Do strict comparsion.
36508 (add_type_duplicate): Merge type names; cleanup; avoid type
36509 duplicates.
36510 (register_odr_type): Initialize vtable hash.
36511 (build_type_inheritance_graph): Likewise
36512 (get_odr_type): Reorg to use two hashes.
36513 (dump_possible_polymorphic_call_targets): Move sanity check after debug
36514 output.
36515 (ipa_devirt): Dump type_inheritance_graph.
36516 (types_same_for_odr): Add strict mode.
36517
36518 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
36519
36520 PR ipa/65334
36521 * cgraph.h (symtab_node): Add definition_alignment,
36522 can_increase_alignment_p and increase_alignment.
36523 * symtab.c (symtab_node::can_increase_alignment_p,
36524 increase_alignment_1, symtab_node::increase_alignment,
36525 symtab_node::definition_alignment): New.
36526 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
36527 can_increase_alignment_p.
36528 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
36529 * tree-vect-stmts.c (ensure_base_align): Likewise.
36530 * varasm.c (function_section_1): Use definition_alignment.
36531 (assemble_start_function): Likewise.
36532 (emit_local): likewise.
36533 (build_constant_desc): Likewsie.
36534 (output_constant_def_contents): Likewise.
36535 (place_block_symbol): Likewise.
36536 (output_object_block): Likewise.
36537
36538 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
36539
36540 PR ipa/65316
36541 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
36542 when outputting debug.
36543
36544 2015-03-07 Marek Polacek <polacek@redhat.com>
36545 Martin Uecker <uecker@eecs.berkeley.edu>
36546
36547 PR sanitizer/65280
36548 * doc/invoke.texi: Update description of -fsanitize=bounds.
36549
36550 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
36551
36552 * tree-ssa-phiopt.c (neg_replacement): Remove.
36553 (tree_ssa_phiopt_worker): Remove negate optimization.
36554
36555 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
36556
36557 PR ipa/65302
36558 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
36559
36560 2015-03-06 Richard Biener <rguenther@suse.de>
36561
36562 PR middle-end/64928
36563 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
36564 and liveout_obstack members.
36565 (calculate_live_on_exit): Remove.
36566 (calculate_live_ranges): Change declaration.
36567 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
36568 (new_tree_live_info): Adjust.
36569 (calculate_live_ranges): Delete livein when not wanted.
36570 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
36571 Deal with partly deleted live info.
36572 (loe_visit_block): Remove temporary bitmap by using
36573 bitmap_ior_and_compl_into.
36574 (live_worklist): Adjust accordingly.
36575 (calculate_live_on_exit): Make static.
36576 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
36577 we do not need livein.
36578
36579 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
36580
36581 * real.c (real_from_string): Fix typo in assertion.
36582
36583 2015-03-06 Alex Velenko <alex.velenko@arm.com>
36584
36585 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
36586 the patch.
36587
36588 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
36589
36590 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
36591
36592 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
36593
36594 PR target/64342
36595 * lra-assigns.c (find_hard_regno_for): Rename to
36596 find_hard_regno_for_1. Add a new parameter.
36597 (find_hard_regno_for): New function using find_hard_regno_for_1.
36598
36599 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
36600
36601 PR rtl-optimization/65067
36602 * expmed.c (store_bit_field, extract_bit_field): Reworked the
36603 strict volatile bitfield handling.
36604
36605 2015-03-05 Martin Liska <mliska@suse.cz>
36606
36607 PR ipa/65318
36608 * ipa-icf.c (sem_variable::equals): Compare variables types.
36609
36610 2015-03-05 Richard Henderson <rth@redhat.com>
36611
36612 PR target/65121
36613 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
36614 correctly check weak symbol binding.
36615
36616 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
36617
36618 PR middle-end/65315
36619 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
36620 needed alignment.
36621
36622 2015-03-05 Martin Liska <mliska@suse.cz>
36623
36624 * ipa-inline.c (inline_small_functions): Set default value to
36625 prevent warning during bootstrap.
36626 * tree.h: Add pragma guard that ignores false positives during
36627 bootstrap.
36628
36629 2015-03-05 Richard Biener <rguenther@suse.de>
36630
36631 PR tree-optimization/65310
36632 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
36633 Properly preserve alignment of the base of the access.
36634
36635 2015-03-05 Richard Biener <rguenther@suse.de>
36636
36637 PR ipa/65270
36638 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
36639 Compare dependence info.
36640
36641 2015-03-05 Richard Biener <rguenther@suse.de>
36642
36643 PR middle-end/65233
36644 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
36645 tree-into-ssa.h.
36646 (walk_ssa_copies): Revert last chage. Instead do not walk
36647 SSA names registered for SSA update.
36648
36649 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
36650
36651 PR ipa/65270
36652 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
36653 vtable references for their containing type.
36654 (sem_function::equals_wpa): Compare TYPE_RESTRICT
36655 and type attributes.
36656
36657 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
36658
36659 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
36660 before negating it.
36661 * stor-layout.c (finalize_record_size): Revert latest change.
36662
36663 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
36664
36665 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
36666
36667 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
36668
36669 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
36670 for correct comdat handling.
36671 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
36672 Likewise.
36673 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
36674 (used_from_object_file_p_worker): Remove.
36675 (cgraph_node::only_called_directly_or_alised): Add
36676 used_from_object_file_p.
36677 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
36678 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
36679 can_remove_if_no_direct_calls_and_refs_p.
36680
36681 2015-03-04 Nick Clifton <nickc@redhat.com>
36682
36683 * config/rl78/rl78.h (enum reg_class): Remove real registers from
36684 General register class.
36685 * config/rl78/rl78-real.md: Replace general register constraints
36686 with real+virtual register constraints.
36687
36688 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
36689
36690 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
36691 from checking for -mhtm option.
36692
36693 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
36694
36695 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
36696 (struct ipa_sra_check_caller_data): Add has_thunk field.
36697 (ipa_sra_check_caller): Check for thunk.
36698 (ipa_sra_preliminary_function_checks): Give up on function with
36699 thunks.
36700 (ipa_early_sra): Use call_for_symbol_and_aliases.
36701
36702 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
36703
36704 PR target/65249
36705 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
36706 called for __stack_chk_guard symbol.
36707
36708 2015-03-03 DJ Delorie <dj@redhat.com>
36709
36710 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
36711 inc/dec.
36712 (*addhi3_real): Likewise.
36713 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
36714 pattern to match incrementing memory.
36715 * config/rl78/predicates.md (rl78_1_2_operand): New.
36716 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
36717 it's the same and only mem.
36718 (rl78_alloc_physical_registers_op2): If there's effectively only
36719 one MEM, transcode it into HL.
36720 (rl78_far_p): Reject addresses that aren't legitimate.
36721
36722 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
36723
36724 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
36725 negating it.
36726
36727 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
36728
36729 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
36730
36731 Implement call0 ABI for xtensa
36732 * config/xtensa/constraints.md ("a" constraint): Include stack
36733 pointer in case of call0 ABI.
36734 ("q" constraint): Make empty in case of call0 ABI.
36735 ("D" constraint): Include stack pointer in case of call0 ABI.
36736 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
36737 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
36738 prototypes.
36739 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
36740 variable.
36741 (xtensa_regno_to_class): Make it a local variable in the
36742 function xtensa_regno_to_class.
36743 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
36744 macro, function prototype and implementation.
36745 (reg_nonleaf_alloc_order): Make it a local variable in the
36746 function order_regs_for_local_alloc.
36747 (xtensa_conditional_register_usage): New function.
36748 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
36749 (xtensa_valid_move): Allow direct moves to stack pointer
36750 register in call0 ABI.
36751 (xtensa_setup_frame_addresses): Only spill register windows in
36752 windowed ABI.
36753 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
36754 call0 ABI respectively.
36755 (xtensa_function_arg_1): Only mark a7 register for copying in
36756 windowed ABI.
36757 (xtensa_call_save_reg): New function.
36758 (compute_frame_size): Add space for callee saved register
36759 storage to the frame size in call0 ABI.
36760 (xtensa_expand_prologue): Generate code to set up stack frame
36761 and save callee-saved registers in call0 ABI.
36762 (xtensa_expand_epilogue): New function.
36763 (xtensa_set_return_address): New function.
36764 (xtensa_return_addr): Calculate return address in call0 ABI.
36765 (xtensa_builtin_saveregs): Only mark a7 register for copying and
36766 emit copying code in windowed ABI.
36767 (order_regs_for_local_alloc): Add preferred register allocation
36768 order for non-leaf function in call0 ABI.
36769 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
36770 (xtensa_asm_trampoline_template): Add trampoline generation for
36771 call0 ABI.
36772 (xtensa_trampoline_init): Add trampoline initialization for
36773 call0 ABI.
36774 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
36775 functions.
36776 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
36777 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
36778 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
36779 ABI call-used registers.
36780 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
36781 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
36782 call0 ABI.
36783 (REG_CLASS_CONTENTS): Include all registers into the preferred
36784 reload registers set, adjust the set in the
36785 xtensa_conditional_register_usage.
36786 (xtensa_regno_to_class): Drop variable declaration.
36787 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
36788 function.
36789 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
36790 respectively.
36791 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
36792 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
36793 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
36794 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
36795 location in call0 ABI.
36796 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
36797 stack adjustment size when handling exception.
36798 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
36799 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
36800 definitions.
36801 ("return" pattern): Generate ret.n/ret in call0 ABI.
36802 ("epilogue" pattern): Expand epilogue.
36803 ("nonlocal_goto" pattern): Use default in call0 ABI.
36804 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
36805 emit eh_set_a0_* depending on ABI.
36806 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
36807 ("eh_set_a0_call0", "blockage"): New patterns.
36808
36809 2015-03-03 Martin Liska <mliska@suse.cz>
36810
36811 PR ipa/65287
36812 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
36813
36814 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
36815
36816 PR 65138/target
36817 * config/rs6000/rs6000-tables.opt: Regenerate table.
36818
36819 2015-03-03 Renlin Li <renlin.li@arm.com>
36820
36821 * doc/md.texi (@item ^): Change ? into ^.
36822
36823 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
36824
36825 * doc/tm.texi: Regenerated.
36826
36827 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
36828
36829 * builtins.c (expand_builtin_return_addr): Add
36830 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
36831 surrounding #ifdef.
36832 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
36833 definition to 1.
36834 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
36835 Likewise.
36836 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
36837 undefined.
36838 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
36839 paragraph.
36840
36841 2015-03-03 Martin Jambor <mjambor@suse.cz>
36842 Eric Botcazou <ebotcazou@adacore.com>
36843
36844 * tree-sra.c (ipa_sra_check_caller_data): New type.
36845 (has_caller_p): Removed.
36846 (ipa_sra_check_caller): New function.
36847 (ipa_sra_preliminary_function_checks): Use it.
36848
36849 2015-03-03 Martin Liska <mliska@suse.cz>
36850
36851 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
36852 instead of if branch.
36853
36854 2015-03-03 Martin Liska <mliska@suse.cz>
36855
36856 PR ipa/65282
36857 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
36858
36859 2015-03-23 Jeff Law <law@redhat.com>
36860
36861 PR tree-optimization/65241
36862 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
36863 hash table if INSERT is true.
36864
36865 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
36866
36867 PR target/65296
36868 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
36869
36870 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
36871
36872 PR target/64331
36873 * config/avr/avr.c (context.h, tree-pass.h): Include them.
36874 (avr_pass_data_recompute_notes): New static variable.
36875 (avr_pass_recompute_notes): New class.
36876 (avr_register_passes): New static function.
36877 (avr_option_override): Call it.
36878
36879 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
36880
36881 Fix various problems with specs file generation.
36882
36883 PR target/65296
36884 * config.gcc (extra_gcc_objs) [avr]: Remove.
36885 * config/avr/driver-avr.c: Remove file.
36886 * config/avr/t-avr (driver-avr.o): Remove rule.
36887 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
36888 INCLUDES to build. Depend on TM_H.
36889 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
36890 build warnings. Fix non-matching types and non-existing %-codes.
36891 (tm.h): Include.
36892 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
36893 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
36894 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
36895 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
36896 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
36897 (LIBGCC_SPEC): Remove definitions.
36898
36899 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
36900
36901 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
36902 to create a register in testing mode.
36903
36904 2015-03-03 Martin Liska <mliska@suse.cz>
36905 Jan Hubicka <hubicka@ucw.cz>
36906
36907 PR ipa/65263
36908 * cgraph.c (cgraph_node::has_thunk_p): New function.
36909 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
36910 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
36911 (sem_function::merge): Assert is changed.
36912
36913 2015-03-03 Martin Liska <mliska@suse.cz>
36914 Martin Jambor <mjambor@suse.cz>
36915
36916 PR ipa/65087
36917 * ipa-icf.c (sem_item_optimizer::execute): Change function
36918 return value to boolean.
36919 (sem_item_optimizer::merge_classes): Likewise.
36920 (ipa_icf_driver): Return TODO_remove_functions in case there's
36921 a merge operation processed.
36922 * ipa-icf.h: Change function return value to boolean.
36923
36924 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
36925
36926 PR 65138/target
36927 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
36928 processor type for 64-bit little endian PowerPC.
36929
36930 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
36931 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
36932 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
36933 printing built-in mask so it does not pass NULL pointers.
36934
36935 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
36936 -mcpu=powerpc64le.
36937
36938 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
36939
36940 PR target/58158
36941 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
36942 !ISA_HAS_FP_CONDMOVE.
36943
36944 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
36945
36946 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
36947 reload_completed.
36948
36949 2015-03-02 Ulrich Drepper <drepper@gmail.com>
36950
36951 * doc/invoke.texi (Options for Code Generation Conventions):
36952 Fix URL of DSO paper.
36953
36954 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
36955
36956 PR ipa/65130
36957 * ipa-inline.c (check_callers): Looks for recursion.
36958 (inline_to_all_callers): Give up on uninlinable or recursive edges.
36959 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
36960 summary of inline clones.
36961 (do_estimate_growth_1): Fix recursion check.
36962
36963 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
36964
36965 PR ipa/64988
36966 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
36967 comdat groups.
36968
36969 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
36970 Aldy Hernandez <aldyh@redhat.com>
36971
36972 PR lto/65276
36973 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
36974 when checking TYPE_BINFO.
36975
36976 2015-03-02 Richard Biener <rguenther@suse.de>
36977
36978 PR ipa/65270
36979 * ipa-icf-gimple.c: Include builtins.h.
36980 (func_checker::compare_memory_operand): Compare base alignment.
36981
36982 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
36983
36984 PR target/65184
36985 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
36986 passed by reference.
36987
36988 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
36989
36990 PR target/65183
36991 * tree-chkp.c (chkp_check_lower): Don't check against
36992 zero bounds for already instrumented functions.
36993 (chkp_check_upper): Likewise.
36994 (chkp_fini): Clean pass local data to avoid wrong reusage.
36995
36996 2015-02-28 Martin Liska <mliska@suse.cz>
36997 Jan Hubicka <hubicka@ucw.cz>
36998
36999 * ipa-icf.c (sem_variable::equals): Improve debug output;
37000 get variable constructor.
37001 (sem_variable::parse): Do not filter out too early; give up on
37002 volatile and register vars.
37003 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
37004 variables.
37005 * ipa-icf.h (sem_variable::init): Do not set ctor.
37006 (sem_variable::ctor): Remove.
37007
37008 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
37009
37010 PR middle-end/65233
37011 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
37012
37013 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
37014
37015 * ipa-icf.c: Include stor-layout.h
37016 (sem_function::compare_cgraph_references): Rename to ...
37017 (sem_item::compare_cgraph_references): ... this one.
37018 (sem_variable::equals_wpa): New function
37019 (sem_variable::equals): Do not check stuff already verified by
37020 equals_wpa.
37021 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
37022 * ipa-icf.h (sem_item): Add compare_cgraph_references.
37023 (sem_function): Remove compare_cgraph_references.
37024 (sem_variable): Turns equals_wpa into non-inline.
37025
37026 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
37027
37028 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
37029 (sem_item::add_expr): New function.
37030 (sem_function::hash_stmt): Handle operands of most statements.
37031 (sem_variable::get_hash): Hash the actual constructor.
37032 * ipa-icf.h (sem_item): Add add_expr.
37033 (sem_function): Update prototype of hash_stmt
37034
37035 2015-02-28 Martin Liska <mliska@suse.cz>
37036 Jan Hubicka <hubicka@ucw.cz>
37037
37038 PR ipa/65245
37039 * ipa-icf-gimple.c (func_checker::compare_function_decl):
37040 Remove.
37041 (func_checker::compare_variable_decl): Skip symtab vars.
37042 (func_checker::compare_cst_or_decl): Update.
37043 * ipa-icf.c (sem_function::parse): Do not consider aliases.
37044 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
37045 use correct symtab predicates.
37046 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
37047 (sem_variable::parse): Update comment.
37048 (sem_item_optimizer::build_graph): Consider ultimate aliases
37049 for references.
37050
37051 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
37052
37053 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
37054 of OBJ_TYPE_REF.
37055
37056 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
37057
37058 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
37059 (sem_variable::merge) Likewise.
37060
37061 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
37062
37063 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
37064 target; also match flag_ipa_devirt.
37065
37066 2015-03-01 Martin Liska <mliska@suse.cz>
37067 Jan Hubicka <hubicka@ucw.cz>
37068
37069 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
37070 Validate variable alignment.
37071 * ipa-icf.c (sem_function::equals_private): Be more precise
37072 about non-common function attributes.
37073 (sem_variable::equals): Likewise.
37074
37075 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
37076
37077 PR ipa/65237
37078 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
37079 across COMDAT group boundary.
37080
37081 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
37082
37083 PR ipa/65232
37084 * ipa-icf.c (clear_decl_rtl): New function.
37085 (sem_function::merge): Clear RTL before forming alias.
37086 (sem_variable::merge): Clear RTL before forming alias.
37087
37088 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
37089
37090 PR ipa/65236
37091 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
37092
37093 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
37094
37095 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
37096 to neon_to_gp<q>.
37097
37098 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
37099
37100 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
37101 a typo in the description.
37102
37103 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
37104
37105 PR target/64317
37106 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
37107 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
37108 * lra-constraints.c: Include "params.h".
37109 (EBB_PROBABILITY_CUTOFF): Use
37110 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
37111 (lra_inheritance): Use '<' instead of '<=' for
37112 EBB_PROBABILITY_CUTOFF.
37113 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
37114 Document change.
37115
37116 2015-02-27 Martin Liska <mliska@suse.cz>
37117
37118 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
37119 vector length condition.
37120
37121 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
37122
37123 * doc/extend.texi (x86 transactional memory intrinsics):
37124 Reorganize discussion of _xbegin. Clarify that the return
37125 value is a bit mask. Expand example and move to end of section.
37126
37127 2015-02-26 Jakub Jelinek <jakub@redhat.com>
37128 Aldy Hernandez <aldyh@redhat.com>
37129
37130 PR rtl-optimization/65220
37131 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
37132
37133 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
37134
37135 PR target/65032
37136 * lra-remat.c (update_scratch_ops): New.
37137 (do_remat): Call it.
37138 * lra.c (lra_register_new_scratch_op): New. Take code from ...
37139 (remove_scratches): ... here.
37140 * lra-int.h (lra_register_new_scratch_op): New prototype.
37141
37142 2015-02-27 Marek Polacek <polacek@redhat.com>
37143
37144 PR c/65040
37145 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
37146 -Wformat-signedness anymore.
37147
37148 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37149
37150 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
37151 function.
37152 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
37153
37154 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37155
37156 * config/s390/s390.c (enum s390_builtin):
37157 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
37158 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
37159 (s390_init_builtins): Generate new builtin functions.
37160 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
37161 (s390_sfpc, s390_efpc): New pattern definitions.
37162
37163 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37164
37165 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
37166 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
37167 (s390_builtin_decls): New array.
37168 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
37169 (s390_builtin_decl): New function.
37170 (TARGET_BUILTIN_DECL): Define macro.
37171
37172 2015-02-27 Richard Biener <rguenther@suse.de>
37173
37174 PR middle-end/63175
37175 * builtins.c (get_object_alignment_2): Make sure to re-apply
37176 the ANDed mask after recursing to its operand gets us a new
37177 misalignment bit position.
37178
37179 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
37180 Martin Liska <mliska@suse.cz>
37181
37182 PR bootstrap/65150
37183 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
37184 Use address_matters_p.
37185 (redirect_all_callers, set_addressable): New functions.
37186 (sem_function::merge): Reorganize and fix merging issues.
37187 (sem_variable::merge): Likewise.
37188 (sem_variable::compare_sections): Remove.
37189 * common.opt (fmerge-all-constants, fmerge-constants): Remove
37190 Optimization flag.
37191 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
37192 redirect them.
37193 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
37194 decl is used.
37195 (address_matters_1): New function.
37196 (symtab_node::address_matters_p): New function.
37197 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
37198 check for merged flag.
37199 * cgraph.h (address_matters_p): Declare.
37200 (symtab_node::address_taken_from_non_vtable_p): Remove.
37201 (symtab_node::address_can_be_compared_p): New method.
37202 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
37203 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
37204 Remove.
37205 (comdat_can_be_unshared_p_1) Use address_matters_p.
37206 (update_vtable_references): Fix formating.
37207 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
37208 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
37209 * cgraphclones.c: Preserve merged and icf_merged flags.
37210
37211 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
37212
37213 * doc/extend.texi (Function Attributes): Fix spelling and typos.
37214 (Label Attributes): Likewise.
37215 (Cilk Plus Builtins): Likewise.
37216 (ARC SIMD Built-in Functions): Likewise.
37217 (ARM C Language Extensions (ACLE)): Likewise.
37218 (PowerPC Built-in Functions): Likewise.
37219 (PowerPC Hardware Transactional Memory Built-in Functions):
37220 Likewise.
37221
37222 2015-02-26 Jakub Jelinek <jakub@redhat.com>
37223
37224 PR tree-optimization/65216
37225 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
37226 new stmt and new SSA_NAME for lhs whenever the arguments have
37227 changed and weren't just swapped. Fix comment typo.
37228
37229 PR tree-optimization/65215
37230 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
37231 for PDP endian targets.
37232 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
37233 Fix up formatting issues.
37234 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
37235 size is smaller than the original, adjust MEM_REF offset by the
37236 difference of sizes. Use is_gimple_mem_ref_addr instead of
37237 is_gimple_min_invariant test to avoid adding address temporaries.
37238
37239 2015-02-26 Martin Liska <mliska@suse.cz>
37240 Jan Hubicka <hubicka@ucw.cz>
37241
37242 PR ipa/64693
37243 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
37244 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
37245 (sem_item_optimizer::process_cong_reduction): Include division by
37246 sensitive references.
37247 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
37248 * ipa-ref.c (ipa_ref::address_matters_p): New function.
37249 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
37250
37251 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
37252
37253 PR target/65192
37254 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
37255 Remove.
37256 * config/avr/avr.c: Same.
37257 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
37258 Refuse any constant address not in 0..0xbf.
37259 * config/avr/avr.md (*mov<mode>, *movsf): Remove
37260 tiny_valid_direct_memory_access_range from insn conditions.
37261 (mov<mode>): Don't special-case expansion of avrtiny addresses.
37262
37263 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
37264
37265 PR target/61142
37266 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
37267 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
37268 * config/sh/predicates.md (const_logical_operand): New predicate.
37269 * config/sh/sh.md: Add new peephole2 patterns.
37270
37271 2015-02-26 Marek Polacek <polacek@redhat.com>
37272
37273 PR ipa/65008
37274 * ipa-inline.c (early_inliner): Recompute inline parameters.
37275
37276 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37277
37278 PR target/65171
37279 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
37280 instructions with TImode operands are included in the analysis.
37281
37282 2015-02-26 Sebastian Pop <s.pop@samsung.com>
37283
37284 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
37285 of an EDGE_FSM_THREAD.
37286
37287 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
37288
37289 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
37290
37291 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
37292
37293 PR debug/46102
37294 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
37295
37296 2015-02-26 Sebastian Pop <s.pop@samsung.com>
37297
37298 PR tree-optimization/65048
37299 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
37300 (thread_through_all_blocks): Call valid_jump_thread_path.
37301 Remove invalid FSM jump-thread paths.
37302
37303 2015-02-26 Jakub Jelinek <jakub@redhat.com>
37304
37305 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
37306 (ipa_write_optimization_summaries): Likewise.
37307 * tree-streamer.h: Include data-streamer.h.
37308 (streamer_mode_table): Declare extern variable.
37309 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
37310 * lto-streamer-out.c (lto_output_init_mode_table,
37311 lto_write_mode_table): New functions.
37312 (produce_asm_for_decls): Call lto_write_mode_table when streaming
37313 offloading LTO.
37314 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
37315 (lto_create_simple_input_block): Add mode_table argument to the
37316 lto_input_block constructors.
37317 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
37318 Likewise.
37319 * data-streamer-in.c (string_for_index): Likewise.
37320 * ipa-inline-analysis.c (inline_read_section): Likewise.
37321 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
37322 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
37323 * lto-streamer-in.c (lto_read_body_or_constructor,
37324 lto_input_toplevel_asms): Likewise.
37325 (lto_input_mode_table): New function.
37326 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
37327 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
37328 Use bp_pack_machine_mode.
37329 * real.h (struct real_format): Add name field.
37330 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
37331 (class lto_input_block): Add mode_table member.
37332 (lto_input_block::lto_input_block): Add mode_table_ argument,
37333 initialize mode_table.
37334 (struct lto_file_decl_data): Add mode_table field.
37335 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
37336 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
37337 unpack_ts_decl_common_value_fields,
37338 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
37339 * tree-streamer.c (streamer_mode_table): New variable.
37340 * real.c (ieee_single_format, mips_single_format,
37341 motorola_single_format, spu_single_format, ieee_double_format,
37342 mips_double_format, motorola_double_format,
37343 ieee_extended_motorola_format, ieee_extended_intel_96_format,
37344 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
37345 ibm_extended_format, mips_extended_format, ieee_quad_format,
37346 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
37347 decimal_single_format, decimal_double_format, decimal_quad_format,
37348 ieee_half_format, arm_half_format, real_internal_format): Add name
37349 field.
37350 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
37351
37352 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
37353
37354 PR target/65161
37355 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
37356 reordering for selective scheduling.
37357
37358 2015-02-26 Terry Guo <terry.guo@arm.com>
37359
37360 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
37361 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
37362 (arm_arch_no_volatile_ce): Declare new global variable.
37363 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
37364 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
37365 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
37366 (TARGET_NO_VOLATILE_CE): New macro.
37367 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
37368 volatile memory access in IT block
37369
37370 2015-02-25 Kai Tietz <ktietz@redhat.com>
37371
37372 PR tree-optimization/61917
37373 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
37374 that reduc_def_stmt is null.
37375
37376 2015-02-25 Martin Liska <mliska@suse.cz>
37377
37378 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
37379 hard register variables.
37380
37381 2015-02-25 Kai Tietz <ktietz@redhat.com>
37382
37383 PR target/64212
37384 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
37385 (symtab::noninterposable_alias): Likewise.
37386
37387 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
37388
37389 PR target/65167
37390 * config/i386/i386.c (ix86_function_arg_regno_p): Support
37391 bounds registers.
37392 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
37393
37394 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
37395
37396 PR target/64997
37397 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
37398 as split condition; force split via '#' in output pattern.
37399
37400 2015-02-25 Richard Biener <rguenther@suse.de>
37401 Kai Tietz <ktietz@redhat.com>
37402
37403 PR tree-optimization/61917
37404 * tree-vect-loop.c (vectorizable_reduction): Allow
37405 vect_internal_def without reduction to exit graceful.
37406
37407 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
37408
37409 PR target/65196
37410 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
37411 only with NONDEBUG_INSN_P.
37412
37413 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
37414
37415 Use variadic macros with avr-log.c.
37416
37417 * config/avr/avr-protos.h (avr_vdump): New prototype.
37418 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
37419 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
37420 * config/avr/avr-log.c: Adjust comments.
37421 (avr_vdump): New function.
37422 (avr_vadump): Pass caller as 2nd argument instead of format string.
37423 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
37424 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
37425
37426 2015-02-25 Jakub Jelinek <jakub@redhat.com>
37427
37428 PR lto/64374
37429 * target.def (target_option_stream_in): New target hook.
37430 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
37431 targetm.target_option.post_stream_in if non-NULL.
37432 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
37433 * doc/tm.texi: Updated.
37434 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
37435 function.
37436 (TARGET_OPTION_POST_STREAM_IN): Redefine.
37437
37438 2015-02-24 Jeff Law <law@redhat.com>
37439
37440 PR target/65117
37441 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
37442 of operand 0 and operand 2.
37443 (zero_cost_loop_end, loop_end): Similarly.
37444
37445 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
37446
37447 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
37448 CXX_MEM_STAT_INFO.
37449
37450 2015-02-24 DJ Delorie <dj@redhat.com>
37451
37452 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
37453 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
37454 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
37455 instead of hardcoding SImode.
37456
37457 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
37458
37459 * omp-low.c (create_omp_child_function): Tag entrypoint
37460 functions with a special attribute.
37461
37462 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
37463
37464 PR target/65058
37465 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
37466
37467 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
37468
37469 PR rtl-optimization/65123
37470 * lra-remat.c (operand_to_remat): Check hard regs in insn
37471 definition too.
37472
37473 2015-02-24 Nick Clifton <nickc@redhat.com>
37474
37475 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
37476 to the assembler.
37477
37478 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
37479
37480 PR libgomp/64625
37481 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
37482 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
37483 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
37484 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
37485 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
37486 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
37487 (BUILT_IN_GOACC_PARALLEL): Specify as
37488 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
37489 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
37490 * builtin-types.def
37491 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
37492 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
37493 Remove function types.
37494 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
37495 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
37496 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
37497 New function types.
37498
37499 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
37500
37501 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
37502
37503 2015-02-24 Jakub Jelinek <jakub@redhat.com>
37504
37505 PR tree-optimization/65170
37506 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
37507 if val[1] < 0, clear also val[2] and return 3.
37508
37509 2015-02-24 Alan Modra <amodra@gmail.com>
37510
37511 PR target/65172
37512 * config/rs6000/rs6000.c (get_memref_parts): Only return true
37513 when *base is a reg. Handle nested plus addresses. Simplify
37514 pre_modify test.
37515
37516 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
37517
37518 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
37519 use natural alignment when optimizing for size.
37520
37521 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
37522
37523 PR target/65153
37524 * config/sh/sh.md (movsicc_true+3): Remove peephole.
37525 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
37526 * config/sh/sh.c (replace_n_hard_rtx): Remove.
37527
37528 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
37529
37530 PR fortran/63427
37531 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
37532 too big for a wide_int. Implement missing wrapping operation.
37533
37534 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
37535
37536 PR target/65163
37537 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
37538 instead of const_int 4294901760.
37539
37540 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
37541
37542 * config/avr/t-avr: Fix typo in comment.
37543
37544 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
37545
37546 * doc/rtl.texi (fma): Clarify documentation.
37547
37548 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
37549
37550 PR debug/58123
37551 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
37552 over input_location.
37553
37554 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
37555
37556 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
37557 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
37558 restrict alignments to absolute_biggest_alignment.
37559 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
37560 Define.
37561 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
37562 * doc/tm.texi: Regenerate.
37563 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
37564
37565 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
37566
37567 PR target/64172
37568 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
37569
37570 2015-02-20 Richard Biener <rguenther@suse.de>
37571
37572 PR tree-optimization/65136
37573 * tree-ssa-propagate.c: Include cfgloop.h.
37574 (replace_phi_args_in): Avoid replacing loop latch edge PHI
37575 arguments with constants.
37576
37577 2015-02-20 Jakub Jelinek <jakub@redhat.com>
37578 Martin Liska <mliska@suse.cz>
37579
37580 PR target/63892
37581 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
37582 don't try to create_thunk if stdarg_p. If
37583 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
37584 redirect_callers if possible.
37585 (sem_item_optimizer::execute): Call unregister_hooks here...
37586 (ipa_icf_driver): ... instead of here.
37587
37588 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37589
37590 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
37591 Mark operand 0 as earlyclobber in 2nd alternative.
37592 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
37593 Write negated shift amount into QI lowpart operand 0 and use it
37594 in the shift step.
37595 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
37596
37597 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
37598
37599 * cgraph.h (clone_function_name_1): Declare.
37600 * cgraphclones.c (clone_function_name_1): New function.
37601 (clone_function_name): Use it.
37602 * lto-partition.c: Include "stringpool.h".
37603 (must_not_rename, maybe_rewrite_identifier)
37604 (validize_symbol_for_target): New static functions.
37605 (privatize_symbol_name): Use must_not_rename.
37606 (promote_symbol): Call validize_symbol_for_target.
37607 (lto_promote_cross_file_statics): Likewise.
37608 (lto_promote_statics_nonwpa): Likewise.
37609
37610 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
37611
37612 PR target/64452
37613 * config/avr/avr.md (pushhi_insn): New insn.
37614 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
37615
37616 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
37617 Jakub Jelinek <jakub@redhat.com>
37618
37619 * tree-streamer.c (preload_common_nodes): Don't preload
37620 TI_VA_LIST* for offloading.
37621 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
37622 in_lto_p.
37623
37624 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
37625
37626 * config/pa/pa.c (pa_emit_move_sequence): Always force
37627 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
37628 note on insn.
37629
37630 * config/pa/pa.c (pa_reloc_rw_mask): New function.
37631 (TARGET_ASM_RELOC_RW_MASK): Define.
37632 (pa_cannot_force_const_mem): Revert previous change.
37633
37634 2015-02-19 Martin Jambor <mjmabor@suse.cz>
37635 Jan Hubicka <hubicka@ucw.cz>
37636
37637 PR ipa/65028
37638 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
37639 across jump functions.
37640
37641 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
37642
37643 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
37644
37645 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
37646
37647 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
37648
37649 2015-02-19 Richard Henderson <rth@redhat.com>
37650
37651 PR middle-end/65074
37652 * varasm.c (default_binds_local_p_2): Don't test node->definition;
37653 test DECL_EXTERNAL independent of symtab_node.
37654
37655 2015-02-19 Jakub Jelinek <jakub@redhat.com>
37656
37657 PR lto/65012
37658 * varpool.c (varpool_node::get_constructor): Return early
37659 if this->lto_file_data is NULL.
37660
37661 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37662
37663 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
37664 (rank_for_schedule_debug): Update.
37665 (ready_sort): Make static. Move sorting logic to ...
37666 (ready_sort_debug, ready_sort_real): New static functions.
37667 (schedule_block): Sort both debug insns and real insns in preparation
37668 for ready list trimming. Improve debug output.
37669 * sched-int.h (ready_sort): Remove global declaration.
37670
37671 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
37672
37673 * ipa-icf.c (sem_function::equals_private): Adjust.
37674 (sem_function::bb_dict_test): Take a vec<int> * instead of
37675 auto_vec<int>.
37676 * ipa-icf.h (bb_dict_test): Likewise.
37677
37678 2015-02-18 Jakub Jelinek <jakub@redhat.com>
37679
37680 PR gcov-profile/64634
37681 * tree-eh.c (frob_into_branch_around): Fix up typos
37682 in function comment.
37683 (lower_catch): Put eh_seq resulting from EH lowering of
37684 the cleanup sequence after the cleanup rather than before it.
37685
37686 2015-02-18 Tom de Vries <tom@codesourcery.com>
37687
37688 * common.opt (fstdarg-opt): New option.
37689 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
37690 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
37691 (@item -fstdarg-opt): New item.
37692
37693 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
37694
37695 PR target/65064
37696 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
37697 for common symbols.
37698
37699 2015-02-18 Jakub Jelinek <jakub@redhat.com>
37700
37701 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
37702 insn-modes.h.
37703 (ALL_HOST_OBJS): Add mkoffload.o.
37704 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
37705
37706 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
37707
37708 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
37709 (compare_virtual_tables): Be smarter about skipping typeinfos;
37710 do sane output on virtual table table mismatch.
37711 (warn_odr): Be ready for forward declarations of enums;
37712 output sane info on base mismatch and virtual table mismatch.
37713 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
37714 when only one type is polymorphic.
37715 (get_odr_type): Fix hashtable corruption.
37716 (dump_odr_type): Dump mangled names.
37717
37718 2015-02-18 Richard Biener <rguenther@suse.de>
37719
37720 PR tree-optimization/65063
37721 * tree-predcom.c (determine_unroll_factor): Return 1 if we
37722 have replaced looparound PHIs.
37723
37724 2015-02-18 Martin Liska <mliska@suse.cz>
37725
37726 * lto-streamer.c (lto_streamer_init): Encapsulate
37727 streamer_check_handled_ts_structures with checking macro.
37728
37729 2015-02-18 Jakub Jelinek <jakub@redhat.com>
37730
37731 PR ipa/65087
37732 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
37733 section if !implicit_section.
37734 (cgraph_node::create_version_clone_with_body): Likewise.
37735 * trans-mem.c (ipa_tm_create_version): Likewise.
37736
37737 2015-02-18 Richard Biener <rguenther@suse.de>
37738
37739 PR tree-optimization/62217
37740 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
37741 into BIVs.
37742
37743 2015-02-18 Marek Polacek <polacek@redhat.com>
37744
37745 PR sanitizer/65081
37746 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
37747 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
37748 is in range [-16K, -1]. Don't issue run-time error if
37749 (ptr > ptr + offset).
37750
37751 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
37752
37753 * doc/install.texi (nvptx-*-none): New section.
37754 * doc/invoke.texi (Nvidia PTX Options): Likewise.
37755 * config/nvptx/nvptx.opt: Update.
37756
37757 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
37758 (access_check): New functions, copied from
37759 config/i386/intelmic-mkoffload.c.
37760 (main): For non-installed testing, look in all COMPILER_PATHs for
37761 GCC_INSTALL_NAME.
37762
37763 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
37764
37765 2015-02-18 Andrew Pinski <apinski@cavium.com>
37766 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
37767
37768 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
37769 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
37770
37771 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
37772
37773 * ipa-visibility.c (function_and_variable_visibility): Only
37774 check locality if node is not already local.
37775 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
37776 call_for_symbol_and_aliases instead of
37777 call_for_symbol_thunks_and_aliases.
37778 (ipa_inline): Likewise.
37779 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
37780 first walk aliases.
37781 * ipa.c (symbol_table::remove_unreachable_nodes): Use
37782 call_for_symbol_and_aliases.
37783 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
37784 (ipa_propagate_frequency_1): Use it; use opt_for_fn
37785 (ipa_propagate_frequency): Update.
37786 (ipa_profile): Add opt_for_fn gueards.
37787
37788 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
37789
37790 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
37791 * doc/invoke.texi (SH options): Document it.
37792 * config/sh/sh.c (sh_insn_length_adjustment): Check
37793 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
37794
37795 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
37796
37797 * common.opt (fipa-cp-alignment): New.
37798 * ipa-cp.c (ipcp_store_alignment_results): Check
37799 flag_ipa_cp_alignment.
37800 * opts.c (default_options_table): Enable -fipa-cp-alignment for
37801 -O2.
37802 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
37803 * doc/invoke.texi: Document -fipa-cp-alignment.
37804
37805 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
37806
37807 PR target/64793
37808 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
37809 to nil. Adjust comments.
37810
37811 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
37812
37813 * ipa-visibility.c (function_and_variable_visibility): Only
37814 check locality if node is not already local.
37815 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
37816 call_for_symbol_and_aliases instead of
37817 call_for_symbol_thunks_and_aliases.
37818 (ipa_inline): Likewise.
37819 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
37820 first walk aliases.
37821 * ipa.c (symbol_table::remove_unreachable_nodes): Use
37822 call_for_symbol_and_aliases.
37823 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
37824 (ipa_propagate_frequency_1): Use it; use opt_for_fn
37825 (ipa_propagate_frequency): Update.
37826 (ipa_profile): Add opt_for_fn guards.
37827
37828 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
37829
37830 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
37831 skipping of "strange" tokens.
37832
37833 2015-02-17 Jeff Law <law@redhat.com>
37834
37835 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
37836 obsolete comment.
37837
37838 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
37839
37840 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
37841 as forcing a HARD_DEP between instructions, thereby
37842 disallowing rewriting to break dependencies.
37843
37844 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
37845
37846 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
37847 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
37848 variables in boundary that have no inlitalizer encoded and are
37849 not aliases.
37850 * varasm.c (default_binds_local_p_2): External definitions do not
37851 count as definitions here.
37852
37853 2015-02-16 Jeff Law <law@redhat.com>
37854
37855 PR tree-optimization/64823
37856 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
37857 statements.
37858 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
37859 threading through blocks with PHIs, but no statements.
37860 (thread_through_normal_block): Distinguish between blocks where
37861 we did not process all the statements and blocks with no statements.
37862
37863 2015-02-16 Jakub Jelinek <jakub@redhat.com>
37864 James Greenhalgh <james.greenhalgh@arm.com>
37865
37866 PR ipa/64963
37867 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
37868 section if not linkonce. Fix up formatting.
37869 (cgraph_node::create_version_clone_with_body): Copy section.
37870 * trans-mem.c (ipa_tm_create_version): Likewise.
37871
37872 2015-02-16 Richard Biener <rguenther@suse.de>
37873
37874 PR tree-optimization/65077
37875 * tree-ssa-structalias.c (get_constraint_for_1): Handle
37876 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
37877 (find_func_aliases): Allow float values to carry pointers again.
37878
37879 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
37880
37881 * doc/install.texi (Specific): Reorder targets list to put
37882 aarch64 in alphabetical order. Add a link to aarch64*-*-*
37883 from the top menu.
37884
37885 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
37886 David Edelsohn <dje.gcc@gmail.com>
37887
37888 PR target/65058
37889 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
37890 mapping class to external variable or function reference.
37891 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
37892 mapping class.
37893
37894 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
37895
37896 PR target/53348
37897 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
37898 ASM_WEAKEN_DECL if defined.
37899
37900 2015-02-16 Richard Biener <rguenther@suse.de>
37901
37902 PR lto/65015
37903 * varasm.c (default_file_start): For LTO produced units
37904 emit <artificial> as file directive.
37905
37906 2015-02-16 Richard Biener <rguenther@suse.de>
37907
37908 PR tree-optimization/63593
37909 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
37910 stmts and releasing SSA names until...
37911 (execute_pred_commoning): ... after processing all chains.
37912
37913 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
37914
37915 PR ipa/65059
37916 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
37917 external functions.
37918
37919 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
37920
37921 * doc/bugreport.texi: Adjust section titles throughout the file
37922 to use "Title Case".
37923 * doc/extend.texi: Likewise.
37924 * doc/gcov.texi: Likewise.
37925 * doc/implement-c.texi: Likewise.
37926 * doc/implement-cxx.texi: Likewise.
37927 * doc/invoke.texi: Likewise.
37928 * doc/objc.texi: Likewise.
37929 * doc/standards.texi: Likewise.
37930 * doc/trouble.texi: Likewise.
37931
37932 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
37933
37934 * cgraph.h (symtab_node::has_aliases_p): Simplify.
37935 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
37936 * tree.c (lookup_binfo_at_offset): Make static.
37937 (get_binfo_at_offset): Do not shadow offset; add explanatory
37938 comment.
37939
37940 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
37941
37942 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
37943 for all floading point loads and stores except those using a register
37944 index address.
37945 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
37946 to a register.
37947
37948 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
37949
37950 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
37951 (do_estimate_growth_1): Record if any uninlinable edge was seen.
37952 (estimate_growth): Handle uninlinable edges correctly.
37953 (check_callers): New.
37954 (growth_likely_positive): Handle aliases correctly.
37955
37956 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
37957
37958 * ipa-chkp.c: Use iterate_direct_aliases.
37959 * symtab.c (resolution_used_from_other_file_p): Move inline.
37960 (symtab_node::create_reference): Fix formating.
37961 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
37962 (symtab_node::iterate_reference): Move inline.
37963 (symtab_node::iterate_referring): Move inline.
37964 (symtab_node::iterate_direct_aliases): Move inline.
37965 (symtab_node::used_from_object_file_p_worker): Inline into ...
37966 (symtab_node::used_from_object_file_p): ... this one; move inline.
37967 (symtab_node::call_for_symbol_and_aliases): Move inline;
37968 use iterate_direct_aliases.
37969 (symtab_node::call_for_symbol_and_aliases_1): New method.
37970 (cgraph_node::call_for_symbol_and_aliases): Move inline;
37971 use iterate_direct_aliases.
37972 (cgraph_node::call_for_symbol_and_aliases_1): New method.
37973 (varpool_node::call_for_node_and_aliases): Rename to ...
37974 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
37975 use iterate_direct_aliases.
37976 (varpool_node::call_for_symbol_and_aliases_1): New method.
37977 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
37978 (ipa_discover_readonly_nonaddressable_var): Update.
37979 * ipa-devirt.c: Fix formating.
37980 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
37981 Move inline.
37982 (cgraph_node::call_for_symbol_and_aliases): Move inline.
37983 (cgraph_node::call_for_symbol_and_aliases_1): New function..
37984 * cgraph.h (used_from_object_file_p_worker): Remove.
37985 (resolution_used_from_other_file_p): Move inline.
37986 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
37987 (symtab_node::iterate_reference): Move inline.
37988 (symtab_node::iterate_referring): Move inline.
37989 (symtab_node::iterate_direct_aliases): Move inline.
37990 (symtab_node::used_from_object_file_p_worker): Inline into ...
37991 (symtab_node::used_from_object_file_p): Move inline.
37992 * tree-emutls.c (ipa_lower_emutls): Update.
37993 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
37994 (varpool_node::call_for_node_and_aliases): Remove.
37995
37996 2015-02-14 Jakub Jelinek <jakub@redhat.com>
37997
37998 PR tree-optimization/62209
37999 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
38000 op == range->exp, insert seq and gimplified code after labels
38001 instead of after the phi.
38002
38003 2015-02-13 Jeff Law <law@redhat.com>
38004
38005 PR bootstrap/65060
38006 Revert my change for tree-optimization/64823.
38007
38008 2015-02-13 Jakub Jelinek <jakub@redhat.com>
38009
38010 PR tree-optimization/65053
38011 * tree-ssa-phiopt.c (value_replacement): When moving assign before
38012 cond, either reset VR on lhs or set it to phi result VR.
38013
38014 2015-02-13 Jeff Law <law@redhat.com>
38015
38016 PR tree-optimization/64823
38017 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
38018 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
38019 threading through blocks with PHIs, but no statements.
38020 (thread_through_normal_block): Distinguish between blocks where
38021 we did not process all the statements and blocks with no statements.
38022
38023 PR rtl-optimization/47477
38024 * match.pd (convert (plus/minus (convert @0) (convert @1): New
38025 simplifier to narrow arithmetic.
38026
38027 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
38028
38029 PR ipa/65028
38030 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
38031 polymorphic call info when type is not known to be preserved.
38032
38033 2015-02-13 Maritn Jambor <mjambor@suse.cz>
38034
38035 PR ipa/65028
38036 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
38037 (inline_call): Use it.
38038
38039 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
38040
38041 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
38042 GOMP_DEVICE_NVIDIA_PTX.
38043
38044 2015-02-13 Jakub Jelinek <jakub@redhat.com>
38045
38046 PR ipa/65034
38047 * stmt.c (emit_case_nodes): Use void_type_node instead of
38048 NULL_TREE as LABEL_DECL type.
38049
38050 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
38051
38052 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
38053 constraints.
38054 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
38055 symbolic references to data to be forced to constant memory on the
38056 SOM target.
38057
38058 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
38059
38060 PR tree-optimization/65002
38061 * tree-cfg.c (pass_data_fixup_cfg): Don't update
38062 SSA on start.
38063 * tree-sra.c (some_callers_have_no_vuse_p): New.
38064 (ipa_early_sra): Reject functions whose callers
38065 assume function is read only.
38066
38067 2015-02-13 Richard Biener <rguenther@suse.de>
38068
38069 PR lto/65015
38070 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
38071 for LTO produced CUs.
38072
38073 2015-02-13 Bin Cheng <bin.cheng@arm.com>
38074
38075 PR tree-optimization/64705
38076 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
38077 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
38078 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
38079 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
38080 expand_simple_operations.
38081
38082 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
38083 Richard Henderson <rth@redhat.com>
38084
38085 PR rtl/32219
38086 * cgraphunit.c (cgraph_node::finalize_function): Set definition
38087 before notice_global_symbol.
38088 (varpool_node::finalize_decl): Likewise.
38089 * varasm.c (default_binds_local_p_2): Rename from
38090 default_binds_local_p_1, add weak_dominate argument. Use direct
38091 returns instead of assigning to local variable. Unify varpool and
38092 cgraph paths via symtab_node. Reject undef weak variables before
38093 testing visibility. Reorder tests for simplicity.
38094 (default_binds_local_p): Use default_binds_local_p_2.
38095 (default_binds_local_p_1): Likewise.
38096 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
38097 via symtab_node.
38098 (default_elf_asm_output_external): Emit visibility when specified.
38099
38100 2015-02-13 Alan Modra <amodra@gmail.com>
38101
38102 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
38103 code setting up r11 for out-of-line fp restore.
38104
38105 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
38106
38107 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
38108 (muser-mode): Likewise.
38109
38110 2015-02-13 Alan Modra <amodra@gmail.com>
38111
38112 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
38113 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
38114
38115 2015-02-12 David Howells <dhowells@redhat.com>
38116
38117 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
38118 warning.
38119 * tree-ssa-uninit.c (dump_predicates): Likewise.
38120 * opts.c (print_filtered_help): Likewise.
38121
38122 2015-02-12 Jakub Jelinek <jakub@redhat.com>
38123
38124 * dwarf2out.c (output_die): Use "%s", name instead of name to
38125 avoid -Wformat-security warning.
38126
38127 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
38128 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
38129 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
38130 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
38131
38132 2015-02-12 Jason Merrill <jason@redhat.com>
38133
38134 * common.opt (-flifetime-dse): New.
38135
38136 2015-02-12 Jakub Jelinek <jakub@redhat.com>
38137
38138 PR sanitizer/65019
38139 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
38140
38141 PR tree-optimization/65014
38142 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
38143 use original second operand of arg0 or arg1 instead of
38144 that adjusted by STRIP_NOPS.
38145
38146 2015-02-11 Jeff Law <law@redhat.com>
38147
38148 PR target/63347
38149 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
38150 that needs to be queued, just queue it for a single cycle.
38151
38152 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
38153
38154 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
38155 bodies of thunks; comment on why.
38156 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
38157 symbols are extern.
38158
38159 2015-02-11 Richard Henderson <rth@redhat.com>
38160
38161 PR sanitize/65000
38162 * tree-eh.c (mark_reachable_handlers): Mark source and destination
38163 regions of __builtin_eh_copy_values.
38164
38165 2015-02-11 Jakub Jelinek <jakub@redhat.com>
38166
38167 PR middle-end/65003
38168 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
38169 ultimate alias is MEM with SYMBOL_REF satisfying
38170 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
38171 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
38172
38173 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
38174
38175 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
38176 "diagnostic-core.h".
38177 (main): Initialize progname, and call diagnostic_initialize.
38178
38179 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
38180 instead of __OPENMP_TARGET__.
38181
38182 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
38183 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
38184 hard-coding PTX_ID.
38185
38186 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
38187
38188 * doc/sourcebuild.texi (pie_enabled): Document.
38189
38190 2015-02-11 Martin Liska <mliska@suse.cz>
38191
38192 PR ipa/64813
38193 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
38194 a return value for call to a function that is noreturn.
38195
38196 2015-02-11 Richard Biener <rguenther@suse.de>
38197
38198 PR lto/65015
38199 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
38200 and -fresolution.
38201
38202 2015-02-11 Andrew Pinski <apinski@cavium.com>
38203
38204 PR target/64893
38205 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
38206 Change the first argument type to size_type_node and add another
38207 size_type_node.
38208 (aarch64_simd_expand_builtin): Handle the new argument to
38209 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
38210 print an out when the first two arguments are not
38211 nonzero integer constants.
38212 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
38213 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
38214
38215 2015-02-11 Jakub Jelinek <jakub@redhat.com>
38216
38217 PR target/61925
38218 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
38219 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
38220 (ix86_set_current_function): Rewritten.
38221 (ix86_add_new_builtins): Temporarily clear current_target_pragma
38222 when creating builtin fndecls.
38223
38224 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
38225
38226 PR ipa/65005
38227 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
38228 function.
38229 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
38230 have no comdat group.
38231 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
38232 (lto_output_varpool_node): Always output alias info.
38233 (output_refs): Output refs of boundary aliases, too.
38234 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
38235 (output_symtab): Output call eges in thunks in boundary.
38236 (get_alias_symbol): Remove.
38237 (input_node, input_varpool_node): Do not special case weakrefs.
38238 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
38239 alias and thunks targets in the boundary; do not take removed symbols
38240 from their comdat groups.
38241 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
38242 (cgraph_node::global_info): Remove.
38243 (cgraph_node::rtl_info): Look through aliases and thunks.
38244 * cgrpah.h (global_info): Remove.
38245 (non_local_p): Remove.
38246
38247 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
38248 Sandra Loosemore <sandra@codesourcery.com>
38249
38250 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
38251 to inline asm. List dialects in proper order.
38252
38253 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
38254 Sandra Loosemore <sandra@codesourcery.com>
38255
38256 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
38257
38258 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
38259
38260 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
38261 modified) reference to Solaris.
38262
38263 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
38264
38265 * doc/extend.texi (Extended Asm): Fix typos.
38266
38267 2015-02-10 Jakub Jelinek <jakub@redhat.com>
38268
38269 PR sanitizer/65004
38270 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
38271
38272 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
38273
38274 PR target/64661
38275 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
38276 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
38277 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
38278 * config/sh/constraints.md (Ara, Add): New constraints.
38279 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
38280 predicates.
38281 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
38282 atomic_mem_operand_0. Don't use force_reg on the memory address.
38283 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
38284 Sra constraint. Convert to insn_and_split. Add workaround for
38285 PR 64974.
38286 (atomic_compare_and_swap<mode>_hard): Copy to
38287 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
38288 Use atomic_mem_operand_0 predicate.
38289 (atomic_compare_and_swap<mode>_soft_gusa,
38290 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
38291 AraAdd constraints.
38292 (atomic_compare_and_swap<mode>_soft_tcb,
38293 atomic_compare_and_swap<mode>_soft_imask,
38294 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
38295 atomic_mem_operand_0 predicate and SraSdd constraints.
38296 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
38297 constraint.
38298 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
38299 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
38300 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
38301 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
38302 force_reg on the memory address.
38303 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
38304 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
38305 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
38306 atomic_mem_operand_1 predicate and Sra constraint.
38307 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
38308 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
38309 Use atomic_mem_operand_1 predicate.
38310 (atomic_<fetchop_name><mode>_hard): Copy to
38311 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
38312 Use atomic_mem_operand_1 predicate.
38313 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
38314 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
38315 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
38316 insn_and_split. Use atomic_mem_operand_1 predicate.
38317 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
38318 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
38319 Use atomic_mem_operand_1 predicate.
38320 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
38321 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
38322 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
38323 in generated insn with original mem operand before emitting the insn.
38324 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
38325 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
38326 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
38327 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
38328 Use atomic_mem_operand_1 predicate and AraAdd constraints.
38329 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
38330 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
38331 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
38332 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
38333 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
38334 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
38335 atomic_not_fetch<mode>_soft_tcb,
38336 atomic_<fetchop_name>_fetch<mode>_soft_imask,
38337 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
38338 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
38339 Use atomic_mem_operand_1 predicate and SraSdd constraints.
38340
38341 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
38342
38343 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
38344 and 3 earlyclobber operands.
38345
38346 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
38347
38348 * common.opt (fstack-reuse): Mark as optimization.
38349
38350 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
38351
38352 PR ipa/64982
38353 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
38354
38355 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
38356
38357 PR tree-optimization/64326
38358 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
38359
38360 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
38361
38362 PR gcov-profile/61889
38363 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
38364
38365 2015-02-10 Richard Biener <rguenther@suse.de>
38366
38367 PR tree-optimization/64995
38368 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
38369 value we use is final.
38370 (visit_reference_op_store): Always valueize op.
38371 (visit_use): Properly valueize vuses.
38372
38373 2015-02-10 Richard Biener <rguenther@suse.de>
38374
38375 PR tree-optimization/64909
38376 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
38377 pass a scalar-stmt count estimate to the cost model.
38378 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
38379
38380 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
38381
38382 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
38383 enabled by default together with var-tracking.
38384
38385 2015-02-10 Nick Clifton <nickc@redhat.com>
38386
38387 * config/rl78/rl78.c: Remove DIV attribute code accidentally
38388 included in previous rl78 commit.
38389
38390 2015-02-10 Richard Biener <rguenther@suse.de>
38391
38392 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
38393 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
38394 return the bitpack.
38395
38396 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
38397
38398 PR gcov-profile/61889
38399 * config.in: regenerate.
38400 * configure.in: Likewise.
38401 * configure.ac: Check for ftw.h.
38402 * gcov-tool.c: Check for ftw.h before using nftw.
38403
38404 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
38405
38406 PR lto/64076
38407 * ipa-visibility.c (update_visibility_by_resolution_info): Only
38408 assert when not in lto mode.
38409
38410 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
38411
38412 * ira-color.c (setup_left_conflict_sizes_p): Simplify
38413 initialization/assignment of conflict_size.
38414
38415 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
38416
38417 PR ipa/64978
38418 * ipa-cp.c (gather_caller_stats): Skip thunks.
38419 (propagate_constants_topo): Skip aliases.
38420
38421 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
38422
38423 PR target/64761
38424 * config/sh/sh.c (sh_option_override): Don't change
38425 -freorder-blocks-and-partition to -freorder-blocks even when
38426 unwinding is enabled.
38427 (sh_can_follow_jump): Return false if the followee jump is
38428 a crossing jump when -freorder-blocks-and-partition is specified.
38429 * config/sh/sh.md (*jump_compact_crossing): New insn.
38430
38431 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
38432 Kaz Kojima <kkojima@gcc.gnu.org>
38433
38434 PR target/64761
38435 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
38436 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
38437 (sh_can_redirect_branch): Rename to ...
38438 (sh_can_follow_jump): ... this. Constify argument types.
38439 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
38440 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
38441 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
38442 * doc/tm.texi: Regenerate.
38443
38444 2015-02-09 Jakub Jelinek <jakub@redhat.com>
38445
38446 PR sanitizer/64981
38447 * builtins.c (expand_builtin): Call targetm.expand_builtin
38448 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
38449
38450 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38451
38452 PR ipa/61548
38453 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
38454
38455 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38456
38457 PR ipa/63566
38458 * ipa-icf.c (set_local): New function.
38459 (sem_function::merge): Use it.
38460
38461 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38462
38463 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
38464 (add_type_duplicate): Fix comparison of BINFOs.
38465
38466 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38467
38468 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
38469 on getting VOID pointer.
38470
38471 2015-02-09 Jakub Jelinek <jakub@redhat.com>
38472
38473 PR target/64979
38474 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
38475 va_list escapes.
38476
38477 2015-02-09 Richard Biener <rguenther@suse.de>
38478
38479 * genmatch.c (replace_id): Copy expr_type.
38480
38481 2015-02-09 Richard Biener <rguenther@suse.de>
38482
38483 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
38484 (streamer_write_tree_bitfields): Declare.
38485 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
38486 properly unpack padding.
38487 (unpack_value_fields): Inline ...
38488 (streamer_read_tree_bitfields): ... here.
38489 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
38490 and properly add padding bits.
38491 (streamer_pack_tree_bitfields): Fold into ...
38492 (streamer_write_tree_bitfields): ... this new function,
38493 exposing the bitpack object.
38494 * lto-streamer-out.c (lto_write_tree_1): Call
38495 streamer_write_tree_bitfields.
38496
38497 2015-02-09 Richard Biener <rguenther@suse.de>
38498
38499 PR tree-optimization/54000
38500 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
38501 (struct ivopts_data): Add loop_loc member.
38502 (tree_ssa_iv_optimize_loop): Dump loop location.
38503 (create_new_ivs): Likewise, also dump number of IVs generated.
38504
38505 2015-02-09 Martin Liska <mliska@suse.cz>
38506
38507 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
38508 just if not yet registered.
38509 (ipa_icf_generate_summary): Register callgraph hooks.
38510
38511 2015-02-08 Andrew Pinski <apinski@cavium.com>
38512
38513 * config/aarch64/aarch64.c (gty_dummy): Delete.
38514
38515 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38516
38517 PR ipa/63566
38518 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
38519 (cgraph_node::local_p): Remove thunk related FIXME.
38520
38521 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38522
38523 PR ipa/63566
38524 * i386.c (ix86_function_regparm): Look through aliases to see if callee
38525 is local and optimized.
38526 (ix86_function_sseregparm): Likewise; also use target's SSE math
38527 settings; error out instead of silently generating wrong code
38528 on mismatches.
38529 (init_cumulative_args): Look through aliases.
38530
38531 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38532
38533 PR ipa/63566
38534 * ipa-split.c (execute_split_functions): Split if function has aliases.
38535
38536 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38537
38538 PR ipa/63566
38539 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
38540 aliases before trying to expand it.
38541 (cgraph_node::expand_thunk): Fix formating.
38542
38543 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
38544
38545 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
38546 (Using Assembly Language with C): Expand introduction.
38547 (Basic Asm): Copy-edit. Add more information about uses of
38548 basic asm.
38549 (Extended Asm): Copy-edit. Document new escape syntax and
38550 %l[label] syntax.
38551 (Global Reg Vars): Copy-edit.
38552 (Local Reg Vars): Likewise.
38553
38554 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
38555
38556 PR debug/2714
38557 PR bootstrap/64256
38558 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
38559 (DBX_CONTIN_CHAR): Define.
38560
38561 2015-02-06 Sebastian Pop <s.pop@samsung.com>
38562 Brian Rzycki <b.rzycki@samsung.com>
38563
38564 PR tree-optimization/64878
38565 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
38566 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
38567 Stop recursion at loop phi nodes after having visited a loop phi node.
38568
38569 2015-02-06 Jakub Jelinek <jakub@redhat.com>
38570
38571 * toplev.c (process_options): Change flag_ipa_ra before creating
38572 optimization_{default,current}_node.
38573
38574 PR ipa/64896
38575 * cgraphunit.c (cgraph_node::expand_thunk): If
38576 restype is not is_gimple_reg_type nor the thunk_fndecl
38577 returns aggregate_value_p, set restmp to a temporary variable
38578 instead of resdecl.
38579
38580 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
38581
38582 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
38583
38584 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
38585
38586 PR target/64205
38587 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
38588 add a general secondary reload handler for SDmode, unless we have
38589 both read/write support for SDmode.
38590
38591 2015-02-06 Jakub Jelinek <jakub@redhat.com>
38592
38593 PR middle-end/64937
38594 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
38595 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
38596 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
38597 1 before, push it to abstract_vec.
38598 (dwarf2out_abstract_function): Adjust caller. Don't call
38599 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
38600 DECL_ABSTRACT_P flags for all abstract_vec elts.
38601
38602 2015-02-06 Renlin Li <renlin.li@arm.com>
38603
38604 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
38605 complex gimple.
38606 * tree-ssa.c (execute_update_addresses_taken): Likewise.
38607
38608 2015-02-06 Jeff Law <law@redhat.com>
38609
38610 PR target/64889
38611 * config/h8300/h8300.c (push): New argument "in_prologue".
38612 Pass "in_prologue" along to "F".
38613 (h8300_push_pop): Corresponding changes.
38614 (h8300_expand_prologue): Likewise.
38615 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
38616
38617 2015-02-06 Jakub Jelinek <jakub@redhat.com>
38618
38619 PR rtl-optimization/64957
38620 PR debug/64817
38621 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
38622 IOR rather than for AND.
38623
38624 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
38625
38626 PR target/62631
38627 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
38628 of shift-add and (add + shift) operations. Rename local variable.
38629
38630 2015-02-05 Jeff Law <law@redhat.com>
38631
38632 PR target/17306
38633 * config/h8300/constraints.md (U): Correctly dectect
38634 "eightbit_data" memory addresses.
38635 * config/h8300/h8300.c (eightbit_constant_address_p): Also
38636 handle (const (plus (symbol_ref (x)))) where x is declared
38637 as an 8-bit data memory address.
38638 * config/h8300/h8300.md (call, call_value): Correctly detect
38639 "funcvec" functions.
38640
38641 PR target/43264
38642 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
38643 24 to 28 bits for the H8/300.
38644
38645 2015-02-06 Alan Modra <amodra@gmail.com>
38646
38647 PR target/64876
38648 * config/rs6000/rs6000.c (chain_already_loaded): New function.
38649 (rs6000_call_aix): Use it.
38650
38651 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
38652
38653 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
38654 check.
38655
38656 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
38657
38658 * config/h8300/constraints.md ("U" constraint): Use strict
38659 variant of REG_OK_FOR_BASE_P after reload has started.
38660
38661 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
38662
38663 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
38664 define to zero if !TARGET_NEON.
38665 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
38666
38667 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38668 Trevor Saunders <tsaunders@mozilla.com>
38669
38670 PR ipa/61548
38671 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
38672
38673 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38674
38675 PR ipa/61548
38676 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
38677 when removing varpool nodes.
38678
38679 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38680
38681 PR ipa/61548
38682 * varpool.c (varpool_node::remove): Fix order of variables.
38683
38684 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38685
38686 PR ipa/64686
38687 * ipa-inline.c (inline_small_functions): Fix ordering issue between
38688 speculation resolution and key updates.
38689
38690 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38691
38692 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
38693 about not letting any speculative edges unupdated.
38694
38695 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38696
38697 PR gcov/64123
38698 * gcov-io.c (gcov_var): Export.
38699
38700 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38701
38702 PR middle-end/64922
38703 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
38704 edges that become speculative.
38705
38706 2015-02-04 Jakub Jelinek <jakub@redhat.com>
38707
38708 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
38709 or DW_LANG_Fortran08.
38710 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
38711 DW_LANG_Fortran08.
38712 (gen_compile_unit_die): Handle "GNU Fortran2003" and
38713 "GNU Fortran2008" language strings.
38714 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
38715 * langhooks.h (lang_GNU_Fortran): New prototype.
38716 * langhooks.c (lang_GNU_Fortran): New function.
38717 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
38718 lang_GNU_Fortran.
38719
38720 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
38721
38722 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
38723 (RTX_OK_FOR_OLO10_P): Likewise.
38724
38725 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
38726
38727 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
38728
38729 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38730
38731 PR middle-end/64922
38732 * gimple.c: Include gimple-ssa.h.
38733 (maybe_remove_unused_call_args): New function.
38734 * gimple.h (maybe_remove_unused_call_args): Declare.
38735 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
38736 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
38737 * gimple-fold.c (gimple_fold_call): Likewise.
38738
38739 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
38740
38741 PR rtl-optimization/64905
38742 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
38743 pointer alignment if it isn't needed.
38744
38745 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
38746
38747 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
38748 cortex-a72.cortex-a53.
38749 * config/aarch64/aarch64-tune.md: Regenerate.
38750 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
38751
38752 2015-02-04 Nick Clifton <nickc@redhat.com>
38753
38754 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
38755 inside a MEM.
38756
38757 2015-02-04 Jakub Jelinek <jakub@redhat.com>
38758
38759 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
38760 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
38761 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
38762 of DEF_BUILTIN.
38763 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
38764 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
38765 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
38766 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
38767 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
38768 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
38769 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
38770 * tree-core.h (enum built_in_function): In between
38771 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
38772 for builtins that use DEF_BUILTIN_CHKP macro.
38773
38774 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
38775
38776 PR debug/64817
38777 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
38778 operands for tcc_comparison exprs. Fix typos.
38779
38780 PR debug/64817
38781 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
38782 of two XORs that have an intervening AND or IOR.
38783
38784 PR debug/64817
38785 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
38786 simplification of XOR of AND to not allocate new rtx before
38787 committing to a simplification.
38788
38789 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38790
38791 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
38792 manual swaps in all peepholes.
38793
38794 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38795
38796 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
38797 of manual swapping implementation.
38798 (aarch64_expand_vec_perm_const_1): Likewise.
38799
38800 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
38801
38802 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
38803 (generic_addrcost_table): Remove NAMED_PARAM.
38804 (cortexa57_addrcost_table): Likewise.
38805 (xgene1_addrcost_table): Likewise.
38806 (generic_regmove_table): Likewise.
38807 (cortexa53_regmove_table): Likewise.
38808 (xgene1_regmove_table): Likewise.
38809 (generic_vector_table): Likewise.
38810 (cortexa57_vector_table): Likewise.
38811 (xgene1_vector_table): Likewise.
38812 (generic_tunings): Likewise.
38813 (cortexa53_tunings): Likewise.
38814 (cortexa57_tunings): Likewise.
38815 (xgene1_tunings): Likewise.
38816
38817 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
38818
38819 * config/arm/arm-cores.def: Add cortex-a72 and
38820 cortex-a72.cortex-a53.
38821 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
38822 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
38823 * config/arm/arm-tune.md: Regenerate.
38824 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
38825 "cortex-a72.cortex-a53".
38826 * doc/invoke.texi (ARM Options/-mtune): Likewise.
38827
38828 2015-02-04 Nick Clifton <nickc@redhat.com>
38829
38830 PR target/64408
38831 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
38832 of accepted codes.
38833 (nonimmediate_di_operand): Likewise.
38834
38835 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
38836 prefixes of known F5 using MSP430 MCUs.
38837
38838 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38839
38840 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
38841 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
38842 instead of __builtin_sqrt.
38843
38844 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
38845
38846 * varasm.c (do_assemble_alias): Follow transparent alias
38847 chain for target.
38848 (default_assemble_visibility): Follow transparent alias
38849 chain for decl name.
38850
38851 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
38852
38853 PR middle-end/62103
38854 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
38855 to compute size of referenced value in the constant case.
38856
38857 2015-02-03 Jakub Jelinek <jakub@redhat.com>
38858
38859 PR rtl-optimization/64756
38860 * cse.c (invalidate_dest): New function.
38861 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
38862 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
38863 invalidate and do not record it.
38864
38865 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
38866
38867 PR target/64660
38868 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
38869 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
38870 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
38871 atomic_nand<mode>_soft_tcb): New insns.
38872 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
38873 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
38874 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
38875 Split into atomic_not_fetchsi_hard if operands[0] is unused.
38876 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
38877 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
38878 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
38879 atomic_not<mode>_hard if operands[0] is unused.
38880 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
38881 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
38882 if operands[0] is unused.
38883 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
38884 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
38885 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
38886 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
38887 unused.
38888 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
38889 into atomic_not<mode>_soft_tcb if operands[0] is unused.
38890 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
38891 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
38892 if operands[0] is unused.
38893 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
38894 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
38895 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
38896 atomic_nand_fetchsi_hard if operands[0] is unused.
38897 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
38898 atomic_nand<mode>_hard if operands[0] is unused.
38899 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
38900 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
38901 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
38902 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
38903 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
38904 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
38905 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
38906 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
38907 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
38908 atomic_not<mode>_hard if operands[0] is unused.
38909 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
38910 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
38911 unused.
38912 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
38913 into atomic_not<mode>_soft_tcb if operands[0] is unused.
38914 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
38915 atomic_nand<mode>_hard if operands[0] is unused.
38916 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
38917 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
38918
38919 2015-02-03 David Malcolm <dmalcolm@redhat.com>
38920
38921 PR jit/64810
38922 * Makefile.in (GCC_OBJS): Add gcc-main.o.
38923 * gcc-main.c: New file, containing "main" taken from gcc.c.
38924 * gcc.c (do_self_spec): Free decoded_options.
38925 (class driver): Move declaration to gcc.h.
38926 (main): Move declaration and implementation to new file
38927 gcc-main.c.
38928 (driver_get_configure_time_options): New function.
38929 * gcc.h (class driver): Move this declaration here, from
38930 gcc.c.
38931 (driver_get_configure_time_options): New declaration.
38932
38933 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
38934
38935 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
38936 cross-module inlining.
38937 * cgraph.h (cgraph_node): Add flag merged.
38938 * ipa-icf.c (sem_function::merge): Maintain it.
38939
38940 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
38941
38942 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
38943 instead of OBJECT_P.
38944
38945 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
38946
38947 PR target/62631
38948 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
38949 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
38950 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
38951 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
38952
38953 2015-02-03 Jakub Jelinek <jakub@redhat.com>
38954
38955 PR other/63504
38956 * combine.c (reg_n_sets_max): New variable.
38957 (can_change_dest_mode, reg_nonzero_bits_for_combine,
38958 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
38959 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
38960 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
38961 (rest_of_handle_combine): Initialize reg_n_sets_max.
38962
38963 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
38964
38965 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
38966 if some always_inline was inlined, apply changes before inlining
38967 heuristically.
38968
38969 2015-02-02 David Malcolm <dmalcolm@redhat.com>
38970
38971 PR jit/64810
38972 * config/arm/arm.c (arm_option_override): Set
38973 arm_selected_arch/cpu/tune to NULL on entry.
38974
38975 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
38976 Andrew Pinski <pinskia@gcc.gnu.org>
38977 Jakub Jelinek <jakub@gcc.gnu.org>
38978
38979 PR target/64231
38980 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
38981 integer typing for small model. Use IN_RANGE.
38982
38983 2015-02-02 Richard Biener <rguenther@suse.de>
38984
38985 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
38986 * tree-vrp.c (vrp_valueize_1): Likewise.
38987
38988 2015-02-02 Alan Modra <amodra@gmail.com>
38989
38990 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
38991 than mem for toc_restore.
38992 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
38993 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
38994 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
38995
38996 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
38997
38998 PR target/64047
38999 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
39000 explicit default options.
39001
39002 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
39003
39004 PR ipa/64872
39005 * ipa-utils.c (ipa_merge_profiles): Add release argument.
39006 * ipa-icf.c (sem_function::merge): Do not release body when merging.
39007 * ipa-utils.h (ipa_merge_profiles): Update prototype.
39008
39009 2015-02-01 Jakub Jelinek <jakub@redhat.com>
39010
39011 PR debug/64817
39012 * cfgexpand.c (deep_ter_debug_map): New variable.
39013 (avoid_deep_ter_for_debug): New function.
39014 (expand_debug_expr): If TERed SSA_NAME is in
39015 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
39016 instead of trying to expand SSA_NAME's def stmt.
39017 (expand_debug_locations): When expanding debug bind
39018 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
39019 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
39020 value.
39021 (pass_expand::execute): Call avoid_deep_ter_for_debug on
39022 all debug bind stmts. Delete deep_ter_debug_map after
39023 expand_debug_location if non-NULL and clear it.
39024
39025 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
39026
39027 PR target/64851
39028 * config/sh/sync.md (atomic_fetch_notsi_hard,
39029 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
39030 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
39031 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
39032 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
39033 atomic_not_fetch<mode>_soft_imask): New insns.
39034
39035 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39036
39037 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
39038 (rank_for_schedule_debug): Split from ...
39039 (rank_for_schedule): ... this.
39040 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
39041 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
39042
39043 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
39044
39045 * doc/md.texi (Machine Constraints): Alphabetize table by target.
39046 * doc/extend.texi (x86 Variable Attributes): Move section to
39047 correct alphabetization after renaming.
39048 (x86 Type Attributes): Likewise.
39049 (Target Builtins): Re-alphabetize menu.
39050 (x86 Built-in Functions): Move section to correct alphabetization
39051 after renaming.
39052 (x86 transactional memory intrinsics): Likewise.
39053 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
39054 and x86 Windows Options in table and menu.
39055 (x86 Options): Move section to correct alphabetization after
39056 renaming.
39057 (x86 Windows Options): Likewise.
39058
39059 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
39060
39061 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
39062 preferred names of the architecture and its 32- and 64-bit
39063 variants.
39064 * doc/invoke.texi: Likewise.
39065 * doc/md.texi: Likewise.
39066
39067 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
39068
39069 PR target/64882
39070 * config/i386/predicates.md (address_no_seg_operand): Reject
39071 non-CONST_INT_P operands in invalid mode.
39072
39073 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
39074
39075 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
39076 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
39077 * config/i386/predicates.md (address_no_seg_operand): Call
39078 address_operand with VOIDmode.
39079 (vsib_address_operand): Ditto.
39080 (address_mpx_no_base_operand): Ditto.
39081 (address_mpx_no_index_operand): Ditto.
39082
39083 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
39084
39085 PR target/64688
39086 * lra-constraints.c (original_subreg_reg_mode): New.
39087 (simplify_operand_subreg): Try to simplify subreg of const. Use
39088 original_subreg_reg_mode for it.
39089 (swap_operands): Update original_subreg_reg_mode.
39090 (curr_insn_transform): Set up original_subreg_reg_mode.
39091
39092 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
39093
39094 PR target/64617
39095 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
39096 function.
39097 (process_alt_operands): Use it.
39098 (curr_insn_transform): Check the optional reload pseudo class is
39099 ok for the mode.
39100
39101 2015-01-30 Joseph Myers <joseph@codesourcery.com>
39102
39103 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
39104 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
39105 prototype.
39106 * toplev.h (init_asm_output): Update comment on use of
39107 UNKNOWN_LOCATION with fatal_error.
39108 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
39109 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
39110 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
39111 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
39112 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
39113 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
39114 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
39115 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
39116 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
39117 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
39118 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
39119 fatal_error changed to pass input_location as first argument.
39120
39121 2015-01-30 Martin Liska <mliska@suse.cz>
39122
39123 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
39124 in #pragma GCC diagnostic guards.
39125
39126 2015-01-30 Richard Biener <rguenther@suse.de>
39127
39128 PR tree-optimization/64829
39129 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
39130 not add a widening conversion pattern but hand off extra
39131 widenings to callers.
39132 (vect_recog_widen_mult_pattern): Handle extra widening produced
39133 by vect_handle_widen_op_by_const.
39134 (vect_recog_widen_shift_pattern): Likewise.
39135 (vect_pattern_recog_1): Remove excess vertical space in dumping.
39136 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
39137 (vect_init_vector_1): Likewise.
39138 (vect_get_vec_def_for_operand): Likewise.
39139 (vect_finish_stmt_generation): Likewise.
39140 (vectorizable_load): Likewise.
39141 (vect_analyze_stmt): Likewise.
39142 (vect_is_simple_use): Likewise.
39143
39144 2015-01-29 Jeff Law <law@redhat.com>
39145
39146 * combine.c (try_combine): Fix typo in comment.
39147
39148 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
39149
39150 PR target/64580
39151 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
39152 (rs6000_stack_info): Add assert.
39153 (rs6000_output_savres_externs): New function, split off from...
39154 (rs6000_output_function_prologue): ... here. Do not call it for
39155 thunks.
39156
39157 2015-01-29 Jeff Law <law@redhat.com>
39158
39159 PR target/15184
39160 * combine.c (try_combine): If I0 is a memory load and I3 a store
39161 to a related address, increase the "goodness" of doing a 4-insn
39162 combination with I0-I3.
39163 (make_field_assignment): Handle SUBREGs in the ior+and case.
39164
39165 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
39166
39167 PR tree-optimization/64746
39168 * tree-if-conv.c (mask_exists): New function.
39169 (predicate_mem_writes): Save created mask with given size for further
39170 use.
39171 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
39172 (ifcvt_repair_bool_pattern): Collect all statements that are root
39173 of bool pattern and use iterative algorithm to remove multiple uses
39174 of predicates, display number of required iterations.
39175
39176 2015-01-29 Richard Biener <rguenther@suse.de>
39177
39178 PR tree-optimization/64853
39179 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
39180 stmt will get simulated again.
39181 * tree-ssa-ccp.c (valueize_op_1): Likewise.
39182
39183 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39184
39185 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
39186 return_in_pc. Remove redundant assignments.
39187 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
39188 (arm_expand_epilogue): Don't compare boolean with true in if condition.
39189
39190 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
39191
39192 * config/i386/i386.c (ix86_mode_after): Make static.
39193
39194 2015-01-29 Richard Biener <rguenther@suse.de>
39195
39196 PR tree-optimization/64844
39197 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
39198 dump cost model analysis.
39199 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
39200 Do not register adjusted load/store costs here.
39201
39202 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
39203 Uros Bizjak <ubizjak@gmail.com>
39204
39205 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
39206 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
39207 using x86_use_pseudo_pic_reg.
39208 * config/i386/i386.c (ix86_conditional_register_usage): Remove
39209 support for fixed PIC register.
39210 (ix86_use_pseudo_pic_reg): Not static any more.
39211
39212 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
39213
39214 PR middle-end/64805
39215 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
39216 to avoid error in cgraph node verification.
39217
39218 2015-01-29 Marek Polacek <polacek@redhat.com>
39219
39220 * doc/standards.texi: Reflect that the default for C is gnu11.
39221
39222 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
39223
39224 PR target/64761
39225 * reorg.c (switch_text_sections_between_p): New function.
39226 (relax_delay_slots): Call it when testing if the jump insn
39227 is removable. Use targetm.can_follow_jump when testing if
39228 the conditional branch can follow an unconditional jump.
39229
39230 2015-01-27 Caroline Tice <cmtice@google.com>
39231
39232 Committing VTV Cywin/Ming patch for Patrick Wollgast
39233 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
39234 if -fvtable-verify=preinit/std is used.
39235 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
39236 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
39237 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
39238 if -fvtable-verify=preinit/std is used.
39239 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
39240 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
39241 if -fvtable-verify=preinit/std is used.
39242 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
39243 * config/i386/mingw32.h (LIB_SPEC): Likewise.
39244 * varasm.c (assemble_variable): Add code to properly set the comdat
39245 section and name for the .vtable_map_vars section in case the
39246 target is PE or COFF.
39247
39248 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
39249
39250 PR ipa/64801
39251 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
39252 make sane BB profile.
39253 (cgraph_node::expand_thunk): Make sane BB profile.
39254 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
39255 * cgraph.h (init_lowered_empty_function): Update prototype.
39256 * config/i386/i386.c (make_resolver_func): Update call.
39257 * predict.c (gate): Disable branch prediction pass if
39258 profile is already there.
39259
39260 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
39261
39262 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
39263 * opth-gen.awk: Likewise.
39264 * common.opt: Mark flag_fp_contract_mode as Optimization.
39265
39266 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
39267
39268 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
39269 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
39270
39271 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
39272
39273 PR target/64659
39274 * config/sh/predicates.md (atomic_arith_operand,
39275 atomic_logical_operand): Remove.
39276 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
39277 (atomic_arith_operand_0): New predicate.
39278 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
39279 Use atomic_arith_operand_0 for input values.
39280 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
39281 atomic_compare_and_swap<mode>_soft_gusa,
39282 atomic_compare_and_swap<mode>_soft_tcb,
39283 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
39284 arith_reg_operand instead of register_operand.
39285 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
39286 atomic_arith_operand_0 for newval input.
39287 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
39288 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
39289 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
39290 arith_reg_operand instead of register_operand.
39291 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
39292 fetchop_predicate_1, fetchop_constraint_1_llcs,
39293 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
39294 fetchop_constraint_1_imask): New code iterator attributes.
39295 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
39296 register_operand. Use fetchop_predicate_1.
39297 (atomic_fetch_<fetchop_name>si_hard,
39298 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
39299 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
39300 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
39301 and arith_reg_operand instead of register_operand. Use
39302 fetchop_predicate_1, fetchop_constraint_1_gusa.
39303 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
39304 and arith_reg_operand instead of register_operand. Use
39305 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
39306 to allow R0 usage.
39307 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
39308 and arith_reg_operand instead of register_operand. Use
39309 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
39310 to allow R0 usage.
39311 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
39312 register_operand. Use atomic_logical_operand_1.
39313 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
39314 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
39315 arith_reg_operand instead of register_operand.
39316 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
39317 Use arith_reg_dest and arith_reg_operand instead of register_operand.
39318 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
39319 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
39320 register_operand. Use fetchop_predicate_1.
39321 (atomic_<fetchop_name>_fetchsi_hard,
39322 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
39323 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
39324 fetchop_constraint_1_llcs.
39325 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
39326 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
39327 fetchop_constraint_1_gusa.
39328 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
39329 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
39330 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
39331 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
39332 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
39333 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
39334 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
39335 register_operand. Use atomic_logical_operand_1.
39336 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
39337 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
39338 arith_reg_operand instead of register_operand.
39339 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
39340 arith_reg_operand instead of register_operand. Use logical_operand
39341 and K08. Adjust asm sequence to allow R0 usage.
39342 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
39343 arith_reg_operand instead of register_operand. Use logical_operand
39344 and K08.
39345
39346 2015-01-28 Jakub Jelinek <jakub@redhat.com>
39347
39348 PR other/63504
39349 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
39350 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
39351 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
39352 only get_full_len HOST_WIDE_INTs from get_val () array rather than
39353 all bits in *val_wide.
39354
39355 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
39356
39357 * varpool.c (tls_model_names): Fix names.
39358 (varpool_node::dump): Dump tls- prefix for tls models.
39359
39360 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
39361 Bernd Schmidt <bernds@codesourcery.com>
39362 Nathan Sidwell <nathan@codesourcery.com>
39363
39364 * config/nvptx/mkoffload.c: New file.
39365 * config/nvptx/t-nvptx: Add build rules for it.
39366 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
39367 (extra_programs): Add mkoffload.
39368 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
39369 function.
39370 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
39371
39372 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
39373
39374 PR middle-end/64809
39375 * cfgexpand.c (reorder_operands): Skip debug gimples.
39376
39377 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
39378
39379 PR tree-optimization/64277
39380 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
39381 range info when possible to refine estimation.
39382
39383 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
39384
39385 PR tree-optimization/64718
39386 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
39387 be a 16bit unsigned integer when n->range is 16.
39388 (bswap_replace): Convert src to that type if necessary for all bswap
39389 sizes. Fix rotation right notation in nearby comment. Use bswap_type
39390 set in pass_optimize_bswap::execute ().
39391
39392 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
39393
39394 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
39395 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
39396 integer and floating point variants.
39397 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
39398
39399 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
39400
39401 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
39402 for all vector modes.
39403
39404 2015-01-28 Jakub Jelinek <jakub@redhat.com>
39405
39406 PR bootstrap/64612
39407 * doc/sourcebuild.texi (comdat_group): Document.
39408
39409 2015-01-28 Terry Guo <terry.guo@arm.com>
39410
39411 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
39412
39413 2015-01-27 David Malcolm <dmalcolm@redhat.com>
39414
39415 * toplev.c (print_version): Add param "show_global_state", and
39416 only print GGC and plugin information if it is true.
39417 (init_asm_output): Pass in "true" for the new param when calling
39418 print_version.
39419 (process_options): Likewise.
39420 (toplev::main): Likewise.
39421 * toplev.h (print_version): Add new param to decl.
39422
39423 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
39424
39425 PR ipa/60871
39426 PR ipa/64139
39427 * tree.c (lookup_binfo_at_offset): New function.
39428 (get_binfo_at_offset): Use it.
39429
39430 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
39431
39432 PR ipa/64282
39433 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
39434 on vtable being vtable.
39435
39436 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
39437
39438 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
39439 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
39440 -mhotpatch= option.
39441 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
39442 -mno-hotpatch options. Change syntax of -mhotpatch= option.
39443 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
39444 Renamed.
39445 (s390_hotpatch_trampoline_halfwords_max): Renamed.
39446 (s390_hotpatch_hw_max): New name.
39447 (s390_hotpatch_trampoline_halfwords): Renamed.
39448 (s390_hotpatch_hw_before_label): New name.
39449 (get_hotpatch_attribute): Removed.
39450 (s390_hotpatch_hw_after_label): New name.
39451 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
39452 attribute.
39453 (s390_attribute_table): Ditto.
39454 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
39455 (s390_function_num_hotpatch_hw): New name.
39456 Remove special handling of inline functions and hotpatching.
39457 Return number of nops before and after the function label.
39458 (s390_can_inline_p): Removed.
39459 (s390_asm_output_function_label): Emit a configurable number of nops
39460 after the function label.
39461 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
39462 (TARGET_CAN_INLINE_P) Removed.
39463 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
39464
39465 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39466 Jiong Wang <jiong.wang@arm.com>
39467
39468 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
39469 of scratch reg.
39470 (cb<optab><mode>1): Likewise.
39471 * config/aarch64/iterators.md (bcond): New define_code_attr.
39472
39473 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39474
39475 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
39476 memory accesses.
39477
39478 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39479
39480 * config/s390/s390.c (s390_register_move_cost): Increase costs for
39481 FPR->GPR moves.
39482
39483 2015-01-27 Richard Biener <rguenther@suse.de>
39484
39485 * tree-vrp.c (update_value_range): Intersect the range with
39486 old recorded SSA name range information.
39487
39488 2015-01-27 Nick Clifton <nickc@redhat.com>
39489
39490 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
39491 BC, DE and HL registers directly, not via AX.
39492 When decrementing the stack pointer by a large amount, transfer SP
39493 into AX and perform the subtraction there.
39494 (rl78_expand_epilogue): Perform the inverse of the above
39495 enhancements.
39496
39497 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39498
39499 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
39500
39501 2015-01-27 Jakub Jelinek <jakub@redhat.com>
39502 Yury Gribov <y.gribov@samsung.com>
39503
39504 PR ubsan/64741
39505 * ubsan.c (ubsan_source_location): Refactor code.
39506 (ubsan_type_descriptor): Update type size. Refactor code.
39507
39508 2015-01-27 Richard Biener <rguenther@suse.de>
39509
39510 PR tree-optimization/56273
39511 PR tree-optimization/59124
39512 PR tree-optimization/64277
39513 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
39514 from the first VRP pass.
39515
39516 2015-01-27 Jakub Jelinek <jakub@redhat.com>
39517
39518 PR ipa/64776
39519 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
39520 handle the first argument in the same loop as all the other arguments.
39521
39522 PR rtl-optimization/61058
39523 * jump.c (cleanup_barriers): Update basic block boundaries
39524 if BLOCK_FOR_INSN is non-NULL on PREV.
39525
39526 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
39527
39528 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
39529 bounds narrowing, already instrumented calls and calls to
39530 not instrumentable functions.
39531
39532 2015-01-27 Jakub Jelinek <jakub@redhat.com>
39533
39534 PR tree-optimization/64807
39535 * wide-int.cc (wi::divmod_internal): Clear
39536 b_dividend[dividend_blocks_needed].
39537
39538 2015-01-26 DJ Delorie <dj@redhat.com>
39539
39540 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
39541 volatile memory references.
39542
39543 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
39544
39545 PR target/49263
39546 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
39547 remove_insn.
39548 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
39549 shifts if it already fits into K08.
39550
39551 2015-01-26 Jakub Jelinek <jakub@redhat.com>
39552
39553 PR ipa/64730
39554 * ipa-inline.c (inline_small_functions): Print "unknown" even
39555 if edge->call_stmt is non-NULL, but has builtins or unknown
39556 location.
39557
39558 PR middle-end/64421
39559 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
39560 with asterisk, skip the first character.
39561
39562 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
39563
39564 PR target/64806
39565 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
39566 order change.
39567
39568 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
39569
39570 PR target/64795
39571 * config/i386/i386.md (*movdi_internal): Also check operand 0
39572 to determine TYPE_LEA operand.
39573 (*movsi_internal): Ditto.
39574
39575 2015-01-26 Jakub Jelinek <jakub@redhat.com>
39576
39577 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
39578 OPTION_MASK_QUAD_MEMORY_ATOMIC.
39579
39580 2015-01-26 Renlin Li <renlin.li@arm.com>
39581
39582 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
39583 the comment.
39584 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
39585 for higher part.
39586
39587 2015-01-26 Richard Biener <rguenther@suse.de>
39588
39589 PR middle-end/64764
39590 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
39591 combining two BIT_AND_EXPR predicates.
39592
39593 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
39594
39595 PR bootstrap/64754
39596 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
39597
39598 2015-01-26 Terry Guo <terry.guo@arm.com>
39599
39600 * config/arm/arm.c (arm_file_start): Update the assignment of
39601 Tag_ABI_HardFP_use.
39602
39603 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
39604
39605 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
39606 pipeline model.
39607 config/arm/arm.md: Include the new Cortex-A57 model.
39608 (generic_sched): Don't use generic_sched when tuning for
39609 Cortex-A57.
39610
39611 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
39612 Uros Bizjak <ubizjak@gmail.com>
39613
39614 * config/i386/i386.c (get_builtin_code_for_version): Add
39615 support for BMI and BMI2 multiversion functions.
39616
39617 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39618
39619 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
39620 (extract_bit_field): Likewise.
39621 (extract_low_bits): Likewise.
39622 (expand_mult): Likewise.
39623 (expand_mult_highpart_adjust): Likewise.
39624
39625 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
39626
39627 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
39628 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
39629 * config/i386/i386.c (processor_model): Add
39630 M_INTEL_COREI7_BROADWELL.
39631 (arch_names_table): Add "broadwell".
39632
39633 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
39634
39635 PR target/49263
39636 PR target/53987
39637 PR target/64345
39638 PR target/59533
39639 PR target/52933
39640 PR target/54236
39641 PR target/51244
39642 * config/sh/sh-protos.h
39643 (sh_extending_set_of_reg::can_use_as_unextended_reg,
39644 sh_extending_set_of_reg::use_as_unextended_reg,
39645 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
39646 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
39647 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
39648 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
39649 (sh_treg_insns): New class.
39650 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
39651 (scope_counter): New class.
39652 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
39653 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
39654 sh_extending_set_of_reg::can_use_as_unextended_reg,
39655 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
39656 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
39657 sh_split_treg_set_expr): New functions.
39658 (addsubcosts): Handle treg_set_expr.
39659 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
39660 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
39661 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
39662 (sh_insn_operands_modified_between_p): Make non-static.
39663 * config/sh/predicates.md (zero_extend_movu_operand): Allow
39664 simple_mem_operand in addition to displacement_mem_operand.
39665 (zero_extend_operand): Don't allow zero_extend_movu_operand.
39666 (treg_set_expr, treg_set_expr_not_const01,
39667 arith_reg_or_treg_set_expr): New predicates.
39668 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
39669 arith_or_int_operand instead of logical_operand. Convert to
39670 insn_and_split. Try to optimize constant operand in splitter.
39671 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
39672 (*tstqi_t_zero): Delete.
39673 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
39674 (tstsi_t_and_not): Delete.
39675 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
39676 Convert to insn_and_split.
39677 (unnamed split, tstsi_t_zero_extract_xor,
39678 tstsi_t_zero_extract_subreg_xor_little,
39679 tstsi_t_zero_extract_subreg_xor_big): Delete.
39680 (*tstsi_t_shift_mask): New insn_and_split.
39681 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
39682 to recombine with surrounding insns when splitting.
39683 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
39684 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
39685 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
39686 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
39687 (*cbranch_div0s: Delete.
39688 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
39689 Try to recombine with surrounding insns when splitting. Add operand
39690 order variants.
39691 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
39692 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
39693 *addc_r_r_msb, *addc_2r_msb): Delete.
39694 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
39695 order variant.
39696 (*addc_negreg_t): New insn_and_split.
39697 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
39698 Try to recombine with surrounding insns when splitting.
39699 Add operand order variants.
39700 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
39701 insn_and_split patterns.
39702 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
39703 surrounding insns when splitting.
39704 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
39705 (*rotcl): Likewise. Add zero_extract variant.
39706 (*ashrsi2_31): New insn_and_split.
39707 (*negc): Convert to insn_and_split. Use treg_set_expr.
39708 (*zero_extend<mode>si2_disp_mem): Update comment.
39709 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
39710 condition.
39711 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
39712 with surrounding insns when splitting.
39713 (any_treg_expr_to_reg): New insn_and_split.
39714 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
39715 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
39716 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
39717 *zero_extract_2): New single bit zero extract patterns.
39718 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
39719 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
39720 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
39721 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
39722 set destination.
39723 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
39724 register_operand for set source.
39725
39726 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
39727
39728 * i386.opt (prefetch_sse): New targetsave.
39729 * i386.c (ix86_function_specific_save): Save prefetch_sse.
39730 (ix86_function_specific_restore): Restore prefetch_sse and initialize
39731 ix86_cost/ix86_tune_cost.
39732
39733 2015-01-23 David Malcolm <dmalcolm@redhat.com>
39734
39735 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
39736 Support the JIT by using 0 as the language type.
39737
39738 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
39739
39740 PR target/64317
39741 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
39742 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
39743 (mark_regno_live, process_bb_lives): Pass new parameter value to
39744 make_hard_regno_born.
39745
39746 2015-01-23 Jakub Jelinek <jakub@redhat.com>
39747
39748 PR rtl-optimization/63637
39749 PR rtl-optimization/60663
39750 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
39751 if elt->cost is MAX_COST for ASM_OPERANDS.
39752 (find_sets_in_insn): Fix up comment typo.
39753 (cse_insn): Don't set src_volatile for all non-volatile
39754 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
39755 or with "memory" clobber. Set elt->cost to MAX_COST
39756 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
39757 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
39758
39759 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
39760
39761 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
39762 alternative 1.
39763
39764 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
39765
39766 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
39767 libgcc/config/i386/elf-lib.h.
39768
39769 2015-01-23 Jakub Jelinek <jakub@redhat.com>
39770
39771 PR driver/64737
39772 * gcc.c (print_configuration): Don't print a blank line at the end
39773 here...
39774 (run_attempt): ... but here unstead.
39775
39776 PR middle-end/64734
39777 * omp-low.c (scan_sharing_clauses): Don't ignore
39778 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
39779 on target data/update constructs.
39780
39781 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
39782
39783 PR target/50928
39784 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
39785 (DEBUG_RELOAD): Removed define.
39786 (m32c_limit_reload_class): Enable traces with if DEBUG0.
39787 (m32c_function_arg): Added a type cast.
39788 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
39789 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
39790 * config/m32c/bitops.md (andqi3_16): Likewise.
39791 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
39792 (push_a01_l): Likewise.
39793
39794 2015-01-23 David Malcolm <dmalcolm@redhat.com>
39795
39796 PR jit/64721
39797 * main.c (main): Construct toplev instances with init_signals=true.
39798 * toplev.c (general_init): Add param "init_signals", and use it to
39799 conditionalize the calls to signal and host_hooks.extra_signals.
39800 (toplev::toplev): Add param "init_signals".
39801 (toplev::main): When invoking general_init, pass m_init_signals
39802 to control whether signal-handlers are installed.
39803 * toplev.h (toplev::toplev): Add param "init_signals".
39804 (toplev::m_init_signals): New field.
39805
39806 2015-01-23 David Malcolm <dmalcolm@redhat.com>
39807
39808 PR jit/64722
39809 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
39810 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
39811 latter may be affected by the former (e.g. on i686).
39812
39813 2015-01-23 Martin Liska <mliska@suse.cz>
39814
39815 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
39816 false positive during profiledbootstrap.
39817
39818 2015-01-23 Tom de Vries <tom@codesourcery.com>
39819
39820 PR libgomp/64672
39821 * lto-opts.c (lto_write_options): Output non-explicit conservative
39822 -fno-openacc.
39823 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
39824 (append_compiler_options): Pass -fopenacc through.
39825
39826 2015-01-23 Tom de Vries <tom@codesourcery.com>
39827
39828 PR libgomp/64707
39829 * lto-opts.c (lto_write_options): Output non-explicit conservative
39830 -fno-openmp.
39831 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
39832 (append_compiler_options): Pass -fopenmp through.
39833
39834 2015-01-23 Jakub Jelinek <jakub@redhat.com>
39835
39836 PR debug/64511
39837 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
39838 GTY markup.
39839
39840 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
39841 * diagnostic.def (DK_ICE_NOBT): New kind.
39842 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
39843 like DK_ICE, but never print backtrace.
39844 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
39845 (internal_error_no_backtrace): New function.
39846 * gcc.c (execute): Use internal_error_no_backtrace instead of
39847 internal_error.
39848
39849 2015-01-22 Jeff Law <law@redhat.com>
39850
39851 PR target/52076
39852 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
39853 improve code density for small immediate to memory case.
39854 (insv): Better handle bitfield assignments when the field is
39855 being set to all ones.
39856 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
39857 operand predicate.
39858
39859 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39860 Jakub Jelinek <jakub@redhat.com>
39861
39862 PR middle-end/64729
39863 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
39864 for !TARGET_LIBC_PROVIDES_SSP version and
39865 -fstack-protector-{all,strong,explicit} otherwise.
39866 * config/freebsd.h (LINK_SSP_SPEC): Handle
39867 -fstack-protector-{strong,explicit}.
39868
39869 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
39870 H.J. Lu <hongjiu.lu@intel.com>
39871
39872 PR ipa/64694
39873 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
39874 heap.
39875
39876 2015-01-22 Wei Mi <wmi@google.com>
39877
39878 PR rtl-optimization/64557
39879 * dse.c (record_store): Call get_addr for mem_addr.
39880 (check_mem_read_rtx): Likewise.
39881
39882 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
39883
39884 * fold-const.c (const_binop): Add early return for non-tcc_binary.
39885
39886 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
39887
39888 * toplev.c (init_local_tick): Process the failure when read
39889 fails for random_seed.
39890
39891 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
39892 'pretty_name' to avoid memory overflow.
39893
39894 2015-01-22 Richard Biener <rguenther@suse.de>
39895
39896 PR middle-end/64728
39897 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
39898 abnormal coalescing on undefined SSA names.
39899
39900 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
39901
39902 PR target/64688
39903 PR target/64477
39904 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
39905 for alternative 3.
39906 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
39907
39908 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
39909
39910 PR middle-end/63325
39911 * fold-const.c (fold_checksum_tree): Don't include value of
39912 expr->decl_with_vis.symtab_node in the checksum.
39913
39914 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39915
39916 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
39917
39918 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
39919
39920 PR driver/64690
39921 * gcc.c (insert_comments): New function.
39922 (try_generate_repro): Call it.
39923 (append_text): Removed.
39924
39925 2015-01-22 Richard Biener <rguenther@suse.de>
39926
39927 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
39928 with IL incompatible options. Properly honor user optimize
39929 attributes.
39930
39931 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
39932
39933 PR rtl-optimization/64682
39934 * combine.c (distribute_notes): When moving a death note for
39935 a register that is set in the new I2, make sure to put it
39936 before that new I2.
39937
39938 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
39939
39940 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
39941 not TARGET_DEFAULT.
39942
39943 2015-01-21 Jakub Jelinek <jakub@redhat.com>
39944
39945 PR debug/64511
39946 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
39947 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
39948 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
39949
39950 PR sanitizer/64706
39951 * doc/invoke.texi (-fsanitize=vptr): Document.
39952
39953 PR rtl-optimization/62078
39954 * dse.c: Include cfgcleanup.h.
39955 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
39956 anything call purge_all_dead_edges and cleanup_cfg at the end
39957 of the pass.
39958
39959 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
39960
39961 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
39962 edges.
39963
39964 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
39965
39966 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
39967 decl attribute.
39968
39969 2015-01-21 David Sherwood <david.sherwood@arm.com>
39970 Tejas Belagod <Tejas.Belagod@arm.com>
39971
39972 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
39973 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
39974 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
39975 Removed.
39976
39977 2015-01-21 David Sherwood <david.sherwood@arm.com>
39978 Tejas Belagod <Tejas.Belagod@arm.com>
39979
39980 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
39981 (aarch64_reverse_mask): New decls.
39982 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
39983 (insn_count): New mode_attr.
39984 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
39985 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
39986 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
39987 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
39988 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
39989 (aarch64_simd_st4): New patterns.
39990 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
39991 (aarch64_reverse_mask): New functions.
39992
39993 2015-01-21 Alan Hayward <alan.hayward@arm.com>
39994
39995 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
39996 Declare.
39997 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
39998 addressing modes for BE.
39999 (aarch64_print_operand): Add 'R' specifier.
40000 (aarch64_simd_disambiguate_copy): Delete.
40001 (aarch64_simd_emit_reg_reg_move): New function.
40002 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
40003 in define_splits for structural moves.
40004 (mov<mode>): Use less restrictive predicates.
40005 (*aarch64_mov<mode>): Simplify and only allow for LE.
40006 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
40007
40008 2015-01-21 Alan Hayward <alan.hayward@arm.com>
40009
40010 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
40011
40012 2015-01-21 Richard Henderson <rth@redhat.com>
40013
40014 PR target/64669
40015 * ccmp.c (used_in_cond_stmt_p): Remove.
40016 (expand_ccmp_expr): Don't use it.
40017
40018 2015-01-21 Nick Clifton <nickc@redhat.com>
40019
40020 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
40021 PARALLELs.
40022
40023 2015-01-21 Richard Biener <rguenther@suse.de>
40024
40025 PR middle-end/64313
40026 * tree-core.h (builtin_info, builtin_info_type): Turn from
40027 an object with two arrays into an array of an object with
40028 decl and two flags, implicit_p and declared_p.
40029 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
40030 set_builtin_decl, set_builtin_decl_implicit_p,
40031 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
40032 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
40033 * builtins.c (builtin_info): Adjust.
40034 * gimplify.c (gimplify_addr_expr): References to builtins
40035 that have been declared by the user makes them eligible for
40036 use by the compiler. Call set_builtin_decl_implicit_p on them.
40037
40038 2015-01-20 Jeff Law <law@redhat.com>
40039
40040 PR target/59946
40041 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
40042 allow pc-relative addresses in operand predicates or constraints.
40043
40044 2015-01-21 Bin Cheng <bin.cheng@arm.com>
40045
40046 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
40047 neon on aarch32 processors for stringops.
40048
40049 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
40050
40051 PR ipa/63576
40052 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
40053
40054 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
40055
40056 PR lto/45375
40057 * ipa-inline.c: Include lto-streamer.h
40058 (report_inline_failed_reason): Output source file differences and
40059 flags on optimization/target node mismatch.
40060 (can_inline_edge_p): Consider caller to be the outer inline function;
40061 be less restrictive about matching opimize and optimize_size attributes.
40062 (inline_account_function_p): Break out from ...
40063 (inline_small_functions): ... here.
40064 * ipa-inline-transform.c (clone_inlined_nodes): Use
40065 inline_account_function_p.
40066 (inline_call): Use optimize attribution; use inline_account_function_p.
40067 (inline_transform): Use opt_for_fn.
40068 * ipa-inline.h (inline_account_function_p): Declare.
40069
40070 2015-01-20 Jakub Jelinek <jakub@redhat.com>
40071
40072 PR debug/64663
40073 * dwarf2out.c (decl_piece_node): Don't put bitsize into
40074 mode if bitsize <= 0.
40075 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
40076 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
40077 sizes and positions.
40078
40079 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
40080
40081 * config/nios2/nios2.c (nios2_asm_file_end): Implement
40082 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
40083 needed.
40084 (TARGET_ASM_FILE_END): Define.
40085
40086 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40087
40088 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
40089 (struct tune_params): Use the enum.
40090 * arm.c (arm_*_tune): Update.
40091 (arm_option_override): Update.
40092
40093 2015-01-20 Richard Biener <rguenther@suse.de>
40094
40095 PR ipa/64684
40096 * ipa-reference.c (add_static_var): Inline ...
40097 (analyze_function): ... here after splitting out from ...
40098 (is_proper_for_analysis): ... this.
40099
40100 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
40101
40102 PR target/64149
40103 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
40104 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
40105 replace the conditional with it's true branch.
40106 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
40107 (arm_lra_p): Remove.
40108
40109 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
40110
40111 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
40112
40113 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
40114
40115 * config/tilegx/mul-tables.c: Move symtab.h include after
40116 coretypes.h include.
40117 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
40118 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
40119 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
40120 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
40121 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
40122
40123 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
40124
40125 PR bootstrap/64676
40126 Revert:
40127 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
40128
40129 PR rtl-optimization/64081
40130 * loop-iv.c (def_pred_latch_p): New function.
40131 (latch_dominating_def): Allow specific cases with non-single
40132 definitions.
40133 (iv_get_reaching_def): Likewise.
40134 (check_complex_exit_p): New function.
40135 (check_simple_exit): Use check_complex_exit_p to allow certain cases
40136 with exits not executing on any iteration.
40137
40138 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
40139
40140 PR lto/45375
40141 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
40142 to set branch cost.
40143
40144 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
40145
40146 PR lto/45375
40147 * i386.c (gate): Check flag_expensive_optimizations and
40148 optimize_size.
40149 (ix86_option_override_internal): Drop optimize_size condition
40150 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
40151 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
40152 MASK_PREFER_AVX128.
40153 (ix86_avx256_split_vector_move_misalign,
40154 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
40155 * sse.md (all uses of TARGET_PREFER_AVX128): Add
40156 optimize_insn_for_speed_p check.
40157
40158 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
40159
40160 * config/mips/mips.h (FP_ASM_SPEC): New define.
40161 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
40162 instead.
40163
40164 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
40165
40166 PR target/53988
40167 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
40168 nullptr for insn when reaching the first insn.
40169 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
40170 (sh_insn_operands_modified_between_p): Add nullptr check.
40171 (sh_find_extending_set_of_reg): Fix log message. Don't accept
40172 sign extending mem load if the insn contains any UNSPEC or
40173 UNSPEC_VOLATILE.
40174
40175 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
40176
40177 * params.def (inline-unit-growth): Drop to 15%.
40178 * invoke.texi (inline-unit-growth): Document change.
40179
40180 2015-01-19 Martin Liska <mliska@suse.cz>
40181
40182 PR ipa/64668
40183 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
40184 function for second argument of OBJ_TYPE_REF.
40185
40186 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
40187
40188 PR ipa/64218
40189 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
40190 whether function is an alias.
40191
40192 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
40193
40194 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
40195 cases.
40196
40197 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
40198
40199 PR rtl-optimization/64671
40200 * lra-remat.c (operand_to_remat): Don't consider jump and call
40201 insns.
40202
40203 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
40204
40205 PR target/59828
40206 * config/rs6000/default64.h: Include rs6000-cpus.def.
40207 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
40208 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
40209 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
40210 and POWER8.
40211 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
40212 POWER8.
40213 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
40214 pseudo-op to specify assembler dialect.
40215
40216 2015-01-19 Martin Liska <mliska@suse.cz>
40217
40218 PR ipa/64664
40219 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
40220 Handle safe potentially removed nodes during filtering.
40221
40222 2015-01-19 Martin Liska <mliska@suse.cz>
40223
40224 * doc/extend.texi (no_icf): Add new attribute description.
40225 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
40226 where the pass attempts to merge a function with no_icf attribute.
40227
40228 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
40229
40230 PR target/64532
40231 * doc/md.texi (ARM Options): Document register constraints.
40232
40233 2015-01-19 Jiong Wang <jiong.wang@arm.com>
40234 Andrew Pinski <apinski@cavium.com>
40235
40236 PR target/64304
40237 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
40238 (ashl<mode>3): Don't expand if operands[2] is not constant.
40239
40240 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40241
40242 PR target/64448
40243 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
40244 Match xor-and-xor RTL pattern.
40245
40246 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
40247
40248 PR rtl-optimization/64081
40249 * loop-iv.c (def_pred_latch_p): New function.
40250 (latch_dominating_def): Allow specific cases with non-single
40251 definitions.
40252 (iv_get_reaching_def): Likewise.
40253 (check_complex_exit_p): New function.
40254 (check_simple_exit): Use check_complex_exit_p to allow certain cases
40255 with exits not executing on any iteration.
40256
40257 2015-01-19 Jakub Jelinek <jakub@redhat.com>
40258
40259 * common.opt (fgraphite): Fix a typo.
40260
40261 2015-01-19 Felix Yang <felix.yang@huawei.com>
40262
40263 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
40264 pattern.
40265 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
40266 uminp, smax_nanp, smin_nanp): New builtins.
40267 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
40268 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
40269 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
40270 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
40271 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
40272 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
40273 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
40274 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
40275 vpminnms_f32): Rewrite using builtin functions.
40276
40277 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
40278
40279 PR libgomp/64625
40280 * omp-low.c (offload_symbol_decl): Remove variable.
40281 (get_offload_symbol_decl): Remove function.
40282 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
40283 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
40284 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
40285 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
40286 BUILT_IN_GOACC_UPDATE don't pass it at all.
40287
40288 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
40289
40290 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
40291 callers.
40292
40293 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
40294
40295 * ipa-chkp.c (chkp_produce_thunks): Add early param
40296 to split thunks production into two passes. Keep
40297 'always_inline' function bodies after the first pass.
40298 (pass_data_ipa_chkp_early_produce_thunks): New.
40299 (pass_ipa_chkp_early_produce_thunks): New.
40300 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
40301 chkp_produce_thunks signature.
40302 (make_pass_ipa_chkp_early_produce_thunks): New.
40303 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
40304 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
40305 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
40306
40307 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
40308
40309 * cgraph.c (cgraph_node::dump): Dump profile flags.
40310
40311 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
40312
40313 PR target/64652
40314 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
40315 reg appear first in the parallel.
40316
40317 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
40318
40319 * ipa-reference.c (set_reference_optimization_summary,
40320 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
40321 disabled.
40322 (ignore_module_statics): New static var.
40323 (propagate_bits): If ipa-reference is disabled, do not look into local
40324 properties.
40325 (analyze_function): Disable analysis when ipa_reference is disabled.
40326 (generate_summary): Do not dump when reference is disabled;
40327 collect vars accessed from functions with ipa-reference disabled.
40328 (get_read_write_all_from_node): When ipa-reference is disabled, use the
40329 node flags.
40330 (gate): Enable for LTO.
40331 (ignore_edge_p): New function.
40332 (propagate): Skip functions w/o ipa-reference analysis.
40333 * optc-save-gen.awk: Handle optimize_debug correctly.
40334 * opth-gen.awk: Likewise.
40335 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
40336 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
40337 fira-share-save-slots, fira-share-spill-slots,
40338 fmodulo-sched-allow-regmoves, fpartial-inlining,
40339 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
40340 ftracer, ftree-parallelize-loops, fassociative-math,
40341 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
40342 Optimization
40343 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
40344 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
40345 Optimization.
40346 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
40347 Fix for IPA.
40348
40349 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
40350
40351 PR ipa/64378
40352 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
40353 flag correctly.
40354 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
40355
40356 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
40357
40358 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
40359 Remove duplicate option listings.
40360
40361 2015-01-18 Felix Yang <felix.yang@huawei.com>
40362
40363 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
40364 (autofdo_source_profile::get_callsite_total_count,
40365 function_instance::get_function_instance_by_decl,
40366 string_table::get_index, string_table::get_index_by_decl,
40367 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
40368 Fix comment typos. Reformatting and minor code rearrangement.
40369
40370 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
40371
40372 * config/rs6000/rs6000.md (probe_stack): Delete.
40373 (probe_stack_address): New.
40374
40375 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
40376
40377 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
40378 to test for 32-bit ABIs, not !TARGET_POWERPC64.
40379
40380 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
40381
40382 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
40383 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
40384 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
40385 snafu.
40386 (rs6000_libcall_value): Use the new function.
40387
40388 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
40389
40390 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
40391
40392 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
40393
40394 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
40395 implement a more precise life analysis for it during backward scan.
40396
40397 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
40398
40399 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
40400
40401 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
40402
40403 PR rtl-optimization/52773
40404 * calls.c (emit_library_call_value): When pushing arguments use
40405 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
40406 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
40407 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
40408
40409 2015-01-17 Jeff Law <law@redhat.com>
40410
40411 PR rtl-optimization/32790
40412 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
40413 not ZERO_EXTEND in SET_DESTs.
40414
40415 2015-01-17 Alan Modra <amodra@gmail.com>
40416
40417 * cprop.c (do_local_cprop): Revert last change.
40418
40419 2015-01-16 DJ Delorie <dj@redhat.com>
40420 Nick Clifton <nickc@redhat.com>
40421
40422 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
40423 (addhi3_real): Likewise. Fix [HL+0] syntax.
40424 (subqi3_real): Likewise.
40425 (subhi3_real): Likewise.
40426 (cbranchqi4_real): Likewise. Allow saddr,#imm.
40427 (cbranchhi4_real): Likewise.
40428 (cbranchhi4_real_inverted): Likewise.
40429 (cbranchsi4_real_lt): Likewise.
40430 (cbranchsi4_real_ge): Likewise.
40431 (cbranchsi4_real_ge): Likewise.
40432 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
40433 (sub<mode>3_virt): Likewise.
40434 (cbranchqi4_virt): Likewise.
40435 (cbranchhi4_virt): Likewise.
40436 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
40437 always use '[reg+imm]' even when imm is zero.
40438 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
40439 (rl78_general_operand): New.
40440 (rl78_nonimmediate_operand): New.
40441 (rl78_nonfar_operand): Use them.
40442 (rl78_nonfar_nonimm_operand): Likewise.
40443 (rl78_stack_based_mem): Fix.
40444 * config/rl78/constraints.md (Ibqi): New.
40445 (IBqi): New.
40446 (Wsa): New.
40447 (Wsf): New.
40448 (Cs1): Fix.
40449 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
40450 (iorqi3): Likewise.
40451 (xorqi3): Likewise.
40452 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
40453
40454 * config/rl78/constrains (Qs8): New constraint.
40455 * config/rl78/rl78.c (rl78_flags_already_set): New function.
40456 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
40457 * config/rl78/rl78-real.md (update_Z): New attribute.
40458 Update patterns to set it.
40459 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
40460 shorter compare and branch sequence can be used.
40461 (cbranchhi4_real): Likewise.
40462 (cbranchhi4_real_inverted): Likewise.
40463
40464 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
40465 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
40466 address space.
40467 * config/rl78/rl78.c (rl78_get_name_encoding): New.
40468 (rl78_option_override): Allow -mes0 only if C.
40469 (characterize_address): Support subregs of symbol_refs.
40470 (rl78_addr_space_address_mode): Move. Add __near.
40471 (rl78_far_p): Likewise.
40472 (rl78_addr_space_pointer_mode): Likewise.
40473 (rl78_as_legitimate_address): Likewise.
40474 (rl78_addr_space_subset_p): Likewise.
40475 (rl78_addr_space_convert): Likewise.
40476 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
40477 symbols with -mes0.
40478 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
40479 addressing.
40480 (rl78_alloc_physical_registers_op1): Change logic to prefer
40481 symbol[BC] addressing.
40482 (frodata_section): New.
40483 (rl78_asm_init_sections): Initialize it.
40484 (rl78_select_section): Put __far readonly symbols in .frodata.
40485 (rl78_make_type_far): New.
40486 (rl78_insert_attributes): Force all readonly symbols to be
40487 __far when -mes0.
40488 (rl78_asm_out_integer): New.
40489 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
40490 * config/rl78/rl78.opt (-mes0): New.
40491
40492 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
40493 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
40494 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
40495 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
40496 (rl78_saddr_p): New.
40497 (rl78_output_aligned_common): New.
40498 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
40499 (rl78_handle_saddr_attribute): New.
40500 (rl78_handle_naked_attribute): New.
40501 (rl78_attribute_table): Add saddr.
40502 (rl78_print_operand_1): Don't print '!' on saddr operands.
40503 (rl78_print_operand_1): Strip encodings.
40504 (rl78_sfr_p): New.
40505 (rl78_strip_name_encoding): New.
40506 (rl78_attrlist_to_encoding): New.
40507 (rl78_encode_section_info): New.
40508 (rl78_asm_init_sections): New.
40509 (rl78_select_section): New.
40510 (rl78_output_labelref): New.
40511 (rl78_output_aligned_common): New.
40512 (rl78_asm_out_integer): New.
40513 (rl78_asm_ctor_dtor): New.
40514 (rl78_asm_constructor): New.
40515 (rl78_asm_destructor): New.
40516
40517 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
40518 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
40519 (transcode_memory_rtx): Update.
40520 (rl78_expand_epilogue): Use A_REG instead of 0.
40521
40522 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40523
40524 * config/arm/arm-protos.h (struct tune_params): New field
40525 sched_autopref_queue_depth.
40526 * config/arm/arm.c (sched-int.h): Include header.
40527 (arm_first_cycle_multipass_dfa_lookahead_guard,)
40528 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
40529 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
40530 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
40531 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
40532 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
40533 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
40534 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
40535 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
40536 * config/arm/t-arm (arm.o): Update.
40537 * haifa-sched.c (update_insn_after_change): Update.
40538 (rank_for_schedule): Use auto-prefetcher model, if requested.
40539 (autopref_multipass_init): New static function.
40540 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
40541 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
40542 variable for debug dumps.
40543 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
40544 (autopref_multipass_dfa_lookahead_guard): New global function that
40545 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
40546 (init_h_i_d): Update.
40547 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
40548 * sched-int.h (enum autopref_multipass_data_status): New const enum.
40549 (autopref_multipass_data_): Structure for auto-prefetcher data.
40550 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
40551 (struct _haifa_insn_data:autopref_multipass_data): New field.
40552 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
40553 (autopref_multipass_dfa_lookahead_guard): Declare.
40554
40555 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40556
40557 * rtlanal.c (get_base_term): Handle SCRATCH.
40558
40559 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40560
40561 * config/aarch64/aarch64.c
40562 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
40563 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
40564 * config/arm/arm.c
40565 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
40566 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
40567
40568 2015-01-17 Alan Modra <amodra@gmail.com>
40569
40570 * cprop.c (do_local_cprop): Disallow replacement of fixed
40571 hard registers.
40572
40573 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40574
40575 PR target/62066
40576 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
40577 early return 0.
40578
40579 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
40580
40581 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
40582 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
40583
40584 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40585
40586 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
40587 * config/arm/thumb1.md: ... Here.
40588
40589 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40590
40591 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
40592 TImode for TARGET_32BIT.
40593
40594 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40595
40596 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
40597 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
40598 as ...
40599 (rs6000_abi_word_mode): New function.
40600
40601 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40602
40603 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
40604 instead of UNITS_PER_WORD to describe the size of stack slots.
40605
40606 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40607
40608 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
40609 as rs6000_promote_function_mode. Move comment to there.
40610 (rs6000_promote_function_mode): New function.
40611
40612 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40613
40614 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
40615 -mpowerpc64 is active.
40616
40617 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
40618
40619 PR middle-end/64353
40620 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
40621 virtuals on start.
40622
40623 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
40624
40625 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
40626 introduced in revision 219724.
40627
40628 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40629 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
40630
40631 PR target/64263
40632 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
40633 destination is not a GP reg.
40634 (*movdi_aarch64): Likewise.
40635
40636 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
40637
40638 PR target/64623
40639 * config/rs6000/default64.h: Revert ISA change.
40640
40641 2015-01-16 Richard Biener <rguenther@suse.de>
40642
40643 PR middle-end/64614
40644 * tree-ssa-uninit.c: Include tree-cfg.h.
40645 (MAX_SWITCH_CASES): New define.
40646 (convert_control_dep_chain_into_preds): Handle switch statements.
40647 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
40648 (normalize_one_pred_1): Do not split bit-manipulations.
40649 Record (x & CST).
40650
40651 2015-01-16 Richard Biener <rguenther@suse.de>
40652
40653 PR tree-optimization/64568
40654 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
40655 complex load rewriting for TARGET_MEM_REFs.
40656
40657 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
40658
40659 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
40660
40661 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
40662
40663 PR target/64149
40664 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
40665 variable.
40666 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
40667 (aarch64_lra_p): Remove.
40668
40669 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
40670
40671 PR target/64363
40672 * ipa-chkp.h (chkp_instrumentable_p): New.
40673 * ipa-chkp.c: Include tree-inline.h.
40674 (chkp_instrumentable_p): New.
40675 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
40676 Fix processing of not instrumentable functions.
40677 (chkp_versioning): Use chkp_instrumentable_p. Warn about
40678 not instrumentable functions.
40679 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
40680 chkp_instrumentable_p.
40681 * tree-inline.h (copy_forbidden): New.
40682 * tree-inline.c (copy_forbidden): Not static anymore.
40683
40684 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40685
40686 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
40687 ptr1, ptr2 unused.
40688
40689 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
40690
40691 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
40692 type OP_OUT to OP_INOUT.
40693
40694 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
40695
40696 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
40697 (high x) y) to y if x and y have the same base.
40698
40699 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
40700
40701 * config/arm/cortex-a57.md: New.
40702 * config/aarch64/aarch64.md: Include it.
40703 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
40704 * config/aarch64/aarch64-tune.md: Regenerate.
40705
40706 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
40707
40708 PR target/64015
40709 * ccmp.c (expand_ccmp_next): New function.
40710 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
40711 and compare insn sequence.
40712 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
40713 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
40714 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
40715 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
40716 (*ccmp_ior): Changed to ccmp_ior<mode>.
40717 (cmp<mode>): New pattern.
40718 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
40719 parameters.
40720 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
40721
40722 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
40723
40724 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
40725 _mm256_bsrli_epi128): New.
40726 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
40727
40728 2015-01-15 Jiong Wang <jiong.wang@arm.com>
40729
40730 * expmed.c (store_bit_field_using_insv): Improve warning message.
40731 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
40732
40733 2015-01-15 Jiong Wang <jiong.wang@arm.com>
40734
40735 PR rtl-optimization/64011
40736 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
40737 there is partial overflow.
40738
40739 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40740
40741 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
40742 prototype.
40743 (nds32_expand_epilogue_v3pop): Likewise.
40744 * config/nds32/nds32.md (sibcall): Define this for sibling call
40745 optimization.
40746 (sibcall_register): Likewise.
40747 (sibcall_immediate): Likewise.
40748 (sibcall_value): Likewise.
40749 (sibcall_value_register): Likewise.
40750 (sibcall_value_immediate): Likewise.
40751 (sibcall_epilogue): Likewise.
40752 (epilogue): Pass false to indicate this is not a sibcall epilogue.
40753 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
40754 (nds32_expand_epilogue_v3pop): Likewise.
40755
40756 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40757
40758 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
40759 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
40760 (return_internal): New.
40761 (return): Define this named pattern.
40762 (simple_return): Define this named pattern.
40763 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
40764 pattern instead of unspec_volatile_func_return.
40765 (nds32_expand_epilogue_v3pop): Likewise.
40766 (nds32_can_use_return_insn): New function.
40767
40768 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40769
40770 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
40771 * config/nds32/nds32.md (pop25return): New.
40772 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
40773 pop25return pattern.
40774
40775 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40776
40777 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
40778 -mforbid-fp-as-gp, and -mex9 options.
40779
40780 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40781
40782 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
40783 remove -mgp-direct option.
40784
40785 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40786
40787 * doc/invoke.texi (--param early-inlining-insns): Update default value.
40788 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
40789
40790 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40791
40792 * ipa-inline.c (inline_small_functions): Work around hints
40793 cache issue.
40794
40795 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
40796
40797 PR target/59710
40798 * doc/invoke.texi (Option Summary): Document new Nios II
40799 -mgpopt= syntax.
40800 (Nios II Options): Likewise.
40801 * config/nios2/nios2.opt: Add -mgpopt= option support.
40802 Modify existing -mgpopt and -mno-gpopt options to be aliases.
40803 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
40804 * config/nios2/nios2.c (nios2_option_override): Adjust
40805 -mgpopt defaulting.
40806 (nios2_in_small_data_p): Return true for explicit small data
40807 sections even with -G0.
40808 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
40809 option choices.
40810
40811 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40812
40813 PR ipa/64612
40814 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
40815 of comdat locals.
40816 (inline_call): Fix removal of aliases.
40817
40818 2015-01-15 Jakub Jelinek <jakub@redhat.com>
40819
40820 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
40821 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
40822 * opts.c (common_handle_option): Add -fsanitize=vptr.
40823 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
40824 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
40825 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
40826 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
40827 (ubsan_expand_vptr_ifn): New prototype.
40828 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
40829 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
40830 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
40831 expand_LOOP_VECTORIZED): Make argument nameless, remove
40832 ATTRIBUTE_UNUSED.
40833 (expand_UBSAN_VPTR): New function.
40834 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
40835 in fn spec.
40836 (UBSAN_VPTR): New internal function.
40837 * sanopt.c (tree_map_traits): Renamed to ...
40838 (sanopt_tree_map_traits): ... this.
40839 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
40840 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
40841 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
40842 (maybe_optimize_ubsan_vptr_ifn): New function.
40843 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
40844 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
40845 -fsanitize=vptr.
40846 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
40847 internal calls like pure functions for aliasing, even when they
40848 have other side-effects that prevent making them ECF_PURE.
40849 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
40850 (ubsan_expand_vptr_ifn): New function.
40851
40852 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
40853
40854 PR rtl-optimization/64110
40855 * stmt.c (parse_output_constraint): Process '^' and '$'.
40856 (parse_input_constraint): Ditto.
40857 * lra-constraints.c (process_alt_operands): Process the new
40858 constraints.
40859 * ira-costs.c (record_reg_classes): Process the new constraint
40860 '^'.
40861 * genoutput.c (indep_constraints): Add '^' and '$'.
40862 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
40863 * doc/md.texi: Add description of the new constraints.
40864
40865 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
40866 Bernd Schmidt <bernds@codesourcery.com>
40867 Cesar Philippidis <cesar@codesourcery.com>
40868 James Norris <jnorris@codesourcery.com>
40869 Tom de Vries <tom@codesourcery.com>
40870 Ilmir Usmanov <i.usmanov@samsung.com>
40871 Dmitry Bocharnikov <dmitry.b@samsung.com>
40872 Evgeny Gavrin <e.gavrin@samsung.com>
40873 Jakub Jelinek <jakub@redhat.com>
40874
40875 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
40876 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
40877 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
40878 New function types.
40879 * builtins.c: Include "gomp-constants.h".
40880 (expand_builtin_acc_on_device): New function.
40881 (expand_builtin, is_inexpensive_builtin): Handle
40882 BUILT_IN_ACC_ON_DEVICE.
40883 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
40884 New macros.
40885 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
40886 flag_openmp.
40887 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
40888 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
40889 i386/intelmic-offload.h.
40890 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
40891 to libgomp and its dependencies.
40892 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
40893 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
40894 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
40895 * config/ia64/hpux.h (LIB_SPEC): Likewise.
40896 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
40897 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
40898 * doc/generic.texi: Update for OpenACC changes.
40899 * doc/gimple.texi: Likewise.
40900 * doc/invoke.texi: Likewise.
40901 * doc/sourcebuild.texi: Likewise.
40902 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
40903 GF_OMP_FOR_KIND_OACC_LOOP.
40904 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
40905 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
40906 GF_OMP_TARGET_KIND_OACC_UPDATE,
40907 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
40908 Dump more data.
40909 * gimple.c: Update comments for OpenACC changes.
40910 * gimple.def: Likewise.
40911 * gimple.h: Likewise.
40912 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
40913 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
40914 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
40915 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
40916 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
40917 appropriate place.
40918 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
40919 * gimplify.c: Include "gomp-constants.h".
40920 Update comments for OpenACC changes.
40921 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
40922 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
40923 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
40924 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
40925 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
40926 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
40927 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
40928 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
40929 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
40930 OMP_CLAUSE_SEQ.
40931 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
40932 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
40933 OMP_CLAUSE_SET_MAP_KIND.
40934 (gimplify_oacc_cache): New function.
40935 (gimplify_omp_for): Handle OACC_LOOP.
40936 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
40937 OACC_DATA.
40938 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
40939 OACC_EXIT_DATA, OACC_UPDATE.
40940 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
40941 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
40942 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
40943 (gimplify_body): Consider flag_openacc next to flag_openmp.
40944 * lto-streamer-out.c: Include "gomp-constants.h".
40945 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
40946 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
40947 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
40948 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
40949 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
40950 (BUILT_IN_ACC_ON_DEVICE): New builtins.
40951 * omp-low.c: Include "gomp-constants.h".
40952 Update comments for OpenACC changes.
40953 (struct omp_context): Add reduction_map, gwv_below, gwv_this
40954 members.
40955 (extract_omp_for_data, use_pointer_for_field, install_var_field)
40956 (new_omp_context, delete_omp_context, scan_sharing_clauses)
40957 (create_omp_child_function, scan_omp_for, scan_omp_target)
40958 (check_omp_nesting_restrictions, lower_reduction_clauses)
40959 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
40960 Update for OpenACC changes.
40961 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
40962 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
40963 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
40964 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
40965 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
40966 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
40967 OMP_CLAUSE_MAP_*.
40968 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
40969 Handle GF_OMP_FOR_KIND_OACC_LOOP.
40970 (expand_omp_target, lower_omp_target): Handle
40971 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
40972 GF_OMP_TARGET_KIND_OACC_UPDATE,
40973 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
40974 GF_OMP_TARGET_KIND_OACC_DATA.
40975 (pass_expand_omp::execute, execute_lower_omp)
40976 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
40977 flag_openmp.
40978 (offload_symbol_decl): New variable.
40979 (oacc_get_reduction_array_id, oacc_max_threads)
40980 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
40981 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
40982 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
40983 (oacc_gimple_assign, oacc_initialize_reduction_data)
40984 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
40985 functions.
40986 (is_targetreg_ctx): Remove function.
40987 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
40988 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
40989 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
40990 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
40991 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
40992 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
40993 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
40994 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
40995 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
40996 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
40997 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
40998 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
40999 * tree-core.h: Update comments for OpenACC changes.
41000 (enum omp_clause_map_kind): Remove.
41001 (struct tree_omp_clause): Change type of map_kind member from enum
41002 omp_clause_map_kind to unsigned char.
41003 * tree-inline.c: Update comments for OpenACC changes.
41004 * tree-nested.c: Likewise. Include "gomp-constants.h".
41005 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
41006 (convert_tramp_reference_stmt, convert_gimple_call): Update for
41007 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
41008 OMP_CLAUSE_SET_MAP_KIND.
41009 * tree-pretty-print.c: Include "gomp-constants.h".
41010 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
41011 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
41012 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
41013 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
41014 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
41015 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
41016 instead of OMP_CLAUSE_MAP_*.
41017 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
41018 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
41019 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
41020 * tree-streamer-in.c: Include "gomp-constants.h".
41021 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
41022 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
41023 * tree-streamer-out.c: Include "gomp-constants.h".
41024 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
41025 OMP_CLAUSE_MAP_*.
41026 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
41027 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
41028 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
41029 * tree.c (omp_clause_num_ops): Update accordingly.
41030 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
41031 Likewise.
41032 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
41033 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
41034 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
41035 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
41036 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
41037 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
41038 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
41039 (OMP_CLAUSE_SET_MAP_KIND): New macro.
41040 * varpool.c (varpool_node::get_create): Consider flag_openacc next
41041 to flag_openmp.
41042 * config/i386/intelmic-offload.h: New file.
41043 * config/nvptx/offload.h: Likewise.
41044
41045 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
41046
41047 * explow.h: Remove duplicate contents.
41048 * dojump.h: Likewise.
41049
41050 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
41051
41052 * arm.c (arm_xgene_tune): Add default initializer for instruction
41053 fusion.
41054
41055 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
41056
41057 PR ipa/64068
41058 PR ipa/64559
41059 * ipa.c (symbol_table::remove_unreachable_nodes):
41060 Do not put abstract origins into boundary.
41061
41062 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
41063
41064 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
41065 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
41066
41067 2015-01-15 Steve Ellcey <sellcey@mips.com>
41068
41069 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
41070 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
41071 builtins.def, and chkp-builtins.def.
41072
41073 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
41074
41075 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
41076 ISA 2.7 (POWER8).
41077
41078 2015-01-15 Richard Biener <rguenther@suse.de>
41079
41080 PR tree-optimization/61743
41081 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
41082 information on PHIs for some simple cases.
41083
41084 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
41085
41086 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
41087 Include xgene1.md.
41088 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
41089 * config/arm/arm-cores.def (xgene1): New entry.
41090 * config/arm/arm-tables.opt: Regenerate.
41091 * config/arm/arm-tune.md: Regenerate.
41092 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
41093
41094 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
41095
41096 * tree-if-conv.c: Include hash-map.h.
41097 (aggressive_if_conv): New variable.
41098 (fold_build_cond_expr): Add simplification of non-zero condition.
41099 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
41100 destination block is not always executed.
41101 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
41102 than two predecessors if AGGRESSIVE_IF_CONV is true.
41103 (if_convertible_stmt_p): Fix commentary.
41104 (all_preds_critical_p): New function.
41105 (has_pred_critical_p): New function.
41106 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
41107 BB can have more than two predecessors and all incoming edges can be
41108 critical.
41109 (predicate_bbs): Skip predication for loop exit block, use build2_loc
41110 to compute predicate for true edge.
41111 (find_phi_replacement_condition): Delete this function.
41112 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
41113 Allow interchange PHI arguments if EXTENDED is false.
41114 Change check that block containing reduction statement candidate
41115 is predecessor of phi-block since phi may have more than two arguments.
41116 (phi_args_hash_traits): New helper structure.
41117 (struct phi_args_hash_traits): New type.
41118 (phi_args_hash_traits::hash): New function.
41119 (phi_args_hash_traits::equal_keys): New function.
41120 (gen_phi_arg_condition): New function.
41121 (predicate_scalar_phi): Add handling of phi nodes with more than two
41122 arguments, delete COND and TRUE_BB arguments, insert body of
41123 find_phi_replacement_condition to predicate ordinary phi nodes.
41124 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
41125 delete call of find_phi_replacement_condition and invoke
41126 predicate_scalar_phi with two arguments.
41127 (insert_gimplified_predicates): Add assert that non-predicated block
41128 don't have statements to insert.
41129 (ifcvt_split_critical_edges): New function.
41130 (ifcvt_split_def_stmt): Likewise.
41131 (ifcvt_walk_pattern_tree): Likewise.
41132 (stmt_is_root_of_bool_pattern): Likewise.
41133 (ifcvt_repair_bool_pattern): Likewise.
41134 (ifcvt_local_dce): Likewise.
41135 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
41136 is copy of inner or outer loop force_vectorize field, invoke
41137 ifcvt_split_critical_edges, ifcvt_local_dce and
41138 ifcvt_repair_bool_pattern for aggressive if-conversion.
41139
41140 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
41141
41142 * config/aarch64/aarch64.md: Include xgene1.md.
41143 * config/aarch64/xgene1.md: New file.
41144
41145 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
41146
41147 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
41148 xgene1 (APM XGene-1) core definition.
41149 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
41150 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
41151 * doc/invoke.texi: Document -mcpu=xgene1.
41152
41153 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
41154
41155 * dojump.h: New header file.
41156 * explow.h: Likewise.
41157 * expr.h: Remove includes.
41158 Move expmed.c prototypes to expmed.h.
41159 Move dojump.c prototypes to dojump.h.
41160 Move alias.c prototypes to alias.h.
41161 Move explow.c prototypes to explow.h.
41162 Move calls.c prototypes to calls.h.
41163 Move emit-rtl.c prototypes to emit-rtl.h.
41164 Move varasm.c prototypes to varasm.h.
41165 Move stmt.c prototypes to stmt.h.
41166 (saved_pending_stack_adjust): Move to dojump.h.
41167 (adjust_address): Move to explow.h.
41168 (adjust_address_nv): Move to emit-rtl.h.
41169 (adjust_bitfield_address): Likewise.
41170 (adjust_bitfield_address_size): Likewise.
41171 (adjust_bitfield_address_nv): Likewise.
41172 (adjust_automodify_address_nv): Likewise.
41173 * explow.c (expr_size): Move to expr.c.
41174 (int_expr_size): Likewise.
41175 (tree_expr_size): Likewise.
41176 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41177 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
41178 * genemit.c (main): Generate includes statistics.h, real.h,
41179 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
41180 stmt.h.
41181 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
41182 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
41183 explow.h, emit-rtl.h, stmt.h.
41184 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
41185 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
41186 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
41187 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
41188 emit-rtl.h, varasm.h, stmt.h.
41189 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
41190 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
41191 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
41192 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
41193 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
41194 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
41195 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
41196 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
41197 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
41198 tm.h tree.h varasm.h vec.h wide-int.h.
41199 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41200 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
41201 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
41202 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
41203 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
41204 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
41205 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
41206 * loop-iv.c: Likewise.
41207 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
41208 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
41209 statistics.h stmt.h tree.h varasm.h wide-int.h.
41210 * lra-constraints.c: Likewise.
41211 * lra-eliminations.c: Likewise.
41212 * lra-lives.c: Likewise.
41213 * lra-remat.c: Likewise.
41214 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41215 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
41216 statistics.h stmt.h tree.h varasm.h wide-int.h.
41217 * hw-doloop.c: Likewise.
41218 * ira-color.c: Likewise.
41219 * ira-emit.c: Likewise.
41220 * loop-doloop.c: Likewise.
41221 * loop-invariant.c: Likewise.
41222 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41223 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
41224 statistics.h stmt.h tree.h varasm.h wide-int.h.
41225 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
41226 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
41227 statistics.h stmt.h tree.h varasm.h wide-int.h.
41228 * combine-stack-adj.c: Likewise.
41229 * cse.c: Likewise.
41230 * ddg.c: Likewise.
41231 * ifcvt.c: Likewise.
41232 * ira-costs.c: Likewise.
41233 * jump.c: Likewise.
41234 * lra-coalesce.c: Likewise.
41235 * lra-spills.c: Likewise.
41236 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41237 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
41238 stmt.h varasm.h wide-int.h.
41239 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41240 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
41241 varasm.h.
41242 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
41243 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
41244 statistics.h stmt.h varasm.h wide-int.h.
41245 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
41246 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
41247 varasm.h wide-int.h.
41248 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
41249 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
41250 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
41251 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
41252 statistics.h stmt.h.
41253 * config/tilepro/tilepro.c: Likewise.
41254 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
41255 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
41256 * config/pdp11/pdp11.c: Likewise.
41257 * config/xtensa/xtensa.c: Likewise.
41258 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
41259 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
41260 varasm.h.
41261 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41262 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
41263 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
41264 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41265 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
41266 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
41267 * rtl-chkp.c: Likewise.
41268 * tree-chkp-opt.c: Likewise.
41269 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
41270 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
41271 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
41272 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41273 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
41274 statistics.h stmt.h.
41275 * tree-vect-data-refs.c: Likewise.
41276 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
41277 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41278 rtl.h statistics.h stmt.h varasm.h.
41279 * internal-fn.c: Likewise.
41280 * ipa-icf-gimple.c: Likewise.
41281 * lto-section-out.c: Likewise.
41282 * tree-data-ref.c: Likewise.
41283 * tree-nested.c: Likewise.
41284 * tree-outof-ssa.c: Likewise.
41285 * tree-predcom.c: Likewise.
41286 * tree-pretty-print.c: Likewise.
41287 * tree-scalar-evolution.c: Likewise.
41288 * tree-ssa-strlen.c: Likewise.
41289 * tree-vect-loop.c: Likewise.
41290 * tree-vect-patterns.c: Likewise.
41291 * tree-vect-slp.c: Likewise.
41292 * tree-vect-stmts.c: Likewise.
41293 * tsan.c: Likewise.
41294 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41295 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
41296 stmt.h.
41297 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
41298 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41299 statistics.h stmt.h varasm.h.
41300 * loop-unroll.c: Likewise.
41301 * ubsan.c: Likewise.
41302 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
41303 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
41304 stmt.h varasm.h.
41305 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41306 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
41307 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
41308 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
41309 statistics.h stmt.h.
41310 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
41311 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
41312 statistics.h stmt.h varasm.h.
41313 * gimple-match-head.c: Likewise.
41314 * lto-cgraph.c: Likewise.
41315 * lto-section-in.c: Likewise.
41316 * lto-streamer-in.c: Likewise.
41317 * lto-streamer-out.c: Likewise.
41318 * tree-affine.c: Likewise.
41319 * tree-cfg.c: Likewise.
41320 * tree-cfgcleanup.c: Likewise.
41321 * tree-if-conv.c: Likewise.
41322 * tree-into-ssa.c: Likewise.
41323 * tree-ssa-alias.c: Likewise.
41324 * tree-ssa-copyrename.c: Likewise.
41325 * tree-ssa-dse.c: Likewise.
41326 * tree-ssa-forwprop.c: Likewise.
41327 * tree-ssa-live.c: Likewise.
41328 * tree-ssa-math-opts.c: Likewise.
41329 * tree-ssa-pre.c: Likewise.
41330 * tree-ssa-sccvn.c: Likewise.
41331 * tree-tailcall.c: Likewise.
41332 * tree-vect-generic.c: Likewise.
41333 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41334 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
41335 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41336 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
41337 * varasm.c: Likewise.
41338 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41339 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
41340 varasm.h.
41341 * init-regs.c: Likewise.
41342 * ira.c: Likewise.
41343 * omp-low.c: Likewise.
41344 * stack-ptr-mod.c: Likewise.
41345 * tree-ssa-reassoc.c: Likewise.
41346 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41347 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
41348 varasm.h.
41349 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41350 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
41351 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41352 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
41353 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41354 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
41355 * tree-ssa-phiopt.c: Likewise.
41356 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41357 fixed-value.h hashtab.h real.h statistics.h stmt.h.
41358 * config/fr30/fr30.c: Likewise.
41359 * config/frv/frv.c: Likewise.
41360 * expr.c: Likewise.
41361 * final.c: Likewise.
41362 * optabs.c: Likewise.
41363 * passes.c: Likewise.
41364 * simplify-rtx.c: Likewise.
41365 * stmt.c: Likewise.
41366 * toplev.c: Likewise.
41367 * var-tracking.c: Likewise.
41368 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41369 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
41370 * lower-subreg.c: Likewise.
41371 * postreload-gcse.c: Likewise.
41372 * ree.c: Likewise.
41373 * reginfo.c: Likewise.
41374 * store-motion.c: Likewise.
41375 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41376 fixed-value.h hashtab.h real.h stmt.h varasm.h.
41377 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41378 fixed-value.h hashtab.h statistics.h stmt.h.
41379 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41380 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
41381 * except.c: Likewise.
41382 * explow.c: Likewise.
41383 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41384 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
41385 varasm.h.
41386 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41387 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
41388 * tree-ssa-structalias.c: Likewise.
41389 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41390 fixed-value.h insn-config.h real.h statistics.h.
41391 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41392 fixed-value.h insn-config.h real.h statistics.h stmt.h.
41393 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41394 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
41395 * cfgbuild.c: Likewise.
41396 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41397 fixed-value.h real.h rtl.h statistics.h stmt.h.
41398 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41399 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
41400 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41401 fixed-value.h real.h statistics.h stmt.h.
41402 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41403 fixed-value.h real.h statistics.h stmt.h varasm.h.
41404 * cprop.c: Likewise.
41405 * modulo-sched.c: Likewise.
41406 * postreload.c: Likewise.
41407 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
41408 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
41409 statistics.h stmt.h varasm.h.
41410 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
41411 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41412 rtl.h statistics.h stmt.h varasm.h.
41413 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
41414 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
41415 varasm.h.
41416 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
41417 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
41418 varasm.h.
41419 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
41420 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
41421 varasm.h.
41422 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
41423 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
41424 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
41425 function.h real.h statistics.h stmt.h varasm.h.
41426 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
41427 insn-config.h real.h statistics.h stmt.h.
41428 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
41429 statistics.h stmt.h.
41430 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
41431 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
41432 statistics.h stmt.h varasm.h.
41433 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
41434 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
41435 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
41436 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
41437 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
41438 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
41439 statistics.h stmt.h varasm.h.
41440 * ipa-polymorphic-call.c: Likewise.
41441 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
41442 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41443 statistics.h stmt.h.
41444 * config/c6x/c6x.c: Likewise.
41445 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
41446 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41447 statistics.h stmt.h varasm.h.
41448 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
41449 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
41450 stmt.h varasm.h.
41451 * ipa-split.c: Likewise.
41452 * tree-eh.c: Likewise.
41453 * tree-ssa-dce.c: Likewise.
41454 * tree-ssa-loop-niter.c: Likewise.
41455 * tree-vrp.c: Likewise.
41456 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
41457 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
41458 stmt.h.
41459 * config/nds32/nds32-fp-as-gp.c: Likewise.
41460 * config/nds32/nds32-intrinsic.c: Likewise.
41461 * config/nds32/nds32-isr.c: Likewise.
41462 * config/nds32/nds32-md-auxiliary.c: Likewise.
41463 * config/nds32/nds32-memory-manipulation.c: Likewise.
41464 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
41465 * config/nds32/nds32-predicates.c: Likewise.
41466 * config/nds32/nds32.c: Likewise.
41467 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
41468 fixed-value.h hashtab.h real.h statistics.h.
41469 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
41470 fixed-value.h hashtab.h real.h statistics.h stmt.h.
41471 * config/arm/arm.c: Likewise.
41472 * config/avr/avr.c: Likewise.
41473 * config/bfin/bfin.c: Likewise.
41474 * config/h8300/h8300.c: Likewise.
41475 * config/i386/i386.c: Likewise.
41476 * config/ia64/ia64.c: Likewise.
41477 * config/iq2000/iq2000.c: Likewise.
41478 * config/m32c/m32c.c: Likewise.
41479 * config/m32r/m32r.c: Likewise.
41480 * config/m68k/m68k.c: Likewise.
41481 * config/mcore/mcore.c: Likewise.
41482 * config/mep/mep.c: Likewise.
41483 * config/mips/mips.c: Likewise.
41484 * config/mn10300/mn10300.c: Likewise.
41485 * config/moxie/moxie.c: Likewise.
41486 * config/pa/pa.c: Likewise.
41487 * config/rl78/rl78.c: Likewise.
41488 * config/rx/rx.c: Likewise.
41489 * config/s390/s390.c: Likewise.
41490 * config/sh/sh.c: Likewise.
41491 * config/sparc/sparc.c: Likewise.
41492 * config/spu/spu.c: Likewise.
41493 * config/stormy16/stormy16.c: Likewise.
41494 * config/v850/v850.c: Likewise.
41495 * config/vax/vax.c: Likewise.
41496 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
41497 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
41498 * config/msp430/msp430.c: Likewise.
41499 * predict.c: Likewise.
41500 * value-prof.c: Likewise.
41501 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
41502 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
41503 * config/microblaze/microblaze.c: Likewise.
41504 * config/nios2/nios2.c: Likewise.
41505 * config/rs6000/rs6000.c: Likewise.
41506 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
41507 insn-config.h real.h rtl.h statistics.h stmt.h.
41508 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
41509 insn-config.h real.h statistics.h stmt.h.
41510 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
41511 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
41512 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
41513 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
41514 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
41515 fixed-value.h real.h statistics.h stmt.h.
41516 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
41517 fixed-value.h statistics.h stmt.h.
41518 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
41519 stmt.h.
41520
41521 2015-01-15 Jakub Jelinek <jakub@redhat.com>
41522
41523 * gengtype.c (create_user_defined_type): Workaround
41524 -Wmaybe-uninitialized false positives.
41525 * cse.c (fold_rtx): Likewise.
41526 * loop-invariant.c (gain_for_invariant): Likewise.
41527
41528 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
41529
41530 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
41531 set the memory attributes in all cases but clear MEM_EXPR if need be.
41532
41533 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
41534
41535 PR tree-optimization/64434
41536 * cfgexpand.c (reorder_operands): New function.
41537 (expand_gimple_basic_block): Insert call of reorder_operands if
41538 optimized is true.
41539
41540 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
41541
41542 * config/mips/micromips.md (*swp): Remove explicit parallel.
41543 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
41544 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
41545 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
41546 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
41547 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
41548 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
41549 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
41550 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
41551 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
41552 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
41553 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
41554 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
41555 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
41556 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
41557 (mips_wrdsp): Likewise.
41558 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
41559 parallel.
41560 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
41561 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
41562 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
41563 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
41564 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
41565 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
41566 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
41567 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
41568 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
41569
41570 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
41571
41572 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
41573 (mips_print_operand): Support 'y' to print exact log2 in decimal
41574 of a const_int.
41575 * config/mips/mips.h (ISA_HAS_LSA): New define.
41576 (ISA_HAS_DLSA): Likewise.
41577 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
41578 * config/mips/predicates.md (const_immlsa_operand): New predicate.
41579
41580 2015-01-15 Martin Liska <mliska@suse.cz>
41581
41582 PR target/64377
41583 * optc-save-gen.awk: Add support for array types.
41584
41585 2015-01-15 Richard Biener <rguenther@suse.de>
41586
41587 PR middle-end/64365
41588 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
41589 for MEM_REF access functions with the same base can never partially
41590 overlap.
41591
41592 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
41593
41594 * common.opt: New option -fstack-protector-explicit.
41595 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
41596 (stack_protect_decl_phase): Handle stack_protect attribute for
41597 explicit stack protection requests.
41598 (expand_used_vars): Similarly.
41599 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
41600 * doc/extend.texi: Add documentation for "stack_protect" attribute.
41601 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
41602
41603 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
41604
41605 PR target/53988
41606 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
41607 reg-reg copies.
41608 (sh_extending_set_of_reg): New struct.
41609 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
41610 sh_remove_reg_dead_or_unused_notes): New Declarations.
41611 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
41612 sh_find_extending_set_of_reg, sh_split_tst_subregs,
41613 sh_extending_set_of_reg::use_as_extended_reg): New functions.
41614 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
41615 convert to insn_and_split and use new function sh_split_tst_subregs.
41616
41617 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
41618
41619 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
41620 option.
41621 (Optimization Options): Move -fuse-ld documentation to...
41622 (Link Options): ...here.
41623
41624 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
41625
41626 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
41627 offsets.
41628 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
41629 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
41630 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
41631 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
41632 instead of ZR for the memory operand of LL/SC.
41633 (compare_and_swap_12, sync_add<mode>): Likewise.
41634 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
41635 (sync_new_<optab>_12, sync_nand_12): Likewise.
41636 (sync_old_nand_12, sync_new_nand_12): Likewise.
41637 (sync_sub<mode>, sync_old_add<mode>): Likewise.
41638 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
41639 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
41640 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
41641 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
41642 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
41643 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
41644 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
41645 * doc/md.texi (ZC): Update description.
41646
41647 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
41648
41649 * builtins.c (expand_builtin_atomic_exchange): Remove error when
41650 memory model is CONSUME.
41651 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
41652 expand_builtin_atomic_store): Change invalid memory model errors to
41653 warnings.
41654 (expand_builtin_atomic_clear): Change invalid model errors to warnings
41655 and issue warning for CONSUME.
41656
41657 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
41658
41659 * lto-cgraph: Update function comments for
41660 lto_symtab_encoder_encode_*.
41661
41662 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
41663
41664 * Makefile.in (site.exp): Do not set ENABLE_LTO.
41665
41666 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
41667
41668 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
41669 * lto-cgraph.c (select_what_to_stream): Remove argument, use
41670 lto_stream_offload_p instead.
41671 * lto-streamer.h (select_what_to_stream): Remove argument.
41672 * passes.c (ipa_write_summaries): Likewise.
41673 * tree-pass.h (ipa_write_summaries): Likewise.
41674
41675 2015-01-14 Richard Biener <rguenther@suse.de>
41676
41677 PR tree-optimization/59354
41678 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
41679 groups larger than the slp group size as having gaps.
41680
41681 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
41682
41683 PR middle-end/59448
41684 * builtins.c (get_memmodel): Promote consume to acquire always.
41685
41686 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
41687
41688 PR target/64386
41689 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
41690 V32HImode.
41691
41692 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
41693
41694 PR target/64393
41695 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
41696 Enable AVX512BW.
41697 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
41698 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
41699 AVX512VBMI, as it implies AVX512BW.
41700
41701 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
41702
41703 PR target/64387
41704 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
41705 (vec_unpacks_hi_v16sf): Ditto.
41706
41707 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41708
41709 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
41710 is not available.
41711
41712 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41713
41714 * doc/invoke.texi (mapcs): Mention deprecation.
41715 (mapcs-frame): Likewise.
41716
41717 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
41718
41719 PR target/64453
41720 * config/arm/arm.c (callee_saved_reg_p): Define.
41721 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
41722 register is callee saved instead of !call_used_regs[reg].
41723 (thumb1_compute_save_reg_mask): Likewise.
41724
41725 2015-01-14 Hale Wang <hale.wang@arm.com>
41726
41727 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
41728 Cortex-M7.
41729
41730 2015-01-14 Richard Biener <rguenther@suse.de>
41731
41732 PR lto/64415
41733 * tree-inline.c (insert_debug_decl_map): Check destination
41734 function MAY_HAVE_DEBUG_STMTS.
41735 (insert_init_debug_bind): Likewise.
41736 (insert_init_stmt): Remove redundant check.
41737 (remap_gimple_stmt): Drop debug stmts if the destination
41738 function has var-tracking assignments disabled.
41739
41740 2015-01-14 Martin Liska <mliska@suse.cz>
41741
41742 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
41743 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
41744
41745 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41746
41747 PR target/64460
41748 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
41749 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
41750
41751 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
41752
41753 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
41754 level from an ARCH; do not inject the default.
41755 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
41756 MIPS_ISA_LEVEL_SPEC.
41757 (MIPS_ISA_NAN2008_SPEC): Update comment.
41758 (BASE_DRIVER_SELF_SPECS): Likewise.
41759 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
41760 MIPS_DEFAULT_ISA_LEVEL_SPEC.
41761 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
41762 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
41763 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
41764
41765 2015-01-14 Richard Biener <rguenther@suse.de>
41766
41767 PR tree-optimization/64493
41768 PR tree-optimization/64495
41769 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
41770 assign the proper vectorized PHI to the inner loop exit PHIs.
41771
41772 2015-01-14 Joey Ye <joey.ye@arm.com>
41773
41774 * config/arm/arm.c (arm_compute_save_reg_mask):
41775 Do not save lr in case of tail call.
41776 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
41777
41778 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
41779
41780 * tree-vrp.c (check_array_ref): Emit more warnings
41781 for warn_array_bounds >= 2.
41782 * common.opt: New option -Warray-bounds=.
41783 * doc/invoke.texi: Document -Warray-bounds=.
41784
41785 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
41786
41787 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
41788 (mforbid-fp-as-gp): Remove.
41789 (mex9): Remove.
41790 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
41791 (nds32_symbol_load_store_p): Remove.
41792 (nds32_fp_as_gp_check_available): Clean up implementation.
41793 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
41794 cases.
41795 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
41796 fp-as-gp and ex9 cases.
41797
41798 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
41799
41800 * tree-profile.c (init_ic_make_global_vars): Drop workaround
41801 for bintuils bug 14342.
41802 (init_ic_make_global_vars): Likewise.
41803 (gimple_init_edge_profiler): Likewise.
41804 (gimple_gen_ic_func_profiler): Likewise.
41805
41806 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
41807
41808 * ipa-inline.c (inline_small_functions): Swap the operands in
41809 enum.
41810
41811 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
41812
41813 PR ipa/64481
41814 * ipa-inline-analysis.c (node_growth_cache): Remove.
41815 (initialize_growth_caches): Do not initialize it.
41816 (free_growth_caches): Do not free it.
41817 (do_estimate_growth): Rename to ...
41818 (estimate_growth): ... this one; drop growth cache code.
41819 (growth_likely_positive): Always go the heuristics way.
41820 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
41821 (reset_edge_caches): Do not reset node growth.
41822 (heap_edge_removal_hook): Do not maintain cache.
41823 (inline_small_functions): Likewise; strenghten sanity check.
41824 (ipa_inline): Do not maintain caches.
41825 * ipa-inline.h (node_growth_cache): Remove.
41826 (do_estimate_growth): Remove to ...
41827 (estimate_growth): this one; remove inline version.
41828 (reset_node_growth_cache): Remove.
41829
41830 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
41831
41832 PR ipa/64565
41833 * ipa-inline.c (inline_small_functions): Update callee keys after
41834 resolving speculation
41835 (inline_small_functions): Always check monotonicity of the queue.
41836
41837 2015-01-13 Marek Polacek <polacek@redhat.com>
41838
41839 PR middle-end/64391
41840 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
41841
41842 2015-01-13 Jakub Jelinek <jakub@redhat.com>
41843
41844 PR rtl-optimization/64286
41845 * ree.c (combine_reaching_defs): Move part of comment earlier,
41846 remove !SCALAR_INT_MODE_P check.
41847 (add_removable_extension): Don't add vector mode
41848 extensions if all uses of the source register aren't the same
41849 vector extensions.
41850
41851 2015-01-13 Renlin Li <renlin.li@arm.com>
41852
41853 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
41854 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
41855
41856 2015-01-13 Martin Liska <mliska@suse.cz>
41857
41858 * ipa-icf.c (sem_function::equals_private): Call new functions
41859 cl_target_option_print_diff and cl_optimization_print_diff.
41860 * optc-save-gen.awk (cl_target_option_print_diff): New function.
41861 (cl_optimization_print_diff): Likewise.
41862 * opth-gen.awk: Likewise.
41863
41864 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
41865
41866 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
41867 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
41868 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
41869 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
41870 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
41871 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
41872
41873 2015-01-13 Andrew Pinski <apinski@cavium.com>
41874
41875 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
41876 instead of src mode.
41877
41878 2015-01-13 Richard Biener <rguenther@suse.de>
41879
41880 PR lto/64373
41881 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
41882 DECL_CONTEXT.
41883
41884 2015-01-13 Andrew Pinski <apinski@cavium.com>
41885
41886 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
41887 volatile mems.
41888 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
41889
41890 2015-01-13 Jakub Jelinek <jakub@redhat.com>
41891
41892 PR middle-end/63974
41893 * cfgexpand.c (expand_computed_goto): Don't call
41894 convert_memory_address here.
41895
41896 2015-01-13 Richard Biener <rguenther@suse.de>
41897
41898 PR tree-optimization/64406
41899 * tree-loop-distibution.c (pass_loop_distribution::execute):
41900 Reset the SCEV hashtable if we distributed anything.
41901
41902 2015-01-13 Richard Biener <rguenther@suse.de>
41903
41904 PR tree-optimization/64404
41905 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
41906 SLP types for CSEd loads.
41907
41908 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
41909
41910 PR tree-optimization/64436
41911 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
41912 merge of two symbolic numbers for a bitwise OR to ...
41913 (perform_symbolic_merge): This. Also fix computation of the range and
41914 end of the symbolic number corresponding to the result of a bitwise OR.
41915
41916 2015-01-13 Richard Biener <rguenther@suse.de>
41917
41918 PR tree-optimization/64568
41919 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
41920 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
41921
41922 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41923
41924 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
41925 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
41926
41927 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41928
41929 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
41930 target-specific symbol_ref flag.
41931 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
41932 resides in rodata section.
41933 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
41934 (nds32_encode_section_info): New function.
41935
41936 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41937
41938 * config/nds32/nds32.md (call): Use pseudo instruction bal which
41939 clobbers TA_REGNUM if large code model is specified.
41940 (call_register): Likewise.
41941 (call_immediate): Likewise.
41942 (call_value): Likewise.
41943 (call_value_register): Likewise.
41944 (call_value_immediate): Likewise.
41945
41946 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41947
41948 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
41949 (TARGET_CMODEL_MEDIUM): New macro.
41950 (TARGET_CMODEL_LARGE): New macro.
41951 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
41952 code model setting in assembly code.
41953
41954 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41955
41956 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
41957 Remove MASK_GP_DIRECT flag.
41958 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
41959 one of the multilib default options.
41960 * config/nds32/nds32.opt (mgp-direct): Remove.
41961 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
41962 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
41963
41964 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41965
41966 * config/nds32/nds32.opt (mcmodel): Add new option.
41967 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
41968 to describe code model.
41969
41970 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
41971
41972 PR target/64479
41973 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
41974
41975 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
41976
41977 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
41978 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
41979 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
41980 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
41981 __builtin_sh_set_fpscr.
41982
41983 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
41984
41985 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
41986 after a funtion name just to indicate it is a function.
41987 ([-fsanitize-undefined-trap-on-error]): Likewise.
41988 ([-fdbg-cnt=]): Likewise.
41989 ([-mmemcpy]): Likewise.
41990 ([-mflush-func]): Likewise.
41991 ([-msynci]): Likewise.
41992
41993 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
41994
41995 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
41996 example.
41997
41998 2015-01-12 Jakub Jelinek <jakub@redhat.com>
41999
42000 PR tree-optimization/64563
42001 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
42002 instead of != VR_VARYING.
42003
42004 PR target/64513
42005 * config/i386/i386.c (ix86_expand_prologue): Add
42006 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
42007
42008 PR tree-optimization/64454
42009 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
42010 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
42011 for signed or [0, op1 - 1] for unsigned modulo.
42012 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
42013 even if op1 does not satisfy integer_pow2p.
42014
42015 PR other/64370
42016 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
42017
42018 2015-01-12 Jeff Law <law@redhat.com>
42019
42020 PR target/64461
42021 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
42022 (trunchiqi2, truncsihi2): Similarly.
42023
42024 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
42025 rather than calling F.
42026
42027 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
42028
42029 * tsan.c (instrument_expr): Use force_gimple_operand.
42030 Use may_be_nonaddressable_p instead of is_gimple_addressable.
42031
42032 2015-01-12 Richard Biener <rguenther@suse.de>
42033
42034 PR tree-optimization/64530
42035 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
42036 back dr1.
42037
42038 2015-01-12 Richard Biener <rguenther@suse.de>
42039
42040 PR middle-end/64357
42041 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
42042 latches properly.
42043
42044 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42045
42046 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
42047 Cortex-A17 tuning parameters.
42048 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
42049
42050 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42051
42052 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
42053 * config/arm/arm.c (arm_macro_fusion_p): New function.
42054 (arm_macro_fusion_pair_p): Likewise.
42055 (TARGET_SCHED_MACRO_FUSION_P): Define.
42056 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
42057 (ARM_FUSE_NOTHING): Likewise.
42058 (ARM_FUSE_MOVW_MOVT): Likewise.
42059 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
42060 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
42061 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
42062 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
42063 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
42064 arm_cortex_a5_tune): Specify fuseable_ops value.
42065
42066 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
42067
42068 PR bootstrap/64561
42069 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
42070 test for PIE with copy reloc.
42071 * configure: Regenerated.
42072
42073 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42074
42075 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
42076 in gen_rtx_REG.
42077 (arm_tls_descseq_addr): Likewise.
42078 (arm_gen_movmemqi): Likewise.
42079 (arm_expand_epilogue_apcs_frame): Likewise.
42080 (arm_expand_epilogue): Likewise.
42081 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
42082 in gen_rtx_REG.
42083
42084 2015-01-12 Martin Liska <mliska@suse.cz>
42085
42086 PR ipa/64550
42087 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
42088 volatility for correct operands.
42089
42090 2015-01-12 Martin Liska <mliska@suse.cz>
42091
42092 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
42093 indication that a function is not leaf.
42094 (sem_function::compare_polymorphic_p): Likewise.
42095
42096 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
42097
42098 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
42099 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
42100 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
42101 fold-const.h, tree-check.h.
42102
42103 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
42104
42105 PR ipa/63967
42106 PR ipa/64425
42107 * ipa-inline.c (compute_uninlined_call_time,
42108 compute_inlined_call_time): Use counts for extra precision when
42109 needed possible.
42110 (big_speedup_p): Fix formating.
42111 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
42112 (relative_time_benefit): Remove.
42113 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
42114 merge guessed and read profile paths.
42115 (inline_small_functions): Count only !optimize_size functions into
42116 initial size; be more lax about sanity check when profile is used;
42117 be sure to update inlined function profile when profile is read.
42118
42119 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
42120
42121 PR ipa/63470
42122 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
42123 cost when edge becomes direct.
42124 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
42125 is resolved or when introducing new speculation.
42126
42127 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
42128
42129 PR ipa/64551
42130 PR ipa/64552
42131 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
42132 '||' to fix typo issue.
42133
42134 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
42135 accept and return NULL.
42136
42137 2015-01-12 Martin Liska <mliska@suse.cz>
42138
42139 * cgraph.c (cgraph_edge::remove_callee): Move function to header
42140 file for being inlined.
42141 (cgraph_set_edge_callee): Delete.
42142 (cgraph_edge::redirect_callee): Move function to header file
42143 for being inlined.
42144 (cgraph_edge::make_direct): Use new function.
42145 (cgraph_edge::dump_edge_flags): New function created from
42146 static dump_edge_flags function.
42147 (cgraph_node::dump): Use new function.
42148 (cgraph_edge::verify_count_and_frequency): New function created
42149 from verify_edge_count_and_frequency.
42150 (cgraph_edge::verify_corresponds_to_fndecl): New function created
42151 from verify_edge_corresponds_to_fndecl.
42152 (verify_edge_corresponds_to_fndecl): Delete.
42153 (cgraph_node::verify_node): Use new function.
42154 * cgraph.h (cgraph_edge::set_callee): New function.
42155 (cgraph_edge::dump_edge_flags): Likewise.
42156 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
42157
42158 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
42159
42160 * ipa-utils.c (estimate_function_body_sizes): Do not
42161 free node params when called late with early=true.
42162
42163 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
42164
42165 * doc/md.texi (Instruction Patterns): Rewrite text for
42166 clarity.
42167 (Example): Likewise.
42168
42169 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
42170
42171 * doc/invoke.texi (Option Summary): Break long lines.
42172 [(-fdiagnostics-color)]: Put long literal in @smallexample
42173 instead of inline.
42174 [(-fsanitize-recover)]: Likewise.
42175 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
42176 [(-ffast-math)]: Likewise.
42177 [(--param max-inline-insns-recursive)]: Likewise.
42178 [(--param max-inline-recursive-depth)]: Likewise.
42179 [(-mno-text-section-literals)]: Likewise.
42180
42181 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
42182
42183 * doc/install.texi: Update for libgomp being renamed from "GNU
42184 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
42185 Runtime Library".
42186 * doc/sourcebuild.texi: Likewise.
42187
42188 2015-01-10 Anthony Green <green@moxielogic.com>
42189
42190 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
42191 mul.x availability for moxiebox configuration.
42192
42193 2015-01-09 Anthony Green <green@moxielogic.com>
42194
42195 * config/moxie/moxie.md: Tabify assembly output.
42196
42197 2015-01-09 Anthony Green <green@moxielogic.com>
42198
42199 * config/moxie/moxie.md (CC_REG): Correct register definition.
42200
42201 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
42202
42203 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
42204 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
42205 of log files.
42206
42207 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
42208
42209 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
42210
42211 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
42212 Jakub Jelinek <jakub@redhat.com>
42213
42214 PR middle-end/64412
42215 * lto-streamer.h (lto_stream_offload_p): New declaration.
42216 * lto-streamer.c (lto_stream_offload_p): New variable.
42217 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
42218 at the same time as section_name_prefix.
42219 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
42220 if lto_stream_offload_p.
42221 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
42222 stream TREE_TARGET_OPTION if lto_stream_offload_p.
42223 (write_ts_function_decl_tree_pointers): Don't
42224 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
42225 * tree-streamer-in.c (unpack_value_fields): Don't stream
42226 TREE_TARGET_OPTION in if ACCEL_COMPILER.
42227 (lto_input_ts_function_decl_tree_pointers): Don't stream
42228 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
42229 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
42230 instead of section_name_prefix string comparisons.
42231
42232 2015-01-09 Jakub Jelinek <jakub@redhat.com>
42233
42234 PR rtl-optimization/64536
42235 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
42236 tablejumps.
42237
42238 2015-01-09 Michael Collison <michael.collison@linaro.org>
42239
42240 PR tree-optimization/64322
42241 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
42242 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
42243
42244 2015-01-09 Tom de Vries <tom@codesourcery.com>
42245
42246 PR rtl-optimization/64539
42247 * regcprop.c (kill_clobbered_values): Factor out of ...
42248 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
42249 instead of note_stores with kill_clobbered_value.
42250
42251 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
42252
42253 * ginclude/unwind-arm-common.h: Revert previous commit.
42254
42255 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
42256
42257 * config.gcc (arm*-*-freebsd*): New configuration.
42258 * config/arm/freebsd.h: New file.
42259 * config.host: Add extra components for arm*-*-freebsd*.
42260 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
42261 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
42262
42263 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
42264
42265 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
42266 for -mcpu=e6500.
42267 * config/rs6000/t-rtems: Add e6500 multilibs.
42268
42269 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
42270
42271 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
42272 MPC8540.
42273
42274 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
42275
42276 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
42277 MULTILIB_EXCEPTIONS.
42278
42279 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
42280
42281 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
42282 MULTILIB_EXCEPTIONS.
42283
42284 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
42285
42286 * config/arm/t-rtems-eabi: Rename to...
42287 * config/arm/t-rtems: ...this.
42288 * config/arm/rtems-eabi.h: Rename to...
42289 * config/arm/rtems.h: ...this.
42290 * config.gcc (arm*-*-rtems*): Reflect changes above.
42291
42292 2015-01-09 Richard Biener <rguenther@suse.de>
42293
42294 PR tree-optimization/64410
42295 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
42296 on the LHS.
42297 (execute_update_addresses_taken): Deal with that.
42298 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
42299 loads/stores for complex variables.
42300
42301 2015-01-09 Martin Liska <mliska@suse.cz>
42302
42303 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
42304 name comparison.
42305 (func_checker::compare_memory_operand): New function.
42306 (func_checker::compare_operand): Split case to newly
42307 added functions.
42308 (func_checker::compare_cst_or_decl): New function.
42309 (func_checker::compare_gimple_call): Identify
42310 memory operands.
42311 (func_checker::compare_gimple_assign): Likewise.
42312 * ipa-icf-gimple.h: New function.
42313
42314 2015-01-09 Martin Liska <mliska@suse.cz>
42315
42316 PR ipa/64503
42317 * sreal.c (sreal::dump): Change unsigned format to signed for
42318 m_exp value.
42319 (sreal::to_double): Replace exp2 with scalbln.
42320
42321 2015-01-09 Martin Liska <mliska@suse.cz>
42322
42323 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
42324 * ipa-icf.c (sem_function::equals_private): Add support for target and
42325 (sem_item_optimizer::merge_classes): Remove redundant function
42326 optimization flags comparison.
42327 * tree.h (target_opts_for_fn): New function.
42328
42329 2015-01-09 Tom de Vries <tom@codesourcery.com>
42330
42331 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
42332
42333 2015-01-09 Kito Cheng <kito@0xlab.org>
42334
42335 PR rtl-optimization/64348
42336 * lra-constraints.c (split_reg): Fix caller-save store/restore
42337 instruction generation.
42338
42339 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
42340
42341 PR gcov-profile/61790
42342 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
42343 long long. Fallback to int64_t if host doesn't have long long and
42344 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
42345
42346 2015-01-08 Jakub Jelinek <jakub@redhat.com>
42347
42348 PR tree-optimization/63989
42349 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
42350 from 1000 to 10000.
42351 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
42352 (get_stridx): If we don't have a record for certain SSA_NAME,
42353 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
42354 constant offset, call get_stridx_plus_constant.
42355 (get_stridx_plus_constant): New function.
42356 (zero_length_string): Don't use get_stridx here.
42357
42358 PR target/55023
42359 PR middle-end/64388
42360 * dse.c (struct insn_info): Mention frame_read set also
42361 before reload for tail calls on some targets.
42362 (scan_insn): Revert 2014-12-22 change. Set frame_read
42363 also before reload for tail calls if
42364 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
42365 instead of add_non_frame_wild_read for non-const/memset
42366 tail calls after reload.
42367
42368 2015-01-08 Jason Merrill <jason@redhat.com>
42369
42370 * ubsan.c (do_ubsan_in_current_function): New.
42371 (pass_ubsan::gate): Use it.
42372 * ubsan.h: Declare it.
42373 * convert.c (convert_to_integer): Use it.
42374
42375 2015-01-08 Jakub Jelinek <jakub@redhat.com>
42376
42377 PR target/64338
42378 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
42379 compare_code when it is unconditionally overwritten afterwards.
42380 Use ix86_reverse_condition instead of reverse_condition. Don't
42381 change code if *reverse_condition* returned UNKNOWN and don't
42382 swap ct/cf and negate diff in that case.
42383
42384 2015-01-08 Mike Stump <mikestump@comcast.net>
42385
42386 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
42387 (pass_tsan_O0::gate): Likewise.
42388 * extend.texi (Function Attributes): Add no_sanitize_thread
42389 documentation.
42390
42391 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
42392
42393 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
42394 for registering builtins.
42395 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
42396 add -fopenmp to the argv_obstack used when invoking
42397 compile_for_target.
42398
42399 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
42400 add "-m32" or "-m64" to argv_obstack.
42401 (generate_host_descr_file): Likewise, when invoking host_compiler.
42402 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
42403 ld.
42404
42405 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
42406
42407 * config/sh/sh-mem.cc: Use constant as second operand when emitting
42408 tstsi_t insns.
42409
42410 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
42411
42412 PR target/55212
42413 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
42414 constant load if constant operand fits into I08.
42415
42416 2015-01-08 Jakub Jelinek <jakub@redhat.com>
42417
42418 PR sanitizer/64336
42419 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
42420 and TREE_THIS_VOLATILE for MEM_REFs.
42421 (build5_stat): Fix up initialization of TREE_READONLY and
42422 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
42423
42424 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
42425
42426 PR target/64533
42427 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
42428 of r for the second alternative of the destination operand.
42429
42430 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
42431
42432 PR target/36557
42433 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
42434
42435 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
42436
42437 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
42438 keywords.
42439 ([-fivar-visibility], [-fvisibility]): Likewise.
42440
42441 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
42442
42443 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
42444 the file where @code, @command, etc is more appropriate.
42445
42446 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
42447
42448 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
42449 of -mrecip= documentation.
42450
42451 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
42452
42453 PR target/64505
42454 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
42455 correct reload handler if -m32 -mpowerpc64 is used.
42456
42457 2015-01-06 Tom de Vries <tom@codesourcery.com>
42458
42459 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
42460
42461 2015-01-08 Christian Bruel <christian.bruel@st.com>
42462
42463 PR target/64507
42464 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
42465
42466 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
42467
42468 PR tree-optimization/63259
42469 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
42470 if optab exists for 16bit byteswap.
42471
42472 2015-01-06 Jakub Jelinek <jakub@redhat.com>
42473
42474 * opts.c (common_handle_option): Add support for
42475 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
42476 * doc/invoke.texi: Document -fno-sanitize=all,
42477 -f{,no-}sanitize-recover=all. Document that
42478 -fsanitize=float-cast-overflow is not enabled
42479 by -fsanitize=undefined. Fix up documentation
42480 of -f{,no-}sanitize-recover.
42481
42482 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
42483
42484 * config.gcc: Add Visium support.
42485 * configure.ac: Likewise.
42486 * configure: Regenerate.
42487 * doc/extend.texi (interrupt attribute): Add Visium.
42488 * doc/invoke.texi: Document Visium options.
42489 * doc/install.texi: Document Visium target.
42490 * doc/md.texi: Document Visium constraints.
42491 * common/config/visium: New directory.
42492 * config/visium: Likewise.
42493
42494 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
42495
42496 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
42497 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
42498
42499 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
42500
42501 * combine.c (combine_validate_cost): Do not count the cost of a
42502 split I2 twice. Do not display it twice in the dump, either.
42503
42504 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
42505
42506 Revert parts of r219199.
42507 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
42508 <inttypes.h>.
42509 ([-Wtraditional]): Restore markup on <limits.h>.
42510
42511 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
42512
42513 PR c++/31397
42514 * doc/invoke.texi: Document -Wsuggest-override.
42515
42516 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
42517
42518 PR rtl-optimization/64287
42519 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
42520 (process_options): Disable flag_ipa_ra if profiling.
42521
42522 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
42523
42524 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
42525
42526 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
42527
42528 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
42529 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
42530 put under #if TARGET_LOOPS guard.
42531
42532 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
42533
42534 * config/i386/i386.c (output_387_binary_op): Use std::swap.
42535
42536 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
42537
42538 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
42539 * rtl.h (refers_to_regno_p): Add overload.
42540 * cse.c: Use it.
42541 * bt-load.c: Likewise.
42542 * combine.c: Likewise.
42543 * df-scan.c: Likewise.
42544 * sched-deps.c: Likewise.
42545 * config/s390/s390.c: Likewise.
42546 * config/m32r/m32r.c: Likewise.
42547 * config/rs6000/spe.md: Likewise.
42548 * config/rs6000/rs6000.c: Likewise.
42549 * config/pa/pa.c: Likewise.
42550 * config/stormy16/stormy16.c: Likewise.
42551 * config/cris/cris.c: Likewise.
42552 * config/arc/arc.md: Likewise.
42553 * config/arc/arc.c: Likewise.
42554 * config/sh/sh.md: Likewise.
42555 * config/sh/sh.c: Likewise.
42556 * config/frv/frv.c: Likewise.
42557
42558 2015-01-05 Jakub Jelinek <jakub@redhat.com>
42559
42560 PR sanitizer/64265
42561 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
42562 call as cleanup of the whole body.
42563 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
42564 * tsan.c (replace_func_exit): New function.
42565 (instrument_func_exit): Moved earlier.
42566 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
42567 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
42568 been found.
42569 (tsan_pass): Don't call instrument_func_exit.
42570 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
42571 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
42572 inlining.
42573
42574 PR sanitizer/64344
42575 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
42576 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
42577 it to libubsan handler instead of EXPR. Fold comparisons earlier,
42578 if the result is integer_zerop, return NULL_TREE.
42579 * convert.c (convert_to_integer): Pass expr as ARG.
42580
42581 PR tree-optimization/64465
42582 * tree-inline.c (redirect_all_calls): During inlining
42583 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
42584 changed the stmt to a non-throwing call.
42585
42586 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
42587
42588 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
42589 etc markup throughout the file.
42590
42591 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
42592
42593 Enable experimental TSAN support for Ada.
42594 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
42595
42596 2015-01-05 Jakub Jelinek <jakub@redhat.com>
42597
42598 PR tree-optimization/64494
42599 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
42600 clear SSA_NAME_ANTI_RANGE_P flag.
42601
42602 2015-01-05 Marek Polacek <polacek@redhat.com>
42603
42604 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
42605
42606 2015-01-05 Jakub Jelinek <jakub@redhat.com>
42607
42608 Update copyright years.
42609
42610 * gcc.c (process_command): Update copyright notice dates.
42611 * gcov-dump.c: Ditto.
42612 * gcov.c: Ditto.
42613 * doc/cpp.texi: Bump @copying's copyright year.
42614 * doc/cppinternals.texi: Ditto.
42615 * doc/gcc.texi: Ditto.
42616 * doc/gccint.texi: Ditto.
42617 * doc/gcov.texi: Ditto.
42618 * doc/install.texi: Ditto.
42619 * doc/invoke.texi: Ditto.
42620
42621 * auto-profile.c, auto-profile.h: Fix up Copyright line.
42622
42623 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
42624
42625 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
42626 verb tense, etc.
42627 ([-fvtable-verify], [-fvtv-debug]): Likewise.
42628 ([-Wabi]): Likewise.
42629 ([-fmessage-length]): Likewise.
42630 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
42631 ([-Wno-discarded-qualifiers]): Likewise.
42632 ([-Wnodiscarded-array-qualifiers]): Likewise.
42633 ([-Wno-virtual-move-assign]): Likewise.
42634 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
42635 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
42636 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
42637 ([-fsanitize-undefined-trap-on-error]): Likewise.
42638 ([-floop-interchange]): Likewise.
42639 ([-ftree-coalesce-inlined-vars]): Likewise.
42640 ([-fvect-cost-model]): Likewise.
42641 ([-flto]): Likewise.
42642 ([--param]): Likewise.
42643 (Spec Files): Likewise.
42644 ([-mstrict-align]): Likewise.
42645 ([-mfix-cortex-a53-835769]): Likewise.
42646 ([-march], [-mtune]): Likewise.
42647 ([-mpic-register]): Likewise.
42648 ([-munaligned-access]): Likewise.
42649 ([-msp8]): Likewise.
42650 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
42651 (AVR Built-in Macros): Likewise.
42652 ([-mpreferred-stack-boundary]): Likewise.
42653 ([-mtune-crtl]): Likewise.
42654 ([-mashf]): Likewise.
42655 ([-mmcu=]): Likewise.
42656 ([-minrt]): Likewise.
42657 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
42658 ([-mupper-regs]): Likewise.
42659 ([-matomic-model]): Likewise.
42660 ([-mdiv]): Likewise.
42661 ([-mzdcbranch]): Likewise.
42662 ([-mdisable-callt]): Likewise.
42663 ([-msoft-float]): Likewise.
42664 ([-m8byte-align]): Likewise.
42665 ([-fstack-reuse]): Likewise.
42666
42667 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42668
42669 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
42670 Fix markup, light copy-editing.
42671 ([-fauto-profile]): Rewrite to fix formatting and content
42672 problems.
42673
42674 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42675
42676 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
42677 Copy-edit description.
42678 ([-fisolate-erroneous-paths-attribute]): Likewise.
42679 * common.opt (fisolate-erroneous-paths-dereference):
42680 Copy-edit description.
42681 (fisolate-erroneous-paths-attribute): Likewise.
42682
42683 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42684
42685 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
42686 tidy grammar.
42687
42688 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42689
42690 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
42691 ([-fvtv-debug]): Likewise.
42692 ([-Wc++-compat]): Likewise.
42693 ([-Wc++11-compat]): Likewise.
42694 ([-Wc++14-compat]): Likewise.
42695 ([-Wno-sized-deallocation]): Likewise.
42696 ([-femit-class-debug-always]): Likewise.
42697 ([-femit-struct-debug-detailed]): Likewise.
42698 ([-fno-keep-inline-dllexport]): Likewise.
42699 ([-fira-algorithm]): Likewise.
42700 ([-fira-region]): Likewise.
42701 ([-flra-remat]): Likewise.
42702 ([-fipa-ra]): Likewise.
42703 ([-fhoist-adjacent-loads]): Likewise.
42704 ([-fisolate-erroneous-paths-dereference]): Likewise.
42705 ([-fisolate-erroneous-paths-attribute]): Likewise.
42706 ([-ftree-switch-conversion]): Likewise.
42707 ([-ftree-tail-merge]): Likewise.
42708 ([-ftree-loop-if-convert]): Likewise.
42709 ([-ftree-loop-if-convert-stores]): Likewise.
42710 ([-ftree-loop-distribution]): Likewise.
42711 ([-ftree-loop-distribute-patterns]): Likewise.
42712 ([-flto-compression-level]): Likewise.
42713 ([-flto-report]): Likewise.
42714 ([-flto-report-wpa]): Likewise.
42715 ([-fuse-linker-plugin]): Likewise.
42716 ([-mfix-cortex-a53-835769]): Likewise.
42717 ([-mno-fix-cortex-a53-835769]): Likewise.
42718 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
42719 explicit listing; add a note to the discussion indicating they
42720 exist. Reorder table to group similar options. Add missing
42721 @opindex entries. Add @need commands throughout the table to
42722 allow it to be split across multiple pages.
42723 ([-m8bit-idiv]): Fix @opindex.
42724 ([-mavx256-split-unaligned-load]): Likewise.
42725 ([-mavx256-split-unaligned-store]): Likewise.
42726 ([-mstack-protector-guard]): Likewise.
42727 ([-mcpu=]): Likewise.
42728 ([-mcpu]): Likewise.
42729 ([-mpointer-size=]): Likewise.
42730
42731 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
42732
42733 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
42734 instead of `m' constraint. Likewise for unnamed movb comparison
42735 patterns using reg_before_reload_operand predicate.
42736 * config/pa/predicates.md (reg_before_reload_operand): Tighten
42737 predicate to reject register index and LO_SUM DLT memory forms
42738 after reload.
42739
42740 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
42741
42742 * doc/invoke.texi (Option Summary): Fix spelling of
42743 -fdevirtualize-at-ltrans.
42744 ([-fdevirtualize]): Fix markup.
42745 ([-fdevirtualize-speculatively]): Fix typo.
42746 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
42747 implementor-speaky.
42748 * common.opt (fdevirtualize-at-ltrans): Likewise.
42749 * ipa-devirt.c: Fix typos in comments throughout the file.
42750 (ipa_devirt): Fix typos in format strings for dump output.
42751
42752 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
42753
42754 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
42755 discussion of defaults, light copy-editing.
42756
42757 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
42758
42759 * tsan.c (instrument_expr): corrected previous checkin.
42760
42761 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
42762
42763 Instrument bit field and unaligned accesses for TSAN.
42764 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
42765 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
42766 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
42767 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
42768 unaligned memory regions.
42769
42770 2015-01-01 Anthony Green <green@moxielogic.com>
42771
42772 * config/moxie/predicates.md (moxie_general_movsrc_operand):
42773 Restrict move source register offsets to 16 bits.
42774 \f
42775 Copyright (C) 2015 Free Software Foundation, Inc.
42776
42777 Copying and distribution of this file, with or without modification,
42778 are permitted in any medium without royalty provided the copyright
42779 notice and this notice are preserved.