]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
stl_algo.h (random_shuffle): Only define for hosted implementations.
[gcc.git] / gcc / ChangeLog
CommitLineData
68d15e8c
DH
12015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
2
3 PR bootstrap/65910
4 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
5
7bfc5ada
JM
62015-04-28 Jason Merrill <jason@redhat.com>
7
8 PR c++/65734
9 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
10 (finalize_type_size): Respect TYPE_USER_ALIGN.
11 (layout_type) [ARRAY_TYPE]: Likewise.
12
544f7fc8
YR
132015-04-28 Yvan Roux <yvan.roux@linaro.org>
14
15 * config/arm/arm.md (*arm_movt): Fix type attribute.
16 (*cmpsi_shiftsi): Likewise.
17 (*cmpsi_shiftsi_swp): Likewise.
18 (*movsicc_insn): Likewise.
19 (*cond_move): Likewise.
20 (*if_plus_move): Likewise.
21 (*if_move_plus): Likewise.
22 (*if_arith_move): Likewise.
23 (*if_move_arith): Likewise.
24 (*if_shift_move): Likewise.
25 (*if_move_shift): Likewise.
26 (*arm_movtas_ze): Likewise.
27 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
28 redundancy and type attribute.
29 (*thumb2_movsi_insn): Fix type attribute.
30 (*thumb2_addsi_short): Likewise.
31 (thumb2_addsi3_compare0): Likewise.
32 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
33 attributes accordingly.
34
6b241bd1
MT
352015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
36
37 PR other/65911
38 * function.c (pad_to_arg_alignment): Add parentheses.
39
cc86234f
UB
402015-04-28 Uros Bizjak <ubizjak@gmail.com>
41
42 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
43 libgcc/config/frv/elf-lib.h.
44
0e8623e9
TV
452015-04-28 Tom de Vries <tom@codesourcery.com>
46
47 * tree-call-cdce.c: Fix example in header comment.
48
90dd6e3d
RB
492015-04-28 Richard Biener <rguenther@suse.de>
50
51 PR tree-optimization/62283
52 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
53 fails fatally and we are vectorizing a basic-block simply
54 cause the child to be constructed piecewise.
55 (vect_analyze_slp_cost_1): Adjust.
56 (vect_detect_hybrid_slp_stmts): Likewise.
57 (vect_bb_slp_scalar_cost): Likewise.
58 (vect_get_constant_vectors): For piecewise constructed
59 constants place them after the last def.
60 (vect_get_slp_defs): Adjust.
61 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
62 externals for basic-block vectorization.
63
fde9b31b
TP
642015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
65
66 PR target/63503
67 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
68 aarch64-*-*.
69 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
70 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
71 (AARCH64_TUNE_FMA_STEERING): Likewise.
72 * config/aarch64/aarch64-cores.def: Set
73 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
74 FMUL/FMADD instructions.
75 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
76 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
77 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
78 * config/aarch64/cortex-a57-fma-steering.h: New file.
79 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
80
0060d7d7
RS
812015-04-28 Richard Sandiford <richard.sandiford@arm.com>
82
83 * gensupport.c (std_preds): Add missing codes to address_operand entry.
84
85ebc193
RB
852015-04-28 Richard Biener <rguenther@suse.de>
86
87 PR tree-optimization/65851
88 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
89 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
90 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
91 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
92 (ccp_visit_phi_node): Adjust.
93 (evaluate_stmt): For simplifications to SSA names return its
94 lattice value if that isn't VARYING. Return immediately when
95 simplified to a constant.
96 (visit_assignment): Adjust.
97 (ccp_visit_stmt): Likewise.
98
a66dfffd
TV
992015-04-28 Tom de Vries <tom@codesourcery.com>
100
101 PR tree-optimization/65818
102 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
103 evaluated.
104
6dad9361
TS
1052015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
106
107 * calls.c (save_fixed_argument_area): Don't check
108 ARGS_GROW_DOWNWARD with the preprocessor.
109 (restore_fixed_argument_area): Likewise.
110 (mem_overlaps_already_clobbered_arg_p): Likewise.
111 (check_sibcall_argument_overlap): Likewise.
112 (expand_call): Likewise.
113 (emit_library_call_value_1): Likewise.
114 (store_one_arg): Likewise.
115 * function.c (assign_parms): Likewise.
116 (locate_and_pad_parm): Likewise.
117 (pad_to_arg_alignment): Likewise.
118 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
119
376bddab
TS
1202015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
121
122 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
123 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
124 * calls.c (save_fixed_argument_area): Don't chekc if
125 ARGS_GROW_DOWNWARD is defined.
126 (restore_fixed_argument_area): Likewise.
127 (mem_overlaps_already_clobbered_arg_p): Likewise.
128 (check_sibcall_argument_overlap): Likewise.
129 (expand_call): Likewise.
130 (emit_library_call_value_1): Likewise.
131 (store_one_arg): Likewise.
132 * function.c (assign_parms): Likewise.
133 (locate_and_pad_parm): Likewise.
134 (pad_to_arg_alignment): Likewise.
135 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
136
5251b8b3
TS
1372015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
138
139 * defaults.h (gen_epilogue): New function.
140 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
141 defined.
142 * cfgrtl.c (cfg_layout_finalize): Likewise.
143 * df-scan.c: Likewise.
144 * function.c (thread_prologue_and_epilogue_insns): Likewise.
145 (reposition_prologue_and_epilogue_notes): Likewise.
146 * reorg.c (find_end_label): Likewise.
147 * toplev.c: Likewise.
148
08b7ff1e
TS
1492015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
150
151 * bb-reorder.c (HAVE_return): Don't check if its undefined.
152 * defaults.h (gen_simple_return): New function.
153 (gen_simple_return): Likewise.
154 (HAVE_return): Add default definition to false.
155 (HAVE_simple_return): Likewise.
156 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
157 HAVE_return and HAVE_simple_return are defined.
158 * function.c (gen_return_pattern): Likewise.
159 (convert_jumps_to_returns): Likewise.
160 (thread_prologue_and_epilogue_insns): Likewise.
161 * reorg.c (find_end_label): Likewise.
162 (dbr_schedule): Likewise.
163 * shrink-wrap.c: Likewise.
164 * shrink-wrap.h: Likewise.
165
a3699d66
TS
1662015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
167
168 * defaults.h (EPILOGUE_USES): Add default definition of false.
169 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
170 * resource.c (init_resource_info): Likewise.
171
1d0275e2
TS
1722015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
173
174 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
175 to false.
176 * dwarf2out.c (field_byte_offset): REmove check if
177 PCC_BITFIELD_TYPE_MATTERS is defined.
178 * stor-layout.c (layout_decl): Likewise.
179 (update_alignment_for_field): Likewise.
180 (place_field): Likewise.
181
aedf2c02
TS
1822015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
183
184 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
185 true.
186 * regrename.c (check_new_reg_p): Remove check if
187 HARD_REGNO_RENAME_OK is defined.
188 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
189
1e8552c2
TS
1902015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
191
192 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
193 * cse.c (fold_rtx): Likewise.
194 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
195 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
196 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
197 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
198 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
199 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
200 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
201 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
202 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
203 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
204 * Likewise.
205 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
206 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
207 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
208 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
209 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
210 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
211 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
212 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
213 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
214 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
215 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
216 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
217 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
218 * doc/tm.texi: Regenerate.
219 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
220 either true or false.
221
009b7fc1
JL
2222015-04-27 Jeff Law <law@redhat.com>
223
224 PR tree-optimization/65217
225 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
226 of them has a single use, make sure it is the LHS of the implied
227 copy.
228
3954ead0
AM
2292015-04-28 Alan Modra <amodra@gmail.com>
230
231 PR target/65810
232 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
233 (offsettable_ok_by_alignment): Use minimum of decl and toc
234 pointer alignment. Replace dead code with assertion.
235 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
236 case if size exceeds toc pointer alignment.
237 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
238 (rs6000_emit_move): Likewise.
239 * configure.ac: Add linker toc pointer alignment check.
240 * configure: Regenerate.
241 * config.in: Regenerate.
242
2f6bd6eb
YS
2432015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
244
245 * config.gcc: Add h8300-*-linux.
246 * config/h8300/linux.h: New.
247 * config/h8300/t-linux: New.
248 * config/h8300/h8300.c (h8300_option_override): Normal mode
249 is not supported for h8300-*-linux.
250 (h8300_file_start): Target priority change.
251 (get_shift_alg): Likewise.
252 (h8300_shift_need_scratch_p): Likewise.
253 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
254 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
255
16d710b1
CT
2562015-04-27 Caroline Tice <cmtice@google.com>
257
f11fcf6a 258 * final.c (final_scan_insn): Output cold_function_name as function
16d710b1 259 type.
f11fcf6a 260 * varasm.c (cold_function_name): Make global.
16d710b1
CT
261 (assemble_start_function): Re-set cold_function_name.
262 (assemble_end_function): Output cold partition size.
f11fcf6a 263 * varasm.h (cold_function_name): Declare global.
16d710b1 264
0a48088a
IT
2652015-04-27 Ilya Tocar <ilya.tocar@intel.com>
266
267 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
268 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
269 constraint.
270 (*movxi_internal_avx512f): Ditto.
271 (define_split): Check for xmm16+, when splitting scalar float_extend.
272 (*extendsfdf2_mixed): Use "v" constraint.
273 (define_split): Check for xmm16+, when splitting scalar float_truncate.
274 (*truncdfsf_fast_sse): Use "v" constraint.
275 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
276 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
277 (define_peephole2): Check for xmm16+, when converting scalar
278 float_truncate.
279 (define_peephole2): Check for xmm16+, when converting scalar
280 float_extend.
281 (*fop_<mode>_comm_mixed): Use "v" constraint.
282 (*fop_<mode>_comm_sse): Ditto.
283 (*fop_<mode>_1_mixed): Ditto.
284 (*sqrt<mode>2_sse): Ditto.
285 (*ieee_s<ieee_maxmin><mode>3): Ditto.
286
fefcf532
KT
2872015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
288
289 * combine.c (simplify_if_then_else): Use std::swap instead
290 of manually swapping.
291 (known_cond): Likewise.
292 (simplify_comparison): Likewise.
293
01f61a78
PB
2942015-04-27 Peter Bergner <bergner@vnet.ibm.com>
295
296 PR target/64579
297 * config/rs6000/htm.md: Remove all define_expands.
298 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
299 UNSPECV_HTM_TABORTWCI): Remove.
300 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
301 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
302 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
303 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
304 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
305 tabortwci_internal): Remove define_insns.
306 (tabort<wd>c, tabort<wd>ci): New define_insns.
307 (tabort): Use gpc_reg_operand.
308 (tcheck): Remove operand.
309 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
310 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
311 expected value.
312 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
313 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
314 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
315 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
316 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
317 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
318 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
319 (tcheck): Remove builtin argument.
320 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
321 not TARGET_64BIT.
322 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
323 tabortdc and tabortdci builtins when not in 64-bit mode.
324 Modify code to handle the loss of the HTM define_expands.
325 Emit code to copy the CR register to TARGET.
326 (htm_init_builtins): Modify code to handle the loss of the HTM
327 define_expands.
328 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
329 (RS6000_BTC_64BIT): Likewise.
330 (RS6000_BTC_CR): New macro.
331 * doc/extend.texi: Update documentation for htm builtins.
332
e2be0590
KT
3332015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
334
335 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
336 of manually swapping.
337 (simplify_associative_operation): Likewise.
338 (simplify_binary_operation): Likewise.
339 (simplify_plus_minus): Likewise.
340 (simplify_relational_operation): Likewise.
341 (simplify_ternary_operation): Likewise.
342
60a4dfd6
RS
3432015-04-27 Richard Sandiford <richard.sandiford@arm.com>
344
345 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
346 (xs_hi_nonmemory_operand): Remove error.
347 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
348 general_operand rather than xs_hi_general_operand.
349
05b7b5a4
RB
3502015-04-27 Richard Biener <rguenther@suse.de>
351
352 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
353 (record_equivalences_from_stmt): Valueize rhs.
354 (record_equality): Canonicalize x and y order via
355 tree_swap_operands_p. Do not swap operands for same loop depth.
356
2e3a3cc8
GJL
3572015-04-27 Georg-Johann Lay <avr@gjlay.de>
358
359 PR target/65296
360 PR target/65895
361 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
362 Add hint how to use own spec file.
363
9c3cb360
JJ
3642015-04-27 Jakub Jelinek <jakub@redhat.com>
365
366 PR tree-optimization/65875
367 * tree-vrp.c (update_value_range): If in is_new case setting
368 old_vr to VR_VARYING, also set new_vr to it. Remove
369 old_vr->type == VR_VARYING test.
370 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
371 SSA_PROP_INTERESTING if update_value_range returned true,
372 but new range is VR_VARYING.
373
97d87f75
TP
3742015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
375
376 * combine.c (sign_extend_short_imm): New.
377 (set_nonzero_bits_and_sign_copies): Use above new function for sign
378 extension of src short immediate.
379 (reg_nonzero_bits_for_combine): Likewise for tem.
380
232f1f97
EB
3812015-04-27 Eric Botcazou <ebotcazou@adacore.com>
382
383 * stor-layout.c (self_referential_component_ref_p): New predicate.
384 (copy_self_referential_tree_r): Use it.
385 (self_referential_size): Punt for simple operations directly involving
386 self-referential component references.
387 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
388
e5115cf9
EB
3892015-04-27 Eric Botcazou <ebotcazou@adacore.com>
390
391 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
392
9e3a5131
RS
3932015-04-27 Richard Sandiford <richard.sandiford@arm.com>
394
395 * vec.h (vec): Make splice arguments const. Update definitions
396 accordingly.
397
c55d8b0b
YR
3982015-04-27 Yvan Roux <yvan.roux@linaro.org>
399
400 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
401 alternatives.
402
b8b2ab06
TV
4032015-04-26 Tom de Vries <tom@codesourcery.com>
404
405 PR tree-optimization/65826
406 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
407
7f8dede8
SE
4082015-04-24 Steve Ellcey <sellcey@imgtec.com>
409
410 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
411 (*madd3<mode>): Ditto.
412 (*msub4<mode>): Ditto.
413 (*msub3<mode>): Ditto.
414 (*nmadd4<mode>): Ditto.
415 (*nmadd3<mode>): Ditto.
416 (*nmadd4<mode>_fastmath): Ditto.
417 (*nmadd3<mode>_fastmath): Ditto.
418 (*nmsub4<mode>): Ditto.
419 (*nmsub3<mode>): Ditto.
420 (*nmsub4<mode>_fastmath): Ditto.
421 (*nmsub3<mode>_fastmath): Ditto.
422
c6f044f7
JM
4232015-04-24 Jason Merrill <jason@redhat.com>
424
425 PR c++/50800
426 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
427 down when building TYPE_CANONICAL.
428 (build_pointer_type_for_mode): Likewise.
429
6f96dceb
CG
4302015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
431
432 * genrecog.c (validate_pattern): Check matching constraint refers
433 to a lower numbered operand.
434
6d7d9f0e
MM
4352015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
436
437 PR target/65849
438 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
439 save to independent variables use the Save attribute. This will
440 allow these options to be modified with the #pragma/attribute
441 target support.
442 (-mallow-movmisalign): Likewise.
443 (-mallow-df-permute): Likewise.
444 (-msched-groups): Likewise.
445 (-malways-hint): Likewise.
446 (-malign-branch-targets): Likewise.
447 (-mvectorize-builtins): Likewise.
448 (-msave-toc-indirect): Likewise.
449
450 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
451 can be set via the #pragma/attribute target support.
452 (rs6000_opt_vars): Likewise.
453 (rs6000_inner_target_options): If VSX was set, also set
454 -mno-avoid-indexed-addresses.
455
728dc153
KT
4562015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
457
458 * config/arm/iterators.md (shiftable_ops): Rename to...
459 (SHIFTABLE_OPS): ... This. Update use in comments.
460 (ior_xor): Rename to...
461 (IOR_XOR): ... This.
462 (vqh_ops): Rename to...
463 (VQH_OPS): ... This.
464 (vqhs_ops): Rename to...
465 (VQHS_OPS): ... This.
466 (rshifts): Rename to...
467 (RSHIFTS): ... This.
468 (returns): Rename to...
469 (RETURNS): ... This.
470 * config/arm/arm.md: Update uses of the above.
471 * config/arm/neon.md: Likewise.
472
7e1bcce3
KT
4732014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
474
475 * config.host (case ${host}): Add aarch64*-*-linux case.
476 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
477 fields to all the cores.
478 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
479 Add MCPU_MTUNE_NATIVE_SPECS.
480 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
481 field to all extensions.
482 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
483 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
484 Adjust definition of AARCH64_OPT_EXTENSION.
485 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
486 (MCPU_MTUNE_NATIVE_SPECS): Define.
487 * config/aarch64/driver-aarch64.c: New file.
488 * config/aarch64/x-arch64: New file.
489 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
490 -mtune and -march.
491
97afef00
UB
4922015-04-24 Uros Bizjak <ubizjak@gmail.com>
493 Wei Mi <wmi@google.com>
494
495 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
496 * config/i386/i386.c (extract_base_offset_in_addr): New function.
497 (ix86_operands_ok_for_move_multiple): Ditto.
498 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
499 (movlpd/movhpd to movupd peephole2): Ditto.
500
b8787813
MP
5012015-04-24 Marek Polacek <polacek@redhat.com>
502
503 PR c/61534
504 * input.h (from_macro_expansion_at): Define.
8c2b7f79
MP
505
506 PR c/63357
507 * doc/invoke.texi: Update description of -Wlogical-op.
b8787813 508
6a61f9bf
TP
5092015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
510
511 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
512 ternary operator in fprintf and harmonize spacing.
513
841e9801
UB
5142015-04-24 Uros Bizjak <ubizjak@gmail.com>
515
516 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
517 Mark operand1 commutative.
518
ee768d85
UB
5192015-04-24 Uros Bizjak <ubizjak@gmail.com>
520
521 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
522 input operands in memory.
523 (*vec_concatv2si_sse4_1): Ditto.
524 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
525 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
526 register_operand.
527 (vec_extract_hi_v32hi): Ditto.
528 (vec_extract_hi_v64hi): Ditto.
529 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
530
8fceae61
TP
5312015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
532 Steven Bosscher <steven@gcc.gnu.org>
533
534 PR rtl-optimization/34503
535 * cprop.c (cprop_reg_p): New.
536 (hash_scan_set): Use above function to check if register can be
537 propagated.
538 (find_avail_set): Return up to two sets, one whose source is a
539 register and one whose source is a constant. Sets are returned in an
540 array passed as parameter rather than as a return value.
541 (cprop_insn): Use a do while loop rather than a goto. Try each of the
542 sets returned by find_avail_set, starting with the one whose source is
543 a constant. Use cprop_reg_p to check if register can be propagated.
544 (do_local_cprop): Use cprop_reg_p to check if register can be
545 propagated.
546 (implicit_set_cond_p): Likewise.
547
fb5c322e
JH
5482015-04-23 Jan Hubicka <hubicka@ucw.cz>
549
550 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
551 (sem_function::equals): IGNORED_NODES parameter is now unused;
552 update call of equals_private.
553 (sem_function::equals_private): Do not call equals_wpa; skip
554 gimple body matching if there is no body.
555 (sem_function::init): Add logic to hash tthunk info.
556 (sem_function::parse): Also parse thunks.
557 * ipa-icf.h (equals_private): Update declaration.
558
b9e2e732
BS
5592015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
560
561 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
562 asterisk from name so this can be generated directly.
563 (*altivec_stvx_<mode>_internal): Likewise.
564 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
565 that this is never called during or after reload/lra.
566 (rs6000_frame_related): Remove split_reg
567 argument and logic that references it.
568 (emit_frame_save): Remove last parameter from call to
569 rs6000_frame_related.
570 (rs6000_emit_prologue): Remove last parameter from eight calls to
571 rs6000_frame_related. Force generation of stvx instruction for
572 Altivec register saves. Remove split_reg handling, which is no
573 longer needed.
574 (rs6000_emit_epilogue): Force generation of lvx instruction for
575 Altivec register restores.
576
532ac1c1
BS
5772015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
578
579 * config/rs6000/rs6000.opt (mcrypto): Change option description to
580 match category changes in ISA 2.07B.
581
381811fa
KT
5822015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
583
584 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
585 iterators.
586 (cmp_op, cmp_type): New code attributes.
587 (NEON_VCMP, NEON_VACMP): New int iterators.
588 (cmp_op_unsp): New int attribute.
589 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
590 (neon_vceq<mode>): Delete.
591 (neon_vc<cmp_op><mode>_insn): New pattern.
592 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
593 (neon_vcgeu<mode>): Delete.
594 (neon_vcle<mode>): Likewise.
595 (neon_vclt<mode>: Likewise.
596 (neon_vcage<mode>): Likewise.
597 (neon_vcagt<mode>): Likewise.
598 (neon_vca<cmp_op><mode>): New define_expand.
599 (neon_vca<cmp_op><mode>_insn): New pattern.
600 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
601
0b5751c2
JH
6022015-04-23 Jan Hubicka <hubicka@ucw.cz>
603
604 * tree.h (attribute_value_equal): Declare.
605 * tree.c (attribute_value_equal): Export.
606
b3587b99
JH
6072015-04-23 Jan Hubicka <hubicka@ucw.cz>
608
609 * ipa-icf.c (sem_item::compare_attributes): New function.
610 (sem_item::compare_referenced_symbol_properties): Compare variable
611 attributes.
612 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
613 (sem_function::param_used_p): New function.
614 (sem_function::equals_wpa): Fix attribute comparsion; match
615 parameter type codes; do not compare paremter flags when
616 they are not used; compare edge flags; compare indirect calls.
617 (sem_item::update_hash_by_addr_refs): Hash reference type.
618 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
619 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
620 reference use type.
621 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
622 * ipa-icf.h (compare_attributes, param_used_p): Declare.
623
977b01e3
JH
6242015-04-23 Jan Hubicka <hubicka@ucw.cz>
625
626 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
627 cleanup.
628 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
629 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
630 (sem_item::compare_referenced_symbol_properties): New.
631 (sem_item::hash_referenced_symbol_properties): New.
632 (sem_item::compare_cgraph_references): Rename to ...
633 (sem_item::compare_symbol_references): ... this one; use
634 compare_referenced_symbol_properties.
635 (sem_function::equals_wpa): Do not compare
636 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
637 DECL_IS_OPERATOR_NEW; compare pointer sizes.
638 (sem_item::update_hash_by_addr_refs): Call
639 hash_referenced_symbol_properties.
640 (sem_item::update_hash_by_local_refs): Cleanup.
641 (sem_function::merge): Do not mix up symbol properties.
642 (sem_variable::equals_wpa): Use compare_symbol_references.
643 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
644 (sem_item::hash_referenced_symbol_properties): New.
645 (sem_item::compare_symbol_references): New.
646 (sem_item::compare_cgraph_references): Remove.
647
4cf02238
RR
6482015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
649
650 PR target/26702
651 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
652 Emit size of local.
653
0f9b95df
NC
6542015-04-23 Nick Clifton <nickc@redhat.com>
655
656 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
657 ATTRIBUTE_UNUSED to x parameter.
658 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
659
6895fffb
BS
6602015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
661
662 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
663 TARGET_CRYPTO to TARGET_P8_VECTOR>
664 (crypto_vpermxor_<mode>): Likewise.
665 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
666 (BU_CRYPTO_3A): Likewise.
667 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
668 (BU_CRYPTO_OVERLOAD_3A): New #define.
669 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
670 (VPMSUMH): Likewise.
671 (VPMSUMW): Likewise.
672 (VPMSUMD): Likewise.
673 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
674 (VPERMXOR_V4SI): Likewise.
675 (VPERMXOR_V8HI): Likewise.
676 (VPERMXOR_V16QI): Likewise.
677 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
678 BU_CRYPTO_OVERLOAD_2A.
679 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
680 BU_CRYPTO_OVERLOAD_3A.
681 * config/rs6000/rs6000.opt (mcrypto): Change description of
682 option.
683
eff973a2
RB
6842015-04-23 Richard Biener <rguenther@suse.de>
685
686 * passes.def: Remove copy propagation passes run directly after CCP.
687 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
688 SSA names.
689 (ccp_visit_phi_node): Rework to handle first executable edge
690 specially.
691
e4949e1d
MW
6922015-04-23 Matthew Wahab <matthew.wahab@arm.com>
693
694 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
695 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
696 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
697 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
698 (thumb_legimitimize_reload_address): Remove.
699 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
700 Remove.
701 (thumb_legimitimize_reload_address): Remove.
702
8778aed7
KT
7032015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
704
705 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
706
f5ee50a5
KT
7072015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
708
709 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
710 MAX_LDM_STM_OPS.
711 (store_multiple): Likewise.
712
dbb2d725
KT
7132015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
714
715 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
716 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
717 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
718 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
719 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
720 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
721 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
722 Specify issue_rate value.
723 (arm_issue_rate): Look up issue rate from tuning structs. Remove
724 large switch statement.
725 (arm_marvell_pj4_tune): New struct.
726 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
727 struct.
728
2e8ab70c
RB
7292015-04-23 Richard Biener <rguenther@suse.de>
730
731 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
732 (vect_find_last_store_in_slp_instance): Rename to ...
733 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
734 (vect_analyze_slp_cost_1): Use vector_load for constant defs
735 and vec_construct for external defs when estimating prologue cost.
736 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
737 Compute costs here only when vectorizing loops.
738 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
739 have been determined.
740 (vect_schedule_slp_instance): Simplify vectorized code placement
741 and prepare for in-BB external defs.
742 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
743 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
744 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
745 guard.
746 (vect_model_load_cost): Likewise.
747 (vectorizable_store): Instead add it here.
748 (vectorizable_load): Likewise.
749 (vect_is_simple_use): Dump def type textually.
750
b0dd8c90
RB
7512015-04-23 Richard Biener <rguenther@suse.de>
752
753 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
754 * cfgloop.c (verify_loop_structure): Verify the root loop node.
755 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
756 instead of get_eh_region_from_lp_number.
757 * loop-init.c (fix_loop_structure): If we removed a loop, reset
758 the SCEV cache.
759
905bcb98
AB
7602015-04-23 Anton Blanchard <anton@samba.org>
761
762 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
763 need for -mprofile-kernel to save LR to stack.
764
30821df7
BS
7652015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
766
767 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
768 adjustments.
769 (insn_is_swappable_p): Return 1 for a convert from double to
770 single precision when all of its uses are splats of BE element
771 zero.
772
ed023537
KV
7732015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
774
775 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
776
047b83ff
BS
7772015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
778
779 PR target/65456
780 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
781 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
782 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
783 option.
784 (rs6000_builtin_mask_for_load): Return 0 for targets with
785 efficient unaligned VSX accesses so that the vectorizer will use
786 direct unaligned loads.
787 (rs6000_builtin_support_vector_misalignment): Always return true
788 for targets with efficient unaligned VSX accesses.
789 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
790 stores on targets with efficient unaligned VSX accesses is almost
791 always the same as the cost of an aligned load or store, so model
792 it that way.
793 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
794 unaligned vectors if we have efficient unaligned VSX accesses.
795 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
796 undocumented option.
797
cbea306a
KT
7982015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
799
800 Revert:
801 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
802
803 * config.gcc (LIBC_MUSL): New tm_defines macro.
804 * config/linux.h (OPTION_MUSL): Define.
805 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
806 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
807 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
808
809 * config/linux.opt (mmusl): New option.
810 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
811 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
812
813 * configure: Regenerate.
814
513686a6
GR
8152015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
816
817 * config.gcc (LIBC_MUSL): New tm_defines macro.
818 * config/linux.h (OPTION_MUSL): Define.
819 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
820 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
821 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
822
823 * config/linux.opt (mmusl): New option.
824 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
825 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
826
827 * configure: Regenerate.
828
860503d8
YG
8292015-04-22 Yury Gribov <y.gribov@samsung.com>
830
831 * doc/invoke.texi (-fsanitize-sections): Update description.
832 * asan.c (set_sanitized_sections): Parse incoming arg.
833 (section_sanitized_p): Support wildcards.
834
5cf36292
TV
8352015-04-22 Tom de Vries <tom@codesourcery.com>
836
837 PR tree-optimization/65823
838 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
839 equality between ap_copy and ap.
840
2aa84d43
BRF
8412015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
842
843 PR target/47098
844 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
845
a42014a3
BRF
8462015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
847
848 PR target/47122
849 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
850
e08cf345
BRF
8512015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
852
853 PR target/55144
854 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
855 remove already contained t-files.
856
07cb4ee6
BRF
8572015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
858
859 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
860 Remove unneeded forward declarations.
861 (suitable_for_tail_call_opt_p): Commentary typo fix.
862
38b7a8df
BRF
8632015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
864
865 * varasm.c (emit_bss): Remove redundant guard.
866
baa59cde
BRF
8672015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
868
869 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
870
0828c47b
BRF
8712015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
872
873 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
874
eefe4e49
HW
8752015-04-22 Hale Wang <hale.wang@arm.com>
876 Terry Guo <terry.guo@arm.com>
877
878 PR rtl-optimization/64818
879 * combine.c (can_combine_p): Don't combine user-specified
880 register if it is in an asm input.
881
5a33401e
JH
8822015-04-21 Jan Hubicka <hubicka@ucw.cz>
883
884 PR ipa/65076
885 * passes.def (early_optimizations): Add pass_dse.
886
6e37129a
TS
8872015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
888
889 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
890 * reorg.c (redundant_insn): Remove ifdef
891 INSN_REFERENCES_ARE_DELAYED.
892 * resource.c (mark_referenced_resources): Likewise.
893
0923e946
TS
8942015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
895
896 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
897 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
898 * resource.c (mark_set_resources): Likewise.
899
618f4073
TS
9002015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
901
902 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
903 * cfgcleanup.c (flow_find_cross_jump): Likewise.
904 (flow_find_head_matching_sequence): Likewise.
905 (try_head_merge_bb): Likewise.
906 * combine.c (can_combine_p): Likewise.
907 (try_combine): Likewise.
908 (distribute_notes): Likewise.
909 * df-problems.c (can_move_insns_across): Likewise.
910 * final.c (final): Likewise.
911 * gcse.c (insert_insn_end_basic_block): Likewise.
912 * ira.c (find_moveable_pseudos): Likewise.
913 * reorg.c (try_merge_delay_insns): Likewise.
914 (fill_simple_delay_slots): Likewise.
915 (fill_slots_from_thread): Likewise.
916 * sched-deps.c (sched_analyze_2): Likewise.
917
faa7b0de
TS
9182015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
919
920 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
921 PIC_OFFSET_TABLE_REGNUM.
922
c3e08036
TS
9232015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
924
925 * alias.c (init_alias_target): Remove ifdef
926 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
927 * df-scan.c (df_insn_refs_collect): Likewise.
928 (df_get_regular_block_artificial_uses): Likewise.
929 (df_get_eh_block_artificial_uses): Likewise.
930 (df_get_entry_block_def_set): Likewise.
931 (df_get_exit_block_use_set): Likewise.
932 * emit-rtl.c (gen_rtx_REG): Likewise.
933 * ira.c (ira_setup_eliminable_regset): Likewise.
934 * reginfo.c (init_reg_sets_1): Likewise.
935 * regrename.c (rename_chains): Likewise.
936 * reload1.c (reload): Likewise.
937 (eliminate_regs_in_insn): Likewise.
938 * resource.c (mark_referenced_resources): Likewise.
939 (init_resource_info): Likewise.
940
cbc7d031
TS
9412015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
942
943 * defaults.h (MASK_RETURN_ADDR): New definition.
944 * except.c (expand_builtin_extract_return_addr): Remove ifdef
945 MASK_RETURN_ADDR.
946
a8a6b3df
TS
9472015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
948
949 * defaults.h (RETURN_ADDR_OFFSET): New definition.
950 * except.c (expand_builtin_extract_return_addr): Remove ifdef
951 RETURN_ADDR_OFFSET.
952 (expand_builtin_frob_return_addr): Likewise.
953
058eb3b0
TS
9542015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
955
956 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
957 (try_redirect_by_replacing_jump): Likewise.
958 (rtl_tidy_fallthru_edge): Likewise.
959 * combine.c (insn_a_feeds_b): Likewise.
960 (find_split_point): Likewise.
961 (simplify_set): Likewise.
962 * cprop.c (cprop_jump): Likewise.
963 * cse.c (cse_extended_basic_block): Likewise.
964 * df-problems.c (can_move_insns_across): Likewise.
965 * function.c (emit_use_return_register_into_block): Likewise.
966 * haifa-sched.c (sched_init): Likewise.
967 * ira.c (find_moveable_pseudos): Likewise.
968 * loop-invariant.c (find_invariant_insn): Likewise.
969 * lra-constraints.c (curr_insn_transform): Likewise.
970 * postreload.c (reload_combine_recognize_const_pattern):
971 * Likewise.
972 * reload.c (find_reloads): Likewise.
973 * reorg.c (delete_scheduled_jump): Likewise.
974 (steal_delay_list_from_target): Likewise.
975 (steal_delay_list_from_fallthrough): Likewise.
976 (redundant_insn): Likewise.
977 (fill_simple_delay_slots): Likewise.
978 (fill_slots_from_thread): Likewise.
979 (delete_computation): Likewise.
980 * sched-rgn.c (add_branch_dependences): Likewise.
981
f1e52ed6
TS
9822015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
983
984 * genconfig.c (main): Always define HAVE_cc0.
985 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
986 HAVE_cc0.
987 * cfgcleanup.c (flow_find_cross_jump): Likewise.
988 (flow_find_head_matching_sequence): Likewise.
989 (try_head_merge_bb): Likewise.
990 * cfgrtl.c (rtl_merge_blocks): Likewise.
991 (try_redirect_by_replacing_jump): Likewise.
992 (rtl_tidy_fallthru_edge): Likewise.
993 * combine.c (do_SUBST_MODE): Likewise.
994 (insn_a_feeds_b): Likewise.
995 (combine_instructions): Likewise.
996 (can_combine_p): Likewise.
997 (try_combine): Likewise.
998 (find_split_point): Likewise.
999 (subst): Likewise.
1000 (simplify_set): Likewise.
1001 (distribute_notes): Likewise.
1002 * cprop.c (cprop_jump): Likewise.
1003 * cse.c (cse_extended_basic_block): Likewise.
1004 * df-problems.c (can_move_insns_across): Likewise.
1005 * final.c (final): Likewise.
1006 (final_scan_insn): Likewise.
1007 * function.c (emit_use_return_register_into_block): Likewise.
1008 * gcse.c (insert_insn_end_basic_block): Likewise.
1009 * haifa-sched.c (sched_init): Likewise.
1010 * ira.c (find_moveable_pseudos): Likewise.
1011 * loop-invariant.c (find_invariant_insn): Likewise.
1012 * lra-constraints.c (curr_insn_transform): Likewise.
1013 * optabs.c (prepare_cmp_insn): Likewise.
1014 * postreload.c (reload_combine_recognize_const_pattern):
1015 * Likewise.
1016 * reload.c (find_reloads): Likewise.
1017 (find_reloads_address_1): Likewise.
1018 * reorg.c (delete_scheduled_jump): Likewise.
1019 (steal_delay_list_from_target): Likewise.
1020 (steal_delay_list_from_fallthrough): Likewise.
1021 (try_merge_delay_insns): Likewise.
1022 (redundant_insn): Likewise.
1023 (fill_simple_delay_slots): Likewise.
1024 (fill_slots_from_thread): Likewise.
1025 (delete_computation): Likewise.
1026 (relax_delay_slots): Likewise.
1027 * sched-deps.c (sched_analyze_2): Likewise.
1028 * sched-rgn.c (add_branch_dependences): Likewise.
1029
176cb568
TS
10302015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1031
1032 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
1033 that is trivially ded on non cc0 targets.
1034 (simplify_set): Likewise.
1035 (mark_used_regs_combine): Likewise.
1036 * cse.c (new_basic_block): Likewise.
1037 (fold_rtx): Likewise.
1038 (cse_insn): Likewise.
1039 (cse_extended_basic_block): Likewise.
1040 (set_live_p): Likewise.
1041 * rtlanal.c (canonicalize_condition): Likewise.
1042 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
1043
8a90eeb6
TS
10442015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1045
1046 * conditions.h: Define macros even if HAVE_cc0 is undefined.
1047 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
1048 * final.c: Likewise.
1049 * jump.c: Likewise.
1050 * recog.c: Likewise.
1051 * recog.h: Declare functions even when HAVE_cc0 is undefined.
1052 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
1053
9a522505
TS
10542015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1055
1056 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
1057 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
1058 * builtins.c (expand_builtin): Remove check if
1059 EH_RETURN_DATA_REGNO is defined.
1060 * df-scan.c (df_bb_refs_collect): Likewise.
1061 (df_get_exit_block_use_set): Likewise.
1062 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
1063 * ira-lives.c (process_bb_node_lives): Likewise.
1064 * lra-lives.c (process_bb_lives): Likewise.
1065
05416670
UB
10662015-04-21 Uros Bizjak <ubizjak@gmail.com>
1067
1068 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
1069 FIRST_PSEUDO_REG): New.
1070 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
1071 (ARG_POINTER_REGNUM): Define to ARGP_REG.
1072 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
1073 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
1074 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
1075 (FIRST_INT_REG): New.
1076 (LAST_INT_REG): New.
1077 (FIRST_*_REG): Define using *_REG.
1078 (LAST_*_REG): Ditto.
1079 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
1080 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
1081 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
1082
35430ca0
KT
10832015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1084
1085 * expmed.c: (synth_mult): Only assume overlapping
1086 shift with previous steps in alg_sub_t_m2 case.
1087
0ff093d8
RB
10882015-04-21 Richard Biener <rguenther@suse.de>
1089
1090 PR tree-optimization/65650
1091 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
1092 transitions involving copies.
1093 (set_lattice_value): Adjust for copy lattice state.
1094 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
1095 if that doesn't dominate the merge point.
1096 (bit_value_unop): Adjust what we treat as varying mask.
1097 (bit_value_binop): Likewise.
1098 (bit_value_assume_aligned): Likewise.
1099 (evaluate_stmt): When we simplified to a SSA name record a copy
1100 instead of dropping to varying.
1101 (visit_assignment): Simplify.
1102
1103 * gimple-match.h (gimple_simplify): Add another callback.
1104 * gimple-fold.c (fold_stmt_1): Adjust caller.
1105 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
1106 for the 2nd callback.
1107 * gimple-match-head.c (gimple_simplify): Add a callback that is
1108 used to valueize the stmt operands and use it that way.
1109
9588d248
RB
11102015-04-21 Richard Biener <rguenther@suse.de>
1111
1112 PR tree-optimization/65788
1113 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
1114
908c55f1
RB
11152015-04-21 Richard Biener <rguenther@suse.de>
1116
1117 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
1118 vec_construct cost by vec_stmt_cost.
1119
c4d281b2
RB
11202015-04-21 Richard Biener <rguenther@suse.de>
1121
1122 * cfghooks.h (create_basic_block): Replace with two overloads
1123 for RTL and GIMPLE.
1124 (split_block): Likewise.
1125 * cfghooks.c (split_block): Rename to ...
1126 (split_block_1): ... this.
1127 (split_block): Add two type-safe overloads for RTL and GIMPLE.
1128 (split_block_after_labels): Call split_block_1.
1129 (create_basic_block): Rename to ...
1130 (create_basic_block_1): ... this.
1131 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
1132 (create_empty_bb): Call create_basic_block_1.
1133 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
1134 split_block_after_labels.
1135 * omp-low.c (expand_parallel_call): Likewise.
1136 (expand_omp_target): Likewise.
1137 (simd_clone_adjust): Likewise.
1138 * tree-chkp.c (chkp_get_entry_block): Likewise.
1139 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
1140 create_basic_block overload.
1141 (cgraph_node::expand_thunk): Likewise.
1142 * tree-cfg.c (make_blocks): Likewise.
1143 (handle_abnormal_edges): Likewise.
1144 * tree-inline.c (copy_bb): Likewise.
1145
8409e468
KT
11462015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1147
1148 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
1149 New pattern.
1150 (*xor_one_cmplsidi3_ze): Likewise.
1151
8f252203
TP
11522015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
1153
1154 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
1155 use df_remove_problem rather than manually removing problems, leaving
1156 holes in df->problems_in_order[].
1157
22fe969f
TV
11582015-04-21 Tom de Vries <tom@codesourcery.com>
1159
1160 PR tree-optimization/65802
1161 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
1162
efb25f54
KT
11632015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1164
1165 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
1166 Increase to 128.
1167 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
1168 at '.'. Assert that there's enough space for everything.
1169
d60dbb52
UB
11702015-04-21 Uros Bizjak <ubizjak@gmail.com>
1171
1172 PR tree-optimization/64950
1173 Revert:
1174 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
1175
1176 PR target/41089
1177 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
1178 as volatile.
1179
3e87f2d6
SC
11802015-04-20 Shiva Chen <shiva0217@gmail.com>
1181
1182 PR rtl-optimization/64916
1183 * cfgcleanup.c (values_equal_p): New function.
1184 (can_replace_by): Use it.
1185
2821fc6b
PC
11862015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
1187
1188 PR c++/65801
1189 * doc/invoke.texi ([-Wnarrowing]): Update.
1190
cb864fbc
JL
11912015-04-20 Jeff Law <law@redhat.com>
1192
1193 PR tree-optimization/65658
1194 * tree-ssa-threadupdate.c (redirection_block_p): Remove
1195 redundant test for GIMPLE_ASSIGN in last change.
1196
d60dbb52 11972015-04-20 Uros Bizjak <ubizjak@gmail.com>
1e7e62b1
UB
1198
1199 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
1200 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
1201 (legitimize_tls_address): Ditto.
1202 (ix86_expand_move): Ditto.
1203 (ix86_expand_binary_operator): Remove reload_in_progress checks.
1204 (ix86_expand_unary_operator): Ditto.
1205 * config/i386/predicates.md (index_register_operand): Ditto.
1206
87e0ceb7
SB
12072015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
1208
1209 * reorg.c (try_merge_delay_insns): Improve correctness checking
1210 for targets with multiple delay slots.
1211
6581c1cf
JL
12122015-04-20 Jeff Law <law@redhat.com>
1213
1214 PR tree-optimization/65658
1215 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
1216 statements too.
1217
69aec552
AL
12182015-04-20 Alan Lawrence <alan.lawrence@arm.com>
1219
1220 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
1221 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
1222 Delete.
1223
38a4960f
JJ
12242015-04-20 Jakub Jelinek <jakub@redhat.com>
1225
1226 PR debug/65807
1227 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
1228
c26de36d
RB
12292015-04-20 Richard Biener <rguenther@suse.de>
1230
1231 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
1232 * gimple-fold.c (gimple_build_valueize): New function.
1233 (gimple_build): Always use gimple_build_valueize as valueize hook.
1234
8b66a2d4
AL
12352015-04-20 Alan Lawrence <alan.lawrence@arm.com>
1236
1237 PR target/64134
1238 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
1239 and overwrite variable parts if <= 1/2 the elements are variable.
1240
a6af1bf9
VM
12412015-04-19 Vladimir Makarov <vmakarov@redhat.com>
1242
1243 PR rtl-optimization/65805
1244 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
1245 Don't use difference of offset and previous offset if
1246 update_sp_offset is non-zero.
1247 (eliminate_regs_in_insn): Ditto.
1248 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
1249 lra_eliminate_regs_1 call.
1250 * lra-constraints.c (get_equiv_with_elimination): Ditto.
1251
67f58944
TS
12522015-04-18 Trevor Saunders <tsaunders@mozilla.com>
1253
1254 * hash-table.h: Remove version of hash_table that stored value_type *.
1255 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
1256 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
1257 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
1258 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
1259 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
1260 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
1261 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
1262 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
1263 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
1264 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
1265 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
1266 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
1267 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
1268 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
1269 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
1270 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
1271
67e6c405 12722015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
037524d6 1273 Jakub Jelinek <jakub@redhat.com>
67e6c405
BS
1274
1275 PR target/65787
1276 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
1277 subsequent SH_NONE operand does not overwrite an existing *special
1278 value.
1279 (adjust_extract): Handle case where a vec_extract operation is
1280 wrapped in a PARALLEL.
1281
759fde68
L
12822015-04-17 H.J. Lu <hongjiu.lu@intel.com>
1283
1284 PR target/65780
1285 * config/i386/i386.c (ix86_binds_local_p): Define only if
1286 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
1287
f6c72af4
JL
12882015-04-17 Jeff Law <law@redhat.com>
1289
1290 PR tree-optimization/47679
1291 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
1292 * tree-ssa-scopedtables.c: New file.
1293 * tree-ssa-scopedtables.h: New file.
1294 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
1295 (const_and_copies): Change name/type.
1296 (record_const_or_copy): Move into tree-ssa-scopedtables.c
1297 (record_const_or_copy_1): Similarly.
1298 (restore_vars_to_original_value): Similarly.
1299 (pass_dominator::execute): Create and destroy const_and_copies table.
1300 (thread_across_edge): Update passing of const_and_copies.
1301 (record_temporary_equivalence): Use method calls rather than
1302 manipulating const_and_copies directly.
1303 (record_equality, cprop_into_successor_phis): Similarly.
1304 (dom_opt_dom_walker::before_dom_children): Similarly.
1305 (dom_opt_dom_walker::after_dom_children): Similarly.
1306 (eliminate_redundant_computations): Similarly.
1307 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
1308 (record_temporary_equivalence): Likewise.
1309 (invalidate_equivalences): Likewise.
1310 (record_temporary_equivalences_from_phis): Update due to type
1311 change of const_and_copies. Use method calls rather than
1312 manipulating the stack directly.
1313 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
1314 (thread_through_normal_block, thread_across_edge): Likewise.
1315 (thread_across_edge): Likewise.
1316 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
1317 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
1318 of equiv_stack.
1319 (identify_jump_threads): Update due to type change of equiv_stack.
1320 (finalize_jump_threads): Delete the equiv_stack when complete.
1321
fdce7c12
UB
13222015-04-17 Uros Bizjak <ubizjak@gmail.com>
1323
1324 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
1325 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
1326 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
1327
faabf788
AT
13282015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
1329
1330 PR target/65535
1331 * config.gcc: Exit with a comment when we do not have a major version
1332 number for the FreeBSD target.
1333
98c1627c
JJ
13342015-04-17 Jakub Jelinek <jakub@redhat.com>
1335
1336 PR target/65689
1337 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
1338 maybe_allows_mem bitfields.
1339 (maybe_allows_none_start, maybe_allows_none_end,
1340 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
1341 maybe_allows_mem_end): New variables.
1342 (compute_maybe_allows): New function.
1343 (add_constraint): Use it to initialize maybe_allows_reg and
1344 maybe_allows_mem fields.
1345 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
1346 is_address constraints such that those that allow neither mem nor
1347 reg come first, then those that only allow reg but not mem, then
1348 those that only allow mem but not reg, then the rest.
1349 (write_allows_reg_mem_function): New function.
1350 (write_tm_preds_h): Call it.
1351 * stmt.c (parse_output_constraint, parse_input_constraint): Use
1352 the generated insn_extra_constraint_allows_reg_mem function
1353 instead of always setting *allows_reg = true; *allows_mem = true;
1354 for unknown extra constraints.
1355
96583f22
L
13562015-04-17 H.J. Lu <hongjiu.lu@intel.com>
1357
1358 PR target/65780
1359 * output.h (default_binds_local_p_3): New.
1360 * varasm.c (default_binds_local_p_3): Make it public. Take an
1361 argument to indicate if common symbol may be local. If common
1362 symbol may be local, treat non-external variable as defined
1363 locally.
1364 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
1365 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
1366 * config/i386/i386.c (ix86_binds_local_p): New.
1367 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
1368 ix86_binds_local_p.
1369
aeebf48a
JJ
13702015-04-17 Jakub Jelinek <jakub@redhat.com>
1371
1372 PR debug/65771
1373 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
1374 trying mem_loc_descriptor on XEXP (rtl, 0).
1375
bbd08a5d
ML
13762015-04-17 Martin Liska <mliska@suse.cz>
1377
1378 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
1379 Release symbol_compare_collection.
1380 * ipa-reference.c: Add TODO that a vector should be released.
1381
c11cdefb
SP
13822015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
1383
1384 PR target/65296
1385 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
1386 to new AVR-LibC file layout (bug #44574).
1387 (*avrlibc_devicelib): Same.
1388 * config/avr/avr-mcus.def: Adjust comments.
1389 * config/avr/avr.opt (nodevicelib): Adjust help.
1390
05b1fb22
AL
13912015-04-17 Alan Lawrence <alan.lawrence@arm.com>
1392
1393 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
1394
2234a9cb
PP
13952015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
1396
1397 PR c++/64527
1398 * gimplify.c (gimplify_init_constructor): Always emit a
1399 side-effecting constructor.
1400
d67cb100
TV
14012015-04-17 Tom de Vries <tom@codesourcery.com>
1402
3f6a2f9e 1403 PR tree-optimization/64950
d67cb100
TV
1404 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
1405 in cfun->curr_properties.
1406 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
1407 if we generate an IFN_VA_ARG.
1408 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
1409 function if PROP_gimple_lva is not set in src function.
1410
f8e89441
TV
14112015-04-17 Tom de Vries <tom@codesourcery.com>
1412 Michael Matz <matz@suse.de>
1413
3f6a2f9e 1414 PR tree-optimization/64950
f8e89441
TV
1415 * gimple-iterator.c (update_modified_stmts): Remove static.
1416 * gimple-iterator.h (update_modified_stmts): Declare.
1417 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
1418 (gimplify_va_arg_internal): New function.
1419 (gimplify_va_arg_expr): Use IFN_VA_ARG.
1420 * gimplify.h (gimplify_va_arg_internal): Declare.
1421 * internal-fn.c (expand_VA_ARG): New unreachable function.
1422 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
1423 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
1424 (expand_ifn_va_arg): New function.
1425 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
1426 (pass_stdarg::execute): Call expand_ifn_va_arg.
1427 (pass_data_lower_vaarg): New pass_data.
1428 (pass_lower_vaarg): New gimple_opt_pass.
1429 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
1430 (make_pass_lower_vaarg): New function.
1431 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
1432 properties_required field.
1433 * passes.def (all_passes): Add pass_lower_vaarg.
1434 * tree-pass.h (PROP_gimple_lva): Add define.
1435 (make_pass_lower_vaarg): Declare.
1436
1691b2e1
TV
14372015-04-17 Tom de Vries <tom@codesourcery.com>
1438
1439 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
1440 * calls.c (call_expr_flags): Same.
1441
302f0807
TV
14422015-04-17 Tom de Vries <tom@codesourcery.com>
1443
1444 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
1445 (pass_stdarg::execute): ... here.
1446
8926e325
TV
14472015-04-17 Tom de Vries <tom@codesourcery.com>
1448 Michael Matz <matz@suse.de>
1449
1450 * tree-cfg.c (make_blocks_1): Factor out of ...
1451 (make_blocks): ... here.
1452 (make_edges_bb): Factor out of ...
1453 (make_edges): ... here.
1454 (gimple_find_sub_bbs): New function.
1455 * tree-cfg.h (gimple_find_sub_bbs): Declare.
1456
cef3bed6
TV
14572015-04-17 Tom de Vries <tom@codesourcery.com>
1458
1459 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
1460
18af8d16
YG
14612015-04-17 Yury Gribov <y.gribov@samsung.com>
1462
1463 * asan.c (set_sanitized_sections): New function.
1464 (section_sanitized_p): Ditto.
1465 (asan_protect_global): Optionally sanitize user-defined
1466 sections.
1467 * asan.h (set_sanitized_sections): Declare new function.
1468 * common.opt (fsanitize-sections): New option.
1469 * doc/invoke.texi (-fsanitize-sections): Document new option.
1470 * opts-global.c (handle_common_deferred_options): Handle new
1471 option.
1472
d7cb230a
JJ
14732015-04-17 Jakub Jelinek <jakub@redhat.com>
1474
1475 PR debug/65771
1476 * dwarf2out.c (loc_list_from_tree): Return NULL
1477 for DEBUG_EXPR_DECL.
1478
86f46e39
CB
14792015-04-17 Christian Bruel <christian.bruel@st.com>
1480
1481 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
1482 same attributes.
1483
14842015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6e3957da
ZZ
1485
1486 * ira-color.c (setup_left_conflict_sizes_p): Do not process
1487 node itself when computing left conflict subnode size.
1488
8c292b10
UB
14892015-04-16 Uros Bizjak <ubizjak@gmail.com>
1490
1491 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
1492 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
1493 *fop_<mode>_1_sse using enabled attribute. Use
1494 register_mixssei387nonimm_operand operand 1 predicate. Change
1495 alternative 3 constraints from "x" to "v".
1496
b9334e4c
RB
14972015-04-16 Richard Biener <rguenther@suse.de>
1498
1499 PR tree-optimization/65774
1500 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
1501 bit-value tracking on.
1502
f8269ad4
RB
15032015-04-16 Richard Biener <rguenther@suse.de>
1504
1505 PR tree-optimization/64277
1506 * tree-vrp.c (check_array_ref): Fix anti-range handling,
1507 simplify upper bound handling.
1508 (search_for_addr_array): Simplify.
1509 (check_array_bounds): Handle ADDR_EXPRs here.
1510 (check_all_array_refs): Simplify.
1511
579cef8f
UB
15122015-04-16 Uros Bizjak <ubizjak@gmail.com>
1513
1514 * config/i386/i386.c (print_reg): Rewrite function.
1515
dba0dd68
AK
15162015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1517
1518 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
1519 Invert the condition.
1520
76978b21
RL
15212015-04-16 Renlin Li <renlin.li@arm.com>
1522
1523 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
1524 simplifications for UNSIGNED_FLOAT.
1525
72ed1126
NC
15262015-04-16 Nick Clifton <nickc@redhat.com>
1527
1528 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
1529 MUL_UNINIT.
1530 (enum rl78_cpu_type): New.
1531 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
1532 (umulhi3_shift_virt): Remove m constraint from operand 1.
1533 (umulqihi3_virt): Likewise.
1534 * config/rl78/rl78.c (rl78_option_override): Add code to process
1535 -mcpu and -mmul options.
1536 (rl78_alloc_physical_registers): Add code to handle divhi and
1537 divsi valloc attributes.
1538 (set_origin): Likewise.
1539 * config/rl78/rl78.h (RL78_MUL_G14): Define.
1540 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
1541 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
1542 __RL78_Gxx__.
1543 (ASM_SPEC): Pass -mcpu on to assembler.
1544 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
1545 (mulqi3_rl78): Likewise.
1546 (mulhi3_g13): Likewise.
1547 (mulhi3): Generate the G13 or G14 versions of the insn directly.
1548 (mulsi3): Likewise.
1549 (mulhi3_g14): Add clobbers of AX and BC.
1550 (mulsi3_g14): Likewise.
1551 (mulsi3_g13): Likewise.
1552 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
1553 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
1554 * config/rl78/rl78.opt (mmul): Initialise value to
1555 RL78_MUL_UNINIT.
1556 (mcpu): New option.
1557 (m13, m14, mrl78): New option aliases.
1558 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
1559 (MULTILIB_DIRNAMES): Add g13 and g14.
1560 * doc/invoke.texi: Document -mcpu and -mmul options.
1561
8a474dc5
RB
15622015-04-16 Richard Biener <rguenther@suse.de>
1563
1564 * tree-ssa-ccp.c (likely_value): See if we have operands that
1565 are marked as never simulate again and return CONSTANT in this
1566 case.
1567 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
1568 not have any operands that will be simulated again as
1569 not being simulated again.
1570
cf0ed95b
UB
15712015-04-15 Uros Bizjak <ubizjak@gmail.com>
1572
1573 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
1574 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
1575 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
1576 attribute.
1577 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
1578 enabled attribute.
1579 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
1580 *float<SWI48:mode><MODEF:mode>2_sse.
1581 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
1582 enabled attribute.
1583 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
1584 enabled attribute.
1585
5283d1ec
TV
15862015-04-15 Tom de Vries <tom@codesourcery.com>
1587
1588 PR other/65487
1589 * function.c (push_dummy_function): New function.
1590 (init_dummy_function_start): Use push_dummy_function.
1591 (pop_dummy_function): New function. Factored out of ...
1592 (expand_dummy_function_end): ... here.
1593 * function.h (push_dummy_function, pop_dummy_function): Declare.
1594 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
1595 pop_dummy_function.
1596 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
1597
5141ed42
JL
15982015-04-15 Jeff Law <law@redhat.com>
1599
20e38fcf
JL
1600 PR tree-optimization/47679
1601 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
1602 need for forward declaration in upcoming changes.
1603 (record_conditions, record_edge_info): Likewise.
1604
5141ed42
JL
1605 PR rtl-optimization/42522
1606 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
1607 SIGN_EXTRACT as a whole object rather than simplifying
1608 its operand.
1609
366ee94b
JJ
16102015-04-15 Jakub Jelinek <jakub@redhat.com>
1611
1612 PR ipa/65765
1613 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
1614 and GIMPLE_PREDICT use break instead of return true. For
1615 GIMPLE_EH_DISPATCH, compare dispatch region.
1616
a1e25839
MW
16172015-04-14 Matthew Wahab <matthew.wahab@arm.com>
1618
1619 * doc/extend.texi (__sync Builtins): Simplify some text. Update
1620 details about the implementation. Make clear preference for
1621 __atomic builtins. Reduce possibility of future change.
1622
e4614c18
NC
16232015-04-15 Nick Clifton <nickc@redhat.com>
1624
1625 * config/rx/rx.opt (mallow-string-insns): New option.
1626 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
1627 builtin if string instructions are denied.
1628 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
1629 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
1630 appropriate.
1631 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
1632 * config/rx/rx.md (movstr): Enable pattern only if string
1633 instructions are allowed.
1634 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
1635 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
1636 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
1637 (MULTILIB_DIRNAMES): Add no-strings.
1638 * doc/invoke.texi: Document -mno-allow-string-insns.
72ed1126 1639
984b2054
AM
16402015-04-15 Alan Modra <amodra@gmail.com>
1641
1642 PR target/65408
1643 PR target/58744
1644 PR middle-end/36043
1645 * calls.c (load_register_parameters): Don't load past end of
1646 mem unless suitably aligned.
1647
93684323
NC
16482015-04-15 Nick Clifton <nickc@redhat.com>
1649
1650 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
1651 decrement instruction as being frame related.
1652 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
1653 based addresses.
1654 If zero extending a function address enclose the operation in
1655 %code(...).
1656 (rl78_preferred_reload_class): New function.
1657 (TARGET_PREFERRED_RELOAD_CLASS): Define.
1658 * config/rl78/rl78.md: Remove useless constraints in expanders.
1659 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
1660 (mulhi3_rl78): Likewise.
1661 (mulhi3_g13): Likewise.
1662 (mulsi3_rl78): Likewise.
1663 (es_addr): Move to before the multiply patterns.
1664
614d5bd8
AM
16652015-04-15 Alan Modra <amodra@gmail.com>
1666
1667 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
1668 and sequence_stack. Add seq.
1669 (seq_stack): Delete.
1670 * function.c (prepare_function_start): Don't access x_last_insn.
1671 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
1672 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
1673 * emit_rtl.c (start_sequence, push_topmost_sequence,
1674 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
1675 sequence accessors.
1676 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
1677 remove_insn): Likewise. Simplify.
1678 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
1679 and pop_topmost_sequence.
1680 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
1681 debug insns.
1682 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
1683
c07ad89a
YR
16842015-04-14 Yvan Roux <yvan.roux@linaro.org>
1685
1686 PR target/65729
1687 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
1688 the assertiion.
1689
58b0b34c
UB
16902015-04-14 Uros Bizjak <ubizjak@gmail.com>
1691
1692 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
1693 (LEGACY_INT_REGNO_P): Ditto.
1694 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
1695 (ANY_MASK_REG_P): Remove.
1696 (BND_REG_P): Rename from ANY_BND_REG_P.
1697 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
1698 legacy integer registers. Do not handle MMX_REG_P in a special way.
1699 Merge 64byte and 32byte SSE handling.
1700
5751fb33
NC
17012015-04-14 Nick Clifton <nickc@redhat.com>
1702
1703 * expr.c (expand_assignment): Force an address offset computation
1704 into a register before changing its mode.
1705 (expand_expr_real_1): Likewise.
1706
5543f941
AL
17072015-04-14 Alan Lawrence <alan.lawrence@arm.com>
1708
1709 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
1710 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
1711 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
1712 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
1713 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
1714 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
1715 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
1716 and __aarch64_vget_lane_any.
1717
b3a3ae09
JJ
17182015-04-14 Jakub Jelinek <jakub@redhat.com>
1719
1720 PR rtl-optimization/65761
1721 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
1722 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
1723
6f72f143
RB
17242015-04-14 Richard Biener <rguenther@suse.de>
1725
1726 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
1727 (graphite_can_represent_scev): Use POINTER_TYPE_P.
1728
ab05af62
RB
17292015-04-14 Richard Biener <rguenther@suse.de>
1730
1731 PR tree-optimization/65758
1732 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
1733 against -1.
1734 (ccp_lattice_meet): Likewise.
1735 (bit_value_unop): Likewise.
1736 (bit_value_binop): Likewise.
1737 (bit_value_assume_aligned): Likewise.
1738
703fa2e6
CB
17392015-04-14 Christian Bruel <christian.bruel@st.com>
1740
1741 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
1742 function.
1743
cfdc4f33
MG
17442015-04-14 Marc Glisse <marc.glisse@inria.fr>
1745
1746 PR tree-optimization/63387
1747 * match.pd ((x unord x) | (y unord y) -> (x unord y),
1748 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
1749
55d2ee57
UB
17502015-04-14 Uros Bizjak <ubizjak@gmail.com>
1751
1752 * config/i386/predicates.md (any_QIreg_operand): Rename from
1753 q_regs_operand. Do not process subregs.
1754 (QIreg_operand): Use QI_REGNO_P predicate.
1755 (ext_QIreg_operand): Ditto.
1756 (ext_register_operand): Ditto.
1757 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
1758 (AND splitters): Ditto.
1759 (AND with -65536 splitter): Add SWI48 mode for operand 0.
1760 (AND with -256 splitter): Use any_QIreg_operand predicate and
1761 SWI248 mode for operand 0.
1762 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
1763 mode for operand 0.
1764 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
1765
da3831fd
GP
17662015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
1767
1768 * doc/plugins.texi: Rewrite first introductory paragraph.
1769
10706779
JH
17702015-04-12 Jan Hubicka <hubicka@ucw.cz>
1771
1772 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
1773 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
1774
95d81ba5
JH
17752015-04-12 Jan Hubicka <hubicka@ucw.cz>
1776
1777 * ipa-profie.c (ipa_profile): Check number of parameters
1778 and possible polymorphic call targets before
1779 devirtualizing.
1780
9586973b
UB
17812015-04-13 Uros Bizjak <ubizjak@gmail.com>
1782
1783 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
1784 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
1785
c4ef2f86
RB
17862015-04-13 Richard Biener <rguenther@suse.de>
1787
1788 PR tree-optimization/65204
1789 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
1790 takens for bit-CCP.
1791
c5faf03d
RB
17922015-04-13 Richard Biener <rguenther@suse.de>
1793
1794 PR target/65660
1795 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
1796 and cond_not_taken_branch_cost to 4 and 2.
1797 (bdver2_cost): Likewise.
1798 (bdver3_cost): Likewise.
1799 (bdver4_cost): Likewise.
1800
61ebff31
JH
18012015-04-12 Jan Hubicka <hubicka@ucw.cz>
1802
1803 * hash-table.h (hash_table constructor): Add mem stats.
1804 (alloc_entries): Likewise.
1805
31b27938
JH
18062015-04-12 Jan Hubicka <hubicka@ucw.cz>
1807
1808 * ipa-cp.c (ipcp_driver): Relase prev_edge.
1809 * passes.c (execute_one_pass): Only add transform if pass has one.
1810
0b4a769e
JM
18112015-04-12 Joseph Myers <joseph@codesourcery.com>
1812
1813 * config/i386/i386.c (ix86_option_override_internal): Don't set
1814 -fprefetch-loop-arrays if optimizing for size.
1815
7d83fb55
JH
18162015-04-12 Jan Hubicka <hubicka@ucw.cz>
1817 Gerald Pfeifer <gerald@pfeifer.com>
1818
1819 * doc/contrib.texi (Contributors): Add Martin Jambor and
1820 Michael Matz.
1821
b6e55e48
JJ
18222015-04-12 Jakub Jelinek <jakub@redhat.com>
1823
1a46d358
JJ
1824 * BASE-VER: Set to 6.0.0.
1825
b6e55e48
JJ
1826 PR tree-optimization/65747
1827 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
1828 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
1829
7d9ea335
GP
18302015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
1831
1832 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
1833 sentence. Improve grammar.
1834
04ebb119
GP
18352015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
1836
1837 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
1838
6338536c 18392015-04-11 Jan Hubicka <hubicka@ucw.cz>
db66bf68
JH
1840
1841 PR ipa/65743
1842 * ipa-inline-transform.c (speculation_removed): Remove static var.
1843 (check_speculations): New function.
1844 (clone_inlined_nodes): Do not check spculations.
1845 (inline_call): Call check_speculations.
1846 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
1847 consider non-invariants.
1848
6338536c
JJ
18492015-04-11 Jan Hubicka <hubicka@ucw.cz>
1850 Martin Liska <mliska@suse.cz>
523f0450
JH
1851
1852 PR ipa/65722
1853 * ipa-icf.c (sem_item::compare_cgraph_references): function and
1854 variable can not match.
1855 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
1856 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
1857
e9329eb5
JJ
18582015-04-11 Jakub Jelinek <jakub@redhat.com>
1859
1860 PR tree-optimization/65735
1861 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
1862 Remove visited_phis argument, add visited_bbs, avoid recursing into the
1863 same bb rather than just into the same phi node.
1864 (thread_through_normal_block): Adjust caller.
1865
bc7e7ed3
GP
18662015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
1867
1868 * doc/contrib.texi (Contributors): Add Ira Rosen.
1869
7106478c
BS
18702015-04-11 Benno Schulenberg <bensberg@justemail.net>
1871
1872 * gcov.c (find_source): Fix miswording in error message.
1873 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
1874 (ix86_expand_sse_comi_round): Fix typo in error message.
1875
b025e292
GP
18762015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
1877
1878 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
1879
8892d7ec
GP
18802015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
1881
1882 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
1883
54e915b3
VM
18842015-04-10 Vladimir Makarov <vmakarov@redhat.com>
1885
1886 PR target/65710
1887 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
1888 Print bad_spills_num and insn_pseudos_num.
1889
95487347
KT
18902015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1891
1892 PR target/65694
1893 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
1894 when creating +1 values for SImode.
1895
6a65cb99
VM
18962015-04-10 Vladimir Makarov <vmakarov@redhat.com>
1897
1898 PR target/65729
1899 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
1900 assert.
1901
cacf1f59
JJ
19022015-04-10 Jakub Jelinek <jakub@redhat.com>
1903 Iain Sandoe <iain@codesourcery.com>
1904
1905 PR target/65351
1906 * configure: Regenerate.
1907
7f664e31
KY
19082015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
1909
1910 PR target/65671
dccd8858 1911 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
7f664e31 1912
d1074796
GP
19132015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
1914
1915 * doc/contrib.texi (Contributors): Add John Marino.
1916
f66d8ec8
JJ
19172015-04-09 Jakub Jelinek <jakub@redhat.com>
1918
1919 PR tree-optimization/65709
1920 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
1921 TREE_TYPE (TREE_TYPE (t)).
1922
8fd827b8
VM
19232015-04-09 Vladimir Makarov <vmakarov@redhat.com>
1924
1925 PR target/65710
1926 * lra-int.h (lra_bad_spill_regno_start): New.
1927 * lra.c (lra_bad_spill_regno_start): New.
1928 (lra): Set up lra_bad_spill_regno_start. Set up
1929 lra_constraint_new_regno_start unconditionally.
1930 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
1931 spill preferences.
1932
86c5a5c3
MP
19332015-04-09 Marek Polacek <polacek@redhat.com>
1934 Jakub Jelinek <jakub@redhat.com>
1935
1936 PR middle-end/65554
1937 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
1938 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
1939 of STRIP_NOPS.
1940
fb728653
SB
19412015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
1942
1943 PR rtl-optimization/65693
1944 * combine.c (is_parallel_of_n_reg_sets): Move outside of
1945 #ifndef HAVE_cc0.
1946
3184f36f
GJL
19472015-04-09 Georg-Johann Lay <avr@gjlay.de>
1948
1949 PR target/65296
1950 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
1951 device specs file if "device-specs%s" didn't resolve to a path.
1952
54414978
KY
19532015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
1954
1955 PR target/65676
1956 * config/i386/i386.c (fixup_modeless_constant): New.
1957 (ix86_expand_args_builtin): Fixup modeless constant operand.
1958 (ix86_expand_round_builtin): Ditto.
1959 (ix86_expand_special_args_builtin): Ditto.
1960 (ix86_expand_builtin): Ditto.
1961
da0b9df9
JJ
19622015-04-09 Jakub Jelinek <jakub@redhat.com>
1963
1964 PR target/65693
1965 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
1966 any pow2 integer in between 2 and 0x80000000U inclusive.
1967
4673a218
SB
19682015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
1969
1970 PR rtl-optimization/65693
1971 * combine.c (is_parallel_of_n_reg_sets): Change first argument
1972 from an rtx_insn * to an rtx.
1973 (try_combine): Adjust both callers. Use it once more.
1974
36f371de
IE
19752015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
1976
1977 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
1978 (chkp_make_static_const_bounds): Search existing
1979 symbol by assembler name. Use make_decl_one_only.
1980 (chkp_get_zero_bounds_var): Remove node search which
1981 is now performed in chkp_make_static_const_bounds.
1982 (chkp_get_none_bounds_var): Likewise.
1983
469f062e
MW
19842015-04-08 Michael Witten <mfwitten@gmail.com>
1985
1986 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
1987 to an example.
1988
5884a1a8
BRF
19892015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1990
1991 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
1992
8de4dd05
GP
19932015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
1994
1995 * doc/extend.texi (__sync Builtins): Fix grammar.
1996
5817d9f9
BRF
19972015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1998
1999 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
2000
a876b410
BRF
20012015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2002
2003 * varasm.c (emit_local): Move definition of align.
2004
d93bdab5
JB
20052015-04-08 Julian Brown <julian@codesourcery.com>
2006
2007 * config/nvptx/mkoffload.c (process): Support variable mapping.
2008
a6330e85
TS
20092015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
2010
2011 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
2012 alpha_links **.
2013 (alpha_write_one_linkage): Correct typo.
2014
930ee116
IE
20152015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
2016
2017 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
2018
47eec994
GP
20192015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
2020
dccd8858 2021 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
47eec994 2022
4f5a53cc
IE
20232015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
2024
2025 * tree-chkp.h (chkp_insert_retbnd_call): New.
2026 * tree-chkp.c (chkp_insert_retbnd_call): New.
2027 * ipa-split.c (insert_bndret_call_after): Remove.
2028 (split_function): Use chkp_insert_retbnd_call.
2029 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
2030 bounds for instrumented functions.
2031
006e317a
JH
20322015-04-07 Jan Hubicka <hubicka@ucw.cz>
2033
2034 PR ipa/65540
2035 * calls.c (initialize_argument_information): When producing tail
2036 call also turn SSA_NAMES passed by references to original PARM_DECLs
2037
218823d7
VM
20382015-04-07 Vladimir Makarov <vmakarov@redhat.com>
2039
a9d13adf 2040 PR target/65648
218823d7
VM
2041 * lra-remat.c (do_remat): Process input and non-input insn
2042 registers separately.
2043
dcc72b9e
JJ
20442015-04-07 Jakub Jelinek <jakub@redhat.com>
2045
e488c24e
JJ
2046 PR debug/65678
2047 * valtrack.c (debug_lowpart_subreg): New function.
2048 (dead_debug_insert_temp): Use it.
2049
dcc72b9e
JJ
2050 PR middle-end/65680
2051 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
2052 into signed HOST_WIDE_INT the same as negative bit_offset.
2053
0e081bde
IE
20542015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
2055
2056 * ipa-comdats.c (ipa_comdats): Visit all thunks
2057 to set proper comdat group.
2058
b7c43e24
KT
20592015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2060
2061 PR target/65489
2062 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
2063 on constants for NEON VSTRUCT modes.
2064
e8a4ed3b
JJ
20652015-04-07 Jakub Jelinek <jakub@redhat.com>
2066 Iain Sandoe <iain@codesourcery.com>
2067
2068 PR target/65351
2069 * configure: Regenerate.
2070
90e0a702
MM
20712015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2072
2073 PR target/65614
2074 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
2075 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
2076 that LFD is used to load double constants instead of LFS. Add
2077 defaults for all costs structures. Add comments for missing
2078 initialization fields.
2079 (size32_cost): Likewise.
2080 (size64_cost): Likewise.
2081 (rs64a_cost): Likewise.
2082 (mpccore_cost): Likewise.
2083 (ppc403_cost): Likewise.
2084 (ppc405_cost): Likewise.
2085 (ppc440_cost): Likewise.
2086 (ppc476_cost): Likewise.
2087 (ppc601_cost): Likewise.
2088 (ppc603_cost): Likewise.
2089 (ppc604_cost): Likewise.
2090 (ppc604e_cost): Likewise.
2091 (ppc620_cost): Likewise.
2092 (ppc630_cost): Likewise.
2093 (ppccell_cost): Likewise.
2094 (ppc750_cost): Likewise.
2095 (ppc7450_cost): Likewise.
2096 (ppc8540_cost): Likewise.
2097 (ppce300c2c3_cost): Likewise.
2098 (ppce500mc_cost): Likewise.
2099 (ppce500mc64_cost): Likewise.
2100 (ppce5500_cost): Likewise.
2101 (ppce6500_cost): Likewise.
2102 (titan_cost): Likewise.
2103 (power4_cost): Likewise.
2104 (power6_cost): Likewise.
2105 (power7_cost): Likewise.
2106 (power8_cost): Likewise.
2107 (ppca2_cost): Likewise.
2108 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
2109
2110 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
2111 instead of XXLOR to copy SFmode to clear out dirty bits created
2112 when SFmode denormals are generated.
2113 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
2114 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
2115
85bb7f7f
EM
21162015-04-06 Evandro Menezes <e.menezes@samsung.com>
2117
2118 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
2119 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
2120 * config/aarch64/aarch64-tune.md: Regenerate.
2121
e278ae6f
EM
21222015-04-06 Evandro Menezes <e.menezes@samsung.com>
2123
2124 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
2125 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
2126 * config/arm/arm-cores.def (exynos-m1): New core.
2127 * config/arm/arm-tune.md: Regenerate.
2128 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
2129 * config/arm/bpabi.h: Likewise.
2130
6f025043
IE
21312015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
2132
2133 * ipa-cp (set_single_call_flag): Remove too
2134 restrictive assert.
2135
a51df54e
IV
21362015-04-06 Ilya Verbin <ilya.verbin@intel.com>
2137
2138 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
2139 GOMP_offload_unregister from the destructor.
2140
71671f5d
IE
21412015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
2142
2143 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
2144 flags for instrumentation thunk.
2145 (chkp_produce_thunks): Likewise.
2146
8fc8c7e7
ML
21472015-04-05 Martin Liska <mliska@suse.cz>
2148
2149 PR ipa/65665
2150 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
2151 has computed data structure.
2152 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
2153
9a820e84
JH
21542015-04-04 Jan Hubicka <hubicka@ucw.cz>
2155
2156 * invoke.texi (inline-unit-growth): Increase growth to 20%
2157 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
2158
94446928
VM
21592015-04-04 Vladimir Makarov <vmakarov@redhat.com>
2160
2161 PR target/65647
2162 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
2163 value checking.
2164 (lra_rematerialization_iter): New.
2165 * lra.c (lra): Initialize lra_rematerialization_iter.
2166 Stop updating lra_constraint_new_regno_start after switching of
2167 inheritance and rematerialization.
2168 * lra-remat.c (lra_rematerialization_iter): New.
2169 (lra_remat): Add printing pass iteration. Do rematerialization
2170 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
2171
30c5a937
RB
21722015-04-04 Richard Biener <rguenther@suse.de>
2173
2174 PR tree-optimization/64909
2175 PR tree-optimization/65660
2176 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
2177 to take a cost vector for scalar iteration cost.
2178 (vect_get_single_scalar_iteration_cost): Likewise.
2179 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
2180 Compute the scalar iteration cost into a cost vector.
2181 (vect_get_known_peeling_cost): Use the scalar cost vector to
2182 account for the cost of the peeled iterations.
2183 (vect_estimate_min_profitable_iters): Likewise.
2184 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
2185 Likewise.
2186
69223fae
AM
21872015-04-04 Alan Modra <amodra@gmail.com>
2188
2189 PR target/65576
2190 PR target/65240
2191 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
2192 0.0 constant unless TARGET_VSX.
2193 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
2194 alternative.
2195
f107227b
JH
21962015-04-03 Jan Hubicka <hubicka@ucw.cz>
2197
a9d13adf 2198 PR ipa/65654
f107227b
JH
2199 * ipa-inline-transform.c (inline_call): Skip sanity check to work
2200 around the ICE
2201
872ceb28
JH
22022015-04-03 Jan Hubicka <hubicka@ucw.cz>
2203
2204 PR ipa/65655
2205 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
2206 speculative indirect edges to avoid ordering issue.
2207
133a84ab
JH
22082015-04-03 Jan Hubicka <hubicka@ucw.cz>
2209
2210 PR ipa/65076
2211 * ipa-inline.c (edge_badness): Add combined size to the denominator.
2212
f7484978
JJ
22132015-04-03 Jakub Jelinek <jakub@redhat.com>
2214
2215 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
2216 TYPE_ARTIFICIAL on the .omp_data* types.
2217
a115251c
IE
22182015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
2219
2220 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
2221 instrumentation thunks.
2222
fad71ff5
IE
22232015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
2224
2225 * config/i386/i386.c (ix86_expand_call): Avoid nested
2226 PARALLEL in returned call value.
2227
a3d72251
IE
22282015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
2229
2230 * lto-cgraph.c (input_cgraph_1): Always link instrumented
2231 assembler name with original one.
2232
fcb8e429
UB
22332015-04-02 Uros Bizjak <ubizjak@gmail.com>
2234
2235 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
2236
287044d9
UB
22372015-04-02 Uros Bizjak <ubizjak@gmail.com>
2238
2239 Revert parts of r216820.
2240 * config/i386/i386.md (movqi_internal): Correct type calculation
2241 for alternatives 3 and 5.
2242
860f8be4
JJ
22432015-04-02 Jakub Jelinek <jakub@redhat.com>
2244
2245 PR preprocessor/61977
2246 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
2247 predefine __vector/__bool/__pixel macros nor context sensitive
2248 macros for CLK_ASM.
2249 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
2250
166d826f
JDA
22512015-04-02 John David Anglin <danglin@gcc.gnu.org>
2252
2253 * config/pa/pa.c (pa_output_move_double): Directly handle register
2254 indexed memory operand. Simplify handling of scaled register indexed
2255 memory operands.
2256
512470bb
IE
22572015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
2258
2259 PR driver/65444
2260 * config/i386/linux-common.h (MPX_SPEC): New.
2261 (CHKP_SPEC): Add MPX_SPEC.
2262 * doc/invoke.texi (-fcheck-pointer-boudns): Document
2263 possible issues with '-z bndplt' support in linker.
2264
a8caf351
UB
22652015-04-02 Uros Bizjak <ubizjak@gmail.com>
2266
2267 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
2268 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
2269 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
2270 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
2271 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
2272
35238bb5
UB
22732015-04-01 Uros Bizjak <ubizjak@gmail.com>
2274
2275 * config/i386/sync.md (UNSPEC_MOVA): Remove.
2276 (atomic_load<mode>): Change operand 0 predicate to
2277 nonimmediate_operand and fix up the destination when needed.
2278 Use UNSPEC_LDA.
2279 (atomic_loaddi_fpu): Use UNSPEC_LDA.
2280 (atomic_store<mode>): Change operand 1 predicate to
2281 nonimmendate_operand and move the source to register when needed.
2282 Use UNSPEC_STA.
2283 (atomic_store<mode>_1): Use UNSPEC_STA.
2284 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
2285 Fix moves from memory operand. Use UNSPEC_STA.
2286
b6dd42a9
BE
22872015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
2288
2289 * expmed.c (strict_volatile_bitfield_p): Check that the access will
2290 not cross a MODESIZE boundary.
2291 (store_bit_field, extract_bit_field): Added assertions in the
2292 strict volatile bitfields code path.
2293
0ff2bf46
MO
22942015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
2295
2296 PR target/65624
35238bb5
UB
2297 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
2298 Increase args array size by one to avoid buffer overflow.
0ff2bf46 2299
41f669d8
JH
23002015-03-31 Jan Hubicka <hubicka@ucw.cz>
2301
2302 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
2303 split_part.
2304 * ipa-inline.c (edge_badness): Add wrapper penalty.
2305 (sum_callers): Move up.
2306 (inline_small_functions): Set single_caller.
2307 * ipa-inline.h (inline_summary): Add single_caller.
2308 * ipa-split.c (split_function): Set split_part.
2309 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
2310 * cgraph.h (cgraph_node): Add split_part.
2311
9e91e2cd 23122015-03-31 Uros Bizjak <ubizjak@gmail.com>
36ceb0e3 2313
9e91e2cd
UB
2314 PR target/58945
2315 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
2316 Do not split operands 0 and operands 2 to halfmode.
2317 (atomic_compare_and_swap<mode>): Update for
2318 atomic_compare_and_swap<dwi>_doubleword changes.
2319
23202015-03-31 Jan Hubicka <hubicka@ucw.cz>
2321
2322 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
36ceb0e3
JH
2323 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
2324 no caching is done.
2325
12cc8c72
ML
23262015-03-31 Martin Liska <mliska@suse.cz>
2327
2328 PR ipa/65557
2329 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
2330 has already filled up function summary.
2331 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
2332
78f1b523
RB
23332015-03-31 Richard Biener <rguenther@suse.de>
2334
2335 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
2336 of types.
2337
2d38d809
DV
23382015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
2339
2340 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
2341 nested functions.
2342 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
2343 (s390_asm_output_function_label): Adapt to new signature of
2344 s390_function_num_hotpatch_hw
2345 Optimise the code generating assembler output.
2346 Add comments to assembler file.
2347
bed18fbd
RB
23482015-03-31 Richard Biener <rguenther@suse.de>
2349
2350 PR middle-end/65626
2351 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
2352 of the noreturn call so it is last and cleanup_control_flow_bb
2353 can do the CFG part.
2354
b7e85ee1
IE
23552015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
2356
2357 PR target/65531
2358 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
2359 same_comdat_group for external symbols.
2360 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
2361 infinite same_comdat_group traversal loop.
2362
b626318e
JJ
23632015-03-31 Jakub Jelinek <jakub@redhat.com>
2364
2365 PR plugins/61176
2366 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
2367 automatically to $headers.
2368
00a0ea64
JJ
23692015-03-30 Jakub Jelinek <jakub@redhat.com>
2370
2371 PR ipa/65610
2372 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
2373 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
2374 function.
2375 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
2376 Use it.
2377 * ipa-prop.c (param_type_may_change_p): Likewise.
2378 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
2379 (remove_unused_scope_block_p): Add in_ctor_dtor_block
2380 argument. Before inlining, preserve
2381 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
2382 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
2383 recursive calls.
2384 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
2385
12daa22a
JH
23862015-03-27 Jan Hubicka <hubicka@ucw.cz>
2387
2388 PR ipa/65076
2389 * ipa-inline.c (edge_badness): Base denominator on callee's
2390 grwoth squared.
2391
af21714c
MJ
23922015-03-27 Martin Jambor <mjambor@suse.cz>
2393
2394 PR ipa/65478
2395 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
2396 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
2397 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
2398 node_calling_single_call.
2399 * ipa-cp.c (count_callers): New function.
2400 (set_single_call_flag): Likewise.
2401 (initialize_node_lattices): Count callers and set single_flag_call if
2402 necessary.
2403 (incorporate_penalties): New function.
2404 (good_cloning_opportunity_p): Use it, dump new flags.
2405 (propagate_constants_topo): Set node_within_scc flag if appropriate.
2406 * doc/invoke.texi (ipa-cp-recursion-penalty,
2407 ipa-cp-single-call-pentalty): Document.
2408
c97de764
JH
24092015-03-27 Jan Hubicka <hubicka@ucw.cz>
2410
2411 PR ipa/65588
2412 * symtab.c (symtab_node::get_partitioning_class): Register vars
2413 are duplicated.
2414 * varpool.c (symbol_table::output_variables) Do not assemble unefined
2415 decls for non-symbols.
2416
a5eef8e9
L
24172015-03-27 H.J. Lu <hongjiu.lu@intel.com>
2418
2419 PR target/65248
2420 * output.h (default_binds_local_p_2): New.
2421 * varasm.c (default_binds_local_p_2): Renamed to ...
2422 (default_binds_local_p_3): This. Don't return true on protected
2423 data symbol if protected data may be external.
2424 (default_binds_local_p): Use default_binds_local_p_3.
2425 (default_binds_local_p_1): Likewise.
2426 (default_binds_local_p_2): New.
2427 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
2428 default_binds_local_p_2 if TARGET_MACHO is undefined.
2429
f21a5899
JJ
24302015-03-27 Jakub Jelinek <jakub@redhat.com>
2431
2432 PR target/65593
2433 * config/i386/i386.c (legitimize_pic_address): If base
2434 is SYMBOL_REF or LABEL_REF using %rip addressing, force
2435 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
2436
6e85fbaa
JH
24372015-03-27 Jan Hubicka <hubicka@ucw.cz>
2438
2439 PR target/65531
2440 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
2441 comdat groups.
2442
931c8e9a
JH
24432015-03-27 Jan Hubicka <hubicka@ucw.cz>
2444
2445 PR ipa/65600
2446 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
2447 of optimized out indirect call.
2448 (redirect_to_unreachable): Always build symbol table node for
2449 BUILT_IN_UNREACHABLE
2450
d81c5030
VM
24512015-03-27 Vladimir Makarov <vmakarov@redhat.com>
2452
2453 PR target/65407
2454 * ira-costs.c (record_reg_classes): Process all constraint string
2455 containing 0-9.
2456
f50e5fcc
BS
24572015-03-27 Bernd Schmidt <bernds@codesourcery.com>
2458
2166d2a1
BS
2459 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
2460 memory_operand.
2461
f50e5fcc 2462 PR target/65052
dccd8858
UB
2463 * config/c6x/constraints.md (S3): New constraint.
2464 * config/c6x/c6x.md (real_jump): Use it.
f50e5fcc 2465
88e7d85f
JH
24662015-03-26 Jan Hubicka <hubicka@ucw.cz>
2467
2468 PR middle-end/65595
2469 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
2470 do redirection if the call is not optimized out.
2471
79d64904
IE
24722015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
2473
2474 PR target/65495
2475 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
2476 (fchkp-check-incomplete-type): Add LTO.
2477 (fchkp-zero-input-bounds-for-main): Likewise.
2478 (fchkp-first-field-has-own-bounds): Likewise.
2479 (fchkp-narrow-bounds): Likewise.
2480 (fchkp-narrow-to-innermost-array): Likewise.
2481 (fchkp-use-static-bounds): Likewise.
2482 (fchkp-use-static-const-bounds): Likewise.
2483 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
2484
7d1ff6f0
MP
24852015-03-27 Marek Polacek <polacek@redhat.com>
2486
2487 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
2488
27674ca6
MP
24892015-03-27 Marek Polacek <polacek@redhat.com>
2490
2491 PR sanitizer/65583
2492 * ubsan.c (ubsan_create_edge): New function.
2493 (instrument_bool_enum_load): Call it.
2494 (instrument_nonnull_arg): Likewise.
2495 (instrument_nonnull_return): Likewise.
2496 (instrument_object_size): Likewise.
2497
50cfd44e
JH
24982015-03-26 Jan Hubicka <hubicka@ucw.cz>
2499
2500 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
2501 auto_vec.
2502
c3d11ebe
JH
25032015-03-26 Jan Hubicka <hubicka@ucw.cz>
2504
2505 PR lto/65536
2506 * lto-streamer.h (class lto_location_cache): New.
2507 (struct data_in): Add location_cache.
2508 (lto_input_location): Update prototype.
2509 (stream_input_location_now): New.
2510 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
2511 pointer to location.
2512 (stream_input_location): Update.
2513 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
2514 (warn_odr): Apply location cache before warning.
2515 (lto_input_location): Update prototype.
2516 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
2517 Use stream_input_location_now.
2518 * lto-streamer-in.c (lto_location_cache::current_cache): New static
2519 variable.
2520 (lto_location_cache::cmp_loc): New function.
2521 (lto_location_cache::apply_location_cache): New function.
2522 (lto_location_cache::accept_location_cache): New function.
2523 (lto_location_cache::revert_location_cache): New function.
2524 (lto_location_cache::input_location): New function.
2525 (lto_input_location): Do location caching.
2526 (stream_input_location_now): New function.
2527 (input_eh_region, input_struct_function_base): Use
2528 stream_input_location_now.
2529 (lto_data_in_create): use new.
2530 (lto_data_in_delete): Use delete.
2531 * tree-streamer-in.c (unpack_ts_block_value_fields,
2532 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
2533 lto_input_ts_exp_tree_pointers): Update for cached location api.
2534
38147a2a
JH
25352015-03-26 Jan Hubicka <hubicka@ucw.cz>
2536
2537 PR ipa/65076
2538 * passes.def: Add pass_nothrow.
2539 * ipa-pure-const.c: (pass_data_nothrow): New.
2540 (pass_nothrow): New.
2541 (pass_nothrow::execute): New.
2542 (make_pass_nothrow): New.
2543 * tree-pass.h (make_pass_nothrow): Declare.
2544
a21065ca
JH
25452015-03-26 Jan Hubicka <hubicka@ucw.cz>
2546
2547 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
2548 edge to change by speculation resolution or redirection.
2549 (edge_set_predicate): Likewise.
2550 (inline_summary_t::duplicate): Likewise.
2551 (remap_edge_summaries): Likewise.
2552
8e926cb1
JH
25532015-03-26 Jan Hubicka <hubicka@ucw.cz>
2554
2555 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
2556 New macros.
2557 (can_inline_edge_p): Relax option matching for always inline functions.
2558
bf3b2de7
UB
25592015-03-26 Uros Bizjak <ubizjak@gmail.com>
2560
2561 PR target/65561
2562 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
2563 Check operand 4 and operand 0 for equality.
2564 (avx512f_vextract<shuffletype>32x4_1_maskm):
2565 Check operand 6 and operand 0 for equality.
2566 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
2567 for equality.
2568 (vec_extract_hi_<mode>_maskm): Ditto.
2569
1f4eb0e9
JH
25702015-03-26 Jan Hubicka <hubicka@ucw.cz>
2571
2572 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
2573 dead calls back to live.
2574 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
2575 cross check to ...
2576 (cgraph_node::verify_node): ... here; verify only callee edges,
2577 not caller.
f809d213 2578 * cif-code.def (CILK_SPAWN): New code.
1f4eb0e9 2579
5058c037
JH
25802015-03-26 Jan Hubicka <hubicka@ucw.cz>
2581
2582 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
2583 (edge_set_predicate): Use it to mark unreachable edges.
2584 (inline_summary_t::duplicate): Remove unnecesary code.
2585 (remap_edge_summaries): Likewise.
2586 (dump_inline_summary): Report contains_cilk_spawn.
2587 (compute_inline_parameters): Compute contains_cilk_spawn.
2588 (inline_read_section, inline_write_summary): Stream
2589 contains_cilk_spawn.
bf3b2de7 2590 * ipa-inline.c (can_inline_edge_p): Do not touch
5058c037
JH
2591 DECL_STRUCT_FUNCTION that may not be available;
2592 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
2593 remove check for callee_fun->can_throw_non_call_exceptions and
2594 replace it by optimization attribute check; check for flag_exceptions.
2595 * ipa-inline-transform.c (inline_call): Maintain
2596 DECL_FUNCTION_PERSONALITY
2597 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
2598
552b2afe
JJ
25992015-03-26 Jakub Jelinek <jakub@redhat.com>
2600
2601 PR tree-optimization/65551
2602 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
2603 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
2604
fd0c2f00
RB
26052015-03-26 Richard Biener <rguenther@suse.de>
2606
2607 PR middle-end/65555
2608 * tree-cfg.c (verify_gimple_call): Do not require a call to
2609 have no LHS if it wasn't recognized as control altering yet.
2610
d00dce27
JJ
26112015-03-26 Jakub Jelinek <jakub@redhat.com>
2612
672ff0b6 2613 PR tree-optimization/64715
bf3b2de7 2614 * passes.def: Add another instance of pass_object_sizes before ccp1.
672ff0b6
JJ
2615 * tree-object-size.c (pass_object_sizes::execute): In
2616 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
2617 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
2618 __bos result and the computed constant. Remove redundant
2619 checks, obsoleted by gimple_call_builtin_p test.
2620
d00dce27
JJ
2621 * var-tracking.c (variable_tracking_main_1): Don't track
2622 variables for targetm.no_register_allocation targets.
2623
8ed7e5f1
OE
26242015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
2625
2626 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
2627 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
2628
ee8c0889
MM
26292015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
2630
2631 PR target/65569
2632 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
2633 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
2634 0.0 is correctly setup.
2635 (extenddftf2_internal): Likewise.
2636
71e3f77e
SP
26372015-03-25 Sebastian Pop <s.pop@samsung.com>
2638
2639 PR tree-optimization/65177
2640 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
2641 (bb_in_bbs): New.
2642 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
2643 edges not adjacent on the path to the original code.
2644
871fe673
UB
26452015-03-25 Uros Bizjak <ubizjak@gmail.com>
2646
2647 PR bootstrap/65537
2648 * doc/install.texi (Building a native compiler): Document new
2649 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
2650 configuration assumes that the host supports the linker plugin.
2651
b2953ba0
IE
26522015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
2653
2654 PR target/65508
2655 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
2656 chain for generated call.
2657
2bb9e67f
RB
26582015-03-25 Richard Biener <rguenther@suse.de>
2659
2660 * passes.c (pass_manager::execute_early_local_passes): Guard
2661 execution of pass_chkp_instrumentation_passes with
2662 flag_check_pointer_bounds.
2663 (pass_chkp_instrumentation_passes::gate): Likewise.
2664
fdbdc4b5
ML
26652015-03-25 Martin Liska <mliska@suse.cz>
2666
2667 PR tree-optimization/65538
2668 * symbol-summary.h (function_summary::~function_summary):
2669 Relese memory for allocated summaries.
2670 (function_summary::release): New function.
2671
bbf043c2
JJ
26722015-03-25 Jakub Jelinek <jakub@redhat.com>
2673
2674 PR lto/65515
2675 * lto-streamer-out.c (DFS::worklist): New struct.
2676 (DFS::worklist_vec): New data member.
2677 (DFS::next_dfs_num): Remove.
2678 (DFS::DFS): Rewritten using worklist instead of recursion,
2679 using most of code from DFS::DFS_write_tree.
2680 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
2681 pass it to DFS_write_tree calls.
2682 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
2683 quick initial checks push it into worklist_vec and return.
2684
c09a3914
RB
26852015-03-25 Richard Biener <rguenther@suse.de>
2686
2687 PR middle-end/65519
2688 * genmatch.c (expr::gen_transform): Re-write to avoid
2689 using gimple_build.
2690
d45c2a1b
BC
26912015-03-25 Bin Cheng <bin.cheng@arm.com>
2692
2693 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
2694
2301ca74
BC
26952015-03-25 Bin Cheng <bin.cheng@arm.com>
2696
2697 * config/arm/arm.opt (print_tune_info): New option.
2698 * config/arm/arm.c (arm_print_tune_info): New function.
2699 (arm_file_start): Call arm_print_tune_info.
2700 * config/arm/arm-protos.h (struct tune_params): Add comment.
2701 * doc/invoke.texi (@item -mprint-tune-info): New item.
2702 (-mtune): mention it in ARM Option Summary.
2703
fae00b3e
DD
27042015-03-25 DJ Delorie <dj@redhat.com>
2705
2706 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
2707 correct clause.
2708
69f6b1f4
JH
27092015-03-24 Jan Hubicka <hubicka@ucw.cz>
2710 Martin Liska <mliska@suse.cz>
2711
2712 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
2713 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
2714 (sem_item::add_type): New function.
2715 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
2716 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
2717 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
2718 (sem_function::equals_wpa): Fix typo.
2719 * ipa-icf.h (sem_item::add_type): New function.
2720 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
2721 order.
2722
e72baed7
JJ
27232015-03-24 Jakub Jelinek <jakub@redhat.com>
2724
2725 PR tree-optimization/65533
2726 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
2727 with swapped operands, call vect_free_slp_tree on
2728 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
2729 vector.
2730
bdb37448
RB
27312015-03-24 Richard Biener <rguenther@suse.de>
2732
2733 PR middle-end/65517
2734 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
2735 for fixup if necessary.
2736
0c0f9f31
SL
27372015-03-23 Sandra Loosemore <sandra@codesourcery.com>
2738
2739 * doc/extend.texi (Function Attributes): Add @cindex entries
2740 for all attributes and regularize their format. Delete text
2741 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
2742 information about "eightbit_data", "tiny_data", and "model"
2743 variable attributes to the Variable Attributes section. Fix
2744 some obvious typos and copy-editing issues.
2745 (Variable Attributes, Type Attributes): Likewise add/fix
2746 @cindex entries for all attributes.
2747
fc6a2c5d
JJ
27482015-03-23 Jakub Jelinek <jakub@redhat.com>
2749
2750 PR target/65523
2751 * tree-chkp.c (chkp_build_returned_bound): Ignore
2752 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
2753
21f65dc8
OE
27542015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
2755
2756 PR target/65505
2757 * config/sh/predicates.md (simple_mem_operand,
2758 displacement_mem_operand): Add test for reg.
2759 (short_displacement_mem_operand): Test for displacement_mem_operand
2760 before invoking sh_disp_addr_displacement.
2761 * config/sh/constraints.md (Sdd, Sra): Simplify.
2762 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
2763 Remove redundant displacement_mem_operand tests.
2764
ed137300
GJL
27652015-03-23 Georg-Johann Lay <avr@gjlay.de>
2766
2767 PR target/65296
2768 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
2769 the same -mmcu=MCU more than once.
2770
404b86ed
JJ
27712015-03-23 Jakub Jelinek <jakub@redhat.com>
2772
46848948
JJ
2773 PR bootstrap/65522
2774 * ipa-devirt.c: Remove duplicate demangle.h include.
2775
404b86ed
JJ
2776 PR target/65504
2777 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
2778 on the pseudo.
2779 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
2780 REG_POINTER on *destptr after adjusting it for prologue size.
f45be077
JJ
2781
2782 PR ipa/65521
2783 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
2784 ultimate_alias_target ()->order ints instead of
2785 ultimate_alias_target () pointers.
2786
d5f035ea
RB
27872015-03-23 Richard Biener <rguenther@suse.de>
2788
2789 PR tree-optimization/65518
2790 * tree-vect-stmts.c (vectorizable_load): Reject single-element
2791 interleaving cases we generate absymal code for.
2792
89d390e5
RB
27932015-03-23 Richard Biener <rguenther@suse.de>
2794
2795 PR tree-optimization/65494
2796 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
2797 matches here.
2798 (vect_analyze_slp_instance): But do that here, always and once.
2799
c61928d0
KT
28002015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2801
2802 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
2803 adding T or multiplying by T+1 and subracting T.
2804
af3eb110
JL
28052015-03-22 Jeff Law <law@redhat.com>
2806
2807 PR rtl-optimization/64317
2808 * Makefile.in (OBJS): Add gcse-common.c
2809 * gcse.c: Include gcse-common.h
2810 (struct modify_pair_s): Move structure definition to gcse-common.h
2811 (compute_transp): Move function to gcse-common.c.
2812 (canon_list_insert): Similarly.
2813 (record_last_mem_set_info): Break out some code and put it into
2814 gcse-common.c. Call into the new common code.
2815 (compute_local_properties): Pass additional arguments to compute_transp.
2816 * postreload-gcse.c: Include gcse-common.h and df.h
2817 (modify_mem_list_set, blocks_with_calls): New variables.
2818 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
2819 (get_bb_avail_insn): Pass in the expression index too.
2820 (alloc_mem): Allocate memory for the new bitmaps and lists.
2821 (free_mem): Free memory for the new bitmaps and lists.
2822 (insert_expr_in_table): Record a bitmap index for each entry we
2823 add to the table.
2824 (record_last_mem_set_info): Call into common code in gcse-common.c.
2825 (get_bb_avail_insn): If no available insn was found in the requested
2826 BB. If BB has a single predecessor, see if the expression is
2827 transparent in BB and available in that single predecessor.
2828 (compute_expr_transp): New wrapper for compute_transp.
2829 (eliminate_partially_redundant_load): Pass expression's bitmap_index
2830 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
2831 (gcse_after_reload_main): If there are elements in the hash table,
2832 then compute transparency for all the elements in the hash table.
2833 * gcse-common.h: New file.
2834 * gcse-common.c: New file.
2835
4460b2dc
SL
28362015-03-22 Sandra Loosemore <sandra@codesourcery.com>
2837
2838 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
2839 as an adjective.
2840 (System Headers): Likewise.
2841 (Ifdef): Likewise.
2842 (Traditional macros): Likewise.
2843 (Invocation): Likewise.
2844 (Option Index): Likewise.
2845 * doc/cppopts.texi (-M): Likewise.
2846 (-finput-charset): Likewise.
2847 (--help): Likewise.
2848 * doc.invoke.texi (AVR Options): Likewise.
2849 (V850 Options): Likewise.
e5215d07 2850
b1905808
JH
28512015-03-22 Jan Hubicka <hubicka@ucw.cz>
2852
2853 PR ipa/65475
2854 * ipa-devirt.c: Include demangle.h
2855 (odr_type_d): Add field rtti_broken.
2856 (odr_subtypes_equivalent_p): Do not require name to match.
2857 (compare_virtual_tables): Fix typo; if type already has ODR violation,
2858 bypass the tests; be ready for function referneces in vtables that are
2859 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
2860 (warn_odr): Give up for nameless types.
2861 (warn_types_mismatch): Report mismatch in mangled names;
2862 report mismatch in anonymous namespaces; look into component types to
2863 give useful error; report when mismatch is dragged in from other ODR
2864 type.
2865 (odr_types_equivalent_p): Match types for being polymorphic; avoid
2866 duplicated diagnostics.
2867 (add_type_duplicate): Reorder checks so more informative ones come
2868 first; fix typo; do not output "the extra base is defined here" when
2869 we did not warn.
2870 (BINFO_N_BASE_BINFOS): Relax sanity check.
ff2362eb 2871
b1905808 28722015-03-22 Martin Liska <mliska@suse.cz>
ff2362eb
ML
2873 Jakub Jelinek <jakub@redhat.com>
2874
2875 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
2876 masks that can potentially include a builtin.
2877 (ix86_add_new_builtins): Introduce fast filter for isa values
2878 that cannot trigger builtin inclusion.
2879
3ab93359
ML
28802015-03-22 Martin Liska <mliska@suse.cz>
2881
2882 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
2883 (sem_item::update_hash_by_local_refs): Likewise.
2884 (sem_variable::get_hash): Empty line is fixed.
2885 (sem_item_optimizer::execute): Include adding of hash references.
2886 (sem_item_optimizer::update_hash_by_addr_refs): New function.
2887 (sem_item_optimizer::build_hash_based_classes): Use local hash.
2888 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
2889 (sem_item::update_hash_by_local_refs): Likewise.
2890
dcbde1f8
JH
28912015-03-20 Jan Hubicka <hubicka@ucw.cz>
2892
2893 PR ipa/65502
2894 * ipa-comdats.c (enqueue_references): Walk through thunks.
2895 (ipa_comdats): Likewise.
2896 (set_comdat_group_1): New function.
2897
a6bfa7c7
JH
28982015-03-20 Jan Hubicka <hubicka@ucw.cz>
2899
2900 PR ipa/65475
2901 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
2902 non-polymorphic
2903
ac48a1ba
DK
29042015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
2905 Gerald Pfeifer <gerald@pfeifer.com>
2906
2907 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
2908
a866d527
CLT
29092015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
2910 Sandra Loosemore <sandra@codesourcery.com>
2911
2912 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
2913 function parameter declaration.
2914 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
2915 Update arguments to nios2_adjust_call_address().
2916 (sibcall_internal): Rename from *sibcall.
2917 (sibcall_value_internal): Rename from *sibcall_value.
2918 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
2919 (nios2_large_got_address): Add target temp reg parameter.
2920 (nios2_got_address): Adjust call to nios2_large_got_address, add
2921 force_reg around it.
2922 (nios2_load_pic_address): Add target temp reg parameter, replace call
2923 to nios2_got_address with corresponding code.
2924 (nios2_legitimize_constant_address): Update call to
2925 nios2_load_pic_address.
2926 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
2927 to use temp reg for PIC loading purposes.
2928 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
2929 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
2930 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
2931
6d5c05f0
SL
29322015-03-21 Sandra Loosemore <sandra@codesourcery.com>
2933
2934 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
2935 usage of "the @option{...}".
2936 (-Wopenmp-simd): Likewise.
2937 (-fsanitize-recover): Likewise.
2938 (-fsanitize-undefined-trap-on-error): Likewise.
2939 (-flto): Likewise.
2940 (tracer-dynamic-coverage-feedback): Likewise.
2941 (reorder-block-duplicate-feedback): Likewise.
2942 (loop-unroll-jam-size): Likewise.
2943 (-B): Likewise.
2944 (-I-): Likewise.
2945 (-mabs=legacy): Likewise.
2946 (-mupper-regs-df): Likewise.
2947 (-mupper-regs-sf): Likewise.
2948 (-mpointers-to-nested-functions): Likewise.
2949
ce805a8d
SL
29502015-03-21 Sandra Loosemore <sandra@codesourcery.com>
2951
2952 * doc/extend.texi (Cilk Plus Builtins): Add markup.
2953
7651042e
SL
29542015-03-21 Sandra Loosemore <sandra@codesourcery.com>
2955
2956 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
2957 additional index entries and cross-references.
2958 (-fchkp-check-incomplete-type): Likewise.
2959 (-fchkp-first-field-has-own-bounds): Likewise.
2960 (-fchkp-narrow-to-innermost-array): Likewise.
2961 (-fchkp-use-fast-string-functions): Likewise.
2962 (-fchkp-use-nochk-string-functions): Likewise.
2963 (-fchkp-use-static-const-bounds): Likewise.
2964 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
2965 (-fchkp-instrument-marked-only): Likewise.
2966 (-fchkp-use-wrappers): Likewise.
2967 (-static-libmpx): Likewise.
2968 (-static-libmpxwrappers): Likewise.
2969 * doc/extend.texi (bnd_legacy): Likewise.
2970 (bnd_instrument): Likewise.
2971 (bnd_variable_size): Likewise.
2972 (Pointer Bounds Checker builtins): Likewise.
2973
a79b7ec5
TV
29742015-03-21 Tom de Vries <tom@codesourcery.com>
2975
2976 PR tree-optimization/65458
2977 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
2978 * cgraph.h (cgraph_node): Add parallelized_function field.
2979 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
2980 (input_overwrite_node): Read parallelized_function field.
2981 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
2982 parallelized_function on cgraph_node for child_fn.
2983 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
2984 Remove include of gt-tree-parloops.h.
2985 (parallelized_functions): Remove static variable.
2986 (parallelized_function_p): Rewrite using parallelized_function field of
2987 cgraph_node.
2988 (create_loop_fn): Remove adding to parallelized_functions.
2989 * Makefile.in (GTFILES): Remove tree-parloops.c
2990
05f23918
VM
29912015-03-20 Vladimir Makarov <vmakarov@redhat.com>
2992
2993 PR rtl-optimization/64366
2994 * lra.c (lra_update_insn_regno_info): Consider regs in
2995 CALL_INSN_FUNCTION_USAGE memory.
2996
3da3ff4e
RB
29972015-03-20 Richard Biener <rguenther@suse.de>
2998
2999 PR middle-end/64715
3000 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
3001 for type comparison and gcc_checking_assert.
3002 (chrec_fold_plus_poly_poly): Likewise.
3003 (chrec_fold_multiply_poly_poly): Likewise.
3004 (chrec_convert_1): Likewise.
3005 * gimplify.c (gimplify_expr): Remove premature folding of
3006 &X + CST to &MEM[&X, CST].
3007
7ce7e4d4
JH
30082015-03-20 Jan Hubicka <hubicka@ucw.cz>
3009
3010 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
3011 already is final.
3012 (ipa_inline): Recompute inline_failed codes.
3013 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
e5215d07 3014 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
7ce7e4d4
JH
3015 CIF_FINAL_ERROR.
3016
21e357f1
UB
30172015-03-20 Uros Bizjak <ubizjak@gmail.com>
3018
3019 PR rtl-optimization/60851
3020 * recog.c (constrain_operands): Accept a pseudo register before reload
3021 for LRA enabled targets.
3022
8d9fb9bb
MM
30232015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
3024
3025 PR target/65240
3026 * config/rs6000/predicates.md (easy_fp_constant): Remove special
3027 -ffast-math handling that kept non-0 constants live in the RTL
3028 until reload. Remove logic testing the number of instructions it
3029 took to create a constant in a GPR that was never used, due to a
3030 test for soft-float earlier.
3031 (memory_fp_constant): Delete, no longer used.
3032
3033 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
3034 alternatives for loading non-0 constants into GPRs for hard
3035 floating point that is no longer needed due to changes in
3036 easy_fp_constant. Add support for loading 0.0 into GPRs.
3037 (mov<mode>_hardfloat32): Likewise.
3038 (mov<mode>_hardfloat64): Likewise.
3039 (mov<mode>_64bit_dm): Likewise.
3040 (movtd_64bit_nodm): Likewise.
3041 (pre-reload move FP constant define_split): Delete define_split,
3042 since it is no longer used.
3043 (extenddftf2_internal): Remove GHF constraints that are not valid
3044 for extenddftf2.
3045
5a59d54e
VM
30462015-03-19 Vladimir Makarov <vmakarov@redhat.com>
3047
3048 PR rtl-optimization/63491
3049 * lra-constraints.c (check_and_process_move): Use src instead of
3050 sreg. Remove some dead code.
3051
257291fc
JH
30522015-03-19 Jan Hubicka <hubicka@ucw.cz>
3053
3054 PR ipa/65380
3055 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
3056 (sem_variable::merge): Likewise.
3057
e68287df
ML
30582015-03-19 Martin Liska <mliska@suse.cz>
3059
3060 PR ipa/65465
3061 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
3062 all fields of cgraph_thunk_info.
3063
5cdd35db
IE
30642015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
3065
3066 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
3067 clone instrumented thunks.
3068
8cf0fb5c
RB
30692015-03-19 Richard Biener <rguenther@suse.de>
3070
3071 Revert
3072 2015-03-10 Richard Biener <rguenther@suse.de>
3073
3074 PR middle-end/63155
3075 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
3076 * tree-ssa-coalesce.c: Include timevar.h.
3077 (attempt_coalesce): Handle graph being NULL.
3078 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
3079 Split out abnormal coalescing to ...
3080 (perform_abnormal_coalescing): ... this function.
3081 (coalesce_ssa_name): Perform abnormal coalescing without computing
3082 live/conflict.
3083 (verify_ssa_coalescing_worker): New function.
3084 (verify_ssa_coalescing): Likewise.
3085
a3f94967
JJ
30862015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
3087 Jakub Jelinek <jakub@redhat.com>
3088
3089 PR sanitizer/65400
3090 * tsan.c (instrument_gimple): Clear tail call flag on
3091 calls.
3092
bfd71482
JJ
30932015-03-19 Jakub Jelinek <jakub@redhat.com>
3094
3095 PR sanitizer/65400
3096 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
3097 call in the return bb.
3098 (find_split_points): Add RETURN_BB argument, don't call
3099 find_return_bb.
3100 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
3101 if true append TSAN_FUNC_EXIT internal call after the call to
3102 the split off function.
3103 (execute_split_functions): Call find_return_bb here.
3104 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
3105 Adjust find_split_points and split_function calls.
3106
995332ca 31072015-03-18 DJ Delorie <dj@redhat.com>
5a59d54e 3108
995332ca
DD
3109 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
3110 (iorqi3_virt): Likewise.
3111
09489eb8
TV
31122015-03-18 Tom de Vries <tom@codesourcery.com>
3113
3114 * tree-parloops.c (parallelize_loops): Make static.
3115 * tree-parloops.h (parallelize_loops): Remove extern declaration.
3116
b4f3051a
AS
31172015-03-18 Andrew Stubbs <ams@codesourcery.com>
3118
3119 PR middle-end/64491
3120 Revert:
3121 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
3122
3123 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
3124 condition would be removed due to undefined behaviour.
3125
1aec2ecc
ML
31262015-03-18 Martin Liska <mliska@suse.cz>
3127
3128 PR ipa/65432
3129 * cgraph.c (cgraph_node::get_create): Remove unnecessary
3130 xstrdup_for_dump wrapper.
3131 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
3132 sem_item::name.
3133 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
3134 with xstrdup_for_dump.
3135 (sem_variable::equals): Likewise.
3136 (sem_item_optimizer::read_section): Use symtab_node::name instead of
3137 sem_item::name.
3138 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
3139 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
3140 symtab_node::asm_name with xstrdup_for_dump.
3141 (congruence_class::dump): Use symtab_node::name instead of
3142 sem_item::name.
3143 * ipa-icf.h (symtab_node::name): Remove.
3144 (symtab_node::asm_name): Likewise.
3145
43939937
JJ
31462015-03-18 Jakub Jelinek <jakub@redhat.com>
3147
faf4220c
JJ
3148 PR tree-optimization/65450
3149 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
3150 function.
3151 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
3152 it instead of duplicate_ssa_name_ptr_info.
3153
43939937
JJ
3154 PR target/65222
3155 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
3156
6f4f1a50
RB
31572015-03-18 Richard Biener <rguenther@suse.de>
3158
3159 * tree-data-ref.h (struct access_matrix): Remove.
3160 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
3161 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
3162 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
3163 (am_vector_index_for_loop): Likewise.
3164 (struct data_reference): Remove access_matrix member.
3165 (DR_ACCESS_MATRIX): Remove.
3166 (lambda_vector_new): Add comment.
3167 (lambda_matrix_new): Use XOBNEWVEC.
3168
9538c95b
RB
31692015-03-18 Richard Biener <rguenther@suse.de>
3170
3171 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
3172 (pass_ch::execute): Cleanup the CFG only if we did sth.
3173 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
3174
076701b6
KT
31752015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3176
3177 * expmed.c (synth_mult): Use std::swap instead of manually
3178 swapping algorithms.
3179
fbf524de
JJ
31802015-03-18 Jakub Jelinek <jakub@redhat.com>
3181
3182 PR target/65078
3183 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
3184
076d86f3
GJL
31852015-03-16 Georg-Johann Lay <avr@gjlay.de>
3186
3187 PR target/65296
3188 * config/avr/avr.opt (-nodevicelib): New option.
3189 * doc/invoke.texi (AVR Options): Document it.
3190 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
3191 libgcc.a, libc.a, libm.a.
3192 * config/avr/specs.h: Same.
3193 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
3194 which don't (directly) depend on the device. Print more help.
3195 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
3196 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
3197 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
3198 case of an error.
3199 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
3200 for specs file name.
3201 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
3202 * config/avr/avr-mcus.def: Adjust initializers and comments.
3203
7a161d5b
JH
32042015-03-16 Jan Hubicka <hubicka@ucw.cz>
3205
3206 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
3207 DECL_ONE_ONLY to check if decl is one only.
3208 * ipa-split.c (consider_split): Limit splitt of one only functions.
3209
f8c29d98
JJ
32102015-03-16 Jakub Jelinek <jakub@redhat.com>
3211
3212 PR tree-optimization/65427
3213 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
3214 functions.
3215 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
3216
de6d3593
MP
32172015-03-16 Marek Polacek <polacek@redhat.com>
3218
3219 * cgraph.h (add_new_static_var): Remove declaration.
3220 * varpool.c (add_new_static_var): Remove function.
3221
3713412b
JJ
32222015-03-16 Jakub Jelinek <jakub@redhat.com>
3223
9410d9b2
JJ
3224 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
3225 instead of vec<tree> * with vec_alloc and release for args.
3226 Adjust all users.
3227
3713412b
JJ
3228 PR middle-end/65431
3229 * omp-low.c (delete_omp_context): Only splay_tree_delete
3230 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
3231 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
3232
435be747
MO
32332015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
3234
3235 PR sanitizer/64820
3236 * cfgexpand.c (align_base): New function.
3237 (alloc_stack_frame_space): Call it.
3238 (expand_stack_vars): Align prev_frame to be sure
3239 data->asan_vec elements aligned properly.
3240
9e25209f
EB
32412015-03-16 Eric Botcazou <ebotcazou@adacore.com>
3242
3243 PR middle-end/65409
3244 * expr.c (store_field): Do not do a direct block copy if the source is
3245 a PARALLEL with BLKmode.
3246
261cb0d3
TV
32472015-03-16 Tom de Vries <tom@codesourcery.com>
3248
3249 PR middle-end/65414
3250 Revert:
3251 2015-03-12 Tom de Vries <tom@codesourcery.com>
3252
3253 PR rtl-optimization/64895
3254 * lra-lives.c (check_pseudos_live_through_calls): Use
3255 actual_call_used_reg_set instead of call_used_reg_set, if available.
3256
e1be83ca
AM
32572015-03-16 Alan Modra <amodra@gmail.com>
3258
3259 PR target/63150
3260 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
3261 Modify Z->r bswapdi splitter to use dest in place of scratch.
3262 In r->Z and Z->r bswapdi splitter rename word_high, word_low
3263 to word1, word2 and rearrange logic to suit.
3264 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
3265 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
3266 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
3267 Add one '?' on r->r. Modify Z->r splitter to avoid need for
3268 early clobber.
3269
a4b55f2a
JJ
32702015-03-14 Jakub Jelinek <jakub@redhat.com>
3271
d88981fc
JJ
3272 PR tree-optimization/65369
3273 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
3274 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
3275 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
3276
c2f41ffd
JJ
3277 PR tree-optimization/65418
3278 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
3279 are casts in the first PLUS_EXPR operand, ensure tbias and
3280 *totallowp are in the inner type.
3281
a4b55f2a
JJ
3282 PR rtl-optimization/65401
3283 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
3284 argument. If true, adjust_address_nv of x with big-endian
3285 correction for the mode widening to GET_MODE (y).
3286 (make_field_assignment): Don't do MEM mode widening here.
3287 Use MEM_P instead of GET_CODE == MEM.
3288
db397e2e
IV
32892015-03-13 Ilya Verbin <ilya.verbin@intel.com>
3290
3291 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
3292 the external decls.
3293
34f1d426
KT
32942015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3295
3296 PR target/64600
3297 * config/arm/arm.c (arm_gen_constant, AND case): Use
3298 ARM_SIGN_EXTEND when constructing AND mask.
3299
7088e2b0
TP
33002015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
3301
3302 * graph.c (print_graph_cfg): Make function names visible and append
3303 parenthesis to it. Also make groups of basic blocks belonging to the
3304 same function visible.
3305
2aa26a55
RB
33062015-03-12 Richard Biener <rguenther@suse.de>
3307
3308 PR middle-end/44563
3309 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
3310 to avoid quadratic behavior with inline expansion splitting blocks.
3311 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
3312 with the successor if the predecessor will be merged with it.
3313 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
3314 entry block with its successor.
3315
2a5671ee
RB
33162015-03-13 Richard Biener <rguenther@suse.de>
3317
3318 PR middle-end/44563
3319 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
3320 (cleanup_tree_cfg_1): Do not call it.
3321 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
3322 (fixup_noreturn_call): Mark the stmt as control altering.
3323 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
3324 here.
3325 (pass_data_fixup_cfg): Produce a dump file.
3326 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
3327 (need_noreturn_fixup): New global.
3328 (pass_dominator::execute): Fixup queued noreturn calls.
3329 (optimize_stmt): Queue calls that became noreturn for fixup.
3330 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
3331 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
3332 (el_to_fixup): New global.
3333 (eliminate_dom_walker::before_dom_childre): Queue calls that
3334 became noreturn for fixup.
3335 (eliminate): Fixup queued noreturn calls.
3336 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
3337 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
3338 (substitute_and_fold_dom_walker::before_dom_children): Queue
3339 alls that became noreturn for fixup.
3340 (substitute_and_fold): Fixup queued noreturn calls.
3341
060cfff4
JH
33422015-03-12 Jan Hubicka <hubicka@ucw.cz>
3343
3344 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
3345 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
3346 are building; for methods check ODR type of class they belong to if
3347 they may lead to a polymorphic call.
3348 (sem_function::compare_polymorphic_p): Be bit smarter about testing
3349 when function may lead to a polymorphic call.
3350 (sem_function::compare_type_list): Remove.
3351 (sem_variable::equals): Update use of compatible_types_p.
3352 (sem_variable::parse_tree_refs): Remove.
3353 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
3354 cdtor.
3355 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
3356 matching here.
3357 (func_checker::compatible_polymorphic_types_p): Break out from ...
3358 (unc_checker::compatible_types_p): ... here.
3359 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
3360 Declare.
3361 (unc_checker::compatible_types_p): Update.
3362 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
3363 Remove.
3364
644f6fd8
KT
33652015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3366
ad1cabfc 3367 PR rtl-optimization/65235
644f6fd8
KT
3368 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
3369 When first element of vec_concat is const_int, calculate its size
3370 using second element.
3371
6899585a
RB
33722015-03-12 Richard Biener <rguenther@suse.de>
3373
3374 PR middle-end/65270
3375 * fold-const.c (operand_equal_p): Fix ordering of resetting
3376 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
3377
f8af0e30
DV
33782015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
3379
3380 * config/s390/s390.c (s390_reorg): Move code to output nops after label
3381 to s390_reorg ().
3382 (s390_asm_output_function_label): Likewise.
3383 * config/s390/s390.c (s390_asm_output_function_label):
3384 Fix function label alignment with -mhtopatch.
3385 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
3386 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
3387 ("nop_2_byte"): New define_insn.
3388 ("nop_4_byte"): Likewise.
3389 ("nop_6_byte"): Likewise.
3390 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
3391 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
3392
58b387e6
IE
33932015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
3394
3395 PR target/65103
3396 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
3397 register.
3398
1b89b8f0
IE
33992015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
3400
3401 PR target/65044
3402 * toplev.c (process_options): Restrict Pointer Bounds Checker
3403 usage with Address Sanitizer.
3404
b13c907a
RB
34052015-03-12 Richard Biener <rguenther@suse.de>
3406
3407 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
3408 to split on.
3409 * omp-low.c (expand_omp_taskreg): Split block before removing
3410 the stmt.
3411 (expand_omp_target): Likewise.
3412 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
3413 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
3414 stmt to split_block.
3415
13d29cb0
TV
34162015-03-12 Tom de Vries <tom@codesourcery.com>
3417
da312b6e 3418 PR rtl-optimization/64895
13d29cb0
TV
3419 * lra-lives.c (check_pseudos_live_through_calls): Use
3420 actual_call_used_reg_set instead of call_used_reg_set, if available.
3421
1c4db829
JH
34222015-03-10 Jan Hubicka <hubicka@ucw.cz>
3423
3424 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
3425 (cgraph_node::remove): Likewise.
3426 (cgraph_node::get_untransformed_body): Likewise.
3427 * varpool.c (varpool_node::remove): Likewise.
3428 (varpool_node::get_constructor): Add sanity check.
3429
8648c55f
SL
34302015-03-11 Sandra Loosemore <sandra@codesourcery.com>
3431
10ac6596 3432 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
8648c55f
SL
3433 old GCC versions.
3434 (-fabi-compat-version): Likewise.
3435 (-ffriend-injection): Likewise.
3436 (-Wdeclaration-after-statement): Likewise.
3437 (-fomit-frame-pointer): Likewise.
3438 (-ftree-coalesce-inlined-vars): Likewise.
3439 (-fvisibility=): Likewise.
3440 * doc/extend.texi (Typeof): Likewise.
3441 (Zero Length): Likewise.
3442 (Escaped Newlines): Likewise.
3443 (Compound Literals): Likewise.
3444 (Function Attributes): Likewise.
3445 (Label Attributes): Likewise.
3446 (Type Attributes): Likewise.
3447 (Function Names): Likewise.
3448 (Other Builtins): Likewise.
3449 (Function Specific Option Pragmas): Likewise.
3450 (C++ Interface): Likewise.
3451
d94fae04
TS
34522015-03-11 Thomas Schwinge <thomas@codesourcery.com>
3453
3454 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
3455
707550e4
MP
34562015-03-11 Marek Polacek <polacek@redhat.com>
3457
3458 PR tree-optimization/65388
3459 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
3460
0c9dc4ae
GJL
34612015-03-10 Georg-Johann Lay <avr@gjlay.de>
3462
3463 PR target/65296
3464 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
3465 * configure: Regenerate.
3466 * config.in: Regenerate.
3467 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
3468 [-mn-flash]: Document it.
3469 [__AVR_ARCH__]: Document avrtiny.
3470
3471 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
3472 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
3473 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
3474
91d4a5ea
AK
34752015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3476
3477 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
3478
befe1997
MM
34792015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3480
3481 PR target/65242
3482 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
3483 allow reloads of PLUS in floating point/VSX registers.
3484
4c3e13df
JP
34852015-03-11 Junmo Park <junmoz.park@samsung.com>
3486
10ac6596
UB
3487 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
3488 crypto_sha256_fast.
4c3e13df
JP
3489 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
3490
474b3a7c
RB
34912015-03-11 Richard Biener <rguenther@suse.de>
3492
3493 PR tree-optimization/65310
3494 * tree-sra.c (build_ref_for_offset): Also preserve larger
3495 alignment.
3496
6b98fab5
MZ
34972015-03-11 Marat Zakirov <m.zakirov@samsung.com>
3498
3499 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
3500
2d977ff9
JJ
35012015-03-10 Jakub Jelinek <jakub@redhat.com>
3502
3503 PR target/65368
3504 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
3505 new define_expand.
3506 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
3507
c4234544
JH
35082015-03-10 Jan Hubicka <hubicka@ucw.cz>
3509
10ac6596 3510 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
c4234544
JH
3511 (sem_function::equals_wpa): ... here.
3512
0757674c
MP
35132015-03-10 Marek Polacek <polacek@redhat.com>
3514 Jakub Jelinek <jakub@redhat.com>
3515
3516 PR sanitizer/65367
3517 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
3518 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
3519 separately.
3520
dac2639d
JJ
35212015-03-10 Jakub Jelinek <jakub@redhat.com>
3522
3523 PR target/65286
3524 * config/rs6000/t-linux: For powerpc64* target set
3525 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
3526
c6927859
RB
35272015-03-10 Richard Biener <rguenther@suse.de>
3528
3529 PR middle-end/44563
3530 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
3531 for redirect_all_calls.
3532
2e1a9cdb
MP
35332015-03-10 Marek Polacek <polacek@redhat.com>
3534
3535 * gdbinit.in (pcfun): Define and document.
3536
30094344
IV
35372015-03-10 Ilya Verbin <ilya.verbin@intel.com>
3538
3539 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
3540 of libgomp-plugin.h.
10ac6596
UB
3541 (find_target_compiler): Support a case when the path to gcc is
3542 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
30094344
IV
3543 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
3544 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
3545 libgomp-plugin.h.
3546 (main): Use GCC_INSTALL_NAME as target_driver_name.
3547 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
3548 define.
3549 (mkoffload.o): Remove obsolete include path and defines.
3550 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
3551
a563c286
RB
35522015-03-10 Richard Biener <rguenther@suse.de>
3553
3554 PR middle-end/63155
3555 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
3556 * tree-ssa-coalesce.c: Include timevar.h.
3557 (attempt_coalesce): Handle graph being NULL.
3558 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
3559 Split out abnormal coalescing to ...
3560 (perform_abnormal_coalescing): ... this function.
3561 (coalesce_ssa_name): Perform abnormal coalescing without computing
3562 live/conflict.
3563 (verify_ssa_coalescing_worker): New function.
3564 (verify_ssa_coalescing): Likewise.
3565
4a2caf6c
GJL
35662015-03-10 Georg-Johann Lay <avr@gjlay.de>
3567
3568 PR target/65296
3569 * config.gcc (extra_options) [avr]: Remove.
3570 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
3571 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
3572 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
3573
3574 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
3575 (-mmcu=): Add Var and MissingArgError properties.
3576 (-march=): Remove.
3577 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
3578 * config/avr/t-multilib: Regenerate.
3579 * config/avr/specs.h: New file.
3580 * config/avr/driver-avr.c: New file.
3581 * config/avr/genopt.sh: Remove file.
3582 * config/avr/avr-tables.opt: Remove file.
3583 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
3584 * config/avr/avr-c.c: Same.
3585 * avr-arch.h: Same.
3586 (avr_current_device): Remove proto.
3587 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
3588 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
3589 (EXTRA_SPEC_FUNCTIONS): Define.
3590 (avr_devicespecs_file): New specs function proto.
3591 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
3592 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
77d68d97 3593 (avr_current_device): Remove definition and usage.
4a2caf6c
GJL
3594 (avr_set_core_architecture): New static function.
3595 (avr_option_override): Use it.
3596 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
3597 (mcu_name): New static array.
3598 (comparator, avr_archs_str, avr_mcus_str): New static functions.
3599 (avr_inform_devices, avr_inform_core_architectures): New functions.
3600 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
3601 (avrlibc.h) [WITH_AVRLIBC]: Include.
3602 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
3603 (print_mcu): Rewrite from scratch.
3604 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
3605 Forward to avr-specific specs defined in device-specs file.
3606 * config/avr/t-avr (driver-avr.o): New rule.
3607 (avr-devices.o): Depend on avr-arch.h.
3608 (avr-mcus): No more depend on avr-tables.opt.
3609 (avr-tables.opt): Remove rule.
3610 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
3611
226d62d2
IE
36122015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
3613
3614 * c-family/c.opt (fchkp-use-wrappers): New.
3615 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
3616 (chkp_wrap_function): New.
3617 (chkp_build_instrumented_fndecl): Support wrapped
3618 functions.
3619 * doc/invoke.texi (-fcheck-pointer-bounds): New.
3620 (-fchkp-check-incomplete-type): New.
3621 (-fchkp-first-field-has-own-bounds): New.
3622 (-fchkp-narrow-bounds): New.
3623 (-fchkp-narrow-to-innermost-array): New.
3624 (-fchkp-optimize): New.
3625 (-fchkp-use-fast-string-functions): New.
3626 (-fchkp-use-nochk-string-functions): New.
3627 (-fchkp-use-static-bounds): New.
3628 (-fchkp-use-static-const-bounds): New.
3629 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
3630 (-fchkp-check-read): New.
3631 (-fchkp-check-write): New.
3632 (-fchkp-store-bounds): New.
3633 (-fchkp-instrument-calls): New.
3634 (-fchkp-instrument-marked-only): New.
3635 (-fchkp-use-wrappers): New.
3636 (-static-libmpx): New.
3637 (-static-libmpxwrappers): New.
3638
d2d7e672
IE
36392015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
3640
3641 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
3642 (CHKP_SPEC): Add wrappers library.
3643 * c-family/c.opt (static-libmpxwrappers): New.
3644
5373cd33
IE
36452015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
3646
3647 * config/i386/linux-common.h (LIBMPX_LIBS): New.
3648 (LIBMPX_SPEC): New.
3649 (CHKP_SPEC): New.
3650 * gcc.c (CHKP_SPEC): New.
3651 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
3652 * c-family/c.opt (static-libmpx): New.
3653
40ff1364
RB
36542015-03-10 Richard Biener <rguenther@suse.de>
3655
3656 PR middle-end/44563
3657 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
3658 for compare_type.
3659 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
3660 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
3661 (cgraph_add_edge_to_call_site_hash): Likewise.
3662 (cgraph_node::get_edge): Likewise.
3663 (cgraph_edge::set_call_stmt): Likewise.
3664 (cgraph_edge::remove_caller): Likewise.
3665
c457f751
CJW
36662015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
3667
3668 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
3669 (callee_saved_gpr_regs_size): ... this.
3670 (callee_saved_regs_first_regno): Rename to ...
3671 (callee_saved_first_gpr_regno): ... this.
3672 (callee_saved_regs_last_regno) Rename to ...
3673 (callee_saved_last_gpr_regno): ... this.
3674 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
3675 variables.
3676 (nds32_initial_elimination_offset): Likewise.
3677 (nds32_expand_prologue): Likewise.
3678 (nds32_expand_epilogue): Likewise.
3679 (nds32_expand_prologue_v3push): Likewise.
3680 (nds32_expand_epilogue_v3pop): Likewise.
3681 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
3682 Adjust renamed variables.
3683 (nds32_output_stack_pop): Likewise.
3684
048f1a9c
TP
36852015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
3686
3687 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
3688 code in comment.
3689
26d83bcc
JJ
36902015-03-10 Jakub Jelinek <jakub@redhat.com>
3691
3692 PR rtl-optimization/65321
3693 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
3694 than shift mode.
3695 * var-tracking.c (use_narrower_mode): Likewise.
3696
caf2df93
JH
36972015-03-10 Jan Hubicka <hubicka@ucw.cz>
3698
3699 PR tree-optimization/65355
3700 * varasm.c (notice_global_symbol): Do not produce RTL.
3701 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
3702 anchor.
3703 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
3704 check for section anchors.
3705
864396ff
AM
37062015-03-10 Alan Modra <amodra@gmail.com>
3707
3708 PR target/65286
3709 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
3710 to be single-arch by default. Set cpu_is_64bit for powerpc64
3711 given --with-cpu=native.
3712 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
3713 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
3714 and powerpc64le.
3715 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
3716 rs6000_isa_flags rather than TARGET_64BIT.
3717
711d91e1
YS
37182015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
3719 Kaz Kojima <kkojima@gcc.gnu.org>
3720
3721 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
3722
9112885a
JJ
37232015-03-09 Jakub Jelinek <jakub@redhat.com>
3724
3725 PR lto/65361
3726 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
3727 on a TREE_BINFO, instead use BINFO_TYPE.
3728
e0808638
RB
37292015-03-09 Richard Biener <rguenther@suse.de>
3730
3731 PR middle-end/65270
3732 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
3733 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
3734 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
3735 of that. When comparing dereferences compare alignment.
3736 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
3737
e0d514da
JH
37382015-03-08 Jan Hubicka <hubicka@ucw.cz>
3739
3740 * ipa-inline-analysis.c (check_callers): Check
3741 node->can_remove_if_no_direct_calls_and_refs_p.
3742 (growth_likely_positive): Reorganize to call
3743 can_remove_if_no_direct_calls_p later.
3744 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
10ac6596 3745 will_be_removed_from_program_if_no_direct_calls_p): Add
e0d514da
JH
3746 will_inline parameter.
3747 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
3748 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
3749 Handle inliner case correctly.
3750
68ca4ac9
TP
37512015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
3752
3753 PR tree-optimization/63743
3754 * cfgexpand.c (reorder_operands): Also reorder if only second operand
3755 had its definition forwarded by TER.
3756
609570b4
JH
37572015-03-08 Jan Hubicka <hubicka@ucw.cz>
3758
3759 PR lto/65316
3760 * ipa-utils.h (types_odr_comparable): Add strict argument.
3761 * ipa-devirt.c: Fix whitespace;
3762 (odr_hasher): Remove.
3763 (odr_name_hasher, odr_vtable_hasher): New hashers.
3764 (can_be_name_hashed_p): New predicate.
3765 (hash_type_name): remove.
3766 (hash_odr_name): New.
3767 (odr_name_hasher::hash): new.
3768 (can_be_vtable_hashed_p): New.
3769 (hash_odr_vtable): New.
3770 (odr_vtable_hasher::hash): New.
3771 (types_same_for_odr): Add strict parameter.
3772 (types_odr_comparable): Likewise.
3773 (odr_name_hasher::equal): New.
3774 (odr_vtable_hasher::equal): New.
3775 (odr_name_hasher::remove): New.
3776 (odr_hash_type): Change to hash_table<odr_name_hasher>.
3777 (odr_vtable_hash_type): New.
3778 (odr_vtable_hash): New.
3779 (odr_subtypes_equivalent_p): Do strict comparsion.
3780 (add_type_duplicate): Merge type names; cleanup; avoid type
3781 duplicates.
3782 (register_odr_type): Initialize vtable hash.
3783 (build_type_inheritance_graph): Likewise
3784 (get_odr_type): Reorg to use two hashes.
3785 (dump_possible_polymorphic_call_targets): Move sanity check after debug
3786 output.
3787 (ipa_devirt): Dump type_inheritance_graph.
3788 (types_same_for_odr): Add strict mode.
3789
428f0c67
JH
37902015-03-05 Jan Hubicka <hubicka@ucw.cz>
3791
3792 PR ipa/65334
3793 * cgraph.h (symtab_node): Add definition_alignment,
3794 can_increase_alignment_p and increase_alignment.
3795 * symtab.c (symtab_node::can_increase_alignment_p,
3796 increase_alignment_1, symtab_node::increase_alignment,
3797 symtab_node::definition_alignment): New.
3798 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
3799 can_increase_alignment_p.
3800 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
3801 * tree-vect-stmts.c (ensure_base_align): Likewise.
7185ec2c
JH
3802 * varasm.c (function_section_1): Use definition_alignment.
3803 (assemble_start_function): Likewise.
3804 (emit_local): likewise.
3805 (build_constant_desc): Likewsie.
3806 (output_constant_def_contents): Likewise.
3807 (place_block_symbol): Likewise.
3808 (output_object_block): Likewise.
428f0c67 3809
a7384b1b
JH
38102015-03-05 Jan Hubicka <hubicka@ucw.cz>
3811
3812 PR ipa/65316
3813 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
3814 when outputting debug.
3815
04fd785e
MP
38162015-03-07 Marek Polacek <polacek@redhat.com>
3817 Martin Uecker <uecker@eecs.berkeley.edu>
3818
3819 PR sanitizer/65280
3820 * doc/invoke.texi: Update description of -fsanitize=bounds.
3821
268cb4b3
WD
38222015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
3823
3824 * tree-ssa-phiopt.c (neg_replacement): Remove.
3825 (tree_ssa_phiopt_worker): Remove negate optimization.
3826
81b0d906
JH
38272015-03-05 Jan Hubicka <hubicka@ucw.cz>
3828
3829 PR ipa/65302
3830 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
3831
87d0d6c4
RB
38322015-03-06 Richard Biener <rguenther@suse.de>
3833
3834 PR middle-end/64928
3835 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
3836 and liveout_obstack members.
3837 (calculate_live_on_exit): Remove.
3838 (calculate_live_ranges): Change declaration.
3839 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
3840 (new_tree_live_info): Adjust.
3841 (calculate_live_ranges): Delete livein when not wanted.
3842 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
3843 Deal with partly deleted live info.
3844 (loe_visit_block): Remove temporary bitmap by using
3845 bitmap_ior_and_compl_into.
3846 (live_worklist): Adjust accordingly.
3847 (calculate_live_on_exit): Make static.
3848 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
3849 we do not need livein.
3850
7bfa4bc5
JW
38512015-03-06 Jonathan Wakely <jwakely@redhat.com>
3852
3853 * real.c (real_from_string): Fix typo in assertion.
3854
1dfc8b24
AV
38552015-03-06 Alex Velenko <alex.velenko@arm.com>
3856
3857 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
3858 the patch.
3859
ab038a80
JH
38602015-03-05 Jan Hubicka <hubicka@ucw.cz>
3861
3862 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
3863
34349d55
VM
38642015-03-05 Vladimir Makarov <vmakarov@redhat.com>
3865
3866 PR target/64342
3867 * lra-assigns.c (find_hard_regno_for): Rename to
3868 find_hard_regno_for_1. Add a new parameter.
3869 (find_hard_regno_for): New function using find_hard_regno_for_1.
3870
53c615a2
BE
38712015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
3872
3873 PR rtl-optimization/65067
3874 * expmed.c (store_bit_field, extract_bit_field): Reworked the
3875 strict volatile bitfield handling.
3876
9374ef82
ML
38772015-03-05 Martin Liska <mliska@suse.cz>
3878
3879 PR ipa/65318
3880 * ipa-icf.c (sem_variable::equals): Compare variables types.
3881
1dfc8b24 38822015-03-05 Richard Henderson <rth@redhat.com>
2755b64e 3883
578c2339 3884 PR target/65121
2755b64e
AV
3885 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
3886 correctly check weak symbol binding.
3887
a8eeec27
SE
38882015-03-05 Steve Ellcey <sellcey@imgtec.com>
3889
3890 PR middle-end/65315
3891 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
3892 needed alignment.
3893
bcda57c1
ML
38942015-03-05 Martin Liska <mliska@suse.cz>
3895
3896 * ipa-inline.c (inline_small_functions): Set default value to
3897 prevent warning during bootstrap.
3898 * tree.h: Add pragma guard that ignores false positives during
3899 bootstrap.
3900
b162e1e7
RB
39012015-03-05 Richard Biener <rguenther@suse.de>
3902
3903 PR tree-optimization/65310
3904 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
3905 Properly preserve alignment of the base of the access.
3906
58ed456c
RB
39072015-03-05 Richard Biener <rguenther@suse.de>
3908
3909 PR ipa/65270
3910 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
3911 Compare dependence info.
3912
b3406fa0
RB
39132015-03-05 Richard Biener <rguenther@suse.de>
3914
3915 PR middle-end/65233
3916 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
3917 tree-into-ssa.h.
3918 (walk_ssa_copies): Revert last chage. Instead do not walk
3919 SSA names registered for SSA update.
3920
fe75bd20
JH
39212015-03-03 Jan Hubicka <hubicka@ucw.cz>
3922
e5215d07 3923 PR ipa/65270
fe75bd20
JH
3924 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
3925 vtable references for their containing type.
3926 (sem_function::equals_wpa): Compare TYPE_RESTRICT
3927 and type attributes.
3928
d10a61fb
EB
39292015-03-04 Eric Botcazou <ebotcazou@adacore.com>
3930
3931 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
3932 before negating it.
3933 * stor-layout.c (finalize_record_size): Revert latest change.
3934
8ed4390c
AT
39352015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
3936
3937 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
3938
a6a543bf
JH
39392015-03-03 Jan Hubicka <hubicka@ucw.cz>
3940
3941 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
3942 for correct comdat handling.
3943 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
3944 Likewise.
3945 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
3946 (used_from_object_file_p_worker): Remove.
3947 (cgraph_node::only_called_directly_or_alised): Add
3948 used_from_object_file_p.
3949 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
3950 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
3951 can_remove_if_no_direct_calls_and_refs_p.
3952
b68686bf
NC
39532015-03-04 Nick Clifton <nickc@redhat.com>
3954
3955 * config/rl78/rl78.h (enum reg_class): Remove real registers from
3956 General register class.
3957 * config/rl78/rl78-real.md: Replace general register constraints
3958 with real+virtual register constraints.
3959
4b9f07eb
AK
39602015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3961
d10a61fb
EB
3962 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
3963 from checking for -mhtm option.
4b9f07eb 3964
670654ef
JH
39652015-03-03 Jan Hubicka <hubicka@ucw.cz>
3966
3967 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
3968 (struct ipa_sra_check_caller_data): Add has_thunk field.
3969 (ipa_sra_check_caller): Check for thunk.
3970 (ipa_sra_preliminary_function_checks): Give up on function with
3971 thunks.
3972 (ipa_early_sra): Use call_for_symbol_and_aliases.
3973
ac841cf7
KK
39742015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
3975
3976 PR target/65249
3977 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
3978 called for __stack_chk_guard symbol.
3979
f6115d44
DD
39802015-03-03 DJ Delorie <dj@redhat.com>
3981
3982 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
3983 inc/dec.
3984 (*addhi3_real): Likewise.
3985 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
3986 pattern to match incrementing memory.
3987 * config/rl78/predicates.md (rl78_1_2_operand): New.
3988 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
3989 it's the same and only mem.
3990 (rl78_alloc_physical_registers_op2): If there's effectively only
3991 one MEM, transcode it into HL.
3992 (rl78_far_p): Reject addresses that aren't legitimate.
3993
3a5c579a
EB
39942015-03-03 Eric Botcazou <ebotcazou@adacore.com>
3995
3996 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
3997 negating it.
3998
3999 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
4000
590e2636
MF
40012015-03-03 Max Filippov <jcmvbkbc@gmail.com>
4002
4003 Implement call0 ABI for xtensa
4004 * config/xtensa/constraints.md ("a" constraint): Include stack
4005 pointer in case of call0 ABI.
4006 ("q" constraint): Make empty in case of call0 ABI.
4007 ("D" constraint): Include stack pointer in case of call0 ABI.
4008 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
4009 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
4010 prototypes.
4011 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
4012 variable.
4013 (xtensa_regno_to_class): Make it a local variable in the
4014 function xtensa_regno_to_class.
4015 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
4016 macro, function prototype and implementation.
4017 (reg_nonleaf_alloc_order): Make it a local variable in the
4018 function order_regs_for_local_alloc.
4019 (xtensa_conditional_register_usage): New function.
4020 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
4021 (xtensa_valid_move): Allow direct moves to stack pointer
4022 register in call0 ABI.
4023 (xtensa_setup_frame_addresses): Only spill register windows in
4024 windowed ABI.
4025 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
4026 call0 ABI respectively.
4027 (xtensa_function_arg_1): Only mark a7 register for copying in
4028 windowed ABI.
4029 (xtensa_call_save_reg): New function.
4030 (compute_frame_size): Add space for callee saved register
4031 storage to the frame size in call0 ABI.
4032 (xtensa_expand_prologue): Generate code to set up stack frame
4033 and save callee-saved registers in call0 ABI.
4034 (xtensa_expand_epilogue): New function.
4035 (xtensa_set_return_address): New function.
4036 (xtensa_return_addr): Calculate return address in call0 ABI.
4037 (xtensa_builtin_saveregs): Only mark a7 register for copying and
4038 emit copying code in windowed ABI.
4039 (order_regs_for_local_alloc): Add preferred register allocation
4040 order for non-leaf function in call0 ABI.
4041 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
4042 (xtensa_asm_trampoline_template): Add trampoline generation for
4043 call0 ABI.
4044 (xtensa_trampoline_init): Add trampoline initialization for
4045 call0 ABI.
4046 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
4047 functions.
4048 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
4049 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
4050 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
4051 ABI call-used registers.
4052 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
4053 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
4054 call0 ABI.
4055 (REG_CLASS_CONTENTS): Include all registers into the preferred
4056 reload registers set, adjust the set in the
4057 xtensa_conditional_register_usage.
4058 (xtensa_regno_to_class): Drop variable declaration.
4059 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
4060 function.
4061 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
4062 respectively.
4063 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
4064 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
4065 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
4066 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
4067 location in call0 ABI.
4068 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
4069 stack adjustment size when handling exception.
4070 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
4071 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
4072 definitions.
4073 ("return" pattern): Generate ret.n/ret in call0 ABI.
4074 ("epilogue" pattern): Expand epilogue.
4075 ("nonlocal_goto" pattern): Use default in call0 ABI.
4076 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
4077 emit eh_set_a0_* depending on ABI.
4078 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
4079 ("eh_set_a0_call0", "blockage"): New patterns.
4080
6fb12821
ML
40812015-03-03 Martin Liska <mliska@suse.cz>
4082
4083 PR ipa/65287
4084 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
4085
a6a62c01
MM
40862015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
4087
4088 PR 65138/target
4089 * config/rs6000/rs6000-tables.opt: Regenerate table.
4090
0ab9eed6
RL
40912015-03-03 Renlin Li <renlin.li@arm.com>
4092
4093 * doc/md.texi (@item ^): Change ? into ^.
4094
a55bbe13
L
40952015-03-03 H.J. Lu <hongjiu.lu@intel.com>
4096
4097 * doc/tm.texi: Regenerated.
4098
2e612c47
MF
40992015-03-03 Max Filippov <jcmvbkbc@gmail.com>
4100
4101 * builtins.c (expand_builtin_return_addr): Add
4102 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
4103 surrounding #ifdef.
4104 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
4105 definition to 1.
4106 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
4107 Likewise.
4108 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
4109 undefined.
4110 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
4111 paragraph.
4112
ebde4f8e 41132015-03-03 Martin Jambor <mjambor@suse.cz>
10ac6596 4114 Eric Botcazou <ebotcazou@adacore.com>
ebde4f8e
MJ
4115
4116 * tree-sra.c (ipa_sra_check_caller_data): New type.
4117 (has_caller_p): Removed.
4118 (ipa_sra_check_caller): New function.
4119 (ipa_sra_preliminary_function_checks): Use it.
4120
21ce14d3
ML
41212015-03-03 Martin Liska <mliska@suse.cz>
4122
4123 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
4124 instead of if branch.
4125
3c031cbe
ML
41262015-03-03 Martin Liska <mliska@suse.cz>
4127
4128 PR ipa/65282
4129 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
4130
2f159d9f
JL
41312015-03-23 Jeff Law <law@redhat.com>
4132
4133 PR tree-optimization/65241
4134 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
4135 hash table if INSERT is true.
4136
5cb8b86e
GJL
41372015-03-03 Georg-Johann Lay <avr@gjlay.de>
4138
4139 PR target/65296
4140 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
4141
2b4293a3
GJL
41422015-03-03 Georg-Johann Lay <avr@gjlay.de>
4143
4144 PR target/64331
4145 * config/avr/avr.c (context.h, tree-pass.h): Include them.
4146 (avr_pass_data_recompute_notes): New static variable.
4147 (avr_pass_recompute_notes): New class.
4148 (avr_register_passes): New static function.
4149 (avr_option_override): Call it.
4150
38822076
GJL
41512015-03-03 Georg-Johann Lay <avr@gjlay.de>
4152
4153 Fix various problems with specs file generation.
4154
4155 PR target/65296
4156 * config.gcc (extra_gcc_objs) [avr]: Remove.
4157 * config/avr/driver-avr.c: Remove file.
4158 * config/avr/t-avr (driver-avr.o): Remove rule.
4159 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
4160 INCLUDES to build. Depend on TM_H.
4161 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
4162 build warnings. Fix non-matching types and non-existing %-codes.
4163 (tm.h): Include.
4164 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
4165 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
4166 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
4167 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
4168 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
4169 (LIBGCC_SPEC): Remove definitions.
4170
b4b78e2d
EB
41712015-03-03 Eric Botcazou <ebotcazou@adacore.com>
4172
4173 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
4174 to create a register in testing mode.
4175
17d1bf76 41762015-03-03 Martin Liska <mliska@suse.cz>
e5215d07 4177 Jan Hubicka <hubicka@ucw.cz>
17d1bf76
ML
4178
4179 PR ipa/65263
4180 * cgraph.c (cgraph_node::has_thunk_p): New function.
4181 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
4182 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
4183 (sem_function::merge): Assert is changed.
4184
bd31fe14
ML
41852015-03-03 Martin Liska <mliska@suse.cz>
4186 Martin Jambor <mjambor@suse.cz>
4187
4188 PR ipa/65087
4189 * ipa-icf.c (sem_item_optimizer::execute): Change function
4190 return value to boolean.
4191 (sem_item_optimizer::merge_classes): Likewise.
4192 (ipa_icf_driver): Return TODO_remove_functions in case there's
4193 a merge operation processed.
4194 * ipa-icf.h: Change function return value to boolean.
4195
0eef284e
MM
41962015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
4197
4198 PR 65138/target
4199 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
4200 processor type for 64-bit little endian PowerPC.
4201
4202 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
4203 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
4204 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
4205 printing built-in mask so it does not pass NULL pointers.
4206
4207 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
4208 -mcpu=powerpc64le.
4209
7096a068
SE
42102015-03-02 Steve Ellcey <sellcey@imgtec.com>
4211
4212 PR target/58158
4213 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
4214 !ISA_HAS_FP_CONDMOVE.
4215
29e27c0b
AH
42162015-03-02 Aldy Hernandez <aldyh@redhat.com>
4217
4218 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
4219 reload_completed.
4220
0ce03965
UD
42212015-03-02 Ulrich Drepper <drepper@gmail.com>
4222
4223 * doc/invoke.texi (Options for Code Generation Conventions):
4224 Fix URL of DSO paper.
0eef284e 4225
10ac6596 42262015-03-02 Jan Hubicka <hubicka@ucw.cz>
1af8bfe5
JH
4227
4228 PR ipa/65130
4229 * ipa-inline.c (check_callers): Looks for recursion.
4230 (inline_to_all_callers): Give up on uninlinable or recursive edges.
4231 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
4232 summary of inline clones.
4233 (do_estimate_growth_1): Fix recursion check.
4234
10ac6596 42352015-03-02 Jan Hubicka <hubicka@ucw.cz>
b91b562c
JH
4236
4237 PR ipa/64988
4238 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
4239 comdat groups.
4240
af5513e9
JH
42412015-03-02 Jan Hubicka <hubicka@ucw.cz>
4242 Aldy Hernandez <aldyh@redhat.com>
4243
4244 PR lto/65276
4245 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
4246 when checking TYPE_BINFO.
4247
d366a1a7
RB
42482015-03-02 Richard Biener <rguenther@suse.de>
4249
4250 PR ipa/65270
4251 * ipa-icf-gimple.c: Include builtins.h.
4252 (func_checker::compare_memory_operand): Compare base alignment.
4253
df265bd2
IE
42542015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
4255
4256 PR target/65184
4257 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
4258 are never passed by reference.
4259
321a5ceb
IE
42602015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
4261
4262 PR target/65183
4263 * tree-chkp.c (chkp_check_lower): Don't check against
4264 zero bounds for already instrumented functions.
4265 (chkp_check_upper): Likewise.
4266 (chkp_fini): Clean pass local data to avoid wrong reusage.
4267
c4c0f336 42682015-02-28 Martin Liska <mliska@suse.cz>
10ac6596 4269 Jan Hubicka <hubicka@ucw.cz>
c4c0f336
ML
4270
4271 * ipa-icf.c (sem_variable::equals): Improve debug output;
4272 get variable constructor.
4273 (sem_variable::parse): Do not filter out too early; give up on
4274 volatile and register vars.
4275 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
4276 variables.
4277 * ipa-icf.h (sem_variable::init): Do not set ctor.
4278 (sem_variable::ctor): Remove.
4279
34a108c8
AH
42802015-03-01 Aldy Hernandez <aldyh@redhat.com>
4281
4282 PR middle-end/65233
4283 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
4284
46305737
JH
42852015-02-28 Jan Hubicka <hubicka@ucw.cz>
4286
4287 * ipa-icf.c: Include stor-layout.h
4288 (sem_function::compare_cgraph_references): Rename to ...
4289 (sem_item::compare_cgraph_references): ... this one.
4290 (sem_variable::equals_wpa): New function
4291 (sem_variable::equals): Do not check stuff already verified by
4292 equals_wpa.
4293 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
4294 * ipa-icf.h (sem_item): Add compare_cgraph_references.
4295 (sem_function): Remove compare_cgraph_references.
4296 (sem_variable): Turns equals_wpa into non-inline.
4297
a8d93817
JH
42982015-02-28 Jan Hubicka <hubicka@ucw.cz>
4299
4300 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
4301 (sem_item::add_expr): New function.
4302 (sem_function::hash_stmt): Handle operands of most statements.
4303 (sem_variable::get_hash): Hash the actual constructor.
4304 * ipa-icf.h (sem_item): Add add_expr.
4305 (sem_function): Update prototype of hash_stmt
4306
b6cddc7f 43072015-02-28 Martin Liska <mliska@suse.cz>
10ac6596 4308 Jan Hubicka <hubicka@ucw.cz>
b6cddc7f
ML
4309
4310 PR ipa/65245
4311 * ipa-icf-gimple.c (func_checker::compare_function_decl):
4312 Remove.
4313 (func_checker::compare_variable_decl): Skip symtab vars.
4314 (func_checker::compare_cst_or_decl): Update.
4315 * ipa-icf.c (sem_function::parse): Do not consider aliases.
4316 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
4317 use correct symtab predicates.
4318 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
4319 (sem_variable::parse): Update comment.
4320 (sem_item_optimizer::build_graph): Consider ultimate aliases
4321 for references.
4322
4bd5f767
JH
43232015-02-28 Jan Hubicka <hubicka@ucw.cz>
4324
4325 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
4326 of OBJ_TYPE_REF.
4327
c7a06bc1
JH
43282015-02-28 Jan Hubicka <hubicka@ucw.cz>
4329
4330 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
4331 (sem_variable::merge) Likewise.
4332
eb140ba0 43332015-02-28 Jan Hubicka <hubicka@ucw.cz>
e8fb91a8 4334
eb140ba0
JH
4335 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
4336 target; also match flag_ipa_devirt.
4337
43382015-03-01 Martin Liska <mliska@suse.cz>
10ac6596 4339 Jan Hubicka <hubicka@ucw.cz>
e8fb91a8
ML
4340
4341 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
4342 Validate variable alignment.
4343 * ipa-icf.c (sem_function::equals_private): Be more precise
4344 about non-common function attributes.
4345 (sem_variable::equals): Likewise.
4346
bbcdfb93
JH
43472015-02-28 Jan Hubicka <hubicka@ucw.cz>
4348
4349 PR ipa/65237
4350 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
4351 across COMDAT group boundary.
4352
412049de
JH
43532015-02-28 Jan Hubicka <hubicka@ucw.cz>
4354
4355 PR ipa/65232
4356 * ipa-icf.c (clear_decl_rtl): New function.
4357 (sem_function::merge): Clear RTL before forming alias.
4358 (sem_variable::merge): Clear RTL before forming alias.
4359
b7aa4a3a
JH
43602015-02-28 Jan Hubicka <hubicka@ucw.cz>
4361
4362 PR ipa/65236
10ac6596 4363 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
b7aa4a3a 4364
116a394e
XP
43652015-02-28 Xingxing Pan <xxingpan@marvell.com>
4366
4367 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
4368 to neon_to_gp<q>.
4369
9bc163e3
VM
43702015-02-27 Vladimir Makarov <vmakarov@redhat.com>
4371
4372 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
4373 a typo in the description.
4374
fb8a0e40
VM
43752015-02-27 Vladimir Makarov <vmakarov@redhat.com>
4376
4377 PR target/64317
4378 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
4379 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
4380 * lra-constraints.c: Include "params.h".
4381 (EBB_PROBABILITY_CUTOFF): Use
4382 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
4383 (lra_inheritance): Use '<' instead of '<=' for
4384 EBB_PROBABILITY_CUTOFF.
4385 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
4386 Document change.
4387
b94097dc
ML
43882015-02-27 Martin Liska <mliska@suse.cz>
4389
4390 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
4391 vector length condition.
4392
8eba66e8
SL
43932015-02-27 Sandra Loosemore <sandra@codesourcery.com>
4394
4395 * doc/extend.texi (x86 transactional memory intrinsics):
4396 Reorganize discussion of _xbegin. Clarify that the return
4397 value is a bit mask. Expand example and move to end of section.
4398
395df65e
JJ
43992015-02-26 Jakub Jelinek <jakub@redhat.com>
4400 Aldy Hernandez <aldyh@redhat.com>
4401
4402 PR rtl-optimization/65220
4403 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
4404
892927b7
VM
44052015-02-27 Vladimir Makarov <vmakarov@redhat.com>
4406
4407 PR target/65032
4408 * lra-remat.c (update_scratch_ops): New.
4409 (do_remat): Call it.
4410 * lra.c (lra_register_new_scratch_op): New. Take code from ...
4411 (remove_scratches): ... here.
4412 * lra-int.h (lra_register_new_scratch_op): New prototype.
4413
7631f0e2
MP
44142015-02-27 Marek Polacek <polacek@redhat.com>
4415
4416 PR c/65040
4417 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
4418 -Wformat-signedness anymore.
4419
35bc11c3
AK
44202015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4421
4422 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
4423 function.
4424 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
4425
004f64e1
AK
44262015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4427
4428 * config/s390/s390.c (enum s390_builtin):
4429 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
4430 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
4431 (s390_init_builtins): Generate new builtin functions.
4432 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
4433 (s390_sfpc, s390_efpc): New pattern definitions.
4434
9b80b7bc
AK
44352015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4436
4437 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
4438 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
4439 (s390_builtin_decls): New array.
4440 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
4441 (s390_builtin_decl): New function.
4442 (TARGET_BUILTIN_DECL): Define macro.
4443
4ceae7e9
RB
44442015-02-27 Richard Biener <rguenther@suse.de>
4445
4446 PR middle-end/63175
4447 * builtins.c (get_object_alignment_2): Make sure to re-apply
4448 the ANDed mask after recursing to its operand gets us a new
4449 misalignment bit position.
4450
0a7246ee
JH
44512015-02-26 Jan Hubicka <hubicka@ucw.cz>
4452 Martin Liska <mliska@suse.cz>
4453
4454 PR bootstrap/65150
4455 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
4456 Use address_matters_p.
4457 (redirect_all_callers, set_addressable): New functions.
4458 (sem_function::merge): Reorganize and fix merging issues.
4459 (sem_variable::merge): Likewise.
4460 (sem_variable::compare_sections): Remove.
4461 * common.opt (fmerge-all-constants, fmerge-constants): Remove
4462 Optimization flag.
4463 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
4464 redirect them.
4465 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
4466 decl is used.
4467 (address_matters_1): New function.
4468 (symtab_node::address_matters_p): New function.
4469 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
4470 check for merged flag.
4471 * cgraph.h (address_matters_p): Declare.
4472 (symtab_node::address_taken_from_non_vtable_p): Remove.
4473 (symtab_node::address_can_be_compared_p): New method.
4474 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
4475 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
4476 Remove.
4477 (comdat_can_be_unshared_p_1) Use address_matters_p.
4478 (update_vtable_references): Fix formating.
4479 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
4480 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
4481 * cgraphclones.c: Preserve merged and icf_merged flags.
4482
6fb04b89
SL
44832015-02-26 Sandra Loosemore <sandra@codesourcery.com>
4484
4485 * doc/extend.texi (Function Attributes): Fix spelling and typos.
4486 (Label Attributes): Likewise.
4487 (Cilk Plus Builtins): Likewise.
4488 (ARC SIMD Built-in Functions): Likewise.
4489 (ARM C Language Extensions (ACLE)): Likewise.
4490 (PowerPC Built-in Functions): Likewise.
4491 (PowerPC Hardware Transactional Memory Built-in Functions):
4492 Likewise.
4493
5c2766c1
JJ
44942015-02-26 Jakub Jelinek <jakub@redhat.com>
4495
d288c0ab
JJ
4496 PR tree-optimization/65216
4497 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
4498 new stmt and new SSA_NAME for lhs whenever the arguments have
4499 changed and weren't just swapped. Fix comment typo.
4500
5c2766c1
JJ
4501 PR tree-optimization/65215
4502 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
4503 for PDP endian targets.
4504 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
4505 Fix up formatting issues.
4506 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
4507 size is smaller than the original, adjust MEM_REF offset by the
4508 difference of sizes. Use is_gimple_mem_ref_addr instead of
4509 is_gimple_min_invariant test to avoid adding address temporaries.
4510
5ebd0e61
ML
45112015-02-26 Martin Liska <mliska@suse.cz>
4512 Jan Hubicka <hubicka@ucw.cz>
4513
4514 PR ipa/64693
4515 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
4516 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
4517 (sem_item_optimizer::process_cong_reduction): Include division by
4518 sensitive references.
4519 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
4520 * ipa-ref.c (ipa_ref::address_matters_p): New function.
4521 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
4522
d713426e
GJL
45232015-02-26 Georg-Johann Lay <avr@gjlay.de>
4524
4525 PR target/65192
4526 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
4527 Remove.
4528 * config/avr/avr.c: Same.
4529 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
4530 Refuse any constant address not in 0..0xbf.
4531 * config/avr/avr.md (*mov<mode>, *movsf): Remove
4532 tiny_valid_direct_memory_access_range from insn conditions.
4533 (mov<mode>): Don't special-case expansion of avrtiny addresses.
4534
dac2637b
OE
45352015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
4536
4537 PR target/61142
4538 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
4539 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
4540 * config/sh/predicates.md (const_logical_operand): New predicate.
4541 * config/sh/sh.md: Add new peephole2 patterns.
4542
1cf06f1e
MP
45432015-02-26 Marek Polacek <polacek@redhat.com>
4544
4545 PR ipa/65008
4546 * ipa-inline.c (early_inliner): Recompute inline parameters.
4547
197bd30f
BS
45482015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4549
4550 PR target/65171
4551 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
4552 instructions with TImode operands are included in the analysis.
4553
a99c3d70
SP
45542015-02-26 Sebastian Pop <s.pop@samsung.com>
4555
4556 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
4557 of an EDGE_FSM_THREAD.
4558
b5f0a062
PB
45592015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
4560
4561 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
4562
b33da0c7
AH
45632015-02-25 Aldy Hernandez <aldyh@redhat.com>
4564
4565 PR debug/46102
4566 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
4567
ae762b31
SP
45682015-02-26 Sebastian Pop <s.pop@samsung.com>
4569
4570 PR tree-optimization/65048
4571 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
4572 (thread_through_all_blocks): Call valid_jump_thread_path.
4573 Remove invalid FSM jump-thread paths.
4574
db847fa8
JJ
45752015-02-26 Jakub Jelinek <jakub@redhat.com>
4576
4577 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
4578 (ipa_write_optimization_summaries): Likewise.
4579 * tree-streamer.h: Include data-streamer.h.
4580 (streamer_mode_table): Declare extern variable.
4581 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
4582 * lto-streamer-out.c (lto_output_init_mode_table,
4583 lto_write_mode_table): New functions.
4584 (produce_asm_for_decls): Call lto_write_mode_table when streaming
4585 offloading LTO.
4586 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
4587 (lto_create_simple_input_block): Add mode_table argument to the
4588 lto_input_block constructors.
4589 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
4590 Likewise.
4591 * data-streamer-in.c (string_for_index): Likewise.
4592 * ipa-inline-analysis.c (inline_read_section): Likewise.
4593 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
4594 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
4595 * lto-streamer-in.c (lto_read_body_or_constructor,
4596 lto_input_toplevel_asms): Likewise.
4597 (lto_input_mode_table): New function.
4598 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
4599 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
4600 Use bp_pack_machine_mode.
4601 * real.h (struct real_format): Add name field.
4602 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
4603 (class lto_input_block): Add mode_table member.
4604 (lto_input_block::lto_input_block): Add mode_table_ argument,
4605 initialize mode_table.
4606 (struct lto_file_decl_data): Add mode_table field.
4607 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
4608 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
4609 unpack_ts_decl_common_value_fields,
4610 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
4611 * tree-streamer.c (streamer_mode_table): New variable.
4612 * real.c (ieee_single_format, mips_single_format,
4613 motorola_single_format, spu_single_format, ieee_double_format,
4614 mips_double_format, motorola_double_format,
4615 ieee_extended_motorola_format, ieee_extended_intel_96_format,
4616 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
4617 ibm_extended_format, mips_extended_format, ieee_quad_format,
4618 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
4619 decimal_single_format, decimal_double_format, decimal_quad_format,
4620 ieee_half_format, arm_half_format, real_internal_format): Add name
4621 field.
4622 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
4623
b24b3262
YR
46242015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
4625
4626 PR target/65161
4627 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
4628 reordering for selective scheduling.
4629
afe006ad
TG
46302015-02-26 Terry Guo <terry.guo@arm.com>
4631
4632 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
4633 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
4634 (arm_arch_no_volatile_ce): Declare new global variable.
4635 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
4636 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
4637 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
4638 (TARGET_NO_VOLATILE_CE): New macro.
4639 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
4640 volatile memory access in IT block
4641
f5fd5773
KT
46422015-02-25 Kai Tietz <ktietz@redhat.com>
4643
4644 PR tree-optimization/61917
4645 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
4646 that reduc_def_stmt is null.
4647
b4f26d91
ML
46482015-02-25 Martin Liska <mliska@suse.cz>
4649
4650 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
4651 hard register variables.
4652
feeca9cc
KT
46532015-02-25 Kai Tietz <ktietz@redhat.com>
4654
4655 PR target/64212
4656 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
4657 (symtab::noninterposable_alias): Likewise.
4658
a2273e72
IE
46592015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
4660
4661 PR target/65167
4662 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
4663 bounds registers.
4664 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
4665
eeaccc07
AL
46662015-02-25 Alan Lawrence <alan.lawrence@arm.com>
4667
4668 PR target/64997
4669 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
4670 as split condition; force split via '#' in output pattern.
4671
3d9bab5a 46722015-02-25 Richard Biener <rguenther@suse.de>
10ac6596 4673 Kai Tietz <ktietz@redhat.com>
3d9bab5a
RB
4674
4675 PR tree-optimization/61917
4676 * tree-vect-loop.c (vectorizable_reduction): Allow
4677 vect_internal_def without reduction to exit graceful.
4678
94ba1bd5
GJL
46792015-02-25 Georg-Johann Lay <avr@gjlay.de>
4680
4681 PR target/65196
4682 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
4683 only with NONDEBUG_INSN_P.
4684
10fbfd1b
GJL
46852015-02-25 Georg-Johann Lay <avr@gjlay.de>
4686
4687 Use variadic macros with avr-log.c.
4688
4689 * config/avr/avr-protos.h (avr_vdump): New prototype.
4690 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
4691 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
4692 * config/avr/avr-log.c: Adjust comments.
4693 (avr_vdump): New function.
4694 (avr_vadump): Pass caller as 2nd argument instead of format string.
4695 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
4696 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
4697
59913123
JJ
46982015-02-25 Jakub Jelinek <jakub@redhat.com>
4699
4700 PR lto/64374
4701 * target.def (target_option_stream_in): New target hook.
4702 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
4703 targetm.target_option.post_stream_in if non-NULL.
4704 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
4705 * doc/tm.texi: Updated.
4706 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
4707 function.
4708 (TARGET_OPTION_POST_STREAM_IN): Redefine.
4709
48c55a0a
JL
47102015-02-24 Jeff Law <law@redhat.com>
4711
4712 PR target/65117
4713 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
4714 of operand 0 and operand 2.
4715 (zero_cost_loop_end, loop_end): Similarly.
10fbfd1b 4716
5c925255
AH
47172015-02-24 Aldy Hernandez <aldyh@redhat.com>
4718
4719 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
4720 CXX_MEM_STAT_INFO.
4721
28497f3b
DD
47222015-02-24 DJ Delorie <dj@redhat.com>
4723
10ac6596 4724 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
28497f3b
DD
4725 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
4726 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
4727 instead of hardcoding SImode.
4728
d7823208
BS
47292015-02-24 Bernd Schmidt <bernds@codesourcery.com>
4730
4731 * omp-low.c (create_omp_child_function): Tag entrypoint
4732 functions with a special attribute.
4733
f8571677
MH
47342015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
4735
4736 PR target/65058
4737 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
4738
51753c14
VM
47392015-02-24 Vladimir Makarov <vmakarov@redhat.com>
4740
4741 PR rtl-optimization/65123
4742 * lra-remat.c (operand_to_remat): Check hard regs in insn
4743 definition too.
4744
ff544f6b
NC
47452015-02-24 Nick Clifton <nickc@redhat.com>
4746
4747 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
4748 to the assembler.
4749
56a9f6bc
TS
47502015-02-24 Thomas Schwinge <thomas@codesourcery.com>
4751
4752 PR libgomp/64625
4753 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
4754 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
4755 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
4756 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
4757 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
4758 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
4759 (BUILT_IN_GOACC_PARALLEL): Specify as
4760 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
4761 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
4762 * builtin-types.def
4763 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
4764 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
4765 Remove function types.
4766 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
4767 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
4768 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
4769 New function types.
4770
dd07a06f
GJL
47712015-02-24 Georg-Johann Lay <avr@gjlay.de>
4772
4773 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
4774
09901e8a
JJ
47752015-02-24 Jakub Jelinek <jakub@redhat.com>
4776
4777 PR tree-optimization/65170
4778 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
4779 if val[1] < 0, clear also val[2] and return 3.
4780
2397d13c
AM
47812015-02-24 Alan Modra <amodra@gmail.com>
4782
d07ee5ba 4783 PR target/65172
2397d13c
AM
4784 * config/rs6000/rs6000.c (get_memref_parts): Only return true
4785 when *base is a reg. Handle nested plus addresses. Simplify
4786 pre_modify test.
4787
637ece3f
MF
47882015-02-22 Max Filippov <jcmvbkbc@gmail.com>
4789
4790 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
4791 use natural alignment when optimizing for size.
4792
708c7f7f
KK
47932015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
4794
4795 PR target/65153
4796 * config/sh/sh.md (movsicc_true+3): Remove peephole.
4797 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
4798 * config/sh/sh.c (replace_n_hard_rtx): Remove.
4799
025e5647
RS
48002015-02-23 Richard Sandiford <richard.sandiford@arm.com>
4801
4802 PR fortran/63427
4803 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
4804 too big for a wide_int. Implement missing wrapping operation.
4805
2c6a427f
OE
48062015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
4807
4808 PR target/65163
4809 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
4810 instead of const_int 4294901760.
4811
b0eb429d
GJL
48122015-02-23 Georg-Johann Lay <avr@gjlay.de>
4813
4814 * config/avr/t-avr: Fix typo in comment.
4815
0cf5e9df
RS
48162015-02-21 Richard Sandiford <richard.sandiford@arm.com>
4817
4818 * doc/rtl.texi (fma): Clarify documentation.
4819
220d905f
AH
48202015-02-20 Aldy Hernandez <aldyh@redhat.com>
4821
4822 PR debug/58123
4823 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
4824 over input_location.
4825
6d2b7199
BS
48262015-02-20 Bernd Schmidt <bernds@codesourcery.com>
4827
4828 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
4829 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
4830 restrict alignments to absolute_biggest_alignment.
4831 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
4832 Define.
4833 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
4834 * doc/tm.texi: Regenerate.
4835 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
4836
3c20c9bc
VM
48372015-02-20 Vladimir Makarov <vmakarov@redhat.com>
4838
4839 PR target/64172
10ac6596 4840 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
3c20c9bc 4841
31935398
RB
48422015-02-20 Richard Biener <rguenther@suse.de>
4843
4844 PR tree-optimization/65136
4845 * tree-ssa-propagate.c: Include cfgloop.h.
4846 (replace_phi_args_in): Avoid replacing loop latch edge PHI
4847 arguments with constants.
4848
8b048701
JJ
48492015-02-20 Jakub Jelinek <jakub@redhat.com>
4850 Martin Liska <mliska@suse.cz>
4851
4852 PR target/63892
4853 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
4854 don't try to create_thunk if stdarg_p. If
4855 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
4856 redirect_callers if possible.
4857 (sem_item_optimizer::execute): Call unregister_hooks here...
4858 (ipa_icf_driver): ... instead of here.
4859
498b13e2
KT
48602015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4861
4862 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
4863 Mark operand 0 as earlyclobber in 2nd alternative.
4864 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
4865 Write negated shift amount into QI lowpart operand 0 and use it
4866 in the shift step.
4867 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
4868
9816367c
BS
48692015-02-20 Bernd Schmidt <bernds@codesourcery.com>
4870
10ac6596
UB
4871 * cgraph.h (clone_function_name_1): Declare.
4872 * cgraphclones.c (clone_function_name_1): New function.
4873 (clone_function_name): Use it.
4874 * lto-partition.c: Include "stringpool.h".
4875 (must_not_rename, maybe_rewrite_identifier)
4876 (validize_symbol_for_target): New static functions.
4877 (privatize_symbol_name): Use must_not_rename.
4878 (promote_symbol): Call validize_symbol_for_target.
4879 (lto_promote_cross_file_statics): Likewise.
4880 (lto_promote_statics_nonwpa): Likewise.
9816367c 4881
6b9861b1
GJL
48822015-02-20 Georg-Johann Lay <avr@gjlay.de>
4883
4884 PR target/64452
4885 * config/avr/avr.md (pushhi_insn): New insn.
4886 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
4887
db3267c6
BS
48882015-02-20 Bernd Schmidt <bernds@codesourcery.com>
4889 Jakub Jelinek <jakub@redhat.com>
4890
4891 * tree-streamer.c (preload_common_nodes): Don't preload
4892 TI_VA_LIST* for offloading.
4893 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
4894 in_lto_p.
4895
283b768c
JDA
48962015-02-19 John David Anglin <danlgin@gcc.gnu.org>
4897
4898 * config/pa/pa.c (pa_emit_move_sequence): Always force
4899 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
4900 note on insn.
f258111a
JDA
4901
4902 * config/pa/pa.c (pa_reloc_rw_mask): New function.
4903 (TARGET_ASM_RELOC_RW_MASK): Define.
4904 (pa_cannot_force_const_mem): Revert previous change.
4905
81d43c6b
MJ
49062015-02-19 Martin Jambor <mjmabor@suse.cz>
4907 Jan Hubicka <hubicka@ucw.cz>
4908
4909 PR ipa/65028
4910 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
4911 across jump functions.
4912
dcdeca7a
UB
49132015-02-19 Uros Bizjak <ubizjak@gmail.com>
4914
4915 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
4916
33e1f2e6
SL
49172015-02-19 Sandra Loosemore <sandra@codesourcery.com>
4918
dcdeca7a 4919 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
33e1f2e6 4920
0ff5fade
RH
49212015-02-19 Richard Henderson <rth@redhat.com>
4922
4923 PR middle-end/65074
4924 * varasm.c (default_binds_local_p_2): Don't test node->definition;
4925 test DECL_EXTERNAL independent of symtab_node.
4926
176ca71c
JJ
49272015-02-19 Jakub Jelinek <jakub@redhat.com>
4928
4929 PR lto/65012
4930 * varpool.c (varpool_node::get_constructor): Return early
4931 if this->lto_file_data is NULL.
4932
696d5fa1
MK
49332015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4934
dcdeca7a
UB
4935 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
4936 (rank_for_schedule_debug): Update.
4937 (ready_sort): Make static. Move sorting logic to ...
4938 (ready_sort_debug, ready_sort_real): New static functions.
4939 (schedule_block): Sort both debug insns and real insns in preparation
4940 for ready list trimming. Improve debug output.
4941 * sched-int.h (ready_sort): Remove global declaration.
696d5fa1 4942
1216ea72
TS
49432015-02-18 Trevor Saunders <tsaunders@mozilla.com>
4944
4945 * ipa-icf.c (sem_function::equals_private): Adjust.
4946 (sem_function::bb_dict_test): Take a vec<int> * instead of
4947 auto_vec<int>.
4948 * ipa-icf.h (bb_dict_test): Likewise.
4949
3b445b24
JJ
49502015-02-18 Jakub Jelinek <jakub@redhat.com>
4951
4952 PR gcov-profile/64634
4953 * tree-eh.c (frob_into_branch_around): Fix up typos
4954 in function comment.
4955 (lower_catch): Put eh_seq resulting from EH lowering of
76fabbf4 4956 the cleanup sequence after the cleanup rather than before it.
3b445b24 4957
98ce9490
TV
49582015-02-18 Tom de Vries <tom@codesourcery.com>
4959
4960 * common.opt (fstdarg-opt): New option.
4961 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
4962 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
4963 (@item -fstdarg-opt): New item.
4964
b0ddb385
L
49652015-02-18 H.J. Lu <hongjiu.lu@intel.com>
4966
4967 PR target/65064
4968 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
4969 for common symbols.
4970
2d64d38c
JJ
49712015-02-18 Jakub Jelinek <jakub@redhat.com>
4972
4973 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
4974 insn-modes.h.
4975 (ALL_HOST_OBJS): Add mkoffload.o.
4976 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
4977
88b16508
JH
49782015-02-18 Jan Hubicka <hubicka@ucw.cz>
4979
4980 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
4981 (compare_virtual_tables): Be smarter about skipping typeinfos;
4982 do sane output on virtual table table mismatch.
4983 (warn_odr): Be ready for forward declarations of enums;
4984 output sane info on base mismatch and virtual table mismatch.
4985 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
4986 when only one type is polymorphic.
4987 (get_odr_type): Fix hashtable corruption.
4988 (dump_odr_type): Dump mangled names.
4989
8039a35d
RB
49902015-02-18 Richard Biener <rguenther@suse.de>
4991
4992 PR tree-optimization/65063
4993 * tree-predcom.c (determine_unroll_factor): Return 1 if we
4994 have replaced looparound PHIs.
4995
0c28944f
ML
49962015-02-18 Martin Liska <mliska@suse.cz>
4997
4998 * lto-streamer.c (lto_streamer_init): Encapsulate
4999 streamer_check_handled_ts_structures with checking macro.
5000
4ab26ee0
JJ
50012015-02-18 Jakub Jelinek <jakub@redhat.com>
5002
5003 PR ipa/65087
5004 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
5005 section if !implicit_section.
5006 (cgraph_node::create_version_clone_with_body): Likewise.
5007 * trans-mem.c (ipa_tm_create_version): Likewise.
5008
6f423f4c
RB
50092015-02-18 Richard Biener <rguenther@suse.de>
5010
5011 PR tree-optimization/62217
5012 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
5013 into BIVs.
5014
c7400e2f
MP
50152015-02-18 Marek Polacek <polacek@redhat.com>
5016
5017 PR sanitizer/65081
5018 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
5019 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
5020 is in range [-16K, -1]. Don't issue run-time error if
5021 (ptr > ptr + offset).
5022
8747dd6e
TS
50232015-02-18 Thomas Schwinge <thomas@codesourcery.com>
5024
d7705288
TS
5025 * doc/install.texi (nvptx-*-none): New section.
5026 * doc/invoke.texi (Nvidia PTX Options): Likewise.
5027 * config/nvptx/nvptx.opt: Update.
5028
865fc32a
TS
5029 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
5030 (access_check): New functions, copied from
5031 config/i386/intelmic-mkoffload.c.
5032 (main): For non-installed testing, look in all COMPILER_PATHs for
5033 GCC_INSTALL_NAME.
5034
8747dd6e
TS
5035 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
5036
e6f7f0e9
AP
50372015-02-18 Andrew Pinski <apinski@cavium.com>
5038 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5039
5040 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
5041 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
5042
1ede94c5
JH
50432015-02-17 Jan Hubicka <hubicka@ucw.cz>
5044
5045 * ipa-visibility.c (function_and_variable_visibility): Only
5046 check locality if node is not already local.
5047 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
5048 call_for_symbol_and_aliases instead of
5049 call_for_symbol_thunks_and_aliases.
5050 (ipa_inline): Likewise.
5051 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
5052 first walk aliases.
5053 * ipa.c (symbol_table::remove_unreachable_nodes): Use
5054 call_for_symbol_and_aliases.
5055 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
5056 (ipa_propagate_frequency_1): Use it; use opt_for_fn
5057 (ipa_propagate_frequency): Update.
5058 (ipa_profile): Add opt_for_fn gueards.
5059
f05911fb
OE
50602015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
5061
5062 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
5063 * doc/invoke.texi (SH options): Document it.
5064 * config/sh/sh.c (sh_insn_length_adjustment): Check
5065 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
5066
3c99176a
L
50672015-02-17 H.J. Lu <hongjiu.lu@intel.com>
5068
5069 * common.opt (fipa-cp-alignment): New.
5070 * ipa-cp.c (ipcp_store_alignment_results): Check
5071 flag_ipa_cp_alignment.
5072 * opts.c (default_options_table): Enable -fipa-cp-alignment for
5073 -O2.
5074 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
5075 * doc/invoke.texi: Document -fipa-cp-alignment.
5076
d420206e
OE
50772015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
5078
5079 PR target/64793
5080 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
5081 to nil. Adjust comments.
5082
1379ce8f
JH
50832015-02-17 Jan Hubicka <hubicka@ucw.cz>
5084
5085 * ipa-visibility.c (function_and_variable_visibility): Only
5086 check locality if node is not already local.
5087 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
5088 call_for_symbol_and_aliases instead of
5089 call_for_symbol_thunks_and_aliases.
5090 (ipa_inline): Likewise.
5091 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
5092 first walk aliases.
5093 * ipa.c (symbol_table::remove_unreachable_nodes): Use
5094 call_for_symbol_and_aliases.
5095 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
5096 (ipa_propagate_frequency_1): Use it; use opt_for_fn
5097 (ipa_propagate_frequency): Update.
5098 (ipa_profile): Add opt_for_fn guards.
5099
6f3c1d38
TS
51002015-02-17 Thomas Schwinge <thomas@codesourcery.com>
5101
5102 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
5103 skipping of "strange" tokens.
5104
1d93fa5c
JL
51052015-02-17 Jeff Law <law@redhat.com>
5106
5107 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
5108 obsolete comment.
5109
61a17dca
JG
51102015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
5111
5112 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
5113 as forcing a HARD_DEP between instructions, thereby
5114 disallowing rewriting to break dependencies.
5115
87be7f0c
JH
51162015-02-16 Jan Hubicka <hubicka@ucw.cz>
5117
5118 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
5119 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
5120 variables in boundary that have no inlitalizer encoded and are
5121 not aliases.
5122 * varasm.c (default_binds_local_p_2): External definitions do not
5123 count as definitions here.
5124
215f8d9e
JL
51252015-02-16 Jeff Law <law@redhat.com>
5126
5127 PR tree-optimization/64823
5128 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
5129 statements.
5130 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
5131 threading through blocks with PHIs, but no statements.
5132 (thread_through_normal_block): Distinguish between blocks where
5133 we did not process all the statements and blocks with no statements.
5134
ed89033d
JJ
51352015-02-16 Jakub Jelinek <jakub@redhat.com>
5136 James Greenhalgh <james.greenhalgh@arm.com>
5137
5138 PR ipa/64963
5139 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
5140 section if not linkonce. Fix up formatting.
5141 (cgraph_node::create_version_clone_with_body): Copy section.
5142 * trans-mem.c (ipa_tm_create_version): Likewise.
5143
7b909872
RB
51442015-02-16 Richard Biener <rguenther@suse.de>
5145
5146 PR tree-optimization/65077
5147 * tree-ssa-structalias.c (get_constraint_for_1): Handle
5148 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
5149 (find_func_aliases): Allow float values to carry pointers again.
5150
4fb1c8f9
JG
51512015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5152
5153 * doc/install.texi (Specific): Reorder targets list to put
5154 aarch64 in alphabetical order. Add a link to aarch64*-*-*
5155 from the top menu.
5156
403697ab
DE
51572015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
5158 David Edelsohn <dje.gcc@gmail.com>
5159
5160 PR target/65058
5161 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
5162 mapping class to external variable or function reference.
5163 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
5164 mapping class.
5165
51662015-02-16 David Eelsohn <dje.gcc@gmail.com>
5167
5168 PR target/53348
5169 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
5170 ASM_WEAKEN_DECL if defined.
5171
2d4df883
RB
51722015-02-16 Richard Biener <rguenther@suse.de>
5173
5174 PR lto/65015
5175 * varasm.c (default_file_start): For LTO produced units
5176 emit <artificial> as file directive.
5177
a933d47f
RB
51782015-02-16 Richard Biener <rguenther@suse.de>
5179
5180 PR tree-optimization/63593
5181 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
5182 stmts and releasing SSA names until...
5183 (execute_pred_commoning): ... after processing all chains.
5184
62991c35
JH
51852015-02-16 Jan Hubicka <hubicka@ucw.cz>
5186
5187 PR ipa/65059
5188 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
5189 external functions.
5190
e6f3f526
SL
51912015-02-15 Sandra Loosemore <sandra@codesourcery.com>
5192
5193 * doc/bugreport.texi: Adjust section titles throughout the file
5194 to use "Title Case".
5195 * doc/extend.texi: Likewise.
5196 * doc/gcov.texi: Likewise.
5197 * doc/implement-c.texi: Likewise.
5198 * doc/implement-cxx.texi: Likewise.
5199 * doc/invoke.texi: Likewise.
5200 * doc/objc.texi: Likewise.
5201 * doc/standards.texi: Likewise.
5202 * doc/trouble.texi: Likewise.
5203
190bbd0b
JH
52042015-02-15 Jan Hubicka <hubicka@ucw.cz>
5205
5206 * cgraph.h (symtab_node::has_aliases_p): Simplify.
5207 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
5208 * tree.c (lookup_binfo_at_offset): Make static.
5209 (get_binfo_at_offset): Do not shadow offset; add explanatory
5210 comment.
5211
feb675e4
JDA
52122015-02-15 John David Anglin <danglin@gcc.gnu.org>
5213
5214 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
5215 for all floading point loads and stores except those using a register
5216 index address.
5217 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
5218 to a register.
5219
cf3648f2
JH
52202015-02-14 Jan Hubicka <hubicka@ucw.cz>
5221
5222 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
5223 (do_estimate_growth_1): Record if any uninlinable edge was seen.
5224 (estimate_growth): Handle uninlinable edges correctly.
5225 (check_callers): New.
5226 (growth_likely_positive): Handle aliases correctly.
5227
31de7606
JH
52282015-02-14 Jan Hubicka <hubicka@ucw.cz>
5229
5230 * ipa-chkp.c: Use iterate_direct_aliases.
5231 * symtab.c (resolution_used_from_other_file_p): Move inline.
5232 (symtab_node::create_reference): Fix formating.
5233 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
5234 (symtab_node::iterate_reference): Move inline.
5235 (symtab_node::iterate_referring): Move inline.
5236 (symtab_node::iterate_direct_aliases): Move inline.
5237 (symtab_node::used_from_object_file_p_worker): Inline into ...
5238 (symtab_node::used_from_object_file_p): ... this one; move inline.
5239 (symtab_node::call_for_symbol_and_aliases): Move inline;
5240 use iterate_direct_aliases.
5241 (symtab_node::call_for_symbol_and_aliases_1): New method.
5242 (cgraph_node::call_for_symbol_and_aliases): Move inline;
5243 use iterate_direct_aliases.
5244 (cgraph_node::call_for_symbol_and_aliases_1): New method.
5245 (varpool_node::call_for_node_and_aliases): Rename to ...
5246 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
5247 use iterate_direct_aliases.
5248 (varpool_node::call_for_symbol_and_aliases_1): New method.
5249 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
5250 (ipa_discover_readonly_nonaddressable_var): Update.
5251 * ipa-devirt.c: Fix formating.
5252 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
5253 Move inline.
5254 (cgraph_node::call_for_symbol_and_aliases): Move inline.
5255 (cgraph_node::call_for_symbol_and_aliases_1): New function..
5256 * cgraph.h (used_from_object_file_p_worker): Remove.
5257 (resolution_used_from_other_file_p): Move inline.
5258 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
5259 (symtab_node::iterate_reference): Move inline.
5260 (symtab_node::iterate_referring): Move inline.
5261 (symtab_node::iterate_direct_aliases): Move inline.
5262 (symtab_node::used_from_object_file_p_worker): Inline into ...
5263 (symtab_node::used_from_object_file_p): Move inline.
5264 * tree-emutls.c (ipa_lower_emutls): Update.
5265 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
5266 (varpool_node::call_for_node_and_aliases): Remove.
5267
952e216e
JJ
52682015-02-14 Jakub Jelinek <jakub@redhat.com>
5269
5270 PR tree-optimization/62209
5271 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
5272 op == range->exp, insert seq and gimplified code after labels
5273 instead of after the phi.
5274
c7a28c1b
JL
52752015-02-13 Jeff Law <law@redhat.com>
5276
5277 PR bootstrap/65060
5278 Revert my change for tree-optimization/64823.
5279
f7a0790f
JJ
52802015-02-13 Jakub Jelinek <jakub@redhat.com>
5281
5282 PR tree-optimization/65053
5283 * tree-ssa-phiopt.c (value_replacement): When moving assign before
5284 cond, either reset VR on lhs or set it to phi result VR.
5285
be144838
JL
52862015-02-13 Jeff Law <law@redhat.com>
5287
8f895cf1
JL
5288 PR tree-optimization/64823
5289 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
5290 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
5291 threading through blocks with PHIs, but no statements.
5292 (thread_through_normal_block): Distinguish between blocks where
5293 we did not process all the statements and blocks with no statements.
5294
be144838
JL
5295 PR rtl-optimization/47477
5296 * match.pd (convert (plus/minus (convert @0) (convert @1): New
5297 simplifier to narrow arithmetic.
5298
d0502276
JH
52992015-02-13 Jan Hubicka <hubicka@ucw.cz>
5300
5301 PR ipa/65028
5302 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
5303 polymorphic call info when type is not known to be preserved.
5304
4fd94d1e
MJ
53052015-02-13 Maritn Jambor <mjambor@suse.cz>
5306
5307 PR ipa/65028
5308 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
5309 (inline_call): Use it.
dcdeca7a 5310
1f261e64
TS
53112015-02-13 Thomas Schwinge <thomas@codesourcery.com>
5312
5313 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
5314 GOMP_DEVICE_NVIDIA_PTX.
5315
730f474b
JJ
53162015-02-13 Jakub Jelinek <jakub@redhat.com>
5317
5318 PR ipa/65034
5319 * stmt.c (emit_case_nodes): Use void_type_node instead of
5320 NULL_TREE as LABEL_DECL type.
5321
98056c54
JDA
53222015-02-13 John David Anglin <danglin@gcc.gnu.org>
5323
5324 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
5325 constraints.
5326 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
5327 symbolic references to data to be forced to constant memory on the
5328 SOM target.
5329
fb0653ab
IE
53302015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
5331
5332 PR tree-optimization/65002
5333 * tree-cfg.c (pass_data_fixup_cfg): Don't update
5334 SSA on start.
5335 * tree-sra.c (some_callers_have_no_vuse_p): New.
5336 (ipa_early_sra): Reject functions whose callers
5337 assume function is read only.
5338
3c780bb2
RB
53392015-02-13 Richard Biener <rguenther@suse.de>
5340
5341 PR lto/65015
5342 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
5343 for LTO produced CUs.
5344
fc06280e
BC
53452015-02-13 Bin Cheng <bin.cheng@arm.com>
5346
5347 PR tree-optimization/64705
5348 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
5349 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
5350 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
5351 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
5352 expand_simple_operations.
5353
53542015-02-13 H.J. Lu <hongjiu.lu@intel.com>
6a1e352e
L
5355 Richard Henderson <rth@redhat.com>
5356
5357 PR rtl/32219
5358 * cgraphunit.c (cgraph_node::finalize_function): Set definition
5359 before notice_global_symbol.
5360 (varpool_node::finalize_decl): Likewise.
5361 * varasm.c (default_binds_local_p_2): Rename from
5362 default_binds_local_p_1, add weak_dominate argument. Use direct
5363 returns instead of assigning to local variable. Unify varpool and
5364 cgraph paths via symtab_node. Reject undef weak variables before
5365 testing visibility. Reorder tests for simplicity.
5366 (default_binds_local_p): Use default_binds_local_p_2.
5367 (default_binds_local_p_1): Likewise.
5368 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
5369 via symtab_node.
5370 (default_elf_asm_output_external): Emit visibility when specified.
5371
5f2fa78a
AM
53722015-02-13 Alan Modra <amodra@gmail.com>
5373
5374 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
5375 code setting up r11 for out-of-line fp restore.
5376
fc06280e 53772015-02-13 Eric Botcazou <ebotcazou@adacore.com>
dfc61f1f
EB
5378
5379 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
5380 (muser-mode): Likewise.
5381
8ae6ac51
AM
53822015-02-13 Alan Modra <amodra@gmail.com>
5383
5384 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
5385 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
5386
81018dcf
DH
53872015-02-12 David Howells <dhowells@redhat.com>
5388
5389 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
5390 warning.
5391 * tree-ssa-uninit.c (dump_predicates): Likewise.
5392 * opts.c (print_filtered_help): Likewise.
5393
2cea0398
JJ
53942015-02-12 Jakub Jelinek <jakub@redhat.com>
5395
2f13a42d
JJ
5396 * dwarf2out.c (output_die): Use "%s", name instead of name to
5397 avoid -Wformat-security warning.
5398
2cea0398
JJ
5399 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
5400 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
5401 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
5402 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
5403
f522930c
JM
54042015-02-12 Jason Merrill <jason@redhat.com>
5405
5406 * common.opt (-flifetime-dse): New.
5407
01f834e3
JJ
54082015-02-12 Jakub Jelinek <jakub@redhat.com>
5409
ed5a5b38
JJ
5410 PR sanitizer/65019
5411 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
5412
01f834e3
JJ
5413 PR tree-optimization/65014
5414 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
5415 use original second operand of arg0 or arg1 instead of
5416 that adjusted by STRIP_NOPS.
5417
3f9b5ffb
JL
54182015-02-11 Jeff Law <law@redhat.com>
5419
5420 PR target/63347
5421 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
5422 that needs to be queued, just queue it for a single cycle.
5423
d3f2e41e
JH
54242015-02-11 Jan Hubicka <hubicka@ucw.cz>
5425
5426 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
5427 bodies of thunks; comment on why.
5428 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
5429 symbols are extern.
5430
5b1441be
RH
54312015-02-11 Richard Henderson <rth@redhat.com>
5432
5433 PR sanitize/65000
5434 * tree-eh.c (mark_reachable_handlers): Mark source and destination
5435 regions of __builtin_eh_copy_values.
5436
3292dd40
JJ
54372015-02-11 Jakub Jelinek <jakub@redhat.com>
5438
5439 PR middle-end/65003
5440 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
5441 ultimate alias is MEM with SYMBOL_REF satisfying
5442 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
5443 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
5444
e6f229ca
TS
54452015-02-11 Thomas Schwinge <thomas@codesourcery.com>
5446
ce888a99
TS
5447 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
5448 "diagnostic-core.h".
5449 (main): Initialize progname, and call diagnostic_initialize.
5450
9584e638
TS
5451 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
5452 instead of __OPENMP_TARGET__.
5453
e6f229ca
TS
5454 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
5455 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
5456 hard-coding PTX_ID.
5457
a8d790df
L
54582015-02-11 H.J. Lu <hongjiu.lu@intel.com>
5459
5460 * doc/sourcebuild.texi (pie_enabled): Document.
5461
c43ade80
ML
54622015-02-11 Martin Liska <mliska@suse.cz>
5463
5464 PR ipa/64813
5465 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
5466 a return value for call to a function that is noreturn.
5467
ece70d33
RB
54682015-02-11 Richard Biener <rguenther@suse.de>
5469
5470 PR lto/65015
5471 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
5472 and -fresolution.
5473
9c4f25cc
AP
54742015-02-11 Andrew Pinski <apinski@cavium.com>
5475
5476 PR target/64893
5477 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
5478 Change the first argument type to size_type_node and add another
5479 size_type_node.
5480 (aarch64_simd_expand_builtin): Handle the new argument to
5481 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
5482 print an out when the first two arguments are not
5483 nonzero integer constants.
5484 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
5485 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
5486
386f7cae
JJ
54872015-02-11 Jakub Jelinek <jakub@redhat.com>
5488
5489 PR target/61925
5490 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
5491 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
5492 (ix86_set_current_function): Rewritten.
5493 (ix86_add_new_builtins): Temporarily clear current_target_pragma
5494 when creating builtin fndecls.
5495
4bd019b8
JH
54962015-02-10 Jan Hubicka <hubicka@ucw.cz>
5497
5498 PR ipa/65005
5499 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
5500 function.
5501 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
5502 have no comdat group.
5503 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
5504 (lto_output_varpool_node): Always output alias info.
5505 (output_refs): Output refs of boundary aliases, too.
5506 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
5507 (output_symtab): Output call eges in thunks in boundary.
5508 (get_alias_symbol): Remove.
5509 (input_node, input_varpool_node): Do not special case weakrefs.
5510 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
5511 alias and thunks targets in the boundary; do not take removed symbols
5512 from their comdat groups.
5513 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
5514 (cgraph_node::global_info): Remove.
5515 (cgraph_node::rtl_info): Look through aliases and thunks.
5516 * cgrpah.h (global_info): Remove.
5517 (non_local_p): Remove.
5518
6dc6e7d0
DW
55192015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
5520 Sandra Loosemore <sandra@codesourcery.com>
5521
5522 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
5523 to inline asm. List dialects in proper order.
5524
78f76f2f
DW
55252015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
5526 Sandra Loosemore <sandra@codesourcery.com>
5527
5528 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
5529
c09d6901
DW
55302015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
5531
5532 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
dcdeca7a 5533 modified) reference to Solaris.
c09d6901 5534
f9911556
SL
55352015-02-10 Sandra Loosemore <sandra@codesourcery.com>
5536
5537 * doc/extend.texi (Extended Asm): Fix typos.
5538
c8aa1929
JJ
55392015-02-10 Jakub Jelinek <jakub@redhat.com>
5540
5541 PR sanitizer/65004
5542 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
5543
2fdc0399
OE
55442015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
5545
5546 PR target/64661
5547 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
5548 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
5549 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
5550 * config/sh/constraints.md (Ara, Add): New constraints.
5551 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
5552 predicates.
5553 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
5554 atomic_mem_operand_0. Don't use force_reg on the memory address.
5555 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
5556 Sra constraint. Convert to insn_and_split. Add workaround for
5557 PR 64974.
5558 (atomic_compare_and_swap<mode>_hard): Copy to
5559 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
5560 Use atomic_mem_operand_0 predicate.
5561 (atomic_compare_and_swap<mode>_soft_gusa,
5562 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
5563 AraAdd constraints.
5564 (atomic_compare_and_swap<mode>_soft_tcb,
5565 atomic_compare_and_swap<mode>_soft_imask,
5566 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
5567 atomic_mem_operand_0 predicate and SraSdd constraints.
5568 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
5569 constraint.
5570 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
5571 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
5572 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
5573 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
5574 force_reg on the memory address.
5575 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
5576 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
5577 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
5578 atomic_mem_operand_1 predicate and Sra constraint.
5579 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
5580 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
5581 Use atomic_mem_operand_1 predicate.
5582 (atomic_<fetchop_name><mode>_hard): Copy to
5583 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
5584 Use atomic_mem_operand_1 predicate.
5585 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
5586 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
5587 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
5588 insn_and_split. Use atomic_mem_operand_1 predicate.
5589 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
5590 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
5591 Use atomic_mem_operand_1 predicate.
5592 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
5593 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
5594 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
5595 in generated insn with original mem operand before emitting the insn.
5596 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
5597 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
5598 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
5599 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
5600 Use atomic_mem_operand_1 predicate and AraAdd constraints.
5601 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
5602 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
5603 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
5604 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
5605 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
5606 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
5607 atomic_not_fetch<mode>_soft_tcb,
5608 atomic_<fetchop_name>_fetch<mode>_soft_imask,
5609 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
5610 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
5611 Use atomic_mem_operand_1 predicate and SraSdd constraints.
5612
afa20874
UB
56132015-02-10 Uros Bizjak <ubizjak@gmail.com>
5614
5615 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
5616 and 3 earlyclobber operands.
5617
082908e3
JH
56182015-02-10 Jan Hubicka <hubicka@ucw.cz>
5619
5620 * common.opt (fstack-reuse): Mark as optimization.
5621
d90cae08
JH
56222015-02-10 Jan Hubicka <hubicka@ucw.cz>
5623
5624 PR ipa/64982
afa20874 5625 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
d90cae08 5626
11f3ac49
TS
56272015-02-10 Trevor Saunders <tsaunders@mozilla.com>
5628
5629 PR tree-optimization/64326
5630 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
5631
e4c2ac36
RE
56322015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
5633
5634 PR gcov-profile/61889
5635 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
5636
703c9ccd
RB
56372015-02-10 Richard Biener <rguenther@suse.de>
5638
5639 PR tree-optimization/64995
5640 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
5641 value we use is final.
5642 (visit_reference_op_store): Always valueize op.
5643 (visit_use): Properly valueize vuses.
5644
696814ed
RB
56452015-02-10 Richard Biener <rguenther@suse.de>
5646
5647 PR tree-optimization/64909
5648 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
5649 pass a scalar-stmt count estimate to the cost model.
5650 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
5651
644a4761
AM
56522015-02-10 Alexander Monakov <amonakov@ispras.ru>
5653
5654 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
5655 enabled by default together with var-tracking.
5656
7299e9f1
NC
56572015-02-10 Nick Clifton <nickc@redhat.com>
5658
5659 * config/rl78/rl78.c: Remove DIV attribute code accidentally
5660 included in previous rl78 commit.
5661
bab4f4e3
RB
56622015-02-10 Richard Biener <rguenther@suse.de>
5663
5664 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
5665 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
5666 return the bitpack.
5667
37050045
TS
56682015-02-09 Trevor Saunders <tsaunders@mozilla.com>
5669
5670 PR gcov-profile/61889
5671 * config.in: regenerate.
5672 * configure.in: Likewise.
5673 * configure.ac: Check for ftw.h.
5674 * gcov-tool.c: Check for ftw.h before using nftw.
5675
a9e083cc
TS
56762015-02-09 Trevor Saunders <tsaunders@mozilla.com>
5677
5678 PR lto/64076
5679 * ipa-visibility.c (update_visibility_by_resolution_info): Only
5680 assert when not in lto mode.
5681
10ac6596 56822015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
32721b2c
ZZ
5683
5684 * ira-color.c (setup_left_conflict_sizes_p): Simplify
5685 initialization/assignment of conflict_size.
5686
94a2f772
JH
56872015-02-09 Jan Hubicka <hubicka@ucw.cz>
5688
5689 PR ipa/64978
5690 * ipa-cp.c (gather_caller_stats): Skip thunks.
5691 (propagate_constants_topo): Skip aliases.
5692
d808ecdd
KK
56932015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
5694
5695 PR target/64761
5696 * config/sh/sh.c (sh_option_override): Don't change
5697 -freorder-blocks-and-partition to -freorder-blocks even when
5698 unwinding is enabled.
5699 (sh_can_follow_jump): Return false if the followee jump is
5700 a crossing jump when -freorder-blocks-and-partition is specified.
5701 * config/sh/sh.md (*jump_compact_crossing): New insn.
5702
cf6186e9
JR
57032015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
5704 Kaz Kojima <kkojima@gcc.gnu.org>
5705
5706 PR target/64761
5707 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
5708 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
5709 (sh_can_redirect_branch): Rename to ...
5710 (sh_can_follow_jump): ... this. Constify argument types.
5711 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
5712 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
5713 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
5714 * doc/tm.texi: Regenerate.
5715
d51151b2
JJ
57162015-02-09 Jakub Jelinek <jakub@redhat.com>
5717
5718 PR sanitizer/64981
5719 * builtins.c (expand_builtin): Call targetm.expand_builtin
5720 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
5721
62484417
JH
57222015-02-08 Jan Hubicka <hubicka@ucw.cz>
5723
5724 PR ipa/61548
5725 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
5726
106b5466
JH
57272015-02-08 Jan Hubicka <hubicka@ucw.cz>
5728
7299e9f1 5729 PR ipa/63566
106b5466
JH
5730 * ipa-icf.c (set_local): New function.
5731 (sem_function::merge): Use it.
5732
7d8adcba
JH
57332015-02-08 Jan Hubicka <hubicka@ucw.cz>
5734
5735 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
5736 (add_type_duplicate): Fix comparison of BINFOs.
5737
62c7e4b7
JH
57382015-02-08 Jan Hubicka <hubicka@ucw.cz>
5739
5740 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
5741 on getting VOID pointer.
5742
21c0137a
JJ
57432015-02-09 Jakub Jelinek <jakub@redhat.com>
5744
5745 PR target/64979
5746 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
5747 va_list escapes.
5748
434fa903
RB
57492015-02-09 Richard Biener <rguenther@suse.de>
5750
5751 * genmatch.c (replace_id): Copy expr_type.
5752
b6bf201e
RB
57532015-02-09 Richard Biener <rguenther@suse.de>
5754
5755 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
5756 (streamer_write_tree_bitfields): Declare.
5757 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
5758 properly unpack padding.
5759 (unpack_value_fields): Inline ...
5760 (streamer_read_tree_bitfields): ... here.
5761 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
5762 and properly add padding bits.
5763 (streamer_pack_tree_bitfields): Fold into ...
5764 (streamer_write_tree_bitfields): ... this new function,
5765 exposing the bitpack object.
5766 * lto-streamer-out.c (lto_write_tree_1): Call
5767 streamer_write_tree_bitfields.
5768
28002f1a
RB
57692015-02-09 Richard Biener <rguenther@suse.de>
5770
5771 PR tree-optimization/54000
5772 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
5773 (struct ivopts_data): Add loop_loc member.
5774 (tree_ssa_iv_optimize_loop): Dump loop location.
5775 (create_new_ivs): Likewise, also dump number of IVs generated.
5776
e3e968e9
ML
57772015-02-09 Martin Liska <mliska@suse.cz>
5778
5779 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
5780 just if not yet registered.
5781 (ipa_icf_generate_summary): Register callgraph hooks.
5782
8276bf92
AP
57832015-02-08 Andrew Pinski <apinski@cavium.com>
5784
5785 * config/aarch64/aarch64.c (gty_dummy): Delete.
5786
953aad61
JH
57872015-02-08 Jan Hubicka <hubicka@ucw.cz>
5788
7299e9f1 5789 PR ipa/63566
953aad61
JH
5790 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
5791 (cgraph_node::local_p): Remove thunk related FIXME.
5792
ead0ba57
JH
57932015-02-08 Jan Hubicka <hubicka@ucw.cz>
5794
7299e9f1 5795 PR ipa/63566
ead0ba57
JH
5796 * i386.c (ix86_function_regparm): Look through aliases to see if callee
5797 is local and optimized.
5798 (ix86_function_sseregparm): Likewise; also use target's SSE math
5799 settings; error out instead of silently generating wrong code
5800 on mismatches.
5801 (init_cumulative_args): Look through aliases.
5802
42685f72
JH
58032015-02-08 Jan Hubicka <hubicka@ucw.cz>
5804
7299e9f1 5805 PR ipa/63566
42685f72
JH
5806 * ipa-split.c (execute_split_functions): Split if function has aliases.
5807
9641fab3
JH
58082015-02-08 Jan Hubicka <hubicka@ucw.cz>
5809
7299e9f1 5810 PR ipa/63566
9641fab3
JH
5811 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
5812 aliases before trying to expand it.
5813 (cgraph_node::expand_thunk): Fix formating.
5814
d719aff9
SL
58152015-02-07 Sandra Loosemore <sandra@codesourcery.com>
5816
5817 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
5818 (Using Assembly Language with C): Expand introduction.
5819 (Basic Asm): Copy-edit. Add more information about uses of
5820 basic asm.
5821 (Extended Asm): Copy-edit. Document new escape syntax and
5822 %l[label] syntax.
5823 (Global Reg Vars): Copy-edit.
5824 (Local Reg Vars): Likewise.
5825
0f32bcbd
DE
58262015-02-06 David Edelsohn <dje.gcc@gmail.com>
5827
5828 PR debug/2714
5829 PR bootstrap/64256
5830 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
5831 (DBX_CONTIN_CHAR): Define.
5832
45beb02e
SP
58332015-02-06 Sebastian Pop <s.pop@samsung.com>
5834 Brian Rzycki <b.rzycki@samsung.com>
5835
5836 PR tree-optimization/64878
5837 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
5838 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
5839 Stop recursion at loop phi nodes after having visited a loop phi node.
5840
bbd1bae2
JJ
58412015-02-06 Jakub Jelinek <jakub@redhat.com>
5842
f3ab4eed
JJ
5843 * toplev.c (process_options): Change flag_ipa_ra before creating
5844 optimization_{default,current}_node.
5845
bbd1bae2
JJ
5846 PR ipa/64896
5847 * cgraphunit.c (cgraph_node::expand_thunk): If
5848 restype is not is_gimple_reg_type nor the thunk_fndecl
5849 returns aggregate_value_p, set restmp to a temporary variable
5850 instead of resdecl.
5851
091790a7
VM
58522015-02-06 Vladimir Makarov <vmakarov@redhat.com>
5853
5854 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
5855
46290aa8
MM
58562015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
5857
5858 PR target/64205
5859 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
5860 add a general secondary reload handler for SDmode, unless we have
5861 both read/write support for SDmode.
5862
62276744
JJ
58632015-02-06 Jakub Jelinek <jakub@redhat.com>
5864
5865 PR middle-end/64937
5866 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
5867 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
5868 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
5869 1 before, push it to abstract_vec.
5870 (dwarf2out_abstract_function): Adjust caller. Don't call
5871 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
5872 DECL_ABSTRACT_P flags for all abstract_vec elts.
5873
f376994a
RL
58742015-02-06 Renlin Li <renlin.li@arm.com>
5875
5876 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
5877 complex gimple.
5878 * tree-ssa.c (execute_update_addresses_taken): Likewise.
5879
1901e8d6
JL
58802015-02-06 Jeff Law <law@redhat.com>
5881
5882 PR target/64889
5883 * config/h8300/h8300.c (push): New argument "in_prologue".
5884 Pass "in_prologue" along to "F".
5885 (h8300_push_pop): Corresponding changes.
5886 (h8300_expand_prologue): Likewise.
5887 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
46290aa8 5888
d26ac279
JJ
58892015-02-06 Jakub Jelinek <jakub@redhat.com>
5890
5891 PR rtl-optimization/64957
5892 PR debug/64817
5893 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
5894 IOR rather than for AND.
5895
9fb87eb0
EB
58962015-02-06 Eric Botcazou <ebotcazou@adacore.com>
5897
5898 PR target/62631
5899 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
5900 of shift-add and (add + shift) operations. Rename local variable.
5901
d00f6ca6
JL
59022015-02-05 Jeff Law <law@redhat.com>
5903
9f9ab303
JL
5904 PR target/17306
5905 * config/h8300/constraints.md (U): Correctly dectect
5906 "eightbit_data" memory addresses.
5907 * config/h8300/h8300.c (eightbit_constant_address_p): Also
5908 handle (const (plus (symbol_ref (x)))) where x is declared
5909 as an 8-bit data memory address.
5910 * config/h8300/h8300.md (call, call_value): Correctly detect
5911 "funcvec" functions.
5912
d00f6ca6
JL
5913 PR target/43264
5914 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
5915 24 to 28 bits for the H8/300.
5916
b871a06f
AM
59172015-02-06 Alan Modra <amodra@gmail.com>
5918
5919 PR target/64876
5920 * config/rs6000/rs6000.c (chain_already_loaded): New function.
5921 (rs6000_call_aix): Use it.
5922
370a7814
JH
59232015-02-05 Jan Hubicka <hubicka@ucw.cz>
5924
5925 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
5926 check.
5927
b291a202
JL
59282015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
5929
5930 * config/h8300/constraints.md ("U" constraint): Use strict
5931 variant of REG_OK_FOR_BASE_P after reload has started.
5932
29e1d31b
MM
59332015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
5934
5935 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
5936 define to zero if !TARGET_NEON.
09008d80 5937 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
29e1d31b 5938
a0cbab4a
JH
59392015-02-04 Jan Hubicka <hubicka@ucw.cz>
5940 Trevor Saunders <tsaunders@mozilla.com>
5941
5942 PR ipa/61548
5943 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
5944
d2b35c04
JH
59452015-02-04 Jan Hubicka <hubicka@ucw.cz>
5946
5947 PR ipa/61548
5948 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
5949 when removing varpool nodes.
5950
65a428db
JH
59512015-02-04 Jan Hubicka <hubicka@ucw.cz>
5952
5953 PR ipa/61548
5954 * varpool.c (varpool_node::remove): Fix order of variables.
5955
c1eed5a1
JH
59562015-02-04 Jan Hubicka <hubicka@ucw.cz>
5957
5958 PR ipa/64686
5959 * ipa-inline.c (inline_small_functions): Fix ordering issue between
5960 speculation resolution and key updates.
5961
73d098df
JH
59622015-02-04 Jan Hubicka <hubicka@ucw.cz>
5963
5964 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
5965 about not letting any speculative edges unupdated.
5966
88d67744
JH
59672015-02-04 Jan Hubicka <hubicka@ucw.cz>
5968
5969 PR gcov/64123
5970 * gcov-io.c (gcov_var): Export.
5971
3ff29913
JH
59722015-02-04 Jan Hubicka <hubicka@ucw.cz>
5973
5974 PR middle-end/64922
5975 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
5976 edges that become speculative.
5977
de3aebff
JJ
59782015-02-04 Jakub Jelinek <jakub@redhat.com>
5979
5980 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
5981 or DW_LANG_Fortran08.
5982 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
5983 DW_LANG_Fortran08.
5984 (gen_compile_unit_die): Handle "GNU Fortran2003" and
5985 "GNU Fortran2008" language strings.
5986 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
5987 * langhooks.h (lang_GNU_Fortran): New prototype.
5988 * langhooks.c (lang_GNU_Fortran): New function.
5989 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
5990 lang_GNU_Fortran.
5991
a6bc87d3
EB
59922015-02-04 Eric Botcazou <ebotcazou@adacore.com>
5993
5994 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
5995 (RTX_OK_FOR_OLO10_P): Likewise.
5996
5a33f47d
EB
59972015-02-04 Eric Botcazou <ebotcazou@adacore.com>
5998
5999 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
6000
0b986c6a
JH
60012015-02-04 Jan Hubicka <hubicka@ucw.cz>
6002
6003 PR middle-end/64922
6004 * gimple.c: Include gimple-ssa.h.
6005 (maybe_remove_unused_call_args): New function.
6006 * gimple.h (maybe_remove_unused_call_args): Declare.
6007 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
6008 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
6009 * gimple-fold.c (gimple_fold_call): Likewise.
6010
7489140d
L
60112015-02-04 H.J. Lu <hongjiu.lu@intel.com>
6012
6013 PR rtl-optimization/64905
6014 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
6015 pointer alignment if it isn't needed.
6016
d8f70d78
MW
60172015-02-04 Matthew Wahab <matthew.wahab@arm.com>
6018
6019 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
6020 cortex-a72.cortex-a53.
6021 * config/aarch64/aarch64-tune.md: Regenerate.
6022 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
6023
771bef14
NC
60242015-02-04 Nick Clifton <nickc@redhat.com>
6025
6026 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
6027 inside a MEM.
6028
e3bc4a35
JJ
60292015-02-04 Jakub Jelinek <jakub@redhat.com>
6030
6031 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
6032 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
6033 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
6034 of DEF_BUILTIN.
6035 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
6036 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
6037 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
6038 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
6039 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
6040 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
6041 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
6042 * tree-core.h (enum built_in_function): In between
6043 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
6044 for builtins that use DEF_BUILTIN_CHKP macro.
6045
a720f0ef
AO
60462015-02-04 Alexandre Oliva <aoliva@redhat.com>
6047
871dae34
AO
6048 PR debug/64817
6049 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
6050 operands for tcc_comparison exprs. Fix typos.
6051
af9f5d95
AO
6052 PR debug/64817
6053 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
6054 of two XORs that have an intervening AND or IOR.
6055
a720f0ef
AO
6056 PR debug/64817
6057 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
6058 simplification of XOR of AND to not allocate new rtx before
6059 committing to a simplification.
6060
a1ac8050
KT
60612015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6062
6063 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
6064 manual swaps in all peepholes.
6065
cb5c6c29
KT
60662015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6067
6068 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
6069 of manual swapping implementation.
6070 (aarch64_expand_vec_perm_const_1): Likewise.
6071
bd95e655
JG
60722015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
6073
6074 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
6075 (generic_addrcost_table): Remove NAMED_PARAM.
6076 (cortexa57_addrcost_table): Likewise.
6077 (xgene1_addrcost_table): Likewise.
6078 (generic_regmove_table): Likewise.
6079 (cortexa53_regmove_table): Likewise.
6080 (xgene1_regmove_table): Likewise.
6081 (generic_vector_table): Likewise.
6082 (cortexa57_vector_table): Likewise.
6083 (xgene1_vector_table): Likewise.
6084 (generic_tunings): Likewise.
6085 (cortexa53_tunings): Likewise.
6086 (cortexa57_tunings): Likewise.
6087 (xgene1_tunings): Likewise.
6088
4f2ab1e6
MW
60892015-02-04 Matthew Wahab <matthew.wahab@arm.com>
6090
6091 * config/arm/arm-cores.def: Add cortex-a72 and
6092 cortex-a72.cortex-a53.
6093 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
6094 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
6095 * config/arm/arm-tune.md: Regenerate.
6096 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
6097 "cortex-a72.cortex-a53".
6098 * doc/invoke.texi (ARM Options/-mtune): Likewise.
6099
6f56da5d
NC
61002015-02-04 Nick Clifton <nickc@redhat.com>
6101
20693e97
NC
6102 PR target/64408
6103 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
6104 of accepted codes.
6105 (nonimmediate_di_operand): Likewise.
6106
6f56da5d
NC
6107 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
6108 prefixes of known F5 using MSP430 MCUs.
6109
151ac6e2
KT
61102015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6111
6112 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
6113 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
6114 instead of __builtin_sqrt.
6115
283b44f9
IE
61162015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
6117
6118 * varasm.c (do_assemble_alias): Follow transparent alias
6119 chain for target.
6120 (default_assemble_visibility): Follow transparent alias
6121 chain for decl name.
6122
cc9ef6a6
TP
61232015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6124
6125 PR middle-end/62103
6126 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
6127 to compute size of referenced value in the constant case.
6128
2a1d78d8
JJ
61292015-02-03 Jakub Jelinek <jakub@redhat.com>
6130
6131 PR rtl-optimization/64756
6132 * cse.c (invalidate_dest): New function.
6133 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
6134 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
6135 invalidate and do not record it.
6136
3548abca
OE
61372015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
6138
6139 PR target/64660
6140 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
6141 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
6142 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
6143 atomic_nand<mode>_soft_tcb): New insns.
6144 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
6145 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
6146 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
6147 Split into atomic_not_fetchsi_hard if operands[0] is unused.
6148 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
6149 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
6150 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
6151 atomic_not<mode>_hard if operands[0] is unused.
6152 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
6153 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
6154 if operands[0] is unused.
6155 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
6156 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
6157 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
6158 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
6159 unused.
6160 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
6161 into atomic_not<mode>_soft_tcb if operands[0] is unused.
6162 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
6163 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
6164 if operands[0] is unused.
6165 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
6166 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
6167 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
6168 atomic_nand_fetchsi_hard if operands[0] is unused.
6169 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
6170 atomic_nand<mode>_hard if operands[0] is unused.
6171 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
6172 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
6173 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
6174 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
6175 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
6176 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
6177 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
6178 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
6179 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
6180 atomic_not<mode>_hard if operands[0] is unused.
6181 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
6182 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
6183 unused.
6184 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
6185 into atomic_not<mode>_soft_tcb if operands[0] is unused.
6186 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
6187 atomic_nand<mode>_hard if operands[0] is unused.
6188 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
6189 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
6190
2cb844ce
DM
61912015-02-03 David Malcolm <dmalcolm@redhat.com>
6192
6193 PR jit/64810
6194 * Makefile.in (GCC_OBJS): Add gcc-main.o.
6195 * gcc-main.c: New file, containing "main" taken from gcc.c.
6196 * gcc.c (do_self_spec): Free decoded_options.
6197 (class driver): Move declaration to gcc.h.
6198 (main): Move declaration and implementation to new file
6199 gcc-main.c.
6200 (driver_get_configure_time_options): New function.
6201 * gcc.h (class driver): Move this declaration here, from
6202 gcc.c.
6203 (driver_get_configure_time_options): New declaration.
6204
ebc8f0bb
JH
62052015-02-03 Jan Hubicka <hubicka@ucw.cz>
6206
6207 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
6208 cross-module inlining.
6209 * cgraph.h (cgraph_node): Add flag merged.
6210 * ipa-icf.c (sem_function::merge): Maintain it.
6211
901e59b2
RS
62122015-02-03 Richard Sandiford <richard.sandiford@arm.com>
6213
6214 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
6215 instead of OBJECT_P.
6216
aa47faf0
EB
62172015-02-03 Eric Botcazou <ebotcazou@adacore.com>
6218
6219 PR target/62631
6220 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
6221 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
6222 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
6223 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
6224
76f0aa6c
JJ
62252015-02-03 Jakub Jelinek <jakub@redhat.com>
6226
6227 PR other/63504
6228 * combine.c (reg_n_sets_max): New variable.
6229 (can_change_dest_mode, reg_nonzero_bits_for_combine,
6230 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
6231 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
6232 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
6233 (rest_of_handle_combine): Initialize reg_n_sets_max.
6234
d67bce7c
JH
62352015-02-02 Jan Hubicka <hubicka@ucw.cz>
6236
6237 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
6238 if some always_inline was inlined, apply changes before inlining
6239 heuristically.
6240
c58bfead
DM
62412015-02-02 David Malcolm <dmalcolm@redhat.com>
6242
6243 PR jit/64810
6244 * config/arm/arm.c (arm_option_override): Set
6245 arm_selected_arch/cpu/tune to NULL on entry.
6246
3ff5d1f0
TB
62472015-02-02 Tejas Belagod <tejas.belagod@arm.com>
6248 Andrew Pinski <pinskia@gcc.gnu.org>
6249 Jakub Jelinek <jakub@gcc.gnu.org>
6250
6251 PR target/64231
6252 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
6253 integer typing for small model. Use IN_RANGE.
6254
7dd1f7ac
RB
62552015-02-02 Richard Biener <rguenther@suse.de>
6256
6257 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
6258 * tree-vrp.c (vrp_valueize_1): Likewise.
6259
e404a667
AM
62602015-02-02 Alan Modra <amodra@gmail.com>
6261
6262 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
6263 than mem for toc_restore.
6264 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
6265 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
6266 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
6267
353f8ac5
DE
62682015-02-01 David Edelsohn <dje.gcc@gmail.com>
6269
6270 PR target/64047
6271 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
6272 explicit default options.
6273
62742015-02-01 Jan Hubicka <hubicka@ucw.cz>
b730d1c9
JH
6275
6276 PR ipa/64872
6277 * ipa-utils.c (ipa_merge_profiles): Add release argument.
6278 * ipa-icf.c (sem_function::merge): Do not release body when merging.
6279 * ipa-utils.h (ipa_merge_profiles): Update prototype.
6280
dfde35b3
JJ
62812015-02-01 Jakub Jelinek <jakub@redhat.com>
6282
6283 PR debug/64817
6284 * cfgexpand.c (deep_ter_debug_map): New variable.
6285 (avoid_deep_ter_for_debug): New function.
6286 (expand_debug_expr): If TERed SSA_NAME is in
6287 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
6288 instead of trying to expand SSA_NAME's def stmt.
6289 (expand_debug_locations): When expanding debug bind
6290 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
6291 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
6292 value.
6293 (pass_expand::execute): Call avoid_deep_ter_for_debug on
6294 all debug bind stmts. Delete deep_ter_debug_map after
6295 expand_debug_location if non-NULL and clear it.
6296
2b8427ca
OE
62972015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
6298
6299 PR target/64851
6300 * config/sh/sync.md (atomic_fetch_notsi_hard,
6301 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
6302 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
6303 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
6304 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
6305 atomic_not_fetch<mode>_soft_imask): New insns.
6306
63387a85
MK
63072015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
6308
6309 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
6310 (rank_for_schedule_debug): Split from ...
6311 (rank_for_schedule): ... this.
6312 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
6313 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
6314
b4fbcb1b
SL
63152015-01-31 Sandra Loosemore <sandra@codesourcery.com>
6316
6317 * doc/md.texi (Machine Constraints): Alphabetize table by target.
6318 * doc/extend.texi (x86 Variable Attributes): Move section to
6319 correct alphabetization after renaming.
6320 (x86 Type Attributes): Likewise.
6321 (Target Builtins): Re-alphabetize menu.
6322 (x86 Built-in Functions): Move section to correct alphabetization
6323 after renaming.
6324 (x86 transactional memory intrinsics): Likewise.
6325 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
6326 and x86 Windows Options in table and menu.
6327 (x86 Options): Move section to correct alphabetization after
6328 renaming.
6329 (x86 Windows Options): Likewise.
6330
0353c564
SL
63312015-01-31 Sandra Loosemore <sandra@codesourcery.com>
6332
6333 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
6334 preferred names of the architecture and its 32- and 64-bit
6335 variants.
6336 * doc/invoke.texi: Likewise.
6337 * doc/md.texi: Likewise.
6338
0d9a5f8a
UB
63392015-01-31 Uros Bizjak <ubizjak@gmail.com>
6340
2b8427ca 6341 PR target/64882
0d9a5f8a
UB
6342 * config/i386/predicates.md (address_no_seg_operand): Reject
6343 non-CONST_INT_P operands in invalid mode.
6344
63452015-01-31 Uros Bizjak <ubizjak@gmail.com>
6346
6347 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
6348 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
6349 * config/i386/predicates.md (address_no_seg_operand): Call
6350 address_operand with VOIDmode.
6351 (vsib_address_operand): Ditto.
6352 (address_mpx_no_base_operand): Ditto.
6353 (address_mpx_no_index_operand): Ditto.
6354
895ff86f
VM
63552015-01-30 Vladimir Makarov <vmakarov@redhat.com>
6356
6357 PR target/64688
6358 * lra-constraints.c (original_subreg_reg_mode): New.
6359 (simplify_operand_subreg): Try to simplify subreg of const. Use
6360 original_subreg_reg_mode for it.
6361 (swap_operands): Update original_subreg_reg_mode.
6362 (curr_insn_transform): Set up original_subreg_reg_mode.
6363
3c954213
VM
63642015-01-30 Vladimir Makarov <vmakarov@redhat.com>
6365
6366 PR target/64617
6367 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
6368 function.
6369 (process_alt_operands): Use it.
6370 (curr_insn_transform): Check the optional reload pseudo class is
6371 ok for the mode.
6372
40fecdd6
JM
63732015-01-30 Joseph Myers <joseph@codesourcery.com>
6374
6375 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
6376 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
6377 prototype.
6378 * toplev.h (init_asm_output): Update comment on use of
6379 UNKNOWN_LOCATION with fatal_error.
6380 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
6381 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
6382 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
6383 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
6384 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
6385 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
6386 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
6387 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
6388 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
6389 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
6390 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
6391 fatal_error changed to pass input_location as first argument.
6392
168be70b
ML
63932015-01-30 Martin Liska <mliska@suse.cz>
6394
6395 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
6396 in #pragma GCC diagnostic guards.
6397
566d377a
RB
63982015-01-30 Richard Biener <rguenther@suse.de>
6399
6400 PR tree-optimization/64829
6401 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
6402 not add a widening conversion pattern but hand off extra
6403 widenings to callers.
6404 (vect_recog_widen_mult_pattern): Handle extra widening produced
6405 by vect_handle_widen_op_by_const.
6406 (vect_recog_widen_shift_pattern): Likewise.
6407 (vect_pattern_recog_1): Remove excess vertical space in dumping.
6408 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
6409 (vect_init_vector_1): Likewise.
6410 (vect_get_vec_def_for_operand): Likewise.
6411 (vect_finish_stmt_generation): Likewise.
6412 (vectorizable_load): Likewise.
6413 (vect_analyze_stmt): Likewise.
6414 (vect_is_simple_use): Likewise.
6415
8ec350ed
JL
64162015-01-29 Jeff Law <law@redhat.com>
6417
6418 * combine.c (try_combine): Fix typo in comment.
6419
dd1c1f8c
SB
64202015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
6421
6422 PR target/64580
6423 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
6424 (rs6000_stack_info): Add assert.
6425 (rs6000_output_savres_externs): New function, split off from...
6426 (rs6000_output_function_prologue): ... here. Do not call it for
6427 thunks.
6428
52d28530
JL
64292015-01-29 Jeff Law <law@redhat.com>
6430
dd1c1f8c 6431 PR target/15184
52d28530
JL
6432 * combine.c (try_combine): If I0 is a memory load and I3 a store
6433 to a related address, increase the "goodness" of doing a 4-insn
6434 combination with I0-I3.
6435 (make_field_assignment): Handle SUBREGs in the ior+and case.
6436
b8aa7083
YR
64372015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
6438
6439 PR tree-optimization/64746
6440 * tree-if-conv.c (mask_exists): New function.
6441 (predicate_mem_writes): Save created mask with given size for further
6442 use.
6443 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
6444 (ifcvt_repair_bool_pattern): Collect all statements that are root
6445 of bool pattern and use iterative algorithm to remove multiple uses
6446 of predicates, display number of required iterations.
6447
d94e3e75
RB
64482015-01-29 Richard Biener <rguenther@suse.de>
6449
6450 PR tree-optimization/64853
6451 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
6452 stmt will get simulated again.
6453 * tree-ssa-ccp.c (valueize_op_1): Likewise.
6454
16277100
KT
64552015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6456
6457 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
6458 return_in_pc. Remove redundant assignments.
6459 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
6460 (arm_expand_epilogue): Don't compare boolean with true in if condition.
6461
f84b87aa
UB
64622015-01-29 Uros Bizjak <ubizjak@gmail.com>
6463
6464 * config/i386/i386.c (ix86_mode_after): Make static.
6465
62c00445
RB
64662015-01-29 Richard Biener <rguenther@suse.de>
6467
6468 PR tree-optimization/64844
6469 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
6470 dump cost model analysis.
6471 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6472 Do not register adjusted load/store costs here.
6473
d290bb1d
IE
64742015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
6475 Uros Bizjak <ubizjak@gmail.com>
6476
6477 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
6478 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
6479 using x86_use_pseudo_pic_reg.
6480 * config/i386/i386.c (ix86_conditional_register_usage): Remove
6481 support for fixed PIC register.
6482 (ix86_use_pseudo_pic_reg): Not static any more.
6483
c291690e
IE
64842015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
6485
6486 PR middle-end/64805
6487 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
6488 to avoid error in cgraph node verification.
6489
2d48baf0
MP
64902015-01-29 Marek Polacek <polacek@redhat.com>
6491
6492 * doc/standards.texi: Reflect that the default for C is gnu11.
6493
4897b529
KK
64942015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
6495
6496 PR target/64761
6497 * reorg.c (switch_text_sections_between_p): New function.
6498 (relax_delay_slots): Call it when testing if the jump insn
6499 is removable. Use targetm.can_follow_jump when testing if
6500 the conditional branch can follow an unconditional jump.
6501
f7f049fa
CT
65022015-01-27 Caroline Tice <cmtice@google.com>
6503
6504 Committing VTV Cywin/Ming patch for Patrick Wollgast
6505 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
6506 if -fvtable-verify=preinit/std is used.
6507 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
6508 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
6509 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
6510 if -fvtable-verify=preinit/std is used.
6511 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
6512 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
6513 if -fvtable-verify=preinit/std is used.
6514 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
6515 * config/i386/mingw32.h (LIB_SPEC): Likewise.
6516 * varasm.c (assemble_variable): Add code to properly set the comdat
6517 section and name for the .vtable_map_vars section in case the
6518 target is PE or COFF.
6519
10881cff
JH
65202015-01-29 Jan Hubicka <hubicka@ucw.cz>
6521
6522 PR ipa/64801
6523 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
6524 make sane BB profile.
6525 (cgraph_node::expand_thunk): Make sane BB profile.
6526 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
6527 * cgraph.h (init_lowered_empty_function): Update prototype.
6528 * config/i386/i386.c (make_resolver_func): Update call.
6529 * predict.c (gate): Disable branch prediction pass if
6530 profile is already there.
6531
bea30e0d
JH
65322015-01-29 Jan Hubicka <hubicka@ucw.cz>
6533
6534 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
6535 * opth-gen.awk: Likewise.
6536 * common.opt: Mark flag_fp_contract_mode as Optimization.
6537
5fa25adb
BE
65382015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
6539
6540 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
6541 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
6542
c761dca1
OE
65432015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
6544
6545 PR target/64659
6546 * config/sh/predicates.md (atomic_arith_operand,
6547 atomic_logical_operand): Remove.
6548 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
6549 (atomic_arith_operand_0): New predicate.
6550 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
6551 Use atomic_arith_operand_0 for input values.
6552 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
6553 atomic_compare_and_swap<mode>_soft_gusa,
6554 atomic_compare_and_swap<mode>_soft_tcb,
6555 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
6556 arith_reg_operand instead of register_operand.
6557 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
6558 atomic_arith_operand_0 for newval input.
6559 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
6560 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
6561 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
6562 arith_reg_operand instead of register_operand.
6563 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
6564 fetchop_predicate_1, fetchop_constraint_1_llcs,
6565 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
6566 fetchop_constraint_1_imask): New code iterator attributes.
6567 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
6568 register_operand. Use fetchop_predicate_1.
6569 (atomic_fetch_<fetchop_name>si_hard,
6570 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
6571 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
6572 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
6573 and arith_reg_operand instead of register_operand. Use
6574 fetchop_predicate_1, fetchop_constraint_1_gusa.
6575 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
6576 and arith_reg_operand instead of register_operand. Use
6577 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
6578 to allow R0 usage.
6579 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
6580 and arith_reg_operand instead of register_operand. Use
6581 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
6582 to allow R0 usage.
6583 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
6584 register_operand. Use atomic_logical_operand_1.
6585 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
6586 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
6587 arith_reg_operand instead of register_operand.
6588 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
6589 Use arith_reg_dest and arith_reg_operand instead of register_operand.
6590 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
6591 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
6592 register_operand. Use fetchop_predicate_1.
6593 (atomic_<fetchop_name>_fetchsi_hard,
6594 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
6595 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
6596 fetchop_constraint_1_llcs.
6597 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
6598 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
6599 fetchop_constraint_1_gusa.
6600 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
6601 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
6602 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
6603 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
6604 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
6605 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
6606 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
6607 register_operand. Use atomic_logical_operand_1.
6608 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
6609 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
6610 arith_reg_operand instead of register_operand.
6611 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
6612 arith_reg_operand instead of register_operand. Use logical_operand
6613 and K08. Adjust asm sequence to allow R0 usage.
6614 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
6615 arith_reg_operand instead of register_operand. Use logical_operand
6616 and K08.
6617
13a48f37
JJ
66182015-01-28 Jakub Jelinek <jakub@redhat.com>
6619
6620 PR other/63504
6621 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
6622 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
6623 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
6624 only get_full_len HOST_WIDE_INTs from get_val () array rather than
6625 all bits in *val_wide.
6626
b1474d30
JH
66272015-01-28 Jan Hubicka <hubicka@ucw.cz>
6628
6629 * varpool.c (tls_model_names): Fix names.
6630 (varpool_node::dump): Dump tls- prefix for tls models.
6631
1f83528e
TS
66322015-01-28 Thomas Schwinge <thomas@codesourcery.com>
6633 Bernd Schmidt <bernds@codesourcery.com>
6634 Nathan Sidwell <nathan@codesourcery.com>
6635
6636 * config/nvptx/mkoffload.c: New file.
6637 * config/nvptx/t-nvptx: Add build rules for it.
6638 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
6639 (extra_programs): Add mkoffload.
6640 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
6641 function.
6642 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
6643
090238ee
YR
66442015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
6645
6646 PR middle-end/64809
6647 * cfgexpand.c (reorder_operands): Skip debug gimples.
6648
fa8e5051
IE
66492015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
6650
6651 PR tree-optimization/64277
6652 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
6653 range info when possible to refine estimation.
6654
8447859b
TP
66552015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
6656
6657 PR tree-optimization/64718
6658 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
6659 be a 16bit unsigned integer when n->range is 16.
6660 (bswap_replace): Convert src to that type if necessary for all bswap
6661 sizes. Fix rotation right notation in nearby comment. Use bswap_type
6662 set in pass_optimize_bswap::execute ().
6663
285398d2
JG
66642015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
6665
6666 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
6667 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
6668 integer and floating point variants.
6669 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
6670
de5bcff3
RS
66712015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
6672
6673 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
6674 for all vector modes.
6675
813ba013
JJ
66762015-01-28 Jakub Jelinek <jakub@redhat.com>
6677
6678 PR bootstrap/64612
6679 * doc/sourcebuild.texi (comdat_group): Document.
6680
5ea22cfc
TG
66812015-01-28 Terry Guo <terry.guo@arm.com>
6682
6683 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
6684
53c04ec9
DM
66852015-01-27 David Malcolm <dmalcolm@redhat.com>
6686
6687 * toplev.c (print_version): Add param "show_global_state", and
6688 only print GGC and plugin information if it is true.
6689 (init_asm_output): Pass in "true" for the new param when calling
6690 print_version.
6691 (process_options): Likewise.
6692 (toplev::main): Likewise.
6693 * toplev.h (print_version): Add new param to decl.
6694
e23f2892
JH
66952015-01-27 Jan Hubicka <hubicka@ucw.cz>
6696
6697 PR ipa/60871
6698 PR ipa/64139
6699 * tree.c (lookup_binfo_at_offset): New function.
6700 (get_binfo_at_offset): Use it.
6701
b833dedd
JH
67022015-01-27 Jan Hubicka <hubicka@ucw.cz>
6703
6704 PR ipa/64282
6705 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
6706 on vtable being vtable.
6707
94091f43
DV
67082015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
6709
f84b87aa
UB
6710 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
6711 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
6712 -mhotpatch= option.
6713 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
6714 -mno-hotpatch options. Change syntax of -mhotpatch= option.
6715 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
6716 Renamed.
6717 (s390_hotpatch_trampoline_halfwords_max): Renamed.
6718 (s390_hotpatch_hw_max): New name.
6719 (s390_hotpatch_trampoline_halfwords): Renamed.
6720 (s390_hotpatch_hw_before_label): New name.
6721 (get_hotpatch_attribute): Removed.
6722 (s390_hotpatch_hw_after_label): New name.
6723 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
6724 attribute.
6725 (s390_attribute_table): Ditto.
6726 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
6727 (s390_function_num_hotpatch_hw): New name.
6728 Remove special handling of inline functions and hotpatching.
6729 Return number of nops before and after the function label.
6730 (s390_can_inline_p): Removed.
6731 (s390_asm_output_function_label): Emit a configurable number of nops
6732 after the function label.
6733 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
6734 (TARGET_CAN_INLINE_P) Removed.
6735 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
94091f43 6736
096e8448
JW
67372015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6738 Jiong Wang <jiong.wang@arm.com>
6739
6740 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
6741 of scratch reg.
6742 (cb<optab><mode>1): Likewise.
6743 * config/aarch64/iterators.md (bcond): New define_code_attr.
6744
fb1a3f8f
AK
67452015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6746
6747 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
6748 memory accesses.
6749
f954fb25
AK
67502015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6751
6752 * config/s390/s390.c (s390_register_move_cost): Increase costs for
6753 FPR->GPR moves.
6754
755359b7
RB
67552015-01-27 Richard Biener <rguenther@suse.de>
6756
6757 * tree-vrp.c (update_value_range): Intersect the range with
6758 old recorded SSA name range information.
6759
eb42aba9
NC
67602015-01-27 Nick Clifton <nickc@redhat.com>
6761
6762 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
6763 BC, DE and HL registers directly, not via AX.
6764 When decrementing the stack pointer by a large amount, transfer SP
6765 into AX and perform the subtraction there.
6766 (rl78_expand_epilogue): Perform the inverse of the above
6767 enhancements.
6768
f962fbf1
RO
67692015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6770
6771 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
6772
f4bdb96a
JJ
67732015-01-27 Jakub Jelinek <jakub@redhat.com>
6774 Yury Gribov <y.gribov@samsung.com>
6775
6776 PR ubsan/64741
6777 * ubsan.c (ubsan_source_location): Refactor code.
6778 (ubsan_type_descriptor): Update type size. Refactor code.
6779
f101c4b4
RB
67802015-01-27 Richard Biener <rguenther@suse.de>
6781
6782 PR tree-optimization/56273
6783 PR tree-optimization/59124
6784 PR tree-optimization/64277
6785 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
6786 from the first VRP pass.
6787
6d71672d
JJ
67882015-01-27 Jakub Jelinek <jakub@redhat.com>
6789
4eaf52aa
JJ
6790 PR ipa/64776
6791 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
6792 handle the first argument in the same loop as all the other arguments.
6793
6d71672d
JJ
6794 PR rtl-optimization/61058
6795 * jump.c (cleanup_barriers): Update basic block boundaries
6796 if BLOCK_FOR_INSN is non-NULL on PREV.
6797
3dd598be
IE
67982015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
6799
6800 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
6801 bounds narrowing, already instrumented calls and calls to
6802 not instrumentable functions.
6803
b30ea138
JJ
68042015-01-27 Jakub Jelinek <jakub@redhat.com>
6805
6806 PR tree-optimization/64807
6807 * wide-int.cc (wi::divmod_internal): Clear
6808 b_dividend[dividend_blocks_needed].
6809
1230f784
DD
68102015-01-26 DJ Delorie <dj@redhat.com>
6811
6812 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
6813 volatile memory references.
6814
48e4f473
OE
68152015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
6816
6817 PR target/49263
6818 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
6819 remove_insn.
6820 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
6821 shifts if it already fits into K08.
6822
4cd76837
JJ
68232015-01-26 Jakub Jelinek <jakub@redhat.com>
6824
1b7706c8
JJ
6825 PR ipa/64730
6826 * ipa-inline.c (inline_small_functions): Print "unknown" even
6827 if edge->call_stmt is non-NULL, but has builtins or unknown
6828 location.
6829
4cd76837
JJ
6830 PR middle-end/64421
6831 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
6832 with asterisk, skip the first character.
6833
0b54aad2
L
68342015-01-26 H.J. Lu <hongjiu.lu@intel.com>
6835
6836 PR target/64806
6837 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
6838 order change.
6839
c8d7835b
UB
68402015-01-26 Uros Bizjak <ubizjak@gmail.com>
6841
f84b87aa 6842 PR target/64795
c8d7835b
UB
6843 * config/i386/i386.md (*movdi_internal): Also check operand 0
6844 to determine TYPE_LEA operand.
6845 (*movsi_internal): Ditto.
6846
cbe69886
JJ
68472015-01-26 Jakub Jelinek <jakub@redhat.com>
6848
6849 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
6850 OPTION_MASK_QUAD_MEMORY_ATOMIC.
6851
0699caae
RL
68522015-01-26 Renlin Li <renlin.li@arm.com>
6853
6854 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
6855 the comment.
6856 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
6857 for higher part.
6858
3cd58c0f
RB
68592015-01-26 Richard Biener <rguenther@suse.de>
6860
6861 PR middle-end/64764
6862 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
6863 combining two BIT_AND_EXPR predicates.
6864
b1512ea0
L
68652015-01-26 H.J. Lu <hongjiu.lu@intel.com>
6866
6867 PR bootstrap/64754
6868 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
3cd58c0f 6869
04385d25
TG
68702015-01-26 Terry Guo <terry.guo@arm.com>
6871
6872 * config/arm/arm.c (arm_file_start): Update the assignment of
6873 Tag_ABI_HardFP_use.
6874
f84b87aa 68752015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
1200ca22
JG
6876
6877 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
6878 pipeline model.
6879 config/arm/arm.md: Include the new Cortex-A57 model.
6880 (generic_sched): Don't use generic_sched when tuning for
6881 Cortex-A57.
6882
939911c5
ASJ
68832015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
6884 Uros Bizjak <ubizjak@gmail.com>
6885
6886 * config/i386/i386.c (get_builtin_code_for_version): Add
6887 support for BMI and BMI2 multiversion functions.
6888
5b4f3384
PK
68892015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6890
6891 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
6892 (extract_bit_field): Likewise.
6893 (extract_low_bits): Likewise.
6894 (expand_mult): Likewise.
6895 (expand_mult_highpart_adjust): Likewise.
6896
c8f2dff2
L
68972015-01-24 H.J. Lu <hongjiu.lu@intel.com>
6898
6899 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
6900 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
6901 * config/i386/i386.c (processor_model): Add
6902 M_INTEL_COREI7_BROADWELL.
6903 (arch_names_table): Add "broadwell".
6904
841dbf80
OE
69052015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
6906
6907 PR target/49263
6908 PR target/53987
6909 PR target/64345
6910 PR target/59533
6911 PR target/52933
6912 PR target/54236
6913 PR target/51244
6914 * config/sh/sh-protos.h
6915 (sh_extending_set_of_reg::can_use_as_unextended_reg,
6916 sh_extending_set_of_reg::use_as_unextended_reg,
6917 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
6918 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
6919 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
6920 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
6921 (sh_treg_insns): New class.
6922 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
6923 (scope_counter): New class.
6924 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
6925 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
6926 sh_extending_set_of_reg::can_use_as_unextended_reg,
6927 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
6928 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
6929 sh_split_treg_set_expr): New functions.
6930 (addsubcosts): Handle treg_set_expr.
6931 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
6932 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
6933 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
6934 (sh_insn_operands_modified_between_p): Make non-static.
6935 * config/sh/predicates.md (zero_extend_movu_operand): Allow
6936 simple_mem_operand in addition to displacement_mem_operand.
6937 (zero_extend_operand): Don't allow zero_extend_movu_operand.
6938 (treg_set_expr, treg_set_expr_not_const01,
6939 arith_reg_or_treg_set_expr): New predicates.
6940 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
6941 arith_or_int_operand instead of logical_operand. Convert to
6942 insn_and_split. Try to optimize constant operand in splitter.
6943 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
6944 (*tstqi_t_zero): Delete.
6945 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
6946 (tstsi_t_and_not): Delete.
6947 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
6948 Convert to insn_and_split.
6949 (unnamed split, tstsi_t_zero_extract_xor,
6950 tstsi_t_zero_extract_subreg_xor_little,
6951 tstsi_t_zero_extract_subreg_xor_big): Delete.
6952 (*tstsi_t_shift_mask): New insn_and_split.
6953 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
6954 to recombine with surrounding insns when splitting.
6955 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
6956 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
6957 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
6958 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
6959 (*cbranch_div0s: Delete.
6960 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
6961 Try to recombine with surrounding insns when splitting. Add operand
6962 order variants.
6963 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
6964 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
6965 *addc_r_r_msb, *addc_2r_msb): Delete.
6966 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
6967 order variant.
6968 (*addc_negreg_t): New insn_and_split.
6969 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
6970 Try to recombine with surrounding insns when splitting.
c8d7835b 6971 Add operand order variants.
841dbf80
OE
6972 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
6973 insn_and_split patterns.
6974 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
6975 surrounding insns when splitting.
6976 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
6977 (*rotcl): Likewise. Add zero_extract variant.
6978 (*ashrsi2_31): New insn_and_split.
6979 (*negc): Convert to insn_and_split. Use treg_set_expr.
6980 (*zero_extend<mode>si2_disp_mem): Update comment.
6981 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
6982 condition.
6983 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
6984 with surrounding insns when splitting.
6985 (any_treg_expr_to_reg): New insn_and_split.
6986 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
6987 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
6988 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
6989 *zero_extract_2): New single bit zero extract patterns.
6990 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
6991 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
6992 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
6993 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
6994 set destination.
6995 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
6996 register_operand for set source.
6997
d0d7b0b3
JH
69982015-01-23 Jan Hubicka <hubicka@ucw.cz>
6999
7000 * i386.opt (prefetch_sse): New targetsave.
7001 * i386.c (ix86_function_specific_save): Save prefetch_sse.
7002 (ix86_function_specific_restore): Restore prefetch_sse and initialize
7003 ix86_cost/ix86_tune_cost.
7004
d2c5e4c9
DM
70052015-01-23 David Malcolm <dmalcolm@redhat.com>
7006
7007 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
7008 Support the JIT by using 0 as the language type.
7009
5c8bae59
VM
70102015-01-23 Vladimir Makarov <vmakarov@redhat.com>
7011
7012 PR target/64317
7013 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
7014 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
af955a52 7015 (mark_regno_live, process_bb_lives): Pass new parameter value to
5c8bae59
VM
7016 make_hard_regno_born.
7017
6c4d60f8
JJ
70182015-01-23 Jakub Jelinek <jakub@redhat.com>
7019
7020 PR rtl-optimization/63637
7021 PR rtl-optimization/60663
7022 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
7023 if elt->cost is MAX_COST for ASM_OPERANDS.
7024 (find_sets_in_insn): Fix up comment typo.
7025 (cse_insn): Don't set src_volatile for all non-volatile
7026 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
7027 or with "memory" clobber. Set elt->cost to MAX_COST
7028 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
7029 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
7030
b2d7aa9a
UB
70312015-01-23 Uros Bizjak <ubizjak@gmail.com>
7032
7033 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
7034 alternative 1.
7035
70362015-01-23 Uros Bizjak <ubizjak@gmail.com>
7bbf9734
UB
7037
7038 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
7039 libgcc/config/i386/elf-lib.h.
7040
b8910447
JJ
70412015-01-23 Jakub Jelinek <jakub@redhat.com>
7042
29585247
JJ
7043 PR driver/64737
7044 * gcc.c (print_configuration): Don't print a blank line at the end
7045 here...
7046 (run_attempt): ... but here unstead.
7047
b8910447
JJ
7048 PR middle-end/64734
7049 * omp-low.c (scan_sharing_clauses): Don't ignore
7050 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
7051 on target data/update constructs.
7052
f75e07bc
BE
70532015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
7054
7055 PR target/50928
7056 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
7057 (DEBUG_RELOAD): Removed define.
7058 (m32c_limit_reload_class): Enable traces with if DEBUG0.
7059 (m32c_function_arg): Added a type cast.
7060 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
7061 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
7062 * config/m32c/bitops.md (andqi3_16): Likewise.
7063 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
7064 (push_a01_l): Likewise.
7065
6fc2d0f3
DM
70662015-01-23 David Malcolm <dmalcolm@redhat.com>
7067
7068 PR jit/64721
7069 * main.c (main): Construct toplev instances with init_signals=true.
7070 * toplev.c (general_init): Add param "init_signals", and use it to
7071 conditionalize the calls to signal and host_hooks.extra_signals.
7072 (toplev::toplev): Add param "init_signals".
7073 (toplev::main): When invoking general_init, pass m_init_signals
7074 to control whether signal-handlers are installed.
7075 * toplev.h (toplev::toplev): Add param "init_signals".
7076 (toplev::m_init_signals): New field.
7077
ca72dad5
DM
70782015-01-23 David Malcolm <dmalcolm@redhat.com>
7079
7080 PR jit/64722
7081 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
7082 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
7083 latter may be affected by the former (e.g. on i686).
7084
97440db5
ML
70852015-01-23 Martin Liska <mliska@suse.cz>
7086
7087 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
7088 false positive during profiledbootstrap.
7089
a0c88d06
TV
70902015-01-23 Tom de Vries <tom@codesourcery.com>
7091
7092 PR libgomp/64672
7093 * lto-opts.c (lto_write_options): Output non-explicit conservative
7094 -fno-openacc.
7095 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
7096 (append_compiler_options): Pass -fopenacc through.
7097
1506ae0e
TV
70982015-01-23 Tom de Vries <tom@codesourcery.com>
7099
7100 PR libgomp/64707
7101 * lto-opts.c (lto_write_options): Output non-explicit conservative
7102 -fno-openmp.
7103 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
7104 (append_compiler_options): Pass -fopenmp through.
7105
b55f40c1
JJ
71062015-01-23 Jakub Jelinek <jakub@redhat.com>
7107
bd849fe6
JJ
7108 PR debug/64511
7109 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
7110 GTY markup.
7111
b55f40c1
JJ
7112 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
7113 * diagnostic.def (DK_ICE_NOBT): New kind.
7114 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
7115 like DK_ICE, but never print backtrace.
7116 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
7117 (internal_error_no_backtrace): New function.
7118 * gcc.c (execute): Use internal_error_no_backtrace instead of
7119 internal_error.
7120
5e7821eb
JL
71212015-01-22 Jeff Law <law@redhat.com>
7122
7123 PR target/52076
7124 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
7125 improve code density for small immediate to memory case.
7126 (insv): Better handle bitfield assignments when the field is
7127 being set to all ones.
7128 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
7129 operand predicate.
7130
33eaef4b
RO
71312015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7132 Jakub Jelinek <jakub@redhat.com>
7133
7134 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
7135 for !TARGET_LIBC_PROVIDES_SSP version and
7136 -fstack-protector-{all,strong,explicit} otherwise.
7137 * config/freebsd.h (LINK_SSP_SPEC): Handle
7138 -fstack-protector-{strong,explicit}.
7139
d75de25b
JH
71402015-01-22 Jan Hubicka <hubicka@ucw.cz>
7141 H.J. Lu <hongjiu.lu@intel.com>
7142
7143 PR ipa/64694
7144 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
7145 heap.
7146
ff1803c1
WM
71472015-01-22 Wei Mi <wmi@google.com>
7148
7149 PR rtl-optimization/64557
7150 * dse.c (record_store): Call get_addr for mem_addr.
7151 (check_mem_read_rtx): Likewise.
7152
f77107e8
EB
71532015-01-22 Eric Botcazou <ebotcazou@adacore.com>
7154
7155 * fold-const.c (const_binop): Add early return for non-tcc_binary.
7156
71572015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
e34a176a 7158
0c799056
CG
7159 * toplev.c (init_local_tick): Process the failure when read
7160 fails for random_seed.
7161
e34a176a
CG
7162 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
7163 'pretty_name' to avoid memory overflow.
7164
f4b05e74
RB
71652015-01-22 Richard Biener <rguenther@suse.de>
7166
7167 PR middle-end/64728
7168 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
7169 abnormal coalescing on undefined SSA names.
7170
98321768
UB
71712015-22-01 Uros Bizjak <ubizjak@gmail.com>
7172
7173 PR target/64688
7174 PR target/64477
7175 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
7176 for alternative 3.
a0d8720a 7177 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
98321768 7178
6c4ffa6c
TS
71792015-01-22 Trevor Saunders <tsaunders@mozilla.com>
7180
7181 PR middle-end/63325
7182 * fold-const.c (fold_checksum_tree): Don't include value of
7183 expr->decl_with_vis.symtab_node in the checksum.
7184
cf5b43b0
AK
71852015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7186
f662ac2a 7187 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
cf5b43b0 7188
f78a6ae4
MO
71892015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
7190
7191 PR driver/64690
7192 * gcc.c (insert_comments): New function.
7193 (try_generate_repro): Call it.
7194 (append_text): Removed.
7195
0c3068e0
RB
71962015-01-22 Richard Biener <rguenther@suse.de>
7197
7198 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
7199 with IL incompatible options. Properly honor user optimize
7200 attributes.
7201
c8b90a13
SB
72022015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
7203
7204 PR rtl-optimization/64682
7205 * combine.c (distribute_notes): When moving a death note for
7206 a register that is set in the new I2, make sure to put it
7207 before that new I2.
7208
1c2fd8c7
DE
72092015-01-21 David Edelsohn <dje.gcc@gmail.com>
7210
7211 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
7212 not TARGET_DEFAULT.
7213
6c5ed3f1
JJ
72142015-01-21 Jakub Jelinek <jakub@redhat.com>
7215
98f51044
JJ
7216 PR debug/64511
7217 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
7218 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
7219 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
7220
d2632e47
JJ
7221 PR sanitizer/64706
7222 * doc/invoke.texi (-fsanitize=vptr): Document.
7223
6c5ed3f1
JJ
7224 PR rtl-optimization/62078
7225 * dse.c: Include cfgcleanup.h.
7226 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
7227 anything call purge_all_dead_edges and cleanup_cfg at the end
7228 of the pass.
7229
173148bb
JH
72302015-01-21 Jan Hubicka <hubicka@ucw.cz>
7231
7232 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
7233 edges.
7234
2f3c4b69
BE
72352015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7236
7237 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
7238 decl attribute.
7239
b6b782b9
DS
72402015-01-21 David Sherwood <david.sherwood@arm.com>
7241 Tejas Belagod <Tejas.Belagod@arm.com>
7242
7243 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
7244 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
7245 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
7246 Removed.
7247
668046d1
DS
72482015-01-21 David Sherwood <david.sherwood@arm.com>
7249 Tejas Belagod <Tejas.Belagod@arm.com>
7250
7251 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
7252 (aarch64_reverse_mask): New decls.
7253 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
7254 (insn_count): New mode_attr.
7255 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
7256 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
7257 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
7258 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
7259 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
7260 (aarch64_simd_st4): New patterns.
7261 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
7262 (aarch64_reverse_mask): New functions.
7263
2d8c6dc1
AH
72642015-01-21 Richard Sandiford <richard.sandiford@arm.com>
7265
7266 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
7267 Declare.
7268 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
7269 addressing modes for BE.
7270 (aarch64_print_operand): Add 'R' specifier.
7271 (aarch64_simd_disambiguate_copy): Delete.
7272 (aarch64_simd_emit_reg_reg_move): New function.
7273 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
7274 in define_splits for structural moves.
7275 (mov<mode>): Use less restrictive predicates.
7276 (*aarch64_mov<mode>): Simplify and only allow for LE.
7277 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
7278
9ab41c76
AH
72792015-01-21 Alan Hayward <alan.hayward@arm.com>
7280
f84b87aa 7281 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
9ab41c76 7282
4005b96a
RH
72832015-01-21 Richard Henderson <rth@redhat.com>
7284
7285 PR target/64669
7286 * ccmp.c (used_in_cond_stmt_p): Remove.
7287 (expand_ccmp_expr): Don't use it.
7288
cf836bd3
NC
72892015-01-21 Nick Clifton <nickc@redhat.com>
7290
7291 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
7292 PARALLELs.
7293
cbf5d0e7
RB
72942015-01-21 Richard Biener <rguenther@suse.de>
7295
7296 PR middle-end/64313
7297 * tree-core.h (builtin_info, builtin_info_type): Turn from
7298 an object with two arrays into an array of an object with
7299 decl and two flags, implicit_p and declared_p.
7300 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
7301 set_builtin_decl, set_builtin_decl_implicit_p,
7302 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
7303 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
7304 * builtins.c (builtin_info): Adjust.
7305 * gimplify.c (gimplify_addr_expr): References to builtins
7306 that have been declared by the user makes them eligible for
7307 use by the compiler. Call set_builtin_decl_implicit_p on them.
7308
1f36fbf4
JL
73092015-01-20 Jeff Law <law@redhat.com>
7310
7311 PR target/59946
7312 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
7313 allow pc-relative addresses in operand predicates or constraints.
7314
18092bec
BC
73152015-01-21 Bin Cheng <bin.cheng@arm.com>
7316
7317 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
7318 neon on aarch32 processors for stringops.
7319
befb1f36
JH
73202015-01-19 Jan Hubicka <hubicka@ucw.cz>
7321
7322 PR ipa/63576
7323 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
7324
bb1e543c
JH
73252015-01-19 Jan Hubicka <hubicka@ucw.cz>
7326
7327 PR lto/45375
7328 * ipa-inline.c: Include lto-streamer.h
7329 (report_inline_failed_reason): Output source file differences and
7330 flags on optimization/target node mismatch.
7331 (can_inline_edge_p): Consider caller to be the outer inline function;
7332 be less restrictive about matching opimize and optimize_size attributes.
7333 (inline_account_function_p): Break out from ...
7334 (inline_small_functions): ... here.
7335 * ipa-inline-transform.c (clone_inlined_nodes): Use
7336 inline_account_function_p.
7337 (inline_call): Use optimize attribution; use inline_account_function_p.
7338 (inline_transform): Use opt_for_fn.
7339 * ipa-inline.h (inline_account_function_p): Declare.
7340
17cb4283
JJ
73412015-01-20 Jakub Jelinek <jakub@redhat.com>
7342
7343 PR debug/64663
7344 * dwarf2out.c (decl_piece_node): Don't put bitsize into
7345 mode if bitsize <= 0.
7346 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
7347 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
7348 sizes and positions.
7349
a9ce4e4a
CLT
73502015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
7351
7352 * config/nios2/nios2.c (nios2_asm_file_end): Implement
7353 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
7354 needed.
7355 (TARGET_ASM_FILE_END): Define.
7356
237c70c3
MK
73572015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7358
7359 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
7360 (struct tune_params): Use the enum.
7361 * arm.c (arm_*_tune): Update.
7362 (arm_option_override): Update.
7363
2fd2ae34
RB
73642015-01-20 Richard Biener <rguenther@suse.de>
7365
7366 PR ipa/64684
7367 * ipa-reference.c (add_static_var): Inline ...
7368 (analyze_function): ... here after splitting out from ...
7369 (is_proper_for_analysis): ... this.
7370
c896d4b4
MW
73712015-01-20 Matthew Wahab <matthew.wahab@arm.com>
7372
7373 PR target/64149
7374 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
7375 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
7376 replace the conditional with it's true branch.
7377 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
7378 (arm_lra_p): Remove.
7379
a76ffff1
EB
73802015-01-20 Eric Botcazou <ebotcazou@adacore.com>
7381
7382 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
7383
42df23a6
PK
73842015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7385
f84b87aa
UB
7386 * config/tilegx/mul-tables.c: Move symtab.h include after
7387 coretypes.h include.
7388 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
7389 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
7390 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
7391 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
7392 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
42df23a6 7393
7002f3bd
IZ
73942015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
7395
7396 PR bootstrap/64676
7397 Revert:
7398 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
7399
7400 PR rtl-optimization/64081
7401 * loop-iv.c (def_pred_latch_p): New function.
7402 (latch_dominating_def): Allow specific cases with non-single
7403 definitions.
7404 (iv_get_reaching_def): Likewise.
7405 (check_complex_exit_p): New function.
7406 (check_simple_exit): Use check_complex_exit_p to allow certain cases
7407 with exits not executing on any iteration.
7408
a5fcfb6d
JH
74092015-01-19 Jan Hubicka <hubicka@ucw.cz>
7410
7411 PR lto/45375
7412 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
7413 to set branch cost.
7414
a1aff58f
JH
74152015-01-19 Jan Hubicka <hubicka@ucw.cz>
7416
7417 PR lto/45375
7418 * i386.c (gate): Check flag_expensive_optimizations and
7419 optimize_size.
7420 (ix86_option_override_internal): Drop optimize_size condition
7421 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
7422 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
7423 MASK_PREFER_AVX128.
7424 (ix86_avx256_split_vector_move_misalign,
7425 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
7426 * sse.md (all uses of TARGET_PREFER_AVX128): Add
7427 optimize_insn_for_speed_p check.
7428
aa0c464a
MF
74292015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
7430
7431 * config/mips/mips.h (FP_ASM_SPEC): New define.
7432 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
7433 instead.
7434
b151091d
OE
74352015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
7436
7437 PR target/53988
7438 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
7439 nullptr for insn when reaching the first insn.
7440 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
7441 (sh_insn_operands_modified_between_p): Add nullptr check.
7442 (sh_find_extending_set_of_reg): Fix log message. Don't accept
7443 sign extending mem load if the insn contains any UNSPEC or
7444 UNSPEC_VOLATILE.
7445
c2db7204
JH
74462015-01-19 Jan Hubicka <hubicka@ucw.cz>
7447
7448 * params.def (inline-unit-growth): Drop to 15%.
7449 * invoke.texi (inline-unit-growth): Document change.
7450
6b984df0
ML
74512015-01-19 Martin Liska <mliska@suse.cz>
7452
7453 PR ipa/64668
7454 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
7455 function for second argument of OBJ_TYPE_REF.
7456
9789b553
JH
74572015-01-19 Jan Hubicka <hubicka@ucw.cz>
7458
7459 PR ipa/64218
7460 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
7461 whether function is an alias.
7462
68c9467f
JH
74632015-01-19 Jan Hubicka <hubicka@ucw.cz>
7464
7465 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
7466 cases.
7467
6ce54d0f
VM
74682015-01-19 Vladimir Makarov <vmakarov@redhat.com>
7469
7470 PR rtl-optimization/64671
7471 * lra-remat.c (operand_to_remat): Don't consider jump and call
7472 insns.
7473
b9f12a01
DE
74742015-01-19 David Edelsohn <dje.gcc@gmail.com>
7475
34e72ece 7476 PR target/59828
b9f12a01
DE
7477 * config/rs6000/default64.h: Include rs6000-cpus.def.
7478 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
7479 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
7480 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
7481 and POWER8.
7482 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
7483 POWER8.
7484 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
7485 pseudo-op to specify assembler dialect.
7486
90190bb3
ML
74872015-01-19 Martin Liska <mliska@suse.cz>
7488
7489 PR ipa/64664
7490 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
7491 Handle safe potentially removed nodes during filtering.
7492
185c9e56
ML
74932015-01-19 Martin Liska <mliska@suse.cz>
7494
7495 * doc/extend.texi (no_icf): Add new attribute description.
7496 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
7497 where the pass attempts to merge a function with no_icf attribute.
7498
b24671f7
RR
74992015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7500
7501 PR target/64532
7502 * doc/md.texi (ARM Options): Document register constraints.
7503
af129d07
JW
75042015-01-19 Jiong Wang <jiong.wang@arm.com>
7505 Andrew Pinski <apinski@cavium.com>
7506
7507 PR target/64304
7508 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
7509 (ashl<mode>3): Don't expand if operands[2] is not constant.
7510
36650ec6
KT
75112015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7512
7513 PR target/64448
7514 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
7515 Match xor-and-xor RTL pattern.
7516
dfd3a76c
IZ
75172015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
7518
7519 PR rtl-optimization/64081
7520 * loop-iv.c (def_pred_latch_p): New function.
7521 (latch_dominating_def): Allow specific cases with non-single
7522 definitions.
7523 (iv_get_reaching_def): Likewise.
7524 (check_complex_exit_p): New function.
7525 (check_simple_exit): Use check_complex_exit_p to allow certain cases
7526 with exits not executing on any iteration.
7527
ff6a32a9
JJ
75282015-01-19 Jakub Jelinek <jakub@redhat.com>
7529
7530 * common.opt (fgraphite): Fix a typo.
7531
7abab3d1
FY
75322015-01-19 Felix Yang <felix.yang@huawei.com>
7533
7534 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
7535 pattern.
7536 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
7537 uminp, smax_nanp, smin_nanp): New builtins.
7538 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
7539 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
7540 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
7541 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
7542 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
7543 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
7544 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
7545 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
7546 vpminnms_f32): Rewrite using builtin functions.
7547
128b26dc
TS
75482015-01-19 Thomas Schwinge <thomas@codesourcery.com>
7549
bed62c21 7550 PR libgomp/64625
128b26dc
TS
7551 * omp-low.c (offload_symbol_decl): Remove variable.
7552 (get_offload_symbol_decl): Remove function.
7553 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
7554 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
7555 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
7556 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
7557 BUILT_IN_GOACC_UPDATE don't pass it at all.
7558
3d36be01
IE
75592015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
7560
7561 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
7562 callers.
7563
c11d86b4
IE
75642015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
7565
7566 * ipa-chkp.c (chkp_produce_thunks): Add early param
7567 to split thunks production into two passes. Keep
7568 'always_inline' function bodies after the first pass.
7569 (pass_data_ipa_chkp_early_produce_thunks): New.
7570 (pass_ipa_chkp_early_produce_thunks): New.
7571 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
7572 chkp_produce_thunks signature.
7573 (make_pass_ipa_chkp_early_produce_thunks): New.
7574 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
7575 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
7576 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
7577
a89bd7d2
JH
75782015-01-18 Jan Hubicka <hubicka@ucw.cz>
7579
7580 * cgraph.c (cgraph_node::dump): Dump profile flags.
7581
15a43a0c
OE
75822015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
7583
7584 PR target/64652
7585 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
7586 reg appear first in the parallel.
7587
b16650ac
JH
75882015-01-18 Jan Hubicka <hubicka@ucw.cz>
7589
7590 * ipa-reference.c (set_reference_optimization_summary,
a89bd7d2
JH
7591 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
7592 disabled.
b16650ac 7593 (ignore_module_statics): New static var.
a89bd7d2
JH
7594 (propagate_bits): If ipa-reference is disabled, do not look into local
7595 properties.
b16650ac
JH
7596 (analyze_function): Disable analysis when ipa_reference is disabled.
7597 (generate_summary): Do not dump when reference is disabled;
7598 collect vars accessed from functions with ipa-reference disabled.
7599 (get_read_write_all_from_node): When ipa-reference is disabled, use the
7600 node flags.
7601 (gate): Enable for LTO.
7602 (ignore_edge_p): New function.
7603 (propagate): Skip functions w/o ipa-reference analysis.
7604 * optc-save-gen.awk: Handle optimize_debug correctly.
7605 * opth-gen.awk: Likewise.
7606 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
7607 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
7608 fira-share-save-slots, fira-share-spill-slots,
7609 fmodulo-sched-allow-regmoves, fpartial-inlining,
7610 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
7611 ftracer, ftree-parallelize-loops, fassociative-math,
7612 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
7613 Optimization
7614 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
f84b87aa
UB
7615 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
7616 Optimization.
b16650ac
JH
7617 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
7618 Fix for IPA.
7619
33c3b6be
JH
76202015-01-18 Jan Hubicka <hubicka@ucw.cz>
7621
7622 PR ipa/64378
7623 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
7624 flag correctly.
7625 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
7626
d28701a2
SL
76272015-01-18 Sandra Loosemore <sandra@codesourcery.com>
7628
7629 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
7630 Remove duplicate option listings.
7631
1500c66f
FY
76322015-01-18 Felix Yang <felix.yang@huawei.com>
7633
7634 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
7635 (autofdo_source_profile::get_callsite_total_count,
7636 function_instance::get_function_instance_by_decl,
7637 string_table::get_index, string_table::get_index_by_decl,
7638 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
7639 Fix comment typos. Reformatting and minor code rearrangement.
7640
779fc8fb
SB
76412015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
7642
7643 * config/rs6000/rs6000.md (probe_stack): Delete.
7644 (probe_stack_address): New.
7645
ffafb4f0
SB
76462015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
7647
7648 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
7649 to test for 32-bit ABIs, not !TARGET_POWERPC64.
7650
436bd917
SB
76512015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
7652
7653 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
7654 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
7655 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
7656 snafu.
7657 (rs6000_libcall_value): Use the new function.
7658
3b97ab5a
SL
76592015-01-17 Sandra Loosemore <sandra@codesourcery.com>
7660
7661 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
7662
33c2207d
EB
76632015-01-17 Eric Botcazou <ebotcazou@adacore.com>
7664
7665 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
7666 implement a more precise life analysis for it during backward scan.
7667
c3943573
JK
76682015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7669
7670 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
7671
0ed4bf92
BS
76722015-01-17 Bernd Schmidt <bernds@codesourcery.com>
7673
7674 PR rtl-optimization/52773
7675 * calls.c (emit_library_call_value): When pushing arguments use
7676 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
7677 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
7678 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
7679
bd5fb71c
JL
76802015-01-17 Jeff Law <law@redhat.com>
7681
7682 PR rtl-optimization/32790
7683 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
7684 not ZERO_EXTEND in SET_DESTs.
7685
aed38127
AM
76862015-01-17 Alan Modra <amodra@gmail.com>
7687
7688 * cprop.c (do_local_cprop): Revert last change.
7689
48c528ae
DD
76902015-01-16 DJ Delorie <dj@redhat.com>
7691 Nick Clifton <nickc@redhat.com>
7692
7693 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
7694 (addhi3_real): Likewise. Fix [HL+0] syntax.
7695 (subqi3_real): Likewise.
7696 (subhi3_real): Likewise.
7697 (cbranchqi4_real): Likewise. Allow saddr,#imm.
7698 (cbranchhi4_real): Likewise.
7699 (cbranchhi4_real_inverted): Likewise.
7700 (cbranchsi4_real_lt): Likewise.
7701 (cbranchsi4_real_ge): Likewise.
7702 (cbranchsi4_real_ge): Likewise.
7703 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
7704 (sub<mode>3_virt): Likewise.
7705 (cbranchqi4_virt): Likewise.
7706 (cbranchhi4_virt): Likewise.
7707 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
7708 always use '[reg+imm]' even when imm is zero.
7709 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
7710 (rl78_general_operand): New.
7711 (rl78_nonimmediate_operand): New.
7712 (rl78_nonfar_operand): Use them.
7713 (rl78_nonfar_nonimm_operand): Likewise.
7714 (rl78_stack_based_mem): Fix.
7715 * config/rl78/constraints.md (Ibqi): New.
7716 (IBqi): New.
7717 (Wsa): New.
7718 (Wsf): New.
7719 (Cs1): Fix.
7720 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
7721 (iorqi3): Likewise.
7722 (xorqi3): Likewise.
7723 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
7724
f84b87aa
UB
7725 * config/rl78/constrains (Qs8): New constraint.
7726 * config/rl78/rl78.c (rl78_flags_already_set): New function.
7727 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
7728 * config/rl78/rl78-real.md (update_Z): New attribute.
7729 Update patterns to set it.
7730 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
7731 shorter compare and branch sequence can be used.
7732 (cbranchhi4_real): Likewise.
7733 (cbranchhi4_real_inverted): Likewise.
48c528ae
DD
7734
7735 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
7736 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
7737 address space.
7738 * config/rl78/rl78.c (rl78_get_name_encoding): New.
7739 (rl78_option_override): Allow -mes0 only if C.
7740 (characterize_address): Support subregs of symbol_refs.
7741 (rl78_addr_space_address_mode): Move. Add __near.
7742 (rl78_far_p): Likewise.
7743 (rl78_addr_space_pointer_mode): Likewise.
7744 (rl78_as_legitimate_address): Likewise.
7745 (rl78_addr_space_subset_p): Likewise.
7746 (rl78_addr_space_convert): Likewise.
7747 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
7748 symbols with -mes0.
7749 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
7750 addressing.
7751 (rl78_alloc_physical_registers_op1): Change logic to prefer
7752 symbol[BC] addressing.
7753 (frodata_section): New.
7754 (rl78_asm_init_sections): Initialize it.
7755 (rl78_select_section): Put __far readonly symbols in .frodata.
7756 (rl78_make_type_far): New.
f84b87aa
UB
7757 (rl78_insert_attributes): Force all readonly symbols to be
7758 __far when -mes0.
48c528ae
DD
7759 (rl78_asm_out_integer): New.
7760 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
7761 * config/rl78/rl78.opt (-mes0): New.
7762
7763 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
7764 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
7765 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
7766 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
7767 (rl78_saddr_p): New.
7768 (rl78_output_aligned_common): New.
7769 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
7770 (rl78_handle_saddr_attribute): New.
7771 (rl78_handle_naked_attribute): New.
7772 (rl78_attribute_table): Add saddr.
7773 (rl78_print_operand_1): Don't print '!' on saddr operands.
7774 (rl78_print_operand_1): Strip encodings.
7775 (rl78_sfr_p): New.
7776 (rl78_strip_name_encoding): New.
7777 (rl78_attrlist_to_encoding): New.
7778 (rl78_encode_section_info): New.
7779 (rl78_asm_init_sections): New.
7780 (rl78_select_section): New.
7781 (rl78_output_labelref): New.
7782 (rl78_output_aligned_common): New.
7783 (rl78_asm_out_integer): New.
7784 (rl78_asm_ctor_dtor): New.
7785 (rl78_asm_constructor): New.
7786 (rl78_asm_destructor): New.
7787
7788 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
7789 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
7790 (transcode_memory_rtx): Update.
7791 (rl78_expand_epilogue): Use A_REG instead of 0.
7792
340c7904
MK
77932015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7794
7795 * config/arm/arm-protos.h (struct tune_params): New field
7796 sched_autopref_queue_depth.
7797 * config/arm/arm.c (sched-int.h): Include header.
7798 (arm_first_cycle_multipass_dfa_lookahead_guard,)
7799 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
7800 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
7801 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
7802 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
7803 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
7804 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
7805 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
7806 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
7807 * config/arm/t-arm (arm.o): Update.
7808 * haifa-sched.c (update_insn_after_change): Update.
7809 (rank_for_schedule): Use auto-prefetcher model, if requested.
7810 (autopref_multipass_init): New static function.
7811 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
7812 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
7813 variable for debug dumps.
7814 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
7815 (autopref_multipass_dfa_lookahead_guard): New global function that
7816 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
7817 (init_h_i_d): Update.
7818 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
7819 * sched-int.h (enum autopref_multipass_data_status): New const enum.
7820 (autopref_multipass_data_): Structure for auto-prefetcher data.
7821 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
7822 (struct _haifa_insn_data:autopref_multipass_data): New field.
7823 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
7824 (autopref_multipass_dfa_lookahead_guard): Declare.
7825
71acd477
MK
78262015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7827
7828 * rtlanal.c (get_base_term): Handle SCRATCH.
7829
d03f7e44
MK
78302015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7831
7832 * config/aarch64/aarch64.c
7833 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
7834 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
7835 * config/arm/arm.c
7836 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
7837 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
7838
25d1a5a7
AM
78392015-01-17 Alan Modra <amodra@gmail.com>
7840
7841 * cprop.c (do_local_cprop): Disallow replacement of fixed
7842 hard registers.
7843
a220c9da
KT
78442015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7845
7846 PR target/62066
7847 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
7848 early return 0.
7849
cbf9a566
BE
78502015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
7851
55d9ceab 7852 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
cbf9a566
BE
7853 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
7854
2a37d9d0
KT
78552015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7856
7857 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
7858 * config/arm/thumb1.md: ... Here.
7859
325df0eb
SB
78602015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
7861
7862 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
7863 TImode for TARGET_32BIT.
7864
77688d70
SB
78652015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
7866
7867 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
7868 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
7869 as ...
7870 (rs6000_abi_word_mode): New function.
7871
ed821220
SB
78722015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
7873
7874 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
7875 instead of UNITS_PER_WORD to describe the size of stack slots.
7876
42373118
SB
78772015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
7878
7879 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
7880 as rs6000_promote_function_mode. Move comment to there.
7881 (rs6000_promote_function_mode): New function.
7882
96922e4c
SB
78832015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
7884
7885 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
7886 -mpowerpc64 is active.
7887
ed22611a
IE
78882015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
7889
7890 PR middle-end/64353
7891 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
7892 virtuals on start.
7893
16ab99ba
JG
78942015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
7895
7896 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
7897 introduced in revision 219724.
7898
f2a03a72 78992015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
f84b87aa 7900 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
f2a03a72
KT
7901
7902 PR target/64263
7903 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
7904 destination is not a GP reg.
7905 (*movdi_aarch64): Likewise.
7906
8168ece0
DE
79072015-01-16 David Edelsohn <dje.gcc@gmail.com>
7908
7909 PR target/64623
7910 * config/rs6000/default64.h: Revert ISA change.
7911
666e8e06
RB
79122015-01-16 Richard Biener <rguenther@suse.de>
7913
7914 PR middle-end/64614
7915 * tree-ssa-uninit.c: Include tree-cfg.h.
7916 (MAX_SWITCH_CASES): New define.
7917 (convert_control_dep_chain_into_preds): Handle switch statements.
7918 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
7919 (normalize_one_pred_1): Do not split bit-manipulations.
7920 Record (x & CST).
7921
0399a8db
RB
79222015-01-16 Richard Biener <rguenther@suse.de>
7923
7924 PR tree-optimization/64568
7925 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
7926 complex load rewriting for TARGET_MEM_REFs.
7927
2a1dcf27
UB
79282015-01-16 Uros Bizjak <ubizjak@gmail.com>
7929
7930 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
7931
98d404be
MW
79322015-01-16 Matthew Wahab <matthew.wahab@arm.com>
7933
7934 PR target/64149
7935 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
7936 variable.
7937 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
7938 (aarch64_lra_p): Remove.
7939
06201ad5
IE
79402015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
7941
7942 PR target/64363
7943 * ipa-chkp.h (chkp_instrumentable_p): New.
7944 * ipa-chkp.c: Include tree-inline.h.
7945 (chkp_instrumentable_p): New.
7946 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
7947 Fix processing of not instrumentable functions.
7948 (chkp_versioning): Use chkp_instrumentable_p. Warn about
7949 not instrumentable functions.
7950 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
7951 chkp_instrumentable_p.
7952 * tree-inline.h (copy_forbidden): New.
7953 * tree-inline.c (copy_forbidden): Not static anymore.
7954
eb13ee31
RO
79552015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7956
7957 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
7958 ptr1, ptr2 unused.
7959
8b8e23de
RS
79602015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
7961
7962 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
7963 type OP_OUT to OP_INOUT.
7964
ece4d1ac
RS
79652015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
7966
7967 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
7968 (high x) y) to y if x and y have the same base.
7969
e0ae0288
JG
79702015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
7971
7972 * config/arm/cortex-a57.md: New.
7973 * config/aarch64/aarch64.md: Include it.
7974 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
7975 * config/aarch64/aarch64-tune.md: Regenerate.
7976
5f3bc026
ZC
79772015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
7978
7979 PR target/64015
7980 * ccmp.c (expand_ccmp_next): New function.
7981 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
7982 and compare insn sequence.
7983 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
7984 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
7985 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
7986 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
7987 (*ccmp_ior): Changed to ccmp_ior<mode>.
7988 (cmp<mode>): New pattern.
7989 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
7990 parameters.
7991 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
7992
3e362970
IT
79932015-01-16 Ilya Tocar <ilya.tocar@intel.com>
7994
7995 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
7996 _mm256_bsrli_epi128): New.
7997 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
7998
e623cedf
JW
79992015-01-15 Jiong Wang <jiong.wang@arm.com>
8000
8001 * expmed.c (store_bit_field_using_insv): Improve warning message.
8002 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
8003
4ae9783e
JW
80042015-01-15 Jiong Wang <jiong.wang@arm.com>
8005
8006 PR rtl-optimization/64011
8007 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
8008 there is partial overflow.
8009
d6529176
CJW
80102015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
8011
8012 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
8013 prototype.
8014 (nds32_expand_epilogue_v3pop): Likewise.
8015 * config/nds32/nds32.md (sibcall): Define this for sibling call
8016 optimization.
8017 (sibcall_register): Likewise.
8018 (sibcall_immediate): Likewise.
8019 (sibcall_value): Likewise.
8020 (sibcall_value_register): Likewise.
8021 (sibcall_value_immediate): Likewise.
8022 (sibcall_epilogue): Likewise.
8023 (epilogue): Pass false to indicate this is not a sibcall epilogue.
8024 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
8025 (nds32_expand_epilogue_v3pop): Likewise.
8026
03390cda
CJW
80272015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
8028
8029 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
8030 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
8031 (return_internal): New.
8032 (return): Define this named pattern.
8033 (simple_return): Define this named pattern.
8034 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
8035 pattern instead of unspec_volatile_func_return.
8036 (nds32_expand_epilogue_v3pop): Likewise.
8037 (nds32_can_use_return_insn): New function.
8038
aa2642ef
CJW
80392015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
8040
8041 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
8042 * config/nds32/nds32.md (pop25return): New.
8043 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
8044 pop25return pattern.
8045
f959367e
CJW
80462015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
8047
8048 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
8049 -mforbid-fp-as-gp, and -mex9 options.
8050
5a4ba50e
CJW
80512015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
8052
8053 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
8054 remove -mgp-direct option.
8055
3620b606 80562015-01-15 Jan Hubicka <hubicka@ucw.cz>
c8d7835b 8057
3620b606
JH
8058 * doc/invoke.texi (--param early-inlining-insns): Update default value.
8059 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
8060
52d36202
JH
80612015-01-15 Jan Hubicka <hubicka@ucw.cz>
8062
8063 * ipa-inline.c (inline_small_functions): Work around hints
8064 cache issue.
8065
56314783
SL
80662015-01-15 Sandra Loosemore <sandra@codesourcery.com>
8067
8068 PR target/59710
8069 * doc/invoke.texi (Option Summary): Document new Nios II
8070 -mgpopt= syntax.
8071 (Nios II Options): Likewise.
8072 * config/nios2/nios2.opt: Add -mgpopt= option support.
8073 Modify existing -mgpopt and -mno-gpopt options to be aliases.
8074 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
8075 * config/nios2/nios2.c (nios2_option_override): Adjust
8076 -mgpopt defaulting.
8077 (nios2_in_small_data_p): Return true for explicit small data
8078 sections even with -G0.
8079 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
8080 option choices.
8081
8ccc8042
JH
80822015-01-15 Jan Hubicka <hubicka@ucw.cz>
8083
8084 PR ipa/64612
8085 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
8086 of comdat locals.
8087 (inline_call): Fix removal of aliases.
8088
35228ac7
JJ
80892015-01-15 Jakub Jelinek <jakub@redhat.com>
8090
8091 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
8092 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
8093 * opts.c (common_handle_option): Add -fsanitize=vptr.
8094 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
8095 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
8096 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
8097 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
8098 (ubsan_expand_vptr_ifn): New prototype.
8099 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
8100 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
8101 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
8102 expand_LOOP_VECTORIZED): Make argument nameless, remove
8103 ATTRIBUTE_UNUSED.
8104 (expand_UBSAN_VPTR): New function.
8105 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
8106 in fn spec.
8107 (UBSAN_VPTR): New internal function.
8108 * sanopt.c (tree_map_traits): Renamed to ...
8109 (sanopt_tree_map_traits): ... this.
8110 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
8111 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
8112 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
8113 (maybe_optimize_ubsan_vptr_ifn): New function.
8114 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
8115 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
8116 -fsanitize=vptr.
8117 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
8118 internal calls like pure functions for aliasing, even when they
8119 have other side-effects that prevent making them ECF_PURE.
8120 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
8121 (ubsan_expand_vptr_ifn): New function.
8122
d1457701
VM
81232015-01-15 Vladimir Makarov <vmakarov@redhat.com>
8124
8125 PR rtl-optimization/64110
8126 * stmt.c (parse_output_constraint): Process '^' and '$'.
8127 (parse_input_constraint): Ditto.
8128 * lra-constraints.c (process_alt_operands): Process the new
8129 constraints.
8130 * ira-costs.c (record_reg_classes): Process the new constraint
8131 '^'.
8132 * genoutput.c (indep_constraints): Add '^' and '$'.
8133 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
8134 * doc/md.texi: Add description of the new constraints.
8135
41dbbb37
TS
81362015-01-15 Thomas Schwinge <thomas@codesourcery.com>
8137 Bernd Schmidt <bernds@codesourcery.com>
8138 Cesar Philippidis <cesar@codesourcery.com>
8139 James Norris <jnorris@codesourcery.com>
8140 Tom de Vries <tom@codesourcery.com>
8141 Ilmir Usmanov <i.usmanov@samsung.com>
8142 Dmitry Bocharnikov <dmitry.b@samsung.com>
8143 Evgeny Gavrin <e.gavrin@samsung.com>
8144 Jakub Jelinek <jakub@redhat.com>
8145
8146 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
8147 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
8148 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
8149 New function types.
8150 * builtins.c: Include "gomp-constants.h".
8151 (expand_builtin_acc_on_device): New function.
8152 (expand_builtin, is_inexpensive_builtin): Handle
8153 BUILT_IN_ACC_ON_DEVICE.
8154 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
8155 New macros.
8156 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
8157 flag_openmp.
8158 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
8159 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
8160 i386/intelmic-offload.h.
8161 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
8162 to libgomp and its dependencies.
8163 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
8164 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
8165 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
8166 * config/ia64/hpux.h (LIB_SPEC): Likewise.
8167 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8168 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
8169 * doc/generic.texi: Update for OpenACC changes.
8170 * doc/gimple.texi: Likewise.
8171 * doc/invoke.texi: Likewise.
8172 * doc/sourcebuild.texi: Likewise.
8173 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
8174 GF_OMP_FOR_KIND_OACC_LOOP.
8175 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
8176 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
8177 GF_OMP_TARGET_KIND_OACC_UPDATE,
8178 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
8179 Dump more data.
8180 * gimple.c: Update comments for OpenACC changes.
8181 * gimple.def: Likewise.
8182 * gimple.h: Likewise.
8183 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
8184 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
8185 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
8186 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
8187 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
8188 appropriate place.
8189 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
8190 * gimplify.c: Include "gomp-constants.h".
8191 Update comments for OpenACC changes.
8192 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
8193 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
8194 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
8195 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
8196 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
8197 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
8198 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
8199 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
8200 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
8201 OMP_CLAUSE_SEQ.
8202 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
8203 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
8204 OMP_CLAUSE_SET_MAP_KIND.
8205 (gimplify_oacc_cache): New function.
8206 (gimplify_omp_for): Handle OACC_LOOP.
8207 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
8208 OACC_DATA.
8209 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
8210 OACC_EXIT_DATA, OACC_UPDATE.
8211 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
8212 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
8213 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
8214 (gimplify_body): Consider flag_openacc next to flag_openmp.
8215 * lto-streamer-out.c: Include "gomp-constants.h".
8216 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
8217 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
8218 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
8219 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
8220 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
8221 (BUILT_IN_ACC_ON_DEVICE): New builtins.
8222 * omp-low.c: Include "gomp-constants.h".
8223 Update comments for OpenACC changes.
8224 (struct omp_context): Add reduction_map, gwv_below, gwv_this
8225 members.
8226 (extract_omp_for_data, use_pointer_for_field, install_var_field)
8227 (new_omp_context, delete_omp_context, scan_sharing_clauses)
8228 (create_omp_child_function, scan_omp_for, scan_omp_target)
8229 (check_omp_nesting_restrictions, lower_reduction_clauses)
8230 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
8231 Update for OpenACC changes.
8232 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
8233 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
8234 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
8235 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
8236 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
8237 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
8238 OMP_CLAUSE_MAP_*.
8239 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
8240 Handle GF_OMP_FOR_KIND_OACC_LOOP.
8241 (expand_omp_target, lower_omp_target): Handle
8242 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
8243 GF_OMP_TARGET_KIND_OACC_UPDATE,
8244 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
8245 GF_OMP_TARGET_KIND_OACC_DATA.
8246 (pass_expand_omp::execute, execute_lower_omp)
8247 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
8248 flag_openmp.
8249 (offload_symbol_decl): New variable.
8250 (oacc_get_reduction_array_id, oacc_max_threads)
8251 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
8252 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
8253 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
8254 (oacc_gimple_assign, oacc_initialize_reduction_data)
8255 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
8256 functions.
8257 (is_targetreg_ctx): Remove function.
8258 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
8259 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
8260 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
8261 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
8262 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
8263 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
8264 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
8265 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
8266 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
8267 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
8268 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
8269 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
8270 * tree-core.h: Update comments for OpenACC changes.
8271 (enum omp_clause_map_kind): Remove.
8272 (struct tree_omp_clause): Change type of map_kind member from enum
8273 omp_clause_map_kind to unsigned char.
8274 * tree-inline.c: Update comments for OpenACC changes.
8275 * tree-nested.c: Likewise. Include "gomp-constants.h".
8276 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
8277 (convert_tramp_reference_stmt, convert_gimple_call): Update for
8278 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
8279 OMP_CLAUSE_SET_MAP_KIND.
8280 * tree-pretty-print.c: Include "gomp-constants.h".
8281 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
8282 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
8283 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
8284 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
8285 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
8286 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
8287 instead of OMP_CLAUSE_MAP_*.
8288 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
8289 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
8290 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
8291 * tree-streamer-in.c: Include "gomp-constants.h".
8292 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
8293 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
8294 * tree-streamer-out.c: Include "gomp-constants.h".
8295 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
8296 OMP_CLAUSE_MAP_*.
8297 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
8298 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
8299 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
8300 * tree.c (omp_clause_num_ops): Update accordingly.
8301 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
8302 Likewise.
8303 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
8304 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
8305 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
8306 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
8307 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
8308 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
8309 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
8310 (OMP_CLAUSE_SET_MAP_KIND): New macro.
8311 * varpool.c (varpool_node::get_create): Consider flag_openacc next
8312 to flag_openmp.
8313 * config/i386/intelmic-offload.h: New file.
8314 * config/nvptx/offload.h: Likewise.
8315
548c43e7
PK
83162015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8317
8318 * explow.h: Remove duplicate contents.
8319 * dojump.h: Likewise.
8320
7c21d0ff
RE
83212015-01-15 Richard Earnshaw <rearnsha@arm.com>
8322
8323 * arm.c (arm_xgene_tune): Add default initializer for instruction
8324 fusion.
8325
c23127ce
ML
83262015-01-15 Jan Hubicka <hubicka@ucw.cz>
8327
8328 PR ipa/64068
8329 PR ipa/64559
8330 * ipa.c (symbol_table::remove_unreachable_nodes):
8331 Do not put abstract origins into boundary.
8332
40d54d24
ES
83332015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
8334
8335 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
8336 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
6fb5f2f5 8337
40d54d24 83382015-01-15 Steve Ellcey <sellcey@mips.com>
869b656c 8339
6fb5f2f5
SE
8340 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
8341 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
869b656c 8342 builtins.def, and chkp-builtins.def.
6fb5f2f5 8343
63e533ec 83442015-01-15 David Edelsohn <dje.gcc@gmail.com>
34a8f242
DE
8345
8346 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
8347 ISA 2.7 (POWER8).
8348
42c6b3ca
RB
83492015-01-15 Richard Biener <rguenther@suse.de>
8350
8351 PR tree-optimization/61743
8352 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
8353 information on PHIs for some simple cases.
8354
cd3246ea
PT
83552015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
8356
8357 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
8358 Include xgene1.md.
8359 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
8360 * config/arm/arm-cores.def (xgene1): New entry.
8361 * config/arm/arm-tables.opt: Regenerate.
8362 * config/arm/arm-tune.md: Regenerate.
8363 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
8364
e9d5a1a0
YR
83652015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
8366
8367 * tree-if-conv.c: Include hash-map.h.
8368 (aggressive_if_conv): New variable.
8369 (fold_build_cond_expr): Add simplification of non-zero condition.
8370 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
8371 destination block is not always executed.
8372 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
8373 than two predecessors if AGGRESSIVE_IF_CONV is true.
8374 (if_convertible_stmt_p): Fix commentary.
8375 (all_preds_critical_p): New function.
8376 (has_pred_critical_p): New function.
8377 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
8378 BB can have more than two predecessors and all incoming edges can be
8379 critical.
8380 (predicate_bbs): Skip predication for loop exit block, use build2_loc
8381 to compute predicate for true edge.
8382 (find_phi_replacement_condition): Delete this function.
8383 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
8384 Allow interchange PHI arguments if EXTENDED is false.
8385 Change check that block containing reduction statement candidate
8386 is predecessor of phi-block since phi may have more than two arguments.
8387 (phi_args_hash_traits): New helper structure.
8388 (struct phi_args_hash_traits): New type.
8389 (phi_args_hash_traits::hash): New function.
8390 (phi_args_hash_traits::equal_keys): New function.
8391 (gen_phi_arg_condition): New function.
8392 (predicate_scalar_phi): Add handling of phi nodes with more than two
8393 arguments, delete COND and TRUE_BB arguments, insert body of
8394 find_phi_replacement_condition to predicate ordinary phi nodes.
8395 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
8396 delete call of find_phi_replacement_condition and invoke
8397 predicate_scalar_phi with two arguments.
8398 (insert_gimplified_predicates): Add assert that non-predicated block
8399 don't have statements to insert.
8400 (ifcvt_split_critical_edges): New function.
8401 (ifcvt_split_def_stmt): Likewise.
8402 (ifcvt_walk_pattern_tree): Likewise.
8403 (stmt_is_root_of_bool_pattern): Likewise.
8404 (ifcvt_repair_bool_pattern): Likewise.
8405 (ifcvt_local_dce): Likewise.
8406 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
8407 is copy of inner or outer loop force_vectorize field, invoke
8408 ifcvt_split_critical_edges, ifcvt_local_dce and
8409 ifcvt_repair_bool_pattern for aggressive if-conversion.
8410
a0f06fc9
PT
84112015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
8412
8413 * config/aarch64/aarch64.md: Include xgene1.md.
8414 * config/aarch64/xgene1.md: New file.
8415
381e27aa
PT
84162015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
8417
8418 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
8419 xgene1 (APM XGene-1) core definition.
8420 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
8421 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
8422 * doc/invoke.texi: Document -mcpu=xgene1.
8423
f84b87aa 84242015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
36566b39
PK
8425
8426 * dojump.h: New header file.
8427 * explow.h: Likewise.
8428 * expr.h: Remove includes.
8429 Move expmed.c prototypes to expmed.h.
8430 Move dojump.c prototypes to dojump.h.
8431 Move alias.c prototypes to alias.h.
8432 Move explow.c prototypes to explow.h.
8433 Move calls.c prototypes to calls.h.
8434 Move emit-rtl.c prototypes to emit-rtl.h.
8435 Move varasm.c prototypes to varasm.h.
8436 Move stmt.c prototypes to stmt.h.
8437 (saved_pending_stack_adjust): Move to dojump.h.
8438 (adjust_address): Move to explow.h.
8439 (adjust_address_nv): Move to emit-rtl.h.
8440 (adjust_bitfield_address): Likewise.
8441 (adjust_bitfield_address_size): Likewise.
8442 (adjust_bitfield_address_nv): Likewise.
8443 (adjust_automodify_address_nv): Likewise.
8444 * explow.c (expr_size): Move to expr.c.
8445 (int_expr_size): Likewise.
8446 (tree_expr_size): Likewise.
8447 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8448 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
f84b87aa
UB
8449 * genemit.c (main): Generate includes statistics.h, real.h,
8450 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
36566b39 8451 stmt.h.
f84b87aa
UB
8452 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
8453 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
8454 explow.h, emit-rtl.h, stmt.h.
36566b39
PK
8455 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
8456 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
f84b87aa
UB
8457 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
8458 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
8459 emit-rtl.h, varasm.h, stmt.h.
8460 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
8461 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
8462 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
8463 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
8464 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
36566b39
PK
8465 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
8466 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
8467 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
8468 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
8469 tm.h tree.h varasm.h vec.h wide-int.h.
8470 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
8471 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
8472 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
8473 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
f84b87aa
UB
8474 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
8475 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
8476 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
36566b39 8477 * loop-iv.c: Likewise.
f84b87aa
UB
8478 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
8479 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
36566b39
PK
8480 statistics.h stmt.h tree.h varasm.h wide-int.h.
8481 * lra-constraints.c: Likewise.
8482 * lra-eliminations.c: Likewise.
8483 * lra-lives.c: Likewise.
8484 * lra-remat.c: Likewise.
8485 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
8486 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
8487 statistics.h stmt.h tree.h varasm.h wide-int.h.
8488 * hw-doloop.c: Likewise.
8489 * ira-color.c: Likewise.
8490 * ira-emit.c: Likewise.
8491 * loop-doloop.c: Likewise.
8492 * loop-invariant.c: Likewise.
8493 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
8494 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
8495 statistics.h stmt.h tree.h varasm.h wide-int.h.
f84b87aa
UB
8496 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
8497 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
8498 statistics.h stmt.h tree.h varasm.h wide-int.h.
36566b39
PK
8499 * combine-stack-adj.c: Likewise.
8500 * cse.c: Likewise.
8501 * ddg.c: Likewise.
8502 * ifcvt.c: Likewise.
8503 * ira-costs.c: Likewise.
8504 * jump.c: Likewise.
8505 * lra-coalesce.c: Likewise.
8506 * lra-spills.c: Likewise.
8507 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
8508 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
8509 stmt.h varasm.h wide-int.h.
8510 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
8511 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
8512 varasm.h.
8513 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
8514 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
8515 statistics.h stmt.h varasm.h wide-int.h.
8516 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
8517 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
8518 varasm.h wide-int.h.
8519 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
8520 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
8521 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
8522 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
8523 statistics.h stmt.h.
8524 * config/tilepro/tilepro.c: Likewise.
8525 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
8526 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
8527 * config/pdp11/pdp11.c: Likewise.
8528 * config/xtensa/xtensa.c: Likewise.
8529 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
8530 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
8531 varasm.h.
8532 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8533 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
8534 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
8535 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8536 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
8537 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
8538 * rtl-chkp.c: Likewise.
8539 * tree-chkp-opt.c: Likewise.
f84b87aa
UB
8540 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
8541 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
8542 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
36566b39
PK
8543 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8544 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
8545 statistics.h stmt.h.
8546 * tree-vect-data-refs.c: Likewise.
8547 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
8548 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
8549 rtl.h statistics.h stmt.h varasm.h.
8550 * internal-fn.c: Likewise.
8551 * ipa-icf-gimple.c: Likewise.
8552 * lto-section-out.c: Likewise.
8553 * tree-data-ref.c: Likewise.
8554 * tree-nested.c: Likewise.
8555 * tree-outof-ssa.c: Likewise.
8556 * tree-predcom.c: Likewise.
8557 * tree-pretty-print.c: Likewise.
8558 * tree-scalar-evolution.c: Likewise.
8559 * tree-ssa-strlen.c: Likewise.
8560 * tree-vect-loop.c: Likewise.
8561 * tree-vect-patterns.c: Likewise.
8562 * tree-vect-slp.c: Likewise.
8563 * tree-vect-stmts.c: Likewise.
8564 * tsan.c: Likewise.
8565 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8566 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
8567 stmt.h.
8568 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
8569 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
8570 statistics.h stmt.h varasm.h.
8571 * loop-unroll.c: Likewise.
8572 * ubsan.c: Likewise.
8573 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
8574 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
8575 stmt.h varasm.h.
8576 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8577 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
8578 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
8579 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
8580 statistics.h stmt.h.
8581 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
8582 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
8583 statistics.h stmt.h varasm.h.
8584 * gimple-match-head.c: Likewise.
8585 * lto-cgraph.c: Likewise.
8586 * lto-section-in.c: Likewise.
8587 * lto-streamer-in.c: Likewise.
8588 * lto-streamer-out.c: Likewise.
8589 * tree-affine.c: Likewise.
8590 * tree-cfg.c: Likewise.
8591 * tree-cfgcleanup.c: Likewise.
8592 * tree-if-conv.c: Likewise.
8593 * tree-into-ssa.c: Likewise.
8594 * tree-ssa-alias.c: Likewise.
8595 * tree-ssa-copyrename.c: Likewise.
8596 * tree-ssa-dse.c: Likewise.
8597 * tree-ssa-forwprop.c: Likewise.
8598 * tree-ssa-live.c: Likewise.
8599 * tree-ssa-math-opts.c: Likewise.
8600 * tree-ssa-pre.c: Likewise.
8601 * tree-ssa-sccvn.c: Likewise.
8602 * tree-tailcall.c: Likewise.
8603 * tree-vect-generic.c: Likewise.
8604 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8605 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
8606 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8607 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
8608 * varasm.c: Likewise.
8609 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8610 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
8611 varasm.h.
8612 * init-regs.c: Likewise.
8613 * ira.c: Likewise.
8614 * omp-low.c: Likewise.
8615 * stack-ptr-mod.c: Likewise.
8616 * tree-ssa-reassoc.c: Likewise.
8617 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8618 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
8619 varasm.h.
8620 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8621 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
8622 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8623 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
8624 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8625 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
8626 * tree-ssa-phiopt.c: Likewise.
8627 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8628 fixed-value.h hashtab.h real.h statistics.h stmt.h.
8629 * config/fr30/fr30.c: Likewise.
8630 * config/frv/frv.c: Likewise.
8631 * expr.c: Likewise.
8632 * final.c: Likewise.
8633 * optabs.c: Likewise.
8634 * passes.c: Likewise.
8635 * simplify-rtx.c: Likewise.
8636 * stmt.c: Likewise.
8637 * toplev.c: Likewise.
8638 * var-tracking.c: Likewise.
8639 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8640 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
8641 * lower-subreg.c: Likewise.
8642 * postreload-gcse.c: Likewise.
8643 * ree.c: Likewise.
8644 * reginfo.c: Likewise.
8645 * store-motion.c: Likewise.
8646 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8647 fixed-value.h hashtab.h real.h stmt.h varasm.h.
8648 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8649 fixed-value.h hashtab.h statistics.h stmt.h.
8650 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8651 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
8652 * except.c: Likewise.
8653 * explow.c: Likewise.
8654 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8655 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
8656 varasm.h.
8657 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8658 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
8659 * tree-ssa-structalias.c: Likewise.
8660 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8661 fixed-value.h insn-config.h real.h statistics.h.
8662 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8663 fixed-value.h insn-config.h real.h statistics.h stmt.h.
8664 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8665 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
8666 * cfgbuild.c: Likewise.
8667 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8668 fixed-value.h real.h rtl.h statistics.h stmt.h.
8669 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8670 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
8671 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8672 fixed-value.h real.h statistics.h stmt.h.
8673 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8674 fixed-value.h real.h statistics.h stmt.h varasm.h.
8675 * cprop.c: Likewise.
8676 * modulo-sched.c: Likewise.
8677 * postreload.c: Likewise.
8678 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
8679 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
8680 statistics.h stmt.h varasm.h.
8681 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
8682 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
8683 rtl.h statistics.h stmt.h varasm.h.
8684 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
8685 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
8686 varasm.h.
8687 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
8688 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
8689 varasm.h.
8690 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
8691 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
8692 varasm.h.
8693 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
8694 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
8695 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
8696 function.h real.h statistics.h stmt.h varasm.h.
8697 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
8698 insn-config.h real.h statistics.h stmt.h.
8699 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
8700 statistics.h stmt.h.
8701 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
8702 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
8703 statistics.h stmt.h varasm.h.
f84b87aa
UB
8704 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
8705 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
36566b39
PK
8706 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
8707 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
8708 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
8709 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
8710 statistics.h stmt.h varasm.h.
8711 * ipa-polymorphic-call.c: Likewise.
f84b87aa 8712 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
36566b39 8713 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
f84b87aa
UB
8714 statistics.h stmt.h.
8715 * config/c6x/c6x.c: Likewise.
8716 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
8717 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36566b39 8718 statistics.h stmt.h varasm.h.
f84b87aa
UB
8719 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
8720 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
8721 stmt.h varasm.h.
36566b39
PK
8722 * ipa-split.c: Likewise.
8723 * tree-eh.c: Likewise.
8724 * tree-ssa-dce.c: Likewise.
8725 * tree-ssa-loop-niter.c: Likewise.
8726 * tree-vrp.c: Likewise.
8727 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
8728 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
8729 stmt.h.
8730 * config/nds32/nds32-fp-as-gp.c: Likewise.
8731 * config/nds32/nds32-intrinsic.c: Likewise.
8732 * config/nds32/nds32-isr.c: Likewise.
8733 * config/nds32/nds32-md-auxiliary.c: Likewise.
8734 * config/nds32/nds32-memory-manipulation.c: Likewise.
8735 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8736 * config/nds32/nds32-predicates.c: Likewise.
8737 * config/nds32/nds32.c: Likewise.
8738 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
8739 fixed-value.h hashtab.h real.h statistics.h.
8740 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
8741 fixed-value.h hashtab.h real.h statistics.h stmt.h.
8742 * config/arm/arm.c: Likewise.
8743 * config/avr/avr.c: Likewise.
8744 * config/bfin/bfin.c: Likewise.
8745 * config/h8300/h8300.c: Likewise.
8746 * config/i386/i386.c: Likewise.
8747 * config/ia64/ia64.c: Likewise.
8748 * config/iq2000/iq2000.c: Likewise.
8749 * config/m32c/m32c.c: Likewise.
8750 * config/m32r/m32r.c: Likewise.
8751 * config/m68k/m68k.c: Likewise.
8752 * config/mcore/mcore.c: Likewise.
8753 * config/mep/mep.c: Likewise.
8754 * config/mips/mips.c: Likewise.
8755 * config/mn10300/mn10300.c: Likewise.
8756 * config/moxie/moxie.c: Likewise.
8757 * config/pa/pa.c: Likewise.
8758 * config/rl78/rl78.c: Likewise.
8759 * config/rx/rx.c: Likewise.
8760 * config/s390/s390.c: Likewise.
8761 * config/sh/sh.c: Likewise.
8762 * config/sparc/sparc.c: Likewise.
8763 * config/spu/spu.c: Likewise.
8764 * config/stormy16/stormy16.c: Likewise.
8765 * config/v850/v850.c: Likewise.
8766 * config/vax/vax.c: Likewise.
8767 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
8768 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
8769 * config/msp430/msp430.c: Likewise.
8770 * predict.c: Likewise.
8771 * value-prof.c: Likewise.
8772 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
8773 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
8774 * config/microblaze/microblaze.c: Likewise.
8775 * config/nios2/nios2.c: Likewise.
8776 * config/rs6000/rs6000.c: Likewise.
8777 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
8778 insn-config.h real.h rtl.h statistics.h stmt.h.
8779 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
8780 insn-config.h real.h statistics.h stmt.h.
8781 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
8782 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
8783 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
8784 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
f84b87aa
UB
8785 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
8786 fixed-value.h real.h statistics.h stmt.h.
36566b39
PK
8787 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
8788 fixed-value.h statistics.h stmt.h.
8789 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
8790 stmt.h.
8791
e54bd4ab
JJ
87922015-01-15 Jakub Jelinek <jakub@redhat.com>
8793
8794 * gengtype.c (create_user_defined_type): Workaround
8795 -Wmaybe-uninitialized false positives.
8796 * cse.c (fold_rtx): Likewise.
8797 * loop-invariant.c (gain_for_invariant): Likewise.
8798
3aabdc00
EB
87992015-01-15 Eric Botcazou <ebotcazou@adacore.com>
8800
8801 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
8802 set the memory attributes in all cases but clear MEM_EXPR if need be.
8803
d2626c0b
YR
88042015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
8805
8806 PR tree-optimization/64434
8807 * cfgexpand.c (reorder_operands): New function.
8808 (expand_gimple_basic_block): Insert call of reorder_operands if
8809 optimized is true.
8810
2c3bcf47
MF
88112015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
8812
8813 * config/mips/micromips.md (*swp): Remove explicit parallel.
8814 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
8815 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
8816 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
8817 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
8818 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
8819 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
8820 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
8821 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
8822 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
8823 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
8824 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
8825 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
8826 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
8827 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
8828 (mips_wrdsp): Likewise.
8829 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
8830 parallel.
8831 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
8832 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
8833 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
8834 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
8835 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
8836 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
8837 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
8838 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
8839 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
8840
954bdd58
MF
88412015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
8842
8843 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
8844 (mips_print_operand): Support 'y' to print exact log2 in decimal
8845 of a const_int.
8846 * config/mips/mips.h (ISA_HAS_LSA): New define.
8847 (ISA_HAS_DLSA): Likewise.
8848 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
8849 * config/mips/predicates.md (const_immlsa_operand): New predicate.
8850
5e306f6e
ML
88512015-01-15 Martin Liska <mliska@suse.cz>
8852
8853 PR target/64377
8854 * optc-save-gen.awk: Add support for array types.
8855
d679e96b
RB
88562015-01-15 Richard Biener <rguenther@suse.de>
8857
8858 PR middle-end/64365
8859 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
8860 for MEM_REF access functions with the same base can never partially
8861 overlap.
8862
5434dc07
MD
88632015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
8864
8865 * common.opt: New option -fstack-protector-explicit.
8866 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
8867 (stack_protect_decl_phase): Handle stack_protect attribute for
8868 explicit stack protection requests.
8869 (expand_used_vars): Similarly.
8870 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
8871 * doc/extend.texi: Add documentation for "stack_protect" attribute.
8872 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
8873
83e3f98b
OE
88742015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
8875
8876 PR target/53988
8877 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
8878 reg-reg copies.
8879 (sh_extending_set_of_reg): New struct.
8880 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
8881 sh_remove_reg_dead_or_unused_notes): New Declarations.
8882 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
8883 sh_find_extending_set_of_reg, sh_split_tst_subregs,
8884 sh_extending_set_of_reg::use_as_extended_reg): New functions.
8885 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
8886 convert to insn_and_split and use new function sh_split_tst_subregs.
8887
ce2c3163
SL
88882015-01-14 Sandra Loosemore <sandra@codesourcery.com>
8889
8890 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
8891 option.
8892 (Optimization Options): Move -fuse-ld documentation to...
8893 (Link Options): ...here.
8894
047b52f6
MF
88952015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
8896
8897 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
8898 offsets.
8899 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
8900 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
8901 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
8902 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
8903 instead of ZR for the memory operand of LL/SC.
8904 (compare_and_swap_12, sync_add<mode>): Likewise.
8905 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
8906 (sync_new_<optab>_12, sync_nand_12): Likewise.
8907 (sync_old_nand_12, sync_new_nand_12): Likewise.
8908 (sync_sub<mode>, sync_old_add<mode>): Likewise.
8909 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
8910 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
8911 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
8912 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
8913 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
8914 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
8915 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
8916 * doc/md.texi (ZC): Update description.
8917
77df5327
AM
89182015-01-14 Andrew MacLeod <amacleod@redhat.com>
8919
8920 * builtins.c (expand_builtin_atomic_exchange): Remove error when
8921 memory model is CONSUME.
8922 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
8923 expand_builtin_atomic_store): Change invalid memory model errors to
8924 warnings.
8925 (expand_builtin_atomic_clear): Change invalid model errors to warnings
8926 and issue warning for CONSUME.
8927
2ead7928
AH
89282015-01-14 Aldy Hernandez <aldyh@redhat.com>
8929
8930 * lto-cgraph: Update function comments for
8931 lto_symtab_encoder_encode_*.
8932
3b6e42f9
IV
89332015-01-14 Ilya Verbin <ilya.verbin@intel.com>
8934
8935 * Makefile.in (site.exp): Do not set ENABLE_LTO.
8936
837bac8c
IV
89372015-01-14 Ilya Verbin <ilya.verbin@intel.com>
8938
8939 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
8940 * lto-cgraph.c (select_what_to_stream): Remove argument, use
8941 lto_stream_offload_p instead.
8942 * lto-streamer.h (select_what_to_stream): Remove argument.
8943 * passes.c (ipa_write_summaries): Likewise.
8944 * tree-pass.h (ipa_write_summaries): Likewise.
8945
7ef95f9c
RB
89462015-01-14 Richard Biener <rguenther@suse.de>
8947
8948 PR tree-optimization/59354
8949 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
8950 groups larger than the slp group size as having gaps.
8951
8673b671
AM
89522015-01-14 Andrew MacLeod <amacleod@redhat.com>
8953
8954 PR middle-end/59448
8955 * builtins.c (get_memmodel): Promote consume to acquire always.
8956
2f6c116d 89572015-01-14 Ilya Tocar <ilya.tocar@intel.com>
4b54ab97
IT
8958
8959 PR target/64386
8960 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
c8d7835b 8961 V32HImode.
4b54ab97 8962
2f6c116d 89632015-01-14 Ilya Tocar <ilya.tocar@intel.com>
c67917b6
IT
8964
8965 PR target/64393
8966 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
8967 Enable AVX512BW.
8968 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
8969 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
8970 AVX512VBMI, as it implies AVX512BW.
8971
2f6c116d 89722015-01-14 Ilya Tocar <ilya.tocar@intel.com>
110b7886
IT
8973
8974 PR target/64387
8975 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
8976 (vec_unpacks_hi_v16sf): Ditto.
8977
2a62514f
KT
89782015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8979
8980 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
8981 is not available.
8982
3bbbd3ee
KT
89832015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8984
8985 * doc/invoke.texi (mapcs): Mention deprecation.
8986 (mapcs-frame): Likewise.
8987
6f0a6218
TP
89882015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
8989
8990 PR target/64453
8991 * config/arm/arm.c (callee_saved_reg_p): Define.
8992 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
8993 register is callee saved instead of !call_used_regs[reg].
8994 (thumb1_compute_save_reg_mask): Likewise.
8995
6af2585d
HW
89962015-01-14 Hale Wang <hale.wang@arm.com>
8997
8998 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
8999 Cortex-M7.
9000
683750ce
RB
90012015-01-14 Richard Biener <rguenther@suse.de>
9002
9003 PR lto/64415
9004 * tree-inline.c (insert_debug_decl_map): Check destination
9005 function MAY_HAVE_DEBUG_STMTS.
9006 (insert_init_debug_bind): Likewise.
9007 (insert_init_stmt): Remove redundant check.
9008 (remap_gimple_stmt): Drop debug stmts if the destination
9009 function has var-tracking assignments disabled.
9010
217c08c5
ML
90112015-01-14 Martin Liska <mliska@suse.cz>
9012
9013 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
9014 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
9015
ca39a43a
KT
90162015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9017
9018 PR target/64460
9019 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
9020 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
9021
fcd7669c
MF
90222015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
9023
622ef5da
MF
9024 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
9025 level from an ARCH; do not inject the default.
9026 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
9027 MIPS_ISA_LEVEL_SPEC.
9028 (MIPS_ISA_NAN2008_SPEC): Update comment.
9029 (BASE_DRIVER_SELF_SPECS): Likewise.
9030 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
9031 MIPS_DEFAULT_ISA_LEVEL_SPEC.
9032 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
9033 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
9034 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
fcd7669c 9035
46b622cc
RB
90362015-01-14 Richard Biener <rguenther@suse.de>
9037
9038 PR tree-optimization/64493
9039 PR tree-optimization/64495
9040 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
9041 assign the proper vectorized PHI to the inner loop exit PHIs.
9042
f7d2b513
JY
90432015-01-14 Joey Ye <joey.ye@arm.com>
9044
9045 * config/arm/arm.c (arm_compute_save_reg_mask):
9046 Do not save lr in case of tail call.
9047 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
9048
63e533ec 90492015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
de1b5c17
MU
9050
9051 * tree-vrp.c (check_array_ref): Emit more warnings
9052 for warn_array_bounds >= 2.
9053 * common.opt: New option -Warray-bounds=.
9054 * doc/invoke.texi: Document -Warray-bounds=.
9055
2ca1ca65
CJW
90562015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
9057
9058 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
9059 (mforbid-fp-as-gp): Remove.
9060 (mex9): Remove.
9061 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
9062 (nds32_symbol_load_store_p): Remove.
9063 (nds32_fp_as_gp_check_available): Clean up implementation.
9064 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
9065 cases.
9066 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
9067 fp-as-gp and ex9 cases.
9068
c02ae3ae
JH
90692015-01-13 Jan Hubicka <hubicka@ucw.cz>
9070
9071 * tree-profile.c (init_ic_make_global_vars): Drop workaround
9072 for bintuils bug 14342.
9073 (init_ic_make_global_vars): Likewise.
9074 (gimple_init_edge_profiler): Likewise.
9075 (gimple_gen_ic_func_profiler): Likewise.
9076
f7d2b513 90772015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9e145afd
N
9078
9079 * ipa-inline.c (inline_small_functions): Swap the operands in
9080 enum.
9081
0d92b555
JH
90822015-01-13 Jan Hubicka <hubicka@ucw.cz>
9083
9084 PR ipa/64481
9085 * ipa-inline-analysis.c (node_growth_cache): Remove.
9086 (initialize_growth_caches): Do not initialize it.
9087 (free_growth_caches): Do not free it.
9088 (do_estimate_growth): Rename to ...
9089 (estimate_growth): ... this one; drop growth cache code.
9090 (growth_likely_positive): Always go the heuristics way.
9091 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
9092 (reset_edge_caches): Do not reset node growth.
9093 (heap_edge_removal_hook): Do not maintain cache.
9094 (inline_small_functions): Likewise; strenghten sanity check.
9095 (ipa_inline): Do not maintain caches.
9096 * ipa-inline.h (node_growth_cache): Remove.
9097 (do_estimate_growth): Remove to ...
9098 (estimate_growth): this one; remove inline version.
9099 (reset_node_growth_cache): Remove.
9100
2001028a
JH
91012015-01-13 Jan Hubicka <hubicka@ucw.cz>
9102
9103 PR ipa/64565
9104 * ipa-inline.c (inline_small_functions): Update callee keys after
9105 resolving speculation
9106 (inline_small_functions): Always check monotonicity of the queue.
9107
59b8926c
MP
91082015-01-13 Marek Polacek <polacek@redhat.com>
9109
9110 PR middle-end/64391
9111 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
9112
860dadcb
JJ
91132015-01-13 Jakub Jelinek <jakub@redhat.com>
9114
9115 PR rtl-optimization/64286
9116 * ree.c (combine_reaching_defs): Move part of comment earlier,
9117 remove !SCALAR_INT_MODE_P check.
9118 (add_removable_extension): Don't add vector mode
9119 extensions if all uses of the source register aren't the same
9120 vector extensions.
9121
41197ad4
RL
91222015-01-13 Renlin Li <renlin.li@arm.com>
9123
9124 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
9125 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
9126
eaabbb00
ML
91272015-01-13 Martin Liska <mliska@suse.cz>
9128
9129 * ipa-icf.c (sem_function::equals_private): Call new functions
9130 cl_target_option_print_diff and cl_optimization_print_diff.
9131 * optc-save-gen.awk (cl_target_option_print_diff): New function.
9132 (cl_optimization_print_diff): Likewise.
9133 * opth-gen.awk: Likewise.
9134
7eb8fb77
RS
91352015-01-13 Richard Sandiford <richard.sandiford@arm.com>
9136
9137 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
9138 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
9139 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
9140 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
9141 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
9142 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
9143
10ac6596 91442015-01-13 Andrew Pinski <apinski@cavium.com>
1f46bd52
AP
9145
9146 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
c8d7835b 9147 instead of src mode.
1f46bd52 9148
e0ffb247
RB
91492015-01-13 Richard Biener <rguenther@suse.de>
9150
9151 PR lto/64373
9152 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
9153 DECL_CONTEXT.
9154
10ac6596 91552015-01-13 Andrew Pinski <apinski@cavium.com>
bf84ac44
AP
9156
9157 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
9158 volatile mems.
9159 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
9160
08cb0abc
JJ
91612015-01-13 Jakub Jelinek <jakub@redhat.com>
9162
9163 PR middle-end/63974
9164 * cfgexpand.c (expand_computed_goto): Don't call
9165 convert_memory_address here.
9166
d0ed943c
RB
91672015-01-13 Richard Biener <rguenther@suse.de>
9168
9169 PR tree-optimization/64406
9170 * tree-loop-distibution.c (pass_loop_distribution::execute):
9171 Reset the SCEV hashtable if we distributed anything.
9172
96bb56b2
RB
91732015-01-13 Richard Biener <rguenther@suse.de>
9174
9175 PR tree-optimization/64404
9176 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
9177 SLP types for CSEd loads.
9178
af410c4c
TP
91792015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
9180
9181 PR tree-optimization/64436
9182 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
9183 merge of two symbolic numbers for a bitwise OR to ...
9184 (perform_symbolic_merge): This. Also fix computation of the range and
9185 end of the symbolic number corresponding to the result of a bitwise OR.
9186
63e533ec 91872015-01-13 Richard Biener <rguenther@suse.de>
a2d429ac
RB
9188
9189 PR tree-optimization/64568
9190 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
9191 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
9192
4855be84
CJW
91932015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
9194
9195 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
9196 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
9197
511a41d7
CJW
91982015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
9199
9200 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
9201 target-specific symbol_ref flag.
9202 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
9203 resides in rodata section.
9204 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
9205 (nds32_encode_section_info): New function.
9206
1f7b8028
CJW
92072015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
9208
9209 * config/nds32/nds32.md (call): Use pseudo instruction bal which
9210 clobbers TA_REGNUM if large code model is specified.
9211 (call_register): Likewise.
9212 (call_immediate): Likewise.
9213 (call_value): Likewise.
9214 (call_value_register): Likewise.
9215 (call_value_immediate): Likewise.
9216
77b7a1ca
CJW
92172015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
9218
9219 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
9220 (TARGET_CMODEL_MEDIUM): New macro.
9221 (TARGET_CMODEL_LARGE): New macro.
9222 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
9223 code model setting in assembly code.
9224
c9eb51a7
CJW
92252015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
9226
9227 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
9228 Remove MASK_GP_DIRECT flag.
9229 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
9230 one of the multilib default options.
9231 * config/nds32/nds32.opt (mgp-direct): Remove.
9232 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
9233 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
9234
fe4c07dc
CJW
92352015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
9236
9237 * config/nds32/nds32.opt (mcmodel): Add new option.
9238 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
9239 to describe code model.
9240
d9a5f0cc
OE
92412015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
9242
9243 PR target/64479
9244 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
9245
801881b0
KK
92462015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
9247
9248 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
9249 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
9250 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
9251 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
9252 __builtin_sh_set_fpscr.
9253
16ba6203
SL
92542015-01-12 Sandra Loosemore <sandra@codesourcery.com>
9255
9256 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
9257 after a funtion name just to indicate it is a function.
9258 ([-fsanitize-undefined-trap-on-error]): Likewise.
9259 ([-fdbg-cnt=]): Likewise.
9260 ([-mmemcpy]): Likewise.
9261 ([-mflush-func]): Likewise.
9262 ([-msynci]): Likewise.
9263
3ae79bfd
SL
92642015-01-12 Sandra Loosemore <sandra@codesourcery.com>
9265
9266 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
9267 example.
c8d7835b 9268
aadb701b
JJ
92692015-01-12 Jakub Jelinek <jakub@redhat.com>
9270
737fde1d
JJ
9271 PR tree-optimization/64563
9272 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
9273 instead of != VR_VARYING.
9274
631b8d78
JJ
9275 PR target/64513
9276 * config/i386/i386.c (ix86_expand_prologue): Add
9277 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
9278
f51286f2
JJ
9279 PR tree-optimization/64454
9280 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
9281 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
9282 for signed or [0, op1 - 1] for unsigned modulo.
9283 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
9284 even if op1 does not satisfy integer_pow2p.
9285
aadb701b
JJ
9286 PR other/64370
9287 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
9288
f698a4b1
JL
92892015-01-12 Jeff Law <law@redhat.com>
9290
cfd02f69 9291 PR target/64461
1481bdb1
JL
9292 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
9293 (trunchiqi2, truncsihi2): Similarly.
9294
f698a4b1
JL
9295 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
9296 rather than calling F.
9297
020ca950
BE
92982015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
9299
9300 * tsan.c (instrument_expr): Use force_gimple_operand.
9301 Use may_be_nonaddressable_p instead of is_gimple_addressable.
9302
62e22fcb
RB
93032015-01-12 Richard Biener <rguenther@suse.de>
9304
9305 PR tree-optimization/64530
9306 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
9307 back dr1.
9308
2a58c802
RB
93092015-01-12 Richard Biener <rguenther@suse.de>
9310
9311 PR middle-end/64357
9312 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
9313 latches properly.
9314
82ac9e41
KT
93152015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9316
9317 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
9318 Cortex-A17 tuning parameters.
9319 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
9320
8b898d4c
KT
93212015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9322
9323 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
9324 * config/arm/arm.c (arm_macro_fusion_p): New function.
9325 (arm_macro_fusion_pair_p): Likewise.
9326 (TARGET_SCHED_MACRO_FUSION_P): Define.
9327 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
9328 (ARM_FUSE_NOTHING): Likewise.
9329 (ARM_FUSE_MOVW_MOVT): Likewise.
9330 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
9331 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
9332 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
9333 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
9334 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
9335 arm_cortex_a5_tune): Specify fuseable_ops value.
9336
7b3592ee
L
93372015-01-12 H.J. Lu <hongjiu.lu@intel.com>
9338
9339 PR bootstrap/64561
9340 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
9341 test for PIE with copy reloc.
9342 * configure: Regenerated.
9343
57ceb728 93442015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
03d5d16a
KT
9345
9346 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
9347 in gen_rtx_REG.
9348 (arm_tls_descseq_addr): Likewise.
9349 (arm_gen_movmemqi): Likewise.
9350 (arm_expand_epilogue_apcs_frame): Likewise.
9351 (arm_expand_epilogue): Likewise.
9352 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
9353 in gen_rtx_REG.
9354
365536ca
ML
93552015-01-12 Martin Liska <mliska@suse.cz>
9356
9357 PR ipa/64550
9358 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
9359 volatility for correct operands.
9360
93612015-01-12 Martin Liska <mliska@suse.cz>
9362
9363 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
9364 that a function is not leaf.
9365 (sem_function::compare_polymorphic_p): Likewise.
9366
1c928ddc
ML
93672015-01-12 Martin Liska <mliska@suse.cz>
9368
9369 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
9370 that a function is not leaf.
9371 (sem_function::compare_polymorphic_p): Likewise.
9372
76478bf9
PK
93732015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9374
9375 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
9376 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
9377 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
9378 fold-const.h, tree-check.h.
9379
208e5afa
JH
93802015-01-12 Jan Hubicka <hubicka@ucw.cz>
9381
9382 PR ipa/63967
9383 PR ipa/64425
9384 * ipa-inline.c (compute_uninlined_call_time,
9385 compute_inlined_call_time): Use counts for extra precision when
9386 needed possible.
9387 (big_speedup_p): Fix formating.
9388 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
9389 (relative_time_benefit): Remove.
9390 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
9391 merge guessed and read profile paths.
9392 (inline_small_functions): Count only !optimize_size functions into
9393 initial size; be more lax about sanity check when profile is used;
9394 be sure to update inlined function profile when profile is read.
9395
d8d5aef1
JH
93962015-01-12 Jan Hubicka <hubicka@ucw.cz>
9397
9398 PR ipa/63470
9399 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
9400 cost when edge becomes direct.
9401 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
9402 is resolved or when introducing new speculation.
9403
9f54bf9c
CG
94042015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
9405
9f54bf9c
CG
9406 PR ipa/64551
9407 PR ipa/64552
9408 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
9409 '||' to fix typo issue.
9410
9411 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
9412 accept and return NULL.
9413
90988f77
ML
94142015-01-12 Martin Liska <mliska@suse.cz>
9415
9416 * cgraph.c (cgraph_edge::remove_callee): Move function to header
9417 file for being inlined.
9418 (cgraph_set_edge_callee): Delete.
9419 (cgraph_edge::redirect_callee): Move function to header file
9420 for being inlined.
9421 (cgraph_edge::make_direct): Use new function.
9422 (cgraph_edge::dump_edge_flags): New function created from
9423 static dump_edge_flags function.
9424 (cgraph_node::dump): Use new function.
9425 (cgraph_edge::verify_count_and_frequency): New function created
9426 from verify_edge_count_and_frequency.
9427 (cgraph_edge::verify_corresponds_to_fndecl): New function created
9428 from verify_edge_corresponds_to_fndecl.
9429 (verify_edge_corresponds_to_fndecl): Delete.
9430 (cgraph_node::verify_node): Use new function.
9431 * cgraph.h (cgraph_edge::set_callee): New function.
9432 (cgraph_edge::dump_edge_flags): Likewise.
9433 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
9434
e3bde69a
JH
94352015-01-11 Jan Hubicka <hubicka@ucw.cz>
9436
9437 * ipa-utils.c (estimate_function_body_sizes): Do not
9438 free node params when called late with early=true.
9439
2f9d3709
JG
94402015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
9441
9442 * doc/md.texi (Instruction Patterns): Rewrite text for
9443 clarity.
9444 (Example): Likewise.
9445
abaab34f
SL
94462015-01-10 Sandra Loosemore <sandra@codesourcery.com>
9447
9448 * doc/invoke.texi (Option Summary): Break long lines.
9449 [(-fdiagnostics-color)]: Put long literal in @smallexample
9450 instead of inline.
9451 [(-fsanitize-recover)]: Likewise.
9452 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
9453 [(-ffast-math)]: Likewise.
9454 [(--param max-inline-insns-recursive)]: Likewise.
9455 [(--param max-inline-recursive-depth)]: Likewise.
9456 [(-mno-text-section-literals)]: Likewise.
c8d7835b 9457
f1f3453e
TS
94582015-01-10 Thomas Schwinge <thomas@codesourcery.com>
9459
9460 * doc/install.texi: Update for libgomp being renamed from "GNU
9461 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
9462 Runtime Library".
9463 * doc/sourcebuild.texi: Likewise.
9464
b10b03c4
AG
94652015-01-10 Anthony Green <green@moxielogic.com>
9466
9467 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
9468 mul.x availability for moxiebox configuration.
9469
6085e66e
AG
94702015-01-09 Anthony Green <green@moxielogic.com>
9471
9472 * config/moxie/moxie.md: Tabify assembly output.
9473
1d763aec
AG
94742015-01-09 Anthony Green <green@moxielogic.com>
9475
9476 * config/moxie/moxie.md (CC_REG): Correct register definition.
9477
c608d704
SL
94782015-01-09 Sandra Loosemore <sandra@codesourcery.com>
9479
9480 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
9481 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
9482 of log files.
9483
5357406f
AT
94842015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
9485
9486 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
9487
1b34e6e2
BS
94882015-01-09 Bernd Schmidt <bernds@codesourcery.com>
9489 Jakub Jelinek <jakub@redhat.com>
9490
9491 PR middle-end/64412
9492 * lto-streamer.h (lto_stream_offload_p): New declaration.
9493 * lto-streamer.c (lto_stream_offload_p): New variable.
9494 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
9495 at the same time as section_name_prefix.
9496 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
9497 if lto_stream_offload_p.
9498 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
9499 stream TREE_TARGET_OPTION if lto_stream_offload_p.
9500 (write_ts_function_decl_tree_pointers): Don't
9501 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
9502 * tree-streamer-in.c (unpack_value_fields): Don't stream
9503 TREE_TARGET_OPTION in if ACCEL_COMPILER.
9504 (lto_input_ts_function_decl_tree_pointers): Don't stream
9505 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
9506 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
9507 instead of section_name_prefix string comparisons.
9508
adfac8df
JJ
95092015-01-09 Jakub Jelinek <jakub@redhat.com>
9510
9511 PR rtl-optimization/64536
9512 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
9513 tablejumps.
9514
40e23961 95152015-01-09 Michael Collison <michael.collison@linaro.org>
adfac8df 9516
a89bd7d2
JH
9517 PR tree-optimization/64322
9518 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
9519 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
9520
486b97f2
TV
95212015-01-09 Tom de Vries <tom@codesourcery.com>
9522
9523 PR rtl-optimization/64539
9524 * regcprop.c (kill_clobbered_values): Factor out of ...
9525 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
9526 instead of note_stores with kill_clobbered_value.
9527
4c470097
AT
95282015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
9529
9530 * ginclude/unwind-arm-common.h: Revert previous commit.
9531
82a19768
AT
95322015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
9533
9534 * config.gcc (arm*-*-freebsd*): New configuration.
9535 * config/arm/freebsd.h: New file.
9536 * config.host: Add extra components for arm*-*-freebsd*.
9537 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
9538 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
9539
887974fd
SH
95402015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9541
9542 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
9543 for -mcpu=e6500.
9544 * config/rs6000/t-rtems: Add e6500 multilibs.
9545
3bfc2fa3
SH
95462015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9547
9548 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
9549 MPC8540.
9550
02f6062b
SH
95512015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9552
9553 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
9554 MULTILIB_EXCEPTIONS.
9555
2f2eb5ad
SH
95562015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9557
9558 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
9559 MULTILIB_EXCEPTIONS.
9560
5be0a29b
SH
95612015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9562
9563 * config/arm/t-rtems-eabi: Rename to...
9564 * config/arm/t-rtems: ...this.
9565 * config/arm/rtems-eabi.h: Rename to...
9566 * config/arm/rtems.h: ...this.
9567 * config.gcc (arm*-*-rtems*): Reflect changes above.
9568
2f278249
RB
95692015-01-09 Richard Biener <rguenther@suse.de>
9570
9571 PR tree-optimization/64410
9572 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
9573 on the LHS.
9574 (execute_update_addresses_taken): Deal with that.
9575 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
9576 loads/stores for complex variables.
9577
520b3022
ML
95782015-01-09 Martin Liska <mliska@suse.cz>
9579
9580 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
9581 name comparison.
9582 (func_checker::compare_memory_operand): New function.
9583 (func_checker::compare_operand): Split case to newly
9584 added functions.
9585 (func_checker::compare_cst_or_decl): New function.
9586 (func_checker::compare_gimple_call): Identify
9587 memory operands.
9588 (func_checker::compare_gimple_assign): Likewise.
9589 * ipa-icf-gimple.h: New function.
9590
ce9401b4
ML
95912015-01-09 Martin Liska <mliska@suse.cz>
9592
9593 PR ipa/64503
9594 * sreal.c (sreal::dump): Change unsigned format to signed for
9595 m_exp value.
9596 (sreal::to_double): Replace exp2 with scalbln.
9597
3f9f4ae7
ML
95982015-01-09 Martin Liska <mliska@suse.cz>
9599
9600 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
9601 * ipa-icf.c (sem_function::equals_private): Add support for target and
9602 (sem_item_optimizer::merge_classes): Remove redundant function
9603 optimization flags comparison.
9604 * tree.h (target_opts_for_fn): New function.
9605
56f6033d
TV
96062015-01-09 Tom de Vries <tom@codesourcery.com>
9607
9608 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
9609
c61fe0cc
KC
96102015-01-09 Kito Cheng <kito@0xlab.org>
9611
9612 PR rtl-optimization/64348
9613 * lra-constraints.c (split_reg): Fix caller-save store/restore
9614 instruction generation.
9615
e608ef6d
JDA
96162015-01-08 John David Anglin <danglin@gcc.gnu.org>
9617
9618 PR gcov-profile/61790
9619 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
9620 long long. Fallback to int64_t if host doesn't have long long and
9621 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
9622
57534689
JJ
96232015-01-08 Jakub Jelinek <jakub@redhat.com>
9624
204a913b
JJ
9625 PR tree-optimization/63989
9626 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
9627 from 1000 to 10000.
9628 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
9629 (get_stridx): If we don't have a record for certain SSA_NAME,
9630 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
9631 constant offset, call get_stridx_plus_constant.
9632 (get_stridx_plus_constant): New function.
9633 (zero_length_string): Don't use get_stridx here.
9634
57534689
JJ
9635 PR target/55023
9636 PR middle-end/64388
9637 * dse.c (struct insn_info): Mention frame_read set also
9638 before reload for tail calls on some targets.
9639 (scan_insn): Revert 2014-12-22 change. Set frame_read
9640 also before reload for tail calls if
9641 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
9642 instead of add_non_frame_wild_read for non-const/memset
9643 tail calls after reload.
9644
f5481fc4
JM
96452015-01-08 Jason Merrill <jason@redhat.com>
9646
9647 * ubsan.c (do_ubsan_in_current_function): New.
9648 (pass_ubsan::gate): Use it.
9649 * ubsan.h: Declare it.
9650 * convert.c (convert_to_integer): Use it.
9651
efa7df3c
JJ
96522015-01-08 Jakub Jelinek <jakub@redhat.com>
9653
9654 PR target/64338
9655 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
9656 compare_code when it is unconditionally overwritten afterwards.
9657 Use ix86_reverse_condition instead of reverse_condition. Don't
9658 change code if *reverse_condition* returned UNKNOWN and don't
9659 swap ct/cf and negate diff in that case.
9660
de35aa66
MS
96612015-01-08 Mike Stump <mikestump@comcast.net>
9662
9663 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
9664 (pass_tsan_O0::gate): Likewise.
9665 * extend.texi (Function Attributes): Add no_sanitize_thread
9666 documentation.
9667
4f929d9d
TS
96682015-01-08 Thomas Schwinge <thomas@codesourcery.com>
9669
45f46750
TS
9670 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
9671 for registering builtins.
9672 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
9673 add -fopenmp to the argv_obstack used when invoking
9674 compile_for_target.
9675
4f929d9d
TS
9676 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
9677 add "-m32" or "-m64" to argv_obstack.
9678 (generate_host_descr_file): Likewise, when invoking host_compiler.
9679 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
9680 ld.
9681
3b140613
OE
96822015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
9683
9684 * config/sh/sh-mem.cc: Use constant as second operand when emitting
9685 tstsi_t insns.
9686
3aa8dfe3
OE
96872015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
9688
9689 PR target/55212
9690 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
9691 constant load if constant operand fits into I08.
9692
bd84df18
JJ
96932015-01-08 Jakub Jelinek <jakub@redhat.com>
9694
9695 PR sanitizer/64336
9696 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
9697 and TREE_THIS_VOLATILE for MEM_REFs.
9698 (build5_stat): Fix up initialization of TREE_READONLY and
9699 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
9700
ae6b8666
KK
97012015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
9702
9703 PR target/64533
9704 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
9705 of r for the second alternative of the destination operand.
9706
946695b7
SB
97072015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
9708
9709 PR target/36557
9710 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
9711
317991c9
SL
97122015-01-07 Sandra Loosemore <sandra@codesourcery.com>
9713
9714 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
9715 keywords.
9716 ([-fivar-visibility], [-fvisibility]): Likewise.
9717
429805d2
SL
97182015-01-07 Sandra Loosemore <sandra@codesourcery.com>
9719
9720 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
9721 the file where @code, @command, etc is more appropriate.
9722
0e905f0f
SL
97232015-01-06 Sandra Loosemore <sandra@codesourcery.com>
9724
9725 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
9726 of -mrecip= documentation.
9727
512ef949
MM
97282015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
9729
9730 PR target/64505
9731 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
9732 correct reload handler if -m32 -mpowerpc64 is used.
9733
f0cbb0af
TV
97342015-01-06 Tom de Vries <tom@codesourcery.com>
9735
9736 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
9737
6a6b03ba
CB
97382015-01-08 Christian Bruel <christian.bruel@st.com>
9739
9740 PR target/64507
9741 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
9742
e4a57350
TP
97432015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
9744
9745 PR tree-optimization/63259
9746 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
9747 if optab exists for 16bit byteswap.
9748
fb153d02
JJ
97492015-01-06 Jakub Jelinek <jakub@redhat.com>
9750
9751 * opts.c (common_handle_option): Add support for
9752 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
9753 * doc/invoke.texi: Document -fno-sanitize=all,
9754 -f{,no-}sanitize-recover=all. Document that
9755 -fsanitize=float-cast-overflow is not enabled
9756 by -fsanitize=undefined. Fix up documentation
9757 of -f{,no-}sanitize-recover.
9758
0969ec7d
EB
97592015-01-06 Eric Botcazou <ebotcazou@adacore.com>
9760
9761 * config.gcc: Add Visium support.
9762 * configure.ac: Likewise.
9763 * configure: Regenerate.
9764 * doc/extend.texi (interrupt attribute): Add Visium.
9765 * doc/invoke.texi: Document Visium options.
9766 * doc/install.texi: Document Visium target.
9767 * doc/md.texi: Document Visium constraints.
9768 * common/config/visium: New directory.
9769 * config/visium: Likewise.
9770
31dd2a86
SB
97712015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
9772
9773 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
9774 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
9775
2f48c66c
SB
97762015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
9777
9778 * combine.c (combine_validate_cost): Do not count the cost of a
9779 split I2 twice. Do not display it twice in the dump, either.
9780
0964f845
SL
97812015-01-05 Sandra Loosemore <sandra@codesourcery.com>
9782
9783 Revert parts of r219199.
9784 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
9785 <inttypes.h>.
9786 ([-Wtraditional]): Restore markup on <limits.h>.
9787
2f42e5de
TS
97882015-01-05 Trevor Saunders <tsaunders@mozilla.com>
9789
9790 PR c++/31397
9791 * doc/invoke.texi: Document -Wsuggest-override.
9792
b176bb73
RO
97932015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
9794
9795 PR rtl-optimization/64287
9796 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
9797 (process_options): Disable flag_ipa_ra if profiling.
9798
dd1ca4c2
EB
97992015-01-05 Eric Botcazou <ebotcazou@adacore.com>
9800
9801 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
9802
98032015-01-05 Max Filippov <jcmvbkbc@gmail.com>
c6836000
MF
9804
9805 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
9806 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
9807 put under #if TARGET_LOOPS guard.
9808
389d63bb
UB
98092015-01-05 Uros Bizjak <ubizjak@gmail.com>
9810
9811 * config/i386/i386.c (output_387_binary_op): Use std::swap.
9812
c9bd6bcd
OE
98132015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
9814
9815 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
9816 * rtl.h (refers_to_regno_p): Add overload.
9817 * cse.c: Use it.
9818 * bt-load.c: Likewise.
9819 * combine.c: Likewise.
9820 * df-scan.c: Likewise.
9821 * sched-deps.c: Likewise.
9822 * config/s390/s390.c: Likewise.
9823 * config/m32r/m32r.c: Likewise.
9824 * config/rs6000/spe.md: Likewise.
9825 * config/rs6000/rs6000.c: Likewise.
9826 * config/pa/pa.c: Likewise.
9827 * config/stormy16/stormy16.c: Likewise.
9828 * config/cris/cris.c: Likewise.
9829 * config/arc/arc.md: Likewise.
9830 * config/arc/arc.c: Likewise.
9831 * config/sh/sh.md: Likewise.
9832 * config/sh/sh.c: Likewise.
9833 * config/frv/frv.c: Likewise.
9834
15aed8c4
JJ
98352015-01-05 Jakub Jelinek <jakub@redhat.com>
9836
fca4adf2
JJ
9837 PR sanitizer/64265
9838 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
9839 call as cleanup of the whole body.
9840 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
9841 * tsan.c (replace_func_exit): New function.
9842 (instrument_func_exit): Moved earlier.
9843 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
9844 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
9845 been found.
9846 (tsan_pass): Don't call instrument_func_exit.
9847 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
9848 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
9849 inlining.
9850
e5341100
JJ
9851 PR sanitizer/64344
9852 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
9853 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
9854 it to libubsan handler instead of EXPR. Fold comparisons earlier,
9855 if the result is integer_zerop, return NULL_TREE.
9856 * convert.c (convert_to_integer): Pass expr as ARG.
9857
15aed8c4
JJ
9858 PR tree-optimization/64465
9859 * tree-inline.c (redirect_all_calls): During inlining
9860 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
9861 changed the stmt to a non-throwing call.
9862
d1f4e4c3
SL
98632015-01-05 Sandra Loosemore <sandra@codesourcery.com>
9864
9865 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
9866 etc markup throughout the file.
9867
0d578242
BE
98682015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
9869
9870 Enable experimental TSAN support for Ada.
9871 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
9872
a6377d52
JJ
98732015-01-05 Jakub Jelinek <jakub@redhat.com>
9874
9875 PR tree-optimization/64494
9876 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
9877 clear SSA_NAME_ANTI_RANGE_P flag.
9878
248d1391
MP
98792015-01-05 Marek Polacek <polacek@redhat.com>
9880
9881 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
9882
2c5103ff
JJ
98832015-01-05 Jakub Jelinek <jakub@redhat.com>
9884
5624e564
JJ
9885 Update copyright years.
9886
b67cd4e3
JJ
9887 * gcc.c (process_command): Update copyright notice dates.
9888 * gcov-dump.c: Ditto.
9889 * gcov.c: Ditto.
9890 * doc/cpp.texi: Bump @copying's copyright year.
9891 * doc/cppinternals.texi: Ditto.
9892 * doc/gcc.texi: Ditto.
9893 * doc/gccint.texi: Ditto.
9894 * doc/gcov.texi: Ditto.
9895 * doc/install.texi: Ditto.
9896 * doc/invoke.texi: Ditto.
9897
2c5103ff
JJ
9898 * auto-profile.c, auto-profile.h: Fix up Copyright line.
9899
eaacbd7b
SL
99002015-01-04 Sandra Loosemore <sandra@codesourcery.com>
9901
9902 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
9903 verb tense, etc.
9904 ([-fvtable-verify], [-fvtv-debug]): Likewise.
9905 ([-Wabi]): Likewise.
9906 ([-fmessage-length]): Likewise.
9907 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
9908 ([-Wno-discarded-qualifiers]): Likewise.
9909 ([-Wnodiscarded-array-qualifiers]): Likewise.
9910 ([-Wno-virtual-move-assign]): Likewise.
9911 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
9912 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
9913 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
9914 ([-fsanitize-undefined-trap-on-error]): Likewise.
9915 ([-floop-interchange]): Likewise.
9916 ([-ftree-coalesce-inlined-vars]): Likewise.
9917 ([-fvect-cost-model]): Likewise.
9918 ([-flto]): Likewise.
9919 ([--param]): Likewise.
9920 (Spec Files): Likewise.
9921 ([-mstrict-align]): Likewise.
9922 ([-mfix-cortex-a53-835769]): Likewise.
9923 ([-march], [-mtune]): Likewise.
9924 ([-mpic-register]): Likewise.
9925 ([-munaligned-access]): Likewise.
9926 ([-msp8]): Likewise.
9927 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
9928 (AVR Built-in Macros): Likewise.
9929 ([-mpreferred-stack-boundary]): Likewise.
9930 ([-mtune-crtl]): Likewise.
9931 ([-mashf]): Likewise.
9932 ([-mmcu=]): Likewise.
9933 ([-minrt]): Likewise.
9934 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
9935 ([-mupper-regs]): Likewise.
9936 ([-matomic-model]): Likewise.
9937 ([-mdiv]): Likewise.
9938 ([-mzdcbranch]): Likewise.
9939 ([-mdisable-callt]): Likewise.
9940 ([-msoft-float]): Likewise.
9941 ([-m8byte-align]): Likewise.
9942 ([-fstack-reuse]): Likewise.
9943
70281a8e
SL
99442015-01-03 Sandra Loosemore <sandra@codesourcery.com>
9945
9946 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
9947 Fix markup, light copy-editing.
9948 ([-fauto-profile]): Rewrite to fix formatting and content
9949 problems.
9950
408e8aa4
SL
99512015-01-03 Sandra Loosemore <sandra@codesourcery.com>
9952
9953 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
9954 Copy-edit description.
9955 ([-fisolate-erroneous-paths-attribute]): Likewise.
9956 * common.opt (fisolate-erroneous-paths-dereference):
9957 Copy-edit description.
9958 (fisolate-erroneous-paths-attribute): Likewise.
9959
484b5de0
SL
99602015-01-03 Sandra Loosemore <sandra@codesourcery.com>
9961
9962 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
9963 tidy grammar.
9964
e1a77fb6
SL
99652015-01-03 Sandra Loosemore <sandra@codesourcery.com>
9966
9967 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
9968 ([-fvtv-debug]): Likewise.
9969 ([-Wc++-compat]): Likewise.
9970 ([-Wc++11-compat]): Likewise.
9971 ([-Wc++14-compat]): Likewise.
9972 ([-Wno-sized-deallocation]): Likewise.
9973 ([-femit-class-debug-always]): Likewise.
9974 ([-femit-struct-debug-detailed]): Likewise.
9975 ([-fno-keep-inline-dllexport]): Likewise.
9976 ([-fira-algorithm]): Likewise.
9977 ([-fira-region]): Likewise.
9978 ([-flra-remat]): Likewise.
9979 ([-fipa-ra]): Likewise.
9980 ([-fhoist-adjacent-loads]): Likewise.
9981 ([-fisolate-erroneous-paths-dereference]): Likewise.
9982 ([-fisolate-erroneous-paths-attribute]): Likewise.
9983 ([-ftree-switch-conversion]): Likewise.
9984 ([-ftree-tail-merge]): Likewise.
9985 ([-ftree-loop-if-convert]): Likewise.
9986 ([-ftree-loop-if-convert-stores]): Likewise.
9987 ([-ftree-loop-distribution]): Likewise.
9988 ([-ftree-loop-distribute-patterns]): Likewise.
9989 ([-flto-compression-level]): Likewise.
9990 ([-flto-report]): Likewise.
9991 ([-flto-report-wpa]): Likewise.
9992 ([-fuse-linker-plugin]): Likewise.
9993 ([-mfix-cortex-a53-835769]): Likewise.
9994 ([-mno-fix-cortex-a53-835769]): Likewise.
9995 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
9996 explicit listing; add a note to the discussion indicating they
9997 exist. Reorder table to group similar options. Add missing
9998 @opindex entries. Add @need commands throughout the table to
9999 allow it to be split across multiple pages.
10000 ([-m8bit-idiv]): Fix @opindex.
10001 ([-mavx256-split-unaligned-load]): Likewise.
10002 ([-mavx256-split-unaligned-store]): Likewise.
10003 ([-mstack-protector-guard]): Likewise.
10004 ([-mcpu=]): Likewise.
10005 ([-mcpu]): Likewise.
10006 ([-mpointer-size=]): Likewise.
10007
846ef40a
JDA
100082015-01-03 John David Anglin <danglin@gcc.gnu.org>
10009
10010 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
10011 instead of `m' constraint. Likewise for unnamed movb comparison
10012 patterns using reg_before_reload_operand predicate.
10013 * config/pa/predicates.md (reg_before_reload_operand): Tighten
10014 predicate to reject register index and LO_SUM DLT memory forms
10015 after reload.
389d63bb 10016
d6ae9a6d
SL
100172015-01-02 Sandra Loosemore <sandra@codesourcery.com>
10018
10019 * doc/invoke.texi (Option Summary): Fix spelling of
10020 -fdevirtualize-at-ltrans.
10021 ([-fdevirtualize]): Fix markup.
10022 ([-fdevirtualize-speculatively]): Fix typo.
10023 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
10024 implementor-speaky.
10025 * common.opt (fdevirtualize-at-ltrans): Likewise.
10026 * ipa-devirt.c: Fix typos in comments throughout the file.
10027 (ipa_devirt): Fix typos in format strings for dump output.
10028
dd8d9ac4
SL
100292015-01-02 Sandra Loosemore <sandra@codesourcery.com>
10030
10031 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
10032 discussion of defaults, light copy-editing.
10033
1d4854da
BE
100342015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
10035
10036 * tsan.c (instrument_expr): corrected previous checkin.
10037
fe86867f
BE
100382015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
10039
10040 Instrument bit field and unaligned accesses for TSAN.
10041 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
10042 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
10043 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
10044 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
10045 unaligned memory regions.
10046
f8478c42 100472015-01-01 Anthony Green <green@moxielogic.com>
582f770b 10048
f8478c42
AG
10049 * config/moxie/predicates.md (moxie_general_movsrc_operand):
10050 Restrict move source register offsets to 16 bits.
ad41bd84 10051\f
f8478c42 10052Copyright (C) 2015 Free Software Foundation, Inc.
ad41bd84
JM
10053
10054Copying and distribution of this file, with or without modification,
10055are permitted in any medium without royalty provided the copyright
10056notice and this notice are preserved.
This page took 9.035554 seconds and 5 git commands to generate.