f79e71d5483cd6d72844619643cdc5eb66c8fb44
[gcc.git] / gcc / ChangeLog
1 2015-10-20 Richard Biener <rguenther@suse.de>
2
3 PR tree-optimization/68017
4 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
5
6 2015-10-20 Martin Liska <mliska@suse.cz>
7
8 * cgraphclones.c (cgraph_node::create_virtual_clone):
9 Verify cgraph_node.local.versionable instead of calling
10 tree_versionable_function_p.
11 * ipa-cp.c (determine_versionability): Save the information
12 to ipa_node_params summary.
13 (ipcp_versionable_function_p): Use it.
14 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
15 (ipcp_generate_summary): Do not compute cgraph_node
16 versionability.
17 * ipa-inline-analysis.c (inline_generate_summary): Compute
18 versionability for all cgraph nodes.
19 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
20 ipa_node_params::versionability.
21 * ipa-prop.h (struct ipa_node_params): Declare it.
22
23 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24
25 PR other/67868
26 * varasm.c (assemble_variable): Move special vtv handling to..
27 (handle_vtv_comdat_sections): .. here. New function.
28 (output_object_block): Handle vtv sections.
29
30 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
31
32 PR target/66912
33 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
34
35 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
36
37 * doc/extend.texi: Update documentation WRT inline functions.
38
39 2015-10-20 Alan Modra <amodra@gmail.com>
40
41 PR go/66870
42 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
43 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
44 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
45
46 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
47
48 PR rtl-optimization/66790
49 * df.h (DF_MIR): New macro.
50 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
51 (DF_MIR_INFO_BB): New macro.
52 (DF_MIR_IN, DF_MIR_OUT): New macros.
53 (struct df_mir_bb_info): New.
54 (df_mir): New macro.
55 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
56 declarations.
57 (df_mir_get_bb_info): New.
58 * df-problems.c (struct df_mir_problem_data): New.
59 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
60 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
61 df_mir_confluence_0, df_mir_confluence_n,
62 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
63 df_mir_bottom_dump, df_mir_verify_solution_start,
64 df_mir_verify_solution_end): New.
65 (problem_MIR): New.
66 (df_mir_add_problem, df_mir_simulate_one_insn): New.
67 * timevar.def (TV_DF_MIR): New.
68 * ree.c: Include bitmap.h
69 (add_removable_extension): Add an INIT_REGS parameter. Use it
70 to skip zero-extensions that may get an uninitialized register.
71 (find_removable_extensions): Compute must-initialized registers
72 using the MIR dataflow problem. Update the call to
73 add_removable_extension.
74 (find_and_remove_re): Call df_mir_add_problem.
75
76 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
77
78 * common/config/mn10300/mn10300-common.c
79 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
80 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
81
82 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
83
84 * doc/extend.texi (Explicit Register Variables): Simplify and
85 avoid unnecessary and confusion abbreviations. Update cross
86 references.
87 doc/implement-c.tex: Update cross reference.
88
89 2015-10-19 Jeff Law <law@redhat.com>
90
91 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
92 that create irreducible loops unless the path elimiantes a multiway
93 branch.
94
95 2015-10-19 Richard Biener <rguenther@suse.de>
96
97 PR tree-optimization/67975
98 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
99 * tree-cfg.c (extract_true_false_controlled_edges): Split out
100 core worker from ...
101 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
102 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
103 instead of block number for PHIs with two or one args.
104 (vn_phi_eq): Compare edge predicates of PHIs that are in different
105 blocks.
106
107 2015-10-19 Richard Biener <rguenther@suse.de>
108
109 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
110 (gimple_stmt_nonnegative_warnv_p): Use it.
111 * match.pd (CPROJ): New operator list.
112 (cproj (complex ...)): Move simplifications from ...
113 * builtins.c (fold_builtin_cproj): ... here.
114
115 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
116
117 * config/i386/i386.c (ix86_expand_vector_move): Use
118 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
119 alignment.
120
121 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
122
123 * doc/invoke.texi: Replace @optindex with @opindex.
124
125 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
126
127 PR target/67995
128 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
129 arch= is set, clear all bits in x_ix86_isa_flags, except for
130 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
131
132 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
133
134 PR middle-end/68002
135 * common.opt (fkeep-static-functions): New option.
136 * doc/invoke.texi: Document it.
137 * cgraphunit.c (cgraph_node::finalize_function): Use it.
138
139 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
140
141 * sched-int.h (struct autopref_multipass_data_): Remove offset
142 field. Add min_offset, max_offset, multi_mem_insn_p fields.
143 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
144 (autopref_multipass_init): Use it. Handle PARALLEL sets.
145 (autopref_rank_data): New function.
146 (autopref_rank_for_schedule): Use it.
147 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
148
149 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
150
151 PR other/65800
152 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
153
154 2015-10-18 Iain Sandoe <iain@codesourcery.com>
155
156 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
157 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
158 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
159 (STANDARD_STARTFILE_PREFIX_1): New.
160 (STANDARD_STARTFILE_PREFIX_2): New.
161
162 2015-10-18 Iain Sandoe <iain@codesourcery.com>
163
164 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
165 (darwin_driver_init): Note a version-min when provided on the c/l.
166 * config/darwin.h (%darwin_minversion): Remove.
167 * config/i386/darwin.h: Likewise.
168 * config/rs6000/darwin.h: Likewise.
169 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
170 rather than an arbitrary constant.
171
172 2015-10-18 Iain Sandoe <iain@codesourcery.com>
173
174 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
175 PPC, detect conflicts between -arch and multilib settings. Detect
176 and warn about conflicts between multiple -arch definitions.
177
178 2015-10-18 Iain Sandoe <iain@codesourcery.com>
179
180 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
181
182 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
183
184 * lra-constraints.c (add_next_usage_insn): Change argument type
185 from rtx to rtx_insn *.
186
187 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
188
189 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
190 for Lakemont.
191
192 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
193
194 * config/tilepro/gen-mul-tables.cc: Adjust include files.
195 * config/tilegx/mul-tables.c: Regenerate.
196 * config/tilepro/mul-tables.c: Regenerate.
197
198 * config/tilegx/tilegx-c.c: Adjust include files.
199 * config/tilegx/tilegx.c: Likewise.
200 * config/tilepro/tilepro-c.c: Likewise.
201 * config/tilepro/tilepro.c: Likewise.
202 * config/aarch64/aarch64-builtins.c: Likewise.
203 * config/aarch64/aarch64.c: Likewise.
204 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
205 * config/alpha/alpha.c: Likewise.
206 * config/arc/arc.c: Likewise.
207 * config/arm/aarch-common.c: Likewise.
208 * config/arm/arm-builtins.c: Likewise.
209 * config/arm/arm-c.c: Likewise.
210 * config/arm/arm.c: Likewise.
211 * config/avr/avr-c.c: Likewise.
212 * config/avr/avr-devices.c: Likewise.
213 * config/avr/avr-log.c: Likewise.
214 * config/avr/avr.c: Likewise.
215 * config/bfin/bfin.c: Likewise.
216 * config/c6x/c6x.c: Likewise.
217 * config/cr16/cr16.c: Likewise.
218 * config/cris/cris.c: Likewise.
219 * config/darwin-c.c: Likewise.
220 * config/darwin-driver.c: Likewise.
221 * config/darwin.c: Likewise.
222 * config/default-c.c: Likewise.
223 * config/epiphany/epiphany.c: Likewise.
224 * config/epiphany/mode-switch-use.c: Likewise.
225 * config/epiphany/resolve-sw-modes.c: Likewise.
226 * config/fr30/fr30.c: Likewise.
227 * config/frv/frv.c: Likewise.
228 * config/ft32/ft32.c: Likewise.
229 * config/glibc-c.c: Likewise.
230 * config/h8300/h8300.c: Likewise.
231 * config/i386/host-cygwin.c: Likewise.
232 * config/i386/host-mingw32.c: Likewise.
233 * config/i386/i386-c.c: Likewise.
234 * config/i386/i386.c: Likewise.
235 * config/i386/msformat-c.c: Likewise.
236 * config/i386/winnt-cxx.c: Likewise.
237 * config/i386/winnt-stubs.c: Likewise.
238 * config/i386/winnt.c: Likewise.
239 * config/ia64/ia64-c.c: Likewise.
240 * config/ia64/ia64.c: Likewise.
241 * config/iq2000/iq2000.c: Likewise.
242 * config/lm32/lm32.c: Likewise.
243 * config/m32c/m32c-pragma.c: Likewise.
244 * config/m32c/m32c.c: Likewise.
245 * config/m32r/m32r.c: Likewise.
246 * config/mcore/mcore.c: Likewise.
247 * config/mep/mep-pragma.c: Likewise.
248 * config/mep/mep.c: Likewise.
249 * config/microblaze/microblaze-c.c: Likewise.
250 * config/microblaze/microblaze.c: Likewise.
251 * config/mips/mips-tables.opt
252 * config/mips/mips.c: Likewise.
253 * config/mmix/mmix.c: Likewise.
254 * config/mn10300/mn10300.c: Likewise.
255 * config/moxie/moxie.c: Likewise.
256 * config/msp430/msp430-c.c: Likewise.
257 * config/msp430/msp430.c: Likewise.
258 * config/nds32/nds32-cost.c: Likewise.
259 * config/nds32/nds32-fp-as-gp.c: Likewise.
260 * config/nds32/nds32-intrinsic.c: Likewise.
261 * config/nds32/nds32-isr.c: Likewise.
262 * config/nds32/nds32-md-auxiliary.c: Likewise.
263 * config/nds32/nds32-memory-manipulation.c: Likewise.
264 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
265 * config/nds32/nds32-predicates.c: Likewise.
266 * config/nds32/nds32.c: Likewise.
267 * config/nios2/nios2.c: Likewise.
268 * config/nvptx/mkoffload.c: Likewise.
269 * config/nvptx/nvptx.c: Likewise.
270 * config/pa/pa.c: Likewise.
271 * config/pdp11/pdp11.c: Likewise.
272 * config/rl78/rl78-c.c: Likewise.
273 * config/rl78/rl78.c: Likewise.
274 * config/rs6000/host-darwin.c: Likewise.
275 * config/rs6000/rs6000-c.c: Likewise.
276 * config/rs6000/rs6000-linux.c: Likewise.
277 * config/rs6000/rs6000.c: Likewise.
278 * config/rx/rx.c: Likewise.
279 * config/s390/s390-c.c: Likewise.
280 * config/s390/s390.c: Likewise.
281 * config/sh/sh-c.c: Likewise.
282 * config/sh/sh-mem.cc: Likewise.
283 * config/sh/sh.c: Likewise.
284 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
285 * config/sh/sh_treg_combine.cc: Likewise.
286 * config/sol2-c.c: Likewise.
287 * config/sol2-cxx.c: Likewise.
288 * config/sol2-stubs.c: Likewise.
289 * config/sol2.c: Likewise.
290 * config/sparc/sparc-c.c: Likewise.
291 * config/sparc/sparc.c: Likewise.
292 * config/spu/spu-c.c: Likewise.
293 * config/spu/spu.c: Likewise.
294 * config/stormy16/stormy16.c: Likewise.
295 * config/v850/v850-c.c: Likewise.
296 * config/v850/v850.c: Likewise.
297 * config/vax/vax.c: Likewise.
298 * config/visium/visium.c: Likewise.
299 * config/vms/vms-c.c: Likewise.
300 * config/vms/vms.c: Likewise.
301 * config/vxworks.c: Likewise.
302 * config/winnt-c.c: Likewise.
303 * config/xtensa/xtensa.c: Likewise.
304
305 2015-10-16 Christian Bruel <christian.bruel@st.com>
306
307 PR target/67745
308 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
309 (FUNCTION_BOUNDARY_P): New macro:
310 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
311 New hook.
312 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
313 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
314 * gcc/target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
315 * gcc/function.c (allocate_struct_function): Call relayout_function hook.
316 * gcc/passes.c (rest_of_decl_compilation): Likewise.
317
318 2015-10-16 Christian Bruel <christian.bruel@st.com>
319
320 PR target/67745
321 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
322 * config/arm/arm.c (arm_option_override_internal): Call
323 arm_override_options_after_change_1.
324 (arm_override_options_after_change): New function.
325 (arm_override_options_after_change_1): Likewise.
326 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
327
328 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
329
330 Revert:
331 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
332 empty constructors.
333
334 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
335
336 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
337 argument is an ADDR_EXPR.
338
339 2015-10-16 Richard Biener <rguenther@suse.de>
340
341 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
342 and get rid of force_gimple_operand_gsi.
343 (gimple_fold_builtin_memory_chk): Likewise.
344 (gimple_fold_builtin_stxcpy_chk): Likewise.
345 (rewrite_to_defined_overflow): Likewise.
346 (gimple_convert_to_ptrofftype): New function.
347 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload,
348 declare.
349
350 2015-10-16 Richard Biener <rguenther@suse.de>
351
352 * tree-nested.h (build_addr): Adjust prototype.
353 * tree-nested.c (build_addr): Remove context argument and use
354 mark_addressable.
355 (get_static_chain): Adjust calls to build_addr.
356 (convert_nl_goto_reference): Likewise.
357 (convert_tramp_reference_op): Likewise.
358 (finalize_nesting_tree_1): Likewise.
359 * value-prof.c (gimple_ic): Likewise.
360 * gimple-low.c (lower_builtin_setjmp): Likewise.
361 * tree-parloops.c (take_address_of): Likewise.
362 (create_call_for_reduction_1): Likewise.
363 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
364 (gimple_gen_ic_func_profiler): Likewise.
365
366 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
367
368 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
369 empty constructors.
370
371 2015-10-16 Michael Collison <michael.collison@linaro.org>
372 Andrew Pinski <andrew.pinski@caviumnetworks.com>
373
374 * match.pd ((x < y) && (x < z) -> x < min (y,z),
375 (x > y) and (x > z) -> x > max (y,z))
376
377 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
378 Szabolcs Nagy <szabolcs.nagy@arm.com>
379
380 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
381 (DYNAMIC_LINKER): Renamed to ...
382 (GLIBC_DYNAMIC_LINKER): This.
383 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
384
385 2015-10-15 Marek Polacek <polacek@redhat.com>
386
387 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
388 gimple_call_builtin instead of is_gimple_call.
389
390 2015-10-15 Richard Biener <rguenther@suse.de>
391
392 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
393
394 2015-10-15 Richard Biener <rguenther@suse.de>
395
396 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
397 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
398 * tree-vect-loop.c (get_initial_def_for_induction): Drop
399 use of force_gimple_operand in favor of gimple_build.
400 Use vect_get_new_ssa_name.
401 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
402 (vectorizable_mask_load_store): Likewise.
403 (vectorizable_call): Likewise.
404 (vectorizable_store): Likewise.
405 (vectorizable_load): Likewise.
406 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
407
408 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
409
410 PR tree-optimization/67945
411 * tree-pass.h (PROP_gimple_opt_math): New property flag.
412 * generic-match-head.c (canonicalize_math_p): New function.
413 * gimple-match-head.c: Include tree-pass.h.
414 (canonicalize_math_p): New function.
415 * match.pd: Group math built-in rules into simplifications
416 and canonicalizations. Guard the latter with canonicalize_math_p.
417 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
418 PROP_gimple_opt_math property.
419
420 2015-10-15 Marek Polacek <polacek@redhat.com>
421
422 PR tree-optimization/67953
423 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
424
425 2015-10-15 Jiong Wang <jiong.wang@arm.com>
426
427 * config.gcc: Recognize "." in architecture base name for AArch64.
428
429 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
430
431 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
432 ROUND_UP macro.
433 * config/mips/mips.c (mips_setup_incoming_varargs): Use
434 ROUND_DOWN to calculate off.
435 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
436 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
437 rounded_size.
438
439 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
440
441 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
442
443 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
444 Torvald Riegel <triegel@redhat.com>
445
446 PR target/67281
447 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
448 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
449 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
450 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
451 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
452 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
453 trechkpt, treclaim, tsr, ttest): New define_expands.
454 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
455 __TM_FENCE__ for htm.
456 * doc/extend.texi: Update documentation for htm builtins.
457
458 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
459
460 PR target/67967
461 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
462 REG_CFA_EXPRESSION to aligned SSE stores.
463
464 2015-10-14 Jeff Law <law@redhat.com>
465
466 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
467 num_threaded_edges for successful FSM threads too.
468
469 2015-10-14 Richard Biener <rguenther@suse.de>
470
471 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
472 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
473 (vect_get_vec_def_for_operand): Remove unused parameter.
474 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
475 (vect_create_epilog_for_reduction): Likewise.
476 (vectorizable_reduction): Likewise.
477 (vectorizable_live_operation): Likewise.
478 * tree-vect-patterns.c (type_conversion_p): Likewise.
479 (vect_recog_vector_vector_shift_pattern): Likewise.
480 (check_bool_pattern): Likewise.
481 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
482 (vect_analyze_slp_cost_1): Likewise.
483 * tree-vect-stmts.c (process_use): Likewise.
484 (vect_get_vec_def_for_operand): Do not handle reductions.
485 (vect_get_vec_defs): Adjust.
486 (vectorizable_mask_load_store): Likewise.
487 (vectorizable_call): Likewise.
488 (vectorizable_simd_clone_call): Likewise.
489 (vect_get_loop_based_defs): Likewise.
490 (vectorizable_conversion): Likewise.
491 (vectorizable_assignment): Likewise.
492 (vectorizable_shift): Likewise.
493 (vectorizable_operation): Likewise.
494 (vectorizable_store): Likewise.
495 (vectorizable_load): Likewise.
496 (vect_is_simple_cond): Likewise.
497 (vectorizable_condition): Likewise.
498 (vect_is_simple_use): Remove unused parameters.
499 (vect_is_simple_use_1): Adjust and rename.
500
501 2015-10-14 Richard Biener <rguenther@suse.de>
502
503 PR tree-optimization/67915
504 * match.pd: Handle comparisons of addresses of STRING_CSTs.
505 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
506 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
507 stmt folding in favor of GIMPLE one.
508
509 2015-10-14 Marek Polacek <polacek@redhat.com>
510
511 PR tree-optimization/67815
512 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
513 (reassociate_bb): Call it.
514
515 2015-10-14 Richard Biener <rguenther@suse.de>
516
517 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
518 Reset info at start.
519 (vect_analyze_group_access_1): Add debug print.
520 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
521 (vect_compute_single_scalar_iteration_cost): ... to this.
522 (vect_analyze_loop_2): Adjust.
523 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
524 * tree-vectorizer.h: ... here.
525 (add_stmt_info_to_vec): Remove.
526 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
527
528 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
529
530 * targhooks.c (default_target_option_pragma_parse): Do not warn if
531 called on behalf of "#pragma GCC pop_options".
532
533 2015-10-14 Tom de Vries <tom@codesourcery.com>
534
535 * cfganal.c (verify_no_unreachable_blocks): New function.
536 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
537 verify_no_unreachable_blocks.
538 cfganal.h (verify_no_unreachable_blocks): Declare.
539
540 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
541
542 * common.opt: Add flag_checking.
543 * system.h (CHECKING_P): Define.
544
545 2015-10-13 Jakub Jelinek <jakub@redhat.com>
546 Aldy Hernandez <aldyh@redhat.com>
547 Ilya Verbin <ilya.verbin@intel.com>
548
549 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
550 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
551 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
552 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
553 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
554 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
555 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
556 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
557 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
558 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
559 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
560 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
561 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
562 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
563 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
564 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
565 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
566 (struct cgraph_simd_clone_arg): Adjust comment.
567 * coretypes.h (struct gomp_ordered): New forward decl.
568 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
569 set critical clauses to it.
570 (gimple_build_omp_ordered): Return gomp_ordered * instead of
571 gimple *. Add CLAUSES argument, set ordered clauses to it.
572 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
573 GIMPLE_OMP_ORDERED.
574 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
575 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
576 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
577 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
578 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
579 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
580 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
581 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
582 renumber
583 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
584 (gomp_critical): Add clauses field.
585 (gomp_ordered): New struct.
586 (is_a_helper <gomp_ordered *>::test): New inline.
587 (gimple_build_omp_critical): Add CLAUSES argument.
588 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
589 instead of gimple *.
590 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
591 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
592 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
593 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
594 inline functions.
595 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
596 (dump_gimple_omp_target): Handle enter data and exit data.
597 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
598 (dump_gimple_omp_critical): Print clauses.
599 (dump_gimple_omp_ordered): New function.
600 (dump_gimple_omp_task): Handle taskloop.
601 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
602 GIMPLE_OMP_ORDERED.
603 * gimple-walk.c (walk_gimple_op): Walk clauses on
604 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
605 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
606 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
607 (struct gimplify_omp_ctx): Add loop_iter_var,
608 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
609 and target_firstprivatize_array_bases fields.
610 (delete_omp_context): Release loop_iter_var.
611 (gimplify_bind_expr): Handle ORT_NONE.
612 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
613 ORT_COMBINED_TARGET.
614 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
615 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
616 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
617 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
618 ctx->target_map_scalars_firstprivate.
619 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
620 data sharing clauses. For data sharing clause with VLA decl
621 on omp target/target data don't add firstprivate for the pointer.
622 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
623 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
624 the addition of ORT_COMBINED_TARGET.
625 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
626 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
627 pointers as zero length array sections and
628 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
629 data sharing.
630 (omp_check_private): Handle omp_member_access_dummy_var vars.
631 (find_decl_expr): New function.
632 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
633 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
634 Handle OMP_CLAUSE_GANG separately. Handle
635 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
636 clauses. Diagnose linear clause on combined
637 distribute {, parallel for} simd construct, unless it is the loop
638 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
639 Handle map clauses with COMPONENT_REF. Initialize
640 ctx->target_map_scalars_firstprivate,
641 ctx->target_firstprivatize_array_bases and
642 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
643 linear clause even to target region if combined. Remove
644 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
645 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
646 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
647 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
648 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
649 For linear clause on worksharing loop combined with parallel add
650 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
651 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
652 omp_member_access_dummy_var vars. Add lastprivate clause to outer
653 taskloop if needed.
654 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
655 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
656 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
657 GOMP_MAP_POINTER.
658 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
659 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
660 in target body. Handle removal of struct mapping if struct is not
661 seen in target body. Remove GOMP_MAP_STRUCT map clause on
662 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
663 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
664 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
665 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
666 clause appear together. Handle
667 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
668 clause if it has map-type-modifier always. Handle
669 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
670 clauses.
671 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
672 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
673 callers.
674 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
675 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
676 iterators in doacross loops.
677 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
678 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
679 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
680 for the addition of ORT_COMBINED_TARGET.
681 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
682 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
683 and OMP_TARGET_EXIT_DATA.
684 (gimplify_omp_ordered): New function.
685 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
686 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
687 Gimplify clauses on OMP_CRITICAL.
688 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
689 expand_GOMP_SIMD_ORDERED_END): New functions.
690 * internal-fn.def (GOMP_SIMD_ORDERED_START,
691 GOMP_SIMD_ORDERED_END): New internal functions.
692 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
693 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
694 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
695 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
696 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
697 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
698 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
699 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
700 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
701 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
702 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
703 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
704 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
705 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
706 adjust type.
707 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
708 GOMP_target_data_41, adjust type.
709 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
710 GOMP_target_update_41, adjust type.
711 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
712 field.
713 (struct omp_for_data): Add ordered and simd_schedule fields.
714 (omp_member_access_dummy_var, unshare_and_remap_1,
715 unshare_and_remap, is_taskloop_ctx): New functions.
716 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
717 (extract_omp_for_data): Handle taskloops and doacross loops
718 and simd schedule modifier.
719 (omp_adjust_chunk_size): New function.
720 (get_ws_args_for): Use it.
721 (lookup_sfield): Change first argument to splay_tree_key,
722 add overload with first argument tree.
723 (maybe_lookup_field): Likewise.
724 (use_pointer_for_field): Handle omp_member_access_dummy_var.
725 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
726 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
727 (build_outer_var_ref): Add LASTPRIVATE argument, handle
728 taskloops and omp_member_access_dummy_var vars.
729 (build_sender_ref): Change first argument to splay_tree_key,
730 add overload with first argument tree.
731 (install_var_field): For mask & 8 use &DECL_UID as key instead
732 of the tree itself.
733 (fixup_child_record_type): Const qualify *.omp_data_i.
734 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
735 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
736 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
737 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
738 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
739 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
740 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
741 kinds.
742 (add_taskreg_looptemp_clauses): New function.
743 (scan_omp_parallel): Use it.
744 (scan_omp_task): Likewise.
745 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
746 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
747 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
748 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
749 sandwiched taskloop constructs. Type check
750 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
751 region. Diagnose depend(source) or depend(sink:...) on
752 target constructs or task/taskloop.
753 (handle_simd_reference): Use get_name.
754 (lower_rec_input_clauses): Likewise. Ignore all
755 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
756 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
757 before passing it to omp_clause_{default,copy}_ctor. Handle
758 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
759 lastprivate_firstprivate flag for linear that needs copyin and
760 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
761 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
762 on taskloop lookup decl in outer context. Pass true to
763 build_outer_var_ref lastprivate argument. Handle
764 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
765 outside of outer taskloop for.
766 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
767 OMP_CLAUSE_DECL.
768 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
769 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
770 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
771 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
772 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
773 abstract origin. Handle omp_member_access_dummy_var vars.
774 (expand_parallel_call): Use expand_omp_build_assign.
775 (expand_task_call): Handle taskloop construct expansion. Add
776 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
777 integers. Add priority argument to GOMP_task* calls. Or in
778 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
779 GOMP_task call.
780 (expand_omp_build_assign): Add prototype. Add AFTER
781 argument, if true emit statements after *GSI_P and continue linking.
782 (expand_omp_taskreg): Adjust expand_task_call caller.
783 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
784 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
785 zero_iter2_bb and first_zero_iter2 arguments, handle computation
786 of counts even for ordered loops.
787 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
788 (expand_omp_ordered_source, expand_omp_ordered_sink,
789 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
790 functions.
791 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
792 clauses on worksharing loop. Handle DOACROSS loop expansion.
793 (expand_omp_for_static_nochunk): Handle linear clauses on
794 worksharing loop. Adjust expand_omp_for_init_counts
795 callers.
796 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
797 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
798 expand_omp_for_init_counts callers.
799 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
800 functions.
801 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
802 Handle doacross loops.
803 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
804 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
805 GOMP_target_{41,update_41,enter_exit_data} libcalls.
806 (expand_omp): Don't expand ordered depend constructs here, record
807 ord_stmt instead for later expand_omp_for_generic.
808 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
809 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
810 clause as stand-alone directive.
811 (lower_omp_ordered_clauses): New function.
812 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
813 don't lower anything.
814 (lower_omp_for_lastprivate): Use last _looptemp_ clause
815 on taskloop for comparison.
816 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
817 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
818 expansion for linear adjustments.
819 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
820 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
821 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
822 to tree * pointing to the stmt's clauses.
823 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
824 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
825 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
826 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
827 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
828 clauses. Always use short kind and 8-bit align shift.
829 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
830 (struct lower_omp_regimplify_operands_data): New type.
831 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
832 New functions.
833 (lower_omp_1): Use lower_omp_regimplify_operands instead of
834 gimple_regimplify_operands.
835 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
836 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
837 clause as stand-alone directive.
838 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
839 (simd_clone_mangle): Mangle the various linear kinds
840 per the new ABI.
841 (simd_clone_adjust_argument_types): Handle
842 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
843 (simd_clone_init_simd_arrays): Don't do anything for uval.
844 (simd_clone_adjust): Handle
845 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
846 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
847 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
848 * omp-low.h (omp_member_access_dummy_var): New prototype.
849 * passes.def (pass_simduid_cleanup): Schedule another copy of the
850 pass after all optimizations.
851 * tree.c (omp_clause_code_name): Add entries for
852 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
853 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
854 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
855 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
856 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
857 OMP_CLAUSE_REDUCTION 5 arguments. Handle
858 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
859 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
860 clauses.
861 * tree-core.h (enum omp_clause_linear_kind): New.
862 (struct tree_omp_clause): Change type of map_kind
863 from unsigned char to unsigned int. Add subcode.if_modifier
864 and subcode.linear_kind fields.
865 (enum omp_clause_code): Add
866 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
867 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
868 (OMP_CLAUSE_REDUCTION): Document
869 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
870 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
871 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
872 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
873 operand.
874 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
875 operand.
876 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
877 codes.
878 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
879 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
880 char.
881 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
882 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
883 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
884 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
885 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
886 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
887 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
888 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
889 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
890 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
891 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
892 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
893 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
894 * tree-inline.c (remap_gimple_stmt): Handle clauses on
895 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
896 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
897 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
898 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
899 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
900 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
901 (convert_local_omp_clauses): Likewise.
902 * tree-pretty-print.c (dump_omp_clause): Handle
903 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
904 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
905 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
906 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
907 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
908 GOMP_MAP_FORCE_DEALLOC. Handle
909 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
910 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
911 and clauses on OMP_ORDERED and OMP_CRITICAL.
912 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
913 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
914 (vectorize_loops): Adjust comments.
915 (pass_simduid_cleanup::execute): Likewise.
916 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
917 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
918 * wide-int.h (wi::gcd): New.
919
920 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
921
922 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
923 (ix86_function_arg_advance): Ditto.
924 (ix86_function_arg): Ditto.
925 (ix86_gimplify_va_arg): Ditto.
926 (ix86_class_max_nregs): Ditto.
927 (inline_memory_move_cost): Ditto.
928 (ix86_set_reg_reg_cost): Ditto.
929 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
930
931 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
932
933 PR middle-end/67912
934 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
935
936 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
937
938 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
939 ROUND_UP macro and UNITS_PER_WORD * 2.
940 * config/sparc/sparc.c (sparc_compute_frame_size):
941 Use ROUND_UP and ROUND_DOWN macros where applicable.
942 (function_arg_record_value, function_arg_record_value_1)
943 (function_arg_record_value_1): Ditto.
944 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
945 alignment to double-word.
946 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
947 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
948 rounded_size.
949
950 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
951
952 * gcc/rtl.h (print_insn): Fix prototype.
953
954 2015-10-13 Tom de Vries <tom@codesourcery.com>
955
956 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
957 -1. Add assert that returned entry matches phi argument.
958 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
959 free_stmt_vec_info_vec ...
960 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
961 with -1.
962
963 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
964
965 PR tree-optimization/67909, 67947
966 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
967 really skip the inner loop.
968
969 2015-10-13 Jeff Law <law@redhat.com>
970
971 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
972 Allow single block jump threading paths.
973
974 2015-10-13 Tom de Vries <tom@codesourcery.com>
975
976 PR tree-optimization/67476
977 * doc/invoke.texi (@item parloops-schedule): New item.
978 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
979 * tree-parloops.c: Include params-enum.h.
980 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
981
982 2015-10-13 Tom de Vries <tom@codesourcery.com>
983
984 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
985 * params-enum.h: New file.
986 * opts.c (handle_param): Handle case that param arg is a string.
987 * params-list.h: Handle DEFPARAMENUM5 in params.def.
988 * params.c (find_param): New function, factored out of ...
989 (set_param_value): ... here.
990 (param_string_value_p): New function.
991 * params.h (struct param_info): Add value_names field.
992 (find_param, param_string_value_p): Declare.
993
994 2015-10-13 Tom de Vries <tom@codesourcery.com>
995
996 PR tree-optimization/67476
997 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
998
999 2015-10-13 Richard Biener <rguenther@suse.de>
1000
1001 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
1002 the data dependence vector.
1003 (vect_peeling_hash_insert): Get the peeling hash table as argument.
1004 (vect_peeling_hash_get_lowest_cost): Likewise.
1005 (vect_enhance_data_refs_alignment): Adjust.
1006 (struct _vect_peel_info, struct _vect_peel_extended_info,
1007 struct peel_info_hasher): Move from ...
1008 * tree-vectorizer.h: ... here.
1009 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
1010 (LOOP_VINFO_PEELING_HTAB): Likewise.
1011 (struct _loop_vec_info): Remove min_profitable_iters and
1012 peeling_htab members.
1013 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
1014 here.
1015 (destroy_loop_vec_info): Adjust.
1016 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
1017 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
1018 to estimate alias versioning cost.
1019 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
1020
1021 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
1022
1023 * real.h (real_isinteger): Declare.
1024 * real.c (real_isinteger): New function.
1025 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
1026 if y is an even integer.
1027
1028 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1029
1030 revert:
1031 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1032 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
1033 counts when these are more informative.
1034
1035 2015-10-12 Jeff Law <law@redhat.com>
1036
1037 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
1038 (fsm_find_control_stmt_paths): Change name of first argument to
1039 more accurately relfect what it really is. Handle simplification
1040 of GIMPLE_COND after finding a thread path for NAME.
1041 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
1042 nontrivial conditions to be handled by FSM threader.
1043 (thread_through_normal_block): Extract the name to looup via
1044 FSM threader from COND_EXPR.
1045
1046 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
1047 restriction that traced SSA_NAME is a user variable.
1048
1049 2015-10-12 Tom de Vries <tom@codesourcery.com>
1050
1051 PR tree-optimization/67476
1052 * omp-low.c (expand_omp_for_generic): Add missing phis.
1053
1054 2015-10-12 Tom de Vries <tom@codesourcery.com>
1055
1056 PR tree-optimization/67476
1057 * omp-low.c (expand_omp_for_generic): Handle simple latch.
1058
1059 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
1060
1061 * config/aarch64/aarch64-simd-builtins.def: Update builtins
1062 tables: add tbl3 and tbx4.
1063 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
1064 (aarch64_tbx4v8qi): New.
1065 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
1066 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
1067 Rewrite using builtin functions.
1068 * config/aarch64/iterators.md (UNSPEC_TBX): New.
1069
1070 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
1071
1072 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
1073 ROUND_UP macro.
1074 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
1075 Use ROUND_UP and ROUND_DOWN macros where applicable.
1076 (rs6000_darwin64_record_arg_flush): Ditto.
1077 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
1078 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
1079 rounded_size.
1080
1081 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
1082
1083 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
1084 (AARCH64_ROUND_DOWN): Ditto.
1085 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
1086
1087 2015-10-12 Richard Biener <rguenther@suse.de>
1088
1089 PR ipa/67783
1090 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
1091 code that analyzes IVs on each stmt but in a cheaper way avoiding
1092 quadratic behavior.
1093
1094 2015-10-12 Nick Clifton <nickc@redhat.com>
1095
1096 * config/msp430/msp430.c (msp430_mcu_names): Rename to
1097 msp430_mcu_data, add fields for ISA and hardware multiply
1098 support. Import latest data from the devices.csv file.
1099 (msp430_override_option): Use the data from the new array.
1100 (msp430_use_f5_series_hwmult): Likewise.
1101 (use_32bit_hwmult): Likewise.
1102 (msp430_no_hwmult): Likewise.
1103 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
1104 MCU names.
1105 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
1106 not recognised then no hardware multiply support is assumed and
1107 that only the MSP430 ISA is allowed.
1108
1109 2015-10-12 Richard Biener <rguenther@suse.de>
1110
1111 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
1112 related code ...
1113 (vect_analyze_loop_2): ... here.
1114
1115 2015-10-11 Jason Merrill <jason@redhat.com>
1116
1117 PR c++/67557
1118 * expr.c (store_field): Call store_constructor directly when
1119 storing a CONSTRUCTOR into a target smaller than its type.
1120 Guard against unsafe bitwise copy.
1121
1122 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1123
1124 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
1125 counts when these are more informative.
1126
1127 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1128
1129 * tree-profile.c (tree_profiling): Do not clear
1130 pure/const when not instrumenting.
1131 (pass tree_profile): Add dump of symtab.
1132
1133 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1134
1135 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
1136 addresses.
1137 (fold_addr_of_array_ref_difference): Likewise.
1138
1139 2015-10-11 Jeff Law <law@redhat.com>
1140
1141 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
1142 tree-ssa-threadbackward.c.
1143 (fsm_find_control_statement_thread_paths): Likewise.
1144 (thread_through_normal_block): Break out FSM bits and move them
1145 into a new function in tree-ssa-threadbackward.c. Call new function
1146 instead.
1147 Minimize header file usage.
1148 * tree-ssa-threadbackward.h: New file.
1149 * tree-ssa-threadbackward.c: Likewise.
1150 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
1151
1152 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
1153
1154 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
1155
1156 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
1157
1158 PR rtl-optimization/67864
1159 * gcc/bb-reorder (reorder_basic_blocks_simple): Prefer existing
1160 fallthrough edges for conditional jumps. Don't sort candidate
1161 edges if not optimizing for speed.
1162
1163 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1164
1165 * defaults.h (REVERSE_CONDITION): New default definition.
1166 * jump.c (reversed_comparison_code_parts): Adjust.
1167
1168 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1169
1170 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
1171 check HARD_FRAME_POINTER_IS_ARG_POINTER.
1172
1173 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1174
1175 * defaults.h (FRAME_ADDR_RTX): New default definition.
1176 * builtins.c (expand_builtin_return_addr): Adjust.
1177
1178 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1179
1180 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
1181 * builtins.c (expand_builtin_return_addr): Adjust.
1182
1183 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1184
1185 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
1186 * builtins.c (expand_builtin_return_addr): Adjust.
1187 * doc/tm.texi: Likewise.
1188 * doc/tm.texi.in: Likewise.
1189 * except.c (expand_builtin_unwind_init): Likewise.
1190
1191 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1192
1193 * builtins.c (expand_builtin_return_addr): Adjust.
1194 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
1195
1196 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
1197
1198 * tree.c (type_with_interoperable_signedness): New.
1199 (gimple_canonical_types_compatible_p): Use it.
1200 * tree.h (type_with_interoperable_signedness): Declare
1201
1202 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
1203
1204 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
1205 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
1206 when OEP_ADDRESS_OF is se.
1207
1208 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
1209 Sebastian Pop <s.pop@samsung.com>
1210
1211 * graphite-dependences.c (scop_get_dependences): Add dump of the
1212 data dependence graph.
1213 * graphite-poly.c (print_isl_union_map): New.
1214 (debug_isl_union_map): New.
1215 * graphite-poly.h (print_isl_union_map): Declare.
1216 (debug_isl_union_map): Declare.
1217
1218 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
1219 Sebastian Pop <s.pop@samsung.com>
1220
1221 * graphite-poly.c (print_iteration_domain): Remove verbosity.
1222 Remove OpenScop formatting.
1223 (print_iteration_domains): Same.
1224 (debug_iteration_domain): Same.
1225 (debug_iteration_domains): Same.
1226 (print_pdr): Same.
1227 (debug_pdr): Same.
1228 (dump_gbb_cases): Same.
1229 (dump_gbb_conditions): Same.
1230 (print_pdrs): Same.
1231 (debug_pdrs): Same.
1232 (print_pbb_body): Same.
1233 (print_pbb): Same.
1234 (print_scop_params): Same.
1235 (print_scop_context): Same.
1236 (print_scop): Same.
1237 (debug_pbb_domain): Same.
1238 (debug_pbb): Same.
1239 (debug_scop_context): Same.
1240 (debug_scop): Same.
1241 (debug_scop_params): Same.
1242 * graphite-poly.h: Same.
1243 * graphite.c (graphite_transform_loops): Same.
1244
1245 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1246
1247 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
1248 call that isn't needed.
1249
1250 2015-10-09 Jeff Law <law@redhat.com>
1251
1252 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
1253 rather than moving each name to the freelist individually.
1254
1255 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
1256
1257 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
1258 * frame-header-opt.c: New file.
1259 * config/mips/mips-proto.h (mips_register_frame_header_opt):
1260 Add prototype.
1261 * config/mips/mips.c (mips_compute_frame_info): Check
1262 optimize_call_stack flag.
1263 (mips_option_override): Register new frame_header_opt pass.
1264 (mips_frame_info, mips_int_mask, mips_shadow_set,
1265 machine_function): Move these types to...
1266 * config/mips/mips.h: here.
1267 (machine_function): Add does_not_use_frame_header and
1268 optimize_call_stack fields.
1269 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
1270 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
1271 Document new flags.
1272 * config/mips/mips.opt (mframe-header-opt): Add new option.
1273
1274 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
1275
1276 * config/i386/i386.c
1277 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
1278 ROUND_DOWN where applicable.
1279
1280 2015-10-09 Jeff Law <law@redhat.com>
1281
1282 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
1283 correct statement.
1284
1285 2015-10-09 Renlin Li <renlin.li@arm.com>
1286
1287 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
1288 operands[0] and operands[2].
1289 (neon_vtrn<mode>_insn): Likewise.
1290 (neon_vzip<mode>_insn): Likewise.
1291
1292 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
1293
1294 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
1295 ((X & C2) << C1): Expand to...
1296 (X {&,^,|} C2 << C1): ...This.
1297 ((X & C2) >> C1): Expand to...
1298 (X {&,^,|} C2 >> C1): ...This.
1299
1300 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
1301
1302 PR target/67895
1303 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
1304 Adjust embedded rounding/SAE specifier position.
1305 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
1306 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
1307 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
1308 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
1309 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
1310 Likewise.
1311 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
1312
1313 2015-10-09 Martin Jambor <mjambor@suse.cz>
1314
1315 tree-optimization/67794
1316 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
1317 between types of state,ents but accept original definitions as a
1318 parameter.
1319 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
1320 iterate over definitions.
1321
1322 2015-10-09 James Norris <jnorris@codesourcery.com>
1323
1324 * config/rs6000/rs6000.c (rs6000_offload_options): New.
1325 (TARGET_OFFLOAD_OPTIONS): New.
1326
1327 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
1328
1329 PR middle-end/67891
1330 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
1331
1332 PR middle-end/67766
1333 * function.c (expand_function_end): Move return value
1334 promotion past the handling of PARALLELs and CONCATs.
1335
1336 PR rtl-optimization/67828
1337 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
1338 (tree_may_unswitch_on): Don't unswitch on expressions
1339 involving undefined values.
1340
1341 2015-10-09 Richard Biener <rguenther@suse.de>
1342
1343 * genmatch.c (print_operand): Fix formatting.
1344 (dt_node::append_simplify): Warn for multiple simplifiers
1345 that match the same pattern.
1346 * match.pd (log (exp @0)): Remove duplicates.
1347
1348 2015-10-09 Richard Biener <rguenth@suse.de>
1349
1350 PR target/67366
1351 * gimple-fold.c (optabs-query.h): Include
1352 (gimple_fold_builtin_memory_op): Allow unaligned stores
1353 when movmisalign_optabs are available.
1354
1355 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1356
1357 PR target/67366
1358 * config/arm/arm.md (movmisalign<mode>): New.
1359 * config/arm/iterators.md (HSI): New.
1360
1361 2015-10-09 Richard Biener <rguenther@suse.de>
1362
1363 PR tree-optimization/67891
1364 * gimple-match.h (gimple_simplified_result_is_gimple_val):
1365 New helper.
1366 (gimple_resimplify1): Declare.
1367 (gimple_resimplify2): Likewise.
1368 (gimple_resimplify3): Likewise.
1369 * gimple-match-head.c (gimple_resimplify1): Export.
1370 (gimple_resimplify2): Likewise.
1371 (gimple_resimplify3): Likewise.
1372 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
1373 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
1374 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
1375 to avoid creating stmts without VN info.
1376
1377 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
1378
1379 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
1380 of availability.
1381
1382 2015-10-08 Jeff Law <law@redhat.com>
1383
1384 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
1385 and release_ssa_name in two places.
1386 (gimple_stringop_fixed_value): Similarly.
1387
1388 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
1389 release_defs.
1390
1391 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
1392 unlink_stmt_vdef and release_ssa_name_fn.
1393
1394 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
1395 release_defs.
1396
1397 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
1398
1399 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
1400 SSE register save area to 16 bytes only if the incoming stack
1401 boundary is no less than 16 bytes.
1402
1403 2015-10-08 Jeff Law <law@redhat.com>
1404
1405 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
1406 release_ssa_name. Fix typo in comment.
1407
1408 2015-10-08 Nathan Sidwell <nathan@acm.org>
1409
1410 * config/nvptx/nvptx.h (struct machine_function): Add comment.
1411 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
1412 may return pointer as well as in memory.
1413 (nvptx_output_return): Likewise.
1414
1415 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
1416
1417 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
1418 (fold_builtin_1): Update accordingly. Handle constant arguments here.
1419 * match.pd: Add rules previously handled by fold_builtin_sqrt
1420 and fold_builtin_cbrt.
1421
1422 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
1423
1424 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
1425 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
1426 * fold-const.h (tree_unary_nonnegative_warnv_p)
1427 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
1428 (tree_expr_nonnegative_warnv_p): Add depth parameters.
1429 * fold-const.c: Include gimple-fold.h and params.h.
1430 (tree_ssa_name_nonnegative_warnv_p): New function.
1431 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
1432 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
1433 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
1434 Add a depth parameter and increment it for recursive calls to
1435 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
1436 to handle SSA names.
1437 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
1438 (gimple_stmt_nonnegative_warnv_p): Declare.
1439 * tree-vrp.c (remove_range_assertions): Remove assert that condition
1440 cannot be proven false.
1441 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
1442 (gimple_stmt_nonnegative_warnv_p): Move to...
1443 * gimple-fold.c: ...here. Add depth parameters and pass them
1444 down to the tree routines. Accept statements that aren't
1445 assignments or calls but just return false for them.
1446 (gimple_val_nonnegative_real_p): Delete.
1447 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
1448 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
1449 Check HONOR_NANs first.
1450
1451 2015-10-08 Martin Jambor <mjambor@suse.cz>
1452
1453 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
1454 unnecessary MIN.
1455
1456 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
1457
1458 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
1459 in the tail of outer-loop.
1460
1461 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
1462
1463 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
1464 return UI_NONE.
1465
1466 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
1467
1468 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
1469 "cfghooks.h", add prototypes for introduced new functions.
1470 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
1471 checks on ability of loop unswitching to tree_unswitch_single_loop;
1472 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
1473 on innermost loop check.
1474 (tree_unswitch_single_loop): Add all required checks on ability of
1475 loop unswitching under zero recursive level guard.
1476 (tree_unswitch_outer_loop): New function.
1477 (find_loop_guard): Likewise.
1478 (empty_bb_without_guard_p): Likewise.
1479 (used_outside_loop_p): Likewise.
1480 (get_vop_from_header): Likewise.
1481 (hoist_guard): Likewise.
1482 (check_exit_phi): Likewise.
1483
1484 2015-10-08 Marek Polacek <polacek@redhat.com>
1485
1486 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
1487 ops element.
1488
1489 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1490
1491 PR c/65345
1492 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
1493 create_tmp_var_raw instead of create_tmp_var.
1494
1495 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
1496
1497 * expr.c (store_expr_with_bounds): Handle aggregate moves from
1498 BLKmode.
1499 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
1500 to define gimple type system; compare aggregates only by size.
1501
1502 2015-10-07 Jeff Law <law@redhat.com>
1503
1504 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
1505 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
1506 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
1507 unnecessarily.
1508
1509 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
1510 Sebastian Pop <s.pop@samsung.com>
1511
1512 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
1513 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
1514 (generate_isl_schedule): Same.
1515 * graphite-optimize-isl.c (scop_get_domains): Same.
1516 (apply_schedule_map_to_scop): Same.
1517 * graphite-poly.c (print_iteration_domains): Same.
1518 (remove_gbbs_in_scop): Same.
1519 (new_scop): Same.
1520 (free_scop): Same.
1521 (print_scop): Same.
1522 * graphite-poly.h (struct scop): Rename bbs to pbbs.
1523 (SCOP_BBS): Remove.
1524 * graphite-scop-detection.c (compare_bb_depths): Remove.
1525 (graphite_sort_dominated_info): Remove.
1526 (try_generate_gimple_bb): Move out of scop_detection.
1527 (all_non_dominated_preds_marked_p): Remove.
1528 (build_scop_bbs_1): Remove.
1529 (build_scop_bbs): Remove.
1530 (nb_pbbs_in_loops): Do not use SCOP_BBS.
1531 (find_scop_parameters): Same.
1532 (sese_dom_walker): Rename gather_bbs.
1533 (before_dom_children): Call try_generate_gimple_bb and collect gbb
1534 and pbb.
1535 (build_scops): Call gather_bbs.
1536 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
1537 (add_conditions_to_constraints): Same.
1538 (build_scop_iteration_domain): Same.
1539 (build_scop_drs): Same.
1540 (new_pbb_from_pbb): Same.
1541 * sese.c (new_sese_info): Create bbs.
1542 * sese.h (struct sese_info_t): Add bbs.
1543
1544 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
1545
1546 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
1547 encoding in 64-bit mode.
1548
1549 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
1550
1551 PR target/66697
1552 * config/i386/i386.c (ix86_option_override_internal): Always use
1553 8-byte minimum stack boundary in 64-bit mode.
1554 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
1555 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
1556 Add a REG_CFA_EXPRESSION note if needed.
1557 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
1558 (ix86_handle_force_align_arg_pointer_attribute): New.
1559 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
1560 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
1561 with ix86_handle_force_align_arg_pointer_attribute.
1562 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
1563
1564 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
1565 Sebastian Pop <s.pop@samsung.com>
1566
1567 * graphite-scop-detection.c (parameter_index_in_region): Remove
1568 use of SESE_ADD_PARAMS.
1569 (find_scop_parameters): Same.
1570 * sese.c (new_sese_info): Same.
1571 * sese.h (struct sese_info_t): Remove add_params.
1572 (SESE_ADD_PARAMS): Remove.
1573
1574 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
1575 Sebastian Pop <s.pop@samsung.com>
1576
1577 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
1578 an sese_info_p.
1579 (copy_def): Same.
1580 (copy_internal_parameters): Same.
1581 (translate_isl_ast_to_gimple): Use an sese_l.
1582 (build_iv_mapping): Same.
1583 * graphite-poly.c (new_sese): Rename new_sese_info.
1584 (free_sese): Rename free_sese_info.
1585 * graphite-poly.h (struct scop): Use an sese_info_p.
1586 (scop_set_region): Same.
1587 * graphite-scop-detection.c (struct sese_l): Moved...
1588 (get_entry_bb): Moved...
1589 (get_exit_bb): Moved...
1590 (parameter_index_in_region_1): Use an sese_info_p.
1591 (parameter_index_in_region): Same.
1592 (scan_tree_for_params): Same.
1593 (find_params_in_bb): Same.
1594 (sese_dom_walker): Use an sese_l.
1595 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
1596 (reduction_phi_p): Same.
1597 (parameter_index_in_region_1): Use an sese_info_p.
1598 (propagate_expr_outside_region): Use an sese_l.
1599 * graphite.c: Replace uses of SCOP_REGION.
1600 * sese.c (sese_record_loop): Use an sese_info_p.
1601 (build_sese_loop_nests): Same.
1602 (sese_build_liveouts_use): Same.
1603 (sese_build_liveouts_bb): Same.
1604 (sese_build_liveouts_bb): Same.
1605 (sese_bad_liveouts_use): Same.
1606 (sese_reset_debug_liveouts_bb): Same.
1607 (sese_build_liveouts): Same.
1608 (new_sese): Renamed new_sese_info.
1609 (free_sese): Renamed free_sese_info.
1610 (set_rename): Use an sese_info_p.
1611 (graphite_copy_stmts_from_block): Same.
1612 (copy_bb_and_scalar_dependences): Same.
1613 (outermost_loop_in_sese_1): Use an sese_l.
1614 (outermost_loop_in_sese): Same.
1615 (if_region_set_false_region): Use an sese_info_p.
1616 (move_sese_in_condition): Same.
1617 (scalar_evolution_in_region): Use an sese_l.
1618 * sese.h (struct sese_l): ... here.
1619 (SESE_ENTRY): Remove.
1620 (SESE_ENTRY_BB): Remove.
1621 (SESE_EXIT): Remove.
1622 (SESE_EXIT_BB): Remove.
1623 (sese_contains_loop): Use an sese_info_p.
1624 (sese_nb_params): Same.
1625 (bb_in_sese_p): Use an sese_l.
1626 (stmt_in_sese_p): Same.
1627 (defined_in_sese_p): Same.
1628 (loop_in_sese_p): Same.
1629 (sese_loop_depth): Same.
1630 (struct ifsese_s): Use an sese_info_p.
1631 (gbb_loop_at_index): Use an sese_l.
1632 (nb_common_loops): Same.
1633 (scev_analyzable_p): Same.
1634
1635 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
1636
1637 * config/i386/i386.c (ix86_conditional_register_usage): Use
1638 CALL_USED_REGISTERS_MASK.
1639 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
1640
1641 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
1642
1643 PR bootstrap/67385
1644 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
1645 * configure: Regenerated.
1646
1647 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
1648
1649 PR target/67850
1650 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
1651 (ix86_set_current_function): This.
1652 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
1653
1654 2015-10-07 Richard Biener <rguenther@suse.de>
1655
1656 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
1657 (vinfo_for_stmt): Adjust.
1658 (set_vinfo_for_stmt): Likewise.
1659 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
1660 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
1661 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
1662 of inner loop.
1663 (vect_analyze_loop_1): Remove.
1664 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
1665 inner loop when vectorizing an outer loop by splitting out from ...
1666 (vect_analyze_loop_form): ... here.
1667
1668 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1669
1670 PR c/65345
1671 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
1672 Use create_tmp_var_raw instead of create_tmp_var.
1673
1674 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
1675
1676 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
1677 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
1678 * real.c (CACHED_FRACTION): New helper macro.
1679 (dconst_third_ptr): Use it.
1680 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
1681 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
1682 dconst_sixth.
1683 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
1684
1685 2015-10-06 Jeff Law <law@redhat.com>
1686
1687 PR tree-optimization/67816
1688 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
1689 from remove_jump_threads_starting_at. Accept an edge rather than
1690 a basic block.
1691 * tree-ssa-threadupdate.c (removed_edges): New hash table.
1692 (remove_jump_threads_including): Note edges that get removed from
1693 the CFG for later pruning of jump threading paths including them.
1694 (thread_through_all_blocks): Remove paths which include edges that
1695 have been removed.
1696 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
1697 on each outgoing edges when optimizing away a control statement.
1698
1699 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1700
1701 * reorg.c (emit_delay_sequence): Store list of delay slot insns
1702 in a vector instead of rtx_insn_list.
1703 (add_to_delay_list): Likewise.
1704 (delete_from_delay_slot): Likewise.
1705 (optimize_skip): Likewise.
1706 (redirect_with_delay_list_safe_p): Likewise.
1707 (check_annul_list_true_false): Likewise.
1708 (steal_delay_list_from_target): Likewise.
1709 (steal_delay_list_from_fallthrough): Likewise.
1710 (redundant_insn): Likewise.
1711 (fill_simple_delay_slots): Likewise.
1712 (fill_slots_from_thread): Likewise.
1713 (fill_eager_delay_slots): Likewise.
1714 (relax_delay_slots): Likewise.
1715
1716 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
1717
1718 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
1719 For -mgpopt=local, also exclude unintialized common symbols.
1720 * doc/invoke.texi (Nios II Options): Document the change.
1721
1722 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
1723
1724 * config/aarch64/iterators.md (vwcore): Add missing cases for
1725 V4HF/V8HF modes.
1726
1727 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
1728 Sebastian Pop <s.pop@samsung.com>
1729
1730 * graphite-poly.c (new_scop): Initialize drs.
1731 * graphite-poly.h (struct dr_info): New.
1732 (struct scop): Add drs.
1733 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
1734 (pdr_add_memory_accesses): Same.
1735 (build_poly_dr): Same.
1736 (build_alias_set): Same.
1737 (build_scop_drs): Same.
1738 (build_pbb_drs): Remove.
1739 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
1740 * tree-data-ref.h (data_reference): Remove alias_set.
1741
1742 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
1743 Sebastian Pop <s.pop@samsung.com>
1744
1745 * graphite-poly.c (free_data_refs_aux): Remove.
1746 (free_gimple_poly_bb): Do not call free_data_refs_aux.
1747 * graphite-poly.h (struct base_alias_pair): Remove.
1748 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
1749 base_alias_pair and dr->aux.
1750 (build_alias_set): Same.
1751 * tree-data-ref.c (create_data_ref): Initialize alias_set.
1752 * tree-data-ref.h (data_reference): Add alias_set.
1753
1754 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
1755 Sebastian Pop <s.pop@samsung.com>
1756
1757 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
1758 Do not set PDR_BASE_OBJECT_SET.
1759 * graphite-poly.h (poly_dr): Same.
1760 (PDR_BASE_OBJECT_SET): Remove.
1761 (new_poly_dr): Update decl.
1762 * graphite-sese-to-poly.c (build_poly_dr): Update call to
1763 new_poly_dr.
1764 (write_alias_graph_to_ascii_dimacs): Remove.
1765 (write_alias_graph_to_ascii_dot): Remove.
1766 (write_alias_graph_to_ascii_ecc): Remove.
1767 (dr_same_base_object_p): Remove.
1768 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
1769 code.
1770 (build_base_obj_set_for_drs): Remove.
1771 (dump_alias_graphs): Remove.
1772 (build_scop_drs): Remove dead code.
1773
1774 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
1775 Peter Bergner <bergner@vnet.ibm.com>
1776
1777 PR target/67808
1778 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
1779 allow registers, but provide insns for the combiner to create for
1780 loads from memory. Separate VSX code from non-VSX code. For
1781 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
1782 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
1783 so that registers come before memory operations. Drop support from
1784 converting DFmode to TFmode, if the DFmode value is in a GPR
1785 register.
1786 (extenddftf2_fprs): Likewise.
1787 (extenddftf2_internal): Likewise.
1788 (extenddftf2_vsx): Likewise.
1789 (extendsftf2): In the expander, only allow registers, but provide
1790 insns for the combiner to create for stores and loads.
1791
1792 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1793
1794 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
1795 from the decl parameter.
1796
1797 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
1798
1799 PR 67861
1800 * gimple-fold.c (gimple_fold_builtin): Add break after
1801 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
1802
1803 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
1804
1805 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
1806 to scop->isl_context.
1807
1808 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
1809
1810 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
1811 (output_probe_stack_range): Rotate the loop and simplify.
1812 (thumb1_expand_prologue): Tweak sorry message.
1813 * config/arm/arm.md (probe_stack): Use bare string.
1814
1815 2015-10-06 Nick Clifton <nickc@redhat.com>
1816
1817 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
1818
1819 2015-10-06 Nick Clifton <nickc@redhat.com>
1820
1821 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
1822 (ATTR_PERSIST): New constant.
1823 (msp430_data_attr): New function - verifies an attribute that only
1824 applies to variables.
1825 (msp430_attributes): Add noinit and persistent attributes.
1826 (noinit_section): New variable.
1827 (presis_section): New variable.
1828 (TARGET_ASM_INIT_SECTIONS): Define.
1829 (msp430_init_sections): New function - initialises the noinit and
1830 persist section variables.
1831 (msp430_select_section): Add support for noinit and persist
1832 attributes.
1833 (msp430_section_type_flags): Likewise.
1834 * doc/extend.texi: Document the reent, critical, wakeup, noinit
1835 and persistent attributes.
1836
1837 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
1838 Sebastian Pop <s.pop@samsung.com>
1839
1840 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
1841 (no_violations): Remove.
1842 (subtract_commutative_associative_deps): Remove.
1843 (compute_deps): Do not call subtract_commutative_associative_deps.
1844 (transform_is_safe): Remove.
1845 (graphite_legal_transform): Remove.
1846 * graphite-poly.h (graphite_legal_transform): Remove.
1847
1848 2015-10-05 Aditya Kumar <hiraditya@msn.com>
1849
1850 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
1851 which are in this region are passed so gcc_assert and remove redundant
1852 computation.
1853 * sese.c (sese_build_liveouts): Pass only those bbs which are not
1854 in region.
1855 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
1856 gcc_assert on that and remove unnecessary computation.
1857 (sese_build_liveouts_use): Same.
1858
1859 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
1860
1861 * graphite-dependences.c (scop_get_reads): Renamed scop->context
1862 to scop->param_context.
1863 (scop_get_must_writes): Same.
1864 (scop_get_may_writes): Same.
1865 (scop_get_original_schedule): Same.
1866 (scop_get_transformed_schedule): Same.
1867 (subtract_commutative_associative_deps): Same.
1868 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
1869 (generate_isl_context): Same.
1870 (generate_isl_schedule): Same.
1871 (scop_to_isl_ast): Same.
1872 (graphite_regenerate_ast_isl): Same.
1873 * graphite-optimize-isl.c (scop_get_domains): Same.
1874 (optimize_isl): Renamed scop->context to scop->param_context.
1875 * graphite-poly.c (new_poly_bb): Change the type of argument to
1876 gimple_poly_bb_p.
1877 (new_scop): Renamed scop->context to scop->param_context.
1878 (free_scop): Same.
1879 (print_scop_context): Same.
1880 * graphite-poly.h (new_poly_dr): Change the type of argument from
1881 void* to data_reference_p.
1882 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
1883 (new_poly_bb): Change the type of argument from void* to
1884 gimple_poly_bb_p.
1885 (pbb_set_black_box): Same.
1886 (struct scop): Rename context to param_context, ctx to isl_context.
1887 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
1888 Move declarations closer to assignment.
1889 (find_params_in_bb): Same.
1890 (find_scop_parameters): Same.
1891 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
1892 Global to be used for statement IDs.
1893 (isl_id_for_pbb): Use ssa_name_version_typesize.
1894 (simple_copy_phi_p): Move declarations closer to assignment.
1895 (build_pbb_scattering_polyhedrons): Same.
1896 (build_scop_scattering): Same.
1897 (isl_id_for_ssa_name): Same.
1898 (extract_affine_name): Same.
1899 (extract_affine_int): Same.
1900 (extract_affine): Same.
1901 (set_scop_parameter_dim): Use renamed member.
1902 (build_loop_iteration_domains): Same.
1903 (add_param_constraints): Same.
1904 (build_scop_iteration_domain): Same.
1905 (pdr_add_data_dimensions): Same.
1906 (build_poly_dr): Same.
1907 (build_scop_drs): Move declarations closer to assignment.
1908 (analyze_drs_in_stmts): Same.
1909 (insert_out_of_ssa_copy): Same.
1910 (insert_out_of_ssa_copy_on_edge): Same.
1911 (propagate_expr_outside_region): Same.
1912 (rewrite_phi_out_of_ssa): Same.
1913 (rewrite_degenerate_phi): Same.
1914 (rewrite_reductions_out_of_ssa): Same.
1915 (rewrite_cross_bb_scalar_dependence): Same.
1916 (handle_scalar_deps_crossing_scop_limits): Same.
1917 (rewrite_cross_bb_scalar_deps): Same.
1918 * graphite.c (graphite_transform_loops): Use renamed member.
1919
1920 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
1921
1922 PR c/65345
1923 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
1924 create_tmp_var_raw instead of create_tmp_var.
1925
1926 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1927
1928 PR c/65345
1929 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
1930 Use create_tmp_var_raw instead of create_tmp_var.
1931
1932 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
1933
1934 PR target/67849
1935 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
1936 split for upper-bank registers when target does not support
1937 AVX512VL.
1938 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
1939 split when target does not support AVX512VL.
1940
1941 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
1942
1943 PR c/65345
1944 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
1945 Adjust to use create_tmp_var_raw instead of create_tmp_var.
1946
1947 2015-10-06 Nick Clifton <nickc@redhat.com>
1948
1949 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
1950 multiplication.
1951
1952 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
1953
1954 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
1955 (case ${target}): Add znver1.
1956 * config/i386/cpuid.h(bit_CLZERO): Define.
1957 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
1958 -march=native recognize znver1 processors.
1959 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1960 znver1, clzero def_and_undef.
1961 * config/i386/i386.c (struct processor_costs znver1_cost): New.
1962 (m_znver1): New definition.
1963 (m_AMD_MULTIPLE): Includes m_znver1.
1964 (processor_target_table): Add znver1 entry.
1965 (ix86_target_string) : Add clzero entry.
1966 (static const char *const cpu_names): Add znver1 entry.
1967 (ix86_option_override_internal): Add znver1 instruction sets.
1968 (PTA_CLZERO) : New definition.
1969 (ix86_option_override_internal): Handle new clzerooption.
1970 (ix86_issue_rate): Add znver1.
1971 (ix86_adjust_cost): Add znver1.
1972 (ia32_multipass_dfa_lookahead): Add znver1.
1973 (has_dispatch): Add znver1.
1974 * config/i386/i386.h (TARGET_znver1): New definition.
1975 (TARGET_CLZERO): Define.
1976 (TARGET_CLZERO_P): Define.
1977 (struct ix86_size_cost): Add TARGET_ZNVER1.
1978 (enum processor_type): Add PROCESSOR_znver1.
1979 * config/i386/i386.md (define_attr "cpu"): Add znver1.
1980 (set_attr znver1_decode): New definitions for znver1.
1981 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
1982 (mclzero): New.
1983 * config/i386/mmx.md (set_attr znver1_decode): New definitions
1984 for znver1.
1985 * config/i386/sse.md (set_attr znver1_decode): Likewise.
1986 * config/i386/x86-tune.def: Add znver1 tunings.
1987 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
1988 * gcc/doc/invoke.texi: Add details about znver1
1989
1990 2015-10-06 Richard Biener <rguenther@suse.de>
1991
1992 PR tree-optimization/67859
1993 * tree-ssa-pre.c (create_expression_by_pieces): Properly
1994 discard not inserted stmts.
1995
1996 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
1997
1998 * doc/extend.texi (Template Instantiation): Reorder options and
1999 de-emphasize -frepo.
2000 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
2001 example instead of -frepo.
2002
2003 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
2004
2005 PR c/65345
2006 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
2007 use create_tmp_var_raw rather than create_tmp_var.
2008
2009 2015-10-06 Richard Biener <rguenther@suse.de>
2010
2011 * tree-vectorizer.h (vec_info): New base class for...
2012 (_loop_vec_info): ... this and ...
2013 (_bb_vec_info): ... this.
2014 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
2015 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
2016 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
2017 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
2018 vect_destroy_datarefs): Adjust interface to take a vec_info *
2019 rather than both a loop_vec_info and a bb_vec_info argument.
2020 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
2021 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
2022 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
2023 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
2024 accordingly.
2025 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
2026 (destroy_loop_vec_info, vect_analyze_loop_2,
2027 vect_is_simple_reduction_1, get_initial_def_for_induction,
2028 vect_create_epilog_for_reduction, vectorizable_reduction,
2029 vectorizable_live_operation, vect_transform_loop): Adjust.
2030 * tree-vect-patterns.c (type_conversion_p,
2031 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
2032 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
2033 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
2034 check_bool_pattern, vect_recog_bool_pattern,
2035 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
2036 * tree-vect-slp.c (vect_get_and_check_slp_defs,
2037 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
2038 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
2039 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
2040 (new_bb_vec_info): Initialize base classs.
2041 * tree-vect-stmts.c (record_stmt_cost, process_use,
2042 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
2043 vectorizable_mask_load_store, vectorizable_call,
2044 vectorizable_simd_clone_call, vectorizable_conversion,
2045 vectorizable_assignment, vectorizable_shift,
2046 vectorizable_operation, vectorizable_store,
2047 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
2048 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
2049 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
2050
2051 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
2052
2053 PR c/65345
2054 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
2055 create_tmp_var_raw rather than create_tmp_var.
2056
2057 2015-10-05 Marek Polacek <polacek@redhat.com>
2058
2059 * tree-ssa-loop-im.c
2060 (move_computations_dom_walker::before_dom_children): Don't set
2061 SSA_NAME_ANTI_RANGE_P.
2062 * tree-ssa-phiopt.c (value_replacement): Likewise.
2063
2064 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
2065 Sebastian Pop <s.pop@samsung.com>
2066
2067 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
2068
2069 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
2070 Sebastian Pop <s.pop@samsung.com>
2071
2072 * graphite-poly.c (new_gimple_poly_bb): ... here.
2073 (free_data_refs_aux): ... here.
2074 (free_gimple_poly_bb): ... here.
2075 (remove_gbbs_in_scop): ... here.
2076 (new_scop): Call new_sese.
2077 (free_scop): Call remove_gbbs_in_scop and free_sese.
2078 * graphite-poly.h (base_alias_pair): ... here.
2079 (new_gimple_poly_bb): Declare.
2080 (free_gimple_poly_bb): Declare.
2081 * graphite-scop-detection.c (parameter_index_in_region_1):
2082 (parameter_index_in_region): ... here.
2083 (scan_tree_for_params): ... here.
2084 (find_params_in_bb): ... here.
2085 (find_scop_parameters): ... here.
2086 (build_scops): Call find_scop_parameters.
2087 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
2088 (free_scops): Move...
2089 (single_pred_cond_non_loop_exit): Move...
2090 (sese_dom_walker::before_dom_children): Move...
2091 (sese_dom_walker::after_dom_children): Move...
2092 (build_poly_scop): Move...
2093 * graphite-sese-to-poly.h (base_alias_pair): Move...
2094 * graphite.c (free_scops): ... here.
2095
2096 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
2097 Sebastian Pop <s.pop@samsung.com>
2098
2099 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
2100 (trivially_empty_bb_p): Move...
2101 (same_close_phi_node): Move...
2102 (new_gimple_poly_bb): Move...
2103 (compare_bb_depths): Move...
2104 (graphite_sort_dominated_info): Move...
2105 (remove_duplicate_close_phi): Move...
2106 (make_close_phi_nodes_unique): Move...
2107 (canonicalize_loop_closed_ssa): Move...
2108 (canonicalize_loop_closed_ssa_form): Move...
2109 (loop_ivs_can_be_represented): Move...
2110 (single_pred_cond_non_loop_exit): Move...
2111 (graphite_can_represent_init): Move...
2112 (graphite_can_represent_scev): Move...
2113 (stmt_has_simple_data_refs_p): Move...
2114 (stmt_has_side_effects): Move...
2115 (graphite_can_represent_stmt): Move...
2116 (scop_detection): ... here.
2117 (sese_dom_walker): ... and here.
2118 (build_scops): Call all moved functions.
2119 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
2120 (all_non_dominated_preds_marked_p): Move...
2121 (build_scop_bbs_1): Move...
2122 (build_scop_bbs): Move...
2123 (set_scop_parameter_dim): Move...
2124 (nb_pbbs_in_loops): Move...
2125 (build_poly_scop): Do not call all the moved functions.
2126
2127 2015-10-05 Martin Jambor <mjambor@suse.cz>
2128 Jan Hubicka <hubicka@ucw.cz>
2129
2130 * ipa-cp.c (ipcp_alignment_lattice): New type.
2131 (ipcp_param_lattices): Use the above to represent alignment.
2132 (ipcp_alignment_lattice::print): New function.
2133 (print_all_lattices): Use it to print alignment information.
2134 (ipcp_alignment_lattice::top_p): New function.
2135 (ipcp_alignment_lattice::bottom_p): Likewise.
2136 (ipcp_alignment_lattice::set_to_bottom): Likewise.
2137 (ipcp_alignment_lattice::meet_with_1): Likewise.
2138 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
2139 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
2140 (initialize_node_lattices): Likewise.
2141 (propagate_alignment_accross_jump_function): Work with the new class
2142 for alignment lattices.
2143 (propagate_constants_accross_call): Pass only the alignment lattice to
2144 propagate_alignment_accross_jump_function.
2145 (ipcp_store_alignment_results): Work with the new class for alignment
2146 lattices.
2147
2148 2015-10-05 Marek Polacek <polacek@redhat.com>
2149
2150 PR tree-optimization/67821
2151 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
2152
2153 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
2154
2155 PR other/65021
2156 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
2157 function to...
2158 (mkoffload_cleanup): ... this. Adjust all users.
2159 (maybe_unlink): Look at save_temps and verbose flags instead of
2160 debug flag.
2161 (main): Parse "-save-temps" flag.
2162 (generate_target_descr_file, generate_target_offloadend_file)
2163 (generate_host_descr_file, prepare_target_image): Pass it on.
2164 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
2165 (mkoffload_cleanup): New function.
2166 (maybe_unlink): Look at save_temps and verbose flags instead of
2167 debug flag.
2168 (main): Instead of calling utils_cleanup, register atexit handler
2169 for mkoffload_cleanup.
2170 (main): Parse "-save-temps" flag.
2171 (compile_native, main): Pass it on.
2172 * lto-wrapper.c (compile_offload_image): Likewise.
2173
2174 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2175
2176 * gimple.h (gimple_op_ptr): Require a non const gimple *.
2177 (gimple_assign_lhs_ptr): Likewise.
2178 (gimple_assign_rhs1_ptr): Likewise.
2179 (gimple_assign_rhs2_ptr): Likewise.
2180 (gimple_assign_rhs3_ptr): Likewise.
2181 (gimple_call_lhs_ptr): Likewise.
2182 (gimple_call_fn_ptr): Likewise.
2183 (gimple_call_chain_ptr): Likewise.
2184 (gimple_call_arg_ptr): Likewise.
2185 (gimple_cond_lhs_ptr): Likewise.
2186 (gimple_cond_rhs_ptr): Likewise.
2187 (gimple_switch_index_ptr): Likewise.
2188 (gimple_return_retval_ptr): Likewise.
2189
2190 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2191
2192 * gimple.h (gimple_asm_input_op_ptr): Remove.
2193 (gimple_asm_output_op_ptr): Likewise.
2194
2195 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2196
2197 * gimple.h (gimple_location_ptr): Remove.
2198 * tree-vrp.c (check_all_array_refs): Adjust.
2199
2200 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2201
2202 * tree-ssa-operands.c (build_uses): store tree * instead of
2203 tree.
2204 (finalize_ssa_uses): Adjust.
2205 (append_use): Likewise.
2206 (verify_ssa_operands): Likewise.
2207
2208 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2209
2210 * real.h (build_real_truncate): Declare.
2211 * tree.c (build_real_truncate): New function.
2212 (strip_float_extensions): Use it.
2213 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
2214 (fold_builtin_hypot, fold_builtin_pow): Likewise.
2215 * match.pd: Likewise.
2216
2217 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
2218 Jiong Wang <jiong.wang@arm.com>
2219
2220 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
2221
2222 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2223
2224 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
2225 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
2226 (aarch64_print_operand, aarch64_float_const_representable_p)
2227 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
2228 instead of REAL_VALUE_FROM_CONST_DOUBLE.
2229 * config/arc/arc.c (arc_print_operand): Likewise.
2230 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
2231 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
2232 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
2233 Likewise.
2234 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
2235 (consttable_16): Likewise.
2236 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
2237 * config/avr/avr.c (avr_print_operand): Likewise.
2238 * config/bfin/bfin.md: Likewise (in a define_split).
2239 * config/c6x/c6x.md: Likewise (in a define_split).
2240 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
2241 (cr16_print_operand): Likewise.
2242 * config/cris/cris.c (cris_print_operand): Likewise.
2243 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
2244 * config/fr30/fr30.c (fr30_print_operand): Likewise.
2245 (fr30_const_double_is_zero): Likewise.
2246 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
2247 * config/frv/frv.md: Likewise (in a define_split).
2248 * config/frv/predicates.md (int_2word_operand): Likewise.
2249 * config/h8300/h8300.c (h8300_print_operand): Likewise.
2250 * config/i386/i386.c (standard_80387_constant_p): Likewise.
2251 (ix86_print_operand, ix86_split_to_parts): Likewise.
2252 * config/i386/i386.md: Likewise (in a define_split).
2253 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
2254 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
2255 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
2256 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
2257 (print_operand): Likewise.
2258 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
2259 * config/mep/mep.md: Likewise (in define_split).
2260 * config/microblaze/microblaze.c (microblaze_const_double_ok)
2261 (print_operand): Likewise.
2262 * config/mips/mips.md (consttable_float): Likewise.
2263 * config/mmix/mmix.c (mmix_intval): Likewise.
2264 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
2265 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
2266 * config/pa/pa.c (pa_singlemove_string): Likewise.
2267 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
2268 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
2269 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
2270 (output_toc): Likewise.
2271 * config/rs6000/rs6000.md: Likewise (in define_splits).
2272 * config/rx/rx.c (rx_print_operand): Likewise.
2273 * config/s390/s390.c (s390_output_pool_entry): Likewise.
2274 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
2275 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
2276 (and also in define_splits).
2277 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
2278 (fp_high_losum_p): Likewise.
2279 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
2280 (*movsf_high): Likewise.
2281 * config/spu/spu.c (const_double_to_hwint): Likewise.
2282 * config/v850/v850.c (const_double_split): Likewise.
2283 * config/vax/vax.c (vax_float_literal): Likewise.
2284 * config/visium/visium.c (visium_expand_copysign): Likewise.
2285 * config/visium/visium.md: Likewise (in define_split).
2286 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
2287 * config/xtensa/xtensa.c (print_operand): Likewise.
2288 (xtensa_output_literal): Likewise.
2289 * cprop.c (implicit_set_cond_p): Likewise.
2290 * dwarf2out.c (insert_float): Likewise.
2291 * expmed.c (expand_mult, make_tree): Likewise.
2292 * expr.c (compress_float_constant): Likewise.
2293 * rtlanal.c (split_double): Likewise.
2294 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
2295 (simplify_const_unary_operation, simplify_binary_operation_1)
2296 (simplify_const_binary_operation): Likewise.
2297 (simplify_const_relational_operation): Likewise.
2298 * varasm.c (output_constant_pool_2): Likewise.
2299
2300 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2301
2302 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
2303 instead of CONST_DOUBLE_FROM_REAL_VALUE.
2304 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
2305 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
2306 instead of CONST_DOUBLE_FROM_REAL_VALUE.
2307 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
2308 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
2309 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
2310 (ix86_emit_swsqrtsf): Likewise.
2311 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
2312 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
2313 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
2314 * config/pa/pa.c (pa_expand_builtin): Likewise.
2315 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
2316 (rs6000_scale_v2df): Likewise.
2317 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
2318 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
2319 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
2320 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
2321 (vec_ctul): Likewise.
2322 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
2323 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
2324 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
2325 * cse.c (fold_rtx): Likewise.
2326 * emit-rtl.c (immed_double_const): Likewise (in comments).
2327 (init_emit_once): Likewise.
2328 * expr.c (compress_float_constant, expand_expr_real_1)
2329 (const_vector_from_tree): Likewise.
2330 * optabs.c (expand_float, expand_fix): Likewise.
2331 * reg-stack.c (reg_to_stack): Likewise.
2332 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
2333 (simplify_const_unary_operation, simplify_binary_operation_1)
2334 (simplify_const_binary_operation, simplify_relational_operation)
2335 (simplify_immed_subreg): Likewise.
2336
2337 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2338
2339 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
2340 * doc/tm.texi: Regenerate.
2341 * real.h (REAL_ARITHMETIC): Delete.
2342 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
2343 (ix86_expand_round_sse4): Use real_arithmetic instead of
2344 REAL_ARITHMETIC.
2345 * config/i386/sse.md (round<mode>2): Likewise.
2346 * rtl.h (rtx_to_tree_code): Likewise (in comment).
2347 * explow.c (rtx_to_tree_code): Likewise (in comment).
2348 * match.pd: Likewise.
2349 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2350 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
2351 (expand_pow_as_sqrts): Likewise.
2352 * tree-pretty-print.c (dump_generic_node): Remove code that
2353 was conditional on REAL_ARITHMETIC being undefined.
2354
2355 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2356
2357 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
2358 * doc/tm.texi: Regenerate.
2359 * real.h (real_less): Declare.
2360 (REAL_VALUES_LESS): Delete.
2361 * real.c (real_less): New function.
2362 (real_compare): Use it.
2363 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
2364 of REAL_VALUES_LESS.
2365 * config/microblaze/microblaze.c (microblaze_const_double_ok):
2366 Likewise.
2367 * fold-const.c (fold_convert_const_int_from_real): Likewise.
2368 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
2369 (simplify_const_relational_operation): Likewise.
2370 * tree-call-cdce.c (check_pow): Likewise.
2371 (gen_conditions_for_pow_cst_base): Likewise.
2372
2373 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2374
2375 * real.h (REAL_VALUES_IDENTICAL): Delete.
2376 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
2377 instead of REAL_VALUES_IDENTICAL.
2378 * fold-const.c (operand_equal_p): Likewise.
2379 * ipa-icf.c (sem_variable::equals): Likewise.
2380 * tree-complex.c (some_nonzerop): Likewise.
2381 (expand_complex_multiplication): Likewise.
2382 * tree.c (simple_cst_equal): Likewise.
2383 * varasm.c (compare_constant): Likewise.
2384
2385 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2386
2387 * real.h (real_equal): Declare.
2388 (REAL_VALUES_EQUAL): Delete.
2389 * real.c (real_equal): New function.
2390 (real_compare): Use it.
2391 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
2392 * doc/tm.texi: Regenerate.
2393 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
2394 real_equal instead of REAL_VALUES_EQUAL.
2395 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
2396 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
2397 (fp_const_from_val): Likewise.
2398 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
2399 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
2400 (floating_exact_log2): Likewise.
2401 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
2402 * config/vax/vax.c (vax_float_literal): Likewise.
2403 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
2404 * cprop.c (implicit_set_cond_p): Likewise.
2405 * expmed.c (expand_mult): Likewise.
2406 * fold-const.c (const_binop): Likewise.
2407 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2408 (simplify_const_binary_operation): Likewise.
2409 (simplify_const_relational_operation): Likewise.
2410 * tree-call-cdce.c (check_pow): Likewise.
2411 (gen_conditions_for_pow_cst_base): Likewise.
2412 * tree-inline.c (estimate_num_insns): Likewise.
2413 * tree-ssa-dom.c (record_equality): Likewise.
2414 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
2415 (gimple_expand_builtin_pow): Likewise.
2416 (pass_optimize_widening_mul::execute): Likewise.
2417 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
2418 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
2419 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
2420
2421 2015-10-05 Richard Biener <rguenther@suse.de>
2422
2423 PR ipa/67783
2424 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
2425 consider loop header PHI defs as IVs.
2426
2427 2015-10-05 Richard Biener <rguenther@suse.de>
2428
2429 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
2430 call handling ...
2431 (create_expression_by_pieces): ... here and build GIMPLE
2432 calls directly. Use gimple_build API and avoid force_gimple_operand.
2433 (insert_into_preds_of_block): Simplify.
2434 (do_regular_insertion): Add comment.
2435
2436 2015-10-04 Jason Merrill <jason@redhat.com>
2437
2438 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
2439
2440 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
2441
2442 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
2443 check for general register.
2444 (ix86_emit_save_regs): Ditto.
2445 (ix86_emit_save_regs_using_mov): Ditto.
2446 (ix86_emit_restore_regs_using_pop): Ditto.
2447 (ix86_emit_restore_regs_using_mov): Ditto.
2448
2449 2015-10-03 Marek Polacek <polacek@redhat.com>
2450
2451 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
2452 (insn-dfatab.o): Likewise.
2453
2454 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
2455
2456 * config.gcc (xtensa*-*-uclinux*): New configuration.
2457 * config/xtensa/uclinux.h: New file.
2458 * config/xtensa/uclinux.opt: New file.
2459
2460 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
2461
2462 * doc/cpp.texi (Standard Predefined Macros): Document value of
2463 __cplusplus for C++14.
2464
2465 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
2466
2467 * gcc.c (process_command): Use spec_machine rather than
2468 spec_host_machine to build tooldir_prefix2.
2469
2470 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
2471 Bernd Schmidt <bernds@codesourcery.com>
2472
2473 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
2474 (Token, Stmt): Remove structs.
2475 (decls, vars, fns): Remove variables.
2476 (alloc_comment, append_stmt, is_keyword): Remove macros.
2477 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
2478 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
2479 (parse_init, parse_file): Remove functions.
2480 (read_file): Accept a pointer to a length and store into it.
2481 (process): Don't try to parse the input file, just write it out as
2482 a string, but looking for maps. Also write out the length.
2483 (main): Don't use "-S" to compile PTX code.
2484
2485 2015-10-02 Jeff Law <law@redhat.com>
2486
2487 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
2488 fixups.
2489
2490 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
2491
2492 PR target/67822
2493 * config/nvptx/mkoffload.c (main): Scan the argument vector for
2494 -fopenmp, and skip generating an offloading image if specified.
2495
2496 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
2497
2498 * system.h (ROUND_UP): New macro definition.
2499 (ROUND_DOWN): Ditto.
2500 * ggc-page.c (ROUND_UP): Remove local macro definition.
2501 (PAGE_ALIGN): Implement using ROUND_UP macro.
2502
2503 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
2504 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
2505 to align values.
2506 (ix86_compute_frame_layout): Ditto.
2507 (ix86_expand_prologue): Ditto.
2508 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
2509 to round down values.
2510 (expand_set_or_movmem_via_rep): Ditto.
2511
2512 2015-10-02 Marek Polacek <polacek@redhat.com>
2513
2514 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
2515
2516 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
2517
2518 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
2519 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
2520 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
2521 (free_gimple_bb): Renamed free_gimple_poly_bb.
2522 (try_generate_gimple_bb): Hoist loop invariant code.
2523 (analyze_drs_in_stmts): Same.
2524 (build_scop_drs): Call renamed functions.
2525 (new_pbb_from_pbb): Same.
2526 (scop_ivs_can_be_represented): Delete as functionality now moved to
2527 graphite-scop-detection.c
2528 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
2529
2530 2015-10-02 Aditya Kumar <hiraditya@msn.com>
2531
2532 * graphite-scop-detection.c (stmt_has_side_effects): New function
2533 outlined from stmt_simple_for_scop_p.
2534 (graphite_can_represent_stmt): Same.
2535 (stmt_simple_for_scop_p): Moved code out of this function for better
2536 readability.
2537
2538 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
2539
2540 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
2541 F_AVX512IFMA.
2542 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
2543
2544 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2545
2546 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
2547
2548 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
2549
2550 PR rtl-optimization/67756
2551 * lra-constraints.c (match_reload): Add a new parameter. Use it
2552 for creating a pseudo with the same value.
2553 (curr_insn_transform): Pass a new argument to match_reload.
2554
2555 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
2556
2557 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
2558 (expand_vec_perm_even_odd_1): Handle V64QImode.
2559 (ix86_expand_vec_perm_const_1): Try expansion with
2560 expand_vec_perm_even_odd_trunc as well.
2561 * config/i386/sse.md (VI124_AVX512F): Rename to ...
2562 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
2563 to V54QI.
2564 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
2565 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
2566 to V32HI and V16SI.
2567 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
2568 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
2569 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
2570 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
2571 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
2572 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
2573
2574 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
2575
2576 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
2577 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
2578
2579 2015-10-02 Jason Merrill <jason@redhat.com>
2580
2581 PR c/59218
2582 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
2583 (diagnose_tm_1_op): Also diagnose volatile accesses in
2584 transaction_safe function.
2585
2586 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
2587
2588 * system.h (malloc.h): Don't include obsolete header.
2589
2590 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2591
2592 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
2593 (TLS_SECTION_ASM_FLAG): Delete.
2594
2595 2015-10-02 Marek Polacek <polacek@redhat.com>
2596
2597 PR c/64249
2598 * doc/invoke.texi: Document -Wduplicated-cond.
2599 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
2600 (insn-dfatab.o): Likewise.
2601 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
2602 warning.
2603
2604 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
2605
2606 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
2607 sequences.
2608
2609 2015-10-02 Renlin Li <renlin.li@arm.com>
2610
2611 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
2612
2613 2015-10-02 Renlin Li <renlin.li@arm.com>
2614
2615 PR target/66776
2616 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
2617
2618 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2619
2620 PR rtl-optimization/67786
2621 PR rtl-optimization/67787
2622 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
2623 it modifies a reg used in the condition calculation.
2624
2625 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
2626
2627 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
2628 alternatives for reads from memory and moves from general-purpose
2629 registers.
2630 (*aarch64_combinez_be<mode>): Likewise.
2631
2632 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
2633
2634 PR target/51726
2635 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
2636 selectany within this function without need to keep attribute.
2637 (i386_pe_encode_section_info): Remove selectany-code.
2638
2639 2015-10-02 Richard Biener <rguenther@suse.de>
2640
2641 * tree-ssa-sccvn.c (has_VN_INFO): New function.
2642 (free_scc_vn): Use it.
2643 (visit_use): Remove dead code and refactor to use gassign
2644 and use less indentation.
2645
2646 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2647
2648 PR target/67788
2649 PR target/67789
2650 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
2651 (rs6000_cannot_copy_insn_p): New function.
2652 * config/rs6000/rs6000.md (cannot_copy): New attribute.
2653 (load_toc_v4_PIC_1_normal): Set cannot_copy.
2654 (load_toc_v4_PIC_1_476): Ditto.
2655
2656 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
2657
2658 * graphite-scop-detection.c (struct sese_l): New conversion constructor
2659 so that this type can be pushed into a vec.
2660 (class scop_builder): use sese_l to collect scops.
2661 (get_scops): New getter function.
2662 (remove_intersecting_scops): Use sese_l instead of scops_p.
2663 (intersects): Same.
2664 (add_scop): Same.
2665 (subsumes): Same.
2666 (remove_subscops): Same.
2667 (build_scops): Add scops to vec<scops_p> once all the scops have been
2668 detected.
2669
2670 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
2671
2672 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
2673 Renamed type from gimple_bb_p to gimple_poly_bb_p.
2674 (translate_isl_ast_node_user): Same.
2675 * graphite-poly.c (new_poly_bb): Same.
2676 * graphite-poly.h (gbb_from_bb): Same.
2677 * sese.h: Same.
2678 * graphite-sese-to-poly.c (new_gimple_bb):
2679 gimple_bb_p -> gimple_poly_bb_p
2680 (build_scop_scattering): Same.
2681 (find_params_in_bb): Same.
2682 (add_conditions_to_domain): Same.
2683 (sese_dom_walker::before_dom_children): Same.
2684 (analyze_drs_in_stmts): Same.
2685 (new_pbb_from_pbb): Same.
2686 (free_data_refs_aux): New pointer to type base_alias_pair.
2687 * graphite-sese-to-poly.h: Same.
2688 * sese.c (if_region_set_false_region): Fixed Indentation.
2689 (move_sese_in_condition): Same.
2690
2691 2015-10-01 Sebastian Pop <s.pop@samsung.com>
2692 Aditya Kumar <aditya.k7@samsung.com>
2693
2694 PR tree-optimization/66980
2695 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
2696 when data reference analysis has failed.
2697
2698 2015-10-01 Sebastian Pop <s.pop@samsung.com>
2699 Aditya Kumar <aditya.k7@samsung.com>
2700
2701 PR tree-optimization/67754
2702 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
2703 scev analysis on the same loop nest as analyze_drs_in_stmts.
2704 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
2705 renamed...
2706 (try_generate_gimple_bb): Call outermost_loop_in_sese.
2707 (analyze_drs_in_stmts): Same.
2708 * sese.c (outermost_loop_in_sese): ...here.
2709
2710 2015-10-01 Sebastian Pop <s.pop@samsung.com>
2711 Aditya Kumar <aditya.k7@samsung.com>
2712
2713 PR tree-optimization/67754
2714 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
2715 recursion on the inner loops.
2716
2717 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2718
2719 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
2720 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
2721 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
2722 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
2723 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
2724
2725 2015-10-01 Marek Polacek <polacek@redhat.com>
2726
2727 PR c/65345
2728 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
2729 create_tmp_var_raw rather than create_tmp_var.
2730
2731 2015-10-01 Marek Polacek <polacek@redhat.com>
2732
2733 PR tree-optimization/67769
2734 * tree-ssa-phiopt.c (conditional_replacement): Call
2735 reset_flow_sensitive_info_in_bb.
2736 (minmax_replacement): Likewise.
2737 (abs_replacement): Likewise.
2738
2739 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
2740
2741 * builtins.c: Don't include gomp-constants.h.
2742 (fold_builtin_1): Don't fold acc_on_device here.
2743 * gimple-fold.c: Include gomp-constants.h.
2744 (gimple_fold_builtin_acc_on_device): New.
2745 (gimple_fold_builtin): Call it.
2746
2747 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
2748
2749 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
2750 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
2751
2752 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
2753
2754 * config/arm/aarch-common-protos.h
2755 (aarch_accumulator_forwarding): New.
2756 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
2757 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
2758 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
2759 * config/arm/cortex-a53.md: Rewrite.
2760
2761 2015-10-01 Richard Biener <rguenther@suse.de>
2762
2763 * gimple-match.h (mprts_hook): Declare.
2764 * gimple-match.head.c (mprts_hook): Define.
2765 (maybe_push_res_to_seq): Use new hook.
2766 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
2767 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
2768 (vn_ssa_aux::has_constants): Remove.
2769 * tree-ssa-sccvn.c: Include gimple-match.h.
2770 (VN_INFO_GET): Assert we don't re-use SSA names.
2771 (vn_get_expr_for): Remove.
2772 (expr_has_constants): Likewise.
2773 (stmt_has_constants): Likewise.
2774 (simplify_binary_expression): Likewise.
2775 (simplify_unary_expression): Likewise.
2776 (vn_lookup_simplify_result): New hook.
2777 (visit_copy): Adjust.
2778 (visit_reference_op_call): Likewise.
2779 (visit_phi): Likewise.
2780 (visit_use): Likewise.
2781 (process_scc): Likewise.
2782 (init_scc_vn): Likewise.
2783 (visit_reference_op_load): Likewise. Use match-and-simplify and
2784 a gimple seq for inserted expressions.
2785 (try_to_simplify): Remove GENERIC stmt combining code.
2786 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
2787 * tree-ssa-pre.c (eliminate_insert): Adjust.
2788 (eliminate_dom_walker::before_dom_children): Likewise.
2789
2790 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2791
2792 * doc/invoke.texi (Optimization Options): Add
2793 -freorder-blocks-algorithm=.
2794 (Optimize Options) <-O>: Add -freorder-blocks.
2795 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
2796 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
2797 <-freorder-blocks>: Also enabled at levels -O and -Os.
2798 <-freorder-blocks-algorithm=>: Document new option.
2799
2800 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2801
2802 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
2803 with flag_reorder_blocks_algorithm.
2804 * common.opt (freorder-blocks-algorithm=): New flag.
2805 (reorder_blocks_algorithm): New enum.
2806 * flag-types.h (reorder_blocks_algorithm): New enum.
2807 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
2808 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
2809
2810 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2811
2812 * bb-reorder.c: Add intro comment.
2813 (reorder_basic_blocks_software_trace_cache): Print a header to
2814 the dump file.
2815 (edge_order): New function.
2816 (reorder_basic_blocks_simple): New function.
2817 (reorder_basic_blocks): Choose between the STC and the simple
2818 algorithms (always choose the former).
2819
2820 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2821
2822 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
2823 function, factored out from ...
2824 (reorder_basic_blocks): ... here.
2825
2826 2015-10-01 Tom de Vries <tom@codesourcery.com>
2827
2828 * tree-cfg.c (dump_function_to_file): Dump function attributes using
2829 __attribute__(()) string. Move dumping of function attributes to before
2830 function name.
2831
2832 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
2833
2834 PR target/66870
2835 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
2836 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
2837 based on gold linker version.
2838 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
2839 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
2840 * configure, config.in: Regenerate.
2841
2842 2015-10-01 Alan Modra <amodra@gmail.com>
2843
2844 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
2845 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
2846 (rs6000_output_mi_thunk): Likewise.
2847
2848 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
2849
2850 * config/nvptx/mkoffload.c (process): Change offload data format.
2851
2852 2015-09-30 Jeff Law <law@redhat.com>
2853
2854 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
2855 with constant conditions.
2856 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
2857 (remove_ctrl_stmt_and_useless_edges): No longer static.
2858 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
2859 (remove_ctrl_stmt_and_useless_edges): Likewise.
2860
2861 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
2862 Cesar Philippidis <cesar@codesourcery.com>
2863
2864 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
2865 (TARGET_GOACC_VALIDATE_DIMS): Override.
2866 * target.def (TARGET_GOACC): New target hook prefix.
2867 (validate_dims): New hook.
2868 * targhooks.h (default_goacc_validate_dims): New.
2869 * omp-low.c (oacc_validate_dims): New.
2870 (execute_oacc_device_lower): New.
2871 (default_goacc_validate_dims): New.
2872 (pass_data_oacc_device_lower): New.
2873 (pass_oacc_device_lower): New pass.
2874 (make_pass_oacc_device_lower): New.
2875 * tree-pass.h (make_pass_oacc_device_lower): Declare.
2876 * passes.def (pass_oacc_device_lower): Add it.
2877 * doc/tm.texi: Rebuilt.
2878 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
2879 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
2880
2881 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
2882
2883 PR rtl-optimization/67037
2884 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
2885
2886 2015-09-30 Bernd Schmidt <bernds@redhat.com>
2887
2888 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
2889 * passes.c: Include tree-ssanames.h.
2890 (execute_function_todo): Flush the pending free SSA_NAMEs after
2891 eliminating unreachable basic blocks.
2892 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
2893 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
2894 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
2895 (flush_ssanames_freelist): New function.
2896 (release_ssaname_fn): Put released names on the queue.
2897 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
2898 * tree-ssanames.h (flush_ssanames_freelist): Declare.
2899
2900 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
2901
2902 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
2903 (generate_target_descr_file, generate_target_offloadend_file)
2904 (generate_host_descr_file, prepare_target_image): Pass it on.
2905 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
2906 (compile_native, main): Pass it on.
2907 * lto-wrapper.c (compile_offload_image): Likewise.
2908
2909 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
2910 Ilya Verbin <ilya.verbin@intel.com>
2911 Andrey Turetskiy <andrey.turetskiy@intel.com>
2912
2913 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
2914 (prepare_target_image, main): Refactor argv building to use
2915 obstacks.
2916
2917 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2918
2919 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
2920 * config/spu/spu.c (spu_expand_atomic_op): New function.
2921 * config/spu/spu.md (AINT): New mode iterator.
2922 (ATOMIC): New code iterator.
2923 (atomic_name, atomic_pred): New code predicates.
2924 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
2925 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
2926 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
2927 "atomic_<atomic_name>_fetch<mode>"): Likewise.
2928
2929 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
2930
2931 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
2932 debug insns.
2933 (scalar_chain::convert_reg): Likewise.
2934
2935 2015-09-30 Richard Biener <rguenther@suse.de>
2936
2937 * builtins.c: Add comment that no new simplifications should
2938 be added here.
2939
2940 2015-09-30 Marek Polacek <polacek@redhat.com>
2941
2942 PR tree-optimization/67690
2943 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
2944 reset_flow_sensitive_info_in_bb.
2945 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
2946 * tree-ssanames.c: Include "gimple-iterator.h".
2947 (reset_flow_sensitive_info_in_bb): New function.
2948 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
2949
2950 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
2951
2952 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
2953 variable, replacing it with...
2954 (offload_abi): ... this new variable. Adjust all users.
2955 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
2956
2957 2015-09-30 Matthias Klose <doko@ubuntu.com>
2958
2959 * configure.ac: Remove extraneous ;;.
2960 * configure: Regenerate.
2961
2962 2015-09-29 James Bowman <james.bowman@ftdichip.com>
2963
2964 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
2965 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
2966 predicate, disallow register for operand 2.
2967
2968 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
2969
2970 * graphite-dependences.c (scop_get_dependences): Moved in down
2971 in order to be visible to its caller.
2972 * graphite-poly.h: Removed compute_deps, and extend_schedule.
2973
2974 2015-09-29 Sebastian Pop <s.pop@samsung.com>
2975 Aditya Kumar <aditya.k7@samsung.com>
2976
2977 PR tree-optimization/67754
2978 * graphite-optimize-isl.c (optimize_isl): Call
2979 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
2980
2981 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
2982
2983 * builtins.c (expand_builtin_acc_on_device): Delete.
2984 (expand_builtin): Don't call it.
2985 (fold_builtin_1): Fold acc_on_device.
2986
2987 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
2988
2989 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
2990 (ix86_nsaved_sseregs): Likewise.
2991
2992 2015-09-29 Jeff Law <law@redhat.com>
2993
2994 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
2995 computation of unused value.
2996
2997 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
2998 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
2999 inline macro expansion.
3000
3001 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
3002
3003 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
3004 (gen_shl_sext): Likewise.
3005 * config/sh/sh.md (divsi3): Likewise.
3006 (imm->ext_dest_operand splitter): Likewise.
3007
3008 2015-09-29 Sebastian Pop <s.pop@samsung.com>
3009 Aditya Kumar <aditya.k7@samsung.com>
3010
3011 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
3012 (nb_data_writes_in_bb): Remove.
3013 (split_pbb): Remove.
3014 (split_reduction_stmt): Remove.
3015 (is_reduction_operation_p): Remove.
3016 (phi_contains_arg): Remove.
3017 (follow_ssa_with_commutative_ops): Remove.
3018 (detect_commutative_reduction_arg): Remove.
3019 (detect_commutative_reduction_assign): Remove.
3020 (follow_inital_value_to_phi): Remove.
3021 (edge_initial_value_for_loop_phi): Remove.
3022 (initial_value_for_loop_phi): Remove.
3023 (used_outside_reduction): Remove.
3024 (detect_commutative_reduction): Remove.
3025 (translate_scalar_reduction_to_array_for_stmt): Remove.
3026 (remove_phi): Remove.
3027 (dr_indices_valid_in_loop): Remove.
3028 (close_phi_written_to_memory): Remove.
3029 (translate_scalar_reduction_to_array): Remove.
3030 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
3031 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
3032 (rewrite_commutative_reductions_out_of_ssa): Remove.
3033 (build_poly_scop): Remove call to
3034 rewrite_commutative_reductions_out_of_ssa.
3035
3036 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
3037
3038 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
3039 Add new insn types for vector load and store pairs.
3040 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
3041 types "neon_ldp{,_q}".
3042 * config/arm/cortex-a57.md (neon_load_c): Add insn types
3043 "neon_ldp{,_q}".
3044 (neon_store_complex): Add insn types "neon_stp{,_q}".
3045 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
3046 "neon_{ldp,stp}_q".
3047
3048 2015-09-29 Jeff Law <law@redhat.com>
3049
3050 * config/rx/constraints.md (Int08): Fix undefined left shift
3051 behaviour.
3052 (Sint08, Sint16, Sint24): Likewise.
3053 * config/rx/rx.c (rx_get_stack_layout): Likewise.
3054
3055 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
3056 behaviour.
3057
3058 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
3059 left shift behaviour.
3060 * config/msp430/constraints.md ('L' constraint): Similarly.
3061 ('Ys' constraint): Similarly.
3062
3063 2015-09-29 Richard Biener <rguenther@suse.de>
3064
3065 PR tree-optimization/67170
3066 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
3067 the translate function pointer parameter to get the
3068 bool whether to disambiguate only by reference.
3069 (walk_non_aliased_vuses): Likewise.
3070 * tree-ssa-alias.c (maybe_skip_until): Adjust.
3071 (get_continuation_for_phi_1): Likewise.
3072 (get_continuation_for_phi): Likewise.
3073 (walk_non_aliased_vuses): Likewise.
3074 * tree-ssa-sccvn.c (const_parms): New bitmap.
3075 (vn_reference_lookup_3): Adjust for interface change.
3076 Disambiguate parameters pointing to readonly memory.
3077 (free_scc_vn): Free const_parms.
3078 (run_scc_vn): Initialize const_parms from a fn spec attribute.
3079
3080 2015-09-29 Richard Biener <rguenther@suse.de>
3081
3082 PR tree-optimization/67741
3083 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
3084 builtin calls with correct signature.
3085
3086 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
3087
3088 PR target/65105
3089 * config/i386/i386.c: Include dbgcnt.h.
3090 (has_non_address_hard_reg): New.
3091 (convertible_comparison_p): New.
3092 (scalar_to_vector_candidate_p): New.
3093 (remove_non_convertible_regs): New.
3094 (scalar_chain): New.
3095 (scalar_chain::scalar_chain): New.
3096 (scalar_chain::~scalar_chain): New.
3097 (scalar_chain::add_to_queue): New.
3098 (scalar_chain::mark_dual_mode_def): New.
3099 (scalar_chain::analyze_register_chain): New.
3100 (scalar_chain::add_insn): New.
3101 (scalar_chain::build): New.
3102 (scalar_chain::compute_convert_gain): New.
3103 (scalar_chain::replace_with_subreg): New.
3104 (scalar_chain::replace_with_subreg_in_insn): New.
3105 (scalar_chain::emit_conversion_insns): New.
3106 (scalar_chain::make_vector_copies): New.
3107 (scalar_chain::convert_reg): New.
3108 (scalar_chain::convert_op): New.
3109 (scalar_chain::convert_insn): New.
3110 (scalar_chain::convert): New.
3111 (convert_scalars_to_vector): New.
3112 (pass_data_stv): New.
3113 (pass_stv): New.
3114 (make_pass_stv): New.
3115 (ix86_option_override): Created and register stv pass.
3116 (flag_opts): Add -mstv.
3117 (ix86_option_override_internal): Likewise.
3118 * config/i386/i386.md (SWIM1248x): New.
3119 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
3120 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
3121 (*anddi3_doubleword): New.
3122 (*zext<mode>_doubleword): New.
3123 (*zextsi_doubleword): New.
3124 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
3125 (*<code>di3_doubleword): New.
3126 * config/i386/i386.opt (mstv): New.
3127 * dbgcnt.def (stv_conversion): New.
3128
3129 2015-09-29 Tom de Vries <tom@codesourcery.com>
3130
3131 * tree-cfg.c (dump_function_to_file): Dump function attributes.
3132
3133 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
3134
3135 PR target/67716
3136 * config/sh/sh.c (sh_override_options_after_change): New.
3137 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
3138 (sh_option_override): Move align_loops, align_jumps and
3139 align_functions handling into sh_override_options_after_change.
3140
3141 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
3142
3143 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
3144 (nvptx_record_offload_symbol): Record function execution geometry.
3145 * config/nvptx/mkoffload.c (process): Include launch geometry in
3146 function data.
3147 * omp-low.c (oacc_launch_pack): New.
3148 (replace_oacc_fn_attrib): New.
3149 (set_oacc_fn_attrib): New.
3150 (get_oacc_fn_attrib): New.
3151 (expand_omp_target): Create keyed varargs for GOACC_parallel call
3152 generation.
3153 * omp-low.h (get_oacc_fn_attrib): Declare.
3154 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
3155 (DEF_FUNCTION_TYPE_VAR_11): Delete.
3156 * tree.h (OMP_CLAUSE_EXPR): New.
3157 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
3158
3159 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
3160 Sebastian Pop <s.pop@samsung.com>
3161
3162 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
3163
3164 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
3165 Sebastian Pop <s.pop@samsung.com>
3166
3167 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
3168 * graphite-scop-detection.c (struct sese_l): New type.
3169 (get_entry_bb): API for getting entry bb of SESE.
3170 (get_exit_bb): API for getting exit bb of SESE.
3171 (class debug_printer): New type. Simple printer in debug mode.
3172 (trivially_empty_bb_p): New. Return true when BB is empty or
3173 contains only debug instructions.
3174 (graphite_can_represent_expr): Call scalar_evoution_in_region
3175 instead of analyze_scalar_evolution. Pass in scop instead of only
3176 the scop entry.
3177 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
3178 scop entry.
3179 (stmt_simple_for_scop_p): Same.
3180 (harmful_stmt_in_bb): Same.
3181 (graphite_can_represent_loop): Deleted.
3182 (struct scopdet_info): Deleted.
3183 (scopdet_basic_block_info): Deleted.
3184 (build_scops_1): Deleted.
3185 (bb_in_sd_region): Deleted.
3186 (find_single_entry_edge): Deleted.
3187 (find_single_exit_edge): Deleted.
3188 (create_single_entry_edge): Deleted.
3189 (sd_region_without_exit): Deleted.
3190 (create_single_exit_edge): Deleted.
3191 (unmark_exit_edges): Deleted.
3192 (mark_exit_edges): Deleted.
3193 (create_sese_edges): Deleted.
3194 (build_graphite_scops): Deleted.
3195 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
3196 (build_scops): Use the new scop_builder to build scops.
3197 (dot_all_scops_1): Use the new pretty printer. Print loop father
3198 as well.
3199 (loop_body_is_valid_scop): New. Return true if loop body is a
3200 valid scop.
3201 (class scop_builder): New. Builds SCoPs for polyhedral
3202 optimizations.
3203 (scop_builder): New constructor.
3204 (static sese_l invalid_sese): sese_l with invalid edges.
3205 (get_sese): Get an sese (from a loop) if possible, invalid_sese
3206 otherwise.
3207 (get_nearest_dom_with_single_entry): Get nearest dominator of a
3208 basic_block with single entry. Return NULL if we get to the
3209 beginning of a function.
3210 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
3211 a basic_block with single exit. Return NULL if we get to the
3212 beginning of a function.
3213 (print_sese): Pretty-print SESE.
3214 (merge_sese): Merge two SESEs if possible and return the new SESE.
3215 (build_scop_depth): Start building the SCoP within a loop nest.
3216 (build_scop_breadth): Start building the SCoP at a single loop
3217 depth. Merge adjacent SESEs if valid.
3218 (can_represent_loop_1): Returns true if Graphite can represent
3219 loop inside SCoP. Helper for can_represent_loop.
3220 (can_represent_loop): Returns true if Graphite can represent LOOP
3221 and all its nested loops in SCoP.
3222 (loop_is_valid_scop): Returns true if LOOP and all its nests
3223 constitute a valid SCoP.
3224 (region_has_one_loop): Returns true of a region has only one loop.
3225 (add_scop): Add SCoP to the list of valid scops. Removes an
3226 already existing scop if it intersects with or subsumed by this one.
3227 (harmful_stmt_in_region): Returns true if SCoP has any statment
3228 which cannot be represented by Graphite.
3229 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
3230 (remove_subscops): Remove any SCoP from the list of already found
3231 SCoPs, if subsumed by S1.
3232 (intersects): Return true if region bounded by SCoPs S1 and S2
3233 intersect.
3234 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
3235 * graphite.c (print_graphite_scop_statistics):
3236 (print_graphite_statistics): Print SCoP info while debugging.
3237 (graphite_initialize): Early exit in case number of loops in a
3238 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
3239 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
3240 (graphite_finalize):
3241 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
3242 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
3243 (recompute_all_dominators): Recalculate POST_DOMINATORS.
3244 * tree-cfg.c (print_loops): Print the function name while printing
3245 loops.
3246
3247 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
3248 Sebastian Pop <s.pop@samsung.com>
3249
3250 PR tree-optimization/67700
3251 * graphite-sese-to-poly.c (parameter_index_in_region): Call
3252 invariant_in_sese_p_rec.
3253 (extract_affine): Same.
3254 (rewrite_cross_bb_scalar_deps): Call update_ssa.
3255 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
3256 * sese.h (invariant_in_sese_p_rec): Declare.
3257
3258 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
3259
3260 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
3261
3262 2015-09-28 Jiong Wang <jiong.wang@arm.com>
3263
3264 Revert:
3265 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3266 Jiong Wang <jiong.wang@arm.com>
3267
3268 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
3269 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
3270 (REG_CLASS_NAMES): Likewise.
3271 (REG_CLASS_CONTENTS): Likewise.
3272 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
3273 (aarch64_register_move_cost): Likewise.
3274 (aarch64_load_symref_appropriately): Invoke the new added pattern if
3275 possible.
3276 * config/aarch64/constraints.md (Uc0): New constraint.
3277
3278 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
3279
3280 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
3281
3282 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
3283
3284 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
3285 SECTION_EXCLUDE in XO mapping class.
3286
3287 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
3288
3289 PR target/54236
3290 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
3291 and handle ne and eq codes.
3292 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
3293 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
3294 CONST_INT_P. Use reverse_condition.
3295 (sh_split_treg_set_expr): Likewise.
3296
3297 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
3298
3299 * config/arm/types.md (type): Add rotate_imm.
3300 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
3301 ROR immediate case.
3302 (*rorsi3_insn_uxtw): Likewise.
3303 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
3304 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
3305 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
3306
3307 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3308
3309 PR rtl-optimization/67481
3310 * ifcvt.c (contains_ccmode_rtx_p): New function.
3311 (insn_valid_noce_process_p): Use it.
3312
3313 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3314
3315 PR rtl-optimization/67456
3316 PR rtl-optimization/67464
3317 PR rtl-optimization/67465
3318 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
3319 move in the mode of x. Handle combination of complex and simple
3320 block pairs as well as the case when one is empty.
3321
3322 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3323
3324 * doc/gimple.texi: Update references to gimple_statement_base.
3325 * gdbhooks.py: Likewise.
3326 * gimple.h: Likewise.
3327
3328 2015-09-28 Daniel Cederman <cederman@gaisler.com>
3329
3330 * config/sparc/driver-sparc.c: map LEON to leon3
3331
3332 2015-09-28 Daniel Cederman <cederman@gaisler.com>
3333
3334 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
3335 and make it inverse to change default
3336 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
3337 supervisor mode
3338 * doc/invoke.texi: Document change of default
3339
3340 2015-09-28 Daniel Cederman <cederman@gaisler.com>
3341
3342 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
3343 true on %f0 for a target without FPU.
3344 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
3345 without FPU.
3346 (untyped_return): Do not load %f0 for a target without FPU.
3347
3348 2015-09-28 Andrew Pinski <apinski@cavium.com>
3349
3350 * config/aarch64/aarch64.md (prefetch):
3351 Change the predicate of operand 0 to register_operand.
3352
3353 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
3354
3355 * config/i386/predicates.md (register_sse4nonimm_operand): New
3356 predicate.
3357 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
3358 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
3359 Use register_sse4nonimm_operand as operand 0 predicate.
3360 (*vec_extractv8hi_sse2): Remove insn pattern.
3361 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
3362 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
3363
3364 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
3365 Kaz Kojima <kkojima@gcc.gnu.org>
3366
3367 PR target/67391
3368 * config/sh/sh-protos.h (sh_lra_p): Declare.
3369 * config/sh/sh.c (sh_lra_p): Make non-static.
3370 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
3371 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
3372 Expand into addsi3_scr if operands[2] if needed.
3373 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
3374 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
3375 (addsi3_scr, *addsi3): New insn_and_split patterns.
3376
3377 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
3378
3379 PR rtl-optimization/64164
3380 PR tree-optimization/67312
3381 PR middle-end/67340
3382 PR middle-end/67490
3383 PR bootstrap/67597
3384 * cfgexpand.c (parm_in_stack_slot_p): Remove.
3385 (ssa_default_def_partition): Remove.
3386 (get_rtl_for_parm_ssa_default_def): Remove.
3387 (set_rtl): Check that RTL assignments match expectations.
3388 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
3389 default def location for params and results. Record SSA names
3390 or types in REG and MEM attrs, respectively.
3391 (set_parm_rtl): New.
3392 (expand_one_ssa_partition): Drop logic that assigned MEMs with
3393 unassigned addresses.
3394 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
3395 deferred stack alloc vars.
3396 (expand_used_vars): Skip partitions holding parm default defs.
3397 Move adjust_one_expanded_partition_var loop...
3398 (pass_expand::execute): ... here. Drop redundant assert.
3399 Adjust comments before the final loop over all ssa names.
3400 Require assigned rtl of parms and results to match exactly.
3401 Reset its attributes to match them, not any other variables in
3402 the same partition.
3403 (expand_debug_expr): Use entry value for PARM's default defs
3404 only iff they have zero nondebug uses.
3405 * cfgexpand.h (parm_in_stack_slot_p): Remove.
3406 (get_rtl_for_parm_ssa_default_def): Remove.
3407 (set_parm_rtl): Declare.
3408 * doc/invoke.texi: Improve wording.
3409 * explow.c (promote_decl_mode): Fix promote_function_mode for
3410 result decls not by reference.
3411 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
3412 bypass TYPE_MODE to get the actual vector mode.
3413 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
3414 2015-08-19's changes as follows. Drop include of
3415 basic-block.h and df.h.
3416 (rtl_for_parm): Remove.
3417 (maybe_reset_rtl_for_parm): Remove.
3418 (parm_in_unassigned_mem_p): Remove.
3419 (use_register_for_decl): Add logic for RESULT_DECLs matching
3420 assign_parms' behavior.
3421 (split_complex_args): Revert.
3422 (assign_parms_augmented_arg_list): Revert. Add comment
3423 referencing the logic above.
3424 (assign_parm_adjust_stack_rtl): Revert.
3425 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
3426 of SET_DECL_RTL. Set up a REG if the parm demands so.
3427 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
3428 calls into a single set_parm_rtl. Set up a temporary RTL
3429 temporarily for expand_assignment.
3430 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
3431 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
3432 (assign_bounds): Revert.
3433 (assign_parms): Revert. Use set_parm_rtl.
3434 (allocate_struct_function): Relayout result and parms of
3435 non-abstruct functions.
3436 (expand_function_start): Revert. Use set_parm_rtl. If the
3437 result is not a hard reg, create a pseudo from the promoted
3438 mode of the default def. Promote static chain mode.
3439 * tree-outof-ssa.c (remove_ssa_form): Drop unused
3440 partition_has_default_def. Set up
3441 partitions_for_parm_default_defs.
3442 (finish_out_of_ssa): Remove partition_has_default_def.
3443 Release partitions_for_parm_default_defs.
3444 * tree-outof-ssa.h (struct ssaexpand): Remove
3445 partition_has_default_def. Add
3446 partitions_for_parm_default_defs.
3447 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
3448 stor-layout.h.
3449 (build_ssa_conflict_graph): Fix conflict-detection of default
3450 defs of even unused default defs of params and results.
3451 (for_all_parms): New.
3452 (create_default_def): New.
3453 (register_default_def): New.
3454 (coalesce_with_default): New.
3455 (create_outofssa_var_map): Create default defs for all parms
3456 and results, and register their partitions. Add GIMPLE_RETURN
3457 operands as coalesce candidates with results. Add default
3458 defs of each parm or result as coalesce candidates with its
3459 other defs. Mark each result def, and each default def of
3460 parms, as used_in_copy.
3461 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
3462 with the ssa names, even anonymous ones. Drop
3463 parm_in_stack_slot_p calls. Require same signedness and
3464 alignment.
3465 (coalesce_ssa_name): Add coalesce candidates for all defs of
3466 each parm and result, even unused ones.
3467 (parm_default_def_partition_arg): New type.
3468 (set_parm_default_def_partition): New.
3469 (get_parm_default_def_partitions): New.
3470 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
3471 * tree-ssa-live.c (partition_view_init): Regard unused defs of
3472 parms and results as used.
3473 (verify_live_on_entry): Don't error out just because they're
3474 not live.
3475
3476 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
3477
3478 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
3479 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
3480 (output_fde): Don't output length for debug_frame on AIX.
3481 (output_call_frame_info): Don't output length for debug_frame on AIX.
3482 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
3483 HAVE_XCOFF_DWARF_EXTRAS.
3484 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
3485 HAVE_XCOFF_DWARF_EXTRAS.
3486 (output_compilation_unit_header): Don't output length on AIX.
3487 (output_pubnames): Don't output length on AIX.
3488 (output_aranges): Delete argument. Compute length locally. Don't
3489 output length on AIX.
3490 (output_line_info): Don't output length on AIX.
3491 (dwarf2out_finish): Don't compute aranges_length.
3492 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
3493 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
3494 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
3495 symbol decoration for AIX.
3496 (rs6000_xcoff_debug_unwind_info): New.
3497 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
3498 for SECTION_DEBUG.
3499 (rs6000_xcoff_declare_function_name): Emit different
3500 .function pseudo-op when DWARF2_DEBUG. Don't call
3501 xcoffout_declare_function for DWARF2_DEBUG.
3502 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
3503 Redefine.
3504 * config/rs6000/aix71.h: New.
3505 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
3506 locations support.
3507 * configure: Regenerate.
3508 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
3509 DWARF support.
3510
3511 2015-09-26 Jeff Law <law@redhat.com>
3512
3513 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
3514 behaviour.
3515 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
3516 behaviour.
3517
3518 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
3519 behaviour
3520
3521 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
3522 undefined behaviour.
3523
3524 * config/cris/cris.md (asrandb): Fix left shift undefined
3525 behaviour.
3526 (asrandw): Likewise.
3527
3528 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
3529
3530 PR target/61578
3531 * lra-constarints.c (match_reload): Check presence of the input pseudo
3532 in the output operand.
3533
3534 2015-09-25 Tobias Burnus <burnus@net-b.de>
3535
3536 * doc/invoke.texi (-fsanitize): Minor wording tweak.
3537
3538 2015-09-25 Tobias Burnus <burnus@net-b.de>
3539
3540 * doc/invoke.texi (-fsanitize): Update URLs.
3541
3542 2015-09-25 Teresa Johnson <tejohnson@google.com>
3543
3544 * opts.c (finish_options): Unset -freorder-blocks-and-partition
3545 if not using profile.
3546
3547 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
3548
3549 PR pretty-print/67567
3550 * pretty-print.c (pp_string): Add gcc_checking_assert.
3551 * pretty-print.h (output_buffer_append_r): Likewise.
3552
3553 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
3554
3555 PR target/67675
3556 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
3557 addr2 individually. Don't emit logical or insn if one is known to
3558 be aligned approriately.
3559 (sh_expand_cmpnstr): Likewise.
3560
3561 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
3562
3563 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
3564 __builtin_aarch64_fp[sc]r arguments into a register.
3565
3566 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
3567
3568 * config.gcc (x86_archs): Replace lakemount with lakemont.
3569 (with_cpu): Likewise.
3570 (with_arch): Likewise.
3571 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
3572 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
3573 __tune_lakemount__ with __tune_lakemont__.
3574 * config/i386/i386.c (lakemount_cost): Renamed to ...
3575 (lakemont_cost): This.
3576 (m_LAKEMOUNT): Renamed to ...
3577 (m_LAKEMONT): This.
3578 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
3579 (processor_target_table): Replace "lakemount" with "lakemont".
3580 (processor_alias_table): Likewise.
3581 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
3582 PROCESSOR_LAKEMONT.
3583 (ix86_adjust_cost): Likewise.
3584 (ia32_multipass_dfa_lookahead): Likewise.
3585 * config/i386/i386.h (processor_type): Likewise.
3586 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
3587 * doc/invoke.texi: Replace lakemount with lakemont. Replace
3588 Lakemount with Lakemont.
3589
3590 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
3591
3592 * config.gcc (x86_archs): Replace iamcu with lakemount.
3593 (with_cpu): Likewise.
3594 (with_arch): Likewise.
3595 * doc/invoke.texi: Likewise.
3596 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
3597 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
3598 __tune_iamcu__ with __tune_lakemount__.
3599 * config/i386/i386.c (iamcu_cost): Renamed to ...
3600 (lakemount_cost): This.
3601 (m_IAMCU): Renamed to ...
3602 (m_LAKEMOUNT): This.
3603 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
3604 (processor_target_table): Replace "iamcu" with "lakemount".
3605 (processor_alias_table): Likewise.
3606 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
3607 PROCESSOR_LAKEMOUNT.
3608 (ix86_adjust_cost): Likewise.
3609 (ia32_multipass_dfa_lookahead): Likewise.
3610 * config/i386/i386.h (processor_type): Likewise.
3611 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
3612
3613 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
3614
3615 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
3616 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
3617 Declare.
3618 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
3619 (pa_expand_compare_and_swap_loop): New.
3620 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
3621 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
3622 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
3623 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
3624 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
3625 Revise.
3626
3627 2015-09-24 Michael Collison <michael.collison@linaro.org>
3628
3629 PR other/57195
3630 * read-md.c (read_name): Allow mode iterators inside angle
3631 brackets in rtl expressions.
3632
3633 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
3634
3635 PR target/61578
3636 * ira-color.c (update_allocno_cost): Add parameter.
3637 (update_costs_from_allocno): Decrease conflict cost. Pass the new
3638 parameter.
3639
3640 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
3641
3642 PR driver/67640
3643 * opts-common.c (prune_options): Discard all -fdiagnostics-color
3644 but the last one, which is moved to the front to be processed
3645 first.
3646 * opts.c (enable_warning_as_error): Reject options that do not
3647 control warnings.
3648
3649 2015-09-24 Jiong Wang <jiong.wang@arm.com>
3650
3651 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
3652
3653 2015-09-24 Jiong Wang <jiong.wang@arm.com>
3654
3655 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
3656 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
3657 (aarch64_cannot_force_const_mem): Likewise.
3658 (aarch64_classify_address): Likewise.
3659 (aarch64_classify_symbolic_expression): Likewise.
3660 (aarch64_print_operand): Likewise.
3661 (aarch64_classify_symbol): Likewise.
3662 (aarch64_mov_operand_p): Likewise.
3663 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
3664 (aarch64_mov_operand): Likewise.
3665
3666 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
3667
3668 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
3669 for info->spe_gp_size.
3670
3671 2015-09-24 Richard Biener <rguenther@suse.de>
3672
3673 PR lto/67699
3674 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
3675 abstract origins.
3676
3677 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
3678
3679 * tree-object-size.c (plus_stmt_object_size)
3680 (cond_expr_object_size): Change the formal parameters from gimple
3681 to gimple *.
3682 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
3683 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
3684 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
3685
3686 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3687
3688 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
3689 Check for ld -type pie on Solaris 11.x and 12.
3690 * configure: Regenerate.
3691 * config.in: Regenerate.
3692
3693 * gcc.c (LD_PIE_SPEC): Allow redefinition.
3694
3695 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
3696 (STARTFILE_SPEC): Use it.
3697 (ENDFILE_CRTEND_SPEC): Define.
3698 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
3699 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
3700 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
3701 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
3702 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
3703 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
3704 (ENDFILE_ARCH_SPEC): Define.
3705 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
3706
3707 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3708
3709 * configure.ac (gcc_cv_solaris_crts): New test.
3710 * configure. Regenerate.
3711 * config.in: Regenerate.
3712 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
3713 HAVE_SOLARIS_CRTS variant.
3714
3715 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3716
3717 * tree-inline.h (count_insns_seq): Delete prototype.
3718 (estimate_num_insns_seq): Define prototype.
3719 * tree-inline.c (count_insns_seq): Delete.
3720 (estimate_num_insns_seq): Remove static qualifier.
3721 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
3722 with estimate_num_insns_seq.
3723
3724 2015-09-24 Richard Biener <rguenther@suse.de>
3725
3726 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
3727 members.
3728 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
3729 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
3730 offset.
3731 (ao_ref_init_from_vn_reference): Record clique and base in the
3732 built base.
3733 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
3734
3735 2015-09-24 Richard Biener <rguenther@suse.de>
3736
3737 PR tree-optimization/48885
3738 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
3739 as not including any restrict tags from other pointers.
3740
3741 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
3742
3743 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
3744 character when appending to offload_targets.
3745
3746 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
3747 offload targets by commas, not colons.
3748 * config.in: Regenerate.
3749 * configure: Likewise.
3750 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
3751 instead of setting up the default offload targets here...
3752 (process_command): ..., do it here.
3753 libgomp/
3754 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
3755 targets are separated by commas.
3756 * config.h.in: Regenerate.
3757
3758 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
3759 Nathan Sidwell <nathan@codesourcery.com>
3760
3761 * omp-low.h (omp_reduction_init_op): Declare.
3762 * omp-low.c (omp_reduction_init_op): New, broken out of ...
3763 (omp_reduction_init): ... here. Call it.
3764 * tree-parloops.c (initialize_reductions): Use
3765 omp_reduction_init_op.
3766
3767 2015-09-23 Richard Biener <rguenther@suse.de>
3768
3769 PR middle-end/67662
3770 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
3771 undefined overflow unless they will cancel out.
3772
3773 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
3774
3775 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
3776 insn emit.
3777
3778 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
3779
3780 PR c/49655
3781 * opts.h (write_langs): Declare.
3782 * opts-global.c (write_langs): Make it extern.
3783
3784 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
3785
3786 PR target/67391
3787 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
3788 overlapping regs when matching the pattern.
3789
3790 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
3791
3792 * config/aarch64/aarch64-simd.md
3793 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
3794 (aarch64_float_truncate_hi_v4sf_le): New.
3795 (aarch64_float_truncate_hi_v4sf_be): Likewise.
3796
3797 2015-09-23 Richard Biener <rguenther@suse.de>
3798
3799 * tree-ssa-structalias.c (intra_create_variable_infos): Build
3800 representatives for all restrict qualified pointer destinations.
3801
3802 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
3803
3804 * config/i386/i386.md (define_code_attr mshift): New.
3805 (define_mode_iterator SWI1248_AVX512BW): Rename ...
3806 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
3807 only.
3808 (define_insn "*k<logic><mode>"): Use new iterator name.
3809 (define_insn "*<mshift><mode>3"): New.
3810
3811 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
3812
3813 PR middle-end/67649
3814 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
3815 mark the block as accessible.
3816
3817 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
3818
3819 * function.c (thread_prologue_and_epilogue_insns): Delete
3820 orig_entry_edge argument to try_shrink_wrapping.
3821 * shrink-wrap.c (can_get_prologue): New function.
3822 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
3823 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
3824 can_get_prologue where needed. Remove code that finds a single
3825 edge for the prologue. Remove code that tests if any reg clobbered
3826 by the prologue is live on the prologue edge. Remove code that finds
3827 the new prologue edge after duplicating blocks. Make a new prologue
3828 block and edge.
3829 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
3830
3831 2015-09-22 Jeff Law <law@redhat.com>
3832
3833 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
3834 behavior.
3835
3836 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
3837
3838 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
3839 -Wtemplates, -Wnamespaces): Document.
3840
3841 2015-09-22 Tom de Vries <tom@codesourcery.com>
3842
3843 PR tree-optimization/67671
3844 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
3845 pointer references as restrict.
3846
3847 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
3848
3849 * config/nios2/nios2.c (nios2_legitimize_address): When handling
3850 'reg + reloc' cases, allow first operand to be non-REG, and use
3851 force_reg() to enforce address pattern.
3852
3853 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
3854
3855 PR target/67480
3856 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
3857 (define_mode_iterator VI12_AVX_AVX512F): New.
3858 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
3859 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
3860 (define_insn "*<code><mode>3"): ... Into new pattern using
3861 VI12_AVX_AVX512F iterators without masking.
3862
3863 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
3864
3865 * config.gcc: Support "skylake-avx512".
3866 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
3867 PROCESSOR_SKYLAKE_AVX512.
3868 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
3869 (processor_target_table): Add "skylake-avx512".
3870 (PTA_SKYLAKE_AVX512): Define.
3871 (ix86_option_override_internal): Add "skylake_avx512".
3872 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
3873 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
3874 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
3875 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
3876 * doc/invoke.texi (skylake-avx512): New.
3877
3878 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
3879
3880 * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
3881 operand in pattern.
3882 (define_insn "kunpcksi"): Ditto.
3883 (define_insn "kunpckdi"): Ditto.
3884
3885 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
3886
3887 * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
3888 iterator instead of fixed modes.
3889
3890 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
3891
3892 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
3893 Adjust declaration.
3894 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
3895 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
3896 out_result. Update to support update-fetch operations.
3897 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
3898 Adjust for change to aarch64_gen_atomic_ldop.
3899 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
3900 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
3901 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
3902 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
3903 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
3904
3905 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
3906
3907 * config/aarch64/aarch64-protos.h
3908 (aarch64_atomic_ldop_supported_p): Declare.
3909 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
3910 (enum aarch64_atomic_load_op_code): New.
3911 (aarch64_emit_atomic_load_op): New.
3912 (aarch64_gen_atomic_ldop): Update to support load-operate
3913 patterns.
3914 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
3915 to an expander.
3916 (aarch64_atomic_<atomic_optab><mode>): New.
3917 (aarch64_atomic_<atomic_optab><mode>_lse): New.
3918 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
3919 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
3920 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
3921
3922 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
3923
3924 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
3925 (UNSPECV_ATOMIC_LDOP_OR): New.
3926 (UNSPECV_ATOMIC_LDOP_BIC): New.
3927 (UNSPECV_ATOMIC_LDOP_XOR): New.
3928 (UNSPECV_ATOMIC_LDOP_PLUS): New.
3929 (ATOMIC_LDOP): New.
3930 (atomic_ldop): New.
3931 (aarch64_atomic_load<atomic_ldop><mode>): New.
3932
3933 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
3934
3935 * config/aarch64/aarch64.md
3936 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
3937 pattern.
3938
3939 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
3940
3941 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
3942 Declare.
3943 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
3944 (aarch64_gen_atomic_ldop): New.
3945 (aarch64_split_atomic_op): Fix whitespace and add a comment.
3946 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
3947 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
3948 (atomic_exchange<mode>): Replace with an expander.
3949 (aarch64_atomic_exchange<mode>): New.
3950 (aarch64_atomic_exchange<mode>_lse): New.
3951 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
3952 (aarch64_atomic_swp<mode>): New.
3953
3954 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3955
3956 * tree-inline.c (expand_call_inline): Use inform for extra note.
3957 Do not give a note with UNKNOWN_LOCATION.
3958 Replace input_location with gimple_location (stmt).
3959 Use true/false instead of TRUE/FALSE.
3960
3961 2015-09-22 Tom de Vries <tom@codesourcery.com>
3962
3963 PR tree-optimization/67666
3964 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
3965 with single field non-conservative.
3966
3967 2015-09-21 David S. Miller <davem@davemloft.net>
3968
3969 PR/67622
3970 Revert:
3971 2015-09-11 David S. Miller <davem@davemloft.net>
3972
3973 * config/sparc/constraints.md: Make "U" constraint a real register
3974 constraint.
3975 * config/sparc/sparc.c (TARGET_LRA_P): Define.
3976 (D_MODES, DF_MODES): Add missing cast.
3977 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
3978 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
3979 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
3980 cost to 8.
3981 * config/sparc/sparc.h (PROMOTE_MODE): Define.
3982 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
3983 provide these insn when flag_pic.
3984
3985 2015-09-17 David S. Miller <davem@davemloft.net>
3986
3987 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
3988 Declare.
3989 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
3990 function.
3991 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
3992 (HARD_REGNO_CALLER_SAVE_MODE): Define.
3993 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
3994 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
3995 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
3996 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
3997 provide when flag_pic.
3998
3999 2015-09-21 Jeff Law <law@redhat.com>
4000
4001 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
4002 behavior.
4003
4004 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4005
4006 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
4007
4008 2015-09-21 Richard Biener <rguenther@suse.de>
4009
4010 * passes.c (rest_of_decl_compilation): Do not call
4011 dwarf2out_early_global_decl for aliases.
4012
4013 2015-09-21 Richard Biener <rguenther@suse.de>
4014
4015 PR debug/67664
4016 * dwarf2out.c (add_location_or_const_value_attribute): Remove
4017 attribute parameter. Early exit if either DW_AT_const_value
4018 or DW_AT_location are present already.
4019 (gen_variable_die): Adjust caller.
4020 (dwarf2out_late_global_decl): Likewise.
4021
4022 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
4023
4024 PR target/67657
4025 * config/sh/sh.c (sh_remove_overlapping_post_inc,
4026 sh_peephole_emit_move_insn): Add new functions.
4027 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
4028 sh_peephole_emit_move_insn): Declere them.
4029 * config/sh/sh.md: Use them in various peephole2 patterns.
4030
4031 2015-09-21 Richard Biener <rguenther@suse.de>
4032
4033 PR middle-end/67651
4034 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
4035 address with -fno-delete-null-pointer-checks.
4036
4037 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
4038
4039 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
4040 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
4041 (reduc_uplus_v16qi): Remove.
4042
4043 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
4044 (reduc_<VEC_reduc_name>_v2df): Remove.
4045 (reduc_<VEC_reduc_name>_v4sf): Remove.
4046 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
4047
4048 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
4049 gen_ function by removing * prefix.
4050 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
4051
4052 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4053
4054 PR middle-end/60832
4055 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
4056 Print i_bound without converting it to a tree.
4057
4058 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
4059
4060 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
4061 operands[4] operands[5] swap with std::swap, removed tmp variable.
4062 (arm_evpc_neon_vzip): Replaced in0/in1 and
4063 out0/out1 swaps with std::swap, removed x variable.
4064 (arm_evpc_neon_vtrn): Replaced in0/int1 and
4065 out0/out1 swaos with std::swap, removed x variable.
4066 (arm_expand_vec_perm_const_1): Replaced
4067 d->op0/d->op1 swap with std::swap, removed x variable.
4068 (arm_evpc_neon_vuzp): Replaced in0/in1 and
4069 out0/out1 swaps with std::swap, removed x variable.
4070
4071 2015-09-21 Jonathan Yong <10walls@gmail.com>
4072
4073 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
4074 sysroot/usr/lib/32api for additional win32 libraries,
4075 fixes failing Cygwin bootstrapping.
4076
4077 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
4078
4079 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
4080
4081 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
4082
4083 PR target/67126
4084 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
4085 (*mov_t_msb_neg): Rewrite negc pattern.
4086
4087 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
4088
4089 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
4090 immediate generation code.
4091
4092 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
4093
4094 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
4095 redundant immediate generation code.
4096
4097 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
4098
4099 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
4100 (AARCH64_NUM_BITMASKS): Remove.
4101 (aarch64_bitmasks_cmp): Remove.
4102 (aarch64_build_bitmask_table): Remove.
4103
4104 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
4105
4106 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
4107 slow immediate matching loops with a faster algorithm.
4108
4109 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
4110
4111 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
4112 faster algorithm.
4113
4114 2015-09-20 Jeff Law <law@redhat.com>
4115
4116 PR tree-optimization/47679
4117 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
4118 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
4119 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
4120 (thread_through_normal_block): Use record_temporary_equivalences.
4121
4122 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
4123
4124 * coretypes.h (gimple): Change typedef to be a forward declaration.
4125 * gimple.h (gimple_statement_base): rename to gimple.
4126 * (all functions and types using gimple): Adjust.
4127 * *.[ch]: Likewise.
4128
4129 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
4130 David Edelsohn <dje.gcc@gmail.com>
4131
4132 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
4133 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4134 (EH_FRAME_THROUGH_COLLECT2): Define.
4135 (EH_TABLES_CAN_BE_READ_ONLY): Define.
4136 (ASM_OUTPUT_DWARF_PCREL): Define.
4137 (ASM_OUTPUT_DWARF_DATAREL): Define.
4138
4139 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
4140
4141 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
4142 of TARGET_ELF32.
4143
4144 2015-09-18 Jeff Law <law@redhat.com>
4145
4146 PR tree-optimization/47679
4147 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
4148 it here ...
4149 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
4150 object. Update constructor.
4151 (pass_dominator::execute): Corresponding chagnes to declaration
4152 and initialization of avail_exprs_stack. Update constructor call
4153 for dom_opt_dom_walker object.
4154 (lookup_avail_expr, record_cond): Accept additional argument. Pass
4155 it down to children as needed.
4156 (record_equivalences_from_incoming_edge): Likewise.
4157 (eliminate_redundant_computations): Likewise.
4158 (record_equivalences_from_stmt): Likewise.
4159 (simplify_stmt_for_jump_threading): Likewise.
4160 (record_temporary_equivalences): Likewise.
4161 (optimize_stmt): Likewise.
4162 (dom_opt_dom_walker::thread_across_edge): Update access to
4163 avail_exprs_stack object and pass it to children as needed.
4164 (dom_opt_dom_walker::before_dom_children): Similarly.
4165 (dom_opt_dom_walker::after_dom_children): Similarly.
4166 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
4167 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
4168 Add avail_expr_stack argument. Pass it to children as needed.
4169 (dummy_simplify): Likewise.
4170 (simplify_control_stmt_condition): Likewise.
4171 (thread_around_empty_blocks): Likewise.
4172 (thread_through_normal_block): Likewise.
4173 (thread_across_edge): Likewise.
4174 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
4175 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
4176
4177 PR tree-optimization/47679
4178 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
4179 it here ...
4180 (dom_opt_dom_walker): New private member holding the const_and_copies
4181 object. Update constructor.
4182 (pass_dominator::execute): Corresponding changes to declaration
4183 and initialization of const_and_copies. Update constructor call
4184 for the dom_opt_dom_walker object.
4185 (record_temporary_equivalences): Accept const_and_copies argument
4186 pass it down to children as needed.
4187 (record_equality): Likewise.
4188 (record_equivalences_from_incoming_edge): Likewise.
4189 (cprop_into_successor_phis, optimize_stmt): Likewise.
4190 (eliminate_redundant_computations): Likewise.
4191 (dom_opt_dom_walker::thread_across_edge): Update access to
4192 const_and_copies object and pass it to children as needed.
4193 (dom_opt_dom_walker::before_dom_children): Similarly.
4194 (dom_opt_dom_walker::after_dom_children): Similarly.
4195
4196 PR tree-optimization/47679
4197 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
4198 it into the avail_exprs_stack class.
4199 (pass_dominator::execute): Corresponding changes to declaration
4200 and initialization of avail_exprs. Pass avail_exprs to
4201 dump_dominator_optimization_stats.
4202 (record_cond): Extract avail_exprs from avail_exprs_stack.
4203 (lookup_avail_expr): Similarly.
4204 (htab_staticstics): Remove unnecessary prototype. Move to earlier
4205 position in file.
4206 (dump_dominator_optimization_stats): Make static and prototype.
4207 Add argument for the hash table to dump.
4208 (debug_dominator_optimization_stats): Remove.
4209 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
4210 prototype.
4211 (debug_dominator_optimization_stats): Similarly.
4212 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
4213 "void" in prototype for pop_to_marker method. Add accessor method
4214 for the underlying avail_exprs table.
4215
4216 * tree-ssa-threadedge.c: Remove trailing whitespace.
4217
4218 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
4219
4220 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
4221 unsigned.
4222 (pa_ldil_cint_p): Likewise.
4223 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
4224 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
4225 Update callers.
4226 * config/pa/pa.md: Likewise.
4227
4228 2015-09-18 David Malcolm <dmalcolm@redhat.com>
4229
4230 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
4231 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
4232 (diagnostic_show_locus): Likewise.
4233 (diagnostic_print_caret_line): Likewise.
4234 * diagnostic-show-locus.c: New file.
4235
4236 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
4237
4238 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
4239 "back" parameter. Declare label in #if block.
4240
4241 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
4242
4243 PR middle-end/67619
4244 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
4245 the address to a register.
4246
4247 2015-09-18 Jeff Law <law@redhat.com>
4248
4249 PR tree-optimization/47679
4250 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
4251 * tree-ssa-dom.c: Remove unnecessary header includes.
4252 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
4253 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
4254 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
4255 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
4256 (pass_phi_only_cprop::execute): Likewise.
4257 (make_pass_phi_only_cprop): Likewise.
4258 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
4259 uses of file scoped statics by passing the required objects
4260 as parameters wherever needed.
4261
4262 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
4263 David Edelsohn <dje.gcc@gmail.com>
4264
4265 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
4266 EH_FRAME_THROUGH_COLLECT2.
4267 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
4268 DW_EH_PE_datarel.
4269 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
4270 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
4271 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
4272 * except.c (switch_to_exception_section): Use a read-only section
4273 even if EH_FRAME_SECTION_NAME is undefined.
4274 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
4275 * collect2.c (write_c_file_stat): Provide dbase on AIX.
4276 (scan_prog_file): Don't export __dso_handle nor
4277 __gcc_unwind_dbase.
4278 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4279 (EH_TABLES_CAN_BE_READ_ONLY): Define.
4280 (ASM_OUTPUT_DWARF_PCREL): Define.
4281 (ASM_OUTPUT_DWARF_DATAREL): Define.
4282 (EH_FRAME_THROUGH_COLLECT2): Define.
4283 (EH_FRAME_IN_DATA_SECTION): Delete.
4284 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
4285 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
4286 Declare.
4287 (rs6000_asm_output_dwarf_datarel): Declare.
4288 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
4289 (rs6000_aix_asm_output_dwarf_datarel): New.
4290 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
4291 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
4292 (EH_FRAME_THROUGH_COLLECT2): Define.
4293 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
4294 (EH_FRAME_THROUGH_COLLECT2): Define.
4295 (EH_TABLES_CAN_BE_READ_ONLY): Define.
4296 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
4297 (EH_FRAME_THROUGH_COLLECT2): New.
4298 (ASM_OUTPUT_DWARF_DATAREL): New.
4299 * doc/tm.texi: Regenerate.
4300
4301 2015-09-18 Richard Biener <rguenther@suse.de>
4302
4303 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
4304 we're in early phase.
4305 (schedule_generic_params_dies_gen): Likewise.
4306 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
4307 work as possible, retaining unhandled cases.
4308 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
4309 clear out generic_type_instances at the end.
4310 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
4311 (dwarf2out_early_finish): ... here. Do most of
4312 gen_remaining_tmpl_value_param_die_attribute here.
4313
4314 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
4315
4316 PR tree-optimization/67283
4317 * tree-sra.c (type_consists_of_records_p): Rename to...
4318 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
4319 (completely_scalarize_record): Rename to...
4320 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
4321 (scalarize_elem): New.
4322 (analyze_all_variable_accesses): Follow renamings.
4323
4324 2015-09-18 Richard Biener <rguenther@suse.de>
4325
4326 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
4327 in early-dwarf.
4328
4329 2015-09-18 Richard Biener <rguenther@suse.de>
4330
4331 PR tree-optimization/66142
4332 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
4333 treat MEM[&x] and x the same.
4334 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
4335 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
4336 when we simplified sth.
4337 (vn_reference_maybe_forwprop_address): Likewise.
4338 (valueize_refs_1): When we simplified through
4339 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
4340 set valueized_anything to true.
4341 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
4342 one ref kills the other instead of just a offset-based test.
4343 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
4344 for the operand_equal_p test to compare bases and also compare
4345 sizes.
4346
4347 2015-09-17 Christian Bruel <christian.bruel@st.com>
4348
4349 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
4350
4351 2015-09-17 Richard Henderson <rth@redhat.com>
4352
4353 PR libstdc++/65913
4354 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
4355 pointers that encode the alignment of the object.
4356
4357 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
4358
4359 PR rtl-optimization/66790
4360 * df-problems.c (LIVE): Amend documentation.
4361
4362 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
4363
4364 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
4365 and optabs-tree.o.
4366 (GTFILES): Replace optabs.c with optabs-libfunc.c.
4367 * genopinit.c (main): Add an include guard to insn-opinit.h.
4368 Protect the rtx_code parts with NUM_RTX_CODE.
4369 * optabs.h: Split parts out to...
4370 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
4371 * optabs.c: Split parts out to...
4372 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
4373 * cilk-common.c: Include optabs-query.h rather than optabs.h.
4374 * fold-const.c: Likewise.
4375 * target-globals.c: Likewise.
4376 * tree-if-conv.c: Likewise.
4377 * tree-ssa-forwprop.c: Likewise.
4378 * tree-ssa-loop-prefetch.c: Likewise.
4379 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
4380 Remove unncessary include files.
4381 * tree-ssa-phiopt.c: Likewise.
4382 * tree-ssa-reassoc.c: Likewise.
4383 * tree-switch-conversion.c: Likewise.
4384 * tree-vect-data-refs.c: Likewise.
4385 * tree-vect-generic.c: Likewise.
4386 * tree-vect-loop.c: Likewise.
4387 * tree-vect-patterns.c: Likewise.
4388 * tree-vect-slp.c: Likewise.
4389 * tree-vect-stmts.c: Likewise.
4390 * tree-vrp.c: Likewise.
4391 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
4392 rather than optabs.h.
4393 * expr.c: Include optabs-tree.h.
4394 * function.c: Likewise.
4395
4396 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
4397
4398 PR middle-end/65958
4399 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
4400 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
4401 * config/arm/arm.c: Include common/common-target.h.
4402 (use_return_insn): Return 0 if the static chain register was saved
4403 above a non-APCS frame.
4404 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
4405 (struct scratch_reg): New.
4406 (get_scratch_register_on_entry): New function.
4407 (release_scratch_register_on_entry): Likewise.
4408 (arm_emit_probe_stack_range): Likewise.
4409 (output_probe_stack_range): Likewise.
4410 (arm_expand_prologue): Factor out code dealing with the IP register
4411 for nested function and adjust it for stack checking.
4412 Invoke arm_emit_probe_stack_range if static builtin stack checking
4413 is enabled.
4414 (thumb1_expand_prologue): Sorry out if static builtin stack checking
4415 is enabled.
4416 (arm_expand_epilogue): Add the saved static chain register, if any, to
4417 the amount of pre-pushed registers to pop.
4418 (arm_frame_pointer_required): Return true if static stack checking is
4419 enabled and we want to catch the exception with the EABI unwinder.
4420 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
4421 (UNSPEC_PROBE_STACK_RANGE): Likewise.
4422 * config/arm/arm.md (probe_stack): New insn.
4423 (probe_stack_range): Likewise.
4424
4425 2015-09-17 Richard Biener <rguenther@suse.de>
4426
4427 * genmatch.c (parser::parse_expr): Improve error message
4428 for mis-placed flags.
4429
4430 2015-09-17 Richard Biener <rguenther@suse.de>
4431
4432 * passes.c (rest_of_decl_compilation): Always call early_global_decl
4433 debug hook when we created a varpool node.
4434 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
4435 dwarf2out_early_global_decl, when not just add location or
4436 value attributes to existing DIEs.
4437
4438 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
4439
4440 * config/aarch64/aarch64.md (copysigndf3): New.
4441 (copysignsf3): Likewise.
4442
4443 2015-09-17 David S. Miller <davem@davemloft.net>
4444
4445 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
4446 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
4447 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
4448 (HARD_REGNO_CALLER_SAVE_MODE): Define.
4449 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
4450 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
4451 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
4452 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
4453 provide when flag_pic.
4454
4455 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
4456
4457 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
4458 object_allocator change.
4459
4460 2015-09-17 Bin Cheng <bin.cheng@arm.com>
4461
4462 PR tree-optimization/66388
4463 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
4464 (dump_iv): Dump no_overflow information.
4465 (alloc_iv): Initialize new field for struct iv.
4466 (mark_bivs): Count number of no_overflow bivs.
4467 (find_deriving_biv_for_expr, record_biv_for_address_use): New
4468 functions.
4469 (idx_find_step): Call new functions above.
4470 (add_candidate_1, add_candidate): New paramter.
4471 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
4472 (get_computation_aff): Simplify convertion of cand for BIV.
4473 (get_computation_cost_at): Step cand's base if necessary.
4474
4475 2015-09-17 Bin Cheng <bin.cheng@arm.com>
4476
4477 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
4478 parameter.
4479 (tree_simplify_using_condition): Ditto.
4480 (simplify_using_initial_conditions): Ditto.
4481 (loop_exits_before_overflow): Pass new argument to function
4482 simplify_using_initial_conditions. Remove case for type conversions
4483 simplification.
4484 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
4485 parameter.
4486 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
4487 in iv base using loop initial conditions.
4488
4489 2015-09-16 Jeff Law <law@redhat.com>
4490
4491 PR tree-optimization/47679
4492 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
4493 (free_all_edge_infos): Use it.
4494 (allocate_edge_info): Free preexisting edge info data.
4495 (pass_dominator::execute): Set up initial edge info structures.
4496 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
4497 thread_across_edge.
4498 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
4499 If non-null, then push/pop markers appropriately.
4500 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
4501 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
4502 thread-across_edge.
4503
4504 2015-09-16 James Bowman <james.bowman@ftdichip.com>
4505
4506 * config/ft32/ft32.c: Fix the memory address space predicate.
4507
4508 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
4509
4510 PR target/67573
4511 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
4512 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
4513
4514 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
4515
4516 * toplev.h (check_global_declaration): Remove declaration.
4517 * toplev.c (check_global_declaration): Move to ...
4518 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
4519 (analyze_functions): Update call.
4520
4521 2015-09-16 David S. Miller <davem@davemloft.net>
4522
4523 * lra-constraints.c (simplify_operand_subreg): Do not assume that
4524 lowpart of a SUBREG has offset zero.
4525
4526 2015-09-16 Jeff Law <law@redhat.com>
4527
4528 PR tree-optimization/47679
4529 * tree-ssa-dom.c (enum expr_kind): Moved from here to
4530 tree-ssa-scopedtables.h.
4531 (struct hashable_expr, class expr_hash_elt): Likewise.
4532 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
4533 Move associated methods into tree-ssa-scopedtables.c.
4534 (avail_expr_hash, initialize_expr_from_cond): Similarly.
4535 (hashable_expr_equal_p, add_expr_commutative): Likewise.
4536 (add_hashable_expr): Likewise.
4537 (record_cond): Delete element directly.
4538 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
4539 private copy ctor and assignment operator methods.
4540 (expr_elt_hasher): Inline trivial methods.
4541 (initialize_expr_from_cond): Prototype.
4542 * tree-ssa-scopedtables.c: Add necessary includes, functions and
4543 methods that were previously in tree-ssa-dom.c. Improve various
4544 comments.
4545
4546 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
4547
4548 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
4549
4550 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
4551
4552 PR bootstrap/67587
4553 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
4554 fixup_partitions.
4555
4556 2015-09-16 Richard Biener <rguenther@suse.de>
4557
4558 PR middle-end/67253
4559 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
4560 location of possibly shared trees.
4561
4562 2015-09-16 Richard Biener <rguenther@suse.de>
4563
4564 PR middle-end/67271
4565 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
4566
4567 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
4568
4569 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
4570 offset and size computations instead of HOST_WIDE_INT.
4571
4572 2015-09-16 Richard Biener <rguenther@suse.de>
4573
4574 PR middle-end/67442
4575 * fold-const.c (extract_muldiv_1): Properly extend multiplication
4576 result before builting a tree via wide_int_to_tree.
4577
4578 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
4579
4580 * Makefile.in: Add memory-block.cc
4581 (pool_allocator::initialize): Use fixed block size.
4582 (pool_allocator::release): Use memory_block_pool.
4583 (pool_allocator::allocate): Likewise.
4584 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
4585 object pools.
4586 * cfg.c (initialize_original_copy_tables): Likewise.
4587 * cselib.c (elt_list_pool, elt_loc_list_pool,
4588 cselib_val_pool): Likewise.
4589 * df-problems.c (df_chain_alloc): Likewise.
4590 * df-scan.c (df_scan_alloc): Likewise.
4591 * dse.c (cse_store_info_pool, rtx_store_info_pool,
4592 read_info_type_pool, insn_info_type_pool, bb_info_pool,
4593 group_info_pool, deferred_change_pool): Likewise.
4594 * et-forest.c (et_nodes, et_occurrences): Likewise.
4595 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
4596 ipcp_agg_lattice_pool): Likewise.
4597 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
4598 * ipa-profile.c (histogram_pool): Likewise.
4599 * ipa-prop.c (ipa_refdesc_pool): Likewise.
4600 * ira-build.c (live_range_pool, allocno_pool, object_pool,
4601 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
4602 * ira-color.c (update_cost_record_pool): Likewise.
4603 * lra-lives.c (lra_live_range_pool): Likewise.
4604 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
4605 * memory-block.cc: New file.
4606 * memory-block.h: New file.
4607 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
4608 * sched-deps.c (sched_deps_init): Likewise.
4609 * sel-sched-ir.c (sched_lists_pool): Likewise.
4610 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
4611 * tree-sra.c (access_pool): Likewise.
4612 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
4613 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
4614 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
4615 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
4616 * tree-ssa-strlen.c (strinfo_pool): Likewise.
4617 * tree-ssa-structalias.c (variable_info_pool): Likewise.
4618 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
4619 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
4620
4621 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
4622
4623 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
4624 definition.
4625 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
4626 call0 ABI.
4627
4628 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
4629
4630 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
4631 to pass TLS call argument, according to current ABI.
4632 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
4633 callx0 for TLS call, according to current ABI.
4634
4635 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
4636
4637 * tree-eh.c (lower_try_finally_dup_block): Clear location information
4638 on stack restore statements.
4639 (decide_copy_try_finally): Do not consider a stack restore statement as
4640 coming from sources.
4641
4642 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
4643
4644 * config/alpha/alpha.c (alpha_expand_block_clear): Use
4645 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
4646
4647 2015-09-15 Jeff Law <law@redhat.com>
4648
4649 PR tree-optimization/47679
4650 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
4651 methods and private members.
4652 (avail_exprs_stack): Similarly. Change type of global
4653 from a pair of expr_hash_elt_t to the new class.
4654 (expr_elt_hasher::hash): Corresponding changes.
4655 (expr_elt_hasher::equal): Similarly.
4656 (avail_expr_hash): Similarly.
4657 (pass_dominator::execute): Similarly.
4658 (dom_opt_dom_walker::thread_across_edge): Similarly.
4659 (record_cond): Similarly.
4660 (dom_opt_dom_walker::before_dom_children): Similarly.
4661 (dom_opt_dom_walker::after_dom_children): Similarly.
4662 (lookup_avail_expr): Likewise.
4663 (initialize_hash_element): Now a expr_hash_elt constructor.
4664 (initialize_hash_element_from_expr): Similarly.
4665 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
4666 (free_expr_hash_elt): Call dtor for the element.
4667 (remove_local_expressions_from_table): Now the "pop_to_marker"
4668 method in the available_exprs_stack class.
4669 (avail_expr_stack::record_expr): Method factored out.
4670 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
4671 Fix formatting.
4672 (hashable_expr_equal_p): Fix formatting.
4673
4674 2015-09-15 David Malcolm <dmalcolm@redhat.com>
4675
4676 * input.h (location_get_source_line): Drop "expanded_location"
4677 param in favor of a file and line number.
4678 * input.c (location_get_source_line): Likewise.
4679 (dump_location_info): Update for change in signature of
4680 location_get_source_line.
4681 * diagnostic.c (diagnostic_print_caret_line): Likewise.
4682
4683 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
4684
4685 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
4686 Bump to 4KB for SJLJ exceptions.
4687 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
4688 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
4689 * doc/tm.texi: Regenerate.
4690
4691 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4692
4693 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
4694 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
4695 Update prototype.
4696
4697 2015-09-15 Richard Biener <rguenther@suse.de>
4698
4699 PR tree-optimization/67470
4700 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
4701 structure for PHI hoisting by inserting a forwarder block
4702 if appropriate.
4703
4704 2015-09-15 Christian Bruel <christian.bruel@st.com>
4705
4706 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
4707 (arm_option_print): New function.
4708
4709 2015-09-15 Christian Bruel <christian.bruel@st.com>
4710
4711 PR target/52144
4712 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
4713 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
4714 Remove flags parameter.
4715 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
4716 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
4717 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
4718 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
4719 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
4720 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
4721 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
4722 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
4723
4724 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
4725
4726 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
4727
4728 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
4729 AARCH64_VALID_SIMD_DREG_MODE.
4730
4731 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
4732
4733 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
4734 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
4735 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
4736 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
4737 aarch64_ld4_lane<mode>): Combine together, making...
4738 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
4739 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
4740 aarch64_st4_lane<mode>): Combine together, making...
4741 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
4742 * config/aarch64/iterators.md (nregs): Add comment.
4743
4744 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
4745
4746 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
4747 Change operand mode from <V_TWO_ELEM> to BLK.
4748 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
4749 (aarch64_vec_store_lanesoi_lane<mode): Likewise
4750 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
4751 (aarch64_ld2_lane<mode>): Likewise.
4752 (aarch64_st2_lane<VQ:mode>): Likewise.
4753 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
4754
4755 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
4756
4757 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
4758 Change operand mode from <V_FOUR_ELEM> to BLK.
4759 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
4760 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
4761 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
4762 (aarch64_ld4_lane<mode>): Likewise.
4763 (aarch64_st4_lane<mode>): Likewise.
4764 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
4765
4766 2015-09-15 Richard Biener <rguenther@suse.de>
4767
4768 PR middle-end/67563
4769 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
4770 transfer EH info from old to new stmt.
4771 (replace_call_with_value): Likewise.
4772 (replace_call_with_call_and_fold): Likewise.
4773 (gimple_fold_builtin_memory_op): Likewise.
4774 (gimple_fold_builtin_memset): Likewise.
4775 (gimple_fold_builtin_stpcpy): Likewise.
4776 (gimple_fold_call): Likewise.
4777
4778 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
4779
4780 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
4781 comment.
4782 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
4783 (aarch64_simd_intEI_type_node): Likewise.
4784 (aarch64_simd_builtin_std_type): Remove EImode case.
4785 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
4786 * config/aarch64/aarch64-modes.def: Remove EImode.
4787
4788 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
4789
4790 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
4791 Change operand mode from <V_THREE_ELEM> to BLK.
4792 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
4793 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
4794 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
4795 (aarch64_ld3_lane<mode>): Likewise.
4796 (aarch64_st3_lane<mode>): Likewise.
4797 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
4798
4799 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
4800
4801 * config/aarch64/aarch64-simd.md
4802 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
4803 Change all TImode operands to BLKmode.
4804 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
4805 Change all EImode operands to BLKmode.
4806 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
4807 Change all OImode operands to BLKmode.
4808
4809 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
4810 and call set_mem_size.
4811 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
4812
4813 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
4814
4815 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
4816
4817 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
4818 to...
4819 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
4820
4821 (vec_store_lanesci_lane<mode>): Rename to...
4822 (aarch64_vec_store_lanesci_lane<mode>): ...this.
4823
4824 (vec_store_lanesxi_lane<mode>): Rename to...
4825 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
4826
4827 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
4828 aarch64_st4_lane<mode>): Follow renaming.
4829
4830 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4831
4832 * config/s390/s390.c (s390_const_operand_ok): Add missing
4833 brackets.
4834
4835 2015-09-15 Richard Biener <rguenther@suse.de>
4836
4837 PR lto/67568
4838 * lto-streamer.h (lto_location_cache::current_sysp): Properly
4839 initialize.
4840 * lto-streamer-out.c (clear_line_info): Likewise.
4841
4842 2015-09-15 Richard Biener <rguenther@suse.de>
4843
4844 * doc/match-and-simplify.texi: Fix wording.
4845
4846 2015-09-15 Bin Cheng <bin.cheng@arm.com>
4847
4848 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
4849 unnecessary type conversion in op1.
4850
4851 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
4852
4853 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
4854 (dup_block_and_redirect): Delete function.
4855 (can_dup_for_shrink_wrapping): New function.
4856 (fix_fake_fallthrough_edge): New function.
4857 (try_shrink_wrapping): Rewrite function.
4858 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
4859
4860 2015-09-14 Rich Felker <dalias@libc.org>
4861
4862 * configure.ac: Change target pattern for sh TLS support
4863 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
4864 * configure: Regenerate.
4865
4866 2015-09-14 Jeff Law <law@redhat.com>
4867
4868 PR tree-optimization/47679
4869 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
4870 type rather than void *.
4871
4872 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
4873
4874 PR fortran/67460
4875 * diagnostic.c (diagnostic_initialize): Do not set
4876 some_warnings_are_errors.
4877 (diagnostic_finish): Use DK_WERROR count instead.
4878 (diagnostic_report_diagnostic): Do not set
4879 some_warnings_are_errors.
4880 * diagnostic.h (struct diagnostic_context): Remove
4881 some_warnings_are_errors.
4882
4883 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
4884
4885 * config/sparc/predicates.md (const_all_ones_operand): Use
4886 CONSTM1_RTX to simplify definition.
4887
4888 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
4889
4890 PR target/67061
4891 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
4892 Handle call insns.
4893
4894 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
4895
4896 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
4897 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
4898 OPT_fshow_column to handled saved option cases.
4899 (append_compiler_options): Do not skip the above added options.
4900
4901 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4902
4903 PR target/63304
4904 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
4905 nopcrelative_literal_loads.
4906 (aarch64_classify_address): Likewise.
4907 (aarch64_constant_pool_reload_icode): Define.
4908 (aarch64_secondary_reload): Handle secondary reloads for
4909 literal pools.
4910 (aarch64_override_options): Handle nopcrelative_literal_loads.
4911 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
4912 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
4913 Define.
4914 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
4915 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
4916 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
4917 predicate.
4918 * doc/invoke.texi (mpc-relative-literal-loads): Document.
4919
4920 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
4921
4922 PR middle-end/67401
4923 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
4924 sync_compare_and_swap_optab libcall to target_oval.
4925
4926 2015-09-14 Marek Polacek <polacek@redhat.com>
4927
4928 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
4929 value.
4930 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
4931
4932 2015-09-11 Mark Wielaard <mjw@redhat.com>
4933
4934 PR c/28901
4935 * toplev.c (check_global_declaration): Check and use
4936 warn_unused_const_variable.
4937 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
4938 (-Wunused-variable): Remove non-constant. For C implies
4939 -Wunused-const-variable.
4940 (-Wunused-const-variable): New.
4941
4942 2015-09-14 Richard Biener <rguenther@suse.de>
4943
4944 * doc/match-and-simplify.texi: Update for changed syntax
4945 of inner ifs and the new switch expression.
4946
4947 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
4948
4949 * config/i386/haswell.md: New file describing Haswell pipeline.
4950 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
4951 haswell-like processors.
4952 (ix86_reassociation_width): Increase reassociation width for 64-bit
4953 Haswell processor family.
4954 * config/i386/i386.md: Introduce haswell cpu and include new md file.
4955
4956 2015-09-14 Richard Biener <rguenther@suse.de>
4957
4958 * doc/match-and-simplify.texi: Fixup some formatting issues
4959 and document the 's' flag.
4960
4961 2015-09-13 Olivier Hainque <hainque@adacore.com>
4962 Eric Botcazou <ebotcazou@adacore.com>
4963
4964 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
4965 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
4966 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
4967 (TARGET_CPU_gr5): Likewise.
4968 (TARGET_CPU_gr6): Likewise.
4969 (MULTILIB_DEFAULTS): Likewise.
4970 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
4971 for mcpu=gr5 and mcpu=gr6.
4972 (MULTILIB_DIRNAMES): Adjust accordingly.
4973
4974 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4975
4976 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
4977 (mem_ref_p): Likewise.
4978 (outermost_indep_loop): Adjust.
4979 (mem_ref_in_stmt): Likewise.
4980 (determine_max_movement): Likewise.
4981 (mem_ref_alloc): Likewise.
4982 (record_mem_ref_loc): Likewise.
4983 (set_ref_stored_in_loop): Likewise.
4984 (mark_ref_stored): Likewise.
4985 (gather_mem_refs_stmt): Likewise.
4986 (mem_refs_may_alias_p): Likewise.
4987 (for_all_locs_in_loop): Likewise.
4988 (struct rewrite_mem_ref_loc): Likewise.
4989 (rewrite_mem_refs): Likewise.
4990 (struct first_mem_ref_loc_1): Likewise.
4991 (first_mem_ref_loc): Likewise.
4992 (struct sm_set_flag_if_changed): Likewise.
4993 (execute_sm_if_changed_flag_set): Likewise.
4994 (execute_sm): Likewise.
4995 (hoist_memory_references):
4996 (struct ref_always_accessed): Likewise.
4997 (ref_always_accessed_p): Likewise.
4998 (refs_independent_p): Likewise.
4999 (record_dep_loop): Likewise.
5000 (ref_indep_loop_p_1): Likewise.
5001 (ref_indep_loop_p_2): Likewise.
5002 (ref_indep_loop_p): Likewise.
5003 (can_sm_ref_p): Likewise.
5004 (find_refs_for_sm): Likewise.
5005 (tree_ssa_lim_finalize): Likewise.
5006
5007 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5008
5009 * dwarf2out.c (dw_attr_ref): Remove typedef.
5010 (dw_line_info_ref): Likewise.
5011 (pubname_ref): Likewise.
5012 (dw_ranges_ref): Likewise.
5013 (dw_ranges_by_label_ref): Likewise.
5014 (comdat_type_node_ref): Likewise.
5015 (get_AT): Adjust.
5016 (get_AT_low_pc): Likewise.
5017 (get_AT_hi_pc): Likewise.
5018 (get_AT_string): Likewise.
5019 (get_AT_flag): Likewise.
5020 (get_AT_unsigned): Likewise.
5021 (get_AT_ref): Likewise.
5022 (get_AT_file): Likewise.
5023 (remove_AT): Likewise.
5024 (print_die): Likewise.
5025 (check_die): Likewise.
5026 (die_checksum): Likewise.
5027 (attr_checksum_ordered): Likewise.
5028 (struct checksum_attributes): Likewise.
5029 (collect_checksum_attributes): Likewise.
5030 (die_checksum_ordered): Likewise.
5031 (same_die_p): Likewise.
5032 (is_declaration_die): Likewise.
5033 (clone_die): Likewise.
5034 (clone_as_declaration): Likewise.
5035 (copy_declaration_context): Likewise.
5036 (break_out_comdat_types): Likewise.
5037 (copy_decls_walk): Likewise.
5038 (output_location_lists): Likewise.
5039 (external_ref_hasher::hash): Likewise.
5040 (optimize_external_refs_1): Likewise.
5041 (build_abbrev_table): Likewise.
5042 (size_of_die): Likewise.
5043 (unmark_all_dies): Likewise.
5044 (size_of_pubnames): Likewise.
5045 (output_die_abbrevs): Likewise.
5046 (output_die): Likewise.
5047 (output_pubnames): Likewise.
5048 (add_ranges_num): Likewise.
5049 (add_ranges_by_labels): Likewise.
5050 (add_high_low_attributes): Likewise.
5051 (gen_producer_string): Likewise.
5052 (dwarf2out_set_name): Likewise.
5053 (new_line_info_table): Likewise.
5054 (prune_unused_types_walk_attribs): Likewise.
5055 (prune_unused_types_update_strings): Likewise.
5056 (prune_unused_types): Likewise.
5057 (resolve_addr): Likewise.
5058 (optimize_location_lists_1): Likewise.
5059 (index_location_lists): Likewise.
5060 (dwarf2out_finish): Likewise.
5061
5062 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5063
5064 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
5065
5066 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5067
5068 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
5069 (dump_asserts_for): Adjust.
5070 (register_new_assert_for): Likewise.
5071 (process_assert_insertions): Likewise.
5072 (insert_range_assertions): Likewise.
5073
5074 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5075
5076 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
5077 and remove typedef.
5078 (new_temp_expr_table): Adjust.
5079 (free_temp_expr_table): Likewise.
5080 (version_to_be_replaced_p): Likewise.
5081 (make_dependent_on_partition): Likewise.
5082 (add_to_partition_kill_list): Likewise.
5083 (remove_from_partition_kill_list): Likewise.
5084 (add_dependence): Likewise.
5085 (finished_with_expr): Likewise.
5086 (process_replaceable): Likewise.
5087 (kill_expr): Likewise.
5088 (kill_virtual_exprs): Likewise.
5089 (mark_replaceable): Likewise.
5090 (find_replaceable_in_bb): Likewise.
5091 (find_replaceable_exprs): Likewise.
5092 (debug_ter): Likewise.
5093
5094 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5095
5096 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
5097 (struct btr_user): Rename from btr_user_s.
5098 (struct btr_def): Rename from btr_def_s.
5099 (find_btr_def_group): Adjust.
5100 (add_btr_def): Likewise.
5101 (new_btr_user): Likewise.
5102 (note_other_use_this_block): Likewise.
5103 (compute_defs_uses_and_gen): Likewise.
5104 (link_btr_uses): Likewise.
5105 (build_btr_def_use_webs): Likewise.
5106 (block_at_edge_of_live_range_p): Likewise.
5107 (btr_def_live_range): Likewise.
5108 (combine_btr_defs): Likewise.
5109 (move_btr_def): Likewise.
5110 (migrate_btr_def): Likewise.
5111 (migrate_btr_defs): Likewise.
5112
5113 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5114
5115 * var-tracking.c (shared_hash_def): Rename to shared_hash.
5116 (shared_hash): Remove typedef.
5117 (struct dataflow_set): Adjust.
5118 (shared_hash_unshare): Likewise.
5119 (dataflow_set_merge): Likewise.
5120 (vt_initialize): Likewise.
5121 (vt_finalize): Likewise.
5122
5123 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5124
5125 * var-tracking.c (struct location_chain): Rename from
5126 location_chain_def.
5127 (struct variable_part): Adjust.
5128 (variable_htab_free): Likewise.
5129 (unshare_variable): Likewise.
5130 (get_init_value): Likewise.
5131 (get_addr_from_local_cache): Likewise.
5132 (drop_overlapping_mem_locs): Likewise.
5133 (val_reset): Likewise.
5134 (struct variable_union_info): Likewise.
5135 (variable_union): Likewise.
5136 (find_loc_in_1pdv): Likewise.
5137 (insert_into_intersection): Likewise.
5138 (intersect_loc_chains): Likewise.
5139 (canonicalize_loc_order_check): Likewise.
5140 (canonicalize_values_mark): Likewise.
5141 (canonicalize_values_star): Likewise.
5142 (canonicalize_vars_star): Likewise.
5143 (variable_merge_over_cur): Likewise.
5144 (remove_duplicate_values): Likewise.
5145 (variable_post_merge_new_vals): Likewise.
5146 (variable_post_merge_perm_vals): Likewise.
5147 (find_mem_expr_in_1pdv): Likewise.
5148 (dataflow_set_preserve_mem_locs): Likewise.
5149 (dataflow_set_remove_mem_locs): Likewise.
5150 (variable_part_different_p): Likewise.
5151 (onepart_variable_different_p): Likewise.
5152 (find_src_set_src): Likewise.
5153 (dump_var): Likewise.
5154 (set_slot_part): Likewise.
5155 (clobber_slot_part): Likewise.
5156 (delete_slot_part): Likewise.
5157 (vt_expand_var_loc_chain): Likewise.
5158 (emit_note_insn_var_location): Likewise.
5159 (vt_finalize): Likewise.
5160
5161 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5162
5163 * dse.c (store_info_t): Remove typedef.
5164 (group_info_t): Likewise.
5165 (const_group_info_t): Likewise.
5166 (deferred_change_t): Likewise.
5167 (get_group_info): Adjust.
5168 (free_store_info): Likewise.
5169 (canon_address): Likewise.
5170 (clear_rhs_from_active_local_stores): Likewise.
5171 (record_store): Likewise.
5172 (replace_read): Likewise.
5173 (check_mem_read_rtx): Likewise.
5174 (scan_insn): Likewise.
5175 (remove_useless_values): Likewise.
5176 (dse_step1): Likewise.
5177 (dse_step2_init): Likewise.
5178 (dse_step2_nospill): Likewise.
5179 (scan_stores_nospill): Likewise.
5180 (scan_reads_nospill): Likewise.
5181 (dse_step3_exit_block_scan): Likewise.
5182 (dse_step3): Likewise.
5183 (dse_step5_nospill): Likewise.
5184 (dse_step6): Likewise.
5185
5186 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5187
5188 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
5189 (alias_set_entry): Remove typedef.
5190 (alias_set_subset_of): Adjust.
5191 (alias_sets_conflict_p): Likewise.
5192 (init_alias_set_entry): Likewise.
5193 (get_alias_set): Likewise.
5194 (new_alias_set): Likewise.
5195 (record_alias_subset): Likewise.
5196
5197 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
5198
5199 * doc/install.texi (Downloading the source): Mark up
5200 contrib/download_prerequisites properly and drop leading "./".
5201
5202 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5203
5204 * config/arc/arc.h: Remove define of STRUCT_VALUE.
5205 * config/lm32/lm32.h: Likewise.
5206 * config/mep/mep.h: Likewise.
5207 * config/visium/visium.h: Likewise.
5208 * system.h: Poison STRUCT_VALUE macro.
5209
5210 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
5211
5212 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
5213 CONSTANT_P operands.
5214
5215 2015-09-11 David S. Miller <davem@davemloft.net>
5216
5217 * config/sparc/constraints.md: Make "U" constraint a real register
5218 constraint.
5219 * config/sparc/sparc.c (TARGET_LRA_P): Define.
5220 (D_MODES, DF_MODES): Add missing cast.
5221 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
5222 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
5223 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
5224 cost to 8.
5225 * config/sparc/sparc.h (PROMOTE_MODE): Define.
5226 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
5227 provide these insn when flag_pic.
5228
5229 2015-09-11 Jeff Law <law@redhat.com>
5230
5231 PR tree-optimization/47679
5232 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
5233 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
5234 member with m_. Update inline member functions as necessary. Add
5235 toplevel comment.
5236 * tree-ssa-scopedtables.c: Update const_and_copies's member
5237 functions to use m_ prefix to access the stack.
5238
5239 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
5240
5241 * graphite-optimize-isl.c (disable_tiling): Remove.
5242 (get_schedule_for_band): Do not use disable_tiling.
5243 (get_prevector_map): Delete function.
5244 (enable_polly_vector): Remove.
5245 (get_schedule_for_band_list): Remove dead code.
5246
5247 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
5248
5249 * graphite-optimize-isl.c (get_tile_map): Refactor.
5250 (get_schedule_for_band): Same.
5251 (getScheduleForBand): Same.
5252 (get_prevector_map): Same.
5253 (get_schedule_for_band_list): Same.
5254 (get_schedule_map): Same.
5255 (get_single_map): Same.
5256 (apply_schedule_map_to_scop): Same.
5257 (optimize_isl): Same.
5258
5259 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5260
5261 PR target/63304
5262 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
5263 (movtf): Delete.
5264 * config/aarch64/iterators.md (GPF_TF_F16): New.
5265 (GPF_F16): Delete.
5266
5267 2015-09-10 Nathan Sidwell <nathan@acm.org>
5268
5269 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
5270 (nvptx_reorg): Adjust comments.
5271
5272 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
5273
5274 PR bootstrap/67363
5275 * configure.ac: Check if setenv and unsetenv are declared.
5276 * configure: Rebuild.
5277 * config.in: Rebuild.
5278 * system.h: Declare setenv and unsetenv if not declared.
5279
5280 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5281
5282 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
5283 commentary to simplify permute mask adjustment equation.
5284 (special_handling_values): Add SH_VPERM.
5285 (const_load_sequence_p): New function.
5286 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
5287 the mask loaded from the constant pool.
5288 (adjust_vperm): New function.
5289 (handle_special_swappables): Call adjust_vperm.
5290 (dump_swap_insn_table): Handle SH_VPERM.
5291
5292 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
5293
5294 * shrink-wrap.c (requires_stack_frame_p): Remove static.
5295 * shrink-wrap.h (requires_stack_frame_p): Put back.
5296
5297 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
5298
5299 * reload1.c (elimination_costs_in_insn): Locally turn
5300 -Wmaybe-uninitialized into a warning.
5301
5302 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
5303
5304 * shrink-wrap.c (requires_stack_frame_p): Make static.
5305 (prepare_shrink_wrap): Likewise.
5306 (dup_block_and_redirect): Likewise.
5307 * shrink-wrap.h: Remove declarations of those functions.
5308
5309 2015-09-10 Mark Wielaard <mjw@redhat.com>
5310
5311 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
5312
5313 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
5314
5315 PR target/67506
5316 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
5317 missing simplify_gen_subreg.
5318
5319 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5320
5321 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
5322 the vector element is bigger than 64 bit.
5323
5324 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5325
5326 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
5327 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
5328
5329 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5330
5331 * config/s390/s390.c: Add V1TImode to constant pool modes.
5332
5333 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5334
5335 PR target/67439
5336 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
5337 predicate. Set predicable_short_it attr to "no".
5338
5339 2015-09-10 Jiong Wang <jiong.wang@arm.com>
5340
5341 PR rtl-optimization/67421
5342 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
5343 left wide shift tranformation.
5344
5345 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
5346
5347 * common/config/arc/arc-common.c: Remove references to A5.
5348 * config/arc/arc-opts.h: Likewise.
5349 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
5350 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
5351 * config/arc/t-arc-newlib: Likewise.
5352
5353 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
5354
5355 * config/arc/arc.md (length): Fix attribute length for conditional
5356 executed instructions with long immediate.
5357
5358 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5359
5360 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
5361 type for second alternative.
5362
5363 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
5364
5365 * doc/invoke.texi (Downloading GCC): Mention
5366 contrib/download_prerequisites script.
5367
5368 2015-09-10 Jakub Jelinek <jakub@redhat.com>
5369
5370 PR c++/67523
5371 * gimplify.c (gimplify_omp_for): If inner stmt is not found
5372 for combined loop, assert seen_error () and return GS_ERROR.
5373
5374 PR middle-end/67521
5375 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
5376 if decl is already in outer->variables.
5377
5378 PR middle-end/67517
5379 * gimplify.c (gimplify_scan_omp_clauses): Instead of
5380 asserting that decl is not specified in octx->variables,
5381 break out of the loop if it is.
5382
5383 PR c++/67514
5384 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
5385 iterator is not explicitly determined, but is defined inside
5386 of the combined workshare region, handle it like if it has
5387 DECL_EXPR in OMP_FOR_PRE_BODY.
5388
5389 2015-09-09 Nathan Sidwell <nathan@acm.org>
5390
5391 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
5392 (*cmp<mode>): Add assembler spacing.
5393 (setcc_int<mode>, set_cc_float<mode>): Likewise.
5394 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
5395 level.
5396 (write_func_decl_from_insn): Refactor argument loops & comma emission.
5397 (nvptx_expand_call): Likewise.
5398 (nvptx_output_call_insn): Likewise.
5399 (nvptx_reorg_subreg): Add spacing.
5400
5401 2015-09-09 Marek Polacek <polacek@redhat.com>
5402
5403 PR middle-end/67512
5404 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
5405 for comparisons.
5406
5407 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
5408
5409 PR c++/53184
5410 * doc/invoke.texi ([Wsubobject-linkage]): Document.
5411
5412 2015-09-09 Tom de Vries <tom@codesourcery.com>
5413
5414 * params-list.h: Add missing copyright notice.
5415
5416 2015-09-09 Nathan Sidwell <nathan@acm.org>
5417
5418 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
5419 sel_truesi, not andsi.
5420
5421 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5422
5423 * config/arm/arm.md (*subsi3_compare0): Rename to...
5424 (subsi3_compare0): ... This.
5425 (modsi3): New define_expand.
5426 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
5427 when operand is power of 2.
5428
5429 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5430
5431 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
5432 (*neg<mode>2_compare0): Rename to...
5433 (neg<mode>2_compare0): ... This.
5434 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
5435 Move check for speed inside the if-then-elses. Reflect
5436 CSNEG sequence in MOD by power of 2 case.
5437
5438 2015-09-09 Alan Modra <amodra@gmail.com>
5439
5440 PR target/67378
5441 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
5442 reload replacement for PRE_MODIFY address reg.
5443
5444 2015-09-09 Sebastian Pop <s.pop@samsung.com>
5445
5446 PR tree-optimization/53852
5447 * config.in: Regenerate.
5448 * configure: Regenerate.
5449 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
5450 * graphite-optimize-isl.c (optimize_isl): Stop computation when
5451 PARAM_MAX_ISL_OPERATIONS is reached.
5452 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
5453 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
5454 result equal to isl_stat_ok as the status now can be isl_error_quota.
5455 (subtract_commutative_associative_deps): Same.
5456 (compute_deps): Same.
5457
5458 2015-09-08 Aditya Kumar <hiraditya@msn.com>
5459 Sebastian Pop <s.pop@samsung.com>
5460
5461 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
5462 Return the parameter if it was saved in corresponding
5463 parameter_rename_map of the region.
5464 (copy_def): Copy def from sese region to the newly created region.
5465 (copy_internal_parameters): Copy all the internal parameters defined
5466 within a region to the newly created region.
5467 (graphite_regenerate_ast_isl): Copy parameters to the new region before
5468 translating isl to gimple.
5469 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
5470 the loop-nest does not have any data-references.
5471 (build_graphite_scops): Create a scop only when there is at least one
5472 loop inside it.
5473 (contains_only_close_phi_nodes): Deleted.
5474 (print_graphite_scop_statistics): Deleted
5475 (print_graphite_statistics): Deleted
5476 (limit_scops): Deleted.
5477 (build_scops): Removed call to limit_scops.
5478 * sese.c (new_sese): Construct.
5479 (free_sese): Destruct.
5480 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
5481 added.
5482 (set_rename): Pass sese region so that parameters inside the region can
5483 be added to its parameter_rename_map.
5484 (rename_uses): Pass sese region.
5485 (graphite_copy_stmts_from_block): Do not copy parameters that have been
5486 generated in the header of the scop. For each SSA_NAME in the
5487 parameter_rename_map rename its usage.
5488 (invariant_in_sese_p_rec): Return false if tree t is defined outside
5489 sese region.
5490 (scalar_evolution_in_region): If the tree t is invariant just return t.
5491 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
5492 struct sese to keep track of all the parameters which need renaming.
5493 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
5494 any data-refs.
5495 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
5496
5497 2015-09-08 Tom de Vries <tom@codesourcery.com>
5498
5499 * Makefile.in (generated_files): Add params.list.
5500 (params.list, s-params.list): Add rule.
5501 * params.h (enum compiler_param): Include params-list.h. Move define
5502 DEFPARAM, include params.def and undef DEFPARAM ...
5503 * params-list.h: ... here. New file.
5504
5505 2015-09-08 David Malcolm <dmalcolm@redhat.com>
5506
5507 * pretty-print.h (printer_fn): Fix typo in comment.
5508
5509 2015-09-07 Jeff Law <law@redhat.com>
5510
5511 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
5512
5513 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5514
5515 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
5516 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
5517 (arm_neon_fp16_hw): New.
5518
5519 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5520
5521 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
5522 UNITS_PER_WORD >= 4.
5523
5524 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5525
5526 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
5527 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
5528 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
5529 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
5530 (aarch64_float_extend_lo_v2df): Rename to...
5531 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
5532
5533 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
5534 (float_extend_lo): Add v4sf.
5535
5536 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
5537 * config/aarch64/iterators.md (VQ_HSF): New iterator.
5538 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
5539 (Vwide): New mode_attr.
5540
5541 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5542
5543 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
5544 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
5545 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
5546 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
5547 V4HF and V8HF variants to iterator.
5548
5549 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
5550
5551 * config/aarch64/iterators.md (VDQF_F16): New.
5552 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
5553
5554 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5555
5556 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
5557 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
5558 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
5559 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
5560 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
5561 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
5562 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
5563 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
5564 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
5565 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
5566 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
5567 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
5568 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
5569 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
5570 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
5571 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
5572 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
5573 vld1q_dup_f16): New.
5574
5575 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5576
5577 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
5578 Reparameterize to...
5579 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
5580 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
5581 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
5582
5583 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
5584 v8hf variant.
5585 (float_truncate_lo_): Use BUILTIN_VDF iterator.
5586
5587 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
5588
5589 * config/aarch64/iterators.md (VDF, Vdtype): New.
5590 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
5591
5592 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5593
5594 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
5595 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
5596 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
5597 Add __builtin_aarch64_simd_hf.
5598 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
5599 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
5600 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
5601 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
5602 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
5603 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
5604 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
5605 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
5606 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
5607
5608 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
5609 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
5610 (VDC, Vdbl): Add V4HF.
5611
5612 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5613
5614 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
5615 V4HFmode and V8HFmode.
5616 (aarch64_split_simd_move): Add case for V8HFmode.
5617 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
5618 (aarch64_simd_builtin_std_type): Handle HFmode.
5619 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
5620
5621 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
5622 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
5623 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
5624
5625 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
5626 Float16x8_t.
5627
5628 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
5629 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
5630 New typedefs.
5631 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
5632 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
5633 vst1q_lane_f16): New.
5634 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
5635 (VALLDI_F16, VALL_F16): New.
5636 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
5637 Add cases for V4HF and V8HF.
5638 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
5639
5640 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5641
5642 * config/arm/arm-builtins.c (VAR11, VAR12): New.
5643 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
5644 vld4_dup): Add v4hf variant.
5645 (vget_high, vget_low): Add v8hf variant.
5646 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
5647 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
5648 v4hf and v8hf variants.
5649
5650 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
5651 (VDX): Add V4HF.
5652 (V_DOUBLE): Add case for V4HF.
5653 (VQX): Add V8HF.
5654 (V_HALF): Add case for V8HF.
5655 (VDQX): Add V4HF, V8HF.
5656 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
5657 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
5658
5659 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
5660 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
5661 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
5662 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
5663 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
5664 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
5665 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
5666 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
5667 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
5668
5669 (neon_vcreate, neon_vreinterpretv8qi<mode>,
5670 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
5671 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
5672 Change VDX to VD_RE.
5673
5674 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
5675 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
5676 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
5677
5678 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
5679 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
5680 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
5681 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
5682 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
5683 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
5684 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
5685 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
5686 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
5687
5688 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5689
5690 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
5691 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
5692 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
5693 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
5694 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
5695 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
5696 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
5697 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
5698 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
5699 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
5700 New.
5701
5702 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5703
5704 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
5705
5706 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
5707
5708 * config/arm/arm-builtins.c (v8hf_UP): New.
5709 (arm_init_simd_builtin_types): Initialise Float16x8_t.
5710
5711 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
5712
5713 * config/arm/arm_neon.h (float16x8_t): New typedef.
5714
5715 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5716
5717 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
5718 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
5719 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
5720 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
5721 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
5722 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
5723 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
5724 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
5725 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
5726 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
5727
5728 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
5729
5730 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
5731 non-alphanumeric characters in the symbol name.
5732
5733 2015-09-07 Marek Polacek <polacek@redhat.com>
5734
5735 PR inline-asm/67448
5736 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
5737 a memory input.
5738
5739 2015-09-07 Marek Polacek <polacek@redhat.com>
5740
5741 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
5742
5743 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
5744
5745 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
5746 not warn.
5747
5748 2015-09-04 Jakub Jelinek <jakub@redhat.com>
5749
5750 PR middle-end/67452
5751 * tree-ssa-live.c: Include cfgloop.h.
5752 (remove_unused_locals): Clear loop->simduid if simduid is about
5753 to be removed from cfun->local_decls.
5754
5755 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5756
5757 PR target/65210
5758 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
5759 attribute as well.
5760
5761 2015-09-04 Tom de Vries <tom@codesourcery.com>
5762
5763 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
5764
5765 2015-09-04 Jeff Law <law@redhat.com>
5766
5767 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
5768 unnecessary constructor. It's now trivial and implemented inside...
5769 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
5770 constructor. Add comments to various methods. Remove unused
5771 private fields.
5772 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
5773 * tree-vrp.c (identify_jump_threads): Likewise.
5774 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
5775 indentation issues.
5776 (thread_across_edge): Similarly.
5777 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
5778 arguments in constructor call.
5779
5780 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
5781
5782 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
5783 temp path contains a '-'.
5784
5785 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
5786 Petr Murzin <petr.murzin@intel.com>
5787 Kirill Yukhin <kirill.yukhin@intel.com>
5788
5789 * config/i386/i386-builtin-types.def
5790 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
5791 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
5792 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
5793 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
5794 * config/i386/i386.c
5795 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
5796 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
5797 IX86_BUILTIN_SCATTERALTDIV16SI.
5798 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
5799 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
5800 __builtin_ia32_scatteraltdiv8si.
5801 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
5802 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
5803 IX86_BUILTIN_SCATTERALTDIV16SI.
5804 (ix86_vectorize_builtin_scatter): New.
5805 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
5806 ix86_vectorize_builtin_scatter.
5807
5808 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
5809 Petr Murzin <petr.murzin@intel.com>
5810 Kirill Yukhin <kirill.yukhin@intel.com>
5811
5812 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
5813 * doc/tm.texi: Regenerate.
5814 * target.def: Add scatter builtin.
5815 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
5816 for loads/stores in case of gather/scatter accordingly.
5817 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
5818 STMT_VINFO_GATHER_P(S).
5819 (vect_check_gather): Rename to ...
5820 (vect_check_gather_scatter): this.
5821 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
5822 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
5823 (vect_check_gather_scatter): Use it instead of vect_check_gather.
5824 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
5825 variable and new checkings for it accordingly.
5826 * tree-vect-stmts.c
5827 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
5828 STMT_VINFO_GATHER_P(S).
5829 (vect_check_gather_scatter): Use it instead of vect_check_gather.
5830 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
5831
5832 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
5833
5834 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
5835 define_insn.
5836 (mulv16qi3): New define_expand.
5837
5838 2015-09-03 Martin Sebor <msebor@redhat.com>
5839
5840 PR c/66516
5841 * doc/extend.texi (Other Builtins): Document when the address
5842 of a built-in function can be taken.
5843
5844 2015-09-03 Richard Biener <rguenther@suse.de>
5845
5846 * dwarf2out.c (flush_limbo_die_list): Split out from ...
5847 (dwarf2out_early_finish): ... here.
5848 (dwarf2out_finish): Do not call dwarf2out_early_finish but
5849 flush_limbo_die_list. Assert we have no deferred asm names.
5850
5851 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5852
5853 * optabs.c (expand_binop): Don't create a broadcast vector with a
5854 source element wider than the inner mode.
5855
5856 2015-09-03 Richard Biener <rguenther@suse.de>
5857
5858 * varasm.c (output_constant): Use fold_convert instead of
5859 wide_int_to_tree.
5860
5861 2015-09-03 Tom de Vries <tom@codesourcery.com>
5862
5863 PR tree-optimization/65637
5864 * omp-low.c (expand_omp_for_static_chunk): Handle case that
5865 fin_bb has 2 predecessors.
5866
5867 2015-09-03 Tom de Vries <tom@codesourcery.com>
5868
5869 PR tree-optimization/65637
5870 * omp-low.c (find_phi_with_arg_on_edge): New function.
5871 (expand_omp_for_static_chunk): Fix inner loop phi.
5872
5873 2015-09-03 Tom de Vries <tom@codesourcery.com>
5874
5875 PR tree-optimization/65637
5876 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
5877 that head is NULL.
5878
5879 2015-09-03 Tom de Vries <tom@codesourcery.com>
5880
5881 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
5882
5883 2015-09-03 Tom de Vries <tom@codesourcery.com>
5884
5885 * doc/invoke.texi (parloops-chunk-size): Add item.
5886 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
5887 * tree-parloops.c: Include params.h.
5888 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
5889 param parloops-chunk-size is used.
5890
5891 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5892
5893 PR middle-end/67351
5894 * fold-const.c (fold_binary_loc) : Move
5895 Transform (x >> c) << c into x & (-1<<c) or
5896 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
5897 types using simplify and match.
5898 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
5899 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
5900
5901 2015-09-03 Richard Biener <rguenther@suse.de>
5902
5903 PR ipa/66705
5904 * tree-ssa-structalias.c (ctor_for_analysis): New function.
5905 (create_variable_info_for_1): Use ctor_for_analysis instead
5906 of get_constructor.
5907 (create_variable_info_for): Likewise.
5908
5909 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
5910
5911 PR ipa/67280
5912 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
5913 in new callgraph edge.
5914
5915 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
5916
5917 PR target/59810
5918 PR target/63652
5919 PR target/63653
5920 * config/aarch64/aarch64-simd.md
5921 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
5922 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
5923 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
5924 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
5925
5926 2015-09-02 Alan Modra <amodra@gmail.com>
5927
5928 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
5929 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
5930 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
5931
5932 2015-09-02 Alan Modra <amodra@gmail.com>
5933
5934 PR target/67417
5935 * config/rs6000/predicates.md (current_file_function_operand): Don't
5936 return true for weak symbols.
5937 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
5938
5939 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
5940 Andrew Bennett <andrew.bennett@imgtec.com>
5941
5942 * config/mips/mips-opts.h (mips_cb_setting): New enum.
5943 * config/mips/mips-protos.h: Add definitions for
5944 mips_output_jump and mips_output_equal_conditional_branch
5945 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
5946 JIC instruction.
5947 (mips_emit_compare): Add support for the MIPS R6 conditional
5948 compact branches.
5949 (mips_process_sync_loop): Likewise.
5950 (mips_output_order_conditional_branch): Likewise.
5951 (mips16_build_call_stub): Change MIPS_CALL to
5952 mips_output_jump.
5953 (mips_print_operand_punctuation): Update 's' case to only
5954 apply to micromips r2.
5955 (mips_adjust_insn_length): Add support for forbidden slot
5956 hazards.
5957 (mips_avoid_hazard): Likewise.
5958 (mips_reorg_process_insns): Likewise.
5959 (mips_output_jump): New function.
5960 (mips_output_equal_conditional_branch): Likewise.
5961 (mips_output_conditional_branch): Use jrc/bc if compact
5962 branch support is enabled. Ensure the forbidden slots
5963 between the two branch instructions is filled with a nop.
5964 (mips_option_override): Add support to process the compact
5965 branch option and set the correct defaults. Prevent
5966 non-explict relocs being using for MIPS R6.
5967 (mips_trampoline_init): Add compact branch support.
5968 (mips_mult_zero_zero_cost): Allow zero initialisation of
5969 accumulators with TARGET_DSP.
5970 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
5971 (TARGET_CB_MAYBE): New define.
5972 (TARGET_CB_ALWAYS): New define.
5973 (ISA_HAS_DELAY_SLOTS): New define.
5974 (ISA_HAS_COMPACT_BRANCHES): New define.
5975 (ISA_HAS_JRC): New define.
5976 (MIPS_BRANCH_C): New define.
5977 (MIPS_CALL): Removed.
5978 (MICROMIPS_J): Removed.
5979 * config/mips/mips.md (compact_form): New attr.
5980 (hazard): Add support for forbidden slots.
5981 (define_delay): Add support for compact branches.
5982 (*branch_order<mode>): Likewise.
5983 (*branch_order<mode>_inverted): Likewise.
5984 (*branch_equality<mode>): Likewise.
5985 (*branch_equality<mode>_inverted): Likewise.
5986 (*jump_absolute): Likewise.
5987 (*jump_pic): Likewise.
5988 (indirect_jump): Use mips_output_jump to produce assembly output.
5989 (tablejump_<mode>"): Likewise.
5990 (*<optab>"): Likewise.
5991 (<optab>_internal): Likewise.
5992 (sibcall_internal): Likewise.
5993 (sibcall_value_internal): Likewise.
5994 (sibcall_value_multiple_internal): Likewise.
5995 (call_internal): Likewise.
5996 (call_split): Likewise.
5997 (call_internal_direct): Likewise.
5998 (call_direct_split): Likewise.
5999 (call_value_internal): Likewise.
6000 (call_value_split): Likewise.
6001 (call_value_internal_direct): Likewise.
6002 (call_value_direct_split): Likewise.
6003 (call_value_multiple_internal): Likewise.
6004 (call_value_multiple_split): Likewise.
6005 (mips_get_fcsr_mips16_<mode>): Likewise.
6006 (mips_set_fcsr_mips16_<mode>): Likewise.
6007 (tls_get_tp_mips16_<mode>): Likewise.
6008 * config/mips/mips.opt: Add -mcompact-branches option.
6009 * config/mips/predicates.md (order_operator): Ensure the
6010 conditional compact branches are only used if the ISA them.
6011 * doc/invoke.texi: Document -mcompact-branches option.
6012
6013 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
6014
6015 PR target/61578
6016 * lra-lives.c (process_bb_lives): Process move pseudos with the
6017 same value for copies and preferences
6018 * lra-constraints.c (match_reload): Create match reload pseudo
6019 with the same value from single dying input pseudo.
6020
6021 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
6022
6023 PR target/67405
6024 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
6025
6026 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
6027
6028 * trans-mem.c: Add contributed-by.
6029 * trans-mem.h: Same.
6030
6031 2015-09-01 Richard Biener <rguenther@suse.de>
6032
6033 * expr.c (expand_expr_real_1): For expanding TERed defs
6034 set the current location to that of the def if not UNKNOWN.
6035
6036 2015-09-01 David Sherwood <david.sherwood@arm.com>
6037
6038 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
6039
6040 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6041
6042 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
6043 then_cost, else_cost fields. Change branch_cost field to unsigned int.
6044 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
6045 Include rtl-iter.h.
6046 (noce_simple_bbs): New function.
6047 (noce_try_move): Bail if basic blocks are not simple.
6048 (noce_try_store_flag): Likewise.
6049 (noce_try_store_flag_constants): Likewise.
6050 (noce_try_addcc): Likewise.
6051 (noce_try_store_flag_mask): Likewise.
6052 (noce_try_cmove): Likewise.
6053 (noce_try_minmax): Likewise.
6054 (noce_try_abs): Likewise.
6055 (noce_try_sign_mask): Likewise.
6056 (noce_try_bitop): Likewise.
6057 (bbs_ok_for_cmove_arith): New function.
6058 (noce_emit_all_but_last): Likewise.
6059 (noce_emit_insn): Likewise.
6060 (noce_emit_bb): Likewise.
6061 (noce_try_cmove_arith): Handle non-simple basic blocks.
6062 (insn_valid_noce_process_p): New function.
6063 (contains_mem_rtx_p): Likewise.
6064 (bb_valid_for_noce_process_p): Likewise.
6065 (noce_process_if_block): Allow non-simple basic blocks
6066 where appropriate.
6067
6068 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
6069
6070 * tree-ssa-dom.c (record_equivalences_from_phis,
6071 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
6072 (lookup_avail_expr): Likewise, and remove comment and unused temp.
6073
6074 2015-09-01 Nick Clifton <nickc@redhat.com>
6075
6076 * config/msp430/msp430.opt (mcpu): Fix typo.
6077
6078 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6079
6080 * config/aarch64/aarch64.c (aarch64_set_current_function):
6081 Re-layout any vector parameters have non-simd layout.
6082 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
6083 Delete.
6084 (aarch64_simd_expand_args): Delete call to the above.
6085
6086 2015-08-31 Mike Frysinger <vapier@gentoo.org>
6087
6088 * doc/invoke.texi (asan-stack): Add space before option.
6089
6090 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
6091
6092 * tree.h (zerop): New function.
6093 * tree.c (zerop): Likewise.
6094 (element_precision): Handle expressions.
6095 * match.pd (define_predicates): Add zerop.
6096 (x <= +Inf): Fix comment.
6097 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
6098 * fold-const.c (fold_binary_loc): ... here. Remove.
6099
6100 2015-08-31 Richard Biener <rguenther@suse.de>
6101
6102 PR middle-end/67381
6103 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
6104
6105 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
6106
6107 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
6108 (CEXPI): New operator list.
6109 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
6110 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
6111 Converted from ...
6112 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
6113
6114 2015-08-31 Tom de Vries <tom@codesourcery.com>
6115
6116 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
6117 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
6118 parameter.
6119 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
6120 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
6121 (rewrite_into_loop_closed_ssa): ... here.
6122 (replace_uses_in_dominated_bbs): Remove function.
6123 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
6124 rewrite_into_loop_closed_ssa_1.
6125
6126 2015-08-31 Michael Matz <matz@suse.de>
6127
6128 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
6129 enter entry and exit blocks for reverse post order.
6130
6131 2015-08-31 Richard Biener <rguenther@suse.de>
6132
6133 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
6134 (lto_location_cache::current_sysp): Likewise.
6135 (output_block::current_sysp): Likewise.
6136 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
6137 (lto_location_cache::apply_location_cache): Properly record
6138 system header locations.
6139 (lto_location_cache::input_location): Input whether a file
6140 is a system header.
6141 * lto-streamer-out.c (lto_output_location): Stream whether a file
6142 is a system header.
6143
6144 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6145
6146 PR bootstrap/67363
6147 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
6148
6149 2015-08-31 Tom de Vries <tom@codesourcery.com>
6150
6151 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
6152 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
6153 Improve function header comments.
6154
6155 2015-08-30 Michael Collison <michael.collison@linaro.org>
6156
6157 PR other/67320
6158 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
6159 standard names
6160
6161 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6162
6163 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
6164 special_handling bitfield.
6165 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
6166 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
6167 that represents a general xxpermdi.
6168 (insn_is_swappable_p): Add handling for vec_concat of two
6169 doublewords, which maps to a specific xxpermdi.
6170 (adjust_xxpermdi): New function.
6171 (adjust_concat): Likewise.
6172 (handle_special_swappables): Call adjust_xxpermdi and
6173 adjust_concat.
6174 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
6175
6176 2015-08-30 Rich Felker <dalias@libc.org>
6177
6178 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
6179 case instead of sh[123456ble]-*-*.
6180
6181 2015-08-29 Anatoly Sokolov <aesok@post.ru>
6182
6183 * ira.c (print_unform_and_important_classes,
6184 print_translated_classes): Remove reg_class_names static array.
6185 (print_unform_and_important_classes): Rename to ...
6186 (print_uniform_and_important_classes): ... this.
6187 (ira_debug_allocno_classes): Update accordingly.
6188
6189 2015-08-29 Tom de Vries <tom@codesourcery.com>
6190
6191 PR tree-optimization/46193
6192 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
6193 clause.
6194
6195 2015-08-28 Jeff Law <law@redhat.com>
6196
6197 PR lto/66752
6198 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
6199 unable to find X NE 0 in the tables, return X as the simplified
6200 condition.
6201 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
6202 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
6203 to VISISTED_BBS.
6204 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
6205 after removing the control flow statement and unnecessary edges.
6206
6207 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
6208
6209 Revert:
6210 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
6211
6212 PR tree-optimization/67283
6213 * tree-sra.c (type_consists_of_records_p): Rename to...
6214 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
6215
6216 (completely_scalarize_record): Rename to...
6217 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
6218 code to:
6219 (scalarize_elem): New.
6220
6221 2015-08-28 Jiong Wang <jiong.wang@arm.com>
6222
6223 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
6224 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
6225 (aarch64_symbol_type): Likewise.
6226 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6227 Likewise.
6228 (aarch64_expand_mov_immediate): Likewise.
6229 (aarch64_print_operand): Likewise.
6230 (aarch64_classify_tls_symbol): Likewise.
6231
6232 2015-08-28 Richard Biener <rguenther@suse.de>
6233
6234 * cgraphunit.c (symbol_table::compile): Move early debug generation
6235 and finish...
6236 (symbol_table::finalize_compilation_unit): ... back here and
6237 add a !seen_error () guard.
6238
6239 2015-08-27 Sebastian Pop <s.pop@samsung.com>
6240
6241 * toplev.c (process_options): Do not use flag_loop_block,
6242 flag_loop_interchange, and flag_loop_strip_mine. Add check for
6243 flag_loop_optimize_isl.
6244
6245 2015-08-27 Sebastian Pop <s.pop@samsung.com>
6246
6247 * Makefile.in (OBJS): Remove graphite-blocking.o and
6248 graphite-interchange.o.
6249 * common.opt (floop-strip-mine, floop-interchange, floop-block):
6250 Alias of floop-nest-optimize.
6251 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
6252 Document as alias of -floop-nest-optimize.
6253 * graphite-blocking.c: Remove.
6254 * graphite-interchange.c: Remove.
6255 * graphite-optimize-isl.c: Include dumpfile.h.
6256 (getScheduleForBand): Add dump for tiled loops. Use
6257 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
6258 * graphite-poly.c (scop_max_loop_depth): Remove.
6259 (print_scattering_function_1): Remove.
6260 (print_scattering_function): Remove.
6261 (print_scattering_functions): Remove.
6262 (debug_scattering_function): Remove.
6263 (debug_scattering_functions): Remove.
6264 (apply_poly_transforms): Remove use of flag_loop_block,
6265 flag_loop_strip_mine, and flag_loop_interchange.
6266 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
6267 PBB_ORIGINAL.
6268 (print_pdr_access_layout): Remove.
6269 (print_pdr): Print ISL representation.
6270 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
6271 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
6272 (free_scop): Same.
6273 (openscop_print_pbb_domain): Remove.
6274 (print_pbb): Remove call to print_scattering_function.
6275 (openscop_print_scop_context): Remove.
6276 (print_scop_context): Do not print matrices anymore.
6277 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
6278 SCOP_TRANSFORMED_SCHEDULE.
6279 (print_isl_set): Add printing of a new line.
6280 (print_isl_map): Same.
6281 (print_isl_aff): Same.
6282 (print_isl_constraint): Same.
6283 (loop_to_lst): Remove.
6284 (scop_to_lst): Remove.
6285 (lst_indent_to): Remove.
6286 (print_lst): Remove.
6287 (debug_lst): Remove.
6288 (dot_lst_1): Remove.
6289 (dot_lst): Remove.
6290 (reverse_loop_at_level): Remove.
6291 (reverse_loop_for_pbbs): Remove.
6292 * graphite-poly.h (pdr_dim_iter_domain): Remove.
6293 (pdr_nb_params): Remove.
6294 (pdr_alias_set_dim): Remove.
6295 (pdr_subscript_dim): Remove.
6296 (pdr_iterator_dim): Remove.
6297 (pdr_parameter_dim): Remove.
6298 (same_pdr_p): Remove.
6299 (struct poly_scattering): Remove.
6300 (struct poly_bb): Remove _original, _transformed, _saved.
6301 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
6302 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
6303 (PBB_NB_LOCAL_VARIABLES): Remove.
6304 (PBB_NB_SCATTERING_TRANSFORM): Remove.
6305 (schedule_to_scattering): Remove.
6306 (number_of_write_pdrs): Remove.
6307 (pbb_dim_iter_domain): Remove.
6308 (pbb_nb_params): Remove.
6309 (pbb_nb_scattering_orig): Remove.
6310 (pbb_nb_scattering_transform): Remove.
6311 (pbb_nb_dynamic_scattering_transform): Remove.
6312 (pbb_nb_local_vars): Remove.
6313 (pbb_iterator_dim): Remove.
6314 (pbb_parameter_dim): Remove.
6315 (psco_scattering_dim): Remove.
6316 (psct_scattering_dim): Remove.
6317 (psct_local_var_dim): Remove.
6318 (psco_iterator_dim): Remove.
6319 (psct_iterator_dim): Remove.
6320 (psco_parameter_dim): Remove.
6321 (psct_parameter_dim): Remove.
6322 (psct_dynamic_dim): Remove.
6323 (psct_static_dim): Remove.
6324 (psct_add_local_variable): Remove.
6325 (new_lst_loop): Remove.
6326 (new_lst_stmt): Remove.
6327 (free_lst): Remove.
6328 (copy_lst): Remove.
6329 (lst_add_loop_under_loop): Remove.
6330 (lst_depth): Remove.
6331 (lst_dewey_number): Remove.
6332 (lst_dewey_number_at_depth): Remove.
6333 (lst_pred): Remove.
6334 (lst_succ): Remove.
6335 (lst_find_pbb): Remove.
6336 (find_lst_loop): Remove.
6337 (lst_find_first_pbb): Remove.
6338 (lst_empty_p): Remove.
6339 (lst_find_last_pbb): Remove.
6340 (lst_contains_p): Remove.
6341 (lst_contains_pbb): Remove.
6342 (lst_create_nest): Remove.
6343 (lst_remove_from_sequence): Remove.
6344 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
6345 (lst_niter_for_loop): Remove.
6346 (pbb_update_scattering): Remove.
6347 (lst_update_scattering_under): Remove.
6348 (lst_update_scattering): Remove.
6349 (lst_insert_in_sequence): Remove.
6350 (lst_replace): Remove.
6351 (lst_substitute_3): Remove.
6352 (lst_distribute_lst): Remove.
6353 (lst_remove_all_before_including_pbb): Remove.
6354 (lst_remove_all_before_excluding_pbb): Remove.
6355 (struct scop): Remove original_schedule, transformed_schedule, and
6356 saved_schedule.
6357 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
6358 (SCOP_SAVED_SCHEDULE): Remove.
6359 (poly_scattering_new): Remove.
6360 (poly_scattering_free): Remove.
6361 (poly_scattering_copy): Remove.
6362 (store_scattering_pbb): Remove.
6363 (store_lst_schedule): Remove.
6364 (restore_lst_schedule): Remove.
6365 (store_scattering): Remove.
6366 (restore_scattering_pbb): Remove.
6367 (restore_scattering): Remove.
6368 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
6369 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
6370 compute the scattering polyhedron dimension from the dimension of
6371 pbb->domain.
6372 (build_scop_scattering): Update call to
6373 build_pbb_scattering_polyhedrons.
6374 (build_poly_scop): Remove call to scop_to_lst.
6375 * graphite.c (graphite_transform_loops): Add call to print_scop.
6376 (gate_graphite_transforms): Remove use of flag_loop_block,
6377 flag_loop_interchange, and flag_loop_strip_mine.
6378
6379 2015-08-27 Sebastian Pop <s.pop@samsung.com>
6380
6381 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
6382 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
6383 -floop-nest-optimize.
6384 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
6385 (generate_luj_sepclass): Remove.
6386 (generate_luj_options): Remove.
6387 (set_options): Remove opt_luj.
6388 (scop_to_isl_ast): Remove opt_luj.
6389 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
6390 flag_loop_unroll_jam.
6391 (getPrevectorMap_full): Remove.
6392 (getScheduleForBandList): Remove map_sepcl.
6393 (getScheduleMap): Same.
6394 (apply_schedule_map_to_scop): Remove sepcl.
6395 (optimize_isl): Same.
6396 * graphite-poly.c (apply_poly_transforms): Remove check for
6397 flag_loop_unroll_jam.
6398 (new_poly_bb): Remove map_sepclass.
6399 * graphite-poly.h (struct poly_bb): Same.
6400 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
6401 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
6402 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
6403 * toplev.c (process_options): Remove flag_loop_unroll_jam.
6404
6405 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
6406
6407 PR target/67317
6408 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
6409 (addqi3_cc): Ditto.
6410 (UNSPEC_ADD_CARRY): Remove.
6411 (addqi3_cconly_overflow): New expander.
6412 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
6413 Adjust for changed add<mode>3_carry.
6414 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
6415 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
6416 (<plusminus_insn><mode>3_carry): Remove expander.
6417 (*<plusminus_insn><mode>3_carry): Split insn pattern to
6418 add<mode>3_carry and sub<mode>3_carry.
6419 (plusminus_carry_mnemonic): Remove code attribute.
6420 (add<mode>3_carry): Canonicalize insn pattern.
6421 (*addsi3_carry_zext): Ditto.
6422 (sub<mode>3_carry): Ditto.
6423 (*subsi3_carry_zext): Ditto.
6424 (adcx<mode>3): Remove insn pattern.
6425 (addcarry<mode>): New insn pattern.
6426 (subborrow<mode>): Ditto.
6427 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
6428 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
6429 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
6430 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
6431 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
6432 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
6433 Rewrite expander to not clobber carry flag chains.
6434
6435 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
6436
6437 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
6438 instead of a rotate.
6439
6440 2015-08-27 Marek Polacek <polacek@redhat.com>
6441
6442 PR middle-end/67005
6443 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
6444 an entry into an irreducible region.
6445
6446 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6447
6448 * configure: Regenerate.
6449
6450 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
6451
6452 PR tree-optimization/67283
6453 * tree-sra.c (type_consists_of_records_p): Rename to...
6454 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
6455
6456 (completely_scalarize_record): Rename to...
6457 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
6458 (scalarize_elem): New.
6459
6460 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
6461
6462 * tree-sra.c (completely_scalarize_var): Rename to...
6463 (create_total_scalarization_access): ... Here. Drop call to
6464 completely_scalarize_record.
6465
6466 (analyze_all_variable_accesses): Replace completely_scalarize_var
6467 with create_total_scalarization_access and completely_scalarize_record.
6468
6469 2015-08-27 Alan Modra <amodra@gmail.com>
6470
6471 PR target/67356
6472 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
6473 for operand 1.
6474
6475 2015-08-27 Richard Biener <rguenther@suse.de>
6476
6477 * passes.c (rest_of_decl_compilation): Guard early_global_decl
6478 call with !seen_error ().
6479 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
6480 early debug generation and finish...
6481 (symbol_table::compile): ... here to put it after a !seen_error ()
6482 guard.
6483
6484 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6485
6486 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
6487 Solaris 12+.
6488
6489 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6490 Andre Vieira <andre.simoesdiasvieira@arm.com>
6491
6492 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
6493 (*cb<optab><mode>1): Likewise.
6494 (*tb<optab><mode>1): Likewise.
6495 (*cb<optab><mode>1): Likewise.
6496 * config/aarch64/iterators.md (inv_cb): New code attribute.
6497 (inv_tb): Likewise.
6498 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
6499 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
6500
6501 2015-08-27 Richard Biener <rguenther@suse.de>
6502
6503 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
6504
6505 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
6506
6507 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
6508 trap to fix ICE.
6509
6510 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
6511
6512 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
6513 Add declaration.
6514
6515 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
6516 comment.
6517 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
6518 floating point in VSX registers.
6519 (rs6000_output_move_128bit): Always print out the set insn if we
6520 can't generate an appropriate 128-bit move.
6521 (rs6000_generate_compare): Add support for IEEE 128-bit floating
6522 point in VSX registers comparisons.
6523 (rs6000_expand_float128_convert): Likewise.
6524
6525 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
6526 predicate for only GPR hard registers.
6527
6528 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
6529 modes to iterators. Add new iterators for moving 128-bit values in
6530 scalar FPR registers and VSX registers.
6531 (FMOVE128): Likewise.
6532 (FMOVE128_FPR): Likewise.
6533 (FMOVE128_GPR): Likewise.
6534 (FMOVE128_VSX): Likewise.
6535 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
6536 in VSX registers.
6537 (IFKF): Likewise.
6538 (IBM128): Likewise.
6539 (TFIFKF): Likewise.
6540 (RELOAD): Add IEEE 128-bit floating point modes.
6541 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
6542 floating point in VSX registers modes.
6543 (signbit<mode>2, IBM128 iterator): Likewise.
6544 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
6545 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
6546 (negtf2): Likewise.
6547 (neg<mode>2, TFIFKF iterator): Likewise.
6548 (negtf2_internal): Likewise.
6549 (abstf2): Likewise.
6550 (abs<mode>2, TFIFKF iterator): Likewise.
6551 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
6552 VSX insn support for negate, absolute value, and negative absolute
6553 value.
6554 (ieee_128bit_vsx_neg<mode>2): Likewise.
6555 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
6556 (ieee_128bit_vsx_abs<mode>2): Likewise.
6557 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
6558 (ieee_128bit_vsx_nabs<mode>2): Likewise.
6559 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
6560 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
6561 floating point in VSX registers.
6562 (unpack<mode>_dm): Likewise.
6563 (unpack<mode>_nodm): Likewise.
6564 (pack<mode>): Likewise.
6565 (unpackv1ti): Likewise.
6566 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
6567 (packv1ti): Likewise.
6568 (pack<mode>, FMOVE128_VSX iterator): Likewise.
6569 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
6570 registers.
6571 (extenddftf2_internal): Likewise.
6572 (trunctfdf2): Likewise.
6573 (trunctfdf2_internal2): Likewise.
6574 (fix_trunc_helper): Likewise.
6575 (fix_trunctfdi2"): Likewise.
6576 (floatditf2): Likewise.
6577 (floatuns<mode>tf2): Likewise.
6578 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
6579 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
6580 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
6581 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
6582 (float<SDI:mode><IFKF:mode>2): Likewise.
6583 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
6584
6585 2015-08-26 Renlin Li <renlin.li@arm.com>
6586
6587 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
6588
6589 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
6590 Jiong Wang <jiong.wang@arm.com>
6591
6592 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
6593 (tlsie_tiny_<mode>): New define_insn.
6594 (tlsie_tiny_sidi): Likewise.
6595 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
6596 SYMBOL_TINY_TLSIE.
6597 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
6598 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
6599 SYMBOL_TINY_TLSIE.
6600 (aarch64_expand_mov_immediate): Likewise.
6601 (aarch64_print_operand): Likewise.
6602 (arch64_classify_tls_symbol): Likewise.
6603
6604 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
6605
6606 * config/arm/arm-arches.def: Replace single value flags with
6607 an initializer built from ARM_FSET_MAKE_CPU1.
6608 * config/arm/arm-cores.def: Likewise.
6609 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
6610 derivation from the ARM_CORE macro definition, use the given value
6611 instead.
6612 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
6613 ARM_ARCH macro definition, use the given value instead.
6614
6615 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
6616
6617 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
6618 feature set.
6619 (struct builtin_description): Replace field mask with field
6620 features.
6621 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
6622 (IWMMXT2_BUILTIN): Likewise.
6623 (IWMMXT2_BUILTIN2): Likewise.
6624 (FP_BUILTIN): Likewise.
6625 (CRC32_BUILTIN): Likewise.
6626 (CRYPTO_BUILTIN): Likewise.
6627 (iwmmx_mbuiltin): Likewise.
6628 (iwmmx2_mbuiltin): Likewise.
6629 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
6630 struct builtin_description.
6631
6632 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
6633
6634 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
6635 (struct builtin_description): Change type of mask to unsigned
6636 long.
6637 * config/arm/arm-protos.h (insn_flags): Declare as type
6638 arm_feature_set.
6639 (tune_flags): Likewise.
6640 * config/arm/arm.c (feature_count): New.
6641 (insn_flags): Define as type arm_feature_set.
6642 (tune_flags): Likewise.
6643 (struct processors): Define field flags as type arm_feature_set.
6644 (all_cores): Update for change to struct processors.
6645 (all_architectures): Likewise.
6646 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
6647 macros.
6648 (arm_option_override_internal): Likewise.
6649 (arm_option_override): Likewise.
6650
6651 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
6652 Jiong Wang <jiong.wang@arm.com>
6653
6654 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
6655 tls size for tiny, small, large memory model.
6656 (aarch64_load_symref_appropriately): Support new symbol types.
6657 (aarch64_expand_mov_immediate): Likewise.
6658 (aarch64_print_operand): Likewise.
6659 (aarch64_classify_tls_symbol): Likewise.
6660 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
6661 (aarch64_symbol_type): Likewise.
6662 * config/aarch64/aarch64.md (tlsle): Deleted.
6663 (tlsle12_<mode>): New define_insn.
6664 (tlsle24_<mode>): Likewise.
6665 (tlsle32_<mode>): Likewise.
6666 (tlsle48_<mode>): Likewise.
6667 * doc/sourcebuild.texi (AArch64-specific attributes): Document
6668 "aarch64_tlsle32".
6669
6670 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
6671
6672 * config/arm/arm-protos.h (FL_NONE): New.
6673 (FL_ANY): New.
6674 (arm_feature_set): New.
6675 (ARM_FSET_MAKE): New.
6676 (ARM_FSET_MAKE_CPU1): New.
6677 (ARM_FSET_MAKE_CPU2): New.
6678 (ARM_FSET_CPU1): New.
6679 (ARM_FSET_CPU2): New.
6680 (ARM_FSET_EMPTY): New.
6681 (ARM_FSET_ANY): New.
6682 (ARM_FSET_HAS_CPU1): New.
6683 (ARM_FSET_HAS_CPU2): New.
6684 (ARM_FSET_HAS_CPU): New.
6685 (ARM_FSET_ADD_CPU1): New.
6686 (ARM_FSET_ADD_CPU2): New.
6687 (ARM_FSET_DEL_CPU1): New.
6688 (ARM_FSET_DEL_CPU2): New.
6689 (ARM_FSET_UNION): New.
6690 (ARM_FSET_INTER): New.
6691 (ARM_FSET_XOR): New.
6692 (ARM_FSET_EXCLUDE): New.
6693 (AFM_FSET_IS_EMPTY): New.
6694 (ARM_FSET_CPU_SUBSET): New.
6695
6696 2015-08-26 Jiong Wang <jiong.wang@arm.com>
6697
6698 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
6699 SYMBOL_TLSLE to SYMBOL_TLSLE24.
6700 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6701 Likewise.
6702 (aarch64_expand_mov_immediate): Likewise.
6703 (aarch64_print_operand): Likewise.
6704 (aarch64_classify_symbol): Likewise.
6705
6706 2015-08-26 Jiong Wang <jiong.wang@arm.com>
6707
6708 * config/aarch64/aarch64.opt (mtls-size): New entry.
6709 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
6710 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
6711 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
6712
6713 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
6714
6715 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
6716 ARM_CORE entry. Fix some white-space.
6717 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
6718 ARM_CORE definition.
6719
6720 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6721
6722 * fold-const.c (fold_binary_loc) : Move Optimize
6723 root(x)*root(y) as root(x*y) to match.pd.
6724 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
6725 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
6726 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
6727 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
6728 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
6729 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
6730 (mult (exps:s @0) (exps:s @1)) : New simplifier.
6731 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
6732 (rdiv @0 (exps:s @1)) : New simplifier.
6733
6734 2015-08-25 Joseph Myers <joseph@codesourcery.com>
6735
6736 * gcc.c (driver::finalize): Only assign to extra_specs if
6737 [EXTRA_SPECS].
6738
6739 2015-08-25 Marek Polacek <polacek@redhat.com>
6740
6741 PR middle-end/67330
6742 * varasm.c (declare_weak): Return after giving an error.
6743
6744 2015-08-25 David Malcolm <dmalcolm@redhat.com>
6745
6746 * gcc-main.c (main): Add params to driver ctor.
6747 * gcc.c (class env_manager): New.
6748 (env): New global.
6749 (env_manager::init): New.
6750 (env_manager::get): New.
6751 (env_manager::xput): New.
6752 (env_manager::restore): New.
6753 Poison getenv and putenv.
6754 (DEFAULT_TARGET_SYSTEM_ROOT): New.
6755 (target_system_root): Update initialization to use
6756 DEFAULT_TARGET_SYSTEM_ROOT.
6757 (struct spec_list): Add field "default_ptr".
6758 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
6759 (init_spec): Likewise.
6760 (set_spec): Clear field "default_ptr".
6761 (read_specs): Free "spec" and "buffer".
6762 (xputenv): Reimplement in terms of env_manager.
6763 (process_command): Replace ::getenv calls with calls to the
6764 env_manager singleton.
6765 (process_brace_body): Free string in three places.
6766 (driver::driver): New.
6767 (driver::~driver): New.
6768 (used_arg): Convert from a function to...
6769 (class used_arg_t): ...this class, and...
6770 (used_arg): ...this new global instance.
6771 (used_arg_t::finalize): New function.
6772 (getenv_spec_function): Add "const" to local "value". Replace
6773 ::getenv call with call to the env_manager singleton.
6774 (path_prefix_reset): New function.
6775 (driver::finalize): New function.
6776 * gcc.h (driver::driver): New.
6777 (driver::~driver): New.
6778 (driver::finalize): New.
6779
6780 2015-08-25 Nathan Sidwell <nathan@acm.org>
6781
6782 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
6783 target doesn't have one.
6784
6785 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
6786
6787 PR target/67346
6788 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
6789
6790 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
6791
6792 PR target/67344
6793 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
6794 a define_insn, remove second alternative.
6795
6796 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
6797 Joseph Myers <joseph@codesourcery.com>
6798
6799 * gcc.c (struct switchstr): Expand comment.
6800
6801 2015-08-25 Nathan Sidwell <nathan@acm.org>
6802
6803 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
6804 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
6805
6806 2015-08-25 Richard Biener <rguenther@suse.de>
6807
6808 PR middle-end/67306
6809 * genmatch.c (expr::gen_transform): Verify the result of
6810 builtin_decl_implicit.
6811 (dt_simplify::gen_1): Likewise.
6812
6813 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
6814
6815 * config/arm/constraints.md: Also list Cs and US ARM-specific
6816 constraints as used.
6817
6818 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
6819
6820 PR target/66609
6821 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
6822 UNSPEC_PCREL.
6823 (nonpic_symbol_mentioned_p): Likewise.
6824 (sh_delegitimize_address): Likewise.
6825 (sh_function_ok_for_sibcall): Take into account weak symbols.
6826 (sh_expand_sym_label2reg): New.
6827 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
6828 * config/sh/sh.md (UNSPEC_PCREL): New enum.
6829 (call_pcrel): Use sh_expand_sym_label2reg.
6830 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
6831 (symPCREL_label2reg) New expand.
6832
6833 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
6834
6835 * graphite-poly.c: Change type of region from void* to sese.
6836 * graphite-poly.h (struct scop): Changing the type of scop::region
6837 from void* to sese. Change accessor macro accordingly.
6838 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
6839
6840 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
6841
6842 * graphite-scop-detection.c (stmt_simple_for_scop_p):
6843 Constrain only on INTEGER_TYPE.
6844
6845 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6846
6847 PR target/67211
6848 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
6849 -mefficient-unaligned-vsx on ISA 2.7.
6850
6851 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
6852 option to a masked option.
6853
6854 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
6855 logic for -mefficient-unaligned-vsx so that it is set via an arch
6856 ISA option, instead of being set if -mtune=power8 is set. Move
6857 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
6858 near other default option handling.
6859
6860 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
6861
6862 * genflags.c (gen_macro): Delete.
6863 (gen_proto): Don't create GEN.*CALL.* macros.
6864 * gensupport.h (get_file_location): Declare.
6865 * gensupport.c (rtx_locs): New variable.
6866 (read_md_rtx): Record rtx locations.
6867 (get_file_location): New function.
6868 * target-insns.def (call, call_pop, call_value, call_value_pop)
6869 (sibcall, sibcall_value): New patterns.
6870 * gentarget-def.c (parse_argument): New function.
6871 (def_target_insn): Use it. Handle optional operands. Raise an
6872 error if an .md pattern has the wrong number of operands for the
6873 pattern name. Remove the names of unused operands from the prototype.
6874 * builtins.c (expand_builtin_apply): Use targetm functions
6875 instead of HAVE_call_value and GEN_CALL_VALUE.
6876 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
6877 and sibcall_value_pop.
6878 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
6879 of GEN_CALL.
6880 * config/alpha/alpha.md (untyped_call): Likewise.
6881 * config/iq2000/iq2000.md (untyped_call): Likewise.
6882 * config/m68k/m68k.md (untyped_call): Likewise.
6883 * config/mips/mips.md (untyped_call): Likewise.
6884 * config/pa/pa.md (untyped_call): Likewise.
6885 * config/rs6000/rs6000.md (untyped_call): Likewise.
6886 * config/sparc/sparc.md (untyped_call): Likewise.
6887 * config/tilegx/tilegx.md (untyped_call): Likewise.
6888 * config/tilepro/tilepro.md (untyped_call): Likewise.
6889 * config/visium/visium.md (untyped_call): Likewise.
6890 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
6891 gen_call_value instead of GEN_CALL_VALUE.
6892 * config/arm/arm.md (untyped_call): Likewise.
6893 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
6894 GEN_CALL.
6895
6896 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
6897
6898 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
6899 (have_cbranchcc4): New variable.
6900 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
6901 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
6902 (if_convert): Initialize have_cbranchcc4.
6903
6904 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
6905
6906 * builtins.c (expand_cmpstrn): Rename to...
6907 (expand_cmpstrn_or_cmpmem): ...this.
6908 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
6909 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
6910 Remove mode argument.
6911 (expand_builtin): Update accordingly.
6912
6913 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
6914
6915 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
6916 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
6917 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
6918 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
6919 Add predicates for operands 0 and 3.
6920 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
6921 operand.
6922 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
6923 immediate_operand to nonmemory_operand.
6924
6925 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
6926
6927 * df-scan.c (df_insn_info_init_fields): New function, split out
6928 from...
6929 (df_insn_create_insn_record): ...here.
6930 (df_insn_info_free_fields): New function, split out from...
6931 (df_insn_info_delete): ...here.
6932 (df_insn_rescan): Use the new functions instead of freeing and
6933 reallocating the df_insn_info.
6934
6935 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6936
6937 * doc/install.texi (Binaries): Remove links no longer valid.
6938
6939 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
6940
6941 * config/nvptx/mkoffload.c (process): Replace
6942 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
6943
6944 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
6945
6946 PR target/67329
6947 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
6948
6949 2015-08-24 Renlin Li <renlin.li@arm.com>
6950
6951 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
6952 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
6953 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
6954 * config/arm/constraints.md ("j"): Add check for high code.
6955
6956 2015-08-24 Tom de Vries <tom@codesourcery.com>
6957
6958 PR tree-optimization/65468
6959 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
6960 chunk_size is one.
6961
6962 2015-08-24 Nathan Sidwell <nathan@acm.org>
6963
6964 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
6965 change to nvptx_type_from_mode call. Use arg_promotion for both
6966 split and non-split args.
6967
6968 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
6969
6970 * target-insns.def (movstr): New pattern.
6971 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
6972 (expand_movstr): Use targetm rather than HAVE_movstr/
6973 CODE_FOR_movstr.
6974
6975 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
6976
6977 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
6978 cast syntax.
6979
6980 2015-08-24 Andrew Pinski <apinski@cavium.com>
6981
6982 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
6983 AARCH64_EXTRA_TUNING_OPTION.
6984 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
6985 New enum.
6986 (aarch64_extra_tuning_flags): Base the shifted value on the index
6987 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
6988 * config/aarch64/aarch64.c: Remove the last argument to
6989 AARCH64_EXTRA_TUNING_OPTION.
6990
6991 2015-08-23 Nathan Sidwell <nathan@acm.org>
6992
6993 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
6994 decls.
6995 (nvptx_declare_function_name): Insert formatting tabs for
6996 consistency.
6997
6998 2015-08-23 Tom de Vries <tom@codesourcery.com>
6999
7000 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
7001 parm_decl, rather than generating a dummy default def in cfun.
7002 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
7003 ssa_name from cfun and child_fn do not share a stmt as def stmt.
7004 (move_stmt_op): Handle PARM_DECl.
7005 (gather_ssa_name_hash_map_from): New function.
7006 (move_sese_region_to_fn): Add default defs for function params, and add
7007 them to vars_map. Release copied ssa names.
7008 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
7009
7010 2015-08-23 Tom de Vries <tom@codesourcery.com>
7011
7012 * doc/sourcebuild.texi: Rename vect_no_int_max with
7013 vect_no_int_min_max. Update description.
7014
7015 2015-08-22 Andrew Pinski <apinski@cavium.com>
7016
7017 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
7018 * config/aarch64/aarch64-protos.h
7019 (aarch64_fusion_pairs_index): New enum.
7020 (aarch64_fusion_pairs): Base the shifted value on the index instead
7021 Rewrite AARCH64_FUSE_ALL to be based on the end index.
7022 of the argument to AARCH64_FUSION_PAIR.
7023 * config/aarch64/aarch64.c: Remove the last argument to
7024 AARCH64_FUSION_PAIR.
7025
7026 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
7027
7028 * dominance.c (new_zero_array): Define.
7029 (dom_info): Redefine as class with proper encapsulation.
7030 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
7031 Add new members.
7032 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
7033 allocations/deallocations. Pass function as parameter (instead of
7034 using cfun).
7035 (dom_info::get_idom): Define accessor method.
7036 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
7037 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
7038 (calculate_dominance_info): Adjust to use dom_info class.
7039 (verify_dominators): Likewise.
7040
7041 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
7042
7043 * print-rtl.c (print_rtx): Check the correct range for
7044 flag_dump_unnumbered_links to behave as documented.
7045
7046 PR rtl-optimization/67227
7047 PR rtl-optimization/64164
7048 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
7049 (nonoverlapping_memrefs_p): Test offsets and sizes when given
7050 identical gimple_reg exprs.
7051
7052 2015-08-21 Nathan Sidwell <nathan@acm.org>
7053
7054 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
7055 expansion.
7056 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
7057 crtl->stack_alignment_needed to determine alignment.
7058 (nvptx_get_drap_rtx): New.
7059 (TARGET_GET_DRAP_RTX): Override.
7060 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
7061
7062 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7063
7064 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
7065
7066 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7067
7068 * configure.ac: Remove uwin* cases.
7069 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
7070 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
7071 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
7072 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
7073 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
7074 i[34567]86-*-uwin*, powerpc-*-beos*.
7075
7076 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
7077
7078 * gencodes.c (gencodes): Print the comma for the preceding
7079 enum value rather than the current one. Use aliased enum values
7080 rather than #defines for compiled-out patterns.
7081 (main): Update accordingly. Replace LAST_INSN_CODE with
7082 NUM_INSN_CODES.
7083 * lra.c (insn_code_data): Update accordingly.
7084 (finish_insn_code_data_once, get_static_insn_data): Likewise.
7085 * recog.h (target_recog): Likewise.
7086 (preprocess_insn_constraints): Change parameter to unsigned int.
7087 * recog.c (preprocess_insn_constraints): Likewise.
7088 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
7089 * tree-vect-stmts.c (vectorizable_operation): Simplify.
7090
7091 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
7092
7093 PR rtl-optimization/61657
7094 * loop-iv.c (iv_number_of_iterations): Declare up and down as
7095 unsigned. Remove superflous uint64_t cast.
7096
7097 2014-08-21 Felix Yang <felix.yang@huawei.com>
7098 Jiji Jiang <jiangjiji@huawei.com>
7099
7100 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
7101 argument and get builtin function code directly from CALL.
7102 (gimple_stringop_fixed_value): Modified accordingly.
7103 (gimple_stringops_transform, gimple_stringops_values_to_profile):
7104 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
7105
7106 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
7107
7108 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
7109
7110 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7111
7112 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
7113 to match.pd.
7114 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
7115 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
7116 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
7117 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
7118 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
7119 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
7120 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
7121 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
7122 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
7123 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
7124
7125 * match.pd (SIN ) : New Operator.
7126 (TAN) : New Operator.
7127 (mult (SQRT@1 @0) @1) : New simplifier.
7128 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
7129 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
7130 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
7131 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
7132 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
7133 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
7134 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
7135 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
7136 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
7137 (rdiv @0 (POW:s @1 @2)) : New simplifier.
7138
7139 2015-08-21 Bin Cheng <bin.cheng@arm.com>
7140
7141 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
7142 loop if EXPR is simplified to const value.
7143
7144 2015-08-21 Yury Gribov <y.gribov@samsung.com>
7145
7146 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
7147 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
7148
7149 2015-08-21 Richard Biener <rguenther@suse.de>
7150
7151 PR middle-end/67285
7152 * gimple-fold.c (replace_stmt_with_simplification): Assert
7153 seq is empty when replacing a call with itself but different
7154 arguments.
7155 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
7156 a call require that it is const.
7157
7158 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7159
7160 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
7161 * builtins.c (get_object_alignment_2): Adjust.
7162 * varasm.c (align_variable): Likewise.
7163 (get_variable_align): Likewise.
7164 (build_constant_desc): Likewise.
7165 (force_const_mem): Likewise.
7166 * doc/tm.texi.in: Likewise.
7167 * doc/tm.texi: Regenerate.
7168
7169 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7170
7171 * genconfig.c (main): Always define HAVE_cc0.
7172 * recog.c (rest_of_handle_peephole2): Adjust.
7173
7174 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7175
7176 * reorg.c (relax_delay_slots): Don't use #if to check value of
7177 HAVE_cc0.
7178
7179 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7180
7181 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
7182 * targhooks.c (default_have_conditional_execution): Adjust.
7183
7184 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
7185
7186 * rtl.h (rtvec_all_equal_p): Declare.
7187 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
7188 * rtl.c (rtvec_all_equal_p): New function.
7189 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
7190 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
7191 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
7192 * config/arm/arm.c (neon_vdup_constant): Likewise.
7193 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
7194 * config/tilegx/constraints.md (W, Y): Likewise.
7195 * config/tilepro/constraints.md (W, Y): Likewise.
7196 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
7197 (classify_immediate): Use unwrap_const_vec_duplicate.
7198 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
7199 (reg_or_v2s8bit_operand): Likewise.
7200 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
7201 (reg_or_v4s8bit_operand): Likewise.
7202
7203 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7204
7205 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
7206 (vec_shasigma_be): New #define.
7207 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
7208 (VPMSUMH): Likewise.
7209 (VPMSUMW): Likewise.
7210 (VPMSUMD): Likewise.
7211 (VPMSUM): New BU_P8V_OVERLOAD_2.
7212 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
7213 entries for VEC_MADD and VEC_VPMSUM.
7214
7215 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
7216
7217 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
7218 Multiply argument avr_n_flash by 64 to match unit of "KiB".
7219 (avr_pgm_check_var_decl): Same.
7220
7221 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
7222
7223 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
7224 initialization of HFmode scalar type (float16_t) to...
7225 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
7226 code.
7227
7228 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
7229
7230 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
7231 having an -mfp16-format.
7232
7233 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
7234
7235 * config/i386/predicates.md (vector_all_ones_operand): Use
7236 CONSTM1_RTX to simplify definition.
7237
7238 2015-08-20 Richard Biener <rguenther@suse.de>
7239
7240 * toplev.c (compile_file): Remove loop calling late_global_decl
7241 on all symbols.
7242 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
7243 on decls we assembled.
7244
7245 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
7246
7247 * common/config/aarch64/aarch64-common.c
7248 (AARCH64_CPU_NAME_LENGTH): Delete.
7249 (aarch64_option_extension): New.
7250 (all_extensions): Likewise.
7251 (processor_name_to_arch): Likewise.
7252 (arch_to_arch_name): Likewise.
7253 (all_cores): New.
7254 (all_architectures): Likewise.
7255 (aarch64_get_extension_string_for_isa_flags): Likewise.
7256 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
7257 architecture names.
7258 * config/aarch64/aarch64-protos.h
7259 (aarch64_get_extension_string_for_isa_flags): New.
7260 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
7261 (aarch64_option_print): Get the string to print from
7262 aarch64_get_extension_string_for_isa_flags.
7263 (aarch64_declare_function_name): Likewise.
7264 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
7265 (MCPU_TO_MARCH_SPEC): This.
7266 (ASM_CPU_SPEC): Use it.
7267 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
7268 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
7269 (EXTRA_SPEC_FUNCTIONS): Use it.
7270
7271 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
7272
7273 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
7274 expansion when !ISA_HAS_LWL_LWR.
7275 (mips_block_move_straight): Update the size of elements copied to
7276 account for alignment when !ISA_HAS_LWL_LWR.
7277 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
7278
7279 2015-08-19 Jiong Wang <jiong.wang@arm.com>
7280
7281 * expr.c (expand_expr_real_2): Check gimple statement during
7282 LSHIFT_EXPR expand.
7283
7284 2015-08-19 Magnus Granberg <zorry@gentoo.org>
7285
7286 * common.opt (fstack-protector): Initialize to -1.
7287 (fstack-protector-all): Likewise.
7288 (fstack-protector-strong): Likewise.
7289 (fstack-protector-explicit): Likewise.
7290 * configure.ac: Add --enable-default-ssp.
7291 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
7292 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
7293 -1.
7294 * doc/install.texi: Document --enable-default-ssp.
7295 * config.in: Regenerated.
7296 * configure: Likewise.
7297
7298 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
7299
7300 PR rtl-optimization/64164
7301 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
7302 (parm_in_stack_slot_p): ... this. Disregard mode, what
7303 matters is whether the parm will live in a pseudo or a stack
7304 slot.
7305 (expand_one_ssa_partition): Deal with params without a default
7306 def. Disregard mode.
7307 * cfgexpand.h: Renamed function declaration.
7308 * tree-ssa-coalesce.c: Adjust.
7309 * function.c (split_complex_args): Allocate stack slot for
7310 unassigned parms before splitting.
7311 (parm_in_unassigned_mem_p): New. Use it instead of
7312 parm_maybe_byref_p throughout this file.
7313 (assign_parm_setup_block): Use it. Accept pseudos in the
7314 expand-assigned rtl.
7315 (assign_parm_setup_reg): Drop BLKmode requirement.
7316 (assign_parm_setup_stack): Allocate and fill in the address of
7317 unassigned MEM parms.
7318
7319 2015-08-19 David Sherwood <david.sherwood@arm.com>
7320
7321 * genmodes.c (emit_mode_unit_size_inline): New function.
7322 (emit_mode_unit_precision_inline): New function.
7323 (emit_insn_modes_h): Emit new #define. Emit new functions.
7324 (emit_mode_unit_size): New function.
7325 (emit_mode_unit_precision): New function.
7326 (emit_mode_adjustments): Add mode_unit_size adjustments.
7327 (emit_insn_modes_c): Emit new arrays.
7328 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
7329 use new inline methods.
7330
7331 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7332
7333 * config/aarch64/aarch64.c (bit_count): Delete prototype
7334 and definition.
7335 (aarch64_print_operand): Use popcount_hwi instead of the above.
7336
7337 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7338
7339 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
7340 comment.
7341
7342 2015-08-19 Marek Polacek <polacek@redhat.com>
7343
7344 PR middle-end/67133
7345 * gimple-ssa-isolate-paths.c
7346 (insert_trap_and_remove_trailing_statements): Rename to ...
7347 (insert_trap): ... this. Don't remove trailing statements; split
7348 block instead.
7349 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
7350
7351 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
7352
7353 PR other/67042
7354 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
7355 conditionalize the whole on __GNUC__. Add fallback code
7356 depending neither on undefined nor implementation-defined behaviour.
7357
7358 2015-08-19 Jiong Wang <jiong.wang@arm.com>
7359
7360 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
7361 whitespaces with tab.
7362
7363 2015-08-19 Florian Weimer <fweimer@redhat.com>
7364
7365 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
7366 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
7367 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
7368 Move Name_Ids instantiation to the Prj.Proc package, to avoid
7369 trampolines.
7370
7371 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7372
7373 * config/arm/arm.c (bounds_check): Use %wd print format
7374 for HOST_WIDE_INT arguments.
7375
7376 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
7377
7378 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
7379 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
7380 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
7381 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
7382 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
7383 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
7384 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
7385 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
7386 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
7387 typedefs.
7388
7389 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
7390
7391 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
7392 function.c, graphite-scop-detection.c, haifa-sched.c,
7393 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
7394 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
7395 varasm.c: Remove typedefs of structs.
7396
7397 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
7398
7399 * config/rs6000/altivec.h (vec_adde): New define.
7400 (vec_addec): Likewise.
7401 (vec_double): Likewise.
7402 (vec_bperm): Likewise.
7403 (vec_gb): Likewise.
7404 * config/rs6000/rs6000-builtin.def (ADDE): New
7405 BU_ALTIVEC_OVERLOAD_3.
7406 (ADDEC): Likewise.
7407 (DOUBLE): New BU_VSX_OVERLOAD_1.
7408 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
7409 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
7410 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
7411 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
7412 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
7413 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
7414 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
7415 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
7416 and P8V_BUILTIN_VEC_VBPERMQ.
7417
7418 2015-08-18 Jason Merrill <jason@redhat.com>
7419
7420 * print-tree.c (print_node): Handle TREE_BINFO.
7421
7422 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7423
7424 PR middle-end/36757
7425 * builtins.c (expand_builtin_signbit): Add asserts to make sure
7426 we can expand BUILT_IN_SIGNBIT inline.
7427 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
7428 * doc/extend.texi: Document the type-generic __builtin_signbit.
7429
7430 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
7431
7432 PR rtl-optimization/67218
7433 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
7434 (simplify_unary_operation_1): Use it.
7435
7436 2015-08-18 Marek Polacek <polacek@redhat.com>
7437
7438 PR middle-end/67222
7439 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
7440 if the call isn't valid.
7441 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
7442 gimple_call_builtin_p.
7443 (call_may_clobber_ref_p_1): Likewise.
7444 (stmt_kills_ref_p): Likewise.
7445
7446 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
7447
7448 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
7449 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
7450 (mips_hard_regno_scratch_ok): Likewise.
7451 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
7452 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
7453
7454 2015-08-18 Bin Cheng <bin.cheng@arm.com>
7455
7456 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
7457 (determine_value_range): Call refine_value_range_using_guard for
7458 each loop initial condition to improve value range.
7459
7460 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
7461
7462 * config/i386/i386.c: Remove include of fibheap.h.
7463
7464 2015-08-17 Richard Biener <rguenther@suse.de>
7465
7466 PR tree-optimization/67221
7467 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
7468 (sccvn_dom_walker::before_dom_children): Mark backedges of
7469 non-executable blocks as not executable.
7470
7471 2015-08-17 David Sherwood <david.sherwood@arm.com>
7472
7473 * config/arm/arm.c (neon_element_bits): Replace call to
7474 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
7475 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
7476 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
7477 (neon_vdup_lane<mode>): Likewise.
7478 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
7479 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
7480 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
7481 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
7482 * config/spu/spu.c (arith_immediate_p): Likewise.
7483 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
7484 * expr.c (expand_expr_real_2): Likewise.
7485 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
7486 * simplify-rtx.c (simplify_immed_subreg): Likewise.
7487 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
7488 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
7489 New variable.
7490 * fold-const.c (fold_binary_loc): Replace call to
7491 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
7492 GET_MODE_UNIT_PRECISION (m).
7493
7494 2015-08-17 Mike Stump <mikestump@comcast.net>
7495
7496 * config/arm/arm.c (arm_block_move_unaligned_straight):
7497 Emit normal move instead of unaligned load when source or destination
7498 are appropriately aligned.
7499
7500 2015-08-17 Richard Biener <rguenther@suse.de>
7501 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7502
7503 PR middle-end/16107
7504 * match.pd (div (coss (op @0) : New simplifier.
7505
7506 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
7507
7508 PR rtl-optimization/64164
7509 PR bootstrap/66978
7510 PR middle-end/66983
7511 PR rtl-optimization/67000
7512 PR middle-end/67034
7513 PR middle-end/67035
7514 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
7515 * tree-ssa-copyrename.c: Removed.
7516 * opts.c (default_options_table): Drop -ftree-copyrename. Add
7517 -ftree-coalesce-vars.
7518 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
7519 * common.opt (ftree-copyrename): Ignore.
7520 (ftree-coalesce-inlined-vars): Likewise.
7521 * doc/invoke.texi: Remove the ignored options above.
7522 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
7523 * tree-ssa-coalesce.h: ... here.
7524 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
7525 headers required by it.
7526 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
7527 across variables when flag_tree_coalesce_vars. Check register
7528 use and promoted modes to allow coalescing. Do not coalesce
7529 maybe-byref parms with SSA_NAMEs of other variables, or
7530 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
7531 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
7532 with its member functions to tree-ssa-coalesce.c.
7533 (var_map_base_init): Likewise. Renamed to
7534 compute_samebase_partition_bases.
7535 (partition_view_normal): Drop want_bases parameter.
7536 (partition_view_bitmap): Likewise.
7537 * tree-ssa-live.h: Adjust declarations.
7538 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
7539 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
7540 default defs at the entry point.
7541 (dump_part_var_map): New.
7542 (compute_optimized_partition_bases): New, called by...
7543 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
7544 of compute_samebase_partition_bases. Adjust.
7545 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
7546 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
7547 (ssa_default_def_partition): New.
7548 (get_rtl_for_parm_ssa_default_def): New.
7549 (align_local_variable, add_stack_var): Support anonymous SSA
7550 names.
7551 (defer_stack_allocation): Likewise. Declare earlier.
7552 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
7553 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
7554 Do no record deferred-allocation marker in
7555 SA.partition_to_pseudo.
7556 (expand_stack_vars): Adjust check for the marker in it.
7557 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
7558 redundant MEM attr setting.
7559 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
7560 from...
7561 (expand_one_stack_var): ... this. New wrapper to check and
7562 skip already expanded SSA partitions.
7563 (record_alignment_for_reg_var): New, factored out of...
7564 (expand_one_var): ... this.
7565 (expand_one_ssa_partition): New.
7566 (adjust_one_expanded_partition_var): New.
7567 (expand_one_register_var): Check and skip already expanded SSA
7568 partitions.
7569 (expand_used_vars): Don't create DECLs for anonymous SSA
7570 names. Expand all SSA partitions, then adjust all SSA names.
7571 (pass::execute): Replace the loops that set
7572 SA.partition_to_pseudo from partition leaders and cleared
7573 DECL_RTL for multi-location variables, and that which used to
7574 rename vars and set attrs, with one that clears DECL_RTL and
7575 checks that PARMs and RESULTs default_defs match DECL_RTL.
7576 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
7577 * emit-rtl.c: Include stor-layout.h.
7578 (set_reg_attrs_for_parm): Handle NULL decl.
7579 (set_reg_attrs_for_decl_rtl): Take mode from expression if
7580 it's not a DECL.
7581 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
7582 rather than its possibly-NULL DECL.
7583 * explow.c (promote_ssa_mode): New.
7584 * explow.h (promote_ssa_mode): Declare.
7585 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
7586 (read_complex_part): Export.
7587 * expr.h (read_complex_part): Declare.
7588 * cfgexpand.h (parm_maybe_byref_p): Declare.
7589 * function.c: Include cfgexpand.h.
7590 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
7591 (use_register_for_parm_decl): Wrapper for the above to
7592 special-case the result_ptr.
7593 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
7594 (split_complex_args): Take assign_parm_data_all argument.
7595 Pass it to rtl_for_parm. Set up rtl and context for split
7596 args. Reset complex parm before fetching its default decl
7597 rtl.
7598 (assign_parms_unsplit_complex): Use the default-def complex
7599 parm rtl if it matches the components.
7600 (assign_parms_augmented_arg_list): Adjust.
7601 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
7602 multiple locations. Recognize split complex args.
7603 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
7604 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
7605 (assign_parm_setup_block): Prefer SSA-assigned location, and
7606 fill in its address if the memory location of a maybe-byref
7607 parm was not assigned by cfgexpand.
7608 (assign_parm_setup_reg): Likewise. Adjust its mode as
7609 needed. Use entry_parm for equiv if stack_parm is NULL. Make
7610 sure passed_pointer parms don't need conversion. Copy address
7611 or value as needed.
7612 (assign_parm_setup_stack): Prefer SSA-assigned location.
7613 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
7614 rtl before testing for pointer bounds. Special-case result_ptr.
7615 (expand_function_start): Maybe reset DECL_RTL of result.
7616 Prefer SSA-assigned location for result and static chain.
7617 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
7618 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
7619 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
7620 anonymous SSA names. Use promote_ssa_mode.
7621 (get_temp_reg): Likewise.
7622 (remove_ssa_form): Adjust.
7623 * stor-layout.c (layout_decl): Don't set mem attributes of
7624 non-MEMs.
7625 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
7626 and get its reg_usage for reg invalidation.
7627 (compute_bb_dataflow): Pass it insn.
7628 (emit_notes_in_bb): Likewise.
7629
7630 2015-08-14 Marek Polacek <polacek@redhat.com>
7631
7632 * tree-core.h (tree_base): Fix typo.
7633
7634 2015-08-14 Marek Polacek <polacek@redhat.com>
7635
7636 PR middle-end/67133
7637 * gimple.c (infer_nonnull_range_by_attribute): Check that the
7638 nonnull argument position is not outside function arguments.
7639
7640 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
7641
7642 PR target/67143
7643 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
7644 'lconst_atomic' with 'const_atomic'.
7645 (atomic_fetch_<optab><mode>): Likewise.
7646 (atomic_<optab>_fetch<mode>): Likewise.
7647 * config/aarch64/iterators.md (lconst-atomic): Move below
7648 'const_atomic'.
7649 (const_atomic): New.
7650
7651 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
7652 Bernd Schmidt <bernds@codesourcery.com>
7653
7654 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
7655 debug options.
7656 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
7657 (DWARF2_DEBUGGING_INFO): Don't define.
7658 * debug.h (dwarf2_lineno_debug_hooks): Declare.
7659 * toplev.c (process_options): Add a case for it.
7660 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
7661 (dwarf2out_init): Skip most initializations if
7662 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
7663 case.
7664 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
7665 DWARF2_LINENO_DEBUGGING_INFO.
7666 * opts.c (set_debug_level): Likewise.
7667
7668 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
7669
7670 * config/arm/types.md (is_neon_type): Add missing types.
7671
7672 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
7673
7674 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
7675 for skylake.
7676 * config/i386/i386.c (PTA_SKYLAKE): New macros.
7677 (processor_alias_table): Add skylake description.
7678 (enum processor_model): Add skylake processor.
7679 (arch_names_table): Add skylake record.
7680 * doc/invoke.texi: Add skylake item.
7681
7682 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
7683
7684 * ira-int.h: Include recog.h.
7685 * ira-build.c: Don't include recog.h.
7686 * ira-color.c: Likewise.
7687 * ira-conflicts.c: Likewise.
7688 * ira-costs.c: Likewise.
7689 * ira-emit.c: Likewise.
7690 * ira-lives.c: Likewise.
7691 * ira.c: Likewise.
7692 * sched-deps.c: Likewise.
7693 * sel-sched.c: Likewise.
7694 * target-globals.c: Likewise.
7695
7696 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
7697
7698 PR bootstrap/55035
7699 * reload1.c (elimination_costs_in_insn): Make it obvious to the
7700 compiler that the n_dups and n_operands loop bounds are invariant.
7701
7702 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7703
7704 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
7705 expressions in A and B.
7706
7707 2015-08-13 Richard Biener <rguenther@suse.de>
7708
7709 * tree.c (nonnull_arg_p): Move from ...
7710 * tree-vrp.c (nonnull_arg_p): ... here.
7711 * tree.h (nonnull_arg_p): Declare.
7712 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
7713 here, register ptr != 0 for nonnull_arg_p pointer arguments.
7714 Properly initialize static chain and by-reference result pointer.
7715 (run_scc_vn): Adjust.
7716
7717 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
7718
7719 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
7720 TUNE_I6400.
7721
7722 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
7723
7724 * config/aarch64/aarch64-protos.h
7725 (aarch64_gen_atomic_cas): Declare.
7726 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
7727 Choose appropriate instruction pattern for the target.
7728 (aarch64_gen_atomic_cas): New.
7729 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
7730 (atomic_compare_and_swap<mode>_1): Rename to
7731 aarch64_compare_and_swap<mode>. Fix some indentation.
7732 (aarch64_compare_and_swap<mode>_lse): New.
7733 (aarch64_atomic_cas<mode>): New.
7734
7735 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
7736
7737 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
7738 (TARGET_LSE): New.
7739
7740 2015-08-13 Richard Biener <rguenther@suse.de>
7741
7742 PR tree-optimization/67191
7743 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
7744 assert we value-numbered last stmts operand because it can validly
7745 trigger for unreachable code.
7746
7747 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7748
7749 PR rtl-optimization/67103
7750 * ifcvt.c (noce_try_store_flag_constants): Move
7751 x = (-(test != 0) & (b - a)) + a transformation to...
7752 (noce_try_cmove): ... Here. Try it if normal conditional
7753 move fails.
7754
7755 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
7756
7757 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
7758 pseudo-processors.
7759 * config/mips/mips.md (processor): Remove w32 and w64.
7760
7761 2015-08-13 Richard Biener <rguenther@suse.de>
7762
7763 PR tree-optimization/66502
7764 PR tree-optimization/67167
7765 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
7766 backedge arguments.
7767 (vn_phi_lookup): Adjust.
7768 (vn_phi_insert): Likewise.
7769 (visit_phi): Prefer to value-number to another PHI node
7770 over value-numbering to a PHI argument.
7771 (init_scc_vn): Mark DFS back edges.
7772
7773 2015-08-13 Richard Biener <rguenther@suse.de>
7774
7775 * gimple.h (gcall::code_): New constant static member.
7776 (gcond::code_): Likewise.
7777 * gimple.c (gcall::code_): Define.
7778 (gcond::code_): Likewise.
7779 (is_a_helper <const gcond *>): Add.
7780 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
7781 and forward to a new gcall overload with less checking and a
7782 cheaper way to access the operand.
7783 (gimple_call_lhs_ptr): Likewise.
7784 (gimple_call_set_lhs): Likewise.
7785 (gimple_call_internal_p): Likewise.
7786 (gimple_call_with_bounds_p): Likewise.
7787 (gimple_call_set_with_bounds): Likewise.
7788 (gimple_call_internal_fn): Likewise.
7789 (gimple_call_set_ctrl_altering): Likewise.
7790 (gimple_call_ctrl_altering_p): Likewise.
7791 (gimple_call_fntype): Likewise.
7792 (gimple_call_fn): Likewise.
7793 (gimple_call_fn_ptr): Likewise.
7794 (gimple_call_set_fndecl): Likewise.
7795 (gimple_call_fndecl): Likewise.
7796 (gimple_call_chain): Likewise.
7797 (gimple_call_num_args): Likewise.
7798 (gimple_call_arg): Likewise.
7799 (gimple_call_arg_ptr): Likewise.
7800 (gimple_call_set_arg): Likewise.
7801 (gimple_call_noreturn_p): Likewise.
7802 (gimple_cond_code): Likewise.
7803 (gimple_cond_lhs): Likewise.
7804 (gimple_cond_rhs): Likewise.
7805 (gimple_has_lhs): Reduce checking.
7806
7807 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7808
7809 PR middle-end/25529
7810 * match.pd (div (mult @0 @1) @1) : New simplifier.
7811
7812 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
7813
7814 PR target/67071
7815 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
7816 predicate to allow construction of vector constants using the
7817 VSLDOI vector shift instruction.
7818
7819 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
7820 declaration.
7821
7822 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
7823 the number of bytes to be shifted left and filled in with either
7824 all zero or all one bits.
7825 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
7826 methods exist.
7827 (output_vec_const_move): On power8, generate XXLORC to generate
7828 a vector constant with all 1's. Do a split if we need to use a
7829 VSLDOI instruction.
7830
7831 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
7832 properly test for the MSB.
7833
7834 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
7835 vector constants that can be created with VSLDOI.
7836
7837 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
7838
7839 revert:
7840 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
7841 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
7842 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
7843 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
7844 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
7845 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
7846 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
7847 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
7848 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
7849
7850 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
7851
7852 * config/xtensa/constraints.md (define_constraint "Y"): New
7853 constraint.
7854 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
7855 * config/xtensa/linux.h (ASM_SPEC): Likewise.
7856 * config/xtensa/predicates.md (move_operand): Match constants
7857 and symbols in the presence of TARGET_AUTO_LITPOOLS.
7858 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
7859 immediate references to TLS data.
7860 (xtensa_emit_move_sequence): Don't force constants to memory in
7861 the presence of TARGET_AUTO_LITPOOLS.
7862 (print_operand): Add 'y' format, same as default, but capable of
7863 printing SF mode constants as well.
7864 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
7865 (movsf_internal): Add movi pattern that loads literal.
7866 (movsf, movdf): Don't force constants to memory in the presence
7867 of TARGET_AUTO_LITPOOLS.
7868 (movdf_internal): Add 'Y' constraint.
7869 * config/xtensa/xtensa.opt (mauto-litpools): New option.
7870 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
7871
7872 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
7873
7874 * config/arm/arm-fpus.def: Replace booleans with feature flags.
7875 Update comment.
7876 * config/arm/arm.c (ARM_FPU): Update macro.
7877 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
7878 (TARGET_FP16): Likewise.
7879 (TARGET_CRYPTO): Likewise.
7880 (TARGET_NEON): Likewise.
7881 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
7882 field features.
7883
7884 2015-08-12 Tom de Vries <tom@codesourcery.com>
7885
7886 PR other/67092
7887 PR other/67098
7888 * doc/install.texi: Remove --with_host_libstdcxx item. Update
7889 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
7890 accordingly. Mention default for --with-stage1-ldflags.
7891
7892 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
7893
7894 * config/arm/arm.h (arm_fpu_feature_set): New.
7895 (ARM_FPU_FSET_HAS): New.
7896 (FPU_FL_NONE): New.
7897 (FPU_FL_NEON): New.
7898 (FPU_FL_FP16): New.
7899 (FPU_FL_CRYPTO): New.
7900
7901 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7902
7903 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
7904 after -mcmodel=large -fPIC sorry.
7905
7906 2015-08-12 Richard Biener <rguenther@suse.de>
7907
7908 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
7909 comparison operand order and commutative ternary op operand order.
7910 (sccvn_dom_walker::cond_stack): New state to track temporary
7911 expressions.
7912 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
7913 no longer valid.
7914 (sccvn_dom_walker::record_cond): Add a single temporary conditional
7915 expression.
7916 (sccvn_dom_walker::record_conds): Add a temporary conditional
7917 expressions and all related expressions also true/false.
7918 (sccvn_dom_walker::before_dom_children): Record temporary
7919 expressions based on the controlling condition of a single
7920 predecessor. When trying to simplify a conditional statement
7921 lookup expressions we might have inserted earlier.
7922
7923 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
7924
7925 PR target/67127
7926 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
7927 to ARM core registers.
7928
7929 2015-08-12 Nathan Sidwell <nathan@acm.org>
7930
7931 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
7932 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
7933
7934 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
7935
7936 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
7937 line with comments.
7938 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
7939
7940 2015-08-12 Richard Biener <rguenther@suse.de>
7941
7942 * gimple.h (remove_pointer): New trait.
7943 (GIMPLE_CHECK2): New inline template function.
7944 (gassign::code_): New constant static member.
7945 (is_a_helper<const gassign *>): Add.
7946 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
7947 and forward to a new gassign overload with less checking and a
7948 cheaper way to access the operand.
7949 (gimple_assign_lhs_ptr): Likewise.
7950 (gimple_assign_set_lhs): Likewise.
7951 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
7952 Likewise.
7953 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
7954 Likewise.
7955 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
7956 Likewise.
7957 (gimple_assign_rhs_code): Likewise.
7958 * gimple.c (gassign::code_): Define.
7959
7960 2015-08-12 Richard Biener <rguenther@suse.de>
7961
7962 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7963 Eliminate edges marked as not executable by SCCVN.
7964 * tree-ssa-sccvn.c: Include gimple-iterator.h.
7965 (cond_dom_walker): Rename to sccvn_dom_walker.
7966 (sccvn_dom_walker::before_dom_children): Value-number defs
7967 of all stmts.
7968 (run_scc_vn): Remove loop value-numbering all SSA names.
7969 Drop not visited SSA names to varying.
7970
7971 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
7972
7973 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
7974 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
7975 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
7976 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
7977 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
7978 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
7979 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
7980 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
7981 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
7982
7983 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
7984
7985 PR target/66954
7986 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
7987 to enum feature_priority and feature_list.
7988 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
7989 and isa_names_table.
7990
7991 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
7992
7993 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
7994 vect_induction_def.
7995
7996 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
7997
7998 PR c/66098
7999 PR c/66711
8000 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
8001 account when deciding what was the command-line status.
8002
8003 2015-08-11 Nathan Sidwell <nathan@acm.org>
8004
8005 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
8006
8007 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
8008 we're not the only contributor to target phi.
8009
8010 2015-08-11 Jiong Wang <jiong.wang@arm.com>
8011
8012 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
8013 FIXED_REG0.
8014
8015 2015-08-11 Tom de Vries <tom@codesourcery.com>
8016
8017 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
8018
8019 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
8020
8021 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
8022 with CPU_SLM.
8023 * config/i386/i386.md (cpu): Remove knl.
8024
8025 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
8026
8027 PR libgomp/65742
8028 PR middle-end/66332
8029 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
8030 open-coded sequence.
8031 * omp-low.c (oacc_process_reduction_data): Remove handline of
8032 GOMP_DEVICE_HOST_NONSHM.
8033
8034 * lto-streamer-in.c (lto_input_mode_table): Adjust to
8035 GET_MODE_INNER changes.
8036
8037 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
8038 Ilya Verbin <ilya.verbin@intel.com>
8039
8040 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
8041
8042 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
8043
8044 * doc/options.texi (EnabledBy): Document that the argument must be
8045 a Common option.
8046 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
8047 Not enabled by -Wall.
8048 * optc-gen.awk: Give nicer error messages. Detect if the argument
8049 of EnabledBy is not a Common option.
8050 * common.opt (Wnull-dereference): Not enabled by -Wall.
8051 * opt-functions.awk (lang_enabled_by): Nicer error messages.
8052
8053 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
8054
8055 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
8056 model == 0x4f as Broadwell.
8057
8058 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8059
8060 PR rtl-optimization/67028
8061 * combine.c (simplify_comparison): Fix comment. Rearrange code.
8062 Add test to see if a const_int fits in the new mode.
8063
8064 2015-08-07 DJ Delorie <dj@redhat.com>
8065
8066 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
8067
8068 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
8069
8070 PR rtl-optimization/67029
8071 * ira-color.c: Include "recog.h" before including "ira-int.h".
8072 * target-globals.c: Likewise.
8073 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
8074 adds an alternative_mask argument and use it instead of
8075 preferred_alternatives.
8076 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
8077 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
8078 * sched-deps.c: Include "ira-int.h" after including "ira.h".
8079 (sched_analyze_insn): Update call to
8080 ira_implicitly_set_insn_hard_regs.
8081 * sel-sched.c: Include "ira-int.h" after including "ira.h".
8082 (implicit_clobber_conflict_p): Update call to
8083 ira_implicitly_set_insn_hard_regs.
8084
8085 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
8086
8087 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
8088
8089 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
8090
8091 PR target/67002
8092 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
8093 currently_expanding_to_rtl is set.
8094
8095 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
8096
8097 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
8098 * configure: Regenerate.
8099
8100 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8101 Jiong Wang <jiong.wang@arm.com>
8102
8103 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
8104 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
8105 (REG_CLASS_NAMES): Likewise.
8106 (REG_CLASS_CONTENTS): Likewise.
8107 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
8108 (aarch64_register_move_cost): Likewise.
8109 (aarch64_load_symref_appropriately): Invoke the new added pattern if
8110 possible.
8111 * config/aarch64/constraints.md (Uc0): New constraint.
8112
8113 2015-08-06 Jiong Wang <jiong.wang@arm.com>
8114
8115 * config/aarch64/constraints.md (Usf): Add the test of
8116 aarch64_is_noplt_call_p.
8117
8118 2015-08-06 Jiong Wang <jiong.wang@arm.com>
8119
8120 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
8121 declaration.
8122 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
8123 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
8124 (call_symbol): Likewise.
8125
8126 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
8127
8128 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
8129 for vectorizing multiplication patterns.
8130 * tree-vectorizer.h: Adjust the number of patterns.
8131
8132 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
8133
8134 * config/i386/sse.md (*vec_concatv2df): Declare added
8135 alternatives as sselog type.
8136
8137 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8138
8139 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
8140 all GPRs.
8141
8142 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8143
8144 * config/s390/s390.c (s390_expand_tbegin): Expand either
8145 tbegin_1_z13 or tbegin_1 depending on VX flag.
8146 * config/s390/s390.md ("tbegin_1_z13"): New expander.
8147
8148 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8149
8150 * config/s390/s390.opt: Clarify description for -mzvector
8151 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
8152 -mzvector.
8153
8154 2015-08-06 Richard Biener <rguenther@suse.de>
8155
8156 * gimple.h (gimple_call_set_fn): Access op member directly.
8157 (gimple_call_chain_ptr): Likewise.
8158 (gimple_call_set_chain): Likewise.
8159 (gimple_cond_lhs_ptr): Likewise.
8160 (gimple_cond_set_lhs): Likewise.
8161 (gimple_cond_rhs_ptr): Likewise.
8162 (gimple_cond_set_rhs): Likewise.
8163 (gimple_cond_true_label): Likewise.
8164 (gimple_cond_set_true_label): Likewise.
8165 (gimple_cond_set_false_label): Likewise.
8166 (gimple_cond_false_label): Likewise.
8167 (gimple_label_label): Likewise.
8168 (gimple_label_set_label): Likewise.
8169 (gimple_goto_set_dest): Likewise.
8170 (gimple_asm_input_op): Likewise.
8171 (gimple_asm_input_op_ptr): Likewise.
8172 (gimple_asm_set_input_op): Likewise.
8173 (gimple_asm_output_op): Likewise.
8174 (gimple_asm_output_op_ptr): Likewise.
8175 (gimple_asm_set_output_op): Likewise.
8176 (gimple_asm_clobber_op): Likewise.
8177 (gimple_asm_set_clobber_op): Likewise.
8178 (gimple_asm_label_op): Likewise.
8179 (gimple_asm_set_label_op): Likewise.
8180 (gimple_switch_index): Likewise.
8181 (gimple_switch_index_ptr): Likewise.
8182 (gimple_return_retval_ptr): Likewise.
8183 (gimple_return_retval): Likewise.
8184 (gimple_return_set_retval): Likewise.
8185 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
8186 (gimple_switch_label): Likewise.
8187 (gimple_switch_set_label): Likewise.
8188
8189 2015-08-06 Richard Biener <rguenther@suse.de>
8190
8191 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
8192 bool comparison canonicalization and restrict to integers.
8193
8194 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
8195
8196 * coretypes.h (enum symbol_visibility): Relocate here.
8197 * flag-types.h (enum symbol_visibility): Remove.
8198 * tree-core.h (enum symbol_visibility): Remove.
8199
8200 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
8201
8202 PR target/66870
8203 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
8204 for no_split_stack function attribute along with
8205 flag_split_stack.
8206 (rs6000_expand_split_stack_prologue): Likewise.
8207
8208 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
8209 Jeff Law <law@redhat.com>
8210
8211 PR c/16351
8212 * doc/invoke.texi (Wnull-dereference): New.
8213 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
8214 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
8215 Warn for potential NULL dereferences.
8216 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
8217 * ubsan.c (instrument_nonnull_arg): Call
8218 infer_nonnull_range_by_attribute.
8219 (instrument_nonnull_return): Likewise.
8220 * common.opt (Wnull-dereference); New.
8221 * gimple.c (infer_nonnull_range): Remove bool arguments.
8222 (infer_nonnull_range_by_dereference): New.
8223 (infer_nonnull_range_by_attribute): New.
8224 * gimple.h: Update declarations.
8225
8226 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
8227
8228 * gensupport.c (sequence_num): Replace with...
8229 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
8230 ...these new variables.
8231 (init_rtx_reader_args_cb): Update accordingly.
8232 (get_num_code_insns): Likewise.
8233 (read_md_rtx): Rework to use a while loop and get_c_test.
8234 Use the new counters. Remove redundant DEFINE_SUBST case.
8235 * genoutput.c (gen_split): Delete.
8236 (main): Don't call it.
8237
8238 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
8239
8240 * gensupport.h (get_c_test): Declare.
8241 * gensupport.c (get_c_test): New function.
8242 * genconditions.c (main): Use it.
8243 * genrecog.c (validate_pattern): Likewise.
8244 (match_pattern_1): Likewise. Remove c_test argument.
8245 (match_pattern): Update accordingly and remove c_test argument.
8246 (main): Update accordingly.
8247
8248 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
8249
8250 * gensupport.h (get_num_insn_codes): Declare.
8251 * gensupport.c (get_num_insn_codes): New function.
8252 * genattrtab.c (optimize_attrs): Rename max_insn_code to
8253 num_insn_codes.
8254 (main): Likewise. Use get_num_insn_codes.
8255 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
8256
8257 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
8258
8259 PR middle-end/66311
8260 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
8261 is zero- rather than sign-extended.
8262
8263 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
8264
8265 * target-insns.def (can_extend): Delete.
8266
8267 2015-08-05 Richard Biener <rguenther@suse.de>
8268
8269 PR tree-optimization/67121
8270 * tree-if-conv.c (combine_blocks): Clear range-info produced
8271 by stmts no longer executed conditionally.
8272
8273 2015-08-05 Nick Clifton <nickc@redhat.com>
8274
8275 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
8276 to allow identical far pointers to remain.
8277
8278 2015-08-05 Richard Biener <rguenther@suse.de>
8279
8280 PR middle-end/67120
8281 * match.pd: Compare address bases with == if they are decls
8282 or SSA names, not operand_equal_p. Otherwise fail.
8283
8284 2015-08-05 Richard Biener <rguenther@suse.de>
8285
8286 PR tree-optimization/67055
8287 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
8288 NULL gimple_block.
8289
8290 * g++.dg/torture/pr67055.C: New testcase.
8291
8292 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
8293
8294 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
8295 noavx512vl.
8296 (define_attr "enabled"): Handle avx521vl and noavx512vl.
8297 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
8298 AVX-512 alternative out of SSE.
8299 (define_insn "*vec_concatv2df"): Ditto.
8300
8301 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
8302
8303 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
8304 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
8305 CODE_FOR_avx_ptestv4di.
8306 * config/i386/sse.md (define_mode_iterator V_AVX): New.
8307 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
8308 (define_insn "avx_ptest256"): Merge this ...
8309 (define_insn "sse4_1_ptest"): And this ...
8310 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
8311
8312 2015-08-05 Richard Biener <rguenther@suse.de>
8313
8314 PR tree-optimization/67109
8315 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
8316 against too big groups. Print whether this is a load or store
8317 group. Rename from ...
8318 (vect_analyze_group_access): ... this which is now a wrapper
8319 dissolving an invalid group.
8320 (vect_analyze_data_ref_accesses): Print whether this is a load
8321 or store group.
8322
8323 2015-08-05 Richard Biener <rguenther@suse.de>
8324
8325 PR middle-end/67107
8326 * match.pd: Guard const_binop result checking against NULL_TREE
8327 result.
8328
8329 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
8330
8331 * cse.c (cse_insn): Restoring old behaviour for src_eqv
8332 when dest and value in the REG_EQUAL are same and dest
8333 is STRICT_LOW_PART.
8334
8335 2015-08-04 Anatoly Sokolov <aesok@post.ru>
8336
8337 * config/moxie/moxie.h (PRINT_OPERAND,
8338 PRINT_OPERAND_ADDRESS): Remove macros.
8339 * config/moxie/moxie-protos.h (moxie_print_operand,
8340 moxie_print_operand_address): Remove declaration.
8341 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
8342 TARGET_PRINT_OPERAND_ADDRESS): Define.
8343 (moxie_print_operand, moxie_print_operand_address): Make static.
8344
8345 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
8346
8347 PR target/66731
8348 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
8349 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
8350
8351 2015-08-04 Richard Biener <rguenther@suse.de>
8352
8353 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
8354 generated code.
8355 (dt_operand::gen_gimple_expr): Adjust.
8356
8357 2015-08-04 Richard Biener <rguenther@suse.de>
8358
8359 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
8360 bool compares on RHS.
8361 * match.pd: Add X ==/!= !X is false/true pattern.
8362
8363 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
8364
8365 * config/aarch64/aarch64.c: Change inner loop statement cost
8366 to be consistent with other targets.
8367
8368 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
8369
8370 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
8371 targets.
8372
8373 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
8374
8375 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
8376 (machine_function): Remove pseudos field.
8377
8378 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8379
8380 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
8381 Exit early and use target_option_current_node if processing current
8382 pragma.
8383
8384 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8385
8386 * doc/extend.texi (AArch64 Function Attributes): New node.
8387 (AArch64 Pragmas): Likewise.
8388
8389 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8390
8391 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
8392 Initialize simd builtins if TARGET_SIMD.
8393 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
8394 Make sure that the builtins are initialized only once no matter how
8395 many times the function is called.
8396 (aarch64_init_builtins): Unconditionally initialize crc builtins.
8397 (aarch64_relayout_simd_param): New function.
8398 (aarch64_simd_expand_args): Use above during argument expansion.
8399 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
8400 simd builtins if TARGET_SIMD.
8401 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
8402 prototype.
8403 (aarch64_relayout_simd_types): Likewise.
8404
8405 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8406
8407 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
8408 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
8409 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
8410 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
8411 static keyword.
8412 (aarch64_reset_previous_fndecl): New function.
8413 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
8414 the string.
8415 * config/aarch64/aarch64-c.c: New file.
8416 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
8417 Push and pop options at beginning and end. Remove ifdef
8418 __ARM_FEATURE_CRC32.
8419 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
8420 Add pragma +nothing+simd and +nothing+crypto where appropriate.
8421 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
8422 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
8423 Define prototype.
8424 (aarch64_register_pragmas): Likewise.
8425 (aarch64_reset_previous_fndecl): Likewise.
8426 (aarch64_process_target_attr): Likewise.
8427 (aarch64_override_options_internal): Likewise.
8428
8429 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8430
8431 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
8432 New function.
8433 (aarch64_can_inline_p): Likewise.
8434 (TARGET_CAN_INLINE_P): Define.
8435
8436 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8437
8438 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
8439 Remove static. Handle OPT_mgeneral_regs_only,
8440 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
8441 OPT_momit_leaf_frame_pointer.
8442 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
8443 (aarch64_attr_opt_type): New enum.
8444 (aarch64_attribute_info): New struct.
8445 (aarch64_handle_attr_arch): New function.
8446 (aarch64_handle_attr_cpu): Likewise.
8447 (aarch64_handle_attr_tune): Likewise.
8448 (aarch64_handle_attr_isa_flags): Likewise.
8449 (aarch64_attributes): New table.
8450 (aarch64_process_one_target_attr): New function.
8451 (num_occurences_in_str): Likewise.
8452 (aarch64_process_target_attr): Likewise.
8453 (aarch64_option_valid_attribute_p): Likewise.
8454 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
8455 * config/aarch64/aarch64-protos.h: Include input.h
8456 (aarch64_handle_option): Declare prototype.
8457
8458 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8459
8460 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
8461 * config/aarch64/aarch64.c: Include target-globals.h
8462 (aarch64_previous_fndecl): New variable.
8463 (aarch64_set_current_function): New function.
8464 (TARGET_SET_CURRENT_FUNCTION): Define.
8465
8466 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8467
8468 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
8469 (explicit_arch): Likewise.
8470 (x_aarch64_isa_flags): Likewise.
8471 (mgeneral-regs-only): Mark as Save.
8472 (mfix-cortex-a53-835769): Likewise.
8473 (mcmodel=): Likewise.
8474 (mstrict-align): Likewise.
8475 (momit-leaf-frame-pointer): Likewise.
8476 (mtls-dialect): Likewise.
8477 (master=): Likewise.
8478 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
8479 (aarch64_isa_flags): Remove extern declaration.
8480 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
8481 to indicate success or failure.
8482 (aarch64_validate_march): Likewise.
8483 (aarch64_validate_mtune): Likewise.
8484 (aarch64_isa_flags): Delete.
8485 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
8486 instead of aarch64_isa_flags.
8487 (aarch64_get_tune_cpu): New function.
8488 (aarch64_get_arch): Likewise.
8489 (aarch64_override_options): Use above and set up explicit_tune_core
8490 and explicit_arch.
8491 (aarch64_print_extension): Move earlier in file. Add isa_flags
8492 argument and use that instead of the global aarch64_isa_flags.
8493 (aarch64_option_save): New function.
8494 (aarch64_option_restore): Likewise.
8495 (aarch64_option_print): Likewise.
8496 (aarch64_declare_function_name): Likewise.
8497 (aarch64_start_file): Delete.
8498 (TARGET_ASM_FILE_START): Do not define.
8499 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
8500 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
8501 Declare prototype.
8502
8503 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8504
8505 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
8506 flag_omit_leaf_frame_pointer to 2.
8507
8508 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8509
8510 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
8511 define to 0 or 1.
8512 (TARGET_FIX_ERR_A53_835769): New macro.
8513 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
8514 handling of opts->x_aarch64_fix_a53_err835769.
8515 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
8516 than aarch64_fix_a53_err835769.
8517 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
8518 * config/aarch64/aarch64-linux.h: Likewise.
8519
8520 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
8521
8522 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
8523 ix86_expand_int_movcc as boolean.
8524
8525 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8526
8527 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
8528 (aarch64_cpu_string): Likewise.
8529 (aarch64_tune_string): Likewise.
8530 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
8531 (aarch64_parse_extension): Return aarch64_parse_opt_result.
8532 Add extra argument to put result into.
8533 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
8534 (aarch64_parse_cpu): Add arguments to put results into. Return
8535 aarch64_parse_opt_result.
8536 (aarch64_parse_tune): Likewise.
8537 (aarch64_override_options_after_change_1): New function.
8538 (aarch64_override_options_internal): New function.
8539 (aarch64_validate_mcpu): Likewise.
8540 (aarch64_validate_march): Likewise.
8541 (aarch64_validate_mtune): Likewise.
8542 (aarch64_override_options): Update to reflect above changes.
8543 Move some logic into aarch64_override_options_internal.
8544 Initialize target_option_default_node and target_option_current_node.
8545 (aarch64_override_options_after_change): Move logic into
8546 aarch64_override_options_after_change_1 and call it with global_options.
8547 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
8548 flag values from that.
8549
8550 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8551
8552 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
8553 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
8554 * config/aarch64/aarch64.c (struct processor): Add arch field.
8555 (all_architectures): Handle above, move above all_cores.
8556 (all_cores): Handle above.
8557 (aarch64_parse_arch): Handle above changes.
8558 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
8559 above. Update comments.
8560 (armv8.1-a): Likewise.
8561 * config/aarch64/aarch64-cores.def: Update according to above.
8562 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
8563 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
8564 aarch64_arch_driver_info.
8565
8566 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8567
8568 * config/aarch64/aarch64.c (struct processor): Add ident field.
8569 Rename core sched_core.
8570 (all_cores): Handle above changes.
8571 (all_architectures): Likewise.
8572 (aarch64_parse_arch): Likewise.
8573 (aarch64_override_options): Likewise.
8574
8575 2015-08-04 Richard Biener <rguenther@suse.de>
8576
8577 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
8578 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
8579 comparisons embedded in [VEC_]COND_EXPRs.
8580
8581 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
8582
8583 * tree-if-conv.c: Fix various typos in comments.
8584 * tree-vect-stmts.c: Likewise.
8585
8586 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
8587
8588 PR tree-optimization/67043
8589 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
8590 preheader after hoisting invariant in it.
8591 (find_defs): Force recomputation of all luids.
8592
8593 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
8594
8595 * config/rs6000/htm.md (tabort.): Restrict the source operand to
8596 using a base register.
8597
8598 2015-08-03 David Malcolm <dmalcolm@redhat.com>
8599
8600 * main.c (main): Pass in NULL for toplev's external_timer.
8601 * timevar.c: Include coretypes.h.
8602 (class timer::named_items): New.
8603 (timer::named_items::named_items): New.
8604 (timer::named_items::~named_items): New.
8605 (timer::named_items::push): New.
8606 (timer::named_items::pop): New.
8607 (timer::named_items::print): New.
8608 (timer::timer): Initialize field "m_jit_client_items".
8609 (timer::~timer): New.
8610 (timer::push): Move bulk of implementation to...
8611 (timer::push_internal): ...here. New function.
8612 (timer::pop): Move bulk of implementation to...
8613 (timer::pop_internal): ...here. New function.
8614 (timer::push_client_item): New.
8615 (timer::pop_client_item): New.
8616 (timer::print_row): New function, taken from timer::print.
8617 (timer::print): Print "GCC items" header if we also have client
8618 items. Move row-printing to timer::print_row. Print any client
8619 items.
8620 (timer::get_topmost_item_name): New method.
8621 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
8622 (TV_JIT_CLIENT_CODE): New.
8623 * timevar.h (timer::push_client_item): New declaration.
8624 (timer::pop_client_item): New declaration.
8625 (timer::get_topmost_item_name): New method.
8626 (timer::push_internal): New declaration.
8627 (timer::pop_internal): New declaration.
8628 (timer::print_row): New declaration.
8629 (timer::named_items): New declaration.
8630 (timer::m_jit_client_items): New field.
8631 (timer): Add friend class named_items.
8632 (auto_timevar::auto_timevar): Add timer param.
8633 (auto_timevar::~auto_timevar): Use field "m_timer".
8634 (auto_timevar::m_timer): New field.
8635 * toplev.c (initialize_rtl): Add g_timer as param when
8636 constructing auto_timevar instance.
8637 (toplev::toplev): Add "external_timer" param, and use it to
8638 initialize the "g_timer" global if non-NULL.
8639 (toplev::~toplev): If this created "g_timer", delete it.
8640 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
8641 with "external_timer" timer *.
8642
8643 2015-08-03 Alexander Basov <coohpt@gmail.com>
8644
8645 PR middle-end/64744
8646 PR middle-end/48470
8647 PR middle-end/43404
8648 * cfgexpand.c (expand_one_var): Add check if stack is going to
8649 be used in naked function.
8650 * expr.c (expand_expr_addr_expr_1): Remove excess checking
8651 whether expression should not reside in MEM.
8652 * function.c (use_register_for_decl): Do not use registers for
8653 non-register things (volatile, float, BLKMode) in naked functions.
8654
8655 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
8656
8657 PR target/67060
8658 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
8659 Adjust splits to match new pattern.
8660
8661 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
8662
8663 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
8664 (VEC_M): Likewise.
8665 (VEC_N): Likewise.
8666 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
8667 point in VSX registers.
8668
8669 * config/rs6000/constraints.md (wb constraint): Document unused
8670 w<x> constraint.
8671 (we constraint): Likewise.
8672 (wo constraint): Likewise.
8673 (wp constraint): New constraint for IEEE 128-bit floating point in
8674 VSX registers.
8675 (wq constraint): Likewise.
8676
8677 * config/rs6000/predicates.md (easy_fp_constant): Add support for
8678 IEEE 128-bit floating point in VSX registers.
8679 (easy_scalar_constant): Likewise.
8680
8681 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
8682 constraints (wp, wq) for IEEE 128-bit floating point in VSX
8683 registers.
8684 (rs6000_init_hard_regno_mode_ok): Likewise.
8685
8686 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
8687 floating point in VSX registers.
8688 (VSX_L): Likewise.
8689 (VSX_M): Likewise.
8690 (VSX_M2): Likewise.
8691 (VSm): Likewise.
8692 (VSs): Likewise.
8693 (VSr): Likewise.
8694 (VSa): Likewise.
8695 (VSv): Likewise.
8696 (vsx_le_permute_<mode>): Add support to properly swap bytes for
8697 IEEE 128-bit floating point in VSX registers on little endian.
8698 (vsx_le_undo_permute_<mode>): Likewise.
8699 (vsx_le_perm_load_<mode>): Likewise.
8700 (vsx_le_perm_store_<mode>): Likewise.
8701 (splitters for IEEE 128-bit fp moves): Likewise.
8702
8703 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
8704 wq constraints.
8705
8706 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
8707 floating point in VSX registers.
8708 (VM2): Likewise.
8709
8710 * doc/md.text (Machine Constraints): Document wp and wq
8711 constraints on PowerPC.
8712
8713 2015-08-03 Jeff Law <law@redhat.com>
8714
8715 PR middle-end/66314
8716 PR gcov-profile/66899
8717 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
8718 iterate over the jump threading paths when an element in the
8719 jump threading paths array is eliminated.
8720
8721 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
8722
8723 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
8724
8725 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
8726
8727 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
8728 is_use_properly_guarded the variable def_preds. Free its
8729 contents before returning.
8730 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
8731 (is_use_properly_guarded): Replace local variable def_preds with
8732 a parameter. Adjust accordingly. Only update *def_preds if it's
8733 the empty vector.
8734
8735 2015-08-03 Richard Biener <rguenther@suse.de>
8736
8737 * genmatch.c (simplify::for_subst_vec): New member.
8738 (binary_ok): New helper for for lowering.
8739 (lower_for): Delay substituting operators into result expressions
8740 if we can merge the results eventually again.
8741 (capture_info::walk_result): Adjust for user_id appearing as
8742 result expression operator.
8743 (expr::gen_transform): Likewise.
8744 (dt_simplify::gen_1): Likewise.
8745 (dt_simplify::gen): Pass not substituted operators to tail
8746 functions or initialize local variable with it.
8747 (decision_tree::gen): Adjust function signature.
8748 * match.pd: Fix tests against global code and add default
8749 cases to switch stmts.
8750
8751 2015-08-03 Richard Biener <rguenther@suse.de>
8752
8753 * genmatch.c (dt_simplify::gen): Create captures array
8754 with an initializer.
8755
8756 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8757
8758 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
8759 the host compiler is affected by placement new aliasing bug.
8760 * configure: Regenerate.
8761 * Makefile.in (ALIASING_FLAGS): New variable.
8762 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
8763
8764 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
8765
8766 PR target/66731
8767 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
8768 (negmulsf3_vfp): Likewise.
8769 (muldf3negdf_vfp): Disable for -frounding-math.
8770 (mulsf3negsf_vfp): Likewise.
8771 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
8772 fix MULT cost with -frounding-math.
8773
8774 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8775
8776 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
8777 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
8778 explicit. Prefer to add the flag whenever possible.
8779 (noce_process_if_block): Try noce_try_store_flag_constants before
8780 noce_try_cmove.
8781
8782 2015-08-03 Richard Biener <rguenther@suse.de>
8783
8784 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
8785 New hash-map to record equivalent transforms.
8786 (dt_node::analyze): Populate the equivalent transforms hash-map.
8787 (dt_simplify::info): Add reference to hash-map entry.
8788 (dt_simplify::gen): If we have split out a function for the
8789 transform, generate a call to it.
8790 (sinfo_hashmap_traits::hash): New function.
8791 (compare_op): New helper function for ...
8792 (sinfo_hashmap_traits::equal_keys): ... this new function.
8793 (decision_tree::gen): Split out common equivalent transforms
8794 into functions.
8795
8796 2015-08-03 Richard Biener <rguenther@suse.de>
8797
8798 * gimple-fold.c (fold_gimple_assign): Remove folding of
8799 the comparison in COND_EXPRs.
8800
8801 2015-08-03 Richard Biener <rguenther@suse.de>
8802
8803 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
8804 on the rhs of assignments first simplify the embedded
8805 GENERIC condition.
8806
8807 2015-08-03 Richard Biener <rguenther@suse.de>
8808
8809 PR tree-optimization/66917
8810 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
8811 field.
8812 (DR_VECT_AUX): New macro.
8813 (set_dr_misalignment): Adjust.
8814 (dr_misalignment): Likewise.
8815 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
8816 Compute whether the base is at least element aligned.
8817 * tree-vect-stmts.c (ensure_base_align): Adjust.
8818 (vectorizable_store): If the base is not element aligned
8819 preserve alignment of the original access if misalignment is unknown.
8820 (vectorizable_load): Likewise.
8821
8822 2015-08-02 Martin Sebor <msebor@redhat.com>
8823
8824 * c-family/c.opt (-Wframe-address): New warning option.
8825 * doc/invoke.texi (Wframe-address): Document it.
8826 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
8827 Clarify possible effects of calling the functions with non-zero
8828 arguments and mention -Wframe-address.
8829 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
8830
8831 2015-08-01 Michael Collison <michael.collison@linaro.org
8832 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8833
8834 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
8835 (*arm_umin_cmp): Likewise.
8836
8837 2015-08-01 Caroline Tice <cmtice@google.com>
8838
8839 PR 66521
8840 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
8841 global variables.
8842 (vtbl_find_mangled_name): New function.
8843 (vtbl_register_mangled_name): New function.
8844 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
8845 mangled name in mangled name vectors.
8846 (find_or_create_vtbl_map_node): Ditto.
8847 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
8848 update recursion_depth on function entry; pass it to every recursive
8849 call; automatically exit if depth > 25 (give up looking at that point).
8850 (verify_bb_vtables): Initialize recursion_depth and pass it to
8851 var_is_used_for_virtual_call_p.
8852 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
8853 global variable decls.
8854 (vtbl_register_mangled_name): New extern function decl.
8855
8856 2015-08-01 Tom de Vries <tom@codesourcery.com>
8857
8858 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
8859 function.
8860 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
8861 Declare.
8862 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
8863 operation_no_trapping_overflow. Allow non-overflow operations.
8864 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
8865 operations.
8866
8867 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
8868
8869 PR target/67049
8870 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
8871
8872 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8873
8874 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
8875 Enable for TARGET_32BIT.
8876 (*if_move_neg): Likewise.
8877
8878 2015-07-31 Nick Clifton <nickc@redhat.com>
8879
8880 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
8881 Returns true for __model__.
8882 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
8883
8884 2015-07-31 Alan Modra <amodra@gmail.com>
8885
8886 PR target/66870
8887 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
8888 (rs6000_emit_prologue): Set it.
8889 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
8890
8891 2015-07-31 Richard Biener <rguenther@suse.de>
8892
8893 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
8894 -> X == (C1 ^ C2) which is already implemented in match.pd.
8895 Remove redundant dispatching to fold_relational_const.
8896 Move unordered self and NaN compares ...
8897 * match.pd: ... as patterns here. Remove some stray captures
8898 and add a comment.
8899
8900 2015-07-31 Petr Murzin <petr.murzin@intel.com>
8901
8902 * config/i386/i386.c
8903 (bdesc_special_args): Convert mask type from signed to unsigned for
8904 masked builtins.
8905 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
8906 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
8907 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
8908 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
8909 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
8910 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
8911 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
8912 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
8913 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
8914 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
8915 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
8916 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
8917 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
8918 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
8919 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
8920 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
8921 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
8922 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
8923 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
8924 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
8925 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
8926 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
8927 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
8928 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
8929 * config/i386/i386-builtin-types.def
8930 (V16QI_FTYPE_V16SI): Remove.
8931 (V8DF_FTYPE_V8SI): Ditto.
8932 (V8HI_FTYPE_V8DI): Ditto.
8933 (V8SI_FTYPE_V8DI): Ditto.
8934 (V8SF_FTYPE_V8DF): Ditto.
8935 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
8936 (V16HI_FTYPE_V16SI): Ditto.
8937 (V16SF_FTYPE_V16HI): Ditto.
8938 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
8939 (V16SF_FTYPE_V16SI): Ditto.
8940 (V4DI_FTYPE_V4DI): Ditto.
8941 (V16SI_FTYPE_V16SF): Ditto.
8942 (V16SF_FTYPE_FLOAT): Ditto.
8943 (V8DF_FTYPE_DOUBLE): Ditto.
8944 (V8DI_FTYPE_INT64): Ditto.
8945 (V8DI_FTYPE_V4DI): Ditto.
8946 (V16QI_FTYPE_V8DI): Ditto.
8947 (UINT_FTYPE_V4SF): Ditto.
8948 (UINT64_FTYPE_V4SF): Ditto.
8949 (UINT_FTYPE_V2DF): Ditto.
8950 (UINT64_FTYPE_V2DF): Ditto.
8951 (V16SI_FTYPE_V16SI): Ditto.
8952 (V8DI_FTYPE_V8DI): Ditto.
8953 (V16SI_FTYPE_PV4SI): Ditto.
8954 (V16SF_FTYPE_PV4SF): Ditto.
8955 (V8DI_FTYPE_PV2DI): Ditto.
8956 (V8DF_FTYPE_PV2DF): Ditto.
8957 (V4DI_FTYPE_PV2DI): Ditto.
8958 (V4DF_FTYPE_PV2DF): Ditto.
8959 (V16SI_FTYPE_PV2SI): Ditto.
8960 (V16SF_FTYPE_PV2SF): Ditto.
8961 (V8DI_FTYPE_PV4DI): Ditto.
8962 (V8DF_FTYPE_PV4DF): Ditto.
8963 (V8SF_FTYPE_FLOAT): Ditto.
8964 (V4SF_FTYPE_FLOAT): Ditto.
8965 (V4DF_FTYPE_DOUBLE): Ditto.
8966 (V8SF_FTYPE_PV4SF): Ditto.
8967 (V8SI_FTYPE_PV4SI): Ditto.
8968 (V4SI_FTYPE_PV2SI): Ditto.
8969 (V8SF_FTYPE_PV2SF): Ditto.
8970 (V8SI_FTYPE_PV2SI): Ditto.
8971 (V16SF_FTYPE_PV8SF): Ditto.
8972 (V16SI_FTYPE_PV8SI): Ditto.
8973 (V8DI_FTYPE_V8SF): Ditto.
8974 (V4DI_FTYPE_V4SF): Ditto.
8975 (V2DI_FTYPE_V4SF): Ditto.
8976 (V64QI_FTYPE_QI): Ditto.
8977 (V32HI_FTYPE_HI): Ditto.
8978 (V8UHI_FTYPE_V8UHI): Ditto.
8979 (V16UHI_FTYPE_V16UHI): Ditto.
8980 (V32UHI_FTYPE_V32UHI): Ditto.
8981 (V2UDI_FTYPE_V2UDI): Ditto.
8982 (V4UDI_FTYPE_V4UDI): Ditto.
8983 (V8UDI_FTYPE_V8UDI): Ditto.
8984 (V4USI_FTYPE_V4USI): Ditto.
8985 (V8USI_FTYPE_V8USI): Ditto.
8986 (V16USI_FTYPE_V16USI): Ditto.
8987 (V2DF_FTYPE_V2DF_UINT64): Ditto.
8988 (V2DI_FTYPE_V2DF_V2DF): Ditto.
8989 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
8990 (V8DF_FTYPE_V8DF_V8DI): Ditto.
8991 (V4SF_FTYPE_V4SF_UINT64): Ditto.
8992 (V4SI_FTYPE_V4SF_V4SF): Ditto.
8993 (V16SF_FTYPE_V16SF_V16SI): Ditto.
8994 (V64QI_FTYPE_V32HI_V32HI): Ditto.
8995 (V32HI_FTYPE_V16SI_V16SI): Ditto.
8996 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
8997 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
8998 (V32HI_FTYPE_V64QI_V64QI): Ditto.
8999 (V32HI_FTYPE_V32HI_V32HI): Ditto.
9000 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
9001 (V16SI_FTYPE_V16SI_V4SI): Ditto.
9002 (V16SI_FTYPE_V16SI_V16SI): Ditto.
9003 (V16SI_FTYPE_V32HI_V32HI): Ditto.
9004 (V16SI_FTYPE_V16SI_SI): Ditto.
9005 (V8DI_FTYPE_V8DI_V8DI): Ditto.
9006 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
9007 (V8DI_FTYPE_V16SI_V16SI): Ditto.
9008 (V8DI_FTYPE_V8DI_V2DI): Ditto.
9009 (QI_FTYPE_QI): Ditto.
9010 (SI_FTYPE_SI): Ditto.
9011 (DI_FTYPE_DI): Ditto.
9012 (QI_FTYPE_QI_QI): Ditto.
9013 (QI_FTYPE_QI_INT): Ditto.
9014 (HI_FTYPE_HI_INT): Ditto.
9015 (SI_FTYPE_SI_INT): Ditto.
9016 (DI_FTYPE_DI_INT): Ditto.
9017 (HI_FTYPE_V16QI_V16QI): Ditto.
9018 (SI_FTYPE_V32QI_V32QI): Ditto.
9019 (DI_FTYPE_V64QI_V64QI): Ditto.
9020 (QI_FTYPE_V8HI_V8HI): Ditto.
9021 (HI_FTYPE_V16HI_V16HI): Ditto.
9022 (SI_FTYPE_V32HI_V32HI): Ditto.
9023 (QI_FTYPE_V4SI_V4SI): Ditto.
9024 (QI_FTYPE_V8SI_V8SI): Ditto.
9025 (QI_FTYPE_V2DI_V2DI): Ditto.
9026 (QI_FTYPE_V4DI_V4DI): Ditto.
9027 (QI_FTYPE_V8DI_V8DI): Ditto.
9028 (HI_FTYPE_V16SI_V16SI): Ditto.
9029 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
9030 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
9031 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
9032 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
9033 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
9034 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
9035 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
9036 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
9037 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
9038 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
9039 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
9040 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
9041 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
9042 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
9043 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
9044 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
9045 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
9046 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
9047 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
9048 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
9049 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
9050 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
9051 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
9052 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
9053 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
9054 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
9055 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
9056 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
9057 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
9058 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
9059 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
9060 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
9061 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
9062 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
9063 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
9064 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
9065 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
9066 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
9067 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
9068 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
9069 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
9070 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
9071 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
9072 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
9073 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
9074 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
9075 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
9076 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
9077 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
9078 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
9079 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
9080 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
9081 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
9082 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
9083 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
9084 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
9085 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
9086 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
9087 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
9088 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
9089 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
9090 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
9091 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
9092 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
9093 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
9094 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
9095 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
9096 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
9097 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
9098 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
9099 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
9100 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
9101 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
9102 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
9103 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
9104 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
9105 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
9106 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
9107 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
9108 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
9109 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
9110 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
9111 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
9112 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
9113 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
9114 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
9115 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
9116 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
9117 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
9118 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
9119 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
9120 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
9121 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
9122 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
9123 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
9124 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
9125 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
9126 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
9127 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
9128 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
9129 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
9130 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
9131 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
9132 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
9133 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
9134 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
9135 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
9136 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
9137 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
9138 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
9139 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
9140 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
9141 (HI_FTYPE_HI): Ditto.
9142 (HI_FTYPE_V16QI): Ditto.
9143 (SI_FTYPE_V32QI): Ditto.
9144 (DI_FTYPE_V64QI): Ditto.
9145 (QI_FTYPE_V8HI): Ditto.
9146 (HI_FTYPE_V16HI): Ditto.
9147 (SI_FTYPE_V32HI): Ditto.
9148 (QI_FTYPE_V4SI): Ditto.
9149 (QI_FTYPE_V8SI): Ditto.
9150 (HI_FTYPE_V16SI): Ditto.
9151 (QI_FTYPE_V2DI): Ditto.
9152 (QI_FTYPE_V4DI): Ditto.
9153 (QI_FTYPE_V8DI): Ditto.
9154 (V16QI_FTYPE_HI): Ditto.
9155 (V32QI_FTYPE_SI): Ditto.
9156 (V64QI_FTYPE_DI): Ditto.
9157 (V8HI_FTYPE_QI): Ditto.
9158 (V16HI_FTYPE_HI): Ditto.
9159 (V32HI_FTYPE_SI): Ditto.
9160 (V4SI_FTYPE_QI): Ditto.
9161 (V4SI_FTYPE_HI): Ditto.
9162 (V8SI_FTYPE_QI): Ditto.
9163 (V8SI_FTYPE_HI): Ditto.
9164 (V2DI_FTYPE_QI): Ditto.
9165 (V4DI_FTYPE_QI): Ditto.
9166 (HI_FTYPE_HI_HI): Ditto.
9167 (SI_FTYPE_SI_SI): Ditto.
9168 (DI_FTYPE_DI_DI): Ditto.
9169 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
9170 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
9171 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
9172 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
9173 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
9174 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
9175 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
9176 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
9177 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
9178 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
9179 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
9180 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
9181 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
9182 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
9183 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
9184 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
9185 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
9186 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
9187 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
9188 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
9189 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
9190 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
9191 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
9192 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
9193 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
9194 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
9195 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
9196 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
9197 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
9198 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
9199 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
9200 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
9201 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
9202 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
9203 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
9204 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
9205 (V16SI_FTYPE_HI): Ditto.
9206 (V8DI_FTYPE_QI): Ditto.
9207 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
9208 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
9209 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
9210 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
9211 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
9212 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
9213 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
9214 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
9215 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
9216 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
9217 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
9218 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
9219 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
9220 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
9221 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
9222 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
9223 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
9224 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
9225 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
9226 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
9227 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
9228 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
9229 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
9230 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
9231 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
9232 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
9233 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
9234 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
9235 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
9236 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
9237 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
9238 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
9239 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
9240 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
9241 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
9242 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
9243 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
9244 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
9245 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
9246 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
9247 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
9248 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
9249 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
9250 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
9251 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
9252 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
9253 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
9254 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
9255 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
9256 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
9257 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
9258 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
9259 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
9260 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
9261 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
9262 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
9263 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
9264 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
9265 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
9266 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
9267 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
9268 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
9269 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
9270 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
9271 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
9272 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
9273 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
9274 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
9275 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
9276 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
9277 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
9278 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
9279 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
9280 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
9281 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
9282 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
9283 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
9284 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
9285 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
9286 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
9287 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
9288 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
9289 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
9290 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
9291 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
9292 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
9293 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
9294 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
9295 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
9296 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
9297 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
9298 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
9299 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
9300 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
9301 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
9302 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
9303 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
9304 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
9305 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
9306 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
9307 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
9308 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
9309 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
9310 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
9311 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
9312 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
9313 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
9314 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
9315 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
9316 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
9317 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
9318 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
9319 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
9320 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
9321 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
9322 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
9323 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
9324 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
9325 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
9326 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
9327 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
9328 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
9329 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
9330 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
9331 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
9332 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
9333 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
9334 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
9335 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
9336 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
9337 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
9338 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
9339 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
9340 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
9341 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
9342 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
9343 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
9344 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
9345 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
9346 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
9347 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
9348 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
9349 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
9350 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
9351 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
9352 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
9353 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
9354 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
9355 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
9356 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
9357 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
9358 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
9359 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
9360 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
9361 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
9362 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
9363 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
9364 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
9365 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
9366 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
9367 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
9368 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
9369 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
9370 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
9371 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
9372 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
9373 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
9374 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
9375 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
9376 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
9377 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
9378 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
9379 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
9380 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
9381 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
9382 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
9383 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
9384 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
9385 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
9386 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
9387 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
9388 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
9389 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
9390 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
9391 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
9392 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
9393 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
9394 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
9395 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
9396 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
9397 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
9398 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
9399 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
9400 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
9401 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
9402 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
9403 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
9404 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
9405 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
9406 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
9407 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
9408 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
9409 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
9410 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
9411 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
9412 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
9413 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
9414 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
9415 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
9416 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
9417 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
9418 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
9419 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
9420 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
9421 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
9422 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
9423 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
9424 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
9425 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
9426 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
9427 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
9428 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
9429 (QI_FTYPE_V8DF_INT_QI): Ditto.
9430 (QI_FTYPE_V4DF_INT_QI): Ditto.
9431 (QI_FTYPE_V2DF_INT_QI): Ditto.
9432 (HI_FTYPE_V16SF_INT_HI): Ditto.
9433 (QI_FTYPE_V8SF_INT_QI): Ditto.
9434 (QI_FTYPE_V4SF_INT_QI): Ditto.
9435 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
9436
9437 2015-07-31 Richard Biener <rguenther@suse.de>
9438
9439 * gimple-fold.c (fold_gimple_assign): Remove folding of
9440 GIMPLE_BINARY_RHS.
9441
9442 2015-07-31 Tom de Vries <tom@codesourcery.com>
9443
9444 PR tree-optimization/66846
9445 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
9446 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
9447 (expand_omp_target) [ENABLE_CHECKING]: Same.
9448 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
9449 cfun if !LOOPS_NEED_FIXUP.
9450 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
9451 that omp_for already has its own loop struct.
9452 * tree-parloops.c (create_phi_for_local_result)
9453 (create_call_for_reduction): Handle simple latch bb.
9454 (create_parallel_loop): Add simple latch bb to preserve
9455 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
9456 (gen_parallel_loop): Remove call to cancel_loop_tree.
9457 (parallelize_loops): Skip loops that are inner loops of parallelized
9458 loops.
9459 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
9460 verify_loop_structure.
9461
9462 2015-07-30 Anatoly Sokolov <aesok@post.ru>
9463
9464 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
9465 * config/v850/v850.md (RV_REGNUM): New constants.
9466 * config/v850/v850.c (v850_libcall_value): New functions.
9467 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
9468 (TARGET_LIBCALL_VALUE): Define.
9469
9470 2015-07-30 Anatoly Sokolov <aesok@post.ru>
9471
9472 * rtl.h (lowpart_subreg): Move in file.
9473 * loop-iv.c (lowpart_subreg): Move to...
9474 * simplify-rtx.c (lowpart_subreg): ...here.
9475 (simplify_binary_operation_1): Use lowpart_subreg instead of
9476 simplify_gen_subreg.
9477 * expr.c (expand_expr_real_2): Ditto.
9478 * emit-rtl.c (gen_lowpart_common): Ditto.
9479 * combine.c (gen_lowpart_for_combine): Ditto.
9480 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
9481 expand_debug_source_expr): Ditto.
9482
9483 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
9484
9485 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
9486 (expand_builtin_atomic_clear): Remove support for atomic_clear
9487 pattern.
9488
9489 2015-07-30 Richard Biener <rguenther@suse.de>
9490
9491 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
9492 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
9493 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
9494 redundant operand canonicalization.
9495
9496 2015-07-30 David Sherwood <david.sherwood@arm.com>
9497
9498 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
9499 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
9500 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
9501 * config/arm/arm.c (neon_valid_immediate): Likewise.
9502 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
9503 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
9504 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
9505 (expand_vec_perm_vpshufb2_vpermq): Likewise.
9506 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
9507 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
9508 * config/i386/sse.md
9509 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
9510 (*ssse3_palignr<mode>_perm): Likewise.
9511 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
9512 * config/spu/spu.c (arith_immediate_p): Likewise.
9513 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9514 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
9515
9516 2015-07-30 Richard Biener <rguenther@suse.de>
9517
9518 * genmatch.c (decision_tree::gen_gimple): Merge with ...
9519 (decision_tree::gen_generic): ... this into ...
9520 (decision_tree::gen): ... this.
9521 (main): Adjust callers.
9522
9523 2015-07-30 Richard Biener <rguenther@suse.de>
9524
9525 * genmatch.c (verbose): New global.
9526 (warning_at): Add overload with source_location.
9527 (capture_info::capture_info): Add bool whether generating gimple
9528 or generic. Add gimple member.
9529 (capture_info::cinfo): Add capture member.
9530 (capture_info::walk_match): Record capture. Warn on
9531 non-captured leafs.
9532 (capture_info::walk_c_expr): Add more fragments captures cannot
9533 escape through. Warn on escaped captures.
9534 (dt_simplify::gen_1): Warn on operands we force to have no
9535 side-effects.
9536 (main): Initialize verbose.
9537 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
9538
9539 2015-07-30 Richard Biener <rguenther@suse.de>
9540
9541 PR middle-end/67053
9542 * match.pd: Allow both operands to independently have conversion
9543 when simplifying compares of addresses.
9544
9545 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
9546
9547 PR target/66217
9548 PR target/67045
9549 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
9550 around those cases that need one.
9551
9552 2015-07-29 Aditya Kumar <hiraditya@msn.com>
9553
9554 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
9555
9556 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
9557
9558 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
9559 New. Copied from config/i386/gnu-user.h.
9560 (ASM_COMMENT_START): Likewise.
9561 (DBX_REGISTER_NUMBER): Likewise.
9562
9563 2015-07-29 Richard Biener <rguenther@suse.de>
9564
9565 * gimple-fold.c (fold_gimple_cond): Remove.
9566 (fold_stmt_1): Do not call it.
9567
9568 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
9569
9570 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
9571 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
9572
9573 * config/aarch64/aarch64-modes.def: Add HFmode.
9574
9575 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
9576 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
9577
9578 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
9579 aarch64_promoted_type): New.
9580
9581 (aarch64_float_const_representable_p): Disable HFmode.
9582 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
9583 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
9584 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
9585
9586 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
9587 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
9588
9589 * config/aarch64/iterators.md (GPF_F16): New.
9590
9591 2015-07-29 Richard Biener <rguenther@suse.de>
9592
9593 * match.pd: Merge address comparison patterns and make them
9594 handle some more cases.
9595
9596 2015-07-29 Richard Biener <rguenther@suse.de>
9597
9598 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
9599 (parser::parse_capture): Add bool argument on whether to reject
9600 unknown captures.
9601 (parser::parse_expr): Adjust.
9602 (parser::parse_op): Likewise.
9603 (parser::parse_pattern): Likewise.
9604
9605 2015-07-29 Richard Biener <rguenther@suse.de>
9606
9607 * gimple-fold.c (has_use_on_stmt): New function.
9608 (replace_stmt_with_simplification): Use it to allow
9609 abnormals originally referenced in the stmt.
9610 (fold_stmt_1): Canonicalize operand order.
9611
9612 2015-07-28 David Sherwood <david.sherwood@arm.com>
9613
9614 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
9615 GET_MODE_INNER unconditionally.
9616 * config/spu/spu.c (arith_immediate_p): Likewise.
9617 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
9618 * expmed.c (synth_mult): Remove check for VOIDmode result from
9619 GET_MODE_INNER.
9620 (expand_mult_const): Likewise.
9621 * fold-const.c (fold_binary_loc): Replace call to element_precision
9622 with call to GET_MODE_PRECISION.
9623 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
9624 m->name.
9625 (emit_mode_inner): Likewise.
9626 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
9627 result check.
9628 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
9629 (GET_MODE_UNIT_PRECISION): Likewise.
9630 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
9631 * simplify-rtx.c (simplify_immed_subreg): Likewise.
9632 * stor-layout.c (bitwise_type_for_mode): Update assert.
9633 (element_precision): Remove.
9634
9635 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
9636
9637 * target-insns.def (reload_load_address): New targetm instruction
9638 pattern.
9639 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
9640
9641 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
9642
9643 * target-insns.def (atomic_test_and_set): New targetm instruction
9644 pattern.
9645 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
9646 HAVE_*/gen_* interface.
9647
9648 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
9649
9650 * target-insns.def (can_extend, ptr_extend): New targetm instruction
9651 patterns.
9652 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
9653 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
9654 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
9655 * rtlanal.c (nonzero_bits1): Likewise.
9656 (num_sign_bit_copies1): Likewise.
9657
9658 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
9659
9660 * target-insns.def (eh_return): New targetm instruction pattern.
9661 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
9662 interface.
9663 * function.c (thread_prologue_and_epilogue_insns): Remove
9664 preprocessor condition.
9665
9666 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
9667
9668 * target-insns.def (indirect_jump): New targetm instruction pattern.
9669 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
9670 interface.
9671
9672 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
9673
9674 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
9675 instead of nonimmediate_operand. Remove C condiition.
9676
9677 2015-07-28 Richard Biener <rguenther@suse.de>
9678
9679 * match.pd: Add more simplification of address comparisons.
9680
9681 2015-07-28 Richard Biener <rguenther@suse.de>
9682
9683 * match.pd: Re-order two cases in comparison with max/min
9684 value simplification to make it apply for bools.
9685
9686 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9687
9688 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
9689 Handle simple SIGN_EXTEND or ZERO_EXTEND.
9690 (aarch64_rtx_costs): Properly strip extend or extract before
9691 passing down to rtx costs again.
9692
9693 2015-07-28 Nick Clifton <nickc@redhat.com>
9694
9695 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
9696 Optimizes the case where -mes0 is active and a constant symbolic
9697 address is used.
9698 * config/rl78/rl78-protos.h: Prototype the new function.
9699 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
9700
9701 2015-07-28 Tom de Vries <tom@codesourcery.com>
9702
9703 * tree-parloops.c (reduc_stmt_res): New function.
9704 (initialize_reductions, add_field_for_reduction)
9705 (create_phi_for_local_result, create_loads_for_reductions)
9706 (create_stores_for_reduction, build_new_reduction): Handle case that
9707 reduc_stmt is a phi.
9708 (gather_scalar_reductions): Allow double_reduc reductions.
9709
9710 2015-07-28 Richard Biener <rguenther@suse.de>
9711
9712 * fold-const.c (fold_comparison): Remove equality folding
9713 of decl addresses ...
9714 * match.pd: ... here and merge with existing pattern.
9715
9716 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
9717
9718 PR tree-optimization/66828
9719 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
9720 from int64_t to uint64_t.
9721
9722 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
9723
9724 * opts-common.c (read_cmdline_option): List DriverOnly enum values
9725 as valid only in the error message of the driver, not in the
9726 messages of the language compilers.
9727
9728 2015-07-27 Tom de Vries <tom@codesourcery.com>
9729
9730 * tree-parloops.c (gather_scalar_reductions): Simplify function
9731 structure.
9732
9733 2015-07-27 Marek Polacek <polacek@redhat.com>
9734
9735 * ipa-devirt.c (types_same_for_odr): Fix typo.
9736
9737 2015-07-27 Jason Merrill <jason@redhat.com>
9738
9739 PR debug/66468
9740 * dwarf2out.c (gen_inlined_subroutine_die): Check
9741 cgraph_function_possibly_inlined_p.
9742
9743 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
9744
9745 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
9746 Place integer variant first.
9747 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
9748
9749 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
9750
9751 PR/63870
9752 * config/arm/arm-builtins.c (enum arm_builtins):
9753 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
9754 (ARM_BUILTIN_NEON_BASE): Rename macro to....
9755 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
9756 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
9757 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
9758
9759 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
9760
9761 PR/63870
9762 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
9763 Add qualifier_lane_index.
9764 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
9765 (arm_getlane_qualifiers): Use qualifier_lane_index.
9766 (arm_lanemac_qualifiers): Rename to...
9767 (arm_mac_n_qualifiers): ...this.
9768 (LANEMAC_QUALIFIERS): Rename to...
9769 (MAC_N_QUALIFIERS): ...this.
9770 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
9771 (arm_setlane_qualifiers): Use qualifier_lane_index.
9772 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
9773 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
9774 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
9775 (arm_expand_neon_builtin): Handle qualifier_lane_index.
9776
9777 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
9778 * config/arm/arm.c (bounds_check): Likewise, improve error message.
9779 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
9780 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
9781 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
9782 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
9783 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
9784 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
9785 qualifiers to TERNOP_IMM.
9786 (vdup_lane): Change qualifiers to GETLANE.
9787 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
9788 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
9789 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
9790 vqdmlsl_n): Change qualifiers to MAC_N.
9791
9792 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
9793 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
9794 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
9795 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
9796 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
9797 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
9798 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
9799 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
9800 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
9801 Remove call to neon_lane_bounds.
9802
9803 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
9804
9805 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
9806 Place integer variant first.
9807
9808 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
9809
9810 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
9811 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
9812 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
9813 for armv6kz targets.
9814 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
9815 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
9816 (FL_FOR_ARCH6ZK): Remove.
9817 (FL_FOR_ARCH6KZ): New.
9818 (arm_arch6zk): New declaration.
9819 * config/arm/arm-tables.opt: Regenerate.
9820 * config/arm/arm.c (arm_arch6kz): New.
9821 (arm_option_override): Set arm_arch6kz.
9822 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
9823 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
9824 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
9825
9826 2015-07-27 Marek Polacek <polacek@redhat.com>
9827
9828 PR c++/66555
9829 PR c/54979
9830 * doc/invoke.texi: Document -Wtautological-compare.
9831
9832 2015-07-27 Richard Biener <rguenther@suse.de>
9833
9834 * genmatch.c (decision_tree::gen_gimple): Split out large
9835 subtrees into separate functions.
9836 (decision_tree::gen_generic): Likewise.
9837
9838 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
9839
9840 * config/alpha/alpha.c: Use SUBREG_P predicate.
9841 * config/alpha/predicates.md: Ditto.
9842
9843 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
9844
9845 * config.host (s390*-*-*): Include driver-native.c only when
9846 building with s390* as host *and* target.
9847
9848 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
9849
9850 PR target/66930
9851 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
9852 T bit register modified_between_p check.
9853
9854 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
9855
9856 * config/i386/i386.c: Use SUBREG_P predicate.
9857 * config/i386/i386.md: Ditto.
9858 * config/i386/sse.md: Ditto.
9859 * config/i386/predicates.md: Ditto.
9860
9861 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
9862
9863 PR target/67004
9864 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
9865 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
9866
9867 2015-07-25 Sebastian Pop <s.pop@samsung.com>
9868
9869 * Makefile.in: Remove use of TREEBROWSER.
9870 * config.in: Regenerated.
9871 * configure: Regenerated.
9872 * configure.ac: Remove definition of TREEBROWSER.
9873 * tree-browser.c: Removed.
9874 * tree-browser.def: Removed.
9875
9876 2015-07-25 Sebastian Pop <s.pop@samsung.com>
9877
9878 * graphite-scop-detection.c: Include gimple-pretty-print.h.
9879 (stmt_simple_for_scop_p): Print when a stmt is not handled in
9880 Graphite.
9881 (scopdet_basic_block_info): Print when a loop or bb cannot be
9882 represented in Graphite.
9883
9884 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
9885
9886 PR target/66648
9887 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
9888 execution guard when min_size is less than size_needed.
9889
9890 2015-07-25 Sebastian Pop <s.pop@samsung.com>
9891
9892 * doc/install.texi: Document supported versions of ISL.
9893
9894 2015-07-25 Jeff Law <law@redhat.com>
9895
9896 Revert:
9897 PR lto/66752
9898 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
9899 unable to find X NE 0 in the tables, return X as the simplified
9900 condition.
9901 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
9902 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
9903 to VISISTED_BBS. */
9904 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
9905 after removing the control flow statement and unnecessary edges.
9906
9907 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
9908
9909 Revert:
9910 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
9911
9912 PR rtl-optimization/64164
9913 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
9914 * tree-ssa-copyrename.c: Removed.
9915 * opts.c (default_options_table): Drop -ftree-copyrename. Add
9916 -ftree-coalesce-vars.
9917 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
9918 * common.opt (ftree-copyrename): Ignore.
9919 (ftree-coalesce-inlined-vars): Likewise.
9920 * doc/invoke.texi: Remove the ignored options above.
9921 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
9922 * tree-ssa-coalesce.h: ... here.
9923 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
9924 headers required by it.
9925 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
9926 across variables when flag_tree_coalesce_vars. Check register
9927 use and promoted modes to allow coalescing. Moved to
9928 tree-ssa-coalesce.c.
9929 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
9930 with its member functions to tree-ssa-coalesce.c.
9931 (var_map_base_init): Likewise. Renamed to
9932 compute_samebase_partition_bases.
9933 (partition_view_normal): Drop want_bases parameter.
9934 (partition_view_bitmap): Likewise.
9935 * tree-ssa-live.h: Adjust declarations.
9936 * tree-ssa-coalesce.c: Include explow.h.
9937 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
9938 default defs at the entry point.
9939 (dump_part_var_map): New.
9940 (compute_optimized_partition_bases): New, called by...
9941 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
9942 of compute_samebase_partition_bases. Adjust.
9943 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
9944 * cfgexpand.c (leader_merge): New.
9945 (get_rtl_for_parm_ssa_default_def): New.
9946 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
9947 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
9948 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
9949 redundant MEM attr setting.
9950 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
9951 from...
9952 (expand_one_stack_var): ... this. New wrapper to check and
9953 skip already expanded SSA partitions.
9954 (record_alignment_for_reg_var): New, factored out of...
9955 (expand_one_var): ... this.
9956 (expand_one_ssa_partition): New.
9957 (adjust_one_expanded_partition_var): New.
9958 (expand_one_register_var): Check and skip already expanded SSA
9959 partitions.
9960 (expand_used_vars): Don't create DECLs for anonymous SSA
9961 names. Expand all SSA partitions, then adjust all SSA names.
9962 (pass::execute): Replace the loops that set
9963 SA.partition_to_pseudo from partition leaders and cleared
9964 DECL_RTL for multi-location variables, and that which used to
9965 rename vars and set attrs, with one that clears DECL_RTL and
9966 checks that PARMs and RESULTs default_defs match DECL_RTL.
9967 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
9968 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
9969 * explow.c (promote_ssa_mode): New.
9970 * explow.h (promote_ssa_mode): Declare.
9971 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
9972 * function.c: Include cfgexpand.h.
9973 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
9974 (use_register_for_parm_decl): Wrapper for the above to
9975 special-case the result_ptr.
9976 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
9977 (split_complex_args): Take assign_parm_data_all argument.
9978 Pass it to rtl_for_parm. Set up rtl and context for split
9979 args.
9980 (assign_parms_augmented_arg_list): Adjust.
9981 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
9982 multiple locations. Recognize split complex args.
9983 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
9984 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
9985 (assign_parm_setup_block): Prefer SSA-assigned location.
9986 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
9987 if stack_parm is NULL.
9988 (assign_parm_setup_stack): Prefer SSA-assigned location.
9989 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
9990 rtl before testing for pointer bounds. Special-case result_ptr.
9991 (expand_function_start): Maybe reset DECL_RTL of result.
9992 Prefer SSA-assigned location for result and static chain.
9993 Factor out DECL_RESULT and SET_DECL_RTL.
9994 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
9995 anonymous SSA names. Use promote_ssa_mode.
9996 (get_temp_reg): Likewise.
9997 (remove_ssa_form): Adjust.
9998 * stor-layout.c (layout_decl): Don't set mem attributes of
9999 non-MEMs.
10000 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10001 and get its reg_usage for reg invalidation.
10002 (compute_bb_dataflow): Pass it insn.
10003 (emit_notes_in_bb): Likewise.
10004
10005 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
10006
10007 * config/i386/i386.c (ix86_va_start): Remove
10008 unneeded !TARGET_64BIT check.
10009 (ix86_gimplify_va_arg): Ditto.
10010
10011 2015-07-24 Tom de Vries <tom@codesourcery.com>
10012
10013 * graphite-sese-to-poly.c (build_poly_scop): Always call
10014 rewrite_commutative_reductions_out_of_ssa.
10015
10016 2015-07-24 Tom de Vries <tom@codesourcery.com>
10017
10018 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
10019 flag_associative_math to FLOAT_TYPE_P. Honour
10020 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
10021
10022 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
10023
10024 PR c++/64079
10025 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
10026 and "%qD" in warning_at instead of "%q+D" in warning.
10027
10028 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
10029
10030 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
10031 (ix86_function_abi): Cleanup.
10032
10033 2015-07-24 Michael Darling <darlingm@gmail.com>
10034
10035 PR other/66259
10036 * acinclude.m4: Reflects renaming of configure.in to configure.ac
10037 * configure: Likewise
10038 * configure.ac: Likewise
10039 * doc/install.texi: Likewise
10040 * doc/tm.texi: Likewise
10041 * doc/tm.texi.in: Likewise
10042
10043 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10044
10045 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
10046 manually swapping values.
10047 * cse.c (fold_rtx): Likewise.
10048 * lra-eliminations.c (form_sum): Likewise.
10049
10050 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
10051
10052 PR target/64003
10053 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
10054 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
10055 (*jcc_1, *jcc_2, jump, simple_return_internal)
10056 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
10057 Set length_nobnd attribute instead of length attribute.
10058 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
10059 (length_nobnd): Remove attribute.
10060 (length): Remove length_nobnd processing.
10061
10062 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
10063
10064 * gimplify.c (omp_default_clause): New function. Reorganize flow
10065 for clarity. Broken out of ...
10066 (omp_notice_variable): ... here.
10067
10068 2015-07-24 Gary Funck <gary@intrepid.com>
10069
10070 PR middle-end/66984
10071 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
10072 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
10073
10074 2015-07-24 Tom de Vries <tom@codesourcery.com>
10075
10076 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
10077 exit-first loop transform.
10078
10079 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
10080
10081 PR 66714
10082 * tree-cfg.c (struct replace_decls_d): New struct.
10083 (replace_block_vars_by_duplicates_1): New function.
10084 (replace_block_vars_by_duplicates): Use it to replace the decls
10085 in the value exprs by duplicates.
10086
10087 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
10088
10089 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
10090 -shared, -symbolic, -rdynamic.
10091
10092 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
10093
10094 PR target/65711
10095 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
10096 -dynamic-linker within %{!static %{!shared, and -rdynamic within
10097 %{!static.
10098
10099 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
10100
10101 PR ipa/66566
10102 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
10103 edge summary is available.
10104
10105 2015-07-24 Richard Biener <rguenther@suse.de>
10106
10107 * genmatch.c (struct dt_node): Add statistic fields.
10108 (dt_node::analyze): New method.
10109 (decision_tree::gen_gimple): Call analyze on the root node
10110 and print statistics to stderr.
10111 (decision_tree::gen_generic): Likewise.
10112
10113 2015-07-24 Richard Biener <rguenther@suse.de>
10114
10115 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
10116 against the highest or lowest possible integer ...
10117 * match.pd: ... as patterns here.
10118
10119 2015-07-24 Richard Biener <rguenther@suse.de>
10120
10121 * genmatch.c (struct capture_info): Add same_as field.
10122 (capture_info::capture_info): Initialize same_as.
10123 (capture_info::walk_match): Compute same_as.
10124 (capture_info::walk_result): Compute stuff for the leader.
10125 (capture_info::walk_c_expr): Likewise.
10126 (dt_simplify::gen_1): Only look at leaders when deciding
10127 to force no side-effects or emit side-effects of omitted operands.
10128
10129 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10130
10131 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
10132 reg note to the GPR -> FPR save instructions.
10133
10134 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10135
10136 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
10137 cheaper.
10138 (s390_expand_insv): Don't generate risbg pattern for constant zero
10139 sources.
10140 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
10141 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
10142 splitters.
10143
10144 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
10145
10146 * config/s390/s390.c (s390_reorg): Clean up handling of processors
10147 with
10148 -mtune=
10149 (s390_issue_rate): Likewise.
10150 (s390_sched_reorder): Likewise.
10151 (s390_sched_variable_issue): Likewise.
10152 (s390_loop_unroll_adjust): Likewise.
10153 (s390_option_override): Likewise.
10154
10155 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
10156
10157 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
10158 processor capabilities with -march=native.
10159 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
10160 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
10161 (S390_TARGET_BITS_STRING): Macro to simplify specs.
10162
10163 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
10164
10165 * config/s390/s390.c (s390_issue_rate): Handle
10166 PROCESSOR_2094_Z9_EC.
10167 (s390_option_override): Likewise.
10168 (s390_adjust_priority): Likewise.
10169
10170 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
10171
10172 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
10173 when cross compiling.
10174
10175 2015-07-24 Richard Biener <rguenther@suse.de>
10176
10177 * fold-const.c (maybe_canonicalize_comparison_1): Move
10178 A code CST canonicalization ...
10179 * match.pd: ... to a pattern here.
10180
10181 2015-07-24 Jiong Wang <jiong.wang@arm.com>
10182
10183 Revert:
10184 2015-07-22 Jiong Wang <jiong.wang@arm.com>
10185 PR target/63521
10186 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
10187 (HONOR_REG_ALLOC_ORDER): Define.
10188
10189 2015-07-24 Richard Biener <rguenther@suse.de>
10190
10191 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
10192 * fold-const.c (fold_comparison): Move parameter does not
10193 alias &local simplification ...
10194 * match.pd: ... as a pattern here.
10195
10196 2015-07-24 Richard Biener <rguenther@suse.de>
10197
10198 * gimple-fold.c (replace_stmt_with_simplification): Special-case
10199 valueizing call operands.
10200 * gimple-match-head.c (maybe_push_res_to_seq): Take
10201 number of call arguments from ops array.
10202 (do_valueize): New function.
10203 (gimple_simplify): Return true if valueization changed
10204 any operand even if the result didn't simplify further.
10205
10206 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10207
10208 PR middle-end/25530
10209 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
10210
10211 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10212
10213 PR middle-end/25529
10214 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
10215
10216 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
10217
10218 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
10219 instruction.
10220
10221 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
10222
10223 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
10224 clean up.
10225
10226 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
10227
10228 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
10229 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
10230 targets here.
10231 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
10232 ms_va_list_type_node initialization.
10233
10234 2015-07-23 Jeff Law <law@redhat.com>
10235
10236 PR lto/66752
10237 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
10238 unable to find X NE 0 in the tables, return X as the simplified
10239 condition.
10240 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
10241 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
10242 to VISISTED_BBS. */
10243 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
10244 after removing the control flow statement and unnecessary edges.
10245
10246 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
10247
10248 * tree-pass.h (get_current_pass_name): Removed.
10249
10250 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
10251
10252 PR rtl-optimization/64164
10253 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10254 * tree-ssa-copyrename.c: Removed.
10255 * opts.c (default_options_table): Drop -ftree-copyrename. Add
10256 -ftree-coalesce-vars.
10257 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10258 * common.opt (ftree-copyrename): Ignore.
10259 (ftree-coalesce-inlined-vars): Likewise.
10260 * doc/invoke.texi: Remove the ignored options above.
10261 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10262 * tree-ssa-coalesce.h: ... here.
10263 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10264 headers required by it.
10265 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10266 across variables when flag_tree_coalesce_vars. Check register
10267 use and promoted modes to allow coalescing. Moved to
10268 tree-ssa-coalesce.c.
10269 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10270 with its member functions to tree-ssa-coalesce.c.
10271 (var_map_base_init): Likewise. Renamed to
10272 compute_samebase_partition_bases.
10273 (partition_view_normal): Drop want_bases parameter.
10274 (partition_view_bitmap): Likewise.
10275 * tree-ssa-live.h: Adjust declarations.
10276 * tree-ssa-coalesce.c: Include explow.h.
10277 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10278 default defs at the entry point.
10279 (dump_part_var_map): New.
10280 (compute_optimized_partition_bases): New, called by...
10281 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10282 of compute_samebase_partition_bases. Adjust.
10283 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10284 * cfgexpand.c (leader_merge): New.
10285 (get_rtl_for_parm_ssa_default_def): New.
10286 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10287 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10288 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
10289 redundant MEM attr setting.
10290 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
10291 from...
10292 (expand_one_stack_var): ... this. New wrapper to check and
10293 skip already expanded SSA partitions.
10294 (record_alignment_for_reg_var): New, factored out of...
10295 (expand_one_var): ... this.
10296 (expand_one_ssa_partition): New.
10297 (adjust_one_expanded_partition_var): New.
10298 (expand_one_register_var): Check and skip already expanded SSA
10299 partitions.
10300 (expand_used_vars): Don't create DECLs for anonymous SSA
10301 names. Expand all SSA partitions, then adjust all SSA names.
10302 (pass::execute): Replace the loops that set
10303 SA.partition_to_pseudo from partition leaders and cleared
10304 DECL_RTL for multi-location variables, and that which used to
10305 rename vars and set attrs, with one that clears DECL_RTL and
10306 checks that PARMs and RESULTs default_defs match DECL_RTL.
10307 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10308 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
10309 * explow.c (promote_ssa_mode): New.
10310 * explow.h (promote_ssa_mode): Declare.
10311 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10312 * function.c: Include cfgexpand.h.
10313 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10314 (use_register_for_parm_decl): Wrapper for the above to
10315 special-case the result_ptr.
10316 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10317 (split_complex_args): Take assign_parm_data_all argument.
10318 Pass it to rtl_for_parm. Set up rtl and context for split
10319 args.
10320 (assign_parms_augmented_arg_list): Adjust.
10321 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10322 multiple locations. Recognize split complex args.
10323 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10324 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
10325 (assign_parm_setup_block): Prefer SSA-assigned location.
10326 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
10327 if stack_parm is NULL.
10328 (assign_parm_setup_stack): Prefer SSA-assigned location.
10329 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
10330 rtl before testing for pointer bounds. Special-case result_ptr.
10331 (expand_function_start): Maybe reset DECL_RTL of result.
10332 Prefer SSA-assigned location for result and static chain.
10333 Factor out DECL_RESULT and SET_DECL_RTL.
10334 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10335 anonymous SSA names. Use promote_ssa_mode.
10336 (get_temp_reg): Likewise.
10337 (remove_ssa_form): Adjust.
10338 * stor-layout.c (layout_decl): Don't set mem attributes of
10339 non-MEMs.
10340 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10341 and get its reg_usage for reg invalidation.
10342 (compute_bb_dataflow): Pass it insn.
10343 (emit_notes_in_bb): Likewise.
10344
10345 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
10346
10347 PR target/66217
10348 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
10349 prototype.
10350 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
10351 (rs6000_emit_2insn_and): Handle dot forms.
10352 * config/rs6000/rs6000.md (and<mode>3): Adjust.
10353 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
10354 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
10355
10356 2015-07-23 Richard Biener <rguenther@suse.de>
10357
10358 * generic-match-head.c: Include cgraph.h.
10359 * gimple-match-head.c: Likewise.
10360 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
10361 SSA names.
10362 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
10363 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
10364 pattern.
10365
10366 2015-07-23 Richard Biener <rguenther@suse.de>
10367
10368 * gimple-fold.c (fold_gimple_cond): Do not require folding
10369 results to pass valid_gimple_rhs_p.
10370 * tree-cfg.h (fold_cond_expr_cond): Remove.
10371 * tree-cfg.c (fold_cond_expr_cond): Likewise.
10372 (make_edges): Do not call it.
10373 * tree-inline.c (tree_function_versioning): Likewise.
10374
10375 2015-07-23 Tom de Vries <tom@codesourcery.com>
10376
10377 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
10378 vect_force_simple_reduction.
10379 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
10380 (vect_is_simple_reduction_1): Add and handle
10381 need_wrapping_integral_overflow parameter.
10382 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
10383 need_wrapping_integral_overflow parameter.
10384 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
10385 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
10386 decl.
10387
10388 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
10389
10390 PR tree-optimization/66926,66951
10391 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
10392 INNER_LOOP and fix up condition for renaming virtual operands.
10393
10394 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10395
10396 * combine.c (try_combine): Use std::swap instead of manually
10397 swapping.
10398
10399 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
10400
10401 * config/mips/i6400.md: New file.
10402 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
10403 (mips64r6): Likewise.
10404 (i6400): Define.
10405 * config/mips/mips-tables.opt: Regenerate.
10406 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
10407 (mips_issue_rate): Add support for i6400.
10408 (mips_multipass_dfa_lookahead): Likewise.
10409 * config/mips/mips.h (TUNE_I6400): Define.
10410 * config/mips/mips.md: Include i6400.md.
10411 (processor): Add i6400.
10412 * doc/invoke.texi (-march=@var{arch}): Add i6400.
10413
10414 2015-07-23 Richard Biener <rguenther@suse.de>
10415
10416 PR middle-end/66916
10417 * match.pd: Guard widen and sign-change comparison simplification
10418 with single_use.
10419
10420 2015-07-23 Richard Biener <rguenther@suse.de>
10421
10422 PR tree-optimization/66945
10423 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
10424 ::before_dom_children): Force the propagators idea of
10425 non-executable edges to materialize, not what the folder
10426 chooses.
10427
10428 2015-07-23 Richard Biener <rguenther@suse.de>
10429
10430 * gimple.h (gimple_cond_make_false): Use 0 != 0.
10431 (gimple_cond_make_true): Use 1 != 0.
10432
10433 2015-07-22 DJ Delorie <dj@redhat.com>
10434
10435 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
10436 slashes.
10437
10438 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
10439 (ashrhi3): Likewise.
10440 (lshrhi3): Likewise.
10441 (movhi): Take advantage of zero-extend to load small constants.
10442 (movpsi): Likewise.
10443 (and<mode>3): Likewise.
10444 (zero_extendqihi2): Likewise.
10445 (zero_extendqisi2): New.
10446 * config/msp430/constraints.md (N,O): New.
10447 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
10448
10449 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
10450
10451 PR target/66954
10452 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
10453 to enum feature_priority and feature_list.
10454 (fold_builtin_cpu): Add F_AES to enum processor_features
10455 and isa_names_table.
10456
10457 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
10458
10459 PR driver/66737
10460 * config/i386/linux-common.h (MPX_SPEC): Use linker option
10461 for 64bit target only.
10462
10463 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
10464
10465 * config/nvptx/nvptx.c: Expand some comments.
10466
10467 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
10468
10469 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
10470 (cortex_a53_advsimd): ...This.
10471
10472 2015-07-22 Richard Biener <rguenther@suse.de>
10473
10474 * genmatch.c (expr::gen_transform): Clarify error message
10475 and display location.
10476
10477 2015-07-22 Richard Biener <rguenther@suse.de>
10478
10479 * genmatch.c (struct operand): Add location member.
10480 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
10481 constructors.
10482 (struct simplify): Remove match_location and result_location
10483 members.
10484 (elsehwere): Adjust.
10485
10486 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
10487
10488 * config/mips/m5100.md: New file.
10489 * config/mips/mips-cpus.def (m5100, m5101): Define.
10490 * config/mips/mips-tables.opt: Regenerate.
10491 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
10492 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
10493 -march=m5101 to -mips32r5.
10494 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
10495 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
10496 !-msoft-float.
10497 * config/mips/mips.md: Include m5100.md.
10498 (processor): Add m5100.
10499 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
10500
10501 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
10502
10503 * config/mips/mips-cpus.def (interaptiv): Define.
10504 * config/mips/mips-tables.opt: Regenerate.
10505 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
10506 -mips32r2.
10507 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
10508 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
10509
10510 2015-07-22 Jiong Wang <jiong.wang@arm.com>
10511
10512 PR target/63521
10513 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
10514 (HONOR_REG_ALLOC_ORDER): Define.
10515
10516 2015-07-22 Richard Biener <rguenther@suse.de>
10517
10518 PR tree-optimization/66952
10519 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
10520 blocks we end up executing unconditionally reset all SSA
10521 info such as range and alignment.
10522 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
10523 * tree-ssanames.c (reset_flow_sensitive_info): New function.
10524
10525 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
10526
10527 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
10528 typo in attribute.
10529
10530 2015-07-22 Richard Biener <rguenther@suse.de>
10531
10532 * genmatch.c (parser::parse_result): Properly handle
10533 match with result operands and conditions.
10534
10535 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
10536
10537 PR target/63870
10538 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
10539 Add qualifier_struct_load_store_lane_index.
10540 (aarch64_types_loadstruct_lane_qualifiers): Use
10541 qualifier_struct_load_store_lane_index for lane index argument for
10542 last argument.
10543 (aarch64_types_storestruct_lane_qualifiers): Ditto.
10544 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
10545 (aarch64_simd_expand_args): Add new argument describing mode of
10546 builtin. Check lane bounds for arguments with
10547 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
10548 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
10549 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
10550 (aarch64_simd_expand_builtin): Handle arguments with
10551 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
10552 aarch64_simd_expand_args.
10553 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
10554 vst[234]_lane with BUILTIN_VALLDIF.
10555 * config/aarch64/aarch64-simd.md:
10556 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
10557 endianness reversal on lane index.
10558 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
10559 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
10560 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
10561 (vec_store_lanesci_lane<mode>): Ditto.
10562 (vec_store_lanesxi_lane<mode>): Ditto.
10563 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
10564 reversal of lane index.
10565 (aarch64_ld3_lane<mode>): Ditto.
10566 (aarch64_ld4_lane<mode>): Ditto.
10567 (aarch64_st2_lane<mode>): Ditto.
10568 (aarch64_st3_lane<mode>): Ditto.
10569 (aarch64_st4_lane<mode>): Ditto.
10570 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
10571 to qmode. Add new mode parameter. Update uses.
10572 (__LD3_LANE_FUNC): Ditto.
10573 (__LD4_LANE_FUNC): Ditto.
10574 (__ST2_LANE_FUNC): Ditto.
10575 (__ST3_LANE_FUNC): Ditto.
10576 (__ST4_LANE_FUNC): Ditto.
10577
10578 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
10579
10580 * doc/invoke.texi (Language Independent Options): Rename node to
10581 Diagnostic Message Formatting Options.
10582
10583 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
10584
10585 PR ipa/66424.
10586 * lra-remat.c (operand_to_remat): Prevent using insns with input
10587 subregs processed separately by IRA.
10588
10589 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
10590
10591 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
10592 straight loops.
10593 (single_imm_use): Check for iterator node.
10594 (num_imm_uses): Likewise.
10595 * tree-ssa-operands.c (has_zero_uses_1): Delete.
10596 (single_imm_use_1): Check for iterator node.
10597
10598 2015-07-21 Mike Frysinger <vapier@gentoo.org>
10599 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10600
10601 * configure.ac: Add check for new options in isl-0.15.
10602 * config.in, configure: Rebuilt.
10603 * graphite-blocking.c: Include <isl/constraint.h>
10604 * graphite-interchange.c, graphite-poly.c: Likewise.
10605 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
10606 * graphite.c: Likewise.
10607 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
10608 <isl/union_set.h>.
10609 * graphite-dependences.c: Include <isl/constraint.h>.
10610 (max_number_of_out_dimensions): Returns isl_stat.
10611 (extend_schedule_1): Likewise
10612 (extend_schedule): Corresponding changes.
10613 * graphite-optimize-isl.c: Include <isl/constraint.h> and
10614 <isl/union_set.h>.
10615 (getSingleMap): Change return type of isl_stat.
10616 (optimize_isl): Conditionally use
10617 isl_options_set_schedule_serialize_sccs.
10618 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
10619 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
10620
10621 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
10622
10623 PR target/66956
10624 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
10625 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
10626
10627 2015-07-21 Richard Biener <rguenther@suse.de>
10628
10629 PR tree-optimization/66948
10630 * genmatch.c (capture_info::walk_match): Also recurse to
10631 captures. Properly compute expr state from captures of
10632 captures.
10633 * match.pd: Add single-use guards to
10634 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
10635
10636 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
10637
10638 * config/nvptx/mkoffload.c (process): Add static destructor call.
10639
10640 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10641
10642 PR middle-end/66915
10643 * match.pd (A - B -> A + (-B)): Don't allow folding
10644 when type if a fixed-point type.
10645
10646 2015-07-20 DJ Delorie <dj@redhat.com>
10647
10648 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
10649 (iorqi3_real): Likewise for set1.
10650
10651 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
10652
10653 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
10654 for !TARGET_64BIT.
10655
10656 2015-07-20 Aditya Kumar <hiraditya@msn.com>
10657
10658 * graphite-isl-ast-to-gimple.c:
10659 Refactor so that each function can access 'region'. This will help
10660 maintain a parameter rename_map within a region.
10661
10662 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10663
10664 * config/rs6000/rs6000.md (*lt0_disi): New.
10665
10666 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10667
10668 PR target/66217
10669 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
10670 "available letters" comment.
10671 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
10672 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
10673 and_2rld_operand): Delete.
10674 (and_operand): Adjust.
10675 (rotate_mask_operator): New.
10676 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
10677 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
10678 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
10679 extract_ME): Delete.
10680 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
10681 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
10682 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
10683 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
10684 rs6000_emit_2insn_and): New.
10685 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
10686 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
10687 includes_rldic_lshift_p, includes_rldicr_lshift_p,
10688 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
10689 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
10690 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
10691 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
10692 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
10693 rs6000_emit_2insn_and): New.
10694 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
10695 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
10696 handling.
10697 <NOT>: Don't fall through to next case.
10698 <AND>: Handle the various rotate-and-mask cases directly.
10699 <IOR>: Always cost as one insn.
10700 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
10701 (and<mode>3): Adjust expander for the new patterns.
10702 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
10703 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
10704 (*and<mode>3_imm_dot_shifted): New.
10705 (*and<mode>3_mask): Delete, rewrite as ...
10706 (and<mode>3_mask): ... New.
10707 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
10708 (andsi3_internal0_nomc): Delete.
10709 (*andsi3_internal6): Delete.
10710 (*and<mode>3_2insn): New.
10711 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
10712 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
10713 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
10714 *insvdi_internal3): Delete.
10715 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
10716 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
10717 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
10718 *ior<mode>_mask): New.
10719 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
10720 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
10721 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
10722 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
10723 Delete.
10724 (ashr<mode>3): Delete expander.
10725 (*ashr<mode>3): Rename to ...
10726 (ashr<mode>3): ... This.
10727 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
10728 (*rotldi3_internal4, *rotldi3_internal5 and split,
10729 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
10730 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
10731 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
10732 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
10733 (splitter for loading a mask): Adjust.
10734 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
10735
10736 2015-07-20 Marek Polacek <polacek@redhat.com>
10737
10738 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
10739 output_add_clobbers, output_added_clobbers_hard_reg_p,
10740 gen_rtx_scratch): Remove declarations.
10741
10742 2015-07-20 Marek Polacek <polacek@redhat.com>
10743
10744 PR c++/55095
10745 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
10746
10747 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10748
10749 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
10750 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
10751
10752 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10753
10754 * combine.c (combine_simplify_rtx): Move simplification step
10755 before various transformations/substitutions.
10756
10757 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
10758
10759 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
10760 (struct int_traits): Likewise.
10761
10762 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10763
10764 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
10765 function to vmsdbgout_function_decl.
10766
10767 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
10768
10769 PR target/66922
10770 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
10771 from misaligned positions.
10772 (ix86_expand_pinsr): Reject insertions to misaligned positions.
10773
10774 2015-07-18 Sebastian Pop <s.pop@samsung.com>
10775
10776 PR middle-end/46851
10777 PR middle-end/60340
10778 * Makefile.in: Removed omega.o.
10779 * common.opt: Document flag fcheck-data-deps as deprecated.
10780 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
10781 its associated params: omega-max-vars, omega-max-geqs,
10782 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
10783 omega-max-keys, omega-eliminate-redundant-constraints.
10784 * doc/loop.texi: Remove all the section on Omega.
10785 * graphite-blocking.c: Include missing params.h: it used to be
10786 included through tree-data-ref.h and omega.h.
10787 * graphite-isl-ast-to-gimple.c: Same.
10788 * graphite-optimize-isl.c: Same.
10789 * graphite-sese-to-poly.c: Same.
10790 * graphite.c: Same.
10791 * omega.c: Remove.
10792 * omega.h: Remove.
10793 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
10794 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
10795 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
10796 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
10797 * passes.def: Remove pass_check_data_deps.
10798 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
10799 (dump_conflict_function): Same.
10800 (dump_subscript): Same.
10801 (print_direction_vector): Same.
10802 (print_dir_vectors): Same.
10803 (print_lambda_vector): Same.
10804 (print_dist_vectors): Same.
10805 (dump_data_dependence_relation): Same.
10806 (dump_data_dependence_relations): Same.
10807 (dump_dist_dir_vectors): Same.
10808 (dump_ddrs): Same.
10809 (init_omega_eq_with_af): Removed.
10810 (omega_extract_distance_vectors): Removed.
10811 (omega_setup_subscript): Removed.
10812 (init_omega_for_ddr_1): Removed.
10813 (init_omega_for_ddr): Removed.
10814 (ddr_consistent_p): Removed.
10815 (compute_affine_dependence): Do not use omega to check data
10816 dependences.
10817 (compute_data_dependences_for_bb): Removed.
10818 (analyze_all_data_dependences): Removed.
10819 (tree_check_data_deps): Removed.
10820 * tree-data-ref.h: Do not include omega.h.
10821 (compute_data_dependences_for_bb): Removed.
10822 (tree_check_data_deps): Removed.
10823 * tree-ssa-loop.c (pass_check_data_deps): Removed.
10824 (make_pass_check_data_deps): Removed.
10825 * tree-ssa-phiopt.c: Include params.h.
10826 * tree-vect-data-refs.c: Same.
10827 * tree-vect-slp.c: Same.
10828
10829 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
10830
10831 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
10832 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
10833 (mem->fpreg splitters): Ditto.
10834 (general_operand->nonimmediate_operand splitter): Use explicit modes.
10835 Disable DFmode for TARGET_64BIT.
10836
10837 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
10838
10839 PR target/66906
10840 * config/i386/i386.c (ix86_expand_prologue): Replicate static
10841 chain on the stack.
10842
10843 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
10844
10845 * config/nvptx/mkoffload.c (process): Constify host data.
10846 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
10847 Constify host data.
10848 (generate_host_descr_file): Likewise.
10849
10850 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
10851 Sebastian Pop <s.pop@samsung.com>
10852
10853 PR middle-end/61929
10854 * graphite-dependences.c (add_pdr_constraints): Renamed
10855 pdr->extent to pdr->subscript_sizes.
10856 * graphite-interchange.c (build_linearized_memory_access): Add
10857 back all gcc_assert's that the "isl_int to isl_val conversion"
10858 patch has removed. Refactored.
10859 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
10860 * graphite-poly.c (new_poly_dr): Same.
10861 (free_poly_dr): Same.
10862 * graphite-poly.h (struct poly_dr): Same.
10863 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
10864 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
10865 * graphite-scop-detection.h: Fix space.
10866 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
10867 back all gcc_assert's removed by a previous patch.
10868 (wrap): Remove the_isl_ctx global variable that the same patch has
10869 added.
10870 (build_loop_iteration_domains): Same.
10871 (add_param_constraints): Same.
10872 (pdr_add_data_dimensions): Same. Refactored.
10873 (build_poly_dr): Renamed extent to subscript_sizes.
10874
10875 2015-07-17 Marek Polacek <polacek@redhat.com>
10876
10877 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
10878 * match.pd: ... here.
10879
10880 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
10881
10882 * config/nvptx/mkoffload.c (process): Constify target data.
10883 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
10884 Constify target data.
10885 (generate_target_offloadend_file): Likewise.
10886
10887 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
10888
10889 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
10890 to allow renaming of PHI arguments on edges incoming from outer
10891 loop header, add corresponding check before start PHI iterator.
10892 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
10893 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
10894 with true force_vectorize. Set-up dominator for outer loop too.
10895 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
10896 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
10897 was marked with force_vectorize and has restricted cfg.
10898 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
10899 inner loop.
10900 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
10901 do peeling for outer loops.
10902
10903 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
10904 Matthias Klose <doko@ubuntu.com>
10905
10906 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
10907 build-sysroot, sysroot from the `Miscenalleous configure options' to
10908 the `Directories' section and strip trailing `/' from with_sysroot.
10909 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
10910 * configure: Regenerated.
10911
10912 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
10913
10914 PR target/66824
10915 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
10916 (TARGET_HARD_DF_REGS): Ditto.
10917 (TARGET_HARD_XF_REGS): Ditto.
10918 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
10919 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
10920 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
10921 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
10922 (*movsf_internal): Add alternatives 16 and 17. Enable
10923 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
10924
10925 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
10926
10927 PR rtl-optimization/66891
10928 * calls.c (expand_call): Wrap precompute_register_parameters with
10929 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
10930
10931 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
10932
10933 * config/nvptx/mkoffload.c (process): Constify mapping variables.
10934 Define target data struct and initialize it.
10935
10936 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
10937
10938 PR rtl-optimization/66626
10939 * ira.h (emit-rtl.h): Include.
10940 (non_spilled_static_chain_regno_p): New.
10941 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
10942 unless it is non spilled static chain pseudo.
10943 (assign_hard_rego): Spill memory profitable allocno unless it is
10944 non spilled static chain pseudo.
10945 (allocno_spill_priority_compare): Put non spilled static chain
10946 pseudo at the end of sorted array.
10947 (improve_allocation): Do nothing if we have static chain and
10948 non-local goto.
10949 (allocno__priority_compare_func): Put non spilled static chain
10950 pseudo at the beginning of sorted array.
10951 (move_spill_restore): Ignore non spilled static chain pseudo.
10952 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
10953 to non spilled static chain pseudo.
10954 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
10955 pseudo at the beginning of sorted array.
10956 (spill_for): Spill non spilled static chain pseudo last.
10957 * lra-constraints.c (lra_constraints): Remove static chain pseudo
10958 check for equivalence.
10959
10960 2015-07-16 Martin Liska <mliska@suse.cz>
10961
10962 PR ipa/66896.
10963 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
10964 dst_ctx if it does not exist.
10965
10966 2015-07-16 Martin Liska <mliska@suse.cz>
10967
10968 * hash-set.h (remove): New function.
10969 (iterator): New iteration class for hash_set.
10970
10971 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
10972
10973 * genattrtab.c (make_canonical): Add a file_location parameter.
10974 Use fatal_at rather than fatal.
10975 (get_attr_value): Likewise. Update call to make_canonical.
10976 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
10977 (make_internal_attr): Update calls accordingly.
10978
10979 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
10980
10981 * read-md.h (message_with_line, error_with_line): Delete.
10982 * read-md.c (message_with_line, error_with_line): Delete.
10983 * gensupport.h: Include read-md.h.
10984 (md_rtx_info): New structure.
10985 (read_md_rtx): Use it. Return a bool success value.
10986 * gensupport.c (read_md_rtx): Likewise.
10987 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
10988 (main): Update after interface changes.
10989 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
10990 (main): Update after interface changes.
10991 * genattrtab.c (insn_code_number): Delete.
10992 (optimize_attrs): Add a max_insn_code parameter and use it instead
10993 of insn_code_number.
10994 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
10995 Use *_at rather than *_with_line functions.
10996 (gen_insn): Likewise.
10997 (gen_delay): Likewise.
10998 (gen_insn_reserv): Likewise.
10999 (gen_bypass): Take an md_rtx_info rather than an rtx.
11000 (main): Update after interface changes. Use a local max_insn_code
11001 variable instead of insn_code_number.
11002 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
11003 an rtx. Use fatal_at rather than fatal.
11004 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
11005 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
11006 (gen_absence_set, gen_final_absence_set, gen_automaton)
11007 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
11008 (main): Update after interface changes.
11009 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
11010 and code number.
11011 (main): Update after interface changes.
11012 * genconditions.c (main): Use new read_md_rtx interface.
11013 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
11014 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
11015 (main): Update after interface changes.
11016 * genemit.c (insn_code_number, insn_index_number): Delete.
11017 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11018 Use fatal_at rather than fatal.
11019 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
11020 rather than fatal.
11021 (gen_split): Likewise.
11022 (main): Update after interface changes.
11023 * genextract.c (line_no): Delete.
11024 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11025 Update call to walk_rtx.
11026 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
11027 rather than message_with_line.
11028 (walk_rtx): Add an md_rtx_info argument. Update call to
11029 VEC_safe_set_locstr.
11030 (main): Update after interface changes.
11031 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
11032 and lineno. Use error_at rather than separate message_with_line
11033 calls and have_error assignments.
11034 (main): Update after interface changes.
11035 * genmddump.c (main): Use new read_md_rtx interface.
11036 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
11037 (main): Update after interface changes.
11038 * genoutput.c (next_code_number): Delete.
11039 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11040 (gen_peephole, gen_expand, gen_split): Likewise.
11041 (note_constraint): Likewise. Use *_at rather than *_with_line
11042 functions.
11043 (main): Update after interface changes.
11044 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
11045 rtx and lineno.
11046 (main): Update after interface changes.
11047 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
11048 than an rtx and lineno.
11049 (process_define_constraint): Likewise.
11050 (process_define_register_constraint): Likewise.
11051 (main): Update after interface changes.
11052 * genrecog.c (next_insn_code, pattern_lineno): Delete.
11053 (validate_pattern): Replace top-level rtx with an md_rtx_info.
11054 Use *_at rather than *_with_line functions.
11055 (match_pattern_2): Likewise.
11056 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
11057 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
11058 Use *_at rather than *_with_line functions.
11059 * gentarget-def.c (add_insn): New function.
11060 (main): Use it. Use new read_md_rtx interface.
11061
11062 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
11063
11064 * gensupport.h (compute_test_codes): Take a file_location rather
11065 than a line number.
11066 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
11067 rather than *_with_line functions.
11068 (process_define_predicate): Update call to compute_test_codes.
11069 * genpreds.c (validate_exp): Take a file_location rather than a
11070 line number. Use *_at functions rather than *_with_line functions.
11071 (process_define_predicate): Update call to validate_exp.
11072 (constraint_data): Replace lineno field with a file_location.
11073 (add_constraint): Take a file_location rather than a line number.
11074 Use *_at functions rather than *_with_line functions. Fix error
11075 message for address constraints. Update after changes to
11076 validate_exp, constraint_data and compute_test_codes.
11077 (process_define_constraint): Update accordingly.
11078 (process_define_register_constraint): Likewise.
11079
11080 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
11081
11082 * genoutput.c (data): Use a file_location to record the source
11083 position.
11084 (nothing): Delete.
11085 (idata, idata_end): Remove initialization.
11086 (constraint_data): Replace lineno with a file_location.
11087 (output_insn_data): Update after changes to data.
11088 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
11089 (scan_operands): Likewise, using *_at rather than *_with_line
11090 functions.
11091 (process_template): Likewise.
11092 (validate_insn_alternatives): Likewise.
11093 (validate_insn_operands): Likewise.
11094 (validate_optab_operands): Likewise.
11095 (init_insn_for_nothing): Initialize idata and idata_end.
11096 (note_constraint): Update after changes to constraint_data,
11097 using at rather than with_line functions.
11098 (mdep_constraint_len): Take a file_location rather than a
11099 line number. Use at rather than with_line functions.
11100
11101 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
11102
11103 * read-md.h (fatal_at): Declare.
11104 * read-md.c (fatal_at): New function.
11105 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
11106 to record the source position.
11107 (check_attr_test): Take a file_location instead of a line number.
11108 Use fatal_at instead of fatal.
11109 (check_attr_value): Update after above changes, using "at"
11110 rather than "with_line" reporting functions.
11111 (convert_set_attr_alternative): Likewise.
11112 (gen_attr): Likewise.
11113 (check_defs): Likewise. Don't assign to read_md_filename.
11114 (gen_insn): Update initialization after above changes.
11115 (gen_delay): Likewise.
11116 (write_insn_cases): Print the filename for a define_peephole.
11117 (gen_insn_reserv): Take a line number as argument and update
11118 the call to check_attr_test.
11119 (main): Pass a line number to gen_insn_reserv.
11120
11121 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
11122
11123 * read-md.h (file_location): New structure.
11124 (directive_handler_t): Take a file_location rather than a line number.
11125 (message_at, error_at): Declare.
11126 (read_skip_construct): Delete.
11127 * read-md.c (message_with_line_1): Replace with...
11128 (message_at_1): ...this new function.
11129 (message_at, error_at): New functions.
11130 (message_with_line, error_with_line): Update to use message_at_1.
11131 (handle_enum): Take a file_location rather than a line number
11132 and use error_at for error reporting.
11133 (handle_include): Likewise.
11134 (read_skip_construct): Likewise. Make static.
11135 (handle_file): Update after above changes. Pass a file_location
11136 rather than a line number to handle_directive.
11137 * gensupport.c (queue_elem): Replace separate filename and lineno
11138 with a file_location.
11139 (queue_pattern): Replace filename and lineno arguments with a
11140 file_location. Update after change to queue_elem.
11141 (process_define_predicate): Replace lineno argument with a
11142 file_location and use error_at for error reporting. Update
11143 after above changes.
11144 (process_rtx): Likewise.
11145 (subst_pattern_match): Likewise.
11146 (get_alternatives_number): Likewise.
11147 (alter_predicate_for_insn): Likewise.
11148 (rtx_handle_directive): Likewise.
11149 (is_predicable): Update after above changes, using error_at rather
11150 than error_with_line.
11151 (has_subst_attribute): Likewise.
11152 (identify_predicable_attribute): Likewise.
11153 (alter_attrs_for_subst_insn): Likewise.
11154 (process_one_cond_exec): Likewise.
11155 (process_substs_on_one_elem): Likewise.
11156 (process_define_subst): Likewise.
11157 (check_define_attr_duplicates): Likewise.
11158 (read_md_rtx): Update after change to queue_elem.
11159
11160 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
11161
11162 * genoutput.c (next_index_number): Delete.
11163 (data): Remove index_number.
11164 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
11165 (main): Remove manipulation of next_index_number.
11166
11167 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
11168
11169 * genattrtab.c (check_attr_value): Remove handling of null attrs.
11170 (make_canonical): Likewise.
11171
11172 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
11173
11174 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
11175 instead of adjust_address_nv.
11176 (restore_stack_nonlocal): Likewise.
11177 (nonlocal_goto): Likewise.
11178
11179 2015-07-16 Tom de Vries <tom@codesourcery.com>
11180
11181 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
11182 not have a corresponding loop header phi.
11183
11184 2015-07-16 Tom de Vries <tom@codesourcery.com>
11185
11186 * tree-parloops.c (create_loads_for_reductions): Handle case that
11187 reduction is unused.
11188
11189 2015-07-16 Richard Biener <rguenther@suse.de>
11190
11191 PR tree-optimization/66894
11192 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
11193 about deriving NE_EXPR from truncated values.
11194
11195 2015-07-16 Martin Liska <mliska@suse.cz>
11196
11197 * alloc-pool.h
11198 (object_allocator): Add new class.
11199 (pool_allocator::initialize): Use the underlying class.
11200 (pool_allocator::allocate): Likewise.
11201 (pool_allocator::remove): Likewise.
11202 (operator new): A new generic allocator.
11203 * asan.c (struct asan_mem_ref): Remove unused members.
11204 (asan_mem_ref_new): Replace new operator with
11205 object_allocator::allocate.
11206 (free_mem_ref_resources): Change deallocation.
11207 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
11208 with object_allocator.
11209 * config/sh/sh.c (add_constant): Replace new operator with
11210 object_allocator::allocate.
11211 (sh_reorg): Change call to a release method.
11212 * cselib.c (struct elt_list): Remove unused members.
11213 (new_elt_list): Replace new operator with
11214 object_allocator::allocate.
11215 (new_elt_loc_list): Likewise.
11216 (new_cselib_val): Likewise.
11217 (unchain_one_elt_list): Change delete operator with remove method.
11218 (unchain_one_elt_loc_list): Likewise.
11219 (unchain_one_value): Likewise.
11220 (cselib_finish): Release newly added static allocators.
11221 * cselib.h (struct cselib_val): Remove unused members.
11222 (struct elt_loc_list): Likewise.
11223 * df-problems.c (df_chain_alloc): Replace pool_allocator with
11224 object_allocator.
11225 * df-scan.c (struct df_scan_problem_data): Likewise.
11226 (df_scan_alloc): Likewise.
11227 * df.h (struct dataflow): Likewise.
11228 * dse.c (struct read_info_type): Likewise.
11229 (struct insn_info_type): Likewise.
11230 (struct dse_bb_info_type): Likewise.
11231 (struct group_info): Likewise.
11232 (struct deferred_change): Likewise.
11233 (get_group_info): Likewise.
11234 (delete_dead_store_insn): Likewise.
11235 (free_read_records): Likewise.
11236 (replace_read): Likewise.
11237 (check_mem_read_rtx): Likewise.
11238 (scan_insn): Likewise.
11239 (dse_step1): Likewise.
11240 (dse_step7): Likewise.
11241 * et-forest.c (struct et_occ): Remove unused members.
11242 (et_new_occ): Use allocate instead of new operator.
11243 (et_new_tree): Likewise.
11244 (et_free_tree): Call release method explicitly.
11245 (et_free_tree_force): Likewise.
11246 (et_free_pools): Likewise.
11247 (et_split): Use remove instead of delete operator.
11248 * et-forest.h (struct et_node): Remove unused members.
11249 * ipa-cp.c: Change pool_allocator to object_allocator.
11250 * ipa-inline-analysis.c: Likewise.
11251 * ipa-profile.c: Likewise.
11252 * ipa-prop.c: Likewise.
11253 * ipa-prop.h: Likewise.
11254 * ira-build.c (initiate_cost_vectors): Cast return value.
11255 (ira_allocate_cost_vector): Likewise.
11256 * ira-color.c (struct update_cost_record): Remove unused members.
11257 * lra-int.h (struct lra_live_range): Likewise.
11258 (struct lra_copy): Likewise.
11259 (struct lra_insn_reg): Likewise.
11260 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
11261 * lra.c (new_insn_reg): Replace new operator with allocate method.
11262 (free_insn_regs): Same for operator delete.
11263 (finish_insn_regs): Release new static allocator.
11264 (finish_insn_recog_data): Likewise.
11265 (lra_free_copies): Replace delete operator with remove method.
11266 (lra_create_copy): Replace operator new with allocate method.
11267 (invalidate_insn_data_regno_info): Same for remove method.
11268 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
11269 (free_debug_insn_changes): Replace delete operator with remove method.
11270 (replace_oldest_value_reg): Replace operator new with allocate method.
11271 (pass_cprop_hardreg::execute): Release new static variable.
11272 * sched-deps.c (sched_deps_init): Change pool_allocator to
11273 object_allocator.
11274 * sel-sched-ir.c: Likewise.
11275 * sel-sched-ir.h: Likewise.
11276 * stmt.c (expand_case): Likewise.
11277 (expand_sjlj_dispatch_table): Likewise.
11278 * tree-sra.c (struct access): Remove unused members.
11279 (struct assign_link): Likewise.
11280 (sra_deinitialize): Release newly added static pools.
11281 (create_access_1):Replace operator new with allocate method.
11282 (build_accesses_from_assign): Likewise.
11283 (create_artificial_child_access): Likewise.
11284 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
11285 pool_allocator to object_allocator.
11286 * tree-ssa-pre.c: Likewise.
11287 * tree-ssa-reassoc.c: Likewise.
11288 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
11289 * tree-ssa-strlen.c: Likewise.
11290 * tree-ssa-structalias.c: Likewise.
11291 * var-tracking.c (onepart_pool_allocate): New function.
11292 (unshare_variable): Use the newly added function.
11293 (variable_merge_over_cur): Likewise.
11294 (variable_from_dropped): Likewise.
11295 (variable_was_changed): Likewise.
11296 (set_slot_part): Likewise.
11297 (emit_notes_for_differences_1): Likewise.
11298 (vt_finalize): Release newly added static pools.
11299
11300 2015-07-16 Martin Jambor <mjambor@suse.cz>
11301
11302 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
11303 all uses. Fix two typos in its general comment.
11304 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
11305
11306 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
11307
11308 * config/i386/linux-common.h (LINK_MPX): New.
11309 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
11310 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
11311 indicating '-z bndplt' support by linker.
11312 * configure: Regenerate.
11313 * config.in: Regenerate.
11314
11315 2015-07-16 Richard Biener <rguenther@suse.de>
11316
11317 * fold-const.c (fold_widened_comparison): Remove.
11318 (fold_sign_changed_comparison): Likewise.
11319 (fold_comparison): Move widened and sign-changed comparison
11320 simplification ...
11321 * match.pd: ... to patterns here.
11322 * generic-match-head.c: Include target.h.
11323 * gimple-match-head.c: Likewise.
11324
11325 2015-07-16 Richard Biener <rguenther@suse.de>
11326
11327 * tree-ssa-dom.c (dom_valueize): New function.
11328 (record_temporary_equivalences): Also record equivalences
11329 for dominating stmts that have uses of equivalences we are
11330 about to record.
11331
11332 2015-07-16 Bin Cheng <bin.cheng@arm.com>
11333
11334 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
11335 add_autoinc_candidates.
11336 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
11337 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
11338 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
11339 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
11340 Call new function.
11341 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
11342 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
11343 Remove parameter struct iv*. Call add_autoinc_candidates here.
11344 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
11345 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
11346 Call new function.
11347 (find_iv_candidates): Call new functions.
11348
11349 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
11350
11351 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
11352 uninitialized-variable warning.
11353
11354 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
11355
11356 PR target/65249
11357 * config/sh/sh.md (movdi): Split simple reg move to two movsi
11358 when the destination is R0.
11359
11360 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
11361
11362 PR target/66866
11363 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
11364 * config/i386/i386.c (ix86_expand_pextr): New function.
11365 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
11366 for non-lowpart subregs.
11367 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
11368 (insv<mode>): Use SWI248 mode iterator.
11369 (insv<mode>_1): Ditto.
11370
11371 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
11372 Sebastian Pop <s.pop@samsung.com>
11373
11374 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
11375 iterator to use_stmt.
11376
11377 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
11378 Sebastian Pop <s.pop@samsung.com>
11379
11380 * graphite-scop-detection.c (build_scops_1): Discard scops for
11381 which entry==exit.
11382
11383 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
11384 Sebastian Pop <s.pop@samsung.com>
11385
11386 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
11387 case of a return statement in scop.
11388
11389 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
11390 Sebastian Pop <s.pop@samsung.com>
11391
11392 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
11393 INTEGER_TYPE parameters.
11394 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
11395 VECTOR_CST in scan_tree_for_params.
11396 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
11397
11398 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
11399
11400 * gimple-pretty-print.h: Don't include pretty-print.h.
11401 * tree-streamer.h: Don't include lto-streamer.h.
11402 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
11403 * gimple-streamer-in.c: Remove redundant includes.
11404 * gimple-streamer-out.c: Likewise.
11405 * ipa-devirt.c: Likewise.
11406 * ipa-icf.c: Likewise.
11407 * ipa-inline-analysis.c: Likewise.
11408 * ipa-polymorphic-call.c: Likewise.
11409 * ipa-profile.c: Likewise.
11410 * ipa-prop.c: Likewise.
11411 * ipa-pure-const.c: Likewise.
11412 * lto-cgraph.c: Likewise.
11413 * lto-streamer-in.c: Likewise.
11414 * lto-streamer-out.c: Likewise.
11415 * lto-streamer.c: Likewise.
11416 * tree-streamer-in.c: Likewise.
11417 * tree-streamer-out.c: Likewise.
11418 * tree-streamer.c: Likewise.
11419
11420 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
11421
11422 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
11423 include input.h.
11424 * opts.c: Remove multiline #include comment.
11425
11426 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
11427
11428 * config/nvptx/mkoffload.c (process): Add C++ protection to
11429 emitted code.
11430
11431 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11432
11433 PR target/66854
11434 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
11435 null before IEEE 128-bit floating point support patch.
11436
11437 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11438
11439 * simplify-rtx.c (simplify_ternary_operation): Add simplification
11440 for (!c) != {0,...,0} ? a : b for vector modes.
11441
11442 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
11443 Martin Jambor <mjambor@suse.cz>
11444
11445 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
11446 struct func_body_info* instead of struct ipa_node_params*, expecting
11447 fbi->info to be filled in. Replace throughout. Adjust call to
11448 ipa_load_from_parm_agg.
11449 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
11450 instead of struct ipa_node_params*. Adjust calls to other functions
11451 so that they pass either fbi or fbi->info.
11452 (set_switch_stmt_execution_predicate): Likewise.
11453 (will_be_nonconstant_predicate): Likewise.
11454 (compute_bb_predicates): Likewise.
11455 (estimate_function_body_sizes): Move asserts earlier. Fill in
11456 struct func_body_info, replace parms_info with fbi.info. Adjust
11457 calls to functions that now accept struct func_body_info.
11458 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
11459 (struct func_body_info): Likewise.
11460 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
11461 remove static. Adjust callers.
11462 (ipa_load_from_parm_agg): Remove.
11463 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
11464 (func_body_info): Likewise.
11465 (ipa_load_from_parm_agg): Adjust prototype.
11466
11467 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11468
11469 * gensupport.c (rtx_handle_directive): Adjust.
11470 * read-rtl.c (apply_iterators): Take vector to add rtxs to
11471 instead of expr list rtx.
11472 (add_define_attr_for_define_subst): Likewise.
11473 (add_define_subst_attr): Likewise.
11474 (read_subst_mapping): Likewise.
11475 (read_rtx): Likewise.
11476 * rtl.h (read_rtx): Adjust.
11477
11478 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11479
11480 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
11481
11482 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
11483
11484 PR target/58066
11485 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
11486 (*tls_local_dynamic_base_64_<mode>): Ditto.
11487 (*tls_local_dynamic_base_64_largepic): Ditto.
11488 (tls_global_dynamic_64_<mode>): Update expander pattern.
11489 (tls_local_dynamic_base_64_<mode>): Ditto.
11490
11491 2015-07-15 Richard Biener <rguenther@suse.de>
11492
11493 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
11494 and bool_var == 1 -> bool_var simplifications ...
11495 * match.pd: ... to patterns here. Factor out negate_expr_p
11496 cases from the A - B -> A + (-B) patterns as negate_expr_p
11497 predicate and add a -(A + B) -> (-B) - A pattern.
11498
11499 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
11500
11501 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
11502
11503 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
11504 Robert Suchanek <robert.suchanek@imgtec.com>
11505
11506 * config/mips/mips.c (mips_int_mask): New enum.
11507 (mips_shadow_set): Likewise.
11508 (int_mask): New variable.
11509 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
11510 (machine_function): Add int_mask and use_shadow_register_set.
11511 (mips_attribute_table): Add attribute handlers for interrupt and
11512 use_shadow_register_set.
11513 (mips_interrupt_mask): New static function.
11514 (mips_handle_interrupt_attr): Likewise.
11515 (mips_handle_use_shadow_register_set_attr): Likewise.
11516 (mips_use_shadow_register_set): Change return type to enum
11517 mips_shadow_set. Add argument handling for use_shadow_register_set
11518 attribute.
11519 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
11520 compare with mips_shadow_set enum.
11521 (mips_compute_frame_info): Add interrupt mask and
11522 use_shadow_register_set to per-function information structure.
11523 Add a stack slot for EPC unconditionally.
11524 (mips_expand_prologue): Compare use_shadow_register_set value
11525 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
11526 masked interrupt register but in EIC mode use K0 and save Cause in K0.
11527 EPC saved and restored unconditionally. Use PMODE_INSN macro when
11528 copying the stack pointer from the shadow register set.
11529 * config/mips/mips.h (SR_IM0): New define.
11530 * config/mips/mips.md (mips_rdpgpr): Rename to...
11531 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
11532 * doc/extend.texi (Declaring Attributes of Functions): Document
11533 optional arguments for interrupt and use_shadow_register_set
11534 attributes.
11535
11536 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
11537
11538 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
11539 interrupt attribute.
11540 (mips_expand_prologue): Disable the floating point unit in an ISR.
11541 * config/mips/mips.h (SR_COP1): New define.
11542
11543 2015-07-15 Richard Biener <rguenther@suse.de>
11544
11545 * genmatch.c (parser::peek, parser::peek_ident): Add argument
11546 to tell how many tokens to peek ahead (default 1).
11547 (parser::eat_token, parser::eat_ident): Return token consumed.
11548 (parser::parse_result): Parse new switch statement.
11549 * match.pd: Use case statements where appropriate.
11550
11551 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
11552
11553 PR rtl-optimization/58066
11554 * calls.c (expand_call): Precompute register parameters before stack
11555 alignment is performed.
11556
11557 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
11558
11559 PR rtl-optimization/66838
11560 * postreload.c (reload_cse_move2add): Also process
11561 CALL_INSN_FUNCTION_USAGE when resetting information of
11562 call-clobbered registers.
11563
11564 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
11565 Cesar Philippidis <cesar@codesourcery.com>
11566 Chung-Lin Tang <cltang@codesourcery.com>
11567
11568 * config/nios2/constraints.md (U, v): New constraints.
11569 * config/nios2/predicates.md (rdprs_dcache_operand): New.
11570 (ldstex_memory_operand): New.
11571 * config/nios2/sync.md: New file.
11572 * config/nios2/nios2.md (unspecv): Add new builtin function
11573 UNSPECV codes.
11574 (rdprs, flushd, flushda, wrpie, eni): New patterns.
11575 (top-level): Include sync.md.
11576 * config/nios2/nios2.c (N2_FTYPES): Add function types for
11577 new builtins.
11578 (N2_BUILTINS): Add arch field setting, add new builtins.
11579 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
11580 for arch field.
11581 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
11582 Also handle ldex/stex/ldsex/stsex builtins.
11583 (nios2_expand_rdprs_builtin): New function.
11584 (nios2_expand_cache_builtin): New function.
11585 (nios2_expand_wrpie_builtin): New function.
11586 (nios2_expand_eni_builtin): New function.
11587 (nios2_expand_builtin): Add arch field handling and new builtin
11588 cases.
11589 * doc/extend.texi (Altera Nios II Built-in Functions): Document
11590 new builtins.
11591 * doc/md.texi (Machine Constraints): Document U and v constraints.
11592
11593 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
11594 Cesar Philippidis <cesar@codesourcery.com>
11595 Chung-Lin Tang <cltang@codesourcery.com>
11596
11597 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
11598 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
11599 callee_save_reg_size and uses_anonymous_args fields.
11600 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
11601 (nios2_create_cfa_notes): New function.
11602 (nios2_adjust_stack): New function for adjusting stack.
11603 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
11604 Use nios2_adjust_stack.
11605 (nios2_expand_epilogue): Likewise.
11606 (nios2_expand_return): New function.
11607 (nios2_can_use_return_insn): Update for CDX pop.n usage.
11608 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
11609 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
11610 * config/nios2/nios2.md (return): Use nios2_expand_return.
11611
11612 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
11613 Cesar Philippidis <cesar@codesourcery.com>
11614 Chung-Lin Tang <cltang@codesourcery.com>
11615
11616 * config/nios2/predicates.md (pop_operation): New.
11617 (ldwm_operation, stwm_operation): New.
11618 (nios2_hard_register_operand): New.
11619 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
11620 (ldstwm_operation_p): Declare.
11621 (gen_ldstwm_peep): Declare.
11622 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
11623 (base_reg_adjustment_p): New.
11624 (pop_operation_p): New.
11625 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
11626 (nios2_ldstwm_regset_p): New.
11627 (ldstwm_operation_p): New.
11628 (gen_ldst): New.
11629 (nios2_ldst_parallel): New.
11630 (struct ldswm_operand): Declare.
11631 (compare_ldstwm_operands): New.
11632 (can_use_cdx_ldstw): New.
11633 (gen_ldstwm_peep): New.
11634 * config/nios2/nios2-ldstwm.sml: New.
11635 * config/nios2/nios2.md: Include ldstwm.md.
11636 * config/nios2/ldstwm.md: Generated.
11637
11638 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
11639 Cesar Philippidis <cesar@codesourcery.com>
11640 Chung-Lin Tang <cltang@codesourcery.com>
11641
11642 * config/nios2/nios2.h (LABEL_ALIGN): Define.
11643 (REG_ALLOC_ORDER): Define.
11644 (ADJUST_REG_ALLOC_ORDER): Define.
11645 (HONOR_REG_ALLOC_ORDER): Define.
11646 (CDX_REG_P): Define.
11647 (ANDCLEAR_INT): Define.
11648 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
11649 (nios2_label_align): Declare.
11650 (nios2_cdx_narrow_form_p): Declare.
11651 (nios2_adjust_reg_alloc_order): Declare.
11652 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
11653 operation.
11654 (nios2_large_unspec_reloc_p): New function, split from...
11655 (nios2_legitimate_pic_operand_p): ...here.
11656 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
11657 (nios2_print_operand_punct_valid_p): New.
11658 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
11659 (split_mem_address): New.
11660 (split_alu_insn): New.
11661 (cdxreg): New.
11662 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
11663 (enum nios2_add_insn_kind): New.
11664 (nios2_add_insn_names, nios2_add_insn_narrow): New.
11665 (nios2_add_insn_classify): New.
11666 (nios2_add_insn_asm): New.
11667 (nios2_cdx_narrow_form_p): New.
11668 (label_align, min_labelno, max_labelno): New.
11669 (nios2_reorg): New.
11670 (nios2_label_align): New.
11671 (nios2_adjust_reg_alloc_order): New.
11672 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
11673 (TARGET_MACHINE_DEPENDENT_REORG): Define.
11674 * config/nios2/constraints.md (P): New constraint.
11675 * config/nios2/predicates.md (const_and_operand): New.
11676 (and_operand): New.
11677 (stack_memory_operand): New.
11678 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
11679 (length): Update to use nios2_cdx_narrow_form_p().
11680 (type): Add new insn type values.
11681 (control, alu, st, ld, shift): Update insn reservations with
11682 new insn type values.
11683 (*high, *lo_sum): Define new insn patterns for constant generation.
11684 (movqi_internal, movhi_internal, movsi_internal): Reduce
11685 alternatives, update asm template to handle CDX variants, update
11686 type attributes.
11687 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
11688 template, update type attributes.
11689 (extendhisi2, extendqi<mode>2): Likewise.
11690 (addsi3): Change to use function for asm string.
11691 (subsi3): Add CDX notation to asm template, update type attributes.
11692 (negsi3, one_cmplsi3): Likewise.
11693 (andsi3): New pattern, specialized from logical patterns.
11694 (<code>si3): Remove and case, combine alternatives, update asm
11695 template.
11696 (<shift_op>si3): Add CDX notation, update type attributes.
11697 (rotrsi3): Update type attribute.
11698 (*merge, extzv, insv): New insn patterns.
11699 (return): Change to define_expand.
11700 (simple_return): Add CDX notation, update type attributes.
11701 (indirect_jump): Add CDX notation.
11702 (jump): Update asm cases, update length attribute expression.
11703 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
11704 (nios2_cbranch): Update asm cases and length attribute expression
11705 to handle CDX variants.
11706 (nios2_cmp<code>): Update asm template.
11707 (nop): Add CDX notation, update type attributes.
11708 (trap): Add CDX notation.
11709 (ctrapsi4): Update asm cases and length attribute expression to
11710 handle CDX variant.
11711 * doc/md.texi (Machine Constraints): Document P constraint.
11712
11713 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
11714 Cesar Philippidis <cesar@codesourcery.com>
11715 Chung-Lin Tang <cltang@codesourcery.com>
11716
11717 * config/nios2/nios2.h (SMALL_INT12): New macro.
11718 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
11719 (nios2_valid_addr_expr_p): Use it.
11720 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
11721 with implicit "io" instructions on R2.
11722 * config/nios2/constraints.md (w): New constraint.
11723 * config/nios2/predicates.md (ldstio_memory_operand): New.
11724 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
11725 operand predicate and constraint.
11726 (ld<bh>io_signed, st<bhw>io>): Likewise.
11727 * doc/md.texi (Machine Constraints): Document w constraint.
11728
11729 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
11730 Cesar Philippidis <cesar@codesourcery.com>
11731 Chung-Lin Tang <cltang@codesourcery.com>
11732
11733 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
11734 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
11735 Nios II architecture level.
11736 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
11737 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
11738 (OPTION_DEFAULT_SPECS): Define.
11739 (ASM_SPEC): Add -march= spec strings.
11740 * config/nios2/nios2.c (nios2_option_override): Check for
11741 conflicts involving new options.
11742 * config.gcc (nios2*-*-*): Support --with-arch=.
11743 * doc/invoke.texi (Option Summary, Nios II Options): Document
11744 -march=, -mbmx, and -mcdx.
11745
11746 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
11747
11748 PR rtl-optimization/66626
11749 * lra-constraints.c (lra_constraints): Prevent equivalence
11750 substitution for static chain pseudo in functions with nonlocal
11751 goto.
11752
11753 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
11754
11755 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
11756 (nios2_emit_stack_limit_check): Add size parameter. Handle
11757 -fstack-limit-symbol as well as -fstack-limit-register.
11758 (nios2_expand_prologue): Emit only a single stack limit check,
11759 even if multiple stack adjustments are required.
11760 (nios2_option_override): Diagnose unsupported combination of -fpic
11761 and -stack-limit-symbol.
11762
11763 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
11764
11765 * Makefile.in (top_srcdir): New.
11766 * configure.ac: Use AM_ZLIB.
11767 * configure: Regeneated.
11768
11769 2015-07-14 Matthias Klose <doko@ubuntu.com>
11770
11771 PR target/66840
11772 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
11773
11774 2015-07-14 Richard Biener <rguenther@suse.de>
11775
11776 PR tree-optimization/66863
11777 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
11778 what we record for conversion use stmt lhs inequalities.
11779
11780 2015-07-14 Richard Biener <rguenther@suse.de>
11781
11782 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
11783 (decision_tree::gen_gimple): Likewise.
11784
11785 2015-07-14 Tom de Vries <tom@codesourcery.com>
11786
11787 * gcc.c (greater_than_spec_func): Declare forward.
11788 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
11789 -ftree-parallelize-loops={0,1}.
11790 (static_spec_functions): Add greater_than_spec_func function with name
11791 "gt".
11792 (greater_than_spec_func): New function.
11793
11794 2015-07-14 Richard Biener <rguenther@suse.de>
11795
11796 * tree-ssa-dom.c (record_temporary_equivalences): Merge
11797 wideing type conversion case from record_equivalences_from_incoming_edge
11798 and use record_equality to record equivalences.
11799 (record_equivalences_from_incoming_edge): Call
11800 record_temporary_equivalences.
11801
11802 2015-07-14 Richard Biener <rguenther@suse.de>
11803
11804 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
11805 (struct if_expr): New.
11806 (struct with_expr): Likewise.
11807 (is_a_helper): Add helpers for if_expr and with_expr.
11808 (struct simplify): Add simplify_kind enum and member. Remove
11809 ifexpr_vec member.
11810 (simplify::simplify): Adjust.
11811 (lower_commutative): Adjust.
11812 (lower_opt_convert): Likewise.
11813 (lower_cond): Likewise.
11814 (replace_id): Handle with_expr and if_expr.
11815 (lower_for): Adjust.
11816 (dt_simplify::gen_1): New recursive worker, split out from ...
11817 (dt_simplify::gen): ... here. Deal with if and with expansion
11818 recursively.
11819 (capture_info::capture_info): Take context argument
11820 (capture_info::walk_result): Only analyze specific result.
11821 (parser::parse_result): New function.
11822 (parser::parse_simplify): Adjust to parse ifs with then end
11823 else case.
11824 (parser::parse_if): Simplify.
11825 (parser::parse_pattern): Pass down simplify kind.
11826 * match.pd: Convert if structure to new syntax.
11827
11828 2015-07-13 Marek Polacek <polacek@redhat.com>
11829
11830 * rtl.c (rtx_equal_p_cb): Fix typo.
11831
11832 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
11833
11834 * omega.h: Don't include config.h, don't include params.h again if
11835 omega.h has already been included.
11836 * graphite-poly.h: Include sese.h.
11837 * graphite.c: Don't include sese.h, remove needless includes and
11838 minimize includes outside #ifdef HAVE_isl block.
11839 * graphite-blocking.c: Don't include sese.h, remove needless includes,
11840 and wrap entire file in #ifdef HAVE_isl
11841 * graphite-dependences.c: Likewise.
11842 * graphite-interchange.c: Likewise.
11843 * graphite-isl-ast-to-gimple.c: Likewise.
11844 * graphite-optimize-isl.c: Likewise.
11845 * graphite-poly.c: Likewise.
11846 * graphite-scop-detection.c: Likewise.
11847 * graphite-sese-to-poly.c: Likewise.
11848
11849 2015-07-13 Tom de Vries <tom@codesourcery.com>
11850
11851 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
11852
11853 2015-07-13 Renlin Li <renlin.li@arm.com>
11854
11855 PR rtl/66556
11856 * simplify-rtx.c (simplify_const_relational_operation): Add
11857 side_effects_p checks.
11858
11859 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
11860
11861 * bitmap.h: Fix double word typos.
11862 * builtins.c: Same.
11863 * calls.c: Same.
11864 * cfgloopmanip.c: Same.
11865 * cgraph.c: Same.
11866 * cgraph.h: Same.
11867 * cgraphclones.c: Same.
11868 * combine.c: Same.
11869 * config/aarch64/aarch64-protos.h: Same.
11870 * config/aarch64/aarch64.c: Same.
11871 * config/aarch64/aarch64.md: Same.
11872 * config/arm/arm.md: Same.
11873 * config/arm/arm1020e.md: Same.
11874 * config/arm/arm1026ejs.md: Same.
11875 * config/arm/arm926ejs.md: Same.
11876 * config/arm/fa526.md: Same.
11877 * config/arm/fa606te.md: Same.
11878 * config/arm/fa626te.md: Same.
11879 * config/arm/fa726te.md: Same.
11880 * config/arm/fmp626.md: Same.
11881 * config/darwin.c: Same.
11882 * config/epiphany/epiphany.c: Same.
11883 * config/frv/frv.c: Same.
11884 * config/ft32/ft32.c: Same.
11885 * config/gnu-user.h: Same.
11886 * config/h8300/constraints.md: Same.
11887 * config/i386/i386.c: Same.
11888 * config/i386/i386.md: Same.
11889 * config/iq2000/iq2000.md: Same.
11890 * config/mips/mips.c: Same.
11891 * config/mmix/mmix.md: Same.
11892 * config/moxie/moxie.c: Same.
11893 * config/nds32/nds32.md: Same.
11894 * config/pa/pa.h: Same.
11895 * config/rs6000/aix.h: Same.
11896 * config/rs6000/rs6000.h: Same.
11897 * config/sh/sh.c: Same.
11898 * config/tilegx/tilegx.md: Same.
11899 * config/tilepro/gen-mul-tables.cc: Same.
11900 * cse.c: Same.
11901 * dbxout.c: Same.
11902 * doc/invoke.texi: Same.
11903 * dse.c: Same.
11904 * dwarf2out.c: Same.
11905 * final.c: Same.
11906 * gcc.c: Same.
11907 * genmatch.c: Same.
11908 * gimplify.c: Same.
11909 * hash-table.h: Same.
11910 * internal-fn.c: Same.
11911 * ipa-cp.c: Same.
11912 * ipa-devirt.c: Same.
11913 * ipa-icf.c: Same.
11914 * ipa-icf.h: Same.
11915 * ipa-profile.c: Same.
11916 * ipa-prop.c: Same.
11917 * ipa-prop.h: Same.
11918 * ira.c: Same.
11919 * omp-low.c: Same.
11920 * reg-stack.c: Same.
11921 * regcprop.c: Same.
11922 * reorg.c: Same.
11923 * rtl.h: Same.
11924 * sbitmap.h: Same.
11925 * tree-eh.c: Same.
11926 * tree-inline.c: Same.
11927 * tree-sra.c: Same.
11928 * tree-ssa-dom.c: Same.
11929 * tree-ssa-loop-ivopts.c: Same.
11930 * tree-ssa-structalias.c: Same.
11931 * tree-ssa-tail-merge.c: Same.
11932 * tree-ssa-ter.c: Same.
11933 * tree-ssa-threadupdate.c: Same.
11934 * tree-ssa-uninit.c: Same.
11935 * tree-ssanames.c: Same.
11936 * tree-vect-loop-manip.c: Same.
11937 * tree-vrp.c: Same.
11938 * tree.c: Same.
11939 * valtrack.c: Same.
11940 * vec.h: Same.
11941
11942 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
11943
11944 PR middle-end/66726
11945 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
11946 tree_ssa_phiopt_worker): Call it.
11947
11948 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
11949
11950 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
11951 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
11952 REG_EQUAL note.
11953
11954 2015-07-11 Marek Polacek <polacek@redhat.com>
11955
11956 PR middle-end/66353
11957 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
11958 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
11959 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
11960 rather than bb_has_abnormal_call_pred.
11961 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
11962 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
11963 rather than bb_has_abnormal_call_pred.
11964
11965 2015-07-10 Anatoly Sokolov <aesok@post.ru>
11966
11967 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11968 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
11969 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11970 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
11971 v850_legitimate_address_p): New functions.
11972 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
11973
11974 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
11975
11976 PR target/66819
11977 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
11978 indirect sibcall with register arguments if register available
11979 for argument passing.
11980 (init_cumulative_args): Set cfun->machine->arg_reg_available
11981 to (cum->nregs > 0) or to true if function has a variable
11982 argument list.
11983 (function_arg_advance_32): Set cfun->machine->arg_reg_available
11984 to false if cum->nregs <= 0.
11985 * config/i386/i386.h (machine_function): Add arg_reg_available.
11986
11987 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
11988
11989 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
11990 and gen_higpart instead of gen_rtx_SUBREG.
11991 * config/i386/i386.md
11992 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
11993 (read-modify peephole2): Use gen_lowpart instead of
11994 gen_rtx_SUBREG for operand 5.
11995
11996 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
11997
11998 * config/tilepro/gen-mul-tables.cc (main): Change include list for
11999 generated files.
12000 * config/tilepro/mul-tables.c: Regenerate.
12001 * config/tilegx/mul-tables.c: Regenerate.
12002
12003 2015-07-10 Richard Biener <rguenther@suse.de>
12004
12005 * fold-const.c (distribute_bit_expr): Remove.
12006 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
12007 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
12008 to A & (B | C) and simplifying A << C1 << C2 to ...
12009 * match.pd: ... patterns here.
12010
12011 2015-07-10 Jiong Wang <jiong.wang@arm.com>
12012
12013 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12014 Mark mem as READONLY and NOTRAP for PIC symbol.
12015
12016 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
12017
12018 * gimple-predict.h: New file.
12019 (gimple_predict_predictor, gimple_predict_set_predictor,
12020 gimple_predict_outcome, gimple_predict_set_outcome,
12021 gimple_build_predict): Relocate here.
12022 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
12023 gimple_predict_outcome, gimple_predict_set_outcome): Move to
12024 gimple-predict.h.
12025 * gimple.c (gimple_build_predict): Move to gimple-predict.h
12026 * basic-block.h: Don't include cfghooks.h.
12027 * backend.h: Don't include predict.h.
12028 * cfghooks.h: Include predict.h.
12029 * gimple-pretty-print.c: Include gimple-predict.h.
12030 * gimplify.c: Likwise.
12031 * predict.c: Adjust includes.
12032 * tree-inline.c: Likewise.
12033 * asan.c: Likewise.
12034 * auto-inc-dec.c: Likewise.
12035 * auto-profile.c: Likewise.
12036 * bb-reorder.c: Likewise.
12037 * builtins.c: Likewise.
12038 * caller-save.c: Likewise.
12039 * calls.c: Likewise.
12040 * cfganal.c: Likewise.
12041 * cfgbuild.c: Likewise.
12042 * cfg.c: Likewise.
12043 * cfgcleanup.c: Likewise.
12044 * cfgexpand.c: Likewise.
12045 * cfghooks.c: Likewise.
12046 * cfgloopanal.c: Likewise.
12047 * cfgloop.c: Likewise.
12048 * cfgloopmanip.c: Likewise.
12049 * cfgrtl.c: Likewise.
12050 * cgraph.c: Likewise.
12051 * cgraphunit.c: Likewise.
12052 * combine.c: Likewise.
12053 * cprop.c: Likewise.
12054 * cse.c: Likewise.
12055 * dce.c: Likewise.
12056 * dojump.c: Likewise.
12057 * dse.c: Likewise.
12058 * except.c: Likewise.
12059 * expmed.c: Likewise.
12060 * expr.c: Likewise.
12061 * final.c: Likewise.
12062 * fold-const.c: Likewise.
12063 * function.c: Likewise.
12064 * fwprop.c: Likewise.
12065 * gcc-plugin.h: Likewise.
12066 * gcse.c: Likewise.
12067 * genattrtab.c: Likewise.
12068 * genemit.c: Likewise.
12069 * gengtype.c: Likewise.
12070 * genopinit.c: Likewise.
12071 * genoutput.c: Likewise.
12072 * genpreds.c: Likewise.
12073 * genrecog.c: Likewise.
12074 * gimple-fold.c: Likewise.
12075 * gimple-iterator.c: Likewise.
12076 * gimple-ssa-isolate-paths.c: Likewise.
12077 * gimple-ssa-strength-reduction.c: Likewise.
12078 * graph.c: Likewise.
12079 * graphite-blocking.c: Likewise.
12080 * graphite.c: Likewise.
12081 * graphite-dependences.c: Likewise.
12082 * graphite-interchange.c: Likewise.
12083 * graphite-isl-ast-to-gimple.c: Likewise.
12084 * graphite-optimize-isl.c: Likewise.
12085 * graphite-poly.c: Likewise.
12086 * graphite-scop-detection.c: Likewise.
12087 * graphite-sese-to-poly.c: Likewise.
12088 * haifa-sched.c: Likewise.
12089 * ifcvt.c: Likewise.
12090 * internal-fn.c: Likewise.
12091 * ipa-cp.c: Likewise.
12092 * ipa-profile.c: Likewise.
12093 * ipa-split.c: Likewise.
12094 * ipa-utils.c: Likewise.
12095 * ira-build.c: Likewise.
12096 * ira-color.c: Likewise.
12097 * ira-conflicts.c: Likewise.
12098 * ira-costs.c: Likewise.
12099 * ira-emit.c: Likewise.
12100 * ira-lives.c: Likewise.
12101 * jump.c: Likewise.
12102 * loop-doloop.c: Likewise.
12103 * loop-init.c: Likewise.
12104 * loop-invariant.c: Likewise.
12105 * loop-unroll.c: Likewise.
12106 * lower-subreg.c: Likewise.
12107 * lra-assigns.c: Likewise.
12108 * lra.c: Likewise.
12109 * lra-coalesce.c: Likewise.
12110 * lra-constraints.c: Likewise.
12111 * lra-lives.c: Likewise.
12112 * lto-cgraph.c: Likewise.
12113 * lto-streamer-in.c: Likewise.
12114 * mode-switching.c: Likewise.
12115 * modulo-sched.c: Likewise.
12116 * omp-low.c: Likewise.
12117 * optabs.c: Likewise.
12118 * passes.c: Likewise.
12119 * postreload.c: Likewise.
12120 * postreload-gcse.c: Likewise.
12121 * profile.c: Likewise.
12122 * recog.c: Likewise.
12123 * regstat.c: Likewise.
12124 * reload1.c: Likewise.
12125 * reorg.c: Likewise.
12126 * rtlanal.c: Likewise.
12127 * sched-ebb.c: Likewise.
12128 * sel-sched-ir.c: Likewise.
12129 * sese.c: Likewise.
12130 * shrink-wrap.c: Likewise.
12131 * simplify-rtx.c: Likewise.
12132 * stmt.c: Likewise.
12133 * store-motion.c: Likewise.
12134 * tracer.c: Likewise.
12135 * trans-mem.c: Likewise.
12136 * tree-call-cdce.c: Likewise.
12137 * tree-cfg.c: Likewise.
12138 * tree-cfgcleanup.c: Likewise.
12139 * tree-chkp.c: Likewise.
12140 * tree-complex.c: Likewise.
12141 * tree-eh.c: Likewise.
12142 * tree-if-conv.c: Likewise.
12143 * tree-loop-distribution.c: Likewise.
12144 * tree-outof-ssa.c: Likewise.
12145 * tree-parloops.c: Likewise.
12146 * tree-predcom.c: Likewise.
12147 * tree-pretty-print.c: Likewise.
12148 * tree-profile.c: Likewise.
12149 * tree-sra.c: Likewise.
12150 * tree-ssa.c: Likewise.
12151 * tree-ssa-coalesce.c: Likewise.
12152 * tree-ssa-dce.c: Likewise.
12153 * tree-ssa-dom.c: Likewise.
12154 * tree-ssa-forwprop.c: Likewise.
12155 * tree-ssa-ifcombine.c: Likewise.
12156 * tree-ssa-loop-ch.c: Likewise.
12157 * tree-ssa-loop-im.c: Likewise.
12158 * tree-ssa-loop-ivcanon.c: Likewise.
12159 * tree-ssa-loop-ivopts.c: Likewise.
12160 * tree-ssa-loop-manip.c: Likewise.
12161 * tree-ssa-loop-prefetch.c: Likewise.
12162 * tree-ssa-loop-unswitch.c: Likewise.
12163 * tree-ssa-math-opts.c: Likewise.
12164 * tree-ssa-phiopt.c: Likewise.
12165 * tree-ssa-pre.c: Likewise.
12166 * tree-ssa-reassoc.c: Likewise.
12167 * tree-ssa-sink.c: Likewise.
12168 * tree-ssa-tail-merge.c: Likewise.
12169 * tree-ssa-threadedge.c: Likewise.
12170 * tree-ssa-threadupdate.c: Likewise.
12171 * tree-switch-conversion.c: Likewise.
12172 * tree-tailcall.c: Likewise.
12173 * tree-vect-data-refs.c: Likewise.
12174 * tree-vect-loop.c: Likewise.
12175 * tree-vect-loop-manip.c: Likewise.
12176 * tree-vectorizer.c: Likewise.
12177 * tree-vrp.c: Likewise.
12178 * ubsan.c: Likewise.
12179 * value-prof.c: Likewise.
12180 * varasm.c: Likewise.
12181 * var-tracking.c: Likewise.
12182 * config/aarch64/aarch64-builtins.c: Likewise.
12183 * config/aarch64/aarch64.c: Likewise.
12184 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12185 * config/alpha/alpha.c: Likewise.
12186 * config/arc/arc.c: Likewise.
12187 * config/arm/arm.c: Likewise.
12188 * config/avr/avr.c: Likewise.
12189 * config/bfin/bfin.c: Likewise.
12190 * config/c6x/c6x.c: Likewise.
12191 * config/cr16/cr16.c: Likewise.
12192 * config/cris/cris.c: Likewise.
12193 * config/darwin.c: Likewise.
12194 * config/darwin-c.c: Likewise.
12195 * config/epiphany/epiphany.c: Likewise.
12196 * config/epiphany/mode-switch-use.c: Likewise.
12197 * config/epiphany/resolve-sw-modes.c: Likewise.
12198 * config/fr30/fr30.c: Likewise.
12199 * config/frv/frv.c: Likewise.
12200 * config/ft32/ft32.c: Likewise.
12201 * config/h8300/h8300.c: Likewise.
12202 * config/i386/i386.c: Likewise.
12203 * config/i386/winnt.c: Likewise.
12204 * config/ia64/ia64.c: Likewise.
12205 * config/iq2000/iq2000.c: Likewise.
12206 * config/lm32/lm32.c: Likewise.
12207 * config/m32c/m32c.c: Likewise.
12208 * config/m32r/m32r.c: Likewise.
12209 * config/m68k/m68k.c: Likewise.
12210 * config/mcore/mcore.c: Likewise.
12211 * config/mep/mep.c: Likewise.
12212 * config/microblaze/microblaze.c: Likewise.
12213 * config/mips/mips.c: Likewise.
12214 * config/mmix/mmix.c: Likewise.
12215 * config/mn10300/mn10300.c: Likewise.
12216 * config/moxie/moxie.c: Likewise.
12217 * config/msp430/msp430.c: Likewise.
12218 * config/nds32/nds32.c: Likewise.
12219 * config/nds32/nds32-cost.c: Likewise.
12220 * config/nds32/nds32-fp-as-gp.c: Likewise.
12221 * config/nds32/nds32-intrinsic.c: Likewise.
12222 * config/nds32/nds32-isr.c: Likewise.
12223 * config/nds32/nds32-md-auxiliary.c: Likewise.
12224 * config/nds32/nds32-memory-manipulation.c: Likewise.
12225 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12226 * config/nds32/nds32-predicates.c: Likewise.
12227 * config/nios2/nios2.c: Likewise.
12228 * config/nvptx/nvptx.c: Likewise.
12229 * config/pa/pa.c: Likewise.
12230 * config/pdp11/pdp11.c: Likewise.
12231 * config/rl78/rl78.c: Likewise.
12232 * config/rs6000/rs6000.c: Likewise.
12233 * config/rx/rx.c: Likewise.
12234 * config/s390/s390.c: Likewise.
12235 * config/sh/sh.c: Likewise.
12236 * config/sh/sh-mem.cc: Likewise.
12237 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
12238 * config/sh/sh_treg_combine.cc: Likewise.
12239 * config/sparc/sparc.c: Likewise.
12240 * config/spu/spu.c: Likewise.
12241 * config/stormy16/stormy16.c: Likewise.
12242 * config/tilegx/tilegx.c: Likewise.
12243 * config/tilepro/tilepro.c: Likewise.
12244 * config/v850/v850.c: Likewise.
12245 * config/vax/vax.c: Likewise.
12246 * config/visium/visium.c: Likewise.
12247 * config/xtensa/xtensa.c: Likewise.
12248
12249 2015-07-10 Richard Biener <rguenther@suse.de>
12250
12251 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
12252 (decision_tree::gen_gimple): Likewise.
12253 (decision_tree::gen_generic): Likewise.
12254
12255 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
12256
12257 PR target/66813
12258 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
12259 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
12260
12261 2015-07-10 Jakub Jelinek <jakub@redhat.com>
12262
12263 PR middle-end/66820
12264 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
12265 or ORT_TASK contexts.
12266 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
12267 is non-zero.
12268
12269 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12270
12271 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
12272 above function.
12273
12274 2015-07-10 Tom de Vries <tom@codesourcery.com>
12275
12276 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
12277 insert nit + 1 bound.
12278
12279 2015-07-10 Richard Biener <rguenther@suse.de>
12280
12281 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
12282 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
12283 (if_convertible_loop_p_1): For this always compute bb predicates.
12284 (if_convertible_loop_p): And free them.
12285
12286 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12287
12288 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
12289 in dump message.
12290
12291 2015-07-10 Richard Biener <rguenther@suse.de>
12292
12293 PR tree-optimization/66823
12294 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
12295 inverted predicate.
12296
12297 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
12298
12299 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
12300 to handle mips[32|64]r3 and mips[32|64]r5.
12301
12302 2015-07-09 Jakub Jelinek <jakub@redhat.com>
12303
12304 PR middle-end/66633
12305 * tree-nested.c (get_static_chain): Or in a flag into
12306 info->static_chain_added.
12307 (get_frame_field, get_nonlocal_debug_decl): Likewise.
12308 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
12309 2015-07-01 changes.
12310 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
12311 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
12312 add it to clauses.
12313
12314 PR tree-optimization/66718
12315 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
12316 field.
12317 (vect_simd_lane_linear): New function.
12318 (vectorizable_simd_clone_call): Support using linear arguments for
12319 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
12320
12321 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
12322
12323 PR target/66821
12324 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
12325
12326 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
12327
12328 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
12329 Use machine mode, not enum machine_mode in the prototype.
12330
12331 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
12332 classify 128-bit floating point support.
12333 (FLOAT128_IBM_P): Likewise.
12334 (FLOAT128_VECTOR_P): Likewise.
12335 (FLOAT128_2REG_P): Likewise.
12336 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
12337 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
12338 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
12339 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
12340
12341 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
12342 tests against TFmode/TDmode, since those modes do not use VSX
12343 addresses.
12344 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
12345 support.
12346 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
12347 tests against TFmode, etc.
12348 (invalid_e500_subreg): Add tests against IFmode/KFmode.
12349 (reg_offset_addressing_ok_p): Likewise.
12350 (rs6000_legitimate_offset_address_p): Likewise.
12351 (rs6000_legitimize_address): Likewise.
12352 (rs6000_legitimize_reload_address): Likewise.
12353 (rs6000_legitimate_address_p): Clean up tests against TFmode and
12354 TDmode to use the new helper macros, which will include IFmode and
12355 KFmode.
12356 (rs6000_emit_move): Likewise.
12357 (rs6000_darwin64_record_arg_recurse): Likewise.
12358 (print_operand): Likewise.
12359 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
12360 that uses a single vector register as a vector and not as a
12361 floating point register in terms of the calling sequence.
12362 (rs6000_discover_homogeneous_aggregate): Likewise.
12363 (rs6000_return_in_memory): Likewise.
12364 (init_cumulative_args): Likewise.
12365 (rs6000_function_arg_boundary): Likewise.
12366 (rs6000_function_arg_advance_1): Likewise.
12367 (rs6000_function_arg): Likewise.
12368 (rs6000_pass_by_reference): Likewise.
12369 (rs6000_gimplify_va_arg): Likewise.
12370 (rs6000_secondary_reload_memory): Use machine_mode not enum
12371 machine mode.
12372 (rs6000_split_multireg_move): Use new helper macros.
12373 (spe_func_has_64bit_regs_p): Likewise.
12374 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
12375 (output_toc): Use new helper macros.
12376 (rs6000_register_move_cost): Likewise.
12377 (rs6000_function_value): Add IEEE 128-bit floating point calling
12378 sequence support.
12379 (rs6000_libcall_value): Likewise.
12380 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
12381 floating point support.
12382 (rs6000_vector_mode_supported_p): Likewise.
12383
12384 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
12385
12386 PR rtl-optimization/66782
12387 * lra-int.h (struct lra_insn_recog_data): Add comment about
12388 clobbered hard regs for arg_hard_regs.
12389 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
12390 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
12391 Add condition for processing used hard regs.
12392 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
12393 Process clobbered hard regs.
12394
12395 2015-07-09 Michael Matz <matz@suse.de>
12396
12397 * genmatch.c (fprintf_indent): New function.
12398 (operand::gen_transform): Add indent parameter.
12399 (expr::gen_transform, c_expr::gen_transform,
12400 capture::gen_transform): Ditto and use fprintf_indent.
12401 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
12402 (dt_operand::gen, dt_operand::gen_predicate,
12403 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
12404 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
12405 (decision_tree::gen_gimple): Adjust calls and indent generated
12406 code.
12407 (decision_tree::gen_generic): Ditto.
12408 (write_predicate): Ditto.
12409
12410 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
12411
12412 PR target/66814
12413 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
12414 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
12415 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
12416 {GENERAL,SSE,MMX}_REG_P where appropriate.
12417
12418 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
12419
12420 * lto-streamer.h: Don't include target.h and alloc-pool.h.
12421 * builtins.c: Adjust includes.
12422 * gimple.c: Likewise.
12423 * ipa-icf.c: Likewise.
12424 * lto-opts.c: Likewise.
12425 * ipa-reference.c: Likewise.
12426 * lto-section-out.c: Likewise.
12427 * lto-streamer-in.c: Likewise.
12428 * lto-streamer-out.c: Likewise.
12429 * opts-global.c: Likewise.
12430 * symtab.c: Likewise.
12431 * tree-chkp.c: Likewise.
12432 * tree-ssa-live.c: Likewise.
12433 * tree-streamer-in.c: Likewise.
12434 * tree-streamer-out.c: Likewise.
12435 * config/darwin.c: Likewise.
12436 * config/i386/winnt.c: Likewise.
12437
12438 2015-07-09 Richard Biener <rguenther@suse.de>
12439
12440 * genmatch.c (struct expr): Add force_single_use flag.
12441 (expr::expr): Add copy constructor.
12442 (capture_info::walk_match): Gather force_single_use captures.
12443 (expr::gen_transform): Use possibly NULLified sequence.
12444 (dt_simplify::gen): Apply single-use restrictions by NULLifying
12445 seq if any constrained expr is not single-use.
12446 (parser::parse_expr): Refactor to allow multiple flags. Handle
12447 's' flag to force an expression have a single-use if the pattern
12448 simplifies to more than one statement.
12449 * match.pd: Convert most single_use conditionals to :s flags.
12450
12451 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
12452
12453 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
12454 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
12455 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
12456
12457 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
12458
12459 * flags.h: Don't include flag-types.h or options.h.
12460 * opts-common.c: Adjust includes.
12461 * opts-global.c: Likewise.
12462 * common/config/epiphany/epiphany-common.c: Likewise.
12463
12464 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
12465
12466 PR target/66818
12467 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
12468 for IA MCU.
12469
12470 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
12471
12472 PR target/66817
12473 * config/i386/i386.c (ix86_return_in_memory): Return true
12474 if int_size_in_bytes returns negative for IA MCU.
12475
12476 2015-07-09 Marek Polacek <polacek@redhat.com>
12477
12478 PR tree-optimization/66718
12479 * Makefile.in (OBJS): Add gimple-laddress.o.
12480 * passes.def: Schedule pass_laddress.
12481 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
12482 * tree-pass.h (make_pass_laddress): Declare.
12483 * gimple-laddress.c: New file.
12484
12485 2015-07-09 Richard Biener <rguenther@suse.de>
12486
12487 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
12488
12489 2015-07-09 Richard Biener <rguenther@suse.de>
12490
12491 PR tree-optimization/66807
12492 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
12493
12494 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
12495
12496 * function.c (stack_protect_epilogue): Use if rather than switch for
12497 check targetm.have_stack_protect_test.
12498
12499 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12500
12501 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
12502 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
12503 * config/arc/arc.h: Likewise.
12504 * config/arm/arm.h: Likewise.
12505 * config/bfin/bfin.h: Likewise.
12506 * config/epiphany/epiphany.h: Likewise.
12507 * config/frv/frv.h: Likewise.
12508 * config/ia64/ia64.h: Likewise.
12509 * config/iq2000/iq2000.h: Likewise.
12510 * config/lm32/lm32.h: Likewise.
12511 * config/m32r/m32r.h: Likewise.
12512 * config/mcore/mcore.h: Likewise.
12513 * config/mep/mep.h: Likewise.
12514 * config/microblaze/microblaze.h: Likewise.
12515 * config/mips/mips.h: Likewise.
12516 * config/mmix/mmix.h: Likewise.
12517 * config/mn10300/mn10300.h: Likewise.
12518 * config/nds32/nds32.h: Likewise.
12519 * config/nios2/nios2.h: Likewise.
12520 * config/pa/pa.h: Likewise.
12521 * config/rl78/rl78.h: Likewise.
12522 * config/sh/sh.h: Likewise.
12523 * config/sparc/sparc.h: Likewise.
12524 * config/stormy16/stormy16.h: Likewise.
12525 * config/tilegx/tilegx.h: Likewise.
12526 * config/tilepro/tilepro.h: Likewise.
12527 * config/v850/v850.h: Likewise.
12528 * config/xtensa/xtensa.h: Likewise.
12529 * doc/tm.texi: Regenerate.
12530 * doc/tm.texi.in: Adjust.
12531 * combine.c (simplify_set): Likewise.
12532 (simplify_comparison): Likewise.
12533 * expr.c (store_constructor): Likewise.
12534 * internal-fn.c (expand_arith_overflow): Likewise.
12535 * reload.c (push_reload): Likewise.
12536 (find_reloads): Likewise.
12537 (find_reloads_subreg_address): Likewise.
12538 * reload1.c (eliminate_regs_1): Likewise.
12539 * rtlanal.c (nonzero_bits1): Likewise.
12540 (num_sign_bit_copies1): Likewise.
12541 * simplify-rtx.c (simplify_truncation): Likewise.
12542
12543 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12544
12545 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
12546 of AUTO_INC_DEC with the preprocessor.
12547 * combine.c (combine_instructions): Likewise.
12548 (can_combine_p): Likewise.
12549 (try_combine): Likewise.
12550 * emit-rtl.c (try_split): Likewise.
12551 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
12552 * lower-subreg.c (resolve_simple_move): Likewise.
12553 * lra.c (update_inc_notes): Likewise.
12554 * recog.c (asm_operand_ok): Likewise.
12555 (constrain_operands): Likewise.
12556 * regrename.c (scan_rtx_address): Likewise.
12557 * reload.c (update_auto_inc_notes): Likewise.
12558 (reg_inc_found_and_valid_p): Likewise.
12559 * reload1.c (reload): Likewise.
12560 (emit_input_reload_insns): Likewise.
12561 (delete_output_reload): Likewise.
12562 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
12563 * valtrack.c (cleanup_auto_inc_dec): Likewise.
12564
12565 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12566
12567 * rtl.h: Always define AUTO_INC_DEC.
12568 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
12569 * combine.c (combine_instructions): Likewise.
12570 (can_combine_p): Likewise.
12571 (try_combine): Likewise.
12572 * emit-rtl.c (try_split): Likewise.
12573 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
12574 * lower-subreg.c (resolve_simple_move): Likewise.
12575 * lra.c (update_inc_notes): Likewise.
12576 * recog.c (asm_operand_ok): Likewise.
12577 (constrain_operands): Likewise.
12578 * regrename.c (scan_rtx_address): Likewise.
12579 * reload.c (update_auto_inc_notes): Likewise.
12580 (find_equiv_reg): Likewise.
12581 * reload1.c (reload): Likewise.
12582 (reload_as_needed): Likewise.
12583 (choose_reload_regs): Likewise.
12584 (emit_input_reload_insns): Likewise.
12585 (delete_output_reload): Likewise.
12586 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
12587 * valtrack.c (cleanup_auto_inc_dec): Likewise.
12588
12589 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12590
12591 * combine.c (can_combine_def_p): Don't check the value of
12592 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
12593 (combinable_i3pat): Likewise.
12594 (mark_used_regs_combine): Likewise.
12595 * regrename.c (rename_chains): Likewise.
12596 * reload.c (find_reloads_address): Likewise.
12597 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12598
12599 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12600
12601 * combine.c (update_rsp_from_reg_equal): Don't check if
12602 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
12603 (reg_nonzero_bits_for_combine): Likewise.
12604 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
12605 1.
12606 * config/frv/frv.h: Likewise.
12607 * config/lm32/lm32.h: Likewise.
12608 * config/mep/mep.h: Likewise.
12609 * config/mips/mips.h: Likewise.
12610 * config/rs6000/rs6000.h: Likewise.
12611 * config/sh/sh.h: Likewise.
12612 * config/tilegx/tilegx.h (enum reg_class): Likewise.
12613 * config/tilepro/tilepro.h: Likewise.
12614 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
12615 * doc/tm.texi: Regenerate.
12616 * doc/tm.texi.in: Adjust.
12617 * rtlanal.c (nonzero_bits1): Likewise.
12618
12619 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12620
12621 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
12622 with the preprocessor.
12623 (combine_instructions): Likewise.
12624 (try_combine): Likewise.
12625 (subst): Likewise.
12626 (distribute_notes): Likewise.
12627
12628 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12629
12630 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
12631 defined.
12632 (simplify_set): Likewise.
12633 * cse.c (cse_insn): Likewise.
12634 * fold-const.c (fold_single_bit_test): Likewise.
12635 (fold_unary_loc): Likewise.
12636 * postreload.c (reload_cse_simplify_set): Likewise.
12637 (reload_cse_simplify_operands): Likewise.
12638
12639 2015-07-08 Jiong Wang <jiong.wang@arm.com>
12640
12641 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
12642 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
12643
12644 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
12645
12646 PR target/66746
12647 * config/i386/x86intrin.h: Include <adxintrin.h> even if
12648 __iamcu__ is defined.
12649
12650 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
12651
12652 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
12653
12654 2015-07-08 Iain Sandoe <iain@codesourcery.com>
12655
12656 PR target/66523
12657 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
12658 names from preservation.
12659
12660 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
12661
12662 PR target/66806
12663 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
12664 change for IAMCU.
12665 (function_arg_advance_32): Don't pass vectors in registers for
12666 IAMCU.
12667 (function_arg_32): Likewise.
12668 (ix86_return_in_memory): Don't return vectors in registers for
12669 IAMCU.
12670
12671 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
12672
12673 PR middle-end/66334
12674 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
12675 hard regno live at the start of BB with incoming abnormal edges.
12676 * lra-lives.c (process_bb_lives): Ditto.
12677
12678 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
12679
12680 PR libgomp/65099
12681 * config/nvptx/mkoffload.c (main): Create an offload image only in
12682 64-bit configurations.
12683
12684 2015-07-08 Martin Liska <mliska@suse.cz>
12685
12686 PR bootstrap/66744
12687 * tree-sra.c (create_access_1): Call ctor without brackets.
12688 (create_artificial_child_access): Likewise.
12689
12690 2015-07-08 Richard Biener <rguenther@suse.de>
12691
12692 PR tree-optimization/66793
12693 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
12694 Properly split the block after stmts ending it.
12695
12696 2015-07-08 Richard Biener <rguenther@suse.de>
12697
12698 PR tree-optimization/66794
12699 * passes.c (execute_function_todo): Assert that post-dominators
12700 are not computed.
12701 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
12702 Free post-dominators.
12703
12704 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12705
12706 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
12707 with early exit.
12708
12709 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
12710
12711 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
12712 more than or equal 8 and less than 32 when optimizing for size.
12713
12714 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12715
12716 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
12717 COSTS_N_INSNS (1) and increment it appropriately throughout the
12718 function.
12719
12720 2015-07-08 Richard Biener <rguenther@suse.de>
12721
12722 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
12723
12724 2015-07-08 Alan Modra <amodra@gmail.com>
12725
12726 * target.def (rtx_costs): Remove "code" param, add "mode".
12727 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
12728 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
12729 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
12730 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
12731 call. Track mode when given in rtx.
12732 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
12733 (default_address_cost): Pass Pmode to rtx_cost.
12734 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
12735 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
12736 with NULL set.
12737 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
12738 (notreg_cost): Add mode param. Use it.
12739 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
12740 mode param and pass to set_src_cost. Update all calls.
12741 (hash_scan_set): Formatting.
12742 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
12743 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
12744 * hooks.h: Ditto.
12745 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
12746 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
12747 emit_store_flag): Update set_src_cost and rtx_cost calls.
12748 * auto-inc-dec.c (attempt_change): Likewise.
12749 * calls.c (precompute_register_parameters): Likewise.
12750 * combine.c (expand_compound_operation, make_extraction,
12751 force_to_mode, distribute_and_simplify_rtx): Likewise.
12752 * dojump.c (prefer_and_bit_test): Likewise.
12753 * dse.c (find_shift_sequence): Likewise.
12754 * expr.c (compress_float_constant): Likewise.
12755 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
12756 * ifcvt.c (noce_try_sign_mask): Likewise.
12757 * loop-doloop.c (doloop_optimize): Likewise.
12758 * loop-invariant.c (create_new_invariant): Likewise.
12759 * lower-subreg.c (shift_cost, compute_costs): Likewise.
12760 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
12761 lshift_cheap_p): Likewise.
12762 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
12763 try_replace_in_use, reload_cse_move2add): Likewise.
12764 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
12765 Likewise.
12766 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
12767 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
12768 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
12769 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
12770 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
12771 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
12772 to rtx_cost calls.
12773 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
12774 * config/arc/arc.c (arc_rtx_costs): Likewise.
12775 * config/arm/arm.c (arm_rtx_costs): Likewise.
12776 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
12777 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
12778 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
12779 * config/cris/cris.c (cris_rtx_costs): Likewise.
12780 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
12781 * config/frv/frv.c (frv_rtx_costs): Likewise.
12782 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
12783 * config/i386/i386.c (ix86_rtx_costs): Likewise.
12784 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
12785 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
12786 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
12787 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
12788 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
12789 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
12790 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
12791 * config/mep/mep.c (mep_rtx_cost): Likewise.
12792 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
12793 * config/mips/mips.c (mips_rtx_costs): Likewise.
12794 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
12795 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
12796 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
12797 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
12798 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
12799 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
12800 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
12801 * config/pa/pa.c (hppa_rtx_costs): Likewise.
12802 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
12803 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
12804 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
12805 * config/s390/s390.c (s390_rtx_costs): Likewise.
12806 * config/sh/sh.c (sh_rtx_costs): Likewise.
12807 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
12808 * config/spu/spu.c (spu_rtx_costs): Likewise.
12809 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
12810 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
12811 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
12812 * config/v850/v850.c (v850_rtx_costs): Likewise.
12813 * config/vax/vax.c (vax_rtx_costs): Likewise.
12814 * config/visium/visium.c (visium_rtx_costs): Likewise.
12815 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
12816 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
12817 "code" param, and pass as outer_code to first rtx_cost call. Pass
12818 mode to rtx_cost calls.
12819 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
12820 calls.
12821 (aarch64_rtx_costs_wrapper): Update.
12822 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
12823 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
12824 rtx_cost calls.
12825 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
12826 and rtx_cost calls.
12827 (avr_operand_rtx_cost): Similarly.
12828 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
12829 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
12830 * config/mips/mips.c (mips_stack_address_p): Comment typo.
12831 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
12832 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
12833 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
12834 rtx_cost.
12835 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
12836 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
12837 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
12838 * doc/tm.texi: Regenerate.
12839
12840 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
12841
12842 * tree-core.h: Include symtab.h.
12843 * rtl.h: Include hard-reg-set.h but not flags.h.
12844 (HARD_CONST): Remove condition compilation involving HARD_CONST since
12845 hard-reg-set.h is always included.
12846 * regs.h: Don't include hard-reg-set.h or rtl.h.
12847 * cfg.h: Include dominance.h.
12848 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
12849 * backend.h: New. Aggregate commonly used backend header files.
12850 * gimple-ssa.h: Don't include tree-hasher.h.
12851 * ssa.h: New. Aggregate commonly used SSA header files.
12852 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
12853 * sel-sched-ir.h: Flatten includes.
12854 * lra-int.h: Flatten completely.
12855 * sel-sched-dump.h: Flatten includes.
12856 * ira-int.h: Flatten includes.
12857 * gimple-streamer.h: Remove all includes.
12858 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
12859 * resource.h: Flatten hard-reg-set.h and df.h.
12860 * sched-int.h: Flatten insn-arrt.h and df.h.
12861 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
12862 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
12863 * genattrtab.c (write_header): Adjust generated includes.
12864 * genautomata.c (main): Likewise.
12865 * genconditions.c (write-header): Likewise.
12866 * genemit.c (main): Likewise.
12867 * gengtype.c (open_base_files): Likewise.
12868 * genopinit.c (main): Likewise.
12869 * genoutput.c (output_prologue): Likewise.
12870 * genpeep.c (main): Likewise.
12871 * genpreds.c (write_insn_preds_c): Likewise.
12872 * genrecog.c (write_header): Likewise.
12873 * alias.c: Adjust includes.
12874 * asan.c: Likewise.
12875 * attribs.c: Likewise.
12876 * auto-inc-dec.c: Likewise.
12877 * auto-profile.c: Likewise.
12878 * bb-reorder.c: Likewise.
12879 * bt-load.c: Likewise.
12880 * builtins.c: Likewise.
12881 * caller-save.c: Likewise.
12882 * calls.c: Likewise.
12883 * ccmp.c: Likewise.
12884 * cfg.c: Likewise.
12885 * cfganal.c: Likewise.
12886 * cfgbuild.c: Likewise.
12887 * cfgcleanup.c: Likewise.
12888 * cfgexpand.c: Likewise.
12889 * cfghooks.c: Likewise.
12890 * cfgloop.c: Likewise.
12891 * cfgloopanal.c: Likewise.
12892 * cfgloopmanip.c: Likewise.
12893 * cfgrtl.c: Likewise.
12894 * cgraph.c: Likewise.
12895 * cgraphbuild.c: Likewise.
12896 * cgraphclones.c: Likewise.
12897 * cgraphunit.c: Likewise.
12898 * cilk-common.c: Likewise.
12899 * combine-stack-adj.c: Likewise.
12900 * combine.c: Likewise.
12901 * compare-elim.c: Likewise.
12902 * convert.c: Likewise.
12903 * coverage.c: Likewise.
12904 * cppbuiltin.c: Likewise.
12905 * cprop.c: Likewise.
12906 * cse.c: Likewise.
12907 * cselib.c: Likewise.
12908 * data-streamer-in.c: Likewise.
12909 * data-streamer-out.c: Likewise.
12910 * data-streamer.c: Likewise.
12911 * dbxout.c: Likewise.
12912 * dce.c: Likewise.
12913 * ddg.c: Likewise.
12914 * debug.c: Likewise.
12915 * df-core.c: Likewise.
12916 * df-problems.c: Likewise.
12917 * df-scan.c: Likewise.
12918 * dfp.c: Likewise.
12919 * dojump.c: Likewise.
12920 * dominance.c: Likewise.
12921 * domwalk.c: Likewise.
12922 * double-int.c: Likewise.
12923 * dse.c: Likewise.
12924 * dumpfile.c: Likewise.
12925 * dwarf2asm.c: Likewise.
12926 * dwarf2cfi.c: Likewise.
12927 * dwarf2out.c: Likewise.
12928 * emit-rtl.c: Likewise.
12929 * et-forest.c: Likewise.
12930 * except.c: Likewise.
12931 * explow.c: Likewise.
12932 * expmed.c: Likewise.
12933 * expr.c: Likewise.
12934 * final.c: Likewise.
12935 * fixed-value.c: Likewise.
12936 * fold-const.c: Likewise.
12937 * function.c: Likewise.
12938 * fwprop.c: Likewise.
12939 * gcc-plugin.h: Likewise.
12940 * gcse-common.c: Likewise.
12941 * gcse.c: Likewise.
12942 * generic-match-head.c: Likewise.
12943 * ggc-page.c: Likewise.
12944 * gimple-builder.c: Likewise.
12945 * gimple-expr.c: Likewise.
12946 * gimple-fold.c: Likewise.
12947 * gimple-iterator.c: Likewise.
12948 * gimple-low.c: Likewise.
12949 * gimple-match-head.c: Likewise.
12950 * gimple-pretty-print.c: Likewise.
12951 * gimple-ssa-isolate-paths.c: Likewise.
12952 * gimple-ssa-strength-reduction.c: Likewise.
12953 * gimple-streamer-in.c: Likewise.
12954 * gimple-streamer-out.c: Likewise.
12955 * gimple-walk.c: Likewise.
12956 * gimple.c: Likewise.
12957 * gimplify-me.c: Likewise.
12958 * gimplify.c: Likewise.
12959 * godump.c: Likewise.
12960 * graph.c: Likewise.
12961 * graphite-blocking.c: Likewise.
12962 * graphite-dependences.c: Likewise.
12963 * graphite-interchange.c: Likewise.
12964 * graphite-isl-ast-to-gimple.c: Likewise.
12965 * graphite-optimize-isl.c: Likewise.
12966 * graphite-poly.c: Likewise.
12967 * graphite-scop-detection.c: Likewise.
12968 * graphite-sese-to-poly.c: Likewise.
12969 * graphite.c: Likewise.
12970 * haifa-sched.c: Likewise.
12971 * hw-doloop.c: Likewise.
12972 * ifcvt.c: Likewise.
12973 * init-regs.c: Likewise.
12974 * internal-fn.c: Likewise.
12975 * ipa-chkp.c: Likewise.
12976 * ipa-comdats.c: Likewise.
12977 * ipa-cp.c: Likewise.
12978 * ipa-devirt.c: Likewise.
12979 * ipa-icf-gimple.c: Likewise.
12980 * ipa-icf.c: Likewise.
12981 * ipa-inline-analysis.c: Likewise.
12982 * ipa-inline-transform.c: Likewise.
12983 * ipa-inline.c: Likewise.
12984 * ipa-polymorphic-call.c: Likewise.
12985 * ipa-profile.c: Likewise.
12986 * ipa-prop.c: Likewise.
12987 * ipa-pure-const.c: Likewise.
12988 * ipa-ref.c: Likewise.
12989 * ipa-reference.c: Likewise.
12990 * ipa-split.c: Likewise.
12991 * ipa-utils.c: Likewise.
12992 * ipa-visibility.c: Likewise.
12993 * ipa.c: Likewise.
12994 * ira-build.c: Likewise.
12995 * ira-color.c: Likewise.
12996 * ira-conflicts.c: Likewise.
12997 * ira-costs.c: Likewise.
12998 * ira-emit.c: Likewise.
12999 * ira-lives.c: Likewise.
13000 * ira.c: Likewise.
13001 * jump.c: Likewise.
13002 * langhooks.c: Likewise.
13003 * lcm.c: Likewise.
13004 * loop-doloop.c: Likewise.
13005 * loop-init.c: Likewise.
13006 * loop-invariant.c: Likewise.
13007 * loop-iv.c: Likewise.
13008 * loop-unroll.c: Likewise.
13009 * lower-subreg.c: Likewise.
13010 * lra-assigns.c: Likewise.
13011 * lra-coalesce.c: Likewise.
13012 * lra-constraints.c: Likewise.
13013 * lra-eliminations.c: Likewise.
13014 * lra-lives.c: Likewise.
13015 * lra-remat.c: Likewise.
13016 * lra-spills.c: Likewise.
13017 * lra.c: Likewise.
13018 * lto-cgraph.c: Likewise.
13019 * lto-compress.c: Likewise.
13020 * lto-opts.c: Likewise.
13021 * lto-section-in.c: Likewise.
13022 * lto-section-out.c: Likewise.
13023 * lto-streamer-in.c: Likewise.
13024 * lto-streamer-out.c: Likewise.
13025 * lto-streamer.c: Likewise.
13026 * mcf.c: Likewise.
13027 * mode-switching.c: Likewise.
13028 * modulo-sched.c: Likewise.
13029 * omega.c: Likewise.
13030 * omp-low.c: Likewise.
13031 * optabs.c: Likewise.
13032 * opts-global.c: Likewise.
13033 * passes.c: Likewise.
13034 * plugin.c: Likewise.
13035 * postreload-gcse.c: Likewise.
13036 * postreload.c: Likewise.
13037 * predict.c: Likewise.
13038 * print-rtl.c: Likewise.
13039 * print-tree.c: Likewise.
13040 * profile.c: Likewise.
13041 * real.c: Likewise.
13042 * realmpfr.c: Likewise.
13043 * recog.c: Likewise.
13044 * ree.c: Likewise.
13045 * reg-stack.c: Likewise.
13046 * regcprop.c: Likewise.
13047 * reginfo.c: Likewise.
13048 * regrename.c: Likewise.
13049 * regstat.c: Likewise.
13050 * reload.c: Likewise.
13051 * reload1.c: Likewise.
13052 * reorg.c: Likewise.
13053 * resource.c: Likewise.
13054 * rtl-chkp.c: Likewise.
13055 * rtlanal.c: Likewise.
13056 * rtlhooks.c: Likewise.
13057 * sanopt.c: Likewise.
13058 * sched-deps.c: Likewise.
13059 * sched-ebb.c: Likewise.
13060 * sched-rgn.c: Likewise.
13061 * sched-vis.c: Likewise.
13062 * sdbout.c: Likewise.
13063 * sel-sched-dump.c: Likewise.
13064 * sel-sched-ir.c: Likewise.
13065 * sel-sched.c: Likewise.
13066 * sese.c: Likewise.
13067 * shrink-wrap.c: Likewise.
13068 * simplify-rtx.c: Likewise.
13069 * stack-ptr-mod.c: Likewise.
13070 * stmt.c: Likewise.
13071 * stor-layout.c: Likewise.
13072 * store-motion.c: Likewise.
13073 * stringpool.c: Likewise.
13074 * symtab.c: Likewise.
13075 * target-globals.c: Likewise.
13076 * targhooks.c: Likewise.
13077 * toplev.c: Likewise.
13078 * tracer.c: Likewise.
13079 * trans-mem.c: Likewise.
13080 * tree-affine.c: Likewise.
13081 * tree-browser.c: Likewise.
13082 * tree-call-cdce.c: Likewise.
13083 * tree-cfg.c: Likewise.
13084 * tree-cfgcleanup.c: Likewise.
13085 * tree-chkp-opt.c: Likewise.
13086 * tree-chkp.c: Likewise.
13087 * tree-chrec.c: Likewise.
13088 * tree-complex.c: Likewise.
13089 * tree-data-ref.c: Likewise.
13090 * tree-dfa.c: Likewise.
13091 * tree-diagnostic.c: Likewise.
13092 * tree-dump.c: Likewise.
13093 * tree-eh.c: Likewise.
13094 * tree-emutls.c: Likewise.
13095 * tree-if-conv.c: Likewise.
13096 * tree-inline.c: Likewise.
13097 * tree-into-ssa.c: Likewise.
13098 * tree-iterator.c: Likewise.
13099 * tree-loop-distribution.c: Likewise.
13100 * tree-nested.c: Likewise.
13101 * tree-nrv.c: Likewise.
13102 * tree-object-size.c: Likewise.
13103 * tree-outof-ssa.c: Likewise.
13104 * tree-parloops.c: Likewise.
13105 * tree-phinodes.c: Likewise.
13106 * tree-predcom.c: Likewise.
13107 * tree-pretty-print.c: Likewise.
13108 * tree-profile.c: Likewise.
13109 * tree-scalar-evolution.c: Likewise.
13110 * tree-sra.c: Likewise.
13111 * tree-ssa-address.c: Likewise.
13112 * tree-ssa-alias.c: Likewise.
13113 * tree-ssa-ccp.c: Likewise.
13114 * tree-ssa-coalesce.c: Likewise.
13115 * tree-ssa-copy.c: Likewise.
13116 * tree-ssa-copyrename.c: Likewise.
13117 * tree-ssa-dce.c: Likewise.
13118 * tree-ssa-dom.c: Likewise.
13119 * tree-ssa-dse.c: Likewise.
13120 * tree-ssa-forwprop.c: Likewise.
13121 * tree-ssa-ifcombine.c: Likewise.
13122 * tree-ssa-live.c: Likewise.
13123 * tree-ssa-loop-ch.c: Likewise.
13124 * tree-ssa-loop-im.c: Likewise.
13125 * tree-ssa-loop-ivcanon.c: Likewise.
13126 * tree-ssa-loop-ivopts.c: Likewise.
13127 * tree-ssa-loop-manip.c: Likewise.
13128 * tree-ssa-loop-niter.c: Likewise.
13129 * tree-ssa-loop-prefetch.c: Likewise.
13130 * tree-ssa-loop-unswitch.c: Likewise.
13131 * tree-ssa-loop.c: Likewise.
13132 * tree-ssa-math-opts.c: Likewise.
13133 * tree-ssa-operands.c: Likewise.
13134 * tree-ssa-phiopt.c: Likewise.
13135 * tree-ssa-phiprop.c: Likewise.
13136 * tree-ssa-pre.c: Likewise.
13137 * tree-ssa-propagate.c: Likewise.
13138 * tree-ssa-reassoc.c: Likewise.
13139 * tree-ssa-sccvn.c: Likewise.
13140 * tree-ssa-scopedtables.c: Likewise.
13141 * tree-ssa-sink.c: Likewise.
13142 * tree-ssa-strlen.c: Likewise.
13143 * tree-ssa-structalias.c: Likewise.
13144 * tree-ssa-tail-merge.c: Likewise.
13145 * tree-ssa-ter.c: Likewise.
13146 * tree-ssa-threadedge.c: Likewise.
13147 * tree-ssa-threadupdate.c: Likewise.
13148 * tree-ssa-uncprop.c: Likewise.
13149 * tree-ssa-uninit.c: Likewise.
13150 * tree-ssa.c: Likewise.
13151 * tree-ssanames.c: Likewise.
13152 * tree-stdarg.c: Likewise.
13153 * tree-streamer-in.c: Likewise.
13154 * tree-streamer-out.c: Likewise.
13155 * tree-streamer.c: Likewise.
13156 * tree-switch-conversion.c: Likewise.
13157 * tree-tailcall.c: Likewise.
13158 * tree-vect-data-refs.c: Likewise.
13159 * tree-vect-generic.c: Likewise.
13160 * tree-vect-loop-manip.c: Likewise.
13161 * tree-vect-loop.c: Likewise.
13162 * tree-vect-patterns.c: Likewise.
13163 * tree-vect-slp.c: Likewise.
13164 * tree-vect-stmts.c: Likewise.
13165 * tree-vectorizer.c: Likewise.
13166 * tree-vrp.c: Likewise.
13167 * tree.c: Likewise.
13168 * tsan.c: Likewise.
13169 * ubsan.c: Likewise.
13170 * valtrack.c: Likewise.
13171 * value-prof.c: Likewise.
13172 * var-tracking.c: Likewise.
13173 * varasm.c: Likewise.
13174 * varpool.c: Likewise.
13175 * vmsdbgout.c: Likewise.
13176 * vtable-verify.c: Likewise.
13177 * web.c: Likewise.
13178 * wide-int.cc: Likewise.
13179 * xcoffout.c: Likewise.
13180 * config/aarch64/aarch64-builtins.c: Likewise.
13181 * config/aarch64/aarch64.c: Likewise.
13182 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13183 * config/alpha/alpha.c: Likewise.
13184 * config/arc/arc.c: Likewise.
13185 * config/arm/aarch-common.c: Likewise.
13186 * config/arm/arm-builtins.c: Likewise.
13187 * config/arm/arm-c.c: Likewise.
13188 * config/arm/arm.c: Likewise.
13189 * config/avr/avr-c.c: Likewise.
13190 * config/avr/avr-log.c: Likewise.
13191 * config/avr/avr.c: Likewise.
13192 * config/bfin/bfin.c: Likewise.
13193 * config/c6x/c6x.c: Likewise.
13194 * config/cr16/cr16.c: Likewise.
13195 * config/cris/cris.c: Likewise.
13196 * config/darwin-c.c: Likewise.
13197 * config/darwin.c: Likewise.
13198 * config/epiphany/epiphany.c: Likewise.
13199 * config/epiphany/mode-switch-use.c: Likewise.
13200 * config/epiphany/resolve-sw-modes.c: Likewise.
13201 * config/fr30/fr30.c: Likewise.
13202 * config/frv/frv.c: Likewise.
13203 * config/ft32/ft32.c: Likewise.
13204 * config/h8300/h8300.c: Likewise.
13205 * config/i386/i386-c.c: Likewise.
13206 * config/i386/i386.c: Likewise.
13207 * config/i386/msformat-c.c: Likewise.
13208 * config/i386/winnt-cxx.c: Likewise.
13209 * config/i386/winnt-stubs.c: Likewise.
13210 * config/i386/winnt.c: Likewise.
13211 * config/ia64/ia64-c.c: Likewise.
13212 * config/ia64/ia64.c: Likewise.
13213 * config/iq2000/iq2000.c: Likewise.
13214 * config/lm32/lm32.c: Likewise.
13215 * config/m32c/m32c-pragma.c: Likewise.
13216 * config/m32c/m32c.c: Likewise.
13217 * config/m32r/m32r.c: Likewise.
13218 * config/m68k/m68k.c: Likewise.
13219 * config/mcore/mcore.c: Likewise.
13220 * config/mep/mep-pragma.c: Likewise.
13221 * config/mep/mep.c: Likewise.
13222 * config/microblaze/microblaze-c.c: Likewise.
13223 * config/microblaze/microblaze.c: Likewise.
13224 * config/mips/mips.c: Likewise.
13225 * config/mmix/mmix.c: Likewise.
13226 * config/mn10300/mn10300.c: Likewise.
13227 * config/moxie/moxie.c: Likewise.
13228 * config/msp430/msp430-c.c: Likewise.
13229 * config/msp430/msp430.c: Likewise.
13230 * config/nds32/nds32-cost.c: Likewise.
13231 * config/nds32/nds32-fp-as-gp.c: Likewise.
13232 * config/nds32/nds32-intrinsic.c: Likewise.
13233 * config/nds32/nds32-isr.c: Likewise.
13234 * config/nds32/nds32-md-auxiliary.c: Likewise.
13235 * config/nds32/nds32-memory-manipulation.c: Likewise.
13236 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13237 * config/nds32/nds32-predicates.c: Likewise.
13238 * config/nds32/nds32.c: Likewise.
13239 * config/nios2/nios2.c: Likewise.
13240 * config/nvptx/nvptx.c: Likewise.
13241 * config/pa/pa.c: Likewise.
13242 * config/pdp11/pdp11.c: Likewise.
13243 * config/rl78/rl78-c.c: Likewise.
13244 * config/rl78/rl78.c: Likewise.
13245 * config/rs6000/rs6000-c.c: Likewise.
13246 * config/rs6000/rs6000.c: Likewise.
13247 * config/rx/rx.c: Likewise.
13248 * config/s390/s390-c.c: Likewise.
13249 * config/s390/s390.c: Likewise.
13250 * config/sh/sh-c.c: Likewise.
13251 * config/sh/sh-mem.cc: Likewise.
13252 * config/sh/sh.c: Likewise.
13253 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13254 * config/sh/sh_treg_combine.cc: Likewise.
13255 * config/sol2-c.c: Likewise.
13256 * config/sol2-cxx.c: Likewise.
13257 * config/sol2-stubs.c: Likewise.
13258 * config/sol2.c: Likewise.
13259 * config/sparc/sparc-c.c: Likewise.
13260 * config/sparc/sparc.c: Likewise.
13261 * config/spu/spu-c.c: Likewise.
13262 * config/spu/spu.c: Likewise.
13263 * config/stormy16/stormy16.c: Likewise.
13264 * config/tilegx/mul-tables.c: Likewise.
13265 * config/tilegx/tilegx-c.c: Likewise.
13266 * config/tilegx/tilegx.c: Likewise.
13267 * config/tilepro/mul-tables.c: Likewise.
13268 * config/tilepro/tilepro-c.c: Likewise.
13269 * config/tilepro/tilepro.c: Likewise.
13270 * config/v850/v850-c.c: Likewise.
13271 * config/v850/v850.c: Likewise.
13272 * config/vax/vax.c: Likewise.
13273 * config/visium/visium.c: Likewise.
13274 * config/vms/vms-c.c: Likewise.
13275 * config/vms/vms.c: Likewise.
13276 * config/vxworks.c: Likewise.
13277 * config/xtensa/xtensa.c: Likewise.
13278
13279 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
13280
13281 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
13282 Remove operand constraints. Change operand 2 predicate to
13283 nonmemory operand. Limit const_int values to mode bitsize. Only
13284 allow const_int values less than 32 when optimizing for size.
13285 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
13286 Remove operand constraints.
13287 (*bt<mode>): Use SImode for const_int values less than 32.
13288 (regmode): Remove mode attribute.
13289
13290 2015-07-07 Anatoly Sokolov <aesok@post.ru>
13291
13292 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13293 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
13294 moxie_legitimate_address_p): New functions.
13295 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
13296
13297 2015-07-07 Tom de Vries <tom@codesourcery.com>
13298
13299 PR tree-optimization/66642
13300 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
13301 header comment. Rename split_edge variable to edge_at_split. Split
13302 exit edge to create new loop exit bb. Insert loop exit phis in new
13303 loop exit bb.
13304
13305 2015-07-07 Tom de Vries <tom@codesourcery.com>
13306
13307 * tree-cfg.c (get_virtual_phi): New function.
13308 * tree-cfg.h (get_virtual_phi): Declare.
13309 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
13310 (rewrite_virtuals_into_loop_closed_ssa): New function.
13311 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
13312 Declare.
13313 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
13314 (transform_to_exit_first_loop_alt): Use
13315 rewrite_virtuals_into_loop_closed_ssa.
13316
13317 2015-07-07 Richard Biener <rguenther@suse.de>
13318
13319 * fold-const.c (fold_binary_loc): Move
13320 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
13321 * match.pd: ... here.
13322 Add (X * C1) % C2 -> 0 simplification pattern derived from
13323 extract_muldiv_1.
13324
13325 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
13326
13327 PR target/66780
13328 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
13329 change for target/65249.
13330
13331 2015-07-07 Paulo Matos <pmatos@broadcom.com>
13332
13333 * symtab.c (address_matters_1): Fix typo in comment above.
13334 (can_increase_alignment_p): Likewise.
13335
13336 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13337
13338 * function.c (free_after_compilation): Clear PROP_cfg in
13339 f->curr_properties.
13340
13341 2015-07-07 Richard Biener <rguenther@suse.de>
13342
13343 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
13344 add which use to.
13345 (add_control_edge): Remove excessive vertical space in dumping.
13346 (process_ssa_edge_worklist): Simulate at most one statement and
13347 return whether we did. Do not simulate PHIs if they are in a
13348 BB not yet simulated.
13349 (ssa_propagate): Adjust to always drain the BB worklist whenever
13350 a BB is available there, likewise the VARYING edges list before
13351 the interesting edge list.
13352
13353 2015-07-07 Christian Bruel <christian.bruel@st.com>
13354
13355 PR target/52144
13356 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
13357
13358 2015-07-07 Richard Biener <rguenther@suse.de>
13359
13360 PR middle-end/66739
13361 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
13362 A - B.
13363
13364 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
13365
13366 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
13367 modes for operands 0 and 3. Use SImode for operands 2 and 3.
13368 Copy operand 0 to a temporary if !ext_register_operand. Remove
13369 ancient extract_bit_field workaround.
13370 (insv<mode>_1): Rename from mov<mode>_insv_1.
13371 (*insvqi): Rename from *movqi_insv_2.
13372 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
13373 for renamed insvsi_1.
13374 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
13375
13376 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
13377
13378 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
13379 call to nvptx_reorg_subreg.
13380
13381 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
13382
13383 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
13384 * graphite-dependencies.c, graphite-interchange.c,
13385 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
13386 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
13387 Likewise.
13388
13389 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
13390
13391 * match.pd: Remove element_mode inside HONOR_*.
13392 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
13393 (~X | X -> -1, ~X ^ X -> -1): Merge.
13394 * tree.c (build_each_one_cst): New function.
13395 * tree.h (build_each_one_cst): Likewise.
13396
13397 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
13398
13399 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13400 PROCESSOR_IAMCU.
13401
13402 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
13403
13404 * config.gcc <mips*-*-*>: Add fused-madd.opt.
13405 * config/mips/mips.opt (mfused-madd): Remove.
13406 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
13407 * config/mips/mips.h (TARGET_MIPS8000): New.
13408 (ISA_HAS_FP_MADD4_MSUB4): Remove.
13409 (ISA_HAS_FP_MADDF_MSUBF): Remove.
13410 (ISA_HAS_FP_MADD3_MSUB3): Remove.
13411 (ISA_HAS_NMADD4_NMSUB4): Remove.
13412 (ISA_HAS_NMADD3_NMSUB3): Remove.
13413 (ISA_HAS_FUSED_MADD4): New.
13414 (ISA_HAS_UNFUSED_MADD4): New.
13415 (ISA_HAS_FUSED_MADDF): New.
13416 (ISA_HAS_FUSED_MADD3): New.
13417 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
13418 (*fma<mode>4_madd3) New.
13419 (*fma<mode>4_madd4) New.
13420 (*fma<mode>4_maddf) New.
13421 (fms<mode>4) New.
13422 (*fms<mode>4_msub3) New.
13423 (*fms<mode>4_msub4) New.
13424 (fnma<mode>4) New.
13425 (*fnma<mode>4_nmadd3) New.
13426 (*fnma<mode>4_nmadd4) New.
13427 (fnms<mode>4) New.
13428 (*fnms<mode>4_nmsub3) New.
13429 (*fnms<mode>4_nmsub4) New.
13430 (*madd4<mode>) Modify to be unfused only.
13431 (*msub4<mode>) Modify to be unfused only.
13432 (*nmadd4<mode>) Modify to be unfused only.
13433 (*nmsub4<mode>) Modify to be unfused only.
13434 (*madd3<mode>) Remove.
13435 (*msub3<mode>) Remove.
13436 (*nmadd3<mode>) Remove.
13437 (*nmsub3<mode>) Remove.
13438 (*nmadd3<mode>_fastmath) Remove.
13439 (*nmsub3<mode>_fastmath) Remove.
13440 (*nmadd4<mode>_fastmath) Update condition.
13441 (*nmsub4<mode>_fastmath) Update condition.
13442
13443 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
13444
13445 PR target/65956
13446 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
13447 alignment attribute, exploring one level down for records and arrays.
13448
13449 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
13450
13451 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
13452 modes for operands 0 and 1. Use SImode for operands 2 and 3.
13453 Copy operand 1 to a temporary if !ext_register_operand. Remove
13454 ancient extract_bit_field workaround.
13455 (*extv<mode>): Rename from *mov<mode>_extv_1.
13456 (*extvqi): Rename from *movqi_extv_1.
13457 (extzv<mode>): Rename from extzv. Use SWI248 modes for
13458 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
13459 to a temporary if !ext_register_operand. Remove ancient
13460 extract_bit_field workaround.
13461 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
13462 (*extzvqi): Rename from *movqi_extzv_2.
13463 (*testqi_ext_3): Remove modes from const_int_operand predicated
13464 operands. Add "n" constraint.
13465 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
13466 operand. Add "J" constraint.
13467 (*btsq, *btrq, *btcq peephole2s): Remove mode from
13468 const_0_to_63 predicated operand.
13469 (regmode): New insn attribute.
13470 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
13471 to nonmemory_operand. Use regmode insn attribute.
13472 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
13473 (*jcc_bt<mode>_mask): Remove mode from operand 3.
13474 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
13475 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
13476 operands. Use "N" constraint instead of "n".
13477
13478 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
13479
13480 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
13481
13482 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
13483
13484 PR target/66749
13485 * config/i386/i386.c (iamcu_cost): New.
13486 (m_IAMCU): Likewise.
13487 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
13488 (processor_target_table): Add an entry for "iamcu".
13489 (processor_alias_table): Likewise.
13490 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
13491 (ix86_adjust_cost): Likewise.
13492 (ia32_multipass_dfa_lookahead): Likewise.
13493 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
13494 * config/i386/x86-tune.def: Updated for m_IAMCU.
13495
13496 2015-07-06 Richard Biener <rguenther@suse.de>
13497
13498 PR tree-optimization/66772
13499 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
13500 values are available in the PHI node BB when there are
13501 still unexecutable edges.
13502
13503 2015-07-06 Richard Biener <rguenther@suse.de>
13504
13505 PR tree-optimization/66767
13506 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
13507 Make sure to build the alignment test on a SSA name without
13508 final alignment info valid only if the alignment test
13509 evaluates to true.
13510
13511 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
13512
13513 PR target/66620
13514 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
13515 loop start when inserting LSETUP.
13516
13517 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
13518
13519 PR target/53383
13520 * config/i386/i386.c (ix86_option_override_internal): Allow
13521 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
13522
13523 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13524
13525 * read-md.c (decimal_string): Rename to ...
13526 (md_decimal_string): ... this.
13527 (handle_enum): Reflect this.
13528
13529 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
13530
13531 PR target/66731
13532 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
13533
13534 2015-07-06 Richard Biener <rguenther@suse.de>
13535
13536 PR middle-end/66759
13537 * match.pd: Add missing constraint of y to REAL_CST in
13538 REAL_CST - x CMP y to y - CST CMP x simplification.
13539
13540 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
13541
13542 PR tree-optimization/66757
13543 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
13544
13545 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
13546 Sandra Loosemore <sandra@codesourcery.com>
13547
13548 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
13549 Delete extern declaration.
13550 (gprel_constant_p): Add extern declaration.
13551 * config/nios2/constraints.md ("S"): Use gprel_constant_p
13552 instead of nios2_symbol_ref_in_small_data_p.
13553 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
13554 (nios2_symbol_ref_in_small_data_p): Make static.
13555 (gprel_constant_p): Make non-static.
13556
13557 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
13558
13559 * doc/fragments.texi (Target Fragment): Convert debian.org
13560 link to use https.
13561 * doc/install.texi (Configuration): Ditto.
13562
13563 2015-07-05 Jakub Jelinek <jakub@redhat.com>
13564
13565 PR tree-optimization/66718
13566 * tree-vect-stmts.c (vectorizable_call): Replace uses of
13567 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
13568
13569 PR tree-optimization/66718
13570 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
13571 vectorizable_load, vectorizable_condition): Move vectype,
13572 nunits, ncopies computation after checking what kind of statement
13573 stmt is.
13574
13575 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13576
13577 * target-insns.def (extv, extzv, insv): New targetm instruction
13578 patterns.
13579 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
13580 interface.
13581 * recog.c (simplify_while_replacing): Likewise.
13582
13583 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13584
13585 * target-insns.def (doloop_begin, doloop_end): New targetm
13586 instruction patterns.
13587 * loop-init.c: Include target.h.
13588 (pass_loop2::gate): Use the new targetm patterns instead of
13589 HAVE_*/gen_* interface.
13590 (pass_rtl_doloop::gate): Likewise.
13591 (pass_rtl_doloop::execute): Remove preprocessor condition.
13592 * hw-doloop.c: Build unconditionally.
13593 * loop-doloop.c: Likewise.
13594 (doloop_optimize): Use the new targetm patterns instead of
13595 HAVE_*/gen_* interface.
13596 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
13597 * modulo-sched.c (doloop_register_get): Likewise.
13598
13599 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13600
13601 * target-insns.def (clear_cache): New targetm instruction pattern.
13602 * builtins.c (expand_builtin___clear_cache): Use it instead of
13603 HAVE_*/gen_* interface.
13604
13605 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13606
13607 * target-insns.def (allocate_stack, check_stack, probe_stack)
13608 (probe_stack_address, split_stack_prologue, split_stack_space_check):
13609 New targetm instruction patterns.
13610 * explow.c (allocate_dynamic_stack_space): Use them instead of
13611 HAVE_*/gen_* interface.
13612 (emit_stack_probe): Likewise.
13613 (probe_stack_range): Likewise.
13614 * function.c (thread_prologue_and_epilogue_insns): Likewise.
13615
13616 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13617
13618 * target-insns.def (stack_protect_set, stack_protect_test): New
13619 targetm instruction patterns.
13620 * cfgexpand.c (stack_protect_prologue): Use them instead of
13621 HAVE_*/gen_* interface.
13622 * function.c (stack_protect_epilogue): Likewise.
13623
13624 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13625
13626 * expr.h (gen_move_insn_uncast): Delete.
13627 * expr.c (gen_move_insn_uncast): Delete.
13628
13629 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13630
13631 * target-insns.def (restore_stack_block, restore_stack_function)
13632 (restore_stack_nonlocal, save_stack_block, save_stack_function)
13633 (save_stack_nonlocal): New targetm instruction patterns.
13634 * builtins.c (expand_builtin_apply): Use them instead of
13635 HAVE_*/gen_* interface.
13636 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
13637
13638 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13639
13640 * target-insns.def (trap): New targetm instruction pattern.
13641 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
13642 interface.
13643 * explow.c (allocate_dynamic_stack_space): Likewise.
13644 * ifcvt.c (find_if_header): Likewise.
13645
13646 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13647
13648 * target-insns.def (prefetch): New targetm instruction pattern.
13649 * tree-ssa-loop-prefetch.c: Include targeth.
13650 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
13651 of HAVE_*/gen_* interface.
13652 * builtins.c (expand_builtin_prefetch): Likewise.
13653 * toplev.c (process_options): Likewise.
13654
13655 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13656
13657 * target-insns.def (untyped_call, untyped_return): New targetm
13658 instruction patterns.
13659 * builtins.c (expand_builtin_apply): Use them instead of
13660 HAVE_*/gen_* interface.
13661 (result_vector): Define unconditionally.
13662
13663 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13664
13665 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
13666 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
13667 (nonlocal_goto_receiver): New targetm instruction patterns.
13668 * builtins.c (expand_builtin_setjmp_setup): Use them instead
13669 of HAVE_*/gen_* interface.
13670 (expand_builtin_setjmp_receiver): Likewise.
13671 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
13672 * except.c (expand_dw2_landing_pad_for_region): Likewise.
13673
13674 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13675
13676 * target.def: Add code_for_* hooks.
13677 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
13678 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
13679 * target-insns.def (casesi, tablejump): New targetm instruction
13680 patterns.
13681 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
13682 (do_tablejump): Likewise.
13683 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
13684 (expand_sjlj_dispatch_table): Likewise.
13685 * targhooks.c (default_case_values_threshold): Likewise.
13686
13687 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
13688
13689 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
13690 Use rtx_insn * instead of rtx.
13691 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
13692 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
13693 (nios2_call_tls_get_addr): Likewise.
13694 (nios2_emit_expensive_div): Likewise.
13695 (nios2_emit_move_sequence): Change return type to bool.
13696 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
13697 Change return type to bool.
13698
13699 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
13700
13701 PR target/66747
13702 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
13703
13704 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
13705
13706 PR target/66114
13707 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
13708 of register_operand. Remove constraint.
13709
13710 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
13711
13712 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
13713 the first argument.
13714
13715 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
13716
13717 * attribs.c (decl_attributes): Guard inform with the return value
13718 of the preceding warning.
13719
13720 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
13721
13722 * doc/invoke.texi (moverride): Move to correct section.
13723
13724 2015-07-03 Richard Biener <rguenther@suse.de>
13725
13726 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
13727 Copy from tree.c
13728 (dt_operand::gen_gimple_expr): After valueizing operands
13729 re-canonicalize operand order for commutative tree codes.
13730
13731 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
13732
13733 PR target/66746.
13734 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
13735 is defined.
13736 (__crc32w): Likewise.
13737 (__crc32d): Likewise.
13738 (__rdpmc): Likewise.
13739 (__rdtscp): Likewise.
13740 (_rdpmc): Likewise.
13741 (_rdtscp): Likewise.
13742 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
13743 is defined.
13744
13745 2015-07-03 Richard Biener <rguenther@suse.de>
13746
13747 * fold-const.c (fold_mathfn_compare): Remove.
13748 (fold_inf_compare): Likewise.
13749 (fold_comparison): Move floating point comparison simplifications...
13750 * match.pd: ... to patterns here. Introduce simple_comparisons
13751 operator list and use it for patterns formerly in fold_comparison.
13752
13753 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
13754
13755 PR tree-optimization/66119
13756 * toplev.c (process_options): Don't set up default values for
13757 the sra_max_scalarization_size_{speed,size} parameters.
13758 * tree-sra (analyze_all_variable_accesses): If no values
13759 have been set for the sra_max_scalarization_size_{speed,size}
13760 parameters, call get_move_ratio to get target defaults.
13761
13762 2015-07-03 Richard Biener <rguenther@suse.de>
13763
13764 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
13765 * match.pd: ... here.
13766
13767 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
13768
13769 PR target/37072
13770 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
13771 is not actually the default on FreeBSD.
13772
13773 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13774
13775 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
13776 definition.
13777 (CMPGE_8HI): Likewise.
13778 (CMPGE_4SI): Likewise.
13779 (CMPGE_2DI): Likewise.
13780 (CMPGE_U16QI): Likewise.
13781 (CMPGE_U8HI): Likewise.
13782 (CMPGE_U4SI): Likewise.
13783 (CMPGE_U2DI): Likewise.
13784 (CMPLE_16QI): Likewise.
13785 (CMPLE_8HI): Likewise.
13786 (CMPLE_4SI): Likewise.
13787 (CMPLE_2DI): Likewise.
13788 (CMPLE_U16QI): Likewise.
13789 (CMPLE_U8HI): Likewise.
13790 (CMPLE_U4SI): Likewise.
13791 (CMPLE_U2DI): Likewise.
13792 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13793 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
13794 ALTIVEC_BUILTIN_VEC_CMPLE.
13795 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
13796 floating-point vector modes.
13797 (vector_nlt<mode>): New define_expand.
13798 (vector_nltu<mode>): Likewise.
13799 (vector_ngt<mode>): Likewise.
13800 (vector_ngtu<mode>): Likewise.
13801
13802 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
13803
13804 PR rtl-optimization/66706
13805 * combine.c (make_compound_operation): If an AND of SUBREG of
13806 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
13807
13808 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
13809
13810 * tree-pass.h (make_pass_ch_vect): New.
13811 * passes.def: Add pass_ch_vect just before pass_if_conversion.
13812
13813 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
13814 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
13815 make_pass_ch_vect): New.
13816 (pass_ch): Extend ch_base.
13817
13818 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
13819 (ch_base::copy_headers): ...here.
13820
13821 2015-07-02 Richard Biener <rguenther@suse.de>
13822
13823 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
13824 * fold-const.c (get_pointer_modulus_and_residue): Remove.
13825 (fold_binary_loc): Implement (T)ptr & CST in terms of
13826 get_pointer_alignment_1.
13827 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
13828 Make sure to build the alignment test on a SSA name without
13829 final alignment info valid only after the prologue.
13830
13831 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
13832
13833 * config/cris/cris.md ("epilogue"): Remove condition.
13834 ("prologue"): Ditto.
13835
13836 2015-07-02 Richard Biener <rguenther@suse.de>
13837
13838 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
13839 parameter to record a condition that is false.
13840 (record_conditions): When recording an extra NE_EXPR that is
13841 true also record a EQ_EXPR that is false.
13842
13843 2015-07-02 Bin Cheng <bin.cheng@arm.com>
13844
13845 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
13846 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
13847 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
13848 (set_iv, find_interesting_uses_address, add_candidate_1): New
13849 argument to alloc_iv.
13850 (find_interesting_uses_op, find_interesting_uses_cond): Don't
13851 duplicate struct iv.
13852 (free_loop_data): Don't free struct iv explicitly.
13853 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
13854
13855 2015-07-01 DJ Delorie <dj@redhat.com>
13856
13857 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
13858 (LIB_SPEC): Add.
13859 (SUPPORTS_DISCRIMINATOR): Define.
13860
13861 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
13862
13863 PR bootstrap/66685
13864 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
13865 there are no CALLs in the same pattern.
13866
13867 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13868
13869 PR rtl-optimization/61047
13870 * rtlanal.c (get_initial_register_offset): New function.
13871 (rtx_addr_can_trap_p_1): Check offsets of stack references.
13872
13873 2015-07-01 Richard Biener <rguenther@suse.de>
13874
13875 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
13876 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
13877 ~X CMP C -> X CMP' ~C to ...
13878 * match.pd: ... patterns here.
13879
13880 2015-07-01 Nick Clifton <nickc@redhat.com>
13881
13882 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
13883 a 16-bit value into a 20-bit memory slot.
13884
13885 2015-07-01 Jiong Wang <jiong.wang@arm.com>
13886
13887 * doc/sourcebuild.texi (AArch64-specific attributes): Document
13888 "aarch64_tiny", "aarch64_small", "aarch64_large",
13889 "aarch64_little_endian", "aarch64_big_endian".
13890
13891 2015-07-01 Jiong Wang <jiong.wang@arm.com>
13892
13893 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
13894 Document "aarch64_small_fpic".
13895
13896 2015-07-01 Jiong Wang <jiong.wang@arm.com>
13897
13898 * configure.ac: Add check for aarch64 assembler -fpic relocation
13899 modifier support.
13900 * configure: Regenerate.
13901 * config.in: Regenerate.
13902 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
13903 to -fPIC if not support of -fpic relocation modifier in assembler.
13904
13905 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
13906
13907 PR bootstrap/66685
13908 * rtl.c (classify_insn): Handle returns in PARALLELs.
13909
13910 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
13911
13912 PR middle-end/66633
13913 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
13914 to true if the function is nested and if not optimizing.
13915 (convert_local_omp_clauses): Initialize need_frame to true if the
13916 function contains nested functions and if not optimizing.
13917
13918 2015-07-01 Richard Biener <rguenther@suse.de>
13919
13920 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
13921 (X & Y) ^ Y -> ~X & Y transforms to ...
13922 * match.pd: ... here.
13923
13924 2015-07-01 Richard Biener <rguenther@suse.de>
13925
13926 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
13927 of converts to avoid uninteresting noise from the conversion
13928 simplifying patterns.
13929
13930 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
13931
13932 * config/c6x/c6x.c (try_rename_operands): Do not depend on
13933 gcc_assert evaluating its argument for side-effect.
13934
13935 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
13936
13937 PR target/64833
13938 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
13939 flag_pic is set.
13940
13941 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
13942
13943 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
13944 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
13945 (hash_scc): Add this_ref_p and ref_p parameters and pass them
13946 to the inner DFS walk.
13947
13948 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
13949
13950 * target-insns.def (jump): New targetm instruction pattern.
13951 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
13952 instead of gen_jump.
13953 (fix_up_crossing_landing_pad): Likewise.
13954 (add_labels_and_missing_jumps): Likewise.
13955 (fix_crossing_conditional_branches): Likewise.
13956 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
13957 (force_nonfallthru_and_redirect): Likewise.
13958 * cse.c (cse_insn): Likewise.
13959 * expmed.c (expand_divmod): Likewise.
13960 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
13961 * haifa-sched.c (init_before_recovery): Likewise.
13962 (sched_create_recovery_edges): Likewise.
13963 * ifcvt.c (find_cond_trap): Likewise.
13964 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
13965 (expand_float, expand_fix): Likewise.
13966 * stmt.c (emit_jump): Likewise.
13967
13968 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
13969
13970 * defaults.h (HAVE_load_multiple, gen_load_multiple)
13971 (HAVE_store_multiple, gen_store_multiple): Delete.
13972 * target-insns.def (load_multiple, store_multiple): New targetm
13973 instruction patterns.
13974 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
13975 of HAVE_*/gen_* interface.
13976
13977 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
13978
13979 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
13980 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
13981 (gen_mem_signal_fence): Delete.
13982 * target-insns.def (mem_signal_fence, mem_thread_fence)
13983 (memory_barrier): New targetm instruction patterns.
13984 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
13985 interface.
13986 (expand_mem_signal_fence): Likewise.
13987
13988 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
13989
13990 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
13991 * target-insns.def (epilogue, prologue, sibcall_prologue): New
13992 targetm instruction patterns.
13993 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
13994 interface.
13995 * calls.c (expand_call): Likewise.
13996 * cfgrtl.c (cfg_layout_finalize): Likewise.
13997 * df-scan.c (df_get_entry_block_def_set): Likewise.
13998 (df_get_exit_block_use_set): Likewise.
13999 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
14000 * final.c (final_start_function): Likewise.
14001 * function.c (thread_prologue_and_epilogue_insns): Likewise.
14002 (reposition_prologue_and_epilogue_notes): Likewise.
14003 * reorg.c (find_end_label): Likewise.
14004 * toplev.c (process_options): Likewise.
14005
14006 2015-06-30 David Malcolm <dmalcolm@redhat.com>
14007
14008 * typed-splay-tree.h: New file.
14009
14010 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
14011
14012 PR debug/66691
14013 * lra-int.h (lra_substitute_pseudo): Add a parameter.
14014 (lra_substitute_pseudo_within_insn): Ditto.
14015 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
14016 of constant.
14017 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
14018 to lra_substitute_pseudo.
14019 * lra-lives.c (process_bb_lives): Add an argument to
14020 lra_substitute_pseudo_within_insn call.
14021 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
14022 argument to lra_substitute_pseudo and
14023 lra_substitute_pseudo_within_insn calls.
14024 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
14025
14026 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
14027
14028 * configure: Regenerated.
14029
14030 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
14031
14032 * config.gcc: Support i[34567]86-*-elfiamcu target.
14033 * config/i386/iamcu.h: New.
14034 * config/i386/i386.opt: Add -miamcu.
14035 * doc/invoke.texi: Document -miamcu.
14036 * common/config/i386/i386-common.c (ix86_handle_option): Turn
14037 off x87/MMX/SSE/AVX codegen for -miamcu.
14038 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14039 __iamcu/__iamcu__ for -miamcu.
14040 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
14041 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
14042 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
14043 * config/i386/i386.c (ix86_option_override_internal): Ignore and
14044 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
14045 MCU by default. Default long double to 64-bit for Intel MCU.
14046 Turn on -freg-struct-return for Intel MCU. Issue an error when
14047 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
14048 AVX is turned on.
14049 (function_arg_advance_32): Pass value whose size is no larger
14050 than 8 bytes in registers for Intel MCU.
14051 (function_arg_32): Likewise.
14052 (ix86_return_in_memory): Return value whose size is no larger
14053 than 8 bytes in registers for Intel MCU.
14054 (iamcu_alignment): New function.
14055 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
14056 true.
14057 (ix86_local_alignment): Don't increase alignment for Intel MCU.
14058 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
14059 true.
14060
14061 2015-06-30 Marek Polacek <polacek@redhat.com>
14062
14063 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
14064 both operands of the resulting expression.
14065
14066 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
14067 the final expression with the operand's type and then convert
14068 it to the type of the expression.
14069
14070 2015-06-30 Richard Biener <rguenther@suse.de>
14071
14072 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
14073 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
14074 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
14075 * match.pd: ... to patterns here.
14076
14077 2015-06-30 Richard Biener <rguenther@suse.de>
14078
14079 PR tree-optimization/66704
14080 * tree-vect-data-refs.c (vect_setup_realignment): Use
14081 make_ssa_name for non-SSA name source.
14082
14083 2015-06-30 Jakub Jelinek <jakub@redhat.com>
14084
14085 PR middle-end/66702
14086 * omp-low.c (simd_clone_adjust): Handle addressable linear
14087 or uniform parameters or non-gimple type uniform parameters.
14088
14089 2015-06-30 Richard Biener <rguenther@suse.de>
14090
14091 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
14092 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
14093 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
14094 * match.pd: ... here.
14095 Add a few cases of A - B -> A + (-B) when B "easily" negates.
14096 Move (x & y) | x -> x and friends before
14097 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
14098
14099 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
14100
14101 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
14102 -mfix-ut699 is not specified.
14103 (leon3_load): Rename into...
14104 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
14105 is specified.
14106
14107 2015-06-30 Marek Polacek <polacek@redhat.com>
14108
14109 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
14110 * match.pd: ... here.
14111
14112 2015-06-30 Richard Biener <rguenther@suse.de>
14113
14114 * target-insns.def (canonicalize_funcptr_for_compare): Add.
14115 * fold-const.c (build_range_check): Replace uses of
14116 HAVE_canonicalize_funcptr_for_compare.
14117 (fold_widened_comparison): Likewise.
14118 (fold_sign_changed_comparison): Likewise.
14119 * dojump.c: Include "target.h".
14120 (do_compare_and_jump): Replace uses of
14121 HAVE_canonicalize_funcptr_for_compare and
14122 gen_canonicalize_funcptr_for_compare.
14123 * expr.c (do_store_flag): Likewise.
14124
14125 2015-06-30 Tom de Vries <tom@codesourcery.com>
14126
14127 PR tree-optimization/66652
14128 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
14129 max_loop_iterations to determine if nit + 1 overflows.
14130
14131 2015-06-30 Richard Biener <rguenther@suse.de>
14132
14133 * tree-vrp.c (register_edge_assert_for_2): Also register
14134 asserts for dominating conversion results.
14135
14136 2015-06-30 Bin Cheng <bin.cheng@arm.com>
14137
14138 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
14139 field in struct iv.
14140
14141 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
14142
14143 PR target/66509
14144 * configure.ac: Fix filds and fildq test for 64-bit.
14145 * configure: Regenerated.
14146
14147 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
14148
14149 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
14150 (nvptx_reorg): Here. Keep the non-subreg pieces.
14151
14152 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
14153
14154 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
14155 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
14156
14157 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
14158
14159 * config/i386/i386.md (*jcc_1): Use %! in asm template.
14160 Set attribute "length_nobnd" instead of "length".
14161 (*jcc_2): Ditto.
14162 (jump): Ditto.
14163 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
14164
14165 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
14166
14167 * config/nios2/nios2.c (nios2_delegitimize_address): Make
14168 assert less restrictive.
14169
14170 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
14171
14172 PR fortran/66605
14173 * cgraphunit.c (cgraph_node::finalize_function): Do not call
14174 do_warn_unused_parameter.
14175 * function.c (do_warn_unused_parameter): Move from here.
14176 * function.h (do_warn_unused_parameter): Do not declare.
14177
14178 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
14179
14180 PR target/65697
14181 * gcc.target/arm/armv-sync-comp-swap.c: New.
14182 * gcc.target/arm/armv-sync-op-acquire.c: New.
14183 * gcc.target/arm/armv-sync-op-full.c: New.
14184 * gcc.target/arm/armv-sync-op-release.c: New.
14185
14186 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
14187
14188 PR target/65697
14189 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
14190 initial acquire barrier with final barrier.
14191
14192 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
14193
14194 PR target/65697
14195 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
14196 initial acquire barrier with final barrier.
14197
14198 2015-06-29 Richard Henderson <rth@redhat.com>
14199
14200 * config/i386/constraints.md (Bf): New constraint.
14201 * config/i386/i386-c.c (ix86_target_macros): Define
14202 __GCC_ASM_FLAG_OUTPUTS__.
14203 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
14204 as flags outputs.
14205 * doc/extend.texi (FlagOutputOperands): Document them.
14206
14207 2015-06-29 Jiong Wang <jiong.wang@arm.com>
14208
14209 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
14210 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
14211 unspec name.
14212 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
14213 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
14214 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
14215 (aarch64_symbol_context): Ditto.
14216 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
14217 and use new pattern name.
14218 (aarch64_expand_mov_immediate): Ditto.
14219 (aarch64_print_operand): Ditto.
14220 (aarch64_classify_tls_symbol): Ditto.
14221
14222 2015-06-29 Marek Polacek <polacek@redhat.com>
14223 Marc Glisse <marc.glisse@inria.fr>
14224
14225 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
14226 * match.pd: ... pattern here.
14227
14228 2015-06-29 Tom de Vries <tom@codesourcery.com>
14229
14230 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
14231 function structure.
14232
14233 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
14234
14235 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
14236 feature description, split out the native option, add a link to
14237 the feature documentation, rearrange and slightly rewrite text.
14238 (Aarch64 options, -mcpu): Likewise.
14239 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
14240 +rdma implies Adv. SIMD.
14241
14242 2015-06-29 Marek Polacek <polacek@redhat.com>
14243
14244 PR c/66322
14245 * function.c (stack_protect_epilogue): Remove a cast to int.
14246 * doc/invoke.texi: Update -Wswitch-bool description.
14247
14248 2015-06-29 Richard Biener <rguenther@suse.de>
14249
14250 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
14251 * fold-const.c (fold_binary_loc): Move &A - &B simplification
14252 via ptr_difference_const ...
14253 * match.pd: ... here.
14254 When matching (X ^ Y) == Y also match with swapped operands.
14255
14256 2015-06-29 Richard Biener <rguenther@suse.de>
14257
14258 * lto-streamer.h (LTO_major_version): Bump to 5.
14259
14260 2015-06-29 Richard Biener <rguenther@suse.de>
14261
14262 PR tree-optimization/66677
14263 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
14264 STMT_VINFO_VEC_STMT clobbering less strict.
14265
14266 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
14267
14268 PR middle-end/64130
14269 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
14270 division, compute max and min when value ranges for dividend and
14271 divisor are available.
14272
14273 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
14274 Sandra Loosemore <sandra@codesourcery.com>
14275
14276 * regrename.h (regrename_do_replace): Change to return bool.
14277 * regrename.c (rename_chains): Check return value of
14278 regname_do_replace.
14279 (regrename_do_replace): Re-validate the modified insns and
14280 return bool status.
14281 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
14282 Update to match rename_chains changes.
14283 * config/c6x/c6x.c (try_rename_operands): Assert that
14284 regrename_do_replace returns true.
14285
14286 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
14287
14288 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
14289 operand 2 here. Use copy_addr_to_reg to copy non-index
14290 register operand 2 to a temporary.
14291 (<mode>_stx): Ditto for operand 1.
14292 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
14293 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
14294 (ix86_store_bounds): Ditto.
14295
14296 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
14297
14298 * print-tree.c (print_node) [TREE_VEC]: Print its length.
14299
14300 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
14301
14302 * gimple.c (gimple_call_set_fndecl): Remove.
14303 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
14304 build1_loc directly instead of build_fold_addr_expr_loc.
14305
14306 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
14307
14308 * hash-map.h (hash_map::traverse): Use the definition of the
14309 Key typedef rather than the typedef itself.
14310
14311 2015-06-26 Martin Jambor <mjambor@suse.cz>
14312
14313 PR debug/66301
14314 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
14315 NULL instead of calling dump_enabled_p.
14316
14317 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14318
14319 * config/aarch64/aarch64.opt: (override): New.
14320 * doc/invoke.texi (override): Document.
14321 * config/aarch64/aarch64.c (aarch64_flag_desc): New
14322 (aarch64_fusible_pairs): Likewise.
14323 (aarch64_tuning_flags): Likewise.
14324 (aarch64_tuning_override_function): Likewise.
14325 (aarch64_tuning_override_functions): Likewise.
14326 (aarch64_parse_one_option_token): Likewise.
14327 (aarch64_parse_boolean_options): Likewise.
14328 (aarch64_parse_fuse_string): Likewise.
14329 (aarch64_parse_tune_string): Likewise.
14330 (aarch64_parse_one_override_token): Likewise.
14331 (aarch64_parse_override_string): Likewise.
14332 (aarch64_override_options): Parse the -override string if it
14333 is present.
14334
14335 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14336
14337 * config/aarch64/aarch64-protos.h (tune_params): Remove
14338 const from members.
14339 (aarch64_tune_params): Remove const, change to no longer be
14340 a pointer.
14341 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
14342 change to no longer be a pointer, initialize to generic_tunings.
14343 (aarch64_min_divisions_for_recip_mul): Change dereference of
14344 aarch64_tune_params to member access.
14345 (aarch64_reassociation_width): Likewise.
14346 (aarch64_rtx_mult_cost): Likewise.
14347 (aarch64_address_cost): Likewise.
14348 (aarch64_branch_cost): Likewise.
14349 (aarch64_rtx_costs): Likewise.
14350 (aarch64_register_move_cost): Likewise.
14351 (aarch64_memory_move_cost): Likewise.
14352 (aarch64_sched_issue_rate): Likewise.
14353 (aarch64_builtin_vectorization_cost): Likewise.
14354 (aarch64_override_options): Take a copy of the selected tuning
14355 struct in to aarch64_tune_params, rather than just setting
14356 a pointer, change dereferences of aarch64_tune_params to member
14357 accesses.
14358 (aarch64_override_options_after_change): Change dereferences of
14359 aarch64_tune_params to member access.
14360 (aarch64_macro_fusion_p): Likewise.
14361 (aarch_macro_fusion_pair_p): Likewise.
14362 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
14363
14364 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14365
14366 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
14367 (aarch64_tune_flags): Likewise.
14368 (AARCH64_TUNE_FMA_STEERING): Likewise.
14369 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
14370 to AARCH64_FL_USE_FMA_STEERING_PASS.
14371 (cortex-a57.cortex-a53): Likewise.
14372 (cortex-a72): Use cortexa72_tunings.
14373 (cortex-a72.cortex-a53): Likewise.
14374 (exynos-m1): Likewise.
14375 * config/aarch64/aarch64-protos.h (tune_params): Add
14376 a field: extra_tuning_flags.
14377 * config/aarch64/aarch64-tuning-flags.def: New.
14378 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
14379 (aarch64_extra_tuning_flags): Likewise.
14380 (aarch64_tune_params): Declare here.
14381 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
14382 (cortexa53_tunings): Likewise.
14383 (cortexa57_tunings): Likewise.
14384 (thunderx_tunings): Likewise.
14385 (xgene1_tunings): Likewise.
14386 (cortexa72_tunings): New.
14387 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
14388 (gate): Check against aarch64_tune_params.
14389 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
14390 aarch64-protos.h.
14391
14392 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14393
14394 * config/aarch64/aarch64-fusion-pairs.def: New.
14395 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
14396 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
14397 aarch64_fusion_pairs.
14398 (AARCH64_FUSE_MOV_MOVK): Likewise.
14399 (AARCH64_FUSE_ADRP_ADD): Likewise.
14400 (AARCH64_FUSE_MOVK_MOVK): Likewise.
14401 (AARCH64_FUSE_ADRP_LDR): Likewise.
14402 (AARCH64_FUSE_CMP_BRANCH): Likewise.
14403
14404 2015-06-26 Jiong Wang <jiong.wang@arm.com>
14405
14406 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
14407 SYMBOL_SMALL_GOT_28K.
14408 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
14409 relocation modifiers.
14410 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
14411 (ldr_got_small_28k_<mode>): New.
14412 (ldr_got_small_28k_sidi): New.
14413 * config/aarch64/iterators.md (got_modifier): New mode iterator.
14414 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
14415 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
14416 SYMBOL_SMALL_GOT_28K.
14417 (aarch64_rtx_costs): Add costs for new instruction sequences.
14418 (initialize_aarch64_code_model): Initialize new model.
14419 (aarch64_classify_symbol): Recognize new model and new symbol classification.
14420 (aarch64_asm_preferred_eh_data_format): Support new model.
14421 (aarch64_load_symref_appropriately): Generate new instruction
14422 sequences for -fpic.
14423 (TARGET_USE_PSEUDO_PIC_REG): New definition.
14424 (aarch64_use_pseudo_pic_reg): New function.
14425
14426 2015-06-26 Jiong Wang <jiong.wang@arm.com>
14427
14428 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
14429 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
14430 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
14431 (aarch64_expand_mov_immediate): Ditto.
14432 (aarch64_print_operand): Ditto.
14433 (aarch64_classify_symbol): Ditto.
14434
14435 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
14436
14437 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
14438
14439 2015-06-26 Bin Cheng <bin.cheng@arm.com>
14440
14441 PR bootstrap/66638
14442 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
14443 assertion failed. Remove assertion itself.
14444
14445 2015-06-26 Richard Biener <rguenther@suse.de>
14446
14447 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
14448 and -A CMP CST -> A CMP -CST which is redundant with a pattern
14449 in match.pd.
14450 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
14451 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
14452 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
14453 * match.pd: ... patterns here.
14454
14455 2015-06-26 Marek Polacek <polacek@redhat.com>
14456
14457 * match.pd ((x | y) & ~(x & y) -> x ^ y,
14458 (x | y) & (~x ^ y) -> x & y): New patterns.
14459
14460 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
14461
14462 * rtl.h (emit): Add an optional boolean parameter to control
14463 whether barriers are emitted.
14464 * emit-rtl.c (emit): Likewise.
14465 * gensupport.c (get_emit_function): Return null rather than "emit".
14466 * genemit.c (gen_emit_seq): Handle the null return value.
14467 Don't emit barriers after the final instruction in the sequence.
14468 * gentarget-def.c (main): Don't emit barriers after the instruction.
14469
14470 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14471
14472 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
14473 TARGET_UNIFIED_ASM.
14474
14475 2015-06-26 Richard Biener <rguenther@suse.de>
14476
14477 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
14478
14479 2015-06-26 Richard Biener <rguenther@suse.de>
14480
14481 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
14482 irrespective on whether the inner operation has a single use
14483 of both off are constant.
14484
14485 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
14486 Segher Boessenkool <segher@kernel.crashing.org>
14487
14488 PR target/66412
14489 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
14490 before doing PUT_MODE or PUT_CODE on operands to avoid
14491 in-place RTX modification.
14492
14493 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
14494
14495 * gentarget-def.c (def_target_insn): Cast return of strtol to
14496 unsigned int.
14497
14498 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
14499
14500 * gimple.h (gimple_call_set_fn): Move inline function.
14501 * gimple.c (gimple_call_set_fn): Relocate here.
14502
14503 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
14504
14505 PR target/65979
14506 PR target/66611
14507 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
14508 the replacement insn will work.
14509
14510 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
14511
14512 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
14513 by default.
14514
14515 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
14516
14517 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
14518 * cgraph.h: Include ipa-ref.h and plugin-api.h.
14519 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
14520 (symtab_node::address_can_be_compared_p): Move function.
14521 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
14522 definition here.
14523 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
14524 * auto-profile.c: Likewise.
14525 * bb-reorder.c: Likewise.
14526 * builtins.c: Likewise.
14527 * calls.c: Likewise.
14528 * cfgexpand.c: Likewise.
14529 * cgraphbuild.c: Likewise.
14530 * cgraphclones.c: Likewise.
14531 * cgraphunit.c: Likewise.
14532 * combine.c: Likewise.
14533 * coverage.c: Likewise.
14534 * data-streamer-in.c: Likewise.
14535 * data-streamer-out.c: Likewise.
14536 * data-streamer.c: Likewise.
14537 * dbxout.c: Likewise.
14538 * dwarf2out.c: Likewise.
14539 * except.c: Likewise.
14540 * expr.c: Likewise.
14541 * final.c: Likewise.
14542 * fold-const.c: Likewise.
14543 * ggc-page.c: Likewise.
14544 * gimple-fold.c: Likewise.
14545 * gimple-iterator.c: Likewise.
14546 * gimple-pretty-print.c: Likewise.
14547 * gimple-streamer-in.c: Likewise.
14548 * gimple-streamer-out.c: Likewise.
14549 * gimple.c: Likewise.
14550 * gimplify.c: Likewise.
14551 * ipa-chkp.c: Likewise.
14552 * ipa-comdats.c: Likewise.
14553 * ipa-cp.c: Likewise.
14554 * ipa-devirt.c: Likewise.
14555 * ipa-icf-gimple.c: Likewise.
14556 * ipa-icf.c: Likewise.
14557 * ipa-inline-analysis.c: Likewise.
14558 * ipa-inline-transform.c: Likewise.
14559 * ipa-inline.c: Likewise.
14560 * ipa-polymorphic-call.c: Likewise.
14561 * ipa-profile.c: Likewise.
14562 * ipa-prop.c: Likewise.
14563 * ipa-pure-const.c: Likewise.
14564 * ipa-ref.c: Likewise.
14565 * ipa-reference.c: Likewise.
14566 * ipa-split.c: Likewise.
14567 * ipa-utils.c: Likewise.
14568 * ipa-visibility.c: Likewise.
14569 * ipa.c: Likewise.
14570 * langhooks.c: Likewise.
14571 * lto-cgraph.c: Likewise.
14572 * lto-compress.c: Likewise.
14573 * lto-opts.c: Likewise.
14574 * lto-section-in.c: Likewise.
14575 * lto-section-out.c: Likewise.
14576 * lto-streamer-in.c: Likewise.
14577 * lto-streamer-out.c: Likewise.
14578 * lto-streamer.c: Likewise.
14579 * omp-low.c: Likewise.
14580 * opts-global.c: Likewise.
14581 * passes.c: Likewise.
14582 * predict.c: Likewise.
14583 * print-tree.c: Likewise.
14584 * profile.c: Likewise.
14585 * ree.c: Likewise.
14586 * sanopt.c: Likewise.
14587 * stor-layout.c: Likewise.
14588 * symtab.c: Likewise.
14589 * toplev.c: Likewise.
14590 * trans-mem.c: Likewise.
14591 * tree-cfg.c: Likewise.
14592 * tree-chkp.c: Likewise.
14593 * tree-eh.c: Likewise.
14594 * tree-emutls.c: Likewise.
14595 * tree-inline.c: Likewise.
14596 * tree-nested.c: Likewise.
14597 * tree-parloops.c: Likewise.
14598 * tree-pretty-print.c: Likewise.
14599 * tree-profile.c: Likewise.
14600 * tree-sra.c: Likewise.
14601 * tree-ssa-alias.c: Likewise.
14602 * tree-ssa-live.c: Likewise.
14603 * tree-ssa-loop-ivcanon.c: Likewise.
14604 * tree-ssa-loop-ivopts.c: Likewise.
14605 * tree-ssa-pre.c: Likewise.
14606 * tree-ssa-sccvn.c: Likewise.
14607 * tree-ssa-strlen.c: Likewise.
14608 * tree-ssa-structalias.c: Likewise.
14609 * tree-streamer-in.c: Likewise.
14610 * tree-streamer-out.c: Likewise.
14611 * tree-streamer.c: Likewise.
14612 * tree-switch-conversion.c: Likewise.
14613 * tree-tailcall.c: Likewise.
14614 * tree-vect-data-refs.c: Likewise.
14615 * tree-vect-stmts.c: Likewise.
14616 * tree-vectorizer.c: Likewise.
14617 * tree.c: Likewise.
14618 * tsan.c: Likewise.
14619 * ubsan.c: Likewise.
14620 * value-prof.c: Likewise.
14621 * varasm.c: Likewise.
14622 * varpool.c: Likewise.
14623 * config/arm/arm.c: Likewise.
14624 * config/bfin/bfin.c: Likewise.
14625 * config/c6x/c6x.c: Likewise.
14626 * config/cris/cris.c: Likewise.
14627 * config/darwin-c.c: Likewise.
14628 * config/darwin.c: Likewise.
14629 * config/i386/i386.c: Likewise.
14630 * config/i386/winnt.c: Likewise.
14631 * config/microblaze/microblaze.c: Likewise.
14632 * config/mips/mips.c: Likewise.
14633 * config/rs6000/rs6000.c: Likewise.
14634 * config/rx/rx.c: Likewise.
14635 * config/s390/s390.c: Likewise.
14636 * config/tilegx/mul-tables.c: Likewise.
14637
14638 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14639
14640 * config/aarch64/aarch64.c, config/alpha/alpha.c,
14641 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
14642 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
14643 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
14644 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
14645 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
14646 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
14647 config/microblaze/microblaze.c, config/mips/mips.c,
14648 config/mmix/mmix.c, config/mn10300/mn10300.c,
14649 config/moxie/moxie.c, config/msp430/msp430.c,
14650 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
14651 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
14652 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
14653 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
14654 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
14655 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
14656 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
14657 target-def.h include.
14658 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
14659
14660 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14661
14662 * Makefile.in (TARGET_DEF): Add target-insns.def.
14663 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
14664 (build/gentarget-def.o): New rule.
14665 (genprogrtl): Add target-def.
14666 * target-insns.def, gentarget-def.c: New files.
14667 * target.def: Add targetm.have_* and targetm.gen_* hooks,
14668 based on the contents of target-insns.def.
14669 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
14670 (HAVE_return, gen_return): Delete.
14671 * target-def.h: Include insn-target-def.h.
14672 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
14673 instead of direct calls. Rely on them to do the appropriate assertions.
14674 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
14675 (convert_jumps_to_returns): Use targetm interface instead of
14676 direct calls.
14677 (thread_prologue_and_epilogue_insns): Likewise.
14678 * reorg.c (find_end_label, dbr_schedule): Likewise.
14679 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
14680 * shrink-wrap.c (convert_to_simple_return): Likewise.
14681 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
14682
14683 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14684
14685 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
14686 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
14687 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
14688 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
14689 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
14690 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
14691 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
14692 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
14693 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
14694 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
14695 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
14696 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
14697 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
14698 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
14699 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
14700 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
14701 includes to end.
14702
14703 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14704
14705 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
14706 (unbounded_int_hashmap_traits::key_type): Likewise.
14707 * hash-map.h (hash_map): Get the key type from the traits.
14708 * hash-traits.h (default_hash_traits): By default, inherit from the
14709 template parameter.
14710 * alias.c (alias_set_traits): Delete.
14711 (alias_set_entry_d::children): Use alias_set_hash as the first
14712 template parameter.
14713 (record_alias_subset): Update accordingly.
14714 * except.c (tree_hash_traits): Delete.
14715 (type_to_runtime_map): Use tree_hash as the first template parameter.
14716 (init_eh): Update accordingly.
14717 * genmatch.c (capture_id_map_hasher): Delete.
14718 (cid_map_t): Use nofree_string_hash as first template parameter.
14719 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
14720 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
14721 Use symbol_compare_hash as the first template parameter in
14722 subdivide_hash_map.
14723 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
14724 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
14725 template parameter.
14726 * passes.c (pass_registry_hasher): Delete.
14727 (name_to_pass_map): Use nofree_string_hash as the first template
14728 parameter.
14729 (register_pass_name): Update accordingly.
14730 * sanopt.c (sanopt_tree_map_traits): Delete.
14731 (sanopt_tree_triplet_map_traits): Delete.
14732 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
14733 template parameter.
14734 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
14735 the first template parameter.
14736 * sese.c (rename_map_hasher): Delete.
14737 (rename_map_type): Use tree_ssa_name_hash as the first template
14738 parameter.
14739 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
14740 (function_summary::m_map): Use map_hash as the first template
14741 parameter.
14742 (function_summary::release): Update accordingly.
14743 * tree-if-conv.c (phi_args_hash_traits): Delete.
14744 (predicate_scalar_phi): Use tree_operand_hash as the first template
14745 parameter to phi_arg_map.
14746 * tree-inline.h (dependence_hasher): Delete.
14747 (copy_body_data::dependence_map): Use dependence_hash as the first
14748 template parameter.
14749 * tree-inline.c (remap_dependence_clique): Update accordingly.
14750 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
14751 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
14752 parameter.
14753 (addr_stridxptr): Update accordingly.
14754 * value-prof.c (profile_id_traits): Delete.
14755 (cgraph_node_map): Use profile_id_hash as the first template
14756 parameter.
14757 (init_node_map): Update accordingly.
14758 * config/alpha/alpha.c (string_traits): Delete.
14759 (machine_function::links): Use nofree_string_hash as the first
14760 template parameter.
14761 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
14762 * config/m32c/m32c.c (pragma_traits): Delete.
14763 (pragma_htab): Use nofree_string_hash as the first template parameter.
14764 (m32c_note_pragma_address): Update accordingly.
14765 * config/mep/mep.c (pragma_traits): Delete.
14766 (pragma_htab): Use nofree_string_hash as the first template parameter.
14767 (mep_note_pragma_flag): Update accordingly.
14768 * config/mips/mips.c (mips16_flip_traits): Delete.
14769 (mflip_mips16_htab): Use nofree_string_hash as the first template
14770 parameter.
14771 (mflip_mips16_use_mips16_p): Update accordingly.
14772 (local_alias_traits): Delete.
14773 (mips16_local_aliases): Use nofree_string_hash as the first template
14774 parameter.
14775 (mips16_local_alias): Update accordingly.
14776
14777 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14778
14779 * hash-map-traits.h (default_hashmap_traits): Delete.
14780
14781 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14782
14783 * hash-map-traits.h (unbounded_hashmap_traits): New class.
14784 (unbounded_int_hashmap_traits): Likewise.
14785 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
14786
14787 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14788
14789 * ipa-icf.h (symbol_compare_hash): New class.
14790 (symbol_compare_hashmap_traits): Use it.
14791 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
14792 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
14793 (mem_alloc_description::reverse_mem_map_t): Remove redundant
14794 default_hashmap_traits.
14795 * sanopt.c (sanopt_tree_triplet_hash): New class.
14796 (sanopt_tree_triplet_map_traits): Use it.
14797
14798 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14799
14800 * gengtype-parse.c (require_template_declaration): Allow '+' in
14801 template parameters. Consolidate cases.
14802 * hash-traits.h (int_hash): New class.
14803 * alias.c (alias_set_hash): New structure.
14804 (alias_set_traits): Use it.
14805 * symbol-summary.h (function_summary::map_hash): New class.
14806 (function_summary::summary_hashmap_traits): Use it.
14807 * tree-inline.h (dependence_hash): New class.
14808 (dependence_hasher): Use it.
14809 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
14810 * value-prof.c (profile_id_hash): New class.
14811 (profile_id_traits): Use it.
14812
14813 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14814
14815 * config/mips/mips.c (mips16_flip_traits): Use it.
14816 (local_alias_traits, mips16_local_aliases): Convert from a map of
14817 rtxes to a map of symbol names.
14818 (mips16_local_alias): Update accordingly.
14819
14820 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14821
14822 * hash-traits.h (string_hash, nofree_string_hash): New classes.
14823 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
14824 * passes.c (pass_registry_hasher): Likewise.
14825 * config/alpha/alpha.c (string_traits): Likewise.
14826 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
14827 * config/m32c/m32c.c (pragma_traits): Likewise.
14828 * config/mep/mep.c (pragma_traits): Likewise.
14829
14830 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14831
14832 * tree-hash-traits.h (tree_hash): New class.
14833 * except.c: Include tree-hash-traits.h.
14834 (tree_hash_traits): Use tree_hash.
14835
14836 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14837
14838 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
14839 * sese.c: Include tree-hash-traits.h.
14840 (rename_map_hasher): Use tree_ssa_name_hasher.
14841
14842 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14843
14844 * tree-hash-traits.h (tree_decl_hash): New class.
14845 * tree-ssa-strlen.c: Include tree-hash-traits.h.
14846 (stridxlist_hash_traits): Use tree_decl_hash.
14847
14848 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14849
14850 * tree-hash-traits.h: New file.
14851 (tree_operand_hash): New class.
14852 * sanopt.c: Include tree-hash-traits.h.
14853 (sanopt_tree_map_traits): Use tree_operand_hash.
14854 * tree-if-conv.c: Include tree-hash-traits.h.
14855 (phi_args_hash_traits): Use tree_operand_hash.
14856 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
14857 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
14858
14859 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14860
14861 * hash-map-traits.h: Include hash-traits.h.
14862 (simple_hashmap_traits): New class.
14863 * mem-stats.h (hash_map): Change the default traits to
14864 simple_hashmap_traits<default_hash_traits<Key> >.
14865
14866 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14867
14868 * hash-table.h: Update comments.
14869
14870 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14871
14872 * hash-traits.h (default_hash_traits): New structure.
14873 * hash-set.h (default_hashset_traits): Delete.
14874 (hash_set): Use default_hash_traits<Key> instead of
14875 default_hashset_traits. Delete hash_entry type and use Key directly.
14876 * ipa-devirt.c (pair_traits): Delete.
14877 (default_hash_traits <type_pair>): Override.
14878 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
14879 (odr_types_equivalent_p, add_type_duplicate): Likewise.
14880
14881 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14882
14883 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
14884
14885 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14886
14887 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
14888 (has_is_empty, is_empty_helper): Delete.
14889 (has_mark_deleted, mark_deleted_helper): Delete.
14890 (has_mark_empty, mark_empty_helper): Delete.
14891 (hash_table::is_deleted): Call the Descriptor unconditionally.
14892 (hash_table::is_empty): Likewise.
14893 (hash_table::mark_deleted): Likewise.
14894 (hash_table::mark_empty): Likewise.
14895
14896 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14897
14898 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
14899 redundant typedefs and members.
14900 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
14901 redundant typedefs.
14902 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
14903 * ipa-devirt.c (odr_name_hasher): Likewise.
14904 (polymorphic_call_target_hasher): Likewise.
14905 * ira-costs.c (cost_classes_hasher): Likewise.
14906 * statistics.c (stats_counter_hasher): Likewise.
14907 * trans-mem.c (log_entry_hasher): Likewise.
14908 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
14909 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
14910 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
14911 * var-tracking.c (variable_hasher): Likewise.
14912 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
14913 Remove redundant typedefs and members.
14914
14915 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14916
14917 * hash-traits.h (ggc_cache_hasher): Rename to...
14918 (ggc_cache_remove): ...this and remove typedefs.
14919 (ggc_cache_ptr_hash): New class.
14920 * hash-table.h: Update commentary.
14921 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
14922 rather than ggc_cache_hasher.
14923 (const_wide_int_hasher, reg_attr_hasher): Likewise.
14924 (const_double_hasher, const_fixed_hasher): Likewise.
14925 * function.c (insn_cache_hasher): Likewise.
14926 * trans-mem.c (tm_wrapper_hasher): Likewise.
14927 * tree.h (tree_decl_map_cache_hasher): Likewise.
14928 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
14929 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
14930 * ubsan.c (tree_type_map_cache_hasher): Likewise.
14931 * varasm.c (tm_clone_hasher): Likewise.
14932 * config/i386/i386.c (dllimport_hasher): Likewise.
14933 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
14934 (tree_hasher): Likewise.
14935
14936 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14937
14938 * hash-traits.h (ggc_hasher): Rename to...
14939 (ggc_remover): ...this and remove typedefs.
14940 (ggc_cache_hasher): Update accordingly. Add typedefs.
14941 (ggc_ptr_hash): New class.
14942 * hash-table.h: Update comment.
14943 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
14944 ggc_hasher.
14945 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
14946 (tree_descriptor_hasher): Likewise.
14947 * cgraph.c (function_version_hasher): Likewise.
14948 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
14949 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
14950 (dw_loc_list_hasher, addr_hasher): Likewise.
14951 * function.h (used_type_hasher): Likewise.
14952 * function.c (temp_address_hasher): Likewise.
14953 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
14954 * libfuncs.h (libfunc_hasher): Likewise.
14955 * lto-streamer.h (decl_state_hasher): Likewise.
14956 * optabs.c (libfunc_decl_hasher): Likewise.
14957 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
14958 * varasm.c (section_hasher, object_block_hasher): Likewise.
14959 (const_rtx_desc_hasher): Likewise.
14960 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
14961 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
14962
14963 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14964
14965 * hash-traits.h (free_ptr_hash): New class.
14966 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
14967 rather than typed_free_remove. Remove redudant typedefs.
14968 (external_ref_hasher): Likewise.
14969 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
14970 (ehspec_hasher): Likewise.
14971 * ggc-common.c (saving_hasher): Likewise.
14972 * gimplify.c (gimplify_hasher): Likewise.
14973 * haifa-sched.c (delay_i2_hasher): Likewise.
14974 * loop-invariant.c (invariant_expr_hasher): Likewise.
14975 * loop-iv.c (biv_entry_hasher): Likewise.
14976 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
14977 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
14978 * tree-cfg.c (locus_discrim_hasher): Likewise.
14979 * tree-eh.c (finally_tree_hasher): Likewise.
14980 * tree-into-ssa.c (var_info_hasher): Likewise.
14981 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
14982 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
14983 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
14984 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
14985 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
14986 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
14987 (shared_bitmap_hasher): Likewise.
14988 * tree-ssa-threadupdate.c (redirection_data): Likewise.
14989 * tree-vectorizer.h (peel_info_hasher): Likewise.
14990 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
14991 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
14992
14993 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14994
14995 * hash-table.h: Update comments.
14996 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
14997 (nofree_ptr_hash): New class.
14998 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
14999 than typed_noop_remove. Remove redudant typedefs.
15000 * attribs.c (attribute_hasher): Likewise.
15001 * cfg.c (bb_copy_hasher): Likewise.
15002 * cselib.c (cselib_hasher): Likewise.
15003 * dse.c (invariant_group_base_hasher): Likewise.
15004 * dwarf2cfi.c (trace_info_hasher): Likewise.
15005 * dwarf2out.c (macinfo_entry_hasher): Likewise.
15006 (comdat_type_hasher, loc_list_hasher): Likewise.
15007 * gcse.c (pre_ldst_expr_hasher): Likewise.
15008 * genmatch.c (id_base): Likewise.
15009 * genrecog.c (test_pattern_hasher): Likewise.
15010 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
15011 * haifa-sched.c (delay_i1_hasher): Likewise.
15012 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
15013 * ipa-icf.h (congruence_class_group_hash): Likewise.
15014 * ipa-profile.c (histogram_hash): Likewise.
15015 * ira-color.c (allocno_hard_regs_hasher): Likewise.
15016 * lto-streamer.h (string_slot_hasher): Likewise.
15017 * lto-streamer.c (tree_entry_hasher): Likewise.
15018 * plugin.c (event_hasher): Likewise.
15019 * postreload-gcse.c (expr_hasher): Likewise.
15020 * store-motion.c (st_expr_hasher): Likewise.
15021 * tree-sra.c (uid_decl_hasher): Likewise.
15022 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
15023 (ssa_name_var_hash): Likewise.
15024 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
15025 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
15026 * tree-ssa-pre.c (pre_expr_d): Likewise.
15027 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
15028 * vtable-verify.h (registration_hasher): Likewise.
15029 * vtable-verify.c (vtbl_map_hasher): Likewise.
15030 * config/arm/arm.c (libcall_hasher): Likewise.
15031 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
15032 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
15033 * config/sol2.c (comdat_entry_hasher): Likewise.
15034 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
15035 (print_fold_checksum, fold_checksum_tree): Likewise.
15036 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
15037 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
15038 (fold_build_call_array_loc): Likewise.
15039 * tree-ssa-ccp.c (gimple_htab): Likewise.
15040 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
15041 rather than pointer_type.
15042
15043 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15044
15045 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
15046 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
15047
15048 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15049
15050 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
15051 (ggc_hasher::ggc_mx): Likewise.
15052 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
15053 that duplicate ggc_hasher ones.
15054
15055 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15056
15057 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
15058 (gt_cleare_cache): Check here for deleted and empty entries.
15059 Replace handle_cache_entry with a call to keep_cache_entry.
15060 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
15061 (ggc_cache_hasher::keep_cache_entry): New function.
15062 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
15063 (tm_wrapper_hasher::keep_cache_entry): New function.
15064 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
15065 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
15066 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
15067 (type_cache_hasher::keep_cache_entry): New function.
15068 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
15069 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
15070 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
15071 (tree_type_map_cache_hasher::keep_cache_entry): New function.
15072 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
15073 (tm_clone_hasher::keep_cache_entry): New function.
15074 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
15075 (dllimport_hasher::keep_cache_entry): New function.
15076
15077 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15078
15079 * hash-table.h: Include hash-traits.h.
15080 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
15081 (ggc_cache_hasher): Move to...
15082 * hash-traits.h: ...this new file.
15083
15084 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
15085
15086 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
15087 struct cl_optimization.
15088 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
15089 * tree.c (make_node_stat): Allocate cl_optimization struct.
15090 (copy_node_stat): Allocate and copy cl_optimization struct.
15091
15092 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
15093
15094 * function.h (struct incoming_args): Move struct.
15095 (pass_by_reference, reference_callee_copied): Remove prototypes.
15096 * emit-rtl.h (struct incoming_args): Relocate struct here.
15097 * calls.h (pass_by_reference, reference_callee_copied): Relocate
15098 prototypes here.
15099 * function.c (pass_by_reference, reference_callee_copied): Move.
15100 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
15101 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
15102 * ipa-chkp.c: Include calls.h.
15103
15104 2015-06-25 Andrew Macleod <amacleod@redhat.com>
15105
15106 * alias.h (alias_set_type): Move typedef.
15107 * coretypes.h (alias_set_type): Relocate typedef here.
15108 * rtl.h: Don't include alias.h.
15109
15110 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
15111
15112 * cgraph.h (cgraph_rtl_info): Move to rtl.h
15113 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
15114 and instance.
15115 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
15116 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
15117 doesn't exist.
15118 * calls.c: Include hard-reg-set.h before rtl.h.
15119 * ira.c: Likewise.
15120
15121 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15122 Vladimir Makarov <vmakarov@redhat.com>
15123
15124 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
15125 Add assert.
15126
15127 2015-06-25 Richard Biener <rguenther@suse.de>
15128
15129 * fold-const.c (fold_binary_loc): Move simplification of
15130 (X <<>> C1) & C2 ...
15131 * match.pd: ... here.
15132
15133 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
15134
15135 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
15136
15137 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15138
15139 * match.pd: Add patterns for vec_conds between 1 and 0.
15140
15141 2015-06-25 Richard Biener <rguenther@suse.de>
15142
15143 * tree-vect-stmts.c (vectorizable_conversion): Do not set
15144 STMT_VINFO_VEC_STMT for SLP.
15145 (vectorizable_store): Likewise.
15146 (vectorizable_load): Likewise.
15147 (vect_transform_stmt): Catch SLP vectorization clobbering
15148 STMT_VINFO_VEC_STMT.
15149
15150 2015-06-25 Richard Biener <rguenther@suse.de>
15151
15152 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
15153 dumping.
15154 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
15155 cleanup resulting dead code and parameters.
15156 (vect_transform_slp_perm_load): Adjust.
15157
15158 2015-06-25 Nick Clifton <nickc@redhat.com>
15159
15160 * config/bfin/bfin.c (bfin_expand_prologue): Set
15161 current_function_static_stack_size if flag_stack_usage_info is set.
15162 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
15163 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
15164 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
15165 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
15166
15167 2015-06-25 Tom de Vries <tom@codesourcery.com>
15168
15169 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
15170 comment that the generated IV is unsigned.
15171
15172 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15173
15174 PR target/29693
15175 * config/arm/arm.c (arm_dbx_register_number): Return
15176 DWARF_FRAME_REGISTERS by default.
15177
15178 2015-06-25 Tom de Vries <tom@codesourcery.com>
15179
15180 * dominance.c (calculate_dominance_info): Fix verify_dominators call
15181 argument. Call verify_dominator when reusing dominator info.
15182
15183 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
15184
15185 PR target/66563
15186 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
15187 an additional element of the unspec vector. Modify indices
15188 of operands.
15189 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
15190 * config/sh/sh.c (prepare_move_operands): Pass incremented
15191 const_int to gen_GOTaddr2picreg.
15192 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
15193
15194 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
15195
15196 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
15197 Condition on TARGET_FLOAT.
15198
15199 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
15200
15201 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
15202 and (no)crypto.
15203
15204 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
15205
15206 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
15207
15208 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
15209 aarch64_err_no_fpadvsimd.
15210
15211 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
15212 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
15213 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
15214 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
15215 Turn error into assert, test TARGET_FLOAT.
15216 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
15217 TARGET_FLOAT.
15218
15219 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
15220
15221 PR debug/66482
15222 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
15223
15224 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
15225
15226 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
15227
15228 2015-06-24 Renlin Li <renlin.li@arm.com>
15229
15230 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
15231 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
15232
15233 2015-06-24 Richard Biener <rguenther@suse.de>
15234
15235 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
15236 (main): Likewise.
15237 (lower_opt_convert): Support lowering of conditional view_convert.
15238 (parser::parse_operation): Likewise.
15239 (parser::parse_for): Likewise.
15240
15241 2015-06-24 Renlin Li <renlin.li@arm.com>
15242
15243 * varasm.c (emit_local): Use unsigned int for align variable.
15244
15245 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15246
15247 PR target/63408
15248 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
15249 for negative numbers.
15250
15251 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15252
15253 PR rtl-optimization/66306
15254 * reload.c (find_reloads): Swap the match_dup info for
15255 commutative operands.
15256
15257 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15258
15259 * config/s390/vx-builtins.md
15260 ("vec_scatter_element<mode>_<non_vec_int>")
15261 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
15262 attribute with bhfgq.
15263
15264 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15265
15266 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
15267
15268 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15269
15270 * config/s390/s390-builtin-types.def: Add flag to indicate the
15271 options under which the function type is needed.
15272 * config/s390/s390-builtins.def: Add flag to indicate the options
15273 under which the builtin is enabled.
15274 * config/s390/s390-builtins.h: Add flags parameter to macro
15275 definitions.
15276 (bflags_for_builtin): New function.
15277 (flags_for_builtin): Renamed to ...
15278 (opflags_for_builtin): ... this.
15279 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
15280 flags_for_builtin to bflags_for_builtin and
15281 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
15282 * config/s390/s390.c: Add initialization of bflags_builtin and
15283 opflags_builtin arrays.
15284 Remove code for flags_builtin.
15285 (s390_init_builtins): Only create builtin function types if one of
15286 their flags is active.
15287 Only create builtins if all of their flags are active.
15288 (s390_expand_builtin): Rename flags_for_builtin to
15289 opflags_for_builtin.
15290
15291 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15292
15293 * config/s390/vecintrin.h: Remove internal builtins.
15294
15295 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15296
15297 * config/s390/s390.c (s390_secondary_reload): Fix check for
15298 GENERAL_REGS register class.
15299
15300 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15301
15302 * config/s390/s390.c (s390_support_vector_misalignment): Call
15303 default implementation for !TARGET_VX.
15304
15305 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15306
15307 * config/s390/s390.c (s390_legitimate_constant_p): Add
15308 TARGET_VX check.
15309
15310 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15311
15312 * config/s390/s390.c (s390_vector_abi): New variable definition.
15313 (s390_check_type_for_vector_abi): New function.
15314 (TARGET_ASM_FILE_END): New macro definition.
15315 (s390_asm_file_end): New function.
15316 (s390_function_arg): Call s390_check_type_for_vector_abi.
15317 (s390_gimplify_va_arg): Likewise.
15318 * configure: Regenerate.
15319 * configure.ac: Check for .gnu_attribute Binutils feature.
15320
15321 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
15322
15323 PR target/65803
15324 * config/bfin/bfin.c (hwloop_optimize): Initialize
15325 JUMP_LABEL for newly created jump.
15326
15327 2015-06-23 Tristan Gingold <gingold@adacore.com>
15328
15329 * collect-utils.c (collect_wait): Unlink the response file here
15330 instead of...
15331 (do_wait): ...here.
15332 (utils_cleanup): ...and here.
15333
15334 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
15335
15336 * df-scan.c: Don't include target-def.h.
15337 * targhooks.c: Likewise.
15338 * config/arm/arm-c.c: Likewise.
15339 * config/i386/i386-c.c: Likewise.
15340 * config/nds32/nds32-cost.c: Likewise.
15341 * config/nds32/nds32-fp-as-gp.c: Likewise.
15342 * config/nds32/nds32-intrinsic.c: Likewise.
15343 * config/nds32/nds32-isr.c: Likewise.
15344 * config/nds32/nds32-md-auxiliary.c: Likewise.
15345 * config/nds32/nds32-memory-manipulation.c: Likewise.
15346 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15347 * config/nds32/nds32-predicates.c: Likewise.
15348
15349 2015-06-23 Richard Biener <rguenther@suse.de>
15350
15351 PR tree-optimization/66636
15352 * tree-vect-stmts.c (vectorizable_store): Properly compute the
15353 def type for further defs for strided stores.
15354
15355 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
15356
15357 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
15358 conditional selects.
15359 (setcc_int<mode>, setcc_float<mode>): Reformat.
15360
15361 2015-06-23 Marek Polacek <polacek@redhat.com>
15362
15363 * match.pd ((x + y) - (x | y) -> x & y,
15364 (x + y) - (x & y) -> x | y): New patterns.
15365
15366 2015-06-23 Ludovic Courtès <ludo@gnu.org>
15367
15368 PR 65711
15369 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
15370 '-dynamic-linker' within %{!shared: ...}.
15371
15372 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
15373
15374 PR target/66560
15375 * config/i386/predicates.md (addsub_vm_operator): New predicate.
15376 (addsub_vs_operator): Ditto.
15377 (addsub_vs_parallel): Ditto.
15378 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
15379 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
15380 Put minus RTX before plus and adjust vec_merge selector.
15381 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
15382 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
15383 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
15384 (addsub vec_merge splitters): New combiner splitters.
15385 (addsub vec_select/vec_concat splitters): Ditto.
15386
15387 2015-06-23 Bin Cheng <bin.cheng@arm.com>
15388
15389 PR tree-optimization/66449
15390 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
15391 POINTER_PLUS_EXPR for pointers.
15392
15393 2015-06-23 Alan Modra <amodra@gmail.com>
15394
15395 * rtlanal.c (commutative_operand_precedence): Correct comments.
15396 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
15397 declaration. Return an int. Distinguish REG,REG return from
15398 others.
15399 (struct simplify_plus_minus_op_data): Make local to function.
15400 (simplify_plus_minus): Don't set canonicalized if merely sorting
15401 registers. Avoid packing ops if nothing changes. White space fixes.
15402
15403 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
15404
15405 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
15406 -fdump-ada-spec is passed but not if -fsyntax-only is.
15407
15408 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
15409
15410 PR bootstrap/63740
15411 * lra-lives.c (process_bb_lives): Check insn copying the same
15412 reload pseudo and don't create a copy for it.
15413
15414 2015-06-22 Tom de Vries <tom@codesourcery.com>
15415
15416 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
15417 for cond_stmt.
15418
15419 2015-06-22 Tom de Vries <tom@codesourcery.com>
15420
15421 * builtins.def (DEF_GOMP_BUILTIN): Test
15422 'flag_tree_parallelize_loops > 1' instead of
15423 'flag_tree_parallelize_loops'. Test flag_cilkplus.
15424
15425 2015-06-22 Tom de Vries <tom@codesourcery.com>
15426
15427 * dominance.c (calculate_dominance_info): Verify dominators if
15428 early-out.
15429
15430 2015-06-22 Marek Polacek <polacek@redhat.com>
15431
15432 * match.pd ((x ^ y) ^ (x | y) -> x & y,
15433 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
15434 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
15435 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
15436
15437 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
15438
15439 PR target/65871
15440 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
15441 cost of embedded comparison.
15442
15443 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15444
15445 PR target/65914
15446 * config/rs6000/predicates.md (altivec_register_operand): Permit
15447 virtual stack registers.
15448 (vsx_register_operand): Likewise.
15449 (vfloat_operand): Likewise.
15450 (vint_operand): Likewise.
15451 (vlogical_operand): Likewise.
15452
15453 2015-06-22 Richard Biener <rguenther@suse.de>
15454
15455 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
15456 and single_scalar_iteration_cost members.
15457 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
15458 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
15459 (vect_get_single_scalar_iteration_cost): Remove.
15460 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
15461 Use LOOP_VINFO_SCALAR_ITERATION_COST.
15462 * tree-vect-loop.c (destroy_loop_vec_info): Free
15463 scalar_cost_vec.
15464 (vect_get_single_scalar_iteration_cost): Compute result into
15465 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
15466 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
15467 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
15468 (vect_estimate_min_profitable_iters): Use them.
15469
15470 2015-06-22 Christian Bruel <christian.bruel@st.com>
15471
15472 PR target/52144
15473 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
15474 (TARGET_INSERT_ATTRIBUTES): Define.
15475 (thumb_flipper): New var.
15476 * config/arm/arm.opt (-mflip-thumb): New switch.
15477
15478 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
15479 Martin Liska <mliska@suse.cz>
15480
15481 PR ipa/65908
15482 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
15483 construction of arg_types.
15484 (sem_function::sem_function): Likewise.
15485 (sem_function::~sem_function): Remove destruction of arg_types.
15486 (sem_function::compatible_parm_types_p): New function.
15487 (sem_function::equals_wpa): Reorg matching of return values
15488 and parameter types.
15489 (sem_function::equals_private): Reorg mathcing of argument types.
15490 (sem_function::parse_tree_args): Remove.
15491 * ipa-icf.h (init_wpa): Do not call it.
15492 (parse_tree_args): Remove.
15493 (compatible_parm_types_p): Declare.
15494 (result_type): Remove.
15495 (arg_types): Remove.
15496
15497 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
15498
15499 PR ipa/66351
15500 * ipa-polymorphic-call.c
15501 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
15502 initializing alias oracle; fix formating; set base_alias_set if it
15503 is known.
15504
15505 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
15506
15507 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
15508 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
15509 (find_inc): Likewise.
15510 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
15511 swapping.
15512 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
15513 * df-scan.c (df_swap_refs): Remove.
15514 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
15515 * dominance.c (link_roots): Use std::swap instead of manually swapping.
15516 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
15517 * fold-const.c (fold_relational_const): Likewise.
15518 * genattrtab.c (simplify_test_exp): Likewise.
15519 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
15520 gimple_simplify): Likewise.
15521 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
15522 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
15523 * ipa-devirt.c (add_type_duplicate): Likewise.
15524 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
15525 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
15526 * lra.c (lra_create_copy): Likewise.
15527 * lto-streamer-out.c (DFS::DFS): Likewise.
15528 * modulo-sched.c (get_sched_window): Likewise.
15529 * omega.c (omega_pretty_print_problem): Likewise.
15530 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
15531 * reload1.c (reloads_unique_chain_p): Likewise.
15532 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
15533 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
15534 use std::swap.
15535 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
15536 manually swapping.
15537 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
15538 predicate_mem_writes): Likewise.
15539 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
15540 * tree-predcom.c (combine_chains): Likewise.
15541 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
15542 refs_may_alias_p_1): Likewise.
15543 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
15544 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
15545 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
15546 number_of_iterations_cond): Likewise.
15547 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
15548 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
15549 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
15550 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
15551 * tree-vrp.c (extract_range_from_binary_expr_1,
15552 extract_range_from_unary_expr_1): Likewise.
15553
15554 2015-06-20 Marek Polacek <polacek@redhat.com>
15555
15556 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
15557
15558 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
15559
15560 PR target/66591
15561 * config/sh/sh.c (prepare_move_operands): Replace subreg
15562 index term with R0 for base and index addressing.
15563
15564 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
15565
15566 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
15567 op1 is an fp zero.
15568 (movsf_aarch64): Change condition from register_operand to
15569 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
15570 load1. Change type for alternative 7 to store1.
15571 (movdf_aarch64): Likewise.
15572
15573 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
15574
15575 * config/vax/vax.md: Adjust sign/zero extend patterns to
15576 handle SUBREGs in operands[1].
15577
15578 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15579
15580 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
15581 of manually swapping.
15582 (expand_vec_perm_interleave2): Likewise.
15583
15584 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
15585
15586 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
15587 reuse bounds created for abnormal ssa names.
15588
15589 2015-06-19 Jakub Jelinek <jakub@redhat.com>
15590
15591 * config/nvptx/nvptx.md (allocate_stack): Rename to...
15592 (allocate_stack_<mode>): ... this, and add :P on both
15593 match_operand and unspec.
15594 (allocate_stack): New expander.
15595
15596 2015-06-19 Christian Bruel <christian.bruel@st.com>
15597
15598 PR target/66541
15599 PR target/52144
15600 * config/arm/arm.c (arm_set_current_function): Handle
15601 explicit default options.
15602
15603 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
15604
15605 * config/i386/i386.md (*movsicc_noc_zext): New insn.
15606 (zero-extended cmove with mem peephole2): New pattern.
15607 (cmove with mem peephole2): Merge patterns.
15608
15609 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
15610
15611 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
15612
15613 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
15614
15615 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
15616 * config/mips/mips.md (*madd4<mode>): Ditto.
15617 (*nmadd3<mode>) Ditto.
15618 (*nmadd4<mode>_fastmath): Ditto.
15619 (*nmadd3<mode>_fastmath): Ditto.
15620 (*nmsub4<mode>): Ditto.
15621 (*nmsub3<mode>): Ditto.
15622 (*nmsub4<mode>_fastmath): Ditto.
15623 (*nmsub3<mode>_fastmath): Ditto.
15624
15625 2015-06-18 Michael Matz <matz@suse.de>
15626
15627 PR middle-end/66253
15628 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
15629 grouped strided stores.
15630 (vectorizable_load): Don't use the DR from first_stmt in
15631 the non-SLP grouped strided case.
15632
15633 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
15634
15635 PR target/66569
15636 * function.c (assign_bounds): Add arguments assign_regs,
15637 assign_special, assign_bt.
15638 (assign_parms): For vararg functions handle bounds in BT
15639 and special slots after incoming vararg bounds.
15640
15641 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
15642
15643 PR middle-end/66568
15644 * cfgexpand.c (expand_return): Handle missing bounds.
15645 (expand_gimple_stmt_1): Likewise.
15646 * tree-chkp.c (chkp_expand_zero_bounds): New.
15647 * tree-chkp.h (chkp_expand_zero_bounds): New.
15648
15649 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
15650
15651 PR middle-end/66567
15652 * ipa-chkp.c (chkp_maybe_create_clone): Require
15653 functions to be instrumentable.
15654 * tree-chkp.c (chkp_replace_function_pointer): Use
15655 chkp_instrumentable_p instead of attribute check.
15656
15657 2015-06-18 Richard Biener <rguenther@suse.de>
15658
15659 PR tree-optimization/66510
15660 * tree-vect-stmts.c (vectorizable_load): Properly compute the
15661 number of vector loads for SLP permuted loads.
15662 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
15663 check the stride for loop vectorization.
15664 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
15665 vectorization factor.
15666 (vect_analyze_group_access): If the group size is not a power
15667 of two require a epilogue loop.
15668 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
15669 compute and optimizing and alias test pruning after final
15670 vectorization factor computation.
15671 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
15672 vector alignment.
15673 (vect_transform_slp_perm_load): Properly compute the original
15674 number of vector load stmts.
15675
15676 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
15677
15678 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
15679 "unlikely character , in @var" warning.
15680
15681 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
15682
15683 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
15684 (ix86_function_arg_advance): Ditto.
15685 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
15686
15687 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
15688
15689 * function.h (struct rtl_data): Remove struct and accessor macros.
15690 * emit-rtl.h (struct rtl_data): Relocate to here.
15691 * Makefile.in (GTFILES): Add emit-rtl.h.
15692 * df-core.c: Include emit-rtl.h.
15693 * genattrtab.c: Likewise.
15694 * genconditions.c: Likewise.
15695 * genpreds.c: Likewise.
15696 * genrecog.c: Likewise.
15697 * regcprop.c: Likewise.
15698 * resource.c: Likewise.
15699 * sched-rgn.c: Likewise.
15700 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15701 * config/i386/winnt.c: Likewise.
15702
15703 2015-06-17 Jakub Jelinek <jakub@redhat.com>
15704
15705 PR middle-end/66429
15706 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
15707 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
15708 and has_force_vectorize_loops flags from cfun into
15709 child_cfun.
15710 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
15711 if simduid is non-NULL.
15712 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
15713 * passes.def (pass_simduid_cleanup): Add new pass after loop
15714 passes.
15715 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
15716 indirection from htab argument's type.
15717 (shrink_simd_arrays): New function.
15718 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
15719 Don't call adjust_simduid_builtins if there are no loops.
15720 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
15721 (pass_simduid_cleanup::execute): New method.
15722 (make_pass_simduid_cleanup): New function.
15723
15724 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
15725
15726 * tree-core.h (tree_target_option): Make opts field a pointer to a
15727 cl_target_option instead of an instance of the struct.
15728 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
15729 the structure.
15730 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
15731 TARGET_OPTION_NODE.
15732 (copy_node_stat): Allocate and copy struct cl_target_option.
15733
15734 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
15735
15736 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
15737 Remove conditional exposure of prototypes.
15738 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
15739 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
15740 definitions in tree.h with functions.
15741 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
15742 anon_aggrname_p.
15743 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
15744
15745 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
15746
15747 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
15748 (*cmp<mode>_signed): ... this.
15749 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
15750 (*cmp<mode>_unsigned): ... this. Remove %b.
15751
15752 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
15753
15754 * coretypes.h: Include input.h and as-a.h.
15755 * rtl.h: Include input.h and as-a.h for generator files.
15756 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
15757 * vec.c: Don't include diagnostic-core.h.
15758 * alias.c: Do not include input.h, line-map.h or is-a.h.
15759 * asan.c: Likewise.
15760 * attribs.c: Likewise.
15761 * auto-inc-dec.c: Likewise.
15762 * auto-profile.c: Likewise.
15763 * bb-reorder.c: Likewise.
15764 * bt-load.c: Likewise.
15765 * builtins.c: Likewise.
15766 * caller-save.c: Likewise.
15767 * calls.c: Likewise.
15768 * ccmp.c: Likewise.
15769 * cfg.c: Likewise.
15770 * cfganal.c: Likewise.
15771 * cfgbuild.c: Likewise.
15772 * cfgcleanup.c: Likewise.
15773 * cfgexpand.c: Likewise.
15774 * cfghooks.c: Likewise.
15775 * cfgloop.c: Likewise.
15776 * cfgloop.h: Likewise.
15777 * cfgloopanal.c: Likewise.
15778 * cfgloopmanip.c: Likewise.
15779 * cfgrtl.c: Likewise.
15780 * cgraph.c: Likewise.
15781 * cgraphbuild.c: Likewise.
15782 * cgraphclones.c: Likewise.
15783 * cgraphunit.c: Likewise.
15784 * cilk-common.c: Likewise.
15785 * combine-stack-adj.c: Likewise.
15786 * combine.c: Likewise.
15787 * compare-elim.c: Likewise.
15788 * convert.c: Likewise.
15789 * coverage.c: Likewise.
15790 * cppbuiltin.c: Likewise.
15791 * cprop.c: Likewise.
15792 * cse.c: Likewise.
15793 * cselib.c: Likewise.
15794 * data-streamer-in.c: Likewise.
15795 * data-streamer-out.c: Likewise.
15796 * data-streamer.c: Likewise.
15797 * dbxout.c: Likewise.
15798 * dce.c: Likewise.
15799 * ddg.c: Likewise.
15800 * debug.c: Likewise.
15801 * df-core.c: Likewise.
15802 * df-problems.c: Likewise.
15803 * df-scan.c: Likewise.
15804 * df.h: Likewise.
15805 * dfp.c: Likewise.
15806 * diagnostic-core.h: Likewise.
15807 * diagnostic.c: Likewise.
15808 * dojump.c: Likewise.
15809 * dominance.c: Likewise.
15810 * domwalk.c: Likewise.
15811 * double-int.c: Likewise.
15812 * dse.c: Likewise.
15813 * dumpfile.c: Likewise.
15814 * dumpfile.h: Likewise.
15815 * dwarf2asm.c: Likewise.
15816 * dwarf2cfi.c: Likewise.
15817 * dwarf2out.c: Likewise.
15818 * emit-rtl.c: Likewise.
15819 * et-forest.c: Likewise.
15820 * except.c: Likewise.
15821 * explow.c: Likewise.
15822 * expmed.c: Likewise.
15823 * expr.c: Likewise.
15824 * final.c: Likewise.
15825 * fixed-value.c: Likewise.
15826 * fold-const.c: Likewise.
15827 * function.c: Likewise.
15828 * fwprop.c: Likewise.
15829 * gcc-plugin.h: Likewise.
15830 * gcse.c: Likewise.
15831 * generic-match-head.c: Likewise.
15832 * ggc-page.c: Likewise.
15833 * gimple-builder.c: Likewise.
15834 * gimple-expr.c: Likewise.
15835 * gimple-fold.c: Likewise.
15836 * gimple-iterator.c: Likewise.
15837 * gimple-low.c: Likewise.
15838 * gimple-match-head.c: Likewise.
15839 * gimple-pretty-print.c: Likewise.
15840 * gimple-ssa-isolate-paths.c: Likewise.
15841 * gimple-ssa-strength-reduction.c: Likewise.
15842 * gimple-streamer-in.c: Likewise.
15843 * gimple-streamer-out.c: Likewise.
15844 * gimple-streamer.h: Likewise.
15845 * gimple-walk.c: Likewise.
15846 * gimple.c: Likewise.
15847 * gimplify-me.c: Likewise.
15848 * gimplify.c: Likewise.
15849 * godump.c: Likewise.
15850 * graph.c: Likewise.
15851 * graphite-blocking.c: Likewise.
15852 * graphite-dependences.c: Likewise.
15853 * graphite-interchange.c: Likewise.
15854 * graphite-isl-ast-to-gimple.c: Likewise.
15855 * graphite-optimize-isl.c: Likewise.
15856 * graphite-poly.c: Likewise.
15857 * graphite-scop-detection.c: Likewise.
15858 * graphite-sese-to-poly.c: Likewise.
15859 * graphite.c: Likewise.
15860 * haifa-sched.c: Likewise.
15861 * hw-doloop.c: Likewise.
15862 * ifcvt.c: Likewise.
15863 * init-regs.c: Likewise.
15864 * input.c: Likewise.
15865 * internal-fn.c: Likewise.
15866 * ipa-chkp.c: Likewise.
15867 * ipa-comdats.c: Likewise.
15868 * ipa-cp.c: Likewise.
15869 * ipa-devirt.c: Likewise.
15870 * ipa-icf-gimple.c: Likewise.
15871 * ipa-icf.c: Likewise.
15872 * ipa-inline-analysis.c: Likewise.
15873 * ipa-inline-transform.c: Likewise.
15874 * ipa-inline.c: Likewise.
15875 * ipa-polymorphic-call.c: Likewise.
15876 * ipa-profile.c: Likewise.
15877 * ipa-prop.c: Likewise.
15878 * ipa-pure-const.c: Likewise.
15879 * ipa-ref.c: Likewise.
15880 * ipa-reference.c: Likewise.
15881 * ipa-split.c: Likewise.
15882 * ipa-utils.c: Likewise.
15883 * ipa-visibility.c: Likewise.
15884 * ipa.c: Likewise.
15885 * ira-build.c: Likewise.
15886 * ira-color.c: Likewise.
15887 * ira-conflicts.c: Likewise.
15888 * ira-costs.c: Likewise.
15889 * ira-emit.c: Likewise.
15890 * ira-lives.c: Likewise.
15891 * ira.c: Likewise.
15892 * jump.c: Likewise.
15893 * langhooks.c: Likewise.
15894 * lcm.c: Likewise.
15895 * loop-doloop.c: Likewise.
15896 * loop-init.c: Likewise.
15897 * loop-invariant.c: Likewise.
15898 * loop-iv.c: Likewise.
15899 * loop-unroll.c: Likewise.
15900 * lower-subreg.c: Likewise.
15901 * lra-assigns.c: Likewise.
15902 * lra-coalesce.c: Likewise.
15903 * lra-constraints.c: Likewise.
15904 * lra-eliminations.c: Likewise.
15905 * lra-lives.c: Likewise.
15906 * lra-remat.c: Likewise.
15907 * lra-spills.c: Likewise.
15908 * lra.c: Likewise.
15909 * lto-cgraph.c: Likewise.
15910 * lto-compress.c: Likewise.
15911 * lto-opts.c: Likewise.
15912 * lto-section-in.c: Likewise.
15913 * lto-section-out.c: Likewise.
15914 * lto-streamer-in.c: Likewise.
15915 * lto-streamer-out.c: Likewise.
15916 * lto-streamer.c: Likewise.
15917 * mcf.c: Likewise.
15918 * mode-switching.c: Likewise.
15919 * modulo-sched.c: Likewise.
15920 * omega.c: Likewise.
15921 * omp-low.c: Likewise.
15922 * optabs.c: Likewise.
15923 * opts-global.c: Likewise.
15924 * opts.h: Likewise.
15925 * passes.c: Likewise.
15926 * plugin.c: Likewise.
15927 * postreload-gcse.c: Likewise.
15928 * postreload.c: Likewise.
15929 * predict.c: Likewise.
15930 * pretty-print.h: Likewise.
15931 * print-rtl.c: Likewise.
15932 * print-tree.c: Likewise.
15933 * profile.c: Likewise.
15934 * real.c: Likewise.
15935 * realmpfr.c: Likewise.
15936 * recog.c: Likewise.
15937 * ree.c: Likewise.
15938 * reg-stack.c: Likewise.
15939 * regcprop.c: Likewise.
15940 * reginfo.c: Likewise.
15941 * regrename.c: Likewise.
15942 * regstat.c: Likewise.
15943 * reload.c: Likewise.
15944 * reload1.c: Likewise.
15945 * reorg.c: Likewise.
15946 * resource.c: Likewise.
15947 * rtl-chkp.c: Likewise.
15948 * rtl-error.c: Likewise.
15949 * rtlanal.c: Likewise.
15950 * rtlhooks.c: Likewise.
15951 * sanopt.c: Likewise.
15952 * sched-deps.c: Likewise.
15953 * sched-ebb.c: Likewise.
15954 * sched-rgn.c: Likewise.
15955 * sched-vis.c: Likewise.
15956 * sdbout.c: Likewise.
15957 * sel-sched-dump.c: Likewise.
15958 * sel-sched-ir.c: Likewise.
15959 * sel-sched.c: Likewise.
15960 * sese.c: Likewise.
15961 * shrink-wrap.c: Likewise.
15962 * simplify-rtx.c: Likewise.
15963 * stack-ptr-mod.c: Likewise.
15964 * statistics.c: Likewise.
15965 * stmt.c: Likewise.
15966 * stor-layout.c: Likewise.
15967 * store-motion.c: Likewise.
15968 * streamer-hooks.c: Likewise.
15969 * stringpool.c: Likewise.
15970 * symtab.c: Likewise.
15971 * target-globals.c: Likewise.
15972 * targhooks.c: Likewise.
15973 * toplev.c: Likewise.
15974 * tracer.c: Likewise.
15975 * trans-mem.c: Likewise.
15976 * tree-affine.c: Likewise.
15977 * tree-browser.c: Likewise.
15978 * tree-call-cdce.c: Likewise.
15979 * tree-cfg.c: Likewise.
15980 * tree-cfgcleanup.c: Likewise.
15981 * tree-chkp-opt.c: Likewise.
15982 * tree-chkp.c: Likewise.
15983 * tree-chrec.c: Likewise.
15984 * tree-complex.c: Likewise.
15985 * tree-data-ref.c: Likewise.
15986 * tree-dfa.c: Likewise.
15987 * tree-diagnostic.c: Likewise.
15988 * tree-dump.c: Likewise.
15989 * tree-eh.c: Likewise.
15990 * tree-emutls.c: Likewise.
15991 * tree-if-conv.c: Likewise.
15992 * tree-inline.c: Likewise.
15993 * tree-into-ssa.c: Likewise.
15994 * tree-iterator.c: Likewise.
15995 * tree-loop-distribution.c: Likewise.
15996 * tree-nested.c: Likewise.
15997 * tree-nrv.c: Likewise.
15998 * tree-object-size.c: Likewise.
15999 * tree-outof-ssa.c: Likewise.
16000 * tree-parloops.c: Likewise.
16001 * tree-phinodes.c: Likewise.
16002 * tree-predcom.c: Likewise.
16003 * tree-pretty-print.c: Likewise.
16004 * tree-profile.c: Likewise.
16005 * tree-scalar-evolution.c: Likewise.
16006 * tree-sra.c: Likewise.
16007 * tree-ssa-address.c: Likewise.
16008 * tree-ssa-alias.c: Likewise.
16009 * tree-ssa-ccp.c: Likewise.
16010 * tree-ssa-coalesce.c: Likewise.
16011 * tree-ssa-copy.c: Likewise.
16012 * tree-ssa-copyrename.c: Likewise.
16013 * tree-ssa-dce.c: Likewise.
16014 * tree-ssa-dom.c: Likewise.
16015 * tree-ssa-dse.c: Likewise.
16016 * tree-ssa-forwprop.c: Likewise.
16017 * tree-ssa-ifcombine.c: Likewise.
16018 * tree-ssa-live.c: Likewise.
16019 * tree-ssa-loop-ch.c: Likewise.
16020 * tree-ssa-loop-im.c: Likewise.
16021 * tree-ssa-loop-ivcanon.c: Likewise.
16022 * tree-ssa-loop-ivopts.c: Likewise.
16023 * tree-ssa-loop-manip.c: Likewise.
16024 * tree-ssa-loop-niter.c: Likewise.
16025 * tree-ssa-loop-prefetch.c: Likewise.
16026 * tree-ssa-loop-unswitch.c: Likewise.
16027 * tree-ssa-loop.c: Likewise.
16028 * tree-ssa-math-opts.c: Likewise.
16029 * tree-ssa-operands.c: Likewise.
16030 * tree-ssa-phiopt.c: Likewise.
16031 * tree-ssa-phiprop.c: Likewise.
16032 * tree-ssa-pre.c: Likewise.
16033 * tree-ssa-propagate.c: Likewise.
16034 * tree-ssa-reassoc.c: Likewise.
16035 * tree-ssa-sccvn.c: Likewise.
16036 * tree-ssa-scopedtables.c: Likewise.
16037 * tree-ssa-sink.c: Likewise.
16038 * tree-ssa-strlen.c: Likewise.
16039 * tree-ssa-structalias.c: Likewise.
16040 * tree-ssa-tail-merge.c: Likewise.
16041 * tree-ssa-ter.c: Likewise.
16042 * tree-ssa-threadedge.c: Likewise.
16043 * tree-ssa-threadupdate.c: Likewise.
16044 * tree-ssa-uncprop.c: Likewise.
16045 * tree-ssa-uninit.c: Likewise.
16046 * tree-ssa.c: Likewise.
16047 * tree-ssanames.c: Likewise.
16048 * tree-stdarg.c: Likewise.
16049 * tree-streamer-in.c: Likewise.
16050 * tree-streamer-out.c: Likewise.
16051 * tree-streamer.c: Likewise.
16052 * tree-switch-conversion.c: Likewise.
16053 * tree-tailcall.c: Likewise.
16054 * tree-vect-data-refs.c: Likewise.
16055 * tree-vect-generic.c: Likewise.
16056 * tree-vect-loop-manip.c: Likewise.
16057 * tree-vect-loop.c: Likewise.
16058 * tree-vect-patterns.c: Likewise.
16059 * tree-vect-slp.c: Likewise.
16060 * tree-vect-stmts.c: Likewise.
16061 * tree-vectorizer.c: Likewise.
16062 * tree-vrp.c: Likewise.
16063 * tree.c: Likewise.
16064 * tsan.c: Likewise.
16065 * ubsan.c: Likewise.
16066 * valtrack.c: Likewise.
16067 * value-prof.c: Likewise.
16068 * var-tracking.c: Likewise.
16069 * varasm.c: Likewise.
16070 * varpool.c: Likewise.
16071 * vmsdbgout.c: Likewise.
16072 * vtable-verify.c: Likewise.
16073 * web.c: Likewise.
16074 * wide-int.cc: Likewise.
16075 * xcoffout.c: Likewise.
16076 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
16077 * common/common-targhooks.c: Likewise.
16078 * config/aarch64/aarch64-builtins.c: Likewise.
16079 * config/aarch64/aarch64.c: Likewise.
16080 * config/alpha/alpha.c: Likewise.
16081 * config/arc/arc.c: Likewise.
16082 * config/arm/aarch-common.c: Likewise.
16083 * config/arm/arm-builtins.c: Likewise.
16084 * config/arm/arm-c.c: Likewise.
16085 * config/arm/arm.c: Likewise.
16086 * config/avr/avr-c.c: Likewise.
16087 * config/avr/avr-log.c: Likewise.
16088 * config/avr/avr.c: Likewise.
16089 * config/bfin/bfin.c: Likewise.
16090 * config/c6x/c6x.c: Likewise.
16091 * config/cr16/cr16.c: Likewise.
16092 * config/cris/cris.c: Likewise.
16093 * config/darwin-c.c: Likewise.
16094 * config/darwin.c: Likewise.
16095 * config/default-c.c: Likewise.
16096 * config/epiphany/epiphany.c: Likewise.
16097 * config/epiphany/mode-switch-use.c: Likewise.
16098 * config/epiphany/resolve-sw-modes.c: Likewise.
16099 * config/fr30/fr30.c: Likewise.
16100 * config/frv/frv.c: Likewise.
16101 * config/ft32/ft32.c: Likewise.
16102 * config/glibc-c.c: Likewise.
16103 * config/h8300/h8300.c: Likewise.
16104 * config/i386/i386-c.c: Likewise.
16105 * config/i386/i386.c: Likewise.
16106 * config/i386/msformat-c.c: Likewise.
16107 * config/i386/winnt-cxx.c: Likewise.
16108 * config/i386/winnt-stubs.c: Likewise.
16109 * config/i386/winnt.c: Likewise.
16110 * config/ia64/ia64-c.c: Likewise.
16111 * config/ia64/ia64.c: Likewise.
16112 * config/iq2000/iq2000.c: Likewise.
16113 * config/lm32/lm32.c: Likewise.
16114 * config/m32c/m32c-pragma.c: Likewise.
16115 * config/m32c/m32c.c: Likewise.
16116 * config/m32r/m32r.c: Likewise.
16117 * config/m68k/m68k.c: Likewise.
16118 * config/mcore/mcore.c: Likewise.
16119 * config/mep/mep-pragma.c: Likewise.
16120 * config/mep/mep.c: Likewise.
16121 * config/microblaze/microblaze-c.c: Likewise.
16122 * config/microblaze/microblaze.c: Likewise.
16123 * config/mips/mips.c: Likewise.
16124 * config/mmix/mmix.c: Likewise.
16125 * config/mn10300/mn10300.c: Likewise.
16126 * config/moxie/moxie.c: Likewise.
16127 * config/msp430/msp430-c.c: Likewise.
16128 * config/msp430/msp430.c: Likewise.
16129 * config/nds32/nds32-cost.c: Likewise.
16130 * config/nds32/nds32-fp-as-gp.c: Likewise.
16131 * config/nds32/nds32-intrinsic.c: Likewise.
16132 * config/nds32/nds32-isr.c: Likewise.
16133 * config/nds32/nds32-md-auxiliary.c: Likewise.
16134 * config/nds32/nds32-memory-manipulation.c: Likewise.
16135 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16136 * config/nds32/nds32-predicates.c: Likewise.
16137 * config/nds32/nds32.c: Likewise.
16138 * config/nios2/nios2.c: Likewise.
16139 * config/nvptx/nvptx.c: Likewise.
16140 * config/pa/pa.c: Likewise.
16141 * config/pdp11/pdp11.c: Likewise.
16142 * config/rl78/rl78-c.c: Likewise.
16143 * config/rl78/rl78.c: Likewise.
16144 * config/rs6000/rs6000-c.c: Likewise.
16145 * config/rs6000/rs6000.c: Likewise.
16146 * config/rx/rx.c: Likewise.
16147 * config/s390/s390-c.c: Likewise.
16148 * config/s390/s390.c: Likewise.
16149 * config/sh/sh-c.c: Likewise.
16150 * config/sh/sh-mem.cc: Likewise.
16151 * config/sh/sh.c: Likewise.
16152 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
16153 * config/sh/sh_treg_combine.cc: Likewise.
16154 * config/sol2-c.c: Likewise.
16155 * config/sol2-cxx.c: Likewise.
16156 * config/sol2-stubs.c: Likewise.
16157 * config/sol2.c: Likewise.
16158 * config/sparc/sparc-c.c: Likewise.
16159 * config/sparc/sparc.c: Likewise.
16160 * config/spu/spu-c.c: Likewise.
16161 * config/spu/spu.c: Likewise.
16162 * config/stormy16/stormy16.c: Likewise.
16163 * config/tilegx/mul-tables.c: Likewise.
16164 * config/tilegx/tilegx-c.c: Likewise.
16165 * config/tilegx/tilegx.c: Likewise.
16166 * config/tilepro/mul-tables.c: Likewise.
16167 * config/tilepro/tilepro-c.c: Likewise.
16168 * config/tilepro/tilepro.c: Likewise.
16169 * config/v850/v850-c.c: Likewise.
16170 * config/v850/v850.c: Likewise.
16171 * config/vax/vax.c: Likewise.
16172 * config/visium/visium.c: Likewise.
16173 * config/vms/vms-c.c: Likewise.
16174 * config/vms/vms.c: Likewise.
16175 * config/vxworks.c: Likewise.
16176 * config/winnt-c.c: Likewise.
16177 * config/xtensa/xtensa.c: Likewise.
16178
16179 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
16180
16181 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
16182 function.
16183 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
16184
16185 2015-06-17 Richard Biener <rguenther@suse.de>
16186
16187 PR tree-optimization/66251
16188 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
16189 stmts for SLP strided stores.
16190
16191 Revert
16192 2015-05-22 Richard Biener <rguenther@suse.de>
16193
16194 PR tree-optimization/66251
16195 * tree-vect-stmts.c (vectorizable_conversion): Properly
16196 set STMT_VINFO_VEC_STMT even for the SLP case.
16197
16198 2015-05-26 Michael Matz <matz@suse.de>
16199
16200 PR middle-end/66251
16201 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
16202 STMT_VINFO_VEC_STMT, also with SLP.
16203
16204 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
16205
16206 PR target/56766
16207 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
16208 (*avx_addsubv4df3_1s): Ditto.
16209 (*sse3_addsubv2df3_1): Ditto.
16210 (*sse3_addsubv2df3_1s): Ditto.
16211 (*avx_addsubv8sf3_1): Ditto.
16212 (*avx_addsubv8sf3_1s): Ditto.
16213 (*sse3_addsubv4sf3_1): Ditto.
16214 (*sse3_addsubv4sf3_1s): Ditto.
16215
16216 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
16217
16218 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
16219 (SYSROOT_SUFFIX_SPEC): Update.
16220 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
16221 (STARTFILE_PREFIX_SPEC): Update.
16222 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
16223 (MULTILIB_REQUIRED): New.
16224 (MULTILIB_OSDIRNAMES): New.
16225 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
16226 (MULTILIB_REQUIRED): New.
16227 (MULTILIB_OSDIRNAMES): New.
16228
16229 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
16230
16231 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
16232 * config/aarch64/aarch64-options-extensions.def: Update "fP",
16233 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
16234 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
16235 (AARCH64_FL_PAN): New.
16236 (AARCH64_FL_LOR): New.
16237 (AARCH64_FL_RDMA): New.
16238 (AARCH64_FL_FOR_ARCH8_1): New.
16239 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
16240 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
16241
16242 2015-06-16 Martin Liska <mliska@suse.cz>
16243
16244 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
16245 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
16246 guard.
16247
16248 2015-06-16 Richard Biener <rguenther@suse.de>
16249
16250 * tree-vect-stmts.c (vectorizable_store): Adjust.
16251 (vectorizable_load): Likewise.
16252 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
16253 Simplify.
16254 (vect_create_data_ref_ptr): Likewise.
16255 (bump_vector_ptr): Adjust.
16256
16257 2015-06-16 Richard Biener <rguenther@suse.de>
16258
16259 * tree-vect-stmts.c (vectorizable_load): Properly start loads
16260 with the first element if this is grouped loads.
16261
16262 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
16263
16264 * config/arm/arm-protos.h (struct tune_params): Rename
16265 log_op_non_sc to log_op_non_short_circuit, and rename enum
16266 values to expand SC to SHORT_CIRCUIT.
16267 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
16268 to LOG_OP_NON_SHORT_CIRCUIT.
16269 (arm_fastmul_tune):Likewise
16270 (arm_strongarm_tune): Likewise.
16271 (arm_xscale_tune): Likewise.
16272 (arm_9e_tune): Likewise.
16273 (arm_marvell_pj4_tune): Likewise.
16274 (arm_v6t2_tune): Likewise.
16275 (arm_cortex_tune): Likewise.
16276 (arm_cortex_a8_tune): Likewise.
16277 (arm_cortex_a7_tune): Likewise.
16278 (arm_cortex_a15_tune): Likewise.
16279 (arm_cortex_a53_tune): Likewise.
16280 (arm_cortex_a57_tune): Likewise.
16281 (arm_xgene1_tune): Likewise.
16282 (arm_cortex_a5_tune): Likewise.
16283 (arm_cortex_a9_tune): Likewise.
16284 (arm_cortex_a12_tune): Likewise.
16285 (arm_v7m_tune): Likewise.
16286 (arm_cortex_m7_tune): Likewise.
16287 (arm_v6m_tune): Likewise.
16288 (arm_fa726te_tune): Likewise.
16289
16290 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
16291
16292 * altivec.md: Delete UNSPEC_VMLADDUHM.
16293 (mulv4si3_p8): New pattern.
16294 (mulv4si3): Use it for POWER8.
16295 (mulv8hi3): Use vmladduhm with zero addend.
16296 (altivec_vmladduhm): Descriptive RTL.
16297
16298 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
16299
16300 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
16301 to use neon_move instead of mov_imm.
16302 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
16303 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
16304
16305 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
16306 aarch64_float_const_zero_rtx_p check before TFmode check.
16307 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
16308 an fp zero.
16309 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
16310 code and attributes to match. Change condition from register_operand
16311 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
16312 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
16313 to store2.
16314
16315 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
16316
16317 PR debug/66535
16318 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
16319 there is no parent.
16320
16321 2015-06-14 Shiva Chen <shiva0217@gmail.com>
16322
16323 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
16324 HOST_WIDE_INT parameter.
16325
16326 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
16327
16328 PR ipa/66181
16329 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
16330 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
16331 TYPE_NO_FORCE_BLK.
16332 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
16333
16334 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
16335
16336 * rtl.h (classify_insn): Declare.
16337 * emit-rtl.c (classify_insn): Move to...
16338 * rtl.c: ...here and add generator support.
16339 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
16340 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
16341 * genemit.c (gen_emit_seq): New function.
16342 (gen_expand, gen_split): Use it.
16343
16344 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
16345
16346 * tree.c (make_vector_stat): Fix comment to state that the
16347 function returns a VECTOR_CST.
16348
16349 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
16350
16351 * gensupport.h (add_implicit_parallel): Declare.
16352 * genrecog.c (add_implicit_parallel): Move to...
16353 * gensupport.c (add_implicit_parallel): ...here.
16354 (process_one_cond_exec): Use it.
16355 * genemit.c (gen_insn): Likewise.
16356
16357 2015-06-13 Iain Sandoe <iain@codesourcery.com>
16358
16359 PR bootstrap/66448
16360 * passes.c (rest_of_decl_compilation): Do not register globals for
16361 early debug if they are declared in built-ins.
16362
16363 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
16364
16365 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
16366
16367 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16368
16369 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
16370 manually swapping.
16371 (noce_try_cmove_arith): Likewise.
16372 (noce_get_alt_condition): Likewise.
16373
16374 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
16375
16376 * common/config/i386/i386-common.c
16377 (OPTION_MASK_ISA_MWAITX_SET): New.
16378 (ix86_handle_option): Handle mwaitx.
16379 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
16380 (x86_64-*-*): Likewise.
16381 * config/i386/mwaitxintrin.h: New header.
16382 * config/i386/cpuid.h (bit_MWAITX): Define.
16383 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
16384 MWAITX support.
16385 * config/i386/i386.opt (mwaitx): New.
16386 * config/i386/i386-builtin-types.def
16387 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
16388 * config/i386/i386-c.c: Define __MWAITX__ if needed.
16389 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
16390 (PTA_MWAITX): New.
16391 (ix86_option_override_internal): Handle new option.
16392 (processor_alias_table): Added PTA_MWAITX.
16393 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
16394 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
16395 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
16396 IX86_BUILTIN_MONITORX built-ins.
16397 * config/i386/i386.h (TARGET_MWAITX): New.
16398 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
16399 UNSPEC_MONITORX.
16400 (mwaitx): New pattern.
16401 (monitorx_<mode>): New pattern.
16402 * config/i386/x86intrin.h: Include mwaitxintrin.h.
16403 * doc/extend.texi: Document monitorx and mwaitx builtins.
16404 * doc/invoke.texi: Document -mmwaitx option.
16405
16406 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
16407
16408 * emit-rtl.c (need_atomic_barrier_p): Mask model with
16409 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
16410
16411 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
16412
16413 * dbxout.c (xcoff_debug_hooks): Provide a function for
16414 register_main_translation_unit hook.
16415
16416 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
16417
16418 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
16419 variants cases from switch.
16420 (rs6000_post_atomic_barrier): Same.
16421 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
16422 (rs6000_expand_atomic_exchange): Same.
16423 (rs6000_expand_atomic_op): Same.
16424 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
16425 SYNC variants cases from switch.
16426 (atomic_load): Same.
16427 (atomic_store): Same.
16428
16429 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
16430
16431 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
16432 CONST_INT for goto.
16433
16434 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
16435
16436 PR bootstrap/66448
16437 * dwarf2out.c (check_die): Check for common duplicate attributes.
16438 (add_location_or_const_value_attribute): Do not add duplicate
16439 attributes.
16440 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
16441 time around.
16442 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
16443 (gen_type_die_with_usage): Call check_die.
16444 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
16445
16446 2015-06-11 Jason Merrill <jason@redhat.com>
16447
16448 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
16449 dies.
16450
16451 2015-06-11 Marek Polacek <polacek@redhat.com>
16452
16453 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
16454
16455 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
16456
16457 PR bootstrap/66252
16458 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
16459 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
16460 (*addx_extend_sp32): Fix pasto.
16461 (*subx_extend): Rename into...
16462 (*subx_extend_sp32): ...this.
16463 (*adddi3_extend_sp32): Add earlyclobber.
16464 (*subdi3_insn_sp32): Likewise.
16465 (*subdi3_extend_sp32): Likewise.
16466 (*and_not_di_sp32): Likewise.
16467 (*or_not_di_sp32): Likewise.
16468 (*xor_not_di_sp32): Likewise.
16469 (*negdi2_sp32): Likewise.
16470 (*one_cmpldi2_sp32): Likewise.
16471
16472 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
16473
16474 * debug.h (struct gcc_debug_hooks): Add a
16475 register_main_translation_unit hook.
16476 * debug.c (do_nothing_debug_hooks): Provide a function for this
16477 new hook.
16478 * dbxout.c (dbx_debug_hooks): Likewise.
16479 * sdbout.c (sdb_debug_hooks): Likewise.
16480 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
16481 * dwarf2out.c (main_translation_unit): New global variable.
16482 (dwarf2out_register_main_translation_unit): New function
16483 implementing the new hook.
16484 (dwarf2_debug_hooks): Assign
16485 dwarf2out_register_main_translation_unit to this new hook.
16486 (dwarf2out_init): Associate any main translation unit to
16487 comp_unit_die ().
16488
16489 2015-06-11 Marek Polacek <polacek@redhat.com>
16490
16491 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
16492
16493 2015-06-11 Marek Polacek <polacek@redhat.com>
16494
16495 * match.pd: Use single_use throughout.
16496
16497 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16498
16499 * config/arm/arm.c (arm_option_params_internal): When optimising
16500 for speed set max_insns_skipped when arm_restrict_it.
16501
16502 2015-06-11 Christian Bruel <christian.bruel@st.com>
16503
16504 PR target/52144
16505 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
16506 macros in ...
16507 (arm_cpu_builtins): New function.
16508 (arm_pragma_target_parse): Call arm_cpu_builtins.
16509 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
16510 (arm_register_target_pragmas): Likewise.
16511 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
16512 Call arm_register_target_pragmas.
16513 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
16514 (arm_pragma_target_parse): Likewise.
16515
16516 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
16517
16518 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
16519 of the second operand.
16520
16521 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
16522
16523 PR target/66473
16524 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
16525 to prepare mask operand for AVX512 modes.
16526
16527 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
16528
16529 PR target/66474
16530 * doc/md.texi (Machine Constraints): Document that on the PowerPC
16531 if you use a constraint that targets a VSX register, you must use
16532 %x<n> in the template.
16533
16534 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
16535
16536 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
16537 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
16538 (define_insn "trap"): New definition.
16539
16540 2015-06-10 Richard Biener <rguenther@suse.de>
16541
16542 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
16543 out from ...
16544 (vect_supported_load_permutation_p): ... here. Handle
16545 supportable permutations in reductions.
16546 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
16547 for vectorizing strided group loads.
16548
16549 2015-06-10 Jakub Jelinek <jakub@redhat.com>
16550
16551 PR target/66470
16552 * config/i386/i386.c (ix86_split_long_move): For collisions
16553 involving direct tls segment refs, move the UNSPEC_TP possibly
16554 wrapped in ZERO_EXTEND out of the address for lea, to each of
16555 the memory loads.
16556
16557 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16558
16559 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
16560 dmb sy. Adjust tabs.
16561
16562 2015-06-10 Tom de Vries <tom@codesourcery.com>
16563
16564 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
16565
16566 2015-06-10 Martin Liska <mliska@suse.cz>
16567
16568 PR bootstrap/66471
16569 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
16570 all enum values in mem_alloc_origin.
16571 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
16572 name.
16573 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
16574 * bitmap.c (bitmap_register): Likewise.
16575 (dump_bitmap_statistics): Likewise.
16576 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
16577 (ggc_record_overhead): Likewise.
16578 * hash-map.h: Likewise.
16579 * hash-set.h: Likewise.
16580 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
16581 * hash-table.h: Likewise.
16582 * vec.c (vec_prefix::register_overhead): Likewise.
16583 (vec_prefix::release_overhead): Likewise.
16584 (dump_vec_loc_statistics): Likewise.
16585
16586 2015-06-09 Christian Bruel <christian.bruel@st.com>
16587
16588 PR target/52144
16589 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
16590 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
16591 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
16592 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
16593 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
16594 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
16595 (arm_valid_target_attribute_p): Likewise.
16596 (arm_set_current_function, arm_can_inline_p): Likewise.
16597 (arm_valid_target_attribute_rec): Likewise.
16598 (arm_previous_fndecl): New variable.
16599 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
16600 (TARGET_CAN_INLINE_P): Define.
16601 (arm_asm_trampoline_template): Emit mode.
16602 (arm_file_start): Don't set unified syntax.
16603 (arm_declare_function_name): Set unified syntax and mode.
16604 (arm_option_override): Init target_option_default_node.
16605 and target_option_current_node.
16606 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
16607 (*call_symbol): Likewise.
16608 * doc/extend.texi: Document ARM/Thumb target attribute.
16609 * doc/invoke.texi: Likewise.
16610
16611 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
16612
16613 Revert:
16614 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
16615 PR rtl-optimization/64164
16616 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
16617 * tree-ssa-copyrename.c: Removed.
16618 * opts.c (default_options_table): Drop -ftree-copyrename. Add
16619 -ftree-coalesce-vars.
16620 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
16621 * common.opt (ftree-copyrename): Ignore.
16622 (ftree-coalesce-inlined-vars): Likewise.
16623 * doc/invoke.texi: Remove the ignored options above.
16624 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
16625 * tree-ssa-coalesce.h: ... here.
16626 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
16627 headers required by it.
16628 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
16629 across variables when flag_tree_coalesce_vars. Check register
16630 use and promoted modes to allow coalescing. Moved to
16631 tree-ssa-coalesce.c.
16632 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
16633 with its member functions to tree-ssa-coalesce.c.
16634 (var_map_base_init): Likewise. Renamed to
16635 compute_samebase_partition_bases.
16636 (partition_view_normal): Drop want_bases parameter.
16637 (partition_view_bitmap): Likewise.
16638 * tree-ssa-live.h: Adjust declarations.
16639 * tree-ssa-coalesce.c: Include explow.h.
16640 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
16641 default defs at the entry point.
16642 (dump_part_var_map): New.
16643 (compute_optimized_partition_bases): New, called by...
16644 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
16645 of compute_samebase_partition_bases. Adjust.
16646 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
16647 * cfgexpand.c (leader_merge): New.
16648 (get_rtl_for_parm_ssa_default_def): New.
16649 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
16650 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
16651 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
16652 redundant MEM attr setting.
16653 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
16654 from...
16655 (expand_one_stack_var): ... this. New wrapper to check and
16656 skip already expanded SSA partitions.
16657 (record_alignment_for_reg_var): New, factored out of...
16658 (expand_one_var): ... this.
16659 (expand_one_ssa_partition): New.
16660 (adjust_one_expanded_partition_var): New.
16661 (expand_one_register_var): Check and skip already expanded SSA
16662 partitions.
16663 (expand_used_vars): Don't create DECLs for anonymous SSA
16664 names. Expand all SSA partitions, then adjust all SSA names.
16665 (pass::execute): Replace the loops that set
16666 SA.partition_to_pseudo from partition leaders and cleared
16667 DECL_RTL for multi-location variables, and that which used to
16668 rename vars and set attrs, with one that clears DECL_RTL and
16669 checks that PARMs and RESULTs default_defs match DECL_RTL.
16670 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
16671 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
16672 * explow.c (promote_ssa_mode): New.
16673 * explow.h (promote_ssa_mode): Declare.
16674 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
16675 * function.c: Include cfgexpand.h.
16676 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
16677 (use_register_for_parm_decl): Wrapper for the above to
16678 special-case the result_ptr.
16679 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
16680 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
16681 multiple locations.
16682 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
16683 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
16684 (assign_parm_setup_block): Prefer SSA-assigned location.
16685 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
16686 if stack_parm is NULL.
16687 (assign_parm_setup_stack): Prefer SSA-assigned location.
16688 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
16689 rtl before testing for pointer bounds. Special-case result_ptr.
16690 (expand_function_start): Maybe reset DECL_RTL of result.
16691 Prefer SSA-assigned location for result and static chain.
16692 Factor out DECL_RESULT and SET_DECL_RTL.
16693 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
16694 anonymous SSA names. Use promote_ssa_mode.
16695 (get_temp_reg): Likewise.
16696 (remove_ssa_form): Adjust.
16697 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
16698 and get its reg_usage for reg invalidation.
16699 (compute_bb_dataflow): Pass it insn.
16700 (emit_notes_in_bb): Likewise.
16701 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
16702 fail assert on conversion between unsigned types.
16703
16704 2015-06-09 Tom de Vries <tom@codesourcery.com>
16705
16706 PR tree-optimization/65460
16707 * omp-low.c (expand_omp_target): Set parallelized_function on
16708 cgraph_node for child_fn.
16709
16710 2015-06-09 Tom de Vries <tom@codesourcery.com>
16711
16712 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
16713 parallelized_function before add_new_function.
16714
16715 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
16716
16717 * gcc-plugin.h: Move decls to plugin.h and include it.
16718 * plugin.h: Relocate decls from gcc-plugin.h
16719 * ggc-page.c: Include required header files.
16720 * passes.c: Likewise.
16721 * cgraphunit.c: Likewise.
16722
16723 2015-06-09 Tom de Vries <tom@codesourcery.com>
16724
16725 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
16726
16727 2015-06-09 Jason Merrill <jason@redhat.com>
16728
16729 PR bootstrap/66448
16730 * toplev.c (check_global_declaration): Don't warn about a clone.
16731
16732 2015-06-09 Marek Polacek <polacek@redhat.com>
16733
16734 PR tree-optimization/66299
16735 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
16736 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
16737 patterns.
16738
16739 2015-06-09 Richard Biener <rguenther@suse.de>
16740
16741 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
16742 (vect_analyze_slp_instance): Instead do not falsely drop
16743 load permutations.
16744
16745 2015-06-09 Richard Biener <rguenther@suse.de>
16746
16747 PR middle-end/66423
16748 * match.pd: Handle A % (unsigned)(1 << B).
16749
16750 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
16751
16752 * varasm.c (output_object_block_htab): Remove.
16753 (output_object_block_compare): New.
16754 (output_object_blocks): Sort named object_blocks before outputting
16755 them.
16756
16757 2015-06-09 Richard Biener <rguenther@suse.de>
16758
16759 PR tree-optimization/66419
16760 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
16761 consider GROUP_GAP when detecting a perfect subchain.
16762
16763 2015-06-09 Nick Clifton <nickc@redhat.com>
16764
16765 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
16766 place read only data in the .frodata section.
16767
16768 2015-06-09 Shiva Chen <shiva0217@gmail.com>
16769
16770 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
16771 (atomic_store<mode>): Likewise.
16772
16773 2015-06-09 Richard Biener <rguenther@suse.de>
16774
16775 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
16776
16777 2015-06-09 Richard Biener <rguenther@suse.de>
16778
16779 PR middle-end/66413
16780 * tree-inline.c (insert_init_debug_bind): Unshare value.
16781
16782 2015-06-09 Richard Biener <rguenther@suse.de>
16783
16784 PR tree-optimization/66396
16785 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
16786 Rename virtual operands.
16787
16788 2015-06-09 Tom de Vries <tom@codesourcery.com>
16789
16790 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
16791 always return false.
16792
16793 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
16794
16795 PR rtl-optimization/64164
16796 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
16797 * tree-ssa-copyrename.c: Removed.
16798 * opts.c (default_options_table): Drop -ftree-copyrename. Add
16799 -ftree-coalesce-vars.
16800 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
16801 * common.opt (ftree-copyrename): Ignore.
16802 (ftree-coalesce-inlined-vars): Likewise.
16803 * doc/invoke.texi: Remove the ignored options above.
16804 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
16805 * tree-ssa-coalesce.h: ... here.
16806 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
16807 headers required by it.
16808 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
16809 across variables when flag_tree_coalesce_vars. Check register
16810 use and promoted modes to allow coalescing. Moved to
16811 tree-ssa-coalesce.c.
16812 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
16813 with its member functions to tree-ssa-coalesce.c.
16814 (var_map_base_init): Likewise. Renamed to
16815 compute_samebase_partition_bases.
16816 (partition_view_normal): Drop want_bases parameter.
16817 (partition_view_bitmap): Likewise.
16818 * tree-ssa-live.h: Adjust declarations.
16819 * tree-ssa-coalesce.c: Include explow.h.
16820 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
16821 default defs at the entry point.
16822 (dump_part_var_map): New.
16823 (compute_optimized_partition_bases): New, called by...
16824 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
16825 of compute_samebase_partition_bases. Adjust.
16826 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
16827 * cfgexpand.c (leader_merge): New.
16828 (get_rtl_for_parm_ssa_default_def): New.
16829 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
16830 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
16831 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
16832 redundant MEM attr setting.
16833 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
16834 from...
16835 (expand_one_stack_var): ... this. New wrapper to check and
16836 skip already expanded SSA partitions.
16837 (record_alignment_for_reg_var): New, factored out of...
16838 (expand_one_var): ... this.
16839 (expand_one_ssa_partition): New.
16840 (adjust_one_expanded_partition_var): New.
16841 (expand_one_register_var): Check and skip already expanded SSA
16842 partitions.
16843 (expand_used_vars): Don't create DECLs for anonymous SSA
16844 names. Expand all SSA partitions, then adjust all SSA names.
16845 (pass::execute): Replace the loops that set
16846 SA.partition_to_pseudo from partition leaders and cleared
16847 DECL_RTL for multi-location variables, and that which used to
16848 rename vars and set attrs, with one that clears DECL_RTL and
16849 checks that PARMs and RESULTs default_defs match DECL_RTL.
16850 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
16851 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
16852 * explow.c (promote_ssa_mode): New.
16853 * explow.h (promote_ssa_mode): Declare.
16854 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
16855 * function.c: Include cfgexpand.h.
16856 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
16857 (use_register_for_parm_decl): Wrapper for the above to
16858 special-case the result_ptr.
16859 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
16860 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
16861 multiple locations.
16862 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
16863 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
16864 (assign_parm_setup_block): Prefer SSA-assigned location.
16865 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
16866 if stack_parm is NULL.
16867 (assign_parm_setup_stack): Prefer SSA-assigned location.
16868 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
16869 rtl before testing for pointer bounds. Special-case result_ptr.
16870 (expand_function_start): Maybe reset DECL_RTL of result.
16871 Prefer SSA-assigned location for result and static chain.
16872 Factor out DECL_RESULT and SET_DECL_RTL.
16873 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
16874 anonymous SSA names. Use promote_ssa_mode.
16875 (get_temp_reg): Likewise.
16876 (remove_ssa_form): Adjust.
16877 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
16878 and get its reg_usage for reg invalidation.
16879 (compute_bb_dataflow): Pass it insn.
16880 (emit_notes_in_bb): Likewise.
16881 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
16882 fail assert on conversion between unsigned types.
16883
16884 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
16885
16886 PR debug/58315
16887 * tree-inline.c (reset_debug_binding): New.
16888 (reset_debug_bindings): Likewise.
16889 (expand_call_inline): Call it.
16890
16891 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
16892
16893 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
16894 TYPE_STRING_FLAG.
16895
16896 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
16897
16898 * lto-streamer-out.c (lto_output_location): Stream
16899 reserved locations correctly.
16900 * lto-streamer-in.c (lto_output_location): Likewise.
16901
16902 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
16903
16904 * coretypes.h: Include hash-table.h and hash-set.h for host files.
16905 * ggc.h: Don't include statistics.h>
16906 * hash-map.h: Remove all includes.
16907 * hash-set.h: Likewise.
16908 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
16909 the include list. Remove <new>.
16910 * inchash.h: Remove all includes.
16911 * mem-stats.h: Likewise.
16912 * vec.h: No special processing for generators or ggc.
16913 * alias.c : Adjust include files.
16914 * alloc-pool.c : Likewise.
16915 * alloc-pool.h : Likewise.
16916 * asan.c : Likewise.
16917 * attribs.c : Likewise.
16918 * auto-inc-dec.c : Likewise.
16919 * auto-profile.c : Likewise.
16920 * bb-reorder.c : Likewise.
16921 * bitmap.c : Likewise.
16922 * bitmap.h : Likewise.
16923 * bt-load.c : Likewise.
16924 * builtins.c : Likewise.
16925 * caller-save.c : Likewise.
16926 * calls.c : Likewise.
16927 * ccmp.c : Likewise.
16928 * cfg.c : Likewise.
16929 * cfganal.c : Likewise.
16930 * cfgbuild.c : Likewise.
16931 * cfgcleanup.c : Likewise.
16932 * cfgexpand.c : Likewise.
16933 * cfghooks.c : Likewise.
16934 * cfgloop.c : Likewise.
16935 * cfgloop.h : Likewise.
16936 * cfgloopanal.c : Likewise.
16937 * cfgloopmanip.c : Likewise.
16938 * cfgrtl.c : Likewise.
16939 * cgraph.c : Likewise.
16940 * cgraphbuild.c : Likewise.
16941 * cgraphclones.c : Likewise.
16942 * cgraphunit.c : Likewise.
16943 * cilk-common.c : Likewise.
16944 * combine-stack-adj.c : Likewise.
16945 * combine.c : Likewise.
16946 * compare-elim.c : Likewise.
16947 * context.c : Likewise.
16948 * convert.c : Likewise.
16949 * coverage.c : Likewise.
16950 * cppbuiltin.c : Likewise.
16951 * cprop.c : Likewise.
16952 * cse.c : Likewise.
16953 * cselib.c : Likewise.
16954 * data-streamer-in.c : Likewise.
16955 * data-streamer-out.c : Likewise.
16956 * data-streamer.c : Likewise.
16957 * data-streamer.h : Likewise.
16958 * dbxout.c : Likewise.
16959 * dce.c : Likewise.
16960 * ddg.c : Likewise.
16961 * debug.c : Likewise.
16962 * df-core.c : Likewise.
16963 * df-problems.c : Likewise.
16964 * df-scan.c : Likewise.
16965 * df.h : Likewise.
16966 * dfp.c : Likewise.
16967 * dojump.c : Likewise.
16968 * dominance.c : Likewise.
16969 * domwalk.c : Likewise.
16970 * double-int.c : Likewise.
16971 * dse.c : Likewise.
16972 * dumpfile.c : Likewise.
16973 * dwarf2asm.c : Likewise.
16974 * dwarf2cfi.c : Likewise.
16975 * dwarf2out.c : Likewise.
16976 * emit-rtl.c : Likewise.
16977 * et-forest.c : Likewise.
16978 * except.c : Likewise.
16979 * except.h : Likewise.
16980 * explow.c : Likewise.
16981 * expmed.c : Likewise.
16982 * expr.c : Likewise.
16983 * final.c : Likewise.
16984 * fixed-value.c : Likewise.
16985 * fold-const.c : Likewise.
16986 * function.c : Likewise.
16987 * fwprop.c : Likewise.
16988 * gcc-plugin.h : Likewise.
16989 * gcc.c : Likewise.
16990 * gcse-common.c : Likewise.
16991 * gcse.c : Likewise.
16992 * genattrtab.c : Likewise.
16993 * genautomata.c : Likewise.
16994 * genconditions.c : Likewise.
16995 * genemit.c : Likewise.
16996 * generic-match-head.c : Likewise.
16997 * genextract.c : Likewise.
16998 * gengtype-state.c : Likewise.
16999 * gengtype.c : Likewise.
17000 * genhooks.c : Likewise.
17001 * genmatch.c : Likewise.
17002 * genmodes.c : Likewise.
17003 * genrecog.c : Likewise.
17004 * gensupport.c : Likewise.
17005 * ggc-common.c : Likewise.
17006 * ggc-internal.h : Likewise.
17007 * ggc-none.c : Likewise.
17008 * ggc-page.c : Likewise.
17009 * gimple-builder.c : Likewise.
17010 * gimple-expr.c : Likewise.
17011 * gimple-fold.c : Likewise.
17012 * gimple-iterator.c : Likewise.
17013 * gimple-low.c : Likewise.
17014 * gimple-match-head.c : Likewise.
17015 * gimple-pretty-print.c : Likewise.
17016 * gimple-ssa-isolate-paths.c : Likewise.
17017 * gimple-ssa-strength-reduction.c : Likewise.
17018 * gimple-ssa.h : Likewise.
17019 * gimple-streamer-in.c : Likewise.
17020 * gimple-streamer-out.c : Likewise.
17021 * gimple-streamer.h : Likewise.
17022 * gimple-walk.c : Likewise.
17023 * gimple.c : Likewise.
17024 * gimplify-me.c : Likewise.
17025 * gimplify.c : Likewise.
17026 * godump.c : Likewise.
17027 * graph.c : Likewise.
17028 * graphds.c : Likewise.
17029 * graphite-blocking.c : Likewise.
17030 * graphite-dependences.c : Likewise.
17031 * graphite-interchange.c : Likewise.
17032 * graphite-isl-ast-to-gimple.c : Likewise.
17033 * graphite-optimize-isl.c : Likewise.
17034 * graphite-poly.c : Likewise.
17035 * graphite-scop-detection.c : Likewise.
17036 * graphite-sese-to-poly.c : Likewise.
17037 * graphite.c : Likewise.
17038 * haifa-sched.c : Likewise.
17039 * hard-reg-set.h : Likewise.
17040 * hw-doloop.c : Likewise.
17041 * ifcvt.c : Likewise.
17042 * inchash.c : Likewise.
17043 * incpath.c : Likewise.
17044 * init-regs.c : Likewise.
17045 * input.c : Likewise.
17046 * internal-fn.c : Likewise.
17047 * ipa-chkp.c : Likewise.
17048 * ipa-comdats.c : Likewise.
17049 * ipa-cp.c : Likewise.
17050 * ipa-devirt.c : Likewise.
17051 * ipa-icf-gimple.c : Likewise.
17052 * ipa-icf.c : Likewise.
17053 * ipa-inline-analysis.c : Likewise.
17054 * ipa-inline-transform.c : Likewise.
17055 * ipa-inline.c : Likewise.
17056 * ipa-polymorphic-call.c : Likewise.
17057 * ipa-profile.c : Likewise.
17058 * ipa-prop.c : Likewise.
17059 * ipa-pure-const.c : Likewise.
17060 * ipa-ref.c : Likewise.
17061 * ipa-reference.c : Likewise.
17062 * ipa-split.c : Likewise.
17063 * ipa-utils.c : Likewise.
17064 * ipa-visibility.c : Likewise.
17065 * ipa.c : Likewise.
17066 * ira-build.c : Likewise.
17067 * ira-color.c : Likewise.
17068 * ira-conflicts.c : Likewise.
17069 * ira-costs.c : Likewise.
17070 * ira-emit.c : Likewise.
17071 * ira-lives.c : Likewise.
17072 * ira.c : Likewise.
17073 * jump.c : Likewise.
17074 * langhooks.c : Likewise.
17075 * lcm.c : Likewise.
17076 * libfuncs.h : Likewise.
17077 * lists.c : Likewise.
17078 * loop-doloop.c : Likewise.
17079 * loop-init.c : Likewise.
17080 * loop-invariant.c : Likewise.
17081 * loop-iv.c : Likewise.
17082 * loop-unroll.c : Likewise.
17083 * lower-subreg.c : Likewise.
17084 * lra-assigns.c : Likewise.
17085 * lra-coalesce.c : Likewise.
17086 * lra-constraints.c : Likewise.
17087 * lra-eliminations.c : Likewise.
17088 * lra-lives.c : Likewise.
17089 * lra-remat.c : Likewise.
17090 * lra-spills.c : Likewise.
17091 * lra.c : Likewise.
17092 * lto-cgraph.c : Likewise.
17093 * lto-compress.c : Likewise.
17094 * lto-opts.c : Likewise.
17095 * lto-section-in.c : Likewise.
17096 * lto-section-out.c : Likewise.
17097 * lto-streamer-in.c : Likewise.
17098 * lto-streamer-out.c : Likewise.
17099 * lto-streamer.c : Likewise.
17100 * lto-streamer.h : Likewise.
17101 * mcf.c : Likewise.
17102 * mode-switching.c : Likewise.
17103 * modulo-sched.c : Likewise.
17104 * omega.c : Likewise.
17105 * omp-low.c : Likewise.
17106 * optabs.c : Likewise.
17107 * opts-global.c : Likewise.
17108 * opts.h : Likewise.
17109 * passes.c : Likewise.
17110 * plugin.c : Likewise.
17111 * postreload-gcse.c : Likewise.
17112 * postreload.c : Likewise.
17113 * predict.c : Likewise.
17114 * print-rtl.c : Likewise.
17115 * print-tree.c : Likewise.
17116 * profile.c : Likewise.
17117 * read-md.c : Likewise.
17118 * read-md.h : Likewise.
17119 * read-rtl.c : Likewise.
17120 * real.c : Likewise.
17121 * realmpfr.c : Likewise.
17122 * recog.c : Likewise.
17123 * ree.c : Likewise.
17124 * reg-stack.c : Likewise.
17125 * regcprop.c : Likewise.
17126 * reginfo.c : Likewise.
17127 * regrename.c : Likewise.
17128 * regstat.c : Likewise.
17129 * reload.c : Likewise.
17130 * reload1.c : Likewise.
17131 * reorg.c : Likewise.
17132 * resource.c : Likewise.
17133 * rtl-chkp.c : Likewise.
17134 * rtl.c : Likewise.
17135 * rtl.h : Likewise.
17136 * rtlanal.c : Likewise.
17137 * rtlhash.c : Likewise.
17138 * rtlhash.h : Likewise.
17139 * rtlhooks.c : Likewise.
17140 * sanopt.c : Likewise.
17141 * sched-deps.c : Likewise.
17142 * sched-ebb.c : Likewise.
17143 * sched-rgn.c : Likewise.
17144 * sched-vis.c : Likewise.
17145 * sdbout.c : Likewise.
17146 * sel-sched-dump.c : Likewise.
17147 * sel-sched-ir.c : Likewise.
17148 * sel-sched-ir.h : Likewise.
17149 * sel-sched.c : Likewise.
17150 * sese.c : Likewise.
17151 * shrink-wrap.c : Likewise.
17152 * shrink-wrap.h : Likewise.
17153 * simplify-rtx.c : Likewise.
17154 * stack-ptr-mod.c : Likewise.
17155 * statistics.c : Likewise.
17156 * stmt.c : Likewise.
17157 * stor-layout.c : Likewise.
17158 * store-motion.c : Likewise.
17159 * stringpool.c : Likewise.
17160 * symtab.c : Likewise.
17161 * target-globals.c : Likewise.
17162 * targhooks.c : Likewise.
17163 * tlink.c : Likewise.
17164 * toplev.c : Likewise.
17165 * tracer.c : Likewise.
17166 * trans-mem.c : Likewise.
17167 * tree-affine.c : Likewise.
17168 * tree-affine.h : Likewise.
17169 * tree-browser.c : Likewise.
17170 * tree-call-cdce.c : Likewise.
17171 * tree-cfg.c : Likewise.
17172 * tree-cfgcleanup.c : Likewise.
17173 * tree-chkp-opt.c : Likewise.
17174 * tree-chkp.c : Likewise.
17175 * tree-chrec.c : Likewise.
17176 * tree-complex.c : Likewise.
17177 * tree-data-ref.c : Likewise.
17178 * tree-dfa.c : Likewise.
17179 * tree-diagnostic.c : Likewise.
17180 * tree-dump.c : Likewise.
17181 * tree-eh.c : Likewise.
17182 * tree-eh.h : Likewise.
17183 * tree-emutls.c : Likewise.
17184 * tree-hasher.h : Likewise.
17185 * tree-if-conv.c : Likewise.
17186 * tree-inline.c : Likewise.
17187 * tree-inline.h : Likewise.
17188 * tree-into-ssa.c : Likewise.
17189 * tree-iterator.c : Likewise.
17190 * tree-loop-distribution.c : Likewise.
17191 * tree-nested.c : Likewise.
17192 * tree-nrv.c : Likewise.
17193 * tree-object-size.c : Likewise.
17194 * tree-outof-ssa.c : Likewise.
17195 * tree-parloops.c : Likewise.
17196 * tree-phinodes.c : Likewise.
17197 * tree-predcom.c : Likewise.
17198 * tree-pretty-print.c : Likewise.
17199 * tree-profile.c : Likewise.
17200 * tree-scalar-evolution.c : Likewise.
17201 * tree-sra.c : Likewise.
17202 * tree-ssa-address.c : Likewise.
17203 * tree-ssa-alias.c : Likewise.
17204 * tree-ssa-ccp.c : Likewise.
17205 * tree-ssa-coalesce.c : Likewise.
17206 * tree-ssa-copy.c : Likewise.
17207 * tree-ssa-copyrename.c : Likewise.
17208 * tree-ssa-dce.c : Likewise.
17209 * tree-ssa-dom.c : Likewise.
17210 * tree-ssa-dse.c : Likewise.
17211 * tree-ssa-forwprop.c : Likewise.
17212 * tree-ssa-ifcombine.c : Likewise.
17213 * tree-ssa-live.c : Likewise.
17214 * tree-ssa-loop-ch.c : Likewise.
17215 * tree-ssa-loop-im.c : Likewise.
17216 * tree-ssa-loop-ivcanon.c : Likewise.
17217 * tree-ssa-loop-ivopts.c : Likewise.
17218 * tree-ssa-loop-manip.c : Likewise.
17219 * tree-ssa-loop-niter.c : Likewise.
17220 * tree-ssa-loop-prefetch.c : Likewise.
17221 * tree-ssa-loop-unswitch.c : Likewise.
17222 * tree-ssa-loop.c : Likewise.
17223 * tree-ssa-math-opts.c : Likewise.
17224 * tree-ssa-operands.c : Likewise.
17225 * tree-ssa-phiopt.c : Likewise.
17226 * tree-ssa-phiprop.c : Likewise.
17227 * tree-ssa-pre.c : Likewise.
17228 * tree-ssa-propagate.c : Likewise.
17229 * tree-ssa-reassoc.c : Likewise.
17230 * tree-ssa-sccvn.c : Likewise.
17231 * tree-ssa-scopedtables.c : Likewise.
17232 * tree-ssa-sink.c : Likewise.
17233 * tree-ssa-strlen.c : Likewise.
17234 * tree-ssa-structalias.c : Likewise.
17235 * tree-ssa-tail-merge.c : Likewise.
17236 * tree-ssa-ter.c : Likewise.
17237 * tree-ssa-threadedge.c : Likewise.
17238 * tree-ssa-threadupdate.c : Likewise.
17239 * tree-ssa-uncprop.c : Likewise.
17240 * tree-ssa-uninit.c : Likewise.
17241 * tree-ssa.c : Likewise.
17242 * tree-ssanames.c : Likewise.
17243 * tree-stdarg.c : Likewise.
17244 * tree-streamer-in.c : Likewise.
17245 * tree-streamer-out.c : Likewise.
17246 * tree-streamer.c : Likewise.
17247 * tree-streamer.h : Likewise.
17248 * tree-switch-conversion.c : Likewise.
17249 * tree-tailcall.c : Likewise.
17250 * tree-vect-data-refs.c : Likewise.
17251 * tree-vect-generic.c : Likewise.
17252 * tree-vect-loop-manip.c : Likewise.
17253 * tree-vect-loop.c : Likewise.
17254 * tree-vect-patterns.c : Likewise.
17255 * tree-vect-slp.c : Likewise.
17256 * tree-vect-stmts.c : Likewise.
17257 * tree-vectorizer.c : Likewise.
17258 * tree-vectorizer.h : Likewise.
17259 * tree-vrp.c : Likewise.
17260 * tree.c : Likewise.
17261 * tsan.c : Likewise.
17262 * ubsan.c : Likewise.
17263 * valtrack.c : Likewise.
17264 * valtrack.h : Likewise.
17265 * value-prof.c : Likewise.
17266 * var-tracking.c : Likewise.
17267 * varasm.c : Likewise.
17268 * varpool.c : Likewise.
17269 * vec.c: Likewise.
17270 * vmsdbgout.c : Likewise.
17271 * vtable-verify.c : Likewise.
17272 * vtable-verify.h : Likewise.
17273 * web.c : Likewise.
17274 * wide-int.cc : Likewise.
17275 * xcoffout.c : Likewise.
17276 * config/aarch64/aarch64-builtins.c : Likewise.
17277 * config/aarch64/aarch64.c : Likewise.
17278 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
17279 * config/alpha/alpha.c : Likewise.
17280 * config/arc/arc.c : Likewise.
17281 * config/arm/aarch-common.c : Likewise.
17282 * config/arm/arm-builtins.c : Likewise.
17283 * config/arm/arm-c.c : Likewise.
17284 * config/arm/arm.c : Likewise.
17285 * config/avr/avr-c.c : Likewise.
17286 * config/avr/avr-log.c : Likewise.
17287 * config/avr/avr.c : Likewise.
17288 * config/bfin/bfin.c : Likewise.
17289 * config/c6x/c6x.c : Likewise.
17290 * config/cr16/cr16.c : Likewise.
17291 * config/cris/cris.c : Likewise.
17292 * config/darwin-c.c : Likewise.
17293 * config/darwin.c : Likewise.
17294 * config/default-c.c : Likewise.
17295 * config/epiphany/epiphany.c : Likewise.
17296 * config/epiphany/mode-switch-use.c : Likewise.
17297 * config/epiphany/resolve-sw-modes.c : Likewise.
17298 * config/fr30/fr30.c : Likewise.
17299 * config/frv/frv.c : Likewise.
17300 * config/ft32/ft32.c : Likewise.
17301 * config/glibc-c.c : Likewise.
17302 * config/h8300/h8300.c : Likewise.
17303 * config/i386/i386-c.c : Likewise.
17304 * config/i386/i386.c : Likewise.
17305 * config/i386/msformat-c.c : Likewise.
17306 * config/i386/winnt-cxx.c : Likewise.
17307 * config/i386/winnt-stubs.c : Likewise.
17308 * config/i386/winnt.c : Likewise.
17309 * config/ia64/ia64-c.c : Likewise.
17310 * config/ia64/ia64.c : Likewise.
17311 * config/iq2000/iq2000.c : Likewise.
17312 * config/lm32/lm32.c : Likewise.
17313 * config/m32c/m32c-pragma.c : Likewise.
17314 * config/m32c/m32c.c : Likewise.
17315 * config/m32r/m32r.c : Likewise.
17316 * config/m68k/m68k.c : Likewise.
17317 * config/mcore/mcore.c : Likewise.
17318 * config/mep/mep-pragma.c : Likewise.
17319 * config/mep/mep.c : Likewise.
17320 * config/microblaze/microblaze-c.c : Likewise.
17321 * config/microblaze/microblaze.c : Likewise.
17322 * config/mips/mips.c : Likewise.
17323 * config/mmix/mmix.c : Likewise.
17324 * config/mn10300/mn10300.c : Likewise.
17325 * config/moxie/moxie.c : Likewise.
17326 * config/msp430/msp430-c.c : Likewise.
17327 * config/msp430/msp430.c : Likewise.
17328 * config/nds32/nds32-cost.c : Likewise.
17329 * config/nds32/nds32-fp-as-gp.c : Likewise.
17330 * config/nds32/nds32-intrinsic.c : Likewise.
17331 * config/nds32/nds32-isr.c : Likewise.
17332 * config/nds32/nds32-md-auxiliary.c : Likewise.
17333 * config/nds32/nds32-memory-manipulation.c : Likewise.
17334 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
17335 * config/nds32/nds32-predicates.c : Likewise.
17336 * config/nds32/nds32.c : Likewise.
17337 * config/nios2/nios2.c : Likewise.
17338 * config/nvptx/nvptx.c : Likewise.
17339 * config/pa/pa.c : Likewise.
17340 * config/pdp11/pdp11.c : Likewise.
17341 * config/rl78/rl78-c.c : Likewise.
17342 * config/rl78/rl78.c : Likewise.
17343 * config/rs6000/rs6000-c.c : Likewise.
17344 * config/rs6000/rs6000.c : Likewise.
17345 * config/rx/rx.c : Likewise.
17346 * config/s390/s390-c.c : Likewise.
17347 * config/s390/s390.c : Likewise.
17348 * config/sh/sh-c.c : Likewise.
17349 * config/sh/sh-mem.cc : Likewise.
17350 * config/sh/sh.c : Likewise.
17351 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
17352 * config/sh/sh_treg_combine.cc : Likewise.
17353 * config/sol2-c.c : Likewise.
17354 * config/sol2-cxx.c : Likewise.
17355 * config/sol2-stubs.c : Likewise.
17356 * config/sol2.c : Likewise.
17357 * config/sparc/sparc-c.c : Likewise.
17358 * config/sparc/sparc.c : Likewise.
17359 * config/spu/spu-c.c : Likewise.
17360 * config/spu/spu.c : Likewise.
17361 * config/stormy16/stormy16.c : Likewise.
17362 * config/tilegx/mul-tables.c : Likewise.
17363 * config/tilegx/tilegx-c.c : Likewise.
17364 * config/tilegx/tilegx.c : Likewise.
17365 * config/tilepro/mul-tables.c : Likewise.
17366 * config/tilepro/tilepro-c.c : Likewise.
17367 * config/tilepro/tilepro.c : Likewise.
17368 * config/v850/v850-c.c : Likewise.
17369 * config/v850/v850.c : Likewise.
17370 * config/vax/vax.c : Likewise.
17371 * config/visium/visium.c : Likewise.
17372 * config/vms/vms-c.c : Likewise.
17373 * config/vms/vms.c : Likewise.
17374 * config/vxworks.c : Likewise.
17375 * config/winnt-c.c : Likewise.
17376 * config/xtensa/xtensa.c : Likewise.
17377
17378 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
17379
17380 PR lto/65378
17381 * ipa-utils.h (warn_types_mismatch): Update prototype.
17382 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
17383 parameters.
17384 (type_mismatch_p): New function.
17385 (warn_types_mismatch): Reorg to work better on non-C++ types.
17386 (odr_types_equivalent_p): Add loc1/loc2 parameters.
17387 (add_type_duplicate): Update.
17388
17389 2015-06-08 Tom de Vries <tom@codesourcery.com>
17390
17391 PR rtl-optimization/66444
17392 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
17393 call_used_regs.
17394
17395 2015-06-08 Richard Biener <rguenther@suse.de>
17396
17397 PR tree-optimization/66422
17398 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
17399 block after inserted gcc_unreachable.
17400
17401 2015-06-08 Nick Clifton <nickc@redhat.com>
17402
17403 * config/rx/rx.c (rx_function_value): Do not promote vector types.
17404 (rx_promote_function_mode): Likewise.
17405 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
17406
17407 2015-06-08 Jakub Jelinek <jakub@redhat.com>
17408
17409 * genattrtab.c (insn_alternatives): Change type from int *
17410 to uint64_t *.
17411 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
17412 (get_attr_value): Change type of num_alt to uint64_t.
17413 (compute_alternative_mask): Change return type from
17414 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
17415 (make_alternative_compare, mk_attr_alt): Change argument type
17416 from int to uint64_t.
17417 (simplify_test_exp): Change type of i from int to uint64_t.
17418 Shift ((uint64_t) 1) instead of 1 up.
17419 (main): Adjust oballocvec first argument from int to uint64_t.
17420 Shift ((uint64_t) 1) instead of 1 up.
17421
17422 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
17423
17424 PR other/65366
17425 * gdbhooks.py: Import sys.
17426 (intptr): New function. Replace int(...) by intptr(...).
17427
17428 2015-06-08 Richard Biener <rguenther@suse.de>
17429
17430 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
17431 adjustment for gaps at the end of a SLP load group properly.
17432 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
17433 all permutations we can generate.
17434 (vect_transform_slp_perm_load): Use the correct group-size.
17435
17436 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
17437
17438 * genmatch.c (expr::gen_transform): For conditions, guess the type
17439 from the second operand.
17440
17441 2015-06-08 Tom de Vries <tom@codesourcery.com>
17442
17443 PR tree-optimization/66442
17444 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
17445 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
17446 if the loop latch is not a singleton. Use
17447 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
17448
17449 2015-06-08 Marek Polacek <polacek@redhat.com>
17450
17451 PR sanitizer/66452
17452 * toplev.c (check_global_declaration): Don't warn about artificial
17453 decls.
17454
17455 2015-06-08 Tom de Vries <tom@codesourcery.com>
17456
17457 PR tree-optimization/66436
17458 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
17459 dump file.
17460 * gimplify.c: Add tree-dump.h include.
17461 (gimplify_function_tree): Dump function to gimple dump file.
17462 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
17463 dump file.
17464
17465 2015-06-08 Tom de Vries <tom@codesourcery.com>
17466
17467 PR tree-optimization/66435
17468 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
17469 function.
17470
17471 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
17472
17473 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
17474 of ptr_type_node to not be ptr_to_node.
17475 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
17476 TREE_TYPE of pointers.
17477 * gimple-expr.c (useless_type_conversion): Reorder the check for
17478 function pointers and TYPE_CANONICAL.
17479
17480 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
17481
17482 PR bootstrap/66319
17483 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
17484 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
17485 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
17486 later.
17487 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
17488 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
17489 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
17490 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
17491 and non iso if unix2003.
17492
17493 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
17494
17495 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
17496
17497 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
17498
17499 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
17500 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
17501 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
17502 except.c, final.c, function.c, gcse-common.c, genemit.c,
17503 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
17504 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
17505 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
17506 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
17507 more derived ones.
17508
17509 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
17510
17511 * combine.c (combine_split_insns): Remove cast.
17512 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
17513 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
17514 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
17515 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
17516 * genemit.c (gen_split): Change return type of generated functions to
17517 rtx_insn.
17518 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
17519 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
17520 gen_peephole2_* functions.
17521 (print_subroutine, main): Likewise.
17522 * recog.c (peephole2_optimize): Remove cast.
17523 (peep2_next_insn): Promote return type to rtx_insn.
17524 * recog.h (peep2_next_insn): Fix prototype.
17525 * rtl.h (try_split, split_insns): Likewise.
17526
17527 2015-06-06 DJ Delorie <dj@redhat.com>
17528
17529 * config/msp430/msp430.c (msp430_asm_integer): Support addition
17530 and subtraction too.
17531
17532 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
17533
17534 PR target/66410
17535 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
17536 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
17537 instead of Snd. Disparage Sid/z alternative with '^'.
17538
17539 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
17540
17541 * dwarf2out.c: Remove deferred_locations*.
17542 (dwarf2_debug_hooks): Add early_finish hook.
17543 Remove global_decl hook.
17544 Add early_global_decl and late_global_decl hook.
17545 New global early_dwarf.
17546 New structure set_early_dwarf.
17547 (output_die): Indicate whether a DIE was generated early
17548 when generating assembly with -dA.
17549 (struct limbo_die_struct): Document created_for field.
17550 Remove file_table_last_lookup.
17551 (remove_AT): Return TRUE if successful.
17552 (remove_child_TAG): Clear die_parent.
17553 (reparent_child): New function abstracted from...
17554 (splice_child_die): ...here.
17555 (new_die): ICE if a DIE ends up in limbo too late.
17556 (check_die): New.
17557 (defer_location): Remove.
17558 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
17559 (fill_variable_array_bounds): New.
17560 (decl_start_label): Call fill_variable_array_bounds.
17561 (gen_formal_parameter_die): Rewrite to reuse previously generated
17562 DIEs.
17563 (gen_subprogram_die): Same.
17564 (gen_variable_die): Same.
17565 (gen_const_die): Same.
17566 (gen_label_die): Same.
17567 (gen_lexical_block_die): Same.
17568 (decl_will_get_specification_p): New.
17569 (local_function_static): New.
17570 (gen_struct_or_union_type_die): Fill in variable-length fields.
17571 (gen_typedef_die): Fill in variable-length typedefs.
17572 (gen_tagged_type_die): Gracefully return on error_mark_node.
17573 Handle re-entrancy.
17574 (gen_type_die_with_usage): Handle variable-length types.
17575 Remove duplicate code for ARRAY_TYPE case.
17576 (process_scope_var): Only process imported modules during early
17577 dwarf.
17578 (dwarf2out_early_global_decl): New.
17579 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
17580 (dwarf2out_type_decl): Set early_dwarf while calling
17581 dwarf2out_decl.
17582 (dwarf2out_decl): Verify that we did not recreate a previously
17583 generated DIE.
17584 Do not return on DECL_EXTERNALs in VAR_DECLs.
17585 Abstract some code to local_function_static.
17586 (lookup_filename): Remove use of file_table_last_lookup.
17587 Gracefully exit on missing file_name.
17588 (dwarf2out_finish): Verify limbo list.
17589 Remove deferred_locations_list use.
17590 Move deferred_asm_name and limbo flushing to...
17591 (dwarf2out_early_finish): ...here. New.
17592 (dwarf2out_c_finalize): Remove set of deferred_location_list,
17593 deferred_asm_name, and file_table_last_lookup.
17594 * cgraph.h (referred_to_p): Add default argument.
17595 * cgraphunit.c (referred_to_p): Add and handle include_self
17596 argument.
17597 (analyze_functions): Add first_time argument.
17598 Call check_global_declaration for all symbols.
17599 Call late_global_decl for nodes for moribund nodes.
17600 (finalize_compilation_unit): Add new argument to
17601 analyze_functions.
17602 Call early_global_decl for functions.
17603 Call early_finish debug hook.
17604 * dbxout.c (dbxout_early_global_decl): New.
17605 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
17606 (dbx_debug_hooks): Add new hooks.
17607 (xcoff_debug_hooks): Same.
17608 * debug.c (do_nothing_debug_hooks): Add early_finish field.
17609 Add early and late debug hooks.
17610 Remove global_decl hook.
17611 * debug.h (struct gcc_debug_hooks): Add early_finish,
17612 early_global_decl, and late_global_decl fields.
17613 Remove global_decl field.
17614 Document gcc_debug_hooks.
17615 * gengtype.c (output_typename): Remove.
17616 * godump.c (go_early_global_decl): New.
17617 (go_late_global_decl): New.
17618 (go_global_decl): Remove.
17619 (dump_go_spec_init): Remove global_decl. Add
17620 {early,late}_global_decl.
17621 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
17622 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
17623 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
17624 (write_global_declarations): Remove.
17625 (global_decl_processing): New.
17626 * langhooks.h (struct lang_hooks_for_decls): Remove
17627 final_write_globals field.
17628 Add post_compilation_parsing_cleanups field.
17629 * passes.c (rest_of_decl_compilation): Call early_global_decl.
17630 * sdbout.c: Add early and late_global_decl hooks. Remove
17631 sdbout_global_decl hook.
17632 Add early_finish field for sdb_debug_hooks.
17633 (sdbout_global_decl): Remove.
17634 (sdbout_early_global_decl): New.
17635 (sdbout_late_global_decl): New.
17636 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
17637 * toplev.c (check_global_declaration): Rename from
17638 check_global_declaration_1.
17639 Adapt to use symtab infrastructure.
17640 (check_global_declarations): Remove.
17641 (emit_debug_global_declarations): Remove.
17642 (compile_file): Remove call to final_write_globals langhook.
17643 Run the actual compilation process.
17644 Perform any post compilation parser cleanups.
17645 Generate late debug info.
17646 * toplev.h (check_global_declaration): New.
17647 (check_global_declaration_1): Remove.
17648 (check_global_declarations): Remove.
17649 (write_global_declarations): Remove.
17650 (emit_debug_global_declarations): Remove.
17651 (global_decl_processing): New.
17652 * tree-core.h (struct tree_block): Add DIE field.
17653 * tree.h (BLOCK_DIE): New.
17654 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
17655 throughout.
17656 (vmsdbgout_early_global_decl): New.
17657 (vmsdbgout_late_global_decl): New.
17658 Add early_finish debug hook field to vmsdbg_debug_hooks.
17659 Remove vmsdbgout_decl to vmsdbgout_function_decl.
17660 Add early and late_global_decl debug hooks.
17661
17662 2015-06-05 Julian Brown <julian@codesourcery.com>
17663 Sandra Loosemore <sandra@codesourcery.com>
17664
17665 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
17666 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
17667 to print-sysroot-suffix.sh script.
17668
17669 2015-06-05 Tom de Vries <tom@codesourcery.com>
17670
17671 merge from gomp4 branch:
17672 2015-05-28 Tom de Vries <tom@codesourcery.com>
17673
17674 PR tree-optimization/65443
17675 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
17676 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
17677 (try_transform_to_exit_first_loop_alt): New function.
17678 (transform_to_exit_first_loop): Use
17679 try_transform_to_exit_first_loop_alt.
17680
17681 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
17682
17683 * builtins.c (expand_builtin_atomic_compare_exchange): Call
17684 emit_cmp_and_jump_insns with the mode of target.
17685
17686 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
17687
17688 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
17689
17690 2015-06-04 DJ Delorie <dj@redhat.com>
17691
17692 * config/msp430/msp430.md (movsi_s): New. Special case for
17693 storing a 20-bit symbol into a 32-bit register.
17694 * config/msp430/msp430.c (msp430_subreg): Add support for it.
17695 * config/msp430/predicates.md (msp430_symbol_operand): New.
17696
17697 2015-06-04 Sriraman Tallam <tmsriram@google.com>
17698
17699 * c-family/c-common.c (noplt): New attribute.
17700 (handle_noplt_attribute): New handler.
17701 * calls.c (prepare_call_address): Check for noplt
17702 attribute.
17703 * config/i386/i386.c (ix86_expand_call): Check
17704 for noplt attribute.
17705 (ix86_nopic_noplt_attribute_p): New function.
17706 (ix86_output_call_insn): Output indirect call for non-pic
17707 no plt calls.
17708 * doc/extend.texi (noplt): Document new attribute.
17709 * doc/invoke.texi: Document new attribute.
17710
17711 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
17712
17713 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
17714 real.h, and fixed-value.h when included in host source files.
17715 * double-int.h: Remove redundant #includes listed above.
17716 * fixed-value.h: Likewise.
17717 * real.h: Likewise.
17718 * wide-int.h: Likewise.
17719 * inchash.h: Likewise.
17720 * rtl.h: Add some include files When included from a generator file.
17721 * target.h: Remove wide-int.h and insn-modes.h from the include list.
17722 * internal-fn.h: Don't include coretypes.h.
17723 * alias.c: Adjust includes for restructured coretypes.h.
17724 * asan.c: Likewise.
17725 * attribs.c: Likewise.
17726 * auto-inc-dec.c: Likewise.
17727 * auto-profile.c: Likewise.
17728 * bb-reorder.c: Likewise.
17729 * bt-load.c: Likewise.
17730 * builtins.c: Likewise.
17731 * caller-save.c: Likewise.
17732 * calls.c: Likewise.
17733 * ccmp.c: Likewise.
17734 * cfg.c: Likewise.
17735 * cfganal.c: Likewise.
17736 * cfgbuild.c: Likewise.
17737 * cfgcleanup.c: Likewise.
17738 * cfgexpand.c: Likewise.
17739 * cfghooks.c: Likewise.
17740 * cfgloop.c: Likewise.
17741 * cfgloop.h: Likewise.
17742 * cfgloopanal.c: Likewise.
17743 * cfgloopmanip.c: Likewise.
17744 * cfgrtl.c: Likewise.
17745 * cgraph.c: Likewise.
17746 * cgraphbuild.c: Likewise.
17747 * cgraphclones.c: Likewise.
17748 * cgraphunit.c: Likewise.
17749 * cilk-common.c: Likewise.
17750 * combine-stack-adj.c: Likewise.
17751 * combine.c: Likewise.
17752 * compare-elim.c: Likewise.
17753 * convert.c: Likewise.
17754 * coverage.c: Likewise.
17755 * cppbuiltin.c: Likewise.
17756 * cprop.c: Likewise.
17757 * cse.c: Likewise.
17758 * cselib.c: Likewise.
17759 * data-streamer-in.c: Likewise.
17760 * data-streamer-out.c: Likewise.
17761 * data-streamer.c: Likewise.
17762 * dbxout.c: Likewise.
17763 * dce.c: Likewise.
17764 * ddg.c: Likewise.
17765 * debug.c: Likewise.
17766 * df-core.c: Likewise.
17767 * df-problems.c: Likewise.
17768 * df-scan.c: Likewise.
17769 * df.h: Likewise.
17770 * dfp.c: Likewise.
17771 * dojump.c: Likewise.
17772 * dominance.c: Likewise.
17773 * domwalk.c: Likewise.
17774 * double-int.c: Likewise.
17775 * dse.c: Likewise.
17776 * dumpfile.c: Likewise.
17777 * dwarf2asm.c: Likewise.
17778 * dwarf2cfi.c: Likewise.
17779 * dwarf2out.c: Likewise.
17780 * dwarf2out.h: Likewise.
17781 * emit-rtl.c: Likewise.
17782 * et-forest.c: Likewise.
17783 * except.c: Likewise.
17784 * explow.c: Likewise.
17785 * expmed.c: Likewise.
17786 * expr.c: Likewise.
17787 * final.c: Likewise.
17788 * fixed-value.c: Likewise.
17789 * fold-const.c: Likewise.
17790 * function.c: Likewise.
17791 * fwprop.c: Likewise.
17792 * gcc-plugin.h: Likewise.
17793 * gcse.c: Likewise.
17794 * generic-match-head.c: Likewise.
17795 * ggc-page.c: Likewise.
17796 * gimple-builder.c: Likewise.
17797 * gimple-expr.c: Likewise.
17798 * gimple-fold.c: Likewise.
17799 * gimple-iterator.c: Likewise.
17800 * gimple-low.c: Likewise.
17801 * gimple-match-head.c: Likewise.
17802 * gimple-pretty-print.c: Likewise.
17803 * gimple-ssa-isolate-paths.c: Likewise.
17804 * gimple-ssa-strength-reduction.c: Likewise.
17805 * gimple-streamer-in.c: Likewise.
17806 * gimple-streamer-out.c: Likewise.
17807 * gimple-streamer.h: Likewise.
17808 * gimple-walk.c: Likewise.
17809 * gimple.c: Likewise.
17810 * gimplify-me.c: Likewise.
17811 * gimplify.c: Likewise.
17812 * godump.c: Likewise.
17813 * graph.c: Likewise.
17814 * graphite-blocking.c: Likewise.
17815 * graphite-dependences.c: Likewise.
17816 * graphite-interchange.c: Likewise.
17817 * graphite-isl-ast-to-gimple.c: Likewise.
17818 * graphite-optimize-isl.c: Likewise.
17819 * graphite-poly.c: Likewise.
17820 * graphite-scop-detection.c: Likewise.
17821 * graphite-sese-to-poly.c: Likewise.
17822 * graphite.c: Likewise.
17823 * haifa-sched.c: Likewise.
17824 * hooks.h: Likewise.
17825 * hw-doloop.c: Likewise.
17826 * ifcvt.c: Likewise.
17827 * incpath.c: Likewise.
17828 * init-regs.c: Likewise.
17829 * internal-fn.c: Likewise.
17830 * ipa-chkp.c: Likewise.
17831 * ipa-comdats.c: Likewise.
17832 * ipa-cp.c: Likewise.
17833 * ipa-devirt.c: Likewise.
17834 * ipa-icf-gimple.c: Likewise.
17835 * ipa-icf.c: Likewise.
17836 * ipa-inline-analysis.c: Likewise.
17837 * ipa-inline-transform.c: Likewise.
17838 * ipa-inline.c: Likewise.
17839 * ipa-polymorphic-call.c: Likewise.
17840 * ipa-profile.c: Likewise.
17841 * ipa-prop.c: Likewise.
17842 * ipa-pure-const.c: Likewise.
17843 * ipa-ref.c: Likewise.
17844 * ipa-reference.c: Likewise.
17845 * ipa-split.c: Likewise.
17846 * ipa-utils.c: Likewise.
17847 * ipa-visibility.c: Likewise.
17848 * ipa.c: Likewise.
17849 * ira-build.c: Likewise.
17850 * ira-color.c: Likewise.
17851 * ira-conflicts.c: Likewise.
17852 * ira-costs.c: Likewise.
17853 * ira-emit.c: Likewise.
17854 * ira-lives.c: Likewise.
17855 * ira.c: Likewise.
17856 * jump.c: Likewise.
17857 * langhooks.c: Likewise.
17858 * lcm.c: Likewise.
17859 * loop-doloop.c: Likewise.
17860 * loop-init.c: Likewise.
17861 * loop-invariant.c: Likewise.
17862 * loop-iv.c: Likewise.
17863 * loop-unroll.c: Likewise.
17864 * lower-subreg.c: Likewise.
17865 * lra-assigns.c: Likewise.
17866 * lra-coalesce.c: Likewise.
17867 * lra-constraints.c: Likewise.
17868 * lra-eliminations.c: Likewise.
17869 * lra-lives.c: Likewise.
17870 * lra-remat.c: Likewise.
17871 * lra-spills.c: Likewise.
17872 * lra.c: Likewise.
17873 * lto-cgraph.c: Likewise.
17874 * lto-compress.c: Likewise.
17875 * lto-opts.c: Likewise.
17876 * lto-section-in.c: Likewise.
17877 * lto-section-out.c: Likewise.
17878 * lto-streamer-in.c: Likewise.
17879 * lto-streamer-out.c: Likewise.
17880 * lto-streamer.c: Likewise.
17881 * mcf.c: Likewise.
17882 * mode-switching.c: Likewise.
17883 * modulo-sched.c: Likewise.
17884 * omega.c: Likewise.
17885 * omp-low.c: Likewise.
17886 * optabs.c: Likewise.
17887 * opts-global.c: Likewise.
17888 * passes.c: Likewise.
17889 * plugin.c: Likewise.
17890 * postreload-gcse.c: Likewise.
17891 * postreload.c: Likewise.
17892 * predict.c: Likewise.
17893 * print-rtl.c: Likewise.
17894 * print-tree.c: Likewise.
17895 * profile.c: Likewise.
17896 * real.c: Likewise.
17897 * realmpfr.c: Likewise.
17898 * realmpfr.h: Likewise.
17899 * recog.c: Likewise.
17900 * ree.c: Likewise.
17901 * reg-stack.c: Likewise.
17902 * regcprop.c: Likewise.
17903 * reginfo.c: Likewise.
17904 * regrename.c: Likewise.
17905 * regs.h: Likewise.
17906 * regstat.c: Likewise.
17907 * reload.c: Likewise.
17908 * reload1.c: Likewise.
17909 * reorg.c: Likewise.
17910 * resource.c: Likewise.
17911 * rtl-chkp.c: Likewise.
17912 * rtlanal.c: Likewise.
17913 * rtlhooks.c: Likewise.
17914 * sanopt.c: Likewise.
17915 * sched-deps.c: Likewise.
17916 * sched-ebb.c: Likewise.
17917 * sched-rgn.c: Likewise.
17918 * sched-vis.c: Likewise.
17919 * sdbout.c: Likewise.
17920 * sel-sched-dump.c: Likewise.
17921 * sel-sched-ir.c: Likewise.
17922 * sel-sched.c: Likewise.
17923 * sese.c: Likewise.
17924 * shrink-wrap.c: Likewise.
17925 * shrink-wrap.h: Likewise.
17926 * simplify-rtx.c: Likewise.
17927 * stack-ptr-mod.c: Likewise.
17928 * statistics.c: Likewise.
17929 * stmt.c: Likewise.
17930 * stor-layout.c: Likewise.
17931 * store-motion.c: Likewise.
17932 * stringpool.c: Likewise.
17933 * symtab.c: Likewise.
17934 * target-globals.c: Likewise.
17935 * targhooks.c: Likewise.
17936 * toplev.c: Likewise.
17937 * tracer.c: Likewise.
17938 * trans-mem.c: Likewise.
17939 * tree-affine.c: Likewise.
17940 * tree-affine.h: Likewise.
17941 * tree-browser.c: Likewise.
17942 * tree-call-cdce.c: Likewise.
17943 * tree-cfg.c: Likewise.
17944 * tree-cfgcleanup.c: Likewise.
17945 * tree-chkp-opt.c: Likewise.
17946 * tree-chkp.c: Likewise.
17947 * tree-chrec.c: Likewise.
17948 * tree-complex.c: Likewise.
17949 * tree-data-ref.c: Likewise.
17950 * tree-dfa.c: Likewise.
17951 * tree-diagnostic.c: Likewise.
17952 * tree-dump.c: Likewise.
17953 * tree-eh.c: Likewise.
17954 * tree-emutls.c: Likewise.
17955 * tree-if-conv.c: Likewise.
17956 * tree-inline.c: Likewise.
17957 * tree-into-ssa.c: Likewise.
17958 * tree-iterator.c: Likewise.
17959 * tree-loop-distribution.c: Likewise.
17960 * tree-nested.c: Likewise.
17961 * tree-nrv.c: Likewise.
17962 * tree-object-size.c: Likewise.
17963 * tree-outof-ssa.c: Likewise.
17964 * tree-parloops.c: Likewise.
17965 * tree-phinodes.c: Likewise.
17966 * tree-predcom.c: Likewise.
17967 * tree-pretty-print.c: Likewise.
17968 * tree-pretty-print.h: Likewise.
17969 * tree-profile.c: Likewise.
17970 * tree-scalar-evolution.c: Likewise.
17971 * tree-sra.c: Likewise.
17972 * tree-ssa-address.c: Likewise.
17973 * tree-ssa-alias.c: Likewise.
17974 * tree-ssa-ccp.c: Likewise.
17975 * tree-ssa-coalesce.c: Likewise.
17976 * tree-ssa-copy.c: Likewise.
17977 * tree-ssa-copyrename.c: Likewise.
17978 * tree-ssa-dce.c: Likewise.
17979 * tree-ssa-dom.c: Likewise.
17980 * tree-ssa-dse.c: Likewise.
17981 * tree-ssa-forwprop.c: Likewise.
17982 * tree-ssa-ifcombine.c: Likewise.
17983 * tree-ssa-live.c: Likewise.
17984 * tree-ssa-loop-ch.c: Likewise.
17985 * tree-ssa-loop-im.c: Likewise.
17986 * tree-ssa-loop-ivcanon.c: Likewise.
17987 * tree-ssa-loop-ivopts.c: Likewise.
17988 * tree-ssa-loop-manip.c: Likewise.
17989 * tree-ssa-loop-niter.c: Likewise.
17990 * tree-ssa-loop-prefetch.c: Likewise.
17991 * tree-ssa-loop-unswitch.c: Likewise.
17992 * tree-ssa-loop.c: Likewise.
17993 * tree-ssa-loop.h: Likewise.
17994 * tree-ssa-math-opts.c: Likewise.
17995 * tree-ssa-operands.c: Likewise.
17996 * tree-ssa-phiopt.c: Likewise.
17997 * tree-ssa-phiprop.c: Likewise.
17998 * tree-ssa-pre.c: Likewise.
17999 * tree-ssa-propagate.c: Likewise.
18000 * tree-ssa-reassoc.c: Likewise.
18001 * tree-ssa-sccvn.c: Likewise.
18002 * tree-ssa-scopedtables.c: Likewise.
18003 * tree-ssa-sink.c: Likewise.
18004 * tree-ssa-strlen.c: Likewise.
18005 * tree-ssa-structalias.c: Likewise.
18006 * tree-ssa-tail-merge.c: Likewise.
18007 * tree-ssa-ter.c: Likewise.
18008 * tree-ssa-threadedge.c: Likewise.
18009 * tree-ssa-threadupdate.c: Likewise.
18010 * tree-ssa-uncprop.c: Likewise.
18011 * tree-ssa-uninit.c: Likewise.
18012 * tree-ssa.c: Likewise.
18013 * tree-ssanames.c: Likewise.
18014 * tree-stdarg.c: Likewise.
18015 * tree-streamer-in.c: Likewise.
18016 * tree-streamer-out.c: Likewise.
18017 * tree-streamer.c: Likewise.
18018 * tree-switch-conversion.c: Likewise.
18019 * tree-tailcall.c: Likewise.
18020 * tree-vect-data-refs.c: Likewise.
18021 * tree-vect-generic.c: Likewise.
18022 * tree-vect-loop-manip.c: Likewise.
18023 * tree-vect-loop.c: Likewise.
18024 * tree-vect-patterns.c: Likewise.
18025 * tree-vect-slp.c: Likewise.
18026 * tree-vect-stmts.c: Likewise.
18027 * tree-vectorizer.c: Likewise.
18028 * tree-vrp.c: Likewise.
18029 * tree.c: Likewise.
18030 * tsan.c: Likewise.
18031 * ubsan.c: Likewise.
18032 * valtrack.c: Likewise.
18033 * value-prof.c: Likewise.
18034 * var-tracking.c: Likewise.
18035 * varasm.c: Likewise.
18036 * varpool.c: Likewise.
18037 * vmsdbgout.c: Likewise.
18038 * vtable-verify.c: Likewise.
18039 * web.c: Likewise.
18040 * wide-int-print.cc: Likewise.
18041 * wide-int-print.h: Likewise.
18042 * wide-int.cc: Likewise.
18043 * xcoffout.c: Likewise.
18044 * config/aarch64/aarch64-builtins.c: Likewise.
18045 * config/aarch64/aarch64.c: Likewise.
18046 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18047 * config/alpha/alpha.c: Likewise.
18048 * config/arc/arc.c: Likewise.
18049 * config/arm/aarch-common.c: Likewise.
18050 * config/arm/arm-builtins.c: Likewise.
18051 * config/arm/arm-c.c: Likewise.
18052 * config/arm/arm.c: Likewise.
18053 * config/avr/avr-c.c: Likewise.
18054 * config/avr/avr-log.c: Likewise.
18055 * config/avr/avr.c: Likewise.
18056 * config/bfin/bfin.c: Likewise.
18057 * config/c6x/c6x.c: Likewise.
18058 * config/cr16/cr16.c: Likewise.
18059 * config/cris/cris.c: Likewise.
18060 * config/darwin-c.c: Likewise.
18061 * config/darwin.c: Likewise.
18062 * config/default-c.c: Likewise.
18063 * config/epiphany/epiphany.c: Likewise.
18064 * config/epiphany/mode-switch-use.c: Likewise.
18065 * config/epiphany/resolve-sw-modes.c: Likewise.
18066 * config/fr30/fr30.c: Likewise.
18067 * config/frv/frv.c: Likewise.
18068 * config/ft32/ft32.c: Likewise.
18069 * config/glibc-c.c: Likewise.
18070 * config/h8300/h8300.c: Likewise.
18071 * config/i386/i386-c.c: Likewise.
18072 * config/i386/i386.c: Likewise.
18073 * config/i386/msformat-c.c: Likewise.
18074 * config/i386/winnt-cxx.c: Likewise.
18075 * config/i386/winnt-stubs.c: Likewise.
18076 * config/i386/winnt.c: Likewise.
18077 * config/ia64/ia64-c.c: Likewise.
18078 * config/ia64/ia64.c: Likewise.
18079 * config/iq2000/iq2000.c: Likewise.
18080 * config/lm32/lm32.c: Likewise.
18081 * config/m32c/m32c-pragma.c: Likewise.
18082 * config/m32c/m32c.c: Likewise.
18083 * config/m32r/m32r.c: Likewise.
18084 * config/m68k/m68k.c: Likewise.
18085 * config/mcore/mcore.c: Likewise.
18086 * config/mep/mep-pragma.c: Likewise.
18087 * config/mep/mep.c: Likewise.
18088 * config/microblaze/microblaze-c.c: Likewise.
18089 * config/microblaze/microblaze.c: Likewise.
18090 * config/mips/mips.c: Likewise.
18091 * config/mmix/mmix.c: Likewise.
18092 * config/mn10300/mn10300.c: Likewise.
18093 * config/moxie/moxie.c: Likewise.
18094 * config/msp430/msp430-c.c: Likewise.
18095 * config/msp430/msp430.c: Likewise.
18096 * config/nds32/nds32-cost.c: Likewise.
18097 * config/nds32/nds32-fp-as-gp.c: Likewise.
18098 * config/nds32/nds32-intrinsic.c: Likewise.
18099 * config/nds32/nds32-isr.c: Likewise.
18100 * config/nds32/nds32-md-auxiliary.c: Likewise.
18101 * config/nds32/nds32-memory-manipulation.c: Likewise.
18102 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18103 * config/nds32/nds32-predicates.c: Likewise.
18104 * config/nds32/nds32.c: Likewise.
18105 * config/nios2/nios2.c: Likewise.
18106 * config/nvptx/nvptx.c: Likewise.
18107 * config/pa/pa.c: Likewise.
18108 * config/pdp11/pdp11.c: Likewise.
18109 * config/rl78/rl78-c.c: Likewise.
18110 * config/rl78/rl78.c: Likewise.
18111 * config/rs6000/rs6000-c.c: Likewise.
18112 * config/rs6000/rs6000.c: Likewise.
18113 * config/rx/rx.c: Likewise.
18114 * config/s390/s390-c.c: Likewise.
18115 * config/s390/s390.c: Likewise.
18116 * config/sh/sh-c.c: Likewise.
18117 * config/sh/sh-mem.cc: Likewise.
18118 * config/sh/sh.c: Likewise.
18119 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
18120 * config/sh/sh_treg_combine.cc: Likewise.
18121 * config/sol2-c.c: Likewise.
18122 * config/sol2-cxx.c: Likewise.
18123 * config/sol2-stubs.c: Likewise.
18124 * config/sol2.c: Likewise.
18125 * config/sparc/sparc-c.c: Likewise.
18126 * config/sparc/sparc.c: Likewise.
18127 * config/spu/spu-c.c: Likewise.
18128 * config/spu/spu.c: Likewise.
18129 * config/stormy16/stormy16.c: Likewise.
18130 * config/tilegx/mul-tables.c: Likewise.
18131 * config/tilegx/tilegx-c.c: Likewise.
18132 * config/tilegx/tilegx.c: Likewise.
18133 * config/tilepro/mul-tables.c: Likewise.
18134 * config/tilepro/tilepro-c.c: Likewise.
18135 * config/tilepro/tilepro.c: Likewise.
18136 * config/v850/v850-c.c: Likewise.
18137 * config/v850/v850.c: Likewise.
18138 * config/vax/vax.c: Likewise.
18139 * config/visium/visium.c: Likewise.
18140 * config/vms/vms-c.c: Likewise.
18141 * config/vms/vms.c: Likewise.
18142 * config/vxworks.c: Likewise.
18143 * config/winnt-c.c: Likewise.
18144 * config/xtensa/xtensa.c: Likewise.
18145 * common/config/bfin/bfin-common.c: Likewise.
18146
18147 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
18148
18149 * tree.h (tree_code_for_canonical_type_merging): New function.
18150 * tree.c (gimple_canonical_types_compatible_p): Use
18151 tree_code_for_canonical_type_merging..
18152
18153 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18154
18155 PR c++/66192
18156 PR target/66200
18157 * doc/tm.texi: Regenerate.
18158 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
18159 * target.def (TARGET_RELAXED_ORDERING): Likewise.
18160 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
18161 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
18162 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
18163 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
18164 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
18165 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
18166 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
18167
18168 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18169
18170 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
18171 register fma steering pass.
18172 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
18173 AARCH64_TUNE_FMA_STEERING.
18174
18175 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
18176
18177 * tree.c (verify_type_variant): Verify that type and variant is
18178 compatible.
18179 (gimple_canonical_types_compatible_p): Look for main variants.
18180
18181 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
18182
18183 * config.gcc (powerpc*-*-*): Add support for a new configure
18184 option --with-advance-toolchain=<xxx> which overrides using the
18185 default header files, libraries and dynamic linker.
18186
18187 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
18188 specs to support the configure --with-advance-toolchain=<xxx>
18189 option.
18190 (INCLUDE_EXTRA_SPEC): Likewise.
18191 (LINK_OS_EXTRA_SPEC32): Likewise.
18192 (LINK_OK_EXTRA_SPEC64): Likewise.
18193 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
18194 (DYNAMIC_LINKER_PREFIX): Likewise.
18195 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
18196 toolchain support.
18197 (GLIBC_DYNAMIC_LINKER32): Likewise.
18198 (GLIBC_DYNAMIC_LINKER64): Likewise.
18199 (LINK_OS_LINUX_SPEC32): Likewise.
18200 (LINK_OS_LINUX_SPEC64): Likewise.
18201
18202 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
18203 configuration option.
18204
18205 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
18206
18207 PR target/66275
18208 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
18209 to determine current function ABI.
18210 (ix86_function_value_regno_p): Ditto.
18211
18212 2015-06-03 Martin Liska <mliska@suse.cz>
18213
18214 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
18215 * bitmap.h (struct bitmap_usage): Likewise.
18216 * ggc-common.c (struct ggc_usage): Likewise.
18217 * mem-stats.h (struct mem_location): Likewise.
18218 (struct mem_usage): Likewise.
18219 * vec.c (struct vec_usage): Likewise.
18220
18221 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
18222
18223 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
18224 -Bsymbolic.
18225
18226 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
18227
18228 * doc/plugins.texi (enum plugin_event): New event.
18229 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
18230 and PLUGIN_FINISH_FUNCTION.
18231 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
18232 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
18233
18234 2015-06-03 Richard Biener <rguenther@suse.de>
18235
18236 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
18237 compute GROUP_GAP for the first element.
18238 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
18239 on in-group gaps.
18240
18241 2015-06-03 Nick Clifton <nickc@redhat.com>
18242
18243 * config/rl78/rl78-real.md: Add peepholes to avoid a register
18244 copy when calling a function.
18245 * config/rl78/rl78.c (need_to_save): Do not push the frame
18246 pointer in an interrupt handler prologue if it is never used.
18247
18248 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18249
18250 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
18251
18252 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
18253
18254 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
18255 reference when cloning alias node.
18256
18257 2015-06-03 Martin Liska <mliska@suse.cz>
18258
18259 * alloc-pool.h (struct pool_usage): Correct space padding.
18260 * ggc-page.c (ggc_print_statistics): Align columns in a report.
18261 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
18262 * tree.c (dump_tree_statistics): Align columns in a report.
18263
18264 2015-06-03 Martin Liska <mliska@suse.cz>
18265
18266 * alloc-pool.c (allocate_pool_descriptor): Remove.
18267 (struct pool_output_info): Likewise.
18268 (print_alloc_pool_statistics): Likewise.
18269 (dump_alloc_pool_statistics): Likewise.
18270 * alloc-pool.h (struct pool_usage): New struct.
18271 (pool_allocator::initialize): Change usage of memory statistics
18272 to a new interface.
18273 (pool_allocator::release): Likewise.
18274 (pool_allocator::allocate): Likewise.
18275 (pool_allocator::remove): Likewise.
18276 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
18277 for a pool allocator.
18278 * mem-stats.h (struct mem_location): Add new ctor.
18279 (struct mem_usage): Add counter for number of
18280 instances.
18281 (mem_alloc_description::register_descriptor): New overload of
18282 * mem-stats.h (mem_location::to_string): New function.
18283 * bitmap.h (struct bitmap_usage): Use this new function.
18284 * ggc-common.c (struct ggc_usage): Likewise.
18285 the function.
18286
18287 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
18288
18289 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
18290 of GCC_INSN_FLAGS_H block.
18291
18292 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
18293
18294 * explow.c (plus_constant): Update check after force_const_mem call
18295 to see if the value returned is not a NULL_RTX.
18296
18297 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
18298
18299 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
18300 remove instumentation thunks calling reachable functions.
18301 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
18302 * lto/lto-partition.c (privatize_symbol_name_1): New.
18303 (privatize_symbol_name): Privatize both decl and orig_decl
18304 names for instrumented functions.
18305 * cgraph.c (cgraph_node::verify_node): Add transparent
18306 alias chain check for instrumented node.
18307
18308 2015-06-03 Marek Polacek <polacek@redhat.com>
18309
18310 PR c/64223
18311 PR c/29358
18312 * tree.c (attribute_value_equal): Handle attribute format.
18313 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
18314
18315 2015-06-03 Richard Biener <rguenther@suse.de>
18316
18317 PR tree-optimization/63916
18318 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18319 Forward-propagate non-invariant addresses by splicing their
18320 reference ops if the result isn't going to be used by PRE.
18321 (vn_reference_lookup_3): Remove pointless assert.
18322
18323 2015-06-03 Richard Biener <rguenther@suse.de>
18324
18325 PR tree-optimization/66375
18326 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
18327 add to the evolution before following SSA edges.
18328
18329 2015-06-03 Bin Cheng <bin.cheng@arm.com>
18330
18331 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
18332 (dump_use, dump_cand, find_induction_variables): Pass new argument
18333 to dump_iv.
18334 (record_use): Preserve the ssa name information in IV.
18335
18336 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
18337
18338 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
18339 NO_MODE_TEST.
18340 (add_mode_tests): Don't add mode tests if the predicate only
18341 accepts scalar constant integers. Otherwise, allow the mode
18342 of "op" to be VOIDmode if the predicate does accept such integers.
18343
18344 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
18345
18346 PR target/66258
18347 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
18348 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
18349 (aarch64_secondary_reload): Likewise
18350 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
18351 to !TARGET_FLOAT.
18352 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
18353 Likewise.
18354
18355 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
18356 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18357
18358 PR target/65768
18359 * cprop.c (try_replace_reg): Check cost of constants before propagating.
18360
18361 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
18362
18363 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
18364 provide access to the IBM extended double floating point mode if
18365 long double is IEEE 128-bit floating point.
18366 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
18367 point if long double is the IBM extended double type.
18368
18369 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
18370 enable adding IEEE 128-bit floating point support.
18371 (-mfloat128-software): Likewise.
18372 (-mfloat128-sw): Likewise.
18373
18374 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
18375 128-bit floating point types to occupy any register if
18376 -mlong-double-64. Do not allow use of IFmode/KFmode unless
18377 -mfloat128-software is enabled.
18378 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
18379 support.
18380 (rs6000_option_override_internal): Add -mfloat128-* support.
18381 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
18382
18383 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
18384 and float128 type nodes.
18385 (ieee128_float_type_node): Likewise.
18386 (ibm128_float_type_node): Likewise.
18387
18388 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
18389
18390 PR target/66136
18391 * config/aarch64/geniterators.sh: Rewrite in awk.
18392
18393 2015-06-02 Martin Liska <mliska@suse.cz>
18394
18395 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
18396 values to avoid -Wmaybe-uninitialized errors.
18397
18398 2015-06-02 Richard Biener <rguenther@suse.de>
18399
18400 PR debug/65549
18401 * dwarf2out.c (lookup_context_die): New function.
18402 (resolve_addr): Avoid forcing a full DIE for the
18403 target of a DW_TAG_GNU_call_site during late compilation.
18404 Instead create a stub DIE without a type if we have a
18405 context DIE present.
18406
18407 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
18408
18409 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
18410
18411 2015-06-02 Bin Cheng <bin.cheng@arm.com>
18412
18413 PR tree-optimization/48052
18414 * cfgloop.h (struct control_iv): New.
18415 (struct loop): New field control_ivs.
18416 * tree-ssa-loop-niter.c : Include "stor-layout.h".
18417 (number_of_iterations_lt): Set no_overflow information.
18418 (number_of_iterations_exit): Init control iv in niter struct.
18419 (record_control_iv): New.
18420 (estimate_numbers_of_iterations_loop): Call record_control_iv.
18421 (loop_exits_before_overflow): New. Interface factored out of
18422 scev_probably_wraps_p.
18423 (scev_probably_wraps_p): Factor loop niter related code into
18424 loop_exits_before_overflow.
18425 (free_numbers_of_iterations_estimates_loop): Free control ivs.
18426 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
18427
18428 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
18429
18430 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
18431 the target doesn't belong to the current function.
18432
18433 2015-06-02 Marek Polacek <polacek@redhat.com>
18434
18435 PR middle-end/66345
18436 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
18437 get_maxval_strlen does not produce an INTEGER_CST.
18438
18439 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
18440
18441 * config/arc/constraints.md: Use lower-case names in match_code.
18442 * config/mmix/constraints.md: Likewise.
18443
18444 2015-06-02 Richard Biener <rguenther@suse.de>
18445
18446 PR tree-optimization/65961
18447 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
18448 check and clarify dump message.
18449 (vect_build_slp_tree): If all children are built up from scalars
18450 build up the parent from scalars instead.
18451 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
18452
18453 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
18454
18455 PR other/65366
18456 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
18457 instead of print ... .
18458
18459 2015-06-02 Alan Modra <amodra@gmail.com>
18460
18461 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
18462 2014-08-11 change.
18463
18464 2015-06-02 Bin Cheng <bin.cheng@arm.com>
18465
18466 PR tree-optimization/52563
18467 PR tree-optimization/62173
18468 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
18469 (alloc_iv, set_iv): New parameter.
18470 (determine_biv_step): Delete.
18471 (find_bivs): Inline original determine_biv_step. Pass new
18472 argument to set_iv.
18473 (idx_find_step): Use no_overflow information for conversion.
18474 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
18475 resolve_mixers handle folded_casts.
18476 (instantiate_scev_name): Change bool parameter to bool pointer.
18477 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
18478 (instantiate_array_ref, instantiate_scev_not): Ditto.
18479 (instantiate_scev_3, instantiate_scev_2): Ditto.
18480 (instantiate_scev_1, instantiate_scev_r): Ditto.
18481 (instantiate_scev_convert, ): Change parameter. Pass argument
18482 to chrec_convert_aggressive.
18483 (instantiate_scev): Change argument.
18484 (resolve_mixers): New parameter and set it.
18485 (scev_const_prop): New argument.
18486 * tree-scalar-evolution.h (resolve_mixers): New parameter.
18487 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
18488 of chrec_conert_1.
18489 (chrec_convert): New parameter. Move definition below.
18490 (chrec_convert_aggressive): New parameter and set it. Call
18491 convert_affine_scev.
18492 * tree-chrec.h (chrec_convert): New parameter.
18493 (chrec_convert_aggressive): Ditto.
18494
18495 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
18496
18497 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
18498 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
18499 the LHS of a no-return call if its type has variable size.
18500 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
18501 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
18502
18503 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
18504
18505 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
18506 * config.in: Regenerate.
18507
18508 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18509
18510 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
18511 consecutive accesses within outer-loop with force_vectorize
18512 for references with zero step in inner-loop.
18513
18514 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
18515
18516 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
18517 rather than from gcc/build directory.
18518
18519 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
18520
18521 PR target/65697
18522 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
18523 for __sync memory models, emit initial loads and final barriers as
18524 appropriate.
18525
18526 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
18527
18528 PR target/65697
18529 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
18530 (aarch64_split_atomic_op): Check for __sync memory models, emit
18531 appropriate initial loads and final barriers.
18532
18533 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
18534
18535 * Makefile.in: Fix gcov dependencies that should
18536 not point to a build folder.
18537
18538 2015-06-01 Richard Biener <rguenther@suse.de>
18539
18540 Revert
18541 2015-05-29 Richard Biener <rguenther@suse.de>
18542
18543 PR tree-optimization/66314
18544 * tree-ssa-threadupdate.c (create_block_for_threading): Add
18545 parameter that says which loop the new block belongs to.
18546 (ssa_create_duplicates): Blocks duplicated for the threaded
18547 path belong to the loop of the thread destination.
18548
18549 2015-06-01 Martin Liska <mliska@suse.cz>
18550
18551 * sched-deps.c: Include pool-alloc.h before
18552 cselib.h header file is included.
18553
18554 2015-06-01 Richard Biener <rguenther@suse.de>
18555
18556 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
18557 functions.
18558
18559 2015-06-01 Martin Liska <mliska@suse.cz>
18560
18561 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
18562 a function local variable.
18563
18564 2015-06-01 Martin Liska <mliska@suse.cz>
18565
18566 * alloc-pool.c (create_alloc_pool): Remove.
18567 (empty_alloc_pool): Likewise.
18568 (free_alloc_pool): Likewise.
18569 (free_alloc_pool_if_empty): Likewise.
18570 (pool_alloc): Likewise.
18571 (pool_free): Likewise.
18572 * alloc-pool.h: Remove old declarations.
18573
18574 2015-06-01 Martin Liska <mliska@suse.cz>
18575
18576 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
18577 (ira_create_object): Likewise.
18578 (ira_create_allocno): Likewise.
18579 (ira_create_live_range): Likewise.
18580 (copy_live_range): Likewise.
18581 (ira_finish_live_range): Likewise.
18582 (ira_free_allocno_costs): Likewise.
18583 (finish_allocno): Likewise.
18584 (finish_allocnos): Likewise.
18585 (initiate_prefs): Likewise.
18586 (ira_create_pref): Likewise.
18587 (finish_pref): Likewise.
18588 (finish_prefs): Likewise.
18589 (initiate_copies): Likewise.
18590 (ira_create_copy): Likewise.
18591 (finish_copy): Likewise.
18592 (finish_copies): Likewise.
18593 (finish_prefs): Likewise.
18594
18595 2015-06-01 Martin Liska <mliska@suse.cz>
18596
18597 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
18598 (allocate_and_init_ipcp_value): Likewise.
18599 (ipcp_lattice::add_value): Likewise.
18600 (merge_agg_lats_step): Likewise.
18601 (ipcp_driver): Likewise.
18602 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
18603 (ipa_free_all_structures_after_iinln): Likewise.
18604 * ipa-prop.h: Likewise.
18605
18606 2015-06-01 Martin Liska <mliska@suse.cz>
18607
18608 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
18609 pool allocator.
18610 (set_hint_predicate): Likewise.
18611 (inline_summary_alloc): Likewise.
18612 (reset_inline_edge_summary): Likewise.
18613 (reset_inline_summary): Likewise.
18614 (set_cond_stmt_execution_predicate): Likewise.
18615 (set_switch_stmt_execution_predicate): Likewise.
18616 (compute_bb_predicates): Likewise.
18617 (estimate_function_body_sizes): Likewise.
18618 (inline_free_summary): Likewise.
18619
18620 2015-06-01 Martin Liska <mliska@suse.cz>
18621
18622 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
18623 (ipa_edge_duplication_hook): Likewise.
18624 (ipa_free_all_structures_after_ipa_cp): Likewise.
18625 (ipa_free_all_structures_after_iinln): Likewise.
18626
18627 2015-06-01 Martin Liska <mliska@suse.cz>
18628
18629 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
18630 (ipa_profile_generate_summary): Likewise.
18631 (ipa_profile_read_summary): Likewise.
18632 (ipa_profile): Likewise.
18633
18634 2015-06-01 Martin Liska <mliska@suse.cz>
18635
18636 * tree-ssa-structalias.c (new_var_info): Use new type-based
18637 pool allocator.
18638 (new_constraint): Likewise.
18639 (init_alias_vars): Likewise.
18640 (delete_points_to_sets): Likewise.
18641
18642 2015-06-01 Martin Liska <mliska@suse.cz>
18643
18644 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
18645 (free_strinfo): Likewise.
18646 (pass_strlen::execute): Likewise.
18647
18648 2015-06-01 Martin Liska <mliska@suse.cz>
18649
18650 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
18651 pool allocator.
18652 (vn_reference_insert_pieces): Likewise.
18653 (vn_phi_insert): Likewise.
18654 (visit_reference_op_call): Likewise.
18655 (copy_phi): Likewise.
18656 (copy_reference): Likewise.
18657 (process_scc): Likewise.
18658 (allocate_vn_table): Likewise.
18659 (free_vn_table): Likewise.
18660
18661 2015-06-01 Martin Liska <mliska@suse.cz>
18662
18663 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
18664 pool allocator.
18665 (add_repeat_to_ops_vec): Likewise.
18666 (get_ops): Likewise.
18667 (maybe_optimize_range_tests): Likewise.
18668 (init_reassoc): Likewise.
18669 (fini_reassoc): Likewise.
18670
18671 2015-06-01 Martin Liska <mliska@suse.cz>
18672
18673 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
18674 pool allocator.
18675 (bitmap_set_new): Likewise.
18676 (get_or_alloc_expr_for_constant): Likewise.
18677 (get_or_alloc_expr_for): Likewise.
18678 (phi_translate_1): Likewise.
18679 (compute_avail): Likewise.
18680 (init_pre): Likewise.
18681 (fini_pre): Likewise.
18682
18683 2015-06-01 Martin Liska <mliska@suse.cz>
18684
18685 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
18686 (delete_dep_node): Likewise.
18687 (create_deps_list): Likewise.
18688 (free_deps_list): Likewise.
18689 (sched_deps_init): Likewise.
18690 (sched_deps_finish): Likewise.
18691
18692 2015-06-01 Martin Liska <mliska@suse.cz>
18693
18694 * regcprop.c (free_debug_insn_changes): Use new type-based
18695 pool allocator.
18696 (replace_oldest_value_reg): Likewise.
18697 (pass_cprop_hardreg::execute): Likewise.
18698
18699 2015-06-01 Martin Liska <mliska@suse.cz>
18700
18701 * ira-build.c (initiate_cost_vectors): Use new type-based
18702 pool allocator.
18703 (ira_allocate_cost_vector): Likewise.
18704 (ira_free_cost_vector): Likewise.
18705 (finish_cost_vectors): Likewise.
18706
18707 2015-06-01 Martin Liska <mliska@suse.cz>
18708
18709 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
18710 pool allocator.
18711 (free_sched_pools): Likewise.
18712 * sel-sched-ir.h (_list_alloc): Likewise.
18713 (_list_remove): Likewise.
18714
18715 2015-06-01 Martin Liska <mliska@suse.cz>
18716
18717 * stmt.c (add_case_node): Use new type-based pool allocator.
18718 (expand_case): Likewise.
18719 (expand_sjlj_dispatch_table): Likewise.
18720
18721 2015-06-01 Martin Liska <mliska@suse.cz>
18722
18723 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
18724 (free_bb): Likewise.
18725 (pass_cse_reciprocals::execute): Likewise.
18726
18727 2015-06-01 Martin Liska <mliska@suse.cz>
18728
18729 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
18730 (sra_deinitialize) Likewise.
18731 (create_access_1) Likewise.
18732 (build_accesses_from_assign) Likewise.
18733 (create_artificial_child_access) Likewise.
18734
18735 2015-06-01 Martin Liska <mliska@suse.cz>
18736
18737 * dse.c (get_group_info):Use new type-based pool allocator.
18738 (dse_step0) Likewise.
18739 (free_store_info) Likewise.
18740 (delete_dead_store_insn) Likewise.
18741 (free_read_records) Likewise.
18742 (record_store) Likewise.
18743 (replace_read) Likewise.
18744 (check_mem_read_rtx) Likewise.
18745 (scan_insn) Likewise.
18746 (dse_step1) Likewise.
18747 (dse_step7) Likewise.
18748
18749 2015-06-01 Martin Liska <mliska@suse.cz>
18750
18751 * df-scan.c (struct df_scan_problem_data):Use new type-based
18752 pool allocator.
18753 (df_scan_free_internal) Likewise.
18754 (df_scan_alloc) Likewise.
18755 (df_grow_reg_info) Likewise.
18756 (df_free_ref) Likewise.
18757 (df_insn_create_insn_record) Likewise.
18758 (df_mw_hardreg_chain_delete) Likewise.
18759 (df_insn_info_delete) Likewise.
18760 (df_free_collection_rec) Likewise.
18761 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
18762 (df_sort_and_compress_mws) Likewise.
18763 (df_ref_create_structure) Likewise.
18764 (df_ref_record) Likewise.
18765
18766 2015-06-01 Martin Liska <mliska@suse.cz>
18767
18768 * df-problems.c (df_chain_create):Use new type-based pool allocator.
18769 (df_chain_unlink_1) Likewise.
18770 (df_chain_unlink) Likewise.
18771 (df_chain_remove_problem) Likewise.
18772 (df_chain_alloc) Likewise.
18773 (df_chain_free) Likewise.
18774 * df.h (struct dataflow) Likewise.
18775
18776 2015-06-01 Martin Liska <mliska@suse.cz>
18777
18778 * cselib.c (new_elt_list):Use new type-based pool allocator.
18779 (new_elt_loc_list) Likewise.
18780 (unchain_one_elt_list) Likewise.
18781 (unchain_one_elt_loc_list) Likewise.
18782 (unchain_one_value) Likewise.
18783 (new_cselib_val) Likewise.
18784 (cselib_init) Likewise.
18785 (cselib_finish) Likewise.
18786
18787 2015-06-01 Martin Liska <mliska@suse.cz>
18788
18789 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
18790 (sh_reorg) Likewise.
18791
18792 2015-06-01 Martin Liska <mliska@suse.cz>
18793
18794 * cfg.c (initialize_original_copy_tables):Use new type-based
18795 pool allocator.
18796 (free_original_copy_tables) Likewise.
18797 (copy_original_table_clear) Likewise.
18798 (copy_original_table_set) Likewise.
18799
18800 2015-06-01 Martin Liska <mliska@suse.cz>
18801
18802 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
18803 pool allocator.
18804 (asan_mem_ref_new) Likewise.
18805 (free_mem_ref_resources) Likewise.
18806
18807 2015-06-01 Martin Liska <mliska@suse.cz>
18808
18809 * var-tracking.c (variable_htab_free):Use new type-based
18810 pool allocator.
18811 (attrs_list_clear) Likewise.
18812 (attrs_list_insert) Likewise.
18813 (attrs_list_copy) Likewise.
18814 (shared_hash_unshare) Likewise.
18815 (shared_hash_destroy) Likewise.
18816 (unshare_variable) Likewise.
18817 (var_reg_delete_and_set) Likewise.
18818 (var_reg_delete) Likewise.
18819 (var_regno_delete) Likewise.
18820 (drop_overlapping_mem_locs) Likewise.
18821 (variable_union) Likewise.
18822 (insert_into_intersection) Likewise.
18823 (canonicalize_values_star) Likewise.
18824 (variable_merge_over_cur) Likewise.
18825 (dataflow_set_merge) Likewise.
18826 (remove_duplicate_values) Likewise.
18827 (variable_post_merge_new_vals) Likewise.
18828 (dataflow_set_preserve_mem_locs) Likewise.
18829 (dataflow_set_remove_mem_locs) Likewise.
18830 (variable_from_dropped) Likewise.
18831 (variable_was_changed) Likewise.
18832 (set_slot_part) Likewise.
18833 (clobber_slot_part) Likewise.
18834 (delete_slot_part) Likewise.
18835 (loc_exp_insert_dep) Likewise.
18836 (notify_dependents_of_changed_value) Likewise.
18837 (emit_notes_for_differences_1) Likewise.
18838 (vt_emit_notes) Likewise.
18839 (vt_initialize) Likewise.
18840 (vt_finalize) Likewise.
18841
18842 2015-06-01 Martin Liska <mliska@suse.cz>
18843
18844 * ira-color.c (init_update_cost_records):Use new type-based
18845 pool allocator.
18846 (get_update_cost_record) Likewise.
18847 (free_update_cost_record_list) Likewise.
18848 (finish_update_cost_records) Likewise.
18849 (initiate_cost_update) Likewise.
18850
18851 2015-06-01 Martin Liska <mliska@suse.cz>
18852
18853 * lra.c (init_insn_regs): Use new type-based pool allocator.
18854 (new_insn_reg) Likewise.
18855 (free_insn_reg) Likewise.
18856 (free_insn_regs) Likewise.
18857 (finish_insn_regs) Likewise.
18858 (init_insn_recog_data) Likewise.
18859 (init_reg_info) Likewise.
18860 (finish_reg_info) Likewise.
18861 (lra_free_copies) Likewise.
18862 (lra_create_copy) Likewise.
18863 (invalidate_insn_data_regno_info) Likewise.
18864
18865 2015-06-01 Martin Liska <mliska@suse.cz>
18866
18867 * lra-lives.c (free_live_range): Use new type-based pool allocator.
18868 (free_live_range_list) Likewise.
18869 (create_live_range) Likewise.
18870 (copy_live_range) Likewise.
18871 (lra_merge_live_ranges) Likewise.
18872 (remove_some_program_points_and_update_live_ranges) Likewise.
18873 (lra_live_ranges_init) Likewise.
18874 (lra_live_ranges_finish) Likewise.
18875
18876 2015-06-01 Martin Liska <mliska@suse.cz>
18877
18878 * et-forest.c (et_new_occ): Use new type-based pool allocator.
18879 (et_new_tree): Likewise.
18880 (et_free_tree): Likewise.
18881 (et_free_tree_force): Likewise.
18882 (et_free_pools): Likewise.
18883 (et_split): Likewise.
18884
18885 2015-06-01 Martin Liska <mliska@suse.cz>
18886
18887 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
18888 to header file.
18889 * alloc-pool.h (pool_allocator::pool_allocator): New function.
18890 (pool_allocator::release): Likewise.
18891 (inline pool_allocator::release_if_empty): Likewise.
18892 (inline pool_allocator::~pool_allocator): Likewise.
18893 (pool_allocator::allocate): Likewise.
18894 (pool_allocator::remove): Likewise.
18895
18896 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
18897
18898 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
18899 in comment.
18900
18901 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
18902
18903 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
18904 to fusible_ops.
18905 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
18906 (arm_macro_fusion_p): Likewise.
18907 (arm_macro_fusion_pair_p): Likewise.
18908
18909 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
18910
18911 * config/aarch64/aarch64-protos.h (tune_params): Rename
18912 fuseable_ops to fusible_ops.
18913 * config/aarch64/aarch64.c (generic_tunings): Rename
18914 fuseable_ops to fusible_ops.
18915 (cortexa53_tunings): Likewise.
18916 (cortexa57_tunings): Likewise.
18917 (thunderx_tunings): Likewise.
18918 (xgene1_tunings): Likewise.
18919 (aarch64_macro_fusion_p): Likewise.
18920 (aarch64_macro_fusion_pair_p): Likewise.
18921
18922 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
18923
18924 * config/s390/driver-native.c: New file.
18925 * config/s390/x-native: New file.
18926 * config.host: Add new files for s390.
18927 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
18928 and -march=native
18929 * config.gcc: Likewise.
18930 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
18931 * config/s390/s390-opts.h (enum processor_type): Ditto.
18932 * config/s390/s390.c (s390_option_override): Catch unhandled
18933 PROCESSOR_NATIVE
18934
18935 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
18936
18937 PR target/65527
18938 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
18939 redirection for instrumented calls.
18940 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
18941 (append_compiler_options): Append -fcheck-pointer-bounds.
18942 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
18943 (chkp_redirect_edge): New.
18944 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
18945 (chkp_redirect_edge): New.
18946
18947 2015-06-01 Richard Biener <rguenther@suse.de>
18948
18949 PR tree-optimization/66280
18950 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
18951 def-use walking.
18952
18953 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18954
18955 * config/aarch64/aarch64.md
18956 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
18957 logic_shift_imm.
18958
18959 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
18960
18961 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
18962 Remove obsolete kludge.
18963
18964 2015-06-01 Richard Biener <rguenther@suse.de>
18965
18966 * tree-ssa-reassoc.c (get_rank): Simplify.
18967
18968 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
18969
18970 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
18971 * configure: Regenerated.
18972
18973 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
18974
18975 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
18976 issue (add space between string literal and macro).
18977 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
18978
18979 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
18980
18981 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
18982 implict or explicit -fPIE or -fpie.
18983
18984 2015-05-30 Mike Frysinger <vapier@gentoo.org>
18985
18986 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
18987
18988 2015-05-28 DJ Delorie <dj@redhat.com>
18989
18990 * expmed.c (extract_bit_field_1): Avoid clobbering a
18991 yet-to-be-used base/index register.
18992
18993 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
18994
18995 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
18996 (alias_stats): Add num_universal.
18997 (alias_set_subset_of): Special case pointers; be ready for NULL
18998 children.
18999 (alias_sets_conflict_p): Special case pointers; be ready for NULL
19000 children.
19001 (init_alias_set_entry): Break out from ...
19002 (record_alias_subset): ... here; propagate new fields;
19003 allocate children only when really needed.
19004 (get_alias_set): Do less generous pointer globbing.
19005 (dump_alias_stats_in_alias_c): Update statistics.
19006
19007 2015-05-30 Alan Modra <amodra@gmail.com>
19008
19009 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
19010 correct block for use of r12.
19011 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
19012
19013 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
19014
19015 PR target/66215
19016 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
19017 with -mhotpatch=.
19018
19019 2015-05-29 Jakub Jelinek <jakub@redhat.com>
19020
19021 PR tree-optimization/66142
19022 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
19023 virtual phis that feed themselves.
19024
19025 2015-05-29 Richard Biener <rguenther@suse.de>
19026
19027 PR tree-optimization/66314
19028 * tree-ssa-threadupdate.c (create_block_for_threading): Add
19029 parameter that says which loop the new block belongs to.
19030 (ssa_create_duplicates): Blocks duplicated for the threaded
19031 path belong to the loop of the thread destination.
19032
19033 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19034
19035 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
19036 to cleanup-saved-temps.
19037 * doc/sourcebuild.texi (Clean up generated test files): Expand
19038 introduction.
19039 (dg-keep-saved-temps): Document new proc.
19040 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
19041 cleanup-saved-temps): Remove.
19042
19043 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
19044
19045 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
19046 gcc_AC_CHECK_DECLS.
19047 * configure: Regenerate.
19048
19049 2015-05-28 Mike Frysinger <vapier@gentoo.org>
19050
19051 * config/nios2/linux.h (CPP_SPEC): Define.
19052
19053 2015-05-28 Mike Frysinger <vapier@gentoo.org>
19054
19055 * config/microblaze/linux.h (CPP_SPEC): Define.
19056
19057 2015-05-28 Mike Frysinger <vapier@gentoo.org>
19058
19059 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
19060 -pthread is specified.
19061
19062 2015-05-28 Richard Biener <rguenther@suse.de>
19063
19064 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
19065 (vect_fixup_scalar_cycles_with_patterns): Likewise.
19066 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
19067 after pattern recog.
19068 (vect_create_epilog_for_reduction): Properly handle reductions
19069 with patterns.
19070 (vectorizable_reduction): Likewise.
19071 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
19072 reduction chains.
19073 (vect_get_constant_vectors): Create the correct number of
19074 initial values for reductions.
19075 (vect_schedule_slp_instance): Handle reduction chains that are
19076 type changing properly.
19077 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
19078
19079 2015-05-28 Richard Biener <rguenther@suse.de>
19080
19081 PR tree-optimization/66142
19082 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
19083 values better in memcpy destination handling. Handle non-aliasing
19084 we discover here.
19085
19086 2015-05-28 Lawrence Velázquez <vq@larryv.me>
19087
19088 PR target/63810
19089 * config/darwin-c.c (version_components): New global enum.
19090 (parse_version, version_as_legacy_macro)
19091 (version_as_modern_macro, macosx_version_as_macro): New functions.
19092 (version_as_macro): Remove.
19093 (darwin_cpp_builtins): Use new function.
19094
19095 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
19096
19097 * builtins.c (expand_builtin_acc_on_device): Mark parameters
19098 with ATTRIBUTE_UNUSED.
19099
19100 2015-05-28 Julian Brown <julian@codesourcery.com>
19101
19102 PR libgomp/65742
19103
19104 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
19105 sequence for !ACCEL_COMPILER.
19106
19107 2015-05-28 Nick Clifton <nickc@redhat.com>
19108
19109 * config/rx/rx.c (push_regs): New function. Extracts code from...
19110 (rx_expand_prologue): ... here. Use push_regs to push even small
19111 spans of registers.
19112 (pop_regs): New function.
19113 (rx_expand_epilogue): Use pop_regs to pop even small spans of
19114 registers.
19115
19116 2015-05-28 Richard Biener <rguenther@suse.de>
19117
19118 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
19119 member.
19120 (SLP_INSTANCE_BODY_COST_VEC): Remove.
19121 (vect_update_slp_costs_according_to_vf): Likewise.
19122 (vect_slp_analyze_operations): Update prototype.
19123 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
19124 vect_update_slp_costs_according_to_vf, adjust.
19125 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
19126 (vect_analyze_slp_cost_1): Likewise.
19127 (vect_analyze_slp_cost): Likewise. Properly deal with
19128 widening reduction ops. Commit body costs.
19129 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
19130 cost for loops from here.
19131 (vect_slp_analyze_operations): But do it from here when
19132 the vectorization factor is known and stmts are analyzed.
19133 (vect_bb_vectorization_profitable_p): Simplify.
19134 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
19135 (vect_update_slp_costs_according_to_vf): Remove.
19136
19137 2015-05-27 Magnus Granberg <zorry@gentoo.org>
19138 H.J. Lu <hongjiu.lu@intel.com>
19139
19140 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
19141 (BUILD_CFLAGS): Likewise.
19142 (BUILD_CXXFLAGS): Likewise.
19143 (LINKER): Add @NO_PIE_FLAG@.
19144 (BUILD_LDFLAGS): Likewise.
19145 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
19146 --enable-default-pie.
19147 * common.opt (fPIE): Initialize to -1.
19148 (fpie): Likewise.
19149 (no-pie): New option.
19150 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
19151 * configure.ac: Add --enable-default-pie.
19152 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
19153 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
19154 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
19155 * gcc.c (NO_PIE_SPEC): New.
19156 (PIE_SPEC): Likewise.
19157 (NO_FPIE1_SPEC): Likewise.
19158 (FPIE1_SPEC): Likewise.
19159 (NO_FPIE2_SPEC): Likewise.
19160 (FPIE2_SPEC): Likewise.
19161 (NO_FPIE2_SPEC): Likewise.
19162 (FPIE_SPEC): Likewise.
19163 (NO_FPIE_SPEC): Likewise.
19164 (NO_FPIC1_SPEC): Likewise.
19165 (FPIC1_SPEC): Likewise.
19166 (NO_FPIC2_SPEC): Likewise.
19167 (FPIC2_SPEC): Likewise.
19168 (NO_FPIC2_SPEC): Likewise.
19169 (FPIC_SPEC): Likewise.
19170 (NO_FPIC_SPEC): Likewise.
19171 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
19172 (FPIE1_OR_FPIC1_SPEC): Likewise.
19173 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
19174 (FPIE2_OR_FPIC2_SPEC): Likewise.
19175 (NO_FPIE_AND_FPIC_SPEC): Likewise.
19176 (FPIE_OR_FPIC_SPEC): Likewise.
19177 (LD_PIE_SPEC): Likewise.
19178 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
19179 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
19180 * config/darwin.h (PIE_SPEC): Renamed to ...
19181 (DARWIN_PIE_SPEC): This.
19182 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
19183 * config/darwin9.h (PIE_SPEC): Renamed to ...
19184 (DARWIN_PIE_SPEC): This.
19185 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
19186 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
19187 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
19188 FPIE2_OR_FPIC2_SPEC.
19189 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
19190 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
19191 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
19192 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
19193 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
19194 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
19195 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
19196 * config/m32r/m32r.h (ASM_SPEC): Likewise.
19197 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
19198 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
19199 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
19200 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
19201 * config/sparc/linux.h (ASM_SPEC): Likewise.
19202 * config/sparc/linux64.h (ASM_SPEC): Likewise.
19203 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
19204 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
19205 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
19206 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
19207 * config/sparc/sparc.h (ASM_SPEC): Likewise.
19208 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
19209 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
19210 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
19211 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
19212 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
19213 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
19214 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
19215 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
19216 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
19217 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
19218 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
19219 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
19220 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
19221 * config/vax/linux.h (ASM_SPEC): Likewise.
19222 * doc/install.texi: Document --enable-default-pie.
19223 * doc/invoke.texi: Document -no-pie.
19224 * config.in: Regenerated.
19225 * configure: Likewise.
19226
19227 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
19228
19229 PR rtl-optimization/66168
19230 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
19231 can_move_invariant_reg.
19232
19233 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
19234
19235 PR target/66148
19236 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
19237 REG_EQUAL note when doing insert.
19238
19239 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
19240 instead of "%d" for 'o' operand.
19241
19242 2015-05-27 Nathan Sidwell <nathan@acm.org>
19243
19244 PR c++/66270
19245 * tree.c (build_pointer_type_for_mode): Canonical type does not
19246 inherit can_alias_all.
19247 (build_reference_type_for_mode): Likewise.
19248
19249 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
19250
19251 * expr.h (array_at_struct_end_p): Move to...
19252 (array_ref_element_size): Likewise.
19253 (component_ref_field_offset): Likewise.
19254 * tree.h (array_ref_element_size): ...here.
19255 (array_at_struct_end_p): Likewise.
19256 (component_ref_field_offset): Likewise.
19257 * expr.c (array_ref_element_size): Move to...
19258 (array_ref_low_bound): Likewise.
19259 (array_at_struct_end_p): Likewise.
19260 (array_ref_up_bound): Likewise.
19261 (component_ref_field_offset): Likewise.
19262 * tree.c (array_ref_element_size): ...here.
19263 (array_ref_low_bound): Likewise.
19264 (array_ref_up_bound): Likewise.
19265 (array_at_struct_end_p): Likewise.
19266 (component_ref_field_offset): Likewise.
19267
19268 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
19269 Szabolcs Nagy <szabolcs.nagy@arm.com>
19270
19271 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
19272
19273 2015-05-27 Jason Merrill <jason@redhat.com>
19274
19275 PR bootstrap/66304
19276 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
19277 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
19278 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
19279
19280 2015-05-22 Aditya Kumar <hiraditya@msn.com>
19281
19282 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
19283 is true.
19284
19285 * statistics.c (statistics_fini_pass): Print pass name.
19286
19287 2015-05-27 Richard Biener <rguenther@suse.de>
19288
19289 PR tree-optimization/66272
19290 Revert parts of
19291 2014-08-15 Richard Biener <rguenther@suse.de>
19292
19293 PR tree-optimization/62031
19294 * tree-data-ref.c (dr_analyze_indices): Do not set
19295 DR_UNCONSTRAINED_BASE.
19296 (dr_may_alias_p): All indirect accesses have to go the
19297 formerly DR_UNCONSTRAINED_BASE path.
19298 * tree-data-ref.h (struct indices): Remove
19299 unconstrained_base member.
19300 (DR_UNCONSTRAINED_BASE): Remove.
19301
19302 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
19303
19304 * dwarf2out.c: Remove block_map.
19305 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
19306 (gen_lexical_block_die): Same.
19307 (dwarf2out_function_decl): Remove block_map use.
19308 (dwarf2out_c_finalize): Same.
19309 * tree-core.h (struct tree_block): Add die field.
19310 * tree.h (BLOCK_DIE): New.
19311
19312 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19313
19314 PR target/65358
19315 * expr.c (memory_load_overlap): New function.
19316 (emit_push_insn): When pushing partial args to the stack would
19317 clobber the register part load the overlapping part into a pseudo
19318 and put it into the hard reg after pushing. Change return type
19319 to bool. Add bool argument.
19320 * expr.h (emit_push_insn): Change return type to bool.
19321 Add bool argument.
19322 * calls.c (expand_call): Cancel sibcall optimization when encountering
19323 partial argument on targets with ARGS_GROW_DOWNWARD and
19324 !STACK_GROWS_DOWNWARD.
19325 (emit_library_call_value_1): Update callsite of emit_push_insn.
19326 (store_one_arg): Likewise.
19327
19328 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
19329
19330 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
19331
19332 2015-05-27 Martin Liska <mliska@suse.cz>
19333
19334 * Makefile.in: Add additional dependencies related to memory report
19335 enhancement.
19336 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
19337 * bitmap.c (struct bitmap_descriptor_d): Remove.
19338 (struct loc): Likewise.
19339 (struct bitmap_desc_hasher): Likewise.
19340 (bitmap_desc_hasher::hash): Likewise.
19341 (bitmap_desc_hasher::equal): Likewise.
19342 (get_bitmap_descriptor): Likewise.
19343 (bitmap_register): User new memory descriptor API.
19344 (register_overhead): Likewise.
19345 (bitmap_find_bit): Register nsearches and search_iter statistics.
19346 (struct bitmap_output_info): Remove.
19347 (print_statistics): Likewise.
19348 (dump_bitmap_statistics): Use new memory descriptor.
19349 * bitmap.h (struct bitmap_usage): New class.
19350 * genmatch.c: Extend header file inclusion.
19351 * genpreds.c: Likewise.
19352 * ggc-common.c (struct ggc_usage): New class.
19353 (struct ggc_loc_desc_hasher): Remove.
19354 (ggc_loc_desc_hasher::hash): Likewise.
19355 (ggc_loc_desc_hasher::equal): Likewise.
19356 (struct ggc_ptr_hash_entry): Likewise.
19357 (struct ptr_hash_hasher): Likewise.
19358 (ptr_hash_hasher::hash): Likewise.
19359 (ptr_hash_hasher::equal): Likewise.
19360 (make_loc_descriptor): Likewise.
19361 (ggc_prune_ptr): Likewise.
19362 (dump_ggc_loc_statistics): Use new memory descriptor.
19363 (ggc_record_overhead): Likewise.
19364 (ggc_free_overhead): Likewise.
19365 (final_cmp_statistic): Remove.
19366 (cmp_statistic): Likewise.
19367 (ggc_add_statistics): Liekwise.
19368 (ggc_prune_overhead_list): Likewise.
19369 * hash-map-traits.h: New file.
19370 * hash-map.h (struct default_hashmap_traits): Move the traits to a
19371 separate header file.
19372 * hash-set.h: Pass memory statistics info to ctor.
19373 * hash-table.c (void dump_hash_table_loc_statistics): New function.
19374 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
19375 (hash_table::~hash_table): Register memory release operation.
19376 (hash_table::alloc_entries): Handle memory allocation operation.
19377 (hash_table::expand): Likewise.
19378 * inchash.c (iterative_hash_hashval_t): Move implementation to header
19379 file.
19380 (iterative_hash_host_wide_int): Likewise.
19381 * inchash.h (class hash): Likewise.
19382 * mem-stats-traits.h: New file.
19383 * mem-stats.h: New file.
19384 (mem_location): Add new class.
19385 (mem_usage): Likewise.
19386 (mem_alloc_description): Likewise.
19387 * sese.c: Add new header file inclusision.
19388 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
19389 and hash_set.
19390 * tree-sra.c: Add new header file inclusision.
19391 * vec.c (struct vec_descriptor): Remove.
19392 (hash_descriptor): Likewise.
19393 (struct vec_usage): Likewise.
19394 (struct ptr_hash_entry): Likewise.
19395 (hash_ptr): Likewise.
19396 (eq_ptr): Likewise.
19397 (vec_prefix::register_overhead): Use new memory descriptor API.
19398 (vec_prefix::release_overhead): Likewise.
19399 (add_statistics): Remove.
19400 (dump_vec_loc_statistics): Use new memory descriptor API.
19401 * vec.h (struct vec_prefix): Likewise.
19402 (va_heap::reserve): Likewise.
19403 (va_heap::release): Likewise.
19404 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
19405
19406 2015-05-27 Richard Biener <rguenther@suse.de>
19407
19408 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
19409 earlier and remove ??? comment.
19410 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
19411 and got called from loop analysis bail out. Always pass the SLP
19412 node to the vectorizable_* functions.
19413 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
19414 the premature SLP check here.
19415 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
19416 detected SLP stmts.
19417 (vect_detect_hybrid_slp_1): Likewise.
19418
19419 2015-05-26 Jeff Law <law@redhat.com>
19420
19421 * combine.c (find_split_point): Verify that the shift count is a
19422 constant when choosing (plus (ashift ...)) as a split point.
19423
19424 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
19425 No functional changes.
19426
19427 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
19428
19429 * ipa-polymorphic-call.c
19430 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
19431 case when call target is already known.
19432
19433 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
19434
19435 PR target/65979
19436 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
19437 take into account the case that operands[1] and operands[2]
19438 are the same register.
19439
19440 2015-05-26 Michael Matz <matz@suse.de>
19441
19442 PR middle-end/66251
19443
19444 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
19445 stores.
19446 (vect_create_vectorized_demotion_stmts): Always set
19447 STMT_VINFO_VEC_STMT, also with SLP.
19448 (vectorizable_store): Handle strided group stores.
19449
19450 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19451
19452 PR target/66049
19453 * config/aarch64/aarch64.md
19454 (*adds_shift_imm_<mode>): New pattern.
19455 (*subs_shift_imm_<mode>): Likewise.
19456 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
19457 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
19458 (*add_uxt<mode>_shift2): Likewise.
19459 (*add_uxtsi_shift2_uxtw): Likewise.
19460 (*sub_uxt<mode>_shift2): Likewise.
19461 (*sub_uxtsi_shift2_uxtw): Likewise.
19462
19463 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
19464
19465 * config/rs6000/constraints.md (Y, U): Use match_test.
19466
19467 2015-05-26 Christian Bruel <christian.bruel@st.com>
19468
19469 PR target/52144
19470 * config/arm/arm.c (arm_option_check_internal)
19471 (arm_option_params_internal): Check opts->target_flags to set macros.
19472 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
19473 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
19474 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
19475 (builtin_define): Replaced with def_or_undef_macro.
19476 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
19477 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
19478 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
19479 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
19480 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
19481 (TARGET_ARM_FEATURE_LDREX_P)
19482 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
19483 * config/arm/arm-c.c (def_or_undef_macro): New function.
19484 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
19485
19486 2015-05-26 Christian Bruel <christian.bruel@st.com>
19487
19488 * c-common.h (builtin_define_with_int_value)
19489 (builtin_define_type_sizeof): Declare.
19490 * c-cppbuiltin.c (builtin_define_with_int_value)
19491 (builtin_define_type_sizeof): Externalize.
19492 (builtin_define_std): Cleanup declaration.
19493 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
19494 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
19495 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
19496 (builtin_define, builtin_assert): New macros.
19497
19498 2015-05-26 Richard Biener <rguenther@suse.de>
19499
19500 PR tree-optimization/66142
19501 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
19502 MEM_REFs for the same base address.
19503
19504 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19505
19506 PR ipa/66181
19507 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
19508
19509 2015-05-26 Jason Merrill <jason@redhat.com>
19510
19511 * configure.ac: Set CXXFLAGS for ISL test.
19512 * configure: Regenerate.
19513
19514 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
19515 strstr and basename.
19516 * configure: Regenerate.
19517
19518 2015-05-26 Richard Biener <rguenther@suse.de>
19519
19520 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
19521 X % C -> X & (C - 1) for C being a power-of two to ...
19522 * match.pd: ... patterns.
19523
19524 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
19525
19526 * match.pd (swapped_tcc_comparison): New operator list.
19527 (-A CMP -B): New simplification.
19528 * fold-const.c (fold_comparison): Remove corresponding code.
19529
19530 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
19531
19532 * caller-save.c (init_caller_save): Base temporary register numbers
19533 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
19534 * cfgloopanal.c (init_set_costs): Likewise.
19535 * dojump.c (prefer_and_bit_test): Likewise.
19536 * expr.c (init_expr_target): Likewise.
19537 * ira.c (setup_prohibited_mode_move_regs): Likewise.
19538 * lower-subreg.c (init_lower_subreg): Likewise.
19539 * postreload.c (reload_cse_regs_1): Likewise.
19540
19541 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
19542
19543 * gensupport.h (compute_test_codes): Declare.
19544 * gensupport.c (compute_predicate_codes): Rename to...
19545 (compute_test_codes): ...this. Generalize error message.
19546 (process_define_predicate): Update accordingly.
19547 * genpreds.c (compute_maybe_allows): Delete.
19548 (add_constraint): Use compute_test_codes to determine whether
19549 something can accept a SUBREG, REG or MEM.
19550
19551 2015-05-26 Torvald Riegel <triegel@redhat.com>
19552
19553 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
19554 'memory model' to align with C++11; fix description of memory orders;
19555 fix a few typos.
19556
19557 2015-05-26 Richard Biener <rguenther@suse.de>
19558
19559 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
19560 (vect_analyze_loop_operations): ... here. Remove slp parameter,
19561 detect whether we apply SLP. Remove call to
19562 vect_update_slp_costs_according_to_vf.
19563 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
19564 vect_update_slp_costs_according_to_vf from here. Dispatch
19565 to vect_slp_analyze_operations to analyze SLP stmts.
19566 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
19567 unused bb_vec_info parameter, adjust assert.
19568 (vect_slp_analyze_operations): Pass in the slp instance tree
19569 instead of bb_vec_info.
19570 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
19571 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
19572
19573 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
19574
19575 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
19576 Q_REGS. Expand comment.
19577 (REG_CLASS_NAMES): Ditto.
19578 (REG_CLASS_CONTENTS): Ditto.
19579
19580 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
19581
19582 PR target/66274
19583 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
19584 when LEGACY_INT_REGNO_P is processed.
19585
19586 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
19587
19588 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
19589
19590 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19591
19592 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
19593 register if not marked dead/unused, before return.
19594
19595 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
19596
19597 PR lto/66180
19598 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
19599 is set; check for assembler name at LTO time.
19600 (type_in_anonymous_namespace): Remove hacks, check that all
19601 anonymous types are called "<anon>"
19602 (odr_type_p): Simplify; add check for "<anon>"
19603 (odr_subtypes_equivalent): Add odr_type_p check.
19604 * tree.c (need_assembler_name_p): Even anonymous namespace needs
19605 assembler name.
19606
19607 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
19608
19609 * ipa-utils.h (method_class_type): Remove.
19610 * cgraphunit.c (walk_polymorphic_call_targets): Use
19611 TYPE_METHOD_BASETYPE.
19612 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
19613 on main variants only.
19614 (method_class_type): Remove.
19615 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
19616 (build_type_inheritance_graph): Likewise.
19617 * ipa-icf.c (sem_function::equals_wpa): Likewise.
19618 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
19619 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
19620
19621 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
19622
19623 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
19624 is_typedef_decl, typedef_variant_p): Constify.
19625 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
19626 is_typedef_decl, typedef_variant_p): Constify.
19627
19628 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19629
19630 * defaults.h (gen_tablejump): New function.
19631 (HAVE_tablejump): Add default value.
19632 * expr.c: Adjust.
19633 * stmt.c: Likewise.
19634
19635 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19636
19637 * defaults.h (gen_store_multiple): New function.
19638 (HAVE_store_multiple): Add default value.
19639 * expr.c (move_block_from_reg): Adjust.
19640
19641 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19642
19643 * defaults.h (gen_load_multiple): New function.
19644 (HAVE_load_multiple): Add default value.
19645 * expr.c (move_block_to_reg): Adjust.
19646
19647 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19648
19649 * defaults.h (gen_mem_signal_fence): New function.
19650 (HAVE_mem_signal_fence): Add default value.
19651 * optabs.c: Adjust.
19652
19653 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19654
19655 * defaults.h (gen_memory_barrier): New function.
19656 (HAVE_memory_barrier): Add default value.
19657 * optabs.c: Adjust.
19658
19659 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19660
19661 * defaults.h (gen_mem_thread_fence): New function.
19662 (HAVE_mem_thread_fence): Add default definition.
19663 * optabs.c: Adjust.
19664
19665 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19666
19667 * combine.c (find_split_point): Check the value of HAVE_lo_sum
19668 instead of if it is defined.
19669 (combine_simplify_rtx): Likewise.
19670 * lra-constraints.c (process_address_1): Likewise.
19671 * config/darwin.c: Adjust.
19672 * genconfig.c (main): Always define HAVE_lo_sum.
19673
19674 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19675
19676 * genmatch.c (parser::parse_operation): Reject expanding
19677 operator-list inside 'for'.
19678
19679 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19680
19681 * genmatch.c (parser::parse_for): Reject iterator if used as
19682 operator-list.
19683
19684 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19685
19686 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
19687 after end of id-list.
19688
19689 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
19690
19691 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
19692 we do not try to compute canonical type for type that does not need
19693 alias set.
19694 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
19695 FUNCITON_TYPE.
19696 * tree.h (type_with_alias_set_p): New.
19697
19698 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
19699
19700 * tree.c (gimple_canonical_types_compatible_p): Do not compare
19701 function attributes.
19702 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
19703
19704 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
19705
19706 * Makefile.in (check_gcc_parallelize): Delete.
19707 (lang_checks_parallelized): Update comment.
19708
19709 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
19710
19711 PR rtl-optimization/66237
19712 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
19713 location of an "as_a" cast.
19714
19715 2015-05-22 Jeff Law <law@redhat.com>
19716
19717 * config/pa/pa.md (non-canonical shift-add insns): Remove.
19718 (peepholes with non-canonical RTL sources): Remove.
19719 (peepholes for indexed stores of FP regs in integer modes): Match and
19720 generate canonical RTL.
19721
19722 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
19723
19724 PR tree-optimization/63387
19725 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
19726 ((x ord x) & (y ord y) -> (x ord y),
19727 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
19728 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
19729 vectors like scalars.
19730
19731 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
19732
19733 * convert.c (convert_to_integer, convert_to_vector): Include the
19734 types in the error message.
19735
19736 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
19737
19738 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
19739 simplifications.
19740
19741 2015-05-22 Jeff Law <law@redhat.com>
19742
19743 * config/pa/pa.md (integer_indexed_store splitters): Use
19744 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
19745 insns -- adjusting the constant 2nd operand accordingly.
19746
19747 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
19748 (plus (ashift X log2) Y) if it is a split point.
19749
19750 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
19751 out of hppa_legitimize_address to handle both forms of a multiply
19752 by 2, 4 or 8.
19753 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
19754 Always generate the ASHIFT variant as the result is not directly
19755 used in a MEM. Update comments and refactor slightly to improve
19756 readability.
19757
19758 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19759
19760 PR target/65491
19761 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
19762 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
19763 (aarch64_composite_type_p): Return false if given type and mode are
19764 for a short vector.
19765
19766 2015-05-22 Richard Biener <rguenther@suse.de>
19767
19768 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
19769 member.
19770 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
19771 patterns when determining whether SLP is pure.
19772 (vect_is_slp_reduction): Remove check for pattern stmts.
19773 (vect_is_simple_reduction_1): Remove dead code.
19774 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
19775 (vect_get_and_check_slp_defs): Pass in the stmt number.
19776 Allow the first def in a reduction to be not a pattern stmt when
19777 the rest of the stmts def are patterns.
19778 (vect_build_slp_tree_1): Allow tcc_expression codes like
19779 SAD_EXPR and DOT_PROD_EXPR.
19780 (vect_build_slp_tree): Adjust.
19781 (vect_analyze_slp): Refactor and move BB vect error message ...
19782 (vect_slp_analyze_bb_1): ... here.
19783
19784 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
19785
19786 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
19787 for CSWTCH temporary.
19788
19789 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19790
19791 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
19792 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
19793 unknown unspecs.
19794
19795 2015-05-22 Richard Biener <rguenther@suse.de>
19796
19797 PR tree-optimization/66251
19798 * tree-vect-stmts.c (vectorizable_conversion): Properly
19799 set STMT_VINFO_VEC_STMT even for the SLP case.
19800
19801 2015-05-22 Marek Polacek <polacek@redhat.com>
19802
19803 * doc/extend.texi: Use @pxref instead of @xref.
19804
19805 2015-05-22 hiraditya <hiraditya@msn.com>
19806
19807 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
19808 redundant if.
19809
19810 2015-05-22 Richard Biener <rguenther@suse.de>
19811
19812 PR tree-optimization/65701
19813 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
19814 Move peeling cost models into one place. Peel for alignment
19815 for single loads only if an aligned load is cheaper than
19816 an unaligned load.
19817
19818 2015-05-22 Marek Polacek <polacek@redhat.com>
19819
19820 PR c/47043
19821 * doc/extend.texi (Enumerator Attributes): New section.
19822 Document syntax of enumerator attributes.
19823
19824 2015-05-22 Richard Biener <rguenther@suse.de>
19825
19826 * tree-vect-loop.c (get_reduction_op): New function.
19827 (vect_model_reduction_cost): Use it, add reduc_index parameter.
19828 Make ready for BB reductions.
19829 (vect_create_epilog_for_reduction): Use get_reduction_op.
19830 (vectorizable_reduction): Init reduc_index to a valid value.
19831 Adjust vect_model_reduction_cost call.
19832 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
19833 operand for reduction defaults. Add SAD_EXPR support.
19834 Assert we have a neutral op for SLP reductions.
19835 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
19836 walking pattern stmt ops only recurse to SSA names.
19837
19838 2015-05-22 Richard Biener <rguenther@suse.de>
19839
19840 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
19841 assert with guard, remove check on detected reduction.
19842 (vect_recog_sad_pattern): Likewise.
19843 (vect_recog_widen_sum_pattern): Likewise.
19844
19845 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19846
19847 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
19848 __always_inline__ attribute.
19849 (vaesdq_u8): Likewise.
19850 (vaesmcq_u8): Likewise.
19851 (vaesimcq_u8): Likewise.
19852 (vsha1cq_u32): Likewise.
19853 (vsha1mq_u32): Likewise.
19854 (vsha1pq_u32): Likewise.
19855 (vsha1h_u32): Likewise.
19856 (vsha1su0q_u32): Likewise.
19857 (vsha1su1q_u32): Likewise.
19858 (vsha256hq_u32): Likewise.
19859 (vsha256h2q_u32): Likewise.
19860 (vsha256su0q_u32): Likewise.
19861 (vsha256su1q_u32): Likewise.
19862 (vmull_p64): Likewise.
19863 (vmull_high_p64): Likewise.
19864
19865 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19866
19867 * final.c (final_scan_insn): Don't check HAVE_peephole with the
19868 preprocessor.
19869 * output.h: Likewise.
19870 * genconfig.c (main): Alwways define HAVE_peephole.
19871 * genpeep.c: Don't emit checks of HAVE_peephole.
19872
19873 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19874
19875 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
19876 check HAVE_conditional_move with the preprocessor.
19877
19878 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19879
19880 * genconfig.c (main): Always define HAVE_conditional_move.
19881 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
19882 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
19883 is defined.
19884
19885 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19886
19887 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
19888 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
19889 and FRAME_POINTER_REGNUM with the preprocessor.
19890
19891 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19892
19893 * defaults.h: Add default for STACK_PUSH_CODE.
19894 * expr.c: Don't redefine STACK_PUSH_CODE.
19895 * recog.c: Likewise.
19896
19897 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19898
19899 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
19900 sched-deps.c: Use if instead of preprocessor checks with
19901 STACK_GROWS_DOWNWARD.
19902
19903 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19904
19905 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
19906 is defined.
19907 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
19908 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
19909 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
19910 * doc/tm.texi: Regenerate.
19911
19912 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
19913
19914 PR target/66232
19915 * config/i386/constraints.md (Bg): New constraint for GOT memory
19916 operand.
19917 * config/i386/i386.md (*call_got_x32): New pattern.
19918 (*call_value_got_x32): Likewise.
19919 * config/i386/predicates.md (GOT_memory_operand): New predicate.
19920
19921 2015-05-21 Jakub Jelinek <jakub@redhat.com>
19922
19923 PR tree-optimization/66233
19924 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
19925 Simplify.
19926
19927 2015-05-21 Jeff Law <law@redhat.com>
19928
19929 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
19930 than MULT for shadd sequences.
19931
19932 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
19933
19934 * alias.c (alias_stats): New static var.
19935 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
19936 (dump_alias_stats_in_alias_c): New function.
19937 * alias.h (dump_alias_stats_in_alias_c): Declare.
19938 * tree-ssa-alias.c (dump_alias_stats): Call it.
19939
19940 2015-05-08 Michael Matz <matz@suse.de>
19941
19942 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
19943 to strided_p.
19944 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
19945 (STMT_VINFO_STRIDED_P): ... this.
19946 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
19947 (vect_verify_datarefs_alignment): Likewise.
19948 (vect_enhance_data_refs_alignment): Likewise.
19949 (vect_analyze_data_ref_access): Likewise.
19950 (vect_analyze_data_refs): Accept strided stores.
19951 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
19952 (vect_model_load_cost): Adjust for macro rename.
19953 (vectorizable_mask_load_store): Likewise.
19954 (vectorizable_load): Likewise.
19955 (vectorizable_store): Open code strided stores.
19956
19957 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19958
19959 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
19960 Document sqrt_insn.
19961
19962 2015-05-21 Richard Biener <rguenther@suse.de>
19963
19964 PR c++/66211
19965 * match.pd: Guard pattern optimzing (int)(float)int
19966 conversions to apply only on GIMPLE.
19967
19968 2015-05-21 Jeff Law <law@redhat.com>
19969
19970 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
19971 multiply-accumulate/shift-add insn generation.
19972
19973 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
19974
19975 PR target/54236
19976 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
19977 operands[1] are the same.
19978
19979 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
19980
19981 PR middle-end/66221
19982 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
19983 build_distinct_type_copy to copy bounds.
19984
19985 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
19986
19987 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
19988 Change to unsigned int.
19989
19990 2015-05-20 Jeff Law <law@redhat.com>
19991
19992 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
19993 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
19994 (pa_shadd_constant_p): Allow constants for shadd insns rather
19995 than valid scaling constants for memory addresses.
19996 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
19997 * config/pa/predicates.md (mem_shadd_operand): New predicate.
19998 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
19999 (shift-add insns using ASHIFT): New patterns.
20000
20001 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
20002
20003 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
20004 feasible.
20005 (fix_up_fall_thru_edges): Likewise.
20006 (fix_crossing_conditional_branches): Likewise. Promote jump targets
20007 from to rtx_insn to rtx_code_label where feasible.
20008 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
20009 gen_move_insn (returned type changed to rtx_insn).
20010 * builtins.c (expand_errno_check): Fix arguments of
20011 do_compare_rtx_and_jump (now expects rtx_code_label).
20012 (expand_builtin_acc_on_device): Likewise.
20013 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
20014 invert_jump (now exprects rtx_jump_insn).
20015 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
20016 (construct_init_block): Use rtx_code_label.
20017 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
20018 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
20019 calling redirect_jump.
20020 (patch_jump_insn): Likewise.
20021 (redirect_branch_edge): Likewise.
20022 (force_nonfallthru_and_redirect): Likewise.
20023 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
20024 when suitable.
20025 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
20026 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
20027 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
20028 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
20029 to store the value retured by gen_label_rtx.
20030 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
20031 rtx_jump_insn.
20032 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
20033 (split_branches): Fix calls of redirect_jump.
20034 * dojump.c (jumpifnot): Promote argument type from rtx to
20035 rtx_code_label.
20036 (jumpifnot_1): Likewise.
20037 (jumpif): Likewise.
20038 (jumpif_1): Likewise.
20039 (do_jump_1): Likewise.
20040 (do_jump): Likewise. Use rtx_code_label when feasible.
20041 (do_jump_by_parts_greater_rtx): Likewise.
20042 (do_jump_by_parts_zero_rtx): Likewise.
20043 (do_jump_by_parts_equality_rtx): Likewise.
20044 (do_compare_rtx_and_jump): Likewise.
20045 * dojump.h: Update function prototypes.
20046 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
20047 returns rtx_insn).
20048 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
20049 rtx_jump_insn.
20050 (emit_label_before): Likewise.
20051 (emit_jump_insn_after_noloc): Likewise.
20052 (emit_jump_insn_after_setloc): Likewise.
20053 (emit_jump_insn_after): Likewise
20054 (emit_jump_insn_before_setloc): Likewise.
20055 (emit_jump_insn_before): Likewise.
20056 (emit_label_before): Promote return type to rtx_code_label.
20057 (emit_label): Likewise.
20058 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
20059 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
20060 gen_move_insn.
20061 (emit_stack_restore): Likewise.
20062 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
20063 (do_cmp_and_jump): Likewise.
20064 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
20065 from rtx to rtx_code_label.
20066 (gen_move_insn_uncast): New function.
20067 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
20068 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
20069 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
20070 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
20071 invert_jump_1 and redirect_jump_1.
20072 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
20073 do_compare_rtx_and_jump.
20074 (expand_addsub_overflow): Likewise.
20075 (expand_neg_overflow): Likewise.
20076 (expand_mul_overflow): Likewise.
20077 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
20078 return value of gen_move_insn.
20079 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
20080 * loop-doloop.c (add_test): Use rtx_code_label.
20081 (doloop_modify): Likewise.
20082 (doloop_optimize): Likewise.
20083 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
20084 * lra-constraints.c (emit_spill_move): Remove cast of value returned
20085 by gen_move_insn.
20086 (inherit_reload_reg): Add cast when calling dump_insn_slim.
20087 (split_reg): Likewise.
20088 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
20089 gen_move_insn.
20090 * optabs.c (expand_binop_directly): Remove casts of values returned by
20091 maybe_gen_insn.
20092 (expand_unop_direct): Likewise.
20093 (expand_abs): Likewise.
20094 (maybe_emit_unop_insn): Likewise.
20095 (maybe_gen_insn): Promote return type to rtx_insn.
20096 * optabs.h: Update prototype of maybe_gen_insn.
20097 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
20098 redundant cast.
20099 * recog.c (struct peep2_insn_data): Promote type of insn field to
20100 rtx_insn.
20101 (peep2_reinit_state): Use NULL instead of NULL_RTX.
20102 (peep2_attempt): Remove casts of insn in peep2_insn_data.
20103 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
20104 * recog.h (struct insn_gen_fn): Promote return types of function
20105 pointers and operator ().from rtx to rtx_insn.
20106 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
20107 (fill_eager_delay_slots): Likewise.
20108 (relax_delay_slots): Likewise.
20109 (make_return_insns): Likewise.
20110 (dbr_schedule): Likewise.
20111 (optimize_skips): Likewise.
20112 (reorg_redirect_jump): Likewise.
20113 (fill_slots_from_thread): Likewise.
20114 * reorg.h: Update prototypes.
20115 * resource.c (find_dead_or_set_registers): Use dyn_cast to
20116 rtx_jump_insn instead of check. Use it's jump_target method.
20117 * rtl.h (rtx_jump_insn::jump_label): Define new method.
20118 (rtx_jump_insn::jump_target): Define new method.
20119 (rtx_jump_insn::set_jump_target): Define new method.
20120 * rtlanal.c (tablejump_p): Promote type of one local variable.
20121 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
20122 (sched_analyze_insn): Likewise.
20123 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
20124 (print_insn): Likewise.
20125 * stmt.c (label_rtx): Promote return type to rtx_insn.
20126 (force_label_rtx): Likewise.
20127 (jump_target_rtx): Define new function.
20128 (expand_label): Use it, get rid of one cast.
20129 (expand_naked_return): Promote rtx to rtx_code_label.
20130 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
20131 (expand_case): Use rtx_code_label instread of rtx where feasible.
20132 (expand_sjlj_dispatch_table): Likewise.
20133 (emit_case_nodes): Likewise.
20134 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
20135 * store-motion.c (insert_store): Make use of new return type of
20136 gen_move_insn and remove a cast.
20137 (replace_store_insn): Likewise.
20138
20139 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
20140
20141 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
20142 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
20143
20144 2015-05-20 Jeff Law <law@redhat.com>
20145
20146 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
20147 dispose of the jump thread path when the jump threading
20148 opportunity is cancelled.
20149
20150 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
20151
20152 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
20153 when printing the caret character.
20154
20155 2015-05-20 Marek Polacek <polacek@redhat.com>
20156
20157 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
20158
20159 2015-05-20 Marek Polacek <polacek@redhat.com>
20160
20161 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
20162 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
20163 * gimple-fold.c (canonicalize_bool): Likewise.
20164 (same_bool_result_p): Likewise.
20165 * tree-if-conv.c (parse_predicate): Likewise.
20166
20167 2015-05-20 Marek Polacek <polacek@redhat.com>
20168
20169 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
20170 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
20171
20172 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20173
20174 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
20175 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
20176 values.
20177
20178 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
20179
20180 * config/mips/mips.h (micromips_globals): Declare.
20181
20182 2015-05-20 David Malcolm <dmalcolm@redhat.com>
20183
20184 * timevar.def (TV_INITIALIZE_RTL): New.
20185 * toplev.c (initialize_rtl): Use an auto_timevar to account this
20186 function's time to TV_INITIALIZE_RTL.
20187
20188 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
20189
20190 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
20191 gimple_build_nop calls.
20192 (chkp_find_bounds_for_elem): Likewise.
20193 (chkp_get_zero_bounds): Likewise.
20194 (chkp_get_none_bounds): Likewise.
20195 (chkp_get_bounds_by_definition): Likewise.
20196 (chkp_generate_extern_var_bounds): Likewise.
20197 (chkp_get_bounds_for_decl_addr): Likewise.
20198 (chkp_get_bounds_for_string_cst): Likewise.
20199
20200 2015-05-20 Bin Cheng <bin.cheng@arm.com>
20201
20202 PR tree-optimization/65447
20203 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
20204 (dump_use, dump_uses): Support to dump sub use.
20205 (record_use): New parameters to support sub use. Remove call to
20206 dump_use.
20207 (record_sub_use, record_group_use): New functions.
20208 (compute_max_addr_offset, split_all_small_groups): New functions.
20209 (group_address_uses, rewrite_use_address): New functions.
20210 (strip_offset): New declaration.
20211 (find_interesting_uses_address): Call record_group_use.
20212 (add_candidate): New assertion.
20213 (infinite_cost_p): Move definition forward.
20214 (add_costs): Check INFTY cost and return immediately.
20215 (get_computation_cost_at): Clear setup cost and dependent bitmap
20216 for sub uses.
20217 (determine_use_iv_cost_address): Compute cost for sub uses.
20218 (rewrite_use_address_1): Rename from old rewrite_use_address.
20219 (free_loop_data): Free sub uses.
20220 (tree_ssa_iv_optimize_loop): Call group_address_uses.
20221
20222 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
20223 Jim Wilson <jim.wilson@linaro.org>
20224
20225 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
20226 new fields loadv and storev.
20227 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
20228 Initialize loadv and storev.
20229 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
20230 (cortexa53_extra_costs): Likewise.
20231 (cortexa57_extra_costs): Likewise.
20232 (xgene1_extra_costs): Likewise.
20233 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
20234 rtx_costs.
20235
20236 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
20237
20238 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
20239 storev.
20240 (cortexa8_extra_costs): Likewise.
20241 (cortexa5_extra_costs): Likewise.
20242 (cortexa7_extra_costs): Likewise.
20243 (cortexa12_extra_costs): Likewise.
20244 (cortexa15_extra_costs): Likewise.
20245 (v7m_extra_costs): Likewise.
20246
20247 2015-05-20 Jeff Law <law@redhat.com>
20248
20249 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
20250 instead of open-coded version. Also delete the jump thread created
20251 within this function.
20252
20253 2015-05-20 Alan Modra <amodra@gmail.com>
20254
20255 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
20256 stack adjusting insn. Formatting.
20257 (rs6000_emit_prologue): Track stack adjusting insn, and use of
20258 r12. If possible, emit first -fsplit-stack arg pointer insn
20259 before stack adjust. Don't use r12 to save cr if split-stack.
20260
20261 2015-05-20 Alan Modra <amodra@gmail.com>
20262
20263 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
20264 Define.
20265 (rs6000_supports_split_stack): New function.
20266 * gcc/config/rs6000/rs6000.c (machine_function): Add
20267 split_stack_arg_pointer.
20268 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
20269 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
20270 rather than virtual_incoming_args_rtx.
20271 (rs6000_va_start): Likewise.
20272 (split_stack_arg_pointer_used_p): New function.
20273 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
20274 (morestack_ref): New var.
20275 (gen_add3_const, rs6000_expand_split_stack_prologue,
20276 rs6000_internal_arg_pointer, rs6000_live_on_entry,
20277 rs6000_split_stack_space_check): New functions.
20278 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
20279 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
20280 (UNSPECV_SPLIT_STACK_RETURN): Define.
20281 (split_stack_prologue, load_split_stack_limit,
20282 load_split_stack_limit_di, load_split_stack_limit_si,
20283 split_stack_return, split_stack_space_check): New expands and insns.
20284 * gcc/config/rs6000/rs6000-protos.h
20285 (rs6000_expand_split_stack_prologue): Declare.
20286 (rs6000_split_stack_space_check): Declare.
20287
20288 2015-05-20 Alan Modra <amodra@gmail.com>
20289
20290 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
20291 (direct_return): Test vrsave_size rather than vrsave_mask.
20292 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
20293 (rs6000_emit_epilogue): Likewise.
20294
20295 2015-05-20 Alan Modra <amodra@gmail.com>
20296
20297 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
20298 when not saving registers.
20299 (debug_stack_info): Adjust to omit printing unused offsets,
20300 as before.
20301 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
20302 expression.
20303
20304 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20305
20306 PR c++/65835
20307 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
20308 value_type to const char *.
20309
20310 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
20311
20312 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
20313 to build a biarch toolchain again.
20314
20315 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
20316
20317 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
20318 or implicit declarations.
20319 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
20320 into it.
20321 (get_odr_type): Check type has linkage before adding bases.
20322 (register_odr_type): Check that type has linkage before adding it.
20323 (type_known_to_have_no_deriavations_p): Rename to ..
20324 (type_known_to_have_no_derivations_p): This one.
20325 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
20326 (type_known_to_have_no_derivations_p): This one.
20327 * ipa-polymorphic-call.c
20328 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
20329 type has linkage.
20330
20331 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
20332
20333 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
20334 (layout_type): Use RECORD_OR_UNION_TYPE_P.
20335
20336 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20337
20338 * config/s390/s390.c (s390_vector_bool_type_p): New function.
20339 (s390_invalid_binary_op): New function.
20340 (TARGET_INVALID_BINARY_OP): Define macro.
20341
20342 2015-05-19 David Sherwood <david.sherwood@arm.com>
20343
20344 * loop-invariant.c (create_new_invariant): Don't calculate address cost
20345 if mode is not a scalar integer.
20346 (get_inv_cost): Increase computational cost for unused invariants.
20347
20348 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20349
20350 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
20351 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
20352 * config/s390/s390-builtin-types.def: New file.
20353 * config/s390/s390-builtins.def: New file.
20354 * config/s390/s390-builtins.h: New file.
20355 * config/s390/s390-c.c: New file.
20356 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
20357 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
20358 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
20359 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
20360 prototypes.
20361 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
20362 Include.
20363 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
20364 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
20365 variable definitions.
20366 (s390_const_operand_ok): New function.
20367 (s390_expand_builtin): Rewrite.
20368 (s390_init_builtins): New function.
20369 (s390_handle_vectorbool_attribute): New function.
20370 (s390_attribute_table): Add s390_vector_bool attribute.
20371 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
20372 (s390_branch_condition_mask): Generate masks for new modes.
20373 (s390_expand_vec_compare_cc): New function.
20374 (s390_mangle_type): Add mangling for vector bool types.
20375 (enum s390_builtin): Remove.
20376 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
20377 efpc builtins.
20378 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
20379 s390_cpu_cpp_builtins.
20380 (REGISTER_TARGET_PRAGMAS): New macro.
20381 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
20382 (insn_cmp mode attribute): Add new CC modes.
20383 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
20384 (lcbb): New pattern definition.
20385 * config/s390/s390intrin.h: Include vecintrin.h.
20386 * config/s390/t-s390: New file.
20387 * config/s390/vecintrin.h: New file.
20388 * config/s390/vector.md: Include vx-builtins.md.
20389 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
20390 support.
20391
20392 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20393
20394 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
20395 CCVFHE.
20396 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
20397 (s390_select_ccmode): Likewise.
20398 (s390_canonicalize_comparison): Swap operands if necessary.
20399 (s390_expand_vec_compare_scalar): Expand DFmode compare using
20400 single element vector instructions.
20401 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
20402 (s390_branch_condition_mask): Generate CC masks for the new modes.
20403 * config/s390/s390.md (v0, vf, vd): New mode attributes.
20404 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
20405 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
20406 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
20407 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
20408 (*extend<DSF:mode><BFP:mode>2): New insn definition.
20409 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
20410 (extend<DSF:mode><BFP:mode>2): Turn into expander.
20411 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
20412 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
20413 (sqrt<mode>2): Add vector instruction.
20414
20415 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20416
20417 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
20418 constraints.
20419 * config/s390/predicates.md (const0_operand, constm1_operand)
20420 (constable_operand): Accept vector operands.
20421 * config/s390/s390-modes.def: Add supported vector modes.
20422 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
20423 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
20424 (s390_bytemask_vector_p, s390_expand_vec_strlen)
20425 (s390_expand_vec_compare, s390_expand_vcond)
20426 (s390_expand_vec_init): Add prototypes.
20427 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
20428 (s390_vector_mode_supported_p): New function.
20429 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
20430 (s390_contiguous_bitmask_vector_p): New function.
20431 (s390_bytemask_vector_p): New function.
20432 (s390_split_ok_p): Vector regs don't work either.
20433 (regclass_map): Add VEC_REGS.
20434 (s390_legitimate_constant_p): Handle vector constants.
20435 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
20436 (legitimate_reload_vector_constant_p): New function.
20437 (s390_preferred_reload_class): Handle CONST_VECTOR.
20438 (s390_reload_symref_address): Likewise.
20439 (s390_secondary_reload): Vector memory instructions only support
20440 short displacements. Rename reload*_nonoffmem* to reload*_la*.
20441 (s390_emit_ccraw_jump): New function.
20442 (s390_expand_vec_strlen): New function.
20443 (s390_expand_vec_compare): New function.
20444 (s390_expand_vcond): New function.
20445 (s390_expand_vec_init): New function.
20446 (s390_dwarf_frame_reg_mode): New function.
20447 (print_operand): Handle addresses with 'O' and 'R' constraints.
20448 (NR_C_MODES, constant_modes): Add vector modes.
20449 (s390_output_pool_entry): Handle vector constants.
20450 (s390_hard_regno_mode_ok): Handle vector registers.
20451 (s390_class_max_nregs): Likewise.
20452 (s390_cannot_change_mode_class): New function.
20453 (s390_invalid_arg_for_unprototyped_fn): New function.
20454 (s390_function_arg_vector): New function.
20455 (s390_function_arg_float): Remove size variable.
20456 (s390_pass_by_reference): Handle vector arguments.
20457 (s390_function_arg_advance): Likewise.
20458 (s390_function_arg): Likewise.
20459 (s390_return_in_memory): Vector values are returned in a VR if
20460 possible.
20461 (s390_function_and_libcall_value): Handle vector arguments.
20462 (s390_gimplify_va_arg): Likewise.
20463 (s390_call_saved_register_used): Consider the arguments named.
20464 (s390_conditional_register_usage): Disable v16-v31 for non-vec
20465 targets.
20466 (s390_preferred_simd_mode): New function.
20467 (s390_support_vector_misalignment): New function.
20468 (s390_vector_alignment): New function.
20469 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
20470 (TARGET_VECTOR_MODE_SUPPORTED_P)
20471 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
20472 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
20473 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
20474 (TARGET_VECTOR_ALIGNMENT): Define target macro.
20475 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
20476 (FIRST_PSEUDO_REGISTER): Increase value.
20477 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
20478 (VECTOR_REG_P): Define macros.
20479 (FIXED_REGISTERS, CALL_USED_REGISTERS)
20480 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
20481 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
20482 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
20483 Add vector registers.
20484 (CANNOT_CHANGE_MODE_CLASS): Call C function.
20485 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
20486 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
20487 memory.
20488 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
20489 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
20490 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
20491 (VR*_REGNUM): New constants.
20492 (ALL): New mode iterator.
20493 (INTALL): Remove mode iterator.
20494 Include vector.md.
20495 (movti): Implement TImode moves for VRs.
20496 Disable TImode splitter for VR targets.
20497 Implement splitting TImode GPR<->VR moves.
20498 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
20499 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
20500 reload<mode>_la_in, reload<mode>_la_out.
20501 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
20502 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
20503 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
20504 (mov<mode> SF SD): Prefer lder, lde for loading.
20505 Add lrl and strl instructions.
20506 Add vector instructions.
20507 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
20508 Call s390_expand_vec_strlen on z13.
20509 (*cc_to_int): Change predicate to nonimmediate_operand.
20510 (addti3): Rename to *addti3. New expander.
20511 (subti3): Rename to *subti3. New expander.
20512 * config/s390/vector.md: New file.
20513
20514 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20515
20516 * common/config/s390/s390-common.c (processor_flags_table): Add
20517 z13.
20518 * config.gcc: Add z13.
20519 * config/s390/s390-opts.h (enum processor_type): Add
20520 PROCESSOR_2964_Z13.
20521 * config/s390/s390.c (s390_adjust_priority): Check for
20522 PROCESSOR_2964_Z13.
20523 (s390_reorg): Likewise.
20524 (s390_sched_reorder): Likewise.
20525 (s390_sched_variable_issue): Likewise.
20526 (s390_loop_unroll_adjust): Likewise.
20527 (s390_option_override): Likewise. Default to -mvx when available.
20528 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
20529 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
20530 (TARGET_VX_ABI): Define macros.
20531 macros.
20532 (TARGET_DEFAULT): Add MASK_OPT_VX.
20533 * config/s390/s390.md ("cpu" attribute): Add z13.
20534 ("cpu_facility" attribute): Add vec.
20535 * config/s390/s390.opt (processor_type): Add z13.
20536 (mvx): New options.
20537 * doc/invoke.texi: Add z13 option for -march.
20538
20539 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20540
20541 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
20542 mode check to make sure that only scalar integer values are
20543 accepted.
20544
20545 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
20546
20547 * tree.c (verify_type_variant): Fix #undef.
20548 (gimple_canonical_types_compatible_p): Move here from lto.c
20549 (verify_type): Verify TYPE_CANONICAL compatibility.
20550 * tree.h (gimple_canonical_types_compatible_p): Declare.
20551
20552 2015-05-19 Jakub Jelinek <jakub@redhat.com>
20553
20554 PR middle-end/66199
20555 * tree.h (OMP_TEAMS_COMBINED): Define.
20556 * gimplify.c (enum gimplify_omp_var_data): Add
20557 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
20558 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
20559 (omp_notice_variable): Accept both ORT_TEAMS
20560 and ORT_COMBINED_TEAMS. Don't recurse if
20561 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
20562 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
20563 GOVD_FIRSTPRIVATE.
20564 (omp_no_lastprivate): New function.
20565 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
20566 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
20567 notice_outer and set appropriate bits, otherwise make
20568 sure default(none) combined constructs won't complain.
20569 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
20570 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
20571 omp_no_lastprivate either remove the clause or turn it
20572 into OMP_CLAUSE_PRIVATE.
20573 (gimplify_omp_for): Fix up handling of implicit
20574 lastprivate or linear iterators.
20575 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
20576 ORT_COMBINED_TEAMS.
20577 * omp-low.c (lower_omp_for_lastprivate): For combined
20578 for simd use fd.loop.n2 from the for rather than simd.
20579
20580 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20581
20582 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
20583 instead of gen_rtx_raw_REG.
20584 (cris_expand_epilogue): Likewise.
20585 * config/microblaze/microblaze.c (microblaze_classify_address):
20586 Likewise.
20587 * config/sparc/sparc.md: Likewise.
20588
20589 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
20590
20591 * config/alpha/alpha.c (alpha_legitimize_reload_address)
20592 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
20593 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
20594 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
20595 Use CASE_CONST_SCALAR_INT.
20596 (print_operand) <case 'M'>: Use mode_width_operand to check the
20597 value of the constant.
20598 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
20599 * config/alpha/predicates.md (input_operand): Use general_operand
20600 instead of match_code as operand check.
20601 (symbolic_operand): Use match_code with subexpression digits.
20602 * config/alpha/constraints.md (Q): Ditto.
20603
20604 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20605
20606 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
20607
20608 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20609
20610 * config/s390/s390.c (s390_secondary_reload): Fix check for
20611 load/store relative.
20612
20613 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20614
20615 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
20616 alternative_mask to uint64_t.
20617
20618 2015-05-19 Jakub Jelinek <jakub@redhat.com>
20619
20620 PR tree-optimization/66187
20621 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
20622 Pass TYPE_SIGN to tree_int_cst_min_precision. If
20623 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
20624
20625 2015-05-19 David Malcolm <dmalcolm@redhat.com>
20626
20627 * diagnostic.c (diagnostic_report_current_module): Strengthen
20628 local "new_map" from const line_map * to
20629 const line_map_ordinary *.
20630 * genmatch.c (error_cb): Likewise for local "map".
20631 (output_line_directive): Likewise for local "map".
20632 * input.c (expand_location_1): Likewise for local "map".
20633 Pass NULL rather than &map to
20634 linemap_unwind_to_first_non_reserved_loc, since the value is never
20635 read from there, and the value written back not read from here.
20636 (is_location_from_builtin_token): Strengthen local "map" from
20637 const line_map * to const line_map_ordinary *.
20638 (dump_location_info): Strengthen locals "map" from
20639 line_map *, one to const line_map_ordinary *, the other
20640 to const line_map_macro *.
20641 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
20642 const line_map * to const line_map_macro *.
20643 (maybe_unwind_expanded_macro_loc): Add a call to
20644 linemap_check_macro when writing to the "map" field of the
20645 loc_map_pair.
20646 Introduce local const line_map_ordinary * "ord_map", using it in
20647 place of "map" in the part of the function where we know we have
20648 an ordinary map. Strengthen local "m" from const line_map * to
20649 const line_map_ordinary *.
20650
20651 2015-05-19 Nick Clifton <nickc@redhat.com>
20652
20653 PR target/66156
20654 * config/msp430/msp430.md (zero_extendhisi2): Add support for
20655 separate source and destination registers.
20656
20657 2015-05-19 Richard Biener <rguenther@suse.de>
20658
20659 PR tree-optimization/66165
20660 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
20661 for no load permutation.
20662
20663 PR tree-optimization/66185
20664 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
20665 when building the SLP node from scalars.
20666
20667 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
20668 Tristan Gingold <gingold@adacore.com>
20669
20670 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
20671 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
20672 (expand_stack_restore): Call record_new_stack_level.
20673 (expand_stack_save): Do not call do_pending_stack_adjust.
20674 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
20675 * calls.c (expand_call): Call record_new_stack_level for alloca.
20676 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
20677 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
20678 (update_sjlj_context): New global function.
20679 * except.h (update_sjlj_context): Declare.
20680 * explow.c (record_new_stack_level): New global function.
20681 (allocate_dynamic_stack_space): Call record_new_stack_level.
20682 * explow.h (record_new_stack_level): Declare.
20683 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
20684 * cfgrtl.c (duplicate_insn_chain): Likewise.
20685
20686 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20687
20688 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
20689 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
20690 STACK_GROWS_DOWNWARD as normal if.
20691 (expand_call): Likewise.
20692
20693 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
20694
20695 PR target/54236
20696 * config/sh/sh.md (*round_int_even): New insn_and_split and
20697 accompanying new unnamed split.
20698
20699 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20700
20701 * bitmap.c (bitmap_set_range): Handle count==1 specially.
20702 (bitmap_clear_range): Likewise.
20703 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
20704 bitmap_set_range unconditionally.
20705 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
20706 * df-scan.c (df_mark_reg): Likewise.
20707 * haifa-sched.c (setup_ref_regs): Likewise.
20708 * sched-rgn.c (update_live_1): Likewise.
20709
20710 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20711
20712 * regs.h (END_HARD_REGNO): Delete.
20713 (END_REGNO): Move to...
20714 * rtl.h: ...here.
20715 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
20716 * caller-save.c (mark_set_regs): Likewise.
20717 * combine.c (move_deaths, distribute_notes): Likewise.
20718 * cse.c (invalidate, invalidate_for_call): Likewise.
20719 * df-scan.c (df_ref_record): Likewise.
20720 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
20721 (record_last_reg_set_info): Likewise.
20722 * reg-stack.c (convert_regs_exit): Likewise.
20723 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
20724 * resource.c (update_live_status): Likewise.
20725 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
20726
20727 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20728
20729 * rtl.h (reg_info): Add an nregs field.
20730 (REG_NREGS): Use it.
20731 (SET_REGNO_RAW): Delete.
20732 (set_regno_raw): New function.
20733 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
20734 (END_REGNO): Redefine in terms of REG_NREGS.
20735 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
20736 SET_REGNO_RAW.
20737 * emit-rtl.c (set_mode_and_regno): Likewise.
20738 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
20739 instead of SET_REGNO_RAW.
20740
20741 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20742
20743 * rtl.h (PUT_MODE_RAW): New macro.
20744 (PUT_REG_NOTE_KIND): Use it.
20745 (set_mode_and_regno): Declare.
20746 (gen_raw_REG): Change regno to "unsigned int".
20747 (gen_rtx_REG): Change "unsigned" to "unsigned int".
20748 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
20749 use set_mode_and_regno to change the mode of registers.
20750 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
20751 * emit-rtl.c (set_mode_and_regno): New function.
20752 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
20753 * caller-save.c (reg_save_code): Use set_mode_and_regno.
20754 * expr.c (init_expr_target): Likewise.
20755 * ira.c (setup_prohibited_mode_move_regs): Likewise.
20756 * postreload.c (reload_cse_simplify_operands): Likewise.
20757
20758 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20759
20760 * caller-save.c (init_caller_save): Use word_mode and
20761 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
20762 * expr.c (init_expr_target): Likewise.
20763 * ira.c (setup_prohibited_mode_move_regs): Likewise.
20764 * postreload.c (reload_cse_regs_1): Likewise.
20765
20766 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20767
20768 * rtl.def (REG): Change format to "r".
20769 * rtl.h (rtunion): Remove rt_reg.
20770 (reg_info): New structure.
20771 (rtx_def): Add reg field to main union.
20772 (X0REGATTR): Delete.
20773 (REG_CHECK): New macro.
20774 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
20775 * rtl.c (rtx_format): Document "r".
20776 (rtx_code_size): Handle REG specially.
20777 * gengenrtl.c (special_format): Return true for formats
20778 that include 'r'.
20779 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
20780 Deal with REG_ATTRS after the field loop.
20781 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
20782 * expmed.c (init_expmed): Call gen_raw_REG instead of
20783 gen_rtx_raw_REG.
20784 * expr.c (init_expr_target): Likewise.
20785 * regcprop.c (maybe_mode_change): Likewise.
20786 * varasm.c (make_decl_rtl): Likewise.
20787 * final.c (leaf_renumber_regs_insn): Return early after
20788 handling REGs.
20789 * genemit.c (gen_exp): Handle 'r' fields.
20790 * genpeep.c (match_rtx): Likewise.
20791 * gensupport.c (subst_pattern_match): Likewise.
20792 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
20793 (alter_constraints, subst_dup): Likewise.
20794 * read-rtl.c (read_rtx_code): Likewise.
20795 * print-rtl.c (print_rtx): Likewise.
20796 * genrecog.c (find_operand, find_matching_operand): Likewise.
20797 (validate_pattern, match_pattern_2): Likewise.
20798 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
20799 (rtx_test::regno_field): New function.
20800 (operator ==, safe_to_hoist_p, transition_parameter_type)
20801 (parameter_type_string, print_parameter_value)
20802 (print_nonbool_test, print_test): Handle new enum values.
20803 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
20804 * lra-constraints.c (operands_match_p): Likewise.
20805
20806 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20807
20808 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
20809 Change type of new_regno to unsigned int.
20810 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
20811 new_regno to unsigned int.
20812 (df_ref_change_reg_with_loc): Remove old_regno parameter.
20813 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
20814 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
20815 (SET_REGNO_RAW): Add space after ",".
20816
20817 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20818
20819 * rtl.h (REG_NREGS): New macro
20820 * alias.c (record_set): Use it.
20821 * cfgcleanup.c (mark_effect): Likewise.
20822 * combine.c (likely_spilled_retval_1): Likewise.
20823 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
20824 (move_deaths, distribute_notes): Likewise.
20825 * cselib.c (cselib_record_set): Likewise.
20826 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
20827 * df-scan.c (df_mark_reg): Likewise.
20828 * dse.c (look_for_hardregs): Likewise.
20829 * dwarf2out.c (reg_loc_descriptor): Likewise.
20830 (multiple_reg_loc_descriptor): Likewise.
20831 * expr.c (write_complex_part, read_complex_part): Likewise.
20832 (emit_move_complex): Likewise.
20833 * haifa-sched.c (setup_ref_regs): Likewise.
20834 * ira-lives.c (mark_hard_reg_live): Likewise.
20835 * lra.c (lra_set_insn_recog_data): Likewise.
20836 * mode-switching.c (create_pre_exit): Likewise.
20837 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
20838 (reload_combine_recognize_pattern): Likewise.
20839 (reload_combine_note_use, move2add_record_mode): Likewise.
20840 (reload_cse_move2add): Likewise.
20841 * reg-stack.c (subst_stack_regs_pat): Likewise.
20842 * regcprop.c (kill_value, copy_value): Likewise.
20843 (copyprop_hardreg_forward_1): Likewise.
20844 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
20845 (build_def_use): Likewise.
20846 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
20847 (deps_analyze_insn): Likewise.
20848 * sched-rgn.c (check_live_1, update_live_1): Likewise.
20849 * sel-sched.c (count_occurrences_equiv): Likewise.
20850 * valtrack.c (dead_debug_insert_temp): Likewise.
20851
20852 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20853
20854 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
20855 * dse.c (note_add_store): Likewise.
20856 * ira-lives.c (mark_hard_reg_dead): Likewise.
20857 * loop-invariant.c (mark_reg_store): Likewise.
20858 (mark_reg_death): Likewise.
20859 * postreload.c (reload_combine): Likewise.
20860 (reload_combine_note_store): Likewise.
20861 (reload_combine_note_use): Likewise.
20862 * recog.c (peep2_reg_dead_p): Likewise.
20863
20864 2015-05-19 Alan Modra <amodra@gmail.com>
20865
20866 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
20867 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
20868 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
20869 unused predicates.
20870 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
20871 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
20872 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
20873 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
20874
20875 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
20876
20877 * config/mips/mips.md (JOIN_MODE): New mode iterator.
20878 (join2_load_Store<JOIN_MODE:mode>): New pattern.
20879 (join2_loadhi): Likewise.
20880 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
20881 load-load and store-stores.
20882 * config/mips/mips.opt (mload-store-pairs): New option.
20883 (TARGET_LOAD_STORE_PAIRS): New macro.
20884 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
20885 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
20886 * config/mips/mips.c (mips_load_store_bonding_p): New function.
20887
20888 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
20889
20890 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
20891 explicit swaps.
20892 * dojump.c (do_compare_rtx_and_jump): Likewise.
20893 * expmed.c (emit_store_flag_1): Likewise.
20894 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
20895 * final.c (sprint_ul): Use std::reverse for reversing a string.
20896 * fold-const.c (extract_muldiv_1): Use std::swap.
20897 * genmodes.c (emit_mode_int_n): Likewise.
20898 * ifcvt.c (dead_or_predicable): Likewise.
20899 * ira-build.c (ira_merge_live_ranges): Likewise.
20900 (swap_allocno_copy_ends_if_necessary): Likewise.
20901 * ira.c (ira_setup_alts): Likewise.
20902 * loop-iv.c (iv_analyze_expr): Likewise.
20903 (implies_p): Likewise.
20904 (canon_condition): Likewise.
20905 * lra-constraints.c (swap_operands): Likewise.
20906 * lra-lives.c (lra_merge_live_ranges): Likewise.
20907 * omega.c (swap): Remove.
20908 (bswap): Remove.
20909 (omega_unprotect_1): Use std::swap.
20910 (omega_solve_geq): Likewise.
20911 * optabs.c (expand_binop_directly): Likewise.
20912 (expand_binop): Likewise.
20913 (emit_conditional_move): Likewise.
20914 (emit_conditional_add): Likewise.
20915 * postreload.c (reload_cse_simplify_operands): Likewise.
20916 * reg-stack.c (emit_swap_insn): Likewise.
20917 (swap_to_top): Likewise.
20918 (compare_for_stack_reg): Likewise.
20919 (subst_asm_stack_regs): Likewise.
20920 * reload.c (find_reloads): Likewise.
20921 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
20922 * sel-sched.c (invoke_reorder_hooks): Likewise.
20923 (create_block_for_bookkeeping): Likewise.
20924 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
20925 (lambda_matrix_right_hermite): Use std::swap.
20926 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
20927 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
20928 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
20929 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
20930 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
20931 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
20932 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
20933 * tree-vrp.c (compare_ranges): Likewise.
20934 * var-tracking.c (add_with_sets): Likewise.
20935 (vt_find_locations): Likewise.
20936
20937 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
20938
20939 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
20940 pie executables.
20941 (FBSD_ENDFILE_SPEC): Likewise.
20942 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
20943 config/freebsd-spec.h.
20944 (ENDFILE_SPEC): Likewise.
20945
20946 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
20947 Richard Henderson <rth@redhat.com>
20948
20949 PR target/57032
20950 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
20951 Check for a memory location that is not a reference (using an AND)
20952 to an unaligned location here.
20953 * config/alpha/predicates.md (normal_memory_operand): Remove.
20954
20955 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
20956
20957 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
20958 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
20959
20960 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
20961
20962 * config/mips/mips.c (micromips_globals): New variable.
20963 (mips_set_compression_mode): Save and reinitialize target-dependent
20964 state for microMIPS.
20965
20966 2015-05-18 Martin Liska <mliska@suse.cz>
20967
20968 * dbgcnt.def: Add new counter.
20969 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
20970
20971 2015-05-18 Martin Liska <mliska@suse.cz>
20972
20973 * dbgcnt.def: Sort counters.
20974 * opts.c (common_handle_option): Do not compile if
20975 -fdbg-cnt-list is enabled.
20976
20977 2015-05-18 Tom de Vries <tom@codesourcery.com>
20978
20979 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
20980 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
20981 address operator to va_list operand.
20982 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
20983 unconditionally.
20984 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
20985 operand.
20986 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
20987 * config/s390/s390.c (s390_gimplify_va_arg): Same.
20988 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
20989
20990 2015-05-18 Tom de Vries <tom@codesourcery.com>
20991
20992 * tree-ssa-tail-merge.c: Fix whitespace.
20993
20994 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
20995
20996 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
20997 cortex-a17, and cortex-a17.cortex-a7.
20998
20999 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
21000
21001 PR target/54236
21002 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
21003
21004 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
21005
21006 PR target/66174
21007 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
21008 QImode inner modes for TARGET_AVX512BW. Force mask operand
21009 to a register for AVX512F modes.
21010
21011 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
21012
21013 * toplev.c (emit_debug_global_declarations): Do not output debug info
21014 when doing slim LTO objects.
21015
21016 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
21017
21018 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
21019 odr_types_equivalent_p): Declare.
21020 (odr_type_p): Use gcc_checking_assert.
21021 (type_in_anonymous_namespace_p) Declare.
21022 (type_with_linkage_p): Declare.
21023 * common.opt (Wlto-type-mismatch): New warning.
21024 * ipa-devirt.c (compound_type_base): New function.
21025 (odr_or_derived_type_p): New function.
21026 (odr_types_equivalent_p): New function.
21027 (add_type_duplicate): Simplify.
21028 (type_with_linkage_p): Add hack to prevent false positives on C types
21029 (type_in_anonymous_namespace_p): Likewise.
21030 * tree.c (need_assembler_name_p): Use type_with_linkage.
21031 * tree.h (type_in_anonymous_namespace_p): Remove.
21032 * doc/invoke.texi (-Wlto-type-mismatch): Document
21033
21034 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
21035
21036 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
21037 (verify_type): Verify STRING_FLAG.
21038
21039 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
21040
21041 PR fortran/44054
21042 * tree-pretty-print.c (percent_K_format): Replace locus pointer
21043 with accessor function.
21044 * tree-diagnostic.c (diagnostic_report_current_function): Use
21045 diagnostic_location function.
21046 (maybe_unwind_expanded_macro_loc): Likewise.
21047 (virt_loc_aware_diagnostic_finalizer): Likewise.
21048 (default_tree_printer): Replace locus pointer with accessor function.
21049 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
21050 (diagnostic_set_info_translated): Initialize second location.
21051 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
21052 (diagnostic_show_locus): Handle two locations. Call
21053 diagnostic_print_caret_line.
21054 (diagnostic_print_caret_line): New.
21055 (default_diagnostic_starter): Use diagnostic_location function.
21056 (diagnostic_report_diagnostic): Use diagnostic_location function.
21057 (verbatim): Do not set text.locus.
21058 * diagnostic.h (struct diagnostic_info): Remove location field.
21059 (struct diagnostic_context): Make caret_chars an array of two.
21060 (diagnostic_location): New inline.
21061 (diagnostic_expand_location): Handle two locations.
21062 (diagnostic_same_line): New inline.
21063 (diagnostic_print_caret_line): Declare.
21064 (CARET_LINE_MARGIN): New constant.
21065 * pretty-print.c (pp_printf): Do not set text.locus.
21066 (pp_verbatim): Do not set text.locus.
21067 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
21068 (struct text_info): Replace locus pointer with locations
21069 array. Add accessor functions.
21070
21071 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
21072 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21073
21074 PR target/65768
21075 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
21076 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
21077 large constants in register instead of splitting them.
21078
21079 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
21080
21081 PR target/66140
21082 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
21083 replacements in memory addresses.
21084 (get_unaligned_address): Ditto.
21085
21086 2015-05-16 James Bowman <james.bowman@ftdichip.com>
21087
21088 * config/ft32/*: New files for FT32 port.
21089 * doc/install.texi: Add FT32 information.
21090 * doc/invoke.texi: Add FT32 information.
21091 * doc/md.texi: Add FT32 information.
21092 * doc/contrib.texi: Self added.
21093
21094 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
21095
21096 PR tree-optimization/64454
21097 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
21098 (-1 - A -> ~A): Remove unnecessary condition.
21099
21100 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
21101
21102 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
21103 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
21104 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
21105
21106 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
21107
21108 * ipa-chkp.h (chkp_wrap_function): New.
21109 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
21110 (chkp_wrap_function_name): New.
21111 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
21112 to get wrapper name.
21113 * lto-cgraph.c: Include ipa-chkp.h.
21114 (input_cgraph_1): Avoid alias chain for wrappers.
21115
21116 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
21117
21118 PR middle-end/66134
21119 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
21120 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
21121
21122 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21123
21124 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
21125 (AARCH64_FL_SLOWMUL): Delete.
21126 (AARCH64_FL_CRC): Redefine to 1<<3.
21127 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
21128
21129 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21130
21131 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
21132 casting.
21133
21134 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
21135
21136 * config/alpha/alpha.md (extendqidi2): Use general_operand
21137 instead of some_operand for operand[1] predicate.
21138 (extendhidi2): Ditto.
21139 (cbranchdi4): Use general_operand instead of some_operand
21140 for operand[1] and operands[2] predicates.
21141 (cstoredi4): Ditto.
21142 * config/alpha/predicates.md (some_operand): Remove unused predicate.
21143 (some_ni_operand): Ditto.
21144
21145 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
21146
21147 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
21148 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
21149 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
21150 low part of the constant using alpha_emit_set_const_1.
21151 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
21152
21153 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
21154
21155 * varasm.c (output_constant_pool_1): Pass down alignment from
21156 constant pool entry's descriptor to output_constant_pool_2.
21157 (output_object_block): Add comment prior to call to
21158 output_constant_pool_1.
21159
21160 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
21161
21162 PR rtl-optimization/65862
21163 * target.def (ira_change_pseudo_allocno_class): New hook.
21164 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
21165 value of the hook.
21166 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
21167 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
21168 hook.
21169 * ira-costs.c (find_costs_and_classes): Call the hook and change
21170 classes when it is necessary.
21171 * doc/tm.texi: Update.
21172
21173 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
21174
21175 * config/i386/i386.md (sibcall_memory): Check that register with
21176 callee address is not also used as one of the arguments, instead
21177 of checking that it is not live after the sibcall.
21178 (sibcall_pop_memory): Ditto.
21179 (sibcall_value_memory): Ditto.
21180 (sibcall_value_pop_memory): Ditto.
21181
21182 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
21183
21184 * generic-match-head.c (types_match): Handle non-types.
21185 * gimple-match-head.c (types_match): Likewise.
21186 * match.pd: Remove unnecessary TREE_TYPE for types_match.
21187
21188 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
21189
21190 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
21191 (csneg3<mode>_insn): Enable expansion of pattern.
21192
21193 2015-05-14 Nick Clifton <nickc@redhat.com>
21194
21195 * config/rl78/rl78.c (rl78_select_section): Select the correct
21196 default section based upon the category of the decl.
21197
21198 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
21199
21200 PR rtl-optimization/30967
21201 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
21202 destination mode for the cost of scc patterns.
21203
21204 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
21205
21206 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
21207 using SWIM248 mode iterator.
21208 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
21209 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
21210 for operand[2] constraint.
21211 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
21212
21213 2015-05-13 Jakub Jelinek <jakub@redhat.com>
21214
21215 PR middle-end/66133
21216 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
21217 make sure it is never noreturn, even when the task body does not
21218 return.
21219 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
21220 right before GIMPLE_OMP_RETURN.
21221 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
21222 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
21223 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
21224
21225 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21226
21227 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
21228 * tree-ssa-math-opts.c: Include params.h
21229 (pow_synth_sqrt_info): New struct.
21230 (representable_as_half_series_p): New function.
21231 (get_fn_chain): Likewise.
21232 (print_nested_fn): Likewise.
21233 (dump_fractional_sqrt_sequence): Likewise.
21234 (dump_integer_part): Likewise.
21235 (expand_pow_as_sqrts): Likewise.
21236 (gimple_expand_builtin_pow): Use above to attempt to expand
21237 pow as series of square roots. Removed now unused variables.
21238
21239 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
21240
21241 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
21242 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
21243 Remove *p0 and *p1 arguments. Rewrite function.
21244 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
21245 (alpha_split_const_mov): Update calls to alpha_extract_integer and
21246 alpha_emit_set_long_const.
21247 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
21248 (alpha_output_mi_thunk_osf): Ditto.
21249 * config/alpha/alpha.md (movti): Do not check operands[1]
21250 for CONST_DOUBLE.
21251
21252 2015-05-13 Richard Biener <rguenther@suse.de>
21253
21254 PR tree-optimization/66129
21255 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
21256 commutative.
21257 (vect_schedule_slp_instance): Fix typo.
21258
21259 2015-05-13 David Malcolm <dmalcolm@redhat.com>
21260
21261 * common.opt (fdump-internal-locations): New option.
21262 * input.c: Include diagnostic-core.h.
21263 (get_end_location): New function.
21264 (write_digit): New function.
21265 (write_digit_row): New function.
21266 (dump_location_range): New function.
21267 (dump_labelled_location_range): New function.
21268 (dump_location_info): New function.
21269 * input.h (dump_location_info): New prototype.
21270 * toplev.c (compile_file): Handle flag_dump_locations.
21271
21272 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
21273
21274 * gimple-expr.h (is_gimple_constant): Reorder.
21275 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
21276
21277 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
21278
21279 * combine.c (simplify_set): When generating a CC set, if the
21280 source already is in the correct mode, do not wrap it in a
21281 compare. Simplify the rest of that code.
21282
21283 2015-05-13 Richard Biener <rguenther@suse.de>
21284
21285 PR tree-optimization/66123
21286 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
21287 a taken edge.
21288
21289 2015-05-13 Richard Biener <rguenther@suse.de>
21290
21291 PR middle-end/66110
21292 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
21293 specially.
21294 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
21295
21296 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
21297
21298 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
21299 * aclocal.m4: Regenerated with automake-1.11.6.
21300
21301 2015-05-13 Tom de Vries <tom@codesourcery.com>
21302
21303 PR tree-optimization/66010
21304 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
21305 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
21306 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
21307 and rval based on do_deref.
21308
21309 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
21310
21311 PR target/65103
21312 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
21313 link time constants into adress expressions and therefore set
21314 their cost to 0.
21315
21316 2015-05-13 Jakub Jelinek <jakub@redhat.com>
21317
21318 PR target/66112
21319 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
21320 Use SWI248 iterator instead of SWI.
21321 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
21322 Use eq_attr "alternative" "0" instead of match_test in
21323 length_immediate attribute computation.
21324 (*mulvhi4, *mulvhi4_1): New define_insns.
21325
21326 PR target/66112
21327 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
21328 SIGNED to get precision of non-negative value.
21329
21330 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
21331
21332 PR target/66048
21333 * function.c (diddle_return_value_1): Process bounds first.
21334 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
21335 register.
21336
21337 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
21338
21339 PR rtl-optimization/64616
21340 * loop-invariant.c (can_move_invariant_reg): New.
21341 (move_invariant_reg): Call above new function to decide whether
21342 instruction can just be moved, skipping creation of temporary
21343 register.
21344
21345 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
21346
21347 PR target/pr66047.c
21348 * i386.c (ix86_function_sseregparm): Only return -1 if local function
21349 with implied regparm is called from -mno-sse function.
21350 (init_cumulative_args): Output error if ix86_function_sseregparm
21351 return -1 and SSE register would be needed.
21352 (function_arg_advance_32): Likewise.
21353 (function_arg_32): Likewise.
21354 * i386.h (ix86_args): Add decl field.
21355
21356 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
21357
21358 PR ipa/65873
21359 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
21360 inlines across optimization boundary.
21361
21362 2015-05-12 Jason Merrill <jason@redhat.com>
21363
21364 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
21365 string literal and macro name.
21366
21367 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
21368
21369 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
21370 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
21371 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
21372
21373 2015-05-12 David Malcolm <dmalcolm@redhat.com>
21374
21375 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
21376 (-Wmisleading-indentation): New option.
21377 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
21378
21379 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
21380
21381 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
21382 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
21383 (alpha_extract_integer): Ditto.
21384 (alpha_legitimate_constant_p): Ditto.
21385 (alpha_split_tmode_pair): Ditto.
21386 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
21387 (alpha_expand_mov): Ditto.
21388 (print_operand): Remove handling of 'H' modifier.
21389 <case 'm'>: Remove CONST_DOUBLE handling.
21390 (summarize_insn): Handle CONST_WIDE_INT.
21391 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
21392 (anddi3): Ditto.
21393 (movti): Handle CONST_WIDE_INT.
21394 * config/alpha/constraints.md ('H'): Remove constraint definition.
21395 ('G'): Do not match MODE_FLOAT class.
21396 * config/alpha/predicates.md (const0_operand): Also match
21397 const_wide_int.
21398 (non_add_const_operand): Ditto.
21399 (non_zero_const_operand): Ditto.
21400 (some_operand): Ditto.
21401 (input_operand): Ditto. Handle CONST_WIDE_INT.
21402 (and_operand): Do not match const_double.
21403 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
21404
21405 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
21406
21407 PR target/65697
21408 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
21409 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
21410 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
21411 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
21412 is_mm_seq_cst, is_mm_sync): New accessor functions.
21413 * builtins.c (expand_builtin_sync_operation,
21414 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
21415 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
21416 (get_memmodel, expand_builtin_atomic_compare_exchange,
21417 expand_builtin_atomic_load, expand_builtin_atomic_store,
21418 expand_builtin_atomic_clear): Use new accessor routines.
21419 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
21420 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
21421 (maybe_emit_sync_lock_test_and_set): Use new accessors and
21422 MEMMODEL_SYNC_ACQUIRE.
21423 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
21424 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
21425 expand_atomic_store): Use new accessors.
21426 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
21427 * tsan.c (instrument_builtin_call): Update check for memory model beyond
21428 final enum to use MEMMODEL_LAST.
21429 * c-family/c-common.c: Use new accessor for memmodel_base.
21430 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
21431 accessors.
21432 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
21433 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
21434 mem_thread_fence, *dmb): Likewise.
21435 * config/alpha/alpha.c (alpha_split_compare_and_swap,
21436 alpha_split_compare_and_swap_12): Likewise.
21437 * config/arm/arm.c (arm_expand_compare_and_swap,
21438 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
21439 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
21440 atomic_loaddi): Likewise.
21441 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
21442 Likewise.
21443 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
21444 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
21445 use new accessors.
21446 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
21447 atomic_store<mode>, atomic_compare_and_swap<mode>,
21448 atomic_exchange<mode>): Use new accessors.
21449 * config/mips/mips.c (mips_process_sync_loop): Likewise.
21450 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
21451 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
21452 rs6000_post_atomic_barrier): Add new cases.
21453 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
21454 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
21455 (atomic_load<mode>): Add new cases and use new accessors.
21456 (store_quadpti): Add new cases.
21457 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
21458 accessors.
21459 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
21460 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
21461 model, not 8.
21462
21463 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
21464
21465 * ipa-devirt.c (type_with_linkage_p): New function.
21466 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
21467 type has linkage.
21468 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
21469 (can_be_name_hashed_p): Simplify.
21470 (hash_odr_name): Check that type has linkage before checking if it is
21471 anonymous.
21472 (types_same_for_odr): Likewise.
21473 (odr_name_hasher::equal): Likewise.
21474 (odr_subtypes_equivalent_p): Likewise.
21475 (warn_types_mismatch): Likewise.
21476 (get_odr_type): Likewise.
21477 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
21478 * ipa-utils.h (odr_type_p): Move offline.
21479 * tree.c (need_assembler_name_p): Fix handling of types
21480 without linkages.
21481 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
21482
21483 2015-05-12 David Malcolm <dmalcolm@redhat.com>
21484
21485 * timevar.c (timevar_enable): Delete in favor of...
21486 (g_timer): New global.
21487 (struct timevar_def): Move to timevar.h inside class timer.
21488 (struct timevar_stack_def): Likewise.
21489 (timevars): Delete global in favor of field "m_timevars" within
21490 class timer in timevar.h
21491 (stack): Likewise, in favor of field "m_stack".
21492 (unused_stack_instances): Likewise, in favor of field
21493 "m_unused_stack_instances".
21494 (start_time): Likewise, in favor of field "m_start_time".
21495 (get_time): Eliminate check for timevar_enable.
21496 (timer::timer): New function, built from part of timevar_init.
21497 (timevar_init): Rewrite idempotency test from using
21498 "timevar_enable" bool to using dynamic allocation of "g_timer".
21499 Move rest of implementation into timer's constructor.
21500 (timevar_push_1): Rename to...
21501 (timer::push): ...this, adding "m_" prefixes to variables that
21502 are now fields of timer.
21503 (timevar_pop_1): Likewise, rename to...
21504 (timer::pop): ...this, and add "m_" prefixes.
21505 (timevar_start): Replace test for "timevar_enable" with one for
21506 "g_timer", and move bulk of implementation to...
21507 (timer::start): ...here, adding "m_" prefixes.
21508 (timevar_stop): Likewise, from here...
21509 (timer::stop): ...to here.
21510 (timevar_cond_start): Likewise, from here...
21511 (timer::cond_start): ...to here.
21512 (timevar_cond_stop): Likewise, from here...
21513 (timer::cond_stop): ...to here.
21514 (validate_phases): Rename to...
21515 (timer::validate_phases): ...this, and add "m_" prefixes. Make
21516 locals "total" and "tv" const.
21517 (timevar_print): Rename to...
21518 (timer::print): ...this, and add "m_" prefixes. Make locals
21519 "total" and "tv" const. Eliminate test for timevar_enable.
21520 * timevar.h (timevar_enable): Eliminate.
21521 (g_timer): New declaration.
21522 (timevar_push_1): Eliminate.
21523 (timevar_pop_1): Eliminate.
21524 (timevar_print): Eliminate.
21525 (class timer): New class.
21526 (timevar_push): Rewrite to use g_timer.
21527 (timevar_pop): Likewise.
21528 * toplev.c (toplev::~toplev): Likewise.
21529
21530 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
21531
21532 * arm-protos.h (arm_sched_autopref): Delete.
21533 (tune_params): Re-organize, use enums for flag values.
21534 (FUSE_OPS): New macro.
21535 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
21536 (ARM_PREFETCH_BENEFICIAL): Likewise.
21537 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
21538 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
21539 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
21540 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
21541 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
21542 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
21543 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
21544 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
21545 format.
21546 (arm_option_override, thumb2_reorg, arm_print_tune_info)
21547 (aarch_macro_fusion_pair_p): Update uses of current_tune.
21548 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
21549
21550 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
21551
21552 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
21553 "break".
21554
21555 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
21556 Sandra Loosemore <sandra@codesourcery.com>
21557
21558 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
21559 value.
21560 (REG_CLASS_NAMES): Add "IJMP_REGS".
21561 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
21562 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
21563 use new "c" register constraint.
21564 * config/nios2/constraint.md (c): New register constraint
21565 corresponding to IJMP_REGS.
21566
21567 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
21568
21569 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
21570 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
21571 define_splits): Delete, revamp, transmogrify into ...
21572 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
21573 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
21574 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
21575 New.
21576
21577 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
21578
21579 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
21580 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
21581
21582 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
21583
21584 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
21585 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
21586 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
21587 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
21588 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
21589 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
21590 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
21591 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
21592 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
21593 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
21594 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
21595 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
21596 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
21597 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
21598 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
21599 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
21600 and 30 corresponding splitters): Delete.
21601
21602 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
21603
21604 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
21605 zero_extract.
21606
21607 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
21608
21609 * combine.c (recog_for_combine_1): New function, factored out
21610 from recog_for_combine.
21611 (change_zero_ext): New function.
21612 (recog_for_combine): If recog fails, try again with the pattern
21613 modified by change_zero_ext; if that still fails, restore the
21614 pattern.
21615
21616 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
21617
21618 * combine.c (get_undo_marker): New function.
21619 (undo_to_marker): New function, largely factored out from ...
21620 (undo_all): ... this. Adjust.
21621
21622 2015-05-12 Richard Biener <rguenther@suse.de>
21623
21624 PR tree-optimization/66101
21625 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
21626 fixup if we turn a loop exit edge to a fallthru edge.
21627
21628 2015-05-12 Richard Biener <rguenther@suse.de>
21629
21630 PR tree-optimization/37021
21631 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
21632 (SLP_TREE_TWO_OPERATORS): New define.
21633 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
21634 SLP_TREE_TWO_OPERATORS.
21635 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
21636 SLP node.
21637 (vect_build_slp_tree): Adjust.
21638 (vect_analyze_slp_cost_1): Likewise.
21639 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
21640 emitting two vector stmts and mixing the results.
21641
21642 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
21643
21644 * call.c (print_z_candidates): Remove dead code.
21645
21646 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21647
21648 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
21649 and zEC12_simple_fp.
21650 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
21651 to 1.
21652
21653 2015-05-12 Tom de Vries <tom@codesourcery.com>
21654
21655 PR tree-optimization/66010
21656 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
21657 ifn_va_arg.
21658 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
21659 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
21660 va_lists are passed, and remove corresponding handling.
21661 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
21662 do_deref argument to ifn_va_arg.
21663 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
21664 ifn_va_arg.
21665
21666 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21667
21668 PR target/65955
21669 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
21670 REG before taking its REGNO.
21671
21672 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
21673
21674 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
21675 rsp->sign_bit_copies and rsp->nonzero_bits into ...
21676 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
21677 present to get more accurate information about the number of sign bit
21678 copies and non zero bits.
21679
21680 2015-05-12 Richard Biener <rguenther@suse.de>
21681
21682 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
21683 do not allow unrolling.
21684
21685 2015-05-11 Richard Henderson <rth@redhat.com>
21686
21687 * config/i386/i386-modes.def (CCP): New.
21688 * config/i386/i386.c (put_condition_code): Handle it.
21689 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
21690
21691 2015-05-11 Richard Henderson <rth@redhat.com>
21692
21693 * target.def (md_asm_clobbers): Replace with...
21694 (md_asm_adjust): this.
21695 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
21696 (TARGET_MD_ASM_ADJUST): New.
21697 * tm.texi: Rebuild.
21698 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
21699 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
21700 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
21701
21702 * cfgexpand.c (check_operand_nalternatives): Accept vector of
21703 constraints instead of lists of outputs and inputs.
21704 (expand_asm_stmt): Save and restore input_location around the
21705 body of the function. Move asm data into vectors instead of
21706 building tree lists. Generate cleanup sequences as needed,
21707 rather than waiting til the end. Use new md_asm_adjust hook.
21708
21709 * config/vxworks.c: Include vec.h before target.h.
21710 * gimple.c: Likewise.
21711 * incpath.c: Likewise.
21712 * mode-switching.c: Likewise.
21713
21714 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
21715 (cris_md_asm_adjust): this.
21716 (TARGET_MD_ASM_CLOBBERS): Remove.
21717 (TARGET_MD_ASM_ADJUST): New.
21718 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
21719 (ix86_md_asm_adjust): this.
21720 (TARGET_MD_ASM_CLOBBERS): Remove.
21721 (TARGET_MD_ASM_ADJUST): New.
21722 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
21723 (mn10300_md_asm_adjust): this.
21724 (TARGET_MD_ASM_CLOBBERS): Remove.
21725 (TARGET_MD_ASM_ADJUST): New.
21726 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
21727 (rs6000_md_asm_adjust): this.
21728 (TARGET_MD_ASM_CLOBBERS): Remove.
21729 (TARGET_MD_ASM_ADJUST): New.
21730 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
21731 (visium_md_asm_adjust): this.
21732 (TARGET_MD_ASM_CLOBBERS): Remove.
21733 (TARGET_MD_ASM_ADJUST): New.
21734
21735 2015-05-11 Richard Henderson <rth@redhat.com>
21736
21737 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
21738 if noutputs is zero.
21739 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
21740
21741 * cfgexpand.c (expand_asm_operands): Merge into...
21742 (expand_asm_stmt): ... here.
21743
21744 * cfgexpand.c (expand_asm_operands): Don't call
21745 resolve_asm_operand_names.
21746 * stmt.c (resolve_asm_operand_names): Clarify block comment.
21747
21748 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
21749
21750 * dwarf2out.c (gen_member_die): Sanity check that we access
21751 TYPE_MAIN_VARIANT for TYPE_METHODS.
21752 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
21753 checking TYPE_METHODS.
21754 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
21755 if non-null.
21756 (build_distinct_type_copy): Clear TYPE_METHODS.
21757 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
21758 (verify_type): Allow TYPE_METHODS to be error_mark_node.
21759 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
21760
21761 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
21762
21763 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
21764 (emit_pattern_before_setloc): Likewise.
21765
21766 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
21767
21768 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
21769 for define_peephole2s.
21770 (get_peephole2_pattern): New function.
21771 (main): Use it. Call validate_pattern.
21772
21773 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
21774
21775 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
21776 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
21777 (Last callee saved reg is different for AVR_TINY architecture)
21778
21779 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
21780
21781 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
21782 when looking for memory references.
21783
21784 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
21785
21786 PR target/65753
21787 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
21788 via function pointers.
21789
21790 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
21791
21792 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
21793 indirect call by forcing address into a pseudo with -fno-plt.
21794 * common.opt (flag_plt): New option.
21795 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
21796 ([-fno-plt]): Document.
21797
21798 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
21799
21800 PR bootstrap/66105
21801 * config/rs6000/option-defaults.h: Add space between string literal
21802 and macro name.
21803
21804 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
21805
21806 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
21807 accross ARM targets.
21808
21809 2015-05-11 Christian Bruel <christian.bruel@st.com>
21810
21811 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
21812 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
21813
21814 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
21815
21816 PR rtl-optimization/66076
21817 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
21818 Don't grow the heap array if it is already big enough from a
21819 previous iteration.
21820
21821 2015-05-11 Christian Bruel <christian.bruel@st.com>
21822
21823 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
21824 (is_called_in_ARM_mode): Remove.
21825 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
21826 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
21827 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
21828 arm_declare_function_name.
21829
21830 2015-05-11 Christian Bruel <christian.bruel@st.com>
21831
21832 * config/arm/arm.c (arm_option_override): Reoganized and split into :
21833 (arm_option_params_internal); New function.
21834 (arm_option_check_internal): New function.
21835 (arm_option_override_internal): New function.
21836 (thumb_code, thumb1_code): Remove.
21837 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
21838 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
21839 (thumb_code, thumb1_code): Remove.
21840 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
21841
21842 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
21843
21844 * config/alpha/alpha.c (alpha_emit_set_const_1)
21845 (alpha_emit_set_long_const, alpha_extract_integer)
21846 (alpha_legitimate_constant_p, alpha_split_const_mov)
21847 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
21848 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
21849 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
21850 HOST_WIDE_INT_1U.
21851 * config/alpha/predicates.md (mode_mask_operand): Do not match
21852 const_double RTX.
21853 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
21854 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
21855 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
21856 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
21857 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
21858
21859 2015-05-11 Jakub Jelinek <jakub@redhat.com>
21860
21861 PR target/65780
21862 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
21863 default_binds_local_p_2.
21864 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
21865 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
21866
21867 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
21868
21869 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
21870
21871 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
21872
21873 Patch by Richard Biener
21874 * coverage.c (coverage_obj_init): Delay building of type variant
21875 until the type is finished.
21876
21877 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
21878
21879 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
21880 mismatch between C and C++ type; compoare correctly ARG_TYPES
21881 for non-prototypes and output correctly parameter index for METHOD_TYPE.
21882 (odr_types_equivalent_p): Fix wording of warning about attributes;
21883 it is OK to match prototype and non-prototype.
21884
21885 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
21886
21887 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
21888 TYPE_ARG_TYPES list.
21889 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
21890 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
21891
21892 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
21893
21894 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
21895 * tree.h (is_lang_specific): Constify.
21896
21897 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
21898
21899 PR tree-optimization/64454
21900 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
21901 Rewrite.
21902
21903 2015-05-08 Jason Merrill <jason@redhat.com>
21904
21905 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
21906 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
21907 config/darwin.h, config/darwin9.h, config/elfos.h,
21908 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
21909 config/microblaze/microblaze.h, config/mips/mips.h,
21910 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
21911 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
21912 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
21913 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
21914 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
21915 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
21916 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
21917 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
21918 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
21919 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
21920 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
21921 between string literal and macro name.
21922
21923 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21924
21925 * jump.c: Change argument types to rtx_insn *.
21926 * rtl.h: Adjust.
21927
21928 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21929
21930 * lra-constraints.c: Change argument type to rtx_insn *.
21931
21932 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21933
21934 * df-problems.c: Change argument type to rtx_insn *.
21935
21936 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21937
21938 * combine.c: Change argument type to rtx_insn *.
21939
21940 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21941
21942 * rtl.h: Adjust.
21943 * rtlanal.c: Change argument type to rtx_insn *.
21944
21945 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21946
21947 * sched-deps.c: Change argument types to rtx_insn *.
21948 * sched-int.h: Adjust.
21949
21950 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21951
21952 * dwarf2cfi.c: Change argument type to rtx_insn *.
21953
21954 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21955
21956 * ira.c (decrease_live_ranges_number): Changetype of local
21957 variable to rtx_insn *.
21958 * recog.c: Change argument types to rtx_insn *.
21959 * recog.h: Adjust.
21960
21961 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21962
21963 * reorg.c: Change argument types to rtx_insn *.
21964
21965 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21966
21967 * ira-color.c: Change argument types to rtx_insn *.
21968 * lra-eliminations.c: Likewise.
21969 * ira.h: Adjust.
21970
21971 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21972
21973 * gcse.c: Change argument types to rtx_insn *.
21974
21975 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21976
21977 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
21978
21979 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21980
21981 * emit-rtl.c (emit_debug_insn_before): Change argument type to
21982 rtx_insn *.
21983 * rtl.h: Adjust.
21984
21985 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21986
21987 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
21988 * rtl.h: Adjust.
21989
21990 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21991
21992 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
21993 * rtl.h: Adjust.
21994
21995 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21996
21997 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
21998 * rtl.h: Adjust.
21999
22000 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22001
22002 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
22003 * rtl.h: Adjust.
22004
22005 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22006
22007 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
22008 to rtx_insn *.
22009 * rtl.h: Adjust.
22010
22011 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22012
22013 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
22014 to rtx_insn *.
22015 * rtl.h: Likewise.
22016
22017 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22018
22019 * except.c (can_nonlocal_goto): Change type of argument to
22020 rtx_insn *.
22021 * rtl.h: Adjust.
22022
22023 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22024
22025 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
22026 * rtl.h: Adjust.
22027
22028 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22029
22030 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
22031 * cfgrtl.c (can_delete_label_p): Adjust.
22032 * rtl.h: likewise.
22033
22034 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22035
22036 * reorg.c (stop_search_p): Change argument to rtx_insn *.
22037
22038 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22039
22040 * except.c (make_reg_eh_region_note): Change argument to
22041 rtx_insn *.
22042 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
22043 * except.h: Adjust.
22044
22045 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22046
22047 * mode-switching.c (commit_mode_sets): Change type of local
22048 variable from rtx to rtx_insn *.
22049
22050 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
22051
22052 * doc/install.texi (--enable-languages): Add missing jit and lto info.
22053 Add ^ to grep command.
22054 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
22055 arg to last gimple_simplify declaration. Add missing gimple_build
22056 declaration for built-in function case with four tree args.
22057
22058 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
22059 Szabolcs Nagy <szabolcs.nagy@arm.com>
22060
22061 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
22062 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
22063 (GNU_USER_DYNAMIC_LINKERN32): Update.
22064
22065 2015-05-08 Richard Biener <rguenther@suse.de>
22066
22067 PR tree-optimization/66036
22068 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
22069 Handle strided group loads.
22070 (vect_verify_datarefs_alignment): Likewise.
22071 (vect_enhance_data_refs_alignment): Likewise.
22072 (vect_analyze_group_access): Likewise.
22073 (vect_analyze_data_ref_access): Likewise.
22074 (vect_analyze_data_ref_accesses): Likewise.
22075 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
22076 (vectorizable_load): Likewise.
22077
22078 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
22079
22080 * config/rs6000/rs6000.md: Require operand inequality in one
22081 of the peepholes.
22082
22083 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
22084 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
22085
22086 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
22087 from (set ...).
22088 * config/rx/rx.md (movdi, movdf): Likewise.
22089 Likewise for define_peephole2s.
22090
22091 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
22092
22093 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
22094 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
22095 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
22096 vtst_u64): Rewrite using gcc vector extensions.
22097
22098 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
22099
22100 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
22101 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
22102
22103 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
22104
22105 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
22106
22107 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
22108
22109 * config/glibc-stdint.h (OPTION_MUSL): Define.
22110 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
22111 Change the definition based on OPTION_MUSL for 64 bit targets.
22112 * config/linux.h (OPTION_MUSL): Redefine.
22113 * config/alpha/linux.h (OPTION_MUSL): Redefine.
22114 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
22115 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
22116
22117 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
22118 Szabolcs Nagy <szabolcs.nagy@arm.com>
22119
22120 * config.gcc (LIBC_MUSL): New tm_defines macro.
22121 * config/linux.h (OPTION_MUSL): Define.
22122 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
22123 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
22124 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
22125 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
22126 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
22127 * config/linux.opt (mmusl): New option.
22128 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
22129 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
22130 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
22131 * configure: Regenerate.
22132
22133 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
22134 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22135
22136 PR target/48904
22137 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
22138 * config/i386/knetbsd-gnu64.h: New file.
22139
22140 2015-05-08 Marek Polacek <polacek@redhat.com>
22141
22142 PR c/64918
22143 * doc/invoke.texi: Document -Woverride-init-side-effects.
22144
22145 2015-05-07 Marek Polacek <polacek@redhat.com>
22146
22147 PR c/65179
22148 * doc/invoke.texi: Document -Wshift-negative-value.
22149
22150 2015-05-06 Aditya Kumar <hiraditya@msn.com>
22151
22152 * gcov-tool.c (do_merge): Refactore to remove int ret.
22153 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
22154 !type == FUNC to type != FUNC.
22155 * reload.h (struct target_reload): Changee to type of
22156 x_spill_indirect_levels from bool to unsigned char.
22157
22158 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
22159
22160 * rtl.h (always_void_p): New function.
22161 * gengenrtl.c (always_void_p): Likewise.
22162 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
22163 with code foo are always VOIDmode.
22164 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
22165 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
22166 compare-elim.c, config/aarch64/aarch64.c,
22167 config/aarch64/aarch64.md, config/alpha/alpha.c,
22168 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
22169 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
22170 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
22171 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
22172 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
22173 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
22174 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
22175 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
22176 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
22177 config/ia64/vect.md, config/iq2000/iq2000.c,
22178 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
22179 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
22180 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
22181 config/mep/mep.c, config/microblaze/microblaze.c,
22182 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
22183 config/mn10300/mn10300.c, config/msp430/msp430.c,
22184 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
22185 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
22186 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
22187 config/rs6000/altivec.md, config/rs6000/rs6000.c,
22188 config/rs6000/rs6000.md, config/rs6000/vector.md,
22189 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
22190 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
22191 config/sh/sh.md, config/sh/sh_treg_combine.cc,
22192 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
22193 config/spu/spu.md, config/stormy16/stormy16.c,
22194 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
22195 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
22196 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
22197 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
22198 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
22199 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
22200 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
22201 var-tracking.c: Update calls accordingly.
22202
22203 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
22204
22205 PR middle-end/192
22206 PR middle-end/54303
22207 * varasm.c (function_mergeable_rodata_prefix): New function.
22208 (mergeable_string_section): Use it.
22209 (mergeable_constant_section): Use it.
22210
22211 2015-05-07 Jeff Law <law@redhat.com>
22212
22213 PR target/39726
22214 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
22215 simplifier to narrow arithmetic.
22216 * generic-match-head.c: (types_match, single_use): New functions.
22217 * gimple-match-head.c: (types_match, single_use): New functions.
22218
22219 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22220
22221 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
22222 rtx type.
22223
22224 2015-05-07 Richard Biener <rguenther@suse.de>
22225
22226 PR tree-optimization/66002
22227 * passes.def: Schedule another pass_merge_phi after ifcombine, right
22228 before phiopt.
22229
22230 2015-05-07 Marek Polacek <polacek@redhat.com>
22231 Martin Uecker <uecker@eecs.berkeley.edu>
22232
22233 * doc/invoke.texi: Document -fsanitize=bounds-strict.
22234 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
22235 into SANITIZE_NONDEFAULT.
22236 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
22237
22238 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
22239
22240 PR target/66015
22241 * config/alpha/alpha.c (alpha_override_options_after_change): New.
22242 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
22243 (alpha_override_options): Move align_loops, align_jumps and
22244 align_functions handling into alpha_override_options_after_change.
22245
22246 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
22247 Chris Jones <chrisj@nvidia.com>
22248 Joshua Conner <jconner@nvidia.com>
22249
22250 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
22251 linking of crtfastmath.o.
22252 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
22253
22254 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
22255
22256 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
22257 (cstore<mode>4_unsigned_imm): New expander.
22258 (cstore<mode>4): Remove empty constraint strings. Use the new
22259 expanders.
22260
22261 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
22262
22263 PR target/64208
22264 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
22265 alternatives.
22266
22267 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
22268
22269 * config/aarch64/geniterators.sh: Use standard BRE in sed.
22270
22271 2015-05-06 Alan Modra <amodra@gmail.com>
22272
22273 PR target/66033
22274 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
22275 (UNSPEC_NOP): Define.
22276 (reload_vsx_from_gpr<mode>): Add missing DONE.
22277 (reload_gpr_from_vsx<mode>): Likewise.
22278 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
22279 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
22280
22281 2015-05-06 Christian Bruel <christian.bruel@st.com>
22282
22283 PR target/66015
22284 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
22285 align_jumps, align_functions into aarch64_override_options_after_change.
22286
22287 2015-05-06 Richard Biener <rguenther@suse.de>
22288
22289 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
22290 vect_transform_slp_perm_load to check if we support a permutation
22291 for basic-block vectorization.
22292
22293 2015-05-06 Nick Clifton <nickc@redhat.com>
22294
22295 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
22296 used, even if it is not being used as a frame pointer.
22297
22298 2015-05-05 Jason Merrill <jason@redhat.com>
22299
22300 * dwarf2out.c (gen_member_die): Don't emit anything for an
22301 anonymous class constructor.
22302
22303 2015-05-05 David Malcolm <dmalcolm@redhat.com>
22304
22305 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
22306 that it reflects the block structure.
22307 (afdo_propagate_edge): Likewise.
22308 (afdo_calculate_branch_prob): Likewise.
22309 (afdo_annotate_cfg): Likewise.
22310 * cfgcleanup.c (equal_different_set_p): Likewise.
22311 (try_crossjump_to_edge): Likewise.
22312 * cgraph.c (cgraph_node::verify_node): Likewise.
22313 * cgraphunit.c (expand_all_functions): Likewise.
22314 * config/i386/i386.c (ix86_expand_copysign): Likewise.
22315 (exact_dependency_1): Likewise.
22316 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
22317 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
22318 * gensupport.c (process_define_subst): Likewise.
22319 * lto-wrapper.c (merge_and_complain): Likewise.
22320 * tree-if-conv.c (if_convertible_bb_p): Likewise.
22321 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
22322 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
22323 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
22324 * tree-vect-loop.c (vectorizable_reduction): Likewise.
22325 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
22326 * tree-vect-stmts.c (vectorizable_shift): Likewise.
22327 * tree-vrp.c (vrp_finalize): Likewise.
22328 * tree.c (variably_modified_type_p): Likewise.
22329
22330 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
22331
22332 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
22333 on darwin12 and later.
22334 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
22335 file to pass -rdynamic on darwin12 and later.
22336 * config/darwin.opt (rdynamic): Add.
22337
22338 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
22339
22340 * doc/extend.texi (C Extensions): Update menu for moved Variable
22341 Attributes and Type Attributes sections.
22342
22343 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
22344
22345 PR target/65990
22346 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
22347 if rep_8byte stringop strategy was specified for 32-bit target.
22348
22349 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
22350
22351 PR target/65915
22352 * config/i386/i386.md (vector convert to float spltiter): Check for
22353 xmm16+, when splitting scalar float conversion.
22354 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
22355
22356 2015-05-05 Nick Clifton <nickc@redhat.com>
22357
22358 * config/msp430/msp430-opts.h (enum msp430_regions): New.
22359 * config/msp430/msp430.c (msp430_override_options): Complain if
22360 -mcode-region or -mdata-region is used on a non MSP430X.
22361 (msp430_section_attr): New function. Checks lower, upper and
22362 either attributes.
22363 (msp430_attribute_table): Add lower, upper and either.
22364 (gen_prefix): New function. Generates a prefix for a section
22365 name.
22366 (msp430_select_section): New function - handles the choice of
22367 section for an object. Takes into account memory region
22368 attributes and options.
22369 (msp430_function_section): Use gen_prefix.
22370 (TARGET_SECTION_TYPE_FLAGS): Define.
22371 (msp430_section_type_flags): New function.
22372 (TARGET_ASM_UNIQUE_SECTION): Define.
22373 (msp430_unique_section): New function.
22374 (msp430_output_aligned_decl_common): New function.
22375 (msp430_do_not_relax_short_jumps): New function.
22376 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
22377 Define.
22378 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
22379 * config/msp430/msp430-protos.h
22380 (msp430_do_not_relax_short_jumps): New prototype.
22381 (msp430_output_aligned_decl_common): New prototype.
22382 * config/msp430/msp430.md (length): New attribute.
22383 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
22384 then use a long code sequence for short jumps.
22385 * config/msp430/msp430.opt (mcode-region): New.
22386 (mdata-region): New.
22387 * doc/invoke.texi: Document new options.
22388 * doc/extend.texi: Document new attributes.
22389
22390 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
22391
22392 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
22393 (tune_params): Add field branch_costs.
22394 (aarch64_branch_cost): Declare.
22395 * gcc/config/aarch64.c (generic_branch_cost): New.
22396 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
22397 (cortexa53_tunings): Likewise.
22398 (cortexa57_tunings): Likewise.
22399 (thunderx_tunings): Likewise.
22400 (xgene1_tunings): Likewise.
22401 (aarch64_branch_cost): Define.
22402 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
22403
22404 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
22405
22406 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
22407 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
22408 * config/i386/i386.md: Ditto.
22409 * config/i386/winnt.c: Ditto.
22410
22411 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
22412
22413 * doc/extend.texi (__atomic Builtins): Move implementation details
22414 to the end of the description, rewrite opening paragraphs, state
22415 difference with __sync builtins, state C11/C++11 assumptions,
22416 weaken itemized descriptions, add explanation of memory model
22417 behaviour, expand description of compare-exchange, simplify text.
22418
22419 2015-05-05 Renlin Li <renlin.li@arm.com>
22420
22421 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
22422
22423 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
22424
22425 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
22426 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
22427 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
22428 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
22429 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
22430 * configure: Regenerate.
22431 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
22432 * doc/install.texi (aarch64*-*-*): Document new
22433 --enable-fix-cortex-a53-843419 option.
22434 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
22435 and -mno-fix-cortex-a53-843419 options.
22436
22437 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
22438
22439 PR target/65871
22440 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
22441
22442 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
22443
22444 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
22445 fix overactive TYPE_MIN_VALUE check and add FIXME for type
22446 compatibility problems.
22447
22448 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
22449
22450 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
22451 constraints.
22452 (cbranchsi4_reg): New.
22453 * config/microblaze/microblaze.c
22454 (microblaze_expand_conditional_branch_reg): New.
22455 * config/microblaze/microblaze-protos.h
22456 (microblaze_expand_conditional_branch_reg): New prototype.
22457
22458 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
22459
22460 * config/microblaze/microblaze.md (peephole2): New.
22461
22462 2015-05-04 Jeff Law <law@redhat.com>
22463
22464 Revert:
22465 2015-05-04 Jeff Law <law@redhat.com>
22466
22467 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
22468 simplifier to narrow arithmetic.
22469 * generic-match-head.c: (types_match, single_use): New functions.
22470 * gimple-match-head.c: (types_match, single_use): New functions.
22471
22472 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
22473
22474 PR target/65987
22475 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
22476 (split_branches): Likewise.
22477
22478 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
22479
22480 * common.opt (fdelete-null-pointer-checks): Init to -1.
22481 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
22482 override flag_delete_null_pointer_checks default.
22483 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
22484 behavior re address zero. Better document target-specific behavior.
22485 (-fisolate-errneous-paths-dereference): Mention relationship to
22486 -fdelete-null-pointer-checks.
22487
22488 2015-05-04 Jakub Jelinek <jakub@redhat.com>
22489
22490 PR tree-optimization/65984
22491 * ubsan.c: Include tree-cfg.h.
22492 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
22493 stmt_could_throw_p test, rename can_throw variable to ends_bb.
22494
22495 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
22496
22497 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
22498 to CONST_DOUBLE_P predicate.
22499 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
22500 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
22501 allow only operands that satisfy standard_sse_constant_p predicate.
22502 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
22503 to CONST_DOUBLE_P predicate.
22504
22505 2015-05-04 Jeff Law <law@redhat.com>
22506
22507 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
22508 simplifier to narrow arithmetic.
22509 * generic-match-head.c: (types_match, single_use): New functions.
22510 * gimple-match-head.c: (types_match, single_use): New functions.
22511
22512 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
22513
22514 * config/arm/arm.c: Restore bootstrap.
22515
22516 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
22517
22518 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
22519 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
22520 as CONST_WIDE_INT, not CONST_DOUBLE.
22521 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
22522 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
22523 (ix86_find_base_term): Do not check for CONST_DOUBLE.
22524 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
22525 (ix86_build_signbit_mask): Rewrite using wide ints.
22526 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
22527 (ix86_rtx_costs): Handle CONST_WIDE_INT.
22528 (find_constant): Ditto.
22529 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
22530 using gen_int_mode.
22531 * config/i386/predicates.md (x86_64_immediate_operand)
22532 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
22533 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
22534 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
22535 (const0_operand): Also match const_wide_int.
22536 (constm1_operand): Ditto.
22537 (const1_operand): Ditto.
22538
22539 2015-05-04 Richard Biener <rguenther@suse.de>
22540
22541 PR tree-optimization/65965
22542 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
22543 store groups at gaps.
22544
22545 2015-05-04 Richard Biener <rguenther@suse.de>
22546
22547 PR tree-optimization/65935
22548 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
22549 then make sure to apply that swapping to the IL.
22550
22551 2015-05-04 Jakub Jelinek <jakub@redhat.com>
22552
22553 * Makefile.in (PATCHLEVEL_c): New variable.
22554 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
22555 expand the same way as if DEVPHASE_c was non-empty.
22556
22557 2015-05-04 Kai Tietz <ktietz@redhat.com>
22558
22559 PR target/65559
22560 * lto-wrapper.c (run_gcc): Open filename
22561 in binary-mode.
22562
22563 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
22564
22565 * doc/extend.texi (Variable Attributes, Type Attributes): Move
22566 sections up in file, to immediately after the Function Attributes
22567 section.
22568
22569 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
22570
22571 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
22572
22573 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22574
22575 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
22576 (insert_partition_copy_on_edge): Adjust.
22577 (insert_rtx_to_part_on_edge): Likewise.
22578 (insert_part_to_rtx_on_edge): Likewise.
22579
22580 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22581
22582 * function.c (set_return_jump_label): Change type of argument to
22583 rtx_insn *.
22584 * function.h (set_return_jump_label): Adjust.
22585
22586 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22587
22588 * reload.h (struct reg_equivs_t): Change type of init to
22589 rtx_insn *.
22590 * ira.c (fix_reg_equiv_init): Adjust.
22591 * reload1.c (eliminate_regs_1): Likewise.
22592 (init_eliminable_invariants): Likewise.
22593
22594 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22595
22596 * cselib.c (fp_setter_insn): Take a rtx_insn *.
22597 * cselib.h (fp_setter_insn): Adjust.
22598
22599 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22600
22601 * recog.c (struct validate_replace_src_data): Change type of
22602 insn field to rtx_insn *.
22603 (validate_replace_src_group): Change type of argument to rtx_insn *.
22604 * recog.h (validate_replace_src_group): Adjust.
22605
22606 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22607
22608 * haifa-sched.c: Change the type of some variables to rtx_insn *.
22609 * sched-deps.c: Likewise.
22610 * sched-int.h: Likewise.
22611 * sched-rgn.c: Likewise.
22612 * sel-sched.c: Likewise.
22613
22614 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22615
22616 to rtx_insn *.
22617 * config/i386/i386.c: Change the type of some arguments to
22618 rtx_insn *.
22619 * config/arm/arm.c: Likewise.
22620
22621 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22622
22623 * lra-constraints.c: Change type of some arguments to rtx_insn *.
22624
22625 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22626
22627 * regcprop.c (kill_autoinc_value): Change type of argument to
22628 rtx_insn *.
22629
22630 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22631
22632 * genrecog.c (print_subroutine): Adjust.
22633 * recog.c (get_bool_attr_mask_uncached): Likewise.
22634 * recog.h (struct recog_data_d): Change the type of insn to
22635 rtx_insn *.
22636
22637 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22638
22639 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
22640
22641 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22642
22643 * df-problems.c (df_set_note): Change type of argument to
22644 rtx_insn *.
22645
22646 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22647
22648 * builtins.c (expand_builtin_trap): Change type of local
22649 variable to rtx_insn *.
22650 (add_sched_insns_for_speculation): Likewise.
22651 (ix86_emit_save_regs): Likewise.
22652 (get_scratch_register_on_entry): Likewise.
22653 (ix86_emit_restore_reg_using_pop): Likewise.
22654 (ix86_emit_leave): Likewise.
22655 (ix86_emit_restore_regs_using_mov): Likewise.
22656 (ix86_expand_epilogue): Likewise.
22657 Likewise.
22658 (rl78_alloc_physical_registers_umul): Likewise.
22659 * cselib.c (discard_useless_locs): Likewise.
22660 (cselib_invalidate_regno): Likewise.
22661 (cselib_invalidate_mem): Likewise.
22662 * function.c (expand_function_start): Likewise.
22663 (emit_use_return_register_into_block): Likewise.
22664 * gcse.c: Likewise.
22665 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
22666 * ifcvt.c (noce_get_alt_condition): Likewise.
22667 * loop-doloop.c (doloop_condition_get): Likewise.
22668 * lra-constraints.c (inherit_in_ebb): Likewise.
22669 * modulo-sched.c (sms_schedule_by_order): Likewise.
22670 * recog.c (next_insn_tests_no_inequality): Likewise.
22671 * reorg.c (emit_delay_sequence): Likewise.
22672 (update_reg_dead_notes): Likewise.
22673 (fix_reg_dead_note): Likewise.
22674 (fill_slots_from_thread): Likewise.
22675 (delete_computation): Likewise.
22676
22677 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
22678
22679 * doc/extend.texi (Variable Attributes): Add menu and proper
22680 @nodes to subsections. Move Microsoft Windows attributes to
22681 their own subsection.
22682 (Type Attributes): Reorganize introduction to remove duplicate
22683 list of attributes. Add menu and proper @nodes to subsections.
22684 Alphabetize the main table of common attributes.
22685
22686 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
22687
22688 * match.pd: New simplification patterns.
22689 (x + (x & 1)) -> ((x + 1) & ~1)
22690 (x & ~(x & y)) -> ((x & ~y))
22691 (x | ~(x | y)) -> ((x | ~y))
22692
22693 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22694
22695 * target.def (attribute_table): Mention that struct attribute_spec
22696 is defined in tree-core.h rather than tree.h
22697 * doc/tm.texi: Regenerate.
22698
22699 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
22700
22701 * genrecog.c (test): Rename to rtx_test. Update rest of file
22702 accordingly.
22703
22704 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
22705
22706 PR translation/65959
22707 * params.h (DEFPARAM): Rename msgid to nocmsgid.
22708
22709 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
22710
22711 * gcc/config/aarch64/aarch64-protos.h (tune_params):
22712 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
22713 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
22714 Return value depending on target.
22715 (generic_tunings): Initialize new target settings.
22716 (cortexa53_tunings): Likewise.
22717 (cortexa57_tunings): Likewise.
22718 (thunderx_tunings): Likewise.
22719 (xgene1_tunings): Likewise.
22720
22721 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
22722
22723 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
22724 Make Cortex-A53 shift costs more accurate.
22725
22726 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22727
22728 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
22729 UNSIGNED_FLOAT.
22730
22731 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
22732
22733 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
22734 Calculate cost of op0 and op1 in PLUS and MINUS cases.
22735
22736 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22737
22738 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
22739 Add cost of op0 in the compare-with-fpzero case.
22740
22741 2015-04-30 David Malcolm <dmalcolm@redhat.com>
22742
22743 * builtins.c (fold_builtin_1): Remove spurious second
22744 semicolon.
22745 * cgraph.h (symtab_node::get_availability): Likewise.
22746 * opts.c (common_handle_option): Remove spurious second semicolon.
22747 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
22748 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
22749
22750 2015-04-30 Caroline Tice <cmtice@google.com>
22751
22752 PR gcov-profile/65929
22753 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
22754 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
22755 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
22756 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
22757 * doc/tm.texi: Regenerate.
22758 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
22759 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
22760 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
22761 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
22762
22763 2015-04-30 Marek Polacek <polacek@redhat.com>
22764
22765 * varasm.c (handle_cache_entry): Fix logic.
22766
22767 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22768
22769 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
22770 (*extrsi5_insn_uxtw_alt): Likewise.
22771 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
22772 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
22773 operations.
22774
22775 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22776
22777 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
22778 fabd in ABS case.
22779
22780 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22781
22782 * config/aarch64/aarch64.md
22783 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
22784 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
22785 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
22786 appropriately. Handle alternative EON form.
22787
22788 2015-04-30 Renlin Li <renlin.li@arm.com>
22789
22790 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
22791 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
22792
22793 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
22794
22795 PR ipa/65873
22796 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
22797 -fstrict-aliasing boundaries.
22798
22799 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22800
22801 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
22802 and [SU]MNEGL patterns.
22803
22804 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22805
22806 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
22807 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
22808 combined arithmetic-shift ops. Properly handle all shift and extend
22809 operations that can occur in combination with PLUS/MINUS.
22810 Rename maybe_fma to compound_p.
22811 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
22812 arithmetic and shift operations.
22813
22814 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22815
22816 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
22817 rather than arith_shift cost when costing ADD/MINUS of an
22818 extended value.
22819
22820 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
22821
22822 PR lto/65948
22823 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
22824 to itself.
22825
22826 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
22827
22828 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
22829 are for the same position.
22830
22831 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
22832
22833 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
22834 vectorize_loops.
22835 (vectorize_loops): Use it.
22836
22837 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
22838
22839 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
22840 for aggregate types.
22841 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
22842 type to be non_ODR.
22843 * tree.c (need_assembler_name_p): Compute mangled name for
22844 non-fundamental types and integer types.
22845
22846 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
22847
22848 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
22849 manual swaps.
22850 * expr.c (expand_expr_real_2): Likewise.
22851
22852 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
22853
22854 * tree.c (build_common_builtin_nodes): Do not build
22855 __builtin_alloca_with_align as equivalent of library alloca.
22856
22857 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
22858
22859 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
22860 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
22861 bugus variants.
22862 * tree.c: Include print-tree.h and ipa-utils.h
22863 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
22864 (free_lang_data_in_cgraph): Call verify_type.
22865 (verify_type_variant): New function.
22866 (verify_type): New function.
22867 * tree.h (verify_type): Declare.
22868
22869 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
22870
22871 * config/mips/mips-cpus.def: (mips4): Change default processor
22872 from PROCESSOR_R8000 to PROCESSOR_R10000.
22873
22874 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
22875
22876 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
22877 la/jalr instead of jal.
22878
22879 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
22880
22881 PR target/65871
22882 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
22883 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
22884 (setcc+movzbl peephole2): Check also clobbered reg.
22885 (setcc+andl peephole2): Ditto.
22886
22887 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
22888
22889 PR libgomp/65099
22890 * config/nvptx/mkoffload.c (target_ilp32): New variable.
22891 (main): Set it depending on "-foffload-abi=[...]".
22892 (compile_native, main): Use it to pass "-m32" or "-m64" to the
22893 compiler.
22894
22895 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
22896
22897 PR target/65770
22898 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
22899 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
22900 Flip lane index back at assembly time for bigendian.
22901
22902 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
22903
22904 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
22905 * gimplify.c (gimplify_omp_workshare): Use it.
22906
22907 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
22908
22909 * Makefile.in (build/genrecog.o): Depend on inchash.h.
22910 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
22911 build/inchash.o
22912 * genrecog.c: Rewrite most of the code except for the third page.
22913
22914 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
22915
22916 * inchash.h, inchash.c: Include bconfig.h for build objects.
22917 * Makefile.in (build/inchash.o): New rule.
22918
22919 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
22920
22921 PR target/65924
22922 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
22923 number in type attribute expression.
22924
22925 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
22926
22927 * loop-iv.c (canon_condition): Generalize to all types of integer
22928 constant.
22929
22930 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
22931
22932 * gimple-walk.c: Prune duplicate or unneeded includes.
22933 (walk_gimple_asm): Only call parse_input_constraint or
22934 parse_output_constraint if their findings are used.
22935 Honour parse_input_constraint and parse_output_constraint
22936 result.
22937
22938 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
22939
22940 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
22941
22942 2015-04-29 Tom de Vries <tom@codesourcery.com>
22943
22944 PR tree-optimization/65893
22945 * passes.def (pass_all_optimizations): Move pass_stdarg to after
22946 pass_dce.
22947
22948 2015-04-29 Richard Biener <rguenther@suse.de>
22949
22950 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
22951 compute GROUP_SIZE for basic-block SLP.
22952 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
22953 take into account gaps.
22954 (vect_get_mask_element): Properly reject references to previous
22955 vectors.
22956 (vect_transform_slp_perm_load): Likewise.
22957
22958 2015-04-29 Christian Bruel <christian.bruel@st.com>
22959
22960 PR target/64835
22961 * config/i386/i386.c (ix86_default_align): New function.
22962 (ix86_override_options_after_change): Call ix86_default_align.
22963 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
22964 (ix86_override_options_after_change): New function.
22965
22966 2015-04-28 Jeff Law <law@redhat.com>
22967
22968 * tree-ssa-dom.c (record_equality); Fix comment typos.
22969
22970 2015-04-28 Tom de Vries <tom@codesourcery.com>
22971
22972 PR tree-optimization/65887
22973 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
22974
22975 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
22976
22977 * doc/extend.texi (Declaring Attributes of Functions): Split into
22978 subsections by target. Alphabetize the table of common attributes.
22979 Rewrite some of the introductory text to reflect the new structure.
22980 Update some cross-references to point to the new subsections.
22981 (Attribute Syntax): Put paragraph about "__" naming here. Remove
22982 duplicate copies in the discussion of function, label, and type
22983 attributes.
22984
22985 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
22986
22987 PR bootstrap/65910
22988 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
22989
22990 2015-04-28 Jason Merrill <jason@redhat.com>
22991
22992 PR c++/65734
22993 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
22994 (finalize_type_size): Respect TYPE_USER_ALIGN.
22995 (layout_type) [ARRAY_TYPE]: Likewise.
22996
22997 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
22998
22999 * config/arm/arm.md (*arm_movt): Fix type attribute.
23000 (*cmpsi_shiftsi): Likewise.
23001 (*cmpsi_shiftsi_swp): Likewise.
23002 (*movsicc_insn): Likewise.
23003 (*cond_move): Likewise.
23004 (*if_plus_move): Likewise.
23005 (*if_move_plus): Likewise.
23006 (*if_arith_move): Likewise.
23007 (*if_move_arith): Likewise.
23008 (*if_shift_move): Likewise.
23009 (*if_move_shift): Likewise.
23010 (*arm_movtas_ze): Likewise.
23011 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
23012 redundancy and type attribute.
23013 (*thumb2_movsi_insn): Fix type attribute.
23014 (*thumb2_addsi_short): Likewise.
23015 (thumb2_addsi3_compare0): Likewise.
23016 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
23017 attributes accordingly.
23018
23019 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
23020
23021 PR other/65911
23022 * function.c (pad_to_arg_alignment): Add parentheses.
23023
23024 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
23025
23026 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
23027 libgcc/config/frv/elf-lib.h.
23028
23029 2015-04-28 Tom de Vries <tom@codesourcery.com>
23030
23031 * tree-call-cdce.c: Fix example in header comment.
23032
23033 2015-04-28 Richard Biener <rguenther@suse.de>
23034
23035 PR tree-optimization/62283
23036 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
23037 fails fatally and we are vectorizing a basic-block simply
23038 cause the child to be constructed piecewise.
23039 (vect_analyze_slp_cost_1): Adjust.
23040 (vect_detect_hybrid_slp_stmts): Likewise.
23041 (vect_bb_slp_scalar_cost): Likewise.
23042 (vect_get_constant_vectors): For piecewise constructed
23043 constants place them after the last def.
23044 (vect_get_slp_defs): Adjust.
23045 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
23046 externals for basic-block vectorization.
23047
23048 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
23049
23050 PR target/63503
23051 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
23052 aarch64-*-*.
23053 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
23054 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
23055 (AARCH64_TUNE_FMA_STEERING): Likewise.
23056 * config/aarch64/aarch64-cores.def: Set
23057 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
23058 FMUL/FMADD instructions.
23059 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
23060 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
23061 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
23062 * config/aarch64/cortex-a57-fma-steering.h: New file.
23063 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23064
23065 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
23066
23067 * gensupport.c (std_preds): Add missing codes to address_operand entry.
23068
23069 2015-04-28 Richard Biener <rguenther@suse.de>
23070
23071 PR tree-optimization/65851
23072 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
23073 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
23074 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
23075 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
23076 (ccp_visit_phi_node): Adjust.
23077 (evaluate_stmt): For simplifications to SSA names return its
23078 lattice value if that isn't VARYING. Return immediately when
23079 simplified to a constant.
23080 (visit_assignment): Adjust.
23081 (ccp_visit_stmt): Likewise.
23082
23083 2015-04-28 Tom de Vries <tom@codesourcery.com>
23084
23085 PR tree-optimization/65818
23086 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
23087 evaluated.
23088
23089 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23090
23091 * calls.c (save_fixed_argument_area): Don't check
23092 ARGS_GROW_DOWNWARD with the preprocessor.
23093 (restore_fixed_argument_area): Likewise.
23094 (mem_overlaps_already_clobbered_arg_p): Likewise.
23095 (check_sibcall_argument_overlap): Likewise.
23096 (expand_call): Likewise.
23097 (emit_library_call_value_1): Likewise.
23098 (store_one_arg): Likewise.
23099 * function.c (assign_parms): Likewise.
23100 (locate_and_pad_parm): Likewise.
23101 (pad_to_arg_alignment): Likewise.
23102 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
23103
23104 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23105
23106 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
23107 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
23108 * calls.c (save_fixed_argument_area): Don't chekc if
23109 ARGS_GROW_DOWNWARD is defined.
23110 (restore_fixed_argument_area): Likewise.
23111 (mem_overlaps_already_clobbered_arg_p): Likewise.
23112 (check_sibcall_argument_overlap): Likewise.
23113 (expand_call): Likewise.
23114 (emit_library_call_value_1): Likewise.
23115 (store_one_arg): Likewise.
23116 * function.c (assign_parms): Likewise.
23117 (locate_and_pad_parm): Likewise.
23118 (pad_to_arg_alignment): Likewise.
23119 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
23120
23121 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23122
23123 * defaults.h (gen_epilogue): New function.
23124 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
23125 defined.
23126 * cfgrtl.c (cfg_layout_finalize): Likewise.
23127 * df-scan.c: Likewise.
23128 * function.c (thread_prologue_and_epilogue_insns): Likewise.
23129 (reposition_prologue_and_epilogue_notes): Likewise.
23130 * reorg.c (find_end_label): Likewise.
23131 * toplev.c: Likewise.
23132
23133 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23134
23135 * bb-reorder.c (HAVE_return): Don't check if its undefined.
23136 * defaults.h (gen_simple_return): New function.
23137 (gen_simple_return): Likewise.
23138 (HAVE_return): Add default definition to false.
23139 (HAVE_simple_return): Likewise.
23140 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
23141 HAVE_return and HAVE_simple_return are defined.
23142 * function.c (gen_return_pattern): Likewise.
23143 (convert_jumps_to_returns): Likewise.
23144 (thread_prologue_and_epilogue_insns): Likewise.
23145 * reorg.c (find_end_label): Likewise.
23146 (dbr_schedule): Likewise.
23147 * shrink-wrap.c: Likewise.
23148 * shrink-wrap.h: Likewise.
23149
23150 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23151
23152 * defaults.h (EPILOGUE_USES): Add default definition of false.
23153 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
23154 * resource.c (init_resource_info): Likewise.
23155
23156 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23157
23158 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
23159 to false.
23160 * dwarf2out.c (field_byte_offset): REmove check if
23161 PCC_BITFIELD_TYPE_MATTERS is defined.
23162 * stor-layout.c (layout_decl): Likewise.
23163 (update_alignment_for_field): Likewise.
23164 (place_field): Likewise.
23165
23166 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23167
23168 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
23169 true.
23170 * regrename.c (check_new_reg_p): Remove check if
23171 HARD_REGNO_RENAME_OK is defined.
23172 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
23173
23174 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23175
23176 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
23177 * cse.c (fold_rtx): Likewise.
23178 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
23179 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
23180 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
23181 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
23182 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
23183 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
23184 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
23185 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
23186 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
23187 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
23188 * Likewise.
23189 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
23190 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
23191 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
23192 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
23193 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
23194 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
23195 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
23196 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
23197 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
23198 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
23199 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
23200 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
23201 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
23202 * doc/tm.texi: Regenerate.
23203 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
23204 either true or false.
23205
23206 2015-04-27 Jeff Law <law@redhat.com>
23207
23208 PR tree-optimization/65217
23209 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
23210 of them has a single use, make sure it is the LHS of the implied
23211 copy.
23212
23213 2015-04-28 Alan Modra <amodra@gmail.com>
23214
23215 PR target/65810
23216 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
23217 (offsettable_ok_by_alignment): Use minimum of decl and toc
23218 pointer alignment. Replace dead code with assertion.
23219 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
23220 case if size exceeds toc pointer alignment.
23221 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
23222 (rs6000_emit_move): Likewise.
23223 * configure.ac: Add linker toc pointer alignment check.
23224 * configure: Regenerate.
23225 * config.in: Regenerate.
23226
23227 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
23228
23229 * config.gcc: Add h8300-*-linux.
23230 * config/h8300/linux.h: New.
23231 * config/h8300/t-linux: New.
23232 * config/h8300/h8300.c (h8300_option_override): Normal mode
23233 is not supported for h8300-*-linux.
23234 (h8300_file_start): Target priority change.
23235 (get_shift_alg): Likewise.
23236 (h8300_shift_need_scratch_p): Likewise.
23237 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
23238 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
23239
23240 2015-04-27 Caroline Tice <cmtice@google.com>
23241
23242 * final.c (final_scan_insn): Output cold_function_name as function
23243 type.
23244 * varasm.c (cold_function_name): Make global.
23245 (assemble_start_function): Re-set cold_function_name.
23246 (assemble_end_function): Output cold partition size.
23247 * varasm.h (cold_function_name): Declare global.
23248
23249 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
23250
23251 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
23252 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
23253 constraint.
23254 (*movxi_internal_avx512f): Ditto.
23255 (define_split): Check for xmm16+, when splitting scalar float_extend.
23256 (*extendsfdf2_mixed): Use "v" constraint.
23257 (define_split): Check for xmm16+, when splitting scalar float_truncate.
23258 (*truncdfsf_fast_sse): Use "v" constraint.
23259 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
23260 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
23261 (define_peephole2): Check for xmm16+, when converting scalar
23262 float_truncate.
23263 (define_peephole2): Check for xmm16+, when converting scalar
23264 float_extend.
23265 (*fop_<mode>_comm_mixed): Use "v" constraint.
23266 (*fop_<mode>_comm_sse): Ditto.
23267 (*fop_<mode>_1_mixed): Ditto.
23268 (*sqrt<mode>2_sse): Ditto.
23269 (*ieee_s<ieee_maxmin><mode>3): Ditto.
23270
23271 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23272
23273 * combine.c (simplify_if_then_else): Use std::swap instead
23274 of manually swapping.
23275 (known_cond): Likewise.
23276 (simplify_comparison): Likewise.
23277
23278 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
23279
23280 PR target/64579
23281 * config/rs6000/htm.md: Remove all define_expands.
23282 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
23283 UNSPECV_HTM_TABORTWCI): Remove.
23284 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
23285 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
23286 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
23287 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
23288 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
23289 tabortwci_internal): Remove define_insns.
23290 (tabort<wd>c, tabort<wd>ci): New define_insns.
23291 (tabort): Use gpc_reg_operand.
23292 (tcheck): Remove operand.
23293 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
23294 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
23295 expected value.
23296 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
23297 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
23298 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
23299 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
23300 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
23301 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
23302 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
23303 (tcheck): Remove builtin argument.
23304 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
23305 not TARGET_64BIT.
23306 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
23307 tabortdc and tabortdci builtins when not in 64-bit mode.
23308 Modify code to handle the loss of the HTM define_expands.
23309 Emit code to copy the CR register to TARGET.
23310 (htm_init_builtins): Modify code to handle the loss of the HTM
23311 define_expands.
23312 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
23313 (RS6000_BTC_64BIT): Likewise.
23314 (RS6000_BTC_CR): New macro.
23315 * doc/extend.texi: Update documentation for htm builtins.
23316
23317 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23318
23319 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
23320 of manually swapping.
23321 (simplify_associative_operation): Likewise.
23322 (simplify_binary_operation): Likewise.
23323 (simplify_plus_minus): Likewise.
23324 (simplify_relational_operation): Likewise.
23325 (simplify_ternary_operation): Likewise.
23326
23327 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
23328
23329 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
23330 (xs_hi_nonmemory_operand): Remove error.
23331 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
23332 general_operand rather than xs_hi_general_operand.
23333
23334 2015-04-27 Richard Biener <rguenther@suse.de>
23335
23336 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
23337 (record_equivalences_from_stmt): Valueize rhs.
23338 (record_equality): Canonicalize x and y order via
23339 tree_swap_operands_p. Do not swap operands for same loop depth.
23340
23341 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
23342
23343 PR target/65296
23344 PR target/65895
23345 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
23346 Add hint how to use own spec file.
23347
23348 2015-04-27 Jakub Jelinek <jakub@redhat.com>
23349
23350 PR tree-optimization/65875
23351 * tree-vrp.c (update_value_range): If in is_new case setting
23352 old_vr to VR_VARYING, also set new_vr to it. Remove
23353 old_vr->type == VR_VARYING test.
23354 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
23355 SSA_PROP_INTERESTING if update_value_range returned true,
23356 but new range is VR_VARYING.
23357
23358 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
23359
23360 * combine.c (sign_extend_short_imm): New.
23361 (set_nonzero_bits_and_sign_copies): Use above new function for sign
23362 extension of src short immediate.
23363 (reg_nonzero_bits_for_combine): Likewise for tem.
23364
23365 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
23366
23367 * stor-layout.c (self_referential_component_ref_p): New predicate.
23368 (copy_self_referential_tree_r): Use it.
23369 (self_referential_size): Punt for simple operations directly involving
23370 self-referential component references.
23371 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
23372
23373 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
23374
23375 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
23376
23377 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
23378
23379 * vec.h (vec): Make splice arguments const. Update definitions
23380 accordingly.
23381
23382 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
23383
23384 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
23385 alternatives.
23386
23387 2015-04-26 Tom de Vries <tom@codesourcery.com>
23388
23389 PR tree-optimization/65826
23390 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
23391
23392 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
23393
23394 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
23395 (*madd3<mode>): Ditto.
23396 (*msub4<mode>): Ditto.
23397 (*msub3<mode>): Ditto.
23398 (*nmadd4<mode>): Ditto.
23399 (*nmadd3<mode>): Ditto.
23400 (*nmadd4<mode>_fastmath): Ditto.
23401 (*nmadd3<mode>_fastmath): Ditto.
23402 (*nmsub4<mode>): Ditto.
23403 (*nmsub3<mode>): Ditto.
23404 (*nmsub4<mode>_fastmath): Ditto.
23405 (*nmsub3<mode>_fastmath): Ditto.
23406
23407 2015-04-24 Jason Merrill <jason@redhat.com>
23408
23409 PR c++/50800
23410 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
23411 down when building TYPE_CANONICAL.
23412 (build_pointer_type_for_mode): Likewise.
23413
23414 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
23415
23416 * genrecog.c (validate_pattern): Check matching constraint refers
23417 to a lower numbered operand.
23418
23419 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
23420
23421 PR target/65849
23422 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
23423 save to independent variables use the Save attribute. This will
23424 allow these options to be modified with the #pragma/attribute
23425 target support.
23426 (-mallow-movmisalign): Likewise.
23427 (-mallow-df-permute): Likewise.
23428 (-msched-groups): Likewise.
23429 (-malways-hint): Likewise.
23430 (-malign-branch-targets): Likewise.
23431 (-mvectorize-builtins): Likewise.
23432 (-msave-toc-indirect): Likewise.
23433
23434 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
23435 can be set via the #pragma/attribute target support.
23436 (rs6000_opt_vars): Likewise.
23437 (rs6000_inner_target_options): If VSX was set, also set
23438 -mno-avoid-indexed-addresses.
23439
23440 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23441
23442 * config/arm/iterators.md (shiftable_ops): Rename to...
23443 (SHIFTABLE_OPS): ... This. Update use in comments.
23444 (ior_xor): Rename to...
23445 (IOR_XOR): ... This.
23446 (vqh_ops): Rename to...
23447 (VQH_OPS): ... This.
23448 (vqhs_ops): Rename to...
23449 (VQHS_OPS): ... This.
23450 (rshifts): Rename to...
23451 (RSHIFTS): ... This.
23452 (returns): Rename to...
23453 (RETURNS): ... This.
23454 * config/arm/arm.md: Update uses of the above.
23455 * config/arm/neon.md: Likewise.
23456
23457 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23458
23459 * config.host (case ${host}): Add aarch64*-*-linux case.
23460 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
23461 fields to all the cores.
23462 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
23463 Add MCPU_MTUNE_NATIVE_SPECS.
23464 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
23465 field to all extensions.
23466 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
23467 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
23468 Adjust definition of AARCH64_OPT_EXTENSION.
23469 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
23470 (MCPU_MTUNE_NATIVE_SPECS): Define.
23471 * config/aarch64/driver-aarch64.c: New file.
23472 * config/aarch64/x-arch64: New file.
23473 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
23474 -mtune and -march.
23475
23476 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
23477 Wei Mi <wmi@google.com>
23478
23479 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
23480 * config/i386/i386.c (extract_base_offset_in_addr): New function.
23481 (ix86_operands_ok_for_move_multiple): Ditto.
23482 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
23483 (movlpd/movhpd to movupd peephole2): Ditto.
23484
23485 2015-04-24 Marek Polacek <polacek@redhat.com>
23486
23487 PR c/61534
23488 * input.h (from_macro_expansion_at): Define.
23489
23490 PR c/63357
23491 * doc/invoke.texi: Update description of -Wlogical-op.
23492
23493 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
23494
23495 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
23496 ternary operator in fprintf and harmonize spacing.
23497
23498 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
23499
23500 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
23501 Mark operand1 commutative.
23502
23503 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
23504
23505 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
23506 input operands in memory.
23507 (*vec_concatv2si_sse4_1): Ditto.
23508 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
23509 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
23510 register_operand.
23511 (vec_extract_hi_v32hi): Ditto.
23512 (vec_extract_hi_v64hi): Ditto.
23513 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
23514
23515 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
23516 Steven Bosscher <steven@gcc.gnu.org>
23517
23518 PR rtl-optimization/34503
23519 * cprop.c (cprop_reg_p): New.
23520 (hash_scan_set): Use above function to check if register can be
23521 propagated.
23522 (find_avail_set): Return up to two sets, one whose source is a
23523 register and one whose source is a constant. Sets are returned in an
23524 array passed as parameter rather than as a return value.
23525 (cprop_insn): Use a do while loop rather than a goto. Try each of the
23526 sets returned by find_avail_set, starting with the one whose source is
23527 a constant. Use cprop_reg_p to check if register can be propagated.
23528 (do_local_cprop): Use cprop_reg_p to check if register can be
23529 propagated.
23530 (implicit_set_cond_p): Likewise.
23531
23532 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
23533
23534 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
23535 (sem_function::equals): IGNORED_NODES parameter is now unused;
23536 update call of equals_private.
23537 (sem_function::equals_private): Do not call equals_wpa; skip
23538 gimple body matching if there is no body.
23539 (sem_function::init): Add logic to hash tthunk info.
23540 (sem_function::parse): Also parse thunks.
23541 * ipa-icf.h (equals_private): Update declaration.
23542
23543 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23544
23545 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
23546 asterisk from name so this can be generated directly.
23547 (*altivec_stvx_<mode>_internal): Likewise.
23548 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
23549 that this is never called during or after reload/lra.
23550 (rs6000_frame_related): Remove split_reg
23551 argument and logic that references it.
23552 (emit_frame_save): Remove last parameter from call to
23553 rs6000_frame_related.
23554 (rs6000_emit_prologue): Remove last parameter from eight calls to
23555 rs6000_frame_related. Force generation of stvx instruction for
23556 Altivec register saves. Remove split_reg handling, which is no
23557 longer needed.
23558 (rs6000_emit_epilogue): Force generation of lvx instruction for
23559 Altivec register restores.
23560
23561 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23562
23563 * config/rs6000/rs6000.opt (mcrypto): Change option description to
23564 match category changes in ISA 2.07B.
23565
23566 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23567
23568 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
23569 iterators.
23570 (cmp_op, cmp_type): New code attributes.
23571 (NEON_VCMP, NEON_VACMP): New int iterators.
23572 (cmp_op_unsp): New int attribute.
23573 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
23574 (neon_vceq<mode>): Delete.
23575 (neon_vc<cmp_op><mode>_insn): New pattern.
23576 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
23577 (neon_vcgeu<mode>): Delete.
23578 (neon_vcle<mode>): Likewise.
23579 (neon_vclt<mode>: Likewise.
23580 (neon_vcage<mode>): Likewise.
23581 (neon_vcagt<mode>): Likewise.
23582 (neon_vca<cmp_op><mode>): New define_expand.
23583 (neon_vca<cmp_op><mode>_insn): New pattern.
23584 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
23585
23586 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
23587
23588 * tree.h (attribute_value_equal): Declare.
23589 * tree.c (attribute_value_equal): Export.
23590
23591 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
23592
23593 * ipa-icf.c (sem_item::compare_attributes): New function.
23594 (sem_item::compare_referenced_symbol_properties): Compare variable
23595 attributes.
23596 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
23597 (sem_function::param_used_p): New function.
23598 (sem_function::equals_wpa): Fix attribute comparsion; match
23599 parameter type codes; do not compare paremter flags when
23600 they are not used; compare edge flags; compare indirect calls.
23601 (sem_item::update_hash_by_addr_refs): Hash reference type.
23602 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
23603 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
23604 reference use type.
23605 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
23606 * ipa-icf.h (compare_attributes, param_used_p): Declare.
23607
23608 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
23609
23610 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
23611 cleanup.
23612 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
23613 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
23614 (sem_item::compare_referenced_symbol_properties): New.
23615 (sem_item::hash_referenced_symbol_properties): New.
23616 (sem_item::compare_cgraph_references): Rename to ...
23617 (sem_item::compare_symbol_references): ... this one; use
23618 compare_referenced_symbol_properties.
23619 (sem_function::equals_wpa): Do not compare
23620 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
23621 DECL_IS_OPERATOR_NEW; compare pointer sizes.
23622 (sem_item::update_hash_by_addr_refs): Call
23623 hash_referenced_symbol_properties.
23624 (sem_item::update_hash_by_local_refs): Cleanup.
23625 (sem_function::merge): Do not mix up symbol properties.
23626 (sem_variable::equals_wpa): Use compare_symbol_references.
23627 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
23628 (sem_item::hash_referenced_symbol_properties): New.
23629 (sem_item::compare_symbol_references): New.
23630 (sem_item::compare_cgraph_references): Remove.
23631
23632 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
23633
23634 PR target/26702
23635 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
23636 Emit size of local.
23637
23638 2015-04-23 Nick Clifton <nickc@redhat.com>
23639
23640 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
23641 ATTRIBUTE_UNUSED to x parameter.
23642 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
23643
23644 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23645
23646 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
23647 TARGET_CRYPTO to TARGET_P8_VECTOR>
23648 (crypto_vpermxor_<mode>): Likewise.
23649 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
23650 (BU_CRYPTO_3A): Likewise.
23651 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
23652 (BU_CRYPTO_OVERLOAD_3A): New #define.
23653 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
23654 (VPMSUMH): Likewise.
23655 (VPMSUMW): Likewise.
23656 (VPMSUMD): Likewise.
23657 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
23658 (VPERMXOR_V4SI): Likewise.
23659 (VPERMXOR_V8HI): Likewise.
23660 (VPERMXOR_V16QI): Likewise.
23661 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
23662 BU_CRYPTO_OVERLOAD_2A.
23663 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
23664 BU_CRYPTO_OVERLOAD_3A.
23665 * config/rs6000/rs6000.opt (mcrypto): Change description of
23666 option.
23667
23668 2015-04-23 Richard Biener <rguenther@suse.de>
23669
23670 * passes.def: Remove copy propagation passes run directly after CCP.
23671 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
23672 SSA names.
23673 (ccp_visit_phi_node): Rework to handle first executable edge
23674 specially.
23675
23676 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
23677
23678 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
23679 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
23680 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
23681 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
23682 (thumb_legimitimize_reload_address): Remove.
23683 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
23684 Remove.
23685 (thumb_legimitimize_reload_address): Remove.
23686
23687 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23688
23689 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
23690
23691 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23692
23693 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
23694 MAX_LDM_STM_OPS.
23695 (store_multiple): Likewise.
23696
23697 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23698
23699 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
23700 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
23701 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
23702 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
23703 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
23704 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
23705 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
23706 Specify issue_rate value.
23707 (arm_issue_rate): Look up issue rate from tuning structs. Remove
23708 large switch statement.
23709 (arm_marvell_pj4_tune): New struct.
23710 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
23711 struct.
23712
23713 2015-04-23 Richard Biener <rguenther@suse.de>
23714
23715 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
23716 (vect_find_last_store_in_slp_instance): Rename to ...
23717 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
23718 (vect_analyze_slp_cost_1): Use vector_load for constant defs
23719 and vec_construct for external defs when estimating prologue cost.
23720 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
23721 Compute costs here only when vectorizing loops.
23722 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
23723 have been determined.
23724 (vect_schedule_slp_instance): Simplify vectorized code placement
23725 and prepare for in-BB external defs.
23726 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
23727 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
23728 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
23729 guard.
23730 (vect_model_load_cost): Likewise.
23731 (vectorizable_store): Instead add it here.
23732 (vectorizable_load): Likewise.
23733 (vect_is_simple_use): Dump def type textually.
23734
23735 2015-04-23 Richard Biener <rguenther@suse.de>
23736
23737 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
23738 * cfgloop.c (verify_loop_structure): Verify the root loop node.
23739 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
23740 instead of get_eh_region_from_lp_number.
23741 * loop-init.c (fix_loop_structure): If we removed a loop, reset
23742 the SCEV cache.
23743
23744 2015-04-23 Anton Blanchard <anton@samba.org>
23745
23746 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
23747 need for -mprofile-kernel to save LR to stack.
23748
23749 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23750
23751 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
23752 adjustments.
23753 (insn_is_swappable_p): Return 1 for a convert from double to
23754 single precision when all of its uses are splats of BE element
23755 zero.
23756
23757 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
23758
23759 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
23760
23761 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23762
23763 PR target/65456
23764 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
23765 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
23766 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
23767 option.
23768 (rs6000_builtin_mask_for_load): Return 0 for targets with
23769 efficient unaligned VSX accesses so that the vectorizer will use
23770 direct unaligned loads.
23771 (rs6000_builtin_support_vector_misalignment): Always return true
23772 for targets with efficient unaligned VSX accesses.
23773 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
23774 stores on targets with efficient unaligned VSX accesses is almost
23775 always the same as the cost of an aligned load or store, so model
23776 it that way.
23777 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
23778 unaligned vectors if we have efficient unaligned VSX accesses.
23779 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
23780 undocumented option.
23781
23782 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23783
23784 Revert:
23785 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
23786
23787 * config.gcc (LIBC_MUSL): New tm_defines macro.
23788 * config/linux.h (OPTION_MUSL): Define.
23789 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
23790 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
23791 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
23792
23793 * config/linux.opt (mmusl): New option.
23794 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
23795 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
23796
23797 * configure: Regenerate.
23798
23799 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
23800
23801 * config.gcc (LIBC_MUSL): New tm_defines macro.
23802 * config/linux.h (OPTION_MUSL): Define.
23803 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
23804 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
23805 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
23806
23807 * config/linux.opt (mmusl): New option.
23808 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
23809 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
23810
23811 * configure: Regenerate.
23812
23813 2015-04-22 Yury Gribov <y.gribov@samsung.com>
23814
23815 * doc/invoke.texi (-fsanitize-sections): Update description.
23816 * asan.c (set_sanitized_sections): Parse incoming arg.
23817 (section_sanitized_p): Support wildcards.
23818
23819 2015-04-22 Tom de Vries <tom@codesourcery.com>
23820
23821 PR tree-optimization/65823
23822 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
23823 equality between ap_copy and ap.
23824
23825 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23826
23827 PR target/47098
23828 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
23829
23830 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23831
23832 PR target/47122
23833 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
23834
23835 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23836
23837 PR target/55144
23838 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
23839 remove already contained t-files.
23840
23841 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23842
23843 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
23844 Remove unneeded forward declarations.
23845 (suitable_for_tail_call_opt_p): Commentary typo fix.
23846
23847 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23848
23849 * varasm.c (emit_bss): Remove redundant guard.
23850
23851 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23852
23853 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
23854
23855 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23856
23857 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
23858
23859 2015-04-22 Hale Wang <hale.wang@arm.com>
23860 Terry Guo <terry.guo@arm.com>
23861
23862 PR rtl-optimization/64818
23863 * combine.c (can_combine_p): Don't combine user-specified
23864 register if it is in an asm input.
23865
23866 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
23867
23868 PR ipa/65076
23869 * passes.def (early_optimizations): Add pass_dse.
23870
23871 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23872
23873 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
23874 * reorg.c (redundant_insn): Remove ifdef
23875 INSN_REFERENCES_ARE_DELAYED.
23876 * resource.c (mark_referenced_resources): Likewise.
23877
23878 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23879
23880 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
23881 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
23882 * resource.c (mark_set_resources): Likewise.
23883
23884 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23885
23886 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
23887 * cfgcleanup.c (flow_find_cross_jump): Likewise.
23888 (flow_find_head_matching_sequence): Likewise.
23889 (try_head_merge_bb): Likewise.
23890 * combine.c (can_combine_p): Likewise.
23891 (try_combine): Likewise.
23892 (distribute_notes): Likewise.
23893 * df-problems.c (can_move_insns_across): Likewise.
23894 * final.c (final): Likewise.
23895 * gcse.c (insert_insn_end_basic_block): Likewise.
23896 * ira.c (find_moveable_pseudos): Likewise.
23897 * reorg.c (try_merge_delay_insns): Likewise.
23898 (fill_simple_delay_slots): Likewise.
23899 (fill_slots_from_thread): Likewise.
23900 * sched-deps.c (sched_analyze_2): Likewise.
23901
23902 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23903
23904 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
23905 PIC_OFFSET_TABLE_REGNUM.
23906
23907 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23908
23909 * alias.c (init_alias_target): Remove ifdef
23910 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
23911 * df-scan.c (df_insn_refs_collect): Likewise.
23912 (df_get_regular_block_artificial_uses): Likewise.
23913 (df_get_eh_block_artificial_uses): Likewise.
23914 (df_get_entry_block_def_set): Likewise.
23915 (df_get_exit_block_use_set): Likewise.
23916 * emit-rtl.c (gen_rtx_REG): Likewise.
23917 * ira.c (ira_setup_eliminable_regset): Likewise.
23918 * reginfo.c (init_reg_sets_1): Likewise.
23919 * regrename.c (rename_chains): Likewise.
23920 * reload1.c (reload): Likewise.
23921 (eliminate_regs_in_insn): Likewise.
23922 * resource.c (mark_referenced_resources): Likewise.
23923 (init_resource_info): Likewise.
23924
23925 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23926
23927 * defaults.h (MASK_RETURN_ADDR): New definition.
23928 * except.c (expand_builtin_extract_return_addr): Remove ifdef
23929 MASK_RETURN_ADDR.
23930
23931 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23932
23933 * defaults.h (RETURN_ADDR_OFFSET): New definition.
23934 * except.c (expand_builtin_extract_return_addr): Remove ifdef
23935 RETURN_ADDR_OFFSET.
23936 (expand_builtin_frob_return_addr): Likewise.
23937
23938 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23939
23940 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
23941 (try_redirect_by_replacing_jump): Likewise.
23942 (rtl_tidy_fallthru_edge): Likewise.
23943 * combine.c (insn_a_feeds_b): Likewise.
23944 (find_split_point): Likewise.
23945 (simplify_set): Likewise.
23946 * cprop.c (cprop_jump): Likewise.
23947 * cse.c (cse_extended_basic_block): Likewise.
23948 * df-problems.c (can_move_insns_across): Likewise.
23949 * function.c (emit_use_return_register_into_block): Likewise.
23950 * haifa-sched.c (sched_init): Likewise.
23951 * ira.c (find_moveable_pseudos): Likewise.
23952 * loop-invariant.c (find_invariant_insn): Likewise.
23953 * lra-constraints.c (curr_insn_transform): Likewise.
23954 * postreload.c (reload_combine_recognize_const_pattern):
23955 * Likewise.
23956 * reload.c (find_reloads): Likewise.
23957 * reorg.c (delete_scheduled_jump): Likewise.
23958 (steal_delay_list_from_target): Likewise.
23959 (steal_delay_list_from_fallthrough): Likewise.
23960 (redundant_insn): Likewise.
23961 (fill_simple_delay_slots): Likewise.
23962 (fill_slots_from_thread): Likewise.
23963 (delete_computation): Likewise.
23964 * sched-rgn.c (add_branch_dependences): Likewise.
23965
23966 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23967
23968 * genconfig.c (main): Always define HAVE_cc0.
23969 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
23970 HAVE_cc0.
23971 * cfgcleanup.c (flow_find_cross_jump): Likewise.
23972 (flow_find_head_matching_sequence): Likewise.
23973 (try_head_merge_bb): Likewise.
23974 * cfgrtl.c (rtl_merge_blocks): Likewise.
23975 (try_redirect_by_replacing_jump): Likewise.
23976 (rtl_tidy_fallthru_edge): Likewise.
23977 * combine.c (do_SUBST_MODE): Likewise.
23978 (insn_a_feeds_b): Likewise.
23979 (combine_instructions): Likewise.
23980 (can_combine_p): Likewise.
23981 (try_combine): Likewise.
23982 (find_split_point): Likewise.
23983 (subst): Likewise.
23984 (simplify_set): Likewise.
23985 (distribute_notes): Likewise.
23986 * cprop.c (cprop_jump): Likewise.
23987 * cse.c (cse_extended_basic_block): Likewise.
23988 * df-problems.c (can_move_insns_across): Likewise.
23989 * final.c (final): Likewise.
23990 (final_scan_insn): Likewise.
23991 * function.c (emit_use_return_register_into_block): Likewise.
23992 * gcse.c (insert_insn_end_basic_block): Likewise.
23993 * haifa-sched.c (sched_init): Likewise.
23994 * ira.c (find_moveable_pseudos): Likewise.
23995 * loop-invariant.c (find_invariant_insn): Likewise.
23996 * lra-constraints.c (curr_insn_transform): Likewise.
23997 * optabs.c (prepare_cmp_insn): Likewise.
23998 * postreload.c (reload_combine_recognize_const_pattern):
23999 * Likewise.
24000 * reload.c (find_reloads): Likewise.
24001 (find_reloads_address_1): Likewise.
24002 * reorg.c (delete_scheduled_jump): Likewise.
24003 (steal_delay_list_from_target): Likewise.
24004 (steal_delay_list_from_fallthrough): Likewise.
24005 (try_merge_delay_insns): Likewise.
24006 (redundant_insn): Likewise.
24007 (fill_simple_delay_slots): Likewise.
24008 (fill_slots_from_thread): Likewise.
24009 (delete_computation): Likewise.
24010 (relax_delay_slots): Likewise.
24011 * sched-deps.c (sched_analyze_2): Likewise.
24012 * sched-rgn.c (add_branch_dependences): Likewise.
24013
24014 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24015
24016 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
24017 that is trivially ded on non cc0 targets.
24018 (simplify_set): Likewise.
24019 (mark_used_regs_combine): Likewise.
24020 * cse.c (new_basic_block): Likewise.
24021 (fold_rtx): Likewise.
24022 (cse_insn): Likewise.
24023 (cse_extended_basic_block): Likewise.
24024 (set_live_p): Likewise.
24025 * rtlanal.c (canonicalize_condition): Likewise.
24026 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
24027
24028 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24029
24030 * conditions.h: Define macros even if HAVE_cc0 is undefined.
24031 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
24032 * final.c: Likewise.
24033 * jump.c: Likewise.
24034 * recog.c: Likewise.
24035 * recog.h: Declare functions even when HAVE_cc0 is undefined.
24036 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
24037
24038 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24039
24040 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
24041 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
24042 * builtins.c (expand_builtin): Remove check if
24043 EH_RETURN_DATA_REGNO is defined.
24044 * df-scan.c (df_bb_refs_collect): Likewise.
24045 (df_get_exit_block_use_set): Likewise.
24046 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
24047 * ira-lives.c (process_bb_node_lives): Likewise.
24048 * lra-lives.c (process_bb_lives): Likewise.
24049
24050 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
24051
24052 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
24053 FIRST_PSEUDO_REG): New.
24054 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
24055 (ARG_POINTER_REGNUM): Define to ARGP_REG.
24056 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
24057 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
24058 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
24059 (FIRST_INT_REG): New.
24060 (LAST_INT_REG): New.
24061 (FIRST_*_REG): Define using *_REG.
24062 (LAST_*_REG): Ditto.
24063 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
24064 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
24065 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
24066
24067 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24068
24069 * expmed.c: (synth_mult): Only assume overlapping
24070 shift with previous steps in alg_sub_t_m2 case.
24071
24072 2015-04-21 Richard Biener <rguenther@suse.de>
24073
24074 PR tree-optimization/65650
24075 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
24076 transitions involving copies.
24077 (set_lattice_value): Adjust for copy lattice state.
24078 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
24079 if that doesn't dominate the merge point.
24080 (bit_value_unop): Adjust what we treat as varying mask.
24081 (bit_value_binop): Likewise.
24082 (bit_value_assume_aligned): Likewise.
24083 (evaluate_stmt): When we simplified to a SSA name record a copy
24084 instead of dropping to varying.
24085 (visit_assignment): Simplify.
24086
24087 * gimple-match.h (gimple_simplify): Add another callback.
24088 * gimple-fold.c (fold_stmt_1): Adjust caller.
24089 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
24090 for the 2nd callback.
24091 * gimple-match-head.c (gimple_simplify): Add a callback that is
24092 used to valueize the stmt operands and use it that way.
24093
24094 2015-04-21 Richard Biener <rguenther@suse.de>
24095
24096 PR tree-optimization/65788
24097 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
24098
24099 2015-04-21 Richard Biener <rguenther@suse.de>
24100
24101 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
24102 vec_construct cost by vec_stmt_cost.
24103
24104 2015-04-21 Richard Biener <rguenther@suse.de>
24105
24106 * cfghooks.h (create_basic_block): Replace with two overloads
24107 for RTL and GIMPLE.
24108 (split_block): Likewise.
24109 * cfghooks.c (split_block): Rename to ...
24110 (split_block_1): ... this.
24111 (split_block): Add two type-safe overloads for RTL and GIMPLE.
24112 (split_block_after_labels): Call split_block_1.
24113 (create_basic_block): Rename to ...
24114 (create_basic_block_1): ... this.
24115 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
24116 (create_empty_bb): Call create_basic_block_1.
24117 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
24118 split_block_after_labels.
24119 * omp-low.c (expand_parallel_call): Likewise.
24120 (expand_omp_target): Likewise.
24121 (simd_clone_adjust): Likewise.
24122 * tree-chkp.c (chkp_get_entry_block): Likewise.
24123 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
24124 create_basic_block overload.
24125 (cgraph_node::expand_thunk): Likewise.
24126 * tree-cfg.c (make_blocks): Likewise.
24127 (handle_abnormal_edges): Likewise.
24128 * tree-inline.c (copy_bb): Likewise.
24129
24130 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24131
24132 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
24133 New pattern.
24134 (*xor_one_cmplsidi3_ze): Likewise.
24135
24136 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
24137
24138 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
24139 use df_remove_problem rather than manually removing problems, leaving
24140 holes in df->problems_in_order[].
24141
24142 2015-04-21 Tom de Vries <tom@codesourcery.com>
24143
24144 PR tree-optimization/65802
24145 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
24146
24147 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24148
24149 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
24150 Increase to 128.
24151 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
24152 at '.'. Assert that there's enough space for everything.
24153
24154 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
24155
24156 PR tree-optimization/64950
24157 Revert:
24158 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
24159
24160 PR target/41089
24161 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
24162 as volatile.
24163
24164 2015-04-20 Shiva Chen <shiva0217@gmail.com>
24165
24166 PR rtl-optimization/64916
24167 * cfgcleanup.c (values_equal_p): New function.
24168 (can_replace_by): Use it.
24169
24170 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
24171
24172 PR c++/65801
24173 * doc/invoke.texi ([-Wnarrowing]): Update.
24174
24175 2015-04-20 Jeff Law <law@redhat.com>
24176
24177 PR tree-optimization/65658
24178 * tree-ssa-threadupdate.c (redirection_block_p): Remove
24179 redundant test for GIMPLE_ASSIGN in last change.
24180
24181 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
24182
24183 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
24184 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
24185 (legitimize_tls_address): Ditto.
24186 (ix86_expand_move): Ditto.
24187 (ix86_expand_binary_operator): Remove reload_in_progress checks.
24188 (ix86_expand_unary_operator): Ditto.
24189 * config/i386/predicates.md (index_register_operand): Ditto.
24190
24191 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
24192
24193 * reorg.c (try_merge_delay_insns): Improve correctness checking
24194 for targets with multiple delay slots.
24195
24196 2015-04-20 Jeff Law <law@redhat.com>
24197
24198 PR tree-optimization/65658
24199 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
24200 statements too.
24201
24202 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
24203
24204 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
24205 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
24206 Delete.
24207
24208 2015-04-20 Jakub Jelinek <jakub@redhat.com>
24209
24210 PR debug/65807
24211 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
24212
24213 2015-04-20 Richard Biener <rguenther@suse.de>
24214
24215 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
24216 * gimple-fold.c (gimple_build_valueize): New function.
24217 (gimple_build): Always use gimple_build_valueize as valueize hook.
24218
24219 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
24220
24221 PR target/64134
24222 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
24223 and overwrite variable parts if <= 1/2 the elements are variable.
24224
24225 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
24226
24227 PR rtl-optimization/65805
24228 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
24229 Don't use difference of offset and previous offset if
24230 update_sp_offset is non-zero.
24231 (eliminate_regs_in_insn): Ditto.
24232 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
24233 lra_eliminate_regs_1 call.
24234 * lra-constraints.c (get_equiv_with_elimination): Ditto.
24235
24236 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
24237
24238 * hash-table.h: Remove version of hash_table that stored value_type *.
24239 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
24240 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
24241 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
24242 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
24243 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
24244 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
24245 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
24246 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
24247 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
24248 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
24249 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
24250 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
24251 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
24252 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
24253 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
24254 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
24255
24256 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24257 Jakub Jelinek <jakub@redhat.com>
24258
24259 PR target/65787
24260 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
24261 subsequent SH_NONE operand does not overwrite an existing *special
24262 value.
24263 (adjust_extract): Handle case where a vec_extract operation is
24264 wrapped in a PARALLEL.
24265
24266 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
24267
24268 PR target/65780
24269 * config/i386/i386.c (ix86_binds_local_p): Define only if
24270 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
24271
24272 2015-04-17 Jeff Law <law@redhat.com>
24273
24274 PR tree-optimization/47679
24275 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
24276 * tree-ssa-scopedtables.c: New file.
24277 * tree-ssa-scopedtables.h: New file.
24278 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
24279 (const_and_copies): Change name/type.
24280 (record_const_or_copy): Move into tree-ssa-scopedtables.c
24281 (record_const_or_copy_1): Similarly.
24282 (restore_vars_to_original_value): Similarly.
24283 (pass_dominator::execute): Create and destroy const_and_copies table.
24284 (thread_across_edge): Update passing of const_and_copies.
24285 (record_temporary_equivalence): Use method calls rather than
24286 manipulating const_and_copies directly.
24287 (record_equality, cprop_into_successor_phis): Similarly.
24288 (dom_opt_dom_walker::before_dom_children): Similarly.
24289 (dom_opt_dom_walker::after_dom_children): Similarly.
24290 (eliminate_redundant_computations): Similarly.
24291 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
24292 (record_temporary_equivalence): Likewise.
24293 (invalidate_equivalences): Likewise.
24294 (record_temporary_equivalences_from_phis): Update due to type
24295 change of const_and_copies. Use method calls rather than
24296 manipulating the stack directly.
24297 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
24298 (thread_through_normal_block, thread_across_edge): Likewise.
24299 (thread_across_edge): Likewise.
24300 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
24301 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
24302 of equiv_stack.
24303 (identify_jump_threads): Update due to type change of equiv_stack.
24304 (finalize_jump_threads): Delete the equiv_stack when complete.
24305
24306 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
24307
24308 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
24309 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
24310 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
24311
24312 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
24313
24314 PR target/65535
24315 * config.gcc: Exit with a comment when we do not have a major version
24316 number for the FreeBSD target.
24317
24318 2015-04-17 Jakub Jelinek <jakub@redhat.com>
24319
24320 PR target/65689
24321 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
24322 maybe_allows_mem bitfields.
24323 (maybe_allows_none_start, maybe_allows_none_end,
24324 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
24325 maybe_allows_mem_end): New variables.
24326 (compute_maybe_allows): New function.
24327 (add_constraint): Use it to initialize maybe_allows_reg and
24328 maybe_allows_mem fields.
24329 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
24330 is_address constraints such that those that allow neither mem nor
24331 reg come first, then those that only allow reg but not mem, then
24332 those that only allow mem but not reg, then the rest.
24333 (write_allows_reg_mem_function): New function.
24334 (write_tm_preds_h): Call it.
24335 * stmt.c (parse_output_constraint, parse_input_constraint): Use
24336 the generated insn_extra_constraint_allows_reg_mem function
24337 instead of always setting *allows_reg = true; *allows_mem = true;
24338 for unknown extra constraints.
24339
24340 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
24341
24342 PR target/65780
24343 * output.h (default_binds_local_p_3): New.
24344 * varasm.c (default_binds_local_p_3): Make it public. Take an
24345 argument to indicate if common symbol may be local. If common
24346 symbol may be local, treat non-external variable as defined
24347 locally.
24348 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
24349 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
24350 * config/i386/i386.c (ix86_binds_local_p): New.
24351 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
24352 ix86_binds_local_p.
24353
24354 2015-04-17 Jakub Jelinek <jakub@redhat.com>
24355
24356 PR debug/65771
24357 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
24358 trying mem_loc_descriptor on XEXP (rtl, 0).
24359
24360 2015-04-17 Martin Liska <mliska@suse.cz>
24361
24362 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
24363 Release symbol_compare_collection.
24364 * ipa-reference.c: Add TODO that a vector should be released.
24365
24366 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
24367
24368 PR target/65296
24369 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
24370 to new AVR-LibC file layout (bug #44574).
24371 (*avrlibc_devicelib): Same.
24372 * config/avr/avr-mcus.def: Adjust comments.
24373 * config/avr/avr.opt (nodevicelib): Adjust help.
24374
24375 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
24376
24377 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
24378
24379 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
24380
24381 PR c++/64527
24382 * gimplify.c (gimplify_init_constructor): Always emit a
24383 side-effecting constructor.
24384
24385 2015-04-17 Tom de Vries <tom@codesourcery.com>
24386
24387 PR tree-optimization/64950
24388 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
24389 in cfun->curr_properties.
24390 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
24391 if we generate an IFN_VA_ARG.
24392 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
24393 function if PROP_gimple_lva is not set in src function.
24394
24395 2015-04-17 Tom de Vries <tom@codesourcery.com>
24396 Michael Matz <matz@suse.de>
24397
24398 PR tree-optimization/64950
24399 * gimple-iterator.c (update_modified_stmts): Remove static.
24400 * gimple-iterator.h (update_modified_stmts): Declare.
24401 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
24402 (gimplify_va_arg_internal): New function.
24403 (gimplify_va_arg_expr): Use IFN_VA_ARG.
24404 * gimplify.h (gimplify_va_arg_internal): Declare.
24405 * internal-fn.c (expand_VA_ARG): New unreachable function.
24406 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
24407 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
24408 (expand_ifn_va_arg): New function.
24409 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
24410 (pass_stdarg::execute): Call expand_ifn_va_arg.
24411 (pass_data_lower_vaarg): New pass_data.
24412 (pass_lower_vaarg): New gimple_opt_pass.
24413 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
24414 (make_pass_lower_vaarg): New function.
24415 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
24416 properties_required field.
24417 * passes.def (all_passes): Add pass_lower_vaarg.
24418 * tree-pass.h (PROP_gimple_lva): Add define.
24419 (make_pass_lower_vaarg): Declare.
24420
24421 2015-04-17 Tom de Vries <tom@codesourcery.com>
24422
24423 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
24424 * calls.c (call_expr_flags): Same.
24425
24426 2015-04-17 Tom de Vries <tom@codesourcery.com>
24427
24428 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
24429 (pass_stdarg::execute): ... here.
24430
24431 2015-04-17 Tom de Vries <tom@codesourcery.com>
24432 Michael Matz <matz@suse.de>
24433
24434 * tree-cfg.c (make_blocks_1): Factor out of ...
24435 (make_blocks): ... here.
24436 (make_edges_bb): Factor out of ...
24437 (make_edges): ... here.
24438 (gimple_find_sub_bbs): New function.
24439 * tree-cfg.h (gimple_find_sub_bbs): Declare.
24440
24441 2015-04-17 Tom de Vries <tom@codesourcery.com>
24442
24443 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
24444
24445 2015-04-17 Yury Gribov <y.gribov@samsung.com>
24446
24447 * asan.c (set_sanitized_sections): New function.
24448 (section_sanitized_p): Ditto.
24449 (asan_protect_global): Optionally sanitize user-defined
24450 sections.
24451 * asan.h (set_sanitized_sections): Declare new function.
24452 * common.opt (fsanitize-sections): New option.
24453 * doc/invoke.texi (-fsanitize-sections): Document new option.
24454 * opts-global.c (handle_common_deferred_options): Handle new
24455 option.
24456
24457 2015-04-17 Jakub Jelinek <jakub@redhat.com>
24458
24459 PR debug/65771
24460 * dwarf2out.c (loc_list_from_tree): Return NULL
24461 for DEBUG_EXPR_DECL.
24462
24463 2015-04-17 Christian Bruel <christian.bruel@st.com>
24464
24465 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
24466 same attributes.
24467
24468 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24469
24470 * ira-color.c (setup_left_conflict_sizes_p): Do not process
24471 node itself when computing left conflict subnode size.
24472
24473 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
24474
24475 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
24476 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
24477 *fop_<mode>_1_sse using enabled attribute. Use
24478 register_mixssei387nonimm_operand operand 1 predicate. Change
24479 alternative 3 constraints from "x" to "v".
24480
24481 2015-04-16 Richard Biener <rguenther@suse.de>
24482
24483 PR tree-optimization/65774
24484 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
24485 bit-value tracking on.
24486
24487 2015-04-16 Richard Biener <rguenther@suse.de>
24488
24489 PR tree-optimization/64277
24490 * tree-vrp.c (check_array_ref): Fix anti-range handling,
24491 simplify upper bound handling.
24492 (search_for_addr_array): Simplify.
24493 (check_array_bounds): Handle ADDR_EXPRs here.
24494 (check_all_array_refs): Simplify.
24495
24496 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
24497
24498 * config/i386/i386.c (print_reg): Rewrite function.
24499
24500 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24501
24502 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
24503 Invert the condition.
24504
24505 2015-04-16 Renlin Li <renlin.li@arm.com>
24506
24507 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
24508 simplifications for UNSIGNED_FLOAT.
24509
24510 2015-04-16 Nick Clifton <nickc@redhat.com>
24511
24512 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
24513 MUL_UNINIT.
24514 (enum rl78_cpu_type): New.
24515 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
24516 (umulhi3_shift_virt): Remove m constraint from operand 1.
24517 (umulqihi3_virt): Likewise.
24518 * config/rl78/rl78.c (rl78_option_override): Add code to process
24519 -mcpu and -mmul options.
24520 (rl78_alloc_physical_registers): Add code to handle divhi and
24521 divsi valloc attributes.
24522 (set_origin): Likewise.
24523 * config/rl78/rl78.h (RL78_MUL_G14): Define.
24524 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
24525 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
24526 __RL78_Gxx__.
24527 (ASM_SPEC): Pass -mcpu on to assembler.
24528 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
24529 (mulqi3_rl78): Likewise.
24530 (mulhi3_g13): Likewise.
24531 (mulhi3): Generate the G13 or G14 versions of the insn directly.
24532 (mulsi3): Likewise.
24533 (mulhi3_g14): Add clobbers of AX and BC.
24534 (mulsi3_g14): Likewise.
24535 (mulsi3_g13): Likewise.
24536 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
24537 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
24538 * config/rl78/rl78.opt (mmul): Initialise value to
24539 RL78_MUL_UNINIT.
24540 (mcpu): New option.
24541 (m13, m14, mrl78): New option aliases.
24542 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
24543 (MULTILIB_DIRNAMES): Add g13 and g14.
24544 * doc/invoke.texi: Document -mcpu and -mmul options.
24545
24546 2015-04-16 Richard Biener <rguenther@suse.de>
24547
24548 * tree-ssa-ccp.c (likely_value): See if we have operands that
24549 are marked as never simulate again and return CONSTANT in this
24550 case.
24551 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
24552 not have any operands that will be simulated again as
24553 not being simulated again.
24554
24555 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
24556
24557 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
24558 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
24559 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
24560 attribute.
24561 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
24562 enabled attribute.
24563 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
24564 *float<SWI48:mode><MODEF:mode>2_sse.
24565 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
24566 enabled attribute.
24567 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
24568 enabled attribute.
24569
24570 2015-04-15 Tom de Vries <tom@codesourcery.com>
24571
24572 PR other/65487
24573 * function.c (push_dummy_function): New function.
24574 (init_dummy_function_start): Use push_dummy_function.
24575 (pop_dummy_function): New function. Factored out of ...
24576 (expand_dummy_function_end): ... here.
24577 * function.h (push_dummy_function, pop_dummy_function): Declare.
24578 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
24579 pop_dummy_function.
24580 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
24581
24582 2015-04-15 Jeff Law <law@redhat.com>
24583
24584 PR tree-optimization/47679
24585 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
24586 need for forward declaration in upcoming changes.
24587 (record_conditions, record_edge_info): Likewise.
24588
24589 PR rtl-optimization/42522
24590 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
24591 SIGN_EXTRACT as a whole object rather than simplifying
24592 its operand.
24593
24594 2015-04-15 Jakub Jelinek <jakub@redhat.com>
24595
24596 PR ipa/65765
24597 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
24598 and GIMPLE_PREDICT use break instead of return true. For
24599 GIMPLE_EH_DISPATCH, compare dispatch region.
24600
24601 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
24602
24603 * doc/extend.texi (__sync Builtins): Simplify some text. Update
24604 details about the implementation. Make clear preference for
24605 __atomic builtins. Reduce possibility of future change.
24606
24607 2015-04-15 Nick Clifton <nickc@redhat.com>
24608
24609 * config/rx/rx.opt (mallow-string-insns): New option.
24610 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
24611 builtin if string instructions are denied.
24612 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
24613 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
24614 appropriate.
24615 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
24616 * config/rx/rx.md (movstr): Enable pattern only if string
24617 instructions are allowed.
24618 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
24619 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
24620 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
24621 (MULTILIB_DIRNAMES): Add no-strings.
24622 * doc/invoke.texi: Document -mno-allow-string-insns.
24623
24624 2015-04-15 Alan Modra <amodra@gmail.com>
24625
24626 PR target/65408
24627 PR target/58744
24628 PR middle-end/36043
24629 * calls.c (load_register_parameters): Don't load past end of
24630 mem unless suitably aligned.
24631
24632 2015-04-15 Nick Clifton <nickc@redhat.com>
24633
24634 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
24635 decrement instruction as being frame related.
24636 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
24637 based addresses.
24638 If zero extending a function address enclose the operation in
24639 %code(...).
24640 (rl78_preferred_reload_class): New function.
24641 (TARGET_PREFERRED_RELOAD_CLASS): Define.
24642 * config/rl78/rl78.md: Remove useless constraints in expanders.
24643 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
24644 (mulhi3_rl78): Likewise.
24645 (mulhi3_g13): Likewise.
24646 (mulsi3_rl78): Likewise.
24647 (es_addr): Move to before the multiply patterns.
24648
24649 2015-04-15 Alan Modra <amodra@gmail.com>
24650
24651 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
24652 and sequence_stack. Add seq.
24653 (seq_stack): Delete.
24654 * function.c (prepare_function_start): Don't access x_last_insn.
24655 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
24656 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
24657 * emit_rtl.c (start_sequence, push_topmost_sequence,
24658 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
24659 sequence accessors.
24660 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
24661 remove_insn): Likewise. Simplify.
24662 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
24663 and pop_topmost_sequence.
24664 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
24665 debug insns.
24666 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
24667
24668 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
24669
24670 PR target/65729
24671 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
24672 the assertiion.
24673
24674 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
24675
24676 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
24677 (LEGACY_INT_REGNO_P): Ditto.
24678 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
24679 (ANY_MASK_REG_P): Remove.
24680 (BND_REG_P): Rename from ANY_BND_REG_P.
24681 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
24682 legacy integer registers. Do not handle MMX_REG_P in a special way.
24683 Merge 64byte and 32byte SSE handling.
24684
24685 2015-04-14 Nick Clifton <nickc@redhat.com>
24686
24687 * expr.c (expand_assignment): Force an address offset computation
24688 into a register before changing its mode.
24689 (expand_expr_real_1): Likewise.
24690
24691 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
24692
24693 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
24694 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
24695 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
24696 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
24697 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
24698 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
24699 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
24700 and __aarch64_vget_lane_any.
24701
24702 2015-04-14 Jakub Jelinek <jakub@redhat.com>
24703
24704 PR rtl-optimization/65761
24705 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
24706 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
24707
24708 2015-04-14 Richard Biener <rguenther@suse.de>
24709
24710 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
24711 (graphite_can_represent_scev): Use POINTER_TYPE_P.
24712
24713 2015-04-14 Richard Biener <rguenther@suse.de>
24714
24715 PR tree-optimization/65758
24716 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
24717 against -1.
24718 (ccp_lattice_meet): Likewise.
24719 (bit_value_unop): Likewise.
24720 (bit_value_binop): Likewise.
24721 (bit_value_assume_aligned): Likewise.
24722
24723 2015-04-14 Christian Bruel <christian.bruel@st.com>
24724
24725 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
24726 function.
24727
24728 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
24729
24730 PR tree-optimization/63387
24731 * match.pd ((x unord x) | (y unord y) -> (x unord y),
24732 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
24733
24734 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
24735
24736 * config/i386/predicates.md (any_QIreg_operand): Rename from
24737 q_regs_operand. Do not process subregs.
24738 (QIreg_operand): Use QI_REGNO_P predicate.
24739 (ext_QIreg_operand): Ditto.
24740 (ext_register_operand): Ditto.
24741 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
24742 (AND splitters): Ditto.
24743 (AND with -65536 splitter): Add SWI48 mode for operand 0.
24744 (AND with -256 splitter): Use any_QIreg_operand predicate and
24745 SWI248 mode for operand 0.
24746 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
24747 mode for operand 0.
24748 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
24749
24750 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
24751
24752 * doc/plugins.texi: Rewrite first introductory paragraph.
24753
24754 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
24755
24756 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
24757 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
24758
24759 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
24760
24761 * ipa-profie.c (ipa_profile): Check number of parameters
24762 and possible polymorphic call targets before
24763 devirtualizing.
24764
24765 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
24766
24767 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
24768 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
24769
24770 2015-04-13 Richard Biener <rguenther@suse.de>
24771
24772 PR tree-optimization/65204
24773 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
24774 takens for bit-CCP.
24775
24776 2015-04-13 Richard Biener <rguenther@suse.de>
24777
24778 PR target/65660
24779 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
24780 and cond_not_taken_branch_cost to 4 and 2.
24781 (bdver2_cost): Likewise.
24782 (bdver3_cost): Likewise.
24783 (bdver4_cost): Likewise.
24784
24785 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
24786
24787 * hash-table.h (hash_table constructor): Add mem stats.
24788 (alloc_entries): Likewise.
24789
24790 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
24791
24792 * ipa-cp.c (ipcp_driver): Relase prev_edge.
24793 * passes.c (execute_one_pass): Only add transform if pass has one.
24794
24795 2015-04-12 Joseph Myers <joseph@codesourcery.com>
24796
24797 * config/i386/i386.c (ix86_option_override_internal): Don't set
24798 -fprefetch-loop-arrays if optimizing for size.
24799
24800 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
24801 Gerald Pfeifer <gerald@pfeifer.com>
24802
24803 * doc/contrib.texi (Contributors): Add Martin Jambor and
24804 Michael Matz.
24805
24806 2015-04-12 Jakub Jelinek <jakub@redhat.com>
24807
24808 * BASE-VER: Set to 6.0.0.
24809
24810 PR tree-optimization/65747
24811 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
24812 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
24813
24814 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
24815
24816 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
24817 sentence. Improve grammar.
24818
24819 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
24820
24821 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
24822
24823 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
24824
24825 PR ipa/65743
24826 * ipa-inline-transform.c (speculation_removed): Remove static var.
24827 (check_speculations): New function.
24828 (clone_inlined_nodes): Do not check spculations.
24829 (inline_call): Call check_speculations.
24830 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
24831 consider non-invariants.
24832
24833 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
24834 Martin Liska <mliska@suse.cz>
24835
24836 PR ipa/65722
24837 * ipa-icf.c (sem_item::compare_cgraph_references): function and
24838 variable can not match.
24839 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
24840 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
24841
24842 2015-04-11 Jakub Jelinek <jakub@redhat.com>
24843
24844 PR tree-optimization/65735
24845 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
24846 Remove visited_phis argument, add visited_bbs, avoid recursing into the
24847 same bb rather than just into the same phi node.
24848 (thread_through_normal_block): Adjust caller.
24849
24850 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
24851
24852 * doc/contrib.texi (Contributors): Add Ira Rosen.
24853
24854 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
24855
24856 * gcov.c (find_source): Fix miswording in error message.
24857 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
24858 (ix86_expand_sse_comi_round): Fix typo in error message.
24859
24860 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
24861
24862 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
24863
24864 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
24865
24866 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
24867
24868 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
24869
24870 PR target/65710
24871 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
24872 Print bad_spills_num and insn_pseudos_num.
24873
24874 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24875
24876 PR target/65694
24877 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
24878 when creating +1 values for SImode.
24879
24880 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
24881
24882 PR target/65729
24883 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
24884 assert.
24885
24886 2015-04-10 Jakub Jelinek <jakub@redhat.com>
24887 Iain Sandoe <iain@codesourcery.com>
24888
24889 PR target/65351
24890 * configure: Regenerate.
24891
24892 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
24893
24894 PR target/65671
24895 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
24896
24897 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
24898
24899 * doc/contrib.texi (Contributors): Add John Marino.
24900
24901 2015-04-09 Jakub Jelinek <jakub@redhat.com>
24902
24903 PR tree-optimization/65709
24904 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
24905 TREE_TYPE (TREE_TYPE (t)).
24906
24907 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
24908
24909 PR target/65710
24910 * lra-int.h (lra_bad_spill_regno_start): New.
24911 * lra.c (lra_bad_spill_regno_start): New.
24912 (lra): Set up lra_bad_spill_regno_start. Set up
24913 lra_constraint_new_regno_start unconditionally.
24914 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
24915 spill preferences.
24916
24917 2015-04-09 Marek Polacek <polacek@redhat.com>
24918 Jakub Jelinek <jakub@redhat.com>
24919
24920 PR middle-end/65554
24921 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
24922 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
24923 of STRIP_NOPS.
24924
24925 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
24926
24927 PR rtl-optimization/65693
24928 * combine.c (is_parallel_of_n_reg_sets): Move outside of
24929 #ifndef HAVE_cc0.
24930
24931 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
24932
24933 PR target/65296
24934 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
24935 device specs file if "device-specs%s" didn't resolve to a path.
24936
24937 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
24938
24939 PR target/65676
24940 * config/i386/i386.c (fixup_modeless_constant): New.
24941 (ix86_expand_args_builtin): Fixup modeless constant operand.
24942 (ix86_expand_round_builtin): Ditto.
24943 (ix86_expand_special_args_builtin): Ditto.
24944 (ix86_expand_builtin): Ditto.
24945
24946 2015-04-09 Jakub Jelinek <jakub@redhat.com>
24947
24948 PR target/65693
24949 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
24950 any pow2 integer in between 2 and 0x80000000U inclusive.
24951
24952 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
24953
24954 PR rtl-optimization/65693
24955 * combine.c (is_parallel_of_n_reg_sets): Change first argument
24956 from an rtx_insn * to an rtx.
24957 (try_combine): Adjust both callers. Use it once more.
24958
24959 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
24960
24961 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
24962 (chkp_make_static_const_bounds): Search existing
24963 symbol by assembler name. Use make_decl_one_only.
24964 (chkp_get_zero_bounds_var): Remove node search which
24965 is now performed in chkp_make_static_const_bounds.
24966 (chkp_get_none_bounds_var): Likewise.
24967
24968 2015-04-08 Michael Witten <mfwitten@gmail.com>
24969
24970 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
24971 to an example.
24972
24973 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24974
24975 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
24976
24977 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
24978
24979 * doc/extend.texi (__sync Builtins): Fix grammar.
24980
24981 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24982
24983 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
24984
24985 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24986
24987 * varasm.c (emit_local): Move definition of align.
24988
24989 2015-04-08 Julian Brown <julian@codesourcery.com>
24990
24991 * config/nvptx/mkoffload.c (process): Support variable mapping.
24992
24993 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
24994
24995 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
24996 alpha_links **.
24997 (alpha_write_one_linkage): Correct typo.
24998
24999 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
25000
25001 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
25002
25003 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
25004
25005 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
25006
25007 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
25008
25009 * tree-chkp.h (chkp_insert_retbnd_call): New.
25010 * tree-chkp.c (chkp_insert_retbnd_call): New.
25011 * ipa-split.c (insert_bndret_call_after): Remove.
25012 (split_function): Use chkp_insert_retbnd_call.
25013 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
25014 bounds for instrumented functions.
25015
25016 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
25017
25018 PR ipa/65540
25019 * calls.c (initialize_argument_information): When producing tail
25020 call also turn SSA_NAMES passed by references to original PARM_DECLs
25021
25022 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
25023
25024 PR target/65648
25025 * lra-remat.c (do_remat): Process input and non-input insn
25026 registers separately.
25027
25028 2015-04-07 Jakub Jelinek <jakub@redhat.com>
25029
25030 PR debug/65678
25031 * valtrack.c (debug_lowpart_subreg): New function.
25032 (dead_debug_insert_temp): Use it.
25033
25034 PR middle-end/65680
25035 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
25036 into signed HOST_WIDE_INT the same as negative bit_offset.
25037
25038 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
25039
25040 * ipa-comdats.c (ipa_comdats): Visit all thunks
25041 to set proper comdat group.
25042
25043 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25044
25045 PR target/65489
25046 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
25047 on constants for NEON VSTRUCT modes.
25048
25049 2015-04-07 Jakub Jelinek <jakub@redhat.com>
25050 Iain Sandoe <iain@codesourcery.com>
25051
25052 PR target/65351
25053 * configure: Regenerate.
25054
25055 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
25056
25057 PR target/65614
25058 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
25059 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
25060 that LFD is used to load double constants instead of LFS. Add
25061 defaults for all costs structures. Add comments for missing
25062 initialization fields.
25063 (size32_cost): Likewise.
25064 (size64_cost): Likewise.
25065 (rs64a_cost): Likewise.
25066 (mpccore_cost): Likewise.
25067 (ppc403_cost): Likewise.
25068 (ppc405_cost): Likewise.
25069 (ppc440_cost): Likewise.
25070 (ppc476_cost): Likewise.
25071 (ppc601_cost): Likewise.
25072 (ppc603_cost): Likewise.
25073 (ppc604_cost): Likewise.
25074 (ppc604e_cost): Likewise.
25075 (ppc620_cost): Likewise.
25076 (ppc630_cost): Likewise.
25077 (ppccell_cost): Likewise.
25078 (ppc750_cost): Likewise.
25079 (ppc7450_cost): Likewise.
25080 (ppc8540_cost): Likewise.
25081 (ppce300c2c3_cost): Likewise.
25082 (ppce500mc_cost): Likewise.
25083 (ppce500mc64_cost): Likewise.
25084 (ppce5500_cost): Likewise.
25085 (ppce6500_cost): Likewise.
25086 (titan_cost): Likewise.
25087 (power4_cost): Likewise.
25088 (power6_cost): Likewise.
25089 (power7_cost): Likewise.
25090 (power8_cost): Likewise.
25091 (ppca2_cost): Likewise.
25092 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
25093
25094 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
25095 instead of XXLOR to copy SFmode to clear out dirty bits created
25096 when SFmode denormals are generated.
25097 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
25098 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
25099
25100 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
25101
25102 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
25103 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
25104 * config/aarch64/aarch64-tune.md: Regenerate.
25105
25106 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
25107
25108 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
25109 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
25110 * config/arm/arm-cores.def (exynos-m1): New core.
25111 * config/arm/arm-tune.md: Regenerate.
25112 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
25113 * config/arm/bpabi.h: Likewise.
25114
25115 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
25116
25117 * ipa-cp (set_single_call_flag): Remove too
25118 restrictive assert.
25119
25120 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
25121
25122 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
25123 GOMP_offload_unregister from the destructor.
25124
25125 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
25126
25127 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
25128 flags for instrumentation thunk.
25129 (chkp_produce_thunks): Likewise.
25130
25131 2015-04-05 Martin Liska <mliska@suse.cz>
25132
25133 PR ipa/65665
25134 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
25135 has computed data structure.
25136 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
25137
25138 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
25139
25140 * invoke.texi (inline-unit-growth): Increase growth to 20%
25141 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
25142
25143 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
25144
25145 PR target/65647
25146 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
25147 value checking.
25148 (lra_rematerialization_iter): New.
25149 * lra.c (lra): Initialize lra_rematerialization_iter.
25150 Stop updating lra_constraint_new_regno_start after switching of
25151 inheritance and rematerialization.
25152 * lra-remat.c (lra_rematerialization_iter): New.
25153 (lra_remat): Add printing pass iteration. Do rematerialization
25154 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
25155
25156 2015-04-04 Richard Biener <rguenther@suse.de>
25157
25158 PR tree-optimization/64909
25159 PR tree-optimization/65660
25160 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
25161 to take a cost vector for scalar iteration cost.
25162 (vect_get_single_scalar_iteration_cost): Likewise.
25163 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
25164 Compute the scalar iteration cost into a cost vector.
25165 (vect_get_known_peeling_cost): Use the scalar cost vector to
25166 account for the cost of the peeled iterations.
25167 (vect_estimate_min_profitable_iters): Likewise.
25168 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
25169 Likewise.
25170
25171 2015-04-04 Alan Modra <amodra@gmail.com>
25172
25173 PR target/65576
25174 PR target/65240
25175 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
25176 0.0 constant unless TARGET_VSX.
25177 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
25178 alternative.
25179
25180 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
25181
25182 PR ipa/65654
25183 * ipa-inline-transform.c (inline_call): Skip sanity check to work
25184 around the ICE
25185
25186 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
25187
25188 PR ipa/65655
25189 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
25190 speculative indirect edges to avoid ordering issue.
25191
25192 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
25193
25194 PR ipa/65076
25195 * ipa-inline.c (edge_badness): Add combined size to the denominator.
25196
25197 2015-04-03 Jakub Jelinek <jakub@redhat.com>
25198
25199 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
25200 TYPE_ARTIFICIAL on the .omp_data* types.
25201
25202 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
25203
25204 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
25205 instrumentation thunks.
25206
25207 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
25208
25209 * config/i386/i386.c (ix86_expand_call): Avoid nested
25210 PARALLEL in returned call value.
25211
25212 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
25213
25214 * lto-cgraph.c (input_cgraph_1): Always link instrumented
25215 assembler name with original one.
25216
25217 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
25218
25219 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
25220
25221 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
25222
25223 Revert parts of r216820.
25224 * config/i386/i386.md (movqi_internal): Correct type calculation
25225 for alternatives 3 and 5.
25226
25227 2015-04-02 Jakub Jelinek <jakub@redhat.com>
25228
25229 PR preprocessor/61977
25230 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
25231 predefine __vector/__bool/__pixel macros nor context sensitive
25232 macros for CLK_ASM.
25233 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
25234
25235 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
25236
25237 * config/pa/pa.c (pa_output_move_double): Directly handle register
25238 indexed memory operand. Simplify handling of scaled register indexed
25239 memory operands.
25240
25241 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
25242
25243 PR driver/65444
25244 * config/i386/linux-common.h (MPX_SPEC): New.
25245 (CHKP_SPEC): Add MPX_SPEC.
25246 * doc/invoke.texi (-fcheck-pointer-boudns): Document
25247 possible issues with '-z bndplt' support in linker.
25248
25249 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
25250
25251 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
25252 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
25253 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
25254 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
25255 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
25256
25257 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
25258
25259 * config/i386/sync.md (UNSPEC_MOVA): Remove.
25260 (atomic_load<mode>): Change operand 0 predicate to
25261 nonimmediate_operand and fix up the destination when needed.
25262 Use UNSPEC_LDA.
25263 (atomic_loaddi_fpu): Use UNSPEC_LDA.
25264 (atomic_store<mode>): Change operand 1 predicate to
25265 nonimmendate_operand and move the source to register when needed.
25266 Use UNSPEC_STA.
25267 (atomic_store<mode>_1): Use UNSPEC_STA.
25268 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
25269 Fix moves from memory operand. Use UNSPEC_STA.
25270
25271 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
25272
25273 * expmed.c (strict_volatile_bitfield_p): Check that the access will
25274 not cross a MODESIZE boundary.
25275 (store_bit_field, extract_bit_field): Added assertions in the
25276 strict volatile bitfields code path.
25277
25278 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
25279
25280 PR target/65624
25281 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
25282 Increase args array size by one to avoid buffer overflow.
25283
25284 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
25285
25286 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
25287 split_part.
25288 * ipa-inline.c (edge_badness): Add wrapper penalty.
25289 (sum_callers): Move up.
25290 (inline_small_functions): Set single_caller.
25291 * ipa-inline.h (inline_summary): Add single_caller.
25292 * ipa-split.c (split_function): Set split_part.
25293 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
25294 * cgraph.h (cgraph_node): Add split_part.
25295
25296 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
25297
25298 PR target/58945
25299 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
25300 Do not split operands 0 and operands 2 to halfmode.
25301 (atomic_compare_and_swap<mode>): Update for
25302 atomic_compare_and_swap<dwi>_doubleword changes.
25303
25304 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
25305
25306 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
25307 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
25308 no caching is done.
25309
25310 2015-03-31 Martin Liska <mliska@suse.cz>
25311
25312 PR ipa/65557
25313 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
25314 has already filled up function summary.
25315 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
25316
25317 2015-03-31 Richard Biener <rguenther@suse.de>
25318
25319 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
25320 of types.
25321
25322 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
25323
25324 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
25325 nested functions.
25326 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
25327 (s390_asm_output_function_label): Adapt to new signature of
25328 s390_function_num_hotpatch_hw
25329 Optimise the code generating assembler output.
25330 Add comments to assembler file.
25331
25332 2015-03-31 Richard Biener <rguenther@suse.de>
25333
25334 PR middle-end/65626
25335 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
25336 of the noreturn call so it is last and cleanup_control_flow_bb
25337 can do the CFG part.
25338
25339 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
25340
25341 PR target/65531
25342 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
25343 same_comdat_group for external symbols.
25344 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
25345 infinite same_comdat_group traversal loop.
25346
25347 2015-03-31 Jakub Jelinek <jakub@redhat.com>
25348
25349 PR plugins/61176
25350 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
25351 automatically to $headers.
25352
25353 2015-03-30 Jakub Jelinek <jakub@redhat.com>
25354
25355 PR ipa/65610
25356 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
25357 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
25358 function.
25359 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
25360 Use it.
25361 * ipa-prop.c (param_type_may_change_p): Likewise.
25362 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
25363 (remove_unused_scope_block_p): Add in_ctor_dtor_block
25364 argument. Before inlining, preserve
25365 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
25366 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
25367 recursive calls.
25368 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
25369
25370 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
25371
25372 PR ipa/65076
25373 * ipa-inline.c (edge_badness): Base denominator on callee's
25374 grwoth squared.
25375
25376 2015-03-27 Martin Jambor <mjambor@suse.cz>
25377
25378 PR ipa/65478
25379 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
25380 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
25381 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
25382 node_calling_single_call.
25383 * ipa-cp.c (count_callers): New function.
25384 (set_single_call_flag): Likewise.
25385 (initialize_node_lattices): Count callers and set single_flag_call if
25386 necessary.
25387 (incorporate_penalties): New function.
25388 (good_cloning_opportunity_p): Use it, dump new flags.
25389 (propagate_constants_topo): Set node_within_scc flag if appropriate.
25390 * doc/invoke.texi (ipa-cp-recursion-penalty,
25391 ipa-cp-single-call-pentalty): Document.
25392
25393 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
25394
25395 PR ipa/65588
25396 * symtab.c (symtab_node::get_partitioning_class): Register vars
25397 are duplicated.
25398 * varpool.c (symbol_table::output_variables) Do not assemble unefined
25399 decls for non-symbols.
25400
25401 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
25402
25403 PR target/65248
25404 * output.h (default_binds_local_p_2): New.
25405 * varasm.c (default_binds_local_p_2): Renamed to ...
25406 (default_binds_local_p_3): This. Don't return true on protected
25407 data symbol if protected data may be external.
25408 (default_binds_local_p): Use default_binds_local_p_3.
25409 (default_binds_local_p_1): Likewise.
25410 (default_binds_local_p_2): New.
25411 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
25412 default_binds_local_p_2 if TARGET_MACHO is undefined.
25413
25414 2015-03-27 Jakub Jelinek <jakub@redhat.com>
25415
25416 PR target/65593
25417 * config/i386/i386.c (legitimize_pic_address): If base
25418 is SYMBOL_REF or LABEL_REF using %rip addressing, force
25419 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
25420
25421 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
25422
25423 PR target/65531
25424 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
25425 comdat groups.
25426
25427 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
25428
25429 PR ipa/65600
25430 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
25431 of optimized out indirect call.
25432 (redirect_to_unreachable): Always build symbol table node for
25433 BUILT_IN_UNREACHABLE
25434
25435 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
25436
25437 PR target/65407
25438 * ira-costs.c (record_reg_classes): Process all constraint string
25439 containing 0-9.
25440
25441 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
25442
25443 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
25444 memory_operand.
25445
25446 PR target/65052
25447 * config/c6x/constraints.md (S3): New constraint.
25448 * config/c6x/c6x.md (real_jump): Use it.
25449
25450 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25451
25452 PR middle-end/65595
25453 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
25454 do redirection if the call is not optimized out.
25455
25456 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
25457
25458 PR target/65495
25459 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
25460 (fchkp-check-incomplete-type): Add LTO.
25461 (fchkp-zero-input-bounds-for-main): Likewise.
25462 (fchkp-first-field-has-own-bounds): Likewise.
25463 (fchkp-narrow-bounds): Likewise.
25464 (fchkp-narrow-to-innermost-array): Likewise.
25465 (fchkp-use-static-bounds): Likewise.
25466 (fchkp-use-static-const-bounds): Likewise.
25467 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
25468
25469 2015-03-27 Marek Polacek <polacek@redhat.com>
25470
25471 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
25472
25473 2015-03-27 Marek Polacek <polacek@redhat.com>
25474
25475 PR sanitizer/65583
25476 * ubsan.c (ubsan_create_edge): New function.
25477 (instrument_bool_enum_load): Call it.
25478 (instrument_nonnull_arg): Likewise.
25479 (instrument_nonnull_return): Likewise.
25480 (instrument_object_size): Likewise.
25481
25482 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25483
25484 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
25485 auto_vec.
25486
25487 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25488
25489 PR lto/65536
25490 * lto-streamer.h (class lto_location_cache): New.
25491 (struct data_in): Add location_cache.
25492 (lto_input_location): Update prototype.
25493 (stream_input_location_now): New.
25494 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
25495 pointer to location.
25496 (stream_input_location): Update.
25497 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
25498 (warn_odr): Apply location cache before warning.
25499 (lto_input_location): Update prototype.
25500 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
25501 Use stream_input_location_now.
25502 * lto-streamer-in.c (lto_location_cache::current_cache): New static
25503 variable.
25504 (lto_location_cache::cmp_loc): New function.
25505 (lto_location_cache::apply_location_cache): New function.
25506 (lto_location_cache::accept_location_cache): New function.
25507 (lto_location_cache::revert_location_cache): New function.
25508 (lto_location_cache::input_location): New function.
25509 (lto_input_location): Do location caching.
25510 (stream_input_location_now): New function.
25511 (input_eh_region, input_struct_function_base): Use
25512 stream_input_location_now.
25513 (lto_data_in_create): use new.
25514 (lto_data_in_delete): Use delete.
25515 * tree-streamer-in.c (unpack_ts_block_value_fields,
25516 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
25517 lto_input_ts_exp_tree_pointers): Update for cached location api.
25518
25519 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25520
25521 PR ipa/65076
25522 * passes.def: Add pass_nothrow.
25523 * ipa-pure-const.c: (pass_data_nothrow): New.
25524 (pass_nothrow): New.
25525 (pass_nothrow::execute): New.
25526 (make_pass_nothrow): New.
25527 * tree-pass.h (make_pass_nothrow): Declare.
25528
25529 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25530
25531 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
25532 edge to change by speculation resolution or redirection.
25533 (edge_set_predicate): Likewise.
25534 (inline_summary_t::duplicate): Likewise.
25535 (remap_edge_summaries): Likewise.
25536
25537 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25538
25539 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
25540 New macros.
25541 (can_inline_edge_p): Relax option matching for always inline functions.
25542
25543 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
25544
25545 PR target/65561
25546 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
25547 Check operand 4 and operand 0 for equality.
25548 (avx512f_vextract<shuffletype>32x4_1_maskm):
25549 Check operand 6 and operand 0 for equality.
25550 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
25551 for equality.
25552 (vec_extract_hi_<mode>_maskm): Ditto.
25553
25554 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25555
25556 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
25557 dead calls back to live.
25558 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
25559 cross check to ...
25560 (cgraph_node::verify_node): ... here; verify only callee edges,
25561 not caller.
25562 * cif-code.def (CILK_SPAWN): New code.
25563
25564 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25565
25566 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
25567 (edge_set_predicate): Use it to mark unreachable edges.
25568 (inline_summary_t::duplicate): Remove unnecesary code.
25569 (remap_edge_summaries): Likewise.
25570 (dump_inline_summary): Report contains_cilk_spawn.
25571 (compute_inline_parameters): Compute contains_cilk_spawn.
25572 (inline_read_section, inline_write_summary): Stream
25573 contains_cilk_spawn.
25574 * ipa-inline.c (can_inline_edge_p): Do not touch
25575 DECL_STRUCT_FUNCTION that may not be available;
25576 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
25577 remove check for callee_fun->can_throw_non_call_exceptions and
25578 replace it by optimization attribute check; check for flag_exceptions.
25579 * ipa-inline-transform.c (inline_call): Maintain
25580 DECL_FUNCTION_PERSONALITY
25581 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
25582
25583 2015-03-26 Jakub Jelinek <jakub@redhat.com>
25584
25585 PR tree-optimization/65551
25586 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
25587 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
25588
25589 2015-03-26 Richard Biener <rguenther@suse.de>
25590
25591 PR middle-end/65555
25592 * tree-cfg.c (verify_gimple_call): Do not require a call to
25593 have no LHS if it wasn't recognized as control altering yet.
25594
25595 2015-03-26 Jakub Jelinek <jakub@redhat.com>
25596
25597 PR tree-optimization/64715
25598 * passes.def: Add another instance of pass_object_sizes before ccp1.
25599 * tree-object-size.c (pass_object_sizes::execute): In
25600 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
25601 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
25602 __bos result and the computed constant. Remove redundant
25603 checks, obsoleted by gimple_call_builtin_p test.
25604
25605 * var-tracking.c (variable_tracking_main_1): Don't track
25606 variables for targetm.no_register_allocation targets.
25607
25608 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
25609
25610 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
25611 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
25612
25613 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
25614
25615 PR target/65569
25616 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
25617 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
25618 0.0 is correctly setup.
25619 (extenddftf2_internal): Likewise.
25620
25621 2015-03-25 Sebastian Pop <s.pop@samsung.com>
25622
25623 PR tree-optimization/65177
25624 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
25625 (bb_in_bbs): New.
25626 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
25627 edges not adjacent on the path to the original code.
25628
25629 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
25630
25631 PR bootstrap/65537
25632 * doc/install.texi (Building a native compiler): Document new
25633 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
25634 configuration assumes that the host supports the linker plugin.
25635
25636 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
25637
25638 PR target/65508
25639 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
25640 chain for generated call.
25641
25642 2015-03-25 Richard Biener <rguenther@suse.de>
25643
25644 * passes.c (pass_manager::execute_early_local_passes): Guard
25645 execution of pass_chkp_instrumentation_passes with
25646 flag_check_pointer_bounds.
25647 (pass_chkp_instrumentation_passes::gate): Likewise.
25648
25649 2015-03-25 Martin Liska <mliska@suse.cz>
25650
25651 PR tree-optimization/65538
25652 * symbol-summary.h (function_summary::~function_summary):
25653 Relese memory for allocated summaries.
25654 (function_summary::release): New function.
25655
25656 2015-03-25 Jakub Jelinek <jakub@redhat.com>
25657
25658 PR lto/65515
25659 * lto-streamer-out.c (DFS::worklist): New struct.
25660 (DFS::worklist_vec): New data member.
25661 (DFS::next_dfs_num): Remove.
25662 (DFS::DFS): Rewritten using worklist instead of recursion,
25663 using most of code from DFS::DFS_write_tree.
25664 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
25665 pass it to DFS_write_tree calls.
25666 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
25667 quick initial checks push it into worklist_vec and return.
25668
25669 2015-03-25 Richard Biener <rguenther@suse.de>
25670
25671 PR middle-end/65519
25672 * genmatch.c (expr::gen_transform): Re-write to avoid
25673 using gimple_build.
25674
25675 2015-03-25 Bin Cheng <bin.cheng@arm.com>
25676
25677 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
25678
25679 2015-03-25 Bin Cheng <bin.cheng@arm.com>
25680
25681 * config/arm/arm.opt (print_tune_info): New option.
25682 * config/arm/arm.c (arm_print_tune_info): New function.
25683 (arm_file_start): Call arm_print_tune_info.
25684 * config/arm/arm-protos.h (struct tune_params): Add comment.
25685 * doc/invoke.texi (@item -mprint-tune-info): New item.
25686 (-mtune): mention it in ARM Option Summary.
25687
25688 2015-03-25 DJ Delorie <dj@redhat.com>
25689
25690 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
25691 correct clause.
25692
25693 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
25694 Martin Liska <mliska@suse.cz>
25695
25696 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
25697 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
25698 (sem_item::add_type): New function.
25699 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
25700 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
25701 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
25702 (sem_function::equals_wpa): Fix typo.
25703 * ipa-icf.h (sem_item::add_type): New function.
25704 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
25705 order.
25706
25707 2015-03-24 Jakub Jelinek <jakub@redhat.com>
25708
25709 PR tree-optimization/65533
25710 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
25711 with swapped operands, call vect_free_slp_tree on
25712 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
25713 vector.
25714
25715 2015-03-24 Richard Biener <rguenther@suse.de>
25716
25717 PR middle-end/65517
25718 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
25719 for fixup if necessary.
25720
25721 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
25722
25723 * doc/extend.texi (Function Attributes): Add @cindex entries
25724 for all attributes and regularize their format. Delete text
25725 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
25726 information about "eightbit_data", "tiny_data", and "model"
25727 variable attributes to the Variable Attributes section. Fix
25728 some obvious typos and copy-editing issues.
25729 (Variable Attributes, Type Attributes): Likewise add/fix
25730 @cindex entries for all attributes.
25731
25732 2015-03-23 Jakub Jelinek <jakub@redhat.com>
25733
25734 PR target/65523
25735 * tree-chkp.c (chkp_build_returned_bound): Ignore
25736 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
25737
25738 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
25739
25740 PR target/65505
25741 * config/sh/predicates.md (simple_mem_operand,
25742 displacement_mem_operand): Add test for reg.
25743 (short_displacement_mem_operand): Test for displacement_mem_operand
25744 before invoking sh_disp_addr_displacement.
25745 * config/sh/constraints.md (Sdd, Sra): Simplify.
25746 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
25747 Remove redundant displacement_mem_operand tests.
25748
25749 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
25750
25751 PR target/65296
25752 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
25753 the same -mmcu=MCU more than once.
25754
25755 2015-03-23 Jakub Jelinek <jakub@redhat.com>
25756
25757 PR bootstrap/65522
25758 * ipa-devirt.c: Remove duplicate demangle.h include.
25759
25760 PR target/65504
25761 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
25762 on the pseudo.
25763 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
25764 REG_POINTER on *destptr after adjusting it for prologue size.
25765
25766 PR ipa/65521
25767 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
25768 ultimate_alias_target ()->order ints instead of
25769 ultimate_alias_target () pointers.
25770
25771 2015-03-23 Richard Biener <rguenther@suse.de>
25772
25773 PR tree-optimization/65518
25774 * tree-vect-stmts.c (vectorizable_load): Reject single-element
25775 interleaving cases we generate absymal code for.
25776
25777 2015-03-23 Richard Biener <rguenther@suse.de>
25778
25779 PR tree-optimization/65494
25780 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
25781 matches here.
25782 (vect_analyze_slp_instance): But do that here, always and once.
25783
25784 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25785
25786 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
25787 adding T or multiplying by T+1 and subracting T.
25788
25789 2015-03-22 Jeff Law <law@redhat.com>
25790
25791 PR rtl-optimization/64317
25792 * Makefile.in (OBJS): Add gcse-common.c
25793 * gcse.c: Include gcse-common.h
25794 (struct modify_pair_s): Move structure definition to gcse-common.h
25795 (compute_transp): Move function to gcse-common.c.
25796 (canon_list_insert): Similarly.
25797 (record_last_mem_set_info): Break out some code and put it into
25798 gcse-common.c. Call into the new common code.
25799 (compute_local_properties): Pass additional arguments to compute_transp.
25800 * postreload-gcse.c: Include gcse-common.h and df.h
25801 (modify_mem_list_set, blocks_with_calls): New variables.
25802 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
25803 (get_bb_avail_insn): Pass in the expression index too.
25804 (alloc_mem): Allocate memory for the new bitmaps and lists.
25805 (free_mem): Free memory for the new bitmaps and lists.
25806 (insert_expr_in_table): Record a bitmap index for each entry we
25807 add to the table.
25808 (record_last_mem_set_info): Call into common code in gcse-common.c.
25809 (get_bb_avail_insn): If no available insn was found in the requested
25810 BB. If BB has a single predecessor, see if the expression is
25811 transparent in BB and available in that single predecessor.
25812 (compute_expr_transp): New wrapper for compute_transp.
25813 (eliminate_partially_redundant_load): Pass expression's bitmap_index
25814 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
25815 (gcse_after_reload_main): If there are elements in the hash table,
25816 then compute transparency for all the elements in the hash table.
25817 * gcse-common.h: New file.
25818 * gcse-common.c: New file.
25819
25820 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
25821
25822 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
25823 as an adjective.
25824 (System Headers): Likewise.
25825 (Ifdef): Likewise.
25826 (Traditional macros): Likewise.
25827 (Invocation): Likewise.
25828 (Option Index): Likewise.
25829 * doc/cppopts.texi (-M): Likewise.
25830 (-finput-charset): Likewise.
25831 (--help): Likewise.
25832 * doc.invoke.texi (AVR Options): Likewise.
25833 (V850 Options): Likewise.
25834
25835 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
25836
25837 PR ipa/65475
25838 * ipa-devirt.c: Include demangle.h
25839 (odr_type_d): Add field rtti_broken.
25840 (odr_subtypes_equivalent_p): Do not require name to match.
25841 (compare_virtual_tables): Fix typo; if type already has ODR violation,
25842 bypass the tests; be ready for function referneces in vtables that are
25843 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
25844 (warn_odr): Give up for nameless types.
25845 (warn_types_mismatch): Report mismatch in mangled names;
25846 report mismatch in anonymous namespaces; look into component types to
25847 give useful error; report when mismatch is dragged in from other ODR
25848 type.
25849 (odr_types_equivalent_p): Match types for being polymorphic; avoid
25850 duplicated diagnostics.
25851 (add_type_duplicate): Reorder checks so more informative ones come
25852 first; fix typo; do not output "the extra base is defined here" when
25853 we did not warn.
25854 (BINFO_N_BASE_BINFOS): Relax sanity check.
25855
25856 2015-03-22 Martin Liska <mliska@suse.cz>
25857 Jakub Jelinek <jakub@redhat.com>
25858
25859 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
25860 masks that can potentially include a builtin.
25861 (ix86_add_new_builtins): Introduce fast filter for isa values
25862 that cannot trigger builtin inclusion.
25863
25864 2015-03-22 Martin Liska <mliska@suse.cz>
25865
25866 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
25867 (sem_item::update_hash_by_local_refs): Likewise.
25868 (sem_variable::get_hash): Empty line is fixed.
25869 (sem_item_optimizer::execute): Include adding of hash references.
25870 (sem_item_optimizer::update_hash_by_addr_refs): New function.
25871 (sem_item_optimizer::build_hash_based_classes): Use local hash.
25872 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
25873 (sem_item::update_hash_by_local_refs): Likewise.
25874
25875 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
25876
25877 PR ipa/65502
25878 * ipa-comdats.c (enqueue_references): Walk through thunks.
25879 (ipa_comdats): Likewise.
25880 (set_comdat_group_1): New function.
25881
25882 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
25883
25884 PR ipa/65475
25885 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
25886 non-polymorphic
25887
25888 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
25889 Gerald Pfeifer <gerald@pfeifer.com>
25890
25891 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
25892
25893 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
25894 Sandra Loosemore <sandra@codesourcery.com>
25895
25896 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
25897 function parameter declaration.
25898 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
25899 Update arguments to nios2_adjust_call_address().
25900 (sibcall_internal): Rename from *sibcall.
25901 (sibcall_value_internal): Rename from *sibcall_value.
25902 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
25903 (nios2_large_got_address): Add target temp reg parameter.
25904 (nios2_got_address): Adjust call to nios2_large_got_address, add
25905 force_reg around it.
25906 (nios2_load_pic_address): Add target temp reg parameter, replace call
25907 to nios2_got_address with corresponding code.
25908 (nios2_legitimize_constant_address): Update call to
25909 nios2_load_pic_address.
25910 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
25911 to use temp reg for PIC loading purposes.
25912 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
25913 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
25914 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
25915
25916 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
25917
25918 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
25919 usage of "the @option{...}".
25920 (-Wopenmp-simd): Likewise.
25921 (-fsanitize-recover): Likewise.
25922 (-fsanitize-undefined-trap-on-error): Likewise.
25923 (-flto): Likewise.
25924 (tracer-dynamic-coverage-feedback): Likewise.
25925 (reorder-block-duplicate-feedback): Likewise.
25926 (loop-unroll-jam-size): Likewise.
25927 (-B): Likewise.
25928 (-I-): Likewise.
25929 (-mabs=legacy): Likewise.
25930 (-mupper-regs-df): Likewise.
25931 (-mupper-regs-sf): Likewise.
25932 (-mpointers-to-nested-functions): Likewise.
25933
25934 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
25935
25936 * doc/extend.texi (Cilk Plus Builtins): Add markup.
25937
25938 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
25939
25940 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
25941 additional index entries and cross-references.
25942 (-fchkp-check-incomplete-type): Likewise.
25943 (-fchkp-first-field-has-own-bounds): Likewise.
25944 (-fchkp-narrow-to-innermost-array): Likewise.
25945 (-fchkp-use-fast-string-functions): Likewise.
25946 (-fchkp-use-nochk-string-functions): Likewise.
25947 (-fchkp-use-static-const-bounds): Likewise.
25948 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
25949 (-fchkp-instrument-marked-only): Likewise.
25950 (-fchkp-use-wrappers): Likewise.
25951 (-static-libmpx): Likewise.
25952 (-static-libmpxwrappers): Likewise.
25953 * doc/extend.texi (bnd_legacy): Likewise.
25954 (bnd_instrument): Likewise.
25955 (bnd_variable_size): Likewise.
25956 (Pointer Bounds Checker builtins): Likewise.
25957
25958 2015-03-21 Tom de Vries <tom@codesourcery.com>
25959
25960 PR tree-optimization/65458
25961 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
25962 * cgraph.h (cgraph_node): Add parallelized_function field.
25963 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
25964 (input_overwrite_node): Read parallelized_function field.
25965 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
25966 parallelized_function on cgraph_node for child_fn.
25967 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
25968 Remove include of gt-tree-parloops.h.
25969 (parallelized_functions): Remove static variable.
25970 (parallelized_function_p): Rewrite using parallelized_function field of
25971 cgraph_node.
25972 (create_loop_fn): Remove adding to parallelized_functions.
25973 * Makefile.in (GTFILES): Remove tree-parloops.c
25974
25975 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
25976
25977 PR rtl-optimization/64366
25978 * lra.c (lra_update_insn_regno_info): Consider regs in
25979 CALL_INSN_FUNCTION_USAGE memory.
25980
25981 2015-03-20 Richard Biener <rguenther@suse.de>
25982
25983 PR middle-end/64715
25984 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
25985 for type comparison and gcc_checking_assert.
25986 (chrec_fold_plus_poly_poly): Likewise.
25987 (chrec_fold_multiply_poly_poly): Likewise.
25988 (chrec_convert_1): Likewise.
25989 * gimplify.c (gimplify_expr): Remove premature folding of
25990 &X + CST to &MEM[&X, CST].
25991
25992 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
25993
25994 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
25995 already is final.
25996 (ipa_inline): Recompute inline_failed codes.
25997 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25998 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
25999 CIF_FINAL_ERROR.
26000
26001 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
26002
26003 PR rtl-optimization/60851
26004 * recog.c (constrain_operands): Accept a pseudo register before reload
26005 for LRA enabled targets.
26006
26007 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
26008
26009 PR target/65240
26010 * config/rs6000/predicates.md (easy_fp_constant): Remove special
26011 -ffast-math handling that kept non-0 constants live in the RTL
26012 until reload. Remove logic testing the number of instructions it
26013 took to create a constant in a GPR that was never used, due to a
26014 test for soft-float earlier.
26015 (memory_fp_constant): Delete, no longer used.
26016
26017 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
26018 alternatives for loading non-0 constants into GPRs for hard
26019 floating point that is no longer needed due to changes in
26020 easy_fp_constant. Add support for loading 0.0 into GPRs.
26021 (mov<mode>_hardfloat32): Likewise.
26022 (mov<mode>_hardfloat64): Likewise.
26023 (mov<mode>_64bit_dm): Likewise.
26024 (movtd_64bit_nodm): Likewise.
26025 (pre-reload move FP constant define_split): Delete define_split,
26026 since it is no longer used.
26027 (extenddftf2_internal): Remove GHF constraints that are not valid
26028 for extenddftf2.
26029
26030 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
26031
26032 PR rtl-optimization/63491
26033 * lra-constraints.c (check_and_process_move): Use src instead of
26034 sreg. Remove some dead code.
26035
26036 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
26037
26038 PR ipa/65380
26039 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
26040 (sem_variable::merge): Likewise.
26041
26042 2015-03-19 Martin Liska <mliska@suse.cz>
26043
26044 PR ipa/65465
26045 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
26046 all fields of cgraph_thunk_info.
26047
26048 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
26049
26050 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
26051 clone instrumented thunks.
26052
26053 2015-03-19 Richard Biener <rguenther@suse.de>
26054
26055 Revert
26056 2015-03-10 Richard Biener <rguenther@suse.de>
26057
26058 PR middle-end/63155
26059 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
26060 * tree-ssa-coalesce.c: Include timevar.h.
26061 (attempt_coalesce): Handle graph being NULL.
26062 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
26063 Split out abnormal coalescing to ...
26064 (perform_abnormal_coalescing): ... this function.
26065 (coalesce_ssa_name): Perform abnormal coalescing without computing
26066 live/conflict.
26067 (verify_ssa_coalescing_worker): New function.
26068 (verify_ssa_coalescing): Likewise.
26069
26070 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
26071 Jakub Jelinek <jakub@redhat.com>
26072
26073 PR sanitizer/65400
26074 * tsan.c (instrument_gimple): Clear tail call flag on
26075 calls.
26076
26077 2015-03-19 Jakub Jelinek <jakub@redhat.com>
26078
26079 PR sanitizer/65400
26080 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
26081 call in the return bb.
26082 (find_split_points): Add RETURN_BB argument, don't call
26083 find_return_bb.
26084 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
26085 if true append TSAN_FUNC_EXIT internal call after the call to
26086 the split off function.
26087 (execute_split_functions): Call find_return_bb here.
26088 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
26089 Adjust find_split_points and split_function calls.
26090
26091 2015-03-18 DJ Delorie <dj@redhat.com>
26092
26093 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
26094 (iorqi3_virt): Likewise.
26095
26096 2015-03-18 Tom de Vries <tom@codesourcery.com>
26097
26098 * tree-parloops.c (parallelize_loops): Make static.
26099 * tree-parloops.h (parallelize_loops): Remove extern declaration.
26100
26101 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
26102
26103 PR middle-end/64491
26104 Revert:
26105 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
26106
26107 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
26108 condition would be removed due to undefined behaviour.
26109
26110 2015-03-18 Martin Liska <mliska@suse.cz>
26111
26112 PR ipa/65432
26113 * cgraph.c (cgraph_node::get_create): Remove unnecessary
26114 xstrdup_for_dump wrapper.
26115 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
26116 sem_item::name.
26117 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
26118 with xstrdup_for_dump.
26119 (sem_variable::equals): Likewise.
26120 (sem_item_optimizer::read_section): Use symtab_node::name instead of
26121 sem_item::name.
26122 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
26123 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
26124 symtab_node::asm_name with xstrdup_for_dump.
26125 (congruence_class::dump): Use symtab_node::name instead of
26126 sem_item::name.
26127 * ipa-icf.h (symtab_node::name): Remove.
26128 (symtab_node::asm_name): Likewise.
26129
26130 2015-03-18 Jakub Jelinek <jakub@redhat.com>
26131
26132 PR tree-optimization/65450
26133 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
26134 function.
26135 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
26136 it instead of duplicate_ssa_name_ptr_info.
26137
26138 PR target/65222
26139 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
26140
26141 2015-03-18 Richard Biener <rguenther@suse.de>
26142
26143 * tree-data-ref.h (struct access_matrix): Remove.
26144 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
26145 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
26146 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
26147 (am_vector_index_for_loop): Likewise.
26148 (struct data_reference): Remove access_matrix member.
26149 (DR_ACCESS_MATRIX): Remove.
26150 (lambda_vector_new): Add comment.
26151 (lambda_matrix_new): Use XOBNEWVEC.
26152
26153 2015-03-18 Richard Biener <rguenther@suse.de>
26154
26155 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
26156 (pass_ch::execute): Cleanup the CFG only if we did sth.
26157 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
26158
26159 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26160
26161 * expmed.c (synth_mult): Use std::swap instead of manually
26162 swapping algorithms.
26163
26164 2015-03-18 Jakub Jelinek <jakub@redhat.com>
26165
26166 PR target/65078
26167 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
26168
26169 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
26170
26171 PR target/65296
26172 * config/avr/avr.opt (-nodevicelib): New option.
26173 * doc/invoke.texi (AVR Options): Document it.
26174 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
26175 libgcc.a, libc.a, libm.a.
26176 * config/avr/specs.h: Same.
26177 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
26178 which don't (directly) depend on the device. Print more help.
26179 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
26180 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
26181 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
26182 case of an error.
26183 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
26184 for specs file name.
26185 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
26186 * config/avr/avr-mcus.def: Adjust initializers and comments.
26187
26188 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
26189
26190 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
26191 DECL_ONE_ONLY to check if decl is one only.
26192 * ipa-split.c (consider_split): Limit splitt of one only functions.
26193
26194 2015-03-16 Jakub Jelinek <jakub@redhat.com>
26195
26196 PR tree-optimization/65427
26197 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
26198 functions.
26199 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
26200
26201 2015-03-16 Marek Polacek <polacek@redhat.com>
26202
26203 * cgraph.h (add_new_static_var): Remove declaration.
26204 * varpool.c (add_new_static_var): Remove function.
26205
26206 2015-03-16 Jakub Jelinek <jakub@redhat.com>
26207
26208 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
26209 instead of vec<tree> * with vec_alloc and release for args.
26210 Adjust all users.
26211
26212 PR middle-end/65431
26213 * omp-low.c (delete_omp_context): Only splay_tree_delete
26214 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
26215 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
26216
26217 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
26218
26219 PR sanitizer/64820
26220 * cfgexpand.c (align_base): New function.
26221 (alloc_stack_frame_space): Call it.
26222 (expand_stack_vars): Align prev_frame to be sure
26223 data->asan_vec elements aligned properly.
26224
26225 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
26226
26227 PR middle-end/65409
26228 * expr.c (store_field): Do not do a direct block copy if the source is
26229 a PARALLEL with BLKmode.
26230
26231 2015-03-16 Tom de Vries <tom@codesourcery.com>
26232
26233 PR middle-end/65414
26234 Revert:
26235 2015-03-12 Tom de Vries <tom@codesourcery.com>
26236
26237 PR rtl-optimization/64895
26238 * lra-lives.c (check_pseudos_live_through_calls): Use
26239 actual_call_used_reg_set instead of call_used_reg_set, if available.
26240
26241 2015-03-16 Alan Modra <amodra@gmail.com>
26242
26243 PR target/63150
26244 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
26245 Modify Z->r bswapdi splitter to use dest in place of scratch.
26246 In r->Z and Z->r bswapdi splitter rename word_high, word_low
26247 to word1, word2 and rearrange logic to suit.
26248 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
26249 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
26250 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
26251 Add one '?' on r->r. Modify Z->r splitter to avoid need for
26252 early clobber.
26253
26254 2015-03-14 Jakub Jelinek <jakub@redhat.com>
26255
26256 PR tree-optimization/65369
26257 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
26258 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
26259 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
26260
26261 PR tree-optimization/65418
26262 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
26263 are casts in the first PLUS_EXPR operand, ensure tbias and
26264 *totallowp are in the inner type.
26265
26266 PR rtl-optimization/65401
26267 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
26268 argument. If true, adjust_address_nv of x with big-endian
26269 correction for the mode widening to GET_MODE (y).
26270 (make_field_assignment): Don't do MEM mode widening here.
26271 Use MEM_P instead of GET_CODE == MEM.
26272
26273 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
26274
26275 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
26276 the external decls.
26277
26278 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26279
26280 PR target/64600
26281 * config/arm/arm.c (arm_gen_constant, AND case): Use
26282 ARM_SIGN_EXTEND when constructing AND mask.
26283
26284 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
26285
26286 * graph.c (print_graph_cfg): Make function names visible and append
26287 parenthesis to it. Also make groups of basic blocks belonging to the
26288 same function visible.
26289
26290 2015-03-12 Richard Biener <rguenther@suse.de>
26291
26292 PR middle-end/44563
26293 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
26294 to avoid quadratic behavior with inline expansion splitting blocks.
26295 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
26296 with the successor if the predecessor will be merged with it.
26297 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
26298 entry block with its successor.
26299
26300 2015-03-13 Richard Biener <rguenther@suse.de>
26301
26302 PR middle-end/44563
26303 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
26304 (cleanup_tree_cfg_1): Do not call it.
26305 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
26306 (fixup_noreturn_call): Mark the stmt as control altering.
26307 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
26308 here.
26309 (pass_data_fixup_cfg): Produce a dump file.
26310 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
26311 (need_noreturn_fixup): New global.
26312 (pass_dominator::execute): Fixup queued noreturn calls.
26313 (optimize_stmt): Queue calls that became noreturn for fixup.
26314 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
26315 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
26316 (el_to_fixup): New global.
26317 (eliminate_dom_walker::before_dom_childre): Queue calls that
26318 became noreturn for fixup.
26319 (eliminate): Fixup queued noreturn calls.
26320 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
26321 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
26322 (substitute_and_fold_dom_walker::before_dom_children): Queue
26323 alls that became noreturn for fixup.
26324 (substitute_and_fold): Fixup queued noreturn calls.
26325
26326 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
26327
26328 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
26329 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
26330 are building; for methods check ODR type of class they belong to if
26331 they may lead to a polymorphic call.
26332 (sem_function::compare_polymorphic_p): Be bit smarter about testing
26333 when function may lead to a polymorphic call.
26334 (sem_function::compare_type_list): Remove.
26335 (sem_variable::equals): Update use of compatible_types_p.
26336 (sem_variable::parse_tree_refs): Remove.
26337 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
26338 cdtor.
26339 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
26340 matching here.
26341 (func_checker::compatible_polymorphic_types_p): Break out from ...
26342 (unc_checker::compatible_types_p): ... here.
26343 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
26344 Declare.
26345 (unc_checker::compatible_types_p): Update.
26346 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
26347 Remove.
26348
26349 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26350
26351 PR rtl-optimization/65235
26352 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
26353 When first element of vec_concat is const_int, calculate its size
26354 using second element.
26355
26356 2015-03-12 Richard Biener <rguenther@suse.de>
26357
26358 PR middle-end/65270
26359 * fold-const.c (operand_equal_p): Fix ordering of resetting
26360 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
26361
26362 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
26363
26364 * config/s390/s390.c (s390_reorg): Move code to output nops after label
26365 to s390_reorg ().
26366 (s390_asm_output_function_label): Likewise.
26367 * config/s390/s390.c (s390_asm_output_function_label):
26368 Fix function label alignment with -mhtopatch.
26369 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
26370 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
26371 ("nop_2_byte"): New define_insn.
26372 ("nop_4_byte"): Likewise.
26373 ("nop_6_byte"): Likewise.
26374 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
26375 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
26376
26377 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
26378
26379 PR target/65103
26380 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
26381 register.
26382
26383 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
26384
26385 PR target/65044
26386 * toplev.c (process_options): Restrict Pointer Bounds Checker
26387 usage with Address Sanitizer.
26388
26389 2015-03-12 Richard Biener <rguenther@suse.de>
26390
26391 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
26392 to split on.
26393 * omp-low.c (expand_omp_taskreg): Split block before removing
26394 the stmt.
26395 (expand_omp_target): Likewise.
26396 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
26397 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
26398 stmt to split_block.
26399
26400 2015-03-12 Tom de Vries <tom@codesourcery.com>
26401
26402 PR rtl-optimization/64895
26403 * lra-lives.c (check_pseudos_live_through_calls): Use
26404 actual_call_used_reg_set instead of call_used_reg_set, if available.
26405
26406 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
26407
26408 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
26409 (cgraph_node::remove): Likewise.
26410 (cgraph_node::get_untransformed_body): Likewise.
26411 * varpool.c (varpool_node::remove): Likewise.
26412 (varpool_node::get_constructor): Add sanity check.
26413
26414 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
26415
26416 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
26417 old GCC versions.
26418 (-fabi-compat-version): Likewise.
26419 (-ffriend-injection): Likewise.
26420 (-Wdeclaration-after-statement): Likewise.
26421 (-fomit-frame-pointer): Likewise.
26422 (-ftree-coalesce-inlined-vars): Likewise.
26423 (-fvisibility=): Likewise.
26424 * doc/extend.texi (Typeof): Likewise.
26425 (Zero Length): Likewise.
26426 (Escaped Newlines): Likewise.
26427 (Compound Literals): Likewise.
26428 (Function Attributes): Likewise.
26429 (Label Attributes): Likewise.
26430 (Type Attributes): Likewise.
26431 (Function Names): Likewise.
26432 (Other Builtins): Likewise.
26433 (Function Specific Option Pragmas): Likewise.
26434 (C++ Interface): Likewise.
26435
26436 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
26437
26438 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
26439
26440 2015-03-11 Marek Polacek <polacek@redhat.com>
26441
26442 PR tree-optimization/65388
26443 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
26444
26445 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
26446
26447 PR target/65296
26448 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
26449 * configure: Regenerate.
26450 * config.in: Regenerate.
26451 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
26452 [-mn-flash]: Document it.
26453 [__AVR_ARCH__]: Document avrtiny.
26454
26455 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
26456 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
26457 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
26458
26459 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26460
26461 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
26462
26463 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
26464
26465 PR target/65242
26466 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
26467 allow reloads of PLUS in floating point/VSX registers.
26468
26469 2015-03-11 Junmo Park <junmoz.park@samsung.com>
26470
26471 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
26472 crypto_sha256_fast.
26473 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
26474
26475 2015-03-11 Richard Biener <rguenther@suse.de>
26476
26477 PR tree-optimization/65310
26478 * tree-sra.c (build_ref_for_offset): Also preserve larger
26479 alignment.
26480
26481 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
26482
26483 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
26484
26485 2015-03-10 Jakub Jelinek <jakub@redhat.com>
26486
26487 PR target/65368
26488 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
26489 new define_expand.
26490 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
26491
26492 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
26493
26494 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
26495 (sem_function::equals_wpa): ... here.
26496
26497 2015-03-10 Marek Polacek <polacek@redhat.com>
26498 Jakub Jelinek <jakub@redhat.com>
26499
26500 PR sanitizer/65367
26501 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
26502 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
26503 separately.
26504
26505 2015-03-10 Jakub Jelinek <jakub@redhat.com>
26506
26507 PR target/65286
26508 * config/rs6000/t-linux: For powerpc64* target set
26509 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
26510
26511 2015-03-10 Richard Biener <rguenther@suse.de>
26512
26513 PR middle-end/44563
26514 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
26515 for redirect_all_calls.
26516
26517 2015-03-10 Marek Polacek <polacek@redhat.com>
26518
26519 * gdbinit.in (pcfun): Define and document.
26520
26521 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
26522
26523 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
26524 of libgomp-plugin.h.
26525 (find_target_compiler): Support a case when the path to gcc is
26526 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
26527 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
26528 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
26529 libgomp-plugin.h.
26530 (main): Use GCC_INSTALL_NAME as target_driver_name.
26531 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
26532 define.
26533 (mkoffload.o): Remove obsolete include path and defines.
26534 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
26535
26536 2015-03-10 Richard Biener <rguenther@suse.de>
26537
26538 PR middle-end/63155
26539 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
26540 * tree-ssa-coalesce.c: Include timevar.h.
26541 (attempt_coalesce): Handle graph being NULL.
26542 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
26543 Split out abnormal coalescing to ...
26544 (perform_abnormal_coalescing): ... this function.
26545 (coalesce_ssa_name): Perform abnormal coalescing without computing
26546 live/conflict.
26547 (verify_ssa_coalescing_worker): New function.
26548 (verify_ssa_coalescing): Likewise.
26549
26550 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
26551
26552 PR target/65296
26553 * config.gcc (extra_options) [avr]: Remove.
26554 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
26555 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
26556 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
26557
26558 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
26559 (-mmcu=): Add Var and MissingArgError properties.
26560 (-march=): Remove.
26561 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
26562 * config/avr/t-multilib: Regenerate.
26563 * config/avr/specs.h: New file.
26564 * config/avr/driver-avr.c: New file.
26565 * config/avr/genopt.sh: Remove file.
26566 * config/avr/avr-tables.opt: Remove file.
26567 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
26568 * config/avr/avr-c.c: Same.
26569 * avr-arch.h: Same.
26570 (avr_current_device): Remove proto.
26571 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
26572 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
26573 (EXTRA_SPEC_FUNCTIONS): Define.
26574 (avr_devicespecs_file): New specs function proto.
26575 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
26576 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
26577 (avr_current_device): Remove definition and usage.
26578 (avr_set_core_architecture): New static function.
26579 (avr_option_override): Use it.
26580 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
26581 (mcu_name): New static array.
26582 (comparator, avr_archs_str, avr_mcus_str): New static functions.
26583 (avr_inform_devices, avr_inform_core_architectures): New functions.
26584 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
26585 (avrlibc.h) [WITH_AVRLIBC]: Include.
26586 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
26587 (print_mcu): Rewrite from scratch.
26588 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
26589 Forward to avr-specific specs defined in device-specs file.
26590 * config/avr/t-avr (driver-avr.o): New rule.
26591 (avr-devices.o): Depend on avr-arch.h.
26592 (avr-mcus): No more depend on avr-tables.opt.
26593 (avr-tables.opt): Remove rule.
26594 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
26595
26596 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
26597
26598 * c-family/c.opt (fchkp-use-wrappers): New.
26599 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
26600 (chkp_wrap_function): New.
26601 (chkp_build_instrumented_fndecl): Support wrapped
26602 functions.
26603 * doc/invoke.texi (-fcheck-pointer-bounds): New.
26604 (-fchkp-check-incomplete-type): New.
26605 (-fchkp-first-field-has-own-bounds): New.
26606 (-fchkp-narrow-bounds): New.
26607 (-fchkp-narrow-to-innermost-array): New.
26608 (-fchkp-optimize): New.
26609 (-fchkp-use-fast-string-functions): New.
26610 (-fchkp-use-nochk-string-functions): New.
26611 (-fchkp-use-static-bounds): New.
26612 (-fchkp-use-static-const-bounds): New.
26613 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
26614 (-fchkp-check-read): New.
26615 (-fchkp-check-write): New.
26616 (-fchkp-store-bounds): New.
26617 (-fchkp-instrument-calls): New.
26618 (-fchkp-instrument-marked-only): New.
26619 (-fchkp-use-wrappers): New.
26620 (-static-libmpx): New.
26621 (-static-libmpxwrappers): New.
26622
26623 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
26624
26625 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
26626 (CHKP_SPEC): Add wrappers library.
26627 * c-family/c.opt (static-libmpxwrappers): New.
26628
26629 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
26630
26631 * config/i386/linux-common.h (LIBMPX_LIBS): New.
26632 (LIBMPX_SPEC): New.
26633 (CHKP_SPEC): New.
26634 * gcc.c (CHKP_SPEC): New.
26635 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
26636 * c-family/c.opt (static-libmpx): New.
26637
26638 2015-03-10 Richard Biener <rguenther@suse.de>
26639
26640 PR middle-end/44563
26641 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
26642 for compare_type.
26643 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
26644 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
26645 (cgraph_add_edge_to_call_site_hash): Likewise.
26646 (cgraph_node::get_edge): Likewise.
26647 (cgraph_edge::set_call_stmt): Likewise.
26648 (cgraph_edge::remove_caller): Likewise.
26649
26650 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
26651
26652 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
26653 (callee_saved_gpr_regs_size): ... this.
26654 (callee_saved_regs_first_regno): Rename to ...
26655 (callee_saved_first_gpr_regno): ... this.
26656 (callee_saved_regs_last_regno) Rename to ...
26657 (callee_saved_last_gpr_regno): ... this.
26658 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
26659 variables.
26660 (nds32_initial_elimination_offset): Likewise.
26661 (nds32_expand_prologue): Likewise.
26662 (nds32_expand_epilogue): Likewise.
26663 (nds32_expand_prologue_v3push): Likewise.
26664 (nds32_expand_epilogue_v3pop): Likewise.
26665 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
26666 Adjust renamed variables.
26667 (nds32_output_stack_pop): Likewise.
26668
26669 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
26670
26671 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
26672 code in comment.
26673
26674 2015-03-10 Jakub Jelinek <jakub@redhat.com>
26675
26676 PR rtl-optimization/65321
26677 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
26678 than shift mode.
26679 * var-tracking.c (use_narrower_mode): Likewise.
26680
26681 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
26682
26683 PR tree-optimization/65355
26684 * varasm.c (notice_global_symbol): Do not produce RTL.
26685 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
26686 anchor.
26687 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
26688 check for section anchors.
26689
26690 2015-03-10 Alan Modra <amodra@gmail.com>
26691
26692 PR target/65286
26693 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
26694 to be single-arch by default. Set cpu_is_64bit for powerpc64
26695 given --with-cpu=native.
26696 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
26697 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
26698 and powerpc64le.
26699 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
26700 rs6000_isa_flags rather than TARGET_64BIT.
26701
26702 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
26703 Kaz Kojima <kkojima@gcc.gnu.org>
26704
26705 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
26706
26707 2015-03-09 Jakub Jelinek <jakub@redhat.com>
26708
26709 PR lto/65361
26710 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
26711 on a TREE_BINFO, instead use BINFO_TYPE.
26712
26713 2015-03-09 Richard Biener <rguenther@suse.de>
26714
26715 PR middle-end/65270
26716 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
26717 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
26718 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
26719 of that. When comparing dereferences compare alignment.
26720 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
26721
26722 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
26723
26724 * ipa-inline-analysis.c (check_callers): Check
26725 node->can_remove_if_no_direct_calls_and_refs_p.
26726 (growth_likely_positive): Reorganize to call
26727 can_remove_if_no_direct_calls_p later.
26728 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
26729 will_be_removed_from_program_if_no_direct_calls_p): Add
26730 will_inline parameter.
26731 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
26732 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
26733 Handle inliner case correctly.
26734
26735 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
26736
26737 PR tree-optimization/63743
26738 * cfgexpand.c (reorder_operands): Also reorder if only second operand
26739 had its definition forwarded by TER.
26740
26741 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
26742
26743 PR lto/65316
26744 * ipa-utils.h (types_odr_comparable): Add strict argument.
26745 * ipa-devirt.c: Fix whitespace;
26746 (odr_hasher): Remove.
26747 (odr_name_hasher, odr_vtable_hasher): New hashers.
26748 (can_be_name_hashed_p): New predicate.
26749 (hash_type_name): remove.
26750 (hash_odr_name): New.
26751 (odr_name_hasher::hash): new.
26752 (can_be_vtable_hashed_p): New.
26753 (hash_odr_vtable): New.
26754 (odr_vtable_hasher::hash): New.
26755 (types_same_for_odr): Add strict parameter.
26756 (types_odr_comparable): Likewise.
26757 (odr_name_hasher::equal): New.
26758 (odr_vtable_hasher::equal): New.
26759 (odr_name_hasher::remove): New.
26760 (odr_hash_type): Change to hash_table<odr_name_hasher>.
26761 (odr_vtable_hash_type): New.
26762 (odr_vtable_hash): New.
26763 (odr_subtypes_equivalent_p): Do strict comparsion.
26764 (add_type_duplicate): Merge type names; cleanup; avoid type
26765 duplicates.
26766 (register_odr_type): Initialize vtable hash.
26767 (build_type_inheritance_graph): Likewise
26768 (get_odr_type): Reorg to use two hashes.
26769 (dump_possible_polymorphic_call_targets): Move sanity check after debug
26770 output.
26771 (ipa_devirt): Dump type_inheritance_graph.
26772 (types_same_for_odr): Add strict mode.
26773
26774 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
26775
26776 PR ipa/65334
26777 * cgraph.h (symtab_node): Add definition_alignment,
26778 can_increase_alignment_p and increase_alignment.
26779 * symtab.c (symtab_node::can_increase_alignment_p,
26780 increase_alignment_1, symtab_node::increase_alignment,
26781 symtab_node::definition_alignment): New.
26782 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
26783 can_increase_alignment_p.
26784 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
26785 * tree-vect-stmts.c (ensure_base_align): Likewise.
26786 * varasm.c (function_section_1): Use definition_alignment.
26787 (assemble_start_function): Likewise.
26788 (emit_local): likewise.
26789 (build_constant_desc): Likewsie.
26790 (output_constant_def_contents): Likewise.
26791 (place_block_symbol): Likewise.
26792 (output_object_block): Likewise.
26793
26794 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
26795
26796 PR ipa/65316
26797 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
26798 when outputting debug.
26799
26800 2015-03-07 Marek Polacek <polacek@redhat.com>
26801 Martin Uecker <uecker@eecs.berkeley.edu>
26802
26803 PR sanitizer/65280
26804 * doc/invoke.texi: Update description of -fsanitize=bounds.
26805
26806 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
26807
26808 * tree-ssa-phiopt.c (neg_replacement): Remove.
26809 (tree_ssa_phiopt_worker): Remove negate optimization.
26810
26811 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
26812
26813 PR ipa/65302
26814 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
26815
26816 2015-03-06 Richard Biener <rguenther@suse.de>
26817
26818 PR middle-end/64928
26819 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
26820 and liveout_obstack members.
26821 (calculate_live_on_exit): Remove.
26822 (calculate_live_ranges): Change declaration.
26823 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
26824 (new_tree_live_info): Adjust.
26825 (calculate_live_ranges): Delete livein when not wanted.
26826 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
26827 Deal with partly deleted live info.
26828 (loe_visit_block): Remove temporary bitmap by using
26829 bitmap_ior_and_compl_into.
26830 (live_worklist): Adjust accordingly.
26831 (calculate_live_on_exit): Make static.
26832 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
26833 we do not need livein.
26834
26835 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
26836
26837 * real.c (real_from_string): Fix typo in assertion.
26838
26839 2015-03-06 Alex Velenko <alex.velenko@arm.com>
26840
26841 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
26842 the patch.
26843
26844 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
26845
26846 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
26847
26848 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
26849
26850 PR target/64342
26851 * lra-assigns.c (find_hard_regno_for): Rename to
26852 find_hard_regno_for_1. Add a new parameter.
26853 (find_hard_regno_for): New function using find_hard_regno_for_1.
26854
26855 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
26856
26857 PR rtl-optimization/65067
26858 * expmed.c (store_bit_field, extract_bit_field): Reworked the
26859 strict volatile bitfield handling.
26860
26861 2015-03-05 Martin Liska <mliska@suse.cz>
26862
26863 PR ipa/65318
26864 * ipa-icf.c (sem_variable::equals): Compare variables types.
26865
26866 2015-03-05 Richard Henderson <rth@redhat.com>
26867
26868 PR target/65121
26869 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
26870 correctly check weak symbol binding.
26871
26872 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
26873
26874 PR middle-end/65315
26875 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
26876 needed alignment.
26877
26878 2015-03-05 Martin Liska <mliska@suse.cz>
26879
26880 * ipa-inline.c (inline_small_functions): Set default value to
26881 prevent warning during bootstrap.
26882 * tree.h: Add pragma guard that ignores false positives during
26883 bootstrap.
26884
26885 2015-03-05 Richard Biener <rguenther@suse.de>
26886
26887 PR tree-optimization/65310
26888 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
26889 Properly preserve alignment of the base of the access.
26890
26891 2015-03-05 Richard Biener <rguenther@suse.de>
26892
26893 PR ipa/65270
26894 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
26895 Compare dependence info.
26896
26897 2015-03-05 Richard Biener <rguenther@suse.de>
26898
26899 PR middle-end/65233
26900 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
26901 tree-into-ssa.h.
26902 (walk_ssa_copies): Revert last chage. Instead do not walk
26903 SSA names registered for SSA update.
26904
26905 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
26906
26907 PR ipa/65270
26908 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
26909 vtable references for their containing type.
26910 (sem_function::equals_wpa): Compare TYPE_RESTRICT
26911 and type attributes.
26912
26913 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
26914
26915 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
26916 before negating it.
26917 * stor-layout.c (finalize_record_size): Revert latest change.
26918
26919 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
26920
26921 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
26922
26923 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
26924
26925 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
26926 for correct comdat handling.
26927 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
26928 Likewise.
26929 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
26930 (used_from_object_file_p_worker): Remove.
26931 (cgraph_node::only_called_directly_or_alised): Add
26932 used_from_object_file_p.
26933 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
26934 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
26935 can_remove_if_no_direct_calls_and_refs_p.
26936
26937 2015-03-04 Nick Clifton <nickc@redhat.com>
26938
26939 * config/rl78/rl78.h (enum reg_class): Remove real registers from
26940 General register class.
26941 * config/rl78/rl78-real.md: Replace general register constraints
26942 with real+virtual register constraints.
26943
26944 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26945
26946 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
26947 from checking for -mhtm option.
26948
26949 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
26950
26951 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
26952 (struct ipa_sra_check_caller_data): Add has_thunk field.
26953 (ipa_sra_check_caller): Check for thunk.
26954 (ipa_sra_preliminary_function_checks): Give up on function with
26955 thunks.
26956 (ipa_early_sra): Use call_for_symbol_and_aliases.
26957
26958 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
26959
26960 PR target/65249
26961 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
26962 called for __stack_chk_guard symbol.
26963
26964 2015-03-03 DJ Delorie <dj@redhat.com>
26965
26966 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
26967 inc/dec.
26968 (*addhi3_real): Likewise.
26969 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
26970 pattern to match incrementing memory.
26971 * config/rl78/predicates.md (rl78_1_2_operand): New.
26972 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
26973 it's the same and only mem.
26974 (rl78_alloc_physical_registers_op2): If there's effectively only
26975 one MEM, transcode it into HL.
26976 (rl78_far_p): Reject addresses that aren't legitimate.
26977
26978 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
26979
26980 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
26981 negating it.
26982
26983 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
26984
26985 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
26986
26987 Implement call0 ABI for xtensa
26988 * config/xtensa/constraints.md ("a" constraint): Include stack
26989 pointer in case of call0 ABI.
26990 ("q" constraint): Make empty in case of call0 ABI.
26991 ("D" constraint): Include stack pointer in case of call0 ABI.
26992 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
26993 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
26994 prototypes.
26995 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
26996 variable.
26997 (xtensa_regno_to_class): Make it a local variable in the
26998 function xtensa_regno_to_class.
26999 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
27000 macro, function prototype and implementation.
27001 (reg_nonleaf_alloc_order): Make it a local variable in the
27002 function order_regs_for_local_alloc.
27003 (xtensa_conditional_register_usage): New function.
27004 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
27005 (xtensa_valid_move): Allow direct moves to stack pointer
27006 register in call0 ABI.
27007 (xtensa_setup_frame_addresses): Only spill register windows in
27008 windowed ABI.
27009 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
27010 call0 ABI respectively.
27011 (xtensa_function_arg_1): Only mark a7 register for copying in
27012 windowed ABI.
27013 (xtensa_call_save_reg): New function.
27014 (compute_frame_size): Add space for callee saved register
27015 storage to the frame size in call0 ABI.
27016 (xtensa_expand_prologue): Generate code to set up stack frame
27017 and save callee-saved registers in call0 ABI.
27018 (xtensa_expand_epilogue): New function.
27019 (xtensa_set_return_address): New function.
27020 (xtensa_return_addr): Calculate return address in call0 ABI.
27021 (xtensa_builtin_saveregs): Only mark a7 register for copying and
27022 emit copying code in windowed ABI.
27023 (order_regs_for_local_alloc): Add preferred register allocation
27024 order for non-leaf function in call0 ABI.
27025 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
27026 (xtensa_asm_trampoline_template): Add trampoline generation for
27027 call0 ABI.
27028 (xtensa_trampoline_init): Add trampoline initialization for
27029 call0 ABI.
27030 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
27031 functions.
27032 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
27033 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
27034 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
27035 ABI call-used registers.
27036 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
27037 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
27038 call0 ABI.
27039 (REG_CLASS_CONTENTS): Include all registers into the preferred
27040 reload registers set, adjust the set in the
27041 xtensa_conditional_register_usage.
27042 (xtensa_regno_to_class): Drop variable declaration.
27043 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
27044 function.
27045 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
27046 respectively.
27047 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
27048 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
27049 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
27050 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
27051 location in call0 ABI.
27052 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
27053 stack adjustment size when handling exception.
27054 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
27055 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
27056 definitions.
27057 ("return" pattern): Generate ret.n/ret in call0 ABI.
27058 ("epilogue" pattern): Expand epilogue.
27059 ("nonlocal_goto" pattern): Use default in call0 ABI.
27060 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
27061 emit eh_set_a0_* depending on ABI.
27062 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
27063 ("eh_set_a0_call0", "blockage"): New patterns.
27064
27065 2015-03-03 Martin Liska <mliska@suse.cz>
27066
27067 PR ipa/65287
27068 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
27069
27070 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
27071
27072 PR 65138/target
27073 * config/rs6000/rs6000-tables.opt: Regenerate table.
27074
27075 2015-03-03 Renlin Li <renlin.li@arm.com>
27076
27077 * doc/md.texi (@item ^): Change ? into ^.
27078
27079 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
27080
27081 * doc/tm.texi: Regenerated.
27082
27083 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
27084
27085 * builtins.c (expand_builtin_return_addr): Add
27086 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
27087 surrounding #ifdef.
27088 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
27089 definition to 1.
27090 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
27091 Likewise.
27092 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
27093 undefined.
27094 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
27095 paragraph.
27096
27097 2015-03-03 Martin Jambor <mjambor@suse.cz>
27098 Eric Botcazou <ebotcazou@adacore.com>
27099
27100 * tree-sra.c (ipa_sra_check_caller_data): New type.
27101 (has_caller_p): Removed.
27102 (ipa_sra_check_caller): New function.
27103 (ipa_sra_preliminary_function_checks): Use it.
27104
27105 2015-03-03 Martin Liska <mliska@suse.cz>
27106
27107 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
27108 instead of if branch.
27109
27110 2015-03-03 Martin Liska <mliska@suse.cz>
27111
27112 PR ipa/65282
27113 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
27114
27115 2015-03-23 Jeff Law <law@redhat.com>
27116
27117 PR tree-optimization/65241
27118 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
27119 hash table if INSERT is true.
27120
27121 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
27122
27123 PR target/65296
27124 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
27125
27126 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
27127
27128 PR target/64331
27129 * config/avr/avr.c (context.h, tree-pass.h): Include them.
27130 (avr_pass_data_recompute_notes): New static variable.
27131 (avr_pass_recompute_notes): New class.
27132 (avr_register_passes): New static function.
27133 (avr_option_override): Call it.
27134
27135 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
27136
27137 Fix various problems with specs file generation.
27138
27139 PR target/65296
27140 * config.gcc (extra_gcc_objs) [avr]: Remove.
27141 * config/avr/driver-avr.c: Remove file.
27142 * config/avr/t-avr (driver-avr.o): Remove rule.
27143 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
27144 INCLUDES to build. Depend on TM_H.
27145 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
27146 build warnings. Fix non-matching types and non-existing %-codes.
27147 (tm.h): Include.
27148 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
27149 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
27150 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
27151 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
27152 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
27153 (LIBGCC_SPEC): Remove definitions.
27154
27155 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
27156
27157 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
27158 to create a register in testing mode.
27159
27160 2015-03-03 Martin Liska <mliska@suse.cz>
27161 Jan Hubicka <hubicka@ucw.cz>
27162
27163 PR ipa/65263
27164 * cgraph.c (cgraph_node::has_thunk_p): New function.
27165 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
27166 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
27167 (sem_function::merge): Assert is changed.
27168
27169 2015-03-03 Martin Liska <mliska@suse.cz>
27170 Martin Jambor <mjambor@suse.cz>
27171
27172 PR ipa/65087
27173 * ipa-icf.c (sem_item_optimizer::execute): Change function
27174 return value to boolean.
27175 (sem_item_optimizer::merge_classes): Likewise.
27176 (ipa_icf_driver): Return TODO_remove_functions in case there's
27177 a merge operation processed.
27178 * ipa-icf.h: Change function return value to boolean.
27179
27180 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
27181
27182 PR 65138/target
27183 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
27184 processor type for 64-bit little endian PowerPC.
27185
27186 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
27187 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
27188 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
27189 printing built-in mask so it does not pass NULL pointers.
27190
27191 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
27192 -mcpu=powerpc64le.
27193
27194 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
27195
27196 PR target/58158
27197 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
27198 !ISA_HAS_FP_CONDMOVE.
27199
27200 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
27201
27202 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
27203 reload_completed.
27204
27205 2015-03-02 Ulrich Drepper <drepper@gmail.com>
27206
27207 * doc/invoke.texi (Options for Code Generation Conventions):
27208 Fix URL of DSO paper.
27209
27210 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
27211
27212 PR ipa/65130
27213 * ipa-inline.c (check_callers): Looks for recursion.
27214 (inline_to_all_callers): Give up on uninlinable or recursive edges.
27215 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
27216 summary of inline clones.
27217 (do_estimate_growth_1): Fix recursion check.
27218
27219 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
27220
27221 PR ipa/64988
27222 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
27223 comdat groups.
27224
27225 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
27226 Aldy Hernandez <aldyh@redhat.com>
27227
27228 PR lto/65276
27229 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
27230 when checking TYPE_BINFO.
27231
27232 2015-03-02 Richard Biener <rguenther@suse.de>
27233
27234 PR ipa/65270
27235 * ipa-icf-gimple.c: Include builtins.h.
27236 (func_checker::compare_memory_operand): Compare base alignment.
27237
27238 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
27239
27240 PR target/65184
27241 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
27242 are never passed by reference.
27243
27244 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
27245
27246 PR target/65183
27247 * tree-chkp.c (chkp_check_lower): Don't check against
27248 zero bounds for already instrumented functions.
27249 (chkp_check_upper): Likewise.
27250 (chkp_fini): Clean pass local data to avoid wrong reusage.
27251
27252 2015-02-28 Martin Liska <mliska@suse.cz>
27253 Jan Hubicka <hubicka@ucw.cz>
27254
27255 * ipa-icf.c (sem_variable::equals): Improve debug output;
27256 get variable constructor.
27257 (sem_variable::parse): Do not filter out too early; give up on
27258 volatile and register vars.
27259 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
27260 variables.
27261 * ipa-icf.h (sem_variable::init): Do not set ctor.
27262 (sem_variable::ctor): Remove.
27263
27264 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
27265
27266 PR middle-end/65233
27267 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
27268
27269 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27270
27271 * ipa-icf.c: Include stor-layout.h
27272 (sem_function::compare_cgraph_references): Rename to ...
27273 (sem_item::compare_cgraph_references): ... this one.
27274 (sem_variable::equals_wpa): New function
27275 (sem_variable::equals): Do not check stuff already verified by
27276 equals_wpa.
27277 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
27278 * ipa-icf.h (sem_item): Add compare_cgraph_references.
27279 (sem_function): Remove compare_cgraph_references.
27280 (sem_variable): Turns equals_wpa into non-inline.
27281
27282 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27283
27284 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
27285 (sem_item::add_expr): New function.
27286 (sem_function::hash_stmt): Handle operands of most statements.
27287 (sem_variable::get_hash): Hash the actual constructor.
27288 * ipa-icf.h (sem_item): Add add_expr.
27289 (sem_function): Update prototype of hash_stmt
27290
27291 2015-02-28 Martin Liska <mliska@suse.cz>
27292 Jan Hubicka <hubicka@ucw.cz>
27293
27294 PR ipa/65245
27295 * ipa-icf-gimple.c (func_checker::compare_function_decl):
27296 Remove.
27297 (func_checker::compare_variable_decl): Skip symtab vars.
27298 (func_checker::compare_cst_or_decl): Update.
27299 * ipa-icf.c (sem_function::parse): Do not consider aliases.
27300 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
27301 use correct symtab predicates.
27302 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
27303 (sem_variable::parse): Update comment.
27304 (sem_item_optimizer::build_graph): Consider ultimate aliases
27305 for references.
27306
27307 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27308
27309 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
27310 of OBJ_TYPE_REF.
27311
27312 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27313
27314 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
27315 (sem_variable::merge) Likewise.
27316
27317 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27318
27319 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
27320 target; also match flag_ipa_devirt.
27321
27322 2015-03-01 Martin Liska <mliska@suse.cz>
27323 Jan Hubicka <hubicka@ucw.cz>
27324
27325 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
27326 Validate variable alignment.
27327 * ipa-icf.c (sem_function::equals_private): Be more precise
27328 about non-common function attributes.
27329 (sem_variable::equals): Likewise.
27330
27331 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27332
27333 PR ipa/65237
27334 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
27335 across COMDAT group boundary.
27336
27337 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27338
27339 PR ipa/65232
27340 * ipa-icf.c (clear_decl_rtl): New function.
27341 (sem_function::merge): Clear RTL before forming alias.
27342 (sem_variable::merge): Clear RTL before forming alias.
27343
27344 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27345
27346 PR ipa/65236
27347 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
27348
27349 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
27350
27351 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
27352 to neon_to_gp<q>.
27353
27354 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
27355
27356 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
27357 a typo in the description.
27358
27359 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
27360
27361 PR target/64317
27362 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
27363 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
27364 * lra-constraints.c: Include "params.h".
27365 (EBB_PROBABILITY_CUTOFF): Use
27366 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
27367 (lra_inheritance): Use '<' instead of '<=' for
27368 EBB_PROBABILITY_CUTOFF.
27369 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
27370 Document change.
27371
27372 2015-02-27 Martin Liska <mliska@suse.cz>
27373
27374 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
27375 vector length condition.
27376
27377 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
27378
27379 * doc/extend.texi (x86 transactional memory intrinsics):
27380 Reorganize discussion of _xbegin. Clarify that the return
27381 value is a bit mask. Expand example and move to end of section.
27382
27383 2015-02-26 Jakub Jelinek <jakub@redhat.com>
27384 Aldy Hernandez <aldyh@redhat.com>
27385
27386 PR rtl-optimization/65220
27387 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
27388
27389 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
27390
27391 PR target/65032
27392 * lra-remat.c (update_scratch_ops): New.
27393 (do_remat): Call it.
27394 * lra.c (lra_register_new_scratch_op): New. Take code from ...
27395 (remove_scratches): ... here.
27396 * lra-int.h (lra_register_new_scratch_op): New prototype.
27397
27398 2015-02-27 Marek Polacek <polacek@redhat.com>
27399
27400 PR c/65040
27401 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
27402 -Wformat-signedness anymore.
27403
27404 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27405
27406 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
27407 function.
27408 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
27409
27410 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27411
27412 * config/s390/s390.c (enum s390_builtin):
27413 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
27414 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
27415 (s390_init_builtins): Generate new builtin functions.
27416 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
27417 (s390_sfpc, s390_efpc): New pattern definitions.
27418
27419 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27420
27421 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
27422 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
27423 (s390_builtin_decls): New array.
27424 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
27425 (s390_builtin_decl): New function.
27426 (TARGET_BUILTIN_DECL): Define macro.
27427
27428 2015-02-27 Richard Biener <rguenther@suse.de>
27429
27430 PR middle-end/63175
27431 * builtins.c (get_object_alignment_2): Make sure to re-apply
27432 the ANDed mask after recursing to its operand gets us a new
27433 misalignment bit position.
27434
27435 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
27436 Martin Liska <mliska@suse.cz>
27437
27438 PR bootstrap/65150
27439 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
27440 Use address_matters_p.
27441 (redirect_all_callers, set_addressable): New functions.
27442 (sem_function::merge): Reorganize and fix merging issues.
27443 (sem_variable::merge): Likewise.
27444 (sem_variable::compare_sections): Remove.
27445 * common.opt (fmerge-all-constants, fmerge-constants): Remove
27446 Optimization flag.
27447 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
27448 redirect them.
27449 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
27450 decl is used.
27451 (address_matters_1): New function.
27452 (symtab_node::address_matters_p): New function.
27453 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
27454 check for merged flag.
27455 * cgraph.h (address_matters_p): Declare.
27456 (symtab_node::address_taken_from_non_vtable_p): Remove.
27457 (symtab_node::address_can_be_compared_p): New method.
27458 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
27459 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
27460 Remove.
27461 (comdat_can_be_unshared_p_1) Use address_matters_p.
27462 (update_vtable_references): Fix formating.
27463 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
27464 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
27465 * cgraphclones.c: Preserve merged and icf_merged flags.
27466
27467 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
27468
27469 * doc/extend.texi (Function Attributes): Fix spelling and typos.
27470 (Label Attributes): Likewise.
27471 (Cilk Plus Builtins): Likewise.
27472 (ARC SIMD Built-in Functions): Likewise.
27473 (ARM C Language Extensions (ACLE)): Likewise.
27474 (PowerPC Built-in Functions): Likewise.
27475 (PowerPC Hardware Transactional Memory Built-in Functions):
27476 Likewise.
27477
27478 2015-02-26 Jakub Jelinek <jakub@redhat.com>
27479
27480 PR tree-optimization/65216
27481 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
27482 new stmt and new SSA_NAME for lhs whenever the arguments have
27483 changed and weren't just swapped. Fix comment typo.
27484
27485 PR tree-optimization/65215
27486 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
27487 for PDP endian targets.
27488 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
27489 Fix up formatting issues.
27490 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
27491 size is smaller than the original, adjust MEM_REF offset by the
27492 difference of sizes. Use is_gimple_mem_ref_addr instead of
27493 is_gimple_min_invariant test to avoid adding address temporaries.
27494
27495 2015-02-26 Martin Liska <mliska@suse.cz>
27496 Jan Hubicka <hubicka@ucw.cz>
27497
27498 PR ipa/64693
27499 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
27500 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
27501 (sem_item_optimizer::process_cong_reduction): Include division by
27502 sensitive references.
27503 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
27504 * ipa-ref.c (ipa_ref::address_matters_p): New function.
27505 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
27506
27507 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
27508
27509 PR target/65192
27510 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
27511 Remove.
27512 * config/avr/avr.c: Same.
27513 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
27514 Refuse any constant address not in 0..0xbf.
27515 * config/avr/avr.md (*mov<mode>, *movsf): Remove
27516 tiny_valid_direct_memory_access_range from insn conditions.
27517 (mov<mode>): Don't special-case expansion of avrtiny addresses.
27518
27519 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
27520
27521 PR target/61142
27522 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
27523 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
27524 * config/sh/predicates.md (const_logical_operand): New predicate.
27525 * config/sh/sh.md: Add new peephole2 patterns.
27526
27527 2015-02-26 Marek Polacek <polacek@redhat.com>
27528
27529 PR ipa/65008
27530 * ipa-inline.c (early_inliner): Recompute inline parameters.
27531
27532 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27533
27534 PR target/65171
27535 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
27536 instructions with TImode operands are included in the analysis.
27537
27538 2015-02-26 Sebastian Pop <s.pop@samsung.com>
27539
27540 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
27541 of an EDGE_FSM_THREAD.
27542
27543 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
27544
27545 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
27546
27547 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
27548
27549 PR debug/46102
27550 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
27551
27552 2015-02-26 Sebastian Pop <s.pop@samsung.com>
27553
27554 PR tree-optimization/65048
27555 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
27556 (thread_through_all_blocks): Call valid_jump_thread_path.
27557 Remove invalid FSM jump-thread paths.
27558
27559 2015-02-26 Jakub Jelinek <jakub@redhat.com>
27560
27561 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
27562 (ipa_write_optimization_summaries): Likewise.
27563 * tree-streamer.h: Include data-streamer.h.
27564 (streamer_mode_table): Declare extern variable.
27565 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
27566 * lto-streamer-out.c (lto_output_init_mode_table,
27567 lto_write_mode_table): New functions.
27568 (produce_asm_for_decls): Call lto_write_mode_table when streaming
27569 offloading LTO.
27570 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
27571 (lto_create_simple_input_block): Add mode_table argument to the
27572 lto_input_block constructors.
27573 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
27574 Likewise.
27575 * data-streamer-in.c (string_for_index): Likewise.
27576 * ipa-inline-analysis.c (inline_read_section): Likewise.
27577 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
27578 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
27579 * lto-streamer-in.c (lto_read_body_or_constructor,
27580 lto_input_toplevel_asms): Likewise.
27581 (lto_input_mode_table): New function.
27582 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
27583 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
27584 Use bp_pack_machine_mode.
27585 * real.h (struct real_format): Add name field.
27586 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
27587 (class lto_input_block): Add mode_table member.
27588 (lto_input_block::lto_input_block): Add mode_table_ argument,
27589 initialize mode_table.
27590 (struct lto_file_decl_data): Add mode_table field.
27591 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
27592 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
27593 unpack_ts_decl_common_value_fields,
27594 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
27595 * tree-streamer.c (streamer_mode_table): New variable.
27596 * real.c (ieee_single_format, mips_single_format,
27597 motorola_single_format, spu_single_format, ieee_double_format,
27598 mips_double_format, motorola_double_format,
27599 ieee_extended_motorola_format, ieee_extended_intel_96_format,
27600 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
27601 ibm_extended_format, mips_extended_format, ieee_quad_format,
27602 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
27603 decimal_single_format, decimal_double_format, decimal_quad_format,
27604 ieee_half_format, arm_half_format, real_internal_format): Add name
27605 field.
27606 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
27607
27608 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
27609
27610 PR target/65161
27611 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
27612 reordering for selective scheduling.
27613
27614 2015-02-26 Terry Guo <terry.guo@arm.com>
27615
27616 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
27617 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
27618 (arm_arch_no_volatile_ce): Declare new global variable.
27619 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
27620 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
27621 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
27622 (TARGET_NO_VOLATILE_CE): New macro.
27623 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
27624 volatile memory access in IT block
27625
27626 2015-02-25 Kai Tietz <ktietz@redhat.com>
27627
27628 PR tree-optimization/61917
27629 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
27630 that reduc_def_stmt is null.
27631
27632 2015-02-25 Martin Liska <mliska@suse.cz>
27633
27634 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
27635 hard register variables.
27636
27637 2015-02-25 Kai Tietz <ktietz@redhat.com>
27638
27639 PR target/64212
27640 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
27641 (symtab::noninterposable_alias): Likewise.
27642
27643 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
27644
27645 PR target/65167
27646 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
27647 bounds registers.
27648 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
27649
27650 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
27651
27652 PR target/64997
27653 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
27654 as split condition; force split via '#' in output pattern.
27655
27656 2015-02-25 Richard Biener <rguenther@suse.de>
27657 Kai Tietz <ktietz@redhat.com>
27658
27659 PR tree-optimization/61917
27660 * tree-vect-loop.c (vectorizable_reduction): Allow
27661 vect_internal_def without reduction to exit graceful.
27662
27663 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
27664
27665 PR target/65196
27666 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
27667 only with NONDEBUG_INSN_P.
27668
27669 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
27670
27671 Use variadic macros with avr-log.c.
27672
27673 * config/avr/avr-protos.h (avr_vdump): New prototype.
27674 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
27675 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
27676 * config/avr/avr-log.c: Adjust comments.
27677 (avr_vdump): New function.
27678 (avr_vadump): Pass caller as 2nd argument instead of format string.
27679 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
27680 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
27681
27682 2015-02-25 Jakub Jelinek <jakub@redhat.com>
27683
27684 PR lto/64374
27685 * target.def (target_option_stream_in): New target hook.
27686 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
27687 targetm.target_option.post_stream_in if non-NULL.
27688 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
27689 * doc/tm.texi: Updated.
27690 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
27691 function.
27692 (TARGET_OPTION_POST_STREAM_IN): Redefine.
27693
27694 2015-02-24 Jeff Law <law@redhat.com>
27695
27696 PR target/65117
27697 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
27698 of operand 0 and operand 2.
27699 (zero_cost_loop_end, loop_end): Similarly.
27700
27701 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
27702
27703 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
27704 CXX_MEM_STAT_INFO.
27705
27706 2015-02-24 DJ Delorie <dj@redhat.com>
27707
27708 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
27709 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
27710 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
27711 instead of hardcoding SImode.
27712
27713 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
27714
27715 * omp-low.c (create_omp_child_function): Tag entrypoint
27716 functions with a special attribute.
27717
27718 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
27719
27720 PR target/65058
27721 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
27722
27723 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
27724
27725 PR rtl-optimization/65123
27726 * lra-remat.c (operand_to_remat): Check hard regs in insn
27727 definition too.
27728
27729 2015-02-24 Nick Clifton <nickc@redhat.com>
27730
27731 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
27732 to the assembler.
27733
27734 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
27735
27736 PR libgomp/64625
27737 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
27738 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
27739 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
27740 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
27741 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
27742 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
27743 (BUILT_IN_GOACC_PARALLEL): Specify as
27744 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
27745 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
27746 * builtin-types.def
27747 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
27748 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
27749 Remove function types.
27750 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
27751 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
27752 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
27753 New function types.
27754
27755 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
27756
27757 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
27758
27759 2015-02-24 Jakub Jelinek <jakub@redhat.com>
27760
27761 PR tree-optimization/65170
27762 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
27763 if val[1] < 0, clear also val[2] and return 3.
27764
27765 2015-02-24 Alan Modra <amodra@gmail.com>
27766
27767 PR target/65172
27768 * config/rs6000/rs6000.c (get_memref_parts): Only return true
27769 when *base is a reg. Handle nested plus addresses. Simplify
27770 pre_modify test.
27771
27772 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
27773
27774 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
27775 use natural alignment when optimizing for size.
27776
27777 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
27778
27779 PR target/65153
27780 * config/sh/sh.md (movsicc_true+3): Remove peephole.
27781 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
27782 * config/sh/sh.c (replace_n_hard_rtx): Remove.
27783
27784 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
27785
27786 PR fortran/63427
27787 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
27788 too big for a wide_int. Implement missing wrapping operation.
27789
27790 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
27791
27792 PR target/65163
27793 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
27794 instead of const_int 4294901760.
27795
27796 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
27797
27798 * config/avr/t-avr: Fix typo in comment.
27799
27800 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
27801
27802 * doc/rtl.texi (fma): Clarify documentation.
27803
27804 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
27805
27806 PR debug/58123
27807 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
27808 over input_location.
27809
27810 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
27811
27812 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
27813 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
27814 restrict alignments to absolute_biggest_alignment.
27815 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
27816 Define.
27817 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
27818 * doc/tm.texi: Regenerate.
27819 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
27820
27821 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
27822
27823 PR target/64172
27824 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
27825
27826 2015-02-20 Richard Biener <rguenther@suse.de>
27827
27828 PR tree-optimization/65136
27829 * tree-ssa-propagate.c: Include cfgloop.h.
27830 (replace_phi_args_in): Avoid replacing loop latch edge PHI
27831 arguments with constants.
27832
27833 2015-02-20 Jakub Jelinek <jakub@redhat.com>
27834 Martin Liska <mliska@suse.cz>
27835
27836 PR target/63892
27837 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
27838 don't try to create_thunk if stdarg_p. If
27839 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
27840 redirect_callers if possible.
27841 (sem_item_optimizer::execute): Call unregister_hooks here...
27842 (ipa_icf_driver): ... instead of here.
27843
27844 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27845
27846 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
27847 Mark operand 0 as earlyclobber in 2nd alternative.
27848 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
27849 Write negated shift amount into QI lowpart operand 0 and use it
27850 in the shift step.
27851 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
27852
27853 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
27854
27855 * cgraph.h (clone_function_name_1): Declare.
27856 * cgraphclones.c (clone_function_name_1): New function.
27857 (clone_function_name): Use it.
27858 * lto-partition.c: Include "stringpool.h".
27859 (must_not_rename, maybe_rewrite_identifier)
27860 (validize_symbol_for_target): New static functions.
27861 (privatize_symbol_name): Use must_not_rename.
27862 (promote_symbol): Call validize_symbol_for_target.
27863 (lto_promote_cross_file_statics): Likewise.
27864 (lto_promote_statics_nonwpa): Likewise.
27865
27866 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
27867
27868 PR target/64452
27869 * config/avr/avr.md (pushhi_insn): New insn.
27870 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
27871
27872 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
27873 Jakub Jelinek <jakub@redhat.com>
27874
27875 * tree-streamer.c (preload_common_nodes): Don't preload
27876 TI_VA_LIST* for offloading.
27877 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
27878 in_lto_p.
27879
27880 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
27881
27882 * config/pa/pa.c (pa_emit_move_sequence): Always force
27883 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
27884 note on insn.
27885
27886 * config/pa/pa.c (pa_reloc_rw_mask): New function.
27887 (TARGET_ASM_RELOC_RW_MASK): Define.
27888 (pa_cannot_force_const_mem): Revert previous change.
27889
27890 2015-02-19 Martin Jambor <mjmabor@suse.cz>
27891 Jan Hubicka <hubicka@ucw.cz>
27892
27893 PR ipa/65028
27894 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
27895 across jump functions.
27896
27897 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
27898
27899 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
27900
27901 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
27902
27903 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
27904
27905 2015-02-19 Richard Henderson <rth@redhat.com>
27906
27907 PR middle-end/65074
27908 * varasm.c (default_binds_local_p_2): Don't test node->definition;
27909 test DECL_EXTERNAL independent of symtab_node.
27910
27911 2015-02-19 Jakub Jelinek <jakub@redhat.com>
27912
27913 PR lto/65012
27914 * varpool.c (varpool_node::get_constructor): Return early
27915 if this->lto_file_data is NULL.
27916
27917 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27918
27919 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
27920 (rank_for_schedule_debug): Update.
27921 (ready_sort): Make static. Move sorting logic to ...
27922 (ready_sort_debug, ready_sort_real): New static functions.
27923 (schedule_block): Sort both debug insns and real insns in preparation
27924 for ready list trimming. Improve debug output.
27925 * sched-int.h (ready_sort): Remove global declaration.
27926
27927 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
27928
27929 * ipa-icf.c (sem_function::equals_private): Adjust.
27930 (sem_function::bb_dict_test): Take a vec<int> * instead of
27931 auto_vec<int>.
27932 * ipa-icf.h (bb_dict_test): Likewise.
27933
27934 2015-02-18 Jakub Jelinek <jakub@redhat.com>
27935
27936 PR gcov-profile/64634
27937 * tree-eh.c (frob_into_branch_around): Fix up typos
27938 in function comment.
27939 (lower_catch): Put eh_seq resulting from EH lowering of
27940 the cleanup sequence after the cleanup rather than before it.
27941
27942 2015-02-18 Tom de Vries <tom@codesourcery.com>
27943
27944 * common.opt (fstdarg-opt): New option.
27945 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
27946 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
27947 (@item -fstdarg-opt): New item.
27948
27949 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
27950
27951 PR target/65064
27952 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
27953 for common symbols.
27954
27955 2015-02-18 Jakub Jelinek <jakub@redhat.com>
27956
27957 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
27958 insn-modes.h.
27959 (ALL_HOST_OBJS): Add mkoffload.o.
27960 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
27961
27962 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
27963
27964 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
27965 (compare_virtual_tables): Be smarter about skipping typeinfos;
27966 do sane output on virtual table table mismatch.
27967 (warn_odr): Be ready for forward declarations of enums;
27968 output sane info on base mismatch and virtual table mismatch.
27969 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
27970 when only one type is polymorphic.
27971 (get_odr_type): Fix hashtable corruption.
27972 (dump_odr_type): Dump mangled names.
27973
27974 2015-02-18 Richard Biener <rguenther@suse.de>
27975
27976 PR tree-optimization/65063
27977 * tree-predcom.c (determine_unroll_factor): Return 1 if we
27978 have replaced looparound PHIs.
27979
27980 2015-02-18 Martin Liska <mliska@suse.cz>
27981
27982 * lto-streamer.c (lto_streamer_init): Encapsulate
27983 streamer_check_handled_ts_structures with checking macro.
27984
27985 2015-02-18 Jakub Jelinek <jakub@redhat.com>
27986
27987 PR ipa/65087
27988 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
27989 section if !implicit_section.
27990 (cgraph_node::create_version_clone_with_body): Likewise.
27991 * trans-mem.c (ipa_tm_create_version): Likewise.
27992
27993 2015-02-18 Richard Biener <rguenther@suse.de>
27994
27995 PR tree-optimization/62217
27996 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
27997 into BIVs.
27998
27999 2015-02-18 Marek Polacek <polacek@redhat.com>
28000
28001 PR sanitizer/65081
28002 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
28003 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
28004 is in range [-16K, -1]. Don't issue run-time error if
28005 (ptr > ptr + offset).
28006
28007 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
28008
28009 * doc/install.texi (nvptx-*-none): New section.
28010 * doc/invoke.texi (Nvidia PTX Options): Likewise.
28011 * config/nvptx/nvptx.opt: Update.
28012
28013 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
28014 (access_check): New functions, copied from
28015 config/i386/intelmic-mkoffload.c.
28016 (main): For non-installed testing, look in all COMPILER_PATHs for
28017 GCC_INSTALL_NAME.
28018
28019 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
28020
28021 2015-02-18 Andrew Pinski <apinski@cavium.com>
28022 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28023
28024 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
28025 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
28026
28027 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
28028
28029 * ipa-visibility.c (function_and_variable_visibility): Only
28030 check locality if node is not already local.
28031 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
28032 call_for_symbol_and_aliases instead of
28033 call_for_symbol_thunks_and_aliases.
28034 (ipa_inline): Likewise.
28035 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
28036 first walk aliases.
28037 * ipa.c (symbol_table::remove_unreachable_nodes): Use
28038 call_for_symbol_and_aliases.
28039 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
28040 (ipa_propagate_frequency_1): Use it; use opt_for_fn
28041 (ipa_propagate_frequency): Update.
28042 (ipa_profile): Add opt_for_fn gueards.
28043
28044 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
28045
28046 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
28047 * doc/invoke.texi (SH options): Document it.
28048 * config/sh/sh.c (sh_insn_length_adjustment): Check
28049 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
28050
28051 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
28052
28053 * common.opt (fipa-cp-alignment): New.
28054 * ipa-cp.c (ipcp_store_alignment_results): Check
28055 flag_ipa_cp_alignment.
28056 * opts.c (default_options_table): Enable -fipa-cp-alignment for
28057 -O2.
28058 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
28059 * doc/invoke.texi: Document -fipa-cp-alignment.
28060
28061 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
28062
28063 PR target/64793
28064 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
28065 to nil. Adjust comments.
28066
28067 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
28068
28069 * ipa-visibility.c (function_and_variable_visibility): Only
28070 check locality if node is not already local.
28071 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
28072 call_for_symbol_and_aliases instead of
28073 call_for_symbol_thunks_and_aliases.
28074 (ipa_inline): Likewise.
28075 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
28076 first walk aliases.
28077 * ipa.c (symbol_table::remove_unreachable_nodes): Use
28078 call_for_symbol_and_aliases.
28079 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
28080 (ipa_propagate_frequency_1): Use it; use opt_for_fn
28081 (ipa_propagate_frequency): Update.
28082 (ipa_profile): Add opt_for_fn guards.
28083
28084 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
28085
28086 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
28087 skipping of "strange" tokens.
28088
28089 2015-02-17 Jeff Law <law@redhat.com>
28090
28091 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
28092 obsolete comment.
28093
28094 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
28095
28096 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
28097 as forcing a HARD_DEP between instructions, thereby
28098 disallowing rewriting to break dependencies.
28099
28100 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
28101
28102 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
28103 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
28104 variables in boundary that have no inlitalizer encoded and are
28105 not aliases.
28106 * varasm.c (default_binds_local_p_2): External definitions do not
28107 count as definitions here.
28108
28109 2015-02-16 Jeff Law <law@redhat.com>
28110
28111 PR tree-optimization/64823
28112 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
28113 statements.
28114 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
28115 threading through blocks with PHIs, but no statements.
28116 (thread_through_normal_block): Distinguish between blocks where
28117 we did not process all the statements and blocks with no statements.
28118
28119 2015-02-16 Jakub Jelinek <jakub@redhat.com>
28120 James Greenhalgh <james.greenhalgh@arm.com>
28121
28122 PR ipa/64963
28123 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
28124 section if not linkonce. Fix up formatting.
28125 (cgraph_node::create_version_clone_with_body): Copy section.
28126 * trans-mem.c (ipa_tm_create_version): Likewise.
28127
28128 2015-02-16 Richard Biener <rguenther@suse.de>
28129
28130 PR tree-optimization/65077
28131 * tree-ssa-structalias.c (get_constraint_for_1): Handle
28132 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
28133 (find_func_aliases): Allow float values to carry pointers again.
28134
28135 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
28136
28137 * doc/install.texi (Specific): Reorder targets list to put
28138 aarch64 in alphabetical order. Add a link to aarch64*-*-*
28139 from the top menu.
28140
28141 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
28142 David Edelsohn <dje.gcc@gmail.com>
28143
28144 PR target/65058
28145 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
28146 mapping class to external variable or function reference.
28147 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
28148 mapping class.
28149
28150 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
28151
28152 PR target/53348
28153 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
28154 ASM_WEAKEN_DECL if defined.
28155
28156 2015-02-16 Richard Biener <rguenther@suse.de>
28157
28158 PR lto/65015
28159 * varasm.c (default_file_start): For LTO produced units
28160 emit <artificial> as file directive.
28161
28162 2015-02-16 Richard Biener <rguenther@suse.de>
28163
28164 PR tree-optimization/63593
28165 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
28166 stmts and releasing SSA names until...
28167 (execute_pred_commoning): ... after processing all chains.
28168
28169 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
28170
28171 PR ipa/65059
28172 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
28173 external functions.
28174
28175 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
28176
28177 * doc/bugreport.texi: Adjust section titles throughout the file
28178 to use "Title Case".
28179 * doc/extend.texi: Likewise.
28180 * doc/gcov.texi: Likewise.
28181 * doc/implement-c.texi: Likewise.
28182 * doc/implement-cxx.texi: Likewise.
28183 * doc/invoke.texi: Likewise.
28184 * doc/objc.texi: Likewise.
28185 * doc/standards.texi: Likewise.
28186 * doc/trouble.texi: Likewise.
28187
28188 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
28189
28190 * cgraph.h (symtab_node::has_aliases_p): Simplify.
28191 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
28192 * tree.c (lookup_binfo_at_offset): Make static.
28193 (get_binfo_at_offset): Do not shadow offset; add explanatory
28194 comment.
28195
28196 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
28197
28198 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
28199 for all floading point loads and stores except those using a register
28200 index address.
28201 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
28202 to a register.
28203
28204 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
28205
28206 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
28207 (do_estimate_growth_1): Record if any uninlinable edge was seen.
28208 (estimate_growth): Handle uninlinable edges correctly.
28209 (check_callers): New.
28210 (growth_likely_positive): Handle aliases correctly.
28211
28212 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
28213
28214 * ipa-chkp.c: Use iterate_direct_aliases.
28215 * symtab.c (resolution_used_from_other_file_p): Move inline.
28216 (symtab_node::create_reference): Fix formating.
28217 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
28218 (symtab_node::iterate_reference): Move inline.
28219 (symtab_node::iterate_referring): Move inline.
28220 (symtab_node::iterate_direct_aliases): Move inline.
28221 (symtab_node::used_from_object_file_p_worker): Inline into ...
28222 (symtab_node::used_from_object_file_p): ... this one; move inline.
28223 (symtab_node::call_for_symbol_and_aliases): Move inline;
28224 use iterate_direct_aliases.
28225 (symtab_node::call_for_symbol_and_aliases_1): New method.
28226 (cgraph_node::call_for_symbol_and_aliases): Move inline;
28227 use iterate_direct_aliases.
28228 (cgraph_node::call_for_symbol_and_aliases_1): New method.
28229 (varpool_node::call_for_node_and_aliases): Rename to ...
28230 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
28231 use iterate_direct_aliases.
28232 (varpool_node::call_for_symbol_and_aliases_1): New method.
28233 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
28234 (ipa_discover_readonly_nonaddressable_var): Update.
28235 * ipa-devirt.c: Fix formating.
28236 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
28237 Move inline.
28238 (cgraph_node::call_for_symbol_and_aliases): Move inline.
28239 (cgraph_node::call_for_symbol_and_aliases_1): New function..
28240 * cgraph.h (used_from_object_file_p_worker): Remove.
28241 (resolution_used_from_other_file_p): Move inline.
28242 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
28243 (symtab_node::iterate_reference): Move inline.
28244 (symtab_node::iterate_referring): Move inline.
28245 (symtab_node::iterate_direct_aliases): Move inline.
28246 (symtab_node::used_from_object_file_p_worker): Inline into ...
28247 (symtab_node::used_from_object_file_p): Move inline.
28248 * tree-emutls.c (ipa_lower_emutls): Update.
28249 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
28250 (varpool_node::call_for_node_and_aliases): Remove.
28251
28252 2015-02-14 Jakub Jelinek <jakub@redhat.com>
28253
28254 PR tree-optimization/62209
28255 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
28256 op == range->exp, insert seq and gimplified code after labels
28257 instead of after the phi.
28258
28259 2015-02-13 Jeff Law <law@redhat.com>
28260
28261 PR bootstrap/65060
28262 Revert my change for tree-optimization/64823.
28263
28264 2015-02-13 Jakub Jelinek <jakub@redhat.com>
28265
28266 PR tree-optimization/65053
28267 * tree-ssa-phiopt.c (value_replacement): When moving assign before
28268 cond, either reset VR on lhs or set it to phi result VR.
28269
28270 2015-02-13 Jeff Law <law@redhat.com>
28271
28272 PR tree-optimization/64823
28273 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
28274 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
28275 threading through blocks with PHIs, but no statements.
28276 (thread_through_normal_block): Distinguish between blocks where
28277 we did not process all the statements and blocks with no statements.
28278
28279 PR rtl-optimization/47477
28280 * match.pd (convert (plus/minus (convert @0) (convert @1): New
28281 simplifier to narrow arithmetic.
28282
28283 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
28284
28285 PR ipa/65028
28286 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
28287 polymorphic call info when type is not known to be preserved.
28288
28289 2015-02-13 Maritn Jambor <mjambor@suse.cz>
28290
28291 PR ipa/65028
28292 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
28293 (inline_call): Use it.
28294
28295 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
28296
28297 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
28298 GOMP_DEVICE_NVIDIA_PTX.
28299
28300 2015-02-13 Jakub Jelinek <jakub@redhat.com>
28301
28302 PR ipa/65034
28303 * stmt.c (emit_case_nodes): Use void_type_node instead of
28304 NULL_TREE as LABEL_DECL type.
28305
28306 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
28307
28308 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
28309 constraints.
28310 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
28311 symbolic references to data to be forced to constant memory on the
28312 SOM target.
28313
28314 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
28315
28316 PR tree-optimization/65002
28317 * tree-cfg.c (pass_data_fixup_cfg): Don't update
28318 SSA on start.
28319 * tree-sra.c (some_callers_have_no_vuse_p): New.
28320 (ipa_early_sra): Reject functions whose callers
28321 assume function is read only.
28322
28323 2015-02-13 Richard Biener <rguenther@suse.de>
28324
28325 PR lto/65015
28326 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
28327 for LTO produced CUs.
28328
28329 2015-02-13 Bin Cheng <bin.cheng@arm.com>
28330
28331 PR tree-optimization/64705
28332 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
28333 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
28334 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
28335 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
28336 expand_simple_operations.
28337
28338 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
28339 Richard Henderson <rth@redhat.com>
28340
28341 PR rtl/32219
28342 * cgraphunit.c (cgraph_node::finalize_function): Set definition
28343 before notice_global_symbol.
28344 (varpool_node::finalize_decl): Likewise.
28345 * varasm.c (default_binds_local_p_2): Rename from
28346 default_binds_local_p_1, add weak_dominate argument. Use direct
28347 returns instead of assigning to local variable. Unify varpool and
28348 cgraph paths via symtab_node. Reject undef weak variables before
28349 testing visibility. Reorder tests for simplicity.
28350 (default_binds_local_p): Use default_binds_local_p_2.
28351 (default_binds_local_p_1): Likewise.
28352 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
28353 via symtab_node.
28354 (default_elf_asm_output_external): Emit visibility when specified.
28355
28356 2015-02-13 Alan Modra <amodra@gmail.com>
28357
28358 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
28359 code setting up r11 for out-of-line fp restore.
28360
28361 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
28362
28363 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
28364 (muser-mode): Likewise.
28365
28366 2015-02-13 Alan Modra <amodra@gmail.com>
28367
28368 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
28369 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
28370
28371 2015-02-12 David Howells <dhowells@redhat.com>
28372
28373 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
28374 warning.
28375 * tree-ssa-uninit.c (dump_predicates): Likewise.
28376 * opts.c (print_filtered_help): Likewise.
28377
28378 2015-02-12 Jakub Jelinek <jakub@redhat.com>
28379
28380 * dwarf2out.c (output_die): Use "%s", name instead of name to
28381 avoid -Wformat-security warning.
28382
28383 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
28384 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
28385 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
28386 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
28387
28388 2015-02-12 Jason Merrill <jason@redhat.com>
28389
28390 * common.opt (-flifetime-dse): New.
28391
28392 2015-02-12 Jakub Jelinek <jakub@redhat.com>
28393
28394 PR sanitizer/65019
28395 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
28396
28397 PR tree-optimization/65014
28398 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
28399 use original second operand of arg0 or arg1 instead of
28400 that adjusted by STRIP_NOPS.
28401
28402 2015-02-11 Jeff Law <law@redhat.com>
28403
28404 PR target/63347
28405 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
28406 that needs to be queued, just queue it for a single cycle.
28407
28408 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
28409
28410 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
28411 bodies of thunks; comment on why.
28412 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
28413 symbols are extern.
28414
28415 2015-02-11 Richard Henderson <rth@redhat.com>
28416
28417 PR sanitize/65000
28418 * tree-eh.c (mark_reachable_handlers): Mark source and destination
28419 regions of __builtin_eh_copy_values.
28420
28421 2015-02-11 Jakub Jelinek <jakub@redhat.com>
28422
28423 PR middle-end/65003
28424 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
28425 ultimate alias is MEM with SYMBOL_REF satisfying
28426 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
28427 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
28428
28429 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
28430
28431 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
28432 "diagnostic-core.h".
28433 (main): Initialize progname, and call diagnostic_initialize.
28434
28435 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
28436 instead of __OPENMP_TARGET__.
28437
28438 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
28439 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
28440 hard-coding PTX_ID.
28441
28442 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
28443
28444 * doc/sourcebuild.texi (pie_enabled): Document.
28445
28446 2015-02-11 Martin Liska <mliska@suse.cz>
28447
28448 PR ipa/64813
28449 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
28450 a return value for call to a function that is noreturn.
28451
28452 2015-02-11 Richard Biener <rguenther@suse.de>
28453
28454 PR lto/65015
28455 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
28456 and -fresolution.
28457
28458 2015-02-11 Andrew Pinski <apinski@cavium.com>
28459
28460 PR target/64893
28461 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
28462 Change the first argument type to size_type_node and add another
28463 size_type_node.
28464 (aarch64_simd_expand_builtin): Handle the new argument to
28465 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
28466 print an out when the first two arguments are not
28467 nonzero integer constants.
28468 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
28469 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
28470
28471 2015-02-11 Jakub Jelinek <jakub@redhat.com>
28472
28473 PR target/61925
28474 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
28475 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
28476 (ix86_set_current_function): Rewritten.
28477 (ix86_add_new_builtins): Temporarily clear current_target_pragma
28478 when creating builtin fndecls.
28479
28480 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
28481
28482 PR ipa/65005
28483 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
28484 function.
28485 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
28486 have no comdat group.
28487 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
28488 (lto_output_varpool_node): Always output alias info.
28489 (output_refs): Output refs of boundary aliases, too.
28490 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
28491 (output_symtab): Output call eges in thunks in boundary.
28492 (get_alias_symbol): Remove.
28493 (input_node, input_varpool_node): Do not special case weakrefs.
28494 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
28495 alias and thunks targets in the boundary; do not take removed symbols
28496 from their comdat groups.
28497 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
28498 (cgraph_node::global_info): Remove.
28499 (cgraph_node::rtl_info): Look through aliases and thunks.
28500 * cgrpah.h (global_info): Remove.
28501 (non_local_p): Remove.
28502
28503 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
28504 Sandra Loosemore <sandra@codesourcery.com>
28505
28506 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
28507 to inline asm. List dialects in proper order.
28508
28509 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
28510 Sandra Loosemore <sandra@codesourcery.com>
28511
28512 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
28513
28514 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
28515
28516 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
28517 modified) reference to Solaris.
28518
28519 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
28520
28521 * doc/extend.texi (Extended Asm): Fix typos.
28522
28523 2015-02-10 Jakub Jelinek <jakub@redhat.com>
28524
28525 PR sanitizer/65004
28526 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
28527
28528 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
28529
28530 PR target/64661
28531 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
28532 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
28533 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
28534 * config/sh/constraints.md (Ara, Add): New constraints.
28535 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
28536 predicates.
28537 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
28538 atomic_mem_operand_0. Don't use force_reg on the memory address.
28539 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
28540 Sra constraint. Convert to insn_and_split. Add workaround for
28541 PR 64974.
28542 (atomic_compare_and_swap<mode>_hard): Copy to
28543 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
28544 Use atomic_mem_operand_0 predicate.
28545 (atomic_compare_and_swap<mode>_soft_gusa,
28546 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
28547 AraAdd constraints.
28548 (atomic_compare_and_swap<mode>_soft_tcb,
28549 atomic_compare_and_swap<mode>_soft_imask,
28550 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
28551 atomic_mem_operand_0 predicate and SraSdd constraints.
28552 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
28553 constraint.
28554 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
28555 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
28556 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
28557 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
28558 force_reg on the memory address.
28559 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
28560 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
28561 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
28562 atomic_mem_operand_1 predicate and Sra constraint.
28563 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
28564 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
28565 Use atomic_mem_operand_1 predicate.
28566 (atomic_<fetchop_name><mode>_hard): Copy to
28567 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
28568 Use atomic_mem_operand_1 predicate.
28569 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
28570 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
28571 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
28572 insn_and_split. Use atomic_mem_operand_1 predicate.
28573 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
28574 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
28575 Use atomic_mem_operand_1 predicate.
28576 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
28577 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
28578 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
28579 in generated insn with original mem operand before emitting the insn.
28580 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
28581 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
28582 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
28583 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
28584 Use atomic_mem_operand_1 predicate and AraAdd constraints.
28585 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
28586 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
28587 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
28588 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
28589 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
28590 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
28591 atomic_not_fetch<mode>_soft_tcb,
28592 atomic_<fetchop_name>_fetch<mode>_soft_imask,
28593 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
28594 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
28595 Use atomic_mem_operand_1 predicate and SraSdd constraints.
28596
28597 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
28598
28599 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
28600 and 3 earlyclobber operands.
28601
28602 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
28603
28604 * common.opt (fstack-reuse): Mark as optimization.
28605
28606 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
28607
28608 PR ipa/64982
28609 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
28610
28611 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
28612
28613 PR tree-optimization/64326
28614 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
28615
28616 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
28617
28618 PR gcov-profile/61889
28619 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
28620
28621 2015-02-10 Richard Biener <rguenther@suse.de>
28622
28623 PR tree-optimization/64995
28624 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
28625 value we use is final.
28626 (visit_reference_op_store): Always valueize op.
28627 (visit_use): Properly valueize vuses.
28628
28629 2015-02-10 Richard Biener <rguenther@suse.de>
28630
28631 PR tree-optimization/64909
28632 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
28633 pass a scalar-stmt count estimate to the cost model.
28634 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
28635
28636 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
28637
28638 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
28639 enabled by default together with var-tracking.
28640
28641 2015-02-10 Nick Clifton <nickc@redhat.com>
28642
28643 * config/rl78/rl78.c: Remove DIV attribute code accidentally
28644 included in previous rl78 commit.
28645
28646 2015-02-10 Richard Biener <rguenther@suse.de>
28647
28648 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
28649 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
28650 return the bitpack.
28651
28652 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
28653
28654 PR gcov-profile/61889
28655 * config.in: regenerate.
28656 * configure.in: Likewise.
28657 * configure.ac: Check for ftw.h.
28658 * gcov-tool.c: Check for ftw.h before using nftw.
28659
28660 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
28661
28662 PR lto/64076
28663 * ipa-visibility.c (update_visibility_by_resolution_info): Only
28664 assert when not in lto mode.
28665
28666 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
28667
28668 * ira-color.c (setup_left_conflict_sizes_p): Simplify
28669 initialization/assignment of conflict_size.
28670
28671 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
28672
28673 PR ipa/64978
28674 * ipa-cp.c (gather_caller_stats): Skip thunks.
28675 (propagate_constants_topo): Skip aliases.
28676
28677 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
28678
28679 PR target/64761
28680 * config/sh/sh.c (sh_option_override): Don't change
28681 -freorder-blocks-and-partition to -freorder-blocks even when
28682 unwinding is enabled.
28683 (sh_can_follow_jump): Return false if the followee jump is
28684 a crossing jump when -freorder-blocks-and-partition is specified.
28685 * config/sh/sh.md (*jump_compact_crossing): New insn.
28686
28687 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
28688 Kaz Kojima <kkojima@gcc.gnu.org>
28689
28690 PR target/64761
28691 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
28692 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
28693 (sh_can_redirect_branch): Rename to ...
28694 (sh_can_follow_jump): ... this. Constify argument types.
28695 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
28696 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
28697 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
28698 * doc/tm.texi: Regenerate.
28699
28700 2015-02-09 Jakub Jelinek <jakub@redhat.com>
28701
28702 PR sanitizer/64981
28703 * builtins.c (expand_builtin): Call targetm.expand_builtin
28704 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
28705
28706 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
28707
28708 PR ipa/61548
28709 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
28710
28711 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
28712
28713 PR ipa/63566
28714 * ipa-icf.c (set_local): New function.
28715 (sem_function::merge): Use it.
28716
28717 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
28718
28719 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
28720 (add_type_duplicate): Fix comparison of BINFOs.
28721
28722 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
28723
28724 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
28725 on getting VOID pointer.
28726
28727 2015-02-09 Jakub Jelinek <jakub@redhat.com>
28728
28729 PR target/64979
28730 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
28731 va_list escapes.
28732
28733 2015-02-09 Richard Biener <rguenther@suse.de>
28734
28735 * genmatch.c (replace_id): Copy expr_type.
28736
28737 2015-02-09 Richard Biener <rguenther@suse.de>
28738
28739 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
28740 (streamer_write_tree_bitfields): Declare.
28741 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
28742 properly unpack padding.
28743 (unpack_value_fields): Inline ...
28744 (streamer_read_tree_bitfields): ... here.
28745 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
28746 and properly add padding bits.
28747 (streamer_pack_tree_bitfields): Fold into ...
28748 (streamer_write_tree_bitfields): ... this new function,
28749 exposing the bitpack object.
28750 * lto-streamer-out.c (lto_write_tree_1): Call
28751 streamer_write_tree_bitfields.
28752
28753 2015-02-09 Richard Biener <rguenther@suse.de>
28754
28755 PR tree-optimization/54000
28756 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
28757 (struct ivopts_data): Add loop_loc member.
28758 (tree_ssa_iv_optimize_loop): Dump loop location.
28759 (create_new_ivs): Likewise, also dump number of IVs generated.
28760
28761 2015-02-09 Martin Liska <mliska@suse.cz>
28762
28763 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
28764 just if not yet registered.
28765 (ipa_icf_generate_summary): Register callgraph hooks.
28766
28767 2015-02-08 Andrew Pinski <apinski@cavium.com>
28768
28769 * config/aarch64/aarch64.c (gty_dummy): Delete.
28770
28771 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
28772
28773 PR ipa/63566
28774 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
28775 (cgraph_node::local_p): Remove thunk related FIXME.
28776
28777 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
28778
28779 PR ipa/63566
28780 * i386.c (ix86_function_regparm): Look through aliases to see if callee
28781 is local and optimized.
28782 (ix86_function_sseregparm): Likewise; also use target's SSE math
28783 settings; error out instead of silently generating wrong code
28784 on mismatches.
28785 (init_cumulative_args): Look through aliases.
28786
28787 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
28788
28789 PR ipa/63566
28790 * ipa-split.c (execute_split_functions): Split if function has aliases.
28791
28792 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
28793
28794 PR ipa/63566
28795 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
28796 aliases before trying to expand it.
28797 (cgraph_node::expand_thunk): Fix formating.
28798
28799 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
28800
28801 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
28802 (Using Assembly Language with C): Expand introduction.
28803 (Basic Asm): Copy-edit. Add more information about uses of
28804 basic asm.
28805 (Extended Asm): Copy-edit. Document new escape syntax and
28806 %l[label] syntax.
28807 (Global Reg Vars): Copy-edit.
28808 (Local Reg Vars): Likewise.
28809
28810 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
28811
28812 PR debug/2714
28813 PR bootstrap/64256
28814 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
28815 (DBX_CONTIN_CHAR): Define.
28816
28817 2015-02-06 Sebastian Pop <s.pop@samsung.com>
28818 Brian Rzycki <b.rzycki@samsung.com>
28819
28820 PR tree-optimization/64878
28821 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
28822 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
28823 Stop recursion at loop phi nodes after having visited a loop phi node.
28824
28825 2015-02-06 Jakub Jelinek <jakub@redhat.com>
28826
28827 * toplev.c (process_options): Change flag_ipa_ra before creating
28828 optimization_{default,current}_node.
28829
28830 PR ipa/64896
28831 * cgraphunit.c (cgraph_node::expand_thunk): If
28832 restype is not is_gimple_reg_type nor the thunk_fndecl
28833 returns aggregate_value_p, set restmp to a temporary variable
28834 instead of resdecl.
28835
28836 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
28837
28838 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
28839
28840 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
28841
28842 PR target/64205
28843 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
28844 add a general secondary reload handler for SDmode, unless we have
28845 both read/write support for SDmode.
28846
28847 2015-02-06 Jakub Jelinek <jakub@redhat.com>
28848
28849 PR middle-end/64937
28850 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
28851 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
28852 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
28853 1 before, push it to abstract_vec.
28854 (dwarf2out_abstract_function): Adjust caller. Don't call
28855 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
28856 DECL_ABSTRACT_P flags for all abstract_vec elts.
28857
28858 2015-02-06 Renlin Li <renlin.li@arm.com>
28859
28860 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
28861 complex gimple.
28862 * tree-ssa.c (execute_update_addresses_taken): Likewise.
28863
28864 2015-02-06 Jeff Law <law@redhat.com>
28865
28866 PR target/64889
28867 * config/h8300/h8300.c (push): New argument "in_prologue".
28868 Pass "in_prologue" along to "F".
28869 (h8300_push_pop): Corresponding changes.
28870 (h8300_expand_prologue): Likewise.
28871 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
28872
28873 2015-02-06 Jakub Jelinek <jakub@redhat.com>
28874
28875 PR rtl-optimization/64957
28876 PR debug/64817
28877 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
28878 IOR rather than for AND.
28879
28880 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
28881
28882 PR target/62631
28883 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
28884 of shift-add and (add + shift) operations. Rename local variable.
28885
28886 2015-02-05 Jeff Law <law@redhat.com>
28887
28888 PR target/17306
28889 * config/h8300/constraints.md (U): Correctly dectect
28890 "eightbit_data" memory addresses.
28891 * config/h8300/h8300.c (eightbit_constant_address_p): Also
28892 handle (const (plus (symbol_ref (x)))) where x is declared
28893 as an 8-bit data memory address.
28894 * config/h8300/h8300.md (call, call_value): Correctly detect
28895 "funcvec" functions.
28896
28897 PR target/43264
28898 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
28899 24 to 28 bits for the H8/300.
28900
28901 2015-02-06 Alan Modra <amodra@gmail.com>
28902
28903 PR target/64876
28904 * config/rs6000/rs6000.c (chain_already_loaded): New function.
28905 (rs6000_call_aix): Use it.
28906
28907 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
28908
28909 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
28910 check.
28911
28912 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
28913
28914 * config/h8300/constraints.md ("U" constraint): Use strict
28915 variant of REG_OK_FOR_BASE_P after reload has started.
28916
28917 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
28918
28919 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
28920 define to zero if !TARGET_NEON.
28921 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
28922
28923 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28924 Trevor Saunders <tsaunders@mozilla.com>
28925
28926 PR ipa/61548
28927 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
28928
28929 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28930
28931 PR ipa/61548
28932 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
28933 when removing varpool nodes.
28934
28935 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28936
28937 PR ipa/61548
28938 * varpool.c (varpool_node::remove): Fix order of variables.
28939
28940 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28941
28942 PR ipa/64686
28943 * ipa-inline.c (inline_small_functions): Fix ordering issue between
28944 speculation resolution and key updates.
28945
28946 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28947
28948 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
28949 about not letting any speculative edges unupdated.
28950
28951 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28952
28953 PR gcov/64123
28954 * gcov-io.c (gcov_var): Export.
28955
28956 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28957
28958 PR middle-end/64922
28959 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
28960 edges that become speculative.
28961
28962 2015-02-04 Jakub Jelinek <jakub@redhat.com>
28963
28964 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
28965 or DW_LANG_Fortran08.
28966 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
28967 DW_LANG_Fortran08.
28968 (gen_compile_unit_die): Handle "GNU Fortran2003" and
28969 "GNU Fortran2008" language strings.
28970 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
28971 * langhooks.h (lang_GNU_Fortran): New prototype.
28972 * langhooks.c (lang_GNU_Fortran): New function.
28973 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
28974 lang_GNU_Fortran.
28975
28976 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
28977
28978 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
28979 (RTX_OK_FOR_OLO10_P): Likewise.
28980
28981 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
28982
28983 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
28984
28985 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28986
28987 PR middle-end/64922
28988 * gimple.c: Include gimple-ssa.h.
28989 (maybe_remove_unused_call_args): New function.
28990 * gimple.h (maybe_remove_unused_call_args): Declare.
28991 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
28992 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
28993 * gimple-fold.c (gimple_fold_call): Likewise.
28994
28995 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
28996
28997 PR rtl-optimization/64905
28998 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
28999 pointer alignment if it isn't needed.
29000
29001 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
29002
29003 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
29004 cortex-a72.cortex-a53.
29005 * config/aarch64/aarch64-tune.md: Regenerate.
29006 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
29007
29008 2015-02-04 Nick Clifton <nickc@redhat.com>
29009
29010 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
29011 inside a MEM.
29012
29013 2015-02-04 Jakub Jelinek <jakub@redhat.com>
29014
29015 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
29016 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
29017 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
29018 of DEF_BUILTIN.
29019 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
29020 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
29021 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
29022 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
29023 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
29024 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
29025 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
29026 * tree-core.h (enum built_in_function): In between
29027 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
29028 for builtins that use DEF_BUILTIN_CHKP macro.
29029
29030 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
29031
29032 PR debug/64817
29033 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
29034 operands for tcc_comparison exprs. Fix typos.
29035
29036 PR debug/64817
29037 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
29038 of two XORs that have an intervening AND or IOR.
29039
29040 PR debug/64817
29041 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
29042 simplification of XOR of AND to not allocate new rtx before
29043 committing to a simplification.
29044
29045 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29046
29047 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
29048 manual swaps in all peepholes.
29049
29050 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29051
29052 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
29053 of manual swapping implementation.
29054 (aarch64_expand_vec_perm_const_1): Likewise.
29055
29056 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
29057
29058 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
29059 (generic_addrcost_table): Remove NAMED_PARAM.
29060 (cortexa57_addrcost_table): Likewise.
29061 (xgene1_addrcost_table): Likewise.
29062 (generic_regmove_table): Likewise.
29063 (cortexa53_regmove_table): Likewise.
29064 (xgene1_regmove_table): Likewise.
29065 (generic_vector_table): Likewise.
29066 (cortexa57_vector_table): Likewise.
29067 (xgene1_vector_table): Likewise.
29068 (generic_tunings): Likewise.
29069 (cortexa53_tunings): Likewise.
29070 (cortexa57_tunings): Likewise.
29071 (xgene1_tunings): Likewise.
29072
29073 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
29074
29075 * config/arm/arm-cores.def: Add cortex-a72 and
29076 cortex-a72.cortex-a53.
29077 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
29078 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
29079 * config/arm/arm-tune.md: Regenerate.
29080 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
29081 "cortex-a72.cortex-a53".
29082 * doc/invoke.texi (ARM Options/-mtune): Likewise.
29083
29084 2015-02-04 Nick Clifton <nickc@redhat.com>
29085
29086 PR target/64408
29087 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
29088 of accepted codes.
29089 (nonimmediate_di_operand): Likewise.
29090
29091 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
29092 prefixes of known F5 using MSP430 MCUs.
29093
29094 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29095
29096 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
29097 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
29098 instead of __builtin_sqrt.
29099
29100 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
29101
29102 * varasm.c (do_assemble_alias): Follow transparent alias
29103 chain for target.
29104 (default_assemble_visibility): Follow transparent alias
29105 chain for decl name.
29106
29107 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
29108
29109 PR middle-end/62103
29110 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
29111 to compute size of referenced value in the constant case.
29112
29113 2015-02-03 Jakub Jelinek <jakub@redhat.com>
29114
29115 PR rtl-optimization/64756
29116 * cse.c (invalidate_dest): New function.
29117 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
29118 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
29119 invalidate and do not record it.
29120
29121 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
29122
29123 PR target/64660
29124 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
29125 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
29126 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
29127 atomic_nand<mode>_soft_tcb): New insns.
29128 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
29129 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
29130 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
29131 Split into atomic_not_fetchsi_hard if operands[0] is unused.
29132 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
29133 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
29134 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
29135 atomic_not<mode>_hard if operands[0] is unused.
29136 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
29137 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
29138 if operands[0] is unused.
29139 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
29140 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
29141 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
29142 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
29143 unused.
29144 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
29145 into atomic_not<mode>_soft_tcb if operands[0] is unused.
29146 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
29147 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
29148 if operands[0] is unused.
29149 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
29150 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
29151 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
29152 atomic_nand_fetchsi_hard if operands[0] is unused.
29153 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
29154 atomic_nand<mode>_hard if operands[0] is unused.
29155 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
29156 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
29157 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
29158 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
29159 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
29160 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
29161 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
29162 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
29163 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
29164 atomic_not<mode>_hard if operands[0] is unused.
29165 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
29166 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
29167 unused.
29168 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
29169 into atomic_not<mode>_soft_tcb if operands[0] is unused.
29170 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
29171 atomic_nand<mode>_hard if operands[0] is unused.
29172 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
29173 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
29174
29175 2015-02-03 David Malcolm <dmalcolm@redhat.com>
29176
29177 PR jit/64810
29178 * Makefile.in (GCC_OBJS): Add gcc-main.o.
29179 * gcc-main.c: New file, containing "main" taken from gcc.c.
29180 * gcc.c (do_self_spec): Free decoded_options.
29181 (class driver): Move declaration to gcc.h.
29182 (main): Move declaration and implementation to new file
29183 gcc-main.c.
29184 (driver_get_configure_time_options): New function.
29185 * gcc.h (class driver): Move this declaration here, from
29186 gcc.c.
29187 (driver_get_configure_time_options): New declaration.
29188
29189 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
29190
29191 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
29192 cross-module inlining.
29193 * cgraph.h (cgraph_node): Add flag merged.
29194 * ipa-icf.c (sem_function::merge): Maintain it.
29195
29196 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
29197
29198 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
29199 instead of OBJECT_P.
29200
29201 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
29202
29203 PR target/62631
29204 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
29205 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
29206 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
29207 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
29208
29209 2015-02-03 Jakub Jelinek <jakub@redhat.com>
29210
29211 PR other/63504
29212 * combine.c (reg_n_sets_max): New variable.
29213 (can_change_dest_mode, reg_nonzero_bits_for_combine,
29214 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
29215 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
29216 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
29217 (rest_of_handle_combine): Initialize reg_n_sets_max.
29218
29219 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
29220
29221 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
29222 if some always_inline was inlined, apply changes before inlining
29223 heuristically.
29224
29225 2015-02-02 David Malcolm <dmalcolm@redhat.com>
29226
29227 PR jit/64810
29228 * config/arm/arm.c (arm_option_override): Set
29229 arm_selected_arch/cpu/tune to NULL on entry.
29230
29231 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
29232 Andrew Pinski <pinskia@gcc.gnu.org>
29233 Jakub Jelinek <jakub@gcc.gnu.org>
29234
29235 PR target/64231
29236 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
29237 integer typing for small model. Use IN_RANGE.
29238
29239 2015-02-02 Richard Biener <rguenther@suse.de>
29240
29241 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
29242 * tree-vrp.c (vrp_valueize_1): Likewise.
29243
29244 2015-02-02 Alan Modra <amodra@gmail.com>
29245
29246 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
29247 than mem for toc_restore.
29248 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
29249 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
29250 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
29251
29252 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
29253
29254 PR target/64047
29255 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
29256 explicit default options.
29257
29258 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
29259
29260 PR ipa/64872
29261 * ipa-utils.c (ipa_merge_profiles): Add release argument.
29262 * ipa-icf.c (sem_function::merge): Do not release body when merging.
29263 * ipa-utils.h (ipa_merge_profiles): Update prototype.
29264
29265 2015-02-01 Jakub Jelinek <jakub@redhat.com>
29266
29267 PR debug/64817
29268 * cfgexpand.c (deep_ter_debug_map): New variable.
29269 (avoid_deep_ter_for_debug): New function.
29270 (expand_debug_expr): If TERed SSA_NAME is in
29271 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
29272 instead of trying to expand SSA_NAME's def stmt.
29273 (expand_debug_locations): When expanding debug bind
29274 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
29275 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
29276 value.
29277 (pass_expand::execute): Call avoid_deep_ter_for_debug on
29278 all debug bind stmts. Delete deep_ter_debug_map after
29279 expand_debug_location if non-NULL and clear it.
29280
29281 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
29282
29283 PR target/64851
29284 * config/sh/sync.md (atomic_fetch_notsi_hard,
29285 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
29286 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
29287 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
29288 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
29289 atomic_not_fetch<mode>_soft_imask): New insns.
29290
29291 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29292
29293 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
29294 (rank_for_schedule_debug): Split from ...
29295 (rank_for_schedule): ... this.
29296 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
29297 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
29298
29299 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
29300
29301 * doc/md.texi (Machine Constraints): Alphabetize table by target.
29302 * doc/extend.texi (x86 Variable Attributes): Move section to
29303 correct alphabetization after renaming.
29304 (x86 Type Attributes): Likewise.
29305 (Target Builtins): Re-alphabetize menu.
29306 (x86 Built-in Functions): Move section to correct alphabetization
29307 after renaming.
29308 (x86 transactional memory intrinsics): Likewise.
29309 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
29310 and x86 Windows Options in table and menu.
29311 (x86 Options): Move section to correct alphabetization after
29312 renaming.
29313 (x86 Windows Options): Likewise.
29314
29315 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
29316
29317 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
29318 preferred names of the architecture and its 32- and 64-bit
29319 variants.
29320 * doc/invoke.texi: Likewise.
29321 * doc/md.texi: Likewise.
29322
29323 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
29324
29325 PR target/64882
29326 * config/i386/predicates.md (address_no_seg_operand): Reject
29327 non-CONST_INT_P operands in invalid mode.
29328
29329 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
29330
29331 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
29332 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
29333 * config/i386/predicates.md (address_no_seg_operand): Call
29334 address_operand with VOIDmode.
29335 (vsib_address_operand): Ditto.
29336 (address_mpx_no_base_operand): Ditto.
29337 (address_mpx_no_index_operand): Ditto.
29338
29339 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
29340
29341 PR target/64688
29342 * lra-constraints.c (original_subreg_reg_mode): New.
29343 (simplify_operand_subreg): Try to simplify subreg of const. Use
29344 original_subreg_reg_mode for it.
29345 (swap_operands): Update original_subreg_reg_mode.
29346 (curr_insn_transform): Set up original_subreg_reg_mode.
29347
29348 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
29349
29350 PR target/64617
29351 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
29352 function.
29353 (process_alt_operands): Use it.
29354 (curr_insn_transform): Check the optional reload pseudo class is
29355 ok for the mode.
29356
29357 2015-01-30 Joseph Myers <joseph@codesourcery.com>
29358
29359 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
29360 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
29361 prototype.
29362 * toplev.h (init_asm_output): Update comment on use of
29363 UNKNOWN_LOCATION with fatal_error.
29364 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
29365 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
29366 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
29367 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
29368 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
29369 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
29370 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
29371 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
29372 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
29373 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
29374 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
29375 fatal_error changed to pass input_location as first argument.
29376
29377 2015-01-30 Martin Liska <mliska@suse.cz>
29378
29379 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
29380 in #pragma GCC diagnostic guards.
29381
29382 2015-01-30 Richard Biener <rguenther@suse.de>
29383
29384 PR tree-optimization/64829
29385 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
29386 not add a widening conversion pattern but hand off extra
29387 widenings to callers.
29388 (vect_recog_widen_mult_pattern): Handle extra widening produced
29389 by vect_handle_widen_op_by_const.
29390 (vect_recog_widen_shift_pattern): Likewise.
29391 (vect_pattern_recog_1): Remove excess vertical space in dumping.
29392 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
29393 (vect_init_vector_1): Likewise.
29394 (vect_get_vec_def_for_operand): Likewise.
29395 (vect_finish_stmt_generation): Likewise.
29396 (vectorizable_load): Likewise.
29397 (vect_analyze_stmt): Likewise.
29398 (vect_is_simple_use): Likewise.
29399
29400 2015-01-29 Jeff Law <law@redhat.com>
29401
29402 * combine.c (try_combine): Fix typo in comment.
29403
29404 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
29405
29406 PR target/64580
29407 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
29408 (rs6000_stack_info): Add assert.
29409 (rs6000_output_savres_externs): New function, split off from...
29410 (rs6000_output_function_prologue): ... here. Do not call it for
29411 thunks.
29412
29413 2015-01-29 Jeff Law <law@redhat.com>
29414
29415 PR target/15184
29416 * combine.c (try_combine): If I0 is a memory load and I3 a store
29417 to a related address, increase the "goodness" of doing a 4-insn
29418 combination with I0-I3.
29419 (make_field_assignment): Handle SUBREGs in the ior+and case.
29420
29421 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
29422
29423 PR tree-optimization/64746
29424 * tree-if-conv.c (mask_exists): New function.
29425 (predicate_mem_writes): Save created mask with given size for further
29426 use.
29427 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
29428 (ifcvt_repair_bool_pattern): Collect all statements that are root
29429 of bool pattern and use iterative algorithm to remove multiple uses
29430 of predicates, display number of required iterations.
29431
29432 2015-01-29 Richard Biener <rguenther@suse.de>
29433
29434 PR tree-optimization/64853
29435 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
29436 stmt will get simulated again.
29437 * tree-ssa-ccp.c (valueize_op_1): Likewise.
29438
29439 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29440
29441 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
29442 return_in_pc. Remove redundant assignments.
29443 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
29444 (arm_expand_epilogue): Don't compare boolean with true in if condition.
29445
29446 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
29447
29448 * config/i386/i386.c (ix86_mode_after): Make static.
29449
29450 2015-01-29 Richard Biener <rguenther@suse.de>
29451
29452 PR tree-optimization/64844
29453 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
29454 dump cost model analysis.
29455 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29456 Do not register adjusted load/store costs here.
29457
29458 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
29459 Uros Bizjak <ubizjak@gmail.com>
29460
29461 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
29462 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
29463 using x86_use_pseudo_pic_reg.
29464 * config/i386/i386.c (ix86_conditional_register_usage): Remove
29465 support for fixed PIC register.
29466 (ix86_use_pseudo_pic_reg): Not static any more.
29467
29468 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
29469
29470 PR middle-end/64805
29471 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
29472 to avoid error in cgraph node verification.
29473
29474 2015-01-29 Marek Polacek <polacek@redhat.com>
29475
29476 * doc/standards.texi: Reflect that the default for C is gnu11.
29477
29478 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
29479
29480 PR target/64761
29481 * reorg.c (switch_text_sections_between_p): New function.
29482 (relax_delay_slots): Call it when testing if the jump insn
29483 is removable. Use targetm.can_follow_jump when testing if
29484 the conditional branch can follow an unconditional jump.
29485
29486 2015-01-27 Caroline Tice <cmtice@google.com>
29487
29488 Committing VTV Cywin/Ming patch for Patrick Wollgast
29489 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
29490 if -fvtable-verify=preinit/std is used.
29491 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
29492 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
29493 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
29494 if -fvtable-verify=preinit/std is used.
29495 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
29496 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
29497 if -fvtable-verify=preinit/std is used.
29498 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
29499 * config/i386/mingw32.h (LIB_SPEC): Likewise.
29500 * varasm.c (assemble_variable): Add code to properly set the comdat
29501 section and name for the .vtable_map_vars section in case the
29502 target is PE or COFF.
29503
29504 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
29505
29506 PR ipa/64801
29507 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
29508 make sane BB profile.
29509 (cgraph_node::expand_thunk): Make sane BB profile.
29510 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
29511 * cgraph.h (init_lowered_empty_function): Update prototype.
29512 * config/i386/i386.c (make_resolver_func): Update call.
29513 * predict.c (gate): Disable branch prediction pass if
29514 profile is already there.
29515
29516 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
29517
29518 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
29519 * opth-gen.awk: Likewise.
29520 * common.opt: Mark flag_fp_contract_mode as Optimization.
29521
29522 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
29523
29524 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
29525 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
29526
29527 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
29528
29529 PR target/64659
29530 * config/sh/predicates.md (atomic_arith_operand,
29531 atomic_logical_operand): Remove.
29532 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
29533 (atomic_arith_operand_0): New predicate.
29534 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
29535 Use atomic_arith_operand_0 for input values.
29536 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
29537 atomic_compare_and_swap<mode>_soft_gusa,
29538 atomic_compare_and_swap<mode>_soft_tcb,
29539 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
29540 arith_reg_operand instead of register_operand.
29541 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
29542 atomic_arith_operand_0 for newval input.
29543 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
29544 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
29545 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
29546 arith_reg_operand instead of register_operand.
29547 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
29548 fetchop_predicate_1, fetchop_constraint_1_llcs,
29549 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
29550 fetchop_constraint_1_imask): New code iterator attributes.
29551 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
29552 register_operand. Use fetchop_predicate_1.
29553 (atomic_fetch_<fetchop_name>si_hard,
29554 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
29555 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
29556 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
29557 and arith_reg_operand instead of register_operand. Use
29558 fetchop_predicate_1, fetchop_constraint_1_gusa.
29559 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
29560 and arith_reg_operand instead of register_operand. Use
29561 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
29562 to allow R0 usage.
29563 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
29564 and arith_reg_operand instead of register_operand. Use
29565 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
29566 to allow R0 usage.
29567 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
29568 register_operand. Use atomic_logical_operand_1.
29569 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
29570 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
29571 arith_reg_operand instead of register_operand.
29572 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
29573 Use arith_reg_dest and arith_reg_operand instead of register_operand.
29574 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
29575 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
29576 register_operand. Use fetchop_predicate_1.
29577 (atomic_<fetchop_name>_fetchsi_hard,
29578 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
29579 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
29580 fetchop_constraint_1_llcs.
29581 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
29582 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
29583 fetchop_constraint_1_gusa.
29584 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
29585 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
29586 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
29587 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
29588 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
29589 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
29590 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
29591 register_operand. Use atomic_logical_operand_1.
29592 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
29593 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
29594 arith_reg_operand instead of register_operand.
29595 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
29596 arith_reg_operand instead of register_operand. Use logical_operand
29597 and K08. Adjust asm sequence to allow R0 usage.
29598 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
29599 arith_reg_operand instead of register_operand. Use logical_operand
29600 and K08.
29601
29602 2015-01-28 Jakub Jelinek <jakub@redhat.com>
29603
29604 PR other/63504
29605 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
29606 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
29607 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
29608 only get_full_len HOST_WIDE_INTs from get_val () array rather than
29609 all bits in *val_wide.
29610
29611 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
29612
29613 * varpool.c (tls_model_names): Fix names.
29614 (varpool_node::dump): Dump tls- prefix for tls models.
29615
29616 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
29617 Bernd Schmidt <bernds@codesourcery.com>
29618 Nathan Sidwell <nathan@codesourcery.com>
29619
29620 * config/nvptx/mkoffload.c: New file.
29621 * config/nvptx/t-nvptx: Add build rules for it.
29622 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
29623 (extra_programs): Add mkoffload.
29624 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
29625 function.
29626 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
29627
29628 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
29629
29630 PR middle-end/64809
29631 * cfgexpand.c (reorder_operands): Skip debug gimples.
29632
29633 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
29634
29635 PR tree-optimization/64277
29636 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
29637 range info when possible to refine estimation.
29638
29639 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
29640
29641 PR tree-optimization/64718
29642 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
29643 be a 16bit unsigned integer when n->range is 16.
29644 (bswap_replace): Convert src to that type if necessary for all bswap
29645 sizes. Fix rotation right notation in nearby comment. Use bswap_type
29646 set in pass_optimize_bswap::execute ().
29647
29648 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
29649
29650 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
29651 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
29652 integer and floating point variants.
29653 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
29654
29655 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
29656
29657 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
29658 for all vector modes.
29659
29660 2015-01-28 Jakub Jelinek <jakub@redhat.com>
29661
29662 PR bootstrap/64612
29663 * doc/sourcebuild.texi (comdat_group): Document.
29664
29665 2015-01-28 Terry Guo <terry.guo@arm.com>
29666
29667 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
29668
29669 2015-01-27 David Malcolm <dmalcolm@redhat.com>
29670
29671 * toplev.c (print_version): Add param "show_global_state", and
29672 only print GGC and plugin information if it is true.
29673 (init_asm_output): Pass in "true" for the new param when calling
29674 print_version.
29675 (process_options): Likewise.
29676 (toplev::main): Likewise.
29677 * toplev.h (print_version): Add new param to decl.
29678
29679 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
29680
29681 PR ipa/60871
29682 PR ipa/64139
29683 * tree.c (lookup_binfo_at_offset): New function.
29684 (get_binfo_at_offset): Use it.
29685
29686 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
29687
29688 PR ipa/64282
29689 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
29690 on vtable being vtable.
29691
29692 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
29693
29694 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
29695 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
29696 -mhotpatch= option.
29697 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
29698 -mno-hotpatch options. Change syntax of -mhotpatch= option.
29699 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
29700 Renamed.
29701 (s390_hotpatch_trampoline_halfwords_max): Renamed.
29702 (s390_hotpatch_hw_max): New name.
29703 (s390_hotpatch_trampoline_halfwords): Renamed.
29704 (s390_hotpatch_hw_before_label): New name.
29705 (get_hotpatch_attribute): Removed.
29706 (s390_hotpatch_hw_after_label): New name.
29707 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
29708 attribute.
29709 (s390_attribute_table): Ditto.
29710 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
29711 (s390_function_num_hotpatch_hw): New name.
29712 Remove special handling of inline functions and hotpatching.
29713 Return number of nops before and after the function label.
29714 (s390_can_inline_p): Removed.
29715 (s390_asm_output_function_label): Emit a configurable number of nops
29716 after the function label.
29717 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
29718 (TARGET_CAN_INLINE_P) Removed.
29719 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
29720
29721 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29722 Jiong Wang <jiong.wang@arm.com>
29723
29724 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
29725 of scratch reg.
29726 (cb<optab><mode>1): Likewise.
29727 * config/aarch64/iterators.md (bcond): New define_code_attr.
29728
29729 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29730
29731 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
29732 memory accesses.
29733
29734 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29735
29736 * config/s390/s390.c (s390_register_move_cost): Increase costs for
29737 FPR->GPR moves.
29738
29739 2015-01-27 Richard Biener <rguenther@suse.de>
29740
29741 * tree-vrp.c (update_value_range): Intersect the range with
29742 old recorded SSA name range information.
29743
29744 2015-01-27 Nick Clifton <nickc@redhat.com>
29745
29746 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
29747 BC, DE and HL registers directly, not via AX.
29748 When decrementing the stack pointer by a large amount, transfer SP
29749 into AX and perform the subtraction there.
29750 (rl78_expand_epilogue): Perform the inverse of the above
29751 enhancements.
29752
29753 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29754
29755 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
29756
29757 2015-01-27 Jakub Jelinek <jakub@redhat.com>
29758 Yury Gribov <y.gribov@samsung.com>
29759
29760 PR ubsan/64741
29761 * ubsan.c (ubsan_source_location): Refactor code.
29762 (ubsan_type_descriptor): Update type size. Refactor code.
29763
29764 2015-01-27 Richard Biener <rguenther@suse.de>
29765
29766 PR tree-optimization/56273
29767 PR tree-optimization/59124
29768 PR tree-optimization/64277
29769 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
29770 from the first VRP pass.
29771
29772 2015-01-27 Jakub Jelinek <jakub@redhat.com>
29773
29774 PR ipa/64776
29775 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
29776 handle the first argument in the same loop as all the other arguments.
29777
29778 PR rtl-optimization/61058
29779 * jump.c (cleanup_barriers): Update basic block boundaries
29780 if BLOCK_FOR_INSN is non-NULL on PREV.
29781
29782 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
29783
29784 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
29785 bounds narrowing, already instrumented calls and calls to
29786 not instrumentable functions.
29787
29788 2015-01-27 Jakub Jelinek <jakub@redhat.com>
29789
29790 PR tree-optimization/64807
29791 * wide-int.cc (wi::divmod_internal): Clear
29792 b_dividend[dividend_blocks_needed].
29793
29794 2015-01-26 DJ Delorie <dj@redhat.com>
29795
29796 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
29797 volatile memory references.
29798
29799 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
29800
29801 PR target/49263
29802 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
29803 remove_insn.
29804 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
29805 shifts if it already fits into K08.
29806
29807 2015-01-26 Jakub Jelinek <jakub@redhat.com>
29808
29809 PR ipa/64730
29810 * ipa-inline.c (inline_small_functions): Print "unknown" even
29811 if edge->call_stmt is non-NULL, but has builtins or unknown
29812 location.
29813
29814 PR middle-end/64421
29815 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
29816 with asterisk, skip the first character.
29817
29818 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
29819
29820 PR target/64806
29821 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
29822 order change.
29823
29824 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
29825
29826 PR target/64795
29827 * config/i386/i386.md (*movdi_internal): Also check operand 0
29828 to determine TYPE_LEA operand.
29829 (*movsi_internal): Ditto.
29830
29831 2015-01-26 Jakub Jelinek <jakub@redhat.com>
29832
29833 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
29834 OPTION_MASK_QUAD_MEMORY_ATOMIC.
29835
29836 2015-01-26 Renlin Li <renlin.li@arm.com>
29837
29838 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
29839 the comment.
29840 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
29841 for higher part.
29842
29843 2015-01-26 Richard Biener <rguenther@suse.de>
29844
29845 PR middle-end/64764
29846 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
29847 combining two BIT_AND_EXPR predicates.
29848
29849 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
29850
29851 PR bootstrap/64754
29852 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
29853
29854 2015-01-26 Terry Guo <terry.guo@arm.com>
29855
29856 * config/arm/arm.c (arm_file_start): Update the assignment of
29857 Tag_ABI_HardFP_use.
29858
29859 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
29860
29861 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
29862 pipeline model.
29863 config/arm/arm.md: Include the new Cortex-A57 model.
29864 (generic_sched): Don't use generic_sched when tuning for
29865 Cortex-A57.
29866
29867 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
29868 Uros Bizjak <ubizjak@gmail.com>
29869
29870 * config/i386/i386.c (get_builtin_code_for_version): Add
29871 support for BMI and BMI2 multiversion functions.
29872
29873 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29874
29875 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
29876 (extract_bit_field): Likewise.
29877 (extract_low_bits): Likewise.
29878 (expand_mult): Likewise.
29879 (expand_mult_highpart_adjust): Likewise.
29880
29881 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
29882
29883 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
29884 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
29885 * config/i386/i386.c (processor_model): Add
29886 M_INTEL_COREI7_BROADWELL.
29887 (arch_names_table): Add "broadwell".
29888
29889 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
29890
29891 PR target/49263
29892 PR target/53987
29893 PR target/64345
29894 PR target/59533
29895 PR target/52933
29896 PR target/54236
29897 PR target/51244
29898 * config/sh/sh-protos.h
29899 (sh_extending_set_of_reg::can_use_as_unextended_reg,
29900 sh_extending_set_of_reg::use_as_unextended_reg,
29901 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
29902 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
29903 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
29904 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
29905 (sh_treg_insns): New class.
29906 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
29907 (scope_counter): New class.
29908 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
29909 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
29910 sh_extending_set_of_reg::can_use_as_unextended_reg,
29911 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
29912 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
29913 sh_split_treg_set_expr): New functions.
29914 (addsubcosts): Handle treg_set_expr.
29915 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
29916 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
29917 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
29918 (sh_insn_operands_modified_between_p): Make non-static.
29919 * config/sh/predicates.md (zero_extend_movu_operand): Allow
29920 simple_mem_operand in addition to displacement_mem_operand.
29921 (zero_extend_operand): Don't allow zero_extend_movu_operand.
29922 (treg_set_expr, treg_set_expr_not_const01,
29923 arith_reg_or_treg_set_expr): New predicates.
29924 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
29925 arith_or_int_operand instead of logical_operand. Convert to
29926 insn_and_split. Try to optimize constant operand in splitter.
29927 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
29928 (*tstqi_t_zero): Delete.
29929 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
29930 (tstsi_t_and_not): Delete.
29931 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
29932 Convert to insn_and_split.
29933 (unnamed split, tstsi_t_zero_extract_xor,
29934 tstsi_t_zero_extract_subreg_xor_little,
29935 tstsi_t_zero_extract_subreg_xor_big): Delete.
29936 (*tstsi_t_shift_mask): New insn_and_split.
29937 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
29938 to recombine with surrounding insns when splitting.
29939 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
29940 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
29941 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
29942 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
29943 (*cbranch_div0s: Delete.
29944 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
29945 Try to recombine with surrounding insns when splitting. Add operand
29946 order variants.
29947 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
29948 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
29949 *addc_r_r_msb, *addc_2r_msb): Delete.
29950 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
29951 order variant.
29952 (*addc_negreg_t): New insn_and_split.
29953 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
29954 Try to recombine with surrounding insns when splitting.
29955 Add operand order variants.
29956 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
29957 insn_and_split patterns.
29958 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
29959 surrounding insns when splitting.
29960 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
29961 (*rotcl): Likewise. Add zero_extract variant.
29962 (*ashrsi2_31): New insn_and_split.
29963 (*negc): Convert to insn_and_split. Use treg_set_expr.
29964 (*zero_extend<mode>si2_disp_mem): Update comment.
29965 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
29966 condition.
29967 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
29968 with surrounding insns when splitting.
29969 (any_treg_expr_to_reg): New insn_and_split.
29970 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
29971 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
29972 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
29973 *zero_extract_2): New single bit zero extract patterns.
29974 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
29975 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
29976 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
29977 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
29978 set destination.
29979 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
29980 register_operand for set source.
29981
29982 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
29983
29984 * i386.opt (prefetch_sse): New targetsave.
29985 * i386.c (ix86_function_specific_save): Save prefetch_sse.
29986 (ix86_function_specific_restore): Restore prefetch_sse and initialize
29987 ix86_cost/ix86_tune_cost.
29988
29989 2015-01-23 David Malcolm <dmalcolm@redhat.com>
29990
29991 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
29992 Support the JIT by using 0 as the language type.
29993
29994 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
29995
29996 PR target/64317
29997 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
29998 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
29999 (mark_regno_live, process_bb_lives): Pass new parameter value to
30000 make_hard_regno_born.
30001
30002 2015-01-23 Jakub Jelinek <jakub@redhat.com>
30003
30004 PR rtl-optimization/63637
30005 PR rtl-optimization/60663
30006 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
30007 if elt->cost is MAX_COST for ASM_OPERANDS.
30008 (find_sets_in_insn): Fix up comment typo.
30009 (cse_insn): Don't set src_volatile for all non-volatile
30010 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
30011 or with "memory" clobber. Set elt->cost to MAX_COST
30012 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
30013 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
30014
30015 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
30016
30017 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
30018 alternative 1.
30019
30020 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
30021
30022 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
30023 libgcc/config/i386/elf-lib.h.
30024
30025 2015-01-23 Jakub Jelinek <jakub@redhat.com>
30026
30027 PR driver/64737
30028 * gcc.c (print_configuration): Don't print a blank line at the end
30029 here...
30030 (run_attempt): ... but here unstead.
30031
30032 PR middle-end/64734
30033 * omp-low.c (scan_sharing_clauses): Don't ignore
30034 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
30035 on target data/update constructs.
30036
30037 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
30038
30039 PR target/50928
30040 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
30041 (DEBUG_RELOAD): Removed define.
30042 (m32c_limit_reload_class): Enable traces with if DEBUG0.
30043 (m32c_function_arg): Added a type cast.
30044 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
30045 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
30046 * config/m32c/bitops.md (andqi3_16): Likewise.
30047 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
30048 (push_a01_l): Likewise.
30049
30050 2015-01-23 David Malcolm <dmalcolm@redhat.com>
30051
30052 PR jit/64721
30053 * main.c (main): Construct toplev instances with init_signals=true.
30054 * toplev.c (general_init): Add param "init_signals", and use it to
30055 conditionalize the calls to signal and host_hooks.extra_signals.
30056 (toplev::toplev): Add param "init_signals".
30057 (toplev::main): When invoking general_init, pass m_init_signals
30058 to control whether signal-handlers are installed.
30059 * toplev.h (toplev::toplev): Add param "init_signals".
30060 (toplev::m_init_signals): New field.
30061
30062 2015-01-23 David Malcolm <dmalcolm@redhat.com>
30063
30064 PR jit/64722
30065 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
30066 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
30067 latter may be affected by the former (e.g. on i686).
30068
30069 2015-01-23 Martin Liska <mliska@suse.cz>
30070
30071 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
30072 false positive during profiledbootstrap.
30073
30074 2015-01-23 Tom de Vries <tom@codesourcery.com>
30075
30076 PR libgomp/64672
30077 * lto-opts.c (lto_write_options): Output non-explicit conservative
30078 -fno-openacc.
30079 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
30080 (append_compiler_options): Pass -fopenacc through.
30081
30082 2015-01-23 Tom de Vries <tom@codesourcery.com>
30083
30084 PR libgomp/64707
30085 * lto-opts.c (lto_write_options): Output non-explicit conservative
30086 -fno-openmp.
30087 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
30088 (append_compiler_options): Pass -fopenmp through.
30089
30090 2015-01-23 Jakub Jelinek <jakub@redhat.com>
30091
30092 PR debug/64511
30093 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
30094 GTY markup.
30095
30096 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
30097 * diagnostic.def (DK_ICE_NOBT): New kind.
30098 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
30099 like DK_ICE, but never print backtrace.
30100 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
30101 (internal_error_no_backtrace): New function.
30102 * gcc.c (execute): Use internal_error_no_backtrace instead of
30103 internal_error.
30104
30105 2015-01-22 Jeff Law <law@redhat.com>
30106
30107 PR target/52076
30108 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
30109 improve code density for small immediate to memory case.
30110 (insv): Better handle bitfield assignments when the field is
30111 being set to all ones.
30112 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
30113 operand predicate.
30114
30115 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30116 Jakub Jelinek <jakub@redhat.com>
30117
30118 PR middle-end/64729
30119 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
30120 for !TARGET_LIBC_PROVIDES_SSP version and
30121 -fstack-protector-{all,strong,explicit} otherwise.
30122 * config/freebsd.h (LINK_SSP_SPEC): Handle
30123 -fstack-protector-{strong,explicit}.
30124
30125 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
30126 H.J. Lu <hongjiu.lu@intel.com>
30127
30128 PR ipa/64694
30129 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
30130 heap.
30131
30132 2015-01-22 Wei Mi <wmi@google.com>
30133
30134 PR rtl-optimization/64557
30135 * dse.c (record_store): Call get_addr for mem_addr.
30136 (check_mem_read_rtx): Likewise.
30137
30138 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
30139
30140 * fold-const.c (const_binop): Add early return for non-tcc_binary.
30141
30142 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
30143
30144 * toplev.c (init_local_tick): Process the failure when read
30145 fails for random_seed.
30146
30147 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
30148 'pretty_name' to avoid memory overflow.
30149
30150 2015-01-22 Richard Biener <rguenther@suse.de>
30151
30152 PR middle-end/64728
30153 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
30154 abnormal coalescing on undefined SSA names.
30155
30156 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
30157
30158 PR target/64688
30159 PR target/64477
30160 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
30161 for alternative 3.
30162 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
30163
30164 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
30165
30166 PR middle-end/63325
30167 * fold-const.c (fold_checksum_tree): Don't include value of
30168 expr->decl_with_vis.symtab_node in the checksum.
30169
30170 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30171
30172 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
30173
30174 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
30175
30176 PR driver/64690
30177 * gcc.c (insert_comments): New function.
30178 (try_generate_repro): Call it.
30179 (append_text): Removed.
30180
30181 2015-01-22 Richard Biener <rguenther@suse.de>
30182
30183 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
30184 with IL incompatible options. Properly honor user optimize
30185 attributes.
30186
30187 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
30188
30189 PR rtl-optimization/64682
30190 * combine.c (distribute_notes): When moving a death note for
30191 a register that is set in the new I2, make sure to put it
30192 before that new I2.
30193
30194 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
30195
30196 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
30197 not TARGET_DEFAULT.
30198
30199 2015-01-21 Jakub Jelinek <jakub@redhat.com>
30200
30201 PR debug/64511
30202 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
30203 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
30204 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
30205
30206 PR sanitizer/64706
30207 * doc/invoke.texi (-fsanitize=vptr): Document.
30208
30209 PR rtl-optimization/62078
30210 * dse.c: Include cfgcleanup.h.
30211 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
30212 anything call purge_all_dead_edges and cleanup_cfg at the end
30213 of the pass.
30214
30215 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
30216
30217 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
30218 edges.
30219
30220 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
30221
30222 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
30223 decl attribute.
30224
30225 2015-01-21 David Sherwood <david.sherwood@arm.com>
30226 Tejas Belagod <Tejas.Belagod@arm.com>
30227
30228 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
30229 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
30230 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
30231 Removed.
30232
30233 2015-01-21 David Sherwood <david.sherwood@arm.com>
30234 Tejas Belagod <Tejas.Belagod@arm.com>
30235
30236 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
30237 (aarch64_reverse_mask): New decls.
30238 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
30239 (insn_count): New mode_attr.
30240 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
30241 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
30242 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
30243 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
30244 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
30245 (aarch64_simd_st4): New patterns.
30246 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
30247 (aarch64_reverse_mask): New functions.
30248
30249 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
30250
30251 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
30252 Declare.
30253 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
30254 addressing modes for BE.
30255 (aarch64_print_operand): Add 'R' specifier.
30256 (aarch64_simd_disambiguate_copy): Delete.
30257 (aarch64_simd_emit_reg_reg_move): New function.
30258 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
30259 in define_splits for structural moves.
30260 (mov<mode>): Use less restrictive predicates.
30261 (*aarch64_mov<mode>): Simplify and only allow for LE.
30262 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
30263
30264 2015-01-21 Alan Hayward <alan.hayward@arm.com>
30265
30266 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
30267
30268 2015-01-21 Richard Henderson <rth@redhat.com>
30269
30270 PR target/64669
30271 * ccmp.c (used_in_cond_stmt_p): Remove.
30272 (expand_ccmp_expr): Don't use it.
30273
30274 2015-01-21 Nick Clifton <nickc@redhat.com>
30275
30276 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
30277 PARALLELs.
30278
30279 2015-01-21 Richard Biener <rguenther@suse.de>
30280
30281 PR middle-end/64313
30282 * tree-core.h (builtin_info, builtin_info_type): Turn from
30283 an object with two arrays into an array of an object with
30284 decl and two flags, implicit_p and declared_p.
30285 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
30286 set_builtin_decl, set_builtin_decl_implicit_p,
30287 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
30288 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
30289 * builtins.c (builtin_info): Adjust.
30290 * gimplify.c (gimplify_addr_expr): References to builtins
30291 that have been declared by the user makes them eligible for
30292 use by the compiler. Call set_builtin_decl_implicit_p on them.
30293
30294 2015-01-20 Jeff Law <law@redhat.com>
30295
30296 PR target/59946
30297 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
30298 allow pc-relative addresses in operand predicates or constraints.
30299
30300 2015-01-21 Bin Cheng <bin.cheng@arm.com>
30301
30302 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
30303 neon on aarch32 processors for stringops.
30304
30305 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
30306
30307 PR ipa/63576
30308 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
30309
30310 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
30311
30312 PR lto/45375
30313 * ipa-inline.c: Include lto-streamer.h
30314 (report_inline_failed_reason): Output source file differences and
30315 flags on optimization/target node mismatch.
30316 (can_inline_edge_p): Consider caller to be the outer inline function;
30317 be less restrictive about matching opimize and optimize_size attributes.
30318 (inline_account_function_p): Break out from ...
30319 (inline_small_functions): ... here.
30320 * ipa-inline-transform.c (clone_inlined_nodes): Use
30321 inline_account_function_p.
30322 (inline_call): Use optimize attribution; use inline_account_function_p.
30323 (inline_transform): Use opt_for_fn.
30324 * ipa-inline.h (inline_account_function_p): Declare.
30325
30326 2015-01-20 Jakub Jelinek <jakub@redhat.com>
30327
30328 PR debug/64663
30329 * dwarf2out.c (decl_piece_node): Don't put bitsize into
30330 mode if bitsize <= 0.
30331 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
30332 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
30333 sizes and positions.
30334
30335 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
30336
30337 * config/nios2/nios2.c (nios2_asm_file_end): Implement
30338 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
30339 needed.
30340 (TARGET_ASM_FILE_END): Define.
30341
30342 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30343
30344 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
30345 (struct tune_params): Use the enum.
30346 * arm.c (arm_*_tune): Update.
30347 (arm_option_override): Update.
30348
30349 2015-01-20 Richard Biener <rguenther@suse.de>
30350
30351 PR ipa/64684
30352 * ipa-reference.c (add_static_var): Inline ...
30353 (analyze_function): ... here after splitting out from ...
30354 (is_proper_for_analysis): ... this.
30355
30356 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
30357
30358 PR target/64149
30359 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
30360 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
30361 replace the conditional with it's true branch.
30362 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
30363 (arm_lra_p): Remove.
30364
30365 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
30366
30367 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
30368
30369 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
30370
30371 * config/tilegx/mul-tables.c: Move symtab.h include after
30372 coretypes.h include.
30373 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
30374 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
30375 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
30376 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
30377 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
30378
30379 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
30380
30381 PR bootstrap/64676
30382 Revert:
30383 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
30384
30385 PR rtl-optimization/64081
30386 * loop-iv.c (def_pred_latch_p): New function.
30387 (latch_dominating_def): Allow specific cases with non-single
30388 definitions.
30389 (iv_get_reaching_def): Likewise.
30390 (check_complex_exit_p): New function.
30391 (check_simple_exit): Use check_complex_exit_p to allow certain cases
30392 with exits not executing on any iteration.
30393
30394 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
30395
30396 PR lto/45375
30397 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
30398 to set branch cost.
30399
30400 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
30401
30402 PR lto/45375
30403 * i386.c (gate): Check flag_expensive_optimizations and
30404 optimize_size.
30405 (ix86_option_override_internal): Drop optimize_size condition
30406 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
30407 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
30408 MASK_PREFER_AVX128.
30409 (ix86_avx256_split_vector_move_misalign,
30410 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
30411 * sse.md (all uses of TARGET_PREFER_AVX128): Add
30412 optimize_insn_for_speed_p check.
30413
30414 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
30415
30416 * config/mips/mips.h (FP_ASM_SPEC): New define.
30417 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
30418 instead.
30419
30420 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
30421
30422 PR target/53988
30423 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
30424 nullptr for insn when reaching the first insn.
30425 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
30426 (sh_insn_operands_modified_between_p): Add nullptr check.
30427 (sh_find_extending_set_of_reg): Fix log message. Don't accept
30428 sign extending mem load if the insn contains any UNSPEC or
30429 UNSPEC_VOLATILE.
30430
30431 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
30432
30433 * params.def (inline-unit-growth): Drop to 15%.
30434 * invoke.texi (inline-unit-growth): Document change.
30435
30436 2015-01-19 Martin Liska <mliska@suse.cz>
30437
30438 PR ipa/64668
30439 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
30440 function for second argument of OBJ_TYPE_REF.
30441
30442 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
30443
30444 PR ipa/64218
30445 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
30446 whether function is an alias.
30447
30448 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
30449
30450 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
30451 cases.
30452
30453 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
30454
30455 PR rtl-optimization/64671
30456 * lra-remat.c (operand_to_remat): Don't consider jump and call
30457 insns.
30458
30459 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
30460
30461 PR target/59828
30462 * config/rs6000/default64.h: Include rs6000-cpus.def.
30463 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
30464 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
30465 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
30466 and POWER8.
30467 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
30468 POWER8.
30469 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
30470 pseudo-op to specify assembler dialect.
30471
30472 2015-01-19 Martin Liska <mliska@suse.cz>
30473
30474 PR ipa/64664
30475 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
30476 Handle safe potentially removed nodes during filtering.
30477
30478 2015-01-19 Martin Liska <mliska@suse.cz>
30479
30480 * doc/extend.texi (no_icf): Add new attribute description.
30481 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
30482 where the pass attempts to merge a function with no_icf attribute.
30483
30484 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30485
30486 PR target/64532
30487 * doc/md.texi (ARM Options): Document register constraints.
30488
30489 2015-01-19 Jiong Wang <jiong.wang@arm.com>
30490 Andrew Pinski <apinski@cavium.com>
30491
30492 PR target/64304
30493 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
30494 (ashl<mode>3): Don't expand if operands[2] is not constant.
30495
30496 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30497
30498 PR target/64448
30499 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
30500 Match xor-and-xor RTL pattern.
30501
30502 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
30503
30504 PR rtl-optimization/64081
30505 * loop-iv.c (def_pred_latch_p): New function.
30506 (latch_dominating_def): Allow specific cases with non-single
30507 definitions.
30508 (iv_get_reaching_def): Likewise.
30509 (check_complex_exit_p): New function.
30510 (check_simple_exit): Use check_complex_exit_p to allow certain cases
30511 with exits not executing on any iteration.
30512
30513 2015-01-19 Jakub Jelinek <jakub@redhat.com>
30514
30515 * common.opt (fgraphite): Fix a typo.
30516
30517 2015-01-19 Felix Yang <felix.yang@huawei.com>
30518
30519 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
30520 pattern.
30521 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
30522 uminp, smax_nanp, smin_nanp): New builtins.
30523 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
30524 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
30525 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
30526 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
30527 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
30528 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
30529 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
30530 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
30531 vpminnms_f32): Rewrite using builtin functions.
30532
30533 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
30534
30535 PR libgomp/64625
30536 * omp-low.c (offload_symbol_decl): Remove variable.
30537 (get_offload_symbol_decl): Remove function.
30538 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
30539 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
30540 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
30541 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
30542 BUILT_IN_GOACC_UPDATE don't pass it at all.
30543
30544 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
30545
30546 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
30547 callers.
30548
30549 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
30550
30551 * ipa-chkp.c (chkp_produce_thunks): Add early param
30552 to split thunks production into two passes. Keep
30553 'always_inline' function bodies after the first pass.
30554 (pass_data_ipa_chkp_early_produce_thunks): New.
30555 (pass_ipa_chkp_early_produce_thunks): New.
30556 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
30557 chkp_produce_thunks signature.
30558 (make_pass_ipa_chkp_early_produce_thunks): New.
30559 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
30560 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
30561 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
30562
30563 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
30564
30565 * cgraph.c (cgraph_node::dump): Dump profile flags.
30566
30567 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
30568
30569 PR target/64652
30570 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
30571 reg appear first in the parallel.
30572
30573 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
30574
30575 * ipa-reference.c (set_reference_optimization_summary,
30576 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
30577 disabled.
30578 (ignore_module_statics): New static var.
30579 (propagate_bits): If ipa-reference is disabled, do not look into local
30580 properties.
30581 (analyze_function): Disable analysis when ipa_reference is disabled.
30582 (generate_summary): Do not dump when reference is disabled;
30583 collect vars accessed from functions with ipa-reference disabled.
30584 (get_read_write_all_from_node): When ipa-reference is disabled, use the
30585 node flags.
30586 (gate): Enable for LTO.
30587 (ignore_edge_p): New function.
30588 (propagate): Skip functions w/o ipa-reference analysis.
30589 * optc-save-gen.awk: Handle optimize_debug correctly.
30590 * opth-gen.awk: Likewise.
30591 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
30592 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
30593 fira-share-save-slots, fira-share-spill-slots,
30594 fmodulo-sched-allow-regmoves, fpartial-inlining,
30595 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
30596 ftracer, ftree-parallelize-loops, fassociative-math,
30597 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
30598 Optimization
30599 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
30600 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
30601 Optimization.
30602 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
30603 Fix for IPA.
30604
30605 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
30606
30607 PR ipa/64378
30608 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
30609 flag correctly.
30610 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
30611
30612 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
30613
30614 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
30615 Remove duplicate option listings.
30616
30617 2015-01-18 Felix Yang <felix.yang@huawei.com>
30618
30619 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
30620 (autofdo_source_profile::get_callsite_total_count,
30621 function_instance::get_function_instance_by_decl,
30622 string_table::get_index, string_table::get_index_by_decl,
30623 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
30624 Fix comment typos. Reformatting and minor code rearrangement.
30625
30626 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
30627
30628 * config/rs6000/rs6000.md (probe_stack): Delete.
30629 (probe_stack_address): New.
30630
30631 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
30632
30633 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
30634 to test for 32-bit ABIs, not !TARGET_POWERPC64.
30635
30636 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
30637
30638 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
30639 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
30640 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
30641 snafu.
30642 (rs6000_libcall_value): Use the new function.
30643
30644 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
30645
30646 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
30647
30648 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
30649
30650 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
30651 implement a more precise life analysis for it during backward scan.
30652
30653 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
30654
30655 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
30656
30657 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
30658
30659 PR rtl-optimization/52773
30660 * calls.c (emit_library_call_value): When pushing arguments use
30661 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
30662 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
30663 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
30664
30665 2015-01-17 Jeff Law <law@redhat.com>
30666
30667 PR rtl-optimization/32790
30668 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
30669 not ZERO_EXTEND in SET_DESTs.
30670
30671 2015-01-17 Alan Modra <amodra@gmail.com>
30672
30673 * cprop.c (do_local_cprop): Revert last change.
30674
30675 2015-01-16 DJ Delorie <dj@redhat.com>
30676 Nick Clifton <nickc@redhat.com>
30677
30678 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
30679 (addhi3_real): Likewise. Fix [HL+0] syntax.
30680 (subqi3_real): Likewise.
30681 (subhi3_real): Likewise.
30682 (cbranchqi4_real): Likewise. Allow saddr,#imm.
30683 (cbranchhi4_real): Likewise.
30684 (cbranchhi4_real_inverted): Likewise.
30685 (cbranchsi4_real_lt): Likewise.
30686 (cbranchsi4_real_ge): Likewise.
30687 (cbranchsi4_real_ge): Likewise.
30688 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
30689 (sub<mode>3_virt): Likewise.
30690 (cbranchqi4_virt): Likewise.
30691 (cbranchhi4_virt): Likewise.
30692 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
30693 always use '[reg+imm]' even when imm is zero.
30694 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
30695 (rl78_general_operand): New.
30696 (rl78_nonimmediate_operand): New.
30697 (rl78_nonfar_operand): Use them.
30698 (rl78_nonfar_nonimm_operand): Likewise.
30699 (rl78_stack_based_mem): Fix.
30700 * config/rl78/constraints.md (Ibqi): New.
30701 (IBqi): New.
30702 (Wsa): New.
30703 (Wsf): New.
30704 (Cs1): Fix.
30705 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
30706 (iorqi3): Likewise.
30707 (xorqi3): Likewise.
30708 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
30709
30710 * config/rl78/constrains (Qs8): New constraint.
30711 * config/rl78/rl78.c (rl78_flags_already_set): New function.
30712 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
30713 * config/rl78/rl78-real.md (update_Z): New attribute.
30714 Update patterns to set it.
30715 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
30716 shorter compare and branch sequence can be used.
30717 (cbranchhi4_real): Likewise.
30718 (cbranchhi4_real_inverted): Likewise.
30719
30720 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
30721 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
30722 address space.
30723 * config/rl78/rl78.c (rl78_get_name_encoding): New.
30724 (rl78_option_override): Allow -mes0 only if C.
30725 (characterize_address): Support subregs of symbol_refs.
30726 (rl78_addr_space_address_mode): Move. Add __near.
30727 (rl78_far_p): Likewise.
30728 (rl78_addr_space_pointer_mode): Likewise.
30729 (rl78_as_legitimate_address): Likewise.
30730 (rl78_addr_space_subset_p): Likewise.
30731 (rl78_addr_space_convert): Likewise.
30732 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
30733 symbols with -mes0.
30734 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
30735 addressing.
30736 (rl78_alloc_physical_registers_op1): Change logic to prefer
30737 symbol[BC] addressing.
30738 (frodata_section): New.
30739 (rl78_asm_init_sections): Initialize it.
30740 (rl78_select_section): Put __far readonly symbols in .frodata.
30741 (rl78_make_type_far): New.
30742 (rl78_insert_attributes): Force all readonly symbols to be
30743 __far when -mes0.
30744 (rl78_asm_out_integer): New.
30745 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
30746 * config/rl78/rl78.opt (-mes0): New.
30747
30748 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
30749 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
30750 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
30751 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
30752 (rl78_saddr_p): New.
30753 (rl78_output_aligned_common): New.
30754 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
30755 (rl78_handle_saddr_attribute): New.
30756 (rl78_handle_naked_attribute): New.
30757 (rl78_attribute_table): Add saddr.
30758 (rl78_print_operand_1): Don't print '!' on saddr operands.
30759 (rl78_print_operand_1): Strip encodings.
30760 (rl78_sfr_p): New.
30761 (rl78_strip_name_encoding): New.
30762 (rl78_attrlist_to_encoding): New.
30763 (rl78_encode_section_info): New.
30764 (rl78_asm_init_sections): New.
30765 (rl78_select_section): New.
30766 (rl78_output_labelref): New.
30767 (rl78_output_aligned_common): New.
30768 (rl78_asm_out_integer): New.
30769 (rl78_asm_ctor_dtor): New.
30770 (rl78_asm_constructor): New.
30771 (rl78_asm_destructor): New.
30772
30773 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
30774 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
30775 (transcode_memory_rtx): Update.
30776 (rl78_expand_epilogue): Use A_REG instead of 0.
30777
30778 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30779
30780 * config/arm/arm-protos.h (struct tune_params): New field
30781 sched_autopref_queue_depth.
30782 * config/arm/arm.c (sched-int.h): Include header.
30783 (arm_first_cycle_multipass_dfa_lookahead_guard,)
30784 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
30785 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
30786 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
30787 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
30788 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
30789 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
30790 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
30791 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
30792 * config/arm/t-arm (arm.o): Update.
30793 * haifa-sched.c (update_insn_after_change): Update.
30794 (rank_for_schedule): Use auto-prefetcher model, if requested.
30795 (autopref_multipass_init): New static function.
30796 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
30797 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
30798 variable for debug dumps.
30799 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
30800 (autopref_multipass_dfa_lookahead_guard): New global function that
30801 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
30802 (init_h_i_d): Update.
30803 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
30804 * sched-int.h (enum autopref_multipass_data_status): New const enum.
30805 (autopref_multipass_data_): Structure for auto-prefetcher data.
30806 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
30807 (struct _haifa_insn_data:autopref_multipass_data): New field.
30808 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
30809 (autopref_multipass_dfa_lookahead_guard): Declare.
30810
30811 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30812
30813 * rtlanal.c (get_base_term): Handle SCRATCH.
30814
30815 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30816
30817 * config/aarch64/aarch64.c
30818 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
30819 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
30820 * config/arm/arm.c
30821 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
30822 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
30823
30824 2015-01-17 Alan Modra <amodra@gmail.com>
30825
30826 * cprop.c (do_local_cprop): Disallow replacement of fixed
30827 hard registers.
30828
30829 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30830
30831 PR target/62066
30832 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
30833 early return 0.
30834
30835 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
30836
30837 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
30838 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
30839
30840 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30841
30842 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
30843 * config/arm/thumb1.md: ... Here.
30844
30845 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
30846
30847 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
30848 TImode for TARGET_32BIT.
30849
30850 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
30851
30852 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
30853 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
30854 as ...
30855 (rs6000_abi_word_mode): New function.
30856
30857 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
30858
30859 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
30860 instead of UNITS_PER_WORD to describe the size of stack slots.
30861
30862 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
30863
30864 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
30865 as rs6000_promote_function_mode. Move comment to there.
30866 (rs6000_promote_function_mode): New function.
30867
30868 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
30869
30870 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
30871 -mpowerpc64 is active.
30872
30873 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
30874
30875 PR middle-end/64353
30876 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
30877 virtuals on start.
30878
30879 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
30880
30881 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
30882 introduced in revision 219724.
30883
30884 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30885 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30886
30887 PR target/64263
30888 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
30889 destination is not a GP reg.
30890 (*movdi_aarch64): Likewise.
30891
30892 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
30893
30894 PR target/64623
30895 * config/rs6000/default64.h: Revert ISA change.
30896
30897 2015-01-16 Richard Biener <rguenther@suse.de>
30898
30899 PR middle-end/64614
30900 * tree-ssa-uninit.c: Include tree-cfg.h.
30901 (MAX_SWITCH_CASES): New define.
30902 (convert_control_dep_chain_into_preds): Handle switch statements.
30903 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
30904 (normalize_one_pred_1): Do not split bit-manipulations.
30905 Record (x & CST).
30906
30907 2015-01-16 Richard Biener <rguenther@suse.de>
30908
30909 PR tree-optimization/64568
30910 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
30911 complex load rewriting for TARGET_MEM_REFs.
30912
30913 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
30914
30915 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
30916
30917 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
30918
30919 PR target/64149
30920 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
30921 variable.
30922 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
30923 (aarch64_lra_p): Remove.
30924
30925 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
30926
30927 PR target/64363
30928 * ipa-chkp.h (chkp_instrumentable_p): New.
30929 * ipa-chkp.c: Include tree-inline.h.
30930 (chkp_instrumentable_p): New.
30931 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
30932 Fix processing of not instrumentable functions.
30933 (chkp_versioning): Use chkp_instrumentable_p. Warn about
30934 not instrumentable functions.
30935 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
30936 chkp_instrumentable_p.
30937 * tree-inline.h (copy_forbidden): New.
30938 * tree-inline.c (copy_forbidden): Not static anymore.
30939
30940 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30941
30942 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
30943 ptr1, ptr2 unused.
30944
30945 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
30946
30947 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
30948 type OP_OUT to OP_INOUT.
30949
30950 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
30951
30952 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
30953 (high x) y) to y if x and y have the same base.
30954
30955 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
30956
30957 * config/arm/cortex-a57.md: New.
30958 * config/aarch64/aarch64.md: Include it.
30959 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
30960 * config/aarch64/aarch64-tune.md: Regenerate.
30961
30962 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
30963
30964 PR target/64015
30965 * ccmp.c (expand_ccmp_next): New function.
30966 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
30967 and compare insn sequence.
30968 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
30969 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
30970 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
30971 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
30972 (*ccmp_ior): Changed to ccmp_ior<mode>.
30973 (cmp<mode>): New pattern.
30974 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
30975 parameters.
30976 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
30977
30978 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
30979
30980 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
30981 _mm256_bsrli_epi128): New.
30982 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
30983
30984 2015-01-15 Jiong Wang <jiong.wang@arm.com>
30985
30986 * expmed.c (store_bit_field_using_insv): Improve warning message.
30987 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
30988
30989 2015-01-15 Jiong Wang <jiong.wang@arm.com>
30990
30991 PR rtl-optimization/64011
30992 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
30993 there is partial overflow.
30994
30995 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
30996
30997 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
30998 prototype.
30999 (nds32_expand_epilogue_v3pop): Likewise.
31000 * config/nds32/nds32.md (sibcall): Define this for sibling call
31001 optimization.
31002 (sibcall_register): Likewise.
31003 (sibcall_immediate): Likewise.
31004 (sibcall_value): Likewise.
31005 (sibcall_value_register): Likewise.
31006 (sibcall_value_immediate): Likewise.
31007 (sibcall_epilogue): Likewise.
31008 (epilogue): Pass false to indicate this is not a sibcall epilogue.
31009 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
31010 (nds32_expand_epilogue_v3pop): Likewise.
31011
31012 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
31013
31014 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
31015 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
31016 (return_internal): New.
31017 (return): Define this named pattern.
31018 (simple_return): Define this named pattern.
31019 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
31020 pattern instead of unspec_volatile_func_return.
31021 (nds32_expand_epilogue_v3pop): Likewise.
31022 (nds32_can_use_return_insn): New function.
31023
31024 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
31025
31026 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
31027 * config/nds32/nds32.md (pop25return): New.
31028 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
31029 pop25return pattern.
31030
31031 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
31032
31033 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
31034 -mforbid-fp-as-gp, and -mex9 options.
31035
31036 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
31037
31038 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
31039 remove -mgp-direct option.
31040
31041 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
31042
31043 * doc/invoke.texi (--param early-inlining-insns): Update default value.
31044 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
31045
31046 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
31047
31048 * ipa-inline.c (inline_small_functions): Work around hints
31049 cache issue.
31050
31051 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
31052
31053 PR target/59710
31054 * doc/invoke.texi (Option Summary): Document new Nios II
31055 -mgpopt= syntax.
31056 (Nios II Options): Likewise.
31057 * config/nios2/nios2.opt: Add -mgpopt= option support.
31058 Modify existing -mgpopt and -mno-gpopt options to be aliases.
31059 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
31060 * config/nios2/nios2.c (nios2_option_override): Adjust
31061 -mgpopt defaulting.
31062 (nios2_in_small_data_p): Return true for explicit small data
31063 sections even with -G0.
31064 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
31065 option choices.
31066
31067 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
31068
31069 PR ipa/64612
31070 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
31071 of comdat locals.
31072 (inline_call): Fix removal of aliases.
31073
31074 2015-01-15 Jakub Jelinek <jakub@redhat.com>
31075
31076 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
31077 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
31078 * opts.c (common_handle_option): Add -fsanitize=vptr.
31079 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
31080 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
31081 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
31082 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
31083 (ubsan_expand_vptr_ifn): New prototype.
31084 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
31085 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
31086 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
31087 expand_LOOP_VECTORIZED): Make argument nameless, remove
31088 ATTRIBUTE_UNUSED.
31089 (expand_UBSAN_VPTR): New function.
31090 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
31091 in fn spec.
31092 (UBSAN_VPTR): New internal function.
31093 * sanopt.c (tree_map_traits): Renamed to ...
31094 (sanopt_tree_map_traits): ... this.
31095 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
31096 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
31097 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
31098 (maybe_optimize_ubsan_vptr_ifn): New function.
31099 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
31100 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
31101 -fsanitize=vptr.
31102 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
31103 internal calls like pure functions for aliasing, even when they
31104 have other side-effects that prevent making them ECF_PURE.
31105 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
31106 (ubsan_expand_vptr_ifn): New function.
31107
31108 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
31109
31110 PR rtl-optimization/64110
31111 * stmt.c (parse_output_constraint): Process '^' and '$'.
31112 (parse_input_constraint): Ditto.
31113 * lra-constraints.c (process_alt_operands): Process the new
31114 constraints.
31115 * ira-costs.c (record_reg_classes): Process the new constraint
31116 '^'.
31117 * genoutput.c (indep_constraints): Add '^' and '$'.
31118 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
31119 * doc/md.texi: Add description of the new constraints.
31120
31121 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
31122 Bernd Schmidt <bernds@codesourcery.com>
31123 Cesar Philippidis <cesar@codesourcery.com>
31124 James Norris <jnorris@codesourcery.com>
31125 Tom de Vries <tom@codesourcery.com>
31126 Ilmir Usmanov <i.usmanov@samsung.com>
31127 Dmitry Bocharnikov <dmitry.b@samsung.com>
31128 Evgeny Gavrin <e.gavrin@samsung.com>
31129 Jakub Jelinek <jakub@redhat.com>
31130
31131 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
31132 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
31133 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
31134 New function types.
31135 * builtins.c: Include "gomp-constants.h".
31136 (expand_builtin_acc_on_device): New function.
31137 (expand_builtin, is_inexpensive_builtin): Handle
31138 BUILT_IN_ACC_ON_DEVICE.
31139 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
31140 New macros.
31141 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
31142 flag_openmp.
31143 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
31144 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
31145 i386/intelmic-offload.h.
31146 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
31147 to libgomp and its dependencies.
31148 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
31149 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
31150 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
31151 * config/ia64/hpux.h (LIB_SPEC): Likewise.
31152 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
31153 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
31154 * doc/generic.texi: Update for OpenACC changes.
31155 * doc/gimple.texi: Likewise.
31156 * doc/invoke.texi: Likewise.
31157 * doc/sourcebuild.texi: Likewise.
31158 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
31159 GF_OMP_FOR_KIND_OACC_LOOP.
31160 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
31161 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
31162 GF_OMP_TARGET_KIND_OACC_UPDATE,
31163 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
31164 Dump more data.
31165 * gimple.c: Update comments for OpenACC changes.
31166 * gimple.def: Likewise.
31167 * gimple.h: Likewise.
31168 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
31169 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
31170 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
31171 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
31172 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
31173 appropriate place.
31174 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
31175 * gimplify.c: Include "gomp-constants.h".
31176 Update comments for OpenACC changes.
31177 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
31178 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
31179 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
31180 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
31181 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
31182 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
31183 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
31184 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
31185 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
31186 OMP_CLAUSE_SEQ.
31187 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
31188 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
31189 OMP_CLAUSE_SET_MAP_KIND.
31190 (gimplify_oacc_cache): New function.
31191 (gimplify_omp_for): Handle OACC_LOOP.
31192 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
31193 OACC_DATA.
31194 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
31195 OACC_EXIT_DATA, OACC_UPDATE.
31196 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
31197 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
31198 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
31199 (gimplify_body): Consider flag_openacc next to flag_openmp.
31200 * lto-streamer-out.c: Include "gomp-constants.h".
31201 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
31202 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
31203 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
31204 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
31205 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
31206 (BUILT_IN_ACC_ON_DEVICE): New builtins.
31207 * omp-low.c: Include "gomp-constants.h".
31208 Update comments for OpenACC changes.
31209 (struct omp_context): Add reduction_map, gwv_below, gwv_this
31210 members.
31211 (extract_omp_for_data, use_pointer_for_field, install_var_field)
31212 (new_omp_context, delete_omp_context, scan_sharing_clauses)
31213 (create_omp_child_function, scan_omp_for, scan_omp_target)
31214 (check_omp_nesting_restrictions, lower_reduction_clauses)
31215 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
31216 Update for OpenACC changes.
31217 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
31218 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
31219 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
31220 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
31221 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
31222 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
31223 OMP_CLAUSE_MAP_*.
31224 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
31225 Handle GF_OMP_FOR_KIND_OACC_LOOP.
31226 (expand_omp_target, lower_omp_target): Handle
31227 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
31228 GF_OMP_TARGET_KIND_OACC_UPDATE,
31229 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
31230 GF_OMP_TARGET_KIND_OACC_DATA.
31231 (pass_expand_omp::execute, execute_lower_omp)
31232 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
31233 flag_openmp.
31234 (offload_symbol_decl): New variable.
31235 (oacc_get_reduction_array_id, oacc_max_threads)
31236 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
31237 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
31238 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
31239 (oacc_gimple_assign, oacc_initialize_reduction_data)
31240 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
31241 functions.
31242 (is_targetreg_ctx): Remove function.
31243 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
31244 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
31245 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
31246 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
31247 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
31248 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
31249 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
31250 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
31251 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
31252 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
31253 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
31254 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
31255 * tree-core.h: Update comments for OpenACC changes.
31256 (enum omp_clause_map_kind): Remove.
31257 (struct tree_omp_clause): Change type of map_kind member from enum
31258 omp_clause_map_kind to unsigned char.
31259 * tree-inline.c: Update comments for OpenACC changes.
31260 * tree-nested.c: Likewise. Include "gomp-constants.h".
31261 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
31262 (convert_tramp_reference_stmt, convert_gimple_call): Update for
31263 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
31264 OMP_CLAUSE_SET_MAP_KIND.
31265 * tree-pretty-print.c: Include "gomp-constants.h".
31266 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
31267 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
31268 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
31269 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
31270 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
31271 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
31272 instead of OMP_CLAUSE_MAP_*.
31273 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
31274 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
31275 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
31276 * tree-streamer-in.c: Include "gomp-constants.h".
31277 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
31278 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
31279 * tree-streamer-out.c: Include "gomp-constants.h".
31280 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
31281 OMP_CLAUSE_MAP_*.
31282 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
31283 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
31284 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
31285 * tree.c (omp_clause_num_ops): Update accordingly.
31286 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
31287 Likewise.
31288 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
31289 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
31290 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
31291 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
31292 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
31293 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
31294 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
31295 (OMP_CLAUSE_SET_MAP_KIND): New macro.
31296 * varpool.c (varpool_node::get_create): Consider flag_openacc next
31297 to flag_openmp.
31298 * config/i386/intelmic-offload.h: New file.
31299 * config/nvptx/offload.h: Likewise.
31300
31301 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31302
31303 * explow.h: Remove duplicate contents.
31304 * dojump.h: Likewise.
31305
31306 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
31307
31308 * arm.c (arm_xgene_tune): Add default initializer for instruction
31309 fusion.
31310
31311 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
31312
31313 PR ipa/64068
31314 PR ipa/64559
31315 * ipa.c (symbol_table::remove_unreachable_nodes):
31316 Do not put abstract origins into boundary.
31317
31318 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
31319
31320 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
31321 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
31322
31323 2015-01-15 Steve Ellcey <sellcey@mips.com>
31324
31325 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
31326 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
31327 builtins.def, and chkp-builtins.def.
31328
31329 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
31330
31331 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
31332 ISA 2.7 (POWER8).
31333
31334 2015-01-15 Richard Biener <rguenther@suse.de>
31335
31336 PR tree-optimization/61743
31337 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
31338 information on PHIs for some simple cases.
31339
31340 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
31341
31342 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
31343 Include xgene1.md.
31344 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
31345 * config/arm/arm-cores.def (xgene1): New entry.
31346 * config/arm/arm-tables.opt: Regenerate.
31347 * config/arm/arm-tune.md: Regenerate.
31348 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
31349
31350 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
31351
31352 * tree-if-conv.c: Include hash-map.h.
31353 (aggressive_if_conv): New variable.
31354 (fold_build_cond_expr): Add simplification of non-zero condition.
31355 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
31356 destination block is not always executed.
31357 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
31358 than two predecessors if AGGRESSIVE_IF_CONV is true.
31359 (if_convertible_stmt_p): Fix commentary.
31360 (all_preds_critical_p): New function.
31361 (has_pred_critical_p): New function.
31362 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
31363 BB can have more than two predecessors and all incoming edges can be
31364 critical.
31365 (predicate_bbs): Skip predication for loop exit block, use build2_loc
31366 to compute predicate for true edge.
31367 (find_phi_replacement_condition): Delete this function.
31368 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
31369 Allow interchange PHI arguments if EXTENDED is false.
31370 Change check that block containing reduction statement candidate
31371 is predecessor of phi-block since phi may have more than two arguments.
31372 (phi_args_hash_traits): New helper structure.
31373 (struct phi_args_hash_traits): New type.
31374 (phi_args_hash_traits::hash): New function.
31375 (phi_args_hash_traits::equal_keys): New function.
31376 (gen_phi_arg_condition): New function.
31377 (predicate_scalar_phi): Add handling of phi nodes with more than two
31378 arguments, delete COND and TRUE_BB arguments, insert body of
31379 find_phi_replacement_condition to predicate ordinary phi nodes.
31380 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
31381 delete call of find_phi_replacement_condition and invoke
31382 predicate_scalar_phi with two arguments.
31383 (insert_gimplified_predicates): Add assert that non-predicated block
31384 don't have statements to insert.
31385 (ifcvt_split_critical_edges): New function.
31386 (ifcvt_split_def_stmt): Likewise.
31387 (ifcvt_walk_pattern_tree): Likewise.
31388 (stmt_is_root_of_bool_pattern): Likewise.
31389 (ifcvt_repair_bool_pattern): Likewise.
31390 (ifcvt_local_dce): Likewise.
31391 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
31392 is copy of inner or outer loop force_vectorize field, invoke
31393 ifcvt_split_critical_edges, ifcvt_local_dce and
31394 ifcvt_repair_bool_pattern for aggressive if-conversion.
31395
31396 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
31397
31398 * config/aarch64/aarch64.md: Include xgene1.md.
31399 * config/aarch64/xgene1.md: New file.
31400
31401 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
31402
31403 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
31404 xgene1 (APM XGene-1) core definition.
31405 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
31406 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
31407 * doc/invoke.texi: Document -mcpu=xgene1.
31408
31409 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31410
31411 * dojump.h: New header file.
31412 * explow.h: Likewise.
31413 * expr.h: Remove includes.
31414 Move expmed.c prototypes to expmed.h.
31415 Move dojump.c prototypes to dojump.h.
31416 Move alias.c prototypes to alias.h.
31417 Move explow.c prototypes to explow.h.
31418 Move calls.c prototypes to calls.h.
31419 Move emit-rtl.c prototypes to emit-rtl.h.
31420 Move varasm.c prototypes to varasm.h.
31421 Move stmt.c prototypes to stmt.h.
31422 (saved_pending_stack_adjust): Move to dojump.h.
31423 (adjust_address): Move to explow.h.
31424 (adjust_address_nv): Move to emit-rtl.h.
31425 (adjust_bitfield_address): Likewise.
31426 (adjust_bitfield_address_size): Likewise.
31427 (adjust_bitfield_address_nv): Likewise.
31428 (adjust_automodify_address_nv): Likewise.
31429 * explow.c (expr_size): Move to expr.c.
31430 (int_expr_size): Likewise.
31431 (tree_expr_size): Likewise.
31432 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31433 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
31434 * genemit.c (main): Generate includes statistics.h, real.h,
31435 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
31436 stmt.h.
31437 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
31438 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
31439 explow.h, emit-rtl.h, stmt.h.
31440 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
31441 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
31442 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
31443 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
31444 emit-rtl.h, varasm.h, stmt.h.
31445 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
31446 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
31447 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
31448 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
31449 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
31450 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
31451 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
31452 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
31453 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
31454 tm.h tree.h varasm.h vec.h wide-int.h.
31455 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31456 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
31457 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
31458 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
31459 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
31460 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
31461 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
31462 * loop-iv.c: Likewise.
31463 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
31464 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
31465 statistics.h stmt.h tree.h varasm.h wide-int.h.
31466 * lra-constraints.c: Likewise.
31467 * lra-eliminations.c: Likewise.
31468 * lra-lives.c: Likewise.
31469 * lra-remat.c: Likewise.
31470 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31471 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
31472 statistics.h stmt.h tree.h varasm.h wide-int.h.
31473 * hw-doloop.c: Likewise.
31474 * ira-color.c: Likewise.
31475 * ira-emit.c: Likewise.
31476 * loop-doloop.c: Likewise.
31477 * loop-invariant.c: Likewise.
31478 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31479 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
31480 statistics.h stmt.h tree.h varasm.h wide-int.h.
31481 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
31482 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
31483 statistics.h stmt.h tree.h varasm.h wide-int.h.
31484 * combine-stack-adj.c: Likewise.
31485 * cse.c: Likewise.
31486 * ddg.c: Likewise.
31487 * ifcvt.c: Likewise.
31488 * ira-costs.c: Likewise.
31489 * jump.c: Likewise.
31490 * lra-coalesce.c: Likewise.
31491 * lra-spills.c: Likewise.
31492 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31493 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
31494 stmt.h varasm.h wide-int.h.
31495 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31496 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
31497 varasm.h.
31498 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
31499 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
31500 statistics.h stmt.h varasm.h wide-int.h.
31501 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
31502 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
31503 varasm.h wide-int.h.
31504 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
31505 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
31506 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
31507 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
31508 statistics.h stmt.h.
31509 * config/tilepro/tilepro.c: Likewise.
31510 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
31511 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
31512 * config/pdp11/pdp11.c: Likewise.
31513 * config/xtensa/xtensa.c: Likewise.
31514 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
31515 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
31516 varasm.h.
31517 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31518 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
31519 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
31520 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31521 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
31522 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
31523 * rtl-chkp.c: Likewise.
31524 * tree-chkp-opt.c: Likewise.
31525 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
31526 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
31527 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
31528 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31529 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
31530 statistics.h stmt.h.
31531 * tree-vect-data-refs.c: Likewise.
31532 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
31533 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31534 rtl.h statistics.h stmt.h varasm.h.
31535 * internal-fn.c: Likewise.
31536 * ipa-icf-gimple.c: Likewise.
31537 * lto-section-out.c: Likewise.
31538 * tree-data-ref.c: Likewise.
31539 * tree-nested.c: Likewise.
31540 * tree-outof-ssa.c: Likewise.
31541 * tree-predcom.c: Likewise.
31542 * tree-pretty-print.c: Likewise.
31543 * tree-scalar-evolution.c: Likewise.
31544 * tree-ssa-strlen.c: Likewise.
31545 * tree-vect-loop.c: Likewise.
31546 * tree-vect-patterns.c: Likewise.
31547 * tree-vect-slp.c: Likewise.
31548 * tree-vect-stmts.c: Likewise.
31549 * tsan.c: Likewise.
31550 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31551 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
31552 stmt.h.
31553 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
31554 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31555 statistics.h stmt.h varasm.h.
31556 * loop-unroll.c: Likewise.
31557 * ubsan.c: Likewise.
31558 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
31559 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
31560 stmt.h varasm.h.
31561 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31562 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
31563 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
31564 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
31565 statistics.h stmt.h.
31566 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
31567 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
31568 statistics.h stmt.h varasm.h.
31569 * gimple-match-head.c: Likewise.
31570 * lto-cgraph.c: Likewise.
31571 * lto-section-in.c: Likewise.
31572 * lto-streamer-in.c: Likewise.
31573 * lto-streamer-out.c: Likewise.
31574 * tree-affine.c: Likewise.
31575 * tree-cfg.c: Likewise.
31576 * tree-cfgcleanup.c: Likewise.
31577 * tree-if-conv.c: Likewise.
31578 * tree-into-ssa.c: Likewise.
31579 * tree-ssa-alias.c: Likewise.
31580 * tree-ssa-copyrename.c: Likewise.
31581 * tree-ssa-dse.c: Likewise.
31582 * tree-ssa-forwprop.c: Likewise.
31583 * tree-ssa-live.c: Likewise.
31584 * tree-ssa-math-opts.c: Likewise.
31585 * tree-ssa-pre.c: Likewise.
31586 * tree-ssa-sccvn.c: Likewise.
31587 * tree-tailcall.c: Likewise.
31588 * tree-vect-generic.c: Likewise.
31589 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31590 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
31591 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31592 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
31593 * varasm.c: Likewise.
31594 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31595 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
31596 varasm.h.
31597 * init-regs.c: Likewise.
31598 * ira.c: Likewise.
31599 * omp-low.c: Likewise.
31600 * stack-ptr-mod.c: Likewise.
31601 * tree-ssa-reassoc.c: Likewise.
31602 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31603 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
31604 varasm.h.
31605 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31606 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
31607 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31608 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
31609 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31610 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
31611 * tree-ssa-phiopt.c: Likewise.
31612 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31613 fixed-value.h hashtab.h real.h statistics.h stmt.h.
31614 * config/fr30/fr30.c: Likewise.
31615 * config/frv/frv.c: Likewise.
31616 * expr.c: Likewise.
31617 * final.c: Likewise.
31618 * optabs.c: Likewise.
31619 * passes.c: Likewise.
31620 * simplify-rtx.c: Likewise.
31621 * stmt.c: Likewise.
31622 * toplev.c: Likewise.
31623 * var-tracking.c: Likewise.
31624 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31625 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
31626 * lower-subreg.c: Likewise.
31627 * postreload-gcse.c: Likewise.
31628 * ree.c: Likewise.
31629 * reginfo.c: Likewise.
31630 * store-motion.c: Likewise.
31631 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31632 fixed-value.h hashtab.h real.h stmt.h varasm.h.
31633 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31634 fixed-value.h hashtab.h statistics.h stmt.h.
31635 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31636 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
31637 * except.c: Likewise.
31638 * explow.c: Likewise.
31639 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31640 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
31641 varasm.h.
31642 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31643 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
31644 * tree-ssa-structalias.c: Likewise.
31645 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31646 fixed-value.h insn-config.h real.h statistics.h.
31647 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31648 fixed-value.h insn-config.h real.h statistics.h stmt.h.
31649 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31650 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
31651 * cfgbuild.c: Likewise.
31652 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31653 fixed-value.h real.h rtl.h statistics.h stmt.h.
31654 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31655 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
31656 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31657 fixed-value.h real.h statistics.h stmt.h.
31658 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31659 fixed-value.h real.h statistics.h stmt.h varasm.h.
31660 * cprop.c: Likewise.
31661 * modulo-sched.c: Likewise.
31662 * postreload.c: Likewise.
31663 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
31664 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
31665 statistics.h stmt.h varasm.h.
31666 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
31667 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31668 rtl.h statistics.h stmt.h varasm.h.
31669 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
31670 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
31671 varasm.h.
31672 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
31673 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
31674 varasm.h.
31675 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
31676 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
31677 varasm.h.
31678 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
31679 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
31680 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
31681 function.h real.h statistics.h stmt.h varasm.h.
31682 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
31683 insn-config.h real.h statistics.h stmt.h.
31684 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
31685 statistics.h stmt.h.
31686 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
31687 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
31688 statistics.h stmt.h varasm.h.
31689 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
31690 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
31691 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
31692 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
31693 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
31694 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
31695 statistics.h stmt.h varasm.h.
31696 * ipa-polymorphic-call.c: Likewise.
31697 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
31698 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31699 statistics.h stmt.h.
31700 * config/c6x/c6x.c: Likewise.
31701 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
31702 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31703 statistics.h stmt.h varasm.h.
31704 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
31705 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
31706 stmt.h varasm.h.
31707 * ipa-split.c: Likewise.
31708 * tree-eh.c: Likewise.
31709 * tree-ssa-dce.c: Likewise.
31710 * tree-ssa-loop-niter.c: Likewise.
31711 * tree-vrp.c: Likewise.
31712 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
31713 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
31714 stmt.h.
31715 * config/nds32/nds32-fp-as-gp.c: Likewise.
31716 * config/nds32/nds32-intrinsic.c: Likewise.
31717 * config/nds32/nds32-isr.c: Likewise.
31718 * config/nds32/nds32-md-auxiliary.c: Likewise.
31719 * config/nds32/nds32-memory-manipulation.c: Likewise.
31720 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
31721 * config/nds32/nds32-predicates.c: Likewise.
31722 * config/nds32/nds32.c: Likewise.
31723 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
31724 fixed-value.h hashtab.h real.h statistics.h.
31725 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
31726 fixed-value.h hashtab.h real.h statistics.h stmt.h.
31727 * config/arm/arm.c: Likewise.
31728 * config/avr/avr.c: Likewise.
31729 * config/bfin/bfin.c: Likewise.
31730 * config/h8300/h8300.c: Likewise.
31731 * config/i386/i386.c: Likewise.
31732 * config/ia64/ia64.c: Likewise.
31733 * config/iq2000/iq2000.c: Likewise.
31734 * config/m32c/m32c.c: Likewise.
31735 * config/m32r/m32r.c: Likewise.
31736 * config/m68k/m68k.c: Likewise.
31737 * config/mcore/mcore.c: Likewise.
31738 * config/mep/mep.c: Likewise.
31739 * config/mips/mips.c: Likewise.
31740 * config/mn10300/mn10300.c: Likewise.
31741 * config/moxie/moxie.c: Likewise.
31742 * config/pa/pa.c: Likewise.
31743 * config/rl78/rl78.c: Likewise.
31744 * config/rx/rx.c: Likewise.
31745 * config/s390/s390.c: Likewise.
31746 * config/sh/sh.c: Likewise.
31747 * config/sparc/sparc.c: Likewise.
31748 * config/spu/spu.c: Likewise.
31749 * config/stormy16/stormy16.c: Likewise.
31750 * config/v850/v850.c: Likewise.
31751 * config/vax/vax.c: Likewise.
31752 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
31753 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
31754 * config/msp430/msp430.c: Likewise.
31755 * predict.c: Likewise.
31756 * value-prof.c: Likewise.
31757 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
31758 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
31759 * config/microblaze/microblaze.c: Likewise.
31760 * config/nios2/nios2.c: Likewise.
31761 * config/rs6000/rs6000.c: Likewise.
31762 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
31763 insn-config.h real.h rtl.h statistics.h stmt.h.
31764 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
31765 insn-config.h real.h statistics.h stmt.h.
31766 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
31767 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
31768 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
31769 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
31770 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
31771 fixed-value.h real.h statistics.h stmt.h.
31772 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
31773 fixed-value.h statistics.h stmt.h.
31774 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
31775 stmt.h.
31776
31777 2015-01-15 Jakub Jelinek <jakub@redhat.com>
31778
31779 * gengtype.c (create_user_defined_type): Workaround
31780 -Wmaybe-uninitialized false positives.
31781 * cse.c (fold_rtx): Likewise.
31782 * loop-invariant.c (gain_for_invariant): Likewise.
31783
31784 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
31785
31786 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
31787 set the memory attributes in all cases but clear MEM_EXPR if need be.
31788
31789 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
31790
31791 PR tree-optimization/64434
31792 * cfgexpand.c (reorder_operands): New function.
31793 (expand_gimple_basic_block): Insert call of reorder_operands if
31794 optimized is true.
31795
31796 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
31797
31798 * config/mips/micromips.md (*swp): Remove explicit parallel.
31799 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
31800 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
31801 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
31802 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
31803 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
31804 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
31805 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
31806 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
31807 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
31808 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
31809 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
31810 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
31811 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
31812 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
31813 (mips_wrdsp): Likewise.
31814 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
31815 parallel.
31816 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
31817 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
31818 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
31819 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
31820 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
31821 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
31822 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
31823 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
31824 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
31825
31826 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
31827
31828 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
31829 (mips_print_operand): Support 'y' to print exact log2 in decimal
31830 of a const_int.
31831 * config/mips/mips.h (ISA_HAS_LSA): New define.
31832 (ISA_HAS_DLSA): Likewise.
31833 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
31834 * config/mips/predicates.md (const_immlsa_operand): New predicate.
31835
31836 2015-01-15 Martin Liska <mliska@suse.cz>
31837
31838 PR target/64377
31839 * optc-save-gen.awk: Add support for array types.
31840
31841 2015-01-15 Richard Biener <rguenther@suse.de>
31842
31843 PR middle-end/64365
31844 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
31845 for MEM_REF access functions with the same base can never partially
31846 overlap.
31847
31848 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
31849
31850 * common.opt: New option -fstack-protector-explicit.
31851 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
31852 (stack_protect_decl_phase): Handle stack_protect attribute for
31853 explicit stack protection requests.
31854 (expand_used_vars): Similarly.
31855 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
31856 * doc/extend.texi: Add documentation for "stack_protect" attribute.
31857 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
31858
31859 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
31860
31861 PR target/53988
31862 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
31863 reg-reg copies.
31864 (sh_extending_set_of_reg): New struct.
31865 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
31866 sh_remove_reg_dead_or_unused_notes): New Declarations.
31867 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
31868 sh_find_extending_set_of_reg, sh_split_tst_subregs,
31869 sh_extending_set_of_reg::use_as_extended_reg): New functions.
31870 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
31871 convert to insn_and_split and use new function sh_split_tst_subregs.
31872
31873 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
31874
31875 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
31876 option.
31877 (Optimization Options): Move -fuse-ld documentation to...
31878 (Link Options): ...here.
31879
31880 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
31881
31882 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
31883 offsets.
31884 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
31885 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
31886 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
31887 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
31888 instead of ZR for the memory operand of LL/SC.
31889 (compare_and_swap_12, sync_add<mode>): Likewise.
31890 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
31891 (sync_new_<optab>_12, sync_nand_12): Likewise.
31892 (sync_old_nand_12, sync_new_nand_12): Likewise.
31893 (sync_sub<mode>, sync_old_add<mode>): Likewise.
31894 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
31895 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
31896 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
31897 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
31898 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
31899 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
31900 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
31901 * doc/md.texi (ZC): Update description.
31902
31903 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
31904
31905 * builtins.c (expand_builtin_atomic_exchange): Remove error when
31906 memory model is CONSUME.
31907 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
31908 expand_builtin_atomic_store): Change invalid memory model errors to
31909 warnings.
31910 (expand_builtin_atomic_clear): Change invalid model errors to warnings
31911 and issue warning for CONSUME.
31912
31913 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
31914
31915 * lto-cgraph: Update function comments for
31916 lto_symtab_encoder_encode_*.
31917
31918 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
31919
31920 * Makefile.in (site.exp): Do not set ENABLE_LTO.
31921
31922 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
31923
31924 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
31925 * lto-cgraph.c (select_what_to_stream): Remove argument, use
31926 lto_stream_offload_p instead.
31927 * lto-streamer.h (select_what_to_stream): Remove argument.
31928 * passes.c (ipa_write_summaries): Likewise.
31929 * tree-pass.h (ipa_write_summaries): Likewise.
31930
31931 2015-01-14 Richard Biener <rguenther@suse.de>
31932
31933 PR tree-optimization/59354
31934 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
31935 groups larger than the slp group size as having gaps.
31936
31937 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
31938
31939 PR middle-end/59448
31940 * builtins.c (get_memmodel): Promote consume to acquire always.
31941
31942 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
31943
31944 PR target/64386
31945 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
31946 V32HImode.
31947
31948 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
31949
31950 PR target/64393
31951 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
31952 Enable AVX512BW.
31953 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
31954 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
31955 AVX512VBMI, as it implies AVX512BW.
31956
31957 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
31958
31959 PR target/64387
31960 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
31961 (vec_unpacks_hi_v16sf): Ditto.
31962
31963 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31964
31965 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
31966 is not available.
31967
31968 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31969
31970 * doc/invoke.texi (mapcs): Mention deprecation.
31971 (mapcs-frame): Likewise.
31972
31973 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
31974
31975 PR target/64453
31976 * config/arm/arm.c (callee_saved_reg_p): Define.
31977 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
31978 register is callee saved instead of !call_used_regs[reg].
31979 (thumb1_compute_save_reg_mask): Likewise.
31980
31981 2015-01-14 Hale Wang <hale.wang@arm.com>
31982
31983 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
31984 Cortex-M7.
31985
31986 2015-01-14 Richard Biener <rguenther@suse.de>
31987
31988 PR lto/64415
31989 * tree-inline.c (insert_debug_decl_map): Check destination
31990 function MAY_HAVE_DEBUG_STMTS.
31991 (insert_init_debug_bind): Likewise.
31992 (insert_init_stmt): Remove redundant check.
31993 (remap_gimple_stmt): Drop debug stmts if the destination
31994 function has var-tracking assignments disabled.
31995
31996 2015-01-14 Martin Liska <mliska@suse.cz>
31997
31998 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
31999 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
32000
32001 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32002
32003 PR target/64460
32004 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
32005 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
32006
32007 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
32008
32009 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
32010 level from an ARCH; do not inject the default.
32011 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
32012 MIPS_ISA_LEVEL_SPEC.
32013 (MIPS_ISA_NAN2008_SPEC): Update comment.
32014 (BASE_DRIVER_SELF_SPECS): Likewise.
32015 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
32016 MIPS_DEFAULT_ISA_LEVEL_SPEC.
32017 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
32018 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
32019 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
32020
32021 2015-01-14 Richard Biener <rguenther@suse.de>
32022
32023 PR tree-optimization/64493
32024 PR tree-optimization/64495
32025 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
32026 assign the proper vectorized PHI to the inner loop exit PHIs.
32027
32028 2015-01-14 Joey Ye <joey.ye@arm.com>
32029
32030 * config/arm/arm.c (arm_compute_save_reg_mask):
32031 Do not save lr in case of tail call.
32032 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
32033
32034 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
32035
32036 * tree-vrp.c (check_array_ref): Emit more warnings
32037 for warn_array_bounds >= 2.
32038 * common.opt: New option -Warray-bounds=.
32039 * doc/invoke.texi: Document -Warray-bounds=.
32040
32041 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
32042
32043 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
32044 (mforbid-fp-as-gp): Remove.
32045 (mex9): Remove.
32046 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
32047 (nds32_symbol_load_store_p): Remove.
32048 (nds32_fp_as_gp_check_available): Clean up implementation.
32049 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
32050 cases.
32051 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
32052 fp-as-gp and ex9 cases.
32053
32054 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
32055
32056 * tree-profile.c (init_ic_make_global_vars): Drop workaround
32057 for bintuils bug 14342.
32058 (init_ic_make_global_vars): Likewise.
32059 (gimple_init_edge_profiler): Likewise.
32060 (gimple_gen_ic_func_profiler): Likewise.
32061
32062 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32063
32064 * ipa-inline.c (inline_small_functions): Swap the operands in
32065 enum.
32066
32067 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
32068
32069 PR ipa/64481
32070 * ipa-inline-analysis.c (node_growth_cache): Remove.
32071 (initialize_growth_caches): Do not initialize it.
32072 (free_growth_caches): Do not free it.
32073 (do_estimate_growth): Rename to ...
32074 (estimate_growth): ... this one; drop growth cache code.
32075 (growth_likely_positive): Always go the heuristics way.
32076 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
32077 (reset_edge_caches): Do not reset node growth.
32078 (heap_edge_removal_hook): Do not maintain cache.
32079 (inline_small_functions): Likewise; strenghten sanity check.
32080 (ipa_inline): Do not maintain caches.
32081 * ipa-inline.h (node_growth_cache): Remove.
32082 (do_estimate_growth): Remove to ...
32083 (estimate_growth): this one; remove inline version.
32084 (reset_node_growth_cache): Remove.
32085
32086 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
32087
32088 PR ipa/64565
32089 * ipa-inline.c (inline_small_functions): Update callee keys after
32090 resolving speculation
32091 (inline_small_functions): Always check monotonicity of the queue.
32092
32093 2015-01-13 Marek Polacek <polacek@redhat.com>
32094
32095 PR middle-end/64391
32096 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
32097
32098 2015-01-13 Jakub Jelinek <jakub@redhat.com>
32099
32100 PR rtl-optimization/64286
32101 * ree.c (combine_reaching_defs): Move part of comment earlier,
32102 remove !SCALAR_INT_MODE_P check.
32103 (add_removable_extension): Don't add vector mode
32104 extensions if all uses of the source register aren't the same
32105 vector extensions.
32106
32107 2015-01-13 Renlin Li <renlin.li@arm.com>
32108
32109 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
32110 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
32111
32112 2015-01-13 Martin Liska <mliska@suse.cz>
32113
32114 * ipa-icf.c (sem_function::equals_private): Call new functions
32115 cl_target_option_print_diff and cl_optimization_print_diff.
32116 * optc-save-gen.awk (cl_target_option_print_diff): New function.
32117 (cl_optimization_print_diff): Likewise.
32118 * opth-gen.awk: Likewise.
32119
32120 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
32121
32122 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
32123 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
32124 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
32125 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
32126 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
32127 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
32128
32129 2015-01-13 Andrew Pinski <apinski@cavium.com>
32130
32131 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
32132 instead of src mode.
32133
32134 2015-01-13 Richard Biener <rguenther@suse.de>
32135
32136 PR lto/64373
32137 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
32138 DECL_CONTEXT.
32139
32140 2015-01-13 Andrew Pinski <apinski@cavium.com>
32141
32142 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
32143 volatile mems.
32144 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
32145
32146 2015-01-13 Jakub Jelinek <jakub@redhat.com>
32147
32148 PR middle-end/63974
32149 * cfgexpand.c (expand_computed_goto): Don't call
32150 convert_memory_address here.
32151
32152 2015-01-13 Richard Biener <rguenther@suse.de>
32153
32154 PR tree-optimization/64406
32155 * tree-loop-distibution.c (pass_loop_distribution::execute):
32156 Reset the SCEV hashtable if we distributed anything.
32157
32158 2015-01-13 Richard Biener <rguenther@suse.de>
32159
32160 PR tree-optimization/64404
32161 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
32162 SLP types for CSEd loads.
32163
32164 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
32165
32166 PR tree-optimization/64436
32167 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
32168 merge of two symbolic numbers for a bitwise OR to ...
32169 (perform_symbolic_merge): This. Also fix computation of the range and
32170 end of the symbolic number corresponding to the result of a bitwise OR.
32171
32172 2015-01-13 Richard Biener <rguenther@suse.de>
32173
32174 PR tree-optimization/64568
32175 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
32176 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
32177
32178 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
32179
32180 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
32181 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
32182
32183 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
32184
32185 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
32186 target-specific symbol_ref flag.
32187 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
32188 resides in rodata section.
32189 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
32190 (nds32_encode_section_info): New function.
32191
32192 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
32193
32194 * config/nds32/nds32.md (call): Use pseudo instruction bal which
32195 clobbers TA_REGNUM if large code model is specified.
32196 (call_register): Likewise.
32197 (call_immediate): Likewise.
32198 (call_value): Likewise.
32199 (call_value_register): Likewise.
32200 (call_value_immediate): Likewise.
32201
32202 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
32203
32204 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
32205 (TARGET_CMODEL_MEDIUM): New macro.
32206 (TARGET_CMODEL_LARGE): New macro.
32207 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
32208 code model setting in assembly code.
32209
32210 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
32211
32212 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
32213 Remove MASK_GP_DIRECT flag.
32214 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
32215 one of the multilib default options.
32216 * config/nds32/nds32.opt (mgp-direct): Remove.
32217 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
32218 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
32219
32220 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
32221
32222 * config/nds32/nds32.opt (mcmodel): Add new option.
32223 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
32224 to describe code model.
32225
32226 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
32227
32228 PR target/64479
32229 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
32230
32231 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
32232
32233 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
32234 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
32235 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
32236 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
32237 __builtin_sh_set_fpscr.
32238
32239 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
32240
32241 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
32242 after a funtion name just to indicate it is a function.
32243 ([-fsanitize-undefined-trap-on-error]): Likewise.
32244 ([-fdbg-cnt=]): Likewise.
32245 ([-mmemcpy]): Likewise.
32246 ([-mflush-func]): Likewise.
32247 ([-msynci]): Likewise.
32248
32249 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
32250
32251 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
32252 example.
32253
32254 2015-01-12 Jakub Jelinek <jakub@redhat.com>
32255
32256 PR tree-optimization/64563
32257 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
32258 instead of != VR_VARYING.
32259
32260 PR target/64513
32261 * config/i386/i386.c (ix86_expand_prologue): Add
32262 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
32263
32264 PR tree-optimization/64454
32265 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
32266 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
32267 for signed or [0, op1 - 1] for unsigned modulo.
32268 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
32269 even if op1 does not satisfy integer_pow2p.
32270
32271 PR other/64370
32272 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
32273
32274 2015-01-12 Jeff Law <law@redhat.com>
32275
32276 PR target/64461
32277 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
32278 (trunchiqi2, truncsihi2): Similarly.
32279
32280 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
32281 rather than calling F.
32282
32283 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
32284
32285 * tsan.c (instrument_expr): Use force_gimple_operand.
32286 Use may_be_nonaddressable_p instead of is_gimple_addressable.
32287
32288 2015-01-12 Richard Biener <rguenther@suse.de>
32289
32290 PR tree-optimization/64530
32291 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
32292 back dr1.
32293
32294 2015-01-12 Richard Biener <rguenther@suse.de>
32295
32296 PR middle-end/64357
32297 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
32298 latches properly.
32299
32300 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32301
32302 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
32303 Cortex-A17 tuning parameters.
32304 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
32305
32306 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32307
32308 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
32309 * config/arm/arm.c (arm_macro_fusion_p): New function.
32310 (arm_macro_fusion_pair_p): Likewise.
32311 (TARGET_SCHED_MACRO_FUSION_P): Define.
32312 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
32313 (ARM_FUSE_NOTHING): Likewise.
32314 (ARM_FUSE_MOVW_MOVT): Likewise.
32315 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
32316 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
32317 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
32318 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
32319 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
32320 arm_cortex_a5_tune): Specify fuseable_ops value.
32321
32322 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
32323
32324 PR bootstrap/64561
32325 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
32326 test for PIE with copy reloc.
32327 * configure: Regenerated.
32328
32329 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32330
32331 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
32332 in gen_rtx_REG.
32333 (arm_tls_descseq_addr): Likewise.
32334 (arm_gen_movmemqi): Likewise.
32335 (arm_expand_epilogue_apcs_frame): Likewise.
32336 (arm_expand_epilogue): Likewise.
32337 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
32338 in gen_rtx_REG.
32339
32340 2015-01-12 Martin Liska <mliska@suse.cz>
32341
32342 PR ipa/64550
32343 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
32344 volatility for correct operands.
32345
32346 2015-01-12 Martin Liska <mliska@suse.cz>
32347
32348 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
32349 indication that a function is not leaf.
32350 (sem_function::compare_polymorphic_p): Likewise.
32351
32352 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32353
32354 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
32355 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
32356 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
32357 fold-const.h, tree-check.h.
32358
32359 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
32360
32361 PR ipa/63967
32362 PR ipa/64425
32363 * ipa-inline.c (compute_uninlined_call_time,
32364 compute_inlined_call_time): Use counts for extra precision when
32365 needed possible.
32366 (big_speedup_p): Fix formating.
32367 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
32368 (relative_time_benefit): Remove.
32369 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
32370 merge guessed and read profile paths.
32371 (inline_small_functions): Count only !optimize_size functions into
32372 initial size; be more lax about sanity check when profile is used;
32373 be sure to update inlined function profile when profile is read.
32374
32375 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
32376
32377 PR ipa/63470
32378 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
32379 cost when edge becomes direct.
32380 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
32381 is resolved or when introducing new speculation.
32382
32383 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
32384
32385 PR ipa/64551
32386 PR ipa/64552
32387 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
32388 '||' to fix typo issue.
32389
32390 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
32391 accept and return NULL.
32392
32393 2015-01-12 Martin Liska <mliska@suse.cz>
32394
32395 * cgraph.c (cgraph_edge::remove_callee): Move function to header
32396 file for being inlined.
32397 (cgraph_set_edge_callee): Delete.
32398 (cgraph_edge::redirect_callee): Move function to header file
32399 for being inlined.
32400 (cgraph_edge::make_direct): Use new function.
32401 (cgraph_edge::dump_edge_flags): New function created from
32402 static dump_edge_flags function.
32403 (cgraph_node::dump): Use new function.
32404 (cgraph_edge::verify_count_and_frequency): New function created
32405 from verify_edge_count_and_frequency.
32406 (cgraph_edge::verify_corresponds_to_fndecl): New function created
32407 from verify_edge_corresponds_to_fndecl.
32408 (verify_edge_corresponds_to_fndecl): Delete.
32409 (cgraph_node::verify_node): Use new function.
32410 * cgraph.h (cgraph_edge::set_callee): New function.
32411 (cgraph_edge::dump_edge_flags): Likewise.
32412 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
32413
32414 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
32415
32416 * ipa-utils.c (estimate_function_body_sizes): Do not
32417 free node params when called late with early=true.
32418
32419 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
32420
32421 * doc/md.texi (Instruction Patterns): Rewrite text for
32422 clarity.
32423 (Example): Likewise.
32424
32425 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
32426
32427 * doc/invoke.texi (Option Summary): Break long lines.
32428 [(-fdiagnostics-color)]: Put long literal in @smallexample
32429 instead of inline.
32430 [(-fsanitize-recover)]: Likewise.
32431 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
32432 [(-ffast-math)]: Likewise.
32433 [(--param max-inline-insns-recursive)]: Likewise.
32434 [(--param max-inline-recursive-depth)]: Likewise.
32435 [(-mno-text-section-literals)]: Likewise.
32436
32437 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
32438
32439 * doc/install.texi: Update for libgomp being renamed from "GNU
32440 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
32441 Runtime Library".
32442 * doc/sourcebuild.texi: Likewise.
32443
32444 2015-01-10 Anthony Green <green@moxielogic.com>
32445
32446 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
32447 mul.x availability for moxiebox configuration.
32448
32449 2015-01-09 Anthony Green <green@moxielogic.com>
32450
32451 * config/moxie/moxie.md: Tabify assembly output.
32452
32453 2015-01-09 Anthony Green <green@moxielogic.com>
32454
32455 * config/moxie/moxie.md (CC_REG): Correct register definition.
32456
32457 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
32458
32459 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
32460 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
32461 of log files.
32462
32463 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
32464
32465 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
32466
32467 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
32468 Jakub Jelinek <jakub@redhat.com>
32469
32470 PR middle-end/64412
32471 * lto-streamer.h (lto_stream_offload_p): New declaration.
32472 * lto-streamer.c (lto_stream_offload_p): New variable.
32473 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
32474 at the same time as section_name_prefix.
32475 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
32476 if lto_stream_offload_p.
32477 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
32478 stream TREE_TARGET_OPTION if lto_stream_offload_p.
32479 (write_ts_function_decl_tree_pointers): Don't
32480 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
32481 * tree-streamer-in.c (unpack_value_fields): Don't stream
32482 TREE_TARGET_OPTION in if ACCEL_COMPILER.
32483 (lto_input_ts_function_decl_tree_pointers): Don't stream
32484 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
32485 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
32486 instead of section_name_prefix string comparisons.
32487
32488 2015-01-09 Jakub Jelinek <jakub@redhat.com>
32489
32490 PR rtl-optimization/64536
32491 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
32492 tablejumps.
32493
32494 2015-01-09 Michael Collison <michael.collison@linaro.org>
32495
32496 PR tree-optimization/64322
32497 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
32498 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
32499
32500 2015-01-09 Tom de Vries <tom@codesourcery.com>
32501
32502 PR rtl-optimization/64539
32503 * regcprop.c (kill_clobbered_values): Factor out of ...
32504 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
32505 instead of note_stores with kill_clobbered_value.
32506
32507 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
32508
32509 * ginclude/unwind-arm-common.h: Revert previous commit.
32510
32511 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
32512
32513 * config.gcc (arm*-*-freebsd*): New configuration.
32514 * config/arm/freebsd.h: New file.
32515 * config.host: Add extra components for arm*-*-freebsd*.
32516 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
32517 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
32518
32519 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
32520
32521 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
32522 for -mcpu=e6500.
32523 * config/rs6000/t-rtems: Add e6500 multilibs.
32524
32525 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
32526
32527 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
32528 MPC8540.
32529
32530 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
32531
32532 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
32533 MULTILIB_EXCEPTIONS.
32534
32535 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
32536
32537 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
32538 MULTILIB_EXCEPTIONS.
32539
32540 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
32541
32542 * config/arm/t-rtems-eabi: Rename to...
32543 * config/arm/t-rtems: ...this.
32544 * config/arm/rtems-eabi.h: Rename to...
32545 * config/arm/rtems.h: ...this.
32546 * config.gcc (arm*-*-rtems*): Reflect changes above.
32547
32548 2015-01-09 Richard Biener <rguenther@suse.de>
32549
32550 PR tree-optimization/64410
32551 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
32552 on the LHS.
32553 (execute_update_addresses_taken): Deal with that.
32554 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
32555 loads/stores for complex variables.
32556
32557 2015-01-09 Martin Liska <mliska@suse.cz>
32558
32559 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
32560 name comparison.
32561 (func_checker::compare_memory_operand): New function.
32562 (func_checker::compare_operand): Split case to newly
32563 added functions.
32564 (func_checker::compare_cst_or_decl): New function.
32565 (func_checker::compare_gimple_call): Identify
32566 memory operands.
32567 (func_checker::compare_gimple_assign): Likewise.
32568 * ipa-icf-gimple.h: New function.
32569
32570 2015-01-09 Martin Liska <mliska@suse.cz>
32571
32572 PR ipa/64503
32573 * sreal.c (sreal::dump): Change unsigned format to signed for
32574 m_exp value.
32575 (sreal::to_double): Replace exp2 with scalbln.
32576
32577 2015-01-09 Martin Liska <mliska@suse.cz>
32578
32579 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
32580 * ipa-icf.c (sem_function::equals_private): Add support for target and
32581 (sem_item_optimizer::merge_classes): Remove redundant function
32582 optimization flags comparison.
32583 * tree.h (target_opts_for_fn): New function.
32584
32585 2015-01-09 Tom de Vries <tom@codesourcery.com>
32586
32587 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
32588
32589 2015-01-09 Kito Cheng <kito@0xlab.org>
32590
32591 PR rtl-optimization/64348
32592 * lra-constraints.c (split_reg): Fix caller-save store/restore
32593 instruction generation.
32594
32595 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
32596
32597 PR gcov-profile/61790
32598 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
32599 long long. Fallback to int64_t if host doesn't have long long and
32600 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
32601
32602 2015-01-08 Jakub Jelinek <jakub@redhat.com>
32603
32604 PR tree-optimization/63989
32605 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
32606 from 1000 to 10000.
32607 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
32608 (get_stridx): If we don't have a record for certain SSA_NAME,
32609 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
32610 constant offset, call get_stridx_plus_constant.
32611 (get_stridx_plus_constant): New function.
32612 (zero_length_string): Don't use get_stridx here.
32613
32614 PR target/55023
32615 PR middle-end/64388
32616 * dse.c (struct insn_info): Mention frame_read set also
32617 before reload for tail calls on some targets.
32618 (scan_insn): Revert 2014-12-22 change. Set frame_read
32619 also before reload for tail calls if
32620 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
32621 instead of add_non_frame_wild_read for non-const/memset
32622 tail calls after reload.
32623
32624 2015-01-08 Jason Merrill <jason@redhat.com>
32625
32626 * ubsan.c (do_ubsan_in_current_function): New.
32627 (pass_ubsan::gate): Use it.
32628 * ubsan.h: Declare it.
32629 * convert.c (convert_to_integer): Use it.
32630
32631 2015-01-08 Jakub Jelinek <jakub@redhat.com>
32632
32633 PR target/64338
32634 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
32635 compare_code when it is unconditionally overwritten afterwards.
32636 Use ix86_reverse_condition instead of reverse_condition. Don't
32637 change code if *reverse_condition* returned UNKNOWN and don't
32638 swap ct/cf and negate diff in that case.
32639
32640 2015-01-08 Mike Stump <mikestump@comcast.net>
32641
32642 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
32643 (pass_tsan_O0::gate): Likewise.
32644 * extend.texi (Function Attributes): Add no_sanitize_thread
32645 documentation.
32646
32647 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
32648
32649 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
32650 for registering builtins.
32651 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
32652 add -fopenmp to the argv_obstack used when invoking
32653 compile_for_target.
32654
32655 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
32656 add "-m32" or "-m64" to argv_obstack.
32657 (generate_host_descr_file): Likewise, when invoking host_compiler.
32658 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
32659 ld.
32660
32661 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
32662
32663 * config/sh/sh-mem.cc: Use constant as second operand when emitting
32664 tstsi_t insns.
32665
32666 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
32667
32668 PR target/55212
32669 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
32670 constant load if constant operand fits into I08.
32671
32672 2015-01-08 Jakub Jelinek <jakub@redhat.com>
32673
32674 PR sanitizer/64336
32675 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
32676 and TREE_THIS_VOLATILE for MEM_REFs.
32677 (build5_stat): Fix up initialization of TREE_READONLY and
32678 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
32679
32680 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
32681
32682 PR target/64533
32683 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
32684 of r for the second alternative of the destination operand.
32685
32686 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
32687
32688 PR target/36557
32689 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
32690
32691 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
32692
32693 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
32694 keywords.
32695 ([-fivar-visibility], [-fvisibility]): Likewise.
32696
32697 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
32698
32699 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
32700 the file where @code, @command, etc is more appropriate.
32701
32702 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
32703
32704 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
32705 of -mrecip= documentation.
32706
32707 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
32708
32709 PR target/64505
32710 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
32711 correct reload handler if -m32 -mpowerpc64 is used.
32712
32713 2015-01-06 Tom de Vries <tom@codesourcery.com>
32714
32715 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
32716
32717 2015-01-08 Christian Bruel <christian.bruel@st.com>
32718
32719 PR target/64507
32720 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
32721
32722 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
32723
32724 PR tree-optimization/63259
32725 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
32726 if optab exists for 16bit byteswap.
32727
32728 2015-01-06 Jakub Jelinek <jakub@redhat.com>
32729
32730 * opts.c (common_handle_option): Add support for
32731 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
32732 * doc/invoke.texi: Document -fno-sanitize=all,
32733 -f{,no-}sanitize-recover=all. Document that
32734 -fsanitize=float-cast-overflow is not enabled
32735 by -fsanitize=undefined. Fix up documentation
32736 of -f{,no-}sanitize-recover.
32737
32738 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
32739
32740 * config.gcc: Add Visium support.
32741 * configure.ac: Likewise.
32742 * configure: Regenerate.
32743 * doc/extend.texi (interrupt attribute): Add Visium.
32744 * doc/invoke.texi: Document Visium options.
32745 * doc/install.texi: Document Visium target.
32746 * doc/md.texi: Document Visium constraints.
32747 * common/config/visium: New directory.
32748 * config/visium: Likewise.
32749
32750 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
32751
32752 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
32753 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
32754
32755 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
32756
32757 * combine.c (combine_validate_cost): Do not count the cost of a
32758 split I2 twice. Do not display it twice in the dump, either.
32759
32760 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
32761
32762 Revert parts of r219199.
32763 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
32764 <inttypes.h>.
32765 ([-Wtraditional]): Restore markup on <limits.h>.
32766
32767 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
32768
32769 PR c++/31397
32770 * doc/invoke.texi: Document -Wsuggest-override.
32771
32772 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
32773
32774 PR rtl-optimization/64287
32775 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
32776 (process_options): Disable flag_ipa_ra if profiling.
32777
32778 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
32779
32780 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
32781
32782 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
32783
32784 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
32785 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
32786 put under #if TARGET_LOOPS guard.
32787
32788 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
32789
32790 * config/i386/i386.c (output_387_binary_op): Use std::swap.
32791
32792 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
32793
32794 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
32795 * rtl.h (refers_to_regno_p): Add overload.
32796 * cse.c: Use it.
32797 * bt-load.c: Likewise.
32798 * combine.c: Likewise.
32799 * df-scan.c: Likewise.
32800 * sched-deps.c: Likewise.
32801 * config/s390/s390.c: Likewise.
32802 * config/m32r/m32r.c: Likewise.
32803 * config/rs6000/spe.md: Likewise.
32804 * config/rs6000/rs6000.c: Likewise.
32805 * config/pa/pa.c: Likewise.
32806 * config/stormy16/stormy16.c: Likewise.
32807 * config/cris/cris.c: Likewise.
32808 * config/arc/arc.md: Likewise.
32809 * config/arc/arc.c: Likewise.
32810 * config/sh/sh.md: Likewise.
32811 * config/sh/sh.c: Likewise.
32812 * config/frv/frv.c: Likewise.
32813
32814 2015-01-05 Jakub Jelinek <jakub@redhat.com>
32815
32816 PR sanitizer/64265
32817 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
32818 call as cleanup of the whole body.
32819 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
32820 * tsan.c (replace_func_exit): New function.
32821 (instrument_func_exit): Moved earlier.
32822 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
32823 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
32824 been found.
32825 (tsan_pass): Don't call instrument_func_exit.
32826 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
32827 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
32828 inlining.
32829
32830 PR sanitizer/64344
32831 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
32832 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
32833 it to libubsan handler instead of EXPR. Fold comparisons earlier,
32834 if the result is integer_zerop, return NULL_TREE.
32835 * convert.c (convert_to_integer): Pass expr as ARG.
32836
32837 PR tree-optimization/64465
32838 * tree-inline.c (redirect_all_calls): During inlining
32839 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
32840 changed the stmt to a non-throwing call.
32841
32842 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
32843
32844 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
32845 etc markup throughout the file.
32846
32847 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
32848
32849 Enable experimental TSAN support for Ada.
32850 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
32851
32852 2015-01-05 Jakub Jelinek <jakub@redhat.com>
32853
32854 PR tree-optimization/64494
32855 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
32856 clear SSA_NAME_ANTI_RANGE_P flag.
32857
32858 2015-01-05 Marek Polacek <polacek@redhat.com>
32859
32860 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
32861
32862 2015-01-05 Jakub Jelinek <jakub@redhat.com>
32863
32864 Update copyright years.
32865
32866 * gcc.c (process_command): Update copyright notice dates.
32867 * gcov-dump.c: Ditto.
32868 * gcov.c: Ditto.
32869 * doc/cpp.texi: Bump @copying's copyright year.
32870 * doc/cppinternals.texi: Ditto.
32871 * doc/gcc.texi: Ditto.
32872 * doc/gccint.texi: Ditto.
32873 * doc/gcov.texi: Ditto.
32874 * doc/install.texi: Ditto.
32875 * doc/invoke.texi: Ditto.
32876
32877 * auto-profile.c, auto-profile.h: Fix up Copyright line.
32878
32879 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
32880
32881 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
32882 verb tense, etc.
32883 ([-fvtable-verify], [-fvtv-debug]): Likewise.
32884 ([-Wabi]): Likewise.
32885 ([-fmessage-length]): Likewise.
32886 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
32887 ([-Wno-discarded-qualifiers]): Likewise.
32888 ([-Wnodiscarded-array-qualifiers]): Likewise.
32889 ([-Wno-virtual-move-assign]): Likewise.
32890 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
32891 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
32892 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
32893 ([-fsanitize-undefined-trap-on-error]): Likewise.
32894 ([-floop-interchange]): Likewise.
32895 ([-ftree-coalesce-inlined-vars]): Likewise.
32896 ([-fvect-cost-model]): Likewise.
32897 ([-flto]): Likewise.
32898 ([--param]): Likewise.
32899 (Spec Files): Likewise.
32900 ([-mstrict-align]): Likewise.
32901 ([-mfix-cortex-a53-835769]): Likewise.
32902 ([-march], [-mtune]): Likewise.
32903 ([-mpic-register]): Likewise.
32904 ([-munaligned-access]): Likewise.
32905 ([-msp8]): Likewise.
32906 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
32907 (AVR Built-in Macros): Likewise.
32908 ([-mpreferred-stack-boundary]): Likewise.
32909 ([-mtune-crtl]): Likewise.
32910 ([-mashf]): Likewise.
32911 ([-mmcu=]): Likewise.
32912 ([-minrt]): Likewise.
32913 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
32914 ([-mupper-regs]): Likewise.
32915 ([-matomic-model]): Likewise.
32916 ([-mdiv]): Likewise.
32917 ([-mzdcbranch]): Likewise.
32918 ([-mdisable-callt]): Likewise.
32919 ([-msoft-float]): Likewise.
32920 ([-m8byte-align]): Likewise.
32921 ([-fstack-reuse]): Likewise.
32922
32923 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
32924
32925 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
32926 Fix markup, light copy-editing.
32927 ([-fauto-profile]): Rewrite to fix formatting and content
32928 problems.
32929
32930 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
32931
32932 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
32933 Copy-edit description.
32934 ([-fisolate-erroneous-paths-attribute]): Likewise.
32935 * common.opt (fisolate-erroneous-paths-dereference):
32936 Copy-edit description.
32937 (fisolate-erroneous-paths-attribute): Likewise.
32938
32939 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
32940
32941 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
32942 tidy grammar.
32943
32944 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
32945
32946 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
32947 ([-fvtv-debug]): Likewise.
32948 ([-Wc++-compat]): Likewise.
32949 ([-Wc++11-compat]): Likewise.
32950 ([-Wc++14-compat]): Likewise.
32951 ([-Wno-sized-deallocation]): Likewise.
32952 ([-femit-class-debug-always]): Likewise.
32953 ([-femit-struct-debug-detailed]): Likewise.
32954 ([-fno-keep-inline-dllexport]): Likewise.
32955 ([-fira-algorithm]): Likewise.
32956 ([-fira-region]): Likewise.
32957 ([-flra-remat]): Likewise.
32958 ([-fipa-ra]): Likewise.
32959 ([-fhoist-adjacent-loads]): Likewise.
32960 ([-fisolate-erroneous-paths-dereference]): Likewise.
32961 ([-fisolate-erroneous-paths-attribute]): Likewise.
32962 ([-ftree-switch-conversion]): Likewise.
32963 ([-ftree-tail-merge]): Likewise.
32964 ([-ftree-loop-if-convert]): Likewise.
32965 ([-ftree-loop-if-convert-stores]): Likewise.
32966 ([-ftree-loop-distribution]): Likewise.
32967 ([-ftree-loop-distribute-patterns]): Likewise.
32968 ([-flto-compression-level]): Likewise.
32969 ([-flto-report]): Likewise.
32970 ([-flto-report-wpa]): Likewise.
32971 ([-fuse-linker-plugin]): Likewise.
32972 ([-mfix-cortex-a53-835769]): Likewise.
32973 ([-mno-fix-cortex-a53-835769]): Likewise.
32974 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
32975 explicit listing; add a note to the discussion indicating they
32976 exist. Reorder table to group similar options. Add missing
32977 @opindex entries. Add @need commands throughout the table to
32978 allow it to be split across multiple pages.
32979 ([-m8bit-idiv]): Fix @opindex.
32980 ([-mavx256-split-unaligned-load]): Likewise.
32981 ([-mavx256-split-unaligned-store]): Likewise.
32982 ([-mstack-protector-guard]): Likewise.
32983 ([-mcpu=]): Likewise.
32984 ([-mcpu]): Likewise.
32985 ([-mpointer-size=]): Likewise.
32986
32987 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
32988
32989 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
32990 instead of `m' constraint. Likewise for unnamed movb comparison
32991 patterns using reg_before_reload_operand predicate.
32992 * config/pa/predicates.md (reg_before_reload_operand): Tighten
32993 predicate to reject register index and LO_SUM DLT memory forms
32994 after reload.
32995
32996 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
32997
32998 * doc/invoke.texi (Option Summary): Fix spelling of
32999 -fdevirtualize-at-ltrans.
33000 ([-fdevirtualize]): Fix markup.
33001 ([-fdevirtualize-speculatively]): Fix typo.
33002 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
33003 implementor-speaky.
33004 * common.opt (fdevirtualize-at-ltrans): Likewise.
33005 * ipa-devirt.c: Fix typos in comments throughout the file.
33006 (ipa_devirt): Fix typos in format strings for dump output.
33007
33008 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
33009
33010 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
33011 discussion of defaults, light copy-editing.
33012
33013 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
33014
33015 * tsan.c (instrument_expr): corrected previous checkin.
33016
33017 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
33018
33019 Instrument bit field and unaligned accesses for TSAN.
33020 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
33021 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
33022 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
33023 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
33024 unaligned memory regions.
33025
33026 2015-01-01 Anthony Green <green@moxielogic.com>
33027
33028 * config/moxie/predicates.md (moxie_general_movsrc_operand):
33029 Restrict move source register offsets to 16 bits.
33030 \f
33031 Copyright (C) 2015 Free Software Foundation, Inc.
33032
33033 Copying and distribution of this file, with or without modification,
33034 are permitted in any medium without royalty provided the copyright
33035 notice and this notice are preserved.