re PR target/65710 (Thumb1 ICE caused by no register to spill)
[gcc.git] / gcc / ChangeLog
1 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
2
3 PR target/65710
4 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
5 Print bad_spills_num and insn_pseudos_num.
6
7 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8
9 PR target/65694
10 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
11 when creating +1 values for SImode.
12
13 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
14
15 PR target/65729
16 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
17 assert.
18
19 2015-04-10 Jakub Jelinek <jakub@redhat.com>
20 Iain Sandoe <iain@codesourcery.com>
21
22 PR target/65351
23 * configure: Regenerate.
24
25 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
26
27 PR target/65671
28 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
29
30 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
31
32 * doc/contrib.texi (Contributors): Add John Marino.
33
34 2015-04-09 Jakub Jelinek <jakub@redhat.com>
35
36 PR tree-optimization/65709
37 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
38 TREE_TYPE (TREE_TYPE (t)).
39
40 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
41
42 PR target/65710
43 * lra-int.h (lra_bad_spill_regno_start): New.
44 * lra.c (lra_bad_spill_regno_start): New.
45 (lra): Set up lra_bad_spill_regno_start. Set up
46 lra_constraint_new_regno_start unconditionally.
47 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
48 spill preferences.
49
50 2015-04-09 Marek Polacek <polacek@redhat.com>
51 Jakub Jelinek <jakub@redhat.com>
52
53 PR middle-end/65554
54 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
55 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
56 of STRIP_NOPS.
57
58 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
59
60 PR rtl-optimization/65693
61 * combine.c (is_parallel_of_n_reg_sets): Move outside of
62 #ifndef HAVE_cc0.
63
64 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
65
66 PR target/65296
67 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
68 device specs file if "device-specs%s" didn't resolve to a path.
69
70 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
71
72 PR target/65676
73 * config/i386/i386.c (fixup_modeless_constant): New.
74 (ix86_expand_args_builtin): Fixup modeless constant operand.
75 (ix86_expand_round_builtin): Ditto.
76 (ix86_expand_special_args_builtin): Ditto.
77 (ix86_expand_builtin): Ditto.
78
79 2015-04-09 Jakub Jelinek <jakub@redhat.com>
80
81 PR target/65693
82 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
83 any pow2 integer in between 2 and 0x80000000U inclusive.
84
85 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
86
87 PR rtl-optimization/65693
88 * combine.c (is_parallel_of_n_reg_sets): Change first argument
89 from an rtx_insn * to an rtx.
90 (try_combine): Adjust both callers. Use it once more.
91
92 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
93
94 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
95 (chkp_make_static_const_bounds): Search existing
96 symbol by assembler name. Use make_decl_one_only.
97 (chkp_get_zero_bounds_var): Remove node search which
98 is now performed in chkp_make_static_const_bounds.
99 (chkp_get_none_bounds_var): Likewise.
100
101 2015-04-08 Michael Witten <mfwitten@gmail.com>
102
103 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
104 to an example.
105
106 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
107
108 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
109
110 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
111
112 * doc/extend.texi (__sync Builtins): Fix grammar.
113
114 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
115
116 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
117
118 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
119
120 * varasm.c (emit_local): Move definition of align.
121
122 2015-04-08 Julian Brown <julian@codesourcery.com>
123
124 * config/nvptx/mkoffload.c (process): Support variable mapping.
125
126 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
127
128 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
129 alpha_links **.
130 (alpha_write_one_linkage): Correct typo.
131
132 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
133
134 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
135
136 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
137
138 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
139
140 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
141
142 * tree-chkp.h (chkp_insert_retbnd_call): New.
143 * tree-chkp.c (chkp_insert_retbnd_call): New.
144 * ipa-split.c (insert_bndret_call_after): Remove.
145 (split_function): Use chkp_insert_retbnd_call.
146 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
147 bounds for instrumented functions.
148
149 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
150
151 PR ipa/65540
152 * calls.c (initialize_argument_information): When producing tail
153 call also turn SSA_NAMES passed by references to original PARM_DECLs
154
155 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
156
157 PR target/65648
158 * lra-remat.c (do_remat): Process input and non-input insn
159 registers separately.
160
161 2015-04-07 Jakub Jelinek <jakub@redhat.com>
162
163 PR debug/65678
164 * valtrack.c (debug_lowpart_subreg): New function.
165 (dead_debug_insert_temp): Use it.
166
167 PR middle-end/65680
168 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
169 into signed HOST_WIDE_INT the same as negative bit_offset.
170
171 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
172
173 * ipa-comdats.c (ipa_comdats): Visit all thunks
174 to set proper comdat group.
175
176 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
177
178 PR target/65489
179 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
180 on constants for NEON VSTRUCT modes.
181
182 2015-04-07 Jakub Jelinek <jakub@redhat.com>
183 Iain Sandoe <iain@codesourcery.com>
184
185 PR target/65351
186 * configure: Regenerate.
187
188 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
189
190 PR target/65614
191 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
192 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
193 that LFD is used to load double constants instead of LFS. Add
194 defaults for all costs structures. Add comments for missing
195 initialization fields.
196 (size32_cost): Likewise.
197 (size64_cost): Likewise.
198 (rs64a_cost): Likewise.
199 (mpccore_cost): Likewise.
200 (ppc403_cost): Likewise.
201 (ppc405_cost): Likewise.
202 (ppc440_cost): Likewise.
203 (ppc476_cost): Likewise.
204 (ppc601_cost): Likewise.
205 (ppc603_cost): Likewise.
206 (ppc604_cost): Likewise.
207 (ppc604e_cost): Likewise.
208 (ppc620_cost): Likewise.
209 (ppc630_cost): Likewise.
210 (ppccell_cost): Likewise.
211 (ppc750_cost): Likewise.
212 (ppc7450_cost): Likewise.
213 (ppc8540_cost): Likewise.
214 (ppce300c2c3_cost): Likewise.
215 (ppce500mc_cost): Likewise.
216 (ppce500mc64_cost): Likewise.
217 (ppce5500_cost): Likewise.
218 (ppce6500_cost): Likewise.
219 (titan_cost): Likewise.
220 (power4_cost): Likewise.
221 (power6_cost): Likewise.
222 (power7_cost): Likewise.
223 (power8_cost): Likewise.
224 (ppca2_cost): Likewise.
225 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
226
227 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
228 instead of XXLOR to copy SFmode to clear out dirty bits created
229 when SFmode denormals are generated.
230 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
231 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
232
233 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
234
235 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
236 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
237 * config/aarch64/aarch64-tune.md: Regenerate.
238
239 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
240
241 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
242 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
243 * config/arm/arm-cores.def (exynos-m1): New core.
244 * config/arm/arm-tune.md: Regenerate.
245 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
246 * config/arm/bpabi.h: Likewise.
247
248 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
249
250 * ipa-cp (set_single_call_flag): Remove too
251 restrictive assert.
252
253 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
254
255 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
256 GOMP_offload_unregister from the destructor.
257
258 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
259
260 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
261 flags for instrumentation thunk.
262 (chkp_produce_thunks): Likewise.
263
264 2015-04-05 Martin Liska <mliska@suse.cz>
265
266 PR ipa/65665
267 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
268 has computed data structure.
269 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
270
271 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
272
273 * invoke.texi (inline-unit-growth): Increase growth to 20%
274 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
275
276 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
277
278 PR target/65647
279 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
280 value checking.
281 (lra_rematerialization_iter): New.
282 * lra.c (lra): Initialize lra_rematerialization_iter.
283 Stop updating lra_constraint_new_regno_start after switching of
284 inheritance and rematerialization.
285 * lra-remat.c (lra_rematerialization_iter): New.
286 (lra_remat): Add printing pass iteration. Do rematerialization
287 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
288
289 2015-04-04 Richard Biener <rguenther@suse.de>
290
291 PR tree-optimization/64909
292 PR tree-optimization/65660
293 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
294 to take a cost vector for scalar iteration cost.
295 (vect_get_single_scalar_iteration_cost): Likewise.
296 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
297 Compute the scalar iteration cost into a cost vector.
298 (vect_get_known_peeling_cost): Use the scalar cost vector to
299 account for the cost of the peeled iterations.
300 (vect_estimate_min_profitable_iters): Likewise.
301 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
302 Likewise.
303
304 2015-04-04 Alan Modra <amodra@gmail.com>
305
306 PR target/65576
307 PR target/65240
308 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
309 0.0 constant unless TARGET_VSX.
310 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
311 alternative.
312
313 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
314
315 PR ipa/65654
316 * ipa-inline-transform.c (inline_call): Skip sanity check to work
317 around the ICE
318
319 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
320
321 PR ipa/65655
322 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
323 speculative indirect edges to avoid ordering issue.
324
325 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
326
327 PR ipa/65076
328 * ipa-inline.c (edge_badness): Add combined size to the denominator.
329
330 2015-04-03 Jakub Jelinek <jakub@redhat.com>
331
332 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
333 TYPE_ARTIFICIAL on the .omp_data* types.
334
335 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
336
337 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
338 instrumentation thunks.
339
340 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
341
342 * config/i386/i386.c (ix86_expand_call): Avoid nested
343 PARALLEL in returned call value.
344
345 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
346
347 * lto-cgraph.c (input_cgraph_1): Always link instrumented
348 assembler name with original one.
349
350 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
351
352 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
353
354 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
355
356 Revert parts of r216820.
357 * config/i386/i386.md (movqi_internal): Correct type calculation
358 for alternatives 3 and 5.
359
360 2015-04-02 Jakub Jelinek <jakub@redhat.com>
361
362 PR preprocessor/61977
363 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
364 predefine __vector/__bool/__pixel macros nor context sensitive
365 macros for CLK_ASM.
366 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
367
368 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
369
370 * config/pa/pa.c (pa_output_move_double): Directly handle register
371 indexed memory operand. Simplify handling of scaled register indexed
372 memory operands.
373
374 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
375
376 PR driver/65444
377 * config/i386/linux-common.h (MPX_SPEC): New.
378 (CHKP_SPEC): Add MPX_SPEC.
379 * doc/invoke.texi (-fcheck-pointer-boudns): Document
380 possible issues with '-z bndplt' support in linker.
381
382 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
383
384 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
385 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
386 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
387 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
388 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
389
390 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
391
392 * config/i386/sync.md (UNSPEC_MOVA): Remove.
393 (atomic_load<mode>): Change operand 0 predicate to
394 nonimmediate_operand and fix up the destination when needed.
395 Use UNSPEC_LDA.
396 (atomic_loaddi_fpu): Use UNSPEC_LDA.
397 (atomic_store<mode>): Change operand 1 predicate to
398 nonimmendate_operand and move the source to register when needed.
399 Use UNSPEC_STA.
400 (atomic_store<mode>_1): Use UNSPEC_STA.
401 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
402 Fix moves from memory operand. Use UNSPEC_STA.
403
404 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
405
406 * expmed.c (strict_volatile_bitfield_p): Check that the access will
407 not cross a MODESIZE boundary.
408 (store_bit_field, extract_bit_field): Added assertions in the
409 strict volatile bitfields code path.
410
411 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
412
413 PR target/65624
414 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
415 Increase args array size by one to avoid buffer overflow.
416
417 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
418
419 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
420 split_part.
421 * ipa-inline.c (edge_badness): Add wrapper penalty.
422 (sum_callers): Move up.
423 (inline_small_functions): Set single_caller.
424 * ipa-inline.h (inline_summary): Add single_caller.
425 * ipa-split.c (split_function): Set split_part.
426 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
427 * cgraph.h (cgraph_node): Add split_part.
428
429 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
430
431 PR target/58945
432 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
433 Do not split operands 0 and operands 2 to halfmode.
434 (atomic_compare_and_swap<mode>): Update for
435 atomic_compare_and_swap<dwi>_doubleword changes.
436
437 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
438
439 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
440 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
441 no caching is done.
442
443 2015-03-31 Martin Liska <mliska@suse.cz>
444
445 PR ipa/65557
446 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
447 has already filled up function summary.
448 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
449
450 2015-03-31 Richard Biener <rguenther@suse.de>
451
452 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
453 of types.
454
455 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
456
457 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
458 nested functions.
459 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
460 (s390_asm_output_function_label): Adapt to new signature of
461 s390_function_num_hotpatch_hw
462 Optimise the code generating assembler output.
463 Add comments to assembler file.
464
465 2015-03-31 Richard Biener <rguenther@suse.de>
466
467 PR middle-end/65626
468 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
469 of the noreturn call so it is last and cleanup_control_flow_bb
470 can do the CFG part.
471
472 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
473
474 PR target/65531
475 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
476 same_comdat_group for external symbols.
477 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
478 infinite same_comdat_group traversal loop.
479
480 2015-03-31 Jakub Jelinek <jakub@redhat.com>
481
482 PR plugins/61176
483 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
484 automatically to $headers.
485
486 2015-03-30 Jakub Jelinek <jakub@redhat.com>
487
488 PR ipa/65610
489 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
490 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
491 function.
492 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
493 Use it.
494 * ipa-prop.c (param_type_may_change_p): Likewise.
495 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
496 (remove_unused_scope_block_p): Add in_ctor_dtor_block
497 argument. Before inlining, preserve
498 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
499 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
500 recursive calls.
501 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
502
503 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
504
505 PR ipa/65076
506 * ipa-inline.c (edge_badness): Base denominator on callee's
507 grwoth squared.
508
509 2015-03-27 Martin Jambor <mjambor@suse.cz>
510
511 PR ipa/65478
512 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
513 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
514 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
515 node_calling_single_call.
516 * ipa-cp.c (count_callers): New function.
517 (set_single_call_flag): Likewise.
518 (initialize_node_lattices): Count callers and set single_flag_call if
519 necessary.
520 (incorporate_penalties): New function.
521 (good_cloning_opportunity_p): Use it, dump new flags.
522 (propagate_constants_topo): Set node_within_scc flag if appropriate.
523 * doc/invoke.texi (ipa-cp-recursion-penalty,
524 ipa-cp-single-call-pentalty): Document.
525
526 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
527
528 PR ipa/65588
529 * symtab.c (symtab_node::get_partitioning_class): Register vars
530 are duplicated.
531 * varpool.c (symbol_table::output_variables) Do not assemble unefined
532 decls for non-symbols.
533
534 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
535
536 PR target/65248
537 * output.h (default_binds_local_p_2): New.
538 * varasm.c (default_binds_local_p_2): Renamed to ...
539 (default_binds_local_p_3): This. Don't return true on protected
540 data symbol if protected data may be external.
541 (default_binds_local_p): Use default_binds_local_p_3.
542 (default_binds_local_p_1): Likewise.
543 (default_binds_local_p_2): New.
544 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
545 default_binds_local_p_2 if TARGET_MACHO is undefined.
546
547 2015-03-27 Jakub Jelinek <jakub@redhat.com>
548
549 PR target/65593
550 * config/i386/i386.c (legitimize_pic_address): If base
551 is SYMBOL_REF or LABEL_REF using %rip addressing, force
552 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
553
554 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
555
556 PR target/65531
557 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
558 comdat groups.
559
560 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
561
562 PR ipa/65600
563 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
564 of optimized out indirect call.
565 (redirect_to_unreachable): Always build symbol table node for
566 BUILT_IN_UNREACHABLE
567
568 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
569
570 PR target/65407
571 * ira-costs.c (record_reg_classes): Process all constraint string
572 containing 0-9.
573
574 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
575
576 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
577 memory_operand.
578
579 PR target/65052
580 * config/c6x/constraints.md (S3): New constraint.
581 * config/c6x/c6x.md (real_jump): Use it.
582
583 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
584
585 PR middle-end/65595
586 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
587 do redirection if the call is not optimized out.
588
589 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
590
591 PR target/65495
592 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
593 (fchkp-check-incomplete-type): Add LTO.
594 (fchkp-zero-input-bounds-for-main): Likewise.
595 (fchkp-first-field-has-own-bounds): Likewise.
596 (fchkp-narrow-bounds): Likewise.
597 (fchkp-narrow-to-innermost-array): Likewise.
598 (fchkp-use-static-bounds): Likewise.
599 (fchkp-use-static-const-bounds): Likewise.
600 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
601
602 2015-03-27 Marek Polacek <polacek@redhat.com>
603
604 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
605
606 2015-03-27 Marek Polacek <polacek@redhat.com>
607
608 PR sanitizer/65583
609 * ubsan.c (ubsan_create_edge): New function.
610 (instrument_bool_enum_load): Call it.
611 (instrument_nonnull_arg): Likewise.
612 (instrument_nonnull_return): Likewise.
613 (instrument_object_size): Likewise.
614
615 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
616
617 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
618 auto_vec.
619
620 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
621
622 PR lto/65536
623 * lto-streamer.h (class lto_location_cache): New.
624 (struct data_in): Add location_cache.
625 (lto_input_location): Update prototype.
626 (stream_input_location_now): New.
627 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
628 pointer to location.
629 (stream_input_location): Update.
630 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
631 (warn_odr): Apply location cache before warning.
632 (lto_input_location): Update prototype.
633 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
634 Use stream_input_location_now.
635 * lto-streamer-in.c (lto_location_cache::current_cache): New static
636 variable.
637 (lto_location_cache::cmp_loc): New function.
638 (lto_location_cache::apply_location_cache): New function.
639 (lto_location_cache::accept_location_cache): New function.
640 (lto_location_cache::revert_location_cache): New function.
641 (lto_location_cache::input_location): New function.
642 (lto_input_location): Do location caching.
643 (stream_input_location_now): New function.
644 (input_eh_region, input_struct_function_base): Use
645 stream_input_location_now.
646 (lto_data_in_create): use new.
647 (lto_data_in_delete): Use delete.
648 * tree-streamer-in.c (unpack_ts_block_value_fields,
649 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
650 lto_input_ts_exp_tree_pointers): Update for cached location api.
651
652 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
653
654 PR ipa/65076
655 * passes.def: Add pass_nothrow.
656 * ipa-pure-const.c: (pass_data_nothrow): New.
657 (pass_nothrow): New.
658 (pass_nothrow::execute): New.
659 (make_pass_nothrow): New.
660 * tree-pass.h (make_pass_nothrow): Declare.
661
662 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
663
664 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
665 edge to change by speculation resolution or redirection.
666 (edge_set_predicate): Likewise.
667 (inline_summary_t::duplicate): Likewise.
668 (remap_edge_summaries): Likewise.
669
670 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
671
672 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
673 New macros.
674 (can_inline_edge_p): Relax option matching for always inline functions.
675
676 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
677
678 PR target/65561
679 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
680 Check operand 4 and operand 0 for equality.
681 (avx512f_vextract<shuffletype>32x4_1_maskm):
682 Check operand 6 and operand 0 for equality.
683 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
684 for equality.
685 (vec_extract_hi_<mode>_maskm): Ditto.
686
687 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
688
689 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
690 dead calls back to live.
691 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
692 cross check to ...
693 (cgraph_node::verify_node): ... here; verify only callee edges,
694 not caller.
695 * cif-code.def (CILK_SPAWN): New code.
696
697 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
698
699 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
700 (edge_set_predicate): Use it to mark unreachable edges.
701 (inline_summary_t::duplicate): Remove unnecesary code.
702 (remap_edge_summaries): Likewise.
703 (dump_inline_summary): Report contains_cilk_spawn.
704 (compute_inline_parameters): Compute contains_cilk_spawn.
705 (inline_read_section, inline_write_summary): Stream
706 contains_cilk_spawn.
707 * ipa-inline.c (can_inline_edge_p): Do not touch
708 DECL_STRUCT_FUNCTION that may not be available;
709 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
710 remove check for callee_fun->can_throw_non_call_exceptions and
711 replace it by optimization attribute check; check for flag_exceptions.
712 * ipa-inline-transform.c (inline_call): Maintain
713 DECL_FUNCTION_PERSONALITY
714 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
715
716 2015-03-26 Jakub Jelinek <jakub@redhat.com>
717
718 PR tree-optimization/65551
719 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
720 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
721
722 2015-03-26 Richard Biener <rguenther@suse.de>
723
724 PR middle-end/65555
725 * tree-cfg.c (verify_gimple_call): Do not require a call to
726 have no LHS if it wasn't recognized as control altering yet.
727
728 2015-03-26 Jakub Jelinek <jakub@redhat.com>
729
730 PR tree-optimization/64715
731 * passes.def: Add another instance of pass_object_sizes before ccp1.
732 * tree-object-size.c (pass_object_sizes::execute): In
733 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
734 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
735 __bos result and the computed constant. Remove redundant
736 checks, obsoleted by gimple_call_builtin_p test.
737
738 * var-tracking.c (variable_tracking_main_1): Don't track
739 variables for targetm.no_register_allocation targets.
740
741 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
742
743 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
744 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
745
746 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
747
748 PR target/65569
749 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
750 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
751 0.0 is correctly setup.
752 (extenddftf2_internal): Likewise.
753
754 2015-03-25 Sebastian Pop <s.pop@samsung.com>
755
756 PR tree-optimization/65177
757 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
758 (bb_in_bbs): New.
759 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
760 edges not adjacent on the path to the original code.
761
762 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
763
764 PR bootstrap/65537
765 * doc/install.texi (Building a native compiler): Document new
766 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
767 configuration assumes that the host supports the linker plugin.
768
769 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
770
771 PR target/65508
772 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
773 chain for generated call.
774
775 2015-03-25 Richard Biener <rguenther@suse.de>
776
777 * passes.c (pass_manager::execute_early_local_passes): Guard
778 execution of pass_chkp_instrumentation_passes with
779 flag_check_pointer_bounds.
780 (pass_chkp_instrumentation_passes::gate): Likewise.
781
782 2015-03-25 Martin Liska <mliska@suse.cz>
783
784 PR tree-optimization/65538
785 * symbol-summary.h (function_summary::~function_summary):
786 Relese memory for allocated summaries.
787 (function_summary::release): New function.
788
789 2015-03-25 Jakub Jelinek <jakub@redhat.com>
790
791 PR lto/65515
792 * lto-streamer-out.c (DFS::worklist): New struct.
793 (DFS::worklist_vec): New data member.
794 (DFS::next_dfs_num): Remove.
795 (DFS::DFS): Rewritten using worklist instead of recursion,
796 using most of code from DFS::DFS_write_tree.
797 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
798 pass it to DFS_write_tree calls.
799 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
800 quick initial checks push it into worklist_vec and return.
801
802 2015-03-25 Richard Biener <rguenther@suse.de>
803
804 PR middle-end/65519
805 * genmatch.c (expr::gen_transform): Re-write to avoid
806 using gimple_build.
807
808 2015-03-25 Bin Cheng <bin.cheng@arm.com>
809
810 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
811
812 2015-03-25 Bin Cheng <bin.cheng@arm.com>
813
814 * config/arm/arm.opt (print_tune_info): New option.
815 * config/arm/arm.c (arm_print_tune_info): New function.
816 (arm_file_start): Call arm_print_tune_info.
817 * config/arm/arm-protos.h (struct tune_params): Add comment.
818 * doc/invoke.texi (@item -mprint-tune-info): New item.
819 (-mtune): mention it in ARM Option Summary.
820
821 2015-03-25 DJ Delorie <dj@redhat.com>
822
823 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
824 correct clause.
825
826 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
827 Martin Liska <mliska@suse.cz>
828
829 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
830 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
831 (sem_item::add_type): New function.
832 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
833 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
834 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
835 (sem_function::equals_wpa): Fix typo.
836 * ipa-icf.h (sem_item::add_type): New function.
837 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
838 order.
839
840 2015-03-24 Jakub Jelinek <jakub@redhat.com>
841
842 PR tree-optimization/65533
843 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
844 with swapped operands, call vect_free_slp_tree on
845 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
846 vector.
847
848 2015-03-24 Richard Biener <rguenther@suse.de>
849
850 PR middle-end/65517
851 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
852 for fixup if necessary.
853
854 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
855
856 * doc/extend.texi (Function Attributes): Add @cindex entries
857 for all attributes and regularize their format. Delete text
858 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
859 information about "eightbit_data", "tiny_data", and "model"
860 variable attributes to the Variable Attributes section. Fix
861 some obvious typos and copy-editing issues.
862 (Variable Attributes, Type Attributes): Likewise add/fix
863 @cindex entries for all attributes.
864
865 2015-03-23 Jakub Jelinek <jakub@redhat.com>
866
867 PR target/65523
868 * tree-chkp.c (chkp_build_returned_bound): Ignore
869 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
870
871 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
872
873 PR target/65505
874 * config/sh/predicates.md (simple_mem_operand,
875 displacement_mem_operand): Add test for reg.
876 (short_displacement_mem_operand): Test for displacement_mem_operand
877 before invoking sh_disp_addr_displacement.
878 * config/sh/constraints.md (Sdd, Sra): Simplify.
879 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
880 Remove redundant displacement_mem_operand tests.
881
882 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
883
884 PR target/65296
885 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
886 the same -mmcu=MCU more than once.
887
888 2015-03-23 Jakub Jelinek <jakub@redhat.com>
889
890 PR bootstrap/65522
891 * ipa-devirt.c: Remove duplicate demangle.h include.
892
893 PR target/65504
894 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
895 on the pseudo.
896 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
897 REG_POINTER on *destptr after adjusting it for prologue size.
898
899 PR ipa/65521
900 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
901 ultimate_alias_target ()->order ints instead of
902 ultimate_alias_target () pointers.
903
904 2015-03-23 Richard Biener <rguenther@suse.de>
905
906 PR tree-optimization/65518
907 * tree-vect-stmts.c (vectorizable_load): Reject single-element
908 interleaving cases we generate absymal code for.
909
910 2015-03-23 Richard Biener <rguenther@suse.de>
911
912 PR tree-optimization/65494
913 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
914 matches here.
915 (vect_analyze_slp_instance): But do that here, always and once.
916
917 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
918
919 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
920 adding T or multiplying by T+1 and subracting T.
921
922 2015-03-22 Jeff Law <law@redhat.com>
923
924 PR rtl-optimization/64317
925 * Makefile.in (OBJS): Add gcse-common.c
926 * gcse.c: Include gcse-common.h
927 (struct modify_pair_s): Move structure definition to gcse-common.h
928 (compute_transp): Move function to gcse-common.c.
929 (canon_list_insert): Similarly.
930 (record_last_mem_set_info): Break out some code and put it into
931 gcse-common.c. Call into the new common code.
932 (compute_local_properties): Pass additional arguments to compute_transp.
933 * postreload-gcse.c: Include gcse-common.h and df.h
934 (modify_mem_list_set, blocks_with_calls): New variables.
935 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
936 (get_bb_avail_insn): Pass in the expression index too.
937 (alloc_mem): Allocate memory for the new bitmaps and lists.
938 (free_mem): Free memory for the new bitmaps and lists.
939 (insert_expr_in_table): Record a bitmap index for each entry we
940 add to the table.
941 (record_last_mem_set_info): Call into common code in gcse-common.c.
942 (get_bb_avail_insn): If no available insn was found in the requested
943 BB. If BB has a single predecessor, see if the expression is
944 transparent in BB and available in that single predecessor.
945 (compute_expr_transp): New wrapper for compute_transp.
946 (eliminate_partially_redundant_load): Pass expression's bitmap_index
947 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
948 (gcse_after_reload_main): If there are elements in the hash table,
949 then compute transparency for all the elements in the hash table.
950 * gcse-common.h: New file.
951 * gcse-common.c: New file.
952
953 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
954
955 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
956 as an adjective.
957 (System Headers): Likewise.
958 (Ifdef): Likewise.
959 (Traditional macros): Likewise.
960 (Invocation): Likewise.
961 (Option Index): Likewise.
962 * doc/cppopts.texi (-M): Likewise.
963 (-finput-charset): Likewise.
964 (--help): Likewise.
965 * doc.invoke.texi (AVR Options): Likewise.
966 (V850 Options): Likewise.
967
968 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
969
970 PR ipa/65475
971 * ipa-devirt.c: Include demangle.h
972 (odr_type_d): Add field rtti_broken.
973 (odr_subtypes_equivalent_p): Do not require name to match.
974 (compare_virtual_tables): Fix typo; if type already has ODR violation,
975 bypass the tests; be ready for function referneces in vtables that are
976 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
977 (warn_odr): Give up for nameless types.
978 (warn_types_mismatch): Report mismatch in mangled names;
979 report mismatch in anonymous namespaces; look into component types to
980 give useful error; report when mismatch is dragged in from other ODR
981 type.
982 (odr_types_equivalent_p): Match types for being polymorphic; avoid
983 duplicated diagnostics.
984 (add_type_duplicate): Reorder checks so more informative ones come
985 first; fix typo; do not output "the extra base is defined here" when
986 we did not warn.
987 (BINFO_N_BASE_BINFOS): Relax sanity check.
988
989 2015-03-22 Martin Liska <mliska@suse.cz>
990 Jakub Jelinek <jakub@redhat.com>
991
992 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
993 masks that can potentially include a builtin.
994 (ix86_add_new_builtins): Introduce fast filter for isa values
995 that cannot trigger builtin inclusion.
996
997 2015-03-22 Martin Liska <mliska@suse.cz>
998
999 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
1000 (sem_item::update_hash_by_local_refs): Likewise.
1001 (sem_variable::get_hash): Empty line is fixed.
1002 (sem_item_optimizer::execute): Include adding of hash references.
1003 (sem_item_optimizer::update_hash_by_addr_refs): New function.
1004 (sem_item_optimizer::build_hash_based_classes): Use local hash.
1005 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
1006 (sem_item::update_hash_by_local_refs): Likewise.
1007
1008 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
1009
1010 PR ipa/65502
1011 * ipa-comdats.c (enqueue_references): Walk through thunks.
1012 (ipa_comdats): Likewise.
1013 (set_comdat_group_1): New function.
1014
1015 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
1016
1017 PR ipa/65475
1018 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
1019 non-polymorphic
1020
1021 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
1022 Gerald Pfeifer <gerald@pfeifer.com>
1023
1024 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
1025
1026 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
1027 Sandra Loosemore <sandra@codesourcery.com>
1028
1029 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
1030 function parameter declaration.
1031 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
1032 Update arguments to nios2_adjust_call_address().
1033 (sibcall_internal): Rename from *sibcall.
1034 (sibcall_value_internal): Rename from *sibcall_value.
1035 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
1036 (nios2_large_got_address): Add target temp reg parameter.
1037 (nios2_got_address): Adjust call to nios2_large_got_address, add
1038 force_reg around it.
1039 (nios2_load_pic_address): Add target temp reg parameter, replace call
1040 to nios2_got_address with corresponding code.
1041 (nios2_legitimize_constant_address): Update call to
1042 nios2_load_pic_address.
1043 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
1044 to use temp reg for PIC loading purposes.
1045 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
1046 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
1047 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
1048
1049 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
1050
1051 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
1052 usage of "the @option{...}".
1053 (-Wopenmp-simd): Likewise.
1054 (-fsanitize-recover): Likewise.
1055 (-fsanitize-undefined-trap-on-error): Likewise.
1056 (-flto): Likewise.
1057 (tracer-dynamic-coverage-feedback): Likewise.
1058 (reorder-block-duplicate-feedback): Likewise.
1059 (loop-unroll-jam-size): Likewise.
1060 (-B): Likewise.
1061 (-I-): Likewise.
1062 (-mabs=legacy): Likewise.
1063 (-mupper-regs-df): Likewise.
1064 (-mupper-regs-sf): Likewise.
1065 (-mpointers-to-nested-functions): Likewise.
1066
1067 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
1068
1069 * doc/extend.texi (Cilk Plus Builtins): Add markup.
1070
1071 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
1072
1073 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
1074 additional index entries and cross-references.
1075 (-fchkp-check-incomplete-type): Likewise.
1076 (-fchkp-first-field-has-own-bounds): Likewise.
1077 (-fchkp-narrow-to-innermost-array): Likewise.
1078 (-fchkp-use-fast-string-functions): Likewise.
1079 (-fchkp-use-nochk-string-functions): Likewise.
1080 (-fchkp-use-static-const-bounds): Likewise.
1081 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
1082 (-fchkp-instrument-marked-only): Likewise.
1083 (-fchkp-use-wrappers): Likewise.
1084 (-static-libmpx): Likewise.
1085 (-static-libmpxwrappers): Likewise.
1086 * doc/extend.texi (bnd_legacy): Likewise.
1087 (bnd_instrument): Likewise.
1088 (bnd_variable_size): Likewise.
1089 (Pointer Bounds Checker builtins): Likewise.
1090
1091 2015-03-21 Tom de Vries <tom@codesourcery.com>
1092
1093 PR tree-optimization/65458
1094 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
1095 * cgraph.h (cgraph_node): Add parallelized_function field.
1096 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
1097 (input_overwrite_node): Read parallelized_function field.
1098 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
1099 parallelized_function on cgraph_node for child_fn.
1100 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
1101 Remove include of gt-tree-parloops.h.
1102 (parallelized_functions): Remove static variable.
1103 (parallelized_function_p): Rewrite using parallelized_function field of
1104 cgraph_node.
1105 (create_loop_fn): Remove adding to parallelized_functions.
1106 * Makefile.in (GTFILES): Remove tree-parloops.c
1107
1108 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
1109
1110 PR rtl-optimization/64366
1111 * lra.c (lra_update_insn_regno_info): Consider regs in
1112 CALL_INSN_FUNCTION_USAGE memory.
1113
1114 2015-03-20 Richard Biener <rguenther@suse.de>
1115
1116 PR middle-end/64715
1117 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
1118 for type comparison and gcc_checking_assert.
1119 (chrec_fold_plus_poly_poly): Likewise.
1120 (chrec_fold_multiply_poly_poly): Likewise.
1121 (chrec_convert_1): Likewise.
1122 * gimplify.c (gimplify_expr): Remove premature folding of
1123 &X + CST to &MEM[&X, CST].
1124
1125 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
1126
1127 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
1128 already is final.
1129 (ipa_inline): Recompute inline_failed codes.
1130 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
1131 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
1132 CIF_FINAL_ERROR.
1133
1134 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
1135
1136 PR rtl-optimization/60851
1137 * recog.c (constrain_operands): Accept a pseudo register before reload
1138 for LRA enabled targets.
1139
1140 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
1141
1142 PR target/65240
1143 * config/rs6000/predicates.md (easy_fp_constant): Remove special
1144 -ffast-math handling that kept non-0 constants live in the RTL
1145 until reload. Remove logic testing the number of instructions it
1146 took to create a constant in a GPR that was never used, due to a
1147 test for soft-float earlier.
1148 (memory_fp_constant): Delete, no longer used.
1149
1150 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
1151 alternatives for loading non-0 constants into GPRs for hard
1152 floating point that is no longer needed due to changes in
1153 easy_fp_constant. Add support for loading 0.0 into GPRs.
1154 (mov<mode>_hardfloat32): Likewise.
1155 (mov<mode>_hardfloat64): Likewise.
1156 (mov<mode>_64bit_dm): Likewise.
1157 (movtd_64bit_nodm): Likewise.
1158 (pre-reload move FP constant define_split): Delete define_split,
1159 since it is no longer used.
1160 (extenddftf2_internal): Remove GHF constraints that are not valid
1161 for extenddftf2.
1162
1163 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
1164
1165 PR rtl-optimization/63491
1166 * lra-constraints.c (check_and_process_move): Use src instead of
1167 sreg. Remove some dead code.
1168
1169 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
1170
1171 PR ipa/65380
1172 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
1173 (sem_variable::merge): Likewise.
1174
1175 2015-03-19 Martin Liska <mliska@suse.cz>
1176
1177 PR ipa/65465
1178 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
1179 all fields of cgraph_thunk_info.
1180
1181 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
1182
1183 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
1184 clone instrumented thunks.
1185
1186 2015-03-19 Richard Biener <rguenther@suse.de>
1187
1188 Revert
1189 2015-03-10 Richard Biener <rguenther@suse.de>
1190
1191 PR middle-end/63155
1192 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
1193 * tree-ssa-coalesce.c: Include timevar.h.
1194 (attempt_coalesce): Handle graph being NULL.
1195 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
1196 Split out abnormal coalescing to ...
1197 (perform_abnormal_coalescing): ... this function.
1198 (coalesce_ssa_name): Perform abnormal coalescing without computing
1199 live/conflict.
1200 (verify_ssa_coalescing_worker): New function.
1201 (verify_ssa_coalescing): Likewise.
1202
1203 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1204 Jakub Jelinek <jakub@redhat.com>
1205
1206 PR sanitizer/65400
1207 * tsan.c (instrument_gimple): Clear tail call flag on
1208 calls.
1209
1210 2015-03-19 Jakub Jelinek <jakub@redhat.com>
1211
1212 PR sanitizer/65400
1213 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
1214 call in the return bb.
1215 (find_split_points): Add RETURN_BB argument, don't call
1216 find_return_bb.
1217 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
1218 if true append TSAN_FUNC_EXIT internal call after the call to
1219 the split off function.
1220 (execute_split_functions): Call find_return_bb here.
1221 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
1222 Adjust find_split_points and split_function calls.
1223
1224 2015-03-18 DJ Delorie <dj@redhat.com>
1225
1226 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
1227 (iorqi3_virt): Likewise.
1228
1229 2015-03-18 Tom de Vries <tom@codesourcery.com>
1230
1231 * tree-parloops.c (parallelize_loops): Make static.
1232 * tree-parloops.h (parallelize_loops): Remove extern declaration.
1233
1234 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
1235
1236 PR middle-end/64491
1237 Revert:
1238 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
1239
1240 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
1241 condition would be removed due to undefined behaviour.
1242
1243 2015-03-18 Martin Liska <mliska@suse.cz>
1244
1245 PR ipa/65432
1246 * cgraph.c (cgraph_node::get_create): Remove unnecessary
1247 xstrdup_for_dump wrapper.
1248 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
1249 sem_item::name.
1250 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
1251 with xstrdup_for_dump.
1252 (sem_variable::equals): Likewise.
1253 (sem_item_optimizer::read_section): Use symtab_node::name instead of
1254 sem_item::name.
1255 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
1256 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
1257 symtab_node::asm_name with xstrdup_for_dump.
1258 (congruence_class::dump): Use symtab_node::name instead of
1259 sem_item::name.
1260 * ipa-icf.h (symtab_node::name): Remove.
1261 (symtab_node::asm_name): Likewise.
1262
1263 2015-03-18 Jakub Jelinek <jakub@redhat.com>
1264
1265 PR tree-optimization/65450
1266 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
1267 function.
1268 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
1269 it instead of duplicate_ssa_name_ptr_info.
1270
1271 PR target/65222
1272 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
1273
1274 2015-03-18 Richard Biener <rguenther@suse.de>
1275
1276 * tree-data-ref.h (struct access_matrix): Remove.
1277 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
1278 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
1279 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
1280 (am_vector_index_for_loop): Likewise.
1281 (struct data_reference): Remove access_matrix member.
1282 (DR_ACCESS_MATRIX): Remove.
1283 (lambda_vector_new): Add comment.
1284 (lambda_matrix_new): Use XOBNEWVEC.
1285
1286 2015-03-18 Richard Biener <rguenther@suse.de>
1287
1288 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
1289 (pass_ch::execute): Cleanup the CFG only if we did sth.
1290 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
1291
1292 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1293
1294 * expmed.c (synth_mult): Use std::swap instead of manually
1295 swapping algorithms.
1296
1297 2015-03-18 Jakub Jelinek <jakub@redhat.com>
1298
1299 PR target/65078
1300 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
1301
1302 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
1303
1304 PR target/65296
1305 * config/avr/avr.opt (-nodevicelib): New option.
1306 * doc/invoke.texi (AVR Options): Document it.
1307 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
1308 libgcc.a, libc.a, libm.a.
1309 * config/avr/specs.h: Same.
1310 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
1311 which don't (directly) depend on the device. Print more help.
1312 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
1313 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
1314 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
1315 case of an error.
1316 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
1317 for specs file name.
1318 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
1319 * config/avr/avr-mcus.def: Adjust initializers and comments.
1320
1321 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
1322
1323 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
1324 DECL_ONE_ONLY to check if decl is one only.
1325 * ipa-split.c (consider_split): Limit splitt of one only functions.
1326
1327 2015-03-16 Jakub Jelinek <jakub@redhat.com>
1328
1329 PR tree-optimization/65427
1330 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
1331 functions.
1332 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
1333
1334 2015-03-16 Marek Polacek <polacek@redhat.com>
1335
1336 * cgraph.h (add_new_static_var): Remove declaration.
1337 * varpool.c (add_new_static_var): Remove function.
1338
1339 2015-03-16 Jakub Jelinek <jakub@redhat.com>
1340
1341 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
1342 instead of vec<tree> * with vec_alloc and release for args.
1343 Adjust all users.
1344
1345 PR middle-end/65431
1346 * omp-low.c (delete_omp_context): Only splay_tree_delete
1347 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
1348 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
1349
1350 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
1351
1352 PR sanitizer/64820
1353 * cfgexpand.c (align_base): New function.
1354 (alloc_stack_frame_space): Call it.
1355 (expand_stack_vars): Align prev_frame to be sure
1356 data->asan_vec elements aligned properly.
1357
1358 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
1359
1360 PR middle-end/65409
1361 * expr.c (store_field): Do not do a direct block copy if the source is
1362 a PARALLEL with BLKmode.
1363
1364 2015-03-16 Tom de Vries <tom@codesourcery.com>
1365
1366 PR middle-end/65414
1367 Revert:
1368 2015-03-12 Tom de Vries <tom@codesourcery.com>
1369
1370 PR rtl-optimization/64895
1371 * lra-lives.c (check_pseudos_live_through_calls): Use
1372 actual_call_used_reg_set instead of call_used_reg_set, if available.
1373
1374 2015-03-16 Alan Modra <amodra@gmail.com>
1375
1376 PR target/63150
1377 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
1378 Modify Z->r bswapdi splitter to use dest in place of scratch.
1379 In r->Z and Z->r bswapdi splitter rename word_high, word_low
1380 to word1, word2 and rearrange logic to suit.
1381 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
1382 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
1383 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
1384 Add one '?' on r->r. Modify Z->r splitter to avoid need for
1385 early clobber.
1386
1387 2015-03-14 Jakub Jelinek <jakub@redhat.com>
1388
1389 PR tree-optimization/65369
1390 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
1391 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
1392 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
1393
1394 PR tree-optimization/65418
1395 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
1396 are casts in the first PLUS_EXPR operand, ensure tbias and
1397 *totallowp are in the inner type.
1398
1399 PR rtl-optimization/65401
1400 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
1401 argument. If true, adjust_address_nv of x with big-endian
1402 correction for the mode widening to GET_MODE (y).
1403 (make_field_assignment): Don't do MEM mode widening here.
1404 Use MEM_P instead of GET_CODE == MEM.
1405
1406 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
1407
1408 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
1409 the external decls.
1410
1411 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1412
1413 PR target/64600
1414 * config/arm/arm.c (arm_gen_constant, AND case): Use
1415 ARM_SIGN_EXTEND when constructing AND mask.
1416
1417 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1418
1419 * graph.c (print_graph_cfg): Make function names visible and append
1420 parenthesis to it. Also make groups of basic blocks belonging to the
1421 same function visible.
1422
1423 2015-03-12 Richard Biener <rguenther@suse.de>
1424
1425 PR middle-end/44563
1426 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
1427 to avoid quadratic behavior with inline expansion splitting blocks.
1428 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
1429 with the successor if the predecessor will be merged with it.
1430 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
1431 entry block with its successor.
1432
1433 2015-03-13 Richard Biener <rguenther@suse.de>
1434
1435 PR middle-end/44563
1436 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
1437 (cleanup_tree_cfg_1): Do not call it.
1438 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
1439 (fixup_noreturn_call): Mark the stmt as control altering.
1440 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
1441 here.
1442 (pass_data_fixup_cfg): Produce a dump file.
1443 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
1444 (need_noreturn_fixup): New global.
1445 (pass_dominator::execute): Fixup queued noreturn calls.
1446 (optimize_stmt): Queue calls that became noreturn for fixup.
1447 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
1448 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
1449 (el_to_fixup): New global.
1450 (eliminate_dom_walker::before_dom_childre): Queue calls that
1451 became noreturn for fixup.
1452 (eliminate): Fixup queued noreturn calls.
1453 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
1454 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
1455 (substitute_and_fold_dom_walker::before_dom_children): Queue
1456 alls that became noreturn for fixup.
1457 (substitute_and_fold): Fixup queued noreturn calls.
1458
1459 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
1460
1461 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
1462 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
1463 are building; for methods check ODR type of class they belong to if
1464 they may lead to a polymorphic call.
1465 (sem_function::compare_polymorphic_p): Be bit smarter about testing
1466 when function may lead to a polymorphic call.
1467 (sem_function::compare_type_list): Remove.
1468 (sem_variable::equals): Update use of compatible_types_p.
1469 (sem_variable::parse_tree_refs): Remove.
1470 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
1471 cdtor.
1472 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
1473 matching here.
1474 (func_checker::compatible_polymorphic_types_p): Break out from ...
1475 (unc_checker::compatible_types_p): ... here.
1476 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
1477 Declare.
1478 (unc_checker::compatible_types_p): Update.
1479 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
1480 Remove.
1481
1482 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1483
1484 PR rtl-optimization/65235
1485 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
1486 When first element of vec_concat is const_int, calculate its size
1487 using second element.
1488
1489 2015-03-12 Richard Biener <rguenther@suse.de>
1490
1491 PR middle-end/65270
1492 * fold-const.c (operand_equal_p): Fix ordering of resetting
1493 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
1494
1495 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
1496
1497 * config/s390/s390.c (s390_reorg): Move code to output nops after label
1498 to s390_reorg ().
1499 (s390_asm_output_function_label): Likewise.
1500 * config/s390/s390.c (s390_asm_output_function_label):
1501 Fix function label alignment with -mhtopatch.
1502 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
1503 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
1504 ("nop_2_byte"): New define_insn.
1505 ("nop_4_byte"): Likewise.
1506 ("nop_6_byte"): Likewise.
1507 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
1508 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
1509
1510 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
1511
1512 PR target/65103
1513 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
1514 register.
1515
1516 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
1517
1518 PR target/65044
1519 * toplev.c (process_options): Restrict Pointer Bounds Checker
1520 usage with Address Sanitizer.
1521
1522 2015-03-12 Richard Biener <rguenther@suse.de>
1523
1524 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
1525 to split on.
1526 * omp-low.c (expand_omp_taskreg): Split block before removing
1527 the stmt.
1528 (expand_omp_target): Likewise.
1529 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
1530 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
1531 stmt to split_block.
1532
1533 2015-03-12 Tom de Vries <tom@codesourcery.com>
1534
1535 PR rtl-optimization/64895
1536 * lra-lives.c (check_pseudos_live_through_calls): Use
1537 actual_call_used_reg_set instead of call_used_reg_set, if available.
1538
1539 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
1540
1541 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
1542 (cgraph_node::remove): Likewise.
1543 (cgraph_node::get_untransformed_body): Likewise.
1544 * varpool.c (varpool_node::remove): Likewise.
1545 (varpool_node::get_constructor): Add sanity check.
1546
1547 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
1548
1549 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
1550 old GCC versions.
1551 (-fabi-compat-version): Likewise.
1552 (-ffriend-injection): Likewise.
1553 (-Wdeclaration-after-statement): Likewise.
1554 (-fomit-frame-pointer): Likewise.
1555 (-ftree-coalesce-inlined-vars): Likewise.
1556 (-fvisibility=): Likewise.
1557 * doc/extend.texi (Typeof): Likewise.
1558 (Zero Length): Likewise.
1559 (Escaped Newlines): Likewise.
1560 (Compound Literals): Likewise.
1561 (Function Attributes): Likewise.
1562 (Label Attributes): Likewise.
1563 (Type Attributes): Likewise.
1564 (Function Names): Likewise.
1565 (Other Builtins): Likewise.
1566 (Function Specific Option Pragmas): Likewise.
1567 (C++ Interface): Likewise.
1568
1569 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
1570
1571 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
1572
1573 2015-03-11 Marek Polacek <polacek@redhat.com>
1574
1575 PR tree-optimization/65388
1576 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
1577
1578 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
1579
1580 PR target/65296
1581 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
1582 * configure: Regenerate.
1583 * config.in: Regenerate.
1584 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
1585 [-mn-flash]: Document it.
1586 [__AVR_ARCH__]: Document avrtiny.
1587
1588 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
1589 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
1590 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
1591
1592 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1593
1594 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
1595
1596 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1597
1598 PR target/65242
1599 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
1600 allow reloads of PLUS in floating point/VSX registers.
1601
1602 2015-03-11 Junmo Park <junmoz.park@samsung.com>
1603
1604 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
1605 crypto_sha256_fast.
1606 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
1607
1608 2015-03-11 Richard Biener <rguenther@suse.de>
1609
1610 PR tree-optimization/65310
1611 * tree-sra.c (build_ref_for_offset): Also preserve larger
1612 alignment.
1613
1614 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
1615
1616 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
1617
1618 2015-03-10 Jakub Jelinek <jakub@redhat.com>
1619
1620 PR target/65368
1621 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
1622 new define_expand.
1623 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
1624
1625 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
1626
1627 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
1628 (sem_function::equals_wpa): ... here.
1629
1630 2015-03-10 Marek Polacek <polacek@redhat.com>
1631 Jakub Jelinek <jakub@redhat.com>
1632
1633 PR sanitizer/65367
1634 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
1635 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
1636 separately.
1637
1638 2015-03-10 Jakub Jelinek <jakub@redhat.com>
1639
1640 PR target/65286
1641 * config/rs6000/t-linux: For powerpc64* target set
1642 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
1643
1644 2015-03-10 Richard Biener <rguenther@suse.de>
1645
1646 PR middle-end/44563
1647 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
1648 for redirect_all_calls.
1649
1650 2015-03-10 Marek Polacek <polacek@redhat.com>
1651
1652 * gdbinit.in (pcfun): Define and document.
1653
1654 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
1655
1656 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
1657 of libgomp-plugin.h.
1658 (find_target_compiler): Support a case when the path to gcc is
1659 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
1660 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
1661 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
1662 libgomp-plugin.h.
1663 (main): Use GCC_INSTALL_NAME as target_driver_name.
1664 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
1665 define.
1666 (mkoffload.o): Remove obsolete include path and defines.
1667 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
1668
1669 2015-03-10 Richard Biener <rguenther@suse.de>
1670
1671 PR middle-end/63155
1672 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
1673 * tree-ssa-coalesce.c: Include timevar.h.
1674 (attempt_coalesce): Handle graph being NULL.
1675 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
1676 Split out abnormal coalescing to ...
1677 (perform_abnormal_coalescing): ... this function.
1678 (coalesce_ssa_name): Perform abnormal coalescing without computing
1679 live/conflict.
1680 (verify_ssa_coalescing_worker): New function.
1681 (verify_ssa_coalescing): Likewise.
1682
1683 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
1684
1685 PR target/65296
1686 * config.gcc (extra_options) [avr]: Remove.
1687 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
1688 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
1689 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
1690
1691 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
1692 (-mmcu=): Add Var and MissingArgError properties.
1693 (-march=): Remove.
1694 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
1695 * config/avr/t-multilib: Regenerate.
1696 * config/avr/specs.h: New file.
1697 * config/avr/driver-avr.c: New file.
1698 * config/avr/genopt.sh: Remove file.
1699 * config/avr/avr-tables.opt: Remove file.
1700 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
1701 * config/avr/avr-c.c: Same.
1702 * avr-arch.h: Same.
1703 (avr_current_device): Remove proto.
1704 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
1705 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
1706 (EXTRA_SPEC_FUNCTIONS): Define.
1707 (avr_devicespecs_file): New specs function proto.
1708 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
1709 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
1710 (avr_current_device): Remove definition and usage.
1711 (avr_set_core_architecture): New static function.
1712 (avr_option_override): Use it.
1713 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
1714 (mcu_name): New static array.
1715 (comparator, avr_archs_str, avr_mcus_str): New static functions.
1716 (avr_inform_devices, avr_inform_core_architectures): New functions.
1717 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
1718 (avrlibc.h) [WITH_AVRLIBC]: Include.
1719 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
1720 (print_mcu): Rewrite from scratch.
1721 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
1722 Forward to avr-specific specs defined in device-specs file.
1723 * config/avr/t-avr (driver-avr.o): New rule.
1724 (avr-devices.o): Depend on avr-arch.h.
1725 (avr-mcus): No more depend on avr-tables.opt.
1726 (avr-tables.opt): Remove rule.
1727 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
1728
1729 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
1730
1731 * c-family/c.opt (fchkp-use-wrappers): New.
1732 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
1733 (chkp_wrap_function): New.
1734 (chkp_build_instrumented_fndecl): Support wrapped
1735 functions.
1736 * doc/invoke.texi (-fcheck-pointer-bounds): New.
1737 (-fchkp-check-incomplete-type): New.
1738 (-fchkp-first-field-has-own-bounds): New.
1739 (-fchkp-narrow-bounds): New.
1740 (-fchkp-narrow-to-innermost-array): New.
1741 (-fchkp-optimize): New.
1742 (-fchkp-use-fast-string-functions): New.
1743 (-fchkp-use-nochk-string-functions): New.
1744 (-fchkp-use-static-bounds): New.
1745 (-fchkp-use-static-const-bounds): New.
1746 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
1747 (-fchkp-check-read): New.
1748 (-fchkp-check-write): New.
1749 (-fchkp-store-bounds): New.
1750 (-fchkp-instrument-calls): New.
1751 (-fchkp-instrument-marked-only): New.
1752 (-fchkp-use-wrappers): New.
1753 (-static-libmpx): New.
1754 (-static-libmpxwrappers): New.
1755
1756 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
1757
1758 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
1759 (CHKP_SPEC): Add wrappers library.
1760 * c-family/c.opt (static-libmpxwrappers): New.
1761
1762 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
1763
1764 * config/i386/linux-common.h (LIBMPX_LIBS): New.
1765 (LIBMPX_SPEC): New.
1766 (CHKP_SPEC): New.
1767 * gcc.c (CHKP_SPEC): New.
1768 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
1769 * c-family/c.opt (static-libmpx): New.
1770
1771 2015-03-10 Richard Biener <rguenther@suse.de>
1772
1773 PR middle-end/44563
1774 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
1775 for compare_type.
1776 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
1777 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
1778 (cgraph_add_edge_to_call_site_hash): Likewise.
1779 (cgraph_node::get_edge): Likewise.
1780 (cgraph_edge::set_call_stmt): Likewise.
1781 (cgraph_edge::remove_caller): Likewise.
1782
1783 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
1784
1785 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
1786 (callee_saved_gpr_regs_size): ... this.
1787 (callee_saved_regs_first_regno): Rename to ...
1788 (callee_saved_first_gpr_regno): ... this.
1789 (callee_saved_regs_last_regno) Rename to ...
1790 (callee_saved_last_gpr_regno): ... this.
1791 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
1792 variables.
1793 (nds32_initial_elimination_offset): Likewise.
1794 (nds32_expand_prologue): Likewise.
1795 (nds32_expand_epilogue): Likewise.
1796 (nds32_expand_prologue_v3push): Likewise.
1797 (nds32_expand_epilogue_v3pop): Likewise.
1798 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
1799 Adjust renamed variables.
1800 (nds32_output_stack_pop): Likewise.
1801
1802 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
1803
1804 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
1805 code in comment.
1806
1807 2015-03-10 Jakub Jelinek <jakub@redhat.com>
1808
1809 PR rtl-optimization/65321
1810 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
1811 than shift mode.
1812 * var-tracking.c (use_narrower_mode): Likewise.
1813
1814 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
1815
1816 PR tree-optimization/65355
1817 * varasm.c (notice_global_symbol): Do not produce RTL.
1818 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
1819 anchor.
1820 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
1821 check for section anchors.
1822
1823 2015-03-10 Alan Modra <amodra@gmail.com>
1824
1825 PR target/65286
1826 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
1827 to be single-arch by default. Set cpu_is_64bit for powerpc64
1828 given --with-cpu=native.
1829 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
1830 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
1831 and powerpc64le.
1832 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
1833 rs6000_isa_flags rather than TARGET_64BIT.
1834
1835 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
1836 Kaz Kojima <kkojima@gcc.gnu.org>
1837
1838 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
1839
1840 2015-03-09 Jakub Jelinek <jakub@redhat.com>
1841
1842 PR lto/65361
1843 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
1844 on a TREE_BINFO, instead use BINFO_TYPE.
1845
1846 2015-03-09 Richard Biener <rguenther@suse.de>
1847
1848 PR middle-end/65270
1849 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
1850 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
1851 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
1852 of that. When comparing dereferences compare alignment.
1853 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
1854
1855 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
1856
1857 * ipa-inline-analysis.c (check_callers): Check
1858 node->can_remove_if_no_direct_calls_and_refs_p.
1859 (growth_likely_positive): Reorganize to call
1860 can_remove_if_no_direct_calls_p later.
1861 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
1862 will_be_removed_from_program_if_no_direct_calls_p): Add
1863 will_inline parameter.
1864 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
1865 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
1866 Handle inliner case correctly.
1867
1868 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
1869
1870 PR tree-optimization/63743
1871 * cfgexpand.c (reorder_operands): Also reorder if only second operand
1872 had its definition forwarded by TER.
1873
1874 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
1875
1876 PR lto/65316
1877 * ipa-utils.h (types_odr_comparable): Add strict argument.
1878 * ipa-devirt.c: Fix whitespace;
1879 (odr_hasher): Remove.
1880 (odr_name_hasher, odr_vtable_hasher): New hashers.
1881 (can_be_name_hashed_p): New predicate.
1882 (hash_type_name): remove.
1883 (hash_odr_name): New.
1884 (odr_name_hasher::hash): new.
1885 (can_be_vtable_hashed_p): New.
1886 (hash_odr_vtable): New.
1887 (odr_vtable_hasher::hash): New.
1888 (types_same_for_odr): Add strict parameter.
1889 (types_odr_comparable): Likewise.
1890 (odr_name_hasher::equal): New.
1891 (odr_vtable_hasher::equal): New.
1892 (odr_name_hasher::remove): New.
1893 (odr_hash_type): Change to hash_table<odr_name_hasher>.
1894 (odr_vtable_hash_type): New.
1895 (odr_vtable_hash): New.
1896 (odr_subtypes_equivalent_p): Do strict comparsion.
1897 (add_type_duplicate): Merge type names; cleanup; avoid type
1898 duplicates.
1899 (register_odr_type): Initialize vtable hash.
1900 (build_type_inheritance_graph): Likewise
1901 (get_odr_type): Reorg to use two hashes.
1902 (dump_possible_polymorphic_call_targets): Move sanity check after debug
1903 output.
1904 (ipa_devirt): Dump type_inheritance_graph.
1905 (types_same_for_odr): Add strict mode.
1906
1907 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
1908
1909 PR ipa/65334
1910 * cgraph.h (symtab_node): Add definition_alignment,
1911 can_increase_alignment_p and increase_alignment.
1912 * symtab.c (symtab_node::can_increase_alignment_p,
1913 increase_alignment_1, symtab_node::increase_alignment,
1914 symtab_node::definition_alignment): New.
1915 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
1916 can_increase_alignment_p.
1917 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
1918 * tree-vect-stmts.c (ensure_base_align): Likewise.
1919 * varasm.c (function_section_1): Use definition_alignment.
1920 (assemble_start_function): Likewise.
1921 (emit_local): likewise.
1922 (build_constant_desc): Likewsie.
1923 (output_constant_def_contents): Likewise.
1924 (place_block_symbol): Likewise.
1925 (output_object_block): Likewise.
1926
1927 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
1928
1929 PR ipa/65316
1930 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
1931 when outputting debug.
1932
1933 2015-03-07 Marek Polacek <polacek@redhat.com>
1934 Martin Uecker <uecker@eecs.berkeley.edu>
1935
1936 PR sanitizer/65280
1937 * doc/invoke.texi: Update description of -fsanitize=bounds.
1938
1939 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
1940
1941 * tree-ssa-phiopt.c (neg_replacement): Remove.
1942 (tree_ssa_phiopt_worker): Remove negate optimization.
1943
1944 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
1945
1946 PR ipa/65302
1947 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
1948
1949 2015-03-06 Richard Biener <rguenther@suse.de>
1950
1951 PR middle-end/64928
1952 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
1953 and liveout_obstack members.
1954 (calculate_live_on_exit): Remove.
1955 (calculate_live_ranges): Change declaration.
1956 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
1957 (new_tree_live_info): Adjust.
1958 (calculate_live_ranges): Delete livein when not wanted.
1959 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
1960 Deal with partly deleted live info.
1961 (loe_visit_block): Remove temporary bitmap by using
1962 bitmap_ior_and_compl_into.
1963 (live_worklist): Adjust accordingly.
1964 (calculate_live_on_exit): Make static.
1965 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
1966 we do not need livein.
1967
1968 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
1969
1970 * real.c (real_from_string): Fix typo in assertion.
1971
1972 2015-03-06 Alex Velenko <alex.velenko@arm.com>
1973
1974 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
1975 the patch.
1976
1977 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
1978
1979 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
1980
1981 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
1982
1983 PR target/64342
1984 * lra-assigns.c (find_hard_regno_for): Rename to
1985 find_hard_regno_for_1. Add a new parameter.
1986 (find_hard_regno_for): New function using find_hard_regno_for_1.
1987
1988 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
1989
1990 PR rtl-optimization/65067
1991 * expmed.c (store_bit_field, extract_bit_field): Reworked the
1992 strict volatile bitfield handling.
1993
1994 2015-03-05 Martin Liska <mliska@suse.cz>
1995
1996 PR ipa/65318
1997 * ipa-icf.c (sem_variable::equals): Compare variables types.
1998
1999 2015-03-05 Richard Henderson <rth@redhat.com>
2000
2001 PR target/65121
2002 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
2003 correctly check weak symbol binding.
2004
2005 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
2006
2007 PR middle-end/65315
2008 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
2009 needed alignment.
2010
2011 2015-03-05 Martin Liska <mliska@suse.cz>
2012
2013 * ipa-inline.c (inline_small_functions): Set default value to
2014 prevent warning during bootstrap.
2015 * tree.h: Add pragma guard that ignores false positives during
2016 bootstrap.
2017
2018 2015-03-05 Richard Biener <rguenther@suse.de>
2019
2020 PR tree-optimization/65310
2021 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
2022 Properly preserve alignment of the base of the access.
2023
2024 2015-03-05 Richard Biener <rguenther@suse.de>
2025
2026 PR ipa/65270
2027 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
2028 Compare dependence info.
2029
2030 2015-03-05 Richard Biener <rguenther@suse.de>
2031
2032 PR middle-end/65233
2033 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
2034 tree-into-ssa.h.
2035 (walk_ssa_copies): Revert last chage. Instead do not walk
2036 SSA names registered for SSA update.
2037
2038 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
2039
2040 PR ipa/65270
2041 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
2042 vtable references for their containing type.
2043 (sem_function::equals_wpa): Compare TYPE_RESTRICT
2044 and type attributes.
2045
2046 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
2047
2048 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
2049 before negating it.
2050 * stor-layout.c (finalize_record_size): Revert latest change.
2051
2052 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
2053
2054 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
2055
2056 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
2057
2058 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
2059 for correct comdat handling.
2060 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
2061 Likewise.
2062 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
2063 (used_from_object_file_p_worker): Remove.
2064 (cgraph_node::only_called_directly_or_alised): Add
2065 used_from_object_file_p.
2066 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
2067 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
2068 can_remove_if_no_direct_calls_and_refs_p.
2069
2070 2015-03-04 Nick Clifton <nickc@redhat.com>
2071
2072 * config/rl78/rl78.h (enum reg_class): Remove real registers from
2073 General register class.
2074 * config/rl78/rl78-real.md: Replace general register constraints
2075 with real+virtual register constraints.
2076
2077 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2078
2079 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
2080 from checking for -mhtm option.
2081
2082 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
2083
2084 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
2085 (struct ipa_sra_check_caller_data): Add has_thunk field.
2086 (ipa_sra_check_caller): Check for thunk.
2087 (ipa_sra_preliminary_function_checks): Give up on function with
2088 thunks.
2089 (ipa_early_sra): Use call_for_symbol_and_aliases.
2090
2091 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
2092
2093 PR target/65249
2094 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
2095 called for __stack_chk_guard symbol.
2096
2097 2015-03-03 DJ Delorie <dj@redhat.com>
2098
2099 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
2100 inc/dec.
2101 (*addhi3_real): Likewise.
2102 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
2103 pattern to match incrementing memory.
2104 * config/rl78/predicates.md (rl78_1_2_operand): New.
2105 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
2106 it's the same and only mem.
2107 (rl78_alloc_physical_registers_op2): If there's effectively only
2108 one MEM, transcode it into HL.
2109 (rl78_far_p): Reject addresses that aren't legitimate.
2110
2111 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
2112
2113 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
2114 negating it.
2115
2116 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
2117
2118 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
2119
2120 Implement call0 ABI for xtensa
2121 * config/xtensa/constraints.md ("a" constraint): Include stack
2122 pointer in case of call0 ABI.
2123 ("q" constraint): Make empty in case of call0 ABI.
2124 ("D" constraint): Include stack pointer in case of call0 ABI.
2125 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
2126 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
2127 prototypes.
2128 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
2129 variable.
2130 (xtensa_regno_to_class): Make it a local variable in the
2131 function xtensa_regno_to_class.
2132 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
2133 macro, function prototype and implementation.
2134 (reg_nonleaf_alloc_order): Make it a local variable in the
2135 function order_regs_for_local_alloc.
2136 (xtensa_conditional_register_usage): New function.
2137 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
2138 (xtensa_valid_move): Allow direct moves to stack pointer
2139 register in call0 ABI.
2140 (xtensa_setup_frame_addresses): Only spill register windows in
2141 windowed ABI.
2142 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
2143 call0 ABI respectively.
2144 (xtensa_function_arg_1): Only mark a7 register for copying in
2145 windowed ABI.
2146 (xtensa_call_save_reg): New function.
2147 (compute_frame_size): Add space for callee saved register
2148 storage to the frame size in call0 ABI.
2149 (xtensa_expand_prologue): Generate code to set up stack frame
2150 and save callee-saved registers in call0 ABI.
2151 (xtensa_expand_epilogue): New function.
2152 (xtensa_set_return_address): New function.
2153 (xtensa_return_addr): Calculate return address in call0 ABI.
2154 (xtensa_builtin_saveregs): Only mark a7 register for copying and
2155 emit copying code in windowed ABI.
2156 (order_regs_for_local_alloc): Add preferred register allocation
2157 order for non-leaf function in call0 ABI.
2158 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
2159 (xtensa_asm_trampoline_template): Add trampoline generation for
2160 call0 ABI.
2161 (xtensa_trampoline_init): Add trampoline initialization for
2162 call0 ABI.
2163 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
2164 functions.
2165 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
2166 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
2167 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
2168 ABI call-used registers.
2169 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
2170 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
2171 call0 ABI.
2172 (REG_CLASS_CONTENTS): Include all registers into the preferred
2173 reload registers set, adjust the set in the
2174 xtensa_conditional_register_usage.
2175 (xtensa_regno_to_class): Drop variable declaration.
2176 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
2177 function.
2178 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
2179 respectively.
2180 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
2181 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
2182 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
2183 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
2184 location in call0 ABI.
2185 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
2186 stack adjustment size when handling exception.
2187 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
2188 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
2189 definitions.
2190 ("return" pattern): Generate ret.n/ret in call0 ABI.
2191 ("epilogue" pattern): Expand epilogue.
2192 ("nonlocal_goto" pattern): Use default in call0 ABI.
2193 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
2194 emit eh_set_a0_* depending on ABI.
2195 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
2196 ("eh_set_a0_call0", "blockage"): New patterns.
2197
2198 2015-03-03 Martin Liska <mliska@suse.cz>
2199
2200 PR ipa/65287
2201 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
2202
2203 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
2204
2205 PR 65138/target
2206 * config/rs6000/rs6000-tables.opt: Regenerate table.
2207
2208 2015-03-03 Renlin Li <renlin.li@arm.com>
2209
2210 * doc/md.texi (@item ^): Change ? into ^.
2211
2212 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
2213
2214 * doc/tm.texi: Regenerated.
2215
2216 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
2217
2218 * builtins.c (expand_builtin_return_addr): Add
2219 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
2220 surrounding #ifdef.
2221 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
2222 definition to 1.
2223 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
2224 Likewise.
2225 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
2226 undefined.
2227 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
2228 paragraph.
2229
2230 2015-03-03 Martin Jambor <mjambor@suse.cz>
2231 Eric Botcazou <ebotcazou@adacore.com>
2232
2233 * tree-sra.c (ipa_sra_check_caller_data): New type.
2234 (has_caller_p): Removed.
2235 (ipa_sra_check_caller): New function.
2236 (ipa_sra_preliminary_function_checks): Use it.
2237
2238 2015-03-03 Martin Liska <mliska@suse.cz>
2239
2240 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
2241 instead of if branch.
2242
2243 2015-03-03 Martin Liska <mliska@suse.cz>
2244
2245 PR ipa/65282
2246 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
2247
2248 2015-03-23 Jeff Law <law@redhat.com>
2249
2250 PR tree-optimization/65241
2251 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
2252 hash table if INSERT is true.
2253
2254 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
2255
2256 PR target/65296
2257 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
2258
2259 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
2260
2261 PR target/64331
2262 * config/avr/avr.c (context.h, tree-pass.h): Include them.
2263 (avr_pass_data_recompute_notes): New static variable.
2264 (avr_pass_recompute_notes): New class.
2265 (avr_register_passes): New static function.
2266 (avr_option_override): Call it.
2267
2268 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
2269
2270 Fix various problems with specs file generation.
2271
2272 PR target/65296
2273 * config.gcc (extra_gcc_objs) [avr]: Remove.
2274 * config/avr/driver-avr.c: Remove file.
2275 * config/avr/t-avr (driver-avr.o): Remove rule.
2276 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
2277 INCLUDES to build. Depend on TM_H.
2278 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
2279 build warnings. Fix non-matching types and non-existing %-codes.
2280 (tm.h): Include.
2281 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
2282 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
2283 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
2284 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
2285 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
2286 (LIBGCC_SPEC): Remove definitions.
2287
2288 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
2289
2290 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
2291 to create a register in testing mode.
2292
2293 2015-03-03 Martin Liska <mliska@suse.cz>
2294 Jan Hubicka <hubicka@ucw.cz>
2295
2296 PR ipa/65263
2297 * cgraph.c (cgraph_node::has_thunk_p): New function.
2298 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
2299 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
2300 (sem_function::merge): Assert is changed.
2301
2302 2015-03-03 Martin Liska <mliska@suse.cz>
2303 Martin Jambor <mjambor@suse.cz>
2304
2305 PR ipa/65087
2306 * ipa-icf.c (sem_item_optimizer::execute): Change function
2307 return value to boolean.
2308 (sem_item_optimizer::merge_classes): Likewise.
2309 (ipa_icf_driver): Return TODO_remove_functions in case there's
2310 a merge operation processed.
2311 * ipa-icf.h: Change function return value to boolean.
2312
2313 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
2314
2315 PR 65138/target
2316 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
2317 processor type for 64-bit little endian PowerPC.
2318
2319 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
2320 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
2321 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
2322 printing built-in mask so it does not pass NULL pointers.
2323
2324 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
2325 -mcpu=powerpc64le.
2326
2327 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
2328
2329 PR target/58158
2330 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
2331 !ISA_HAS_FP_CONDMOVE.
2332
2333 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
2334
2335 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
2336 reload_completed.
2337
2338 2015-03-02 Ulrich Drepper <drepper@gmail.com>
2339
2340 * doc/invoke.texi (Options for Code Generation Conventions):
2341 Fix URL of DSO paper.
2342
2343 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
2344
2345 PR ipa/65130
2346 * ipa-inline.c (check_callers): Looks for recursion.
2347 (inline_to_all_callers): Give up on uninlinable or recursive edges.
2348 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
2349 summary of inline clones.
2350 (do_estimate_growth_1): Fix recursion check.
2351
2352 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
2353
2354 PR ipa/64988
2355 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
2356 comdat groups.
2357
2358 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
2359 Aldy Hernandez <aldyh@redhat.com>
2360
2361 PR lto/65276
2362 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
2363 when checking TYPE_BINFO.
2364
2365 2015-03-02 Richard Biener <rguenther@suse.de>
2366
2367 PR ipa/65270
2368 * ipa-icf-gimple.c: Include builtins.h.
2369 (func_checker::compare_memory_operand): Compare base alignment.
2370
2371 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
2372
2373 PR target/65184
2374 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
2375 are never passed by reference.
2376
2377 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
2378
2379 PR target/65183
2380 * tree-chkp.c (chkp_check_lower): Don't check against
2381 zero bounds for already instrumented functions.
2382 (chkp_check_upper): Likewise.
2383 (chkp_fini): Clean pass local data to avoid wrong reusage.
2384
2385 2015-02-28 Martin Liska <mliska@suse.cz>
2386 Jan Hubicka <hubicka@ucw.cz>
2387
2388 * ipa-icf.c (sem_variable::equals): Improve debug output;
2389 get variable constructor.
2390 (sem_variable::parse): Do not filter out too early; give up on
2391 volatile and register vars.
2392 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
2393 variables.
2394 * ipa-icf.h (sem_variable::init): Do not set ctor.
2395 (sem_variable::ctor): Remove.
2396
2397 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
2398
2399 PR middle-end/65233
2400 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
2401
2402 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
2403
2404 * ipa-icf.c: Include stor-layout.h
2405 (sem_function::compare_cgraph_references): Rename to ...
2406 (sem_item::compare_cgraph_references): ... this one.
2407 (sem_variable::equals_wpa): New function
2408 (sem_variable::equals): Do not check stuff already verified by
2409 equals_wpa.
2410 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
2411 * ipa-icf.h (sem_item): Add compare_cgraph_references.
2412 (sem_function): Remove compare_cgraph_references.
2413 (sem_variable): Turns equals_wpa into non-inline.
2414
2415 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
2416
2417 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
2418 (sem_item::add_expr): New function.
2419 (sem_function::hash_stmt): Handle operands of most statements.
2420 (sem_variable::get_hash): Hash the actual constructor.
2421 * ipa-icf.h (sem_item): Add add_expr.
2422 (sem_function): Update prototype of hash_stmt
2423
2424 2015-02-28 Martin Liska <mliska@suse.cz>
2425 Jan Hubicka <hubicka@ucw.cz>
2426
2427 PR ipa/65245
2428 * ipa-icf-gimple.c (func_checker::compare_function_decl):
2429 Remove.
2430 (func_checker::compare_variable_decl): Skip symtab vars.
2431 (func_checker::compare_cst_or_decl): Update.
2432 * ipa-icf.c (sem_function::parse): Do not consider aliases.
2433 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
2434 use correct symtab predicates.
2435 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
2436 (sem_variable::parse): Update comment.
2437 (sem_item_optimizer::build_graph): Consider ultimate aliases
2438 for references.
2439
2440 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
2441
2442 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
2443 of OBJ_TYPE_REF.
2444
2445 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
2446
2447 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
2448 (sem_variable::merge) Likewise.
2449
2450 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
2451
2452 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
2453 target; also match flag_ipa_devirt.
2454
2455 2015-03-01 Martin Liska <mliska@suse.cz>
2456 Jan Hubicka <hubicka@ucw.cz>
2457
2458 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
2459 Validate variable alignment.
2460 * ipa-icf.c (sem_function::equals_private): Be more precise
2461 about non-common function attributes.
2462 (sem_variable::equals): Likewise.
2463
2464 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
2465
2466 PR ipa/65237
2467 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
2468 across COMDAT group boundary.
2469
2470 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
2471
2472 PR ipa/65232
2473 * ipa-icf.c (clear_decl_rtl): New function.
2474 (sem_function::merge): Clear RTL before forming alias.
2475 (sem_variable::merge): Clear RTL before forming alias.
2476
2477 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
2478
2479 PR ipa/65236
2480 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
2481
2482 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
2483
2484 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
2485 to neon_to_gp<q>.
2486
2487 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
2488
2489 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
2490 a typo in the description.
2491
2492 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
2493
2494 PR target/64317
2495 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
2496 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
2497 * lra-constraints.c: Include "params.h".
2498 (EBB_PROBABILITY_CUTOFF): Use
2499 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
2500 (lra_inheritance): Use '<' instead of '<=' for
2501 EBB_PROBABILITY_CUTOFF.
2502 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
2503 Document change.
2504
2505 2015-02-27 Martin Liska <mliska@suse.cz>
2506
2507 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
2508 vector length condition.
2509
2510 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
2511
2512 * doc/extend.texi (x86 transactional memory intrinsics):
2513 Reorganize discussion of _xbegin. Clarify that the return
2514 value is a bit mask. Expand example and move to end of section.
2515
2516 2015-02-26 Jakub Jelinek <jakub@redhat.com>
2517 Aldy Hernandez <aldyh@redhat.com>
2518
2519 PR rtl-optimization/65220
2520 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
2521
2522 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
2523
2524 PR target/65032
2525 * lra-remat.c (update_scratch_ops): New.
2526 (do_remat): Call it.
2527 * lra.c (lra_register_new_scratch_op): New. Take code from ...
2528 (remove_scratches): ... here.
2529 * lra-int.h (lra_register_new_scratch_op): New prototype.
2530
2531 2015-02-27 Marek Polacek <polacek@redhat.com>
2532
2533 PR c/65040
2534 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
2535 -Wformat-signedness anymore.
2536
2537 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2538
2539 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
2540 function.
2541 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
2542
2543 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2544
2545 * config/s390/s390.c (enum s390_builtin):
2546 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
2547 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
2548 (s390_init_builtins): Generate new builtin functions.
2549 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
2550 (s390_sfpc, s390_efpc): New pattern definitions.
2551
2552 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2553
2554 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
2555 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
2556 (s390_builtin_decls): New array.
2557 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
2558 (s390_builtin_decl): New function.
2559 (TARGET_BUILTIN_DECL): Define macro.
2560
2561 2015-02-27 Richard Biener <rguenther@suse.de>
2562
2563 PR middle-end/63175
2564 * builtins.c (get_object_alignment_2): Make sure to re-apply
2565 the ANDed mask after recursing to its operand gets us a new
2566 misalignment bit position.
2567
2568 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
2569 Martin Liska <mliska@suse.cz>
2570
2571 PR bootstrap/65150
2572 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
2573 Use address_matters_p.
2574 (redirect_all_callers, set_addressable): New functions.
2575 (sem_function::merge): Reorganize and fix merging issues.
2576 (sem_variable::merge): Likewise.
2577 (sem_variable::compare_sections): Remove.
2578 * common.opt (fmerge-all-constants, fmerge-constants): Remove
2579 Optimization flag.
2580 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
2581 redirect them.
2582 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
2583 decl is used.
2584 (address_matters_1): New function.
2585 (symtab_node::address_matters_p): New function.
2586 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
2587 check for merged flag.
2588 * cgraph.h (address_matters_p): Declare.
2589 (symtab_node::address_taken_from_non_vtable_p): Remove.
2590 (symtab_node::address_can_be_compared_p): New method.
2591 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
2592 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
2593 Remove.
2594 (comdat_can_be_unshared_p_1) Use address_matters_p.
2595 (update_vtable_references): Fix formating.
2596 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
2597 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
2598 * cgraphclones.c: Preserve merged and icf_merged flags.
2599
2600 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
2601
2602 * doc/extend.texi (Function Attributes): Fix spelling and typos.
2603 (Label Attributes): Likewise.
2604 (Cilk Plus Builtins): Likewise.
2605 (ARC SIMD Built-in Functions): Likewise.
2606 (ARM C Language Extensions (ACLE)): Likewise.
2607 (PowerPC Built-in Functions): Likewise.
2608 (PowerPC Hardware Transactional Memory Built-in Functions):
2609 Likewise.
2610
2611 2015-02-26 Jakub Jelinek <jakub@redhat.com>
2612
2613 PR tree-optimization/65216
2614 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
2615 new stmt and new SSA_NAME for lhs whenever the arguments have
2616 changed and weren't just swapped. Fix comment typo.
2617
2618 PR tree-optimization/65215
2619 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
2620 for PDP endian targets.
2621 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
2622 Fix up formatting issues.
2623 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
2624 size is smaller than the original, adjust MEM_REF offset by the
2625 difference of sizes. Use is_gimple_mem_ref_addr instead of
2626 is_gimple_min_invariant test to avoid adding address temporaries.
2627
2628 2015-02-26 Martin Liska <mliska@suse.cz>
2629 Jan Hubicka <hubicka@ucw.cz>
2630
2631 PR ipa/64693
2632 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
2633 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
2634 (sem_item_optimizer::process_cong_reduction): Include division by
2635 sensitive references.
2636 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
2637 * ipa-ref.c (ipa_ref::address_matters_p): New function.
2638 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
2639
2640 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
2641
2642 PR target/65192
2643 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
2644 Remove.
2645 * config/avr/avr.c: Same.
2646 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
2647 Refuse any constant address not in 0..0xbf.
2648 * config/avr/avr.md (*mov<mode>, *movsf): Remove
2649 tiny_valid_direct_memory_access_range from insn conditions.
2650 (mov<mode>): Don't special-case expansion of avrtiny addresses.
2651
2652 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
2653
2654 PR target/61142
2655 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
2656 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
2657 * config/sh/predicates.md (const_logical_operand): New predicate.
2658 * config/sh/sh.md: Add new peephole2 patterns.
2659
2660 2015-02-26 Marek Polacek <polacek@redhat.com>
2661
2662 PR ipa/65008
2663 * ipa-inline.c (early_inliner): Recompute inline parameters.
2664
2665 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2666
2667 PR target/65171
2668 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
2669 instructions with TImode operands are included in the analysis.
2670
2671 2015-02-26 Sebastian Pop <s.pop@samsung.com>
2672
2673 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
2674 of an EDGE_FSM_THREAD.
2675
2676 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
2677
2678 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
2679
2680 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
2681
2682 PR debug/46102
2683 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
2684
2685 2015-02-26 Sebastian Pop <s.pop@samsung.com>
2686
2687 PR tree-optimization/65048
2688 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
2689 (thread_through_all_blocks): Call valid_jump_thread_path.
2690 Remove invalid FSM jump-thread paths.
2691
2692 2015-02-26 Jakub Jelinek <jakub@redhat.com>
2693
2694 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
2695 (ipa_write_optimization_summaries): Likewise.
2696 * tree-streamer.h: Include data-streamer.h.
2697 (streamer_mode_table): Declare extern variable.
2698 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
2699 * lto-streamer-out.c (lto_output_init_mode_table,
2700 lto_write_mode_table): New functions.
2701 (produce_asm_for_decls): Call lto_write_mode_table when streaming
2702 offloading LTO.
2703 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
2704 (lto_create_simple_input_block): Add mode_table argument to the
2705 lto_input_block constructors.
2706 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
2707 Likewise.
2708 * data-streamer-in.c (string_for_index): Likewise.
2709 * ipa-inline-analysis.c (inline_read_section): Likewise.
2710 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
2711 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
2712 * lto-streamer-in.c (lto_read_body_or_constructor,
2713 lto_input_toplevel_asms): Likewise.
2714 (lto_input_mode_table): New function.
2715 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
2716 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
2717 Use bp_pack_machine_mode.
2718 * real.h (struct real_format): Add name field.
2719 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
2720 (class lto_input_block): Add mode_table member.
2721 (lto_input_block::lto_input_block): Add mode_table_ argument,
2722 initialize mode_table.
2723 (struct lto_file_decl_data): Add mode_table field.
2724 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
2725 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
2726 unpack_ts_decl_common_value_fields,
2727 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
2728 * tree-streamer.c (streamer_mode_table): New variable.
2729 * real.c (ieee_single_format, mips_single_format,
2730 motorola_single_format, spu_single_format, ieee_double_format,
2731 mips_double_format, motorola_double_format,
2732 ieee_extended_motorola_format, ieee_extended_intel_96_format,
2733 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
2734 ibm_extended_format, mips_extended_format, ieee_quad_format,
2735 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
2736 decimal_single_format, decimal_double_format, decimal_quad_format,
2737 ieee_half_format, arm_half_format, real_internal_format): Add name
2738 field.
2739 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
2740
2741 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
2742
2743 PR target/65161
2744 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
2745 reordering for selective scheduling.
2746
2747 2015-02-26 Terry Guo <terry.guo@arm.com>
2748
2749 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
2750 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
2751 (arm_arch_no_volatile_ce): Declare new global variable.
2752 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
2753 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
2754 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
2755 (TARGET_NO_VOLATILE_CE): New macro.
2756 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
2757 volatile memory access in IT block
2758
2759 2015-02-25 Kai Tietz <ktietz@redhat.com>
2760
2761 PR tree-optimization/61917
2762 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
2763 that reduc_def_stmt is null.
2764
2765 2015-02-25 Martin Liska <mliska@suse.cz>
2766
2767 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
2768 hard register variables.
2769
2770 2015-02-25 Kai Tietz <ktietz@redhat.com>
2771
2772 PR target/64212
2773 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
2774 (symtab::noninterposable_alias): Likewise.
2775
2776 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
2777
2778 PR target/65167
2779 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
2780 bounds registers.
2781 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
2782
2783 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
2784
2785 PR target/64997
2786 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
2787 as split condition; force split via '#' in output pattern.
2788
2789 2015-02-25 Richard Biener <rguenther@suse.de>
2790 Kai Tietz <ktietz@redhat.com>
2791
2792 PR tree-optimization/61917
2793 * tree-vect-loop.c (vectorizable_reduction): Allow
2794 vect_internal_def without reduction to exit graceful.
2795
2796 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
2797
2798 PR target/65196
2799 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
2800 only with NONDEBUG_INSN_P.
2801
2802 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
2803
2804 Use variadic macros with avr-log.c.
2805
2806 * config/avr/avr-protos.h (avr_vdump): New prototype.
2807 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
2808 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
2809 * config/avr/avr-log.c: Adjust comments.
2810 (avr_vdump): New function.
2811 (avr_vadump): Pass caller as 2nd argument instead of format string.
2812 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
2813 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
2814
2815 2015-02-25 Jakub Jelinek <jakub@redhat.com>
2816
2817 PR lto/64374
2818 * target.def (target_option_stream_in): New target hook.
2819 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
2820 targetm.target_option.post_stream_in if non-NULL.
2821 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
2822 * doc/tm.texi: Updated.
2823 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
2824 function.
2825 (TARGET_OPTION_POST_STREAM_IN): Redefine.
2826
2827 2015-02-24 Jeff Law <law@redhat.com>
2828
2829 PR target/65117
2830 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
2831 of operand 0 and operand 2.
2832 (zero_cost_loop_end, loop_end): Similarly.
2833
2834 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
2835
2836 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
2837 CXX_MEM_STAT_INFO.
2838
2839 2015-02-24 DJ Delorie <dj@redhat.com>
2840
2841 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
2842 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
2843 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
2844 instead of hardcoding SImode.
2845
2846 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
2847
2848 * omp-low.c (create_omp_child_function): Tag entrypoint
2849 functions with a special attribute.
2850
2851 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
2852
2853 PR target/65058
2854 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
2855
2856 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
2857
2858 PR rtl-optimization/65123
2859 * lra-remat.c (operand_to_remat): Check hard regs in insn
2860 definition too.
2861
2862 2015-02-24 Nick Clifton <nickc@redhat.com>
2863
2864 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
2865 to the assembler.
2866
2867 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
2868
2869 PR libgomp/64625
2870 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
2871 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
2872 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
2873 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
2874 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
2875 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
2876 (BUILT_IN_GOACC_PARALLEL): Specify as
2877 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
2878 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
2879 * builtin-types.def
2880 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
2881 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
2882 Remove function types.
2883 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
2884 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
2885 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
2886 New function types.
2887
2888 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
2889
2890 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
2891
2892 2015-02-24 Jakub Jelinek <jakub@redhat.com>
2893
2894 PR tree-optimization/65170
2895 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
2896 if val[1] < 0, clear also val[2] and return 3.
2897
2898 2015-02-24 Alan Modra <amodra@gmail.com>
2899
2900 PR target/65172
2901 * config/rs6000/rs6000.c (get_memref_parts): Only return true
2902 when *base is a reg. Handle nested plus addresses. Simplify
2903 pre_modify test.
2904
2905 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
2906
2907 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
2908 use natural alignment when optimizing for size.
2909
2910 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
2911
2912 PR target/65153
2913 * config/sh/sh.md (movsicc_true+3): Remove peephole.
2914 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
2915 * config/sh/sh.c (replace_n_hard_rtx): Remove.
2916
2917 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
2918
2919 PR fortran/63427
2920 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
2921 too big for a wide_int. Implement missing wrapping operation.
2922
2923 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
2924
2925 PR target/65163
2926 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
2927 instead of const_int 4294901760.
2928
2929 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
2930
2931 * config/avr/t-avr: Fix typo in comment.
2932
2933 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
2934
2935 * doc/rtl.texi (fma): Clarify documentation.
2936
2937 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
2938
2939 PR debug/58123
2940 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
2941 over input_location.
2942
2943 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
2944
2945 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
2946 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
2947 restrict alignments to absolute_biggest_alignment.
2948 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
2949 Define.
2950 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
2951 * doc/tm.texi: Regenerate.
2952 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
2953
2954 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
2955
2956 PR target/64172
2957 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
2958
2959 2015-02-20 Richard Biener <rguenther@suse.de>
2960
2961 PR tree-optimization/65136
2962 * tree-ssa-propagate.c: Include cfgloop.h.
2963 (replace_phi_args_in): Avoid replacing loop latch edge PHI
2964 arguments with constants.
2965
2966 2015-02-20 Jakub Jelinek <jakub@redhat.com>
2967 Martin Liska <mliska@suse.cz>
2968
2969 PR target/63892
2970 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
2971 don't try to create_thunk if stdarg_p. If
2972 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
2973 redirect_callers if possible.
2974 (sem_item_optimizer::execute): Call unregister_hooks here...
2975 (ipa_icf_driver): ... instead of here.
2976
2977 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2978
2979 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
2980 Mark operand 0 as earlyclobber in 2nd alternative.
2981 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
2982 Write negated shift amount into QI lowpart operand 0 and use it
2983 in the shift step.
2984 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
2985
2986 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
2987
2988 * cgraph.h (clone_function_name_1): Declare.
2989 * cgraphclones.c (clone_function_name_1): New function.
2990 (clone_function_name): Use it.
2991 * lto-partition.c: Include "stringpool.h".
2992 (must_not_rename, maybe_rewrite_identifier)
2993 (validize_symbol_for_target): New static functions.
2994 (privatize_symbol_name): Use must_not_rename.
2995 (promote_symbol): Call validize_symbol_for_target.
2996 (lto_promote_cross_file_statics): Likewise.
2997 (lto_promote_statics_nonwpa): Likewise.
2998
2999 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
3000
3001 PR target/64452
3002 * config/avr/avr.md (pushhi_insn): New insn.
3003 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
3004
3005 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
3006 Jakub Jelinek <jakub@redhat.com>
3007
3008 * tree-streamer.c (preload_common_nodes): Don't preload
3009 TI_VA_LIST* for offloading.
3010 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
3011 in_lto_p.
3012
3013 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
3014
3015 * config/pa/pa.c (pa_emit_move_sequence): Always force
3016 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
3017 note on insn.
3018
3019 * config/pa/pa.c (pa_reloc_rw_mask): New function.
3020 (TARGET_ASM_RELOC_RW_MASK): Define.
3021 (pa_cannot_force_const_mem): Revert previous change.
3022
3023 2015-02-19 Martin Jambor <mjmabor@suse.cz>
3024 Jan Hubicka <hubicka@ucw.cz>
3025
3026 PR ipa/65028
3027 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
3028 across jump functions.
3029
3030 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
3031
3032 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
3033
3034 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
3035
3036 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
3037
3038 2015-02-19 Richard Henderson <rth@redhat.com>
3039
3040 PR middle-end/65074
3041 * varasm.c (default_binds_local_p_2): Don't test node->definition;
3042 test DECL_EXTERNAL independent of symtab_node.
3043
3044 2015-02-19 Jakub Jelinek <jakub@redhat.com>
3045
3046 PR lto/65012
3047 * varpool.c (varpool_node::get_constructor): Return early
3048 if this->lto_file_data is NULL.
3049
3050 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3051
3052 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
3053 (rank_for_schedule_debug): Update.
3054 (ready_sort): Make static. Move sorting logic to ...
3055 (ready_sort_debug, ready_sort_real): New static functions.
3056 (schedule_block): Sort both debug insns and real insns in preparation
3057 for ready list trimming. Improve debug output.
3058 * sched-int.h (ready_sort): Remove global declaration.
3059
3060 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
3061
3062 * ipa-icf.c (sem_function::equals_private): Adjust.
3063 (sem_function::bb_dict_test): Take a vec<int> * instead of
3064 auto_vec<int>.
3065 * ipa-icf.h (bb_dict_test): Likewise.
3066
3067 2015-02-18 Jakub Jelinek <jakub@redhat.com>
3068
3069 PR gcov-profile/64634
3070 * tree-eh.c (frob_into_branch_around): Fix up typos
3071 in function comment.
3072 (lower_catch): Put eh_seq resulting from EH lowering of
3073 the cleanup sequence after the cleanup rather than before it.
3074
3075 2015-02-18 Tom de Vries <tom@codesourcery.com>
3076
3077 * common.opt (fstdarg-opt): New option.
3078 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
3079 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
3080 (@item -fstdarg-opt): New item.
3081
3082 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
3083
3084 PR target/65064
3085 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
3086 for common symbols.
3087
3088 2015-02-18 Jakub Jelinek <jakub@redhat.com>
3089
3090 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
3091 insn-modes.h.
3092 (ALL_HOST_OBJS): Add mkoffload.o.
3093 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
3094
3095 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
3096
3097 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
3098 (compare_virtual_tables): Be smarter about skipping typeinfos;
3099 do sane output on virtual table table mismatch.
3100 (warn_odr): Be ready for forward declarations of enums;
3101 output sane info on base mismatch and virtual table mismatch.
3102 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
3103 when only one type is polymorphic.
3104 (get_odr_type): Fix hashtable corruption.
3105 (dump_odr_type): Dump mangled names.
3106
3107 2015-02-18 Richard Biener <rguenther@suse.de>
3108
3109 PR tree-optimization/65063
3110 * tree-predcom.c (determine_unroll_factor): Return 1 if we
3111 have replaced looparound PHIs.
3112
3113 2015-02-18 Martin Liska <mliska@suse.cz>
3114
3115 * lto-streamer.c (lto_streamer_init): Encapsulate
3116 streamer_check_handled_ts_structures with checking macro.
3117
3118 2015-02-18 Jakub Jelinek <jakub@redhat.com>
3119
3120 PR ipa/65087
3121 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
3122 section if !implicit_section.
3123 (cgraph_node::create_version_clone_with_body): Likewise.
3124 * trans-mem.c (ipa_tm_create_version): Likewise.
3125
3126 2015-02-18 Richard Biener <rguenther@suse.de>
3127
3128 PR tree-optimization/62217
3129 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
3130 into BIVs.
3131
3132 2015-02-18 Marek Polacek <polacek@redhat.com>
3133
3134 PR sanitizer/65081
3135 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
3136 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
3137 is in range [-16K, -1]. Don't issue run-time error if
3138 (ptr > ptr + offset).
3139
3140 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
3141
3142 * doc/install.texi (nvptx-*-none): New section.
3143 * doc/invoke.texi (Nvidia PTX Options): Likewise.
3144 * config/nvptx/nvptx.opt: Update.
3145
3146 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
3147 (access_check): New functions, copied from
3148 config/i386/intelmic-mkoffload.c.
3149 (main): For non-installed testing, look in all COMPILER_PATHs for
3150 GCC_INSTALL_NAME.
3151
3152 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
3153
3154 2015-02-18 Andrew Pinski <apinski@cavium.com>
3155 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3156
3157 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
3158 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
3159
3160 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
3161
3162 * ipa-visibility.c (function_and_variable_visibility): Only
3163 check locality if node is not already local.
3164 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
3165 call_for_symbol_and_aliases instead of
3166 call_for_symbol_thunks_and_aliases.
3167 (ipa_inline): Likewise.
3168 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
3169 first walk aliases.
3170 * ipa.c (symbol_table::remove_unreachable_nodes): Use
3171 call_for_symbol_and_aliases.
3172 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
3173 (ipa_propagate_frequency_1): Use it; use opt_for_fn
3174 (ipa_propagate_frequency): Update.
3175 (ipa_profile): Add opt_for_fn gueards.
3176
3177 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
3178
3179 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
3180 * doc/invoke.texi (SH options): Document it.
3181 * config/sh/sh.c (sh_insn_length_adjustment): Check
3182 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
3183
3184 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
3185
3186 * common.opt (fipa-cp-alignment): New.
3187 * ipa-cp.c (ipcp_store_alignment_results): Check
3188 flag_ipa_cp_alignment.
3189 * opts.c (default_options_table): Enable -fipa-cp-alignment for
3190 -O2.
3191 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
3192 * doc/invoke.texi: Document -fipa-cp-alignment.
3193
3194 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
3195
3196 PR target/64793
3197 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
3198 to nil. Adjust comments.
3199
3200 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
3201
3202 * ipa-visibility.c (function_and_variable_visibility): Only
3203 check locality if node is not already local.
3204 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
3205 call_for_symbol_and_aliases instead of
3206 call_for_symbol_thunks_and_aliases.
3207 (ipa_inline): Likewise.
3208 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
3209 first walk aliases.
3210 * ipa.c (symbol_table::remove_unreachable_nodes): Use
3211 call_for_symbol_and_aliases.
3212 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
3213 (ipa_propagate_frequency_1): Use it; use opt_for_fn
3214 (ipa_propagate_frequency): Update.
3215 (ipa_profile): Add opt_for_fn guards.
3216
3217 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
3218
3219 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
3220 skipping of "strange" tokens.
3221
3222 2015-02-17 Jeff Law <law@redhat.com>
3223
3224 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
3225 obsolete comment.
3226
3227 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
3228
3229 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
3230 as forcing a HARD_DEP between instructions, thereby
3231 disallowing rewriting to break dependencies.
3232
3233 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
3234
3235 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
3236 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
3237 variables in boundary that have no inlitalizer encoded and are
3238 not aliases.
3239 * varasm.c (default_binds_local_p_2): External definitions do not
3240 count as definitions here.
3241
3242 2015-02-16 Jeff Law <law@redhat.com>
3243
3244 PR tree-optimization/64823
3245 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
3246 statements.
3247 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
3248 threading through blocks with PHIs, but no statements.
3249 (thread_through_normal_block): Distinguish between blocks where
3250 we did not process all the statements and blocks with no statements.
3251
3252 2015-02-16 Jakub Jelinek <jakub@redhat.com>
3253 James Greenhalgh <james.greenhalgh@arm.com>
3254
3255 PR ipa/64963
3256 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
3257 section if not linkonce. Fix up formatting.
3258 (cgraph_node::create_version_clone_with_body): Copy section.
3259 * trans-mem.c (ipa_tm_create_version): Likewise.
3260
3261 2015-02-16 Richard Biener <rguenther@suse.de>
3262
3263 PR tree-optimization/65077
3264 * tree-ssa-structalias.c (get_constraint_for_1): Handle
3265 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
3266 (find_func_aliases): Allow float values to carry pointers again.
3267
3268 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
3269
3270 * doc/install.texi (Specific): Reorder targets list to put
3271 aarch64 in alphabetical order. Add a link to aarch64*-*-*
3272 from the top menu.
3273
3274 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
3275 David Edelsohn <dje.gcc@gmail.com>
3276
3277 PR target/65058
3278 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
3279 mapping class to external variable or function reference.
3280 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
3281 mapping class.
3282
3283 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
3284
3285 PR target/53348
3286 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
3287 ASM_WEAKEN_DECL if defined.
3288
3289 2015-02-16 Richard Biener <rguenther@suse.de>
3290
3291 PR lto/65015
3292 * varasm.c (default_file_start): For LTO produced units
3293 emit <artificial> as file directive.
3294
3295 2015-02-16 Richard Biener <rguenther@suse.de>
3296
3297 PR tree-optimization/63593
3298 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
3299 stmts and releasing SSA names until...
3300 (execute_pred_commoning): ... after processing all chains.
3301
3302 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
3303
3304 PR ipa/65059
3305 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
3306 external functions.
3307
3308 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
3309
3310 * doc/bugreport.texi: Adjust section titles throughout the file
3311 to use "Title Case".
3312 * doc/extend.texi: Likewise.
3313 * doc/gcov.texi: Likewise.
3314 * doc/implement-c.texi: Likewise.
3315 * doc/implement-cxx.texi: Likewise.
3316 * doc/invoke.texi: Likewise.
3317 * doc/objc.texi: Likewise.
3318 * doc/standards.texi: Likewise.
3319 * doc/trouble.texi: Likewise.
3320
3321 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
3322
3323 * cgraph.h (symtab_node::has_aliases_p): Simplify.
3324 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
3325 * tree.c (lookup_binfo_at_offset): Make static.
3326 (get_binfo_at_offset): Do not shadow offset; add explanatory
3327 comment.
3328
3329 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
3330
3331 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
3332 for all floading point loads and stores except those using a register
3333 index address.
3334 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
3335 to a register.
3336
3337 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
3338
3339 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
3340 (do_estimate_growth_1): Record if any uninlinable edge was seen.
3341 (estimate_growth): Handle uninlinable edges correctly.
3342 (check_callers): New.
3343 (growth_likely_positive): Handle aliases correctly.
3344
3345 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
3346
3347 * ipa-chkp.c: Use iterate_direct_aliases.
3348 * symtab.c (resolution_used_from_other_file_p): Move inline.
3349 (symtab_node::create_reference): Fix formating.
3350 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
3351 (symtab_node::iterate_reference): Move inline.
3352 (symtab_node::iterate_referring): Move inline.
3353 (symtab_node::iterate_direct_aliases): Move inline.
3354 (symtab_node::used_from_object_file_p_worker): Inline into ...
3355 (symtab_node::used_from_object_file_p): ... this one; move inline.
3356 (symtab_node::call_for_symbol_and_aliases): Move inline;
3357 use iterate_direct_aliases.
3358 (symtab_node::call_for_symbol_and_aliases_1): New method.
3359 (cgraph_node::call_for_symbol_and_aliases): Move inline;
3360 use iterate_direct_aliases.
3361 (cgraph_node::call_for_symbol_and_aliases_1): New method.
3362 (varpool_node::call_for_node_and_aliases): Rename to ...
3363 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
3364 use iterate_direct_aliases.
3365 (varpool_node::call_for_symbol_and_aliases_1): New method.
3366 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
3367 (ipa_discover_readonly_nonaddressable_var): Update.
3368 * ipa-devirt.c: Fix formating.
3369 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
3370 Move inline.
3371 (cgraph_node::call_for_symbol_and_aliases): Move inline.
3372 (cgraph_node::call_for_symbol_and_aliases_1): New function..
3373 * cgraph.h (used_from_object_file_p_worker): Remove.
3374 (resolution_used_from_other_file_p): Move inline.
3375 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
3376 (symtab_node::iterate_reference): Move inline.
3377 (symtab_node::iterate_referring): Move inline.
3378 (symtab_node::iterate_direct_aliases): Move inline.
3379 (symtab_node::used_from_object_file_p_worker): Inline into ...
3380 (symtab_node::used_from_object_file_p): Move inline.
3381 * tree-emutls.c (ipa_lower_emutls): Update.
3382 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
3383 (varpool_node::call_for_node_and_aliases): Remove.
3384
3385 2015-02-14 Jakub Jelinek <jakub@redhat.com>
3386
3387 PR tree-optimization/62209
3388 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
3389 op == range->exp, insert seq and gimplified code after labels
3390 instead of after the phi.
3391
3392 2015-02-13 Jeff Law <law@redhat.com>
3393
3394 PR bootstrap/65060
3395 Revert my change for tree-optimization/64823.
3396
3397 2015-02-13 Jakub Jelinek <jakub@redhat.com>
3398
3399 PR tree-optimization/65053
3400 * tree-ssa-phiopt.c (value_replacement): When moving assign before
3401 cond, either reset VR on lhs or set it to phi result VR.
3402
3403 2015-02-13 Jeff Law <law@redhat.com>
3404
3405 PR tree-optimization/64823
3406 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
3407 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
3408 threading through blocks with PHIs, but no statements.
3409 (thread_through_normal_block): Distinguish between blocks where
3410 we did not process all the statements and blocks with no statements.
3411
3412 PR rtl-optimization/47477
3413 * match.pd (convert (plus/minus (convert @0) (convert @1): New
3414 simplifier to narrow arithmetic.
3415
3416 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
3417
3418 PR ipa/65028
3419 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
3420 polymorphic call info when type is not known to be preserved.
3421
3422 2015-02-13 Maritn Jambor <mjambor@suse.cz>
3423
3424 PR ipa/65028
3425 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
3426 (inline_call): Use it.
3427
3428 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
3429
3430 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
3431 GOMP_DEVICE_NVIDIA_PTX.
3432
3433 2015-02-13 Jakub Jelinek <jakub@redhat.com>
3434
3435 PR ipa/65034
3436 * stmt.c (emit_case_nodes): Use void_type_node instead of
3437 NULL_TREE as LABEL_DECL type.
3438
3439 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
3440
3441 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
3442 constraints.
3443 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
3444 symbolic references to data to be forced to constant memory on the
3445 SOM target.
3446
3447 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
3448
3449 PR tree-optimization/65002
3450 * tree-cfg.c (pass_data_fixup_cfg): Don't update
3451 SSA on start.
3452 * tree-sra.c (some_callers_have_no_vuse_p): New.
3453 (ipa_early_sra): Reject functions whose callers
3454 assume function is read only.
3455
3456 2015-02-13 Richard Biener <rguenther@suse.de>
3457
3458 PR lto/65015
3459 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
3460 for LTO produced CUs.
3461
3462 2015-02-13 Bin Cheng <bin.cheng@arm.com>
3463
3464 PR tree-optimization/64705
3465 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
3466 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
3467 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
3468 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
3469 expand_simple_operations.
3470
3471 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
3472 Richard Henderson <rth@redhat.com>
3473
3474 PR rtl/32219
3475 * cgraphunit.c (cgraph_node::finalize_function): Set definition
3476 before notice_global_symbol.
3477 (varpool_node::finalize_decl): Likewise.
3478 * varasm.c (default_binds_local_p_2): Rename from
3479 default_binds_local_p_1, add weak_dominate argument. Use direct
3480 returns instead of assigning to local variable. Unify varpool and
3481 cgraph paths via symtab_node. Reject undef weak variables before
3482 testing visibility. Reorder tests for simplicity.
3483 (default_binds_local_p): Use default_binds_local_p_2.
3484 (default_binds_local_p_1): Likewise.
3485 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
3486 via symtab_node.
3487 (default_elf_asm_output_external): Emit visibility when specified.
3488
3489 2015-02-13 Alan Modra <amodra@gmail.com>
3490
3491 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
3492 code setting up r11 for out-of-line fp restore.
3493
3494 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
3495
3496 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
3497 (muser-mode): Likewise.
3498
3499 2015-02-13 Alan Modra <amodra@gmail.com>
3500
3501 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
3502 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
3503
3504 2015-02-12 David Howells <dhowells@redhat.com>
3505
3506 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
3507 warning.
3508 * tree-ssa-uninit.c (dump_predicates): Likewise.
3509 * opts.c (print_filtered_help): Likewise.
3510
3511 2015-02-12 Jakub Jelinek <jakub@redhat.com>
3512
3513 * dwarf2out.c (output_die): Use "%s", name instead of name to
3514 avoid -Wformat-security warning.
3515
3516 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
3517 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
3518 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
3519 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
3520
3521 2015-02-12 Jason Merrill <jason@redhat.com>
3522
3523 * common.opt (-flifetime-dse): New.
3524
3525 2015-02-12 Jakub Jelinek <jakub@redhat.com>
3526
3527 PR sanitizer/65019
3528 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
3529
3530 PR tree-optimization/65014
3531 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
3532 use original second operand of arg0 or arg1 instead of
3533 that adjusted by STRIP_NOPS.
3534
3535 2015-02-11 Jeff Law <law@redhat.com>
3536
3537 PR target/63347
3538 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
3539 that needs to be queued, just queue it for a single cycle.
3540
3541 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
3542
3543 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
3544 bodies of thunks; comment on why.
3545 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
3546 symbols are extern.
3547
3548 2015-02-11 Richard Henderson <rth@redhat.com>
3549
3550 PR sanitize/65000
3551 * tree-eh.c (mark_reachable_handlers): Mark source and destination
3552 regions of __builtin_eh_copy_values.
3553
3554 2015-02-11 Jakub Jelinek <jakub@redhat.com>
3555
3556 PR middle-end/65003
3557 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
3558 ultimate alias is MEM with SYMBOL_REF satisfying
3559 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
3560 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
3561
3562 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
3563
3564 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
3565 "diagnostic-core.h".
3566 (main): Initialize progname, and call diagnostic_initialize.
3567
3568 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
3569 instead of __OPENMP_TARGET__.
3570
3571 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
3572 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
3573 hard-coding PTX_ID.
3574
3575 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
3576
3577 * doc/sourcebuild.texi (pie_enabled): Document.
3578
3579 2015-02-11 Martin Liska <mliska@suse.cz>
3580
3581 PR ipa/64813
3582 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
3583 a return value for call to a function that is noreturn.
3584
3585 2015-02-11 Richard Biener <rguenther@suse.de>
3586
3587 PR lto/65015
3588 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
3589 and -fresolution.
3590
3591 2015-02-11 Andrew Pinski <apinski@cavium.com>
3592
3593 PR target/64893
3594 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
3595 Change the first argument type to size_type_node and add another
3596 size_type_node.
3597 (aarch64_simd_expand_builtin): Handle the new argument to
3598 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
3599 print an out when the first two arguments are not
3600 nonzero integer constants.
3601 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
3602 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
3603
3604 2015-02-11 Jakub Jelinek <jakub@redhat.com>
3605
3606 PR target/61925
3607 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
3608 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
3609 (ix86_set_current_function): Rewritten.
3610 (ix86_add_new_builtins): Temporarily clear current_target_pragma
3611 when creating builtin fndecls.
3612
3613 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
3614
3615 PR ipa/65005
3616 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
3617 function.
3618 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
3619 have no comdat group.
3620 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
3621 (lto_output_varpool_node): Always output alias info.
3622 (output_refs): Output refs of boundary aliases, too.
3623 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
3624 (output_symtab): Output call eges in thunks in boundary.
3625 (get_alias_symbol): Remove.
3626 (input_node, input_varpool_node): Do not special case weakrefs.
3627 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
3628 alias and thunks targets in the boundary; do not take removed symbols
3629 from their comdat groups.
3630 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
3631 (cgraph_node::global_info): Remove.
3632 (cgraph_node::rtl_info): Look through aliases and thunks.
3633 * cgrpah.h (global_info): Remove.
3634 (non_local_p): Remove.
3635
3636 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
3637 Sandra Loosemore <sandra@codesourcery.com>
3638
3639 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
3640 to inline asm. List dialects in proper order.
3641
3642 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
3643 Sandra Loosemore <sandra@codesourcery.com>
3644
3645 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
3646
3647 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
3648
3649 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
3650 modified) reference to Solaris.
3651
3652 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
3653
3654 * doc/extend.texi (Extended Asm): Fix typos.
3655
3656 2015-02-10 Jakub Jelinek <jakub@redhat.com>
3657
3658 PR sanitizer/65004
3659 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
3660
3661 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
3662
3663 PR target/64661
3664 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
3665 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
3666 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
3667 * config/sh/constraints.md (Ara, Add): New constraints.
3668 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
3669 predicates.
3670 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
3671 atomic_mem_operand_0. Don't use force_reg on the memory address.
3672 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
3673 Sra constraint. Convert to insn_and_split. Add workaround for
3674 PR 64974.
3675 (atomic_compare_and_swap<mode>_hard): Copy to
3676 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
3677 Use atomic_mem_operand_0 predicate.
3678 (atomic_compare_and_swap<mode>_soft_gusa,
3679 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
3680 AraAdd constraints.
3681 (atomic_compare_and_swap<mode>_soft_tcb,
3682 atomic_compare_and_swap<mode>_soft_imask,
3683 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
3684 atomic_mem_operand_0 predicate and SraSdd constraints.
3685 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
3686 constraint.
3687 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
3688 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
3689 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
3690 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
3691 force_reg on the memory address.
3692 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
3693 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
3694 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
3695 atomic_mem_operand_1 predicate and Sra constraint.
3696 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
3697 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
3698 Use atomic_mem_operand_1 predicate.
3699 (atomic_<fetchop_name><mode>_hard): Copy to
3700 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
3701 Use atomic_mem_operand_1 predicate.
3702 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
3703 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
3704 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
3705 insn_and_split. Use atomic_mem_operand_1 predicate.
3706 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
3707 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
3708 Use atomic_mem_operand_1 predicate.
3709 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
3710 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
3711 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
3712 in generated insn with original mem operand before emitting the insn.
3713 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
3714 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
3715 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
3716 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
3717 Use atomic_mem_operand_1 predicate and AraAdd constraints.
3718 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
3719 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
3720 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
3721 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
3722 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
3723 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
3724 atomic_not_fetch<mode>_soft_tcb,
3725 atomic_<fetchop_name>_fetch<mode>_soft_imask,
3726 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
3727 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
3728 Use atomic_mem_operand_1 predicate and SraSdd constraints.
3729
3730 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
3731
3732 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
3733 and 3 earlyclobber operands.
3734
3735 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
3736
3737 * common.opt (fstack-reuse): Mark as optimization.
3738
3739 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
3740
3741 PR ipa/64982
3742 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
3743
3744 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
3745
3746 PR tree-optimization/64326
3747 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
3748
3749 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
3750
3751 PR gcov-profile/61889
3752 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
3753
3754 2015-02-10 Richard Biener <rguenther@suse.de>
3755
3756 PR tree-optimization/64995
3757 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
3758 value we use is final.
3759 (visit_reference_op_store): Always valueize op.
3760 (visit_use): Properly valueize vuses.
3761
3762 2015-02-10 Richard Biener <rguenther@suse.de>
3763
3764 PR tree-optimization/64909
3765 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
3766 pass a scalar-stmt count estimate to the cost model.
3767 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
3768
3769 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
3770
3771 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
3772 enabled by default together with var-tracking.
3773
3774 2015-02-10 Nick Clifton <nickc@redhat.com>
3775
3776 * config/rl78/rl78.c: Remove DIV attribute code accidentally
3777 included in previous rl78 commit.
3778
3779 2015-02-10 Richard Biener <rguenther@suse.de>
3780
3781 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
3782 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
3783 return the bitpack.
3784
3785 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
3786
3787 PR gcov-profile/61889
3788 * config.in: regenerate.
3789 * configure.in: Likewise.
3790 * configure.ac: Check for ftw.h.
3791 * gcov-tool.c: Check for ftw.h before using nftw.
3792
3793 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
3794
3795 PR lto/64076
3796 * ipa-visibility.c (update_visibility_by_resolution_info): Only
3797 assert when not in lto mode.
3798
3799 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
3800
3801 * ira-color.c (setup_left_conflict_sizes_p): Simplify
3802 initialization/assignment of conflict_size.
3803
3804 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
3805
3806 PR ipa/64978
3807 * ipa-cp.c (gather_caller_stats): Skip thunks.
3808 (propagate_constants_topo): Skip aliases.
3809
3810 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
3811
3812 PR target/64761
3813 * config/sh/sh.c (sh_option_override): Don't change
3814 -freorder-blocks-and-partition to -freorder-blocks even when
3815 unwinding is enabled.
3816 (sh_can_follow_jump): Return false if the followee jump is
3817 a crossing jump when -freorder-blocks-and-partition is specified.
3818 * config/sh/sh.md (*jump_compact_crossing): New insn.
3819
3820 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
3821 Kaz Kojima <kkojima@gcc.gnu.org>
3822
3823 PR target/64761
3824 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
3825 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
3826 (sh_can_redirect_branch): Rename to ...
3827 (sh_can_follow_jump): ... this. Constify argument types.
3828 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
3829 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
3830 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
3831 * doc/tm.texi: Regenerate.
3832
3833 2015-02-09 Jakub Jelinek <jakub@redhat.com>
3834
3835 PR sanitizer/64981
3836 * builtins.c (expand_builtin): Call targetm.expand_builtin
3837 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
3838
3839 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
3840
3841 PR ipa/61548
3842 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
3843
3844 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
3845
3846 PR ipa/63566
3847 * ipa-icf.c (set_local): New function.
3848 (sem_function::merge): Use it.
3849
3850 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
3851
3852 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
3853 (add_type_duplicate): Fix comparison of BINFOs.
3854
3855 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
3856
3857 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
3858 on getting VOID pointer.
3859
3860 2015-02-09 Jakub Jelinek <jakub@redhat.com>
3861
3862 PR target/64979
3863 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
3864 va_list escapes.
3865
3866 2015-02-09 Richard Biener <rguenther@suse.de>
3867
3868 * genmatch.c (replace_id): Copy expr_type.
3869
3870 2015-02-09 Richard Biener <rguenther@suse.de>
3871
3872 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
3873 (streamer_write_tree_bitfields): Declare.
3874 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
3875 properly unpack padding.
3876 (unpack_value_fields): Inline ...
3877 (streamer_read_tree_bitfields): ... here.
3878 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
3879 and properly add padding bits.
3880 (streamer_pack_tree_bitfields): Fold into ...
3881 (streamer_write_tree_bitfields): ... this new function,
3882 exposing the bitpack object.
3883 * lto-streamer-out.c (lto_write_tree_1): Call
3884 streamer_write_tree_bitfields.
3885
3886 2015-02-09 Richard Biener <rguenther@suse.de>
3887
3888 PR tree-optimization/54000
3889 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
3890 (struct ivopts_data): Add loop_loc member.
3891 (tree_ssa_iv_optimize_loop): Dump loop location.
3892 (create_new_ivs): Likewise, also dump number of IVs generated.
3893
3894 2015-02-09 Martin Liska <mliska@suse.cz>
3895
3896 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
3897 just if not yet registered.
3898 (ipa_icf_generate_summary): Register callgraph hooks.
3899
3900 2015-02-08 Andrew Pinski <apinski@cavium.com>
3901
3902 * config/aarch64/aarch64.c (gty_dummy): Delete.
3903
3904 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
3905
3906 PR ipa/63566
3907 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
3908 (cgraph_node::local_p): Remove thunk related FIXME.
3909
3910 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
3911
3912 PR ipa/63566
3913 * i386.c (ix86_function_regparm): Look through aliases to see if callee
3914 is local and optimized.
3915 (ix86_function_sseregparm): Likewise; also use target's SSE math
3916 settings; error out instead of silently generating wrong code
3917 on mismatches.
3918 (init_cumulative_args): Look through aliases.
3919
3920 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
3921
3922 PR ipa/63566
3923 * ipa-split.c (execute_split_functions): Split if function has aliases.
3924
3925 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
3926
3927 PR ipa/63566
3928 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
3929 aliases before trying to expand it.
3930 (cgraph_node::expand_thunk): Fix formating.
3931
3932 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
3933
3934 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
3935 (Using Assembly Language with C): Expand introduction.
3936 (Basic Asm): Copy-edit. Add more information about uses of
3937 basic asm.
3938 (Extended Asm): Copy-edit. Document new escape syntax and
3939 %l[label] syntax.
3940 (Global Reg Vars): Copy-edit.
3941 (Local Reg Vars): Likewise.
3942
3943 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
3944
3945 PR debug/2714
3946 PR bootstrap/64256
3947 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
3948 (DBX_CONTIN_CHAR): Define.
3949
3950 2015-02-06 Sebastian Pop <s.pop@samsung.com>
3951 Brian Rzycki <b.rzycki@samsung.com>
3952
3953 PR tree-optimization/64878
3954 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
3955 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
3956 Stop recursion at loop phi nodes after having visited a loop phi node.
3957
3958 2015-02-06 Jakub Jelinek <jakub@redhat.com>
3959
3960 * toplev.c (process_options): Change flag_ipa_ra before creating
3961 optimization_{default,current}_node.
3962
3963 PR ipa/64896
3964 * cgraphunit.c (cgraph_node::expand_thunk): If
3965 restype is not is_gimple_reg_type nor the thunk_fndecl
3966 returns aggregate_value_p, set restmp to a temporary variable
3967 instead of resdecl.
3968
3969 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
3970
3971 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
3972
3973 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
3974
3975 PR target/64205
3976 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
3977 add a general secondary reload handler for SDmode, unless we have
3978 both read/write support for SDmode.
3979
3980 2015-02-06 Jakub Jelinek <jakub@redhat.com>
3981
3982 PR middle-end/64937
3983 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
3984 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
3985 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
3986 1 before, push it to abstract_vec.
3987 (dwarf2out_abstract_function): Adjust caller. Don't call
3988 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
3989 DECL_ABSTRACT_P flags for all abstract_vec elts.
3990
3991 2015-02-06 Renlin Li <renlin.li@arm.com>
3992
3993 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
3994 complex gimple.
3995 * tree-ssa.c (execute_update_addresses_taken): Likewise.
3996
3997 2015-02-06 Jeff Law <law@redhat.com>
3998
3999 PR target/64889
4000 * config/h8300/h8300.c (push): New argument "in_prologue".
4001 Pass "in_prologue" along to "F".
4002 (h8300_push_pop): Corresponding changes.
4003 (h8300_expand_prologue): Likewise.
4004 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
4005
4006 2015-02-06 Jakub Jelinek <jakub@redhat.com>
4007
4008 PR rtl-optimization/64957
4009 PR debug/64817
4010 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
4011 IOR rather than for AND.
4012
4013 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
4014
4015 PR target/62631
4016 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
4017 of shift-add and (add + shift) operations. Rename local variable.
4018
4019 2015-02-05 Jeff Law <law@redhat.com>
4020
4021 PR target/17306
4022 * config/h8300/constraints.md (U): Correctly dectect
4023 "eightbit_data" memory addresses.
4024 * config/h8300/h8300.c (eightbit_constant_address_p): Also
4025 handle (const (plus (symbol_ref (x)))) where x is declared
4026 as an 8-bit data memory address.
4027 * config/h8300/h8300.md (call, call_value): Correctly detect
4028 "funcvec" functions.
4029
4030 PR target/43264
4031 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
4032 24 to 28 bits for the H8/300.
4033
4034 2015-02-06 Alan Modra <amodra@gmail.com>
4035
4036 PR target/64876
4037 * config/rs6000/rs6000.c (chain_already_loaded): New function.
4038 (rs6000_call_aix): Use it.
4039
4040 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
4041
4042 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
4043 check.
4044
4045 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
4046
4047 * config/h8300/constraints.md ("U" constraint): Use strict
4048 variant of REG_OK_FOR_BASE_P after reload has started.
4049
4050 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
4051
4052 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
4053 define to zero if !TARGET_NEON.
4054 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
4055
4056 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
4057 Trevor Saunders <tsaunders@mozilla.com>
4058
4059 PR ipa/61548
4060 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
4061
4062 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
4063
4064 PR ipa/61548
4065 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
4066 when removing varpool nodes.
4067
4068 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
4069
4070 PR ipa/61548
4071 * varpool.c (varpool_node::remove): Fix order of variables.
4072
4073 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
4074
4075 PR ipa/64686
4076 * ipa-inline.c (inline_small_functions): Fix ordering issue between
4077 speculation resolution and key updates.
4078
4079 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
4080
4081 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
4082 about not letting any speculative edges unupdated.
4083
4084 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
4085
4086 PR gcov/64123
4087 * gcov-io.c (gcov_var): Export.
4088
4089 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
4090
4091 PR middle-end/64922
4092 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
4093 edges that become speculative.
4094
4095 2015-02-04 Jakub Jelinek <jakub@redhat.com>
4096
4097 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
4098 or DW_LANG_Fortran08.
4099 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
4100 DW_LANG_Fortran08.
4101 (gen_compile_unit_die): Handle "GNU Fortran2003" and
4102 "GNU Fortran2008" language strings.
4103 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
4104 * langhooks.h (lang_GNU_Fortran): New prototype.
4105 * langhooks.c (lang_GNU_Fortran): New function.
4106 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
4107 lang_GNU_Fortran.
4108
4109 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
4110
4111 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
4112 (RTX_OK_FOR_OLO10_P): Likewise.
4113
4114 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
4115
4116 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
4117
4118 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
4119
4120 PR middle-end/64922
4121 * gimple.c: Include gimple-ssa.h.
4122 (maybe_remove_unused_call_args): New function.
4123 * gimple.h (maybe_remove_unused_call_args): Declare.
4124 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
4125 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
4126 * gimple-fold.c (gimple_fold_call): Likewise.
4127
4128 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
4129
4130 PR rtl-optimization/64905
4131 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
4132 pointer alignment if it isn't needed.
4133
4134 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
4135
4136 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
4137 cortex-a72.cortex-a53.
4138 * config/aarch64/aarch64-tune.md: Regenerate.
4139 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
4140
4141 2015-02-04 Nick Clifton <nickc@redhat.com>
4142
4143 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
4144 inside a MEM.
4145
4146 2015-02-04 Jakub Jelinek <jakub@redhat.com>
4147
4148 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
4149 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
4150 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
4151 of DEF_BUILTIN.
4152 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
4153 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
4154 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
4155 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
4156 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
4157 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
4158 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
4159 * tree-core.h (enum built_in_function): In between
4160 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
4161 for builtins that use DEF_BUILTIN_CHKP macro.
4162
4163 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
4164
4165 PR debug/64817
4166 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
4167 operands for tcc_comparison exprs. Fix typos.
4168
4169 PR debug/64817
4170 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
4171 of two XORs that have an intervening AND or IOR.
4172
4173 PR debug/64817
4174 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
4175 simplification of XOR of AND to not allocate new rtx before
4176 committing to a simplification.
4177
4178 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4179
4180 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
4181 manual swaps in all peepholes.
4182
4183 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4184
4185 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
4186 of manual swapping implementation.
4187 (aarch64_expand_vec_perm_const_1): Likewise.
4188
4189 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
4190
4191 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
4192 (generic_addrcost_table): Remove NAMED_PARAM.
4193 (cortexa57_addrcost_table): Likewise.
4194 (xgene1_addrcost_table): Likewise.
4195 (generic_regmove_table): Likewise.
4196 (cortexa53_regmove_table): Likewise.
4197 (xgene1_regmove_table): Likewise.
4198 (generic_vector_table): Likewise.
4199 (cortexa57_vector_table): Likewise.
4200 (xgene1_vector_table): Likewise.
4201 (generic_tunings): Likewise.
4202 (cortexa53_tunings): Likewise.
4203 (cortexa57_tunings): Likewise.
4204 (xgene1_tunings): Likewise.
4205
4206 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
4207
4208 * config/arm/arm-cores.def: Add cortex-a72 and
4209 cortex-a72.cortex-a53.
4210 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
4211 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
4212 * config/arm/arm-tune.md: Regenerate.
4213 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
4214 "cortex-a72.cortex-a53".
4215 * doc/invoke.texi (ARM Options/-mtune): Likewise.
4216
4217 2015-02-04 Nick Clifton <nickc@redhat.com>
4218
4219 PR target/64408
4220 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
4221 of accepted codes.
4222 (nonimmediate_di_operand): Likewise.
4223
4224 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
4225 prefixes of known F5 using MSP430 MCUs.
4226
4227 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4228
4229 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
4230 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
4231 instead of __builtin_sqrt.
4232
4233 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
4234
4235 * varasm.c (do_assemble_alias): Follow transparent alias
4236 chain for target.
4237 (default_assemble_visibility): Follow transparent alias
4238 chain for decl name.
4239
4240 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
4241
4242 PR middle-end/62103
4243 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
4244 to compute size of referenced value in the constant case.
4245
4246 2015-02-03 Jakub Jelinek <jakub@redhat.com>
4247
4248 PR rtl-optimization/64756
4249 * cse.c (invalidate_dest): New function.
4250 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
4251 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
4252 invalidate and do not record it.
4253
4254 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
4255
4256 PR target/64660
4257 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
4258 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
4259 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
4260 atomic_nand<mode>_soft_tcb): New insns.
4261 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
4262 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
4263 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
4264 Split into atomic_not_fetchsi_hard if operands[0] is unused.
4265 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
4266 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
4267 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
4268 atomic_not<mode>_hard if operands[0] is unused.
4269 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
4270 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
4271 if operands[0] is unused.
4272 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
4273 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
4274 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
4275 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
4276 unused.
4277 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
4278 into atomic_not<mode>_soft_tcb if operands[0] is unused.
4279 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
4280 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
4281 if operands[0] is unused.
4282 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
4283 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
4284 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
4285 atomic_nand_fetchsi_hard if operands[0] is unused.
4286 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
4287 atomic_nand<mode>_hard if operands[0] is unused.
4288 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
4289 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
4290 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
4291 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
4292 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
4293 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
4294 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
4295 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
4296 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
4297 atomic_not<mode>_hard if operands[0] is unused.
4298 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
4299 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
4300 unused.
4301 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
4302 into atomic_not<mode>_soft_tcb if operands[0] is unused.
4303 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
4304 atomic_nand<mode>_hard if operands[0] is unused.
4305 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
4306 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
4307
4308 2015-02-03 David Malcolm <dmalcolm@redhat.com>
4309
4310 PR jit/64810
4311 * Makefile.in (GCC_OBJS): Add gcc-main.o.
4312 * gcc-main.c: New file, containing "main" taken from gcc.c.
4313 * gcc.c (do_self_spec): Free decoded_options.
4314 (class driver): Move declaration to gcc.h.
4315 (main): Move declaration and implementation to new file
4316 gcc-main.c.
4317 (driver_get_configure_time_options): New function.
4318 * gcc.h (class driver): Move this declaration here, from
4319 gcc.c.
4320 (driver_get_configure_time_options): New declaration.
4321
4322 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
4323
4324 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
4325 cross-module inlining.
4326 * cgraph.h (cgraph_node): Add flag merged.
4327 * ipa-icf.c (sem_function::merge): Maintain it.
4328
4329 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
4330
4331 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
4332 instead of OBJECT_P.
4333
4334 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
4335
4336 PR target/62631
4337 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
4338 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
4339 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
4340 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
4341
4342 2015-02-03 Jakub Jelinek <jakub@redhat.com>
4343
4344 PR other/63504
4345 * combine.c (reg_n_sets_max): New variable.
4346 (can_change_dest_mode, reg_nonzero_bits_for_combine,
4347 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
4348 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
4349 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
4350 (rest_of_handle_combine): Initialize reg_n_sets_max.
4351
4352 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
4353
4354 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
4355 if some always_inline was inlined, apply changes before inlining
4356 heuristically.
4357
4358 2015-02-02 David Malcolm <dmalcolm@redhat.com>
4359
4360 PR jit/64810
4361 * config/arm/arm.c (arm_option_override): Set
4362 arm_selected_arch/cpu/tune to NULL on entry.
4363
4364 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
4365 Andrew Pinski <pinskia@gcc.gnu.org>
4366 Jakub Jelinek <jakub@gcc.gnu.org>
4367
4368 PR target/64231
4369 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
4370 integer typing for small model. Use IN_RANGE.
4371
4372 2015-02-02 Richard Biener <rguenther@suse.de>
4373
4374 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
4375 * tree-vrp.c (vrp_valueize_1): Likewise.
4376
4377 2015-02-02 Alan Modra <amodra@gmail.com>
4378
4379 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
4380 than mem for toc_restore.
4381 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
4382 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
4383 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
4384
4385 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
4386
4387 PR target/64047
4388 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
4389 explicit default options.
4390
4391 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
4392
4393 PR ipa/64872
4394 * ipa-utils.c (ipa_merge_profiles): Add release argument.
4395 * ipa-icf.c (sem_function::merge): Do not release body when merging.
4396 * ipa-utils.h (ipa_merge_profiles): Update prototype.
4397
4398 2015-02-01 Jakub Jelinek <jakub@redhat.com>
4399
4400 PR debug/64817
4401 * cfgexpand.c (deep_ter_debug_map): New variable.
4402 (avoid_deep_ter_for_debug): New function.
4403 (expand_debug_expr): If TERed SSA_NAME is in
4404 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
4405 instead of trying to expand SSA_NAME's def stmt.
4406 (expand_debug_locations): When expanding debug bind
4407 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
4408 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
4409 value.
4410 (pass_expand::execute): Call avoid_deep_ter_for_debug on
4411 all debug bind stmts. Delete deep_ter_debug_map after
4412 expand_debug_location if non-NULL and clear it.
4413
4414 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
4415
4416 PR target/64851
4417 * config/sh/sync.md (atomic_fetch_notsi_hard,
4418 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
4419 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
4420 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
4421 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
4422 atomic_not_fetch<mode>_soft_imask): New insns.
4423
4424 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4425
4426 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
4427 (rank_for_schedule_debug): Split from ...
4428 (rank_for_schedule): ... this.
4429 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
4430 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
4431
4432 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
4433
4434 * doc/md.texi (Machine Constraints): Alphabetize table by target.
4435 * doc/extend.texi (x86 Variable Attributes): Move section to
4436 correct alphabetization after renaming.
4437 (x86 Type Attributes): Likewise.
4438 (Target Builtins): Re-alphabetize menu.
4439 (x86 Built-in Functions): Move section to correct alphabetization
4440 after renaming.
4441 (x86 transactional memory intrinsics): Likewise.
4442 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
4443 and x86 Windows Options in table and menu.
4444 (x86 Options): Move section to correct alphabetization after
4445 renaming.
4446 (x86 Windows Options): Likewise.
4447
4448 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
4449
4450 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
4451 preferred names of the architecture and its 32- and 64-bit
4452 variants.
4453 * doc/invoke.texi: Likewise.
4454 * doc/md.texi: Likewise.
4455
4456 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
4457
4458 PR target/64882
4459 * config/i386/predicates.md (address_no_seg_operand): Reject
4460 non-CONST_INT_P operands in invalid mode.
4461
4462 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
4463
4464 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
4465 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
4466 * config/i386/predicates.md (address_no_seg_operand): Call
4467 address_operand with VOIDmode.
4468 (vsib_address_operand): Ditto.
4469 (address_mpx_no_base_operand): Ditto.
4470 (address_mpx_no_index_operand): Ditto.
4471
4472 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
4473
4474 PR target/64688
4475 * lra-constraints.c (original_subreg_reg_mode): New.
4476 (simplify_operand_subreg): Try to simplify subreg of const. Use
4477 original_subreg_reg_mode for it.
4478 (swap_operands): Update original_subreg_reg_mode.
4479 (curr_insn_transform): Set up original_subreg_reg_mode.
4480
4481 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
4482
4483 PR target/64617
4484 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
4485 function.
4486 (process_alt_operands): Use it.
4487 (curr_insn_transform): Check the optional reload pseudo class is
4488 ok for the mode.
4489
4490 2015-01-30 Joseph Myers <joseph@codesourcery.com>
4491
4492 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
4493 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
4494 prototype.
4495 * toplev.h (init_asm_output): Update comment on use of
4496 UNKNOWN_LOCATION with fatal_error.
4497 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
4498 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
4499 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
4500 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
4501 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
4502 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
4503 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
4504 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
4505 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
4506 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
4507 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
4508 fatal_error changed to pass input_location as first argument.
4509
4510 2015-01-30 Martin Liska <mliska@suse.cz>
4511
4512 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
4513 in #pragma GCC diagnostic guards.
4514
4515 2015-01-30 Richard Biener <rguenther@suse.de>
4516
4517 PR tree-optimization/64829
4518 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
4519 not add a widening conversion pattern but hand off extra
4520 widenings to callers.
4521 (vect_recog_widen_mult_pattern): Handle extra widening produced
4522 by vect_handle_widen_op_by_const.
4523 (vect_recog_widen_shift_pattern): Likewise.
4524 (vect_pattern_recog_1): Remove excess vertical space in dumping.
4525 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
4526 (vect_init_vector_1): Likewise.
4527 (vect_get_vec_def_for_operand): Likewise.
4528 (vect_finish_stmt_generation): Likewise.
4529 (vectorizable_load): Likewise.
4530 (vect_analyze_stmt): Likewise.
4531 (vect_is_simple_use): Likewise.
4532
4533 2015-01-29 Jeff Law <law@redhat.com>
4534
4535 * combine.c (try_combine): Fix typo in comment.
4536
4537 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
4538
4539 PR target/64580
4540 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
4541 (rs6000_stack_info): Add assert.
4542 (rs6000_output_savres_externs): New function, split off from...
4543 (rs6000_output_function_prologue): ... here. Do not call it for
4544 thunks.
4545
4546 2015-01-29 Jeff Law <law@redhat.com>
4547
4548 PR target/15184
4549 * combine.c (try_combine): If I0 is a memory load and I3 a store
4550 to a related address, increase the "goodness" of doing a 4-insn
4551 combination with I0-I3.
4552 (make_field_assignment): Handle SUBREGs in the ior+and case.
4553
4554 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
4555
4556 PR tree-optimization/64746
4557 * tree-if-conv.c (mask_exists): New function.
4558 (predicate_mem_writes): Save created mask with given size for further
4559 use.
4560 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
4561 (ifcvt_repair_bool_pattern): Collect all statements that are root
4562 of bool pattern and use iterative algorithm to remove multiple uses
4563 of predicates, display number of required iterations.
4564
4565 2015-01-29 Richard Biener <rguenther@suse.de>
4566
4567 PR tree-optimization/64853
4568 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
4569 stmt will get simulated again.
4570 * tree-ssa-ccp.c (valueize_op_1): Likewise.
4571
4572 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4573
4574 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
4575 return_in_pc. Remove redundant assignments.
4576 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
4577 (arm_expand_epilogue): Don't compare boolean with true in if condition.
4578
4579 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
4580
4581 * config/i386/i386.c (ix86_mode_after): Make static.
4582
4583 2015-01-29 Richard Biener <rguenther@suse.de>
4584
4585 PR tree-optimization/64844
4586 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
4587 dump cost model analysis.
4588 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4589 Do not register adjusted load/store costs here.
4590
4591 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
4592 Uros Bizjak <ubizjak@gmail.com>
4593
4594 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
4595 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
4596 using x86_use_pseudo_pic_reg.
4597 * config/i386/i386.c (ix86_conditional_register_usage): Remove
4598 support for fixed PIC register.
4599 (ix86_use_pseudo_pic_reg): Not static any more.
4600
4601 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
4602
4603 PR middle-end/64805
4604 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
4605 to avoid error in cgraph node verification.
4606
4607 2015-01-29 Marek Polacek <polacek@redhat.com>
4608
4609 * doc/standards.texi: Reflect that the default for C is gnu11.
4610
4611 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
4612
4613 PR target/64761
4614 * reorg.c (switch_text_sections_between_p): New function.
4615 (relax_delay_slots): Call it when testing if the jump insn
4616 is removable. Use targetm.can_follow_jump when testing if
4617 the conditional branch can follow an unconditional jump.
4618
4619 2015-01-27 Caroline Tice <cmtice@google.com>
4620
4621 Committing VTV Cywin/Ming patch for Patrick Wollgast
4622 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
4623 if -fvtable-verify=preinit/std is used.
4624 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
4625 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
4626 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
4627 if -fvtable-verify=preinit/std is used.
4628 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
4629 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
4630 if -fvtable-verify=preinit/std is used.
4631 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
4632 * config/i386/mingw32.h (LIB_SPEC): Likewise.
4633 * varasm.c (assemble_variable): Add code to properly set the comdat
4634 section and name for the .vtable_map_vars section in case the
4635 target is PE or COFF.
4636
4637 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
4638
4639 PR ipa/64801
4640 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
4641 make sane BB profile.
4642 (cgraph_node::expand_thunk): Make sane BB profile.
4643 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
4644 * cgraph.h (init_lowered_empty_function): Update prototype.
4645 * config/i386/i386.c (make_resolver_func): Update call.
4646 * predict.c (gate): Disable branch prediction pass if
4647 profile is already there.
4648
4649 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
4650
4651 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
4652 * opth-gen.awk: Likewise.
4653 * common.opt: Mark flag_fp_contract_mode as Optimization.
4654
4655 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
4656
4657 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
4658 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
4659
4660 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
4661
4662 PR target/64659
4663 * config/sh/predicates.md (atomic_arith_operand,
4664 atomic_logical_operand): Remove.
4665 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
4666 (atomic_arith_operand_0): New predicate.
4667 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
4668 Use atomic_arith_operand_0 for input values.
4669 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
4670 atomic_compare_and_swap<mode>_soft_gusa,
4671 atomic_compare_and_swap<mode>_soft_tcb,
4672 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
4673 arith_reg_operand instead of register_operand.
4674 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
4675 atomic_arith_operand_0 for newval input.
4676 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
4677 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
4678 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
4679 arith_reg_operand instead of register_operand.
4680 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
4681 fetchop_predicate_1, fetchop_constraint_1_llcs,
4682 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
4683 fetchop_constraint_1_imask): New code iterator attributes.
4684 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
4685 register_operand. Use fetchop_predicate_1.
4686 (atomic_fetch_<fetchop_name>si_hard,
4687 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
4688 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
4689 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
4690 and arith_reg_operand instead of register_operand. Use
4691 fetchop_predicate_1, fetchop_constraint_1_gusa.
4692 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
4693 and arith_reg_operand instead of register_operand. Use
4694 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
4695 to allow R0 usage.
4696 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
4697 and arith_reg_operand instead of register_operand. Use
4698 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
4699 to allow R0 usage.
4700 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
4701 register_operand. Use atomic_logical_operand_1.
4702 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
4703 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
4704 arith_reg_operand instead of register_operand.
4705 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
4706 Use arith_reg_dest and arith_reg_operand instead of register_operand.
4707 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
4708 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
4709 register_operand. Use fetchop_predicate_1.
4710 (atomic_<fetchop_name>_fetchsi_hard,
4711 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
4712 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
4713 fetchop_constraint_1_llcs.
4714 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
4715 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
4716 fetchop_constraint_1_gusa.
4717 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
4718 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
4719 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
4720 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
4721 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
4722 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
4723 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
4724 register_operand. Use atomic_logical_operand_1.
4725 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
4726 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
4727 arith_reg_operand instead of register_operand.
4728 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
4729 arith_reg_operand instead of register_operand. Use logical_operand
4730 and K08. Adjust asm sequence to allow R0 usage.
4731 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
4732 arith_reg_operand instead of register_operand. Use logical_operand
4733 and K08.
4734
4735 2015-01-28 Jakub Jelinek <jakub@redhat.com>
4736
4737 PR other/63504
4738 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
4739 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
4740 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
4741 only get_full_len HOST_WIDE_INTs from get_val () array rather than
4742 all bits in *val_wide.
4743
4744 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
4745
4746 * varpool.c (tls_model_names): Fix names.
4747 (varpool_node::dump): Dump tls- prefix for tls models.
4748
4749 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
4750 Bernd Schmidt <bernds@codesourcery.com>
4751 Nathan Sidwell <nathan@codesourcery.com>
4752
4753 * config/nvptx/mkoffload.c: New file.
4754 * config/nvptx/t-nvptx: Add build rules for it.
4755 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
4756 (extra_programs): Add mkoffload.
4757 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
4758 function.
4759 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
4760
4761 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
4762
4763 PR middle-end/64809
4764 * cfgexpand.c (reorder_operands): Skip debug gimples.
4765
4766 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
4767
4768 PR tree-optimization/64277
4769 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
4770 range info when possible to refine estimation.
4771
4772 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
4773
4774 PR tree-optimization/64718
4775 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
4776 be a 16bit unsigned integer when n->range is 16.
4777 (bswap_replace): Convert src to that type if necessary for all bswap
4778 sizes. Fix rotation right notation in nearby comment. Use bswap_type
4779 set in pass_optimize_bswap::execute ().
4780
4781 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
4782
4783 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
4784 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
4785 integer and floating point variants.
4786 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
4787
4788 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
4789
4790 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
4791 for all vector modes.
4792
4793 2015-01-28 Jakub Jelinek <jakub@redhat.com>
4794
4795 PR bootstrap/64612
4796 * doc/sourcebuild.texi (comdat_group): Document.
4797
4798 2015-01-28 Terry Guo <terry.guo@arm.com>
4799
4800 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
4801
4802 2015-01-27 David Malcolm <dmalcolm@redhat.com>
4803
4804 * toplev.c (print_version): Add param "show_global_state", and
4805 only print GGC and plugin information if it is true.
4806 (init_asm_output): Pass in "true" for the new param when calling
4807 print_version.
4808 (process_options): Likewise.
4809 (toplev::main): Likewise.
4810 * toplev.h (print_version): Add new param to decl.
4811
4812 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
4813
4814 PR ipa/60871
4815 PR ipa/64139
4816 * tree.c (lookup_binfo_at_offset): New function.
4817 (get_binfo_at_offset): Use it.
4818
4819 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
4820
4821 PR ipa/64282
4822 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
4823 on vtable being vtable.
4824
4825 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
4826
4827 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
4828 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
4829 -mhotpatch= option.
4830 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
4831 -mno-hotpatch options. Change syntax of -mhotpatch= option.
4832 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
4833 Renamed.
4834 (s390_hotpatch_trampoline_halfwords_max): Renamed.
4835 (s390_hotpatch_hw_max): New name.
4836 (s390_hotpatch_trampoline_halfwords): Renamed.
4837 (s390_hotpatch_hw_before_label): New name.
4838 (get_hotpatch_attribute): Removed.
4839 (s390_hotpatch_hw_after_label): New name.
4840 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
4841 attribute.
4842 (s390_attribute_table): Ditto.
4843 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
4844 (s390_function_num_hotpatch_hw): New name.
4845 Remove special handling of inline functions and hotpatching.
4846 Return number of nops before and after the function label.
4847 (s390_can_inline_p): Removed.
4848 (s390_asm_output_function_label): Emit a configurable number of nops
4849 after the function label.
4850 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
4851 (TARGET_CAN_INLINE_P) Removed.
4852 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
4853
4854 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4855 Jiong Wang <jiong.wang@arm.com>
4856
4857 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
4858 of scratch reg.
4859 (cb<optab><mode>1): Likewise.
4860 * config/aarch64/iterators.md (bcond): New define_code_attr.
4861
4862 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4863
4864 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
4865 memory accesses.
4866
4867 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4868
4869 * config/s390/s390.c (s390_register_move_cost): Increase costs for
4870 FPR->GPR moves.
4871
4872 2015-01-27 Richard Biener <rguenther@suse.de>
4873
4874 * tree-vrp.c (update_value_range): Intersect the range with
4875 old recorded SSA name range information.
4876
4877 2015-01-27 Nick Clifton <nickc@redhat.com>
4878
4879 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
4880 BC, DE and HL registers directly, not via AX.
4881 When decrementing the stack pointer by a large amount, transfer SP
4882 into AX and perform the subtraction there.
4883 (rl78_expand_epilogue): Perform the inverse of the above
4884 enhancements.
4885
4886 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4887
4888 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
4889
4890 2015-01-27 Jakub Jelinek <jakub@redhat.com>
4891 Yury Gribov <y.gribov@samsung.com>
4892
4893 PR ubsan/64741
4894 * ubsan.c (ubsan_source_location): Refactor code.
4895 (ubsan_type_descriptor): Update type size. Refactor code.
4896
4897 2015-01-27 Richard Biener <rguenther@suse.de>
4898
4899 PR tree-optimization/56273
4900 PR tree-optimization/59124
4901 PR tree-optimization/64277
4902 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
4903 from the first VRP pass.
4904
4905 2015-01-27 Jakub Jelinek <jakub@redhat.com>
4906
4907 PR ipa/64776
4908 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
4909 handle the first argument in the same loop as all the other arguments.
4910
4911 PR rtl-optimization/61058
4912 * jump.c (cleanup_barriers): Update basic block boundaries
4913 if BLOCK_FOR_INSN is non-NULL on PREV.
4914
4915 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
4916
4917 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
4918 bounds narrowing, already instrumented calls and calls to
4919 not instrumentable functions.
4920
4921 2015-01-27 Jakub Jelinek <jakub@redhat.com>
4922
4923 PR tree-optimization/64807
4924 * wide-int.cc (wi::divmod_internal): Clear
4925 b_dividend[dividend_blocks_needed].
4926
4927 2015-01-26 DJ Delorie <dj@redhat.com>
4928
4929 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
4930 volatile memory references.
4931
4932 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
4933
4934 PR target/49263
4935 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
4936 remove_insn.
4937 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
4938 shifts if it already fits into K08.
4939
4940 2015-01-26 Jakub Jelinek <jakub@redhat.com>
4941
4942 PR ipa/64730
4943 * ipa-inline.c (inline_small_functions): Print "unknown" even
4944 if edge->call_stmt is non-NULL, but has builtins or unknown
4945 location.
4946
4947 PR middle-end/64421
4948 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
4949 with asterisk, skip the first character.
4950
4951 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
4952
4953 PR target/64806
4954 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
4955 order change.
4956
4957 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
4958
4959 PR target/64795
4960 * config/i386/i386.md (*movdi_internal): Also check operand 0
4961 to determine TYPE_LEA operand.
4962 (*movsi_internal): Ditto.
4963
4964 2015-01-26 Jakub Jelinek <jakub@redhat.com>
4965
4966 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
4967 OPTION_MASK_QUAD_MEMORY_ATOMIC.
4968
4969 2015-01-26 Renlin Li <renlin.li@arm.com>
4970
4971 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
4972 the comment.
4973 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
4974 for higher part.
4975
4976 2015-01-26 Richard Biener <rguenther@suse.de>
4977
4978 PR middle-end/64764
4979 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
4980 combining two BIT_AND_EXPR predicates.
4981
4982 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
4983
4984 PR bootstrap/64754
4985 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
4986
4987 2015-01-26 Terry Guo <terry.guo@arm.com>
4988
4989 * config/arm/arm.c (arm_file_start): Update the assignment of
4990 Tag_ABI_HardFP_use.
4991
4992 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
4993
4994 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
4995 pipeline model.
4996 config/arm/arm.md: Include the new Cortex-A57 model.
4997 (generic_sched): Don't use generic_sched when tuning for
4998 Cortex-A57.
4999
5000 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
5001 Uros Bizjak <ubizjak@gmail.com>
5002
5003 * config/i386/i386.c (get_builtin_code_for_version): Add
5004 support for BMI and BMI2 multiversion functions.
5005
5006 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5007
5008 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
5009 (extract_bit_field): Likewise.
5010 (extract_low_bits): Likewise.
5011 (expand_mult): Likewise.
5012 (expand_mult_highpart_adjust): Likewise.
5013
5014 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
5015
5016 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
5017 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
5018 * config/i386/i386.c (processor_model): Add
5019 M_INTEL_COREI7_BROADWELL.
5020 (arch_names_table): Add "broadwell".
5021
5022 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
5023
5024 PR target/49263
5025 PR target/53987
5026 PR target/64345
5027 PR target/59533
5028 PR target/52933
5029 PR target/54236
5030 PR target/51244
5031 * config/sh/sh-protos.h
5032 (sh_extending_set_of_reg::can_use_as_unextended_reg,
5033 sh_extending_set_of_reg::use_as_unextended_reg,
5034 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
5035 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
5036 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
5037 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
5038 (sh_treg_insns): New class.
5039 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
5040 (scope_counter): New class.
5041 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
5042 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
5043 sh_extending_set_of_reg::can_use_as_unextended_reg,
5044 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
5045 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
5046 sh_split_treg_set_expr): New functions.
5047 (addsubcosts): Handle treg_set_expr.
5048 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
5049 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
5050 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
5051 (sh_insn_operands_modified_between_p): Make non-static.
5052 * config/sh/predicates.md (zero_extend_movu_operand): Allow
5053 simple_mem_operand in addition to displacement_mem_operand.
5054 (zero_extend_operand): Don't allow zero_extend_movu_operand.
5055 (treg_set_expr, treg_set_expr_not_const01,
5056 arith_reg_or_treg_set_expr): New predicates.
5057 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
5058 arith_or_int_operand instead of logical_operand. Convert to
5059 insn_and_split. Try to optimize constant operand in splitter.
5060 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
5061 (*tstqi_t_zero): Delete.
5062 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
5063 (tstsi_t_and_not): Delete.
5064 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
5065 Convert to insn_and_split.
5066 (unnamed split, tstsi_t_zero_extract_xor,
5067 tstsi_t_zero_extract_subreg_xor_little,
5068 tstsi_t_zero_extract_subreg_xor_big): Delete.
5069 (*tstsi_t_shift_mask): New insn_and_split.
5070 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
5071 to recombine with surrounding insns when splitting.
5072 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
5073 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
5074 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
5075 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
5076 (*cbranch_div0s: Delete.
5077 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
5078 Try to recombine with surrounding insns when splitting. Add operand
5079 order variants.
5080 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
5081 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
5082 *addc_r_r_msb, *addc_2r_msb): Delete.
5083 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
5084 order variant.
5085 (*addc_negreg_t): New insn_and_split.
5086 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
5087 Try to recombine with surrounding insns when splitting.
5088 Add operand order variants.
5089 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
5090 insn_and_split patterns.
5091 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
5092 surrounding insns when splitting.
5093 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
5094 (*rotcl): Likewise. Add zero_extract variant.
5095 (*ashrsi2_31): New insn_and_split.
5096 (*negc): Convert to insn_and_split. Use treg_set_expr.
5097 (*zero_extend<mode>si2_disp_mem): Update comment.
5098 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
5099 condition.
5100 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
5101 with surrounding insns when splitting.
5102 (any_treg_expr_to_reg): New insn_and_split.
5103 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
5104 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
5105 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
5106 *zero_extract_2): New single bit zero extract patterns.
5107 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
5108 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
5109 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
5110 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
5111 set destination.
5112 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
5113 register_operand for set source.
5114
5115 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
5116
5117 * i386.opt (prefetch_sse): New targetsave.
5118 * i386.c (ix86_function_specific_save): Save prefetch_sse.
5119 (ix86_function_specific_restore): Restore prefetch_sse and initialize
5120 ix86_cost/ix86_tune_cost.
5121
5122 2015-01-23 David Malcolm <dmalcolm@redhat.com>
5123
5124 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
5125 Support the JIT by using 0 as the language type.
5126
5127 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
5128
5129 PR target/64317
5130 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
5131 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
5132 (mark_regno_live, process_bb_lives): Pass new parameter value to
5133 make_hard_regno_born.
5134
5135 2015-01-23 Jakub Jelinek <jakub@redhat.com>
5136
5137 PR rtl-optimization/63637
5138 PR rtl-optimization/60663
5139 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
5140 if elt->cost is MAX_COST for ASM_OPERANDS.
5141 (find_sets_in_insn): Fix up comment typo.
5142 (cse_insn): Don't set src_volatile for all non-volatile
5143 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
5144 or with "memory" clobber. Set elt->cost to MAX_COST
5145 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
5146 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
5147
5148 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
5149
5150 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
5151 alternative 1.
5152
5153 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
5154
5155 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
5156 libgcc/config/i386/elf-lib.h.
5157
5158 2015-01-23 Jakub Jelinek <jakub@redhat.com>
5159
5160 PR driver/64737
5161 * gcc.c (print_configuration): Don't print a blank line at the end
5162 here...
5163 (run_attempt): ... but here unstead.
5164
5165 PR middle-end/64734
5166 * omp-low.c (scan_sharing_clauses): Don't ignore
5167 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
5168 on target data/update constructs.
5169
5170 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
5171
5172 PR target/50928
5173 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
5174 (DEBUG_RELOAD): Removed define.
5175 (m32c_limit_reload_class): Enable traces with if DEBUG0.
5176 (m32c_function_arg): Added a type cast.
5177 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
5178 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
5179 * config/m32c/bitops.md (andqi3_16): Likewise.
5180 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
5181 (push_a01_l): Likewise.
5182
5183 2015-01-23 David Malcolm <dmalcolm@redhat.com>
5184
5185 PR jit/64721
5186 * main.c (main): Construct toplev instances with init_signals=true.
5187 * toplev.c (general_init): Add param "init_signals", and use it to
5188 conditionalize the calls to signal and host_hooks.extra_signals.
5189 (toplev::toplev): Add param "init_signals".
5190 (toplev::main): When invoking general_init, pass m_init_signals
5191 to control whether signal-handlers are installed.
5192 * toplev.h (toplev::toplev): Add param "init_signals".
5193 (toplev::m_init_signals): New field.
5194
5195 2015-01-23 David Malcolm <dmalcolm@redhat.com>
5196
5197 PR jit/64722
5198 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
5199 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
5200 latter may be affected by the former (e.g. on i686).
5201
5202 2015-01-23 Martin Liska <mliska@suse.cz>
5203
5204 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
5205 false positive during profiledbootstrap.
5206
5207 2015-01-23 Tom de Vries <tom@codesourcery.com>
5208
5209 PR libgomp/64672
5210 * lto-opts.c (lto_write_options): Output non-explicit conservative
5211 -fno-openacc.
5212 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
5213 (append_compiler_options): Pass -fopenacc through.
5214
5215 2015-01-23 Tom de Vries <tom@codesourcery.com>
5216
5217 PR libgomp/64707
5218 * lto-opts.c (lto_write_options): Output non-explicit conservative
5219 -fno-openmp.
5220 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
5221 (append_compiler_options): Pass -fopenmp through.
5222
5223 2015-01-23 Jakub Jelinek <jakub@redhat.com>
5224
5225 PR debug/64511
5226 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
5227 GTY markup.
5228
5229 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
5230 * diagnostic.def (DK_ICE_NOBT): New kind.
5231 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
5232 like DK_ICE, but never print backtrace.
5233 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
5234 (internal_error_no_backtrace): New function.
5235 * gcc.c (execute): Use internal_error_no_backtrace instead of
5236 internal_error.
5237
5238 2015-01-22 Jeff Law <law@redhat.com>
5239
5240 PR target/52076
5241 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
5242 improve code density for small immediate to memory case.
5243 (insv): Better handle bitfield assignments when the field is
5244 being set to all ones.
5245 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
5246 operand predicate.
5247
5248 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5249 Jakub Jelinek <jakub@redhat.com>
5250
5251 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
5252 for !TARGET_LIBC_PROVIDES_SSP version and
5253 -fstack-protector-{all,strong,explicit} otherwise.
5254 * config/freebsd.h (LINK_SSP_SPEC): Handle
5255 -fstack-protector-{strong,explicit}.
5256
5257 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
5258 H.J. Lu <hongjiu.lu@intel.com>
5259
5260 PR ipa/64694
5261 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
5262 heap.
5263
5264 2015-01-22 Wei Mi <wmi@google.com>
5265
5266 PR rtl-optimization/64557
5267 * dse.c (record_store): Call get_addr for mem_addr.
5268 (check_mem_read_rtx): Likewise.
5269
5270 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
5271
5272 * fold-const.c (const_binop): Add early return for non-tcc_binary.
5273
5274 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
5275
5276 * toplev.c (init_local_tick): Process the failure when read
5277 fails for random_seed.
5278
5279 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
5280 'pretty_name' to avoid memory overflow.
5281
5282 2015-01-22 Richard Biener <rguenther@suse.de>
5283
5284 PR middle-end/64728
5285 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
5286 abnormal coalescing on undefined SSA names.
5287
5288 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
5289
5290 PR target/64688
5291 PR target/64477
5292 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
5293 for alternative 3.
5294 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
5295
5296 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
5297
5298 PR middle-end/63325
5299 * fold-const.c (fold_checksum_tree): Don't include value of
5300 expr->decl_with_vis.symtab_node in the checksum.
5301
5302 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5303
5304 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
5305
5306 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
5307
5308 PR driver/64690
5309 * gcc.c (insert_comments): New function.
5310 (try_generate_repro): Call it.
5311 (append_text): Removed.
5312
5313 2015-01-22 Richard Biener <rguenther@suse.de>
5314
5315 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
5316 with IL incompatible options. Properly honor user optimize
5317 attributes.
5318
5319 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
5320
5321 PR rtl-optimization/64682
5322 * combine.c (distribute_notes): When moving a death note for
5323 a register that is set in the new I2, make sure to put it
5324 before that new I2.
5325
5326 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
5327
5328 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
5329 not TARGET_DEFAULT.
5330
5331 2015-01-21 Jakub Jelinek <jakub@redhat.com>
5332
5333 PR debug/64511
5334 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
5335 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
5336 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
5337
5338 PR sanitizer/64706
5339 * doc/invoke.texi (-fsanitize=vptr): Document.
5340
5341 PR rtl-optimization/62078
5342 * dse.c: Include cfgcleanup.h.
5343 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
5344 anything call purge_all_dead_edges and cleanup_cfg at the end
5345 of the pass.
5346
5347 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
5348
5349 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
5350 edges.
5351
5352 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
5353
5354 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
5355 decl attribute.
5356
5357 2015-01-21 David Sherwood <david.sherwood@arm.com>
5358 Tejas Belagod <Tejas.Belagod@arm.com>
5359
5360 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
5361 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
5362 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
5363 Removed.
5364
5365 2015-01-21 David Sherwood <david.sherwood@arm.com>
5366 Tejas Belagod <Tejas.Belagod@arm.com>
5367
5368 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
5369 (aarch64_reverse_mask): New decls.
5370 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
5371 (insn_count): New mode_attr.
5372 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
5373 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
5374 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
5375 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
5376 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
5377 (aarch64_simd_st4): New patterns.
5378 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
5379 (aarch64_reverse_mask): New functions.
5380
5381 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
5382
5383 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
5384 Declare.
5385 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
5386 addressing modes for BE.
5387 (aarch64_print_operand): Add 'R' specifier.
5388 (aarch64_simd_disambiguate_copy): Delete.
5389 (aarch64_simd_emit_reg_reg_move): New function.
5390 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
5391 in define_splits for structural moves.
5392 (mov<mode>): Use less restrictive predicates.
5393 (*aarch64_mov<mode>): Simplify and only allow for LE.
5394 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
5395
5396 2015-01-21 Alan Hayward <alan.hayward@arm.com>
5397
5398 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
5399
5400 2015-01-21 Richard Henderson <rth@redhat.com>
5401
5402 PR target/64669
5403 * ccmp.c (used_in_cond_stmt_p): Remove.
5404 (expand_ccmp_expr): Don't use it.
5405
5406 2015-01-21 Nick Clifton <nickc@redhat.com>
5407
5408 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
5409 PARALLELs.
5410
5411 2015-01-21 Richard Biener <rguenther@suse.de>
5412
5413 PR middle-end/64313
5414 * tree-core.h (builtin_info, builtin_info_type): Turn from
5415 an object with two arrays into an array of an object with
5416 decl and two flags, implicit_p and declared_p.
5417 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
5418 set_builtin_decl, set_builtin_decl_implicit_p,
5419 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
5420 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
5421 * builtins.c (builtin_info): Adjust.
5422 * gimplify.c (gimplify_addr_expr): References to builtins
5423 that have been declared by the user makes them eligible for
5424 use by the compiler. Call set_builtin_decl_implicit_p on them.
5425
5426 2015-01-20 Jeff Law <law@redhat.com>
5427
5428 PR target/59946
5429 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
5430 allow pc-relative addresses in operand predicates or constraints.
5431
5432 2015-01-21 Bin Cheng <bin.cheng@arm.com>
5433
5434 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
5435 neon on aarch32 processors for stringops.
5436
5437 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
5438
5439 PR ipa/63576
5440 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
5441
5442 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
5443
5444 PR lto/45375
5445 * ipa-inline.c: Include lto-streamer.h
5446 (report_inline_failed_reason): Output source file differences and
5447 flags on optimization/target node mismatch.
5448 (can_inline_edge_p): Consider caller to be the outer inline function;
5449 be less restrictive about matching opimize and optimize_size attributes.
5450 (inline_account_function_p): Break out from ...
5451 (inline_small_functions): ... here.
5452 * ipa-inline-transform.c (clone_inlined_nodes): Use
5453 inline_account_function_p.
5454 (inline_call): Use optimize attribution; use inline_account_function_p.
5455 (inline_transform): Use opt_for_fn.
5456 * ipa-inline.h (inline_account_function_p): Declare.
5457
5458 2015-01-20 Jakub Jelinek <jakub@redhat.com>
5459
5460 PR debug/64663
5461 * dwarf2out.c (decl_piece_node): Don't put bitsize into
5462 mode if bitsize <= 0.
5463 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
5464 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
5465 sizes and positions.
5466
5467 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
5468
5469 * config/nios2/nios2.c (nios2_asm_file_end): Implement
5470 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
5471 needed.
5472 (TARGET_ASM_FILE_END): Define.
5473
5474 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
5475
5476 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
5477 (struct tune_params): Use the enum.
5478 * arm.c (arm_*_tune): Update.
5479 (arm_option_override): Update.
5480
5481 2015-01-20 Richard Biener <rguenther@suse.de>
5482
5483 PR ipa/64684
5484 * ipa-reference.c (add_static_var): Inline ...
5485 (analyze_function): ... here after splitting out from ...
5486 (is_proper_for_analysis): ... this.
5487
5488 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
5489
5490 PR target/64149
5491 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
5492 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
5493 replace the conditional with it's true branch.
5494 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
5495 (arm_lra_p): Remove.
5496
5497 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
5498
5499 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
5500
5501 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5502
5503 * config/tilegx/mul-tables.c: Move symtab.h include after
5504 coretypes.h include.
5505 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
5506 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
5507 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
5508 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
5509 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
5510
5511 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
5512
5513 PR bootstrap/64676
5514 Revert:
5515 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
5516
5517 PR rtl-optimization/64081
5518 * loop-iv.c (def_pred_latch_p): New function.
5519 (latch_dominating_def): Allow specific cases with non-single
5520 definitions.
5521 (iv_get_reaching_def): Likewise.
5522 (check_complex_exit_p): New function.
5523 (check_simple_exit): Use check_complex_exit_p to allow certain cases
5524 with exits not executing on any iteration.
5525
5526 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
5527
5528 PR lto/45375
5529 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
5530 to set branch cost.
5531
5532 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
5533
5534 PR lto/45375
5535 * i386.c (gate): Check flag_expensive_optimizations and
5536 optimize_size.
5537 (ix86_option_override_internal): Drop optimize_size condition
5538 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
5539 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
5540 MASK_PREFER_AVX128.
5541 (ix86_avx256_split_vector_move_misalign,
5542 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
5543 * sse.md (all uses of TARGET_PREFER_AVX128): Add
5544 optimize_insn_for_speed_p check.
5545
5546 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
5547
5548 * config/mips/mips.h (FP_ASM_SPEC): New define.
5549 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
5550 instead.
5551
5552 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
5553
5554 PR target/53988
5555 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
5556 nullptr for insn when reaching the first insn.
5557 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
5558 (sh_insn_operands_modified_between_p): Add nullptr check.
5559 (sh_find_extending_set_of_reg): Fix log message. Don't accept
5560 sign extending mem load if the insn contains any UNSPEC or
5561 UNSPEC_VOLATILE.
5562
5563 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
5564
5565 * params.def (inline-unit-growth): Drop to 15%.
5566 * invoke.texi (inline-unit-growth): Document change.
5567
5568 2015-01-19 Martin Liska <mliska@suse.cz>
5569
5570 PR ipa/64668
5571 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
5572 function for second argument of OBJ_TYPE_REF.
5573
5574 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
5575
5576 PR ipa/64218
5577 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
5578 whether function is an alias.
5579
5580 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
5581
5582 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
5583 cases.
5584
5585 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
5586
5587 PR rtl-optimization/64671
5588 * lra-remat.c (operand_to_remat): Don't consider jump and call
5589 insns.
5590
5591 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
5592
5593 PR target/59828
5594 * config/rs6000/default64.h: Include rs6000-cpus.def.
5595 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
5596 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
5597 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
5598 and POWER8.
5599 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
5600 POWER8.
5601 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
5602 pseudo-op to specify assembler dialect.
5603
5604 2015-01-19 Martin Liska <mliska@suse.cz>
5605
5606 PR ipa/64664
5607 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
5608 Handle safe potentially removed nodes during filtering.
5609
5610 2015-01-19 Martin Liska <mliska@suse.cz>
5611
5612 * doc/extend.texi (no_icf): Add new attribute description.
5613 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
5614 where the pass attempts to merge a function with no_icf attribute.
5615
5616 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5617
5618 PR target/64532
5619 * doc/md.texi (ARM Options): Document register constraints.
5620
5621 2015-01-19 Jiong Wang <jiong.wang@arm.com>
5622 Andrew Pinski <apinski@cavium.com>
5623
5624 PR target/64304
5625 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
5626 (ashl<mode>3): Don't expand if operands[2] is not constant.
5627
5628 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5629
5630 PR target/64448
5631 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
5632 Match xor-and-xor RTL pattern.
5633
5634 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
5635
5636 PR rtl-optimization/64081
5637 * loop-iv.c (def_pred_latch_p): New function.
5638 (latch_dominating_def): Allow specific cases with non-single
5639 definitions.
5640 (iv_get_reaching_def): Likewise.
5641 (check_complex_exit_p): New function.
5642 (check_simple_exit): Use check_complex_exit_p to allow certain cases
5643 with exits not executing on any iteration.
5644
5645 2015-01-19 Jakub Jelinek <jakub@redhat.com>
5646
5647 * common.opt (fgraphite): Fix a typo.
5648
5649 2015-01-19 Felix Yang <felix.yang@huawei.com>
5650
5651 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
5652 pattern.
5653 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
5654 uminp, smax_nanp, smin_nanp): New builtins.
5655 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
5656 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
5657 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
5658 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
5659 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
5660 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
5661 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
5662 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
5663 vpminnms_f32): Rewrite using builtin functions.
5664
5665 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
5666
5667 PR libgomp/64625
5668 * omp-low.c (offload_symbol_decl): Remove variable.
5669 (get_offload_symbol_decl): Remove function.
5670 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
5671 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
5672 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
5673 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
5674 BUILT_IN_GOACC_UPDATE don't pass it at all.
5675
5676 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
5677
5678 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
5679 callers.
5680
5681 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
5682
5683 * ipa-chkp.c (chkp_produce_thunks): Add early param
5684 to split thunks production into two passes. Keep
5685 'always_inline' function bodies after the first pass.
5686 (pass_data_ipa_chkp_early_produce_thunks): New.
5687 (pass_ipa_chkp_early_produce_thunks): New.
5688 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
5689 chkp_produce_thunks signature.
5690 (make_pass_ipa_chkp_early_produce_thunks): New.
5691 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
5692 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
5693 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
5694
5695 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
5696
5697 * cgraph.c (cgraph_node::dump): Dump profile flags.
5698
5699 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
5700
5701 PR target/64652
5702 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
5703 reg appear first in the parallel.
5704
5705 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
5706
5707 * ipa-reference.c (set_reference_optimization_summary,
5708 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
5709 disabled.
5710 (ignore_module_statics): New static var.
5711 (propagate_bits): If ipa-reference is disabled, do not look into local
5712 properties.
5713 (analyze_function): Disable analysis when ipa_reference is disabled.
5714 (generate_summary): Do not dump when reference is disabled;
5715 collect vars accessed from functions with ipa-reference disabled.
5716 (get_read_write_all_from_node): When ipa-reference is disabled, use the
5717 node flags.
5718 (gate): Enable for LTO.
5719 (ignore_edge_p): New function.
5720 (propagate): Skip functions w/o ipa-reference analysis.
5721 * optc-save-gen.awk: Handle optimize_debug correctly.
5722 * opth-gen.awk: Likewise.
5723 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
5724 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
5725 fira-share-save-slots, fira-share-spill-slots,
5726 fmodulo-sched-allow-regmoves, fpartial-inlining,
5727 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
5728 ftracer, ftree-parallelize-loops, fassociative-math,
5729 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
5730 Optimization
5731 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
5732 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
5733 Optimization.
5734 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
5735 Fix for IPA.
5736
5737 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
5738
5739 PR ipa/64378
5740 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
5741 flag correctly.
5742 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
5743
5744 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
5745
5746 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
5747 Remove duplicate option listings.
5748
5749 2015-01-18 Felix Yang <felix.yang@huawei.com>
5750
5751 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
5752 (autofdo_source_profile::get_callsite_total_count,
5753 function_instance::get_function_instance_by_decl,
5754 string_table::get_index, string_table::get_index_by_decl,
5755 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
5756 Fix comment typos. Reformatting and minor code rearrangement.
5757
5758 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
5759
5760 * config/rs6000/rs6000.md (probe_stack): Delete.
5761 (probe_stack_address): New.
5762
5763 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
5764
5765 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
5766 to test for 32-bit ABIs, not !TARGET_POWERPC64.
5767
5768 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
5769
5770 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
5771 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
5772 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
5773 snafu.
5774 (rs6000_libcall_value): Use the new function.
5775
5776 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
5777
5778 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
5779
5780 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
5781
5782 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
5783 implement a more precise life analysis for it during backward scan.
5784
5785 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5786
5787 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
5788
5789 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
5790
5791 PR rtl-optimization/52773
5792 * calls.c (emit_library_call_value): When pushing arguments use
5793 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
5794 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
5795 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
5796
5797 2015-01-17 Jeff Law <law@redhat.com>
5798
5799 PR rtl-optimization/32790
5800 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
5801 not ZERO_EXTEND in SET_DESTs.
5802
5803 2015-01-17 Alan Modra <amodra@gmail.com>
5804
5805 * cprop.c (do_local_cprop): Revert last change.
5806
5807 2015-01-16 DJ Delorie <dj@redhat.com>
5808 Nick Clifton <nickc@redhat.com>
5809
5810 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
5811 (addhi3_real): Likewise. Fix [HL+0] syntax.
5812 (subqi3_real): Likewise.
5813 (subhi3_real): Likewise.
5814 (cbranchqi4_real): Likewise. Allow saddr,#imm.
5815 (cbranchhi4_real): Likewise.
5816 (cbranchhi4_real_inverted): Likewise.
5817 (cbranchsi4_real_lt): Likewise.
5818 (cbranchsi4_real_ge): Likewise.
5819 (cbranchsi4_real_ge): Likewise.
5820 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
5821 (sub<mode>3_virt): Likewise.
5822 (cbranchqi4_virt): Likewise.
5823 (cbranchhi4_virt): Likewise.
5824 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
5825 always use '[reg+imm]' even when imm is zero.
5826 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
5827 (rl78_general_operand): New.
5828 (rl78_nonimmediate_operand): New.
5829 (rl78_nonfar_operand): Use them.
5830 (rl78_nonfar_nonimm_operand): Likewise.
5831 (rl78_stack_based_mem): Fix.
5832 * config/rl78/constraints.md (Ibqi): New.
5833 (IBqi): New.
5834 (Wsa): New.
5835 (Wsf): New.
5836 (Cs1): Fix.
5837 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
5838 (iorqi3): Likewise.
5839 (xorqi3): Likewise.
5840 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
5841
5842 * config/rl78/constrains (Qs8): New constraint.
5843 * config/rl78/rl78.c (rl78_flags_already_set): New function.
5844 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
5845 * config/rl78/rl78-real.md (update_Z): New attribute.
5846 Update patterns to set it.
5847 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
5848 shorter compare and branch sequence can be used.
5849 (cbranchhi4_real): Likewise.
5850 (cbranchhi4_real_inverted): Likewise.
5851
5852 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
5853 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
5854 address space.
5855 * config/rl78/rl78.c (rl78_get_name_encoding): New.
5856 (rl78_option_override): Allow -mes0 only if C.
5857 (characterize_address): Support subregs of symbol_refs.
5858 (rl78_addr_space_address_mode): Move. Add __near.
5859 (rl78_far_p): Likewise.
5860 (rl78_addr_space_pointer_mode): Likewise.
5861 (rl78_as_legitimate_address): Likewise.
5862 (rl78_addr_space_subset_p): Likewise.
5863 (rl78_addr_space_convert): Likewise.
5864 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
5865 symbols with -mes0.
5866 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
5867 addressing.
5868 (rl78_alloc_physical_registers_op1): Change logic to prefer
5869 symbol[BC] addressing.
5870 (frodata_section): New.
5871 (rl78_asm_init_sections): Initialize it.
5872 (rl78_select_section): Put __far readonly symbols in .frodata.
5873 (rl78_make_type_far): New.
5874 (rl78_insert_attributes): Force all readonly symbols to be
5875 __far when -mes0.
5876 (rl78_asm_out_integer): New.
5877 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
5878 * config/rl78/rl78.opt (-mes0): New.
5879
5880 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
5881 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
5882 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
5883 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
5884 (rl78_saddr_p): New.
5885 (rl78_output_aligned_common): New.
5886 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
5887 (rl78_handle_saddr_attribute): New.
5888 (rl78_handle_naked_attribute): New.
5889 (rl78_attribute_table): Add saddr.
5890 (rl78_print_operand_1): Don't print '!' on saddr operands.
5891 (rl78_print_operand_1): Strip encodings.
5892 (rl78_sfr_p): New.
5893 (rl78_strip_name_encoding): New.
5894 (rl78_attrlist_to_encoding): New.
5895 (rl78_encode_section_info): New.
5896 (rl78_asm_init_sections): New.
5897 (rl78_select_section): New.
5898 (rl78_output_labelref): New.
5899 (rl78_output_aligned_common): New.
5900 (rl78_asm_out_integer): New.
5901 (rl78_asm_ctor_dtor): New.
5902 (rl78_asm_constructor): New.
5903 (rl78_asm_destructor): New.
5904
5905 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
5906 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
5907 (transcode_memory_rtx): Update.
5908 (rl78_expand_epilogue): Use A_REG instead of 0.
5909
5910 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
5911
5912 * config/arm/arm-protos.h (struct tune_params): New field
5913 sched_autopref_queue_depth.
5914 * config/arm/arm.c (sched-int.h): Include header.
5915 (arm_first_cycle_multipass_dfa_lookahead_guard,)
5916 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
5917 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
5918 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
5919 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
5920 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
5921 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
5922 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
5923 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
5924 * config/arm/t-arm (arm.o): Update.
5925 * haifa-sched.c (update_insn_after_change): Update.
5926 (rank_for_schedule): Use auto-prefetcher model, if requested.
5927 (autopref_multipass_init): New static function.
5928 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
5929 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
5930 variable for debug dumps.
5931 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
5932 (autopref_multipass_dfa_lookahead_guard): New global function that
5933 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
5934 (init_h_i_d): Update.
5935 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
5936 * sched-int.h (enum autopref_multipass_data_status): New const enum.
5937 (autopref_multipass_data_): Structure for auto-prefetcher data.
5938 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
5939 (struct _haifa_insn_data:autopref_multipass_data): New field.
5940 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
5941 (autopref_multipass_dfa_lookahead_guard): Declare.
5942
5943 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
5944
5945 * rtlanal.c (get_base_term): Handle SCRATCH.
5946
5947 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
5948
5949 * config/aarch64/aarch64.c
5950 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
5951 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
5952 * config/arm/arm.c
5953 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
5954 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
5955
5956 2015-01-17 Alan Modra <amodra@gmail.com>
5957
5958 * cprop.c (do_local_cprop): Disallow replacement of fixed
5959 hard registers.
5960
5961 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5962
5963 PR target/62066
5964 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
5965 early return 0.
5966
5967 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
5968
5969 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
5970 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
5971
5972 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5973
5974 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
5975 * config/arm/thumb1.md: ... Here.
5976
5977 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
5978
5979 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
5980 TImode for TARGET_32BIT.
5981
5982 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
5983
5984 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
5985 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
5986 as ...
5987 (rs6000_abi_word_mode): New function.
5988
5989 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
5990
5991 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
5992 instead of UNITS_PER_WORD to describe the size of stack slots.
5993
5994 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
5995
5996 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
5997 as rs6000_promote_function_mode. Move comment to there.
5998 (rs6000_promote_function_mode): New function.
5999
6000 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
6001
6002 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
6003 -mpowerpc64 is active.
6004
6005 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
6006
6007 PR middle-end/64353
6008 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
6009 virtuals on start.
6010
6011 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
6012
6013 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
6014 introduced in revision 219724.
6015
6016 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6017 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6018
6019 PR target/64263
6020 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
6021 destination is not a GP reg.
6022 (*movdi_aarch64): Likewise.
6023
6024 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
6025
6026 PR target/64623
6027 * config/rs6000/default64.h: Revert ISA change.
6028
6029 2015-01-16 Richard Biener <rguenther@suse.de>
6030
6031 PR middle-end/64614
6032 * tree-ssa-uninit.c: Include tree-cfg.h.
6033 (MAX_SWITCH_CASES): New define.
6034 (convert_control_dep_chain_into_preds): Handle switch statements.
6035 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
6036 (normalize_one_pred_1): Do not split bit-manipulations.
6037 Record (x & CST).
6038
6039 2015-01-16 Richard Biener <rguenther@suse.de>
6040
6041 PR tree-optimization/64568
6042 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
6043 complex load rewriting for TARGET_MEM_REFs.
6044
6045 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
6046
6047 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
6048
6049 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
6050
6051 PR target/64149
6052 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
6053 variable.
6054 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
6055 (aarch64_lra_p): Remove.
6056
6057 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
6058
6059 PR target/64363
6060 * ipa-chkp.h (chkp_instrumentable_p): New.
6061 * ipa-chkp.c: Include tree-inline.h.
6062 (chkp_instrumentable_p): New.
6063 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
6064 Fix processing of not instrumentable functions.
6065 (chkp_versioning): Use chkp_instrumentable_p. Warn about
6066 not instrumentable functions.
6067 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
6068 chkp_instrumentable_p.
6069 * tree-inline.h (copy_forbidden): New.
6070 * tree-inline.c (copy_forbidden): Not static anymore.
6071
6072 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6073
6074 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
6075 ptr1, ptr2 unused.
6076
6077 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
6078
6079 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
6080 type OP_OUT to OP_INOUT.
6081
6082 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
6083
6084 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
6085 (high x) y) to y if x and y have the same base.
6086
6087 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
6088
6089 * config/arm/cortex-a57.md: New.
6090 * config/aarch64/aarch64.md: Include it.
6091 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
6092 * config/aarch64/aarch64-tune.md: Regenerate.
6093
6094 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
6095
6096 PR target/64015
6097 * ccmp.c (expand_ccmp_next): New function.
6098 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
6099 and compare insn sequence.
6100 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
6101 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
6102 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
6103 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
6104 (*ccmp_ior): Changed to ccmp_ior<mode>.
6105 (cmp<mode>): New pattern.
6106 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
6107 parameters.
6108 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
6109
6110 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
6111
6112 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
6113 _mm256_bsrli_epi128): New.
6114 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
6115
6116 2015-01-15 Jiong Wang <jiong.wang@arm.com>
6117
6118 * expmed.c (store_bit_field_using_insv): Improve warning message.
6119 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
6120
6121 2015-01-15 Jiong Wang <jiong.wang@arm.com>
6122
6123 PR rtl-optimization/64011
6124 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
6125 there is partial overflow.
6126
6127 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
6128
6129 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
6130 prototype.
6131 (nds32_expand_epilogue_v3pop): Likewise.
6132 * config/nds32/nds32.md (sibcall): Define this for sibling call
6133 optimization.
6134 (sibcall_register): Likewise.
6135 (sibcall_immediate): Likewise.
6136 (sibcall_value): Likewise.
6137 (sibcall_value_register): Likewise.
6138 (sibcall_value_immediate): Likewise.
6139 (sibcall_epilogue): Likewise.
6140 (epilogue): Pass false to indicate this is not a sibcall epilogue.
6141 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
6142 (nds32_expand_epilogue_v3pop): Likewise.
6143
6144 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
6145
6146 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
6147 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
6148 (return_internal): New.
6149 (return): Define this named pattern.
6150 (simple_return): Define this named pattern.
6151 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
6152 pattern instead of unspec_volatile_func_return.
6153 (nds32_expand_epilogue_v3pop): Likewise.
6154 (nds32_can_use_return_insn): New function.
6155
6156 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
6157
6158 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
6159 * config/nds32/nds32.md (pop25return): New.
6160 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
6161 pop25return pattern.
6162
6163 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
6164
6165 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
6166 -mforbid-fp-as-gp, and -mex9 options.
6167
6168 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
6169
6170 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
6171 remove -mgp-direct option.
6172
6173 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
6174
6175 * doc/invoke.texi (--param early-inlining-insns): Update default value.
6176 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
6177
6178 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
6179
6180 * ipa-inline.c (inline_small_functions): Work around hints
6181 cache issue.
6182
6183 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
6184
6185 PR target/59710
6186 * doc/invoke.texi (Option Summary): Document new Nios II
6187 -mgpopt= syntax.
6188 (Nios II Options): Likewise.
6189 * config/nios2/nios2.opt: Add -mgpopt= option support.
6190 Modify existing -mgpopt and -mno-gpopt options to be aliases.
6191 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
6192 * config/nios2/nios2.c (nios2_option_override): Adjust
6193 -mgpopt defaulting.
6194 (nios2_in_small_data_p): Return true for explicit small data
6195 sections even with -G0.
6196 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
6197 option choices.
6198
6199 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
6200
6201 PR ipa/64612
6202 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
6203 of comdat locals.
6204 (inline_call): Fix removal of aliases.
6205
6206 2015-01-15 Jakub Jelinek <jakub@redhat.com>
6207
6208 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
6209 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
6210 * opts.c (common_handle_option): Add -fsanitize=vptr.
6211 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
6212 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
6213 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
6214 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
6215 (ubsan_expand_vptr_ifn): New prototype.
6216 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
6217 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
6218 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
6219 expand_LOOP_VECTORIZED): Make argument nameless, remove
6220 ATTRIBUTE_UNUSED.
6221 (expand_UBSAN_VPTR): New function.
6222 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
6223 in fn spec.
6224 (UBSAN_VPTR): New internal function.
6225 * sanopt.c (tree_map_traits): Renamed to ...
6226 (sanopt_tree_map_traits): ... this.
6227 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
6228 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
6229 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
6230 (maybe_optimize_ubsan_vptr_ifn): New function.
6231 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
6232 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
6233 -fsanitize=vptr.
6234 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
6235 internal calls like pure functions for aliasing, even when they
6236 have other side-effects that prevent making them ECF_PURE.
6237 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
6238 (ubsan_expand_vptr_ifn): New function.
6239
6240 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
6241
6242 PR rtl-optimization/64110
6243 * stmt.c (parse_output_constraint): Process '^' and '$'.
6244 (parse_input_constraint): Ditto.
6245 * lra-constraints.c (process_alt_operands): Process the new
6246 constraints.
6247 * ira-costs.c (record_reg_classes): Process the new constraint
6248 '^'.
6249 * genoutput.c (indep_constraints): Add '^' and '$'.
6250 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
6251 * doc/md.texi: Add description of the new constraints.
6252
6253 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
6254 Bernd Schmidt <bernds@codesourcery.com>
6255 Cesar Philippidis <cesar@codesourcery.com>
6256 James Norris <jnorris@codesourcery.com>
6257 Tom de Vries <tom@codesourcery.com>
6258 Ilmir Usmanov <i.usmanov@samsung.com>
6259 Dmitry Bocharnikov <dmitry.b@samsung.com>
6260 Evgeny Gavrin <e.gavrin@samsung.com>
6261 Jakub Jelinek <jakub@redhat.com>
6262
6263 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
6264 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
6265 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
6266 New function types.
6267 * builtins.c: Include "gomp-constants.h".
6268 (expand_builtin_acc_on_device): New function.
6269 (expand_builtin, is_inexpensive_builtin): Handle
6270 BUILT_IN_ACC_ON_DEVICE.
6271 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
6272 New macros.
6273 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
6274 flag_openmp.
6275 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
6276 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
6277 i386/intelmic-offload.h.
6278 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
6279 to libgomp and its dependencies.
6280 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
6281 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
6282 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
6283 * config/ia64/hpux.h (LIB_SPEC): Likewise.
6284 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
6285 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
6286 * doc/generic.texi: Update for OpenACC changes.
6287 * doc/gimple.texi: Likewise.
6288 * doc/invoke.texi: Likewise.
6289 * doc/sourcebuild.texi: Likewise.
6290 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
6291 GF_OMP_FOR_KIND_OACC_LOOP.
6292 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
6293 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
6294 GF_OMP_TARGET_KIND_OACC_UPDATE,
6295 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
6296 Dump more data.
6297 * gimple.c: Update comments for OpenACC changes.
6298 * gimple.def: Likewise.
6299 * gimple.h: Likewise.
6300 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
6301 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
6302 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
6303 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
6304 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
6305 appropriate place.
6306 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
6307 * gimplify.c: Include "gomp-constants.h".
6308 Update comments for OpenACC changes.
6309 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
6310 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
6311 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
6312 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
6313 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
6314 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
6315 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
6316 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
6317 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
6318 OMP_CLAUSE_SEQ.
6319 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
6320 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
6321 OMP_CLAUSE_SET_MAP_KIND.
6322 (gimplify_oacc_cache): New function.
6323 (gimplify_omp_for): Handle OACC_LOOP.
6324 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
6325 OACC_DATA.
6326 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
6327 OACC_EXIT_DATA, OACC_UPDATE.
6328 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
6329 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
6330 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
6331 (gimplify_body): Consider flag_openacc next to flag_openmp.
6332 * lto-streamer-out.c: Include "gomp-constants.h".
6333 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
6334 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
6335 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
6336 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
6337 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
6338 (BUILT_IN_ACC_ON_DEVICE): New builtins.
6339 * omp-low.c: Include "gomp-constants.h".
6340 Update comments for OpenACC changes.
6341 (struct omp_context): Add reduction_map, gwv_below, gwv_this
6342 members.
6343 (extract_omp_for_data, use_pointer_for_field, install_var_field)
6344 (new_omp_context, delete_omp_context, scan_sharing_clauses)
6345 (create_omp_child_function, scan_omp_for, scan_omp_target)
6346 (check_omp_nesting_restrictions, lower_reduction_clauses)
6347 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
6348 Update for OpenACC changes.
6349 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
6350 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
6351 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
6352 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
6353 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
6354 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
6355 OMP_CLAUSE_MAP_*.
6356 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
6357 Handle GF_OMP_FOR_KIND_OACC_LOOP.
6358 (expand_omp_target, lower_omp_target): Handle
6359 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
6360 GF_OMP_TARGET_KIND_OACC_UPDATE,
6361 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
6362 GF_OMP_TARGET_KIND_OACC_DATA.
6363 (pass_expand_omp::execute, execute_lower_omp)
6364 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
6365 flag_openmp.
6366 (offload_symbol_decl): New variable.
6367 (oacc_get_reduction_array_id, oacc_max_threads)
6368 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
6369 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
6370 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
6371 (oacc_gimple_assign, oacc_initialize_reduction_data)
6372 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
6373 functions.
6374 (is_targetreg_ctx): Remove function.
6375 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
6376 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
6377 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
6378 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
6379 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
6380 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
6381 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
6382 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
6383 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
6384 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
6385 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
6386 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
6387 * tree-core.h: Update comments for OpenACC changes.
6388 (enum omp_clause_map_kind): Remove.
6389 (struct tree_omp_clause): Change type of map_kind member from enum
6390 omp_clause_map_kind to unsigned char.
6391 * tree-inline.c: Update comments for OpenACC changes.
6392 * tree-nested.c: Likewise. Include "gomp-constants.h".
6393 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
6394 (convert_tramp_reference_stmt, convert_gimple_call): Update for
6395 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
6396 OMP_CLAUSE_SET_MAP_KIND.
6397 * tree-pretty-print.c: Include "gomp-constants.h".
6398 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
6399 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
6400 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
6401 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
6402 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
6403 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
6404 instead of OMP_CLAUSE_MAP_*.
6405 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
6406 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
6407 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
6408 * tree-streamer-in.c: Include "gomp-constants.h".
6409 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
6410 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
6411 * tree-streamer-out.c: Include "gomp-constants.h".
6412 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
6413 OMP_CLAUSE_MAP_*.
6414 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
6415 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
6416 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
6417 * tree.c (omp_clause_num_ops): Update accordingly.
6418 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
6419 Likewise.
6420 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
6421 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
6422 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
6423 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
6424 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
6425 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
6426 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
6427 (OMP_CLAUSE_SET_MAP_KIND): New macro.
6428 * varpool.c (varpool_node::get_create): Consider flag_openacc next
6429 to flag_openmp.
6430 * config/i386/intelmic-offload.h: New file.
6431 * config/nvptx/offload.h: Likewise.
6432
6433 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6434
6435 * explow.h: Remove duplicate contents.
6436 * dojump.h: Likewise.
6437
6438 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
6439
6440 * arm.c (arm_xgene_tune): Add default initializer for instruction
6441 fusion.
6442
6443 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
6444
6445 PR ipa/64068
6446 PR ipa/64559
6447 * ipa.c (symbol_table::remove_unreachable_nodes):
6448 Do not put abstract origins into boundary.
6449
6450 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
6451
6452 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
6453 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
6454
6455 2015-01-15 Steve Ellcey <sellcey@mips.com>
6456
6457 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
6458 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
6459 builtins.def, and chkp-builtins.def.
6460
6461 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
6462
6463 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
6464 ISA 2.7 (POWER8).
6465
6466 2015-01-15 Richard Biener <rguenther@suse.de>
6467
6468 PR tree-optimization/61743
6469 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
6470 information on PHIs for some simple cases.
6471
6472 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
6473
6474 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
6475 Include xgene1.md.
6476 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
6477 * config/arm/arm-cores.def (xgene1): New entry.
6478 * config/arm/arm-tables.opt: Regenerate.
6479 * config/arm/arm-tune.md: Regenerate.
6480 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
6481
6482 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
6483
6484 * tree-if-conv.c: Include hash-map.h.
6485 (aggressive_if_conv): New variable.
6486 (fold_build_cond_expr): Add simplification of non-zero condition.
6487 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
6488 destination block is not always executed.
6489 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
6490 than two predecessors if AGGRESSIVE_IF_CONV is true.
6491 (if_convertible_stmt_p): Fix commentary.
6492 (all_preds_critical_p): New function.
6493 (has_pred_critical_p): New function.
6494 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
6495 BB can have more than two predecessors and all incoming edges can be
6496 critical.
6497 (predicate_bbs): Skip predication for loop exit block, use build2_loc
6498 to compute predicate for true edge.
6499 (find_phi_replacement_condition): Delete this function.
6500 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
6501 Allow interchange PHI arguments if EXTENDED is false.
6502 Change check that block containing reduction statement candidate
6503 is predecessor of phi-block since phi may have more than two arguments.
6504 (phi_args_hash_traits): New helper structure.
6505 (struct phi_args_hash_traits): New type.
6506 (phi_args_hash_traits::hash): New function.
6507 (phi_args_hash_traits::equal_keys): New function.
6508 (gen_phi_arg_condition): New function.
6509 (predicate_scalar_phi): Add handling of phi nodes with more than two
6510 arguments, delete COND and TRUE_BB arguments, insert body of
6511 find_phi_replacement_condition to predicate ordinary phi nodes.
6512 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
6513 delete call of find_phi_replacement_condition and invoke
6514 predicate_scalar_phi with two arguments.
6515 (insert_gimplified_predicates): Add assert that non-predicated block
6516 don't have statements to insert.
6517 (ifcvt_split_critical_edges): New function.
6518 (ifcvt_split_def_stmt): Likewise.
6519 (ifcvt_walk_pattern_tree): Likewise.
6520 (stmt_is_root_of_bool_pattern): Likewise.
6521 (ifcvt_repair_bool_pattern): Likewise.
6522 (ifcvt_local_dce): Likewise.
6523 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
6524 is copy of inner or outer loop force_vectorize field, invoke
6525 ifcvt_split_critical_edges, ifcvt_local_dce and
6526 ifcvt_repair_bool_pattern for aggressive if-conversion.
6527
6528 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
6529
6530 * config/aarch64/aarch64.md: Include xgene1.md.
6531 * config/aarch64/xgene1.md: New file.
6532
6533 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
6534
6535 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
6536 xgene1 (APM XGene-1) core definition.
6537 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
6538 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
6539 * doc/invoke.texi: Document -mcpu=xgene1.
6540
6541 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6542
6543 * dojump.h: New header file.
6544 * explow.h: Likewise.
6545 * expr.h: Remove includes.
6546 Move expmed.c prototypes to expmed.h.
6547 Move dojump.c prototypes to dojump.h.
6548 Move alias.c prototypes to alias.h.
6549 Move explow.c prototypes to explow.h.
6550 Move calls.c prototypes to calls.h.
6551 Move emit-rtl.c prototypes to emit-rtl.h.
6552 Move varasm.c prototypes to varasm.h.
6553 Move stmt.c prototypes to stmt.h.
6554 (saved_pending_stack_adjust): Move to dojump.h.
6555 (adjust_address): Move to explow.h.
6556 (adjust_address_nv): Move to emit-rtl.h.
6557 (adjust_bitfield_address): Likewise.
6558 (adjust_bitfield_address_size): Likewise.
6559 (adjust_bitfield_address_nv): Likewise.
6560 (adjust_automodify_address_nv): Likewise.
6561 * explow.c (expr_size): Move to expr.c.
6562 (int_expr_size): Likewise.
6563 (tree_expr_size): Likewise.
6564 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
6565 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
6566 * genemit.c (main): Generate includes statistics.h, real.h,
6567 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
6568 stmt.h.
6569 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
6570 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
6571 explow.h, emit-rtl.h, stmt.h.
6572 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
6573 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
6574 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
6575 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
6576 emit-rtl.h, varasm.h, stmt.h.
6577 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
6578 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
6579 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
6580 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
6581 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
6582 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
6583 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
6584 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
6585 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
6586 tm.h tree.h varasm.h vec.h wide-int.h.
6587 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
6588 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
6589 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
6590 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
6591 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
6592 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
6593 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
6594 * loop-iv.c: Likewise.
6595 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
6596 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
6597 statistics.h stmt.h tree.h varasm.h wide-int.h.
6598 * lra-constraints.c: Likewise.
6599 * lra-eliminations.c: Likewise.
6600 * lra-lives.c: Likewise.
6601 * lra-remat.c: Likewise.
6602 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
6603 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
6604 statistics.h stmt.h tree.h varasm.h wide-int.h.
6605 * hw-doloop.c: Likewise.
6606 * ira-color.c: Likewise.
6607 * ira-emit.c: Likewise.
6608 * loop-doloop.c: Likewise.
6609 * loop-invariant.c: Likewise.
6610 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
6611 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
6612 statistics.h stmt.h tree.h varasm.h wide-int.h.
6613 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
6614 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
6615 statistics.h stmt.h tree.h varasm.h wide-int.h.
6616 * combine-stack-adj.c: Likewise.
6617 * cse.c: Likewise.
6618 * ddg.c: Likewise.
6619 * ifcvt.c: Likewise.
6620 * ira-costs.c: Likewise.
6621 * jump.c: Likewise.
6622 * lra-coalesce.c: Likewise.
6623 * lra-spills.c: Likewise.
6624 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
6625 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
6626 stmt.h varasm.h wide-int.h.
6627 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
6628 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
6629 varasm.h.
6630 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
6631 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
6632 statistics.h stmt.h varasm.h wide-int.h.
6633 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
6634 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
6635 varasm.h wide-int.h.
6636 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
6637 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
6638 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
6639 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
6640 statistics.h stmt.h.
6641 * config/tilepro/tilepro.c: Likewise.
6642 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
6643 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
6644 * config/pdp11/pdp11.c: Likewise.
6645 * config/xtensa/xtensa.c: Likewise.
6646 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
6647 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
6648 varasm.h.
6649 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
6650 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
6651 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
6652 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
6653 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
6654 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
6655 * rtl-chkp.c: Likewise.
6656 * tree-chkp-opt.c: Likewise.
6657 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
6658 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
6659 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
6660 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
6661 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
6662 statistics.h stmt.h.
6663 * tree-vect-data-refs.c: Likewise.
6664 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
6665 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
6666 rtl.h statistics.h stmt.h varasm.h.
6667 * internal-fn.c: Likewise.
6668 * ipa-icf-gimple.c: Likewise.
6669 * lto-section-out.c: Likewise.
6670 * tree-data-ref.c: Likewise.
6671 * tree-nested.c: Likewise.
6672 * tree-outof-ssa.c: Likewise.
6673 * tree-predcom.c: Likewise.
6674 * tree-pretty-print.c: Likewise.
6675 * tree-scalar-evolution.c: Likewise.
6676 * tree-ssa-strlen.c: Likewise.
6677 * tree-vect-loop.c: Likewise.
6678 * tree-vect-patterns.c: Likewise.
6679 * tree-vect-slp.c: Likewise.
6680 * tree-vect-stmts.c: Likewise.
6681 * tsan.c: Likewise.
6682 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
6683 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
6684 stmt.h.
6685 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
6686 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
6687 statistics.h stmt.h varasm.h.
6688 * loop-unroll.c: Likewise.
6689 * ubsan.c: Likewise.
6690 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
6691 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
6692 stmt.h varasm.h.
6693 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
6694 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
6695 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
6696 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
6697 statistics.h stmt.h.
6698 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
6699 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
6700 statistics.h stmt.h varasm.h.
6701 * gimple-match-head.c: Likewise.
6702 * lto-cgraph.c: Likewise.
6703 * lto-section-in.c: Likewise.
6704 * lto-streamer-in.c: Likewise.
6705 * lto-streamer-out.c: Likewise.
6706 * tree-affine.c: Likewise.
6707 * tree-cfg.c: Likewise.
6708 * tree-cfgcleanup.c: Likewise.
6709 * tree-if-conv.c: Likewise.
6710 * tree-into-ssa.c: Likewise.
6711 * tree-ssa-alias.c: Likewise.
6712 * tree-ssa-copyrename.c: Likewise.
6713 * tree-ssa-dse.c: Likewise.
6714 * tree-ssa-forwprop.c: Likewise.
6715 * tree-ssa-live.c: Likewise.
6716 * tree-ssa-math-opts.c: Likewise.
6717 * tree-ssa-pre.c: Likewise.
6718 * tree-ssa-sccvn.c: Likewise.
6719 * tree-tailcall.c: Likewise.
6720 * tree-vect-generic.c: Likewise.
6721 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
6722 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
6723 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
6724 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
6725 * varasm.c: Likewise.
6726 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
6727 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
6728 varasm.h.
6729 * init-regs.c: Likewise.
6730 * ira.c: Likewise.
6731 * omp-low.c: Likewise.
6732 * stack-ptr-mod.c: Likewise.
6733 * tree-ssa-reassoc.c: Likewise.
6734 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
6735 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
6736 varasm.h.
6737 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
6738 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
6739 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
6740 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
6741 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
6742 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
6743 * tree-ssa-phiopt.c: Likewise.
6744 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
6745 fixed-value.h hashtab.h real.h statistics.h stmt.h.
6746 * config/fr30/fr30.c: Likewise.
6747 * config/frv/frv.c: Likewise.
6748 * expr.c: Likewise.
6749 * final.c: Likewise.
6750 * optabs.c: Likewise.
6751 * passes.c: Likewise.
6752 * simplify-rtx.c: Likewise.
6753 * stmt.c: Likewise.
6754 * toplev.c: Likewise.
6755 * var-tracking.c: Likewise.
6756 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
6757 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
6758 * lower-subreg.c: Likewise.
6759 * postreload-gcse.c: Likewise.
6760 * ree.c: Likewise.
6761 * reginfo.c: Likewise.
6762 * store-motion.c: Likewise.
6763 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
6764 fixed-value.h hashtab.h real.h stmt.h varasm.h.
6765 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
6766 fixed-value.h hashtab.h statistics.h stmt.h.
6767 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
6768 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
6769 * except.c: Likewise.
6770 * explow.c: Likewise.
6771 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
6772 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
6773 varasm.h.
6774 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
6775 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
6776 * tree-ssa-structalias.c: Likewise.
6777 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
6778 fixed-value.h insn-config.h real.h statistics.h.
6779 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
6780 fixed-value.h insn-config.h real.h statistics.h stmt.h.
6781 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
6782 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
6783 * cfgbuild.c: Likewise.
6784 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
6785 fixed-value.h real.h rtl.h statistics.h stmt.h.
6786 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
6787 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
6788 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
6789 fixed-value.h real.h statistics.h stmt.h.
6790 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
6791 fixed-value.h real.h statistics.h stmt.h varasm.h.
6792 * cprop.c: Likewise.
6793 * modulo-sched.c: Likewise.
6794 * postreload.c: Likewise.
6795 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
6796 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
6797 statistics.h stmt.h varasm.h.
6798 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
6799 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
6800 rtl.h statistics.h stmt.h varasm.h.
6801 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
6802 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
6803 varasm.h.
6804 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
6805 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
6806 varasm.h.
6807 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
6808 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
6809 varasm.h.
6810 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
6811 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
6812 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
6813 function.h real.h statistics.h stmt.h varasm.h.
6814 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
6815 insn-config.h real.h statistics.h stmt.h.
6816 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
6817 statistics.h stmt.h.
6818 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
6819 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
6820 statistics.h stmt.h varasm.h.
6821 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
6822 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
6823 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
6824 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
6825 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
6826 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
6827 statistics.h stmt.h varasm.h.
6828 * ipa-polymorphic-call.c: Likewise.
6829 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
6830 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
6831 statistics.h stmt.h.
6832 * config/c6x/c6x.c: Likewise.
6833 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
6834 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
6835 statistics.h stmt.h varasm.h.
6836 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
6837 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
6838 stmt.h varasm.h.
6839 * ipa-split.c: Likewise.
6840 * tree-eh.c: Likewise.
6841 * tree-ssa-dce.c: Likewise.
6842 * tree-ssa-loop-niter.c: Likewise.
6843 * tree-vrp.c: Likewise.
6844 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
6845 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
6846 stmt.h.
6847 * config/nds32/nds32-fp-as-gp.c: Likewise.
6848 * config/nds32/nds32-intrinsic.c: Likewise.
6849 * config/nds32/nds32-isr.c: Likewise.
6850 * config/nds32/nds32-md-auxiliary.c: Likewise.
6851 * config/nds32/nds32-memory-manipulation.c: Likewise.
6852 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
6853 * config/nds32/nds32-predicates.c: Likewise.
6854 * config/nds32/nds32.c: Likewise.
6855 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
6856 fixed-value.h hashtab.h real.h statistics.h.
6857 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
6858 fixed-value.h hashtab.h real.h statistics.h stmt.h.
6859 * config/arm/arm.c: Likewise.
6860 * config/avr/avr.c: Likewise.
6861 * config/bfin/bfin.c: Likewise.
6862 * config/h8300/h8300.c: Likewise.
6863 * config/i386/i386.c: Likewise.
6864 * config/ia64/ia64.c: Likewise.
6865 * config/iq2000/iq2000.c: Likewise.
6866 * config/m32c/m32c.c: Likewise.
6867 * config/m32r/m32r.c: Likewise.
6868 * config/m68k/m68k.c: Likewise.
6869 * config/mcore/mcore.c: Likewise.
6870 * config/mep/mep.c: Likewise.
6871 * config/mips/mips.c: Likewise.
6872 * config/mn10300/mn10300.c: Likewise.
6873 * config/moxie/moxie.c: Likewise.
6874 * config/pa/pa.c: Likewise.
6875 * config/rl78/rl78.c: Likewise.
6876 * config/rx/rx.c: Likewise.
6877 * config/s390/s390.c: Likewise.
6878 * config/sh/sh.c: Likewise.
6879 * config/sparc/sparc.c: Likewise.
6880 * config/spu/spu.c: Likewise.
6881 * config/stormy16/stormy16.c: Likewise.
6882 * config/v850/v850.c: Likewise.
6883 * config/vax/vax.c: Likewise.
6884 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
6885 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
6886 * config/msp430/msp430.c: Likewise.
6887 * predict.c: Likewise.
6888 * value-prof.c: Likewise.
6889 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
6890 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
6891 * config/microblaze/microblaze.c: Likewise.
6892 * config/nios2/nios2.c: Likewise.
6893 * config/rs6000/rs6000.c: Likewise.
6894 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
6895 insn-config.h real.h rtl.h statistics.h stmt.h.
6896 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
6897 insn-config.h real.h statistics.h stmt.h.
6898 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
6899 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
6900 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
6901 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
6902 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
6903 fixed-value.h real.h statistics.h stmt.h.
6904 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
6905 fixed-value.h statistics.h stmt.h.
6906 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
6907 stmt.h.
6908
6909 2015-01-15 Jakub Jelinek <jakub@redhat.com>
6910
6911 * gengtype.c (create_user_defined_type): Workaround
6912 -Wmaybe-uninitialized false positives.
6913 * cse.c (fold_rtx): Likewise.
6914 * loop-invariant.c (gain_for_invariant): Likewise.
6915
6916 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
6917
6918 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
6919 set the memory attributes in all cases but clear MEM_EXPR if need be.
6920
6921 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
6922
6923 PR tree-optimization/64434
6924 * cfgexpand.c (reorder_operands): New function.
6925 (expand_gimple_basic_block): Insert call of reorder_operands if
6926 optimized is true.
6927
6928 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
6929
6930 * config/mips/micromips.md (*swp): Remove explicit parallel.
6931 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
6932 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
6933 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
6934 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
6935 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
6936 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
6937 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
6938 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
6939 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
6940 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
6941 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
6942 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
6943 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
6944 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
6945 (mips_wrdsp): Likewise.
6946 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
6947 parallel.
6948 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
6949 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
6950 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
6951 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
6952 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
6953 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
6954 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
6955 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
6956 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
6957
6958 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
6959
6960 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
6961 (mips_print_operand): Support 'y' to print exact log2 in decimal
6962 of a const_int.
6963 * config/mips/mips.h (ISA_HAS_LSA): New define.
6964 (ISA_HAS_DLSA): Likewise.
6965 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
6966 * config/mips/predicates.md (const_immlsa_operand): New predicate.
6967
6968 2015-01-15 Martin Liska <mliska@suse.cz>
6969
6970 PR target/64377
6971 * optc-save-gen.awk: Add support for array types.
6972
6973 2015-01-15 Richard Biener <rguenther@suse.de>
6974
6975 PR middle-end/64365
6976 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
6977 for MEM_REF access functions with the same base can never partially
6978 overlap.
6979
6980 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
6981
6982 * common.opt: New option -fstack-protector-explicit.
6983 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
6984 (stack_protect_decl_phase): Handle stack_protect attribute for
6985 explicit stack protection requests.
6986 (expand_used_vars): Similarly.
6987 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
6988 * doc/extend.texi: Add documentation for "stack_protect" attribute.
6989 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
6990
6991 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
6992
6993 PR target/53988
6994 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
6995 reg-reg copies.
6996 (sh_extending_set_of_reg): New struct.
6997 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
6998 sh_remove_reg_dead_or_unused_notes): New Declarations.
6999 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
7000 sh_find_extending_set_of_reg, sh_split_tst_subregs,
7001 sh_extending_set_of_reg::use_as_extended_reg): New functions.
7002 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
7003 convert to insn_and_split and use new function sh_split_tst_subregs.
7004
7005 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
7006
7007 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
7008 option.
7009 (Optimization Options): Move -fuse-ld documentation to...
7010 (Link Options): ...here.
7011
7012 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
7013
7014 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
7015 offsets.
7016 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
7017 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
7018 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
7019 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
7020 instead of ZR for the memory operand of LL/SC.
7021 (compare_and_swap_12, sync_add<mode>): Likewise.
7022 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
7023 (sync_new_<optab>_12, sync_nand_12): Likewise.
7024 (sync_old_nand_12, sync_new_nand_12): Likewise.
7025 (sync_sub<mode>, sync_old_add<mode>): Likewise.
7026 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
7027 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
7028 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
7029 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
7030 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
7031 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
7032 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
7033 * doc/md.texi (ZC): Update description.
7034
7035 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
7036
7037 * builtins.c (expand_builtin_atomic_exchange): Remove error when
7038 memory model is CONSUME.
7039 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
7040 expand_builtin_atomic_store): Change invalid memory model errors to
7041 warnings.
7042 (expand_builtin_atomic_clear): Change invalid model errors to warnings
7043 and issue warning for CONSUME.
7044
7045 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
7046
7047 * lto-cgraph: Update function comments for
7048 lto_symtab_encoder_encode_*.
7049
7050 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
7051
7052 * Makefile.in (site.exp): Do not set ENABLE_LTO.
7053
7054 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
7055
7056 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
7057 * lto-cgraph.c (select_what_to_stream): Remove argument, use
7058 lto_stream_offload_p instead.
7059 * lto-streamer.h (select_what_to_stream): Remove argument.
7060 * passes.c (ipa_write_summaries): Likewise.
7061 * tree-pass.h (ipa_write_summaries): Likewise.
7062
7063 2015-01-14 Richard Biener <rguenther@suse.de>
7064
7065 PR tree-optimization/59354
7066 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
7067 groups larger than the slp group size as having gaps.
7068
7069 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
7070
7071 PR middle-end/59448
7072 * builtins.c (get_memmodel): Promote consume to acquire always.
7073
7074 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
7075
7076 PR target/64386
7077 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
7078 V32HImode.
7079
7080 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
7081
7082 PR target/64393
7083 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
7084 Enable AVX512BW.
7085 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
7086 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
7087 AVX512VBMI, as it implies AVX512BW.
7088
7089 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
7090
7091 PR target/64387
7092 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
7093 (vec_unpacks_hi_v16sf): Ditto.
7094
7095 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7096
7097 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
7098 is not available.
7099
7100 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7101
7102 * doc/invoke.texi (mapcs): Mention deprecation.
7103 (mapcs-frame): Likewise.
7104
7105 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
7106
7107 PR target/64453
7108 * config/arm/arm.c (callee_saved_reg_p): Define.
7109 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
7110 register is callee saved instead of !call_used_regs[reg].
7111 (thumb1_compute_save_reg_mask): Likewise.
7112
7113 2015-01-14 Hale Wang <hale.wang@arm.com>
7114
7115 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
7116 Cortex-M7.
7117
7118 2015-01-14 Richard Biener <rguenther@suse.de>
7119
7120 PR lto/64415
7121 * tree-inline.c (insert_debug_decl_map): Check destination
7122 function MAY_HAVE_DEBUG_STMTS.
7123 (insert_init_debug_bind): Likewise.
7124 (insert_init_stmt): Remove redundant check.
7125 (remap_gimple_stmt): Drop debug stmts if the destination
7126 function has var-tracking assignments disabled.
7127
7128 2015-01-14 Martin Liska <mliska@suse.cz>
7129
7130 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
7131 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
7132
7133 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7134
7135 PR target/64460
7136 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
7137 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
7138
7139 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
7140
7141 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
7142 level from an ARCH; do not inject the default.
7143 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
7144 MIPS_ISA_LEVEL_SPEC.
7145 (MIPS_ISA_NAN2008_SPEC): Update comment.
7146 (BASE_DRIVER_SELF_SPECS): Likewise.
7147 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
7148 MIPS_DEFAULT_ISA_LEVEL_SPEC.
7149 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
7150 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
7151 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
7152
7153 2015-01-14 Richard Biener <rguenther@suse.de>
7154
7155 PR tree-optimization/64493
7156 PR tree-optimization/64495
7157 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
7158 assign the proper vectorized PHI to the inner loop exit PHIs.
7159
7160 2015-01-14 Joey Ye <joey.ye@arm.com>
7161
7162 * config/arm/arm.c (arm_compute_save_reg_mask):
7163 Do not save lr in case of tail call.
7164 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
7165
7166 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
7167
7168 * tree-vrp.c (check_array_ref): Emit more warnings
7169 for warn_array_bounds >= 2.
7170 * common.opt: New option -Warray-bounds=.
7171 * doc/invoke.texi: Document -Warray-bounds=.
7172
7173 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
7174
7175 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
7176 (mforbid-fp-as-gp): Remove.
7177 (mex9): Remove.
7178 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
7179 (nds32_symbol_load_store_p): Remove.
7180 (nds32_fp_as_gp_check_available): Clean up implementation.
7181 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
7182 cases.
7183 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
7184 fp-as-gp and ex9 cases.
7185
7186 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
7187
7188 * tree-profile.c (init_ic_make_global_vars): Drop workaround
7189 for bintuils bug 14342.
7190 (init_ic_make_global_vars): Likewise.
7191 (gimple_init_edge_profiler): Likewise.
7192 (gimple_gen_ic_func_profiler): Likewise.
7193
7194 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7195
7196 * ipa-inline.c (inline_small_functions): Swap the operands in
7197 enum.
7198
7199 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
7200
7201 PR ipa/64481
7202 * ipa-inline-analysis.c (node_growth_cache): Remove.
7203 (initialize_growth_caches): Do not initialize it.
7204 (free_growth_caches): Do not free it.
7205 (do_estimate_growth): Rename to ...
7206 (estimate_growth): ... this one; drop growth cache code.
7207 (growth_likely_positive): Always go the heuristics way.
7208 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
7209 (reset_edge_caches): Do not reset node growth.
7210 (heap_edge_removal_hook): Do not maintain cache.
7211 (inline_small_functions): Likewise; strenghten sanity check.
7212 (ipa_inline): Do not maintain caches.
7213 * ipa-inline.h (node_growth_cache): Remove.
7214 (do_estimate_growth): Remove to ...
7215 (estimate_growth): this one; remove inline version.
7216 (reset_node_growth_cache): Remove.
7217
7218 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
7219
7220 PR ipa/64565
7221 * ipa-inline.c (inline_small_functions): Update callee keys after
7222 resolving speculation
7223 (inline_small_functions): Always check monotonicity of the queue.
7224
7225 2015-01-13 Marek Polacek <polacek@redhat.com>
7226
7227 PR middle-end/64391
7228 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
7229
7230 2015-01-13 Jakub Jelinek <jakub@redhat.com>
7231
7232 PR rtl-optimization/64286
7233 * ree.c (combine_reaching_defs): Move part of comment earlier,
7234 remove !SCALAR_INT_MODE_P check.
7235 (add_removable_extension): Don't add vector mode
7236 extensions if all uses of the source register aren't the same
7237 vector extensions.
7238
7239 2015-01-13 Renlin Li <renlin.li@arm.com>
7240
7241 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
7242 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
7243
7244 2015-01-13 Martin Liska <mliska@suse.cz>
7245
7246 * ipa-icf.c (sem_function::equals_private): Call new functions
7247 cl_target_option_print_diff and cl_optimization_print_diff.
7248 * optc-save-gen.awk (cl_target_option_print_diff): New function.
7249 (cl_optimization_print_diff): Likewise.
7250 * opth-gen.awk: Likewise.
7251
7252 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
7253
7254 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
7255 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
7256 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
7257 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
7258 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
7259 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
7260
7261 2015-01-13 Andrew Pinski <apinski@cavium.com>
7262
7263 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
7264 instead of src mode.
7265
7266 2015-01-13 Richard Biener <rguenther@suse.de>
7267
7268 PR lto/64373
7269 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
7270 DECL_CONTEXT.
7271
7272 2015-01-13 Andrew Pinski <apinski@cavium.com>
7273
7274 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
7275 volatile mems.
7276 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
7277
7278 2015-01-13 Jakub Jelinek <jakub@redhat.com>
7279
7280 PR middle-end/63974
7281 * cfgexpand.c (expand_computed_goto): Don't call
7282 convert_memory_address here.
7283
7284 2015-01-13 Richard Biener <rguenther@suse.de>
7285
7286 PR tree-optimization/64406
7287 * tree-loop-distibution.c (pass_loop_distribution::execute):
7288 Reset the SCEV hashtable if we distributed anything.
7289
7290 2015-01-13 Richard Biener <rguenther@suse.de>
7291
7292 PR tree-optimization/64404
7293 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
7294 SLP types for CSEd loads.
7295
7296 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
7297
7298 PR tree-optimization/64436
7299 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
7300 merge of two symbolic numbers for a bitwise OR to ...
7301 (perform_symbolic_merge): This. Also fix computation of the range and
7302 end of the symbolic number corresponding to the result of a bitwise OR.
7303
7304 2015-01-13 Richard Biener <rguenther@suse.de>
7305
7306 PR tree-optimization/64568
7307 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
7308 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
7309
7310 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
7311
7312 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
7313 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
7314
7315 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
7316
7317 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
7318 target-specific symbol_ref flag.
7319 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
7320 resides in rodata section.
7321 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
7322 (nds32_encode_section_info): New function.
7323
7324 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
7325
7326 * config/nds32/nds32.md (call): Use pseudo instruction bal which
7327 clobbers TA_REGNUM if large code model is specified.
7328 (call_register): Likewise.
7329 (call_immediate): Likewise.
7330 (call_value): Likewise.
7331 (call_value_register): Likewise.
7332 (call_value_immediate): Likewise.
7333
7334 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
7335
7336 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
7337 (TARGET_CMODEL_MEDIUM): New macro.
7338 (TARGET_CMODEL_LARGE): New macro.
7339 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
7340 code model setting in assembly code.
7341
7342 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
7343
7344 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
7345 Remove MASK_GP_DIRECT flag.
7346 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
7347 one of the multilib default options.
7348 * config/nds32/nds32.opt (mgp-direct): Remove.
7349 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
7350 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
7351
7352 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
7353
7354 * config/nds32/nds32.opt (mcmodel): Add new option.
7355 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
7356 to describe code model.
7357
7358 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
7359
7360 PR target/64479
7361 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
7362
7363 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
7364
7365 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
7366 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
7367 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
7368 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
7369 __builtin_sh_set_fpscr.
7370
7371 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
7372
7373 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
7374 after a funtion name just to indicate it is a function.
7375 ([-fsanitize-undefined-trap-on-error]): Likewise.
7376 ([-fdbg-cnt=]): Likewise.
7377 ([-mmemcpy]): Likewise.
7378 ([-mflush-func]): Likewise.
7379 ([-msynci]): Likewise.
7380
7381 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
7382
7383 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
7384 example.
7385
7386 2015-01-12 Jakub Jelinek <jakub@redhat.com>
7387
7388 PR tree-optimization/64563
7389 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
7390 instead of != VR_VARYING.
7391
7392 PR target/64513
7393 * config/i386/i386.c (ix86_expand_prologue): Add
7394 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
7395
7396 PR tree-optimization/64454
7397 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
7398 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
7399 for signed or [0, op1 - 1] for unsigned modulo.
7400 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
7401 even if op1 does not satisfy integer_pow2p.
7402
7403 PR other/64370
7404 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
7405
7406 2015-01-12 Jeff Law <law@redhat.com>
7407
7408 PR target/64461
7409 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
7410 (trunchiqi2, truncsihi2): Similarly.
7411
7412 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
7413 rather than calling F.
7414
7415 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
7416
7417 * tsan.c (instrument_expr): Use force_gimple_operand.
7418 Use may_be_nonaddressable_p instead of is_gimple_addressable.
7419
7420 2015-01-12 Richard Biener <rguenther@suse.de>
7421
7422 PR tree-optimization/64530
7423 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
7424 back dr1.
7425
7426 2015-01-12 Richard Biener <rguenther@suse.de>
7427
7428 PR middle-end/64357
7429 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
7430 latches properly.
7431
7432 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7433
7434 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
7435 Cortex-A17 tuning parameters.
7436 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
7437
7438 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7439
7440 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
7441 * config/arm/arm.c (arm_macro_fusion_p): New function.
7442 (arm_macro_fusion_pair_p): Likewise.
7443 (TARGET_SCHED_MACRO_FUSION_P): Define.
7444 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
7445 (ARM_FUSE_NOTHING): Likewise.
7446 (ARM_FUSE_MOVW_MOVT): Likewise.
7447 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
7448 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
7449 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
7450 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
7451 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
7452 arm_cortex_a5_tune): Specify fuseable_ops value.
7453
7454 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
7455
7456 PR bootstrap/64561
7457 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
7458 test for PIE with copy reloc.
7459 * configure: Regenerated.
7460
7461 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7462
7463 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
7464 in gen_rtx_REG.
7465 (arm_tls_descseq_addr): Likewise.
7466 (arm_gen_movmemqi): Likewise.
7467 (arm_expand_epilogue_apcs_frame): Likewise.
7468 (arm_expand_epilogue): Likewise.
7469 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
7470 in gen_rtx_REG.
7471
7472 2015-01-12 Martin Liska <mliska@suse.cz>
7473
7474 PR ipa/64550
7475 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
7476 volatility for correct operands.
7477
7478 2015-01-12 Martin Liska <mliska@suse.cz>
7479
7480 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
7481 that a function is not leaf.
7482 (sem_function::compare_polymorphic_p): Likewise.
7483
7484 2015-01-12 Martin Liska <mliska@suse.cz>
7485
7486 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
7487 that a function is not leaf.
7488 (sem_function::compare_polymorphic_p): Likewise.
7489
7490 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7491
7492 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
7493 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
7494 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
7495 fold-const.h, tree-check.h.
7496
7497 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
7498
7499 PR ipa/63967
7500 PR ipa/64425
7501 * ipa-inline.c (compute_uninlined_call_time,
7502 compute_inlined_call_time): Use counts for extra precision when
7503 needed possible.
7504 (big_speedup_p): Fix formating.
7505 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
7506 (relative_time_benefit): Remove.
7507 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
7508 merge guessed and read profile paths.
7509 (inline_small_functions): Count only !optimize_size functions into
7510 initial size; be more lax about sanity check when profile is used;
7511 be sure to update inlined function profile when profile is read.
7512
7513 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
7514
7515 PR ipa/63470
7516 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
7517 cost when edge becomes direct.
7518 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
7519 is resolved or when introducing new speculation.
7520
7521 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
7522
7523 PR ipa/64551
7524 PR ipa/64552
7525 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
7526 '||' to fix typo issue.
7527
7528 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
7529 accept and return NULL.
7530
7531 2015-01-12 Martin Liska <mliska@suse.cz>
7532
7533 * cgraph.c (cgraph_edge::remove_callee): Move function to header
7534 file for being inlined.
7535 (cgraph_set_edge_callee): Delete.
7536 (cgraph_edge::redirect_callee): Move function to header file
7537 for being inlined.
7538 (cgraph_edge::make_direct): Use new function.
7539 (cgraph_edge::dump_edge_flags): New function created from
7540 static dump_edge_flags function.
7541 (cgraph_node::dump): Use new function.
7542 (cgraph_edge::verify_count_and_frequency): New function created
7543 from verify_edge_count_and_frequency.
7544 (cgraph_edge::verify_corresponds_to_fndecl): New function created
7545 from verify_edge_corresponds_to_fndecl.
7546 (verify_edge_corresponds_to_fndecl): Delete.
7547 (cgraph_node::verify_node): Use new function.
7548 * cgraph.h (cgraph_edge::set_callee): New function.
7549 (cgraph_edge::dump_edge_flags): Likewise.
7550 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
7551
7552 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
7553
7554 * ipa-utils.c (estimate_function_body_sizes): Do not
7555 free node params when called late with early=true.
7556
7557 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
7558
7559 * doc/md.texi (Instruction Patterns): Rewrite text for
7560 clarity.
7561 (Example): Likewise.
7562
7563 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
7564
7565 * doc/invoke.texi (Option Summary): Break long lines.
7566 [(-fdiagnostics-color)]: Put long literal in @smallexample
7567 instead of inline.
7568 [(-fsanitize-recover)]: Likewise.
7569 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
7570 [(-ffast-math)]: Likewise.
7571 [(--param max-inline-insns-recursive)]: Likewise.
7572 [(--param max-inline-recursive-depth)]: Likewise.
7573 [(-mno-text-section-literals)]: Likewise.
7574
7575 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
7576
7577 * doc/install.texi: Update for libgomp being renamed from "GNU
7578 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
7579 Runtime Library".
7580 * doc/sourcebuild.texi: Likewise.
7581
7582 2015-01-10 Anthony Green <green@moxielogic.com>
7583
7584 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
7585 mul.x availability for moxiebox configuration.
7586
7587 2015-01-09 Anthony Green <green@moxielogic.com>
7588
7589 * config/moxie/moxie.md: Tabify assembly output.
7590
7591 2015-01-09 Anthony Green <green@moxielogic.com>
7592
7593 * config/moxie/moxie.md (CC_REG): Correct register definition.
7594
7595 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
7596
7597 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
7598 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
7599 of log files.
7600
7601 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
7602
7603 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
7604
7605 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
7606 Jakub Jelinek <jakub@redhat.com>
7607
7608 PR middle-end/64412
7609 * lto-streamer.h (lto_stream_offload_p): New declaration.
7610 * lto-streamer.c (lto_stream_offload_p): New variable.
7611 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
7612 at the same time as section_name_prefix.
7613 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
7614 if lto_stream_offload_p.
7615 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
7616 stream TREE_TARGET_OPTION if lto_stream_offload_p.
7617 (write_ts_function_decl_tree_pointers): Don't
7618 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
7619 * tree-streamer-in.c (unpack_value_fields): Don't stream
7620 TREE_TARGET_OPTION in if ACCEL_COMPILER.
7621 (lto_input_ts_function_decl_tree_pointers): Don't stream
7622 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
7623 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
7624 instead of section_name_prefix string comparisons.
7625
7626 2015-01-09 Jakub Jelinek <jakub@redhat.com>
7627
7628 PR rtl-optimization/64536
7629 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
7630 tablejumps.
7631
7632 2015-01-09 Michael Collison <michael.collison@linaro.org>
7633
7634 PR tree-optimization/64322
7635 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
7636 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
7637
7638 2015-01-09 Tom de Vries <tom@codesourcery.com>
7639
7640 PR rtl-optimization/64539
7641 * regcprop.c (kill_clobbered_values): Factor out of ...
7642 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
7643 instead of note_stores with kill_clobbered_value.
7644
7645 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
7646
7647 * ginclude/unwind-arm-common.h: Revert previous commit.
7648
7649 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
7650
7651 * config.gcc (arm*-*-freebsd*): New configuration.
7652 * config/arm/freebsd.h: New file.
7653 * config.host: Add extra components for arm*-*-freebsd*.
7654 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
7655 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
7656
7657 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
7658
7659 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
7660 for -mcpu=e6500.
7661 * config/rs6000/t-rtems: Add e6500 multilibs.
7662
7663 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
7664
7665 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
7666 MPC8540.
7667
7668 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
7669
7670 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
7671 MULTILIB_EXCEPTIONS.
7672
7673 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
7674
7675 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
7676 MULTILIB_EXCEPTIONS.
7677
7678 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
7679
7680 * config/arm/t-rtems-eabi: Rename to...
7681 * config/arm/t-rtems: ...this.
7682 * config/arm/rtems-eabi.h: Rename to...
7683 * config/arm/rtems.h: ...this.
7684 * config.gcc (arm*-*-rtems*): Reflect changes above.
7685
7686 2015-01-09 Richard Biener <rguenther@suse.de>
7687
7688 PR tree-optimization/64410
7689 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
7690 on the LHS.
7691 (execute_update_addresses_taken): Deal with that.
7692 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
7693 loads/stores for complex variables.
7694
7695 2015-01-09 Martin Liska <mliska@suse.cz>
7696
7697 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
7698 name comparison.
7699 (func_checker::compare_memory_operand): New function.
7700 (func_checker::compare_operand): Split case to newly
7701 added functions.
7702 (func_checker::compare_cst_or_decl): New function.
7703 (func_checker::compare_gimple_call): Identify
7704 memory operands.
7705 (func_checker::compare_gimple_assign): Likewise.
7706 * ipa-icf-gimple.h: New function.
7707
7708 2015-01-09 Martin Liska <mliska@suse.cz>
7709
7710 PR ipa/64503
7711 * sreal.c (sreal::dump): Change unsigned format to signed for
7712 m_exp value.
7713 (sreal::to_double): Replace exp2 with scalbln.
7714
7715 2015-01-09 Martin Liska <mliska@suse.cz>
7716
7717 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
7718 * ipa-icf.c (sem_function::equals_private): Add support for target and
7719 (sem_item_optimizer::merge_classes): Remove redundant function
7720 optimization flags comparison.
7721 * tree.h (target_opts_for_fn): New function.
7722
7723 2015-01-09 Tom de Vries <tom@codesourcery.com>
7724
7725 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
7726
7727 2015-01-09 Kito Cheng <kito@0xlab.org>
7728
7729 PR rtl-optimization/64348
7730 * lra-constraints.c (split_reg): Fix caller-save store/restore
7731 instruction generation.
7732
7733 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
7734
7735 PR gcov-profile/61790
7736 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
7737 long long. Fallback to int64_t if host doesn't have long long and
7738 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
7739
7740 2015-01-08 Jakub Jelinek <jakub@redhat.com>
7741
7742 PR tree-optimization/63989
7743 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
7744 from 1000 to 10000.
7745 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
7746 (get_stridx): If we don't have a record for certain SSA_NAME,
7747 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
7748 constant offset, call get_stridx_plus_constant.
7749 (get_stridx_plus_constant): New function.
7750 (zero_length_string): Don't use get_stridx here.
7751
7752 PR target/55023
7753 PR middle-end/64388
7754 * dse.c (struct insn_info): Mention frame_read set also
7755 before reload for tail calls on some targets.
7756 (scan_insn): Revert 2014-12-22 change. Set frame_read
7757 also before reload for tail calls if
7758 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
7759 instead of add_non_frame_wild_read for non-const/memset
7760 tail calls after reload.
7761
7762 2015-01-08 Jason Merrill <jason@redhat.com>
7763
7764 * ubsan.c (do_ubsan_in_current_function): New.
7765 (pass_ubsan::gate): Use it.
7766 * ubsan.h: Declare it.
7767 * convert.c (convert_to_integer): Use it.
7768
7769 2015-01-08 Jakub Jelinek <jakub@redhat.com>
7770
7771 PR target/64338
7772 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
7773 compare_code when it is unconditionally overwritten afterwards.
7774 Use ix86_reverse_condition instead of reverse_condition. Don't
7775 change code if *reverse_condition* returned UNKNOWN and don't
7776 swap ct/cf and negate diff in that case.
7777
7778 2015-01-08 Mike Stump <mikestump@comcast.net>
7779
7780 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
7781 (pass_tsan_O0::gate): Likewise.
7782 * extend.texi (Function Attributes): Add no_sanitize_thread
7783 documentation.
7784
7785 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
7786
7787 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
7788 for registering builtins.
7789 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
7790 add -fopenmp to the argv_obstack used when invoking
7791 compile_for_target.
7792
7793 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
7794 add "-m32" or "-m64" to argv_obstack.
7795 (generate_host_descr_file): Likewise, when invoking host_compiler.
7796 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
7797 ld.
7798
7799 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
7800
7801 * config/sh/sh-mem.cc: Use constant as second operand when emitting
7802 tstsi_t insns.
7803
7804 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
7805
7806 PR target/55212
7807 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
7808 constant load if constant operand fits into I08.
7809
7810 2015-01-08 Jakub Jelinek <jakub@redhat.com>
7811
7812 PR sanitizer/64336
7813 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
7814 and TREE_THIS_VOLATILE for MEM_REFs.
7815 (build5_stat): Fix up initialization of TREE_READONLY and
7816 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
7817
7818 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
7819
7820 PR target/64533
7821 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
7822 of r for the second alternative of the destination operand.
7823
7824 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
7825
7826 PR target/36557
7827 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
7828
7829 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
7830
7831 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
7832 keywords.
7833 ([-fivar-visibility], [-fvisibility]): Likewise.
7834
7835 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
7836
7837 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
7838 the file where @code, @command, etc is more appropriate.
7839
7840 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
7841
7842 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
7843 of -mrecip= documentation.
7844
7845 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
7846
7847 PR target/64505
7848 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
7849 correct reload handler if -m32 -mpowerpc64 is used.
7850
7851 2015-01-06 Tom de Vries <tom@codesourcery.com>
7852
7853 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
7854
7855 2015-01-08 Christian Bruel <christian.bruel@st.com>
7856
7857 PR target/64507
7858 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
7859
7860 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
7861
7862 PR tree-optimization/63259
7863 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
7864 if optab exists for 16bit byteswap.
7865
7866 2015-01-06 Jakub Jelinek <jakub@redhat.com>
7867
7868 * opts.c (common_handle_option): Add support for
7869 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
7870 * doc/invoke.texi: Document -fno-sanitize=all,
7871 -f{,no-}sanitize-recover=all. Document that
7872 -fsanitize=float-cast-overflow is not enabled
7873 by -fsanitize=undefined. Fix up documentation
7874 of -f{,no-}sanitize-recover.
7875
7876 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
7877
7878 * config.gcc: Add Visium support.
7879 * configure.ac: Likewise.
7880 * configure: Regenerate.
7881 * doc/extend.texi (interrupt attribute): Add Visium.
7882 * doc/invoke.texi: Document Visium options.
7883 * doc/install.texi: Document Visium target.
7884 * doc/md.texi: Document Visium constraints.
7885 * common/config/visium: New directory.
7886 * config/visium: Likewise.
7887
7888 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
7889
7890 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
7891 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
7892
7893 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
7894
7895 * combine.c (combine_validate_cost): Do not count the cost of a
7896 split I2 twice. Do not display it twice in the dump, either.
7897
7898 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
7899
7900 Revert parts of r219199.
7901 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
7902 <inttypes.h>.
7903 ([-Wtraditional]): Restore markup on <limits.h>.
7904
7905 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
7906
7907 PR c++/31397
7908 * doc/invoke.texi: Document -Wsuggest-override.
7909
7910 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
7911
7912 PR rtl-optimization/64287
7913 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
7914 (process_options): Disable flag_ipa_ra if profiling.
7915
7916 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
7917
7918 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
7919
7920 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
7921
7922 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
7923 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
7924 put under #if TARGET_LOOPS guard.
7925
7926 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
7927
7928 * config/i386/i386.c (output_387_binary_op): Use std::swap.
7929
7930 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
7931
7932 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
7933 * rtl.h (refers_to_regno_p): Add overload.
7934 * cse.c: Use it.
7935 * bt-load.c: Likewise.
7936 * combine.c: Likewise.
7937 * df-scan.c: Likewise.
7938 * sched-deps.c: Likewise.
7939 * config/s390/s390.c: Likewise.
7940 * config/m32r/m32r.c: Likewise.
7941 * config/rs6000/spe.md: Likewise.
7942 * config/rs6000/rs6000.c: Likewise.
7943 * config/pa/pa.c: Likewise.
7944 * config/stormy16/stormy16.c: Likewise.
7945 * config/cris/cris.c: Likewise.
7946 * config/arc/arc.md: Likewise.
7947 * config/arc/arc.c: Likewise.
7948 * config/sh/sh.md: Likewise.
7949 * config/sh/sh.c: Likewise.
7950 * config/frv/frv.c: Likewise.
7951
7952 2015-01-05 Jakub Jelinek <jakub@redhat.com>
7953
7954 PR sanitizer/64265
7955 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
7956 call as cleanup of the whole body.
7957 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
7958 * tsan.c (replace_func_exit): New function.
7959 (instrument_func_exit): Moved earlier.
7960 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
7961 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
7962 been found.
7963 (tsan_pass): Don't call instrument_func_exit.
7964 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
7965 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
7966 inlining.
7967
7968 PR sanitizer/64344
7969 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
7970 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
7971 it to libubsan handler instead of EXPR. Fold comparisons earlier,
7972 if the result is integer_zerop, return NULL_TREE.
7973 * convert.c (convert_to_integer): Pass expr as ARG.
7974
7975 PR tree-optimization/64465
7976 * tree-inline.c (redirect_all_calls): During inlining
7977 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
7978 changed the stmt to a non-throwing call.
7979
7980 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
7981
7982 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
7983 etc markup throughout the file.
7984
7985 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
7986
7987 Enable experimental TSAN support for Ada.
7988 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
7989
7990 2015-01-05 Jakub Jelinek <jakub@redhat.com>
7991
7992 PR tree-optimization/64494
7993 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
7994 clear SSA_NAME_ANTI_RANGE_P flag.
7995
7996 2015-01-05 Marek Polacek <polacek@redhat.com>
7997
7998 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
7999
8000 2015-01-05 Jakub Jelinek <jakub@redhat.com>
8001
8002 Update copyright years.
8003
8004 * gcc.c (process_command): Update copyright notice dates.
8005 * gcov-dump.c: Ditto.
8006 * gcov.c: Ditto.
8007 * doc/cpp.texi: Bump @copying's copyright year.
8008 * doc/cppinternals.texi: Ditto.
8009 * doc/gcc.texi: Ditto.
8010 * doc/gccint.texi: Ditto.
8011 * doc/gcov.texi: Ditto.
8012 * doc/install.texi: Ditto.
8013 * doc/invoke.texi: Ditto.
8014
8015 * auto-profile.c, auto-profile.h: Fix up Copyright line.
8016
8017 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
8018
8019 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
8020 verb tense, etc.
8021 ([-fvtable-verify], [-fvtv-debug]): Likewise.
8022 ([-Wabi]): Likewise.
8023 ([-fmessage-length]): Likewise.
8024 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
8025 ([-Wno-discarded-qualifiers]): Likewise.
8026 ([-Wnodiscarded-array-qualifiers]): Likewise.
8027 ([-Wno-virtual-move-assign]): Likewise.
8028 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
8029 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
8030 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
8031 ([-fsanitize-undefined-trap-on-error]): Likewise.
8032 ([-floop-interchange]): Likewise.
8033 ([-ftree-coalesce-inlined-vars]): Likewise.
8034 ([-fvect-cost-model]): Likewise.
8035 ([-flto]): Likewise.
8036 ([--param]): Likewise.
8037 (Spec Files): Likewise.
8038 ([-mstrict-align]): Likewise.
8039 ([-mfix-cortex-a53-835769]): Likewise.
8040 ([-march], [-mtune]): Likewise.
8041 ([-mpic-register]): Likewise.
8042 ([-munaligned-access]): Likewise.
8043 ([-msp8]): Likewise.
8044 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
8045 (AVR Built-in Macros): Likewise.
8046 ([-mpreferred-stack-boundary]): Likewise.
8047 ([-mtune-crtl]): Likewise.
8048 ([-mashf]): Likewise.
8049 ([-mmcu=]): Likewise.
8050 ([-minrt]): Likewise.
8051 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
8052 ([-mupper-regs]): Likewise.
8053 ([-matomic-model]): Likewise.
8054 ([-mdiv]): Likewise.
8055 ([-mzdcbranch]): Likewise.
8056 ([-mdisable-callt]): Likewise.
8057 ([-msoft-float]): Likewise.
8058 ([-m8byte-align]): Likewise.
8059 ([-fstack-reuse]): Likewise.
8060
8061 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
8062
8063 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
8064 Fix markup, light copy-editing.
8065 ([-fauto-profile]): Rewrite to fix formatting and content
8066 problems.
8067
8068 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
8069
8070 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
8071 Copy-edit description.
8072 ([-fisolate-erroneous-paths-attribute]): Likewise.
8073 * common.opt (fisolate-erroneous-paths-dereference):
8074 Copy-edit description.
8075 (fisolate-erroneous-paths-attribute): Likewise.
8076
8077 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
8078
8079 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
8080 tidy grammar.
8081
8082 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
8083
8084 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
8085 ([-fvtv-debug]): Likewise.
8086 ([-Wc++-compat]): Likewise.
8087 ([-Wc++11-compat]): Likewise.
8088 ([-Wc++14-compat]): Likewise.
8089 ([-Wno-sized-deallocation]): Likewise.
8090 ([-femit-class-debug-always]): Likewise.
8091 ([-femit-struct-debug-detailed]): Likewise.
8092 ([-fno-keep-inline-dllexport]): Likewise.
8093 ([-fira-algorithm]): Likewise.
8094 ([-fira-region]): Likewise.
8095 ([-flra-remat]): Likewise.
8096 ([-fipa-ra]): Likewise.
8097 ([-fhoist-adjacent-loads]): Likewise.
8098 ([-fisolate-erroneous-paths-dereference]): Likewise.
8099 ([-fisolate-erroneous-paths-attribute]): Likewise.
8100 ([-ftree-switch-conversion]): Likewise.
8101 ([-ftree-tail-merge]): Likewise.
8102 ([-ftree-loop-if-convert]): Likewise.
8103 ([-ftree-loop-if-convert-stores]): Likewise.
8104 ([-ftree-loop-distribution]): Likewise.
8105 ([-ftree-loop-distribute-patterns]): Likewise.
8106 ([-flto-compression-level]): Likewise.
8107 ([-flto-report]): Likewise.
8108 ([-flto-report-wpa]): Likewise.
8109 ([-fuse-linker-plugin]): Likewise.
8110 ([-mfix-cortex-a53-835769]): Likewise.
8111 ([-mno-fix-cortex-a53-835769]): Likewise.
8112 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
8113 explicit listing; add a note to the discussion indicating they
8114 exist. Reorder table to group similar options. Add missing
8115 @opindex entries. Add @need commands throughout the table to
8116 allow it to be split across multiple pages.
8117 ([-m8bit-idiv]): Fix @opindex.
8118 ([-mavx256-split-unaligned-load]): Likewise.
8119 ([-mavx256-split-unaligned-store]): Likewise.
8120 ([-mstack-protector-guard]): Likewise.
8121 ([-mcpu=]): Likewise.
8122 ([-mcpu]): Likewise.
8123 ([-mpointer-size=]): Likewise.
8124
8125 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
8126
8127 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
8128 instead of `m' constraint. Likewise for unnamed movb comparison
8129 patterns using reg_before_reload_operand predicate.
8130 * config/pa/predicates.md (reg_before_reload_operand): Tighten
8131 predicate to reject register index and LO_SUM DLT memory forms
8132 after reload.
8133
8134 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
8135
8136 * doc/invoke.texi (Option Summary): Fix spelling of
8137 -fdevirtualize-at-ltrans.
8138 ([-fdevirtualize]): Fix markup.
8139 ([-fdevirtualize-speculatively]): Fix typo.
8140 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
8141 implementor-speaky.
8142 * common.opt (fdevirtualize-at-ltrans): Likewise.
8143 * ipa-devirt.c: Fix typos in comments throughout the file.
8144 (ipa_devirt): Fix typos in format strings for dump output.
8145
8146 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
8147
8148 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
8149 discussion of defaults, light copy-editing.
8150
8151 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
8152
8153 * tsan.c (instrument_expr): corrected previous checkin.
8154
8155 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
8156
8157 Instrument bit field and unaligned accesses for TSAN.
8158 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
8159 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
8160 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
8161 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
8162 unaligned memory regions.
8163
8164 2015-01-01 Anthony Green <green@moxielogic.com>
8165
8166 * config/moxie/predicates.md (moxie_general_movsrc_operand):
8167 Restrict move source register offsets to 16 bits.
8168 \f
8169 Copyright (C) 2015 Free Software Foundation, Inc.
8170
8171 Copying and distribution of this file, with or without modification,
8172 are permitted in any medium without royalty provided the copyright
8173 notice and this notice are preserved.