]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
PR pretty-print/67567 do not pass NULL as a string
[thirdparty/gcc.git] / gcc / ChangeLog
1 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
2
3 PR pretty-print/67567
4 * pretty-print.c (pp_string): Add gcc_checking_assert.
5 * pretty-print.h (output_buffer_append_r): Likewise.
6
7 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
8
9 PR target/67675
10 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
11 addr2 individually. Don't emit logical or insn if one is known to
12 be aligned approriately.
13 (sh_expand_cmpnstr): Likewise.
14
15 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
16
17 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
18 __builtin_aarch64_fp[sc]r arguments into a register.
19
20 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
21
22 * config.gcc (x86_archs): Replace lakemount with lakemont.
23 (with_cpu): Likewise.
24 (with_arch): Likewise.
25 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
26 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
27 __tune_lakemount__ with __tune_lakemont__.
28 * config/i386/i386.c (lakemount_cost): Renamed to ...
29 (lakemont_cost): This.
30 (m_LAKEMOUNT): Renamed to ...
31 (m_LAKEMONT): This.
32 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
33 (processor_target_table): Replace "lakemount" with "lakemont".
34 (processor_alias_table): Likewise.
35 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
36 PROCESSOR_LAKEMONT.
37 (ix86_adjust_cost): Likewise.
38 (ia32_multipass_dfa_lookahead): Likewise.
39 * config/i386/i386.h (processor_type): Likewise.
40 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
41 * doc/invoke.texi: Replace lakemount with lakemont. Replace
42 Lakemount with Lakemont.
43
44 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
45
46 * config.gcc (x86_archs): Replace iamcu with lakemount.
47 (with_cpu): Likewise.
48 (with_arch): Likewise.
49 * doc/invoke.texi: Likewise.
50 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
51 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
52 __tune_iamcu__ with __tune_lakemount__.
53 * config/i386/i386.c (iamcu_cost): Renamed to ...
54 (lakemount_cost): This.
55 (m_IAMCU): Renamed to ...
56 (m_LAKEMOUNT): This.
57 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
58 (processor_target_table): Replace "iamcu" with "lakemount".
59 (processor_alias_table): Likewise.
60 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
61 PROCESSOR_LAKEMOUNT.
62 (ix86_adjust_cost): Likewise.
63 (ia32_multipass_dfa_lookahead): Likewise.
64 * config/i386/i386.h (processor_type): Likewise.
65 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
66
67 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
68
69 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
70 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
71 Declare.
72 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
73 (pa_expand_compare_and_swap_loop): New.
74 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
75 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
76 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
77 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
78 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
79 Revise.
80
81 2015-09-24 Michael Collison <michael.collison@linaro.org>
82
83 PR other/57195
84 * read-md.c (read_name): Allow mode iterators inside angle
85 brackets in rtl expressions.
86
87 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
88
89 PR target/61578
90 * ira-color.c (update_allocno_cost): Add parameter.
91 (update_costs_from_allocno): Decrease conflict cost. Pass the new
92 parameter.
93
94 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
95
96 PR driver/67640
97 * opts-common.c (prune_options): Discard all -fdiagnostics-color
98 but the last one, which is moved to the front to be processed
99 first.
100 * opts.c (enable_warning_as_error): Reject options that do not
101 control warnings.
102
103 2015-09-24 Jiong Wang <jiong.wang@arm.com>
104
105 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
106
107 2015-09-24 Jiong Wang <jiong.wang@arm.com>
108
109 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
110 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
111 (aarch64_cannot_force_const_mem): Likewise.
112 (aarch64_classify_address): Likewise.
113 (aarch64_classify_symbolic_expression): Likewise.
114 (aarch64_print_operand): Likewise.
115 (aarch64_classify_symbol): Likewise.
116 (aarch64_mov_operand_p): Likewise.
117 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
118 (aarch64_mov_operand): Likewise.
119
120 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
121
122 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
123 for info->spe_gp_size.
124
125 2015-09-24 Richard Biener <rguenther@suse.de>
126
127 PR lto/67699
128 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
129 abstract origins.
130
131 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
132
133 * tree-object-size.c (plus_stmt_object_size)
134 (cond_expr_object_size): Change the formal parameters from gimple
135 to gimple *.
136 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
137 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
138 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
139
140 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
141
142 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
143 Check for ld -type pie on Solaris 11.x and 12.
144 * configure: Regenerate.
145 * config.in: Regenerate.
146
147 * gcc.c (LD_PIE_SPEC): Allow redefinition.
148
149 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
150 (STARTFILE_SPEC): Use it.
151 (ENDFILE_CRTEND_SPEC): Define.
152 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
153 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
154 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
155 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
156 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
157 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
158 (ENDFILE_ARCH_SPEC): Define.
159 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
160
161 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
162
163 * configure.ac (gcc_cv_solaris_crts): New test.
164 * configure. Regenerate.
165 * config.in: Regenerate.
166 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
167 HAVE_SOLARIS_CRTS variant.
168
169 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
170
171 * tree-inline.h (count_insns_seq): Delete prototype.
172 (estimate_num_insns_seq): Define prototype.
173 * tree-inline.c (count_insns_seq): Delete.
174 (estimate_num_insns_seq): Remove static qualifier.
175 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
176 with estimate_num_insns_seq.
177
178 2015-09-24 Richard Biener <rguenther@suse.de>
179
180 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
181 members.
182 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
183 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
184 offset.
185 (ao_ref_init_from_vn_reference): Record clique and base in the
186 built base.
187 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
188
189 2015-09-24 Richard Biener <rguenther@suse.de>
190
191 PR tree-optimization/48885
192 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
193 as not including any restrict tags from other pointers.
194
195 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
196
197 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
198 character when appending to offload_targets.
199
200 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
201 offload targets by commas, not colons.
202 * config.in: Regenerate.
203 * configure: Likewise.
204 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
205 instead of setting up the default offload targets here...
206 (process_command): ..., do it here.
207 libgomp/
208 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
209 targets are separated by commas.
210 * config.h.in: Regenerate.
211
212 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
213 Nathan Sidwell <nathan@codesourcery.com>
214
215 * omp-low.h (omp_reduction_init_op): Declare.
216 * omp-low.c (omp_reduction_init_op): New, broken out of ...
217 (omp_reduction_init): ... here. Call it.
218 * tree-parloops.c (initialize_reductions): Use
219 omp_reduction_init_op.
220
221 2015-09-23 Richard Biener <rguenther@suse.de>
222
223 PR middle-end/67662
224 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
225 undefined overflow unless they will cancel out.
226
227 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
228
229 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
230 insn emit.
231
232 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
233
234 PR c/49655
235 * opts.h (write_langs): Declare.
236 * opts-global.c (write_langs): Make it extern.
237
238 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
239
240 PR target/67391
241 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
242 overlapping regs when matching the pattern.
243
244 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
245
246 * config/aarch64/aarch64-simd.md
247 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
248 (aarch64_float_truncate_hi_v4sf_le): New.
249 (aarch64_float_truncate_hi_v4sf_be): Likewise.
250
251 2015-09-23 Richard Biener <rguenther@suse.de>
252
253 * tree-ssa-structalias.c (intra_create_variable_infos): Build
254 representatives for all restrict qualified pointer destinations.
255
256 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
257
258 * config/i386/i386.md (define_code_attr mshift): New.
259 (define_mode_iterator SWI1248_AVX512BW): Rename ...
260 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
261 only.
262 (define_insn "*k<logic><mode>"): Use new iterator name.
263 (define_insn "*<mshift><mode>3"): New.
264
265 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
266
267 PR middle-end/67649
268 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
269 mark the block as accessible.
270
271 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
272
273 * function.c (thread_prologue_and_epilogue_insns): Delete
274 orig_entry_edge argument to try_shrink_wrapping.
275 * shrink-wrap.c (can_get_prologue): New function.
276 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
277 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
278 can_get_prologue where needed. Remove code that finds a single
279 edge for the prologue. Remove code that tests if any reg clobbered
280 by the prologue is live on the prologue edge. Remove code that finds
281 the new prologue edge after duplicating blocks. Make a new prologue
282 block and edge.
283 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
284
285 2015-09-22 Jeff Law <law@redhat.com>
286
287 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
288 behavior.
289
290 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
291
292 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
293 -Wtemplates, -Wnamespaces): Document.
294
295 2015-09-22 Tom de Vries <tom@codesourcery.com>
296
297 PR tree-optimization/67671
298 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
299 pointer references as restrict.
300
301 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
302
303 * config/nios2/nios2.c (nios2_legitimize_address): When handling
304 'reg + reloc' cases, allow first operand to be non-REG, and use
305 force_reg() to enforce address pattern.
306
307 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
308
309 PR target/67480
310 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
311 (define_mode_iterator VI12_AVX_AVX512F): New.
312 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
313 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
314 (define_insn "*<code><mode>3"): ... Into new pattern using
315 VI12_AVX_AVX512F iterators without masking.
316
317 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
318
319 * config.gcc: Support "skylake-avx512".
320 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
321 PROCESSOR_SKYLAKE_AVX512.
322 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
323 (processor_target_table): Add "skylake-avx512".
324 (PTA_SKYLAKE_AVX512): Define.
325 (ix86_option_override_internal): Add "skylake_avx512".
326 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
327 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
328 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
329 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
330 * doc/invoke.texi (skylake-avx512): New.
331
332 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
333
334 * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
335 operand in pattern.
336 (define_insn "kunpcksi"): Ditto.
337 (define_insn "kunpckdi"): Ditto.
338
339 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
340
341 * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
342 iterator instead of fixed modes.
343
344 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
345
346 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
347 Adjust declaration.
348 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
349 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
350 out_result. Update to support update-fetch operations.
351 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
352 Adjust for change to aarch64_gen_atomic_ldop.
353 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
354 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
355 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
356 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
357 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
358
359 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
360
361 * config/aarch64/aarch64-protos.h
362 (aarch64_atomic_ldop_supported_p): Declare.
363 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
364 (enum aarch64_atomic_load_op_code): New.
365 (aarch64_emit_atomic_load_op): New.
366 (aarch64_gen_atomic_ldop): Update to support load-operate
367 patterns.
368 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
369 to an expander.
370 (aarch64_atomic_<atomic_optab><mode>): New.
371 (aarch64_atomic_<atomic_optab><mode>_lse): New.
372 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
373 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
374 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
375
376 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
377
378 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
379 (UNSPECV_ATOMIC_LDOP_OR): New.
380 (UNSPECV_ATOMIC_LDOP_BIC): New.
381 (UNSPECV_ATOMIC_LDOP_XOR): New.
382 (UNSPECV_ATOMIC_LDOP_PLUS): New.
383 (ATOMIC_LDOP): New.
384 (atomic_ldop): New.
385 (aarch64_atomic_load<atomic_ldop><mode>): New.
386
387 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
388
389 * config/aarch64/aarch64.md
390 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
391 pattern.
392
393 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
394
395 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
396 Declare.
397 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
398 (aarch64_gen_atomic_ldop): New.
399 (aarch64_split_atomic_op): Fix whitespace and add a comment.
400 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
401 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
402 (atomic_exchange<mode>): Replace with an expander.
403 (aarch64_atomic_exchange<mode>): New.
404 (aarch64_atomic_exchange<mode>_lse): New.
405 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
406 (aarch64_atomic_swp<mode>): New.
407
408 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
409
410 * tree-inline.c (expand_call_inline): Use inform for extra note.
411 Do not give a note with UNKNOWN_LOCATION.
412 Replace input_location with gimple_location (stmt).
413 Use true/false instead of TRUE/FALSE.
414
415 2015-09-22 Tom de Vries <tom@codesourcery.com>
416
417 PR tree-optimization/67666
418 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
419 with single field non-conservative.
420
421 2015-09-21 David S. Miller <davem@davemloft.net>
422
423 PR/67622
424 Revert:
425 2015-09-11 David S. Miller <davem@davemloft.net>
426
427 * config/sparc/constraints.md: Make "U" constraint a real register
428 constraint.
429 * config/sparc/sparc.c (TARGET_LRA_P): Define.
430 (D_MODES, DF_MODES): Add missing cast.
431 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
432 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
433 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
434 cost to 8.
435 * config/sparc/sparc.h (PROMOTE_MODE): Define.
436 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
437 provide these insn when flag_pic.
438
439 2015-09-17 David S. Miller <davem@davemloft.net>
440
441 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
442 Declare.
443 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
444 function.
445 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
446 (HARD_REGNO_CALLER_SAVE_MODE): Define.
447 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
448 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
449 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
450 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
451 provide when flag_pic.
452
453 2015-09-21 Jeff Law <law@redhat.com>
454
455 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
456 behavior.
457
458 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
459
460 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
461
462 2015-09-21 Richard Biener <rguenther@suse.de>
463
464 * passes.c (rest_of_decl_compilation): Do not call
465 dwarf2out_early_global_decl for aliases.
466
467 2015-09-21 Richard Biener <rguenther@suse.de>
468
469 PR debug/67664
470 * dwarf2out.c (add_location_or_const_value_attribute): Remove
471 attribute parameter. Early exit if either DW_AT_const_value
472 or DW_AT_location are present already.
473 (gen_variable_die): Adjust caller.
474 (dwarf2out_late_global_decl): Likewise.
475
476 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
477
478 PR target/67657
479 * config/sh/sh.c (sh_remove_overlapping_post_inc,
480 sh_peephole_emit_move_insn): Add new functions.
481 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
482 sh_peephole_emit_move_insn): Declere them.
483 * config/sh/sh.md: Use them in various peephole2 patterns.
484
485 2015-09-21 Richard Biener <rguenther@suse.de>
486
487 PR middle-end/67651
488 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
489 address with -fno-delete-null-pointer-checks.
490
491 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
492
493 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
494 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
495 (reduc_uplus_v16qi): Remove.
496
497 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
498 (reduc_<VEC_reduc_name>_v2df): Remove.
499 (reduc_<VEC_reduc_name>_v4sf): Remove.
500 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
501
502 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
503 gen_ function by removing * prefix.
504 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
505
506 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
507
508 PR middle-end/60832
509 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
510 Print i_bound without converting it to a tree.
511
512 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
513
514 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
515 operands[4] operands[5] swap with std::swap, removed tmp variable.
516 (arm_evpc_neon_vzip): Replaced in0/in1 and
517 out0/out1 swaps with std::swap, removed x variable.
518 (arm_evpc_neon_vtrn): Replaced in0/int1 and
519 out0/out1 swaos with std::swap, removed x variable.
520 (arm_expand_vec_perm_const_1): Replaced
521 d->op0/d->op1 swap with std::swap, removed x variable.
522 (arm_evpc_neon_vuzp): Replaced in0/in1 and
523 out0/out1 swaps with std::swap, removed x variable.
524
525 2015-09-21 Jonathan Yong <10walls@gmail.com>
526
527 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
528 sysroot/usr/lib/32api for additional win32 libraries,
529 fixes failing Cygwin bootstrapping.
530
531 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
532
533 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
534
535 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
536
537 PR target/67126
538 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
539 (*mov_t_msb_neg): Rewrite negc pattern.
540
541 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
542
543 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
544 immediate generation code.
545
546 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
547
548 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
549 redundant immediate generation code.
550
551 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
552
553 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
554 (AARCH64_NUM_BITMASKS): Remove.
555 (aarch64_bitmasks_cmp): Remove.
556 (aarch64_build_bitmask_table): Remove.
557
558 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
559
560 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
561 slow immediate matching loops with a faster algorithm.
562
563 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
564
565 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
566 faster algorithm.
567
568 2015-09-20 Jeff Law <law@redhat.com>
569
570 PR tree-optimization/47679
571 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
572 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
573 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
574 (thread_through_normal_block): Use record_temporary_equivalences.
575
576 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
577
578 * coretypes.h (gimple): Change typedef to be a forward declaration.
579 * gimple.h (gimple_statement_base): rename to gimple.
580 * (all functions and types using gimple): Adjust.
581 * *.[ch]: Likewise.
582
583 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
584 David Edelsohn <dje.gcc@gmail.com>
585
586 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
587 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
588 (EH_FRAME_THROUGH_COLLECT2): Define.
589 (EH_TABLES_CAN_BE_READ_ONLY): Define.
590 (ASM_OUTPUT_DWARF_PCREL): Define.
591 (ASM_OUTPUT_DWARF_DATAREL): Define.
592
593 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
594
595 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
596 of TARGET_ELF32.
597
598 2015-09-18 Jeff Law <law@redhat.com>
599
600 PR tree-optimization/47679
601 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
602 it here ...
603 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
604 object. Update constructor.
605 (pass_dominator::execute): Corresponding chagnes to declaration
606 and initialization of avail_exprs_stack. Update constructor call
607 for dom_opt_dom_walker object.
608 (lookup_avail_expr, record_cond): Accept additional argument. Pass
609 it down to children as needed.
610 (record_equivalences_from_incoming_edge): Likewise.
611 (eliminate_redundant_computations): Likewise.
612 (record_equivalences_from_stmt): Likewise.
613 (simplify_stmt_for_jump_threading): Likewise.
614 (record_temporary_equivalences): Likewise.
615 (optimize_stmt): Likewise.
616 (dom_opt_dom_walker::thread_across_edge): Update access to
617 avail_exprs_stack object and pass it to children as needed.
618 (dom_opt_dom_walker::before_dom_children): Similarly.
619 (dom_opt_dom_walker::after_dom_children): Similarly.
620 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
621 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
622 Add avail_expr_stack argument. Pass it to children as needed.
623 (dummy_simplify): Likewise.
624 (simplify_control_stmt_condition): Likewise.
625 (thread_around_empty_blocks): Likewise.
626 (thread_through_normal_block): Likewise.
627 (thread_across_edge): Likewise.
628 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
629 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
630
631 PR tree-optimization/47679
632 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
633 it here ...
634 (dom_opt_dom_walker): New private member holding the const_and_copies
635 object. Update constructor.
636 (pass_dominator::execute): Corresponding changes to declaration
637 and initialization of const_and_copies. Update constructor call
638 for the dom_opt_dom_walker object.
639 (record_temporary_equivalences): Accept const_and_copies argument
640 pass it down to children as needed.
641 (record_equality): Likewise.
642 (record_equivalences_from_incoming_edge): Likewise.
643 (cprop_into_successor_phis, optimize_stmt): Likewise.
644 (eliminate_redundant_computations): Likewise.
645 (dom_opt_dom_walker::thread_across_edge): Update access to
646 const_and_copies object and pass it to children as needed.
647 (dom_opt_dom_walker::before_dom_children): Similarly.
648 (dom_opt_dom_walker::after_dom_children): Similarly.
649
650 PR tree-optimization/47679
651 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
652 it into the avail_exprs_stack class.
653 (pass_dominator::execute): Corresponding changes to declaration
654 and initialization of avail_exprs. Pass avail_exprs to
655 dump_dominator_optimization_stats.
656 (record_cond): Extract avail_exprs from avail_exprs_stack.
657 (lookup_avail_expr): Similarly.
658 (htab_staticstics): Remove unnecessary prototype. Move to earlier
659 position in file.
660 (dump_dominator_optimization_stats): Make static and prototype.
661 Add argument for the hash table to dump.
662 (debug_dominator_optimization_stats): Remove.
663 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
664 prototype.
665 (debug_dominator_optimization_stats): Similarly.
666 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
667 "void" in prototype for pop_to_marker method. Add accessor method
668 for the underlying avail_exprs table.
669
670 * tree-ssa-threadedge.c: Remove trailing whitespace.
671
672 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
673
674 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
675 unsigned.
676 (pa_ldil_cint_p): Likewise.
677 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
678 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
679 Update callers.
680 * config/pa/pa.md: Likewise.
681
682 2015-09-18 David Malcolm <dmalcolm@redhat.com>
683
684 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
685 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
686 (diagnostic_show_locus): Likewise.
687 (diagnostic_print_caret_line): Likewise.
688 * diagnostic-show-locus.c: New file.
689
690 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
691
692 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
693 "back" parameter. Declare label in #if block.
694
695 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
696
697 PR middle-end/67619
698 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
699 the address to a register.
700
701 2015-09-18 Jeff Law <law@redhat.com>
702
703 PR tree-optimization/47679
704 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
705 * tree-ssa-dom.c: Remove unnecessary header includes.
706 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
707 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
708 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
709 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
710 (pass_phi_only_cprop::execute): Likewise.
711 (make_pass_phi_only_cprop): Likewise.
712 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
713 uses of file scoped statics by passing the required objects
714 as parameters wherever needed.
715
716 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
717 David Edelsohn <dje.gcc@gmail.com>
718
719 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
720 EH_FRAME_THROUGH_COLLECT2.
721 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
722 DW_EH_PE_datarel.
723 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
724 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
725 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
726 * except.c (switch_to_exception_section): Use a read-only section
727 even if EH_FRAME_SECTION_NAME is undefined.
728 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
729 * collect2.c (write_c_file_stat): Provide dbase on AIX.
730 (scan_prog_file): Don't export __dso_handle nor
731 __gcc_unwind_dbase.
732 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
733 (EH_TABLES_CAN_BE_READ_ONLY): Define.
734 (ASM_OUTPUT_DWARF_PCREL): Define.
735 (ASM_OUTPUT_DWARF_DATAREL): Define.
736 (EH_FRAME_THROUGH_COLLECT2): Define.
737 (EH_FRAME_IN_DATA_SECTION): Delete.
738 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
739 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
740 Declare.
741 (rs6000_asm_output_dwarf_datarel): Declare.
742 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
743 (rs6000_aix_asm_output_dwarf_datarel): New.
744 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
745 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
746 (EH_FRAME_THROUGH_COLLECT2): Define.
747 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
748 (EH_FRAME_THROUGH_COLLECT2): Define.
749 (EH_TABLES_CAN_BE_READ_ONLY): Define.
750 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
751 (EH_FRAME_THROUGH_COLLECT2): New.
752 (ASM_OUTPUT_DWARF_DATAREL): New.
753 * doc/tm.texi: Regenerate.
754
755 2015-09-18 Richard Biener <rguenther@suse.de>
756
757 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
758 we're in early phase.
759 (schedule_generic_params_dies_gen): Likewise.
760 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
761 work as possible, retaining unhandled cases.
762 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
763 clear out generic_type_instances at the end.
764 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
765 (dwarf2out_early_finish): ... here. Do most of
766 gen_remaining_tmpl_value_param_die_attribute here.
767
768 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
769
770 PR tree-optimization/67283
771 * tree-sra.c (type_consists_of_records_p): Rename to...
772 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
773 (completely_scalarize_record): Rename to...
774 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
775 (scalarize_elem): New.
776 (analyze_all_variable_accesses): Follow renamings.
777
778 2015-09-18 Richard Biener <rguenther@suse.de>
779
780 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
781 in early-dwarf.
782
783 2015-09-18 Richard Biener <rguenther@suse.de>
784
785 PR tree-optimization/66142
786 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
787 treat MEM[&x] and x the same.
788 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
789 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
790 when we simplified sth.
791 (vn_reference_maybe_forwprop_address): Likewise.
792 (valueize_refs_1): When we simplified through
793 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
794 set valueized_anything to true.
795 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
796 one ref kills the other instead of just a offset-based test.
797 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
798 for the operand_equal_p test to compare bases and also compare
799 sizes.
800
801 2015-09-17 Christian Bruel <christian.bruel@st.com>
802
803 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
804
805 2015-09-17 Richard Henderson <rth@redhat.com>
806
807 PR libstdc++/65913
808 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
809 pointers that encode the alignment of the object.
810
811 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
812
813 PR rtl-optimization/66790
814 * df-problems.c (LIVE): Amend documentation.
815
816 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
817
818 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
819 and optabs-tree.o.
820 (GTFILES): Replace optabs.c with optabs-libfunc.c.
821 * genopinit.c (main): Add an include guard to insn-opinit.h.
822 Protect the rtx_code parts with NUM_RTX_CODE.
823 * optabs.h: Split parts out to...
824 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
825 * optabs.c: Split parts out to...
826 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
827 * cilk-common.c: Include optabs-query.h rather than optabs.h.
828 * fold-const.c: Likewise.
829 * target-globals.c: Likewise.
830 * tree-if-conv.c: Likewise.
831 * tree-ssa-forwprop.c: Likewise.
832 * tree-ssa-loop-prefetch.c: Likewise.
833 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
834 Remove unncessary include files.
835 * tree-ssa-phiopt.c: Likewise.
836 * tree-ssa-reassoc.c: Likewise.
837 * tree-switch-conversion.c: Likewise.
838 * tree-vect-data-refs.c: Likewise.
839 * tree-vect-generic.c: Likewise.
840 * tree-vect-loop.c: Likewise.
841 * tree-vect-patterns.c: Likewise.
842 * tree-vect-slp.c: Likewise.
843 * tree-vect-stmts.c: Likewise.
844 * tree-vrp.c: Likewise.
845 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
846 rather than optabs.h.
847 * expr.c: Include optabs-tree.h.
848 * function.c: Likewise.
849
850 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
851
852 PR middle-end/65958
853 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
854 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
855 * config/arm/arm.c: Include common/common-target.h.
856 (use_return_insn): Return 0 if the static chain register was saved
857 above a non-APCS frame.
858 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
859 (struct scratch_reg): New.
860 (get_scratch_register_on_entry): New function.
861 (release_scratch_register_on_entry): Likewise.
862 (arm_emit_probe_stack_range): Likewise.
863 (output_probe_stack_range): Likewise.
864 (arm_expand_prologue): Factor out code dealing with the IP register
865 for nested function and adjust it for stack checking.
866 Invoke arm_emit_probe_stack_range if static builtin stack checking
867 is enabled.
868 (thumb1_expand_prologue): Sorry out if static builtin stack checking
869 is enabled.
870 (arm_expand_epilogue): Add the saved static chain register, if any, to
871 the amount of pre-pushed registers to pop.
872 (arm_frame_pointer_required): Return true if static stack checking is
873 enabled and we want to catch the exception with the EABI unwinder.
874 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
875 (UNSPEC_PROBE_STACK_RANGE): Likewise.
876 * config/arm/arm.md (probe_stack): New insn.
877 (probe_stack_range): Likewise.
878
879 2015-09-17 Richard Biener <rguenther@suse.de>
880
881 * genmatch.c (parser::parse_expr): Improve error message
882 for mis-placed flags.
883
884 2015-09-17 Richard Biener <rguenther@suse.de>
885
886 * passes.c (rest_of_decl_compilation): Always call early_global_decl
887 debug hook when we created a varpool node.
888 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
889 dwarf2out_early_global_decl, when not just add location or
890 value attributes to existing DIEs.
891
892 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
893
894 * config/aarch64/aarch64.md (copysigndf3): New.
895 (copysignsf3): Likewise.
896
897 2015-09-17 David S. Miller <davem@davemloft.net>
898
899 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
900 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
901 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
902 (HARD_REGNO_CALLER_SAVE_MODE): Define.
903 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
904 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
905 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
906 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
907 provide when flag_pic.
908
909 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
910
911 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
912 object_allocator change.
913
914 2015-09-17 Bin Cheng <bin.cheng@arm.com>
915
916 PR tree-optimization/66388
917 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
918 (dump_iv): Dump no_overflow information.
919 (alloc_iv): Initialize new field for struct iv.
920 (mark_bivs): Count number of no_overflow bivs.
921 (find_deriving_biv_for_expr, record_biv_for_address_use): New
922 functions.
923 (idx_find_step): Call new functions above.
924 (add_candidate_1, add_candidate): New paramter.
925 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
926 (get_computation_aff): Simplify convertion of cand for BIV.
927 (get_computation_cost_at): Step cand's base if necessary.
928
929 2015-09-17 Bin Cheng <bin.cheng@arm.com>
930
931 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
932 parameter.
933 (tree_simplify_using_condition): Ditto.
934 (simplify_using_initial_conditions): Ditto.
935 (loop_exits_before_overflow): Pass new argument to function
936 simplify_using_initial_conditions. Remove case for type conversions
937 simplification.
938 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
939 parameter.
940 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
941 in iv base using loop initial conditions.
942
943 2015-09-16 Jeff Law <law@redhat.com>
944
945 PR tree-optimization/47679
946 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
947 (free_all_edge_infos): Use it.
948 (allocate_edge_info): Free preexisting edge info data.
949 (pass_dominator::execute): Set up initial edge info structures.
950 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
951 thread_across_edge.
952 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
953 If non-null, then push/pop markers appropriately.
954 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
955 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
956 thread-across_edge.
957
958 2015-09-16 James Bowman <james.bowman@ftdichip.com>
959
960 * config/ft32/ft32.c: Fix the memory address space predicate.
961
962 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
963
964 PR target/67573
965 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
966 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
967
968 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
969
970 * toplev.h (check_global_declaration): Remove declaration.
971 * toplev.c (check_global_declaration): Move to ...
972 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
973 (analyze_functions): Update call.
974
975 2015-09-16 David S. Miller <davem@davemloft.net>
976
977 * lra-constraints.c (simplify_operand_subreg): Do not assume that
978 lowpart of a SUBREG has offset zero.
979
980 2015-09-16 Jeff Law <law@redhat.com>
981
982 PR tree-optimization/47679
983 * tree-ssa-dom.c (enum expr_kind): Moved from here to
984 tree-ssa-scopedtables.h.
985 (struct hashable_expr, class expr_hash_elt): Likewise.
986 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
987 Move associated methods into tree-ssa-scopedtables.c.
988 (avail_expr_hash, initialize_expr_from_cond): Similarly.
989 (hashable_expr_equal_p, add_expr_commutative): Likewise.
990 (add_hashable_expr): Likewise.
991 (record_cond): Delete element directly.
992 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
993 private copy ctor and assignment operator methods.
994 (expr_elt_hasher): Inline trivial methods.
995 (initialize_expr_from_cond): Prototype.
996 * tree-ssa-scopedtables.c: Add necessary includes, functions and
997 methods that were previously in tree-ssa-dom.c. Improve various
998 comments.
999
1000 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
1001
1002 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
1003
1004 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
1005
1006 PR bootstrap/67587
1007 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
1008 fixup_partitions.
1009
1010 2015-09-16 Richard Biener <rguenther@suse.de>
1011
1012 PR middle-end/67253
1013 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
1014 location of possibly shared trees.
1015
1016 2015-09-16 Richard Biener <rguenther@suse.de>
1017
1018 PR middle-end/67271
1019 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
1020
1021 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
1022
1023 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
1024 offset and size computations instead of HOST_WIDE_INT.
1025
1026 2015-09-16 Richard Biener <rguenther@suse.de>
1027
1028 PR middle-end/67442
1029 * fold-const.c (extract_muldiv_1): Properly extend multiplication
1030 result before builting a tree via wide_int_to_tree.
1031
1032 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
1033
1034 * Makefile.in: Add memory-block.cc
1035 (pool_allocator::initialize): Use fixed block size.
1036 (pool_allocator::release): Use memory_block_pool.
1037 (pool_allocator::allocate): Likewise.
1038 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
1039 object pools.
1040 * cfg.c (initialize_original_copy_tables): Likewise.
1041 * cselib.c (elt_list_pool, elt_loc_list_pool,
1042 cselib_val_pool): Likewise.
1043 * df-problems.c (df_chain_alloc): Likewise.
1044 * df-scan.c (df_scan_alloc): Likewise.
1045 * dse.c (cse_store_info_pool, rtx_store_info_pool,
1046 read_info_type_pool, insn_info_type_pool, bb_info_pool,
1047 group_info_pool, deferred_change_pool): Likewise.
1048 * et-forest.c (et_nodes, et_occurrences): Likewise.
1049 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
1050 ipcp_agg_lattice_pool): Likewise.
1051 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
1052 * ipa-profile.c (histogram_pool): Likewise.
1053 * ipa-prop.c (ipa_refdesc_pool): Likewise.
1054 * ira-build.c (live_range_pool, allocno_pool, object_pool,
1055 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
1056 * ira-color.c (update_cost_record_pool): Likewise.
1057 * lra-lives.c (lra_live_range_pool): Likewise.
1058 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
1059 * memory-block.cc: New file.
1060 * memory-block.h: New file.
1061 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
1062 * sched-deps.c (sched_deps_init): Likewise.
1063 * sel-sched-ir.c (sched_lists_pool): Likewise.
1064 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
1065 * tree-sra.c (access_pool): Likewise.
1066 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
1067 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
1068 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
1069 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
1070 * tree-ssa-strlen.c (strinfo_pool): Likewise.
1071 * tree-ssa-structalias.c (variable_info_pool): Likewise.
1072 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
1073 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
1074
1075 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
1076
1077 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
1078 definition.
1079 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
1080 call0 ABI.
1081
1082 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
1083
1084 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
1085 to pass TLS call argument, according to current ABI.
1086 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
1087 callx0 for TLS call, according to current ABI.
1088
1089 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
1090
1091 * tree-eh.c (lower_try_finally_dup_block): Clear location information
1092 on stack restore statements.
1093 (decide_copy_try_finally): Do not consider a stack restore statement as
1094 coming from sources.
1095
1096 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
1097
1098 * config/alpha/alpha.c (alpha_expand_block_clear): Use
1099 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
1100
1101 2015-09-15 Jeff Law <law@redhat.com>
1102
1103 PR tree-optimization/47679
1104 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
1105 methods and private members.
1106 (avail_exprs_stack): Similarly. Change type of global
1107 from a pair of expr_hash_elt_t to the new class.
1108 (expr_elt_hasher::hash): Corresponding changes.
1109 (expr_elt_hasher::equal): Similarly.
1110 (avail_expr_hash): Similarly.
1111 (pass_dominator::execute): Similarly.
1112 (dom_opt_dom_walker::thread_across_edge): Similarly.
1113 (record_cond): Similarly.
1114 (dom_opt_dom_walker::before_dom_children): Similarly.
1115 (dom_opt_dom_walker::after_dom_children): Similarly.
1116 (lookup_avail_expr): Likewise.
1117 (initialize_hash_element): Now a expr_hash_elt constructor.
1118 (initialize_hash_element_from_expr): Similarly.
1119 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
1120 (free_expr_hash_elt): Call dtor for the element.
1121 (remove_local_expressions_from_table): Now the "pop_to_marker"
1122 method in the available_exprs_stack class.
1123 (avail_expr_stack::record_expr): Method factored out.
1124 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
1125 Fix formatting.
1126 (hashable_expr_equal_p): Fix formatting.
1127
1128 2015-09-15 David Malcolm <dmalcolm@redhat.com>
1129
1130 * input.h (location_get_source_line): Drop "expanded_location"
1131 param in favor of a file and line number.
1132 * input.c (location_get_source_line): Likewise.
1133 (dump_location_info): Update for change in signature of
1134 location_get_source_line.
1135 * diagnostic.c (diagnostic_print_caret_line): Likewise.
1136
1137 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
1138
1139 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
1140 Bump to 4KB for SJLJ exceptions.
1141 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
1142 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
1143 * doc/tm.texi: Regenerate.
1144
1145 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1146
1147 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
1148 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
1149 Update prototype.
1150
1151 2015-09-15 Richard Biener <rguenther@suse.de>
1152
1153 PR tree-optimization/67470
1154 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
1155 structure for PHI hoisting by inserting a forwarder block
1156 if appropriate.
1157
1158 2015-09-15 Christian Bruel <christian.bruel@st.com>
1159
1160 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
1161 (arm_option_print): New function.
1162
1163 2015-09-15 Christian Bruel <christian.bruel@st.com>
1164
1165 PR target/52144
1166 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
1167 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
1168 Remove flags parameter.
1169 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
1170 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
1171 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
1172 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
1173 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
1174 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
1175 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
1176 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
1177
1178 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1179
1180 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
1181
1182 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
1183 AARCH64_VALID_SIMD_DREG_MODE.
1184
1185 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1186
1187 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
1188 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
1189 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
1190 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
1191 aarch64_ld4_lane<mode>): Combine together, making...
1192 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
1193 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
1194 aarch64_st4_lane<mode>): Combine together, making...
1195 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
1196 * config/aarch64/iterators.md (nregs): Add comment.
1197
1198 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1199
1200 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
1201 Change operand mode from <V_TWO_ELEM> to BLK.
1202 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
1203 (aarch64_vec_store_lanesoi_lane<mode): Likewise
1204 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
1205 (aarch64_ld2_lane<mode>): Likewise.
1206 (aarch64_st2_lane<VQ:mode>): Likewise.
1207 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
1208
1209 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1210
1211 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
1212 Change operand mode from <V_FOUR_ELEM> to BLK.
1213 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
1214 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
1215 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
1216 (aarch64_ld4_lane<mode>): Likewise.
1217 (aarch64_st4_lane<mode>): Likewise.
1218 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
1219
1220 2015-09-15 Richard Biener <rguenther@suse.de>
1221
1222 PR middle-end/67563
1223 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
1224 transfer EH info from old to new stmt.
1225 (replace_call_with_value): Likewise.
1226 (replace_call_with_call_and_fold): Likewise.
1227 (gimple_fold_builtin_memory_op): Likewise.
1228 (gimple_fold_builtin_memset): Likewise.
1229 (gimple_fold_builtin_stpcpy): Likewise.
1230 (gimple_fold_call): Likewise.
1231
1232 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1233
1234 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
1235 comment.
1236 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
1237 (aarch64_simd_intEI_type_node): Likewise.
1238 (aarch64_simd_builtin_std_type): Remove EImode case.
1239 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
1240 * config/aarch64/aarch64-modes.def: Remove EImode.
1241
1242 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1243
1244 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
1245 Change operand mode from <V_THREE_ELEM> to BLK.
1246 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
1247 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
1248 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
1249 (aarch64_ld3_lane<mode>): Likewise.
1250 (aarch64_st3_lane<mode>): Likewise.
1251 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
1252
1253 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1254
1255 * config/aarch64/aarch64-simd.md
1256 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
1257 Change all TImode operands to BLKmode.
1258 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
1259 Change all EImode operands to BLKmode.
1260 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
1261 Change all OImode operands to BLKmode.
1262
1263 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
1264 and call set_mem_size.
1265 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
1266
1267 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
1268
1269 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
1270
1271 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
1272 to...
1273 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
1274
1275 (vec_store_lanesci_lane<mode>): Rename to...
1276 (aarch64_vec_store_lanesci_lane<mode>): ...this.
1277
1278 (vec_store_lanesxi_lane<mode>): Rename to...
1279 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
1280
1281 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
1282 aarch64_st4_lane<mode>): Follow renaming.
1283
1284 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1285
1286 * config/s390/s390.c (s390_const_operand_ok): Add missing
1287 brackets.
1288
1289 2015-09-15 Richard Biener <rguenther@suse.de>
1290
1291 PR lto/67568
1292 * lto-streamer.h (lto_location_cache::current_sysp): Properly
1293 initialize.
1294 * lto-streamer-out.c (clear_line_info): Likewise.
1295
1296 2015-09-15 Richard Biener <rguenther@suse.de>
1297
1298 * doc/match-and-simplify.texi: Fix wording.
1299
1300 2015-09-15 Bin Cheng <bin.cheng@arm.com>
1301
1302 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
1303 unnecessary type conversion in op1.
1304
1305 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
1306
1307 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
1308 (dup_block_and_redirect): Delete function.
1309 (can_dup_for_shrink_wrapping): New function.
1310 (fix_fake_fallthrough_edge): New function.
1311 (try_shrink_wrapping): Rewrite function.
1312 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
1313
1314 2015-09-14 Rich Felker <dalias@libc.org>
1315
1316 * configure.ac: Change target pattern for sh TLS support
1317 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
1318 * configure: Regenerate.
1319
1320 2015-09-14 Jeff Law <law@redhat.com>
1321
1322 PR tree-optimization/47679
1323 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
1324 type rather than void *.
1325
1326 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1327
1328 PR fortran/67460
1329 * diagnostic.c (diagnostic_initialize): Do not set
1330 some_warnings_are_errors.
1331 (diagnostic_finish): Use DK_WERROR count instead.
1332 (diagnostic_report_diagnostic): Do not set
1333 some_warnings_are_errors.
1334 * diagnostic.h (struct diagnostic_context): Remove
1335 some_warnings_are_errors.
1336
1337 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
1338
1339 * config/sparc/predicates.md (const_all_ones_operand): Use
1340 CONSTM1_RTX to simplify definition.
1341
1342 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
1343
1344 PR target/67061
1345 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
1346 Handle call insns.
1347
1348 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
1349
1350 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
1351 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
1352 OPT_fshow_column to handled saved option cases.
1353 (append_compiler_options): Do not skip the above added options.
1354
1355 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1356
1357 PR target/63304
1358 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
1359 nopcrelative_literal_loads.
1360 (aarch64_classify_address): Likewise.
1361 (aarch64_constant_pool_reload_icode): Define.
1362 (aarch64_secondary_reload): Handle secondary reloads for
1363 literal pools.
1364 (aarch64_override_options): Handle nopcrelative_literal_loads.
1365 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
1366 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
1367 Define.
1368 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
1369 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
1370 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
1371 predicate.
1372 * doc/invoke.texi (mpc-relative-literal-loads): Document.
1373
1374 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
1375
1376 PR middle-end/67401
1377 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
1378 sync_compare_and_swap_optab libcall to target_oval.
1379
1380 2015-09-14 Marek Polacek <polacek@redhat.com>
1381
1382 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
1383 value.
1384 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
1385
1386 2015-09-11 Mark Wielaard <mjw@redhat.com>
1387
1388 PR c/28901
1389 * toplev.c (check_global_declaration): Check and use
1390 warn_unused_const_variable.
1391 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
1392 (-Wunused-variable): Remove non-constant. For C implies
1393 -Wunused-const-variable.
1394 (-Wunused-const-variable): New.
1395
1396 2015-09-14 Richard Biener <rguenther@suse.de>
1397
1398 * doc/match-and-simplify.texi: Update for changed syntax
1399 of inner ifs and the new switch expression.
1400
1401 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
1402
1403 * config/i386/haswell.md: New file describing Haswell pipeline.
1404 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
1405 haswell-like processors.
1406 (ix86_reassociation_width): Increase reassociation width for 64-bit
1407 Haswell processor family.
1408 * config/i386/i386.md: Introduce haswell cpu and include new md file.
1409
1410 2015-09-14 Richard Biener <rguenther@suse.de>
1411
1412 * doc/match-and-simplify.texi: Fixup some formatting issues
1413 and document the 's' flag.
1414
1415 2015-09-13 Olivier Hainque <hainque@adacore.com>
1416 Eric Botcazou <ebotcazou@adacore.com>
1417
1418 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
1419 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
1420 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
1421 (TARGET_CPU_gr5): Likewise.
1422 (TARGET_CPU_gr6): Likewise.
1423 (MULTILIB_DEFAULTS): Likewise.
1424 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
1425 for mcpu=gr5 and mcpu=gr6.
1426 (MULTILIB_DIRNAMES): Adjust accordingly.
1427
1428 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1429
1430 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
1431 (mem_ref_p): Likewise.
1432 (outermost_indep_loop): Adjust.
1433 (mem_ref_in_stmt): Likewise.
1434 (determine_max_movement): Likewise.
1435 (mem_ref_alloc): Likewise.
1436 (record_mem_ref_loc): Likewise.
1437 (set_ref_stored_in_loop): Likewise.
1438 (mark_ref_stored): Likewise.
1439 (gather_mem_refs_stmt): Likewise.
1440 (mem_refs_may_alias_p): Likewise.
1441 (for_all_locs_in_loop): Likewise.
1442 (struct rewrite_mem_ref_loc): Likewise.
1443 (rewrite_mem_refs): Likewise.
1444 (struct first_mem_ref_loc_1): Likewise.
1445 (first_mem_ref_loc): Likewise.
1446 (struct sm_set_flag_if_changed): Likewise.
1447 (execute_sm_if_changed_flag_set): Likewise.
1448 (execute_sm): Likewise.
1449 (hoist_memory_references):
1450 (struct ref_always_accessed): Likewise.
1451 (ref_always_accessed_p): Likewise.
1452 (refs_independent_p): Likewise.
1453 (record_dep_loop): Likewise.
1454 (ref_indep_loop_p_1): Likewise.
1455 (ref_indep_loop_p_2): Likewise.
1456 (ref_indep_loop_p): Likewise.
1457 (can_sm_ref_p): Likewise.
1458 (find_refs_for_sm): Likewise.
1459 (tree_ssa_lim_finalize): Likewise.
1460
1461 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1462
1463 * dwarf2out.c (dw_attr_ref): Remove typedef.
1464 (dw_line_info_ref): Likewise.
1465 (pubname_ref): Likewise.
1466 (dw_ranges_ref): Likewise.
1467 (dw_ranges_by_label_ref): Likewise.
1468 (comdat_type_node_ref): Likewise.
1469 (get_AT): Adjust.
1470 (get_AT_low_pc): Likewise.
1471 (get_AT_hi_pc): Likewise.
1472 (get_AT_string): Likewise.
1473 (get_AT_flag): Likewise.
1474 (get_AT_unsigned): Likewise.
1475 (get_AT_ref): Likewise.
1476 (get_AT_file): Likewise.
1477 (remove_AT): Likewise.
1478 (print_die): Likewise.
1479 (check_die): Likewise.
1480 (die_checksum): Likewise.
1481 (attr_checksum_ordered): Likewise.
1482 (struct checksum_attributes): Likewise.
1483 (collect_checksum_attributes): Likewise.
1484 (die_checksum_ordered): Likewise.
1485 (same_die_p): Likewise.
1486 (is_declaration_die): Likewise.
1487 (clone_die): Likewise.
1488 (clone_as_declaration): Likewise.
1489 (copy_declaration_context): Likewise.
1490 (break_out_comdat_types): Likewise.
1491 (copy_decls_walk): Likewise.
1492 (output_location_lists): Likewise.
1493 (external_ref_hasher::hash): Likewise.
1494 (optimize_external_refs_1): Likewise.
1495 (build_abbrev_table): Likewise.
1496 (size_of_die): Likewise.
1497 (unmark_all_dies): Likewise.
1498 (size_of_pubnames): Likewise.
1499 (output_die_abbrevs): Likewise.
1500 (output_die): Likewise.
1501 (output_pubnames): Likewise.
1502 (add_ranges_num): Likewise.
1503 (add_ranges_by_labels): Likewise.
1504 (add_high_low_attributes): Likewise.
1505 (gen_producer_string): Likewise.
1506 (dwarf2out_set_name): Likewise.
1507 (new_line_info_table): Likewise.
1508 (prune_unused_types_walk_attribs): Likewise.
1509 (prune_unused_types_update_strings): Likewise.
1510 (prune_unused_types): Likewise.
1511 (resolve_addr): Likewise.
1512 (optimize_location_lists_1): Likewise.
1513 (index_location_lists): Likewise.
1514 (dwarf2out_finish): Likewise.
1515
1516 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1517
1518 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
1519
1520 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1521
1522 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
1523 (dump_asserts_for): Adjust.
1524 (register_new_assert_for): Likewise.
1525 (process_assert_insertions): Likewise.
1526 (insert_range_assertions): Likewise.
1527
1528 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1529
1530 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
1531 and remove typedef.
1532 (new_temp_expr_table): Adjust.
1533 (free_temp_expr_table): Likewise.
1534 (version_to_be_replaced_p): Likewise.
1535 (make_dependent_on_partition): Likewise.
1536 (add_to_partition_kill_list): Likewise.
1537 (remove_from_partition_kill_list): Likewise.
1538 (add_dependence): Likewise.
1539 (finished_with_expr): Likewise.
1540 (process_replaceable): Likewise.
1541 (kill_expr): Likewise.
1542 (kill_virtual_exprs): Likewise.
1543 (mark_replaceable): Likewise.
1544 (find_replaceable_in_bb): Likewise.
1545 (find_replaceable_exprs): Likewise.
1546 (debug_ter): Likewise.
1547
1548 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1549
1550 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
1551 (struct btr_user): Rename from btr_user_s.
1552 (struct btr_def): Rename from btr_def_s.
1553 (find_btr_def_group): Adjust.
1554 (add_btr_def): Likewise.
1555 (new_btr_user): Likewise.
1556 (note_other_use_this_block): Likewise.
1557 (compute_defs_uses_and_gen): Likewise.
1558 (link_btr_uses): Likewise.
1559 (build_btr_def_use_webs): Likewise.
1560 (block_at_edge_of_live_range_p): Likewise.
1561 (btr_def_live_range): Likewise.
1562 (combine_btr_defs): Likewise.
1563 (move_btr_def): Likewise.
1564 (migrate_btr_def): Likewise.
1565 (migrate_btr_defs): Likewise.
1566
1567 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1568
1569 * var-tracking.c (shared_hash_def): Rename to shared_hash.
1570 (shared_hash): Remove typedef.
1571 (struct dataflow_set): Adjust.
1572 (shared_hash_unshare): Likewise.
1573 (dataflow_set_merge): Likewise.
1574 (vt_initialize): Likewise.
1575 (vt_finalize): Likewise.
1576
1577 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1578
1579 * var-tracking.c (struct location_chain): Rename from
1580 location_chain_def.
1581 (struct variable_part): Adjust.
1582 (variable_htab_free): Likewise.
1583 (unshare_variable): Likewise.
1584 (get_init_value): Likewise.
1585 (get_addr_from_local_cache): Likewise.
1586 (drop_overlapping_mem_locs): Likewise.
1587 (val_reset): Likewise.
1588 (struct variable_union_info): Likewise.
1589 (variable_union): Likewise.
1590 (find_loc_in_1pdv): Likewise.
1591 (insert_into_intersection): Likewise.
1592 (intersect_loc_chains): Likewise.
1593 (canonicalize_loc_order_check): Likewise.
1594 (canonicalize_values_mark): Likewise.
1595 (canonicalize_values_star): Likewise.
1596 (canonicalize_vars_star): Likewise.
1597 (variable_merge_over_cur): Likewise.
1598 (remove_duplicate_values): Likewise.
1599 (variable_post_merge_new_vals): Likewise.
1600 (variable_post_merge_perm_vals): Likewise.
1601 (find_mem_expr_in_1pdv): Likewise.
1602 (dataflow_set_preserve_mem_locs): Likewise.
1603 (dataflow_set_remove_mem_locs): Likewise.
1604 (variable_part_different_p): Likewise.
1605 (onepart_variable_different_p): Likewise.
1606 (find_src_set_src): Likewise.
1607 (dump_var): Likewise.
1608 (set_slot_part): Likewise.
1609 (clobber_slot_part): Likewise.
1610 (delete_slot_part): Likewise.
1611 (vt_expand_var_loc_chain): Likewise.
1612 (emit_note_insn_var_location): Likewise.
1613 (vt_finalize): Likewise.
1614
1615 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1616
1617 * dse.c (store_info_t): Remove typedef.
1618 (group_info_t): Likewise.
1619 (const_group_info_t): Likewise.
1620 (deferred_change_t): Likewise.
1621 (get_group_info): Adjust.
1622 (free_store_info): Likewise.
1623 (canon_address): Likewise.
1624 (clear_rhs_from_active_local_stores): Likewise.
1625 (record_store): Likewise.
1626 (replace_read): Likewise.
1627 (check_mem_read_rtx): Likewise.
1628 (scan_insn): Likewise.
1629 (remove_useless_values): Likewise.
1630 (dse_step1): Likewise.
1631 (dse_step2_init): Likewise.
1632 (dse_step2_nospill): Likewise.
1633 (scan_stores_nospill): Likewise.
1634 (scan_reads_nospill): Likewise.
1635 (dse_step3_exit_block_scan): Likewise.
1636 (dse_step3): Likewise.
1637 (dse_step5_nospill): Likewise.
1638 (dse_step6): Likewise.
1639
1640 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1641
1642 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
1643 (alias_set_entry): Remove typedef.
1644 (alias_set_subset_of): Adjust.
1645 (alias_sets_conflict_p): Likewise.
1646 (init_alias_set_entry): Likewise.
1647 (get_alias_set): Likewise.
1648 (new_alias_set): Likewise.
1649 (record_alias_subset): Likewise.
1650
1651 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
1652
1653 * doc/install.texi (Downloading the source): Mark up
1654 contrib/download_prerequisites properly and drop leading "./".
1655
1656 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1657
1658 * config/arc/arc.h: Remove define of STRUCT_VALUE.
1659 * config/lm32/lm32.h: Likewise.
1660 * config/mep/mep.h: Likewise.
1661 * config/visium/visium.h: Likewise.
1662 * system.h: Poison STRUCT_VALUE macro.
1663
1664 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
1665
1666 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
1667 CONSTANT_P operands.
1668
1669 2015-09-11 David S. Miller <davem@davemloft.net>
1670
1671 * config/sparc/constraints.md: Make "U" constraint a real register
1672 constraint.
1673 * config/sparc/sparc.c (TARGET_LRA_P): Define.
1674 (D_MODES, DF_MODES): Add missing cast.
1675 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
1676 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
1677 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
1678 cost to 8.
1679 * config/sparc/sparc.h (PROMOTE_MODE): Define.
1680 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
1681 provide these insn when flag_pic.
1682
1683 2015-09-11 Jeff Law <law@redhat.com>
1684
1685 PR tree-optimization/47679
1686 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
1687 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
1688 member with m_. Update inline member functions as necessary. Add
1689 toplevel comment.
1690 * tree-ssa-scopedtables.c: Update const_and_copies's member
1691 functions to use m_ prefix to access the stack.
1692
1693 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
1694
1695 * graphite-optimize-isl.c (disable_tiling): Remove.
1696 (get_schedule_for_band): Do not use disable_tiling.
1697 (get_prevector_map): Delete function.
1698 (enable_polly_vector): Remove.
1699 (get_schedule_for_band_list): Remove dead code.
1700
1701 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
1702
1703 * graphite-optimize-isl.c (get_tile_map): Refactor.
1704 (get_schedule_for_band): Same.
1705 (getScheduleForBand): Same.
1706 (get_prevector_map): Same.
1707 (get_schedule_for_band_list): Same.
1708 (get_schedule_map): Same.
1709 (get_single_map): Same.
1710 (apply_schedule_map_to_scop): Same.
1711 (optimize_isl): Same.
1712
1713 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1714
1715 PR target/63304
1716 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
1717 (movtf): Delete.
1718 * config/aarch64/iterators.md (GPF_TF_F16): New.
1719 (GPF_F16): Delete.
1720
1721 2015-09-10 Nathan Sidwell <nathan@acm.org>
1722
1723 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
1724 (nvptx_reorg): Adjust comments.
1725
1726 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
1727
1728 PR bootstrap/67363
1729 * configure.ac: Check if setenv and unsetenv are declared.
1730 * configure: Rebuild.
1731 * config.in: Rebuild.
1732 * system.h: Declare setenv and unsetenv if not declared.
1733
1734 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1735
1736 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
1737 commentary to simplify permute mask adjustment equation.
1738 (special_handling_values): Add SH_VPERM.
1739 (const_load_sequence_p): New function.
1740 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
1741 the mask loaded from the constant pool.
1742 (adjust_vperm): New function.
1743 (handle_special_swappables): Call adjust_vperm.
1744 (dump_swap_insn_table): Handle SH_VPERM.
1745
1746 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
1747
1748 * shrink-wrap.c (requires_stack_frame_p): Remove static.
1749 * shrink-wrap.h (requires_stack_frame_p): Put back.
1750
1751 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
1752
1753 * reload1.c (elimination_costs_in_insn): Locally turn
1754 -Wmaybe-uninitialized into a warning.
1755
1756 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
1757
1758 * shrink-wrap.c (requires_stack_frame_p): Make static.
1759 (prepare_shrink_wrap): Likewise.
1760 (dup_block_and_redirect): Likewise.
1761 * shrink-wrap.h: Remove declarations of those functions.
1762
1763 2015-09-10 Mark Wielaard <mjw@redhat.com>
1764
1765 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
1766
1767 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
1768
1769 PR target/67506
1770 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
1771 missing simplify_gen_subreg.
1772
1773 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1774
1775 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
1776 the vector element is bigger than 64 bit.
1777
1778 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1779
1780 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
1781 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
1782
1783 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1784
1785 * config/s390/s390.c: Add V1TImode to constant pool modes.
1786
1787 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1788
1789 PR target/67439
1790 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
1791 predicate. Set predicable_short_it attr to "no".
1792
1793 2015-09-10 Jiong Wang <jiong.wang@arm.com>
1794
1795 PR rtl-optimization/67421
1796 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
1797 left wide shift tranformation.
1798
1799 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
1800
1801 * common/config/arc/arc-common.c: Remove references to A5.
1802 * config/arc/arc-opts.h: Likewise.
1803 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
1804 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
1805 * config/arc/t-arc-newlib: Likewise.
1806
1807 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
1808
1809 * config/arc/arc.md (length): Fix attribute length for conditional
1810 executed instructions with long immediate.
1811
1812 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1813
1814 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
1815 type for second alternative.
1816
1817 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
1818
1819 * doc/invoke.texi (Downloading GCC): Mention
1820 contrib/download_prerequisites script.
1821
1822 2015-09-10 Jakub Jelinek <jakub@redhat.com>
1823
1824 PR c++/67523
1825 * gimplify.c (gimplify_omp_for): If inner stmt is not found
1826 for combined loop, assert seen_error () and return GS_ERROR.
1827
1828 PR middle-end/67521
1829 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
1830 if decl is already in outer->variables.
1831
1832 PR middle-end/67517
1833 * gimplify.c (gimplify_scan_omp_clauses): Instead of
1834 asserting that decl is not specified in octx->variables,
1835 break out of the loop if it is.
1836
1837 PR c++/67514
1838 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
1839 iterator is not explicitly determined, but is defined inside
1840 of the combined workshare region, handle it like if it has
1841 DECL_EXPR in OMP_FOR_PRE_BODY.
1842
1843 2015-09-09 Nathan Sidwell <nathan@acm.org>
1844
1845 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
1846 (*cmp<mode>): Add assembler spacing.
1847 (setcc_int<mode>, set_cc_float<mode>): Likewise.
1848 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
1849 level.
1850 (write_func_decl_from_insn): Refactor argument loops & comma emission.
1851 (nvptx_expand_call): Likewise.
1852 (nvptx_output_call_insn): Likewise.
1853 (nvptx_reorg_subreg): Add spacing.
1854
1855 2015-09-09 Marek Polacek <polacek@redhat.com>
1856
1857 PR middle-end/67512
1858 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
1859 for comparisons.
1860
1861 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1862
1863 PR c++/53184
1864 * doc/invoke.texi ([Wsubobject-linkage]): Document.
1865
1866 2015-09-09 Tom de Vries <tom@codesourcery.com>
1867
1868 * params-list.h: Add missing copyright notice.
1869
1870 2015-09-09 Nathan Sidwell <nathan@acm.org>
1871
1872 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
1873 sel_truesi, not andsi.
1874
1875 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1876
1877 * config/arm/arm.md (*subsi3_compare0): Rename to...
1878 (subsi3_compare0): ... This.
1879 (modsi3): New define_expand.
1880 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
1881 when operand is power of 2.
1882
1883 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1884
1885 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
1886 (*neg<mode>2_compare0): Rename to...
1887 (neg<mode>2_compare0): ... This.
1888 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
1889 Move check for speed inside the if-then-elses. Reflect
1890 CSNEG sequence in MOD by power of 2 case.
1891
1892 2015-09-09 Alan Modra <amodra@gmail.com>
1893
1894 PR target/67378
1895 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
1896 reload replacement for PRE_MODIFY address reg.
1897
1898 2015-09-09 Sebastian Pop <s.pop@samsung.com>
1899
1900 PR tree-optimization/53852
1901 * config.in: Regenerate.
1902 * configure: Regenerate.
1903 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
1904 * graphite-optimize-isl.c (optimize_isl): Stop computation when
1905 PARAM_MAX_ISL_OPERATIONS is reached.
1906 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
1907 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
1908 result equal to isl_stat_ok as the status now can be isl_error_quota.
1909 (subtract_commutative_associative_deps): Same.
1910 (compute_deps): Same.
1911
1912 2015-09-08 Aditya Kumar <hiraditya@msn.com>
1913 Sebastian Pop <s.pop@samsung.com>
1914
1915 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
1916 Return the parameter if it was saved in corresponding
1917 parameter_rename_map of the region.
1918 (copy_def): Copy def from sese region to the newly created region.
1919 (copy_internal_parameters): Copy all the internal parameters defined
1920 within a region to the newly created region.
1921 (graphite_regenerate_ast_isl): Copy parameters to the new region before
1922 translating isl to gimple.
1923 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
1924 the loop-nest does not have any data-references.
1925 (build_graphite_scops): Create a scop only when there is at least one
1926 loop inside it.
1927 (contains_only_close_phi_nodes): Deleted.
1928 (print_graphite_scop_statistics): Deleted
1929 (print_graphite_statistics): Deleted
1930 (limit_scops): Deleted.
1931 (build_scops): Removed call to limit_scops.
1932 * sese.c (new_sese): Construct.
1933 (free_sese): Destruct.
1934 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
1935 added.
1936 (set_rename): Pass sese region so that parameters inside the region can
1937 be added to its parameter_rename_map.
1938 (rename_uses): Pass sese region.
1939 (graphite_copy_stmts_from_block): Do not copy parameters that have been
1940 generated in the header of the scop. For each SSA_NAME in the
1941 parameter_rename_map rename its usage.
1942 (invariant_in_sese_p_rec): Return false if tree t is defined outside
1943 sese region.
1944 (scalar_evolution_in_region): If the tree t is invariant just return t.
1945 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
1946 struct sese to keep track of all the parameters which need renaming.
1947 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
1948 any data-refs.
1949 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
1950
1951 2015-09-08 Tom de Vries <tom@codesourcery.com>
1952
1953 * Makefile.in (generated_files): Add params.list.
1954 (params.list, s-params.list): Add rule.
1955 * params.h (enum compiler_param): Include params-list.h. Move define
1956 DEFPARAM, include params.def and undef DEFPARAM ...
1957 * params-list.h: ... here. New file.
1958
1959 2015-09-08 David Malcolm <dmalcolm@redhat.com>
1960
1961 * pretty-print.h (printer_fn): Fix typo in comment.
1962
1963 2015-09-07 Jeff Law <law@redhat.com>
1964
1965 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
1966
1967 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1968
1969 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
1970 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
1971 (arm_neon_fp16_hw): New.
1972
1973 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1974
1975 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
1976 UNITS_PER_WORD >= 4.
1977
1978 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1979
1980 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
1981 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
1982 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
1983 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
1984 (aarch64_float_extend_lo_v2df): Rename to...
1985 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
1986
1987 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
1988 (float_extend_lo): Add v4sf.
1989
1990 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
1991 * config/aarch64/iterators.md (VQ_HSF): New iterator.
1992 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
1993 (Vwide): New mode_attr.
1994
1995 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
1996
1997 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
1998 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
1999 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
2000 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
2001 V4HF and V8HF variants to iterator.
2002
2003 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
2004
2005 * config/aarch64/iterators.md (VDQF_F16): New.
2006 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
2007
2008 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2009
2010 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
2011 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
2012 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
2013 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
2014 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
2015 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
2016 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
2017 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
2018 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
2019 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
2020 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
2021 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
2022 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
2023 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
2024 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
2025 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
2026 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
2027 vld1q_dup_f16): New.
2028
2029 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2030
2031 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
2032 Reparameterize to...
2033 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
2034 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
2035 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
2036
2037 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
2038 v8hf variant.
2039 (float_truncate_lo_): Use BUILTIN_VDF iterator.
2040
2041 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
2042
2043 * config/aarch64/iterators.md (VDF, Vdtype): New.
2044 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
2045
2046 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2047
2048 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
2049 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
2050 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
2051 Add __builtin_aarch64_simd_hf.
2052 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
2053 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
2054 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
2055 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
2056 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
2057 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
2058 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
2059 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
2060 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
2061
2062 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
2063 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
2064 (VDC, Vdbl): Add V4HF.
2065
2066 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2067
2068 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
2069 V4HFmode and V8HFmode.
2070 (aarch64_split_simd_move): Add case for V8HFmode.
2071 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
2072 (aarch64_simd_builtin_std_type): Handle HFmode.
2073 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
2074
2075 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
2076 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
2077 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
2078
2079 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
2080 Float16x8_t.
2081
2082 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
2083 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
2084 New typedefs.
2085 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
2086 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
2087 vst1q_lane_f16): New.
2088 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
2089 (VALLDI_F16, VALL_F16): New.
2090 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
2091 Add cases for V4HF and V8HF.
2092 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
2093
2094 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2095
2096 * config/arm/arm-builtins.c (VAR11, VAR12): New.
2097 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
2098 vld4_dup): Add v4hf variant.
2099 (vget_high, vget_low): Add v8hf variant.
2100 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
2101 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
2102 v4hf and v8hf variants.
2103
2104 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
2105 (VDX): Add V4HF.
2106 (V_DOUBLE): Add case for V4HF.
2107 (VQX): Add V8HF.
2108 (V_HALF): Add case for V8HF.
2109 (VDQX): Add V4HF, V8HF.
2110 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
2111 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
2112
2113 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
2114 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
2115 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
2116 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
2117 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
2118 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
2119 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
2120 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
2121 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
2122
2123 (neon_vcreate, neon_vreinterpretv8qi<mode>,
2124 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
2125 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
2126 Change VDX to VD_RE.
2127
2128 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
2129 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
2130 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
2131
2132 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
2133 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
2134 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
2135 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
2136 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
2137 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
2138 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
2139 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
2140 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
2141
2142 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2143
2144 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
2145 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
2146 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
2147 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
2148 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
2149 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
2150 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
2151 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
2152 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
2153 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
2154 New.
2155
2156 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2157
2158 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
2159
2160 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
2161
2162 * config/arm/arm-builtins.c (v8hf_UP): New.
2163 (arm_init_simd_builtin_types): Initialise Float16x8_t.
2164
2165 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
2166
2167 * config/arm/arm_neon.h (float16x8_t): New typedef.
2168
2169 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
2170
2171 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
2172 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
2173 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
2174 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
2175 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
2176 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
2177 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
2178 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
2179 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
2180 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
2181
2182 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
2183
2184 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
2185 non-alphanumeric characters in the symbol name.
2186
2187 2015-09-07 Marek Polacek <polacek@redhat.com>
2188
2189 PR inline-asm/67448
2190 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
2191 a memory input.
2192
2193 2015-09-07 Marek Polacek <polacek@redhat.com>
2194
2195 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
2196
2197 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
2198
2199 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
2200 not warn.
2201
2202 2015-09-04 Jakub Jelinek <jakub@redhat.com>
2203
2204 PR middle-end/67452
2205 * tree-ssa-live.c: Include cfgloop.h.
2206 (remove_unused_locals): Clear loop->simduid if simduid is about
2207 to be removed from cfun->local_decls.
2208
2209 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2210
2211 PR target/65210
2212 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
2213 attribute as well.
2214
2215 2015-09-04 Tom de Vries <tom@codesourcery.com>
2216
2217 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
2218
2219 2015-09-04 Jeff Law <law@redhat.com>
2220
2221 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
2222 unnecessary constructor. It's now trivial and implemented inside...
2223 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
2224 constructor. Add comments to various methods. Remove unused
2225 private fields.
2226 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
2227 * tree-vrp.c (identify_jump_threads): Likewise.
2228 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
2229 indentation issues.
2230 (thread_across_edge): Similarly.
2231 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
2232 arguments in constructor call.
2233
2234 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
2235
2236 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
2237 temp path contains a '-'.
2238
2239 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
2240 Petr Murzin <petr.murzin@intel.com>
2241 Kirill Yukhin <kirill.yukhin@intel.com>
2242
2243 * config/i386/i386-builtin-types.def
2244 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
2245 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
2246 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
2247 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
2248 * config/i386/i386.c
2249 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
2250 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
2251 IX86_BUILTIN_SCATTERALTDIV16SI.
2252 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
2253 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
2254 __builtin_ia32_scatteraltdiv8si.
2255 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
2256 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
2257 IX86_BUILTIN_SCATTERALTDIV16SI.
2258 (ix86_vectorize_builtin_scatter): New.
2259 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
2260 ix86_vectorize_builtin_scatter.
2261
2262 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
2263 Petr Murzin <petr.murzin@intel.com>
2264 Kirill Yukhin <kirill.yukhin@intel.com>
2265
2266 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
2267 * doc/tm.texi: Regenerate.
2268 * target.def: Add scatter builtin.
2269 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
2270 for loads/stores in case of gather/scatter accordingly.
2271 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
2272 STMT_VINFO_GATHER_P(S).
2273 (vect_check_gather): Rename to ...
2274 (vect_check_gather_scatter): this.
2275 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
2276 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
2277 (vect_check_gather_scatter): Use it instead of vect_check_gather.
2278 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
2279 variable and new checkings for it accordingly.
2280 * tree-vect-stmts.c
2281 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
2282 STMT_VINFO_GATHER_P(S).
2283 (vect_check_gather_scatter): Use it instead of vect_check_gather.
2284 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
2285
2286 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
2287
2288 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
2289 define_insn.
2290 (mulv16qi3): New define_expand.
2291
2292 2015-09-03 Martin Sebor <msebor@redhat.com>
2293
2294 PR c/66516
2295 * doc/extend.texi (Other Builtins): Document when the address
2296 of a built-in function can be taken.
2297
2298 2015-09-03 Richard Biener <rguenther@suse.de>
2299
2300 * dwarf2out.c (flush_limbo_die_list): Split out from ...
2301 (dwarf2out_early_finish): ... here.
2302 (dwarf2out_finish): Do not call dwarf2out_early_finish but
2303 flush_limbo_die_list. Assert we have no deferred asm names.
2304
2305 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2306
2307 * optabs.c (expand_binop): Don't create a broadcast vector with a
2308 source element wider than the inner mode.
2309
2310 2015-09-03 Richard Biener <rguenther@suse.de>
2311
2312 * varasm.c (output_constant): Use fold_convert instead of
2313 wide_int_to_tree.
2314
2315 2015-09-03 Tom de Vries <tom@codesourcery.com>
2316
2317 PR tree-optimization/65637
2318 * omp-low.c (expand_omp_for_static_chunk): Handle case that
2319 fin_bb has 2 predecessors.
2320
2321 2015-09-03 Tom de Vries <tom@codesourcery.com>
2322
2323 PR tree-optimization/65637
2324 * omp-low.c (find_phi_with_arg_on_edge): New function.
2325 (expand_omp_for_static_chunk): Fix inner loop phi.
2326
2327 2015-09-03 Tom de Vries <tom@codesourcery.com>
2328
2329 PR tree-optimization/65637
2330 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
2331 that head is NULL.
2332
2333 2015-09-03 Tom de Vries <tom@codesourcery.com>
2334
2335 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
2336
2337 2015-09-03 Tom de Vries <tom@codesourcery.com>
2338
2339 * doc/invoke.texi (parloops-chunk-size): Add item.
2340 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
2341 * tree-parloops.c: Include params.h.
2342 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
2343 param parloops-chunk-size is used.
2344
2345 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2346
2347 PR middle-end/67351
2348 * fold-const.c (fold_binary_loc) : Move
2349 Transform (x >> c) << c into x & (-1<<c) or
2350 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
2351 types using simplify and match.
2352 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
2353 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
2354
2355 2015-09-03 Richard Biener <rguenther@suse.de>
2356
2357 PR ipa/66705
2358 * tree-ssa-structalias.c (ctor_for_analysis): New function.
2359 (create_variable_info_for_1): Use ctor_for_analysis instead
2360 of get_constructor.
2361 (create_variable_info_for): Likewise.
2362
2363 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
2364
2365 PR ipa/67280
2366 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
2367 in new callgraph edge.
2368
2369 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
2370
2371 PR target/59810
2372 PR target/63652
2373 PR target/63653
2374 * config/aarch64/aarch64-simd.md
2375 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
2376 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
2377 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
2378 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
2379
2380 2015-09-02 Alan Modra <amodra@gmail.com>
2381
2382 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
2383 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
2384 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
2385
2386 2015-09-02 Alan Modra <amodra@gmail.com>
2387
2388 PR target/67417
2389 * config/rs6000/predicates.md (current_file_function_operand): Don't
2390 return true for weak symbols.
2391 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
2392
2393 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
2394 Andrew Bennett <andrew.bennett@imgtec.com>
2395
2396 * config/mips/mips-opts.h (mips_cb_setting): New enum.
2397 * config/mips/mips-protos.h: Add definitions for
2398 mips_output_jump and mips_output_equal_conditional_branch
2399 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
2400 JIC instruction.
2401 (mips_emit_compare): Add support for the MIPS R6 conditional
2402 compact branches.
2403 (mips_process_sync_loop): Likewise.
2404 (mips_output_order_conditional_branch): Likewise.
2405 (mips16_build_call_stub): Change MIPS_CALL to
2406 mips_output_jump.
2407 (mips_print_operand_punctuation): Update 's' case to only
2408 apply to micromips r2.
2409 (mips_adjust_insn_length): Add support for forbidden slot
2410 hazards.
2411 (mips_avoid_hazard): Likewise.
2412 (mips_reorg_process_insns): Likewise.
2413 (mips_output_jump): New function.
2414 (mips_output_equal_conditional_branch): Likewise.
2415 (mips_output_conditional_branch): Use jrc/bc if compact
2416 branch support is enabled. Ensure the forbidden slots
2417 between the two branch instructions is filled with a nop.
2418 (mips_option_override): Add support to process the compact
2419 branch option and set the correct defaults. Prevent
2420 non-explict relocs being using for MIPS R6.
2421 (mips_trampoline_init): Add compact branch support.
2422 (mips_mult_zero_zero_cost): Allow zero initialisation of
2423 accumulators with TARGET_DSP.
2424 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
2425 (TARGET_CB_MAYBE): New define.
2426 (TARGET_CB_ALWAYS): New define.
2427 (ISA_HAS_DELAY_SLOTS): New define.
2428 (ISA_HAS_COMPACT_BRANCHES): New define.
2429 (ISA_HAS_JRC): New define.
2430 (MIPS_BRANCH_C): New define.
2431 (MIPS_CALL): Removed.
2432 (MICROMIPS_J): Removed.
2433 * config/mips/mips.md (compact_form): New attr.
2434 (hazard): Add support for forbidden slots.
2435 (define_delay): Add support for compact branches.
2436 (*branch_order<mode>): Likewise.
2437 (*branch_order<mode>_inverted): Likewise.
2438 (*branch_equality<mode>): Likewise.
2439 (*branch_equality<mode>_inverted): Likewise.
2440 (*jump_absolute): Likewise.
2441 (*jump_pic): Likewise.
2442 (indirect_jump): Use mips_output_jump to produce assembly output.
2443 (tablejump_<mode>"): Likewise.
2444 (*<optab>"): Likewise.
2445 (<optab>_internal): Likewise.
2446 (sibcall_internal): Likewise.
2447 (sibcall_value_internal): Likewise.
2448 (sibcall_value_multiple_internal): Likewise.
2449 (call_internal): Likewise.
2450 (call_split): Likewise.
2451 (call_internal_direct): Likewise.
2452 (call_direct_split): Likewise.
2453 (call_value_internal): Likewise.
2454 (call_value_split): Likewise.
2455 (call_value_internal_direct): Likewise.
2456 (call_value_direct_split): Likewise.
2457 (call_value_multiple_internal): Likewise.
2458 (call_value_multiple_split): Likewise.
2459 (mips_get_fcsr_mips16_<mode>): Likewise.
2460 (mips_set_fcsr_mips16_<mode>): Likewise.
2461 (tls_get_tp_mips16_<mode>): Likewise.
2462 * config/mips/mips.opt: Add -mcompact-branches option.
2463 * config/mips/predicates.md (order_operator): Ensure the
2464 conditional compact branches are only used if the ISA them.
2465 * doc/invoke.texi: Document -mcompact-branches option.
2466
2467 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
2468
2469 PR target/61578
2470 * lra-lives.c (process_bb_lives): Process move pseudos with the
2471 same value for copies and preferences
2472 * lra-constraints.c (match_reload): Create match reload pseudo
2473 with the same value from single dying input pseudo.
2474
2475 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
2476
2477 PR target/67405
2478 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
2479
2480 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
2481
2482 * trans-mem.c: Add contributed-by.
2483 * trans-mem.h: Same.
2484
2485 2015-09-01 Richard Biener <rguenther@suse.de>
2486
2487 * expr.c (expand_expr_real_1): For expanding TERed defs
2488 set the current location to that of the def if not UNKNOWN.
2489
2490 2015-09-01 David Sherwood <david.sherwood@arm.com>
2491
2492 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
2493
2494 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2495
2496 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
2497 then_cost, else_cost fields. Change branch_cost field to unsigned int.
2498 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
2499 Include rtl-iter.h.
2500 (noce_simple_bbs): New function.
2501 (noce_try_move): Bail if basic blocks are not simple.
2502 (noce_try_store_flag): Likewise.
2503 (noce_try_store_flag_constants): Likewise.
2504 (noce_try_addcc): Likewise.
2505 (noce_try_store_flag_mask): Likewise.
2506 (noce_try_cmove): Likewise.
2507 (noce_try_minmax): Likewise.
2508 (noce_try_abs): Likewise.
2509 (noce_try_sign_mask): Likewise.
2510 (noce_try_bitop): Likewise.
2511 (bbs_ok_for_cmove_arith): New function.
2512 (noce_emit_all_but_last): Likewise.
2513 (noce_emit_insn): Likewise.
2514 (noce_emit_bb): Likewise.
2515 (noce_try_cmove_arith): Handle non-simple basic blocks.
2516 (insn_valid_noce_process_p): New function.
2517 (contains_mem_rtx_p): Likewise.
2518 (bb_valid_for_noce_process_p): Likewise.
2519 (noce_process_if_block): Allow non-simple basic blocks
2520 where appropriate.
2521
2522 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
2523
2524 * tree-ssa-dom.c (record_equivalences_from_phis,
2525 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
2526 (lookup_avail_expr): Likewise, and remove comment and unused temp.
2527
2528 2015-09-01 Nick Clifton <nickc@redhat.com>
2529
2530 * config/msp430/msp430.opt (mcpu): Fix typo.
2531
2532 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2533
2534 * config/aarch64/aarch64.c (aarch64_set_current_function):
2535 Re-layout any vector parameters have non-simd layout.
2536 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
2537 Delete.
2538 (aarch64_simd_expand_args): Delete call to the above.
2539
2540 2015-08-31 Mike Frysinger <vapier@gentoo.org>
2541
2542 * doc/invoke.texi (asan-stack): Add space before option.
2543
2544 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
2545
2546 * tree.h (zerop): New function.
2547 * tree.c (zerop): Likewise.
2548 (element_precision): Handle expressions.
2549 * match.pd (define_predicates): Add zerop.
2550 (x <= +Inf): Fix comment.
2551 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
2552 * fold-const.c (fold_binary_loc): ... here. Remove.
2553
2554 2015-08-31 Richard Biener <rguenther@suse.de>
2555
2556 PR middle-end/67381
2557 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
2558
2559 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
2560
2561 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
2562 (CEXPI): New operator list.
2563 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
2564 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
2565 Converted from ...
2566 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
2567
2568 2015-08-31 Tom de Vries <tom@codesourcery.com>
2569
2570 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
2571 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
2572 parameter.
2573 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
2574 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
2575 (rewrite_into_loop_closed_ssa): ... here.
2576 (replace_uses_in_dominated_bbs): Remove function.
2577 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
2578 rewrite_into_loop_closed_ssa_1.
2579
2580 2015-08-31 Michael Matz <matz@suse.de>
2581
2582 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
2583 enter entry and exit blocks for reverse post order.
2584
2585 2015-08-31 Richard Biener <rguenther@suse.de>
2586
2587 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
2588 (lto_location_cache::current_sysp): Likewise.
2589 (output_block::current_sysp): Likewise.
2590 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
2591 (lto_location_cache::apply_location_cache): Properly record
2592 system header locations.
2593 (lto_location_cache::input_location): Input whether a file
2594 is a system header.
2595 * lto-streamer-out.c (lto_output_location): Stream whether a file
2596 is a system header.
2597
2598 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2599
2600 PR bootstrap/67363
2601 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
2602
2603 2015-08-31 Tom de Vries <tom@codesourcery.com>
2604
2605 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
2606 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
2607 Improve function header comments.
2608
2609 2015-08-30 Michael Collison <michael.collison@linaro.org>
2610
2611 PR other/67320
2612 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
2613 standard names
2614
2615 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2616
2617 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
2618 special_handling bitfield.
2619 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
2620 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
2621 that represents a general xxpermdi.
2622 (insn_is_swappable_p): Add handling for vec_concat of two
2623 doublewords, which maps to a specific xxpermdi.
2624 (adjust_xxpermdi): New function.
2625 (adjust_concat): Likewise.
2626 (handle_special_swappables): Call adjust_xxpermdi and
2627 adjust_concat.
2628 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
2629
2630 2015-08-30 Rich Felker <dalias@libc.org>
2631
2632 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
2633 case instead of sh[123456ble]-*-*.
2634
2635 2015-08-29 Anatoly Sokolov <aesok@post.ru>
2636
2637 * ira.c (print_unform_and_important_classes,
2638 print_translated_classes): Remove reg_class_names static array.
2639 (print_unform_and_important_classes): Rename to ...
2640 (print_uniform_and_important_classes): ... this.
2641 (ira_debug_allocno_classes): Update accordingly.
2642
2643 2015-08-29 Tom de Vries <tom@codesourcery.com>
2644
2645 PR tree-optimization/46193
2646 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
2647 clause.
2648
2649 2015-08-28 Jeff Law <law@redhat.com>
2650
2651 PR lto/66752
2652 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
2653 unable to find X NE 0 in the tables, return X as the simplified
2654 condition.
2655 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
2656 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
2657 to VISISTED_BBS.
2658 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
2659 after removing the control flow statement and unnecessary edges.
2660
2661 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
2662
2663 Revert:
2664 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
2665
2666 PR tree-optimization/67283
2667 * tree-sra.c (type_consists_of_records_p): Rename to...
2668 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
2669
2670 (completely_scalarize_record): Rename to...
2671 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
2672 code to:
2673 (scalarize_elem): New.
2674
2675 2015-08-28 Jiong Wang <jiong.wang@arm.com>
2676
2677 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
2678 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
2679 (aarch64_symbol_type): Likewise.
2680 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2681 Likewise.
2682 (aarch64_expand_mov_immediate): Likewise.
2683 (aarch64_print_operand): Likewise.
2684 (aarch64_classify_tls_symbol): Likewise.
2685
2686 2015-08-28 Richard Biener <rguenther@suse.de>
2687
2688 * cgraphunit.c (symbol_table::compile): Move early debug generation
2689 and finish...
2690 (symbol_table::finalize_compilation_unit): ... back here and
2691 add a !seen_error () guard.
2692
2693 2015-08-27 Sebastian Pop <s.pop@samsung.com>
2694
2695 * toplev.c (process_options): Do not use flag_loop_block,
2696 flag_loop_interchange, and flag_loop_strip_mine. Add check for
2697 flag_loop_optimize_isl.
2698
2699 2015-08-27 Sebastian Pop <s.pop@samsung.com>
2700
2701 * Makefile.in (OBJS): Remove graphite-blocking.o and
2702 graphite-interchange.o.
2703 * common.opt (floop-strip-mine, floop-interchange, floop-block):
2704 Alias of floop-nest-optimize.
2705 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
2706 Document as alias of -floop-nest-optimize.
2707 * graphite-blocking.c: Remove.
2708 * graphite-interchange.c: Remove.
2709 * graphite-optimize-isl.c: Include dumpfile.h.
2710 (getScheduleForBand): Add dump for tiled loops. Use
2711 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
2712 * graphite-poly.c (scop_max_loop_depth): Remove.
2713 (print_scattering_function_1): Remove.
2714 (print_scattering_function): Remove.
2715 (print_scattering_functions): Remove.
2716 (debug_scattering_function): Remove.
2717 (debug_scattering_functions): Remove.
2718 (apply_poly_transforms): Remove use of flag_loop_block,
2719 flag_loop_strip_mine, and flag_loop_interchange.
2720 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
2721 PBB_ORIGINAL.
2722 (print_pdr_access_layout): Remove.
2723 (print_pdr): Print ISL representation.
2724 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
2725 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
2726 (free_scop): Same.
2727 (openscop_print_pbb_domain): Remove.
2728 (print_pbb): Remove call to print_scattering_function.
2729 (openscop_print_scop_context): Remove.
2730 (print_scop_context): Do not print matrices anymore.
2731 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
2732 SCOP_TRANSFORMED_SCHEDULE.
2733 (print_isl_set): Add printing of a new line.
2734 (print_isl_map): Same.
2735 (print_isl_aff): Same.
2736 (print_isl_constraint): Same.
2737 (loop_to_lst): Remove.
2738 (scop_to_lst): Remove.
2739 (lst_indent_to): Remove.
2740 (print_lst): Remove.
2741 (debug_lst): Remove.
2742 (dot_lst_1): Remove.
2743 (dot_lst): Remove.
2744 (reverse_loop_at_level): Remove.
2745 (reverse_loop_for_pbbs): Remove.
2746 * graphite-poly.h (pdr_dim_iter_domain): Remove.
2747 (pdr_nb_params): Remove.
2748 (pdr_alias_set_dim): Remove.
2749 (pdr_subscript_dim): Remove.
2750 (pdr_iterator_dim): Remove.
2751 (pdr_parameter_dim): Remove.
2752 (same_pdr_p): Remove.
2753 (struct poly_scattering): Remove.
2754 (struct poly_bb): Remove _original, _transformed, _saved.
2755 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
2756 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
2757 (PBB_NB_LOCAL_VARIABLES): Remove.
2758 (PBB_NB_SCATTERING_TRANSFORM): Remove.
2759 (schedule_to_scattering): Remove.
2760 (number_of_write_pdrs): Remove.
2761 (pbb_dim_iter_domain): Remove.
2762 (pbb_nb_params): Remove.
2763 (pbb_nb_scattering_orig): Remove.
2764 (pbb_nb_scattering_transform): Remove.
2765 (pbb_nb_dynamic_scattering_transform): Remove.
2766 (pbb_nb_local_vars): Remove.
2767 (pbb_iterator_dim): Remove.
2768 (pbb_parameter_dim): Remove.
2769 (psco_scattering_dim): Remove.
2770 (psct_scattering_dim): Remove.
2771 (psct_local_var_dim): Remove.
2772 (psco_iterator_dim): Remove.
2773 (psct_iterator_dim): Remove.
2774 (psco_parameter_dim): Remove.
2775 (psct_parameter_dim): Remove.
2776 (psct_dynamic_dim): Remove.
2777 (psct_static_dim): Remove.
2778 (psct_add_local_variable): Remove.
2779 (new_lst_loop): Remove.
2780 (new_lst_stmt): Remove.
2781 (free_lst): Remove.
2782 (copy_lst): Remove.
2783 (lst_add_loop_under_loop): Remove.
2784 (lst_depth): Remove.
2785 (lst_dewey_number): Remove.
2786 (lst_dewey_number_at_depth): Remove.
2787 (lst_pred): Remove.
2788 (lst_succ): Remove.
2789 (lst_find_pbb): Remove.
2790 (find_lst_loop): Remove.
2791 (lst_find_first_pbb): Remove.
2792 (lst_empty_p): Remove.
2793 (lst_find_last_pbb): Remove.
2794 (lst_contains_p): Remove.
2795 (lst_contains_pbb): Remove.
2796 (lst_create_nest): Remove.
2797 (lst_remove_from_sequence): Remove.
2798 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
2799 (lst_niter_for_loop): Remove.
2800 (pbb_update_scattering): Remove.
2801 (lst_update_scattering_under): Remove.
2802 (lst_update_scattering): Remove.
2803 (lst_insert_in_sequence): Remove.
2804 (lst_replace): Remove.
2805 (lst_substitute_3): Remove.
2806 (lst_distribute_lst): Remove.
2807 (lst_remove_all_before_including_pbb): Remove.
2808 (lst_remove_all_before_excluding_pbb): Remove.
2809 (struct scop): Remove original_schedule, transformed_schedule, and
2810 saved_schedule.
2811 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
2812 (SCOP_SAVED_SCHEDULE): Remove.
2813 (poly_scattering_new): Remove.
2814 (poly_scattering_free): Remove.
2815 (poly_scattering_copy): Remove.
2816 (store_scattering_pbb): Remove.
2817 (store_lst_schedule): Remove.
2818 (restore_lst_schedule): Remove.
2819 (store_scattering): Remove.
2820 (restore_scattering_pbb): Remove.
2821 (restore_scattering): Remove.
2822 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
2823 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
2824 compute the scattering polyhedron dimension from the dimension of
2825 pbb->domain.
2826 (build_scop_scattering): Update call to
2827 build_pbb_scattering_polyhedrons.
2828 (build_poly_scop): Remove call to scop_to_lst.
2829 * graphite.c (graphite_transform_loops): Add call to print_scop.
2830 (gate_graphite_transforms): Remove use of flag_loop_block,
2831 flag_loop_interchange, and flag_loop_strip_mine.
2832
2833 2015-08-27 Sebastian Pop <s.pop@samsung.com>
2834
2835 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
2836 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
2837 -floop-nest-optimize.
2838 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
2839 (generate_luj_sepclass): Remove.
2840 (generate_luj_options): Remove.
2841 (set_options): Remove opt_luj.
2842 (scop_to_isl_ast): Remove opt_luj.
2843 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
2844 flag_loop_unroll_jam.
2845 (getPrevectorMap_full): Remove.
2846 (getScheduleForBandList): Remove map_sepcl.
2847 (getScheduleMap): Same.
2848 (apply_schedule_map_to_scop): Remove sepcl.
2849 (optimize_isl): Same.
2850 * graphite-poly.c (apply_poly_transforms): Remove check for
2851 flag_loop_unroll_jam.
2852 (new_poly_bb): Remove map_sepclass.
2853 * graphite-poly.h (struct poly_bb): Same.
2854 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
2855 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
2856 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
2857 * toplev.c (process_options): Remove flag_loop_unroll_jam.
2858
2859 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
2860
2861 PR target/67317
2862 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
2863 (addqi3_cc): Ditto.
2864 (UNSPEC_ADD_CARRY): Remove.
2865 (addqi3_cconly_overflow): New expander.
2866 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
2867 Adjust for changed add<mode>3_carry.
2868 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
2869 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
2870 (<plusminus_insn><mode>3_carry): Remove expander.
2871 (*<plusminus_insn><mode>3_carry): Split insn pattern to
2872 add<mode>3_carry and sub<mode>3_carry.
2873 (plusminus_carry_mnemonic): Remove code attribute.
2874 (add<mode>3_carry): Canonicalize insn pattern.
2875 (*addsi3_carry_zext): Ditto.
2876 (sub<mode>3_carry): Ditto.
2877 (*subsi3_carry_zext): Ditto.
2878 (adcx<mode>3): Remove insn pattern.
2879 (addcarry<mode>): New insn pattern.
2880 (subborrow<mode>): Ditto.
2881 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
2882 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
2883 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
2884 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
2885 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
2886 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
2887 Rewrite expander to not clobber carry flag chains.
2888
2889 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
2890
2891 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
2892 instead of a rotate.
2893
2894 2015-08-27 Marek Polacek <polacek@redhat.com>
2895
2896 PR middle-end/67005
2897 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
2898 an entry into an irreducible region.
2899
2900 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2901
2902 * configure: Regenerate.
2903
2904 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
2905
2906 PR tree-optimization/67283
2907 * tree-sra.c (type_consists_of_records_p): Rename to...
2908 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
2909
2910 (completely_scalarize_record): Rename to...
2911 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
2912 (scalarize_elem): New.
2913
2914 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
2915
2916 * tree-sra.c (completely_scalarize_var): Rename to...
2917 (create_total_scalarization_access): ... Here. Drop call to
2918 completely_scalarize_record.
2919
2920 (analyze_all_variable_accesses): Replace completely_scalarize_var
2921 with create_total_scalarization_access and completely_scalarize_record.
2922
2923 2015-08-27 Alan Modra <amodra@gmail.com>
2924
2925 PR target/67356
2926 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
2927 for operand 1.
2928
2929 2015-08-27 Richard Biener <rguenther@suse.de>
2930
2931 * passes.c (rest_of_decl_compilation): Guard early_global_decl
2932 call with !seen_error ().
2933 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
2934 early debug generation and finish...
2935 (symbol_table::compile): ... here to put it after a !seen_error ()
2936 guard.
2937
2938 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2939
2940 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
2941 Solaris 12+.
2942
2943 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2944 Andre Vieira <andre.simoesdiasvieira@arm.com>
2945
2946 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
2947 (*cb<optab><mode>1): Likewise.
2948 (*tb<optab><mode>1): Likewise.
2949 (*cb<optab><mode>1): Likewise.
2950 * config/aarch64/iterators.md (inv_cb): New code attribute.
2951 (inv_tb): Likewise.
2952 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
2953 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
2954
2955 2015-08-27 Richard Biener <rguenther@suse.de>
2956
2957 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
2958
2959 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
2960
2961 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
2962 trap to fix ICE.
2963
2964 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2965
2966 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
2967 Add declaration.
2968
2969 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
2970 comment.
2971 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
2972 floating point in VSX registers.
2973 (rs6000_output_move_128bit): Always print out the set insn if we
2974 can't generate an appropriate 128-bit move.
2975 (rs6000_generate_compare): Add support for IEEE 128-bit floating
2976 point in VSX registers comparisons.
2977 (rs6000_expand_float128_convert): Likewise.
2978
2979 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
2980 predicate for only GPR hard registers.
2981
2982 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
2983 modes to iterators. Add new iterators for moving 128-bit values in
2984 scalar FPR registers and VSX registers.
2985 (FMOVE128): Likewise.
2986 (FMOVE128_FPR): Likewise.
2987 (FMOVE128_GPR): Likewise.
2988 (FMOVE128_VSX): Likewise.
2989 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
2990 in VSX registers.
2991 (IFKF): Likewise.
2992 (IBM128): Likewise.
2993 (TFIFKF): Likewise.
2994 (RELOAD): Add IEEE 128-bit floating point modes.
2995 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
2996 floating point in VSX registers modes.
2997 (signbit<mode>2, IBM128 iterator): Likewise.
2998 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
2999 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
3000 (negtf2): Likewise.
3001 (neg<mode>2, TFIFKF iterator): Likewise.
3002 (negtf2_internal): Likewise.
3003 (abstf2): Likewise.
3004 (abs<mode>2, TFIFKF iterator): Likewise.
3005 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
3006 VSX insn support for negate, absolute value, and negative absolute
3007 value.
3008 (ieee_128bit_vsx_neg<mode>2): Likewise.
3009 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
3010 (ieee_128bit_vsx_abs<mode>2): Likewise.
3011 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
3012 (ieee_128bit_vsx_nabs<mode>2): Likewise.
3013 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
3014 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
3015 floating point in VSX registers.
3016 (unpack<mode>_dm): Likewise.
3017 (unpack<mode>_nodm): Likewise.
3018 (pack<mode>): Likewise.
3019 (unpackv1ti): Likewise.
3020 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
3021 (packv1ti): Likewise.
3022 (pack<mode>, FMOVE128_VSX iterator): Likewise.
3023 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
3024 registers.
3025 (extenddftf2_internal): Likewise.
3026 (trunctfdf2): Likewise.
3027 (trunctfdf2_internal2): Likewise.
3028 (fix_trunc_helper): Likewise.
3029 (fix_trunctfdi2"): Likewise.
3030 (floatditf2): Likewise.
3031 (floatuns<mode>tf2): Likewise.
3032 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
3033 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
3034 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
3035 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
3036 (float<SDI:mode><IFKF:mode>2): Likewise.
3037 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
3038
3039 2015-08-26 Renlin Li <renlin.li@arm.com>
3040
3041 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
3042
3043 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
3044 Jiong Wang <jiong.wang@arm.com>
3045
3046 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
3047 (tlsie_tiny_<mode>): New define_insn.
3048 (tlsie_tiny_sidi): Likewise.
3049 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
3050 SYMBOL_TINY_TLSIE.
3051 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
3052 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
3053 SYMBOL_TINY_TLSIE.
3054 (aarch64_expand_mov_immediate): Likewise.
3055 (aarch64_print_operand): Likewise.
3056 (arch64_classify_tls_symbol): Likewise.
3057
3058 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3059
3060 * config/arm/arm-arches.def: Replace single value flags with
3061 an initializer built from ARM_FSET_MAKE_CPU1.
3062 * config/arm/arm-cores.def: Likewise.
3063 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
3064 derivation from the ARM_CORE macro definition, use the given value
3065 instead.
3066 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
3067 ARM_ARCH macro definition, use the given value instead.
3068
3069 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3070
3071 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
3072 feature set.
3073 (struct builtin_description): Replace field mask with field
3074 features.
3075 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
3076 (IWMMXT2_BUILTIN): Likewise.
3077 (IWMMXT2_BUILTIN2): Likewise.
3078 (FP_BUILTIN): Likewise.
3079 (CRC32_BUILTIN): Likewise.
3080 (CRYPTO_BUILTIN): Likewise.
3081 (iwmmx_mbuiltin): Likewise.
3082 (iwmmx2_mbuiltin): Likewise.
3083 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
3084 struct builtin_description.
3085
3086 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3087
3088 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
3089 (struct builtin_description): Change type of mask to unsigned
3090 long.
3091 * config/arm/arm-protos.h (insn_flags): Declare as type
3092 arm_feature_set.
3093 (tune_flags): Likewise.
3094 * config/arm/arm.c (feature_count): New.
3095 (insn_flags): Define as type arm_feature_set.
3096 (tune_flags): Likewise.
3097 (struct processors): Define field flags as type arm_feature_set.
3098 (all_cores): Update for change to struct processors.
3099 (all_architectures): Likewise.
3100 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
3101 macros.
3102 (arm_option_override_internal): Likewise.
3103 (arm_option_override): Likewise.
3104
3105 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
3106 Jiong Wang <jiong.wang@arm.com>
3107
3108 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
3109 tls size for tiny, small, large memory model.
3110 (aarch64_load_symref_appropriately): Support new symbol types.
3111 (aarch64_expand_mov_immediate): Likewise.
3112 (aarch64_print_operand): Likewise.
3113 (aarch64_classify_tls_symbol): Likewise.
3114 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
3115 (aarch64_symbol_type): Likewise.
3116 * config/aarch64/aarch64.md (tlsle): Deleted.
3117 (tlsle12_<mode>): New define_insn.
3118 (tlsle24_<mode>): Likewise.
3119 (tlsle32_<mode>): Likewise.
3120 (tlsle48_<mode>): Likewise.
3121 * doc/sourcebuild.texi (AArch64-specific attributes): Document
3122 "aarch64_tlsle32".
3123
3124 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3125
3126 * config/arm/arm-protos.h (FL_NONE): New.
3127 (FL_ANY): New.
3128 (arm_feature_set): New.
3129 (ARM_FSET_MAKE): New.
3130 (ARM_FSET_MAKE_CPU1): New.
3131 (ARM_FSET_MAKE_CPU2): New.
3132 (ARM_FSET_CPU1): New.
3133 (ARM_FSET_CPU2): New.
3134 (ARM_FSET_EMPTY): New.
3135 (ARM_FSET_ANY): New.
3136 (ARM_FSET_HAS_CPU1): New.
3137 (ARM_FSET_HAS_CPU2): New.
3138 (ARM_FSET_HAS_CPU): New.
3139 (ARM_FSET_ADD_CPU1): New.
3140 (ARM_FSET_ADD_CPU2): New.
3141 (ARM_FSET_DEL_CPU1): New.
3142 (ARM_FSET_DEL_CPU2): New.
3143 (ARM_FSET_UNION): New.
3144 (ARM_FSET_INTER): New.
3145 (ARM_FSET_XOR): New.
3146 (ARM_FSET_EXCLUDE): New.
3147 (AFM_FSET_IS_EMPTY): New.
3148 (ARM_FSET_CPU_SUBSET): New.
3149
3150 2015-08-26 Jiong Wang <jiong.wang@arm.com>
3151
3152 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
3153 SYMBOL_TLSLE to SYMBOL_TLSLE24.
3154 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3155 Likewise.
3156 (aarch64_expand_mov_immediate): Likewise.
3157 (aarch64_print_operand): Likewise.
3158 (aarch64_classify_symbol): Likewise.
3159
3160 2015-08-26 Jiong Wang <jiong.wang@arm.com>
3161
3162 * config/aarch64/aarch64.opt (mtls-size): New entry.
3163 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
3164 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
3165 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
3166
3167 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
3168
3169 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
3170 ARM_CORE entry. Fix some white-space.
3171 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
3172 ARM_CORE definition.
3173
3174 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3175
3176 * fold-const.c (fold_binary_loc) : Move Optimize
3177 root(x)*root(y) as root(x*y) to match.pd.
3178 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
3179 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
3180 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
3181 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
3182 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
3183 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
3184 (mult (exps:s @0) (exps:s @1)) : New simplifier.
3185 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
3186 (rdiv @0 (exps:s @1)) : New simplifier.
3187
3188 2015-08-25 Joseph Myers <joseph@codesourcery.com>
3189
3190 * gcc.c (driver::finalize): Only assign to extra_specs if
3191 [EXTRA_SPECS].
3192
3193 2015-08-25 Marek Polacek <polacek@redhat.com>
3194
3195 PR middle-end/67330
3196 * varasm.c (declare_weak): Return after giving an error.
3197
3198 2015-08-25 David Malcolm <dmalcolm@redhat.com>
3199
3200 * gcc-main.c (main): Add params to driver ctor.
3201 * gcc.c (class env_manager): New.
3202 (env): New global.
3203 (env_manager::init): New.
3204 (env_manager::get): New.
3205 (env_manager::xput): New.
3206 (env_manager::restore): New.
3207 Poison getenv and putenv.
3208 (DEFAULT_TARGET_SYSTEM_ROOT): New.
3209 (target_system_root): Update initialization to use
3210 DEFAULT_TARGET_SYSTEM_ROOT.
3211 (struct spec_list): Add field "default_ptr".
3212 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
3213 (init_spec): Likewise.
3214 (set_spec): Clear field "default_ptr".
3215 (read_specs): Free "spec" and "buffer".
3216 (xputenv): Reimplement in terms of env_manager.
3217 (process_command): Replace ::getenv calls with calls to the
3218 env_manager singleton.
3219 (process_brace_body): Free string in three places.
3220 (driver::driver): New.
3221 (driver::~driver): New.
3222 (used_arg): Convert from a function to...
3223 (class used_arg_t): ...this class, and...
3224 (used_arg): ...this new global instance.
3225 (used_arg_t::finalize): New function.
3226 (getenv_spec_function): Add "const" to local "value". Replace
3227 ::getenv call with call to the env_manager singleton.
3228 (path_prefix_reset): New function.
3229 (driver::finalize): New function.
3230 * gcc.h (driver::driver): New.
3231 (driver::~driver): New.
3232 (driver::finalize): New.
3233
3234 2015-08-25 Nathan Sidwell <nathan@acm.org>
3235
3236 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
3237 target doesn't have one.
3238
3239 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
3240
3241 PR target/67346
3242 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
3243
3244 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
3245
3246 PR target/67344
3247 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
3248 a define_insn, remove second alternative.
3249
3250 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
3251 Joseph Myers <joseph@codesourcery.com>
3252
3253 * gcc.c (struct switchstr): Expand comment.
3254
3255 2015-08-25 Nathan Sidwell <nathan@acm.org>
3256
3257 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
3258 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
3259
3260 2015-08-25 Richard Biener <rguenther@suse.de>
3261
3262 PR middle-end/67306
3263 * genmatch.c (expr::gen_transform): Verify the result of
3264 builtin_decl_implicit.
3265 (dt_simplify::gen_1): Likewise.
3266
3267 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
3268
3269 * config/arm/constraints.md: Also list Cs and US ARM-specific
3270 constraints as used.
3271
3272 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
3273
3274 PR target/66609
3275 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
3276 UNSPEC_PCREL.
3277 (nonpic_symbol_mentioned_p): Likewise.
3278 (sh_delegitimize_address): Likewise.
3279 (sh_function_ok_for_sibcall): Take into account weak symbols.
3280 (sh_expand_sym_label2reg): New.
3281 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
3282 * config/sh/sh.md (UNSPEC_PCREL): New enum.
3283 (call_pcrel): Use sh_expand_sym_label2reg.
3284 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
3285 (symPCREL_label2reg) New expand.
3286
3287 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
3288
3289 * graphite-poly.c: Change type of region from void* to sese.
3290 * graphite-poly.h (struct scop): Changing the type of scop::region
3291 from void* to sese. Change accessor macro accordingly.
3292 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
3293
3294 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
3295
3296 * graphite-scop-detection.c (stmt_simple_for_scop_p):
3297 Constrain only on INTEGER_TYPE.
3298
3299 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3300
3301 PR target/67211
3302 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
3303 -mefficient-unaligned-vsx on ISA 2.7.
3304
3305 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
3306 option to a masked option.
3307
3308 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
3309 logic for -mefficient-unaligned-vsx so that it is set via an arch
3310 ISA option, instead of being set if -mtune=power8 is set. Move
3311 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
3312 near other default option handling.
3313
3314 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3315
3316 * genflags.c (gen_macro): Delete.
3317 (gen_proto): Don't create GEN.*CALL.* macros.
3318 * gensupport.h (get_file_location): Declare.
3319 * gensupport.c (rtx_locs): New variable.
3320 (read_md_rtx): Record rtx locations.
3321 (get_file_location): New function.
3322 * target-insns.def (call, call_pop, call_value, call_value_pop)
3323 (sibcall, sibcall_value): New patterns.
3324 * gentarget-def.c (parse_argument): New function.
3325 (def_target_insn): Use it. Handle optional operands. Raise an
3326 error if an .md pattern has the wrong number of operands for the
3327 pattern name. Remove the names of unused operands from the prototype.
3328 * builtins.c (expand_builtin_apply): Use targetm functions
3329 instead of HAVE_call_value and GEN_CALL_VALUE.
3330 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
3331 and sibcall_value_pop.
3332 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
3333 of GEN_CALL.
3334 * config/alpha/alpha.md (untyped_call): Likewise.
3335 * config/iq2000/iq2000.md (untyped_call): Likewise.
3336 * config/m68k/m68k.md (untyped_call): Likewise.
3337 * config/mips/mips.md (untyped_call): Likewise.
3338 * config/pa/pa.md (untyped_call): Likewise.
3339 * config/rs6000/rs6000.md (untyped_call): Likewise.
3340 * config/sparc/sparc.md (untyped_call): Likewise.
3341 * config/tilegx/tilegx.md (untyped_call): Likewise.
3342 * config/tilepro/tilepro.md (untyped_call): Likewise.
3343 * config/visium/visium.md (untyped_call): Likewise.
3344 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
3345 gen_call_value instead of GEN_CALL_VALUE.
3346 * config/arm/arm.md (untyped_call): Likewise.
3347 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
3348 GEN_CALL.
3349
3350 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3351
3352 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
3353 (have_cbranchcc4): New variable.
3354 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
3355 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
3356 (if_convert): Initialize have_cbranchcc4.
3357
3358 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3359
3360 * builtins.c (expand_cmpstrn): Rename to...
3361 (expand_cmpstrn_or_cmpmem): ...this.
3362 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
3363 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
3364 Remove mode argument.
3365 (expand_builtin): Update accordingly.
3366
3367 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3368
3369 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
3370 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
3371 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
3372 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
3373 Add predicates for operands 0 and 3.
3374 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
3375 operand.
3376 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
3377 immediate_operand to nonmemory_operand.
3378
3379 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3380
3381 * df-scan.c (df_insn_info_init_fields): New function, split out
3382 from...
3383 (df_insn_create_insn_record): ...here.
3384 (df_insn_info_free_fields): New function, split out from...
3385 (df_insn_info_delete): ...here.
3386 (df_insn_rescan): Use the new functions instead of freeing and
3387 reallocating the df_insn_info.
3388
3389 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3390
3391 * doc/install.texi (Binaries): Remove links no longer valid.
3392
3393 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
3394
3395 * config/nvptx/mkoffload.c (process): Replace
3396 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
3397
3398 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
3399
3400 PR target/67329
3401 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
3402
3403 2015-08-24 Renlin Li <renlin.li@arm.com>
3404
3405 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
3406 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
3407 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
3408 * config/arm/constraints.md ("j"): Add check for high code.
3409
3410 2015-08-24 Tom de Vries <tom@codesourcery.com>
3411
3412 PR tree-optimization/65468
3413 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
3414 chunk_size is one.
3415
3416 2015-08-24 Nathan Sidwell <nathan@acm.org>
3417
3418 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
3419 change to nvptx_type_from_mode call. Use arg_promotion for both
3420 split and non-split args.
3421
3422 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3423
3424 * target-insns.def (movstr): New pattern.
3425 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
3426 (expand_movstr): Use targetm rather than HAVE_movstr/
3427 CODE_FOR_movstr.
3428
3429 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
3430
3431 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
3432 cast syntax.
3433
3434 2015-08-24 Andrew Pinski <apinski@cavium.com>
3435
3436 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
3437 AARCH64_EXTRA_TUNING_OPTION.
3438 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
3439 New enum.
3440 (aarch64_extra_tuning_flags): Base the shifted value on the index
3441 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
3442 * config/aarch64/aarch64.c: Remove the last argument to
3443 AARCH64_EXTRA_TUNING_OPTION.
3444
3445 2015-08-23 Nathan Sidwell <nathan@acm.org>
3446
3447 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
3448 decls.
3449 (nvptx_declare_function_name): Insert formatting tabs for
3450 consistency.
3451
3452 2015-08-23 Tom de Vries <tom@codesourcery.com>
3453
3454 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
3455 parm_decl, rather than generating a dummy default def in cfun.
3456 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
3457 ssa_name from cfun and child_fn do not share a stmt as def stmt.
3458 (move_stmt_op): Handle PARM_DECl.
3459 (gather_ssa_name_hash_map_from): New function.
3460 (move_sese_region_to_fn): Add default defs for function params, and add
3461 them to vars_map. Release copied ssa names.
3462 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
3463
3464 2015-08-23 Tom de Vries <tom@codesourcery.com>
3465
3466 * doc/sourcebuild.texi: Rename vect_no_int_max with
3467 vect_no_int_min_max. Update description.
3468
3469 2015-08-22 Andrew Pinski <apinski@cavium.com>
3470
3471 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
3472 * config/aarch64/aarch64-protos.h
3473 (aarch64_fusion_pairs_index): New enum.
3474 (aarch64_fusion_pairs): Base the shifted value on the index instead
3475 Rewrite AARCH64_FUSE_ALL to be based on the end index.
3476 of the argument to AARCH64_FUSION_PAIR.
3477 * config/aarch64/aarch64.c: Remove the last argument to
3478 AARCH64_FUSION_PAIR.
3479
3480 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
3481
3482 * dominance.c (new_zero_array): Define.
3483 (dom_info): Redefine as class with proper encapsulation.
3484 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
3485 Add new members.
3486 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
3487 allocations/deallocations. Pass function as parameter (instead of
3488 using cfun).
3489 (dom_info::get_idom): Define accessor method.
3490 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
3491 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
3492 (calculate_dominance_info): Adjust to use dom_info class.
3493 (verify_dominators): Likewise.
3494
3495 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
3496
3497 * print-rtl.c (print_rtx): Check the correct range for
3498 flag_dump_unnumbered_links to behave as documented.
3499
3500 PR rtl-optimization/67227
3501 PR rtl-optimization/64164
3502 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
3503 (nonoverlapping_memrefs_p): Test offsets and sizes when given
3504 identical gimple_reg exprs.
3505
3506 2015-08-21 Nathan Sidwell <nathan@acm.org>
3507
3508 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
3509 expansion.
3510 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
3511 crtl->stack_alignment_needed to determine alignment.
3512 (nvptx_get_drap_rtx): New.
3513 (TARGET_GET_DRAP_RTX): Override.
3514 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
3515
3516 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3517
3518 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
3519
3520 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3521
3522 * configure.ac: Remove uwin* cases.
3523 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
3524 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
3525 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
3526 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
3527 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
3528 i[34567]86-*-uwin*, powerpc-*-beos*.
3529
3530 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
3531
3532 * gencodes.c (gencodes): Print the comma for the preceding
3533 enum value rather than the current one. Use aliased enum values
3534 rather than #defines for compiled-out patterns.
3535 (main): Update accordingly. Replace LAST_INSN_CODE with
3536 NUM_INSN_CODES.
3537 * lra.c (insn_code_data): Update accordingly.
3538 (finish_insn_code_data_once, get_static_insn_data): Likewise.
3539 * recog.h (target_recog): Likewise.
3540 (preprocess_insn_constraints): Change parameter to unsigned int.
3541 * recog.c (preprocess_insn_constraints): Likewise.
3542 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
3543 * tree-vect-stmts.c (vectorizable_operation): Simplify.
3544
3545 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
3546
3547 PR rtl-optimization/61657
3548 * loop-iv.c (iv_number_of_iterations): Declare up and down as
3549 unsigned. Remove superflous uint64_t cast.
3550
3551 2014-08-21 Felix Yang <felix.yang@huawei.com>
3552 Jiji Jiang <jiangjiji@huawei.com>
3553
3554 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
3555 argument and get builtin function code directly from CALL.
3556 (gimple_stringop_fixed_value): Modified accordingly.
3557 (gimple_stringops_transform, gimple_stringops_values_to_profile):
3558 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
3559
3560 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
3561
3562 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
3563
3564 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3565
3566 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
3567 to match.pd.
3568 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
3569 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
3570 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
3571 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
3572 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
3573 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
3574 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
3575 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
3576 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
3577 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
3578
3579 * match.pd (SIN ) : New Operator.
3580 (TAN) : New Operator.
3581 (mult (SQRT@1 @0) @1) : New simplifier.
3582 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
3583 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
3584 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
3585 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
3586 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
3587 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
3588 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
3589 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
3590 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
3591 (rdiv @0 (POW:s @1 @2)) : New simplifier.
3592
3593 2015-08-21 Bin Cheng <bin.cheng@arm.com>
3594
3595 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
3596 loop if EXPR is simplified to const value.
3597
3598 2015-08-21 Yury Gribov <y.gribov@samsung.com>
3599
3600 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
3601 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
3602
3603 2015-08-21 Richard Biener <rguenther@suse.de>
3604
3605 PR middle-end/67285
3606 * gimple-fold.c (replace_stmt_with_simplification): Assert
3607 seq is empty when replacing a call with itself but different
3608 arguments.
3609 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
3610 a call require that it is const.
3611
3612 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3613
3614 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
3615 * builtins.c (get_object_alignment_2): Adjust.
3616 * varasm.c (align_variable): Likewise.
3617 (get_variable_align): Likewise.
3618 (build_constant_desc): Likewise.
3619 (force_const_mem): Likewise.
3620 * doc/tm.texi.in: Likewise.
3621 * doc/tm.texi: Regenerate.
3622
3623 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3624
3625 * genconfig.c (main): Always define HAVE_cc0.
3626 * recog.c (rest_of_handle_peephole2): Adjust.
3627
3628 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3629
3630 * reorg.c (relax_delay_slots): Don't use #if to check value of
3631 HAVE_cc0.
3632
3633 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3634
3635 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
3636 * targhooks.c (default_have_conditional_execution): Adjust.
3637
3638 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
3639
3640 * rtl.h (rtvec_all_equal_p): Declare.
3641 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
3642 * rtl.c (rtvec_all_equal_p): New function.
3643 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
3644 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
3645 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
3646 * config/arm/arm.c (neon_vdup_constant): Likewise.
3647 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
3648 * config/tilegx/constraints.md (W, Y): Likewise.
3649 * config/tilepro/constraints.md (W, Y): Likewise.
3650 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
3651 (classify_immediate): Use unwrap_const_vec_duplicate.
3652 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
3653 (reg_or_v2s8bit_operand): Likewise.
3654 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
3655 (reg_or_v4s8bit_operand): Likewise.
3656
3657 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3658
3659 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
3660 (vec_shasigma_be): New #define.
3661 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
3662 (VPMSUMH): Likewise.
3663 (VPMSUMW): Likewise.
3664 (VPMSUMD): Likewise.
3665 (VPMSUM): New BU_P8V_OVERLOAD_2.
3666 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
3667 entries for VEC_MADD and VEC_VPMSUM.
3668
3669 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
3670
3671 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
3672 Multiply argument avr_n_flash by 64 to match unit of "KiB".
3673 (avr_pgm_check_var_decl): Same.
3674
3675 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
3676
3677 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
3678 initialization of HFmode scalar type (float16_t) to...
3679 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
3680 code.
3681
3682 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
3683
3684 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
3685 having an -mfp16-format.
3686
3687 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
3688
3689 * config/i386/predicates.md (vector_all_ones_operand): Use
3690 CONSTM1_RTX to simplify definition.
3691
3692 2015-08-20 Richard Biener <rguenther@suse.de>
3693
3694 * toplev.c (compile_file): Remove loop calling late_global_decl
3695 on all symbols.
3696 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
3697 on decls we assembled.
3698
3699 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
3700
3701 * common/config/aarch64/aarch64-common.c
3702 (AARCH64_CPU_NAME_LENGTH): Delete.
3703 (aarch64_option_extension): New.
3704 (all_extensions): Likewise.
3705 (processor_name_to_arch): Likewise.
3706 (arch_to_arch_name): Likewise.
3707 (all_cores): New.
3708 (all_architectures): Likewise.
3709 (aarch64_get_extension_string_for_isa_flags): Likewise.
3710 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
3711 architecture names.
3712 * config/aarch64/aarch64-protos.h
3713 (aarch64_get_extension_string_for_isa_flags): New.
3714 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
3715 (aarch64_option_print): Get the string to print from
3716 aarch64_get_extension_string_for_isa_flags.
3717 (aarch64_declare_function_name): Likewise.
3718 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
3719 (MCPU_TO_MARCH_SPEC): This.
3720 (ASM_CPU_SPEC): Use it.
3721 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
3722 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
3723 (EXTRA_SPEC_FUNCTIONS): Use it.
3724
3725 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
3726
3727 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
3728 expansion when !ISA_HAS_LWL_LWR.
3729 (mips_block_move_straight): Update the size of elements copied to
3730 account for alignment when !ISA_HAS_LWL_LWR.
3731 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
3732
3733 2015-08-19 Jiong Wang <jiong.wang@arm.com>
3734
3735 * expr.c (expand_expr_real_2): Check gimple statement during
3736 LSHIFT_EXPR expand.
3737
3738 2015-08-19 Magnus Granberg <zorry@gentoo.org>
3739
3740 * common.opt (fstack-protector): Initialize to -1.
3741 (fstack-protector-all): Likewise.
3742 (fstack-protector-strong): Likewise.
3743 (fstack-protector-explicit): Likewise.
3744 * configure.ac: Add --enable-default-ssp.
3745 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
3746 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
3747 -1.
3748 * doc/install.texi: Document --enable-default-ssp.
3749 * config.in: Regenerated.
3750 * configure: Likewise.
3751
3752 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
3753
3754 PR rtl-optimization/64164
3755 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
3756 (parm_in_stack_slot_p): ... this. Disregard mode, what
3757 matters is whether the parm will live in a pseudo or a stack
3758 slot.
3759 (expand_one_ssa_partition): Deal with params without a default
3760 def. Disregard mode.
3761 * cfgexpand.h: Renamed function declaration.
3762 * tree-ssa-coalesce.c: Adjust.
3763 * function.c (split_complex_args): Allocate stack slot for
3764 unassigned parms before splitting.
3765 (parm_in_unassigned_mem_p): New. Use it instead of
3766 parm_maybe_byref_p throughout this file.
3767 (assign_parm_setup_block): Use it. Accept pseudos in the
3768 expand-assigned rtl.
3769 (assign_parm_setup_reg): Drop BLKmode requirement.
3770 (assign_parm_setup_stack): Allocate and fill in the address of
3771 unassigned MEM parms.
3772
3773 2015-08-19 David Sherwood <david.sherwood@arm.com>
3774
3775 * genmodes.c (emit_mode_unit_size_inline): New function.
3776 (emit_mode_unit_precision_inline): New function.
3777 (emit_insn_modes_h): Emit new #define. Emit new functions.
3778 (emit_mode_unit_size): New function.
3779 (emit_mode_unit_precision): New function.
3780 (emit_mode_adjustments): Add mode_unit_size adjustments.
3781 (emit_insn_modes_c): Emit new arrays.
3782 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
3783 use new inline methods.
3784
3785 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3786
3787 * config/aarch64/aarch64.c (bit_count): Delete prototype
3788 and definition.
3789 (aarch64_print_operand): Use popcount_hwi instead of the above.
3790
3791 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3792
3793 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
3794 comment.
3795
3796 2015-08-19 Marek Polacek <polacek@redhat.com>
3797
3798 PR middle-end/67133
3799 * gimple-ssa-isolate-paths.c
3800 (insert_trap_and_remove_trailing_statements): Rename to ...
3801 (insert_trap): ... this. Don't remove trailing statements; split
3802 block instead.
3803 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
3804
3805 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
3806
3807 PR other/67042
3808 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
3809 conditionalize the whole on __GNUC__. Add fallback code
3810 depending neither on undefined nor implementation-defined behaviour.
3811
3812 2015-08-19 Jiong Wang <jiong.wang@arm.com>
3813
3814 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
3815 whitespaces with tab.
3816
3817 2015-08-19 Florian Weimer <fweimer@redhat.com>
3818
3819 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
3820 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
3821 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
3822 Move Name_Ids instantiation to the Prj.Proc package, to avoid
3823 trampolines.
3824
3825 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3826
3827 * config/arm/arm.c (bounds_check): Use %wd print format
3828 for HOST_WIDE_INT arguments.
3829
3830 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
3831
3832 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
3833 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
3834 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
3835 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
3836 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
3837 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
3838 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
3839 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
3840 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
3841 typedefs.
3842
3843 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
3844
3845 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
3846 function.c, graphite-scop-detection.c, haifa-sched.c,
3847 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
3848 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
3849 varasm.c: Remove typedefs of structs.
3850
3851 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
3852
3853 * config/rs6000/altivec.h (vec_adde): New define.
3854 (vec_addec): Likewise.
3855 (vec_double): Likewise.
3856 (vec_bperm): Likewise.
3857 (vec_gb): Likewise.
3858 * config/rs6000/rs6000-builtin.def (ADDE): New
3859 BU_ALTIVEC_OVERLOAD_3.
3860 (ADDEC): Likewise.
3861 (DOUBLE): New BU_VSX_OVERLOAD_1.
3862 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
3863 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
3864 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
3865 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
3866 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
3867 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
3868 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
3869 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
3870 and P8V_BUILTIN_VEC_VBPERMQ.
3871
3872 2015-08-18 Jason Merrill <jason@redhat.com>
3873
3874 * print-tree.c (print_node): Handle TREE_BINFO.
3875
3876 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3877
3878 PR middle-end/36757
3879 * builtins.c (expand_builtin_signbit): Add asserts to make sure
3880 we can expand BUILT_IN_SIGNBIT inline.
3881 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
3882 * doc/extend.texi: Document the type-generic __builtin_signbit.
3883
3884 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
3885
3886 PR rtl-optimization/67218
3887 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
3888 (simplify_unary_operation_1): Use it.
3889
3890 2015-08-18 Marek Polacek <polacek@redhat.com>
3891
3892 PR middle-end/67222
3893 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
3894 if the call isn't valid.
3895 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
3896 gimple_call_builtin_p.
3897 (call_may_clobber_ref_p_1): Likewise.
3898 (stmt_kills_ref_p): Likewise.
3899
3900 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
3901
3902 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
3903 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
3904 (mips_hard_regno_scratch_ok): Likewise.
3905 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
3906 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
3907
3908 2015-08-18 Bin Cheng <bin.cheng@arm.com>
3909
3910 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
3911 (determine_value_range): Call refine_value_range_using_guard for
3912 each loop initial condition to improve value range.
3913
3914 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
3915
3916 * config/i386/i386.c: Remove include of fibheap.h.
3917
3918 2015-08-17 Richard Biener <rguenther@suse.de>
3919
3920 PR tree-optimization/67221
3921 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
3922 (sccvn_dom_walker::before_dom_children): Mark backedges of
3923 non-executable blocks as not executable.
3924
3925 2015-08-17 David Sherwood <david.sherwood@arm.com>
3926
3927 * config/arm/arm.c (neon_element_bits): Replace call to
3928 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
3929 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
3930 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
3931 (neon_vdup_lane<mode>): Likewise.
3932 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
3933 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
3934 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
3935 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
3936 * config/spu/spu.c (arith_immediate_p): Likewise.
3937 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
3938 * expr.c (expand_expr_real_2): Likewise.
3939 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
3940 * simplify-rtx.c (simplify_immed_subreg): Likewise.
3941 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
3942 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
3943 New variable.
3944 * fold-const.c (fold_binary_loc): Replace call to
3945 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
3946 GET_MODE_UNIT_PRECISION (m).
3947
3948 2015-08-17 Mike Stump <mikestump@comcast.net>
3949
3950 * config/arm/arm.c (arm_block_move_unaligned_straight):
3951 Emit normal move instead of unaligned load when source or destination
3952 are appropriately aligned.
3953
3954 2015-08-17 Richard Biener <rguenther@suse.de>
3955 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3956
3957 PR middle-end/16107
3958 * match.pd (div (coss (op @0) : New simplifier.
3959
3960 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
3961
3962 PR rtl-optimization/64164
3963 PR bootstrap/66978
3964 PR middle-end/66983
3965 PR rtl-optimization/67000
3966 PR middle-end/67034
3967 PR middle-end/67035
3968 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
3969 * tree-ssa-copyrename.c: Removed.
3970 * opts.c (default_options_table): Drop -ftree-copyrename. Add
3971 -ftree-coalesce-vars.
3972 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
3973 * common.opt (ftree-copyrename): Ignore.
3974 (ftree-coalesce-inlined-vars): Likewise.
3975 * doc/invoke.texi: Remove the ignored options above.
3976 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
3977 * tree-ssa-coalesce.h: ... here.
3978 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
3979 headers required by it.
3980 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
3981 across variables when flag_tree_coalesce_vars. Check register
3982 use and promoted modes to allow coalescing. Do not coalesce
3983 maybe-byref parms with SSA_NAMEs of other variables, or
3984 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
3985 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
3986 with its member functions to tree-ssa-coalesce.c.
3987 (var_map_base_init): Likewise. Renamed to
3988 compute_samebase_partition_bases.
3989 (partition_view_normal): Drop want_bases parameter.
3990 (partition_view_bitmap): Likewise.
3991 * tree-ssa-live.h: Adjust declarations.
3992 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
3993 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
3994 default defs at the entry point.
3995 (dump_part_var_map): New.
3996 (compute_optimized_partition_bases): New, called by...
3997 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
3998 of compute_samebase_partition_bases. Adjust.
3999 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4000 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
4001 (ssa_default_def_partition): New.
4002 (get_rtl_for_parm_ssa_default_def): New.
4003 (align_local_variable, add_stack_var): Support anonymous SSA
4004 names.
4005 (defer_stack_allocation): Likewise. Declare earlier.
4006 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4007 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4008 Do no record deferred-allocation marker in
4009 SA.partition_to_pseudo.
4010 (expand_stack_vars): Adjust check for the marker in it.
4011 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
4012 redundant MEM attr setting.
4013 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
4014 from...
4015 (expand_one_stack_var): ... this. New wrapper to check and
4016 skip already expanded SSA partitions.
4017 (record_alignment_for_reg_var): New, factored out of...
4018 (expand_one_var): ... this.
4019 (expand_one_ssa_partition): New.
4020 (adjust_one_expanded_partition_var): New.
4021 (expand_one_register_var): Check and skip already expanded SSA
4022 partitions.
4023 (expand_used_vars): Don't create DECLs for anonymous SSA
4024 names. Expand all SSA partitions, then adjust all SSA names.
4025 (pass::execute): Replace the loops that set
4026 SA.partition_to_pseudo from partition leaders and cleared
4027 DECL_RTL for multi-location variables, and that which used to
4028 rename vars and set attrs, with one that clears DECL_RTL and
4029 checks that PARMs and RESULTs default_defs match DECL_RTL.
4030 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4031 * emit-rtl.c: Include stor-layout.h.
4032 (set_reg_attrs_for_parm): Handle NULL decl.
4033 (set_reg_attrs_for_decl_rtl): Take mode from expression if
4034 it's not a DECL.
4035 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
4036 rather than its possibly-NULL DECL.
4037 * explow.c (promote_ssa_mode): New.
4038 * explow.h (promote_ssa_mode): Declare.
4039 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4040 (read_complex_part): Export.
4041 * expr.h (read_complex_part): Declare.
4042 * cfgexpand.h (parm_maybe_byref_p): Declare.
4043 * function.c: Include cfgexpand.h.
4044 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4045 (use_register_for_parm_decl): Wrapper for the above to
4046 special-case the result_ptr.
4047 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4048 (split_complex_args): Take assign_parm_data_all argument.
4049 Pass it to rtl_for_parm. Set up rtl and context for split
4050 args. Reset complex parm before fetching its default decl
4051 rtl.
4052 (assign_parms_unsplit_complex): Use the default-def complex
4053 parm rtl if it matches the components.
4054 (assign_parms_augmented_arg_list): Adjust.
4055 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4056 multiple locations. Recognize split complex args.
4057 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4058 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
4059 (assign_parm_setup_block): Prefer SSA-assigned location, and
4060 fill in its address if the memory location of a maybe-byref
4061 parm was not assigned by cfgexpand.
4062 (assign_parm_setup_reg): Likewise. Adjust its mode as
4063 needed. Use entry_parm for equiv if stack_parm is NULL. Make
4064 sure passed_pointer parms don't need conversion. Copy address
4065 or value as needed.
4066 (assign_parm_setup_stack): Prefer SSA-assigned location.
4067 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
4068 rtl before testing for pointer bounds. Special-case result_ptr.
4069 (expand_function_start): Maybe reset DECL_RTL of result.
4070 Prefer SSA-assigned location for result and static chain.
4071 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
4072 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
4073 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4074 anonymous SSA names. Use promote_ssa_mode.
4075 (get_temp_reg): Likewise.
4076 (remove_ssa_form): Adjust.
4077 * stor-layout.c (layout_decl): Don't set mem attributes of
4078 non-MEMs.
4079 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4080 and get its reg_usage for reg invalidation.
4081 (compute_bb_dataflow): Pass it insn.
4082 (emit_notes_in_bb): Likewise.
4083
4084 2015-08-14 Marek Polacek <polacek@redhat.com>
4085
4086 * tree-core.h (tree_base): Fix typo.
4087
4088 2015-08-14 Marek Polacek <polacek@redhat.com>
4089
4090 PR middle-end/67133
4091 * gimple.c (infer_nonnull_range_by_attribute): Check that the
4092 nonnull argument position is not outside function arguments.
4093
4094 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
4095
4096 PR target/67143
4097 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
4098 'lconst_atomic' with 'const_atomic'.
4099 (atomic_fetch_<optab><mode>): Likewise.
4100 (atomic_<optab>_fetch<mode>): Likewise.
4101 * config/aarch64/iterators.md (lconst-atomic): Move below
4102 'const_atomic'.
4103 (const_atomic): New.
4104
4105 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
4106 Bernd Schmidt <bernds@codesourcery.com>
4107
4108 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
4109 debug options.
4110 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
4111 (DWARF2_DEBUGGING_INFO): Don't define.
4112 * debug.h (dwarf2_lineno_debug_hooks): Declare.
4113 * toplev.c (process_options): Add a case for it.
4114 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
4115 (dwarf2out_init): Skip most initializations if
4116 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
4117 case.
4118 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
4119 DWARF2_LINENO_DEBUGGING_INFO.
4120 * opts.c (set_debug_level): Likewise.
4121
4122 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
4123
4124 * config/arm/types.md (is_neon_type): Add missing types.
4125
4126 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
4127
4128 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
4129 for skylake.
4130 * config/i386/i386.c (PTA_SKYLAKE): New macros.
4131 (processor_alias_table): Add skylake description.
4132 (enum processor_model): Add skylake processor.
4133 (arch_names_table): Add skylake record.
4134 * doc/invoke.texi: Add skylake item.
4135
4136 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
4137
4138 * ira-int.h: Include recog.h.
4139 * ira-build.c: Don't include recog.h.
4140 * ira-color.c: Likewise.
4141 * ira-conflicts.c: Likewise.
4142 * ira-costs.c: Likewise.
4143 * ira-emit.c: Likewise.
4144 * ira-lives.c: Likewise.
4145 * ira.c: Likewise.
4146 * sched-deps.c: Likewise.
4147 * sel-sched.c: Likewise.
4148 * target-globals.c: Likewise.
4149
4150 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
4151
4152 PR bootstrap/55035
4153 * reload1.c (elimination_costs_in_insn): Make it obvious to the
4154 compiler that the n_dups and n_operands loop bounds are invariant.
4155
4156 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4157
4158 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
4159 expressions in A and B.
4160
4161 2015-08-13 Richard Biener <rguenther@suse.de>
4162
4163 * tree.c (nonnull_arg_p): Move from ...
4164 * tree-vrp.c (nonnull_arg_p): ... here.
4165 * tree.h (nonnull_arg_p): Declare.
4166 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
4167 here, register ptr != 0 for nonnull_arg_p pointer arguments.
4168 Properly initialize static chain and by-reference result pointer.
4169 (run_scc_vn): Adjust.
4170
4171 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
4172
4173 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
4174 TUNE_I6400.
4175
4176 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
4177
4178 * config/aarch64/aarch64-protos.h
4179 (aarch64_gen_atomic_cas): Declare.
4180 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
4181 Choose appropriate instruction pattern for the target.
4182 (aarch64_gen_atomic_cas): New.
4183 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
4184 (atomic_compare_and_swap<mode>_1): Rename to
4185 aarch64_compare_and_swap<mode>. Fix some indentation.
4186 (aarch64_compare_and_swap<mode>_lse): New.
4187 (aarch64_atomic_cas<mode>): New.
4188
4189 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
4190
4191 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
4192 (TARGET_LSE): New.
4193
4194 2015-08-13 Richard Biener <rguenther@suse.de>
4195
4196 PR tree-optimization/67191
4197 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
4198 assert we value-numbered last stmts operand because it can validly
4199 trigger for unreachable code.
4200
4201 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4202
4203 PR rtl-optimization/67103
4204 * ifcvt.c (noce_try_store_flag_constants): Move
4205 x = (-(test != 0) & (b - a)) + a transformation to...
4206 (noce_try_cmove): ... Here. Try it if normal conditional
4207 move fails.
4208
4209 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
4210
4211 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
4212 pseudo-processors.
4213 * config/mips/mips.md (processor): Remove w32 and w64.
4214
4215 2015-08-13 Richard Biener <rguenther@suse.de>
4216
4217 PR tree-optimization/66502
4218 PR tree-optimization/67167
4219 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
4220 backedge arguments.
4221 (vn_phi_lookup): Adjust.
4222 (vn_phi_insert): Likewise.
4223 (visit_phi): Prefer to value-number to another PHI node
4224 over value-numbering to a PHI argument.
4225 (init_scc_vn): Mark DFS back edges.
4226
4227 2015-08-13 Richard Biener <rguenther@suse.de>
4228
4229 * gimple.h (gcall::code_): New constant static member.
4230 (gcond::code_): Likewise.
4231 * gimple.c (gcall::code_): Define.
4232 (gcond::code_): Likewise.
4233 (is_a_helper <const gcond *>): Add.
4234 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
4235 and forward to a new gcall overload with less checking and a
4236 cheaper way to access the operand.
4237 (gimple_call_lhs_ptr): Likewise.
4238 (gimple_call_set_lhs): Likewise.
4239 (gimple_call_internal_p): Likewise.
4240 (gimple_call_with_bounds_p): Likewise.
4241 (gimple_call_set_with_bounds): Likewise.
4242 (gimple_call_internal_fn): Likewise.
4243 (gimple_call_set_ctrl_altering): Likewise.
4244 (gimple_call_ctrl_altering_p): Likewise.
4245 (gimple_call_fntype): Likewise.
4246 (gimple_call_fn): Likewise.
4247 (gimple_call_fn_ptr): Likewise.
4248 (gimple_call_set_fndecl): Likewise.
4249 (gimple_call_fndecl): Likewise.
4250 (gimple_call_chain): Likewise.
4251 (gimple_call_num_args): Likewise.
4252 (gimple_call_arg): Likewise.
4253 (gimple_call_arg_ptr): Likewise.
4254 (gimple_call_set_arg): Likewise.
4255 (gimple_call_noreturn_p): Likewise.
4256 (gimple_cond_code): Likewise.
4257 (gimple_cond_lhs): Likewise.
4258 (gimple_cond_rhs): Likewise.
4259 (gimple_has_lhs): Reduce checking.
4260
4261 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4262
4263 PR middle-end/25529
4264 * match.pd (div (mult @0 @1) @1) : New simplifier.
4265
4266 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
4267
4268 PR target/67071
4269 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
4270 predicate to allow construction of vector constants using the
4271 VSLDOI vector shift instruction.
4272
4273 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
4274 declaration.
4275
4276 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
4277 the number of bytes to be shifted left and filled in with either
4278 all zero or all one bits.
4279 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
4280 methods exist.
4281 (output_vec_const_move): On power8, generate XXLORC to generate
4282 a vector constant with all 1's. Do a split if we need to use a
4283 VSLDOI instruction.
4284
4285 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
4286 properly test for the MSB.
4287
4288 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
4289 vector constants that can be created with VSLDOI.
4290
4291 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
4292
4293 revert:
4294 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
4295 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
4296 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
4297 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
4298 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
4299 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
4300 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
4301 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
4302 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
4303
4304 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
4305
4306 * config/xtensa/constraints.md (define_constraint "Y"): New
4307 constraint.
4308 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
4309 * config/xtensa/linux.h (ASM_SPEC): Likewise.
4310 * config/xtensa/predicates.md (move_operand): Match constants
4311 and symbols in the presence of TARGET_AUTO_LITPOOLS.
4312 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
4313 immediate references to TLS data.
4314 (xtensa_emit_move_sequence): Don't force constants to memory in
4315 the presence of TARGET_AUTO_LITPOOLS.
4316 (print_operand): Add 'y' format, same as default, but capable of
4317 printing SF mode constants as well.
4318 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
4319 (movsf_internal): Add movi pattern that loads literal.
4320 (movsf, movdf): Don't force constants to memory in the presence
4321 of TARGET_AUTO_LITPOOLS.
4322 (movdf_internal): Add 'Y' constraint.
4323 * config/xtensa/xtensa.opt (mauto-litpools): New option.
4324 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
4325
4326 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
4327
4328 * config/arm/arm-fpus.def: Replace booleans with feature flags.
4329 Update comment.
4330 * config/arm/arm.c (ARM_FPU): Update macro.
4331 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
4332 (TARGET_FP16): Likewise.
4333 (TARGET_CRYPTO): Likewise.
4334 (TARGET_NEON): Likewise.
4335 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
4336 field features.
4337
4338 2015-08-12 Tom de Vries <tom@codesourcery.com>
4339
4340 PR other/67092
4341 PR other/67098
4342 * doc/install.texi: Remove --with_host_libstdcxx item. Update
4343 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
4344 accordingly. Mention default for --with-stage1-ldflags.
4345
4346 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
4347
4348 * config/arm/arm.h (arm_fpu_feature_set): New.
4349 (ARM_FPU_FSET_HAS): New.
4350 (FPU_FL_NONE): New.
4351 (FPU_FL_NEON): New.
4352 (FPU_FL_FP16): New.
4353 (FPU_FL_CRYPTO): New.
4354
4355 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4356
4357 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
4358 after -mcmodel=large -fPIC sorry.
4359
4360 2015-08-12 Richard Biener <rguenther@suse.de>
4361
4362 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
4363 comparison operand order and commutative ternary op operand order.
4364 (sccvn_dom_walker::cond_stack): New state to track temporary
4365 expressions.
4366 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
4367 no longer valid.
4368 (sccvn_dom_walker::record_cond): Add a single temporary conditional
4369 expression.
4370 (sccvn_dom_walker::record_conds): Add a temporary conditional
4371 expressions and all related expressions also true/false.
4372 (sccvn_dom_walker::before_dom_children): Record temporary
4373 expressions based on the controlling condition of a single
4374 predecessor. When trying to simplify a conditional statement
4375 lookup expressions we might have inserted earlier.
4376
4377 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
4378
4379 PR target/67127
4380 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
4381 to ARM core registers.
4382
4383 2015-08-12 Nathan Sidwell <nathan@acm.org>
4384
4385 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
4386 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
4387
4388 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
4389
4390 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
4391 line with comments.
4392 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
4393
4394 2015-08-12 Richard Biener <rguenther@suse.de>
4395
4396 * gimple.h (remove_pointer): New trait.
4397 (GIMPLE_CHECK2): New inline template function.
4398 (gassign::code_): New constant static member.
4399 (is_a_helper<const gassign *>): Add.
4400 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
4401 and forward to a new gassign overload with less checking and a
4402 cheaper way to access the operand.
4403 (gimple_assign_lhs_ptr): Likewise.
4404 (gimple_assign_set_lhs): Likewise.
4405 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
4406 Likewise.
4407 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
4408 Likewise.
4409 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
4410 Likewise.
4411 (gimple_assign_rhs_code): Likewise.
4412 * gimple.c (gassign::code_): Define.
4413
4414 2015-08-12 Richard Biener <rguenther@suse.de>
4415
4416 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4417 Eliminate edges marked as not executable by SCCVN.
4418 * tree-ssa-sccvn.c: Include gimple-iterator.h.
4419 (cond_dom_walker): Rename to sccvn_dom_walker.
4420 (sccvn_dom_walker::before_dom_children): Value-number defs
4421 of all stmts.
4422 (run_scc_vn): Remove loop value-numbering all SSA names.
4423 Drop not visited SSA names to varying.
4424
4425 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
4426
4427 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
4428 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
4429 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
4430 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
4431 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
4432 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
4433 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
4434 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
4435 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
4436
4437 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
4438
4439 PR target/66954
4440 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
4441 to enum feature_priority and feature_list.
4442 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
4443 and isa_names_table.
4444
4445 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
4446
4447 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
4448 vect_induction_def.
4449
4450 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4451
4452 PR c/66098
4453 PR c/66711
4454 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
4455 account when deciding what was the command-line status.
4456
4457 2015-08-11 Nathan Sidwell <nathan@acm.org>
4458
4459 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
4460
4461 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
4462 we're not the only contributor to target phi.
4463
4464 2015-08-11 Jiong Wang <jiong.wang@arm.com>
4465
4466 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
4467 FIXED_REG0.
4468
4469 2015-08-11 Tom de Vries <tom@codesourcery.com>
4470
4471 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
4472
4473 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
4474
4475 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
4476 with CPU_SLM.
4477 * config/i386/i386.md (cpu): Remove knl.
4478
4479 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
4480
4481 PR libgomp/65742
4482 PR middle-end/66332
4483 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
4484 open-coded sequence.
4485 * omp-low.c (oacc_process_reduction_data): Remove handline of
4486 GOMP_DEVICE_HOST_NONSHM.
4487
4488 * lto-streamer-in.c (lto_input_mode_table): Adjust to
4489 GET_MODE_INNER changes.
4490
4491 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
4492 Ilya Verbin <ilya.verbin@intel.com>
4493
4494 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
4495
4496 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4497
4498 * doc/options.texi (EnabledBy): Document that the argument must be
4499 a Common option.
4500 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
4501 Not enabled by -Wall.
4502 * optc-gen.awk: Give nicer error messages. Detect if the argument
4503 of EnabledBy is not a Common option.
4504 * common.opt (Wnull-dereference): Not enabled by -Wall.
4505 * opt-functions.awk (lang_enabled_by): Nicer error messages.
4506
4507 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
4508
4509 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
4510 model == 0x4f as Broadwell.
4511
4512 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
4513
4514 PR rtl-optimization/67028
4515 * combine.c (simplify_comparison): Fix comment. Rearrange code.
4516 Add test to see if a const_int fits in the new mode.
4517
4518 2015-08-07 DJ Delorie <dj@redhat.com>
4519
4520 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
4521
4522 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
4523
4524 PR rtl-optimization/67029
4525 * ira-color.c: Include "recog.h" before including "ira-int.h".
4526 * target-globals.c: Likewise.
4527 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
4528 adds an alternative_mask argument and use it instead of
4529 preferred_alternatives.
4530 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
4531 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
4532 * sched-deps.c: Include "ira-int.h" after including "ira.h".
4533 (sched_analyze_insn): Update call to
4534 ira_implicitly_set_insn_hard_regs.
4535 * sel-sched.c: Include "ira-int.h" after including "ira.h".
4536 (implicit_clobber_conflict_p): Update call to
4537 ira_implicitly_set_insn_hard_regs.
4538
4539 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
4540
4541 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
4542
4543 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
4544
4545 PR target/67002
4546 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
4547 currently_expanding_to_rtl is set.
4548
4549 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
4550
4551 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
4552 * configure: Regenerate.
4553
4554 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4555 Jiong Wang <jiong.wang@arm.com>
4556
4557 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
4558 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
4559 (REG_CLASS_NAMES): Likewise.
4560 (REG_CLASS_CONTENTS): Likewise.
4561 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
4562 (aarch64_register_move_cost): Likewise.
4563 (aarch64_load_symref_appropriately): Invoke the new added pattern if
4564 possible.
4565 * config/aarch64/constraints.md (Uc0): New constraint.
4566
4567 2015-08-06 Jiong Wang <jiong.wang@arm.com>
4568
4569 * config/aarch64/constraints.md (Usf): Add the test of
4570 aarch64_is_noplt_call_p.
4571
4572 2015-08-06 Jiong Wang <jiong.wang@arm.com>
4573
4574 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
4575 declaration.
4576 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
4577 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
4578 (call_symbol): Likewise.
4579
4580 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
4581
4582 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
4583 for vectorizing multiplication patterns.
4584 * tree-vectorizer.h: Adjust the number of patterns.
4585
4586 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
4587
4588 * config/i386/sse.md (*vec_concatv2df): Declare added
4589 alternatives as sselog type.
4590
4591 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4592
4593 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
4594 all GPRs.
4595
4596 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4597
4598 * config/s390/s390.c (s390_expand_tbegin): Expand either
4599 tbegin_1_z13 or tbegin_1 depending on VX flag.
4600 * config/s390/s390.md ("tbegin_1_z13"): New expander.
4601
4602 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4603
4604 * config/s390/s390.opt: Clarify description for -mzvector
4605 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
4606 -mzvector.
4607
4608 2015-08-06 Richard Biener <rguenther@suse.de>
4609
4610 * gimple.h (gimple_call_set_fn): Access op member directly.
4611 (gimple_call_chain_ptr): Likewise.
4612 (gimple_call_set_chain): Likewise.
4613 (gimple_cond_lhs_ptr): Likewise.
4614 (gimple_cond_set_lhs): Likewise.
4615 (gimple_cond_rhs_ptr): Likewise.
4616 (gimple_cond_set_rhs): Likewise.
4617 (gimple_cond_true_label): Likewise.
4618 (gimple_cond_set_true_label): Likewise.
4619 (gimple_cond_set_false_label): Likewise.
4620 (gimple_cond_false_label): Likewise.
4621 (gimple_label_label): Likewise.
4622 (gimple_label_set_label): Likewise.
4623 (gimple_goto_set_dest): Likewise.
4624 (gimple_asm_input_op): Likewise.
4625 (gimple_asm_input_op_ptr): Likewise.
4626 (gimple_asm_set_input_op): Likewise.
4627 (gimple_asm_output_op): Likewise.
4628 (gimple_asm_output_op_ptr): Likewise.
4629 (gimple_asm_set_output_op): Likewise.
4630 (gimple_asm_clobber_op): Likewise.
4631 (gimple_asm_set_clobber_op): Likewise.
4632 (gimple_asm_label_op): Likewise.
4633 (gimple_asm_set_label_op): Likewise.
4634 (gimple_switch_index): Likewise.
4635 (gimple_switch_index_ptr): Likewise.
4636 (gimple_return_retval_ptr): Likewise.
4637 (gimple_return_retval): Likewise.
4638 (gimple_return_set_retval): Likewise.
4639 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
4640 (gimple_switch_label): Likewise.
4641 (gimple_switch_set_label): Likewise.
4642
4643 2015-08-06 Richard Biener <rguenther@suse.de>
4644
4645 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
4646 bool comparison canonicalization and restrict to integers.
4647
4648 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
4649
4650 * coretypes.h (enum symbol_visibility): Relocate here.
4651 * flag-types.h (enum symbol_visibility): Remove.
4652 * tree-core.h (enum symbol_visibility): Remove.
4653
4654 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
4655
4656 PR target/66870
4657 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
4658 for no_split_stack function attribute along with
4659 flag_split_stack.
4660 (rs6000_expand_split_stack_prologue): Likewise.
4661
4662 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
4663 Jeff Law <law@redhat.com>
4664
4665 PR c/16351
4666 * doc/invoke.texi (Wnull-dereference): New.
4667 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
4668 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
4669 Warn for potential NULL dereferences.
4670 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
4671 * ubsan.c (instrument_nonnull_arg): Call
4672 infer_nonnull_range_by_attribute.
4673 (instrument_nonnull_return): Likewise.
4674 * common.opt (Wnull-dereference); New.
4675 * gimple.c (infer_nonnull_range): Remove bool arguments.
4676 (infer_nonnull_range_by_dereference): New.
4677 (infer_nonnull_range_by_attribute): New.
4678 * gimple.h: Update declarations.
4679
4680 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
4681
4682 * gensupport.c (sequence_num): Replace with...
4683 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
4684 ...these new variables.
4685 (init_rtx_reader_args_cb): Update accordingly.
4686 (get_num_code_insns): Likewise.
4687 (read_md_rtx): Rework to use a while loop and get_c_test.
4688 Use the new counters. Remove redundant DEFINE_SUBST case.
4689 * genoutput.c (gen_split): Delete.
4690 (main): Don't call it.
4691
4692 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
4693
4694 * gensupport.h (get_c_test): Declare.
4695 * gensupport.c (get_c_test): New function.
4696 * genconditions.c (main): Use it.
4697 * genrecog.c (validate_pattern): Likewise.
4698 (match_pattern_1): Likewise. Remove c_test argument.
4699 (match_pattern): Update accordingly and remove c_test argument.
4700 (main): Update accordingly.
4701
4702 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
4703
4704 * gensupport.h (get_num_insn_codes): Declare.
4705 * gensupport.c (get_num_insn_codes): New function.
4706 * genattrtab.c (optimize_attrs): Rename max_insn_code to
4707 num_insn_codes.
4708 (main): Likewise. Use get_num_insn_codes.
4709 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
4710
4711 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
4712
4713 PR middle-end/66311
4714 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
4715 is zero- rather than sign-extended.
4716
4717 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
4718
4719 * target-insns.def (can_extend): Delete.
4720
4721 2015-08-05 Richard Biener <rguenther@suse.de>
4722
4723 PR tree-optimization/67121
4724 * tree-if-conv.c (combine_blocks): Clear range-info produced
4725 by stmts no longer executed conditionally.
4726
4727 2015-08-05 Nick Clifton <nickc@redhat.com>
4728
4729 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
4730 to allow identical far pointers to remain.
4731
4732 2015-08-05 Richard Biener <rguenther@suse.de>
4733
4734 PR middle-end/67120
4735 * match.pd: Compare address bases with == if they are decls
4736 or SSA names, not operand_equal_p. Otherwise fail.
4737
4738 2015-08-05 Richard Biener <rguenther@suse.de>
4739
4740 PR tree-optimization/67055
4741 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
4742 NULL gimple_block.
4743
4744 * g++.dg/torture/pr67055.C: New testcase.
4745
4746 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
4747
4748 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
4749 noavx512vl.
4750 (define_attr "enabled"): Handle avx521vl and noavx512vl.
4751 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
4752 AVX-512 alternative out of SSE.
4753 (define_insn "*vec_concatv2df"): Ditto.
4754
4755 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
4756
4757 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
4758 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
4759 CODE_FOR_avx_ptestv4di.
4760 * config/i386/sse.md (define_mode_iterator V_AVX): New.
4761 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
4762 (define_insn "avx_ptest256"): Merge this ...
4763 (define_insn "sse4_1_ptest"): And this ...
4764 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
4765
4766 2015-08-05 Richard Biener <rguenther@suse.de>
4767
4768 PR tree-optimization/67109
4769 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
4770 against too big groups. Print whether this is a load or store
4771 group. Rename from ...
4772 (vect_analyze_group_access): ... this which is now a wrapper
4773 dissolving an invalid group.
4774 (vect_analyze_data_ref_accesses): Print whether this is a load
4775 or store group.
4776
4777 2015-08-05 Richard Biener <rguenther@suse.de>
4778
4779 PR middle-end/67107
4780 * match.pd: Guard const_binop result checking against NULL_TREE
4781 result.
4782
4783 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
4784
4785 * cse.c (cse_insn): Restoring old behaviour for src_eqv
4786 when dest and value in the REG_EQUAL are same and dest
4787 is STRICT_LOW_PART.
4788
4789 2015-08-04 Anatoly Sokolov <aesok@post.ru>
4790
4791 * config/moxie/moxie.h (PRINT_OPERAND,
4792 PRINT_OPERAND_ADDRESS): Remove macros.
4793 * config/moxie/moxie-protos.h (moxie_print_operand,
4794 moxie_print_operand_address): Remove declaration.
4795 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
4796 TARGET_PRINT_OPERAND_ADDRESS): Define.
4797 (moxie_print_operand, moxie_print_operand_address): Make static.
4798
4799 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
4800
4801 PR target/66731
4802 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
4803 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
4804
4805 2015-08-04 Richard Biener <rguenther@suse.de>
4806
4807 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
4808 generated code.
4809 (dt_operand::gen_gimple_expr): Adjust.
4810
4811 2015-08-04 Richard Biener <rguenther@suse.de>
4812
4813 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
4814 bool compares on RHS.
4815 * match.pd: Add X ==/!= !X is false/true pattern.
4816
4817 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
4818
4819 * config/aarch64/aarch64.c: Change inner loop statement cost
4820 to be consistent with other targets.
4821
4822 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
4823
4824 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
4825 targets.
4826
4827 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
4828
4829 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
4830 (machine_function): Remove pseudos field.
4831
4832 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4833
4834 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
4835 Exit early and use target_option_current_node if processing current
4836 pragma.
4837
4838 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4839
4840 * doc/extend.texi (AArch64 Function Attributes): New node.
4841 (AArch64 Pragmas): Likewise.
4842
4843 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4844
4845 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
4846 Initialize simd builtins if TARGET_SIMD.
4847 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
4848 Make sure that the builtins are initialized only once no matter how
4849 many times the function is called.
4850 (aarch64_init_builtins): Unconditionally initialize crc builtins.
4851 (aarch64_relayout_simd_param): New function.
4852 (aarch64_simd_expand_args): Use above during argument expansion.
4853 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
4854 simd builtins if TARGET_SIMD.
4855 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
4856 prototype.
4857 (aarch64_relayout_simd_types): Likewise.
4858
4859 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4860
4861 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
4862 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
4863 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
4864 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
4865 static keyword.
4866 (aarch64_reset_previous_fndecl): New function.
4867 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
4868 the string.
4869 * config/aarch64/aarch64-c.c: New file.
4870 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
4871 Push and pop options at beginning and end. Remove ifdef
4872 __ARM_FEATURE_CRC32.
4873 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
4874 Add pragma +nothing+simd and +nothing+crypto where appropriate.
4875 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
4876 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
4877 Define prototype.
4878 (aarch64_register_pragmas): Likewise.
4879 (aarch64_reset_previous_fndecl): Likewise.
4880 (aarch64_process_target_attr): Likewise.
4881 (aarch64_override_options_internal): Likewise.
4882
4883 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4884
4885 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
4886 New function.
4887 (aarch64_can_inline_p): Likewise.
4888 (TARGET_CAN_INLINE_P): Define.
4889
4890 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4891
4892 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
4893 Remove static. Handle OPT_mgeneral_regs_only,
4894 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
4895 OPT_momit_leaf_frame_pointer.
4896 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
4897 (aarch64_attr_opt_type): New enum.
4898 (aarch64_attribute_info): New struct.
4899 (aarch64_handle_attr_arch): New function.
4900 (aarch64_handle_attr_cpu): Likewise.
4901 (aarch64_handle_attr_tune): Likewise.
4902 (aarch64_handle_attr_isa_flags): Likewise.
4903 (aarch64_attributes): New table.
4904 (aarch64_process_one_target_attr): New function.
4905 (num_occurences_in_str): Likewise.
4906 (aarch64_process_target_attr): Likewise.
4907 (aarch64_option_valid_attribute_p): Likewise.
4908 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
4909 * config/aarch64/aarch64-protos.h: Include input.h
4910 (aarch64_handle_option): Declare prototype.
4911
4912 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4913
4914 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
4915 * config/aarch64/aarch64.c: Include target-globals.h
4916 (aarch64_previous_fndecl): New variable.
4917 (aarch64_set_current_function): New function.
4918 (TARGET_SET_CURRENT_FUNCTION): Define.
4919
4920 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4921
4922 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
4923 (explicit_arch): Likewise.
4924 (x_aarch64_isa_flags): Likewise.
4925 (mgeneral-regs-only): Mark as Save.
4926 (mfix-cortex-a53-835769): Likewise.
4927 (mcmodel=): Likewise.
4928 (mstrict-align): Likewise.
4929 (momit-leaf-frame-pointer): Likewise.
4930 (mtls-dialect): Likewise.
4931 (master=): Likewise.
4932 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
4933 (aarch64_isa_flags): Remove extern declaration.
4934 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
4935 to indicate success or failure.
4936 (aarch64_validate_march): Likewise.
4937 (aarch64_validate_mtune): Likewise.
4938 (aarch64_isa_flags): Delete.
4939 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
4940 instead of aarch64_isa_flags.
4941 (aarch64_get_tune_cpu): New function.
4942 (aarch64_get_arch): Likewise.
4943 (aarch64_override_options): Use above and set up explicit_tune_core
4944 and explicit_arch.
4945 (aarch64_print_extension): Move earlier in file. Add isa_flags
4946 argument and use that instead of the global aarch64_isa_flags.
4947 (aarch64_option_save): New function.
4948 (aarch64_option_restore): Likewise.
4949 (aarch64_option_print): Likewise.
4950 (aarch64_declare_function_name): Likewise.
4951 (aarch64_start_file): Delete.
4952 (TARGET_ASM_FILE_START): Do not define.
4953 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
4954 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
4955 Declare prototype.
4956
4957 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4958
4959 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
4960 flag_omit_leaf_frame_pointer to 2.
4961
4962 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4963
4964 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
4965 define to 0 or 1.
4966 (TARGET_FIX_ERR_A53_835769): New macro.
4967 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
4968 handling of opts->x_aarch64_fix_a53_err835769.
4969 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
4970 than aarch64_fix_a53_err835769.
4971 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
4972 * config/aarch64/aarch64-linux.h: Likewise.
4973
4974 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
4975
4976 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
4977 ix86_expand_int_movcc as boolean.
4978
4979 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4980
4981 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
4982 (aarch64_cpu_string): Likewise.
4983 (aarch64_tune_string): Likewise.
4984 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
4985 (aarch64_parse_extension): Return aarch64_parse_opt_result.
4986 Add extra argument to put result into.
4987 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
4988 (aarch64_parse_cpu): Add arguments to put results into. Return
4989 aarch64_parse_opt_result.
4990 (aarch64_parse_tune): Likewise.
4991 (aarch64_override_options_after_change_1): New function.
4992 (aarch64_override_options_internal): New function.
4993 (aarch64_validate_mcpu): Likewise.
4994 (aarch64_validate_march): Likewise.
4995 (aarch64_validate_mtune): Likewise.
4996 (aarch64_override_options): Update to reflect above changes.
4997 Move some logic into aarch64_override_options_internal.
4998 Initialize target_option_default_node and target_option_current_node.
4999 (aarch64_override_options_after_change): Move logic into
5000 aarch64_override_options_after_change_1 and call it with global_options.
5001 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
5002 flag values from that.
5003
5004 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5005
5006 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
5007 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
5008 * config/aarch64/aarch64.c (struct processor): Add arch field.
5009 (all_architectures): Handle above, move above all_cores.
5010 (all_cores): Handle above.
5011 (aarch64_parse_arch): Handle above changes.
5012 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
5013 above. Update comments.
5014 (armv8.1-a): Likewise.
5015 * config/aarch64/aarch64-cores.def: Update according to above.
5016 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
5017 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
5018 aarch64_arch_driver_info.
5019
5020 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5021
5022 * config/aarch64/aarch64.c (struct processor): Add ident field.
5023 Rename core sched_core.
5024 (all_cores): Handle above changes.
5025 (all_architectures): Likewise.
5026 (aarch64_parse_arch): Likewise.
5027 (aarch64_override_options): Likewise.
5028
5029 2015-08-04 Richard Biener <rguenther@suse.de>
5030
5031 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
5032 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
5033 comparisons embedded in [VEC_]COND_EXPRs.
5034
5035 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
5036
5037 * tree-if-conv.c: Fix various typos in comments.
5038 * tree-vect-stmts.c: Likewise.
5039
5040 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
5041
5042 PR tree-optimization/67043
5043 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
5044 preheader after hoisting invariant in it.
5045 (find_defs): Force recomputation of all luids.
5046
5047 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
5048
5049 * config/rs6000/htm.md (tabort.): Restrict the source operand to
5050 using a base register.
5051
5052 2015-08-03 David Malcolm <dmalcolm@redhat.com>
5053
5054 * main.c (main): Pass in NULL for toplev's external_timer.
5055 * timevar.c: Include coretypes.h.
5056 (class timer::named_items): New.
5057 (timer::named_items::named_items): New.
5058 (timer::named_items::~named_items): New.
5059 (timer::named_items::push): New.
5060 (timer::named_items::pop): New.
5061 (timer::named_items::print): New.
5062 (timer::timer): Initialize field "m_jit_client_items".
5063 (timer::~timer): New.
5064 (timer::push): Move bulk of implementation to...
5065 (timer::push_internal): ...here. New function.
5066 (timer::pop): Move bulk of implementation to...
5067 (timer::pop_internal): ...here. New function.
5068 (timer::push_client_item): New.
5069 (timer::pop_client_item): New.
5070 (timer::print_row): New function, taken from timer::print.
5071 (timer::print): Print "GCC items" header if we also have client
5072 items. Move row-printing to timer::print_row. Print any client
5073 items.
5074 (timer::get_topmost_item_name): New method.
5075 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
5076 (TV_JIT_CLIENT_CODE): New.
5077 * timevar.h (timer::push_client_item): New declaration.
5078 (timer::pop_client_item): New declaration.
5079 (timer::get_topmost_item_name): New method.
5080 (timer::push_internal): New declaration.
5081 (timer::pop_internal): New declaration.
5082 (timer::print_row): New declaration.
5083 (timer::named_items): New declaration.
5084 (timer::m_jit_client_items): New field.
5085 (timer): Add friend class named_items.
5086 (auto_timevar::auto_timevar): Add timer param.
5087 (auto_timevar::~auto_timevar): Use field "m_timer".
5088 (auto_timevar::m_timer): New field.
5089 * toplev.c (initialize_rtl): Add g_timer as param when
5090 constructing auto_timevar instance.
5091 (toplev::toplev): Add "external_timer" param, and use it to
5092 initialize the "g_timer" global if non-NULL.
5093 (toplev::~toplev): If this created "g_timer", delete it.
5094 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
5095 with "external_timer" timer *.
5096
5097 2015-08-03 Alexander Basov <coohpt@gmail.com>
5098
5099 PR middle-end/64744
5100 PR middle-end/48470
5101 PR middle-end/43404
5102 * cfgexpand.c (expand_one_var): Add check if stack is going to
5103 be used in naked function.
5104 * expr.c (expand_expr_addr_expr_1): Remove excess checking
5105 whether expression should not reside in MEM.
5106 * function.c (use_register_for_decl): Do not use registers for
5107 non-register things (volatile, float, BLKMode) in naked functions.
5108
5109 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
5110
5111 PR target/67060
5112 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
5113 Adjust splits to match new pattern.
5114
5115 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5116
5117 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
5118 (VEC_M): Likewise.
5119 (VEC_N): Likewise.
5120 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
5121 point in VSX registers.
5122
5123 * config/rs6000/constraints.md (wb constraint): Document unused
5124 w<x> constraint.
5125 (we constraint): Likewise.
5126 (wo constraint): Likewise.
5127 (wp constraint): New constraint for IEEE 128-bit floating point in
5128 VSX registers.
5129 (wq constraint): Likewise.
5130
5131 * config/rs6000/predicates.md (easy_fp_constant): Add support for
5132 IEEE 128-bit floating point in VSX registers.
5133 (easy_scalar_constant): Likewise.
5134
5135 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
5136 constraints (wp, wq) for IEEE 128-bit floating point in VSX
5137 registers.
5138 (rs6000_init_hard_regno_mode_ok): Likewise.
5139
5140 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
5141 floating point in VSX registers.
5142 (VSX_L): Likewise.
5143 (VSX_M): Likewise.
5144 (VSX_M2): Likewise.
5145 (VSm): Likewise.
5146 (VSs): Likewise.
5147 (VSr): Likewise.
5148 (VSa): Likewise.
5149 (VSv): Likewise.
5150 (vsx_le_permute_<mode>): Add support to properly swap bytes for
5151 IEEE 128-bit floating point in VSX registers on little endian.
5152 (vsx_le_undo_permute_<mode>): Likewise.
5153 (vsx_le_perm_load_<mode>): Likewise.
5154 (vsx_le_perm_store_<mode>): Likewise.
5155 (splitters for IEEE 128-bit fp moves): Likewise.
5156
5157 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
5158 wq constraints.
5159
5160 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
5161 floating point in VSX registers.
5162 (VM2): Likewise.
5163
5164 * doc/md.text (Machine Constraints): Document wp and wq
5165 constraints on PowerPC.
5166
5167 2015-08-03 Jeff Law <law@redhat.com>
5168
5169 PR middle-end/66314
5170 PR gcov-profile/66899
5171 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
5172 iterate over the jump threading paths when an element in the
5173 jump threading paths array is eliminated.
5174
5175 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
5176
5177 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
5178
5179 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
5180
5181 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
5182 is_use_properly_guarded the variable def_preds. Free its
5183 contents before returning.
5184 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
5185 (is_use_properly_guarded): Replace local variable def_preds with
5186 a parameter. Adjust accordingly. Only update *def_preds if it's
5187 the empty vector.
5188
5189 2015-08-03 Richard Biener <rguenther@suse.de>
5190
5191 * genmatch.c (simplify::for_subst_vec): New member.
5192 (binary_ok): New helper for for lowering.
5193 (lower_for): Delay substituting operators into result expressions
5194 if we can merge the results eventually again.
5195 (capture_info::walk_result): Adjust for user_id appearing as
5196 result expression operator.
5197 (expr::gen_transform): Likewise.
5198 (dt_simplify::gen_1): Likewise.
5199 (dt_simplify::gen): Pass not substituted operators to tail
5200 functions or initialize local variable with it.
5201 (decision_tree::gen): Adjust function signature.
5202 * match.pd: Fix tests against global code and add default
5203 cases to switch stmts.
5204
5205 2015-08-03 Richard Biener <rguenther@suse.de>
5206
5207 * genmatch.c (dt_simplify::gen): Create captures array
5208 with an initializer.
5209
5210 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5211
5212 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
5213 the host compiler is affected by placement new aliasing bug.
5214 * configure: Regenerate.
5215 * Makefile.in (ALIASING_FLAGS): New variable.
5216 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
5217
5218 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
5219
5220 PR target/66731
5221 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
5222 (negmulsf3_vfp): Likewise.
5223 (muldf3negdf_vfp): Disable for -frounding-math.
5224 (mulsf3negsf_vfp): Likewise.
5225 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
5226 fix MULT cost with -frounding-math.
5227
5228 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5229
5230 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
5231 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
5232 explicit. Prefer to add the flag whenever possible.
5233 (noce_process_if_block): Try noce_try_store_flag_constants before
5234 noce_try_cmove.
5235
5236 2015-08-03 Richard Biener <rguenther@suse.de>
5237
5238 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
5239 New hash-map to record equivalent transforms.
5240 (dt_node::analyze): Populate the equivalent transforms hash-map.
5241 (dt_simplify::info): Add reference to hash-map entry.
5242 (dt_simplify::gen): If we have split out a function for the
5243 transform, generate a call to it.
5244 (sinfo_hashmap_traits::hash): New function.
5245 (compare_op): New helper function for ...
5246 (sinfo_hashmap_traits::equal_keys): ... this new function.
5247 (decision_tree::gen): Split out common equivalent transforms
5248 into functions.
5249
5250 2015-08-03 Richard Biener <rguenther@suse.de>
5251
5252 * gimple-fold.c (fold_gimple_assign): Remove folding of
5253 the comparison in COND_EXPRs.
5254
5255 2015-08-03 Richard Biener <rguenther@suse.de>
5256
5257 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
5258 on the rhs of assignments first simplify the embedded
5259 GENERIC condition.
5260
5261 2015-08-03 Richard Biener <rguenther@suse.de>
5262
5263 PR tree-optimization/66917
5264 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
5265 field.
5266 (DR_VECT_AUX): New macro.
5267 (set_dr_misalignment): Adjust.
5268 (dr_misalignment): Likewise.
5269 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
5270 Compute whether the base is at least element aligned.
5271 * tree-vect-stmts.c (ensure_base_align): Adjust.
5272 (vectorizable_store): If the base is not element aligned
5273 preserve alignment of the original access if misalignment is unknown.
5274 (vectorizable_load): Likewise.
5275
5276 2015-08-02 Martin Sebor <msebor@redhat.com>
5277
5278 * c-family/c.opt (-Wframe-address): New warning option.
5279 * doc/invoke.texi (Wframe-address): Document it.
5280 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
5281 Clarify possible effects of calling the functions with non-zero
5282 arguments and mention -Wframe-address.
5283 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
5284
5285 2015-08-01 Michael Collison <michael.collison@linaro.org
5286 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5287
5288 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
5289 (*arm_umin_cmp): Likewise.
5290
5291 2015-08-01 Caroline Tice <cmtice@google.com>
5292
5293 PR 66521
5294 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
5295 global variables.
5296 (vtbl_find_mangled_name): New function.
5297 (vtbl_register_mangled_name): New function.
5298 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
5299 mangled name in mangled name vectors.
5300 (find_or_create_vtbl_map_node): Ditto.
5301 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
5302 update recursion_depth on function entry; pass it to every recursive
5303 call; automatically exit if depth > 25 (give up looking at that point).
5304 (verify_bb_vtables): Initialize recursion_depth and pass it to
5305 var_is_used_for_virtual_call_p.
5306 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
5307 global variable decls.
5308 (vtbl_register_mangled_name): New extern function decl.
5309
5310 2015-08-01 Tom de Vries <tom@codesourcery.com>
5311
5312 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
5313 function.
5314 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
5315 Declare.
5316 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
5317 operation_no_trapping_overflow. Allow non-overflow operations.
5318 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
5319 operations.
5320
5321 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
5322
5323 PR target/67049
5324 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
5325
5326 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5327
5328 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
5329 Enable for TARGET_32BIT.
5330 (*if_move_neg): Likewise.
5331
5332 2015-07-31 Nick Clifton <nickc@redhat.com>
5333
5334 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
5335 Returns true for __model__.
5336 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
5337
5338 2015-07-31 Alan Modra <amodra@gmail.com>
5339
5340 PR target/66870
5341 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
5342 (rs6000_emit_prologue): Set it.
5343 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
5344
5345 2015-07-31 Richard Biener <rguenther@suse.de>
5346
5347 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
5348 -> X == (C1 ^ C2) which is already implemented in match.pd.
5349 Remove redundant dispatching to fold_relational_const.
5350 Move unordered self and NaN compares ...
5351 * match.pd: ... as patterns here. Remove some stray captures
5352 and add a comment.
5353
5354 2015-07-31 Petr Murzin <petr.murzin@intel.com>
5355
5356 * config/i386/i386.c
5357 (bdesc_special_args): Convert mask type from signed to unsigned for
5358 masked builtins.
5359 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
5360 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
5361 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
5362 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
5363 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
5364 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
5365 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
5366 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
5367 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
5368 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
5369 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
5370 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
5371 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
5372 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
5373 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
5374 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
5375 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
5376 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
5377 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
5378 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
5379 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
5380 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
5381 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
5382 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
5383 * config/i386/i386-builtin-types.def
5384 (V16QI_FTYPE_V16SI): Remove.
5385 (V8DF_FTYPE_V8SI): Ditto.
5386 (V8HI_FTYPE_V8DI): Ditto.
5387 (V8SI_FTYPE_V8DI): Ditto.
5388 (V8SF_FTYPE_V8DF): Ditto.
5389 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
5390 (V16HI_FTYPE_V16SI): Ditto.
5391 (V16SF_FTYPE_V16HI): Ditto.
5392 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
5393 (V16SF_FTYPE_V16SI): Ditto.
5394 (V4DI_FTYPE_V4DI): Ditto.
5395 (V16SI_FTYPE_V16SF): Ditto.
5396 (V16SF_FTYPE_FLOAT): Ditto.
5397 (V8DF_FTYPE_DOUBLE): Ditto.
5398 (V8DI_FTYPE_INT64): Ditto.
5399 (V8DI_FTYPE_V4DI): Ditto.
5400 (V16QI_FTYPE_V8DI): Ditto.
5401 (UINT_FTYPE_V4SF): Ditto.
5402 (UINT64_FTYPE_V4SF): Ditto.
5403 (UINT_FTYPE_V2DF): Ditto.
5404 (UINT64_FTYPE_V2DF): Ditto.
5405 (V16SI_FTYPE_V16SI): Ditto.
5406 (V8DI_FTYPE_V8DI): Ditto.
5407 (V16SI_FTYPE_PV4SI): Ditto.
5408 (V16SF_FTYPE_PV4SF): Ditto.
5409 (V8DI_FTYPE_PV2DI): Ditto.
5410 (V8DF_FTYPE_PV2DF): Ditto.
5411 (V4DI_FTYPE_PV2DI): Ditto.
5412 (V4DF_FTYPE_PV2DF): Ditto.
5413 (V16SI_FTYPE_PV2SI): Ditto.
5414 (V16SF_FTYPE_PV2SF): Ditto.
5415 (V8DI_FTYPE_PV4DI): Ditto.
5416 (V8DF_FTYPE_PV4DF): Ditto.
5417 (V8SF_FTYPE_FLOAT): Ditto.
5418 (V4SF_FTYPE_FLOAT): Ditto.
5419 (V4DF_FTYPE_DOUBLE): Ditto.
5420 (V8SF_FTYPE_PV4SF): Ditto.
5421 (V8SI_FTYPE_PV4SI): Ditto.
5422 (V4SI_FTYPE_PV2SI): Ditto.
5423 (V8SF_FTYPE_PV2SF): Ditto.
5424 (V8SI_FTYPE_PV2SI): Ditto.
5425 (V16SF_FTYPE_PV8SF): Ditto.
5426 (V16SI_FTYPE_PV8SI): Ditto.
5427 (V8DI_FTYPE_V8SF): Ditto.
5428 (V4DI_FTYPE_V4SF): Ditto.
5429 (V2DI_FTYPE_V4SF): Ditto.
5430 (V64QI_FTYPE_QI): Ditto.
5431 (V32HI_FTYPE_HI): Ditto.
5432 (V8UHI_FTYPE_V8UHI): Ditto.
5433 (V16UHI_FTYPE_V16UHI): Ditto.
5434 (V32UHI_FTYPE_V32UHI): Ditto.
5435 (V2UDI_FTYPE_V2UDI): Ditto.
5436 (V4UDI_FTYPE_V4UDI): Ditto.
5437 (V8UDI_FTYPE_V8UDI): Ditto.
5438 (V4USI_FTYPE_V4USI): Ditto.
5439 (V8USI_FTYPE_V8USI): Ditto.
5440 (V16USI_FTYPE_V16USI): Ditto.
5441 (V2DF_FTYPE_V2DF_UINT64): Ditto.
5442 (V2DI_FTYPE_V2DF_V2DF): Ditto.
5443 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
5444 (V8DF_FTYPE_V8DF_V8DI): Ditto.
5445 (V4SF_FTYPE_V4SF_UINT64): Ditto.
5446 (V4SI_FTYPE_V4SF_V4SF): Ditto.
5447 (V16SF_FTYPE_V16SF_V16SI): Ditto.
5448 (V64QI_FTYPE_V32HI_V32HI): Ditto.
5449 (V32HI_FTYPE_V16SI_V16SI): Ditto.
5450 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
5451 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
5452 (V32HI_FTYPE_V64QI_V64QI): Ditto.
5453 (V32HI_FTYPE_V32HI_V32HI): Ditto.
5454 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
5455 (V16SI_FTYPE_V16SI_V4SI): Ditto.
5456 (V16SI_FTYPE_V16SI_V16SI): Ditto.
5457 (V16SI_FTYPE_V32HI_V32HI): Ditto.
5458 (V16SI_FTYPE_V16SI_SI): Ditto.
5459 (V8DI_FTYPE_V8DI_V8DI): Ditto.
5460 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
5461 (V8DI_FTYPE_V16SI_V16SI): Ditto.
5462 (V8DI_FTYPE_V8DI_V2DI): Ditto.
5463 (QI_FTYPE_QI): Ditto.
5464 (SI_FTYPE_SI): Ditto.
5465 (DI_FTYPE_DI): Ditto.
5466 (QI_FTYPE_QI_QI): Ditto.
5467 (QI_FTYPE_QI_INT): Ditto.
5468 (HI_FTYPE_HI_INT): Ditto.
5469 (SI_FTYPE_SI_INT): Ditto.
5470 (DI_FTYPE_DI_INT): Ditto.
5471 (HI_FTYPE_V16QI_V16QI): Ditto.
5472 (SI_FTYPE_V32QI_V32QI): Ditto.
5473 (DI_FTYPE_V64QI_V64QI): Ditto.
5474 (QI_FTYPE_V8HI_V8HI): Ditto.
5475 (HI_FTYPE_V16HI_V16HI): Ditto.
5476 (SI_FTYPE_V32HI_V32HI): Ditto.
5477 (QI_FTYPE_V4SI_V4SI): Ditto.
5478 (QI_FTYPE_V8SI_V8SI): Ditto.
5479 (QI_FTYPE_V2DI_V2DI): Ditto.
5480 (QI_FTYPE_V4DI_V4DI): Ditto.
5481 (QI_FTYPE_V8DI_V8DI): Ditto.
5482 (HI_FTYPE_V16SI_V16SI): Ditto.
5483 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
5484 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
5485 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
5486 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
5487 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
5488 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
5489 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
5490 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
5491 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
5492 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
5493 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
5494 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
5495 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
5496 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
5497 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
5498 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
5499 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
5500 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
5501 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
5502 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
5503 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
5504 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
5505 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
5506 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
5507 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
5508 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
5509 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
5510 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
5511 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
5512 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
5513 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
5514 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
5515 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
5516 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
5517 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
5518 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
5519 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
5520 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
5521 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
5522 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
5523 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
5524 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
5525 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
5526 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
5527 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
5528 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
5529 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
5530 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
5531 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
5532 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
5533 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
5534 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
5535 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
5536 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
5537 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
5538 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
5539 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
5540 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
5541 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
5542 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
5543 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
5544 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
5545 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
5546 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
5547 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
5548 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
5549 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
5550 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
5551 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
5552 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
5553 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
5554 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
5555 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
5556 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
5557 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
5558 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
5559 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
5560 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
5561 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
5562 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
5563 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
5564 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
5565 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
5566 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
5567 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
5568 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
5569 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
5570 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
5571 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
5572 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
5573 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
5574 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
5575 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
5576 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
5577 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
5578 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
5579 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
5580 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
5581 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
5582 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
5583 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
5584 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
5585 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
5586 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
5587 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
5588 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
5589 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
5590 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
5591 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
5592 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
5593 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
5594 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
5595 (HI_FTYPE_HI): Ditto.
5596 (HI_FTYPE_V16QI): Ditto.
5597 (SI_FTYPE_V32QI): Ditto.
5598 (DI_FTYPE_V64QI): Ditto.
5599 (QI_FTYPE_V8HI): Ditto.
5600 (HI_FTYPE_V16HI): Ditto.
5601 (SI_FTYPE_V32HI): Ditto.
5602 (QI_FTYPE_V4SI): Ditto.
5603 (QI_FTYPE_V8SI): Ditto.
5604 (HI_FTYPE_V16SI): Ditto.
5605 (QI_FTYPE_V2DI): Ditto.
5606 (QI_FTYPE_V4DI): Ditto.
5607 (QI_FTYPE_V8DI): Ditto.
5608 (V16QI_FTYPE_HI): Ditto.
5609 (V32QI_FTYPE_SI): Ditto.
5610 (V64QI_FTYPE_DI): Ditto.
5611 (V8HI_FTYPE_QI): Ditto.
5612 (V16HI_FTYPE_HI): Ditto.
5613 (V32HI_FTYPE_SI): Ditto.
5614 (V4SI_FTYPE_QI): Ditto.
5615 (V4SI_FTYPE_HI): Ditto.
5616 (V8SI_FTYPE_QI): Ditto.
5617 (V8SI_FTYPE_HI): Ditto.
5618 (V2DI_FTYPE_QI): Ditto.
5619 (V4DI_FTYPE_QI): Ditto.
5620 (HI_FTYPE_HI_HI): Ditto.
5621 (SI_FTYPE_SI_SI): Ditto.
5622 (DI_FTYPE_DI_DI): Ditto.
5623 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
5624 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
5625 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
5626 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
5627 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
5628 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
5629 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
5630 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
5631 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
5632 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
5633 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
5634 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
5635 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
5636 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
5637 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
5638 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
5639 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
5640 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
5641 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
5642 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
5643 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
5644 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
5645 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
5646 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
5647 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
5648 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
5649 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
5650 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
5651 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
5652 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
5653 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
5654 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
5655 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
5656 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
5657 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
5658 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
5659 (V16SI_FTYPE_HI): Ditto.
5660 (V8DI_FTYPE_QI): Ditto.
5661 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
5662 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
5663 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
5664 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
5665 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
5666 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
5667 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
5668 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
5669 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
5670 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
5671 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
5672 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
5673 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
5674 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
5675 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
5676 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
5677 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
5678 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
5679 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
5680 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
5681 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
5682 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
5683 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
5684 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
5685 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
5686 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
5687 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
5688 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
5689 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
5690 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
5691 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
5692 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
5693 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
5694 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
5695 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
5696 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
5697 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
5698 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
5699 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
5700 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
5701 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
5702 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
5703 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
5704 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
5705 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
5706 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
5707 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
5708 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
5709 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
5710 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
5711 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
5712 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
5713 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
5714 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
5715 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
5716 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
5717 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
5718 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
5719 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
5720 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
5721 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
5722 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
5723 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
5724 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
5725 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
5726 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
5727 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
5728 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
5729 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
5730 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
5731 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
5732 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
5733 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
5734 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
5735 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
5736 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
5737 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
5738 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
5739 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
5740 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
5741 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
5742 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
5743 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
5744 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
5745 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
5746 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
5747 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
5748 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
5749 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
5750 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
5751 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
5752 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
5753 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
5754 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
5755 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
5756 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
5757 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
5758 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
5759 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
5760 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
5761 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
5762 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
5763 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
5764 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
5765 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
5766 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
5767 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
5768 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
5769 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
5770 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
5771 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
5772 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
5773 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
5774 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
5775 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
5776 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
5777 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
5778 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
5779 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
5780 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
5781 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
5782 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
5783 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
5784 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
5785 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
5786 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
5787 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
5788 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
5789 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
5790 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
5791 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
5792 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
5793 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
5794 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
5795 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
5796 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
5797 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
5798 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
5799 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
5800 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
5801 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
5802 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
5803 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
5804 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
5805 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
5806 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
5807 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
5808 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
5809 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
5810 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
5811 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
5812 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
5813 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
5814 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
5815 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
5816 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
5817 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
5818 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
5819 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
5820 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
5821 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
5822 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
5823 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
5824 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
5825 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
5826 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
5827 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
5828 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
5829 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
5830 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
5831 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
5832 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
5833 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
5834 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
5835 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
5836 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
5837 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
5838 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
5839 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
5840 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
5841 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
5842 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
5843 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
5844 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
5845 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
5846 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
5847 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
5848 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
5849 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
5850 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
5851 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
5852 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
5853 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
5854 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
5855 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
5856 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
5857 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
5858 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
5859 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
5860 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
5861 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
5862 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
5863 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
5864 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
5865 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
5866 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
5867 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
5868 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
5869 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
5870 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
5871 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
5872 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
5873 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
5874 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
5875 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
5876 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
5877 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
5878 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
5879 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
5880 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
5881 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
5882 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
5883 (QI_FTYPE_V8DF_INT_QI): Ditto.
5884 (QI_FTYPE_V4DF_INT_QI): Ditto.
5885 (QI_FTYPE_V2DF_INT_QI): Ditto.
5886 (HI_FTYPE_V16SF_INT_HI): Ditto.
5887 (QI_FTYPE_V8SF_INT_QI): Ditto.
5888 (QI_FTYPE_V4SF_INT_QI): Ditto.
5889 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
5890
5891 2015-07-31 Richard Biener <rguenther@suse.de>
5892
5893 * gimple-fold.c (fold_gimple_assign): Remove folding of
5894 GIMPLE_BINARY_RHS.
5895
5896 2015-07-31 Tom de Vries <tom@codesourcery.com>
5897
5898 PR tree-optimization/66846
5899 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
5900 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
5901 (expand_omp_target) [ENABLE_CHECKING]: Same.
5902 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
5903 cfun if !LOOPS_NEED_FIXUP.
5904 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
5905 that omp_for already has its own loop struct.
5906 * tree-parloops.c (create_phi_for_local_result)
5907 (create_call_for_reduction): Handle simple latch bb.
5908 (create_parallel_loop): Add simple latch bb to preserve
5909 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
5910 (gen_parallel_loop): Remove call to cancel_loop_tree.
5911 (parallelize_loops): Skip loops that are inner loops of parallelized
5912 loops.
5913 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
5914 verify_loop_structure.
5915
5916 2015-07-30 Anatoly Sokolov <aesok@post.ru>
5917
5918 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
5919 * config/v850/v850.md (RV_REGNUM): New constants.
5920 * config/v850/v850.c (v850_libcall_value): New functions.
5921 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
5922 (TARGET_LIBCALL_VALUE): Define.
5923
5924 2015-07-30 Anatoly Sokolov <aesok@post.ru>
5925
5926 * rtl.h (lowpart_subreg): Move in file.
5927 * loop-iv.c (lowpart_subreg): Move to...
5928 * simplify-rtx.c (lowpart_subreg): ...here.
5929 (simplify_binary_operation_1): Use lowpart_subreg instead of
5930 simplify_gen_subreg.
5931 * expr.c (expand_expr_real_2): Ditto.
5932 * emit-rtl.c (gen_lowpart_common): Ditto.
5933 * combine.c (gen_lowpart_for_combine): Ditto.
5934 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
5935 expand_debug_source_expr): Ditto.
5936
5937 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
5938
5939 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
5940 (expand_builtin_atomic_clear): Remove support for atomic_clear
5941 pattern.
5942
5943 2015-07-30 Richard Biener <rguenther@suse.de>
5944
5945 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
5946 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
5947 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
5948 redundant operand canonicalization.
5949
5950 2015-07-30 David Sherwood <david.sherwood@arm.com>
5951
5952 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
5953 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
5954 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
5955 * config/arm/arm.c (neon_valid_immediate): Likewise.
5956 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
5957 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
5958 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
5959 (expand_vec_perm_vpshufb2_vpermq): Likewise.
5960 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
5961 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
5962 * config/i386/sse.md
5963 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
5964 (*ssse3_palignr<mode>_perm): Likewise.
5965 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
5966 * config/spu/spu.c (arith_immediate_p): Likewise.
5967 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
5968 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
5969
5970 2015-07-30 Richard Biener <rguenther@suse.de>
5971
5972 * genmatch.c (decision_tree::gen_gimple): Merge with ...
5973 (decision_tree::gen_generic): ... this into ...
5974 (decision_tree::gen): ... this.
5975 (main): Adjust callers.
5976
5977 2015-07-30 Richard Biener <rguenther@suse.de>
5978
5979 * genmatch.c (verbose): New global.
5980 (warning_at): Add overload with source_location.
5981 (capture_info::capture_info): Add bool whether generating gimple
5982 or generic. Add gimple member.
5983 (capture_info::cinfo): Add capture member.
5984 (capture_info::walk_match): Record capture. Warn on
5985 non-captured leafs.
5986 (capture_info::walk_c_expr): Add more fragments captures cannot
5987 escape through. Warn on escaped captures.
5988 (dt_simplify::gen_1): Warn on operands we force to have no
5989 side-effects.
5990 (main): Initialize verbose.
5991 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
5992
5993 2015-07-30 Richard Biener <rguenther@suse.de>
5994
5995 PR middle-end/67053
5996 * match.pd: Allow both operands to independently have conversion
5997 when simplifying compares of addresses.
5998
5999 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
6000
6001 PR target/66217
6002 PR target/67045
6003 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
6004 around those cases that need one.
6005
6006 2015-07-29 Aditya Kumar <hiraditya@msn.com>
6007
6008 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
6009
6010 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
6011
6012 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
6013 New. Copied from config/i386/gnu-user.h.
6014 (ASM_COMMENT_START): Likewise.
6015 (DBX_REGISTER_NUMBER): Likewise.
6016
6017 2015-07-29 Richard Biener <rguenther@suse.de>
6018
6019 * gimple-fold.c (fold_gimple_cond): Remove.
6020 (fold_stmt_1): Do not call it.
6021
6022 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
6023
6024 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
6025 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
6026
6027 * config/aarch64/aarch64-modes.def: Add HFmode.
6028
6029 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
6030 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
6031
6032 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
6033 aarch64_promoted_type): New.
6034
6035 (aarch64_float_const_representable_p): Disable HFmode.
6036 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
6037 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
6038 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
6039
6040 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
6041 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
6042
6043 * config/aarch64/iterators.md (GPF_F16): New.
6044
6045 2015-07-29 Richard Biener <rguenther@suse.de>
6046
6047 * match.pd: Merge address comparison patterns and make them
6048 handle some more cases.
6049
6050 2015-07-29 Richard Biener <rguenther@suse.de>
6051
6052 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
6053 (parser::parse_capture): Add bool argument on whether to reject
6054 unknown captures.
6055 (parser::parse_expr): Adjust.
6056 (parser::parse_op): Likewise.
6057 (parser::parse_pattern): Likewise.
6058
6059 2015-07-29 Richard Biener <rguenther@suse.de>
6060
6061 * gimple-fold.c (has_use_on_stmt): New function.
6062 (replace_stmt_with_simplification): Use it to allow
6063 abnormals originally referenced in the stmt.
6064 (fold_stmt_1): Canonicalize operand order.
6065
6066 2015-07-28 David Sherwood <david.sherwood@arm.com>
6067
6068 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
6069 GET_MODE_INNER unconditionally.
6070 * config/spu/spu.c (arith_immediate_p): Likewise.
6071 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
6072 * expmed.c (synth_mult): Remove check for VOIDmode result from
6073 GET_MODE_INNER.
6074 (expand_mult_const): Likewise.
6075 * fold-const.c (fold_binary_loc): Replace call to element_precision
6076 with call to GET_MODE_PRECISION.
6077 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
6078 m->name.
6079 (emit_mode_inner): Likewise.
6080 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
6081 result check.
6082 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
6083 (GET_MODE_UNIT_PRECISION): Likewise.
6084 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
6085 * simplify-rtx.c (simplify_immed_subreg): Likewise.
6086 * stor-layout.c (bitwise_type_for_mode): Update assert.
6087 (element_precision): Remove.
6088
6089 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6090
6091 * target-insns.def (reload_load_address): New targetm instruction
6092 pattern.
6093 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
6094
6095 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6096
6097 * target-insns.def (atomic_test_and_set): New targetm instruction
6098 pattern.
6099 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
6100 HAVE_*/gen_* interface.
6101
6102 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6103
6104 * target-insns.def (can_extend, ptr_extend): New targetm instruction
6105 patterns.
6106 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
6107 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
6108 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
6109 * rtlanal.c (nonzero_bits1): Likewise.
6110 (num_sign_bit_copies1): Likewise.
6111
6112 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6113
6114 * target-insns.def (eh_return): New targetm instruction pattern.
6115 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
6116 interface.
6117 * function.c (thread_prologue_and_epilogue_insns): Remove
6118 preprocessor condition.
6119
6120 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6121
6122 * target-insns.def (indirect_jump): New targetm instruction pattern.
6123 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
6124 interface.
6125
6126 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
6127
6128 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
6129 instead of nonimmediate_operand. Remove C condiition.
6130
6131 2015-07-28 Richard Biener <rguenther@suse.de>
6132
6133 * match.pd: Add more simplification of address comparisons.
6134
6135 2015-07-28 Richard Biener <rguenther@suse.de>
6136
6137 * match.pd: Re-order two cases in comparison with max/min
6138 value simplification to make it apply for bools.
6139
6140 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6141
6142 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
6143 Handle simple SIGN_EXTEND or ZERO_EXTEND.
6144 (aarch64_rtx_costs): Properly strip extend or extract before
6145 passing down to rtx costs again.
6146
6147 2015-07-28 Nick Clifton <nickc@redhat.com>
6148
6149 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
6150 Optimizes the case where -mes0 is active and a constant symbolic
6151 address is used.
6152 * config/rl78/rl78-protos.h: Prototype the new function.
6153 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
6154
6155 2015-07-28 Tom de Vries <tom@codesourcery.com>
6156
6157 * tree-parloops.c (reduc_stmt_res): New function.
6158 (initialize_reductions, add_field_for_reduction)
6159 (create_phi_for_local_result, create_loads_for_reductions)
6160 (create_stores_for_reduction, build_new_reduction): Handle case that
6161 reduc_stmt is a phi.
6162 (gather_scalar_reductions): Allow double_reduc reductions.
6163
6164 2015-07-28 Richard Biener <rguenther@suse.de>
6165
6166 * fold-const.c (fold_comparison): Remove equality folding
6167 of decl addresses ...
6168 * match.pd: ... here and merge with existing pattern.
6169
6170 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
6171
6172 PR tree-optimization/66828
6173 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
6174 from int64_t to uint64_t.
6175
6176 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
6177
6178 * opts-common.c (read_cmdline_option): List DriverOnly enum values
6179 as valid only in the error message of the driver, not in the
6180 messages of the language compilers.
6181
6182 2015-07-27 Tom de Vries <tom@codesourcery.com>
6183
6184 * tree-parloops.c (gather_scalar_reductions): Simplify function
6185 structure.
6186
6187 2015-07-27 Marek Polacek <polacek@redhat.com>
6188
6189 * ipa-devirt.c (types_same_for_odr): Fix typo.
6190
6191 2015-07-27 Jason Merrill <jason@redhat.com>
6192
6193 PR debug/66468
6194 * dwarf2out.c (gen_inlined_subroutine_die): Check
6195 cgraph_function_possibly_inlined_p.
6196
6197 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
6198
6199 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
6200 Place integer variant first.
6201 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
6202
6203 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
6204
6205 PR/63870
6206 * config/arm/arm-builtins.c (enum arm_builtins):
6207 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
6208 (ARM_BUILTIN_NEON_BASE): Rename macro to....
6209 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
6210 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
6211 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
6212
6213 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
6214
6215 PR/63870
6216 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
6217 Add qualifier_lane_index.
6218 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
6219 (arm_getlane_qualifiers): Use qualifier_lane_index.
6220 (arm_lanemac_qualifiers): Rename to...
6221 (arm_mac_n_qualifiers): ...this.
6222 (LANEMAC_QUALIFIERS): Rename to...
6223 (MAC_N_QUALIFIERS): ...this.
6224 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
6225 (arm_setlane_qualifiers): Use qualifier_lane_index.
6226 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
6227 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
6228 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
6229 (arm_expand_neon_builtin): Handle qualifier_lane_index.
6230
6231 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
6232 * config/arm/arm.c (bounds_check): Likewise, improve error message.
6233 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
6234 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
6235 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
6236 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
6237 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
6238 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
6239 qualifiers to TERNOP_IMM.
6240 (vdup_lane): Change qualifiers to GETLANE.
6241 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
6242 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
6243 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
6244 vqdmlsl_n): Change qualifiers to MAC_N.
6245
6246 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
6247 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
6248 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
6249 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
6250 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
6251 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
6252 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
6253 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
6254 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
6255 Remove call to neon_lane_bounds.
6256
6257 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
6258
6259 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
6260 Place integer variant first.
6261
6262 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
6263
6264 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
6265 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
6266 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
6267 for armv6kz targets.
6268 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
6269 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
6270 (FL_FOR_ARCH6ZK): Remove.
6271 (FL_FOR_ARCH6KZ): New.
6272 (arm_arch6zk): New declaration.
6273 * config/arm/arm-tables.opt: Regenerate.
6274 * config/arm/arm.c (arm_arch6kz): New.
6275 (arm_option_override): Set arm_arch6kz.
6276 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
6277 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
6278 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
6279
6280 2015-07-27 Marek Polacek <polacek@redhat.com>
6281
6282 PR c++/66555
6283 PR c/54979
6284 * doc/invoke.texi: Document -Wtautological-compare.
6285
6286 2015-07-27 Richard Biener <rguenther@suse.de>
6287
6288 * genmatch.c (decision_tree::gen_gimple): Split out large
6289 subtrees into separate functions.
6290 (decision_tree::gen_generic): Likewise.
6291
6292 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
6293
6294 * config/alpha/alpha.c: Use SUBREG_P predicate.
6295 * config/alpha/predicates.md: Ditto.
6296
6297 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
6298
6299 * config.host (s390*-*-*): Include driver-native.c only when
6300 building with s390* as host *and* target.
6301
6302 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
6303
6304 PR target/66930
6305 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
6306 T bit register modified_between_p check.
6307
6308 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
6309
6310 * config/i386/i386.c: Use SUBREG_P predicate.
6311 * config/i386/i386.md: Ditto.
6312 * config/i386/sse.md: Ditto.
6313 * config/i386/predicates.md: Ditto.
6314
6315 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
6316
6317 PR target/67004
6318 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
6319 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
6320
6321 2015-07-25 Sebastian Pop <s.pop@samsung.com>
6322
6323 * Makefile.in: Remove use of TREEBROWSER.
6324 * config.in: Regenerated.
6325 * configure: Regenerated.
6326 * configure.ac: Remove definition of TREEBROWSER.
6327 * tree-browser.c: Removed.
6328 * tree-browser.def: Removed.
6329
6330 2015-07-25 Sebastian Pop <s.pop@samsung.com>
6331
6332 * graphite-scop-detection.c: Include gimple-pretty-print.h.
6333 (stmt_simple_for_scop_p): Print when a stmt is not handled in
6334 Graphite.
6335 (scopdet_basic_block_info): Print when a loop or bb cannot be
6336 represented in Graphite.
6337
6338 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
6339
6340 PR target/66648
6341 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
6342 execution guard when min_size is less than size_needed.
6343
6344 2015-07-25 Sebastian Pop <s.pop@samsung.com>
6345
6346 * doc/install.texi: Document supported versions of ISL.
6347
6348 2015-07-25 Jeff Law <law@redhat.com>
6349
6350 Revert:
6351 PR lto/66752
6352 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
6353 unable to find X NE 0 in the tables, return X as the simplified
6354 condition.
6355 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
6356 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
6357 to VISISTED_BBS. */
6358 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
6359 after removing the control flow statement and unnecessary edges.
6360
6361 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
6362
6363 Revert:
6364 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
6365
6366 PR rtl-optimization/64164
6367 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6368 * tree-ssa-copyrename.c: Removed.
6369 * opts.c (default_options_table): Drop -ftree-copyrename. Add
6370 -ftree-coalesce-vars.
6371 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6372 * common.opt (ftree-copyrename): Ignore.
6373 (ftree-coalesce-inlined-vars): Likewise.
6374 * doc/invoke.texi: Remove the ignored options above.
6375 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6376 * tree-ssa-coalesce.h: ... here.
6377 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6378 headers required by it.
6379 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6380 across variables when flag_tree_coalesce_vars. Check register
6381 use and promoted modes to allow coalescing. Moved to
6382 tree-ssa-coalesce.c.
6383 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6384 with its member functions to tree-ssa-coalesce.c.
6385 (var_map_base_init): Likewise. Renamed to
6386 compute_samebase_partition_bases.
6387 (partition_view_normal): Drop want_bases parameter.
6388 (partition_view_bitmap): Likewise.
6389 * tree-ssa-live.h: Adjust declarations.
6390 * tree-ssa-coalesce.c: Include explow.h.
6391 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6392 default defs at the entry point.
6393 (dump_part_var_map): New.
6394 (compute_optimized_partition_bases): New, called by...
6395 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6396 of compute_samebase_partition_bases. Adjust.
6397 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6398 * cfgexpand.c (leader_merge): New.
6399 (get_rtl_for_parm_ssa_default_def): New.
6400 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6401 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6402 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
6403 redundant MEM attr setting.
6404 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
6405 from...
6406 (expand_one_stack_var): ... this. New wrapper to check and
6407 skip already expanded SSA partitions.
6408 (record_alignment_for_reg_var): New, factored out of...
6409 (expand_one_var): ... this.
6410 (expand_one_ssa_partition): New.
6411 (adjust_one_expanded_partition_var): New.
6412 (expand_one_register_var): Check and skip already expanded SSA
6413 partitions.
6414 (expand_used_vars): Don't create DECLs for anonymous SSA
6415 names. Expand all SSA partitions, then adjust all SSA names.
6416 (pass::execute): Replace the loops that set
6417 SA.partition_to_pseudo from partition leaders and cleared
6418 DECL_RTL for multi-location variables, and that which used to
6419 rename vars and set attrs, with one that clears DECL_RTL and
6420 checks that PARMs and RESULTs default_defs match DECL_RTL.
6421 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6422 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6423 * explow.c (promote_ssa_mode): New.
6424 * explow.h (promote_ssa_mode): Declare.
6425 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6426 * function.c: Include cfgexpand.h.
6427 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6428 (use_register_for_parm_decl): Wrapper for the above to
6429 special-case the result_ptr.
6430 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6431 (split_complex_args): Take assign_parm_data_all argument.
6432 Pass it to rtl_for_parm. Set up rtl and context for split
6433 args.
6434 (assign_parms_augmented_arg_list): Adjust.
6435 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6436 multiple locations. Recognize split complex args.
6437 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6438 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
6439 (assign_parm_setup_block): Prefer SSA-assigned location.
6440 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
6441 if stack_parm is NULL.
6442 (assign_parm_setup_stack): Prefer SSA-assigned location.
6443 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
6444 rtl before testing for pointer bounds. Special-case result_ptr.
6445 (expand_function_start): Maybe reset DECL_RTL of result.
6446 Prefer SSA-assigned location for result and static chain.
6447 Factor out DECL_RESULT and SET_DECL_RTL.
6448 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6449 anonymous SSA names. Use promote_ssa_mode.
6450 (get_temp_reg): Likewise.
6451 (remove_ssa_form): Adjust.
6452 * stor-layout.c (layout_decl): Don't set mem attributes of
6453 non-MEMs.
6454 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6455 and get its reg_usage for reg invalidation.
6456 (compute_bb_dataflow): Pass it insn.
6457 (emit_notes_in_bb): Likewise.
6458
6459 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
6460
6461 * config/i386/i386.c (ix86_va_start): Remove
6462 unneeded !TARGET_64BIT check.
6463 (ix86_gimplify_va_arg): Ditto.
6464
6465 2015-07-24 Tom de Vries <tom@codesourcery.com>
6466
6467 * graphite-sese-to-poly.c (build_poly_scop): Always call
6468 rewrite_commutative_reductions_out_of_ssa.
6469
6470 2015-07-24 Tom de Vries <tom@codesourcery.com>
6471
6472 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
6473 flag_associative_math to FLOAT_TYPE_P. Honour
6474 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
6475
6476 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
6477
6478 PR c++/64079
6479 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
6480 and "%qD" in warning_at instead of "%q+D" in warning.
6481
6482 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
6483
6484 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
6485 (ix86_function_abi): Cleanup.
6486
6487 2015-07-24 Michael Darling <darlingm@gmail.com>
6488
6489 PR other/66259
6490 * acinclude.m4: Reflects renaming of configure.in to configure.ac
6491 * configure: Likewise
6492 * configure.ac: Likewise
6493 * doc/install.texi: Likewise
6494 * doc/tm.texi: Likewise
6495 * doc/tm.texi.in: Likewise
6496
6497 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6498
6499 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
6500 manually swapping values.
6501 * cse.c (fold_rtx): Likewise.
6502 * lra-eliminations.c (form_sum): Likewise.
6503
6504 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
6505
6506 PR target/64003
6507 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
6508 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
6509 (*jcc_1, *jcc_2, jump, simple_return_internal)
6510 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
6511 Set length_nobnd attribute instead of length attribute.
6512 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
6513 (length_nobnd): Remove attribute.
6514 (length): Remove length_nobnd processing.
6515
6516 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
6517
6518 * gimplify.c (omp_default_clause): New function. Reorganize flow
6519 for clarity. Broken out of ...
6520 (omp_notice_variable): ... here.
6521
6522 2015-07-24 Gary Funck <gary@intrepid.com>
6523
6524 PR middle-end/66984
6525 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
6526 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
6527
6528 2015-07-24 Tom de Vries <tom@codesourcery.com>
6529
6530 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
6531 exit-first loop transform.
6532
6533 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
6534
6535 PR 66714
6536 * tree-cfg.c (struct replace_decls_d): New struct.
6537 (replace_block_vars_by_duplicates_1): New function.
6538 (replace_block_vars_by_duplicates): Use it to replace the decls
6539 in the value exprs by duplicates.
6540
6541 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
6542
6543 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
6544 -shared, -symbolic, -rdynamic.
6545
6546 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
6547
6548 PR target/65711
6549 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
6550 -dynamic-linker within %{!static %{!shared, and -rdynamic within
6551 %{!static.
6552
6553 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
6554
6555 PR ipa/66566
6556 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
6557 edge summary is available.
6558
6559 2015-07-24 Richard Biener <rguenther@suse.de>
6560
6561 * genmatch.c (struct dt_node): Add statistic fields.
6562 (dt_node::analyze): New method.
6563 (decision_tree::gen_gimple): Call analyze on the root node
6564 and print statistics to stderr.
6565 (decision_tree::gen_generic): Likewise.
6566
6567 2015-07-24 Richard Biener <rguenther@suse.de>
6568
6569 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
6570 against the highest or lowest possible integer ...
6571 * match.pd: ... as patterns here.
6572
6573 2015-07-24 Richard Biener <rguenther@suse.de>
6574
6575 * genmatch.c (struct capture_info): Add same_as field.
6576 (capture_info::capture_info): Initialize same_as.
6577 (capture_info::walk_match): Compute same_as.
6578 (capture_info::walk_result): Compute stuff for the leader.
6579 (capture_info::walk_c_expr): Likewise.
6580 (dt_simplify::gen_1): Only look at leaders when deciding
6581 to force no side-effects or emit side-effects of omitted operands.
6582
6583 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6584
6585 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
6586 reg note to the GPR -> FPR save instructions.
6587
6588 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6589
6590 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
6591 cheaper.
6592 (s390_expand_insv): Don't generate risbg pattern for constant zero
6593 sources.
6594 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
6595 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
6596 splitters.
6597
6598 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
6599
6600 * config/s390/s390.c (s390_reorg): Clean up handling of processors
6601 with
6602 -mtune=
6603 (s390_issue_rate): Likewise.
6604 (s390_sched_reorder): Likewise.
6605 (s390_sched_variable_issue): Likewise.
6606 (s390_loop_unroll_adjust): Likewise.
6607 (s390_option_override): Likewise.
6608
6609 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
6610
6611 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
6612 processor capabilities with -march=native.
6613 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
6614 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
6615 (S390_TARGET_BITS_STRING): Macro to simplify specs.
6616
6617 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
6618
6619 * config/s390/s390.c (s390_issue_rate): Handle
6620 PROCESSOR_2094_Z9_EC.
6621 (s390_option_override): Likewise.
6622 (s390_adjust_priority): Likewise.
6623
6624 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
6625
6626 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
6627 when cross compiling.
6628
6629 2015-07-24 Richard Biener <rguenther@suse.de>
6630
6631 * fold-const.c (maybe_canonicalize_comparison_1): Move
6632 A code CST canonicalization ...
6633 * match.pd: ... to a pattern here.
6634
6635 2015-07-24 Jiong Wang <jiong.wang@arm.com>
6636
6637 Revert:
6638 2015-07-22 Jiong Wang <jiong.wang@arm.com>
6639 PR target/63521
6640 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
6641 (HONOR_REG_ALLOC_ORDER): Define.
6642
6643 2015-07-24 Richard Biener <rguenther@suse.de>
6644
6645 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
6646 * fold-const.c (fold_comparison): Move parameter does not
6647 alias &local simplification ...
6648 * match.pd: ... as a pattern here.
6649
6650 2015-07-24 Richard Biener <rguenther@suse.de>
6651
6652 * gimple-fold.c (replace_stmt_with_simplification): Special-case
6653 valueizing call operands.
6654 * gimple-match-head.c (maybe_push_res_to_seq): Take
6655 number of call arguments from ops array.
6656 (do_valueize): New function.
6657 (gimple_simplify): Return true if valueization changed
6658 any operand even if the result didn't simplify further.
6659
6660 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6661
6662 PR middle-end/25530
6663 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
6664
6665 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6666
6667 PR middle-end/25529
6668 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
6669
6670 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
6671
6672 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
6673 instruction.
6674
6675 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
6676
6677 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
6678 clean up.
6679
6680 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
6681
6682 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
6683 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
6684 targets here.
6685 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
6686 ms_va_list_type_node initialization.
6687
6688 2015-07-23 Jeff Law <law@redhat.com>
6689
6690 PR lto/66752
6691 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
6692 unable to find X NE 0 in the tables, return X as the simplified
6693 condition.
6694 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
6695 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
6696 to VISISTED_BBS. */
6697 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
6698 after removing the control flow statement and unnecessary edges.
6699
6700 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
6701
6702 * tree-pass.h (get_current_pass_name): Removed.
6703
6704 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
6705
6706 PR rtl-optimization/64164
6707 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6708 * tree-ssa-copyrename.c: Removed.
6709 * opts.c (default_options_table): Drop -ftree-copyrename. Add
6710 -ftree-coalesce-vars.
6711 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6712 * common.opt (ftree-copyrename): Ignore.
6713 (ftree-coalesce-inlined-vars): Likewise.
6714 * doc/invoke.texi: Remove the ignored options above.
6715 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6716 * tree-ssa-coalesce.h: ... here.
6717 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6718 headers required by it.
6719 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6720 across variables when flag_tree_coalesce_vars. Check register
6721 use and promoted modes to allow coalescing. Moved to
6722 tree-ssa-coalesce.c.
6723 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6724 with its member functions to tree-ssa-coalesce.c.
6725 (var_map_base_init): Likewise. Renamed to
6726 compute_samebase_partition_bases.
6727 (partition_view_normal): Drop want_bases parameter.
6728 (partition_view_bitmap): Likewise.
6729 * tree-ssa-live.h: Adjust declarations.
6730 * tree-ssa-coalesce.c: Include explow.h.
6731 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6732 default defs at the entry point.
6733 (dump_part_var_map): New.
6734 (compute_optimized_partition_bases): New, called by...
6735 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6736 of compute_samebase_partition_bases. Adjust.
6737 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6738 * cfgexpand.c (leader_merge): New.
6739 (get_rtl_for_parm_ssa_default_def): New.
6740 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6741 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6742 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
6743 redundant MEM attr setting.
6744 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
6745 from...
6746 (expand_one_stack_var): ... this. New wrapper to check and
6747 skip already expanded SSA partitions.
6748 (record_alignment_for_reg_var): New, factored out of...
6749 (expand_one_var): ... this.
6750 (expand_one_ssa_partition): New.
6751 (adjust_one_expanded_partition_var): New.
6752 (expand_one_register_var): Check and skip already expanded SSA
6753 partitions.
6754 (expand_used_vars): Don't create DECLs for anonymous SSA
6755 names. Expand all SSA partitions, then adjust all SSA names.
6756 (pass::execute): Replace the loops that set
6757 SA.partition_to_pseudo from partition leaders and cleared
6758 DECL_RTL for multi-location variables, and that which used to
6759 rename vars and set attrs, with one that clears DECL_RTL and
6760 checks that PARMs and RESULTs default_defs match DECL_RTL.
6761 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6762 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6763 * explow.c (promote_ssa_mode): New.
6764 * explow.h (promote_ssa_mode): Declare.
6765 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6766 * function.c: Include cfgexpand.h.
6767 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6768 (use_register_for_parm_decl): Wrapper for the above to
6769 special-case the result_ptr.
6770 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6771 (split_complex_args): Take assign_parm_data_all argument.
6772 Pass it to rtl_for_parm. Set up rtl and context for split
6773 args.
6774 (assign_parms_augmented_arg_list): Adjust.
6775 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6776 multiple locations. Recognize split complex args.
6777 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6778 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
6779 (assign_parm_setup_block): Prefer SSA-assigned location.
6780 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
6781 if stack_parm is NULL.
6782 (assign_parm_setup_stack): Prefer SSA-assigned location.
6783 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
6784 rtl before testing for pointer bounds. Special-case result_ptr.
6785 (expand_function_start): Maybe reset DECL_RTL of result.
6786 Prefer SSA-assigned location for result and static chain.
6787 Factor out DECL_RESULT and SET_DECL_RTL.
6788 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6789 anonymous SSA names. Use promote_ssa_mode.
6790 (get_temp_reg): Likewise.
6791 (remove_ssa_form): Adjust.
6792 * stor-layout.c (layout_decl): Don't set mem attributes of
6793 non-MEMs.
6794 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6795 and get its reg_usage for reg invalidation.
6796 (compute_bb_dataflow): Pass it insn.
6797 (emit_notes_in_bb): Likewise.
6798
6799 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
6800
6801 PR target/66217
6802 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
6803 prototype.
6804 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
6805 (rs6000_emit_2insn_and): Handle dot forms.
6806 * config/rs6000/rs6000.md (and<mode>3): Adjust.
6807 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
6808 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
6809
6810 2015-07-23 Richard Biener <rguenther@suse.de>
6811
6812 * generic-match-head.c: Include cgraph.h.
6813 * gimple-match-head.c: Likewise.
6814 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
6815 SSA names.
6816 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
6817 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
6818 pattern.
6819
6820 2015-07-23 Richard Biener <rguenther@suse.de>
6821
6822 * gimple-fold.c (fold_gimple_cond): Do not require folding
6823 results to pass valid_gimple_rhs_p.
6824 * tree-cfg.h (fold_cond_expr_cond): Remove.
6825 * tree-cfg.c (fold_cond_expr_cond): Likewise.
6826 (make_edges): Do not call it.
6827 * tree-inline.c (tree_function_versioning): Likewise.
6828
6829 2015-07-23 Tom de Vries <tom@codesourcery.com>
6830
6831 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
6832 vect_force_simple_reduction.
6833 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
6834 (vect_is_simple_reduction_1): Add and handle
6835 need_wrapping_integral_overflow parameter.
6836 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
6837 need_wrapping_integral_overflow parameter.
6838 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
6839 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
6840 decl.
6841
6842 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
6843
6844 PR tree-optimization/66926,66951
6845 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
6846 INNER_LOOP and fix up condition for renaming virtual operands.
6847
6848 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6849
6850 * combine.c (try_combine): Use std::swap instead of manually
6851 swapping.
6852
6853 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
6854
6855 * config/mips/i6400.md: New file.
6856 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
6857 (mips64r6): Likewise.
6858 (i6400): Define.
6859 * config/mips/mips-tables.opt: Regenerate.
6860 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
6861 (mips_issue_rate): Add support for i6400.
6862 (mips_multipass_dfa_lookahead): Likewise.
6863 * config/mips/mips.h (TUNE_I6400): Define.
6864 * config/mips/mips.md: Include i6400.md.
6865 (processor): Add i6400.
6866 * doc/invoke.texi (-march=@var{arch}): Add i6400.
6867
6868 2015-07-23 Richard Biener <rguenther@suse.de>
6869
6870 PR middle-end/66916
6871 * match.pd: Guard widen and sign-change comparison simplification
6872 with single_use.
6873
6874 2015-07-23 Richard Biener <rguenther@suse.de>
6875
6876 PR tree-optimization/66945
6877 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
6878 ::before_dom_children): Force the propagators idea of
6879 non-executable edges to materialize, not what the folder
6880 chooses.
6881
6882 2015-07-23 Richard Biener <rguenther@suse.de>
6883
6884 * gimple.h (gimple_cond_make_false): Use 0 != 0.
6885 (gimple_cond_make_true): Use 1 != 0.
6886
6887 2015-07-22 DJ Delorie <dj@redhat.com>
6888
6889 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
6890 slashes.
6891
6892 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
6893 (ashrhi3): Likewise.
6894 (lshrhi3): Likewise.
6895 (movhi): Take advantage of zero-extend to load small constants.
6896 (movpsi): Likewise.
6897 (and<mode>3): Likewise.
6898 (zero_extendqihi2): Likewise.
6899 (zero_extendqisi2): New.
6900 * config/msp430/constraints.md (N,O): New.
6901 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
6902
6903 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
6904
6905 PR target/66954
6906 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
6907 to enum feature_priority and feature_list.
6908 (fold_builtin_cpu): Add F_AES to enum processor_features
6909 and isa_names_table.
6910
6911 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
6912
6913 PR driver/66737
6914 * config/i386/linux-common.h (MPX_SPEC): Use linker option
6915 for 64bit target only.
6916
6917 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
6918
6919 * config/nvptx/nvptx.c: Expand some comments.
6920
6921 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
6922
6923 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
6924 (cortex_a53_advsimd): ...This.
6925
6926 2015-07-22 Richard Biener <rguenther@suse.de>
6927
6928 * genmatch.c (expr::gen_transform): Clarify error message
6929 and display location.
6930
6931 2015-07-22 Richard Biener <rguenther@suse.de>
6932
6933 * genmatch.c (struct operand): Add location member.
6934 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
6935 constructors.
6936 (struct simplify): Remove match_location and result_location
6937 members.
6938 (elsehwere): Adjust.
6939
6940 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
6941
6942 * config/mips/m5100.md: New file.
6943 * config/mips/mips-cpus.def (m5100, m5101): Define.
6944 * config/mips/mips-tables.opt: Regenerate.
6945 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
6946 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
6947 -march=m5101 to -mips32r5.
6948 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
6949 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
6950 !-msoft-float.
6951 * config/mips/mips.md: Include m5100.md.
6952 (processor): Add m5100.
6953 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
6954
6955 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
6956
6957 * config/mips/mips-cpus.def (interaptiv): Define.
6958 * config/mips/mips-tables.opt: Regenerate.
6959 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
6960 -mips32r2.
6961 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
6962 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
6963
6964 2015-07-22 Jiong Wang <jiong.wang@arm.com>
6965
6966 PR target/63521
6967 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
6968 (HONOR_REG_ALLOC_ORDER): Define.
6969
6970 2015-07-22 Richard Biener <rguenther@suse.de>
6971
6972 PR tree-optimization/66952
6973 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
6974 blocks we end up executing unconditionally reset all SSA
6975 info such as range and alignment.
6976 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
6977 * tree-ssanames.c (reset_flow_sensitive_info): New function.
6978
6979 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
6980
6981 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
6982 typo in attribute.
6983
6984 2015-07-22 Richard Biener <rguenther@suse.de>
6985
6986 * genmatch.c (parser::parse_result): Properly handle
6987 match with result operands and conditions.
6988
6989 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
6990
6991 PR target/63870
6992 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
6993 Add qualifier_struct_load_store_lane_index.
6994 (aarch64_types_loadstruct_lane_qualifiers): Use
6995 qualifier_struct_load_store_lane_index for lane index argument for
6996 last argument.
6997 (aarch64_types_storestruct_lane_qualifiers): Ditto.
6998 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
6999 (aarch64_simd_expand_args): Add new argument describing mode of
7000 builtin. Check lane bounds for arguments with
7001 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7002 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
7003 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7004 (aarch64_simd_expand_builtin): Handle arguments with
7005 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
7006 aarch64_simd_expand_args.
7007 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
7008 vst[234]_lane with BUILTIN_VALLDIF.
7009 * config/aarch64/aarch64-simd.md:
7010 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
7011 endianness reversal on lane index.
7012 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
7013 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
7014 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
7015 (vec_store_lanesci_lane<mode>): Ditto.
7016 (vec_store_lanesxi_lane<mode>): Ditto.
7017 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
7018 reversal of lane index.
7019 (aarch64_ld3_lane<mode>): Ditto.
7020 (aarch64_ld4_lane<mode>): Ditto.
7021 (aarch64_st2_lane<mode>): Ditto.
7022 (aarch64_st3_lane<mode>): Ditto.
7023 (aarch64_st4_lane<mode>): Ditto.
7024 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
7025 to qmode. Add new mode parameter. Update uses.
7026 (__LD3_LANE_FUNC): Ditto.
7027 (__LD4_LANE_FUNC): Ditto.
7028 (__ST2_LANE_FUNC): Ditto.
7029 (__ST3_LANE_FUNC): Ditto.
7030 (__ST4_LANE_FUNC): Ditto.
7031
7032 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
7033
7034 * doc/invoke.texi (Language Independent Options): Rename node to
7035 Diagnostic Message Formatting Options.
7036
7037 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
7038
7039 PR ipa/66424.
7040 * lra-remat.c (operand_to_remat): Prevent using insns with input
7041 subregs processed separately by IRA.
7042
7043 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
7044
7045 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
7046 straight loops.
7047 (single_imm_use): Check for iterator node.
7048 (num_imm_uses): Likewise.
7049 * tree-ssa-operands.c (has_zero_uses_1): Delete.
7050 (single_imm_use_1): Check for iterator node.
7051
7052 2015-07-21 Mike Frysinger <vapier@gentoo.org>
7053 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7054
7055 * configure.ac: Add check for new options in isl-0.15.
7056 * config.in, configure: Rebuilt.
7057 * graphite-blocking.c: Include <isl/constraint.h>
7058 * graphite-interchange.c, graphite-poly.c: Likewise.
7059 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
7060 * graphite.c: Likewise.
7061 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
7062 <isl/union_set.h>.
7063 * graphite-dependences.c: Include <isl/constraint.h>.
7064 (max_number_of_out_dimensions): Returns isl_stat.
7065 (extend_schedule_1): Likewise
7066 (extend_schedule): Corresponding changes.
7067 * graphite-optimize-isl.c: Include <isl/constraint.h> and
7068 <isl/union_set.h>.
7069 (getSingleMap): Change return type of isl_stat.
7070 (optimize_isl): Conditionally use
7071 isl_options_set_schedule_serialize_sccs.
7072 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
7073 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
7074
7075 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
7076
7077 PR target/66956
7078 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
7079 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
7080
7081 2015-07-21 Richard Biener <rguenther@suse.de>
7082
7083 PR tree-optimization/66948
7084 * genmatch.c (capture_info::walk_match): Also recurse to
7085 captures. Properly compute expr state from captures of
7086 captures.
7087 * match.pd: Add single-use guards to
7088 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
7089
7090 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
7091
7092 * config/nvptx/mkoffload.c (process): Add static destructor call.
7093
7094 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7095
7096 PR middle-end/66915
7097 * match.pd (A - B -> A + (-B)): Don't allow folding
7098 when type if a fixed-point type.
7099
7100 2015-07-20 DJ Delorie <dj@redhat.com>
7101
7102 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
7103 (iorqi3_real): Likewise for set1.
7104
7105 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
7106
7107 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
7108 for !TARGET_64BIT.
7109
7110 2015-07-20 Aditya Kumar <hiraditya@msn.com>
7111
7112 * graphite-isl-ast-to-gimple.c:
7113 Refactor so that each function can access 'region'. This will help
7114 maintain a parameter rename_map within a region.
7115
7116 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
7117
7118 * config/rs6000/rs6000.md (*lt0_disi): New.
7119
7120 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
7121
7122 PR target/66217
7123 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
7124 "available letters" comment.
7125 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
7126 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
7127 and_2rld_operand): Delete.
7128 (and_operand): Adjust.
7129 (rotate_mask_operator): New.
7130 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
7131 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
7132 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
7133 extract_ME): Delete.
7134 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
7135 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
7136 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
7137 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
7138 rs6000_emit_2insn_and): New.
7139 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
7140 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
7141 includes_rldic_lshift_p, includes_rldicr_lshift_p,
7142 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
7143 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
7144 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
7145 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
7146 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
7147 rs6000_emit_2insn_and): New.
7148 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
7149 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
7150 handling.
7151 <NOT>: Don't fall through to next case.
7152 <AND>: Handle the various rotate-and-mask cases directly.
7153 <IOR>: Always cost as one insn.
7154 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
7155 (and<mode>3): Adjust expander for the new patterns.
7156 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
7157 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
7158 (*and<mode>3_imm_dot_shifted): New.
7159 (*and<mode>3_mask): Delete, rewrite as ...
7160 (and<mode>3_mask): ... New.
7161 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
7162 (andsi3_internal0_nomc): Delete.
7163 (*andsi3_internal6): Delete.
7164 (*and<mode>3_2insn): New.
7165 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
7166 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
7167 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
7168 *insvdi_internal3): Delete.
7169 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
7170 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
7171 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
7172 *ior<mode>_mask): New.
7173 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
7174 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
7175 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
7176 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
7177 Delete.
7178 (ashr<mode>3): Delete expander.
7179 (*ashr<mode>3): Rename to ...
7180 (ashr<mode>3): ... This.
7181 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
7182 (*rotldi3_internal4, *rotldi3_internal5 and split,
7183 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
7184 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
7185 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
7186 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
7187 (splitter for loading a mask): Adjust.
7188 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
7189
7190 2015-07-20 Marek Polacek <polacek@redhat.com>
7191
7192 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
7193 output_add_clobbers, output_added_clobbers_hard_reg_p,
7194 gen_rtx_scratch): Remove declarations.
7195
7196 2015-07-20 Marek Polacek <polacek@redhat.com>
7197
7198 PR c++/55095
7199 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
7200
7201 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7202
7203 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
7204 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
7205
7206 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7207
7208 * combine.c (combine_simplify_rtx): Move simplification step
7209 before various transformations/substitutions.
7210
7211 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
7212
7213 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
7214 (struct int_traits): Likewise.
7215
7216 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7217
7218 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
7219 function to vmsdbgout_function_decl.
7220
7221 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
7222
7223 PR target/66922
7224 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
7225 from misaligned positions.
7226 (ix86_expand_pinsr): Reject insertions to misaligned positions.
7227
7228 2015-07-18 Sebastian Pop <s.pop@samsung.com>
7229
7230 PR middle-end/46851
7231 PR middle-end/60340
7232 * Makefile.in: Removed omega.o.
7233 * common.opt: Document flag fcheck-data-deps as deprecated.
7234 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
7235 its associated params: omega-max-vars, omega-max-geqs,
7236 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
7237 omega-max-keys, omega-eliminate-redundant-constraints.
7238 * doc/loop.texi: Remove all the section on Omega.
7239 * graphite-blocking.c: Include missing params.h: it used to be
7240 included through tree-data-ref.h and omega.h.
7241 * graphite-isl-ast-to-gimple.c: Same.
7242 * graphite-optimize-isl.c: Same.
7243 * graphite-sese-to-poly.c: Same.
7244 * graphite.c: Same.
7245 * omega.c: Remove.
7246 * omega.h: Remove.
7247 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
7248 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
7249 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
7250 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
7251 * passes.def: Remove pass_check_data_deps.
7252 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
7253 (dump_conflict_function): Same.
7254 (dump_subscript): Same.
7255 (print_direction_vector): Same.
7256 (print_dir_vectors): Same.
7257 (print_lambda_vector): Same.
7258 (print_dist_vectors): Same.
7259 (dump_data_dependence_relation): Same.
7260 (dump_data_dependence_relations): Same.
7261 (dump_dist_dir_vectors): Same.
7262 (dump_ddrs): Same.
7263 (init_omega_eq_with_af): Removed.
7264 (omega_extract_distance_vectors): Removed.
7265 (omega_setup_subscript): Removed.
7266 (init_omega_for_ddr_1): Removed.
7267 (init_omega_for_ddr): Removed.
7268 (ddr_consistent_p): Removed.
7269 (compute_affine_dependence): Do not use omega to check data
7270 dependences.
7271 (compute_data_dependences_for_bb): Removed.
7272 (analyze_all_data_dependences): Removed.
7273 (tree_check_data_deps): Removed.
7274 * tree-data-ref.h: Do not include omega.h.
7275 (compute_data_dependences_for_bb): Removed.
7276 (tree_check_data_deps): Removed.
7277 * tree-ssa-loop.c (pass_check_data_deps): Removed.
7278 (make_pass_check_data_deps): Removed.
7279 * tree-ssa-phiopt.c: Include params.h.
7280 * tree-vect-data-refs.c: Same.
7281 * tree-vect-slp.c: Same.
7282
7283 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
7284
7285 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
7286 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
7287 (mem->fpreg splitters): Ditto.
7288 (general_operand->nonimmediate_operand splitter): Use explicit modes.
7289 Disable DFmode for TARGET_64BIT.
7290
7291 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
7292
7293 PR target/66906
7294 * config/i386/i386.c (ix86_expand_prologue): Replicate static
7295 chain on the stack.
7296
7297 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
7298
7299 * config/nvptx/mkoffload.c (process): Constify host data.
7300 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
7301 Constify host data.
7302 (generate_host_descr_file): Likewise.
7303
7304 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
7305 Sebastian Pop <s.pop@samsung.com>
7306
7307 PR middle-end/61929
7308 * graphite-dependences.c (add_pdr_constraints): Renamed
7309 pdr->extent to pdr->subscript_sizes.
7310 * graphite-interchange.c (build_linearized_memory_access): Add
7311 back all gcc_assert's that the "isl_int to isl_val conversion"
7312 patch has removed. Refactored.
7313 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
7314 * graphite-poly.c (new_poly_dr): Same.
7315 (free_poly_dr): Same.
7316 * graphite-poly.h (struct poly_dr): Same.
7317 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
7318 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
7319 * graphite-scop-detection.h: Fix space.
7320 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
7321 back all gcc_assert's removed by a previous patch.
7322 (wrap): Remove the_isl_ctx global variable that the same patch has
7323 added.
7324 (build_loop_iteration_domains): Same.
7325 (add_param_constraints): Same.
7326 (pdr_add_data_dimensions): Same. Refactored.
7327 (build_poly_dr): Renamed extent to subscript_sizes.
7328
7329 2015-07-17 Marek Polacek <polacek@redhat.com>
7330
7331 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
7332 * match.pd: ... here.
7333
7334 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
7335
7336 * config/nvptx/mkoffload.c (process): Constify target data.
7337 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
7338 Constify target data.
7339 (generate_target_offloadend_file): Likewise.
7340
7341 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
7342
7343 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
7344 to allow renaming of PHI arguments on edges incoming from outer
7345 loop header, add corresponding check before start PHI iterator.
7346 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
7347 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
7348 with true force_vectorize. Set-up dominator for outer loop too.
7349 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
7350 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
7351 was marked with force_vectorize and has restricted cfg.
7352 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
7353 inner loop.
7354 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
7355 do peeling for outer loops.
7356
7357 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
7358 Matthias Klose <doko@ubuntu.com>
7359
7360 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
7361 build-sysroot, sysroot from the `Miscenalleous configure options' to
7362 the `Directories' section and strip trailing `/' from with_sysroot.
7363 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
7364 * configure: Regenerated.
7365
7366 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
7367
7368 PR target/66824
7369 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
7370 (TARGET_HARD_DF_REGS): Ditto.
7371 (TARGET_HARD_XF_REGS): Ditto.
7372 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
7373 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
7374 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
7375 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
7376 (*movsf_internal): Add alternatives 16 and 17. Enable
7377 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
7378
7379 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
7380
7381 PR rtl-optimization/66891
7382 * calls.c (expand_call): Wrap precompute_register_parameters with
7383 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
7384
7385 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
7386
7387 * config/nvptx/mkoffload.c (process): Constify mapping variables.
7388 Define target data struct and initialize it.
7389
7390 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
7391
7392 PR rtl-optimization/66626
7393 * ira.h (emit-rtl.h): Include.
7394 (non_spilled_static_chain_regno_p): New.
7395 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
7396 unless it is non spilled static chain pseudo.
7397 (assign_hard_rego): Spill memory profitable allocno unless it is
7398 non spilled static chain pseudo.
7399 (allocno_spill_priority_compare): Put non spilled static chain
7400 pseudo at the end of sorted array.
7401 (improve_allocation): Do nothing if we have static chain and
7402 non-local goto.
7403 (allocno__priority_compare_func): Put non spilled static chain
7404 pseudo at the beginning of sorted array.
7405 (move_spill_restore): Ignore non spilled static chain pseudo.
7406 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
7407 to non spilled static chain pseudo.
7408 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
7409 pseudo at the beginning of sorted array.
7410 (spill_for): Spill non spilled static chain pseudo last.
7411 * lra-constraints.c (lra_constraints): Remove static chain pseudo
7412 check for equivalence.
7413
7414 2015-07-16 Martin Liska <mliska@suse.cz>
7415
7416 PR ipa/66896.
7417 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
7418 dst_ctx if it does not exist.
7419
7420 2015-07-16 Martin Liska <mliska@suse.cz>
7421
7422 * hash-set.h (remove): New function.
7423 (iterator): New iteration class for hash_set.
7424
7425 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7426
7427 * genattrtab.c (make_canonical): Add a file_location parameter.
7428 Use fatal_at rather than fatal.
7429 (get_attr_value): Likewise. Update call to make_canonical.
7430 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
7431 (make_internal_attr): Update calls accordingly.
7432
7433 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7434
7435 * read-md.h (message_with_line, error_with_line): Delete.
7436 * read-md.c (message_with_line, error_with_line): Delete.
7437 * gensupport.h: Include read-md.h.
7438 (md_rtx_info): New structure.
7439 (read_md_rtx): Use it. Return a bool success value.
7440 * gensupport.c (read_md_rtx): Likewise.
7441 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
7442 (main): Update after interface changes.
7443 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
7444 (main): Update after interface changes.
7445 * genattrtab.c (insn_code_number): Delete.
7446 (optimize_attrs): Add a max_insn_code parameter and use it instead
7447 of insn_code_number.
7448 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
7449 Use *_at rather than *_with_line functions.
7450 (gen_insn): Likewise.
7451 (gen_delay): Likewise.
7452 (gen_insn_reserv): Likewise.
7453 (gen_bypass): Take an md_rtx_info rather than an rtx.
7454 (main): Update after interface changes. Use a local max_insn_code
7455 variable instead of insn_code_number.
7456 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
7457 an rtx. Use fatal_at rather than fatal.
7458 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
7459 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
7460 (gen_absence_set, gen_final_absence_set, gen_automaton)
7461 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
7462 (main): Update after interface changes.
7463 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
7464 and code number.
7465 (main): Update after interface changes.
7466 * genconditions.c (main): Use new read_md_rtx interface.
7467 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
7468 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
7469 (main): Update after interface changes.
7470 * genemit.c (insn_code_number, insn_index_number): Delete.
7471 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
7472 Use fatal_at rather than fatal.
7473 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
7474 rather than fatal.
7475 (gen_split): Likewise.
7476 (main): Update after interface changes.
7477 * genextract.c (line_no): Delete.
7478 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
7479 Update call to walk_rtx.
7480 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
7481 rather than message_with_line.
7482 (walk_rtx): Add an md_rtx_info argument. Update call to
7483 VEC_safe_set_locstr.
7484 (main): Update after interface changes.
7485 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
7486 and lineno. Use error_at rather than separate message_with_line
7487 calls and have_error assignments.
7488 (main): Update after interface changes.
7489 * genmddump.c (main): Use new read_md_rtx interface.
7490 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
7491 (main): Update after interface changes.
7492 * genoutput.c (next_code_number): Delete.
7493 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
7494 (gen_peephole, gen_expand, gen_split): Likewise.
7495 (note_constraint): Likewise. Use *_at rather than *_with_line
7496 functions.
7497 (main): Update after interface changes.
7498 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
7499 rtx and lineno.
7500 (main): Update after interface changes.
7501 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
7502 than an rtx and lineno.
7503 (process_define_constraint): Likewise.
7504 (process_define_register_constraint): Likewise.
7505 (main): Update after interface changes.
7506 * genrecog.c (next_insn_code, pattern_lineno): Delete.
7507 (validate_pattern): Replace top-level rtx with an md_rtx_info.
7508 Use *_at rather than *_with_line functions.
7509 (match_pattern_2): Likewise.
7510 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
7511 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
7512 Use *_at rather than *_with_line functions.
7513 * gentarget-def.c (add_insn): New function.
7514 (main): Use it. Use new read_md_rtx interface.
7515
7516 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7517
7518 * gensupport.h (compute_test_codes): Take a file_location rather
7519 than a line number.
7520 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
7521 rather than *_with_line functions.
7522 (process_define_predicate): Update call to compute_test_codes.
7523 * genpreds.c (validate_exp): Take a file_location rather than a
7524 line number. Use *_at functions rather than *_with_line functions.
7525 (process_define_predicate): Update call to validate_exp.
7526 (constraint_data): Replace lineno field with a file_location.
7527 (add_constraint): Take a file_location rather than a line number.
7528 Use *_at functions rather than *_with_line functions. Fix error
7529 message for address constraints. Update after changes to
7530 validate_exp, constraint_data and compute_test_codes.
7531 (process_define_constraint): Update accordingly.
7532 (process_define_register_constraint): Likewise.
7533
7534 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7535
7536 * genoutput.c (data): Use a file_location to record the source
7537 position.
7538 (nothing): Delete.
7539 (idata, idata_end): Remove initialization.
7540 (constraint_data): Replace lineno with a file_location.
7541 (output_insn_data): Update after changes to data.
7542 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
7543 (scan_operands): Likewise, using *_at rather than *_with_line
7544 functions.
7545 (process_template): Likewise.
7546 (validate_insn_alternatives): Likewise.
7547 (validate_insn_operands): Likewise.
7548 (validate_optab_operands): Likewise.
7549 (init_insn_for_nothing): Initialize idata and idata_end.
7550 (note_constraint): Update after changes to constraint_data,
7551 using at rather than with_line functions.
7552 (mdep_constraint_len): Take a file_location rather than a
7553 line number. Use at rather than with_line functions.
7554
7555 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7556
7557 * read-md.h (fatal_at): Declare.
7558 * read-md.c (fatal_at): New function.
7559 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
7560 to record the source position.
7561 (check_attr_test): Take a file_location instead of a line number.
7562 Use fatal_at instead of fatal.
7563 (check_attr_value): Update after above changes, using "at"
7564 rather than "with_line" reporting functions.
7565 (convert_set_attr_alternative): Likewise.
7566 (gen_attr): Likewise.
7567 (check_defs): Likewise. Don't assign to read_md_filename.
7568 (gen_insn): Update initialization after above changes.
7569 (gen_delay): Likewise.
7570 (write_insn_cases): Print the filename for a define_peephole.
7571 (gen_insn_reserv): Take a line number as argument and update
7572 the call to check_attr_test.
7573 (main): Pass a line number to gen_insn_reserv.
7574
7575 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7576
7577 * read-md.h (file_location): New structure.
7578 (directive_handler_t): Take a file_location rather than a line number.
7579 (message_at, error_at): Declare.
7580 (read_skip_construct): Delete.
7581 * read-md.c (message_with_line_1): Replace with...
7582 (message_at_1): ...this new function.
7583 (message_at, error_at): New functions.
7584 (message_with_line, error_with_line): Update to use message_at_1.
7585 (handle_enum): Take a file_location rather than a line number
7586 and use error_at for error reporting.
7587 (handle_include): Likewise.
7588 (read_skip_construct): Likewise. Make static.
7589 (handle_file): Update after above changes. Pass a file_location
7590 rather than a line number to handle_directive.
7591 * gensupport.c (queue_elem): Replace separate filename and lineno
7592 with a file_location.
7593 (queue_pattern): Replace filename and lineno arguments with a
7594 file_location. Update after change to queue_elem.
7595 (process_define_predicate): Replace lineno argument with a
7596 file_location and use error_at for error reporting. Update
7597 after above changes.
7598 (process_rtx): Likewise.
7599 (subst_pattern_match): Likewise.
7600 (get_alternatives_number): Likewise.
7601 (alter_predicate_for_insn): Likewise.
7602 (rtx_handle_directive): Likewise.
7603 (is_predicable): Update after above changes, using error_at rather
7604 than error_with_line.
7605 (has_subst_attribute): Likewise.
7606 (identify_predicable_attribute): Likewise.
7607 (alter_attrs_for_subst_insn): Likewise.
7608 (process_one_cond_exec): Likewise.
7609 (process_substs_on_one_elem): Likewise.
7610 (process_define_subst): Likewise.
7611 (check_define_attr_duplicates): Likewise.
7612 (read_md_rtx): Update after change to queue_elem.
7613
7614 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7615
7616 * genoutput.c (next_index_number): Delete.
7617 (data): Remove index_number.
7618 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
7619 (main): Remove manipulation of next_index_number.
7620
7621 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
7622
7623 * genattrtab.c (check_attr_value): Remove handling of null attrs.
7624 (make_canonical): Likewise.
7625
7626 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
7627
7628 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
7629 instead of adjust_address_nv.
7630 (restore_stack_nonlocal): Likewise.
7631 (nonlocal_goto): Likewise.
7632
7633 2015-07-16 Tom de Vries <tom@codesourcery.com>
7634
7635 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
7636 not have a corresponding loop header phi.
7637
7638 2015-07-16 Tom de Vries <tom@codesourcery.com>
7639
7640 * tree-parloops.c (create_loads_for_reductions): Handle case that
7641 reduction is unused.
7642
7643 2015-07-16 Richard Biener <rguenther@suse.de>
7644
7645 PR tree-optimization/66894
7646 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
7647 about deriving NE_EXPR from truncated values.
7648
7649 2015-07-16 Martin Liska <mliska@suse.cz>
7650
7651 * alloc-pool.h
7652 (object_allocator): Add new class.
7653 (pool_allocator::initialize): Use the underlying class.
7654 (pool_allocator::allocate): Likewise.
7655 (pool_allocator::remove): Likewise.
7656 (operator new): A new generic allocator.
7657 * asan.c (struct asan_mem_ref): Remove unused members.
7658 (asan_mem_ref_new): Replace new operator with
7659 object_allocator::allocate.
7660 (free_mem_ref_resources): Change deallocation.
7661 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
7662 with object_allocator.
7663 * config/sh/sh.c (add_constant): Replace new operator with
7664 object_allocator::allocate.
7665 (sh_reorg): Change call to a release method.
7666 * cselib.c (struct elt_list): Remove unused members.
7667 (new_elt_list): Replace new operator with
7668 object_allocator::allocate.
7669 (new_elt_loc_list): Likewise.
7670 (new_cselib_val): Likewise.
7671 (unchain_one_elt_list): Change delete operator with remove method.
7672 (unchain_one_elt_loc_list): Likewise.
7673 (unchain_one_value): Likewise.
7674 (cselib_finish): Release newly added static allocators.
7675 * cselib.h (struct cselib_val): Remove unused members.
7676 (struct elt_loc_list): Likewise.
7677 * df-problems.c (df_chain_alloc): Replace pool_allocator with
7678 object_allocator.
7679 * df-scan.c (struct df_scan_problem_data): Likewise.
7680 (df_scan_alloc): Likewise.
7681 * df.h (struct dataflow): Likewise.
7682 * dse.c (struct read_info_type): Likewise.
7683 (struct insn_info_type): Likewise.
7684 (struct dse_bb_info_type): Likewise.
7685 (struct group_info): Likewise.
7686 (struct deferred_change): Likewise.
7687 (get_group_info): Likewise.
7688 (delete_dead_store_insn): Likewise.
7689 (free_read_records): Likewise.
7690 (replace_read): Likewise.
7691 (check_mem_read_rtx): Likewise.
7692 (scan_insn): Likewise.
7693 (dse_step1): Likewise.
7694 (dse_step7): Likewise.
7695 * et-forest.c (struct et_occ): Remove unused members.
7696 (et_new_occ): Use allocate instead of new operator.
7697 (et_new_tree): Likewise.
7698 (et_free_tree): Call release method explicitly.
7699 (et_free_tree_force): Likewise.
7700 (et_free_pools): Likewise.
7701 (et_split): Use remove instead of delete operator.
7702 * et-forest.h (struct et_node): Remove unused members.
7703 * ipa-cp.c: Change pool_allocator to object_allocator.
7704 * ipa-inline-analysis.c: Likewise.
7705 * ipa-profile.c: Likewise.
7706 * ipa-prop.c: Likewise.
7707 * ipa-prop.h: Likewise.
7708 * ira-build.c (initiate_cost_vectors): Cast return value.
7709 (ira_allocate_cost_vector): Likewise.
7710 * ira-color.c (struct update_cost_record): Remove unused members.
7711 * lra-int.h (struct lra_live_range): Likewise.
7712 (struct lra_copy): Likewise.
7713 (struct lra_insn_reg): Likewise.
7714 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
7715 * lra.c (new_insn_reg): Replace new operator with allocate method.
7716 (free_insn_regs): Same for operator delete.
7717 (finish_insn_regs): Release new static allocator.
7718 (finish_insn_recog_data): Likewise.
7719 (lra_free_copies): Replace delete operator with remove method.
7720 (lra_create_copy): Replace operator new with allocate method.
7721 (invalidate_insn_data_regno_info): Same for remove method.
7722 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
7723 (free_debug_insn_changes): Replace delete operator with remove method.
7724 (replace_oldest_value_reg): Replace operator new with allocate method.
7725 (pass_cprop_hardreg::execute): Release new static variable.
7726 * sched-deps.c (sched_deps_init): Change pool_allocator to
7727 object_allocator.
7728 * sel-sched-ir.c: Likewise.
7729 * sel-sched-ir.h: Likewise.
7730 * stmt.c (expand_case): Likewise.
7731 (expand_sjlj_dispatch_table): Likewise.
7732 * tree-sra.c (struct access): Remove unused members.
7733 (struct assign_link): Likewise.
7734 (sra_deinitialize): Release newly added static pools.
7735 (create_access_1):Replace operator new with allocate method.
7736 (build_accesses_from_assign): Likewise.
7737 (create_artificial_child_access): Likewise.
7738 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
7739 pool_allocator to object_allocator.
7740 * tree-ssa-pre.c: Likewise.
7741 * tree-ssa-reassoc.c: Likewise.
7742 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
7743 * tree-ssa-strlen.c: Likewise.
7744 * tree-ssa-structalias.c: Likewise.
7745 * var-tracking.c (onepart_pool_allocate): New function.
7746 (unshare_variable): Use the newly added function.
7747 (variable_merge_over_cur): Likewise.
7748 (variable_from_dropped): Likewise.
7749 (variable_was_changed): Likewise.
7750 (set_slot_part): Likewise.
7751 (emit_notes_for_differences_1): Likewise.
7752 (vt_finalize): Release newly added static pools.
7753
7754 2015-07-16 Martin Jambor <mjambor@suse.cz>
7755
7756 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
7757 all uses. Fix two typos in its general comment.
7758 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
7759
7760 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
7761
7762 * config/i386/linux-common.h (LINK_MPX): New.
7763 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
7764 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
7765 indicating '-z bndplt' support by linker.
7766 * configure: Regenerate.
7767 * config.in: Regenerate.
7768
7769 2015-07-16 Richard Biener <rguenther@suse.de>
7770
7771 * fold-const.c (fold_widened_comparison): Remove.
7772 (fold_sign_changed_comparison): Likewise.
7773 (fold_comparison): Move widened and sign-changed comparison
7774 simplification ...
7775 * match.pd: ... to patterns here.
7776 * generic-match-head.c: Include target.h.
7777 * gimple-match-head.c: Likewise.
7778
7779 2015-07-16 Richard Biener <rguenther@suse.de>
7780
7781 * tree-ssa-dom.c (dom_valueize): New function.
7782 (record_temporary_equivalences): Also record equivalences
7783 for dominating stmts that have uses of equivalences we are
7784 about to record.
7785
7786 2015-07-16 Bin Cheng <bin.cheng@arm.com>
7787
7788 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
7789 add_autoinc_candidates.
7790 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
7791 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
7792 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
7793 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
7794 Call new function.
7795 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
7796 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
7797 Remove parameter struct iv*. Call add_autoinc_candidates here.
7798 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
7799 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
7800 Call new function.
7801 (find_iv_candidates): Call new functions.
7802
7803 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
7804
7805 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
7806 uninitialized-variable warning.
7807
7808 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
7809
7810 PR target/65249
7811 * config/sh/sh.md (movdi): Split simple reg move to two movsi
7812 when the destination is R0.
7813
7814 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
7815
7816 PR target/66866
7817 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
7818 * config/i386/i386.c (ix86_expand_pextr): New function.
7819 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
7820 for non-lowpart subregs.
7821 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
7822 (insv<mode>): Use SWI248 mode iterator.
7823 (insv<mode>_1): Ditto.
7824
7825 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
7826 Sebastian Pop <s.pop@samsung.com>
7827
7828 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
7829 iterator to use_stmt.
7830
7831 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
7832 Sebastian Pop <s.pop@samsung.com>
7833
7834 * graphite-scop-detection.c (build_scops_1): Discard scops for
7835 which entry==exit.
7836
7837 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
7838 Sebastian Pop <s.pop@samsung.com>
7839
7840 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
7841 case of a return statement in scop.
7842
7843 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
7844 Sebastian Pop <s.pop@samsung.com>
7845
7846 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
7847 INTEGER_TYPE parameters.
7848 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
7849 VECTOR_CST in scan_tree_for_params.
7850 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
7851
7852 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
7853
7854 * gimple-pretty-print.h: Don't include pretty-print.h.
7855 * tree-streamer.h: Don't include lto-streamer.h.
7856 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
7857 * gimple-streamer-in.c: Remove redundant includes.
7858 * gimple-streamer-out.c: Likewise.
7859 * ipa-devirt.c: Likewise.
7860 * ipa-icf.c: Likewise.
7861 * ipa-inline-analysis.c: Likewise.
7862 * ipa-polymorphic-call.c: Likewise.
7863 * ipa-profile.c: Likewise.
7864 * ipa-prop.c: Likewise.
7865 * ipa-pure-const.c: Likewise.
7866 * lto-cgraph.c: Likewise.
7867 * lto-streamer-in.c: Likewise.
7868 * lto-streamer-out.c: Likewise.
7869 * lto-streamer.c: Likewise.
7870 * tree-streamer-in.c: Likewise.
7871 * tree-streamer-out.c: Likewise.
7872 * tree-streamer.c: Likewise.
7873
7874 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
7875
7876 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
7877 include input.h.
7878 * opts.c: Remove multiline #include comment.
7879
7880 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
7881
7882 * config/nvptx/mkoffload.c (process): Add C++ protection to
7883 emitted code.
7884
7885 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7886
7887 PR target/66854
7888 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
7889 null before IEEE 128-bit floating point support patch.
7890
7891 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7892
7893 * simplify-rtx.c (simplify_ternary_operation): Add simplification
7894 for (!c) != {0,...,0} ? a : b for vector modes.
7895
7896 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
7897 Martin Jambor <mjambor@suse.cz>
7898
7899 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
7900 struct func_body_info* instead of struct ipa_node_params*, expecting
7901 fbi->info to be filled in. Replace throughout. Adjust call to
7902 ipa_load_from_parm_agg.
7903 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
7904 instead of struct ipa_node_params*. Adjust calls to other functions
7905 so that they pass either fbi or fbi->info.
7906 (set_switch_stmt_execution_predicate): Likewise.
7907 (will_be_nonconstant_predicate): Likewise.
7908 (compute_bb_predicates): Likewise.
7909 (estimate_function_body_sizes): Move asserts earlier. Fill in
7910 struct func_body_info, replace parms_info with fbi.info. Adjust
7911 calls to functions that now accept struct func_body_info.
7912 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
7913 (struct func_body_info): Likewise.
7914 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
7915 remove static. Adjust callers.
7916 (ipa_load_from_parm_agg): Remove.
7917 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
7918 (func_body_info): Likewise.
7919 (ipa_load_from_parm_agg): Adjust prototype.
7920
7921 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7922
7923 * gensupport.c (rtx_handle_directive): Adjust.
7924 * read-rtl.c (apply_iterators): Take vector to add rtxs to
7925 instead of expr list rtx.
7926 (add_define_attr_for_define_subst): Likewise.
7927 (add_define_subst_attr): Likewise.
7928 (read_subst_mapping): Likewise.
7929 (read_rtx): Likewise.
7930 * rtl.h (read_rtx): Adjust.
7931
7932 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7933
7934 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
7935
7936 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
7937
7938 PR target/58066
7939 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
7940 (*tls_local_dynamic_base_64_<mode>): Ditto.
7941 (*tls_local_dynamic_base_64_largepic): Ditto.
7942 (tls_global_dynamic_64_<mode>): Update expander pattern.
7943 (tls_local_dynamic_base_64_<mode>): Ditto.
7944
7945 2015-07-15 Richard Biener <rguenther@suse.de>
7946
7947 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
7948 and bool_var == 1 -> bool_var simplifications ...
7949 * match.pd: ... to patterns here. Factor out negate_expr_p
7950 cases from the A - B -> A + (-B) patterns as negate_expr_p
7951 predicate and add a -(A + B) -> (-B) - A pattern.
7952
7953 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
7954
7955 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
7956
7957 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
7958 Robert Suchanek <robert.suchanek@imgtec.com>
7959
7960 * config/mips/mips.c (mips_int_mask): New enum.
7961 (mips_shadow_set): Likewise.
7962 (int_mask): New variable.
7963 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
7964 (machine_function): Add int_mask and use_shadow_register_set.
7965 (mips_attribute_table): Add attribute handlers for interrupt and
7966 use_shadow_register_set.
7967 (mips_interrupt_mask): New static function.
7968 (mips_handle_interrupt_attr): Likewise.
7969 (mips_handle_use_shadow_register_set_attr): Likewise.
7970 (mips_use_shadow_register_set): Change return type to enum
7971 mips_shadow_set. Add argument handling for use_shadow_register_set
7972 attribute.
7973 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
7974 compare with mips_shadow_set enum.
7975 (mips_compute_frame_info): Add interrupt mask and
7976 use_shadow_register_set to per-function information structure.
7977 Add a stack slot for EPC unconditionally.
7978 (mips_expand_prologue): Compare use_shadow_register_set value
7979 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
7980 masked interrupt register but in EIC mode use K0 and save Cause in K0.
7981 EPC saved and restored unconditionally. Use PMODE_INSN macro when
7982 copying the stack pointer from the shadow register set.
7983 * config/mips/mips.h (SR_IM0): New define.
7984 * config/mips/mips.md (mips_rdpgpr): Rename to...
7985 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
7986 * doc/extend.texi (Declaring Attributes of Functions): Document
7987 optional arguments for interrupt and use_shadow_register_set
7988 attributes.
7989
7990 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
7991
7992 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
7993 interrupt attribute.
7994 (mips_expand_prologue): Disable the floating point unit in an ISR.
7995 * config/mips/mips.h (SR_COP1): New define.
7996
7997 2015-07-15 Richard Biener <rguenther@suse.de>
7998
7999 * genmatch.c (parser::peek, parser::peek_ident): Add argument
8000 to tell how many tokens to peek ahead (default 1).
8001 (parser::eat_token, parser::eat_ident): Return token consumed.
8002 (parser::parse_result): Parse new switch statement.
8003 * match.pd: Use case statements where appropriate.
8004
8005 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8006
8007 PR rtl-optimization/58066
8008 * calls.c (expand_call): Precompute register parameters before stack
8009 alignment is performed.
8010
8011 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
8012
8013 PR rtl-optimization/66838
8014 * postreload.c (reload_cse_move2add): Also process
8015 CALL_INSN_FUNCTION_USAGE when resetting information of
8016 call-clobbered registers.
8017
8018 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8019 Cesar Philippidis <cesar@codesourcery.com>
8020 Chung-Lin Tang <cltang@codesourcery.com>
8021
8022 * config/nios2/constraints.md (U, v): New constraints.
8023 * config/nios2/predicates.md (rdprs_dcache_operand): New.
8024 (ldstex_memory_operand): New.
8025 * config/nios2/sync.md: New file.
8026 * config/nios2/nios2.md (unspecv): Add new builtin function
8027 UNSPECV codes.
8028 (rdprs, flushd, flushda, wrpie, eni): New patterns.
8029 (top-level): Include sync.md.
8030 * config/nios2/nios2.c (N2_FTYPES): Add function types for
8031 new builtins.
8032 (N2_BUILTINS): Add arch field setting, add new builtins.
8033 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
8034 for arch field.
8035 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
8036 Also handle ldex/stex/ldsex/stsex builtins.
8037 (nios2_expand_rdprs_builtin): New function.
8038 (nios2_expand_cache_builtin): New function.
8039 (nios2_expand_wrpie_builtin): New function.
8040 (nios2_expand_eni_builtin): New function.
8041 (nios2_expand_builtin): Add arch field handling and new builtin
8042 cases.
8043 * doc/extend.texi (Altera Nios II Built-in Functions): Document
8044 new builtins.
8045 * doc/md.texi (Machine Constraints): Document U and v constraints.
8046
8047 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8048 Cesar Philippidis <cesar@codesourcery.com>
8049 Chung-Lin Tang <cltang@codesourcery.com>
8050
8051 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
8052 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
8053 callee_save_reg_size and uses_anonymous_args fields.
8054 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
8055 (nios2_create_cfa_notes): New function.
8056 (nios2_adjust_stack): New function for adjusting stack.
8057 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
8058 Use nios2_adjust_stack.
8059 (nios2_expand_epilogue): Likewise.
8060 (nios2_expand_return): New function.
8061 (nios2_can_use_return_insn): Update for CDX pop.n usage.
8062 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
8063 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
8064 * config/nios2/nios2.md (return): Use nios2_expand_return.
8065
8066 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8067 Cesar Philippidis <cesar@codesourcery.com>
8068 Chung-Lin Tang <cltang@codesourcery.com>
8069
8070 * config/nios2/predicates.md (pop_operation): New.
8071 (ldwm_operation, stwm_operation): New.
8072 (nios2_hard_register_operand): New.
8073 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
8074 (ldstwm_operation_p): Declare.
8075 (gen_ldstwm_peep): Declare.
8076 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
8077 (base_reg_adjustment_p): New.
8078 (pop_operation_p): New.
8079 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
8080 (nios2_ldstwm_regset_p): New.
8081 (ldstwm_operation_p): New.
8082 (gen_ldst): New.
8083 (nios2_ldst_parallel): New.
8084 (struct ldswm_operand): Declare.
8085 (compare_ldstwm_operands): New.
8086 (can_use_cdx_ldstw): New.
8087 (gen_ldstwm_peep): New.
8088 * config/nios2/nios2-ldstwm.sml: New.
8089 * config/nios2/nios2.md: Include ldstwm.md.
8090 * config/nios2/ldstwm.md: Generated.
8091
8092 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8093 Cesar Philippidis <cesar@codesourcery.com>
8094 Chung-Lin Tang <cltang@codesourcery.com>
8095
8096 * config/nios2/nios2.h (LABEL_ALIGN): Define.
8097 (REG_ALLOC_ORDER): Define.
8098 (ADJUST_REG_ALLOC_ORDER): Define.
8099 (HONOR_REG_ALLOC_ORDER): Define.
8100 (CDX_REG_P): Define.
8101 (ANDCLEAR_INT): Define.
8102 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
8103 (nios2_label_align): Declare.
8104 (nios2_cdx_narrow_form_p): Declare.
8105 (nios2_adjust_reg_alloc_order): Declare.
8106 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
8107 operation.
8108 (nios2_large_unspec_reloc_p): New function, split from...
8109 (nios2_legitimate_pic_operand_p): ...here.
8110 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
8111 (nios2_print_operand_punct_valid_p): New.
8112 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
8113 (split_mem_address): New.
8114 (split_alu_insn): New.
8115 (cdxreg): New.
8116 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
8117 (enum nios2_add_insn_kind): New.
8118 (nios2_add_insn_names, nios2_add_insn_narrow): New.
8119 (nios2_add_insn_classify): New.
8120 (nios2_add_insn_asm): New.
8121 (nios2_cdx_narrow_form_p): New.
8122 (label_align, min_labelno, max_labelno): New.
8123 (nios2_reorg): New.
8124 (nios2_label_align): New.
8125 (nios2_adjust_reg_alloc_order): New.
8126 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8127 (TARGET_MACHINE_DEPENDENT_REORG): Define.
8128 * config/nios2/constraints.md (P): New constraint.
8129 * config/nios2/predicates.md (const_and_operand): New.
8130 (and_operand): New.
8131 (stack_memory_operand): New.
8132 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
8133 (length): Update to use nios2_cdx_narrow_form_p().
8134 (type): Add new insn type values.
8135 (control, alu, st, ld, shift): Update insn reservations with
8136 new insn type values.
8137 (*high, *lo_sum): Define new insn patterns for constant generation.
8138 (movqi_internal, movhi_internal, movsi_internal): Reduce
8139 alternatives, update asm template to handle CDX variants, update
8140 type attributes.
8141 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
8142 template, update type attributes.
8143 (extendhisi2, extendqi<mode>2): Likewise.
8144 (addsi3): Change to use function for asm string.
8145 (subsi3): Add CDX notation to asm template, update type attributes.
8146 (negsi3, one_cmplsi3): Likewise.
8147 (andsi3): New pattern, specialized from logical patterns.
8148 (<code>si3): Remove and case, combine alternatives, update asm
8149 template.
8150 (<shift_op>si3): Add CDX notation, update type attributes.
8151 (rotrsi3): Update type attribute.
8152 (*merge, extzv, insv): New insn patterns.
8153 (return): Change to define_expand.
8154 (simple_return): Add CDX notation, update type attributes.
8155 (indirect_jump): Add CDX notation.
8156 (jump): Update asm cases, update length attribute expression.
8157 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
8158 (nios2_cbranch): Update asm cases and length attribute expression
8159 to handle CDX variants.
8160 (nios2_cmp<code>): Update asm template.
8161 (nop): Add CDX notation, update type attributes.
8162 (trap): Add CDX notation.
8163 (ctrapsi4): Update asm cases and length attribute expression to
8164 handle CDX variant.
8165 * doc/md.texi (Machine Constraints): Document P constraint.
8166
8167 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8168 Cesar Philippidis <cesar@codesourcery.com>
8169 Chung-Lin Tang <cltang@codesourcery.com>
8170
8171 * config/nios2/nios2.h (SMALL_INT12): New macro.
8172 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
8173 (nios2_valid_addr_expr_p): Use it.
8174 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
8175 with implicit "io" instructions on R2.
8176 * config/nios2/constraints.md (w): New constraint.
8177 * config/nios2/predicates.md (ldstio_memory_operand): New.
8178 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
8179 operand predicate and constraint.
8180 (ld<bh>io_signed, st<bhw>io>): Likewise.
8181 * doc/md.texi (Machine Constraints): Document w constraint.
8182
8183 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8184 Cesar Philippidis <cesar@codesourcery.com>
8185 Chung-Lin Tang <cltang@codesourcery.com>
8186
8187 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
8188 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
8189 Nios II architecture level.
8190 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
8191 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
8192 (OPTION_DEFAULT_SPECS): Define.
8193 (ASM_SPEC): Add -march= spec strings.
8194 * config/nios2/nios2.c (nios2_option_override): Check for
8195 conflicts involving new options.
8196 * config.gcc (nios2*-*-*): Support --with-arch=.
8197 * doc/invoke.texi (Option Summary, Nios II Options): Document
8198 -march=, -mbmx, and -mcdx.
8199
8200 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
8201
8202 PR rtl-optimization/66626
8203 * lra-constraints.c (lra_constraints): Prevent equivalence
8204 substitution for static chain pseudo in functions with nonlocal
8205 goto.
8206
8207 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
8208
8209 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
8210 (nios2_emit_stack_limit_check): Add size parameter. Handle
8211 -fstack-limit-symbol as well as -fstack-limit-register.
8212 (nios2_expand_prologue): Emit only a single stack limit check,
8213 even if multiple stack adjustments are required.
8214 (nios2_option_override): Diagnose unsupported combination of -fpic
8215 and -stack-limit-symbol.
8216
8217 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
8218
8219 * Makefile.in (top_srcdir): New.
8220 * configure.ac: Use AM_ZLIB.
8221 * configure: Regeneated.
8222
8223 2015-07-14 Matthias Klose <doko@ubuntu.com>
8224
8225 PR target/66840
8226 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
8227
8228 2015-07-14 Richard Biener <rguenther@suse.de>
8229
8230 PR tree-optimization/66863
8231 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
8232 what we record for conversion use stmt lhs inequalities.
8233
8234 2015-07-14 Richard Biener <rguenther@suse.de>
8235
8236 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
8237 (decision_tree::gen_gimple): Likewise.
8238
8239 2015-07-14 Tom de Vries <tom@codesourcery.com>
8240
8241 * gcc.c (greater_than_spec_func): Declare forward.
8242 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
8243 -ftree-parallelize-loops={0,1}.
8244 (static_spec_functions): Add greater_than_spec_func function with name
8245 "gt".
8246 (greater_than_spec_func): New function.
8247
8248 2015-07-14 Richard Biener <rguenther@suse.de>
8249
8250 * tree-ssa-dom.c (record_temporary_equivalences): Merge
8251 wideing type conversion case from record_equivalences_from_incoming_edge
8252 and use record_equality to record equivalences.
8253 (record_equivalences_from_incoming_edge): Call
8254 record_temporary_equivalences.
8255
8256 2015-07-14 Richard Biener <rguenther@suse.de>
8257
8258 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
8259 (struct if_expr): New.
8260 (struct with_expr): Likewise.
8261 (is_a_helper): Add helpers for if_expr and with_expr.
8262 (struct simplify): Add simplify_kind enum and member. Remove
8263 ifexpr_vec member.
8264 (simplify::simplify): Adjust.
8265 (lower_commutative): Adjust.
8266 (lower_opt_convert): Likewise.
8267 (lower_cond): Likewise.
8268 (replace_id): Handle with_expr and if_expr.
8269 (lower_for): Adjust.
8270 (dt_simplify::gen_1): New recursive worker, split out from ...
8271 (dt_simplify::gen): ... here. Deal with if and with expansion
8272 recursively.
8273 (capture_info::capture_info): Take context argument
8274 (capture_info::walk_result): Only analyze specific result.
8275 (parser::parse_result): New function.
8276 (parser::parse_simplify): Adjust to parse ifs with then end
8277 else case.
8278 (parser::parse_if): Simplify.
8279 (parser::parse_pattern): Pass down simplify kind.
8280 * match.pd: Convert if structure to new syntax.
8281
8282 2015-07-13 Marek Polacek <polacek@redhat.com>
8283
8284 * rtl.c (rtx_equal_p_cb): Fix typo.
8285
8286 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
8287
8288 * omega.h: Don't include config.h, don't include params.h again if
8289 omega.h has already been included.
8290 * graphite-poly.h: Include sese.h.
8291 * graphite.c: Don't include sese.h, remove needless includes and
8292 minimize includes outside #ifdef HAVE_isl block.
8293 * graphite-blocking.c: Don't include sese.h, remove needless includes,
8294 and wrap entire file in #ifdef HAVE_isl
8295 * graphite-dependences.c: Likewise.
8296 * graphite-interchange.c: Likewise.
8297 * graphite-isl-ast-to-gimple.c: Likewise.
8298 * graphite-optimize-isl.c: Likewise.
8299 * graphite-poly.c: Likewise.
8300 * graphite-scop-detection.c: Likewise.
8301 * graphite-sese-to-poly.c: Likewise.
8302
8303 2015-07-13 Tom de Vries <tom@codesourcery.com>
8304
8305 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
8306
8307 2015-07-13 Renlin Li <renlin.li@arm.com>
8308
8309 PR rtl/66556
8310 * simplify-rtx.c (simplify_const_relational_operation): Add
8311 side_effects_p checks.
8312
8313 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
8314
8315 * bitmap.h: Fix double word typos.
8316 * builtins.c: Same.
8317 * calls.c: Same.
8318 * cfgloopmanip.c: Same.
8319 * cgraph.c: Same.
8320 * cgraph.h: Same.
8321 * cgraphclones.c: Same.
8322 * combine.c: Same.
8323 * config/aarch64/aarch64-protos.h: Same.
8324 * config/aarch64/aarch64.c: Same.
8325 * config/aarch64/aarch64.md: Same.
8326 * config/arm/arm.md: Same.
8327 * config/arm/arm1020e.md: Same.
8328 * config/arm/arm1026ejs.md: Same.
8329 * config/arm/arm926ejs.md: Same.
8330 * config/arm/fa526.md: Same.
8331 * config/arm/fa606te.md: Same.
8332 * config/arm/fa626te.md: Same.
8333 * config/arm/fa726te.md: Same.
8334 * config/arm/fmp626.md: Same.
8335 * config/darwin.c: Same.
8336 * config/epiphany/epiphany.c: Same.
8337 * config/frv/frv.c: Same.
8338 * config/ft32/ft32.c: Same.
8339 * config/gnu-user.h: Same.
8340 * config/h8300/constraints.md: Same.
8341 * config/i386/i386.c: Same.
8342 * config/i386/i386.md: Same.
8343 * config/iq2000/iq2000.md: Same.
8344 * config/mips/mips.c: Same.
8345 * config/mmix/mmix.md: Same.
8346 * config/moxie/moxie.c: Same.
8347 * config/nds32/nds32.md: Same.
8348 * config/pa/pa.h: Same.
8349 * config/rs6000/aix.h: Same.
8350 * config/rs6000/rs6000.h: Same.
8351 * config/sh/sh.c: Same.
8352 * config/tilegx/tilegx.md: Same.
8353 * config/tilepro/gen-mul-tables.cc: Same.
8354 * cse.c: Same.
8355 * dbxout.c: Same.
8356 * doc/invoke.texi: Same.
8357 * dse.c: Same.
8358 * dwarf2out.c: Same.
8359 * final.c: Same.
8360 * gcc.c: Same.
8361 * genmatch.c: Same.
8362 * gimplify.c: Same.
8363 * hash-table.h: Same.
8364 * internal-fn.c: Same.
8365 * ipa-cp.c: Same.
8366 * ipa-devirt.c: Same.
8367 * ipa-icf.c: Same.
8368 * ipa-icf.h: Same.
8369 * ipa-profile.c: Same.
8370 * ipa-prop.c: Same.
8371 * ipa-prop.h: Same.
8372 * ira.c: Same.
8373 * omp-low.c: Same.
8374 * reg-stack.c: Same.
8375 * regcprop.c: Same.
8376 * reorg.c: Same.
8377 * rtl.h: Same.
8378 * sbitmap.h: Same.
8379 * tree-eh.c: Same.
8380 * tree-inline.c: Same.
8381 * tree-sra.c: Same.
8382 * tree-ssa-dom.c: Same.
8383 * tree-ssa-loop-ivopts.c: Same.
8384 * tree-ssa-structalias.c: Same.
8385 * tree-ssa-tail-merge.c: Same.
8386 * tree-ssa-ter.c: Same.
8387 * tree-ssa-threadupdate.c: Same.
8388 * tree-ssa-uninit.c: Same.
8389 * tree-ssanames.c: Same.
8390 * tree-vect-loop-manip.c: Same.
8391 * tree-vrp.c: Same.
8392 * tree.c: Same.
8393 * valtrack.c: Same.
8394 * vec.h: Same.
8395
8396 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
8397
8398 PR middle-end/66726
8399 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
8400 tree_ssa_phiopt_worker): Call it.
8401
8402 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
8403
8404 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
8405 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
8406 REG_EQUAL note.
8407
8408 2015-07-11 Marek Polacek <polacek@redhat.com>
8409
8410 PR middle-end/66353
8411 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
8412 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
8413 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
8414 rather than bb_has_abnormal_call_pred.
8415 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
8416 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
8417 rather than bb_has_abnormal_call_pred.
8418
8419 2015-07-10 Anatoly Sokolov <aesok@post.ru>
8420
8421 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
8422 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
8423 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
8424 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
8425 v850_legitimate_address_p): New functions.
8426 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
8427
8428 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
8429
8430 PR target/66819
8431 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
8432 indirect sibcall with register arguments if register available
8433 for argument passing.
8434 (init_cumulative_args): Set cfun->machine->arg_reg_available
8435 to (cum->nregs > 0) or to true if function has a variable
8436 argument list.
8437 (function_arg_advance_32): Set cfun->machine->arg_reg_available
8438 to false if cum->nregs <= 0.
8439 * config/i386/i386.h (machine_function): Add arg_reg_available.
8440
8441 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
8442
8443 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
8444 and gen_higpart instead of gen_rtx_SUBREG.
8445 * config/i386/i386.md
8446 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
8447 (read-modify peephole2): Use gen_lowpart instead of
8448 gen_rtx_SUBREG for operand 5.
8449
8450 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
8451
8452 * config/tilepro/gen-mul-tables.cc (main): Change include list for
8453 generated files.
8454 * config/tilepro/mul-tables.c: Regenerate.
8455 * config/tilegx/mul-tables.c: Regenerate.
8456
8457 2015-07-10 Richard Biener <rguenther@suse.de>
8458
8459 * fold-const.c (distribute_bit_expr): Remove.
8460 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
8461 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
8462 to A & (B | C) and simplifying A << C1 << C2 to ...
8463 * match.pd: ... patterns here.
8464
8465 2015-07-10 Jiong Wang <jiong.wang@arm.com>
8466
8467 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
8468 Mark mem as READONLY and NOTRAP for PIC symbol.
8469
8470 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
8471
8472 * gimple-predict.h: New file.
8473 (gimple_predict_predictor, gimple_predict_set_predictor,
8474 gimple_predict_outcome, gimple_predict_set_outcome,
8475 gimple_build_predict): Relocate here.
8476 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
8477 gimple_predict_outcome, gimple_predict_set_outcome): Move to
8478 gimple-predict.h.
8479 * gimple.c (gimple_build_predict): Move to gimple-predict.h
8480 * basic-block.h: Don't include cfghooks.h.
8481 * backend.h: Don't include predict.h.
8482 * cfghooks.h: Include predict.h.
8483 * gimple-pretty-print.c: Include gimple-predict.h.
8484 * gimplify.c: Likwise.
8485 * predict.c: Adjust includes.
8486 * tree-inline.c: Likewise.
8487 * asan.c: Likewise.
8488 * auto-inc-dec.c: Likewise.
8489 * auto-profile.c: Likewise.
8490 * bb-reorder.c: Likewise.
8491 * builtins.c: Likewise.
8492 * caller-save.c: Likewise.
8493 * calls.c: Likewise.
8494 * cfganal.c: Likewise.
8495 * cfgbuild.c: Likewise.
8496 * cfg.c: Likewise.
8497 * cfgcleanup.c: Likewise.
8498 * cfgexpand.c: Likewise.
8499 * cfghooks.c: Likewise.
8500 * cfgloopanal.c: Likewise.
8501 * cfgloop.c: Likewise.
8502 * cfgloopmanip.c: Likewise.
8503 * cfgrtl.c: Likewise.
8504 * cgraph.c: Likewise.
8505 * cgraphunit.c: Likewise.
8506 * combine.c: Likewise.
8507 * cprop.c: Likewise.
8508 * cse.c: Likewise.
8509 * dce.c: Likewise.
8510 * dojump.c: Likewise.
8511 * dse.c: Likewise.
8512 * except.c: Likewise.
8513 * expmed.c: Likewise.
8514 * expr.c: Likewise.
8515 * final.c: Likewise.
8516 * fold-const.c: Likewise.
8517 * function.c: Likewise.
8518 * fwprop.c: Likewise.
8519 * gcc-plugin.h: Likewise.
8520 * gcse.c: Likewise.
8521 * genattrtab.c: Likewise.
8522 * genemit.c: Likewise.
8523 * gengtype.c: Likewise.
8524 * genopinit.c: Likewise.
8525 * genoutput.c: Likewise.
8526 * genpreds.c: Likewise.
8527 * genrecog.c: Likewise.
8528 * gimple-fold.c: Likewise.
8529 * gimple-iterator.c: Likewise.
8530 * gimple-ssa-isolate-paths.c: Likewise.
8531 * gimple-ssa-strength-reduction.c: Likewise.
8532 * graph.c: Likewise.
8533 * graphite-blocking.c: Likewise.
8534 * graphite.c: Likewise.
8535 * graphite-dependences.c: Likewise.
8536 * graphite-interchange.c: Likewise.
8537 * graphite-isl-ast-to-gimple.c: Likewise.
8538 * graphite-optimize-isl.c: Likewise.
8539 * graphite-poly.c: Likewise.
8540 * graphite-scop-detection.c: Likewise.
8541 * graphite-sese-to-poly.c: Likewise.
8542 * haifa-sched.c: Likewise.
8543 * ifcvt.c: Likewise.
8544 * internal-fn.c: Likewise.
8545 * ipa-cp.c: Likewise.
8546 * ipa-profile.c: Likewise.
8547 * ipa-split.c: Likewise.
8548 * ipa-utils.c: Likewise.
8549 * ira-build.c: Likewise.
8550 * ira-color.c: Likewise.
8551 * ira-conflicts.c: Likewise.
8552 * ira-costs.c: Likewise.
8553 * ira-emit.c: Likewise.
8554 * ira-lives.c: Likewise.
8555 * jump.c: Likewise.
8556 * loop-doloop.c: Likewise.
8557 * loop-init.c: Likewise.
8558 * loop-invariant.c: Likewise.
8559 * loop-unroll.c: Likewise.
8560 * lower-subreg.c: Likewise.
8561 * lra-assigns.c: Likewise.
8562 * lra.c: Likewise.
8563 * lra-coalesce.c: Likewise.
8564 * lra-constraints.c: Likewise.
8565 * lra-lives.c: Likewise.
8566 * lto-cgraph.c: Likewise.
8567 * lto-streamer-in.c: Likewise.
8568 * mode-switching.c: Likewise.
8569 * modulo-sched.c: Likewise.
8570 * omp-low.c: Likewise.
8571 * optabs.c: Likewise.
8572 * passes.c: Likewise.
8573 * postreload.c: Likewise.
8574 * postreload-gcse.c: Likewise.
8575 * profile.c: Likewise.
8576 * recog.c: Likewise.
8577 * regstat.c: Likewise.
8578 * reload1.c: Likewise.
8579 * reorg.c: Likewise.
8580 * rtlanal.c: Likewise.
8581 * sched-ebb.c: Likewise.
8582 * sel-sched-ir.c: Likewise.
8583 * sese.c: Likewise.
8584 * shrink-wrap.c: Likewise.
8585 * simplify-rtx.c: Likewise.
8586 * stmt.c: Likewise.
8587 * store-motion.c: Likewise.
8588 * tracer.c: Likewise.
8589 * trans-mem.c: Likewise.
8590 * tree-call-cdce.c: Likewise.
8591 * tree-cfg.c: Likewise.
8592 * tree-cfgcleanup.c: Likewise.
8593 * tree-chkp.c: Likewise.
8594 * tree-complex.c: Likewise.
8595 * tree-eh.c: Likewise.
8596 * tree-if-conv.c: Likewise.
8597 * tree-loop-distribution.c: Likewise.
8598 * tree-outof-ssa.c: Likewise.
8599 * tree-parloops.c: Likewise.
8600 * tree-predcom.c: Likewise.
8601 * tree-pretty-print.c: Likewise.
8602 * tree-profile.c: Likewise.
8603 * tree-sra.c: Likewise.
8604 * tree-ssa.c: Likewise.
8605 * tree-ssa-coalesce.c: Likewise.
8606 * tree-ssa-dce.c: Likewise.
8607 * tree-ssa-dom.c: Likewise.
8608 * tree-ssa-forwprop.c: Likewise.
8609 * tree-ssa-ifcombine.c: Likewise.
8610 * tree-ssa-loop-ch.c: Likewise.
8611 * tree-ssa-loop-im.c: Likewise.
8612 * tree-ssa-loop-ivcanon.c: Likewise.
8613 * tree-ssa-loop-ivopts.c: Likewise.
8614 * tree-ssa-loop-manip.c: Likewise.
8615 * tree-ssa-loop-prefetch.c: Likewise.
8616 * tree-ssa-loop-unswitch.c: Likewise.
8617 * tree-ssa-math-opts.c: Likewise.
8618 * tree-ssa-phiopt.c: Likewise.
8619 * tree-ssa-pre.c: Likewise.
8620 * tree-ssa-reassoc.c: Likewise.
8621 * tree-ssa-sink.c: Likewise.
8622 * tree-ssa-tail-merge.c: Likewise.
8623 * tree-ssa-threadedge.c: Likewise.
8624 * tree-ssa-threadupdate.c: Likewise.
8625 * tree-switch-conversion.c: Likewise.
8626 * tree-tailcall.c: Likewise.
8627 * tree-vect-data-refs.c: Likewise.
8628 * tree-vect-loop.c: Likewise.
8629 * tree-vect-loop-manip.c: Likewise.
8630 * tree-vectorizer.c: Likewise.
8631 * tree-vrp.c: Likewise.
8632 * ubsan.c: Likewise.
8633 * value-prof.c: Likewise.
8634 * varasm.c: Likewise.
8635 * var-tracking.c: Likewise.
8636 * config/aarch64/aarch64-builtins.c: Likewise.
8637 * config/aarch64/aarch64.c: Likewise.
8638 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8639 * config/alpha/alpha.c: Likewise.
8640 * config/arc/arc.c: Likewise.
8641 * config/arm/arm.c: Likewise.
8642 * config/avr/avr.c: Likewise.
8643 * config/bfin/bfin.c: Likewise.
8644 * config/c6x/c6x.c: Likewise.
8645 * config/cr16/cr16.c: Likewise.
8646 * config/cris/cris.c: Likewise.
8647 * config/darwin.c: Likewise.
8648 * config/darwin-c.c: Likewise.
8649 * config/epiphany/epiphany.c: Likewise.
8650 * config/epiphany/mode-switch-use.c: Likewise.
8651 * config/epiphany/resolve-sw-modes.c: Likewise.
8652 * config/fr30/fr30.c: Likewise.
8653 * config/frv/frv.c: Likewise.
8654 * config/ft32/ft32.c: Likewise.
8655 * config/h8300/h8300.c: Likewise.
8656 * config/i386/i386.c: Likewise.
8657 * config/i386/winnt.c: Likewise.
8658 * config/ia64/ia64.c: Likewise.
8659 * config/iq2000/iq2000.c: Likewise.
8660 * config/lm32/lm32.c: Likewise.
8661 * config/m32c/m32c.c: Likewise.
8662 * config/m32r/m32r.c: Likewise.
8663 * config/m68k/m68k.c: Likewise.
8664 * config/mcore/mcore.c: Likewise.
8665 * config/mep/mep.c: Likewise.
8666 * config/microblaze/microblaze.c: Likewise.
8667 * config/mips/mips.c: Likewise.
8668 * config/mmix/mmix.c: Likewise.
8669 * config/mn10300/mn10300.c: Likewise.
8670 * config/moxie/moxie.c: Likewise.
8671 * config/msp430/msp430.c: Likewise.
8672 * config/nds32/nds32.c: Likewise.
8673 * config/nds32/nds32-cost.c: Likewise.
8674 * config/nds32/nds32-fp-as-gp.c: Likewise.
8675 * config/nds32/nds32-intrinsic.c: Likewise.
8676 * config/nds32/nds32-isr.c: Likewise.
8677 * config/nds32/nds32-md-auxiliary.c: Likewise.
8678 * config/nds32/nds32-memory-manipulation.c: Likewise.
8679 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8680 * config/nds32/nds32-predicates.c: Likewise.
8681 * config/nios2/nios2.c: Likewise.
8682 * config/nvptx/nvptx.c: Likewise.
8683 * config/pa/pa.c: Likewise.
8684 * config/pdp11/pdp11.c: Likewise.
8685 * config/rl78/rl78.c: Likewise.
8686 * config/rs6000/rs6000.c: Likewise.
8687 * config/rx/rx.c: Likewise.
8688 * config/s390/s390.c: Likewise.
8689 * config/sh/sh.c: Likewise.
8690 * config/sh/sh-mem.cc: Likewise.
8691 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8692 * config/sh/sh_treg_combine.cc: Likewise.
8693 * config/sparc/sparc.c: Likewise.
8694 * config/spu/spu.c: Likewise.
8695 * config/stormy16/stormy16.c: Likewise.
8696 * config/tilegx/tilegx.c: Likewise.
8697 * config/tilepro/tilepro.c: Likewise.
8698 * config/v850/v850.c: Likewise.
8699 * config/vax/vax.c: Likewise.
8700 * config/visium/visium.c: Likewise.
8701 * config/xtensa/xtensa.c: Likewise.
8702
8703 2015-07-10 Richard Biener <rguenther@suse.de>
8704
8705 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
8706 (decision_tree::gen_gimple): Likewise.
8707 (decision_tree::gen_generic): Likewise.
8708
8709 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
8710
8711 PR target/66813
8712 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
8713 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
8714
8715 2015-07-10 Jakub Jelinek <jakub@redhat.com>
8716
8717 PR middle-end/66820
8718 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
8719 or ORT_TASK contexts.
8720 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
8721 is non-zero.
8722
8723 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8724
8725 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
8726 above function.
8727
8728 2015-07-10 Tom de Vries <tom@codesourcery.com>
8729
8730 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
8731 insert nit + 1 bound.
8732
8733 2015-07-10 Richard Biener <rguenther@suse.de>
8734
8735 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
8736 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
8737 (if_convertible_loop_p_1): For this always compute bb predicates.
8738 (if_convertible_loop_p): And free them.
8739
8740 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8741
8742 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
8743 in dump message.
8744
8745 2015-07-10 Richard Biener <rguenther@suse.de>
8746
8747 PR tree-optimization/66823
8748 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
8749 inverted predicate.
8750
8751 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
8752
8753 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
8754 to handle mips[32|64]r3 and mips[32|64]r5.
8755
8756 2015-07-09 Jakub Jelinek <jakub@redhat.com>
8757
8758 PR middle-end/66633
8759 * tree-nested.c (get_static_chain): Or in a flag into
8760 info->static_chain_added.
8761 (get_frame_field, get_nonlocal_debug_decl): Likewise.
8762 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
8763 2015-07-01 changes.
8764 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
8765 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
8766 add it to clauses.
8767
8768 PR tree-optimization/66718
8769 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
8770 field.
8771 (vect_simd_lane_linear): New function.
8772 (vectorizable_simd_clone_call): Support using linear arguments for
8773 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
8774
8775 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
8776
8777 PR target/66821
8778 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
8779
8780 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
8781
8782 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
8783 Use machine mode, not enum machine_mode in the prototype.
8784
8785 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
8786 classify 128-bit floating point support.
8787 (FLOAT128_IBM_P): Likewise.
8788 (FLOAT128_VECTOR_P): Likewise.
8789 (FLOAT128_2REG_P): Likewise.
8790 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
8791 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
8792 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8793 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
8794
8795 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
8796 tests against TFmode/TDmode, since those modes do not use VSX
8797 addresses.
8798 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
8799 support.
8800 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
8801 tests against TFmode, etc.
8802 (invalid_e500_subreg): Add tests against IFmode/KFmode.
8803 (reg_offset_addressing_ok_p): Likewise.
8804 (rs6000_legitimate_offset_address_p): Likewise.
8805 (rs6000_legitimize_address): Likewise.
8806 (rs6000_legitimize_reload_address): Likewise.
8807 (rs6000_legitimate_address_p): Clean up tests against TFmode and
8808 TDmode to use the new helper macros, which will include IFmode and
8809 KFmode.
8810 (rs6000_emit_move): Likewise.
8811 (rs6000_darwin64_record_arg_recurse): Likewise.
8812 (print_operand): Likewise.
8813 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
8814 that uses a single vector register as a vector and not as a
8815 floating point register in terms of the calling sequence.
8816 (rs6000_discover_homogeneous_aggregate): Likewise.
8817 (rs6000_return_in_memory): Likewise.
8818 (init_cumulative_args): Likewise.
8819 (rs6000_function_arg_boundary): Likewise.
8820 (rs6000_function_arg_advance_1): Likewise.
8821 (rs6000_function_arg): Likewise.
8822 (rs6000_pass_by_reference): Likewise.
8823 (rs6000_gimplify_va_arg): Likewise.
8824 (rs6000_secondary_reload_memory): Use machine_mode not enum
8825 machine mode.
8826 (rs6000_split_multireg_move): Use new helper macros.
8827 (spe_func_has_64bit_regs_p): Likewise.
8828 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
8829 (output_toc): Use new helper macros.
8830 (rs6000_register_move_cost): Likewise.
8831 (rs6000_function_value): Add IEEE 128-bit floating point calling
8832 sequence support.
8833 (rs6000_libcall_value): Likewise.
8834 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
8835 floating point support.
8836 (rs6000_vector_mode_supported_p): Likewise.
8837
8838 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
8839
8840 PR rtl-optimization/66782
8841 * lra-int.h (struct lra_insn_recog_data): Add comment about
8842 clobbered hard regs for arg_hard_regs.
8843 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
8844 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
8845 Add condition for processing used hard regs.
8846 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
8847 Process clobbered hard regs.
8848
8849 2015-07-09 Michael Matz <matz@suse.de>
8850
8851 * genmatch.c (fprintf_indent): New function.
8852 (operand::gen_transform): Add indent parameter.
8853 (expr::gen_transform, c_expr::gen_transform,
8854 capture::gen_transform): Ditto and use fprintf_indent.
8855 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
8856 (dt_operand::gen, dt_operand::gen_predicate,
8857 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
8858 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
8859 (decision_tree::gen_gimple): Adjust calls and indent generated
8860 code.
8861 (decision_tree::gen_generic): Ditto.
8862 (write_predicate): Ditto.
8863
8864 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
8865
8866 PR target/66814
8867 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
8868 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
8869 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
8870 {GENERAL,SSE,MMX}_REG_P where appropriate.
8871
8872 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
8873
8874 * lto-streamer.h: Don't include target.h and alloc-pool.h.
8875 * builtins.c: Adjust includes.
8876 * gimple.c: Likewise.
8877 * ipa-icf.c: Likewise.
8878 * lto-opts.c: Likewise.
8879 * ipa-reference.c: Likewise.
8880 * lto-section-out.c: Likewise.
8881 * lto-streamer-in.c: Likewise.
8882 * lto-streamer-out.c: Likewise.
8883 * opts-global.c: Likewise.
8884 * symtab.c: Likewise.
8885 * tree-chkp.c: Likewise.
8886 * tree-ssa-live.c: Likewise.
8887 * tree-streamer-in.c: Likewise.
8888 * tree-streamer-out.c: Likewise.
8889 * config/darwin.c: Likewise.
8890 * config/i386/winnt.c: Likewise.
8891
8892 2015-07-09 Richard Biener <rguenther@suse.de>
8893
8894 * genmatch.c (struct expr): Add force_single_use flag.
8895 (expr::expr): Add copy constructor.
8896 (capture_info::walk_match): Gather force_single_use captures.
8897 (expr::gen_transform): Use possibly NULLified sequence.
8898 (dt_simplify::gen): Apply single-use restrictions by NULLifying
8899 seq if any constrained expr is not single-use.
8900 (parser::parse_expr): Refactor to allow multiple flags. Handle
8901 's' flag to force an expression have a single-use if the pattern
8902 simplifies to more than one statement.
8903 * match.pd: Convert most single_use conditionals to :s flags.
8904
8905 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
8906
8907 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
8908 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
8909 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
8910
8911 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
8912
8913 * flags.h: Don't include flag-types.h or options.h.
8914 * opts-common.c: Adjust includes.
8915 * opts-global.c: Likewise.
8916 * common/config/epiphany/epiphany-common.c: Likewise.
8917
8918 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
8919
8920 PR target/66818
8921 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
8922 for IA MCU.
8923
8924 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
8925
8926 PR target/66817
8927 * config/i386/i386.c (ix86_return_in_memory): Return true
8928 if int_size_in_bytes returns negative for IA MCU.
8929
8930 2015-07-09 Marek Polacek <polacek@redhat.com>
8931
8932 PR tree-optimization/66718
8933 * Makefile.in (OBJS): Add gimple-laddress.o.
8934 * passes.def: Schedule pass_laddress.
8935 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
8936 * tree-pass.h (make_pass_laddress): Declare.
8937 * gimple-laddress.c: New file.
8938
8939 2015-07-09 Richard Biener <rguenther@suse.de>
8940
8941 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
8942
8943 2015-07-09 Richard Biener <rguenther@suse.de>
8944
8945 PR tree-optimization/66807
8946 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
8947
8948 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
8949
8950 * function.c (stack_protect_epilogue): Use if rather than switch for
8951 check targetm.have_stack_protect_test.
8952
8953 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8954
8955 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
8956 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
8957 * config/arc/arc.h: Likewise.
8958 * config/arm/arm.h: Likewise.
8959 * config/bfin/bfin.h: Likewise.
8960 * config/epiphany/epiphany.h: Likewise.
8961 * config/frv/frv.h: Likewise.
8962 * config/ia64/ia64.h: Likewise.
8963 * config/iq2000/iq2000.h: Likewise.
8964 * config/lm32/lm32.h: Likewise.
8965 * config/m32r/m32r.h: Likewise.
8966 * config/mcore/mcore.h: Likewise.
8967 * config/mep/mep.h: Likewise.
8968 * config/microblaze/microblaze.h: Likewise.
8969 * config/mips/mips.h: Likewise.
8970 * config/mmix/mmix.h: Likewise.
8971 * config/mn10300/mn10300.h: Likewise.
8972 * config/nds32/nds32.h: Likewise.
8973 * config/nios2/nios2.h: Likewise.
8974 * config/pa/pa.h: Likewise.
8975 * config/rl78/rl78.h: Likewise.
8976 * config/sh/sh.h: Likewise.
8977 * config/sparc/sparc.h: Likewise.
8978 * config/stormy16/stormy16.h: Likewise.
8979 * config/tilegx/tilegx.h: Likewise.
8980 * config/tilepro/tilepro.h: Likewise.
8981 * config/v850/v850.h: Likewise.
8982 * config/xtensa/xtensa.h: Likewise.
8983 * doc/tm.texi: Regenerate.
8984 * doc/tm.texi.in: Adjust.
8985 * combine.c (simplify_set): Likewise.
8986 (simplify_comparison): Likewise.
8987 * expr.c (store_constructor): Likewise.
8988 * internal-fn.c (expand_arith_overflow): Likewise.
8989 * reload.c (push_reload): Likewise.
8990 (find_reloads): Likewise.
8991 (find_reloads_subreg_address): Likewise.
8992 * reload1.c (eliminate_regs_1): Likewise.
8993 * rtlanal.c (nonzero_bits1): Likewise.
8994 (num_sign_bit_copies1): Likewise.
8995 * simplify-rtx.c (simplify_truncation): Likewise.
8996
8997 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8998
8999 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
9000 of AUTO_INC_DEC with the preprocessor.
9001 * combine.c (combine_instructions): Likewise.
9002 (can_combine_p): Likewise.
9003 (try_combine): Likewise.
9004 * emit-rtl.c (try_split): Likewise.
9005 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
9006 * lower-subreg.c (resolve_simple_move): Likewise.
9007 * lra.c (update_inc_notes): Likewise.
9008 * recog.c (asm_operand_ok): Likewise.
9009 (constrain_operands): Likewise.
9010 * regrename.c (scan_rtx_address): Likewise.
9011 * reload.c (update_auto_inc_notes): Likewise.
9012 (reg_inc_found_and_valid_p): Likewise.
9013 * reload1.c (reload): Likewise.
9014 (emit_input_reload_insns): Likewise.
9015 (delete_output_reload): Likewise.
9016 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
9017 * valtrack.c (cleanup_auto_inc_dec): Likewise.
9018
9019 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9020
9021 * rtl.h: Always define AUTO_INC_DEC.
9022 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
9023 * combine.c (combine_instructions): Likewise.
9024 (can_combine_p): Likewise.
9025 (try_combine): Likewise.
9026 * emit-rtl.c (try_split): Likewise.
9027 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
9028 * lower-subreg.c (resolve_simple_move): Likewise.
9029 * lra.c (update_inc_notes): Likewise.
9030 * recog.c (asm_operand_ok): Likewise.
9031 (constrain_operands): Likewise.
9032 * regrename.c (scan_rtx_address): Likewise.
9033 * reload.c (update_auto_inc_notes): Likewise.
9034 (find_equiv_reg): Likewise.
9035 * reload1.c (reload): Likewise.
9036 (reload_as_needed): Likewise.
9037 (choose_reload_regs): Likewise.
9038 (emit_input_reload_insns): Likewise.
9039 (delete_output_reload): Likewise.
9040 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
9041 * valtrack.c (cleanup_auto_inc_dec): Likewise.
9042
9043 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9044
9045 * combine.c (can_combine_def_p): Don't check the value of
9046 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
9047 (combinable_i3pat): Likewise.
9048 (mark_used_regs_combine): Likewise.
9049 * regrename.c (rename_chains): Likewise.
9050 * reload.c (find_reloads_address): Likewise.
9051 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9052
9053 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9054
9055 * combine.c (update_rsp_from_reg_equal): Don't check if
9056 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
9057 (reg_nonzero_bits_for_combine): Likewise.
9058 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
9059 1.
9060 * config/frv/frv.h: Likewise.
9061 * config/lm32/lm32.h: Likewise.
9062 * config/mep/mep.h: Likewise.
9063 * config/mips/mips.h: Likewise.
9064 * config/rs6000/rs6000.h: Likewise.
9065 * config/sh/sh.h: Likewise.
9066 * config/tilegx/tilegx.h (enum reg_class): Likewise.
9067 * config/tilepro/tilepro.h: Likewise.
9068 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
9069 * doc/tm.texi: Regenerate.
9070 * doc/tm.texi.in: Adjust.
9071 * rtlanal.c (nonzero_bits1): Likewise.
9072
9073 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9074
9075 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
9076 with the preprocessor.
9077 (combine_instructions): Likewise.
9078 (try_combine): Likewise.
9079 (subst): Likewise.
9080 (distribute_notes): Likewise.
9081
9082 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9083
9084 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
9085 defined.
9086 (simplify_set): Likewise.
9087 * cse.c (cse_insn): Likewise.
9088 * fold-const.c (fold_single_bit_test): Likewise.
9089 (fold_unary_loc): Likewise.
9090 * postreload.c (reload_cse_simplify_set): Likewise.
9091 (reload_cse_simplify_operands): Likewise.
9092
9093 2015-07-08 Jiong Wang <jiong.wang@arm.com>
9094
9095 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
9096 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
9097
9098 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
9099
9100 PR target/66746
9101 * config/i386/x86intrin.h: Include <adxintrin.h> even if
9102 __iamcu__ is defined.
9103
9104 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9105
9106 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
9107
9108 2015-07-08 Iain Sandoe <iain@codesourcery.com>
9109
9110 PR target/66523
9111 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
9112 names from preservation.
9113
9114 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
9115
9116 PR target/66806
9117 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
9118 change for IAMCU.
9119 (function_arg_advance_32): Don't pass vectors in registers for
9120 IAMCU.
9121 (function_arg_32): Likewise.
9122 (ix86_return_in_memory): Don't return vectors in registers for
9123 IAMCU.
9124
9125 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
9126
9127 PR middle-end/66334
9128 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
9129 hard regno live at the start of BB with incoming abnormal edges.
9130 * lra-lives.c (process_bb_lives): Ditto.
9131
9132 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
9133
9134 PR libgomp/65099
9135 * config/nvptx/mkoffload.c (main): Create an offload image only in
9136 64-bit configurations.
9137
9138 2015-07-08 Martin Liska <mliska@suse.cz>
9139
9140 PR bootstrap/66744
9141 * tree-sra.c (create_access_1): Call ctor without brackets.
9142 (create_artificial_child_access): Likewise.
9143
9144 2015-07-08 Richard Biener <rguenther@suse.de>
9145
9146 PR tree-optimization/66793
9147 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
9148 Properly split the block after stmts ending it.
9149
9150 2015-07-08 Richard Biener <rguenther@suse.de>
9151
9152 PR tree-optimization/66794
9153 * passes.c (execute_function_todo): Assert that post-dominators
9154 are not computed.
9155 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
9156 Free post-dominators.
9157
9158 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9159
9160 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
9161 with early exit.
9162
9163 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
9164
9165 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
9166 more than or equal 8 and less than 32 when optimizing for size.
9167
9168 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9169
9170 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
9171 COSTS_N_INSNS (1) and increment it appropriately throughout the
9172 function.
9173
9174 2015-07-08 Richard Biener <rguenther@suse.de>
9175
9176 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
9177
9178 2015-07-08 Alan Modra <amodra@gmail.com>
9179
9180 * target.def (rtx_costs): Remove "code" param, add "mode".
9181 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
9182 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
9183 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
9184 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
9185 call. Track mode when given in rtx.
9186 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
9187 (default_address_cost): Pass Pmode to rtx_cost.
9188 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
9189 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
9190 with NULL set.
9191 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
9192 (notreg_cost): Add mode param. Use it.
9193 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
9194 mode param and pass to set_src_cost. Update all calls.
9195 (hash_scan_set): Formatting.
9196 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
9197 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
9198 * hooks.h: Ditto.
9199 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
9200 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
9201 emit_store_flag): Update set_src_cost and rtx_cost calls.
9202 * auto-inc-dec.c (attempt_change): Likewise.
9203 * calls.c (precompute_register_parameters): Likewise.
9204 * combine.c (expand_compound_operation, make_extraction,
9205 force_to_mode, distribute_and_simplify_rtx): Likewise.
9206 * dojump.c (prefer_and_bit_test): Likewise.
9207 * dse.c (find_shift_sequence): Likewise.
9208 * expr.c (compress_float_constant): Likewise.
9209 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
9210 * ifcvt.c (noce_try_sign_mask): Likewise.
9211 * loop-doloop.c (doloop_optimize): Likewise.
9212 * loop-invariant.c (create_new_invariant): Likewise.
9213 * lower-subreg.c (shift_cost, compute_costs): Likewise.
9214 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
9215 lshift_cheap_p): Likewise.
9216 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
9217 try_replace_in_use, reload_cse_move2add): Likewise.
9218 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
9219 Likewise.
9220 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9221 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
9222 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
9223 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
9224 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
9225 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
9226 to rtx_cost calls.
9227 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
9228 * config/arc/arc.c (arc_rtx_costs): Likewise.
9229 * config/arm/arm.c (arm_rtx_costs): Likewise.
9230 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
9231 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
9232 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
9233 * config/cris/cris.c (cris_rtx_costs): Likewise.
9234 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
9235 * config/frv/frv.c (frv_rtx_costs): Likewise.
9236 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
9237 * config/i386/i386.c (ix86_rtx_costs): Likewise.
9238 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
9239 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
9240 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
9241 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
9242 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
9243 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
9244 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
9245 * config/mep/mep.c (mep_rtx_cost): Likewise.
9246 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
9247 * config/mips/mips.c (mips_rtx_costs): Likewise.
9248 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
9249 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
9250 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
9251 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
9252 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
9253 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
9254 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
9255 * config/pa/pa.c (hppa_rtx_costs): Likewise.
9256 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
9257 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
9258 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
9259 * config/s390/s390.c (s390_rtx_costs): Likewise.
9260 * config/sh/sh.c (sh_rtx_costs): Likewise.
9261 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
9262 * config/spu/spu.c (spu_rtx_costs): Likewise.
9263 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
9264 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
9265 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
9266 * config/v850/v850.c (v850_rtx_costs): Likewise.
9267 * config/vax/vax.c (vax_rtx_costs): Likewise.
9268 * config/visium/visium.c (visium_rtx_costs): Likewise.
9269 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
9270 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
9271 "code" param, and pass as outer_code to first rtx_cost call. Pass
9272 mode to rtx_cost calls.
9273 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
9274 calls.
9275 (aarch64_rtx_costs_wrapper): Update.
9276 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
9277 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
9278 rtx_cost calls.
9279 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
9280 and rtx_cost calls.
9281 (avr_operand_rtx_cost): Similarly.
9282 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
9283 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
9284 * config/mips/mips.c (mips_stack_address_p): Comment typo.
9285 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
9286 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
9287 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
9288 rtx_cost.
9289 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
9290 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
9291 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
9292 * doc/tm.texi: Regenerate.
9293
9294 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
9295
9296 * tree-core.h: Include symtab.h.
9297 * rtl.h: Include hard-reg-set.h but not flags.h.
9298 (HARD_CONST): Remove condition compilation involving HARD_CONST since
9299 hard-reg-set.h is always included.
9300 * regs.h: Don't include hard-reg-set.h or rtl.h.
9301 * cfg.h: Include dominance.h.
9302 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
9303 * backend.h: New. Aggregate commonly used backend header files.
9304 * gimple-ssa.h: Don't include tree-hasher.h.
9305 * ssa.h: New. Aggregate commonly used SSA header files.
9306 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
9307 * sel-sched-ir.h: Flatten includes.
9308 * lra-int.h: Flatten completely.
9309 * sel-sched-dump.h: Flatten includes.
9310 * ira-int.h: Flatten includes.
9311 * gimple-streamer.h: Remove all includes.
9312 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
9313 * resource.h: Flatten hard-reg-set.h and df.h.
9314 * sched-int.h: Flatten insn-arrt.h and df.h.
9315 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
9316 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
9317 * genattrtab.c (write_header): Adjust generated includes.
9318 * genautomata.c (main): Likewise.
9319 * genconditions.c (write-header): Likewise.
9320 * genemit.c (main): Likewise.
9321 * gengtype.c (open_base_files): Likewise.
9322 * genopinit.c (main): Likewise.
9323 * genoutput.c (output_prologue): Likewise.
9324 * genpeep.c (main): Likewise.
9325 * genpreds.c (write_insn_preds_c): Likewise.
9326 * genrecog.c (write_header): Likewise.
9327 * alias.c: Adjust includes.
9328 * asan.c: Likewise.
9329 * attribs.c: Likewise.
9330 * auto-inc-dec.c: Likewise.
9331 * auto-profile.c: Likewise.
9332 * bb-reorder.c: Likewise.
9333 * bt-load.c: Likewise.
9334 * builtins.c: Likewise.
9335 * caller-save.c: Likewise.
9336 * calls.c: Likewise.
9337 * ccmp.c: Likewise.
9338 * cfg.c: Likewise.
9339 * cfganal.c: Likewise.
9340 * cfgbuild.c: Likewise.
9341 * cfgcleanup.c: Likewise.
9342 * cfgexpand.c: Likewise.
9343 * cfghooks.c: Likewise.
9344 * cfgloop.c: Likewise.
9345 * cfgloopanal.c: Likewise.
9346 * cfgloopmanip.c: Likewise.
9347 * cfgrtl.c: Likewise.
9348 * cgraph.c: Likewise.
9349 * cgraphbuild.c: Likewise.
9350 * cgraphclones.c: Likewise.
9351 * cgraphunit.c: Likewise.
9352 * cilk-common.c: Likewise.
9353 * combine-stack-adj.c: Likewise.
9354 * combine.c: Likewise.
9355 * compare-elim.c: Likewise.
9356 * convert.c: Likewise.
9357 * coverage.c: Likewise.
9358 * cppbuiltin.c: Likewise.
9359 * cprop.c: Likewise.
9360 * cse.c: Likewise.
9361 * cselib.c: Likewise.
9362 * data-streamer-in.c: Likewise.
9363 * data-streamer-out.c: Likewise.
9364 * data-streamer.c: Likewise.
9365 * dbxout.c: Likewise.
9366 * dce.c: Likewise.
9367 * ddg.c: Likewise.
9368 * debug.c: Likewise.
9369 * df-core.c: Likewise.
9370 * df-problems.c: Likewise.
9371 * df-scan.c: Likewise.
9372 * dfp.c: Likewise.
9373 * dojump.c: Likewise.
9374 * dominance.c: Likewise.
9375 * domwalk.c: Likewise.
9376 * double-int.c: Likewise.
9377 * dse.c: Likewise.
9378 * dumpfile.c: Likewise.
9379 * dwarf2asm.c: Likewise.
9380 * dwarf2cfi.c: Likewise.
9381 * dwarf2out.c: Likewise.
9382 * emit-rtl.c: Likewise.
9383 * et-forest.c: Likewise.
9384 * except.c: Likewise.
9385 * explow.c: Likewise.
9386 * expmed.c: Likewise.
9387 * expr.c: Likewise.
9388 * final.c: Likewise.
9389 * fixed-value.c: Likewise.
9390 * fold-const.c: Likewise.
9391 * function.c: Likewise.
9392 * fwprop.c: Likewise.
9393 * gcc-plugin.h: Likewise.
9394 * gcse-common.c: Likewise.
9395 * gcse.c: Likewise.
9396 * generic-match-head.c: Likewise.
9397 * ggc-page.c: Likewise.
9398 * gimple-builder.c: Likewise.
9399 * gimple-expr.c: Likewise.
9400 * gimple-fold.c: Likewise.
9401 * gimple-iterator.c: Likewise.
9402 * gimple-low.c: Likewise.
9403 * gimple-match-head.c: Likewise.
9404 * gimple-pretty-print.c: Likewise.
9405 * gimple-ssa-isolate-paths.c: Likewise.
9406 * gimple-ssa-strength-reduction.c: Likewise.
9407 * gimple-streamer-in.c: Likewise.
9408 * gimple-streamer-out.c: Likewise.
9409 * gimple-walk.c: Likewise.
9410 * gimple.c: Likewise.
9411 * gimplify-me.c: Likewise.
9412 * gimplify.c: Likewise.
9413 * godump.c: Likewise.
9414 * graph.c: Likewise.
9415 * graphite-blocking.c: Likewise.
9416 * graphite-dependences.c: Likewise.
9417 * graphite-interchange.c: Likewise.
9418 * graphite-isl-ast-to-gimple.c: Likewise.
9419 * graphite-optimize-isl.c: Likewise.
9420 * graphite-poly.c: Likewise.
9421 * graphite-scop-detection.c: Likewise.
9422 * graphite-sese-to-poly.c: Likewise.
9423 * graphite.c: Likewise.
9424 * haifa-sched.c: Likewise.
9425 * hw-doloop.c: Likewise.
9426 * ifcvt.c: Likewise.
9427 * init-regs.c: Likewise.
9428 * internal-fn.c: Likewise.
9429 * ipa-chkp.c: Likewise.
9430 * ipa-comdats.c: Likewise.
9431 * ipa-cp.c: Likewise.
9432 * ipa-devirt.c: Likewise.
9433 * ipa-icf-gimple.c: Likewise.
9434 * ipa-icf.c: Likewise.
9435 * ipa-inline-analysis.c: Likewise.
9436 * ipa-inline-transform.c: Likewise.
9437 * ipa-inline.c: Likewise.
9438 * ipa-polymorphic-call.c: Likewise.
9439 * ipa-profile.c: Likewise.
9440 * ipa-prop.c: Likewise.
9441 * ipa-pure-const.c: Likewise.
9442 * ipa-ref.c: Likewise.
9443 * ipa-reference.c: Likewise.
9444 * ipa-split.c: Likewise.
9445 * ipa-utils.c: Likewise.
9446 * ipa-visibility.c: Likewise.
9447 * ipa.c: Likewise.
9448 * ira-build.c: Likewise.
9449 * ira-color.c: Likewise.
9450 * ira-conflicts.c: Likewise.
9451 * ira-costs.c: Likewise.
9452 * ira-emit.c: Likewise.
9453 * ira-lives.c: Likewise.
9454 * ira.c: Likewise.
9455 * jump.c: Likewise.
9456 * langhooks.c: Likewise.
9457 * lcm.c: Likewise.
9458 * loop-doloop.c: Likewise.
9459 * loop-init.c: Likewise.
9460 * loop-invariant.c: Likewise.
9461 * loop-iv.c: Likewise.
9462 * loop-unroll.c: Likewise.
9463 * lower-subreg.c: Likewise.
9464 * lra-assigns.c: Likewise.
9465 * lra-coalesce.c: Likewise.
9466 * lra-constraints.c: Likewise.
9467 * lra-eliminations.c: Likewise.
9468 * lra-lives.c: Likewise.
9469 * lra-remat.c: Likewise.
9470 * lra-spills.c: Likewise.
9471 * lra.c: Likewise.
9472 * lto-cgraph.c: Likewise.
9473 * lto-compress.c: Likewise.
9474 * lto-opts.c: Likewise.
9475 * lto-section-in.c: Likewise.
9476 * lto-section-out.c: Likewise.
9477 * lto-streamer-in.c: Likewise.
9478 * lto-streamer-out.c: Likewise.
9479 * lto-streamer.c: Likewise.
9480 * mcf.c: Likewise.
9481 * mode-switching.c: Likewise.
9482 * modulo-sched.c: Likewise.
9483 * omega.c: Likewise.
9484 * omp-low.c: Likewise.
9485 * optabs.c: Likewise.
9486 * opts-global.c: Likewise.
9487 * passes.c: Likewise.
9488 * plugin.c: Likewise.
9489 * postreload-gcse.c: Likewise.
9490 * postreload.c: Likewise.
9491 * predict.c: Likewise.
9492 * print-rtl.c: Likewise.
9493 * print-tree.c: Likewise.
9494 * profile.c: Likewise.
9495 * real.c: Likewise.
9496 * realmpfr.c: Likewise.
9497 * recog.c: Likewise.
9498 * ree.c: Likewise.
9499 * reg-stack.c: Likewise.
9500 * regcprop.c: Likewise.
9501 * reginfo.c: Likewise.
9502 * regrename.c: Likewise.
9503 * regstat.c: Likewise.
9504 * reload.c: Likewise.
9505 * reload1.c: Likewise.
9506 * reorg.c: Likewise.
9507 * resource.c: Likewise.
9508 * rtl-chkp.c: Likewise.
9509 * rtlanal.c: Likewise.
9510 * rtlhooks.c: Likewise.
9511 * sanopt.c: Likewise.
9512 * sched-deps.c: Likewise.
9513 * sched-ebb.c: Likewise.
9514 * sched-rgn.c: Likewise.
9515 * sched-vis.c: Likewise.
9516 * sdbout.c: Likewise.
9517 * sel-sched-dump.c: Likewise.
9518 * sel-sched-ir.c: Likewise.
9519 * sel-sched.c: Likewise.
9520 * sese.c: Likewise.
9521 * shrink-wrap.c: Likewise.
9522 * simplify-rtx.c: Likewise.
9523 * stack-ptr-mod.c: Likewise.
9524 * stmt.c: Likewise.
9525 * stor-layout.c: Likewise.
9526 * store-motion.c: Likewise.
9527 * stringpool.c: Likewise.
9528 * symtab.c: Likewise.
9529 * target-globals.c: Likewise.
9530 * targhooks.c: Likewise.
9531 * toplev.c: Likewise.
9532 * tracer.c: Likewise.
9533 * trans-mem.c: Likewise.
9534 * tree-affine.c: Likewise.
9535 * tree-browser.c: Likewise.
9536 * tree-call-cdce.c: Likewise.
9537 * tree-cfg.c: Likewise.
9538 * tree-cfgcleanup.c: Likewise.
9539 * tree-chkp-opt.c: Likewise.
9540 * tree-chkp.c: Likewise.
9541 * tree-chrec.c: Likewise.
9542 * tree-complex.c: Likewise.
9543 * tree-data-ref.c: Likewise.
9544 * tree-dfa.c: Likewise.
9545 * tree-diagnostic.c: Likewise.
9546 * tree-dump.c: Likewise.
9547 * tree-eh.c: Likewise.
9548 * tree-emutls.c: Likewise.
9549 * tree-if-conv.c: Likewise.
9550 * tree-inline.c: Likewise.
9551 * tree-into-ssa.c: Likewise.
9552 * tree-iterator.c: Likewise.
9553 * tree-loop-distribution.c: Likewise.
9554 * tree-nested.c: Likewise.
9555 * tree-nrv.c: Likewise.
9556 * tree-object-size.c: Likewise.
9557 * tree-outof-ssa.c: Likewise.
9558 * tree-parloops.c: Likewise.
9559 * tree-phinodes.c: Likewise.
9560 * tree-predcom.c: Likewise.
9561 * tree-pretty-print.c: Likewise.
9562 * tree-profile.c: Likewise.
9563 * tree-scalar-evolution.c: Likewise.
9564 * tree-sra.c: Likewise.
9565 * tree-ssa-address.c: Likewise.
9566 * tree-ssa-alias.c: Likewise.
9567 * tree-ssa-ccp.c: Likewise.
9568 * tree-ssa-coalesce.c: Likewise.
9569 * tree-ssa-copy.c: Likewise.
9570 * tree-ssa-copyrename.c: Likewise.
9571 * tree-ssa-dce.c: Likewise.
9572 * tree-ssa-dom.c: Likewise.
9573 * tree-ssa-dse.c: Likewise.
9574 * tree-ssa-forwprop.c: Likewise.
9575 * tree-ssa-ifcombine.c: Likewise.
9576 * tree-ssa-live.c: Likewise.
9577 * tree-ssa-loop-ch.c: Likewise.
9578 * tree-ssa-loop-im.c: Likewise.
9579 * tree-ssa-loop-ivcanon.c: Likewise.
9580 * tree-ssa-loop-ivopts.c: Likewise.
9581 * tree-ssa-loop-manip.c: Likewise.
9582 * tree-ssa-loop-niter.c: Likewise.
9583 * tree-ssa-loop-prefetch.c: Likewise.
9584 * tree-ssa-loop-unswitch.c: Likewise.
9585 * tree-ssa-loop.c: Likewise.
9586 * tree-ssa-math-opts.c: Likewise.
9587 * tree-ssa-operands.c: Likewise.
9588 * tree-ssa-phiopt.c: Likewise.
9589 * tree-ssa-phiprop.c: Likewise.
9590 * tree-ssa-pre.c: Likewise.
9591 * tree-ssa-propagate.c: Likewise.
9592 * tree-ssa-reassoc.c: Likewise.
9593 * tree-ssa-sccvn.c: Likewise.
9594 * tree-ssa-scopedtables.c: Likewise.
9595 * tree-ssa-sink.c: Likewise.
9596 * tree-ssa-strlen.c: Likewise.
9597 * tree-ssa-structalias.c: Likewise.
9598 * tree-ssa-tail-merge.c: Likewise.
9599 * tree-ssa-ter.c: Likewise.
9600 * tree-ssa-threadedge.c: Likewise.
9601 * tree-ssa-threadupdate.c: Likewise.
9602 * tree-ssa-uncprop.c: Likewise.
9603 * tree-ssa-uninit.c: Likewise.
9604 * tree-ssa.c: Likewise.
9605 * tree-ssanames.c: Likewise.
9606 * tree-stdarg.c: Likewise.
9607 * tree-streamer-in.c: Likewise.
9608 * tree-streamer-out.c: Likewise.
9609 * tree-streamer.c: Likewise.
9610 * tree-switch-conversion.c: Likewise.
9611 * tree-tailcall.c: Likewise.
9612 * tree-vect-data-refs.c: Likewise.
9613 * tree-vect-generic.c: Likewise.
9614 * tree-vect-loop-manip.c: Likewise.
9615 * tree-vect-loop.c: Likewise.
9616 * tree-vect-patterns.c: Likewise.
9617 * tree-vect-slp.c: Likewise.
9618 * tree-vect-stmts.c: Likewise.
9619 * tree-vectorizer.c: Likewise.
9620 * tree-vrp.c: Likewise.
9621 * tree.c: Likewise.
9622 * tsan.c: Likewise.
9623 * ubsan.c: Likewise.
9624 * valtrack.c: Likewise.
9625 * value-prof.c: Likewise.
9626 * var-tracking.c: Likewise.
9627 * varasm.c: Likewise.
9628 * varpool.c: Likewise.
9629 * vmsdbgout.c: Likewise.
9630 * vtable-verify.c: Likewise.
9631 * web.c: Likewise.
9632 * wide-int.cc: Likewise.
9633 * xcoffout.c: Likewise.
9634 * config/aarch64/aarch64-builtins.c: Likewise.
9635 * config/aarch64/aarch64.c: Likewise.
9636 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9637 * config/alpha/alpha.c: Likewise.
9638 * config/arc/arc.c: Likewise.
9639 * config/arm/aarch-common.c: Likewise.
9640 * config/arm/arm-builtins.c: Likewise.
9641 * config/arm/arm-c.c: Likewise.
9642 * config/arm/arm.c: Likewise.
9643 * config/avr/avr-c.c: Likewise.
9644 * config/avr/avr-log.c: Likewise.
9645 * config/avr/avr.c: Likewise.
9646 * config/bfin/bfin.c: Likewise.
9647 * config/c6x/c6x.c: Likewise.
9648 * config/cr16/cr16.c: Likewise.
9649 * config/cris/cris.c: Likewise.
9650 * config/darwin-c.c: Likewise.
9651 * config/darwin.c: Likewise.
9652 * config/epiphany/epiphany.c: Likewise.
9653 * config/epiphany/mode-switch-use.c: Likewise.
9654 * config/epiphany/resolve-sw-modes.c: Likewise.
9655 * config/fr30/fr30.c: Likewise.
9656 * config/frv/frv.c: Likewise.
9657 * config/ft32/ft32.c: Likewise.
9658 * config/h8300/h8300.c: Likewise.
9659 * config/i386/i386-c.c: Likewise.
9660 * config/i386/i386.c: Likewise.
9661 * config/i386/msformat-c.c: Likewise.
9662 * config/i386/winnt-cxx.c: Likewise.
9663 * config/i386/winnt-stubs.c: Likewise.
9664 * config/i386/winnt.c: Likewise.
9665 * config/ia64/ia64-c.c: Likewise.
9666 * config/ia64/ia64.c: Likewise.
9667 * config/iq2000/iq2000.c: Likewise.
9668 * config/lm32/lm32.c: Likewise.
9669 * config/m32c/m32c-pragma.c: Likewise.
9670 * config/m32c/m32c.c: Likewise.
9671 * config/m32r/m32r.c: Likewise.
9672 * config/m68k/m68k.c: Likewise.
9673 * config/mcore/mcore.c: Likewise.
9674 * config/mep/mep-pragma.c: Likewise.
9675 * config/mep/mep.c: Likewise.
9676 * config/microblaze/microblaze-c.c: Likewise.
9677 * config/microblaze/microblaze.c: Likewise.
9678 * config/mips/mips.c: Likewise.
9679 * config/mmix/mmix.c: Likewise.
9680 * config/mn10300/mn10300.c: Likewise.
9681 * config/moxie/moxie.c: Likewise.
9682 * config/msp430/msp430-c.c: Likewise.
9683 * config/msp430/msp430.c: Likewise.
9684 * config/nds32/nds32-cost.c: Likewise.
9685 * config/nds32/nds32-fp-as-gp.c: Likewise.
9686 * config/nds32/nds32-intrinsic.c: Likewise.
9687 * config/nds32/nds32-isr.c: Likewise.
9688 * config/nds32/nds32-md-auxiliary.c: Likewise.
9689 * config/nds32/nds32-memory-manipulation.c: Likewise.
9690 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9691 * config/nds32/nds32-predicates.c: Likewise.
9692 * config/nds32/nds32.c: Likewise.
9693 * config/nios2/nios2.c: Likewise.
9694 * config/nvptx/nvptx.c: Likewise.
9695 * config/pa/pa.c: Likewise.
9696 * config/pdp11/pdp11.c: Likewise.
9697 * config/rl78/rl78-c.c: Likewise.
9698 * config/rl78/rl78.c: Likewise.
9699 * config/rs6000/rs6000-c.c: Likewise.
9700 * config/rs6000/rs6000.c: Likewise.
9701 * config/rx/rx.c: Likewise.
9702 * config/s390/s390-c.c: Likewise.
9703 * config/s390/s390.c: Likewise.
9704 * config/sh/sh-c.c: Likewise.
9705 * config/sh/sh-mem.cc: Likewise.
9706 * config/sh/sh.c: Likewise.
9707 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9708 * config/sh/sh_treg_combine.cc: Likewise.
9709 * config/sol2-c.c: Likewise.
9710 * config/sol2-cxx.c: Likewise.
9711 * config/sol2-stubs.c: Likewise.
9712 * config/sol2.c: Likewise.
9713 * config/sparc/sparc-c.c: Likewise.
9714 * config/sparc/sparc.c: Likewise.
9715 * config/spu/spu-c.c: Likewise.
9716 * config/spu/spu.c: Likewise.
9717 * config/stormy16/stormy16.c: Likewise.
9718 * config/tilegx/mul-tables.c: Likewise.
9719 * config/tilegx/tilegx-c.c: Likewise.
9720 * config/tilegx/tilegx.c: Likewise.
9721 * config/tilepro/mul-tables.c: Likewise.
9722 * config/tilepro/tilepro-c.c: Likewise.
9723 * config/tilepro/tilepro.c: Likewise.
9724 * config/v850/v850-c.c: Likewise.
9725 * config/v850/v850.c: Likewise.
9726 * config/vax/vax.c: Likewise.
9727 * config/visium/visium.c: Likewise.
9728 * config/vms/vms-c.c: Likewise.
9729 * config/vms/vms.c: Likewise.
9730 * config/vxworks.c: Likewise.
9731 * config/xtensa/xtensa.c: Likewise.
9732
9733 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
9734
9735 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
9736 Remove operand constraints. Change operand 2 predicate to
9737 nonmemory operand. Limit const_int values to mode bitsize. Only
9738 allow const_int values less than 32 when optimizing for size.
9739 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
9740 Remove operand constraints.
9741 (*bt<mode>): Use SImode for const_int values less than 32.
9742 (regmode): Remove mode attribute.
9743
9744 2015-07-07 Anatoly Sokolov <aesok@post.ru>
9745
9746 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9747 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
9748 moxie_legitimate_address_p): New functions.
9749 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
9750
9751 2015-07-07 Tom de Vries <tom@codesourcery.com>
9752
9753 PR tree-optimization/66642
9754 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
9755 header comment. Rename split_edge variable to edge_at_split. Split
9756 exit edge to create new loop exit bb. Insert loop exit phis in new
9757 loop exit bb.
9758
9759 2015-07-07 Tom de Vries <tom@codesourcery.com>
9760
9761 * tree-cfg.c (get_virtual_phi): New function.
9762 * tree-cfg.h (get_virtual_phi): Declare.
9763 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
9764 (rewrite_virtuals_into_loop_closed_ssa): New function.
9765 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
9766 Declare.
9767 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
9768 (transform_to_exit_first_loop_alt): Use
9769 rewrite_virtuals_into_loop_closed_ssa.
9770
9771 2015-07-07 Richard Biener <rguenther@suse.de>
9772
9773 * fold-const.c (fold_binary_loc): Move
9774 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
9775 * match.pd: ... here.
9776 Add (X * C1) % C2 -> 0 simplification pattern derived from
9777 extract_muldiv_1.
9778
9779 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
9780
9781 PR target/66780
9782 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
9783 change for target/65249.
9784
9785 2015-07-07 Paulo Matos <pmatos@broadcom.com>
9786
9787 * symtab.c (address_matters_1): Fix typo in comment above.
9788 (can_increase_alignment_p): Likewise.
9789
9790 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9791
9792 * function.c (free_after_compilation): Clear PROP_cfg in
9793 f->curr_properties.
9794
9795 2015-07-07 Richard Biener <rguenther@suse.de>
9796
9797 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
9798 add which use to.
9799 (add_control_edge): Remove excessive vertical space in dumping.
9800 (process_ssa_edge_worklist): Simulate at most one statement and
9801 return whether we did. Do not simulate PHIs if they are in a
9802 BB not yet simulated.
9803 (ssa_propagate): Adjust to always drain the BB worklist whenever
9804 a BB is available there, likewise the VARYING edges list before
9805 the interesting edge list.
9806
9807 2015-07-07 Christian Bruel <christian.bruel@st.com>
9808
9809 PR target/52144
9810 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
9811
9812 2015-07-07 Richard Biener <rguenther@suse.de>
9813
9814 PR middle-end/66739
9815 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
9816 A - B.
9817
9818 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
9819
9820 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
9821 modes for operands 0 and 3. Use SImode for operands 2 and 3.
9822 Copy operand 0 to a temporary if !ext_register_operand. Remove
9823 ancient extract_bit_field workaround.
9824 (insv<mode>_1): Rename from mov<mode>_insv_1.
9825 (*insvqi): Rename from *movqi_insv_2.
9826 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
9827 for renamed insvsi_1.
9828 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
9829
9830 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
9831
9832 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
9833 call to nvptx_reorg_subreg.
9834
9835 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
9836
9837 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
9838 * graphite-dependencies.c, graphite-interchange.c,
9839 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
9840 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
9841 Likewise.
9842
9843 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
9844
9845 * match.pd: Remove element_mode inside HONOR_*.
9846 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
9847 (~X | X -> -1, ~X ^ X -> -1): Merge.
9848 * tree.c (build_each_one_cst): New function.
9849 * tree.h (build_each_one_cst): Likewise.
9850
9851 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
9852
9853 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9854 PROCESSOR_IAMCU.
9855
9856 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
9857
9858 * config.gcc <mips*-*-*>: Add fused-madd.opt.
9859 * config/mips/mips.opt (mfused-madd): Remove.
9860 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
9861 * config/mips/mips.h (TARGET_MIPS8000): New.
9862 (ISA_HAS_FP_MADD4_MSUB4): Remove.
9863 (ISA_HAS_FP_MADDF_MSUBF): Remove.
9864 (ISA_HAS_FP_MADD3_MSUB3): Remove.
9865 (ISA_HAS_NMADD4_NMSUB4): Remove.
9866 (ISA_HAS_NMADD3_NMSUB3): Remove.
9867 (ISA_HAS_FUSED_MADD4): New.
9868 (ISA_HAS_UNFUSED_MADD4): New.
9869 (ISA_HAS_FUSED_MADDF): New.
9870 (ISA_HAS_FUSED_MADD3): New.
9871 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
9872 (*fma<mode>4_madd3) New.
9873 (*fma<mode>4_madd4) New.
9874 (*fma<mode>4_maddf) New.
9875 (fms<mode>4) New.
9876 (*fms<mode>4_msub3) New.
9877 (*fms<mode>4_msub4) New.
9878 (fnma<mode>4) New.
9879 (*fnma<mode>4_nmadd3) New.
9880 (*fnma<mode>4_nmadd4) New.
9881 (fnms<mode>4) New.
9882 (*fnms<mode>4_nmsub3) New.
9883 (*fnms<mode>4_nmsub4) New.
9884 (*madd4<mode>) Modify to be unfused only.
9885 (*msub4<mode>) Modify to be unfused only.
9886 (*nmadd4<mode>) Modify to be unfused only.
9887 (*nmsub4<mode>) Modify to be unfused only.
9888 (*madd3<mode>) Remove.
9889 (*msub3<mode>) Remove.
9890 (*nmadd3<mode>) Remove.
9891 (*nmsub3<mode>) Remove.
9892 (*nmadd3<mode>_fastmath) Remove.
9893 (*nmsub3<mode>_fastmath) Remove.
9894 (*nmadd4<mode>_fastmath) Update condition.
9895 (*nmsub4<mode>_fastmath) Update condition.
9896
9897 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
9898
9899 PR target/65956
9900 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
9901 alignment attribute, exploring one level down for records and arrays.
9902
9903 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
9904
9905 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
9906 modes for operands 0 and 1. Use SImode for operands 2 and 3.
9907 Copy operand 1 to a temporary if !ext_register_operand. Remove
9908 ancient extract_bit_field workaround.
9909 (*extv<mode>): Rename from *mov<mode>_extv_1.
9910 (*extvqi): Rename from *movqi_extv_1.
9911 (extzv<mode>): Rename from extzv. Use SWI248 modes for
9912 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
9913 to a temporary if !ext_register_operand. Remove ancient
9914 extract_bit_field workaround.
9915 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
9916 (*extzvqi): Rename from *movqi_extzv_2.
9917 (*testqi_ext_3): Remove modes from const_int_operand predicated
9918 operands. Add "n" constraint.
9919 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
9920 operand. Add "J" constraint.
9921 (*btsq, *btrq, *btcq peephole2s): Remove mode from
9922 const_0_to_63 predicated operand.
9923 (regmode): New insn attribute.
9924 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
9925 to nonmemory_operand. Use regmode insn attribute.
9926 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
9927 (*jcc_bt<mode>_mask): Remove mode from operand 3.
9928 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
9929 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
9930 operands. Use "N" constraint instead of "n".
9931
9932 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
9933
9934 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
9935
9936 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
9937
9938 PR target/66749
9939 * config/i386/i386.c (iamcu_cost): New.
9940 (m_IAMCU): Likewise.
9941 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
9942 (processor_target_table): Add an entry for "iamcu".
9943 (processor_alias_table): Likewise.
9944 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
9945 (ix86_adjust_cost): Likewise.
9946 (ia32_multipass_dfa_lookahead): Likewise.
9947 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
9948 * config/i386/x86-tune.def: Updated for m_IAMCU.
9949
9950 2015-07-06 Richard Biener <rguenther@suse.de>
9951
9952 PR tree-optimization/66772
9953 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
9954 values are available in the PHI node BB when there are
9955 still unexecutable edges.
9956
9957 2015-07-06 Richard Biener <rguenther@suse.de>
9958
9959 PR tree-optimization/66767
9960 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
9961 Make sure to build the alignment test on a SSA name without
9962 final alignment info valid only if the alignment test
9963 evaluates to true.
9964
9965 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
9966
9967 PR target/66620
9968 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
9969 loop start when inserting LSETUP.
9970
9971 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
9972
9973 PR target/53383
9974 * config/i386/i386.c (ix86_option_override_internal): Allow
9975 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
9976
9977 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9978
9979 * read-md.c (decimal_string): Rename to ...
9980 (md_decimal_string): ... this.
9981 (handle_enum): Reflect this.
9982
9983 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9984
9985 PR target/66731
9986 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
9987
9988 2015-07-06 Richard Biener <rguenther@suse.de>
9989
9990 PR middle-end/66759
9991 * match.pd: Add missing constraint of y to REAL_CST in
9992 REAL_CST - x CMP y to y - CST CMP x simplification.
9993
9994 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
9995
9996 PR tree-optimization/66757
9997 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
9998
9999 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
10000 Sandra Loosemore <sandra@codesourcery.com>
10001
10002 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
10003 Delete extern declaration.
10004 (gprel_constant_p): Add extern declaration.
10005 * config/nios2/constraints.md ("S"): Use gprel_constant_p
10006 instead of nios2_symbol_ref_in_small_data_p.
10007 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
10008 (nios2_symbol_ref_in_small_data_p): Make static.
10009 (gprel_constant_p): Make non-static.
10010
10011 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
10012
10013 * doc/fragments.texi (Target Fragment): Convert debian.org
10014 link to use https.
10015 * doc/install.texi (Configuration): Ditto.
10016
10017 2015-07-05 Jakub Jelinek <jakub@redhat.com>
10018
10019 PR tree-optimization/66718
10020 * tree-vect-stmts.c (vectorizable_call): Replace uses of
10021 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
10022
10023 PR tree-optimization/66718
10024 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
10025 vectorizable_load, vectorizable_condition): Move vectype,
10026 nunits, ncopies computation after checking what kind of statement
10027 stmt is.
10028
10029 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10030
10031 * target-insns.def (extv, extzv, insv): New targetm instruction
10032 patterns.
10033 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
10034 interface.
10035 * recog.c (simplify_while_replacing): Likewise.
10036
10037 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10038
10039 * target-insns.def (doloop_begin, doloop_end): New targetm
10040 instruction patterns.
10041 * loop-init.c: Include target.h.
10042 (pass_loop2::gate): Use the new targetm patterns instead of
10043 HAVE_*/gen_* interface.
10044 (pass_rtl_doloop::gate): Likewise.
10045 (pass_rtl_doloop::execute): Remove preprocessor condition.
10046 * hw-doloop.c: Build unconditionally.
10047 * loop-doloop.c: Likewise.
10048 (doloop_optimize): Use the new targetm patterns instead of
10049 HAVE_*/gen_* interface.
10050 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
10051 * modulo-sched.c (doloop_register_get): Likewise.
10052
10053 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10054
10055 * target-insns.def (clear_cache): New targetm instruction pattern.
10056 * builtins.c (expand_builtin___clear_cache): Use it instead of
10057 HAVE_*/gen_* interface.
10058
10059 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10060
10061 * target-insns.def (allocate_stack, check_stack, probe_stack)
10062 (probe_stack_address, split_stack_prologue, split_stack_space_check):
10063 New targetm instruction patterns.
10064 * explow.c (allocate_dynamic_stack_space): Use them instead of
10065 HAVE_*/gen_* interface.
10066 (emit_stack_probe): Likewise.
10067 (probe_stack_range): Likewise.
10068 * function.c (thread_prologue_and_epilogue_insns): Likewise.
10069
10070 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10071
10072 * target-insns.def (stack_protect_set, stack_protect_test): New
10073 targetm instruction patterns.
10074 * cfgexpand.c (stack_protect_prologue): Use them instead of
10075 HAVE_*/gen_* interface.
10076 * function.c (stack_protect_epilogue): Likewise.
10077
10078 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10079
10080 * expr.h (gen_move_insn_uncast): Delete.
10081 * expr.c (gen_move_insn_uncast): Delete.
10082
10083 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10084
10085 * target-insns.def (restore_stack_block, restore_stack_function)
10086 (restore_stack_nonlocal, save_stack_block, save_stack_function)
10087 (save_stack_nonlocal): New targetm instruction patterns.
10088 * builtins.c (expand_builtin_apply): Use them instead of
10089 HAVE_*/gen_* interface.
10090 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
10091
10092 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10093
10094 * target-insns.def (trap): New targetm instruction pattern.
10095 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
10096 interface.
10097 * explow.c (allocate_dynamic_stack_space): Likewise.
10098 * ifcvt.c (find_if_header): Likewise.
10099
10100 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10101
10102 * target-insns.def (prefetch): New targetm instruction pattern.
10103 * tree-ssa-loop-prefetch.c: Include targeth.
10104 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
10105 of HAVE_*/gen_* interface.
10106 * builtins.c (expand_builtin_prefetch): Likewise.
10107 * toplev.c (process_options): Likewise.
10108
10109 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10110
10111 * target-insns.def (untyped_call, untyped_return): New targetm
10112 instruction patterns.
10113 * builtins.c (expand_builtin_apply): Use them instead of
10114 HAVE_*/gen_* interface.
10115 (result_vector): Define unconditionally.
10116
10117 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10118
10119 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
10120 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
10121 (nonlocal_goto_receiver): New targetm instruction patterns.
10122 * builtins.c (expand_builtin_setjmp_setup): Use them instead
10123 of HAVE_*/gen_* interface.
10124 (expand_builtin_setjmp_receiver): Likewise.
10125 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
10126 * except.c (expand_dw2_landing_pad_for_region): Likewise.
10127
10128 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
10129
10130 * target.def: Add code_for_* hooks.
10131 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
10132 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
10133 * target-insns.def (casesi, tablejump): New targetm instruction
10134 patterns.
10135 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
10136 (do_tablejump): Likewise.
10137 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
10138 (expand_sjlj_dispatch_table): Likewise.
10139 * targhooks.c (default_case_values_threshold): Likewise.
10140
10141 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
10142
10143 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
10144 Use rtx_insn * instead of rtx.
10145 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
10146 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
10147 (nios2_call_tls_get_addr): Likewise.
10148 (nios2_emit_expensive_div): Likewise.
10149 (nios2_emit_move_sequence): Change return type to bool.
10150 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
10151 Change return type to bool.
10152
10153 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10154
10155 PR target/66747
10156 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
10157
10158 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
10159
10160 PR target/66114
10161 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
10162 of register_operand. Remove constraint.
10163
10164 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
10165
10166 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
10167 the first argument.
10168
10169 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
10170
10171 * attribs.c (decl_attributes): Guard inform with the return value
10172 of the preceding warning.
10173
10174 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
10175
10176 * doc/invoke.texi (moverride): Move to correct section.
10177
10178 2015-07-03 Richard Biener <rguenther@suse.de>
10179
10180 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
10181 Copy from tree.c
10182 (dt_operand::gen_gimple_expr): After valueizing operands
10183 re-canonicalize operand order for commutative tree codes.
10184
10185 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
10186
10187 PR target/66746.
10188 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
10189 is defined.
10190 (__crc32w): Likewise.
10191 (__crc32d): Likewise.
10192 (__rdpmc): Likewise.
10193 (__rdtscp): Likewise.
10194 (_rdpmc): Likewise.
10195 (_rdtscp): Likewise.
10196 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
10197 is defined.
10198
10199 2015-07-03 Richard Biener <rguenther@suse.de>
10200
10201 * fold-const.c (fold_mathfn_compare): Remove.
10202 (fold_inf_compare): Likewise.
10203 (fold_comparison): Move floating point comparison simplifications...
10204 * match.pd: ... to patterns here. Introduce simple_comparisons
10205 operator list and use it for patterns formerly in fold_comparison.
10206
10207 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
10208
10209 PR tree-optimization/66119
10210 * toplev.c (process_options): Don't set up default values for
10211 the sra_max_scalarization_size_{speed,size} parameters.
10212 * tree-sra (analyze_all_variable_accesses): If no values
10213 have been set for the sra_max_scalarization_size_{speed,size}
10214 parameters, call get_move_ratio to get target defaults.
10215
10216 2015-07-03 Richard Biener <rguenther@suse.de>
10217
10218 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
10219 * match.pd: ... here.
10220
10221 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
10222
10223 PR target/37072
10224 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
10225 is not actually the default on FreeBSD.
10226
10227 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10228
10229 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
10230 definition.
10231 (CMPGE_8HI): Likewise.
10232 (CMPGE_4SI): Likewise.
10233 (CMPGE_2DI): Likewise.
10234 (CMPGE_U16QI): Likewise.
10235 (CMPGE_U8HI): Likewise.
10236 (CMPGE_U4SI): Likewise.
10237 (CMPGE_U2DI): Likewise.
10238 (CMPLE_16QI): Likewise.
10239 (CMPLE_8HI): Likewise.
10240 (CMPLE_4SI): Likewise.
10241 (CMPLE_2DI): Likewise.
10242 (CMPLE_U16QI): Likewise.
10243 (CMPLE_U8HI): Likewise.
10244 (CMPLE_U4SI): Likewise.
10245 (CMPLE_U2DI): Likewise.
10246 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10247 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
10248 ALTIVEC_BUILTIN_VEC_CMPLE.
10249 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
10250 floating-point vector modes.
10251 (vector_nlt<mode>): New define_expand.
10252 (vector_nltu<mode>): Likewise.
10253 (vector_ngt<mode>): Likewise.
10254 (vector_ngtu<mode>): Likewise.
10255
10256 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
10257
10258 PR rtl-optimization/66706
10259 * combine.c (make_compound_operation): If an AND of SUBREG of
10260 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
10261
10262 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
10263
10264 * tree-pass.h (make_pass_ch_vect): New.
10265 * passes.def: Add pass_ch_vect just before pass_if_conversion.
10266
10267 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
10268 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
10269 make_pass_ch_vect): New.
10270 (pass_ch): Extend ch_base.
10271
10272 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
10273 (ch_base::copy_headers): ...here.
10274
10275 2015-07-02 Richard Biener <rguenther@suse.de>
10276
10277 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
10278 * fold-const.c (get_pointer_modulus_and_residue): Remove.
10279 (fold_binary_loc): Implement (T)ptr & CST in terms of
10280 get_pointer_alignment_1.
10281 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
10282 Make sure to build the alignment test on a SSA name without
10283 final alignment info valid only after the prologue.
10284
10285 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
10286
10287 * config/cris/cris.md ("epilogue"): Remove condition.
10288 ("prologue"): Ditto.
10289
10290 2015-07-02 Richard Biener <rguenther@suse.de>
10291
10292 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
10293 parameter to record a condition that is false.
10294 (record_conditions): When recording an extra NE_EXPR that is
10295 true also record a EQ_EXPR that is false.
10296
10297 2015-07-02 Bin Cheng <bin.cheng@arm.com>
10298
10299 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
10300 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
10301 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
10302 (set_iv, find_interesting_uses_address, add_candidate_1): New
10303 argument to alloc_iv.
10304 (find_interesting_uses_op, find_interesting_uses_cond): Don't
10305 duplicate struct iv.
10306 (free_loop_data): Don't free struct iv explicitly.
10307 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
10308
10309 2015-07-01 DJ Delorie <dj@redhat.com>
10310
10311 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
10312 (LIB_SPEC): Add.
10313 (SUPPORTS_DISCRIMINATOR): Define.
10314
10315 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
10316
10317 PR bootstrap/66685
10318 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
10319 there are no CALLs in the same pattern.
10320
10321 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10322
10323 PR rtl-optimization/61047
10324 * rtlanal.c (get_initial_register_offset): New function.
10325 (rtx_addr_can_trap_p_1): Check offsets of stack references.
10326
10327 2015-07-01 Richard Biener <rguenther@suse.de>
10328
10329 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
10330 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
10331 ~X CMP C -> X CMP' ~C to ...
10332 * match.pd: ... patterns here.
10333
10334 2015-07-01 Nick Clifton <nickc@redhat.com>
10335
10336 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
10337 a 16-bit value into a 20-bit memory slot.
10338
10339 2015-07-01 Jiong Wang <jiong.wang@arm.com>
10340
10341 * doc/sourcebuild.texi (AArch64-specific attributes): Document
10342 "aarch64_tiny", "aarch64_small", "aarch64_large",
10343 "aarch64_little_endian", "aarch64_big_endian".
10344
10345 2015-07-01 Jiong Wang <jiong.wang@arm.com>
10346
10347 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
10348 Document "aarch64_small_fpic".
10349
10350 2015-07-01 Jiong Wang <jiong.wang@arm.com>
10351
10352 * configure.ac: Add check for aarch64 assembler -fpic relocation
10353 modifier support.
10354 * configure: Regenerate.
10355 * config.in: Regenerate.
10356 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
10357 to -fPIC if not support of -fpic relocation modifier in assembler.
10358
10359 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
10360
10361 PR bootstrap/66685
10362 * rtl.c (classify_insn): Handle returns in PARALLELs.
10363
10364 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
10365
10366 PR middle-end/66633
10367 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
10368 to true if the function is nested and if not optimizing.
10369 (convert_local_omp_clauses): Initialize need_frame to true if the
10370 function contains nested functions and if not optimizing.
10371
10372 2015-07-01 Richard Biener <rguenther@suse.de>
10373
10374 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
10375 (X & Y) ^ Y -> ~X & Y transforms to ...
10376 * match.pd: ... here.
10377
10378 2015-07-01 Richard Biener <rguenther@suse.de>
10379
10380 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
10381 of converts to avoid uninteresting noise from the conversion
10382 simplifying patterns.
10383
10384 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
10385
10386 * config/c6x/c6x.c (try_rename_operands): Do not depend on
10387 gcc_assert evaluating its argument for side-effect.
10388
10389 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
10390
10391 PR target/64833
10392 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
10393 flag_pic is set.
10394
10395 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
10396
10397 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
10398 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
10399 (hash_scc): Add this_ref_p and ref_p parameters and pass them
10400 to the inner DFS walk.
10401
10402 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
10403
10404 * target-insns.def (jump): New targetm instruction pattern.
10405 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
10406 instead of gen_jump.
10407 (fix_up_crossing_landing_pad): Likewise.
10408 (add_labels_and_missing_jumps): Likewise.
10409 (fix_crossing_conditional_branches): Likewise.
10410 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
10411 (force_nonfallthru_and_redirect): Likewise.
10412 * cse.c (cse_insn): Likewise.
10413 * expmed.c (expand_divmod): Likewise.
10414 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
10415 * haifa-sched.c (init_before_recovery): Likewise.
10416 (sched_create_recovery_edges): Likewise.
10417 * ifcvt.c (find_cond_trap): Likewise.
10418 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
10419 (expand_float, expand_fix): Likewise.
10420 * stmt.c (emit_jump): Likewise.
10421
10422 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
10423
10424 * defaults.h (HAVE_load_multiple, gen_load_multiple)
10425 (HAVE_store_multiple, gen_store_multiple): Delete.
10426 * target-insns.def (load_multiple, store_multiple): New targetm
10427 instruction patterns.
10428 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
10429 of HAVE_*/gen_* interface.
10430
10431 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
10432
10433 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
10434 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
10435 (gen_mem_signal_fence): Delete.
10436 * target-insns.def (mem_signal_fence, mem_thread_fence)
10437 (memory_barrier): New targetm instruction patterns.
10438 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
10439 interface.
10440 (expand_mem_signal_fence): Likewise.
10441
10442 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
10443
10444 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
10445 * target-insns.def (epilogue, prologue, sibcall_prologue): New
10446 targetm instruction patterns.
10447 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
10448 interface.
10449 * calls.c (expand_call): Likewise.
10450 * cfgrtl.c (cfg_layout_finalize): Likewise.
10451 * df-scan.c (df_get_entry_block_def_set): Likewise.
10452 (df_get_exit_block_use_set): Likewise.
10453 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
10454 * final.c (final_start_function): Likewise.
10455 * function.c (thread_prologue_and_epilogue_insns): Likewise.
10456 (reposition_prologue_and_epilogue_notes): Likewise.
10457 * reorg.c (find_end_label): Likewise.
10458 * toplev.c (process_options): Likewise.
10459
10460 2015-06-30 David Malcolm <dmalcolm@redhat.com>
10461
10462 * typed-splay-tree.h: New file.
10463
10464 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
10465
10466 PR debug/66691
10467 * lra-int.h (lra_substitute_pseudo): Add a parameter.
10468 (lra_substitute_pseudo_within_insn): Ditto.
10469 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
10470 of constant.
10471 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
10472 to lra_substitute_pseudo.
10473 * lra-lives.c (process_bb_lives): Add an argument to
10474 lra_substitute_pseudo_within_insn call.
10475 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
10476 argument to lra_substitute_pseudo and
10477 lra_substitute_pseudo_within_insn calls.
10478 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
10479
10480 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
10481
10482 * configure: Regenerated.
10483
10484 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
10485
10486 * config.gcc: Support i[34567]86-*-elfiamcu target.
10487 * config/i386/iamcu.h: New.
10488 * config/i386/i386.opt: Add -miamcu.
10489 * doc/invoke.texi: Document -miamcu.
10490 * common/config/i386/i386-common.c (ix86_handle_option): Turn
10491 off x87/MMX/SSE/AVX codegen for -miamcu.
10492 * config/i386/i386-c.c (ix86_target_macros_internal): Define
10493 __iamcu/__iamcu__ for -miamcu.
10494 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
10495 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
10496 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
10497 * config/i386/i386.c (ix86_option_override_internal): Ignore and
10498 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
10499 MCU by default. Default long double to 64-bit for Intel MCU.
10500 Turn on -freg-struct-return for Intel MCU. Issue an error when
10501 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
10502 AVX is turned on.
10503 (function_arg_advance_32): Pass value whose size is no larger
10504 than 8 bytes in registers for Intel MCU.
10505 (function_arg_32): Likewise.
10506 (ix86_return_in_memory): Return value whose size is no larger
10507 than 8 bytes in registers for Intel MCU.
10508 (iamcu_alignment): New function.
10509 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
10510 true.
10511 (ix86_local_alignment): Don't increase alignment for Intel MCU.
10512 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
10513 true.
10514
10515 2015-06-30 Marek Polacek <polacek@redhat.com>
10516
10517 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
10518 both operands of the resulting expression.
10519
10520 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
10521 the final expression with the operand's type and then convert
10522 it to the type of the expression.
10523
10524 2015-06-30 Richard Biener <rguenther@suse.de>
10525
10526 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
10527 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
10528 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
10529 * match.pd: ... to patterns here.
10530
10531 2015-06-30 Richard Biener <rguenther@suse.de>
10532
10533 PR tree-optimization/66704
10534 * tree-vect-data-refs.c (vect_setup_realignment): Use
10535 make_ssa_name for non-SSA name source.
10536
10537 2015-06-30 Jakub Jelinek <jakub@redhat.com>
10538
10539 PR middle-end/66702
10540 * omp-low.c (simd_clone_adjust): Handle addressable linear
10541 or uniform parameters or non-gimple type uniform parameters.
10542
10543 2015-06-30 Richard Biener <rguenther@suse.de>
10544
10545 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
10546 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
10547 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
10548 * match.pd: ... here.
10549 Add a few cases of A - B -> A + (-B) when B "easily" negates.
10550 Move (x & y) | x -> x and friends before
10551 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
10552
10553 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
10554
10555 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
10556 -mfix-ut699 is not specified.
10557 (leon3_load): Rename into...
10558 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
10559 is specified.
10560
10561 2015-06-30 Marek Polacek <polacek@redhat.com>
10562
10563 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
10564 * match.pd: ... here.
10565
10566 2015-06-30 Richard Biener <rguenther@suse.de>
10567
10568 * target-insns.def (canonicalize_funcptr_for_compare): Add.
10569 * fold-const.c (build_range_check): Replace uses of
10570 HAVE_canonicalize_funcptr_for_compare.
10571 (fold_widened_comparison): Likewise.
10572 (fold_sign_changed_comparison): Likewise.
10573 * dojump.c: Include "target.h".
10574 (do_compare_and_jump): Replace uses of
10575 HAVE_canonicalize_funcptr_for_compare and
10576 gen_canonicalize_funcptr_for_compare.
10577 * expr.c (do_store_flag): Likewise.
10578
10579 2015-06-30 Tom de Vries <tom@codesourcery.com>
10580
10581 PR tree-optimization/66652
10582 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
10583 max_loop_iterations to determine if nit + 1 overflows.
10584
10585 2015-06-30 Richard Biener <rguenther@suse.de>
10586
10587 * tree-vrp.c (register_edge_assert_for_2): Also register
10588 asserts for dominating conversion results.
10589
10590 2015-06-30 Bin Cheng <bin.cheng@arm.com>
10591
10592 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
10593 field in struct iv.
10594
10595 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
10596
10597 PR target/66509
10598 * configure.ac: Fix filds and fildq test for 64-bit.
10599 * configure: Regenerated.
10600
10601 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
10602
10603 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
10604 (nvptx_reorg): Here. Keep the non-subreg pieces.
10605
10606 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
10607
10608 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
10609 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
10610
10611 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
10612
10613 * config/i386/i386.md (*jcc_1): Use %! in asm template.
10614 Set attribute "length_nobnd" instead of "length".
10615 (*jcc_2): Ditto.
10616 (jump): Ditto.
10617 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
10618
10619 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
10620
10621 * config/nios2/nios2.c (nios2_delegitimize_address): Make
10622 assert less restrictive.
10623
10624 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
10625
10626 PR fortran/66605
10627 * cgraphunit.c (cgraph_node::finalize_function): Do not call
10628 do_warn_unused_parameter.
10629 * function.c (do_warn_unused_parameter): Move from here.
10630 * function.h (do_warn_unused_parameter): Do not declare.
10631
10632 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
10633
10634 PR target/65697
10635 * gcc.target/arm/armv-sync-comp-swap.c: New.
10636 * gcc.target/arm/armv-sync-op-acquire.c: New.
10637 * gcc.target/arm/armv-sync-op-full.c: New.
10638 * gcc.target/arm/armv-sync-op-release.c: New.
10639
10640 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
10641
10642 PR target/65697
10643 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
10644 initial acquire barrier with final barrier.
10645
10646 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
10647
10648 PR target/65697
10649 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
10650 initial acquire barrier with final barrier.
10651
10652 2015-06-29 Richard Henderson <rth@redhat.com>
10653
10654 * config/i386/constraints.md (Bf): New constraint.
10655 * config/i386/i386-c.c (ix86_target_macros): Define
10656 __GCC_ASM_FLAG_OUTPUTS__.
10657 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
10658 as flags outputs.
10659 * doc/extend.texi (FlagOutputOperands): Document them.
10660
10661 2015-06-29 Jiong Wang <jiong.wang@arm.com>
10662
10663 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
10664 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
10665 unspec name.
10666 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
10667 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
10668 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
10669 (aarch64_symbol_context): Ditto.
10670 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
10671 and use new pattern name.
10672 (aarch64_expand_mov_immediate): Ditto.
10673 (aarch64_print_operand): Ditto.
10674 (aarch64_classify_tls_symbol): Ditto.
10675
10676 2015-06-29 Marek Polacek <polacek@redhat.com>
10677 Marc Glisse <marc.glisse@inria.fr>
10678
10679 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
10680 * match.pd: ... pattern here.
10681
10682 2015-06-29 Tom de Vries <tom@codesourcery.com>
10683
10684 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
10685 function structure.
10686
10687 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
10688
10689 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
10690 feature description, split out the native option, add a link to
10691 the feature documentation, rearrange and slightly rewrite text.
10692 (Aarch64 options, -mcpu): Likewise.
10693 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
10694 +rdma implies Adv. SIMD.
10695
10696 2015-06-29 Marek Polacek <polacek@redhat.com>
10697
10698 PR c/66322
10699 * function.c (stack_protect_epilogue): Remove a cast to int.
10700 * doc/invoke.texi: Update -Wswitch-bool description.
10701
10702 2015-06-29 Richard Biener <rguenther@suse.de>
10703
10704 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
10705 * fold-const.c (fold_binary_loc): Move &A - &B simplification
10706 via ptr_difference_const ...
10707 * match.pd: ... here.
10708 When matching (X ^ Y) == Y also match with swapped operands.
10709
10710 2015-06-29 Richard Biener <rguenther@suse.de>
10711
10712 * lto-streamer.h (LTO_major_version): Bump to 5.
10713
10714 2015-06-29 Richard Biener <rguenther@suse.de>
10715
10716 PR tree-optimization/66677
10717 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
10718 STMT_VINFO_VEC_STMT clobbering less strict.
10719
10720 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
10721
10722 PR middle-end/64130
10723 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
10724 division, compute max and min when value ranges for dividend and
10725 divisor are available.
10726
10727 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
10728 Sandra Loosemore <sandra@codesourcery.com>
10729
10730 * regrename.h (regrename_do_replace): Change to return bool.
10731 * regrename.c (rename_chains): Check return value of
10732 regname_do_replace.
10733 (regrename_do_replace): Re-validate the modified insns and
10734 return bool status.
10735 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
10736 Update to match rename_chains changes.
10737 * config/c6x/c6x.c (try_rename_operands): Assert that
10738 regrename_do_replace returns true.
10739
10740 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
10741
10742 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
10743 operand 2 here. Use copy_addr_to_reg to copy non-index
10744 register operand 2 to a temporary.
10745 (<mode>_stx): Ditto for operand 1.
10746 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
10747 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
10748 (ix86_store_bounds): Ditto.
10749
10750 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
10751
10752 * print-tree.c (print_node) [TREE_VEC]: Print its length.
10753
10754 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
10755
10756 * gimple.c (gimple_call_set_fndecl): Remove.
10757 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
10758 build1_loc directly instead of build_fold_addr_expr_loc.
10759
10760 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
10761
10762 * hash-map.h (hash_map::traverse): Use the definition of the
10763 Key typedef rather than the typedef itself.
10764
10765 2015-06-26 Martin Jambor <mjambor@suse.cz>
10766
10767 PR debug/66301
10768 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
10769 NULL instead of calling dump_enabled_p.
10770
10771 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10772
10773 * config/aarch64/aarch64.opt: (override): New.
10774 * doc/invoke.texi (override): Document.
10775 * config/aarch64/aarch64.c (aarch64_flag_desc): New
10776 (aarch64_fusible_pairs): Likewise.
10777 (aarch64_tuning_flags): Likewise.
10778 (aarch64_tuning_override_function): Likewise.
10779 (aarch64_tuning_override_functions): Likewise.
10780 (aarch64_parse_one_option_token): Likewise.
10781 (aarch64_parse_boolean_options): Likewise.
10782 (aarch64_parse_fuse_string): Likewise.
10783 (aarch64_parse_tune_string): Likewise.
10784 (aarch64_parse_one_override_token): Likewise.
10785 (aarch64_parse_override_string): Likewise.
10786 (aarch64_override_options): Parse the -override string if it
10787 is present.
10788
10789 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10790
10791 * config/aarch64/aarch64-protos.h (tune_params): Remove
10792 const from members.
10793 (aarch64_tune_params): Remove const, change to no longer be
10794 a pointer.
10795 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
10796 change to no longer be a pointer, initialize to generic_tunings.
10797 (aarch64_min_divisions_for_recip_mul): Change dereference of
10798 aarch64_tune_params to member access.
10799 (aarch64_reassociation_width): Likewise.
10800 (aarch64_rtx_mult_cost): Likewise.
10801 (aarch64_address_cost): Likewise.
10802 (aarch64_branch_cost): Likewise.
10803 (aarch64_rtx_costs): Likewise.
10804 (aarch64_register_move_cost): Likewise.
10805 (aarch64_memory_move_cost): Likewise.
10806 (aarch64_sched_issue_rate): Likewise.
10807 (aarch64_builtin_vectorization_cost): Likewise.
10808 (aarch64_override_options): Take a copy of the selected tuning
10809 struct in to aarch64_tune_params, rather than just setting
10810 a pointer, change dereferences of aarch64_tune_params to member
10811 accesses.
10812 (aarch64_override_options_after_change): Change dereferences of
10813 aarch64_tune_params to member access.
10814 (aarch64_macro_fusion_p): Likewise.
10815 (aarch_macro_fusion_pair_p): Likewise.
10816 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
10817
10818 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10819
10820 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
10821 (aarch64_tune_flags): Likewise.
10822 (AARCH64_TUNE_FMA_STEERING): Likewise.
10823 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
10824 to AARCH64_FL_USE_FMA_STEERING_PASS.
10825 (cortex-a57.cortex-a53): Likewise.
10826 (cortex-a72): Use cortexa72_tunings.
10827 (cortex-a72.cortex-a53): Likewise.
10828 (exynos-m1): Likewise.
10829 * config/aarch64/aarch64-protos.h (tune_params): Add
10830 a field: extra_tuning_flags.
10831 * config/aarch64/aarch64-tuning-flags.def: New.
10832 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
10833 (aarch64_extra_tuning_flags): Likewise.
10834 (aarch64_tune_params): Declare here.
10835 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
10836 (cortexa53_tunings): Likewise.
10837 (cortexa57_tunings): Likewise.
10838 (thunderx_tunings): Likewise.
10839 (xgene1_tunings): Likewise.
10840 (cortexa72_tunings): New.
10841 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
10842 (gate): Check against aarch64_tune_params.
10843 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
10844 aarch64-protos.h.
10845
10846 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10847
10848 * config/aarch64/aarch64-fusion-pairs.def: New.
10849 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
10850 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
10851 aarch64_fusion_pairs.
10852 (AARCH64_FUSE_MOV_MOVK): Likewise.
10853 (AARCH64_FUSE_ADRP_ADD): Likewise.
10854 (AARCH64_FUSE_MOVK_MOVK): Likewise.
10855 (AARCH64_FUSE_ADRP_LDR): Likewise.
10856 (AARCH64_FUSE_CMP_BRANCH): Likewise.
10857
10858 2015-06-26 Jiong Wang <jiong.wang@arm.com>
10859
10860 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
10861 SYMBOL_SMALL_GOT_28K.
10862 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
10863 relocation modifiers.
10864 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
10865 (ldr_got_small_28k_<mode>): New.
10866 (ldr_got_small_28k_sidi): New.
10867 * config/aarch64/iterators.md (got_modifier): New mode iterator.
10868 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
10869 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
10870 SYMBOL_SMALL_GOT_28K.
10871 (aarch64_rtx_costs): Add costs for new instruction sequences.
10872 (initialize_aarch64_code_model): Initialize new model.
10873 (aarch64_classify_symbol): Recognize new model and new symbol classification.
10874 (aarch64_asm_preferred_eh_data_format): Support new model.
10875 (aarch64_load_symref_appropriately): Generate new instruction
10876 sequences for -fpic.
10877 (TARGET_USE_PSEUDO_PIC_REG): New definition.
10878 (aarch64_use_pseudo_pic_reg): New function.
10879
10880 2015-06-26 Jiong Wang <jiong.wang@arm.com>
10881
10882 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
10883 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
10884 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
10885 (aarch64_expand_mov_immediate): Ditto.
10886 (aarch64_print_operand): Ditto.
10887 (aarch64_classify_symbol): Ditto.
10888
10889 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
10890
10891 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
10892
10893 2015-06-26 Bin Cheng <bin.cheng@arm.com>
10894
10895 PR bootstrap/66638
10896 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
10897 assertion failed. Remove assertion itself.
10898
10899 2015-06-26 Richard Biener <rguenther@suse.de>
10900
10901 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
10902 and -A CMP CST -> A CMP -CST which is redundant with a pattern
10903 in match.pd.
10904 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
10905 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
10906 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
10907 * match.pd: ... patterns here.
10908
10909 2015-06-26 Marek Polacek <polacek@redhat.com>
10910
10911 * match.pd ((x | y) & ~(x & y) -> x ^ y,
10912 (x | y) & (~x ^ y) -> x & y): New patterns.
10913
10914 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
10915
10916 * rtl.h (emit): Add an optional boolean parameter to control
10917 whether barriers are emitted.
10918 * emit-rtl.c (emit): Likewise.
10919 * gensupport.c (get_emit_function): Return null rather than "emit".
10920 * genemit.c (gen_emit_seq): Handle the null return value.
10921 Don't emit barriers after the final instruction in the sequence.
10922 * gentarget-def.c (main): Don't emit barriers after the instruction.
10923
10924 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10925
10926 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
10927 TARGET_UNIFIED_ASM.
10928
10929 2015-06-26 Richard Biener <rguenther@suse.de>
10930
10931 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
10932
10933 2015-06-26 Richard Biener <rguenther@suse.de>
10934
10935 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
10936 irrespective on whether the inner operation has a single use
10937 of both off are constant.
10938
10939 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
10940 Segher Boessenkool <segher@kernel.crashing.org>
10941
10942 PR target/66412
10943 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
10944 before doing PUT_MODE or PUT_CODE on operands to avoid
10945 in-place RTX modification.
10946
10947 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
10948
10949 * gentarget-def.c (def_target_insn): Cast return of strtol to
10950 unsigned int.
10951
10952 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
10953
10954 * gimple.h (gimple_call_set_fn): Move inline function.
10955 * gimple.c (gimple_call_set_fn): Relocate here.
10956
10957 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
10958
10959 PR target/65979
10960 PR target/66611
10961 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
10962 the replacement insn will work.
10963
10964 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
10965
10966 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
10967 by default.
10968
10969 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
10970
10971 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
10972 * cgraph.h: Include ipa-ref.h and plugin-api.h.
10973 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
10974 (symtab_node::address_can_be_compared_p): Move function.
10975 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
10976 definition here.
10977 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
10978 * auto-profile.c: Likewise.
10979 * bb-reorder.c: Likewise.
10980 * builtins.c: Likewise.
10981 * calls.c: Likewise.
10982 * cfgexpand.c: Likewise.
10983 * cgraphbuild.c: Likewise.
10984 * cgraphclones.c: Likewise.
10985 * cgraphunit.c: Likewise.
10986 * combine.c: Likewise.
10987 * coverage.c: Likewise.
10988 * data-streamer-in.c: Likewise.
10989 * data-streamer-out.c: Likewise.
10990 * data-streamer.c: Likewise.
10991 * dbxout.c: Likewise.
10992 * dwarf2out.c: Likewise.
10993 * except.c: Likewise.
10994 * expr.c: Likewise.
10995 * final.c: Likewise.
10996 * fold-const.c: Likewise.
10997 * ggc-page.c: Likewise.
10998 * gimple-fold.c: Likewise.
10999 * gimple-iterator.c: Likewise.
11000 * gimple-pretty-print.c: Likewise.
11001 * gimple-streamer-in.c: Likewise.
11002 * gimple-streamer-out.c: Likewise.
11003 * gimple.c: Likewise.
11004 * gimplify.c: Likewise.
11005 * ipa-chkp.c: Likewise.
11006 * ipa-comdats.c: Likewise.
11007 * ipa-cp.c: Likewise.
11008 * ipa-devirt.c: Likewise.
11009 * ipa-icf-gimple.c: Likewise.
11010 * ipa-icf.c: Likewise.
11011 * ipa-inline-analysis.c: Likewise.
11012 * ipa-inline-transform.c: Likewise.
11013 * ipa-inline.c: Likewise.
11014 * ipa-polymorphic-call.c: Likewise.
11015 * ipa-profile.c: Likewise.
11016 * ipa-prop.c: Likewise.
11017 * ipa-pure-const.c: Likewise.
11018 * ipa-ref.c: Likewise.
11019 * ipa-reference.c: Likewise.
11020 * ipa-split.c: Likewise.
11021 * ipa-utils.c: Likewise.
11022 * ipa-visibility.c: Likewise.
11023 * ipa.c: Likewise.
11024 * langhooks.c: Likewise.
11025 * lto-cgraph.c: Likewise.
11026 * lto-compress.c: Likewise.
11027 * lto-opts.c: Likewise.
11028 * lto-section-in.c: Likewise.
11029 * lto-section-out.c: Likewise.
11030 * lto-streamer-in.c: Likewise.
11031 * lto-streamer-out.c: Likewise.
11032 * lto-streamer.c: Likewise.
11033 * omp-low.c: Likewise.
11034 * opts-global.c: Likewise.
11035 * passes.c: Likewise.
11036 * predict.c: Likewise.
11037 * print-tree.c: Likewise.
11038 * profile.c: Likewise.
11039 * ree.c: Likewise.
11040 * sanopt.c: Likewise.
11041 * stor-layout.c: Likewise.
11042 * symtab.c: Likewise.
11043 * toplev.c: Likewise.
11044 * trans-mem.c: Likewise.
11045 * tree-cfg.c: Likewise.
11046 * tree-chkp.c: Likewise.
11047 * tree-eh.c: Likewise.
11048 * tree-emutls.c: Likewise.
11049 * tree-inline.c: Likewise.
11050 * tree-nested.c: Likewise.
11051 * tree-parloops.c: Likewise.
11052 * tree-pretty-print.c: Likewise.
11053 * tree-profile.c: Likewise.
11054 * tree-sra.c: Likewise.
11055 * tree-ssa-alias.c: Likewise.
11056 * tree-ssa-live.c: Likewise.
11057 * tree-ssa-loop-ivcanon.c: Likewise.
11058 * tree-ssa-loop-ivopts.c: Likewise.
11059 * tree-ssa-pre.c: Likewise.
11060 * tree-ssa-sccvn.c: Likewise.
11061 * tree-ssa-strlen.c: Likewise.
11062 * tree-ssa-structalias.c: Likewise.
11063 * tree-streamer-in.c: Likewise.
11064 * tree-streamer-out.c: Likewise.
11065 * tree-streamer.c: Likewise.
11066 * tree-switch-conversion.c: Likewise.
11067 * tree-tailcall.c: Likewise.
11068 * tree-vect-data-refs.c: Likewise.
11069 * tree-vect-stmts.c: Likewise.
11070 * tree-vectorizer.c: Likewise.
11071 * tree.c: Likewise.
11072 * tsan.c: Likewise.
11073 * ubsan.c: Likewise.
11074 * value-prof.c: Likewise.
11075 * varasm.c: Likewise.
11076 * varpool.c: Likewise.
11077 * config/arm/arm.c: Likewise.
11078 * config/bfin/bfin.c: Likewise.
11079 * config/c6x/c6x.c: Likewise.
11080 * config/cris/cris.c: Likewise.
11081 * config/darwin-c.c: Likewise.
11082 * config/darwin.c: Likewise.
11083 * config/i386/i386.c: Likewise.
11084 * config/i386/winnt.c: Likewise.
11085 * config/microblaze/microblaze.c: Likewise.
11086 * config/mips/mips.c: Likewise.
11087 * config/rs6000/rs6000.c: Likewise.
11088 * config/rx/rx.c: Likewise.
11089 * config/s390/s390.c: Likewise.
11090 * config/tilegx/mul-tables.c: Likewise.
11091
11092 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11093
11094 * config/aarch64/aarch64.c, config/alpha/alpha.c,
11095 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
11096 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
11097 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
11098 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
11099 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
11100 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
11101 config/microblaze/microblaze.c, config/mips/mips.c,
11102 config/mmix/mmix.c, config/mn10300/mn10300.c,
11103 config/moxie/moxie.c, config/msp430/msp430.c,
11104 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
11105 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
11106 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
11107 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
11108 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11109 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
11110 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
11111 target-def.h include.
11112 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
11113
11114 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11115
11116 * Makefile.in (TARGET_DEF): Add target-insns.def.
11117 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
11118 (build/gentarget-def.o): New rule.
11119 (genprogrtl): Add target-def.
11120 * target-insns.def, gentarget-def.c: New files.
11121 * target.def: Add targetm.have_* and targetm.gen_* hooks,
11122 based on the contents of target-insns.def.
11123 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
11124 (HAVE_return, gen_return): Delete.
11125 * target-def.h: Include insn-target-def.h.
11126 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
11127 instead of direct calls. Rely on them to do the appropriate assertions.
11128 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
11129 (convert_jumps_to_returns): Use targetm interface instead of
11130 direct calls.
11131 (thread_prologue_and_epilogue_insns): Likewise.
11132 * reorg.c (find_end_label, dbr_schedule): Likewise.
11133 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
11134 * shrink-wrap.c (convert_to_simple_return): Likewise.
11135 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
11136
11137 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11138
11139 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
11140 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
11141 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
11142 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
11143 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
11144 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
11145 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
11146 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
11147 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
11148 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
11149 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
11150 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
11151 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
11152 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11153 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
11154 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
11155 includes to end.
11156
11157 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11158
11159 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
11160 (unbounded_int_hashmap_traits::key_type): Likewise.
11161 * hash-map.h (hash_map): Get the key type from the traits.
11162 * hash-traits.h (default_hash_traits): By default, inherit from the
11163 template parameter.
11164 * alias.c (alias_set_traits): Delete.
11165 (alias_set_entry_d::children): Use alias_set_hash as the first
11166 template parameter.
11167 (record_alias_subset): Update accordingly.
11168 * except.c (tree_hash_traits): Delete.
11169 (type_to_runtime_map): Use tree_hash as the first template parameter.
11170 (init_eh): Update accordingly.
11171 * genmatch.c (capture_id_map_hasher): Delete.
11172 (cid_map_t): Use nofree_string_hash as first template parameter.
11173 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
11174 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
11175 Use symbol_compare_hash as the first template parameter in
11176 subdivide_hash_map.
11177 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
11178 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
11179 template parameter.
11180 * passes.c (pass_registry_hasher): Delete.
11181 (name_to_pass_map): Use nofree_string_hash as the first template
11182 parameter.
11183 (register_pass_name): Update accordingly.
11184 * sanopt.c (sanopt_tree_map_traits): Delete.
11185 (sanopt_tree_triplet_map_traits): Delete.
11186 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
11187 template parameter.
11188 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
11189 the first template parameter.
11190 * sese.c (rename_map_hasher): Delete.
11191 (rename_map_type): Use tree_ssa_name_hash as the first template
11192 parameter.
11193 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
11194 (function_summary::m_map): Use map_hash as the first template
11195 parameter.
11196 (function_summary::release): Update accordingly.
11197 * tree-if-conv.c (phi_args_hash_traits): Delete.
11198 (predicate_scalar_phi): Use tree_operand_hash as the first template
11199 parameter to phi_arg_map.
11200 * tree-inline.h (dependence_hasher): Delete.
11201 (copy_body_data::dependence_map): Use dependence_hash as the first
11202 template parameter.
11203 * tree-inline.c (remap_dependence_clique): Update accordingly.
11204 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
11205 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
11206 parameter.
11207 (addr_stridxptr): Update accordingly.
11208 * value-prof.c (profile_id_traits): Delete.
11209 (cgraph_node_map): Use profile_id_hash as the first template
11210 parameter.
11211 (init_node_map): Update accordingly.
11212 * config/alpha/alpha.c (string_traits): Delete.
11213 (machine_function::links): Use nofree_string_hash as the first
11214 template parameter.
11215 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
11216 * config/m32c/m32c.c (pragma_traits): Delete.
11217 (pragma_htab): Use nofree_string_hash as the first template parameter.
11218 (m32c_note_pragma_address): Update accordingly.
11219 * config/mep/mep.c (pragma_traits): Delete.
11220 (pragma_htab): Use nofree_string_hash as the first template parameter.
11221 (mep_note_pragma_flag): Update accordingly.
11222 * config/mips/mips.c (mips16_flip_traits): Delete.
11223 (mflip_mips16_htab): Use nofree_string_hash as the first template
11224 parameter.
11225 (mflip_mips16_use_mips16_p): Update accordingly.
11226 (local_alias_traits): Delete.
11227 (mips16_local_aliases): Use nofree_string_hash as the first template
11228 parameter.
11229 (mips16_local_alias): Update accordingly.
11230
11231 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11232
11233 * hash-map-traits.h (default_hashmap_traits): Delete.
11234
11235 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11236
11237 * hash-map-traits.h (unbounded_hashmap_traits): New class.
11238 (unbounded_int_hashmap_traits): Likewise.
11239 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
11240
11241 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11242
11243 * ipa-icf.h (symbol_compare_hash): New class.
11244 (symbol_compare_hashmap_traits): Use it.
11245 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
11246 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
11247 (mem_alloc_description::reverse_mem_map_t): Remove redundant
11248 default_hashmap_traits.
11249 * sanopt.c (sanopt_tree_triplet_hash): New class.
11250 (sanopt_tree_triplet_map_traits): Use it.
11251
11252 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11253
11254 * gengtype-parse.c (require_template_declaration): Allow '+' in
11255 template parameters. Consolidate cases.
11256 * hash-traits.h (int_hash): New class.
11257 * alias.c (alias_set_hash): New structure.
11258 (alias_set_traits): Use it.
11259 * symbol-summary.h (function_summary::map_hash): New class.
11260 (function_summary::summary_hashmap_traits): Use it.
11261 * tree-inline.h (dependence_hash): New class.
11262 (dependence_hasher): Use it.
11263 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
11264 * value-prof.c (profile_id_hash): New class.
11265 (profile_id_traits): Use it.
11266
11267 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11268
11269 * config/mips/mips.c (mips16_flip_traits): Use it.
11270 (local_alias_traits, mips16_local_aliases): Convert from a map of
11271 rtxes to a map of symbol names.
11272 (mips16_local_alias): Update accordingly.
11273
11274 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11275
11276 * hash-traits.h (string_hash, nofree_string_hash): New classes.
11277 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
11278 * passes.c (pass_registry_hasher): Likewise.
11279 * config/alpha/alpha.c (string_traits): Likewise.
11280 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
11281 * config/m32c/m32c.c (pragma_traits): Likewise.
11282 * config/mep/mep.c (pragma_traits): Likewise.
11283
11284 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11285
11286 * tree-hash-traits.h (tree_hash): New class.
11287 * except.c: Include tree-hash-traits.h.
11288 (tree_hash_traits): Use tree_hash.
11289
11290 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11291
11292 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
11293 * sese.c: Include tree-hash-traits.h.
11294 (rename_map_hasher): Use tree_ssa_name_hasher.
11295
11296 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11297
11298 * tree-hash-traits.h (tree_decl_hash): New class.
11299 * tree-ssa-strlen.c: Include tree-hash-traits.h.
11300 (stridxlist_hash_traits): Use tree_decl_hash.
11301
11302 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11303
11304 * tree-hash-traits.h: New file.
11305 (tree_operand_hash): New class.
11306 * sanopt.c: Include tree-hash-traits.h.
11307 (sanopt_tree_map_traits): Use tree_operand_hash.
11308 * tree-if-conv.c: Include tree-hash-traits.h.
11309 (phi_args_hash_traits): Use tree_operand_hash.
11310 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
11311 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
11312
11313 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11314
11315 * hash-map-traits.h: Include hash-traits.h.
11316 (simple_hashmap_traits): New class.
11317 * mem-stats.h (hash_map): Change the default traits to
11318 simple_hashmap_traits<default_hash_traits<Key> >.
11319
11320 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11321
11322 * hash-table.h: Update comments.
11323
11324 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11325
11326 * hash-traits.h (default_hash_traits): New structure.
11327 * hash-set.h (default_hashset_traits): Delete.
11328 (hash_set): Use default_hash_traits<Key> instead of
11329 default_hashset_traits. Delete hash_entry type and use Key directly.
11330 * ipa-devirt.c (pair_traits): Delete.
11331 (default_hash_traits <type_pair>): Override.
11332 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
11333 (odr_types_equivalent_p, add_type_duplicate): Likewise.
11334
11335 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11336
11337 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
11338
11339 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11340
11341 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
11342 (has_is_empty, is_empty_helper): Delete.
11343 (has_mark_deleted, mark_deleted_helper): Delete.
11344 (has_mark_empty, mark_empty_helper): Delete.
11345 (hash_table::is_deleted): Call the Descriptor unconditionally.
11346 (hash_table::is_empty): Likewise.
11347 (hash_table::mark_deleted): Likewise.
11348 (hash_table::mark_empty): Likewise.
11349
11350 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11351
11352 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
11353 redundant typedefs and members.
11354 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
11355 redundant typedefs.
11356 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
11357 * ipa-devirt.c (odr_name_hasher): Likewise.
11358 (polymorphic_call_target_hasher): Likewise.
11359 * ira-costs.c (cost_classes_hasher): Likewise.
11360 * statistics.c (stats_counter_hasher): Likewise.
11361 * trans-mem.c (log_entry_hasher): Likewise.
11362 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
11363 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
11364 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
11365 * var-tracking.c (variable_hasher): Likewise.
11366 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
11367 Remove redundant typedefs and members.
11368
11369 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11370
11371 * hash-traits.h (ggc_cache_hasher): Rename to...
11372 (ggc_cache_remove): ...this and remove typedefs.
11373 (ggc_cache_ptr_hash): New class.
11374 * hash-table.h: Update commentary.
11375 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
11376 rather than ggc_cache_hasher.
11377 (const_wide_int_hasher, reg_attr_hasher): Likewise.
11378 (const_double_hasher, const_fixed_hasher): Likewise.
11379 * function.c (insn_cache_hasher): Likewise.
11380 * trans-mem.c (tm_wrapper_hasher): Likewise.
11381 * tree.h (tree_decl_map_cache_hasher): Likewise.
11382 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
11383 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
11384 * ubsan.c (tree_type_map_cache_hasher): Likewise.
11385 * varasm.c (tm_clone_hasher): Likewise.
11386 * config/i386/i386.c (dllimport_hasher): Likewise.
11387 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
11388 (tree_hasher): Likewise.
11389
11390 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11391
11392 * hash-traits.h (ggc_hasher): Rename to...
11393 (ggc_remover): ...this and remove typedefs.
11394 (ggc_cache_hasher): Update accordingly. Add typedefs.
11395 (ggc_ptr_hash): New class.
11396 * hash-table.h: Update comment.
11397 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
11398 ggc_hasher.
11399 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
11400 (tree_descriptor_hasher): Likewise.
11401 * cgraph.c (function_version_hasher): Likewise.
11402 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
11403 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
11404 (dw_loc_list_hasher, addr_hasher): Likewise.
11405 * function.h (used_type_hasher): Likewise.
11406 * function.c (temp_address_hasher): Likewise.
11407 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
11408 * libfuncs.h (libfunc_hasher): Likewise.
11409 * lto-streamer.h (decl_state_hasher): Likewise.
11410 * optabs.c (libfunc_decl_hasher): Likewise.
11411 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
11412 * varasm.c (section_hasher, object_block_hasher): Likewise.
11413 (const_rtx_desc_hasher): Likewise.
11414 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
11415 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
11416
11417 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11418
11419 * hash-traits.h (free_ptr_hash): New class.
11420 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
11421 rather than typed_free_remove. Remove redudant typedefs.
11422 (external_ref_hasher): Likewise.
11423 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
11424 (ehspec_hasher): Likewise.
11425 * ggc-common.c (saving_hasher): Likewise.
11426 * gimplify.c (gimplify_hasher): Likewise.
11427 * haifa-sched.c (delay_i2_hasher): Likewise.
11428 * loop-invariant.c (invariant_expr_hasher): Likewise.
11429 * loop-iv.c (biv_entry_hasher): Likewise.
11430 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
11431 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
11432 * tree-cfg.c (locus_discrim_hasher): Likewise.
11433 * tree-eh.c (finally_tree_hasher): Likewise.
11434 * tree-into-ssa.c (var_info_hasher): Likewise.
11435 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
11436 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
11437 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
11438 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
11439 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
11440 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
11441 (shared_bitmap_hasher): Likewise.
11442 * tree-ssa-threadupdate.c (redirection_data): Likewise.
11443 * tree-vectorizer.h (peel_info_hasher): Likewise.
11444 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
11445 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
11446
11447 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11448
11449 * hash-table.h: Update comments.
11450 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
11451 (nofree_ptr_hash): New class.
11452 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
11453 than typed_noop_remove. Remove redudant typedefs.
11454 * attribs.c (attribute_hasher): Likewise.
11455 * cfg.c (bb_copy_hasher): Likewise.
11456 * cselib.c (cselib_hasher): Likewise.
11457 * dse.c (invariant_group_base_hasher): Likewise.
11458 * dwarf2cfi.c (trace_info_hasher): Likewise.
11459 * dwarf2out.c (macinfo_entry_hasher): Likewise.
11460 (comdat_type_hasher, loc_list_hasher): Likewise.
11461 * gcse.c (pre_ldst_expr_hasher): Likewise.
11462 * genmatch.c (id_base): Likewise.
11463 * genrecog.c (test_pattern_hasher): Likewise.
11464 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
11465 * haifa-sched.c (delay_i1_hasher): Likewise.
11466 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
11467 * ipa-icf.h (congruence_class_group_hash): Likewise.
11468 * ipa-profile.c (histogram_hash): Likewise.
11469 * ira-color.c (allocno_hard_regs_hasher): Likewise.
11470 * lto-streamer.h (string_slot_hasher): Likewise.
11471 * lto-streamer.c (tree_entry_hasher): Likewise.
11472 * plugin.c (event_hasher): Likewise.
11473 * postreload-gcse.c (expr_hasher): Likewise.
11474 * store-motion.c (st_expr_hasher): Likewise.
11475 * tree-sra.c (uid_decl_hasher): Likewise.
11476 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
11477 (ssa_name_var_hash): Likewise.
11478 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
11479 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
11480 * tree-ssa-pre.c (pre_expr_d): Likewise.
11481 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
11482 * vtable-verify.h (registration_hasher): Likewise.
11483 * vtable-verify.c (vtbl_map_hasher): Likewise.
11484 * config/arm/arm.c (libcall_hasher): Likewise.
11485 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
11486 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
11487 * config/sol2.c (comdat_entry_hasher): Likewise.
11488 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
11489 (print_fold_checksum, fold_checksum_tree): Likewise.
11490 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
11491 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
11492 (fold_build_call_array_loc): Likewise.
11493 * tree-ssa-ccp.c (gimple_htab): Likewise.
11494 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
11495 rather than pointer_type.
11496
11497 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11498
11499 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
11500 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
11501
11502 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11503
11504 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
11505 (ggc_hasher::ggc_mx): Likewise.
11506 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
11507 that duplicate ggc_hasher ones.
11508
11509 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11510
11511 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
11512 (gt_cleare_cache): Check here for deleted and empty entries.
11513 Replace handle_cache_entry with a call to keep_cache_entry.
11514 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
11515 (ggc_cache_hasher::keep_cache_entry): New function.
11516 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
11517 (tm_wrapper_hasher::keep_cache_entry): New function.
11518 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
11519 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
11520 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
11521 (type_cache_hasher::keep_cache_entry): New function.
11522 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
11523 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
11524 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
11525 (tree_type_map_cache_hasher::keep_cache_entry): New function.
11526 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
11527 (tm_clone_hasher::keep_cache_entry): New function.
11528 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
11529 (dllimport_hasher::keep_cache_entry): New function.
11530
11531 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11532
11533 * hash-table.h: Include hash-traits.h.
11534 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
11535 (ggc_cache_hasher): Move to...
11536 * hash-traits.h: ...this new file.
11537
11538 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11539
11540 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
11541 struct cl_optimization.
11542 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
11543 * tree.c (make_node_stat): Allocate cl_optimization struct.
11544 (copy_node_stat): Allocate and copy cl_optimization struct.
11545
11546 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11547
11548 * function.h (struct incoming_args): Move struct.
11549 (pass_by_reference, reference_callee_copied): Remove prototypes.
11550 * emit-rtl.h (struct incoming_args): Relocate struct here.
11551 * calls.h (pass_by_reference, reference_callee_copied): Relocate
11552 prototypes here.
11553 * function.c (pass_by_reference, reference_callee_copied): Move.
11554 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
11555 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
11556 * ipa-chkp.c: Include calls.h.
11557
11558 2015-06-25 Andrew Macleod <amacleod@redhat.com>
11559
11560 * alias.h (alias_set_type): Move typedef.
11561 * coretypes.h (alias_set_type): Relocate typedef here.
11562 * rtl.h: Don't include alias.h.
11563
11564 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
11565
11566 * cgraph.h (cgraph_rtl_info): Move to rtl.h
11567 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
11568 and instance.
11569 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
11570 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
11571 doesn't exist.
11572 * calls.c: Include hard-reg-set.h before rtl.h.
11573 * ira.c: Likewise.
11574
11575 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
11576 Vladimir Makarov <vmakarov@redhat.com>
11577
11578 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
11579 Add assert.
11580
11581 2015-06-25 Richard Biener <rguenther@suse.de>
11582
11583 * fold-const.c (fold_binary_loc): Move simplification of
11584 (X <<>> C1) & C2 ...
11585 * match.pd: ... here.
11586
11587 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
11588
11589 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
11590
11591 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
11592
11593 * match.pd: Add patterns for vec_conds between 1 and 0.
11594
11595 2015-06-25 Richard Biener <rguenther@suse.de>
11596
11597 * tree-vect-stmts.c (vectorizable_conversion): Do not set
11598 STMT_VINFO_VEC_STMT for SLP.
11599 (vectorizable_store): Likewise.
11600 (vectorizable_load): Likewise.
11601 (vect_transform_stmt): Catch SLP vectorization clobbering
11602 STMT_VINFO_VEC_STMT.
11603
11604 2015-06-25 Richard Biener <rguenther@suse.de>
11605
11606 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
11607 dumping.
11608 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
11609 cleanup resulting dead code and parameters.
11610 (vect_transform_slp_perm_load): Adjust.
11611
11612 2015-06-25 Nick Clifton <nickc@redhat.com>
11613
11614 * config/bfin/bfin.c (bfin_expand_prologue): Set
11615 current_function_static_stack_size if flag_stack_usage_info is set.
11616 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
11617 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
11618 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
11619 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
11620
11621 2015-06-25 Tom de Vries <tom@codesourcery.com>
11622
11623 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
11624 comment that the generated IV is unsigned.
11625
11626 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11627
11628 PR target/29693
11629 * config/arm/arm.c (arm_dbx_register_number): Return
11630 DWARF_FRAME_REGISTERS by default.
11631
11632 2015-06-25 Tom de Vries <tom@codesourcery.com>
11633
11634 * dominance.c (calculate_dominance_info): Fix verify_dominators call
11635 argument. Call verify_dominator when reusing dominator info.
11636
11637 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
11638
11639 PR target/66563
11640 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
11641 an additional element of the unspec vector. Modify indices
11642 of operands.
11643 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
11644 * config/sh/sh.c (prepare_move_operands): Pass incremented
11645 const_int to gen_GOTaddr2picreg.
11646 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
11647
11648 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
11649
11650 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
11651 Condition on TARGET_FLOAT.
11652
11653 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
11654
11655 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
11656 and (no)crypto.
11657
11658 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
11659
11660 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
11661
11662 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
11663 aarch64_err_no_fpadvsimd.
11664
11665 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
11666 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
11667 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
11668 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
11669 Turn error into assert, test TARGET_FLOAT.
11670 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
11671 TARGET_FLOAT.
11672
11673 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
11674
11675 PR debug/66482
11676 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
11677
11678 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
11679
11680 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
11681
11682 2015-06-24 Renlin Li <renlin.li@arm.com>
11683
11684 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
11685 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
11686
11687 2015-06-24 Richard Biener <rguenther@suse.de>
11688
11689 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
11690 (main): Likewise.
11691 (lower_opt_convert): Support lowering of conditional view_convert.
11692 (parser::parse_operation): Likewise.
11693 (parser::parse_for): Likewise.
11694
11695 2015-06-24 Renlin Li <renlin.li@arm.com>
11696
11697 * varasm.c (emit_local): Use unsigned int for align variable.
11698
11699 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11700
11701 PR target/63408
11702 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
11703 for negative numbers.
11704
11705 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11706
11707 PR rtl-optimization/66306
11708 * reload.c (find_reloads): Swap the match_dup info for
11709 commutative operands.
11710
11711 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11712
11713 * config/s390/vx-builtins.md
11714 ("vec_scatter_element<mode>_<non_vec_int>")
11715 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
11716 attribute with bhfgq.
11717
11718 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11719
11720 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
11721
11722 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11723
11724 * config/s390/s390-builtin-types.def: Add flag to indicate the
11725 options under which the function type is needed.
11726 * config/s390/s390-builtins.def: Add flag to indicate the options
11727 under which the builtin is enabled.
11728 * config/s390/s390-builtins.h: Add flags parameter to macro
11729 definitions.
11730 (bflags_for_builtin): New function.
11731 (flags_for_builtin): Renamed to ...
11732 (opflags_for_builtin): ... this.
11733 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
11734 flags_for_builtin to bflags_for_builtin and
11735 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
11736 * config/s390/s390.c: Add initialization of bflags_builtin and
11737 opflags_builtin arrays.
11738 Remove code for flags_builtin.
11739 (s390_init_builtins): Only create builtin function types if one of
11740 their flags is active.
11741 Only create builtins if all of their flags are active.
11742 (s390_expand_builtin): Rename flags_for_builtin to
11743 opflags_for_builtin.
11744
11745 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11746
11747 * config/s390/vecintrin.h: Remove internal builtins.
11748
11749 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11750
11751 * config/s390/s390.c (s390_secondary_reload): Fix check for
11752 GENERAL_REGS register class.
11753
11754 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11755
11756 * config/s390/s390.c (s390_support_vector_misalignment): Call
11757 default implementation for !TARGET_VX.
11758
11759 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11760
11761 * config/s390/s390.c (s390_legitimate_constant_p): Add
11762 TARGET_VX check.
11763
11764 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11765
11766 * config/s390/s390.c (s390_vector_abi): New variable definition.
11767 (s390_check_type_for_vector_abi): New function.
11768 (TARGET_ASM_FILE_END): New macro definition.
11769 (s390_asm_file_end): New function.
11770 (s390_function_arg): Call s390_check_type_for_vector_abi.
11771 (s390_gimplify_va_arg): Likewise.
11772 * configure: Regenerate.
11773 * configure.ac: Check for .gnu_attribute Binutils feature.
11774
11775 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
11776
11777 PR target/65803
11778 * config/bfin/bfin.c (hwloop_optimize): Initialize
11779 JUMP_LABEL for newly created jump.
11780
11781 2015-06-23 Tristan Gingold <gingold@adacore.com>
11782
11783 * collect-utils.c (collect_wait): Unlink the response file here
11784 instead of...
11785 (do_wait): ...here.
11786 (utils_cleanup): ...and here.
11787
11788 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
11789
11790 * df-scan.c: Don't include target-def.h.
11791 * targhooks.c: Likewise.
11792 * config/arm/arm-c.c: Likewise.
11793 * config/i386/i386-c.c: Likewise.
11794 * config/nds32/nds32-cost.c: Likewise.
11795 * config/nds32/nds32-fp-as-gp.c: Likewise.
11796 * config/nds32/nds32-intrinsic.c: Likewise.
11797 * config/nds32/nds32-isr.c: Likewise.
11798 * config/nds32/nds32-md-auxiliary.c: Likewise.
11799 * config/nds32/nds32-memory-manipulation.c: Likewise.
11800 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11801 * config/nds32/nds32-predicates.c: Likewise.
11802
11803 2015-06-23 Richard Biener <rguenther@suse.de>
11804
11805 PR tree-optimization/66636
11806 * tree-vect-stmts.c (vectorizable_store): Properly compute the
11807 def type for further defs for strided stores.
11808
11809 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
11810
11811 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
11812 conditional selects.
11813 (setcc_int<mode>, setcc_float<mode>): Reformat.
11814
11815 2015-06-23 Marek Polacek <polacek@redhat.com>
11816
11817 * match.pd ((x + y) - (x | y) -> x & y,
11818 (x + y) - (x & y) -> x | y): New patterns.
11819
11820 2015-06-23 Ludovic Courtès <ludo@gnu.org>
11821
11822 PR 65711
11823 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
11824 '-dynamic-linker' within %{!shared: ...}.
11825
11826 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
11827
11828 PR target/66560
11829 * config/i386/predicates.md (addsub_vm_operator): New predicate.
11830 (addsub_vs_operator): Ditto.
11831 (addsub_vs_parallel): Ditto.
11832 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
11833 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
11834 Put minus RTX before plus and adjust vec_merge selector.
11835 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
11836 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
11837 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
11838 (addsub vec_merge splitters): New combiner splitters.
11839 (addsub vec_select/vec_concat splitters): Ditto.
11840
11841 2015-06-23 Bin Cheng <bin.cheng@arm.com>
11842
11843 PR tree-optimization/66449
11844 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
11845 POINTER_PLUS_EXPR for pointers.
11846
11847 2015-06-23 Alan Modra <amodra@gmail.com>
11848
11849 * rtlanal.c (commutative_operand_precedence): Correct comments.
11850 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
11851 declaration. Return an int. Distinguish REG,REG return from
11852 others.
11853 (struct simplify_plus_minus_op_data): Make local to function.
11854 (simplify_plus_minus): Don't set canonicalized if merely sorting
11855 registers. Avoid packing ops if nothing changes. White space fixes.
11856
11857 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
11858
11859 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
11860 -fdump-ada-spec is passed but not if -fsyntax-only is.
11861
11862 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
11863
11864 PR bootstrap/63740
11865 * lra-lives.c (process_bb_lives): Check insn copying the same
11866 reload pseudo and don't create a copy for it.
11867
11868 2015-06-22 Tom de Vries <tom@codesourcery.com>
11869
11870 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
11871 for cond_stmt.
11872
11873 2015-06-22 Tom de Vries <tom@codesourcery.com>
11874
11875 * builtins.def (DEF_GOMP_BUILTIN): Test
11876 'flag_tree_parallelize_loops > 1' instead of
11877 'flag_tree_parallelize_loops'. Test flag_cilkplus.
11878
11879 2015-06-22 Tom de Vries <tom@codesourcery.com>
11880
11881 * dominance.c (calculate_dominance_info): Verify dominators if
11882 early-out.
11883
11884 2015-06-22 Marek Polacek <polacek@redhat.com>
11885
11886 * match.pd ((x ^ y) ^ (x | y) -> x & y,
11887 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
11888 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
11889 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
11890
11891 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
11892
11893 PR target/65871
11894 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
11895 cost of embedded comparison.
11896
11897 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11898
11899 PR target/65914
11900 * config/rs6000/predicates.md (altivec_register_operand): Permit
11901 virtual stack registers.
11902 (vsx_register_operand): Likewise.
11903 (vfloat_operand): Likewise.
11904 (vint_operand): Likewise.
11905 (vlogical_operand): Likewise.
11906
11907 2015-06-22 Richard Biener <rguenther@suse.de>
11908
11909 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
11910 and single_scalar_iteration_cost members.
11911 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
11912 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
11913 (vect_get_single_scalar_iteration_cost): Remove.
11914 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
11915 Use LOOP_VINFO_SCALAR_ITERATION_COST.
11916 * tree-vect-loop.c (destroy_loop_vec_info): Free
11917 scalar_cost_vec.
11918 (vect_get_single_scalar_iteration_cost): Compute result into
11919 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
11920 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
11921 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
11922 (vect_estimate_min_profitable_iters): Use them.
11923
11924 2015-06-22 Christian Bruel <christian.bruel@st.com>
11925
11926 PR target/52144
11927 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
11928 (TARGET_INSERT_ATTRIBUTES): Define.
11929 (thumb_flipper): New var.
11930 * config/arm/arm.opt (-mflip-thumb): New switch.
11931
11932 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
11933 Martin Liska <mliska@suse.cz>
11934
11935 PR ipa/65908
11936 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
11937 construction of arg_types.
11938 (sem_function::sem_function): Likewise.
11939 (sem_function::~sem_function): Remove destruction of arg_types.
11940 (sem_function::compatible_parm_types_p): New function.
11941 (sem_function::equals_wpa): Reorg matching of return values
11942 and parameter types.
11943 (sem_function::equals_private): Reorg mathcing of argument types.
11944 (sem_function::parse_tree_args): Remove.
11945 * ipa-icf.h (init_wpa): Do not call it.
11946 (parse_tree_args): Remove.
11947 (compatible_parm_types_p): Declare.
11948 (result_type): Remove.
11949 (arg_types): Remove.
11950
11951 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
11952
11953 PR ipa/66351
11954 * ipa-polymorphic-call.c
11955 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
11956 initializing alias oracle; fix formating; set base_alias_set if it
11957 is known.
11958
11959 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
11960
11961 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
11962 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
11963 (find_inc): Likewise.
11964 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
11965 swapping.
11966 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
11967 * df-scan.c (df_swap_refs): Remove.
11968 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
11969 * dominance.c (link_roots): Use std::swap instead of manually swapping.
11970 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
11971 * fold-const.c (fold_relational_const): Likewise.
11972 * genattrtab.c (simplify_test_exp): Likewise.
11973 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
11974 gimple_simplify): Likewise.
11975 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
11976 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
11977 * ipa-devirt.c (add_type_duplicate): Likewise.
11978 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
11979 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
11980 * lra.c (lra_create_copy): Likewise.
11981 * lto-streamer-out.c (DFS::DFS): Likewise.
11982 * modulo-sched.c (get_sched_window): Likewise.
11983 * omega.c (omega_pretty_print_problem): Likewise.
11984 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
11985 * reload1.c (reloads_unique_chain_p): Likewise.
11986 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
11987 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
11988 use std::swap.
11989 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
11990 manually swapping.
11991 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
11992 predicate_mem_writes): Likewise.
11993 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
11994 * tree-predcom.c (combine_chains): Likewise.
11995 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
11996 refs_may_alias_p_1): Likewise.
11997 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
11998 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
11999 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
12000 number_of_iterations_cond): Likewise.
12001 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
12002 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
12003 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
12004 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
12005 * tree-vrp.c (extract_range_from_binary_expr_1,
12006 extract_range_from_unary_expr_1): Likewise.
12007
12008 2015-06-20 Marek Polacek <polacek@redhat.com>
12009
12010 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
12011
12012 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
12013
12014 PR target/66591
12015 * config/sh/sh.c (prepare_move_operands): Replace subreg
12016 index term with R0 for base and index addressing.
12017
12018 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
12019
12020 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
12021 op1 is an fp zero.
12022 (movsf_aarch64): Change condition from register_operand to
12023 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
12024 load1. Change type for alternative 7 to store1.
12025 (movdf_aarch64): Likewise.
12026
12027 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
12028
12029 * config/vax/vax.md: Adjust sign/zero extend patterns to
12030 handle SUBREGs in operands[1].
12031
12032 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12033
12034 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
12035 of manually swapping.
12036 (expand_vec_perm_interleave2): Likewise.
12037
12038 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
12039
12040 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
12041 reuse bounds created for abnormal ssa names.
12042
12043 2015-06-19 Jakub Jelinek <jakub@redhat.com>
12044
12045 * config/nvptx/nvptx.md (allocate_stack): Rename to...
12046 (allocate_stack_<mode>): ... this, and add :P on both
12047 match_operand and unspec.
12048 (allocate_stack): New expander.
12049
12050 2015-06-19 Christian Bruel <christian.bruel@st.com>
12051
12052 PR target/66541
12053 PR target/52144
12054 * config/arm/arm.c (arm_set_current_function): Handle
12055 explicit default options.
12056
12057 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
12058
12059 * config/i386/i386.md (*movsicc_noc_zext): New insn.
12060 (zero-extended cmove with mem peephole2): New pattern.
12061 (cmove with mem peephole2): Merge patterns.
12062
12063 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
12064
12065 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
12066
12067 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
12068
12069 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
12070 * config/mips/mips.md (*madd4<mode>): Ditto.
12071 (*nmadd3<mode>) Ditto.
12072 (*nmadd4<mode>_fastmath): Ditto.
12073 (*nmadd3<mode>_fastmath): Ditto.
12074 (*nmsub4<mode>): Ditto.
12075 (*nmsub3<mode>): Ditto.
12076 (*nmsub4<mode>_fastmath): Ditto.
12077 (*nmsub3<mode>_fastmath): Ditto.
12078
12079 2015-06-18 Michael Matz <matz@suse.de>
12080
12081 PR middle-end/66253
12082 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
12083 grouped strided stores.
12084 (vectorizable_load): Don't use the DR from first_stmt in
12085 the non-SLP grouped strided case.
12086
12087 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12088
12089 PR target/66569
12090 * function.c (assign_bounds): Add arguments assign_regs,
12091 assign_special, assign_bt.
12092 (assign_parms): For vararg functions handle bounds in BT
12093 and special slots after incoming vararg bounds.
12094
12095 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12096
12097 PR middle-end/66568
12098 * cfgexpand.c (expand_return): Handle missing bounds.
12099 (expand_gimple_stmt_1): Likewise.
12100 * tree-chkp.c (chkp_expand_zero_bounds): New.
12101 * tree-chkp.h (chkp_expand_zero_bounds): New.
12102
12103 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12104
12105 PR middle-end/66567
12106 * ipa-chkp.c (chkp_maybe_create_clone): Require
12107 functions to be instrumentable.
12108 * tree-chkp.c (chkp_replace_function_pointer): Use
12109 chkp_instrumentable_p instead of attribute check.
12110
12111 2015-06-18 Richard Biener <rguenther@suse.de>
12112
12113 PR tree-optimization/66510
12114 * tree-vect-stmts.c (vectorizable_load): Properly compute the
12115 number of vector loads for SLP permuted loads.
12116 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
12117 check the stride for loop vectorization.
12118 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
12119 vectorization factor.
12120 (vect_analyze_group_access): If the group size is not a power
12121 of two require a epilogue loop.
12122 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
12123 compute and optimizing and alias test pruning after final
12124 vectorization factor computation.
12125 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
12126 vector alignment.
12127 (vect_transform_slp_perm_load): Properly compute the original
12128 number of vector load stmts.
12129
12130 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
12131
12132 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
12133 "unlikely character , in @var" warning.
12134
12135 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
12136
12137 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
12138 (ix86_function_arg_advance): Ditto.
12139 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
12140
12141 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
12142
12143 * function.h (struct rtl_data): Remove struct and accessor macros.
12144 * emit-rtl.h (struct rtl_data): Relocate to here.
12145 * Makefile.in (GTFILES): Add emit-rtl.h.
12146 * df-core.c: Include emit-rtl.h.
12147 * genattrtab.c: Likewise.
12148 * genconditions.c: Likewise.
12149 * genpreds.c: Likewise.
12150 * genrecog.c: Likewise.
12151 * regcprop.c: Likewise.
12152 * resource.c: Likewise.
12153 * sched-rgn.c: Likewise.
12154 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12155 * config/i386/winnt.c: Likewise.
12156
12157 2015-06-17 Jakub Jelinek <jakub@redhat.com>
12158
12159 PR middle-end/66429
12160 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
12161 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
12162 and has_force_vectorize_loops flags from cfun into
12163 child_cfun.
12164 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
12165 if simduid is non-NULL.
12166 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
12167 * passes.def (pass_simduid_cleanup): Add new pass after loop
12168 passes.
12169 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
12170 indirection from htab argument's type.
12171 (shrink_simd_arrays): New function.
12172 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
12173 Don't call adjust_simduid_builtins if there are no loops.
12174 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
12175 (pass_simduid_cleanup::execute): New method.
12176 (make_pass_simduid_cleanup): New function.
12177
12178 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
12179
12180 * tree-core.h (tree_target_option): Make opts field a pointer to a
12181 cl_target_option instead of an instance of the struct.
12182 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
12183 the structure.
12184 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
12185 TARGET_OPTION_NODE.
12186 (copy_node_stat): Allocate and copy struct cl_target_option.
12187
12188 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
12189
12190 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
12191 Remove conditional exposure of prototypes.
12192 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
12193 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
12194 definitions in tree.h with functions.
12195 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
12196 anon_aggrname_p.
12197 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
12198
12199 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
12200
12201 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
12202 (*cmp<mode>_signed): ... this.
12203 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
12204 (*cmp<mode>_unsigned): ... this. Remove %b.
12205
12206 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
12207
12208 * coretypes.h: Include input.h and as-a.h.
12209 * rtl.h: Include input.h and as-a.h for generator files.
12210 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
12211 * vec.c: Don't include diagnostic-core.h.
12212 * alias.c: Do not include input.h, line-map.h or is-a.h.
12213 * asan.c: Likewise.
12214 * attribs.c: Likewise.
12215 * auto-inc-dec.c: Likewise.
12216 * auto-profile.c: Likewise.
12217 * bb-reorder.c: Likewise.
12218 * bt-load.c: Likewise.
12219 * builtins.c: Likewise.
12220 * caller-save.c: Likewise.
12221 * calls.c: Likewise.
12222 * ccmp.c: Likewise.
12223 * cfg.c: Likewise.
12224 * cfganal.c: Likewise.
12225 * cfgbuild.c: Likewise.
12226 * cfgcleanup.c: Likewise.
12227 * cfgexpand.c: Likewise.
12228 * cfghooks.c: Likewise.
12229 * cfgloop.c: Likewise.
12230 * cfgloop.h: Likewise.
12231 * cfgloopanal.c: Likewise.
12232 * cfgloopmanip.c: Likewise.
12233 * cfgrtl.c: Likewise.
12234 * cgraph.c: Likewise.
12235 * cgraphbuild.c: Likewise.
12236 * cgraphclones.c: Likewise.
12237 * cgraphunit.c: Likewise.
12238 * cilk-common.c: Likewise.
12239 * combine-stack-adj.c: Likewise.
12240 * combine.c: Likewise.
12241 * compare-elim.c: Likewise.
12242 * convert.c: Likewise.
12243 * coverage.c: Likewise.
12244 * cppbuiltin.c: Likewise.
12245 * cprop.c: Likewise.
12246 * cse.c: Likewise.
12247 * cselib.c: Likewise.
12248 * data-streamer-in.c: Likewise.
12249 * data-streamer-out.c: Likewise.
12250 * data-streamer.c: Likewise.
12251 * dbxout.c: Likewise.
12252 * dce.c: Likewise.
12253 * ddg.c: Likewise.
12254 * debug.c: Likewise.
12255 * df-core.c: Likewise.
12256 * df-problems.c: Likewise.
12257 * df-scan.c: Likewise.
12258 * df.h: Likewise.
12259 * dfp.c: Likewise.
12260 * diagnostic-core.h: Likewise.
12261 * diagnostic.c: Likewise.
12262 * dojump.c: Likewise.
12263 * dominance.c: Likewise.
12264 * domwalk.c: Likewise.
12265 * double-int.c: Likewise.
12266 * dse.c: Likewise.
12267 * dumpfile.c: Likewise.
12268 * dumpfile.h: Likewise.
12269 * dwarf2asm.c: Likewise.
12270 * dwarf2cfi.c: Likewise.
12271 * dwarf2out.c: Likewise.
12272 * emit-rtl.c: Likewise.
12273 * et-forest.c: Likewise.
12274 * except.c: Likewise.
12275 * explow.c: Likewise.
12276 * expmed.c: Likewise.
12277 * expr.c: Likewise.
12278 * final.c: Likewise.
12279 * fixed-value.c: Likewise.
12280 * fold-const.c: Likewise.
12281 * function.c: Likewise.
12282 * fwprop.c: Likewise.
12283 * gcc-plugin.h: Likewise.
12284 * gcse.c: Likewise.
12285 * generic-match-head.c: Likewise.
12286 * ggc-page.c: Likewise.
12287 * gimple-builder.c: Likewise.
12288 * gimple-expr.c: Likewise.
12289 * gimple-fold.c: Likewise.
12290 * gimple-iterator.c: Likewise.
12291 * gimple-low.c: Likewise.
12292 * gimple-match-head.c: Likewise.
12293 * gimple-pretty-print.c: Likewise.
12294 * gimple-ssa-isolate-paths.c: Likewise.
12295 * gimple-ssa-strength-reduction.c: Likewise.
12296 * gimple-streamer-in.c: Likewise.
12297 * gimple-streamer-out.c: Likewise.
12298 * gimple-streamer.h: Likewise.
12299 * gimple-walk.c: Likewise.
12300 * gimple.c: Likewise.
12301 * gimplify-me.c: Likewise.
12302 * gimplify.c: Likewise.
12303 * godump.c: Likewise.
12304 * graph.c: Likewise.
12305 * graphite-blocking.c: Likewise.
12306 * graphite-dependences.c: Likewise.
12307 * graphite-interchange.c: Likewise.
12308 * graphite-isl-ast-to-gimple.c: Likewise.
12309 * graphite-optimize-isl.c: Likewise.
12310 * graphite-poly.c: Likewise.
12311 * graphite-scop-detection.c: Likewise.
12312 * graphite-sese-to-poly.c: Likewise.
12313 * graphite.c: Likewise.
12314 * haifa-sched.c: Likewise.
12315 * hw-doloop.c: Likewise.
12316 * ifcvt.c: Likewise.
12317 * init-regs.c: Likewise.
12318 * input.c: Likewise.
12319 * internal-fn.c: Likewise.
12320 * ipa-chkp.c: Likewise.
12321 * ipa-comdats.c: Likewise.
12322 * ipa-cp.c: Likewise.
12323 * ipa-devirt.c: Likewise.
12324 * ipa-icf-gimple.c: Likewise.
12325 * ipa-icf.c: Likewise.
12326 * ipa-inline-analysis.c: Likewise.
12327 * ipa-inline-transform.c: Likewise.
12328 * ipa-inline.c: Likewise.
12329 * ipa-polymorphic-call.c: Likewise.
12330 * ipa-profile.c: Likewise.
12331 * ipa-prop.c: Likewise.
12332 * ipa-pure-const.c: Likewise.
12333 * ipa-ref.c: Likewise.
12334 * ipa-reference.c: Likewise.
12335 * ipa-split.c: Likewise.
12336 * ipa-utils.c: Likewise.
12337 * ipa-visibility.c: Likewise.
12338 * ipa.c: Likewise.
12339 * ira-build.c: Likewise.
12340 * ira-color.c: Likewise.
12341 * ira-conflicts.c: Likewise.
12342 * ira-costs.c: Likewise.
12343 * ira-emit.c: Likewise.
12344 * ira-lives.c: Likewise.
12345 * ira.c: Likewise.
12346 * jump.c: Likewise.
12347 * langhooks.c: Likewise.
12348 * lcm.c: Likewise.
12349 * loop-doloop.c: Likewise.
12350 * loop-init.c: Likewise.
12351 * loop-invariant.c: Likewise.
12352 * loop-iv.c: Likewise.
12353 * loop-unroll.c: Likewise.
12354 * lower-subreg.c: Likewise.
12355 * lra-assigns.c: Likewise.
12356 * lra-coalesce.c: Likewise.
12357 * lra-constraints.c: Likewise.
12358 * lra-eliminations.c: Likewise.
12359 * lra-lives.c: Likewise.
12360 * lra-remat.c: Likewise.
12361 * lra-spills.c: Likewise.
12362 * lra.c: Likewise.
12363 * lto-cgraph.c: Likewise.
12364 * lto-compress.c: Likewise.
12365 * lto-opts.c: Likewise.
12366 * lto-section-in.c: Likewise.
12367 * lto-section-out.c: Likewise.
12368 * lto-streamer-in.c: Likewise.
12369 * lto-streamer-out.c: Likewise.
12370 * lto-streamer.c: Likewise.
12371 * mcf.c: Likewise.
12372 * mode-switching.c: Likewise.
12373 * modulo-sched.c: Likewise.
12374 * omega.c: Likewise.
12375 * omp-low.c: Likewise.
12376 * optabs.c: Likewise.
12377 * opts-global.c: Likewise.
12378 * opts.h: Likewise.
12379 * passes.c: Likewise.
12380 * plugin.c: Likewise.
12381 * postreload-gcse.c: Likewise.
12382 * postreload.c: Likewise.
12383 * predict.c: Likewise.
12384 * pretty-print.h: Likewise.
12385 * print-rtl.c: Likewise.
12386 * print-tree.c: Likewise.
12387 * profile.c: Likewise.
12388 * real.c: Likewise.
12389 * realmpfr.c: Likewise.
12390 * recog.c: Likewise.
12391 * ree.c: Likewise.
12392 * reg-stack.c: Likewise.
12393 * regcprop.c: Likewise.
12394 * reginfo.c: Likewise.
12395 * regrename.c: Likewise.
12396 * regstat.c: Likewise.
12397 * reload.c: Likewise.
12398 * reload1.c: Likewise.
12399 * reorg.c: Likewise.
12400 * resource.c: Likewise.
12401 * rtl-chkp.c: Likewise.
12402 * rtl-error.c: Likewise.
12403 * rtlanal.c: Likewise.
12404 * rtlhooks.c: Likewise.
12405 * sanopt.c: Likewise.
12406 * sched-deps.c: Likewise.
12407 * sched-ebb.c: Likewise.
12408 * sched-rgn.c: Likewise.
12409 * sched-vis.c: Likewise.
12410 * sdbout.c: Likewise.
12411 * sel-sched-dump.c: Likewise.
12412 * sel-sched-ir.c: Likewise.
12413 * sel-sched.c: Likewise.
12414 * sese.c: Likewise.
12415 * shrink-wrap.c: Likewise.
12416 * simplify-rtx.c: Likewise.
12417 * stack-ptr-mod.c: Likewise.
12418 * statistics.c: Likewise.
12419 * stmt.c: Likewise.
12420 * stor-layout.c: Likewise.
12421 * store-motion.c: Likewise.
12422 * streamer-hooks.c: Likewise.
12423 * stringpool.c: Likewise.
12424 * symtab.c: Likewise.
12425 * target-globals.c: Likewise.
12426 * targhooks.c: Likewise.
12427 * toplev.c: Likewise.
12428 * tracer.c: Likewise.
12429 * trans-mem.c: Likewise.
12430 * tree-affine.c: Likewise.
12431 * tree-browser.c: Likewise.
12432 * tree-call-cdce.c: Likewise.
12433 * tree-cfg.c: Likewise.
12434 * tree-cfgcleanup.c: Likewise.
12435 * tree-chkp-opt.c: Likewise.
12436 * tree-chkp.c: Likewise.
12437 * tree-chrec.c: Likewise.
12438 * tree-complex.c: Likewise.
12439 * tree-data-ref.c: Likewise.
12440 * tree-dfa.c: Likewise.
12441 * tree-diagnostic.c: Likewise.
12442 * tree-dump.c: Likewise.
12443 * tree-eh.c: Likewise.
12444 * tree-emutls.c: Likewise.
12445 * tree-if-conv.c: Likewise.
12446 * tree-inline.c: Likewise.
12447 * tree-into-ssa.c: Likewise.
12448 * tree-iterator.c: Likewise.
12449 * tree-loop-distribution.c: Likewise.
12450 * tree-nested.c: Likewise.
12451 * tree-nrv.c: Likewise.
12452 * tree-object-size.c: Likewise.
12453 * tree-outof-ssa.c: Likewise.
12454 * tree-parloops.c: Likewise.
12455 * tree-phinodes.c: Likewise.
12456 * tree-predcom.c: Likewise.
12457 * tree-pretty-print.c: Likewise.
12458 * tree-profile.c: Likewise.
12459 * tree-scalar-evolution.c: Likewise.
12460 * tree-sra.c: Likewise.
12461 * tree-ssa-address.c: Likewise.
12462 * tree-ssa-alias.c: Likewise.
12463 * tree-ssa-ccp.c: Likewise.
12464 * tree-ssa-coalesce.c: Likewise.
12465 * tree-ssa-copy.c: Likewise.
12466 * tree-ssa-copyrename.c: Likewise.
12467 * tree-ssa-dce.c: Likewise.
12468 * tree-ssa-dom.c: Likewise.
12469 * tree-ssa-dse.c: Likewise.
12470 * tree-ssa-forwprop.c: Likewise.
12471 * tree-ssa-ifcombine.c: Likewise.
12472 * tree-ssa-live.c: Likewise.
12473 * tree-ssa-loop-ch.c: Likewise.
12474 * tree-ssa-loop-im.c: Likewise.
12475 * tree-ssa-loop-ivcanon.c: Likewise.
12476 * tree-ssa-loop-ivopts.c: Likewise.
12477 * tree-ssa-loop-manip.c: Likewise.
12478 * tree-ssa-loop-niter.c: Likewise.
12479 * tree-ssa-loop-prefetch.c: Likewise.
12480 * tree-ssa-loop-unswitch.c: Likewise.
12481 * tree-ssa-loop.c: Likewise.
12482 * tree-ssa-math-opts.c: Likewise.
12483 * tree-ssa-operands.c: Likewise.
12484 * tree-ssa-phiopt.c: Likewise.
12485 * tree-ssa-phiprop.c: Likewise.
12486 * tree-ssa-pre.c: Likewise.
12487 * tree-ssa-propagate.c: Likewise.
12488 * tree-ssa-reassoc.c: Likewise.
12489 * tree-ssa-sccvn.c: Likewise.
12490 * tree-ssa-scopedtables.c: Likewise.
12491 * tree-ssa-sink.c: Likewise.
12492 * tree-ssa-strlen.c: Likewise.
12493 * tree-ssa-structalias.c: Likewise.
12494 * tree-ssa-tail-merge.c: Likewise.
12495 * tree-ssa-ter.c: Likewise.
12496 * tree-ssa-threadedge.c: Likewise.
12497 * tree-ssa-threadupdate.c: Likewise.
12498 * tree-ssa-uncprop.c: Likewise.
12499 * tree-ssa-uninit.c: Likewise.
12500 * tree-ssa.c: Likewise.
12501 * tree-ssanames.c: Likewise.
12502 * tree-stdarg.c: Likewise.
12503 * tree-streamer-in.c: Likewise.
12504 * tree-streamer-out.c: Likewise.
12505 * tree-streamer.c: Likewise.
12506 * tree-switch-conversion.c: Likewise.
12507 * tree-tailcall.c: Likewise.
12508 * tree-vect-data-refs.c: Likewise.
12509 * tree-vect-generic.c: Likewise.
12510 * tree-vect-loop-manip.c: Likewise.
12511 * tree-vect-loop.c: Likewise.
12512 * tree-vect-patterns.c: Likewise.
12513 * tree-vect-slp.c: Likewise.
12514 * tree-vect-stmts.c: Likewise.
12515 * tree-vectorizer.c: Likewise.
12516 * tree-vrp.c: Likewise.
12517 * tree.c: Likewise.
12518 * tsan.c: Likewise.
12519 * ubsan.c: Likewise.
12520 * valtrack.c: Likewise.
12521 * value-prof.c: Likewise.
12522 * var-tracking.c: Likewise.
12523 * varasm.c: Likewise.
12524 * varpool.c: Likewise.
12525 * vmsdbgout.c: Likewise.
12526 * vtable-verify.c: Likewise.
12527 * web.c: Likewise.
12528 * wide-int.cc: Likewise.
12529 * xcoffout.c: Likewise.
12530 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
12531 * common/common-targhooks.c: Likewise.
12532 * config/aarch64/aarch64-builtins.c: Likewise.
12533 * config/aarch64/aarch64.c: Likewise.
12534 * config/alpha/alpha.c: Likewise.
12535 * config/arc/arc.c: Likewise.
12536 * config/arm/aarch-common.c: Likewise.
12537 * config/arm/arm-builtins.c: Likewise.
12538 * config/arm/arm-c.c: Likewise.
12539 * config/arm/arm.c: Likewise.
12540 * config/avr/avr-c.c: Likewise.
12541 * config/avr/avr-log.c: Likewise.
12542 * config/avr/avr.c: Likewise.
12543 * config/bfin/bfin.c: Likewise.
12544 * config/c6x/c6x.c: Likewise.
12545 * config/cr16/cr16.c: Likewise.
12546 * config/cris/cris.c: Likewise.
12547 * config/darwin-c.c: Likewise.
12548 * config/darwin.c: Likewise.
12549 * config/default-c.c: Likewise.
12550 * config/epiphany/epiphany.c: Likewise.
12551 * config/epiphany/mode-switch-use.c: Likewise.
12552 * config/epiphany/resolve-sw-modes.c: Likewise.
12553 * config/fr30/fr30.c: Likewise.
12554 * config/frv/frv.c: Likewise.
12555 * config/ft32/ft32.c: Likewise.
12556 * config/glibc-c.c: Likewise.
12557 * config/h8300/h8300.c: Likewise.
12558 * config/i386/i386-c.c: Likewise.
12559 * config/i386/i386.c: Likewise.
12560 * config/i386/msformat-c.c: Likewise.
12561 * config/i386/winnt-cxx.c: Likewise.
12562 * config/i386/winnt-stubs.c: Likewise.
12563 * config/i386/winnt.c: Likewise.
12564 * config/ia64/ia64-c.c: Likewise.
12565 * config/ia64/ia64.c: Likewise.
12566 * config/iq2000/iq2000.c: Likewise.
12567 * config/lm32/lm32.c: Likewise.
12568 * config/m32c/m32c-pragma.c: Likewise.
12569 * config/m32c/m32c.c: Likewise.
12570 * config/m32r/m32r.c: Likewise.
12571 * config/m68k/m68k.c: Likewise.
12572 * config/mcore/mcore.c: Likewise.
12573 * config/mep/mep-pragma.c: Likewise.
12574 * config/mep/mep.c: Likewise.
12575 * config/microblaze/microblaze-c.c: Likewise.
12576 * config/microblaze/microblaze.c: Likewise.
12577 * config/mips/mips.c: Likewise.
12578 * config/mmix/mmix.c: Likewise.
12579 * config/mn10300/mn10300.c: Likewise.
12580 * config/moxie/moxie.c: Likewise.
12581 * config/msp430/msp430-c.c: Likewise.
12582 * config/msp430/msp430.c: Likewise.
12583 * config/nds32/nds32-cost.c: Likewise.
12584 * config/nds32/nds32-fp-as-gp.c: Likewise.
12585 * config/nds32/nds32-intrinsic.c: Likewise.
12586 * config/nds32/nds32-isr.c: Likewise.
12587 * config/nds32/nds32-md-auxiliary.c: Likewise.
12588 * config/nds32/nds32-memory-manipulation.c: Likewise.
12589 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12590 * config/nds32/nds32-predicates.c: Likewise.
12591 * config/nds32/nds32.c: Likewise.
12592 * config/nios2/nios2.c: Likewise.
12593 * config/nvptx/nvptx.c: Likewise.
12594 * config/pa/pa.c: Likewise.
12595 * config/pdp11/pdp11.c: Likewise.
12596 * config/rl78/rl78-c.c: Likewise.
12597 * config/rl78/rl78.c: Likewise.
12598 * config/rs6000/rs6000-c.c: Likewise.
12599 * config/rs6000/rs6000.c: Likewise.
12600 * config/rx/rx.c: Likewise.
12601 * config/s390/s390-c.c: Likewise.
12602 * config/s390/s390.c: Likewise.
12603 * config/sh/sh-c.c: Likewise.
12604 * config/sh/sh-mem.cc: Likewise.
12605 * config/sh/sh.c: Likewise.
12606 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
12607 * config/sh/sh_treg_combine.cc: Likewise.
12608 * config/sol2-c.c: Likewise.
12609 * config/sol2-cxx.c: Likewise.
12610 * config/sol2-stubs.c: Likewise.
12611 * config/sol2.c: Likewise.
12612 * config/sparc/sparc-c.c: Likewise.
12613 * config/sparc/sparc.c: Likewise.
12614 * config/spu/spu-c.c: Likewise.
12615 * config/spu/spu.c: Likewise.
12616 * config/stormy16/stormy16.c: Likewise.
12617 * config/tilegx/mul-tables.c: Likewise.
12618 * config/tilegx/tilegx-c.c: Likewise.
12619 * config/tilegx/tilegx.c: Likewise.
12620 * config/tilepro/mul-tables.c: Likewise.
12621 * config/tilepro/tilepro-c.c: Likewise.
12622 * config/tilepro/tilepro.c: Likewise.
12623 * config/v850/v850-c.c: Likewise.
12624 * config/v850/v850.c: Likewise.
12625 * config/vax/vax.c: Likewise.
12626 * config/visium/visium.c: Likewise.
12627 * config/vms/vms-c.c: Likewise.
12628 * config/vms/vms.c: Likewise.
12629 * config/vxworks.c: Likewise.
12630 * config/winnt-c.c: Likewise.
12631 * config/xtensa/xtensa.c: Likewise.
12632
12633 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
12634
12635 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
12636 function.
12637 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
12638
12639 2015-06-17 Richard Biener <rguenther@suse.de>
12640
12641 PR tree-optimization/66251
12642 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
12643 stmts for SLP strided stores.
12644
12645 Revert
12646 2015-05-22 Richard Biener <rguenther@suse.de>
12647
12648 PR tree-optimization/66251
12649 * tree-vect-stmts.c (vectorizable_conversion): Properly
12650 set STMT_VINFO_VEC_STMT even for the SLP case.
12651
12652 2015-05-26 Michael Matz <matz@suse.de>
12653
12654 PR middle-end/66251
12655 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
12656 STMT_VINFO_VEC_STMT, also with SLP.
12657
12658 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
12659
12660 PR target/56766
12661 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
12662 (*avx_addsubv4df3_1s): Ditto.
12663 (*sse3_addsubv2df3_1): Ditto.
12664 (*sse3_addsubv2df3_1s): Ditto.
12665 (*avx_addsubv8sf3_1): Ditto.
12666 (*avx_addsubv8sf3_1s): Ditto.
12667 (*sse3_addsubv4sf3_1): Ditto.
12668 (*sse3_addsubv4sf3_1s): Ditto.
12669
12670 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
12671
12672 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
12673 (SYSROOT_SUFFIX_SPEC): Update.
12674 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
12675 (STARTFILE_PREFIX_SPEC): Update.
12676 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
12677 (MULTILIB_REQUIRED): New.
12678 (MULTILIB_OSDIRNAMES): New.
12679 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
12680 (MULTILIB_REQUIRED): New.
12681 (MULTILIB_OSDIRNAMES): New.
12682
12683 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
12684
12685 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
12686 * config/aarch64/aarch64-options-extensions.def: Update "fP",
12687 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
12688 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
12689 (AARCH64_FL_PAN): New.
12690 (AARCH64_FL_LOR): New.
12691 (AARCH64_FL_RDMA): New.
12692 (AARCH64_FL_FOR_ARCH8_1): New.
12693 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
12694 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
12695
12696 2015-06-16 Martin Liska <mliska@suse.cz>
12697
12698 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
12699 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
12700 guard.
12701
12702 2015-06-16 Richard Biener <rguenther@suse.de>
12703
12704 * tree-vect-stmts.c (vectorizable_store): Adjust.
12705 (vectorizable_load): Likewise.
12706 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
12707 Simplify.
12708 (vect_create_data_ref_ptr): Likewise.
12709 (bump_vector_ptr): Adjust.
12710
12711 2015-06-16 Richard Biener <rguenther@suse.de>
12712
12713 * tree-vect-stmts.c (vectorizable_load): Properly start loads
12714 with the first element if this is grouped loads.
12715
12716 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
12717
12718 * config/arm/arm-protos.h (struct tune_params): Rename
12719 log_op_non_sc to log_op_non_short_circuit, and rename enum
12720 values to expand SC to SHORT_CIRCUIT.
12721 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
12722 to LOG_OP_NON_SHORT_CIRCUIT.
12723 (arm_fastmul_tune):Likewise
12724 (arm_strongarm_tune): Likewise.
12725 (arm_xscale_tune): Likewise.
12726 (arm_9e_tune): Likewise.
12727 (arm_marvell_pj4_tune): Likewise.
12728 (arm_v6t2_tune): Likewise.
12729 (arm_cortex_tune): Likewise.
12730 (arm_cortex_a8_tune): Likewise.
12731 (arm_cortex_a7_tune): Likewise.
12732 (arm_cortex_a15_tune): Likewise.
12733 (arm_cortex_a53_tune): Likewise.
12734 (arm_cortex_a57_tune): Likewise.
12735 (arm_xgene1_tune): Likewise.
12736 (arm_cortex_a5_tune): Likewise.
12737 (arm_cortex_a9_tune): Likewise.
12738 (arm_cortex_a12_tune): Likewise.
12739 (arm_v7m_tune): Likewise.
12740 (arm_cortex_m7_tune): Likewise.
12741 (arm_v6m_tune): Likewise.
12742 (arm_fa726te_tune): Likewise.
12743
12744 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
12745
12746 * altivec.md: Delete UNSPEC_VMLADDUHM.
12747 (mulv4si3_p8): New pattern.
12748 (mulv4si3): Use it for POWER8.
12749 (mulv8hi3): Use vmladduhm with zero addend.
12750 (altivec_vmladduhm): Descriptive RTL.
12751
12752 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
12753
12754 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
12755 to use neon_move instead of mov_imm.
12756 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
12757 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
12758
12759 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
12760 aarch64_float_const_zero_rtx_p check before TFmode check.
12761 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
12762 an fp zero.
12763 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
12764 code and attributes to match. Change condition from register_operand
12765 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
12766 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
12767 to store2.
12768
12769 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
12770
12771 PR debug/66535
12772 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
12773 there is no parent.
12774
12775 2015-06-14 Shiva Chen <shiva0217@gmail.com>
12776
12777 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
12778 HOST_WIDE_INT parameter.
12779
12780 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
12781
12782 PR ipa/66181
12783 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
12784 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
12785 TYPE_NO_FORCE_BLK.
12786 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
12787
12788 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
12789
12790 * rtl.h (classify_insn): Declare.
12791 * emit-rtl.c (classify_insn): Move to...
12792 * rtl.c: ...here and add generator support.
12793 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
12794 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
12795 * genemit.c (gen_emit_seq): New function.
12796 (gen_expand, gen_split): Use it.
12797
12798 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
12799
12800 * tree.c (make_vector_stat): Fix comment to state that the
12801 function returns a VECTOR_CST.
12802
12803 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
12804
12805 * gensupport.h (add_implicit_parallel): Declare.
12806 * genrecog.c (add_implicit_parallel): Move to...
12807 * gensupport.c (add_implicit_parallel): ...here.
12808 (process_one_cond_exec): Use it.
12809 * genemit.c (gen_insn): Likewise.
12810
12811 2015-06-13 Iain Sandoe <iain@codesourcery.com>
12812
12813 PR bootstrap/66448
12814 * passes.c (rest_of_decl_compilation): Do not register globals for
12815 early debug if they are declared in built-ins.
12816
12817 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
12818
12819 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
12820
12821 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12822
12823 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
12824 manually swapping.
12825 (noce_try_cmove_arith): Likewise.
12826 (noce_get_alt_condition): Likewise.
12827
12828 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12829
12830 * common/config/i386/i386-common.c
12831 (OPTION_MASK_ISA_MWAITX_SET): New.
12832 (ix86_handle_option): Handle mwaitx.
12833 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
12834 (x86_64-*-*): Likewise.
12835 * config/i386/mwaitxintrin.h: New header.
12836 * config/i386/cpuid.h (bit_MWAITX): Define.
12837 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
12838 MWAITX support.
12839 * config/i386/i386.opt (mwaitx): New.
12840 * config/i386/i386-builtin-types.def
12841 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
12842 * config/i386/i386-c.c: Define __MWAITX__ if needed.
12843 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
12844 (PTA_MWAITX): New.
12845 (ix86_option_override_internal): Handle new option.
12846 (processor_alias_table): Added PTA_MWAITX.
12847 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
12848 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
12849 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
12850 IX86_BUILTIN_MONITORX built-ins.
12851 * config/i386/i386.h (TARGET_MWAITX): New.
12852 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
12853 UNSPEC_MONITORX.
12854 (mwaitx): New pattern.
12855 (monitorx_<mode>): New pattern.
12856 * config/i386/x86intrin.h: Include mwaitxintrin.h.
12857 * doc/extend.texi: Document monitorx and mwaitx builtins.
12858 * doc/invoke.texi: Document -mmwaitx option.
12859
12860 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
12861
12862 * emit-rtl.c (need_atomic_barrier_p): Mask model with
12863 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
12864
12865 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
12866
12867 * dbxout.c (xcoff_debug_hooks): Provide a function for
12868 register_main_translation_unit hook.
12869
12870 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
12871
12872 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
12873 variants cases from switch.
12874 (rs6000_post_atomic_barrier): Same.
12875 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
12876 (rs6000_expand_atomic_exchange): Same.
12877 (rs6000_expand_atomic_op): Same.
12878 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
12879 SYNC variants cases from switch.
12880 (atomic_load): Same.
12881 (atomic_store): Same.
12882
12883 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
12884
12885 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
12886 CONST_INT for goto.
12887
12888 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
12889
12890 PR bootstrap/66448
12891 * dwarf2out.c (check_die): Check for common duplicate attributes.
12892 (add_location_or_const_value_attribute): Do not add duplicate
12893 attributes.
12894 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
12895 time around.
12896 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
12897 (gen_type_die_with_usage): Call check_die.
12898 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
12899
12900 2015-06-11 Jason Merrill <jason@redhat.com>
12901
12902 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
12903 dies.
12904
12905 2015-06-11 Marek Polacek <polacek@redhat.com>
12906
12907 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
12908
12909 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
12910
12911 PR bootstrap/66252
12912 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
12913 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
12914 (*addx_extend_sp32): Fix pasto.
12915 (*subx_extend): Rename into...
12916 (*subx_extend_sp32): ...this.
12917 (*adddi3_extend_sp32): Add earlyclobber.
12918 (*subdi3_insn_sp32): Likewise.
12919 (*subdi3_extend_sp32): Likewise.
12920 (*and_not_di_sp32): Likewise.
12921 (*or_not_di_sp32): Likewise.
12922 (*xor_not_di_sp32): Likewise.
12923 (*negdi2_sp32): Likewise.
12924 (*one_cmpldi2_sp32): Likewise.
12925
12926 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
12927
12928 * debug.h (struct gcc_debug_hooks): Add a
12929 register_main_translation_unit hook.
12930 * debug.c (do_nothing_debug_hooks): Provide a function for this
12931 new hook.
12932 * dbxout.c (dbx_debug_hooks): Likewise.
12933 * sdbout.c (sdb_debug_hooks): Likewise.
12934 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12935 * dwarf2out.c (main_translation_unit): New global variable.
12936 (dwarf2out_register_main_translation_unit): New function
12937 implementing the new hook.
12938 (dwarf2_debug_hooks): Assign
12939 dwarf2out_register_main_translation_unit to this new hook.
12940 (dwarf2out_init): Associate any main translation unit to
12941 comp_unit_die ().
12942
12943 2015-06-11 Marek Polacek <polacek@redhat.com>
12944
12945 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
12946
12947 2015-06-11 Marek Polacek <polacek@redhat.com>
12948
12949 * match.pd: Use single_use throughout.
12950
12951 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12952
12953 * config/arm/arm.c (arm_option_params_internal): When optimising
12954 for speed set max_insns_skipped when arm_restrict_it.
12955
12956 2015-06-11 Christian Bruel <christian.bruel@st.com>
12957
12958 PR target/52144
12959 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
12960 macros in ...
12961 (arm_cpu_builtins): New function.
12962 (arm_pragma_target_parse): Call arm_cpu_builtins.
12963 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
12964 (arm_register_target_pragmas): Likewise.
12965 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
12966 Call arm_register_target_pragmas.
12967 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
12968 (arm_pragma_target_parse): Likewise.
12969
12970 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
12971
12972 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
12973 of the second operand.
12974
12975 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
12976
12977 PR target/66473
12978 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
12979 to prepare mask operand for AVX512 modes.
12980
12981 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
12982
12983 PR target/66474
12984 * doc/md.texi (Machine Constraints): Document that on the PowerPC
12985 if you use a constraint that targets a VSX register, you must use
12986 %x<n> in the template.
12987
12988 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
12989
12990 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
12991 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
12992 (define_insn "trap"): New definition.
12993
12994 2015-06-10 Richard Biener <rguenther@suse.de>
12995
12996 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
12997 out from ...
12998 (vect_supported_load_permutation_p): ... here. Handle
12999 supportable permutations in reductions.
13000 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
13001 for vectorizing strided group loads.
13002
13003 2015-06-10 Jakub Jelinek <jakub@redhat.com>
13004
13005 PR target/66470
13006 * config/i386/i386.c (ix86_split_long_move): For collisions
13007 involving direct tls segment refs, move the UNSPEC_TP possibly
13008 wrapped in ZERO_EXTEND out of the address for lea, to each of
13009 the memory loads.
13010
13011 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13012
13013 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
13014 dmb sy. Adjust tabs.
13015
13016 2015-06-10 Tom de Vries <tom@codesourcery.com>
13017
13018 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
13019
13020 2015-06-10 Martin Liska <mliska@suse.cz>
13021
13022 PR bootstrap/66471
13023 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
13024 all enum values in mem_alloc_origin.
13025 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
13026 name.
13027 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
13028 * bitmap.c (bitmap_register): Likewise.
13029 (dump_bitmap_statistics): Likewise.
13030 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
13031 (ggc_record_overhead): Likewise.
13032 * hash-map.h: Likewise.
13033 * hash-set.h: Likewise.
13034 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
13035 * hash-table.h: Likewise.
13036 * vec.c (vec_prefix::register_overhead): Likewise.
13037 (vec_prefix::release_overhead): Likewise.
13038 (dump_vec_loc_statistics): Likewise.
13039
13040 2015-06-09 Christian Bruel <christian.bruel@st.com>
13041
13042 PR target/52144
13043 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
13044 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
13045 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
13046 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
13047 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
13048 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
13049 (arm_valid_target_attribute_p): Likewise.
13050 (arm_set_current_function, arm_can_inline_p): Likewise.
13051 (arm_valid_target_attribute_rec): Likewise.
13052 (arm_previous_fndecl): New variable.
13053 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
13054 (TARGET_CAN_INLINE_P): Define.
13055 (arm_asm_trampoline_template): Emit mode.
13056 (arm_file_start): Don't set unified syntax.
13057 (arm_declare_function_name): Set unified syntax and mode.
13058 (arm_option_override): Init target_option_default_node.
13059 and target_option_current_node.
13060 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
13061 (*call_symbol): Likewise.
13062 * doc/extend.texi: Document ARM/Thumb target attribute.
13063 * doc/invoke.texi: Likewise.
13064
13065 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13066
13067 Revert:
13068 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13069 PR rtl-optimization/64164
13070 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13071 * tree-ssa-copyrename.c: Removed.
13072 * opts.c (default_options_table): Drop -ftree-copyrename. Add
13073 -ftree-coalesce-vars.
13074 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13075 * common.opt (ftree-copyrename): Ignore.
13076 (ftree-coalesce-inlined-vars): Likewise.
13077 * doc/invoke.texi: Remove the ignored options above.
13078 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13079 * tree-ssa-coalesce.h: ... here.
13080 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13081 headers required by it.
13082 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13083 across variables when flag_tree_coalesce_vars. Check register
13084 use and promoted modes to allow coalescing. Moved to
13085 tree-ssa-coalesce.c.
13086 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13087 with its member functions to tree-ssa-coalesce.c.
13088 (var_map_base_init): Likewise. Renamed to
13089 compute_samebase_partition_bases.
13090 (partition_view_normal): Drop want_bases parameter.
13091 (partition_view_bitmap): Likewise.
13092 * tree-ssa-live.h: Adjust declarations.
13093 * tree-ssa-coalesce.c: Include explow.h.
13094 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13095 default defs at the entry point.
13096 (dump_part_var_map): New.
13097 (compute_optimized_partition_bases): New, called by...
13098 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13099 of compute_samebase_partition_bases. Adjust.
13100 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13101 * cfgexpand.c (leader_merge): New.
13102 (get_rtl_for_parm_ssa_default_def): New.
13103 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13104 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13105 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13106 redundant MEM attr setting.
13107 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13108 from...
13109 (expand_one_stack_var): ... this. New wrapper to check and
13110 skip already expanded SSA partitions.
13111 (record_alignment_for_reg_var): New, factored out of...
13112 (expand_one_var): ... this.
13113 (expand_one_ssa_partition): New.
13114 (adjust_one_expanded_partition_var): New.
13115 (expand_one_register_var): Check and skip already expanded SSA
13116 partitions.
13117 (expand_used_vars): Don't create DECLs for anonymous SSA
13118 names. Expand all SSA partitions, then adjust all SSA names.
13119 (pass::execute): Replace the loops that set
13120 SA.partition_to_pseudo from partition leaders and cleared
13121 DECL_RTL for multi-location variables, and that which used to
13122 rename vars and set attrs, with one that clears DECL_RTL and
13123 checks that PARMs and RESULTs default_defs match DECL_RTL.
13124 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13125 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13126 * explow.c (promote_ssa_mode): New.
13127 * explow.h (promote_ssa_mode): Declare.
13128 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13129 * function.c: Include cfgexpand.h.
13130 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13131 (use_register_for_parm_decl): Wrapper for the above to
13132 special-case the result_ptr.
13133 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13134 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13135 multiple locations.
13136 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13137 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13138 (assign_parm_setup_block): Prefer SSA-assigned location.
13139 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
13140 if stack_parm is NULL.
13141 (assign_parm_setup_stack): Prefer SSA-assigned location.
13142 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13143 rtl before testing for pointer bounds. Special-case result_ptr.
13144 (expand_function_start): Maybe reset DECL_RTL of result.
13145 Prefer SSA-assigned location for result and static chain.
13146 Factor out DECL_RESULT and SET_DECL_RTL.
13147 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13148 anonymous SSA names. Use promote_ssa_mode.
13149 (get_temp_reg): Likewise.
13150 (remove_ssa_form): Adjust.
13151 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13152 and get its reg_usage for reg invalidation.
13153 (compute_bb_dataflow): Pass it insn.
13154 (emit_notes_in_bb): Likewise.
13155 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
13156 fail assert on conversion between unsigned types.
13157
13158 2015-06-09 Tom de Vries <tom@codesourcery.com>
13159
13160 PR tree-optimization/65460
13161 * omp-low.c (expand_omp_target): Set parallelized_function on
13162 cgraph_node for child_fn.
13163
13164 2015-06-09 Tom de Vries <tom@codesourcery.com>
13165
13166 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
13167 parallelized_function before add_new_function.
13168
13169 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
13170
13171 * gcc-plugin.h: Move decls to plugin.h and include it.
13172 * plugin.h: Relocate decls from gcc-plugin.h
13173 * ggc-page.c: Include required header files.
13174 * passes.c: Likewise.
13175 * cgraphunit.c: Likewise.
13176
13177 2015-06-09 Tom de Vries <tom@codesourcery.com>
13178
13179 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
13180
13181 2015-06-09 Jason Merrill <jason@redhat.com>
13182
13183 PR bootstrap/66448
13184 * toplev.c (check_global_declaration): Don't warn about a clone.
13185
13186 2015-06-09 Marek Polacek <polacek@redhat.com>
13187
13188 PR tree-optimization/66299
13189 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
13190 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
13191 patterns.
13192
13193 2015-06-09 Richard Biener <rguenther@suse.de>
13194
13195 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
13196 (vect_analyze_slp_instance): Instead do not falsely drop
13197 load permutations.
13198
13199 2015-06-09 Richard Biener <rguenther@suse.de>
13200
13201 PR middle-end/66423
13202 * match.pd: Handle A % (unsigned)(1 << B).
13203
13204 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
13205
13206 * varasm.c (output_object_block_htab): Remove.
13207 (output_object_block_compare): New.
13208 (output_object_blocks): Sort named object_blocks before outputting
13209 them.
13210
13211 2015-06-09 Richard Biener <rguenther@suse.de>
13212
13213 PR tree-optimization/66419
13214 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
13215 consider GROUP_GAP when detecting a perfect subchain.
13216
13217 2015-06-09 Nick Clifton <nickc@redhat.com>
13218
13219 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
13220 place read only data in the .frodata section.
13221
13222 2015-06-09 Shiva Chen <shiva0217@gmail.com>
13223
13224 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
13225 (atomic_store<mode>): Likewise.
13226
13227 2015-06-09 Richard Biener <rguenther@suse.de>
13228
13229 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
13230
13231 2015-06-09 Richard Biener <rguenther@suse.de>
13232
13233 PR middle-end/66413
13234 * tree-inline.c (insert_init_debug_bind): Unshare value.
13235
13236 2015-06-09 Richard Biener <rguenther@suse.de>
13237
13238 PR tree-optimization/66396
13239 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
13240 Rename virtual operands.
13241
13242 2015-06-09 Tom de Vries <tom@codesourcery.com>
13243
13244 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
13245 always return false.
13246
13247 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13248
13249 PR rtl-optimization/64164
13250 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13251 * tree-ssa-copyrename.c: Removed.
13252 * opts.c (default_options_table): Drop -ftree-copyrename. Add
13253 -ftree-coalesce-vars.
13254 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13255 * common.opt (ftree-copyrename): Ignore.
13256 (ftree-coalesce-inlined-vars): Likewise.
13257 * doc/invoke.texi: Remove the ignored options above.
13258 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13259 * tree-ssa-coalesce.h: ... here.
13260 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13261 headers required by it.
13262 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13263 across variables when flag_tree_coalesce_vars. Check register
13264 use and promoted modes to allow coalescing. Moved to
13265 tree-ssa-coalesce.c.
13266 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13267 with its member functions to tree-ssa-coalesce.c.
13268 (var_map_base_init): Likewise. Renamed to
13269 compute_samebase_partition_bases.
13270 (partition_view_normal): Drop want_bases parameter.
13271 (partition_view_bitmap): Likewise.
13272 * tree-ssa-live.h: Adjust declarations.
13273 * tree-ssa-coalesce.c: Include explow.h.
13274 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13275 default defs at the entry point.
13276 (dump_part_var_map): New.
13277 (compute_optimized_partition_bases): New, called by...
13278 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13279 of compute_samebase_partition_bases. Adjust.
13280 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13281 * cfgexpand.c (leader_merge): New.
13282 (get_rtl_for_parm_ssa_default_def): New.
13283 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13284 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13285 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13286 redundant MEM attr setting.
13287 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13288 from...
13289 (expand_one_stack_var): ... this. New wrapper to check and
13290 skip already expanded SSA partitions.
13291 (record_alignment_for_reg_var): New, factored out of...
13292 (expand_one_var): ... this.
13293 (expand_one_ssa_partition): New.
13294 (adjust_one_expanded_partition_var): New.
13295 (expand_one_register_var): Check and skip already expanded SSA
13296 partitions.
13297 (expand_used_vars): Don't create DECLs for anonymous SSA
13298 names. Expand all SSA partitions, then adjust all SSA names.
13299 (pass::execute): Replace the loops that set
13300 SA.partition_to_pseudo from partition leaders and cleared
13301 DECL_RTL for multi-location variables, and that which used to
13302 rename vars and set attrs, with one that clears DECL_RTL and
13303 checks that PARMs and RESULTs default_defs match DECL_RTL.
13304 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13305 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13306 * explow.c (promote_ssa_mode): New.
13307 * explow.h (promote_ssa_mode): Declare.
13308 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13309 * function.c: Include cfgexpand.h.
13310 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13311 (use_register_for_parm_decl): Wrapper for the above to
13312 special-case the result_ptr.
13313 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13314 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13315 multiple locations.
13316 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13317 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13318 (assign_parm_setup_block): Prefer SSA-assigned location.
13319 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
13320 if stack_parm is NULL.
13321 (assign_parm_setup_stack): Prefer SSA-assigned location.
13322 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13323 rtl before testing for pointer bounds. Special-case result_ptr.
13324 (expand_function_start): Maybe reset DECL_RTL of result.
13325 Prefer SSA-assigned location for result and static chain.
13326 Factor out DECL_RESULT and SET_DECL_RTL.
13327 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13328 anonymous SSA names. Use promote_ssa_mode.
13329 (get_temp_reg): Likewise.
13330 (remove_ssa_form): Adjust.
13331 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13332 and get its reg_usage for reg invalidation.
13333 (compute_bb_dataflow): Pass it insn.
13334 (emit_notes_in_bb): Likewise.
13335 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
13336 fail assert on conversion between unsigned types.
13337
13338 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
13339
13340 PR debug/58315
13341 * tree-inline.c (reset_debug_binding): New.
13342 (reset_debug_bindings): Likewise.
13343 (expand_call_inline): Call it.
13344
13345 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
13346
13347 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
13348 TYPE_STRING_FLAG.
13349
13350 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
13351
13352 * lto-streamer-out.c (lto_output_location): Stream
13353 reserved locations correctly.
13354 * lto-streamer-in.c (lto_output_location): Likewise.
13355
13356 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
13357
13358 * coretypes.h: Include hash-table.h and hash-set.h for host files.
13359 * ggc.h: Don't include statistics.h>
13360 * hash-map.h: Remove all includes.
13361 * hash-set.h: Likewise.
13362 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
13363 the include list. Remove <new>.
13364 * inchash.h: Remove all includes.
13365 * mem-stats.h: Likewise.
13366 * vec.h: No special processing for generators or ggc.
13367 * alias.c : Adjust include files.
13368 * alloc-pool.c : Likewise.
13369 * alloc-pool.h : Likewise.
13370 * asan.c : Likewise.
13371 * attribs.c : Likewise.
13372 * auto-inc-dec.c : Likewise.
13373 * auto-profile.c : Likewise.
13374 * bb-reorder.c : Likewise.
13375 * bitmap.c : Likewise.
13376 * bitmap.h : Likewise.
13377 * bt-load.c : Likewise.
13378 * builtins.c : Likewise.
13379 * caller-save.c : Likewise.
13380 * calls.c : Likewise.
13381 * ccmp.c : Likewise.
13382 * cfg.c : Likewise.
13383 * cfganal.c : Likewise.
13384 * cfgbuild.c : Likewise.
13385 * cfgcleanup.c : Likewise.
13386 * cfgexpand.c : Likewise.
13387 * cfghooks.c : Likewise.
13388 * cfgloop.c : Likewise.
13389 * cfgloop.h : Likewise.
13390 * cfgloopanal.c : Likewise.
13391 * cfgloopmanip.c : Likewise.
13392 * cfgrtl.c : Likewise.
13393 * cgraph.c : Likewise.
13394 * cgraphbuild.c : Likewise.
13395 * cgraphclones.c : Likewise.
13396 * cgraphunit.c : Likewise.
13397 * cilk-common.c : Likewise.
13398 * combine-stack-adj.c : Likewise.
13399 * combine.c : Likewise.
13400 * compare-elim.c : Likewise.
13401 * context.c : Likewise.
13402 * convert.c : Likewise.
13403 * coverage.c : Likewise.
13404 * cppbuiltin.c : Likewise.
13405 * cprop.c : Likewise.
13406 * cse.c : Likewise.
13407 * cselib.c : Likewise.
13408 * data-streamer-in.c : Likewise.
13409 * data-streamer-out.c : Likewise.
13410 * data-streamer.c : Likewise.
13411 * data-streamer.h : Likewise.
13412 * dbxout.c : Likewise.
13413 * dce.c : Likewise.
13414 * ddg.c : Likewise.
13415 * debug.c : Likewise.
13416 * df-core.c : Likewise.
13417 * df-problems.c : Likewise.
13418 * df-scan.c : Likewise.
13419 * df.h : Likewise.
13420 * dfp.c : Likewise.
13421 * dojump.c : Likewise.
13422 * dominance.c : Likewise.
13423 * domwalk.c : Likewise.
13424 * double-int.c : Likewise.
13425 * dse.c : Likewise.
13426 * dumpfile.c : Likewise.
13427 * dwarf2asm.c : Likewise.
13428 * dwarf2cfi.c : Likewise.
13429 * dwarf2out.c : Likewise.
13430 * emit-rtl.c : Likewise.
13431 * et-forest.c : Likewise.
13432 * except.c : Likewise.
13433 * except.h : Likewise.
13434 * explow.c : Likewise.
13435 * expmed.c : Likewise.
13436 * expr.c : Likewise.
13437 * final.c : Likewise.
13438 * fixed-value.c : Likewise.
13439 * fold-const.c : Likewise.
13440 * function.c : Likewise.
13441 * fwprop.c : Likewise.
13442 * gcc-plugin.h : Likewise.
13443 * gcc.c : Likewise.
13444 * gcse-common.c : Likewise.
13445 * gcse.c : Likewise.
13446 * genattrtab.c : Likewise.
13447 * genautomata.c : Likewise.
13448 * genconditions.c : Likewise.
13449 * genemit.c : Likewise.
13450 * generic-match-head.c : Likewise.
13451 * genextract.c : Likewise.
13452 * gengtype-state.c : Likewise.
13453 * gengtype.c : Likewise.
13454 * genhooks.c : Likewise.
13455 * genmatch.c : Likewise.
13456 * genmodes.c : Likewise.
13457 * genrecog.c : Likewise.
13458 * gensupport.c : Likewise.
13459 * ggc-common.c : Likewise.
13460 * ggc-internal.h : Likewise.
13461 * ggc-none.c : Likewise.
13462 * ggc-page.c : Likewise.
13463 * gimple-builder.c : Likewise.
13464 * gimple-expr.c : Likewise.
13465 * gimple-fold.c : Likewise.
13466 * gimple-iterator.c : Likewise.
13467 * gimple-low.c : Likewise.
13468 * gimple-match-head.c : Likewise.
13469 * gimple-pretty-print.c : Likewise.
13470 * gimple-ssa-isolate-paths.c : Likewise.
13471 * gimple-ssa-strength-reduction.c : Likewise.
13472 * gimple-ssa.h : Likewise.
13473 * gimple-streamer-in.c : Likewise.
13474 * gimple-streamer-out.c : Likewise.
13475 * gimple-streamer.h : Likewise.
13476 * gimple-walk.c : Likewise.
13477 * gimple.c : Likewise.
13478 * gimplify-me.c : Likewise.
13479 * gimplify.c : Likewise.
13480 * godump.c : Likewise.
13481 * graph.c : Likewise.
13482 * graphds.c : Likewise.
13483 * graphite-blocking.c : Likewise.
13484 * graphite-dependences.c : Likewise.
13485 * graphite-interchange.c : Likewise.
13486 * graphite-isl-ast-to-gimple.c : Likewise.
13487 * graphite-optimize-isl.c : Likewise.
13488 * graphite-poly.c : Likewise.
13489 * graphite-scop-detection.c : Likewise.
13490 * graphite-sese-to-poly.c : Likewise.
13491 * graphite.c : Likewise.
13492 * haifa-sched.c : Likewise.
13493 * hard-reg-set.h : Likewise.
13494 * hw-doloop.c : Likewise.
13495 * ifcvt.c : Likewise.
13496 * inchash.c : Likewise.
13497 * incpath.c : Likewise.
13498 * init-regs.c : Likewise.
13499 * input.c : Likewise.
13500 * internal-fn.c : Likewise.
13501 * ipa-chkp.c : Likewise.
13502 * ipa-comdats.c : Likewise.
13503 * ipa-cp.c : Likewise.
13504 * ipa-devirt.c : Likewise.
13505 * ipa-icf-gimple.c : Likewise.
13506 * ipa-icf.c : Likewise.
13507 * ipa-inline-analysis.c : Likewise.
13508 * ipa-inline-transform.c : Likewise.
13509 * ipa-inline.c : Likewise.
13510 * ipa-polymorphic-call.c : Likewise.
13511 * ipa-profile.c : Likewise.
13512 * ipa-prop.c : Likewise.
13513 * ipa-pure-const.c : Likewise.
13514 * ipa-ref.c : Likewise.
13515 * ipa-reference.c : Likewise.
13516 * ipa-split.c : Likewise.
13517 * ipa-utils.c : Likewise.
13518 * ipa-visibility.c : Likewise.
13519 * ipa.c : Likewise.
13520 * ira-build.c : Likewise.
13521 * ira-color.c : Likewise.
13522 * ira-conflicts.c : Likewise.
13523 * ira-costs.c : Likewise.
13524 * ira-emit.c : Likewise.
13525 * ira-lives.c : Likewise.
13526 * ira.c : Likewise.
13527 * jump.c : Likewise.
13528 * langhooks.c : Likewise.
13529 * lcm.c : Likewise.
13530 * libfuncs.h : Likewise.
13531 * lists.c : Likewise.
13532 * loop-doloop.c : Likewise.
13533 * loop-init.c : Likewise.
13534 * loop-invariant.c : Likewise.
13535 * loop-iv.c : Likewise.
13536 * loop-unroll.c : Likewise.
13537 * lower-subreg.c : Likewise.
13538 * lra-assigns.c : Likewise.
13539 * lra-coalesce.c : Likewise.
13540 * lra-constraints.c : Likewise.
13541 * lra-eliminations.c : Likewise.
13542 * lra-lives.c : Likewise.
13543 * lra-remat.c : Likewise.
13544 * lra-spills.c : Likewise.
13545 * lra.c : Likewise.
13546 * lto-cgraph.c : Likewise.
13547 * lto-compress.c : Likewise.
13548 * lto-opts.c : Likewise.
13549 * lto-section-in.c : Likewise.
13550 * lto-section-out.c : Likewise.
13551 * lto-streamer-in.c : Likewise.
13552 * lto-streamer-out.c : Likewise.
13553 * lto-streamer.c : Likewise.
13554 * lto-streamer.h : Likewise.
13555 * mcf.c : Likewise.
13556 * mode-switching.c : Likewise.
13557 * modulo-sched.c : Likewise.
13558 * omega.c : Likewise.
13559 * omp-low.c : Likewise.
13560 * optabs.c : Likewise.
13561 * opts-global.c : Likewise.
13562 * opts.h : Likewise.
13563 * passes.c : Likewise.
13564 * plugin.c : Likewise.
13565 * postreload-gcse.c : Likewise.
13566 * postreload.c : Likewise.
13567 * predict.c : Likewise.
13568 * print-rtl.c : Likewise.
13569 * print-tree.c : Likewise.
13570 * profile.c : Likewise.
13571 * read-md.c : Likewise.
13572 * read-md.h : Likewise.
13573 * read-rtl.c : Likewise.
13574 * real.c : Likewise.
13575 * realmpfr.c : Likewise.
13576 * recog.c : Likewise.
13577 * ree.c : Likewise.
13578 * reg-stack.c : Likewise.
13579 * regcprop.c : Likewise.
13580 * reginfo.c : Likewise.
13581 * regrename.c : Likewise.
13582 * regstat.c : Likewise.
13583 * reload.c : Likewise.
13584 * reload1.c : Likewise.
13585 * reorg.c : Likewise.
13586 * resource.c : Likewise.
13587 * rtl-chkp.c : Likewise.
13588 * rtl.c : Likewise.
13589 * rtl.h : Likewise.
13590 * rtlanal.c : Likewise.
13591 * rtlhash.c : Likewise.
13592 * rtlhash.h : Likewise.
13593 * rtlhooks.c : Likewise.
13594 * sanopt.c : Likewise.
13595 * sched-deps.c : Likewise.
13596 * sched-ebb.c : Likewise.
13597 * sched-rgn.c : Likewise.
13598 * sched-vis.c : Likewise.
13599 * sdbout.c : Likewise.
13600 * sel-sched-dump.c : Likewise.
13601 * sel-sched-ir.c : Likewise.
13602 * sel-sched-ir.h : Likewise.
13603 * sel-sched.c : Likewise.
13604 * sese.c : Likewise.
13605 * shrink-wrap.c : Likewise.
13606 * shrink-wrap.h : Likewise.
13607 * simplify-rtx.c : Likewise.
13608 * stack-ptr-mod.c : Likewise.
13609 * statistics.c : Likewise.
13610 * stmt.c : Likewise.
13611 * stor-layout.c : Likewise.
13612 * store-motion.c : Likewise.
13613 * stringpool.c : Likewise.
13614 * symtab.c : Likewise.
13615 * target-globals.c : Likewise.
13616 * targhooks.c : Likewise.
13617 * tlink.c : Likewise.
13618 * toplev.c : Likewise.
13619 * tracer.c : Likewise.
13620 * trans-mem.c : Likewise.
13621 * tree-affine.c : Likewise.
13622 * tree-affine.h : Likewise.
13623 * tree-browser.c : Likewise.
13624 * tree-call-cdce.c : Likewise.
13625 * tree-cfg.c : Likewise.
13626 * tree-cfgcleanup.c : Likewise.
13627 * tree-chkp-opt.c : Likewise.
13628 * tree-chkp.c : Likewise.
13629 * tree-chrec.c : Likewise.
13630 * tree-complex.c : Likewise.
13631 * tree-data-ref.c : Likewise.
13632 * tree-dfa.c : Likewise.
13633 * tree-diagnostic.c : Likewise.
13634 * tree-dump.c : Likewise.
13635 * tree-eh.c : Likewise.
13636 * tree-eh.h : Likewise.
13637 * tree-emutls.c : Likewise.
13638 * tree-hasher.h : Likewise.
13639 * tree-if-conv.c : Likewise.
13640 * tree-inline.c : Likewise.
13641 * tree-inline.h : Likewise.
13642 * tree-into-ssa.c : Likewise.
13643 * tree-iterator.c : Likewise.
13644 * tree-loop-distribution.c : Likewise.
13645 * tree-nested.c : Likewise.
13646 * tree-nrv.c : Likewise.
13647 * tree-object-size.c : Likewise.
13648 * tree-outof-ssa.c : Likewise.
13649 * tree-parloops.c : Likewise.
13650 * tree-phinodes.c : Likewise.
13651 * tree-predcom.c : Likewise.
13652 * tree-pretty-print.c : Likewise.
13653 * tree-profile.c : Likewise.
13654 * tree-scalar-evolution.c : Likewise.
13655 * tree-sra.c : Likewise.
13656 * tree-ssa-address.c : Likewise.
13657 * tree-ssa-alias.c : Likewise.
13658 * tree-ssa-ccp.c : Likewise.
13659 * tree-ssa-coalesce.c : Likewise.
13660 * tree-ssa-copy.c : Likewise.
13661 * tree-ssa-copyrename.c : Likewise.
13662 * tree-ssa-dce.c : Likewise.
13663 * tree-ssa-dom.c : Likewise.
13664 * tree-ssa-dse.c : Likewise.
13665 * tree-ssa-forwprop.c : Likewise.
13666 * tree-ssa-ifcombine.c : Likewise.
13667 * tree-ssa-live.c : Likewise.
13668 * tree-ssa-loop-ch.c : Likewise.
13669 * tree-ssa-loop-im.c : Likewise.
13670 * tree-ssa-loop-ivcanon.c : Likewise.
13671 * tree-ssa-loop-ivopts.c : Likewise.
13672 * tree-ssa-loop-manip.c : Likewise.
13673 * tree-ssa-loop-niter.c : Likewise.
13674 * tree-ssa-loop-prefetch.c : Likewise.
13675 * tree-ssa-loop-unswitch.c : Likewise.
13676 * tree-ssa-loop.c : Likewise.
13677 * tree-ssa-math-opts.c : Likewise.
13678 * tree-ssa-operands.c : Likewise.
13679 * tree-ssa-phiopt.c : Likewise.
13680 * tree-ssa-phiprop.c : Likewise.
13681 * tree-ssa-pre.c : Likewise.
13682 * tree-ssa-propagate.c : Likewise.
13683 * tree-ssa-reassoc.c : Likewise.
13684 * tree-ssa-sccvn.c : Likewise.
13685 * tree-ssa-scopedtables.c : Likewise.
13686 * tree-ssa-sink.c : Likewise.
13687 * tree-ssa-strlen.c : Likewise.
13688 * tree-ssa-structalias.c : Likewise.
13689 * tree-ssa-tail-merge.c : Likewise.
13690 * tree-ssa-ter.c : Likewise.
13691 * tree-ssa-threadedge.c : Likewise.
13692 * tree-ssa-threadupdate.c : Likewise.
13693 * tree-ssa-uncprop.c : Likewise.
13694 * tree-ssa-uninit.c : Likewise.
13695 * tree-ssa.c : Likewise.
13696 * tree-ssanames.c : Likewise.
13697 * tree-stdarg.c : Likewise.
13698 * tree-streamer-in.c : Likewise.
13699 * tree-streamer-out.c : Likewise.
13700 * tree-streamer.c : Likewise.
13701 * tree-streamer.h : Likewise.
13702 * tree-switch-conversion.c : Likewise.
13703 * tree-tailcall.c : Likewise.
13704 * tree-vect-data-refs.c : Likewise.
13705 * tree-vect-generic.c : Likewise.
13706 * tree-vect-loop-manip.c : Likewise.
13707 * tree-vect-loop.c : Likewise.
13708 * tree-vect-patterns.c : Likewise.
13709 * tree-vect-slp.c : Likewise.
13710 * tree-vect-stmts.c : Likewise.
13711 * tree-vectorizer.c : Likewise.
13712 * tree-vectorizer.h : Likewise.
13713 * tree-vrp.c : Likewise.
13714 * tree.c : Likewise.
13715 * tsan.c : Likewise.
13716 * ubsan.c : Likewise.
13717 * valtrack.c : Likewise.
13718 * valtrack.h : Likewise.
13719 * value-prof.c : Likewise.
13720 * var-tracking.c : Likewise.
13721 * varasm.c : Likewise.
13722 * varpool.c : Likewise.
13723 * vec.c: Likewise.
13724 * vmsdbgout.c : Likewise.
13725 * vtable-verify.c : Likewise.
13726 * vtable-verify.h : Likewise.
13727 * web.c : Likewise.
13728 * wide-int.cc : Likewise.
13729 * xcoffout.c : Likewise.
13730 * config/aarch64/aarch64-builtins.c : Likewise.
13731 * config/aarch64/aarch64.c : Likewise.
13732 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
13733 * config/alpha/alpha.c : Likewise.
13734 * config/arc/arc.c : Likewise.
13735 * config/arm/aarch-common.c : Likewise.
13736 * config/arm/arm-builtins.c : Likewise.
13737 * config/arm/arm-c.c : Likewise.
13738 * config/arm/arm.c : Likewise.
13739 * config/avr/avr-c.c : Likewise.
13740 * config/avr/avr-log.c : Likewise.
13741 * config/avr/avr.c : Likewise.
13742 * config/bfin/bfin.c : Likewise.
13743 * config/c6x/c6x.c : Likewise.
13744 * config/cr16/cr16.c : Likewise.
13745 * config/cris/cris.c : Likewise.
13746 * config/darwin-c.c : Likewise.
13747 * config/darwin.c : Likewise.
13748 * config/default-c.c : Likewise.
13749 * config/epiphany/epiphany.c : Likewise.
13750 * config/epiphany/mode-switch-use.c : Likewise.
13751 * config/epiphany/resolve-sw-modes.c : Likewise.
13752 * config/fr30/fr30.c : Likewise.
13753 * config/frv/frv.c : Likewise.
13754 * config/ft32/ft32.c : Likewise.
13755 * config/glibc-c.c : Likewise.
13756 * config/h8300/h8300.c : Likewise.
13757 * config/i386/i386-c.c : Likewise.
13758 * config/i386/i386.c : Likewise.
13759 * config/i386/msformat-c.c : Likewise.
13760 * config/i386/winnt-cxx.c : Likewise.
13761 * config/i386/winnt-stubs.c : Likewise.
13762 * config/i386/winnt.c : Likewise.
13763 * config/ia64/ia64-c.c : Likewise.
13764 * config/ia64/ia64.c : Likewise.
13765 * config/iq2000/iq2000.c : Likewise.
13766 * config/lm32/lm32.c : Likewise.
13767 * config/m32c/m32c-pragma.c : Likewise.
13768 * config/m32c/m32c.c : Likewise.
13769 * config/m32r/m32r.c : Likewise.
13770 * config/m68k/m68k.c : Likewise.
13771 * config/mcore/mcore.c : Likewise.
13772 * config/mep/mep-pragma.c : Likewise.
13773 * config/mep/mep.c : Likewise.
13774 * config/microblaze/microblaze-c.c : Likewise.
13775 * config/microblaze/microblaze.c : Likewise.
13776 * config/mips/mips.c : Likewise.
13777 * config/mmix/mmix.c : Likewise.
13778 * config/mn10300/mn10300.c : Likewise.
13779 * config/moxie/moxie.c : Likewise.
13780 * config/msp430/msp430-c.c : Likewise.
13781 * config/msp430/msp430.c : Likewise.
13782 * config/nds32/nds32-cost.c : Likewise.
13783 * config/nds32/nds32-fp-as-gp.c : Likewise.
13784 * config/nds32/nds32-intrinsic.c : Likewise.
13785 * config/nds32/nds32-isr.c : Likewise.
13786 * config/nds32/nds32-md-auxiliary.c : Likewise.
13787 * config/nds32/nds32-memory-manipulation.c : Likewise.
13788 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
13789 * config/nds32/nds32-predicates.c : Likewise.
13790 * config/nds32/nds32.c : Likewise.
13791 * config/nios2/nios2.c : Likewise.
13792 * config/nvptx/nvptx.c : Likewise.
13793 * config/pa/pa.c : Likewise.
13794 * config/pdp11/pdp11.c : Likewise.
13795 * config/rl78/rl78-c.c : Likewise.
13796 * config/rl78/rl78.c : Likewise.
13797 * config/rs6000/rs6000-c.c : Likewise.
13798 * config/rs6000/rs6000.c : Likewise.
13799 * config/rx/rx.c : Likewise.
13800 * config/s390/s390-c.c : Likewise.
13801 * config/s390/s390.c : Likewise.
13802 * config/sh/sh-c.c : Likewise.
13803 * config/sh/sh-mem.cc : Likewise.
13804 * config/sh/sh.c : Likewise.
13805 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
13806 * config/sh/sh_treg_combine.cc : Likewise.
13807 * config/sol2-c.c : Likewise.
13808 * config/sol2-cxx.c : Likewise.
13809 * config/sol2-stubs.c : Likewise.
13810 * config/sol2.c : Likewise.
13811 * config/sparc/sparc-c.c : Likewise.
13812 * config/sparc/sparc.c : Likewise.
13813 * config/spu/spu-c.c : Likewise.
13814 * config/spu/spu.c : Likewise.
13815 * config/stormy16/stormy16.c : Likewise.
13816 * config/tilegx/mul-tables.c : Likewise.
13817 * config/tilegx/tilegx-c.c : Likewise.
13818 * config/tilegx/tilegx.c : Likewise.
13819 * config/tilepro/mul-tables.c : Likewise.
13820 * config/tilepro/tilepro-c.c : Likewise.
13821 * config/tilepro/tilepro.c : Likewise.
13822 * config/v850/v850-c.c : Likewise.
13823 * config/v850/v850.c : Likewise.
13824 * config/vax/vax.c : Likewise.
13825 * config/visium/visium.c : Likewise.
13826 * config/vms/vms-c.c : Likewise.
13827 * config/vms/vms.c : Likewise.
13828 * config/vxworks.c : Likewise.
13829 * config/winnt-c.c : Likewise.
13830 * config/xtensa/xtensa.c : Likewise.
13831
13832 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
13833
13834 PR lto/65378
13835 * ipa-utils.h (warn_types_mismatch): Update prototype.
13836 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
13837 parameters.
13838 (type_mismatch_p): New function.
13839 (warn_types_mismatch): Reorg to work better on non-C++ types.
13840 (odr_types_equivalent_p): Add loc1/loc2 parameters.
13841 (add_type_duplicate): Update.
13842
13843 2015-06-08 Tom de Vries <tom@codesourcery.com>
13844
13845 PR rtl-optimization/66444
13846 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
13847 call_used_regs.
13848
13849 2015-06-08 Richard Biener <rguenther@suse.de>
13850
13851 PR tree-optimization/66422
13852 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
13853 block after inserted gcc_unreachable.
13854
13855 2015-06-08 Nick Clifton <nickc@redhat.com>
13856
13857 * config/rx/rx.c (rx_function_value): Do not promote vector types.
13858 (rx_promote_function_mode): Likewise.
13859 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
13860
13861 2015-06-08 Jakub Jelinek <jakub@redhat.com>
13862
13863 * genattrtab.c (insn_alternatives): Change type from int *
13864 to uint64_t *.
13865 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
13866 (get_attr_value): Change type of num_alt to uint64_t.
13867 (compute_alternative_mask): Change return type from
13868 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
13869 (make_alternative_compare, mk_attr_alt): Change argument type
13870 from int to uint64_t.
13871 (simplify_test_exp): Change type of i from int to uint64_t.
13872 Shift ((uint64_t) 1) instead of 1 up.
13873 (main): Adjust oballocvec first argument from int to uint64_t.
13874 Shift ((uint64_t) 1) instead of 1 up.
13875
13876 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
13877
13878 PR other/65366
13879 * gdbhooks.py: Import sys.
13880 (intptr): New function. Replace int(...) by intptr(...).
13881
13882 2015-06-08 Richard Biener <rguenther@suse.de>
13883
13884 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
13885 adjustment for gaps at the end of a SLP load group properly.
13886 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
13887 all permutations we can generate.
13888 (vect_transform_slp_perm_load): Use the correct group-size.
13889
13890 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
13891
13892 * genmatch.c (expr::gen_transform): For conditions, guess the type
13893 from the second operand.
13894
13895 2015-06-08 Tom de Vries <tom@codesourcery.com>
13896
13897 PR tree-optimization/66442
13898 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
13899 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
13900 if the loop latch is not a singleton. Use
13901 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
13902
13903 2015-06-08 Marek Polacek <polacek@redhat.com>
13904
13905 PR sanitizer/66452
13906 * toplev.c (check_global_declaration): Don't warn about artificial
13907 decls.
13908
13909 2015-06-08 Tom de Vries <tom@codesourcery.com>
13910
13911 PR tree-optimization/66436
13912 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
13913 dump file.
13914 * gimplify.c: Add tree-dump.h include.
13915 (gimplify_function_tree): Dump function to gimple dump file.
13916 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
13917 dump file.
13918
13919 2015-06-08 Tom de Vries <tom@codesourcery.com>
13920
13921 PR tree-optimization/66435
13922 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
13923 function.
13924
13925 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
13926
13927 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
13928 of ptr_type_node to not be ptr_to_node.
13929 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
13930 TREE_TYPE of pointers.
13931 * gimple-expr.c (useless_type_conversion): Reorder the check for
13932 function pointers and TYPE_CANONICAL.
13933
13934 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
13935
13936 PR bootstrap/66319
13937 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
13938 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
13939 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
13940 later.
13941 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
13942 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
13943 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
13944 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
13945 and non iso if unix2003.
13946
13947 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
13948
13949 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
13950
13951 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
13952
13953 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
13954 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
13955 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
13956 except.c, final.c, function.c, gcse-common.c, genemit.c,
13957 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
13958 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
13959 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
13960 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
13961 more derived ones.
13962
13963 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
13964
13965 * combine.c (combine_split_insns): Remove cast.
13966 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
13967 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
13968 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
13969 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
13970 * genemit.c (gen_split): Change return type of generated functions to
13971 rtx_insn.
13972 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
13973 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
13974 gen_peephole2_* functions.
13975 (print_subroutine, main): Likewise.
13976 * recog.c (peephole2_optimize): Remove cast.
13977 (peep2_next_insn): Promote return type to rtx_insn.
13978 * recog.h (peep2_next_insn): Fix prototype.
13979 * rtl.h (try_split, split_insns): Likewise.
13980
13981 2015-06-06 DJ Delorie <dj@redhat.com>
13982
13983 * config/msp430/msp430.c (msp430_asm_integer): Support addition
13984 and subtraction too.
13985
13986 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
13987
13988 PR target/66410
13989 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
13990 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
13991 instead of Snd. Disparage Sid/z alternative with '^'.
13992
13993 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
13994
13995 * dwarf2out.c: Remove deferred_locations*.
13996 (dwarf2_debug_hooks): Add early_finish hook.
13997 Remove global_decl hook.
13998 Add early_global_decl and late_global_decl hook.
13999 New global early_dwarf.
14000 New structure set_early_dwarf.
14001 (output_die): Indicate whether a DIE was generated early
14002 when generating assembly with -dA.
14003 (struct limbo_die_struct): Document created_for field.
14004 Remove file_table_last_lookup.
14005 (remove_AT): Return TRUE if successful.
14006 (remove_child_TAG): Clear die_parent.
14007 (reparent_child): New function abstracted from...
14008 (splice_child_die): ...here.
14009 (new_die): ICE if a DIE ends up in limbo too late.
14010 (check_die): New.
14011 (defer_location): Remove.
14012 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
14013 (fill_variable_array_bounds): New.
14014 (decl_start_label): Call fill_variable_array_bounds.
14015 (gen_formal_parameter_die): Rewrite to reuse previously generated
14016 DIEs.
14017 (gen_subprogram_die): Same.
14018 (gen_variable_die): Same.
14019 (gen_const_die): Same.
14020 (gen_label_die): Same.
14021 (gen_lexical_block_die): Same.
14022 (decl_will_get_specification_p): New.
14023 (local_function_static): New.
14024 (gen_struct_or_union_type_die): Fill in variable-length fields.
14025 (gen_typedef_die): Fill in variable-length typedefs.
14026 (gen_tagged_type_die): Gracefully return on error_mark_node.
14027 Handle re-entrancy.
14028 (gen_type_die_with_usage): Handle variable-length types.
14029 Remove duplicate code for ARRAY_TYPE case.
14030 (process_scope_var): Only process imported modules during early
14031 dwarf.
14032 (dwarf2out_early_global_decl): New.
14033 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
14034 (dwarf2out_type_decl): Set early_dwarf while calling
14035 dwarf2out_decl.
14036 (dwarf2out_decl): Verify that we did not recreate a previously
14037 generated DIE.
14038 Do not return on DECL_EXTERNALs in VAR_DECLs.
14039 Abstract some code to local_function_static.
14040 (lookup_filename): Remove use of file_table_last_lookup.
14041 Gracefully exit on missing file_name.
14042 (dwarf2out_finish): Verify limbo list.
14043 Remove deferred_locations_list use.
14044 Move deferred_asm_name and limbo flushing to...
14045 (dwarf2out_early_finish): ...here. New.
14046 (dwarf2out_c_finalize): Remove set of deferred_location_list,
14047 deferred_asm_name, and file_table_last_lookup.
14048 * cgraph.h (referred_to_p): Add default argument.
14049 * cgraphunit.c (referred_to_p): Add and handle include_self
14050 argument.
14051 (analyze_functions): Add first_time argument.
14052 Call check_global_declaration for all symbols.
14053 Call late_global_decl for nodes for moribund nodes.
14054 (finalize_compilation_unit): Add new argument to
14055 analyze_functions.
14056 Call early_global_decl for functions.
14057 Call early_finish debug hook.
14058 * dbxout.c (dbxout_early_global_decl): New.
14059 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
14060 (dbx_debug_hooks): Add new hooks.
14061 (xcoff_debug_hooks): Same.
14062 * debug.c (do_nothing_debug_hooks): Add early_finish field.
14063 Add early and late debug hooks.
14064 Remove global_decl hook.
14065 * debug.h (struct gcc_debug_hooks): Add early_finish,
14066 early_global_decl, and late_global_decl fields.
14067 Remove global_decl field.
14068 Document gcc_debug_hooks.
14069 * gengtype.c (output_typename): Remove.
14070 * godump.c (go_early_global_decl): New.
14071 (go_late_global_decl): New.
14072 (go_global_decl): Remove.
14073 (dump_go_spec_init): Remove global_decl. Add
14074 {early,late}_global_decl.
14075 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
14076 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
14077 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
14078 (write_global_declarations): Remove.
14079 (global_decl_processing): New.
14080 * langhooks.h (struct lang_hooks_for_decls): Remove
14081 final_write_globals field.
14082 Add post_compilation_parsing_cleanups field.
14083 * passes.c (rest_of_decl_compilation): Call early_global_decl.
14084 * sdbout.c: Add early and late_global_decl hooks. Remove
14085 sdbout_global_decl hook.
14086 Add early_finish field for sdb_debug_hooks.
14087 (sdbout_global_decl): Remove.
14088 (sdbout_early_global_decl): New.
14089 (sdbout_late_global_decl): New.
14090 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
14091 * toplev.c (check_global_declaration): Rename from
14092 check_global_declaration_1.
14093 Adapt to use symtab infrastructure.
14094 (check_global_declarations): Remove.
14095 (emit_debug_global_declarations): Remove.
14096 (compile_file): Remove call to final_write_globals langhook.
14097 Run the actual compilation process.
14098 Perform any post compilation parser cleanups.
14099 Generate late debug info.
14100 * toplev.h (check_global_declaration): New.
14101 (check_global_declaration_1): Remove.
14102 (check_global_declarations): Remove.
14103 (write_global_declarations): Remove.
14104 (emit_debug_global_declarations): Remove.
14105 (global_decl_processing): New.
14106 * tree-core.h (struct tree_block): Add DIE field.
14107 * tree.h (BLOCK_DIE): New.
14108 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
14109 throughout.
14110 (vmsdbgout_early_global_decl): New.
14111 (vmsdbgout_late_global_decl): New.
14112 Add early_finish debug hook field to vmsdbg_debug_hooks.
14113 Remove vmsdbgout_decl to vmsdbgout_function_decl.
14114 Add early and late_global_decl debug hooks.
14115
14116 2015-06-05 Julian Brown <julian@codesourcery.com>
14117 Sandra Loosemore <sandra@codesourcery.com>
14118
14119 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
14120 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
14121 to print-sysroot-suffix.sh script.
14122
14123 2015-06-05 Tom de Vries <tom@codesourcery.com>
14124
14125 merge from gomp4 branch:
14126 2015-05-28 Tom de Vries <tom@codesourcery.com>
14127
14128 PR tree-optimization/65443
14129 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
14130 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
14131 (try_transform_to_exit_first_loop_alt): New function.
14132 (transform_to_exit_first_loop): Use
14133 try_transform_to_exit_first_loop_alt.
14134
14135 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
14136
14137 * builtins.c (expand_builtin_atomic_compare_exchange): Call
14138 emit_cmp_and_jump_insns with the mode of target.
14139
14140 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14141
14142 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
14143
14144 2015-06-04 DJ Delorie <dj@redhat.com>
14145
14146 * config/msp430/msp430.md (movsi_s): New. Special case for
14147 storing a 20-bit symbol into a 32-bit register.
14148 * config/msp430/msp430.c (msp430_subreg): Add support for it.
14149 * config/msp430/predicates.md (msp430_symbol_operand): New.
14150
14151 2015-06-04 Sriraman Tallam <tmsriram@google.com>
14152
14153 * c-family/c-common.c (noplt): New attribute.
14154 (handle_noplt_attribute): New handler.
14155 * calls.c (prepare_call_address): Check for noplt
14156 attribute.
14157 * config/i386/i386.c (ix86_expand_call): Check
14158 for noplt attribute.
14159 (ix86_nopic_noplt_attribute_p): New function.
14160 (ix86_output_call_insn): Output indirect call for non-pic
14161 no plt calls.
14162 * doc/extend.texi (noplt): Document new attribute.
14163 * doc/invoke.texi: Document new attribute.
14164
14165 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
14166
14167 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
14168 real.h, and fixed-value.h when included in host source files.
14169 * double-int.h: Remove redundant #includes listed above.
14170 * fixed-value.h: Likewise.
14171 * real.h: Likewise.
14172 * wide-int.h: Likewise.
14173 * inchash.h: Likewise.
14174 * rtl.h: Add some include files When included from a generator file.
14175 * target.h: Remove wide-int.h and insn-modes.h from the include list.
14176 * internal-fn.h: Don't include coretypes.h.
14177 * alias.c: Adjust includes for restructured coretypes.h.
14178 * asan.c: Likewise.
14179 * attribs.c: Likewise.
14180 * auto-inc-dec.c: Likewise.
14181 * auto-profile.c: Likewise.
14182 * bb-reorder.c: Likewise.
14183 * bt-load.c: Likewise.
14184 * builtins.c: Likewise.
14185 * caller-save.c: Likewise.
14186 * calls.c: Likewise.
14187 * ccmp.c: Likewise.
14188 * cfg.c: Likewise.
14189 * cfganal.c: Likewise.
14190 * cfgbuild.c: Likewise.
14191 * cfgcleanup.c: Likewise.
14192 * cfgexpand.c: Likewise.
14193 * cfghooks.c: Likewise.
14194 * cfgloop.c: Likewise.
14195 * cfgloop.h: Likewise.
14196 * cfgloopanal.c: Likewise.
14197 * cfgloopmanip.c: Likewise.
14198 * cfgrtl.c: Likewise.
14199 * cgraph.c: Likewise.
14200 * cgraphbuild.c: Likewise.
14201 * cgraphclones.c: Likewise.
14202 * cgraphunit.c: Likewise.
14203 * cilk-common.c: Likewise.
14204 * combine-stack-adj.c: Likewise.
14205 * combine.c: Likewise.
14206 * compare-elim.c: Likewise.
14207 * convert.c: Likewise.
14208 * coverage.c: Likewise.
14209 * cppbuiltin.c: Likewise.
14210 * cprop.c: Likewise.
14211 * cse.c: Likewise.
14212 * cselib.c: Likewise.
14213 * data-streamer-in.c: Likewise.
14214 * data-streamer-out.c: Likewise.
14215 * data-streamer.c: Likewise.
14216 * dbxout.c: Likewise.
14217 * dce.c: Likewise.
14218 * ddg.c: Likewise.
14219 * debug.c: Likewise.
14220 * df-core.c: Likewise.
14221 * df-problems.c: Likewise.
14222 * df-scan.c: Likewise.
14223 * df.h: Likewise.
14224 * dfp.c: Likewise.
14225 * dojump.c: Likewise.
14226 * dominance.c: Likewise.
14227 * domwalk.c: Likewise.
14228 * double-int.c: Likewise.
14229 * dse.c: Likewise.
14230 * dumpfile.c: Likewise.
14231 * dwarf2asm.c: Likewise.
14232 * dwarf2cfi.c: Likewise.
14233 * dwarf2out.c: Likewise.
14234 * dwarf2out.h: Likewise.
14235 * emit-rtl.c: Likewise.
14236 * et-forest.c: Likewise.
14237 * except.c: Likewise.
14238 * explow.c: Likewise.
14239 * expmed.c: Likewise.
14240 * expr.c: Likewise.
14241 * final.c: Likewise.
14242 * fixed-value.c: Likewise.
14243 * fold-const.c: Likewise.
14244 * function.c: Likewise.
14245 * fwprop.c: Likewise.
14246 * gcc-plugin.h: Likewise.
14247 * gcse.c: Likewise.
14248 * generic-match-head.c: Likewise.
14249 * ggc-page.c: Likewise.
14250 * gimple-builder.c: Likewise.
14251 * gimple-expr.c: Likewise.
14252 * gimple-fold.c: Likewise.
14253 * gimple-iterator.c: Likewise.
14254 * gimple-low.c: Likewise.
14255 * gimple-match-head.c: Likewise.
14256 * gimple-pretty-print.c: Likewise.
14257 * gimple-ssa-isolate-paths.c: Likewise.
14258 * gimple-ssa-strength-reduction.c: Likewise.
14259 * gimple-streamer-in.c: Likewise.
14260 * gimple-streamer-out.c: Likewise.
14261 * gimple-streamer.h: Likewise.
14262 * gimple-walk.c: Likewise.
14263 * gimple.c: Likewise.
14264 * gimplify-me.c: Likewise.
14265 * gimplify.c: Likewise.
14266 * godump.c: Likewise.
14267 * graph.c: Likewise.
14268 * graphite-blocking.c: Likewise.
14269 * graphite-dependences.c: Likewise.
14270 * graphite-interchange.c: Likewise.
14271 * graphite-isl-ast-to-gimple.c: Likewise.
14272 * graphite-optimize-isl.c: Likewise.
14273 * graphite-poly.c: Likewise.
14274 * graphite-scop-detection.c: Likewise.
14275 * graphite-sese-to-poly.c: Likewise.
14276 * graphite.c: Likewise.
14277 * haifa-sched.c: Likewise.
14278 * hooks.h: Likewise.
14279 * hw-doloop.c: Likewise.
14280 * ifcvt.c: Likewise.
14281 * incpath.c: Likewise.
14282 * init-regs.c: Likewise.
14283 * internal-fn.c: Likewise.
14284 * ipa-chkp.c: Likewise.
14285 * ipa-comdats.c: Likewise.
14286 * ipa-cp.c: Likewise.
14287 * ipa-devirt.c: Likewise.
14288 * ipa-icf-gimple.c: Likewise.
14289 * ipa-icf.c: Likewise.
14290 * ipa-inline-analysis.c: Likewise.
14291 * ipa-inline-transform.c: Likewise.
14292 * ipa-inline.c: Likewise.
14293 * ipa-polymorphic-call.c: Likewise.
14294 * ipa-profile.c: Likewise.
14295 * ipa-prop.c: Likewise.
14296 * ipa-pure-const.c: Likewise.
14297 * ipa-ref.c: Likewise.
14298 * ipa-reference.c: Likewise.
14299 * ipa-split.c: Likewise.
14300 * ipa-utils.c: Likewise.
14301 * ipa-visibility.c: Likewise.
14302 * ipa.c: Likewise.
14303 * ira-build.c: Likewise.
14304 * ira-color.c: Likewise.
14305 * ira-conflicts.c: Likewise.
14306 * ira-costs.c: Likewise.
14307 * ira-emit.c: Likewise.
14308 * ira-lives.c: Likewise.
14309 * ira.c: Likewise.
14310 * jump.c: Likewise.
14311 * langhooks.c: Likewise.
14312 * lcm.c: Likewise.
14313 * loop-doloop.c: Likewise.
14314 * loop-init.c: Likewise.
14315 * loop-invariant.c: Likewise.
14316 * loop-iv.c: Likewise.
14317 * loop-unroll.c: Likewise.
14318 * lower-subreg.c: Likewise.
14319 * lra-assigns.c: Likewise.
14320 * lra-coalesce.c: Likewise.
14321 * lra-constraints.c: Likewise.
14322 * lra-eliminations.c: Likewise.
14323 * lra-lives.c: Likewise.
14324 * lra-remat.c: Likewise.
14325 * lra-spills.c: Likewise.
14326 * lra.c: Likewise.
14327 * lto-cgraph.c: Likewise.
14328 * lto-compress.c: Likewise.
14329 * lto-opts.c: Likewise.
14330 * lto-section-in.c: Likewise.
14331 * lto-section-out.c: Likewise.
14332 * lto-streamer-in.c: Likewise.
14333 * lto-streamer-out.c: Likewise.
14334 * lto-streamer.c: Likewise.
14335 * mcf.c: Likewise.
14336 * mode-switching.c: Likewise.
14337 * modulo-sched.c: Likewise.
14338 * omega.c: Likewise.
14339 * omp-low.c: Likewise.
14340 * optabs.c: Likewise.
14341 * opts-global.c: Likewise.
14342 * passes.c: Likewise.
14343 * plugin.c: Likewise.
14344 * postreload-gcse.c: Likewise.
14345 * postreload.c: Likewise.
14346 * predict.c: Likewise.
14347 * print-rtl.c: Likewise.
14348 * print-tree.c: Likewise.
14349 * profile.c: Likewise.
14350 * real.c: Likewise.
14351 * realmpfr.c: Likewise.
14352 * realmpfr.h: Likewise.
14353 * recog.c: Likewise.
14354 * ree.c: Likewise.
14355 * reg-stack.c: Likewise.
14356 * regcprop.c: Likewise.
14357 * reginfo.c: Likewise.
14358 * regrename.c: Likewise.
14359 * regs.h: Likewise.
14360 * regstat.c: Likewise.
14361 * reload.c: Likewise.
14362 * reload1.c: Likewise.
14363 * reorg.c: Likewise.
14364 * resource.c: Likewise.
14365 * rtl-chkp.c: Likewise.
14366 * rtlanal.c: Likewise.
14367 * rtlhooks.c: Likewise.
14368 * sanopt.c: Likewise.
14369 * sched-deps.c: Likewise.
14370 * sched-ebb.c: Likewise.
14371 * sched-rgn.c: Likewise.
14372 * sched-vis.c: Likewise.
14373 * sdbout.c: Likewise.
14374 * sel-sched-dump.c: Likewise.
14375 * sel-sched-ir.c: Likewise.
14376 * sel-sched.c: Likewise.
14377 * sese.c: Likewise.
14378 * shrink-wrap.c: Likewise.
14379 * shrink-wrap.h: Likewise.
14380 * simplify-rtx.c: Likewise.
14381 * stack-ptr-mod.c: Likewise.
14382 * statistics.c: Likewise.
14383 * stmt.c: Likewise.
14384 * stor-layout.c: Likewise.
14385 * store-motion.c: Likewise.
14386 * stringpool.c: Likewise.
14387 * symtab.c: Likewise.
14388 * target-globals.c: Likewise.
14389 * targhooks.c: Likewise.
14390 * toplev.c: Likewise.
14391 * tracer.c: Likewise.
14392 * trans-mem.c: Likewise.
14393 * tree-affine.c: Likewise.
14394 * tree-affine.h: Likewise.
14395 * tree-browser.c: Likewise.
14396 * tree-call-cdce.c: Likewise.
14397 * tree-cfg.c: Likewise.
14398 * tree-cfgcleanup.c: Likewise.
14399 * tree-chkp-opt.c: Likewise.
14400 * tree-chkp.c: Likewise.
14401 * tree-chrec.c: Likewise.
14402 * tree-complex.c: Likewise.
14403 * tree-data-ref.c: Likewise.
14404 * tree-dfa.c: Likewise.
14405 * tree-diagnostic.c: Likewise.
14406 * tree-dump.c: Likewise.
14407 * tree-eh.c: Likewise.
14408 * tree-emutls.c: Likewise.
14409 * tree-if-conv.c: Likewise.
14410 * tree-inline.c: Likewise.
14411 * tree-into-ssa.c: Likewise.
14412 * tree-iterator.c: Likewise.
14413 * tree-loop-distribution.c: Likewise.
14414 * tree-nested.c: Likewise.
14415 * tree-nrv.c: Likewise.
14416 * tree-object-size.c: Likewise.
14417 * tree-outof-ssa.c: Likewise.
14418 * tree-parloops.c: Likewise.
14419 * tree-phinodes.c: Likewise.
14420 * tree-predcom.c: Likewise.
14421 * tree-pretty-print.c: Likewise.
14422 * tree-pretty-print.h: Likewise.
14423 * tree-profile.c: Likewise.
14424 * tree-scalar-evolution.c: Likewise.
14425 * tree-sra.c: Likewise.
14426 * tree-ssa-address.c: Likewise.
14427 * tree-ssa-alias.c: Likewise.
14428 * tree-ssa-ccp.c: Likewise.
14429 * tree-ssa-coalesce.c: Likewise.
14430 * tree-ssa-copy.c: Likewise.
14431 * tree-ssa-copyrename.c: Likewise.
14432 * tree-ssa-dce.c: Likewise.
14433 * tree-ssa-dom.c: Likewise.
14434 * tree-ssa-dse.c: Likewise.
14435 * tree-ssa-forwprop.c: Likewise.
14436 * tree-ssa-ifcombine.c: Likewise.
14437 * tree-ssa-live.c: Likewise.
14438 * tree-ssa-loop-ch.c: Likewise.
14439 * tree-ssa-loop-im.c: Likewise.
14440 * tree-ssa-loop-ivcanon.c: Likewise.
14441 * tree-ssa-loop-ivopts.c: Likewise.
14442 * tree-ssa-loop-manip.c: Likewise.
14443 * tree-ssa-loop-niter.c: Likewise.
14444 * tree-ssa-loop-prefetch.c: Likewise.
14445 * tree-ssa-loop-unswitch.c: Likewise.
14446 * tree-ssa-loop.c: Likewise.
14447 * tree-ssa-loop.h: Likewise.
14448 * tree-ssa-math-opts.c: Likewise.
14449 * tree-ssa-operands.c: Likewise.
14450 * tree-ssa-phiopt.c: Likewise.
14451 * tree-ssa-phiprop.c: Likewise.
14452 * tree-ssa-pre.c: Likewise.
14453 * tree-ssa-propagate.c: Likewise.
14454 * tree-ssa-reassoc.c: Likewise.
14455 * tree-ssa-sccvn.c: Likewise.
14456 * tree-ssa-scopedtables.c: Likewise.
14457 * tree-ssa-sink.c: Likewise.
14458 * tree-ssa-strlen.c: Likewise.
14459 * tree-ssa-structalias.c: Likewise.
14460 * tree-ssa-tail-merge.c: Likewise.
14461 * tree-ssa-ter.c: Likewise.
14462 * tree-ssa-threadedge.c: Likewise.
14463 * tree-ssa-threadupdate.c: Likewise.
14464 * tree-ssa-uncprop.c: Likewise.
14465 * tree-ssa-uninit.c: Likewise.
14466 * tree-ssa.c: Likewise.
14467 * tree-ssanames.c: Likewise.
14468 * tree-stdarg.c: Likewise.
14469 * tree-streamer-in.c: Likewise.
14470 * tree-streamer-out.c: Likewise.
14471 * tree-streamer.c: Likewise.
14472 * tree-switch-conversion.c: Likewise.
14473 * tree-tailcall.c: Likewise.
14474 * tree-vect-data-refs.c: Likewise.
14475 * tree-vect-generic.c: Likewise.
14476 * tree-vect-loop-manip.c: Likewise.
14477 * tree-vect-loop.c: Likewise.
14478 * tree-vect-patterns.c: Likewise.
14479 * tree-vect-slp.c: Likewise.
14480 * tree-vect-stmts.c: Likewise.
14481 * tree-vectorizer.c: Likewise.
14482 * tree-vrp.c: Likewise.
14483 * tree.c: Likewise.
14484 * tsan.c: Likewise.
14485 * ubsan.c: Likewise.
14486 * valtrack.c: Likewise.
14487 * value-prof.c: Likewise.
14488 * var-tracking.c: Likewise.
14489 * varasm.c: Likewise.
14490 * varpool.c: Likewise.
14491 * vmsdbgout.c: Likewise.
14492 * vtable-verify.c: Likewise.
14493 * web.c: Likewise.
14494 * wide-int-print.cc: Likewise.
14495 * wide-int-print.h: Likewise.
14496 * wide-int.cc: Likewise.
14497 * xcoffout.c: Likewise.
14498 * config/aarch64/aarch64-builtins.c: Likewise.
14499 * config/aarch64/aarch64.c: Likewise.
14500 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
14501 * config/alpha/alpha.c: Likewise.
14502 * config/arc/arc.c: Likewise.
14503 * config/arm/aarch-common.c: Likewise.
14504 * config/arm/arm-builtins.c: Likewise.
14505 * config/arm/arm-c.c: Likewise.
14506 * config/arm/arm.c: Likewise.
14507 * config/avr/avr-c.c: Likewise.
14508 * config/avr/avr-log.c: Likewise.
14509 * config/avr/avr.c: Likewise.
14510 * config/bfin/bfin.c: Likewise.
14511 * config/c6x/c6x.c: Likewise.
14512 * config/cr16/cr16.c: Likewise.
14513 * config/cris/cris.c: Likewise.
14514 * config/darwin-c.c: Likewise.
14515 * config/darwin.c: Likewise.
14516 * config/default-c.c: Likewise.
14517 * config/epiphany/epiphany.c: Likewise.
14518 * config/epiphany/mode-switch-use.c: Likewise.
14519 * config/epiphany/resolve-sw-modes.c: Likewise.
14520 * config/fr30/fr30.c: Likewise.
14521 * config/frv/frv.c: Likewise.
14522 * config/ft32/ft32.c: Likewise.
14523 * config/glibc-c.c: Likewise.
14524 * config/h8300/h8300.c: Likewise.
14525 * config/i386/i386-c.c: Likewise.
14526 * config/i386/i386.c: Likewise.
14527 * config/i386/msformat-c.c: Likewise.
14528 * config/i386/winnt-cxx.c: Likewise.
14529 * config/i386/winnt-stubs.c: Likewise.
14530 * config/i386/winnt.c: Likewise.
14531 * config/ia64/ia64-c.c: Likewise.
14532 * config/ia64/ia64.c: Likewise.
14533 * config/iq2000/iq2000.c: Likewise.
14534 * config/lm32/lm32.c: Likewise.
14535 * config/m32c/m32c-pragma.c: Likewise.
14536 * config/m32c/m32c.c: Likewise.
14537 * config/m32r/m32r.c: Likewise.
14538 * config/m68k/m68k.c: Likewise.
14539 * config/mcore/mcore.c: Likewise.
14540 * config/mep/mep-pragma.c: Likewise.
14541 * config/mep/mep.c: Likewise.
14542 * config/microblaze/microblaze-c.c: Likewise.
14543 * config/microblaze/microblaze.c: Likewise.
14544 * config/mips/mips.c: Likewise.
14545 * config/mmix/mmix.c: Likewise.
14546 * config/mn10300/mn10300.c: Likewise.
14547 * config/moxie/moxie.c: Likewise.
14548 * config/msp430/msp430-c.c: Likewise.
14549 * config/msp430/msp430.c: Likewise.
14550 * config/nds32/nds32-cost.c: Likewise.
14551 * config/nds32/nds32-fp-as-gp.c: Likewise.
14552 * config/nds32/nds32-intrinsic.c: Likewise.
14553 * config/nds32/nds32-isr.c: Likewise.
14554 * config/nds32/nds32-md-auxiliary.c: Likewise.
14555 * config/nds32/nds32-memory-manipulation.c: Likewise.
14556 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14557 * config/nds32/nds32-predicates.c: Likewise.
14558 * config/nds32/nds32.c: Likewise.
14559 * config/nios2/nios2.c: Likewise.
14560 * config/nvptx/nvptx.c: Likewise.
14561 * config/pa/pa.c: Likewise.
14562 * config/pdp11/pdp11.c: Likewise.
14563 * config/rl78/rl78-c.c: Likewise.
14564 * config/rl78/rl78.c: Likewise.
14565 * config/rs6000/rs6000-c.c: Likewise.
14566 * config/rs6000/rs6000.c: Likewise.
14567 * config/rx/rx.c: Likewise.
14568 * config/s390/s390-c.c: Likewise.
14569 * config/s390/s390.c: Likewise.
14570 * config/sh/sh-c.c: Likewise.
14571 * config/sh/sh-mem.cc: Likewise.
14572 * config/sh/sh.c: Likewise.
14573 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
14574 * config/sh/sh_treg_combine.cc: Likewise.
14575 * config/sol2-c.c: Likewise.
14576 * config/sol2-cxx.c: Likewise.
14577 * config/sol2-stubs.c: Likewise.
14578 * config/sol2.c: Likewise.
14579 * config/sparc/sparc-c.c: Likewise.
14580 * config/sparc/sparc.c: Likewise.
14581 * config/spu/spu-c.c: Likewise.
14582 * config/spu/spu.c: Likewise.
14583 * config/stormy16/stormy16.c: Likewise.
14584 * config/tilegx/mul-tables.c: Likewise.
14585 * config/tilegx/tilegx-c.c: Likewise.
14586 * config/tilegx/tilegx.c: Likewise.
14587 * config/tilepro/mul-tables.c: Likewise.
14588 * config/tilepro/tilepro-c.c: Likewise.
14589 * config/tilepro/tilepro.c: Likewise.
14590 * config/v850/v850-c.c: Likewise.
14591 * config/v850/v850.c: Likewise.
14592 * config/vax/vax.c: Likewise.
14593 * config/visium/visium.c: Likewise.
14594 * config/vms/vms-c.c: Likewise.
14595 * config/vms/vms.c: Likewise.
14596 * config/vxworks.c: Likewise.
14597 * config/winnt-c.c: Likewise.
14598 * config/xtensa/xtensa.c: Likewise.
14599 * common/config/bfin/bfin-common.c: Likewise.
14600
14601 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
14602
14603 * tree.h (tree_code_for_canonical_type_merging): New function.
14604 * tree.c (gimple_canonical_types_compatible_p): Use
14605 tree_code_for_canonical_type_merging..
14606
14607 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14608
14609 PR c++/66192
14610 PR target/66200
14611 * doc/tm.texi: Regenerate.
14612 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
14613 * target.def (TARGET_RELAXED_ORDERING): Likewise.
14614 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
14615 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
14616 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
14617 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
14618 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
14619 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
14620 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
14621
14622 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14623
14624 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
14625 register fma steering pass.
14626 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
14627 AARCH64_TUNE_FMA_STEERING.
14628
14629 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
14630
14631 * tree.c (verify_type_variant): Verify that type and variant is
14632 compatible.
14633 (gimple_canonical_types_compatible_p): Look for main variants.
14634
14635 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
14636
14637 * config.gcc (powerpc*-*-*): Add support for a new configure
14638 option --with-advance-toolchain=<xxx> which overrides using the
14639 default header files, libraries and dynamic linker.
14640
14641 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
14642 specs to support the configure --with-advance-toolchain=<xxx>
14643 option.
14644 (INCLUDE_EXTRA_SPEC): Likewise.
14645 (LINK_OS_EXTRA_SPEC32): Likewise.
14646 (LINK_OK_EXTRA_SPEC64): Likewise.
14647 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
14648 (DYNAMIC_LINKER_PREFIX): Likewise.
14649 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
14650 toolchain support.
14651 (GLIBC_DYNAMIC_LINKER32): Likewise.
14652 (GLIBC_DYNAMIC_LINKER64): Likewise.
14653 (LINK_OS_LINUX_SPEC32): Likewise.
14654 (LINK_OS_LINUX_SPEC64): Likewise.
14655
14656 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
14657 configuration option.
14658
14659 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
14660
14661 PR target/66275
14662 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
14663 to determine current function ABI.
14664 (ix86_function_value_regno_p): Ditto.
14665
14666 2015-06-03 Martin Liska <mliska@suse.cz>
14667
14668 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
14669 * bitmap.h (struct bitmap_usage): Likewise.
14670 * ggc-common.c (struct ggc_usage): Likewise.
14671 * mem-stats.h (struct mem_location): Likewise.
14672 (struct mem_usage): Likewise.
14673 * vec.c (struct vec_usage): Likewise.
14674
14675 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
14676
14677 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
14678 -Bsymbolic.
14679
14680 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
14681
14682 * doc/plugins.texi (enum plugin_event): New event.
14683 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
14684 and PLUGIN_FINISH_FUNCTION.
14685 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
14686 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
14687
14688 2015-06-03 Richard Biener <rguenther@suse.de>
14689
14690 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
14691 compute GROUP_GAP for the first element.
14692 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
14693 on in-group gaps.
14694
14695 2015-06-03 Nick Clifton <nickc@redhat.com>
14696
14697 * config/rl78/rl78-real.md: Add peepholes to avoid a register
14698 copy when calling a function.
14699 * config/rl78/rl78.c (need_to_save): Do not push the frame
14700 pointer in an interrupt handler prologue if it is never used.
14701
14702 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14703
14704 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
14705
14706 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
14707
14708 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
14709 reference when cloning alias node.
14710
14711 2015-06-03 Martin Liska <mliska@suse.cz>
14712
14713 * alloc-pool.h (struct pool_usage): Correct space padding.
14714 * ggc-page.c (ggc_print_statistics): Align columns in a report.
14715 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
14716 * tree.c (dump_tree_statistics): Align columns in a report.
14717
14718 2015-06-03 Martin Liska <mliska@suse.cz>
14719
14720 * alloc-pool.c (allocate_pool_descriptor): Remove.
14721 (struct pool_output_info): Likewise.
14722 (print_alloc_pool_statistics): Likewise.
14723 (dump_alloc_pool_statistics): Likewise.
14724 * alloc-pool.h (struct pool_usage): New struct.
14725 (pool_allocator::initialize): Change usage of memory statistics
14726 to a new interface.
14727 (pool_allocator::release): Likewise.
14728 (pool_allocator::allocate): Likewise.
14729 (pool_allocator::remove): Likewise.
14730 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
14731 for a pool allocator.
14732 * mem-stats.h (struct mem_location): Add new ctor.
14733 (struct mem_usage): Add counter for number of
14734 instances.
14735 (mem_alloc_description::register_descriptor): New overload of
14736 * mem-stats.h (mem_location::to_string): New function.
14737 * bitmap.h (struct bitmap_usage): Use this new function.
14738 * ggc-common.c (struct ggc_usage): Likewise.
14739 the function.
14740
14741 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
14742
14743 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
14744 of GCC_INSN_FLAGS_H block.
14745
14746 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
14747
14748 * explow.c (plus_constant): Update check after force_const_mem call
14749 to see if the value returned is not a NULL_RTX.
14750
14751 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
14752
14753 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
14754 remove instumentation thunks calling reachable functions.
14755 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
14756 * lto/lto-partition.c (privatize_symbol_name_1): New.
14757 (privatize_symbol_name): Privatize both decl and orig_decl
14758 names for instrumented functions.
14759 * cgraph.c (cgraph_node::verify_node): Add transparent
14760 alias chain check for instrumented node.
14761
14762 2015-06-03 Marek Polacek <polacek@redhat.com>
14763
14764 PR c/64223
14765 PR c/29358
14766 * tree.c (attribute_value_equal): Handle attribute format.
14767 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
14768
14769 2015-06-03 Richard Biener <rguenther@suse.de>
14770
14771 PR tree-optimization/63916
14772 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
14773 Forward-propagate non-invariant addresses by splicing their
14774 reference ops if the result isn't going to be used by PRE.
14775 (vn_reference_lookup_3): Remove pointless assert.
14776
14777 2015-06-03 Richard Biener <rguenther@suse.de>
14778
14779 PR tree-optimization/66375
14780 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
14781 add to the evolution before following SSA edges.
14782
14783 2015-06-03 Bin Cheng <bin.cheng@arm.com>
14784
14785 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
14786 (dump_use, dump_cand, find_induction_variables): Pass new argument
14787 to dump_iv.
14788 (record_use): Preserve the ssa name information in IV.
14789
14790 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
14791
14792 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
14793 NO_MODE_TEST.
14794 (add_mode_tests): Don't add mode tests if the predicate only
14795 accepts scalar constant integers. Otherwise, allow the mode
14796 of "op" to be VOIDmode if the predicate does accept such integers.
14797
14798 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
14799
14800 PR target/66258
14801 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
14802 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
14803 (aarch64_secondary_reload): Likewise
14804 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
14805 to !TARGET_FLOAT.
14806 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
14807 Likewise.
14808
14809 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
14810 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14811
14812 PR target/65768
14813 * cprop.c (try_replace_reg): Check cost of constants before propagating.
14814
14815 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14816
14817 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
14818 provide access to the IBM extended double floating point mode if
14819 long double is IEEE 128-bit floating point.
14820 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
14821 point if long double is the IBM extended double type.
14822
14823 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
14824 enable adding IEEE 128-bit floating point support.
14825 (-mfloat128-software): Likewise.
14826 (-mfloat128-sw): Likewise.
14827
14828 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
14829 128-bit floating point types to occupy any register if
14830 -mlong-double-64. Do not allow use of IFmode/KFmode unless
14831 -mfloat128-software is enabled.
14832 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
14833 support.
14834 (rs6000_option_override_internal): Add -mfloat128-* support.
14835 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
14836
14837 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
14838 and float128 type nodes.
14839 (ieee128_float_type_node): Likewise.
14840 (ibm128_float_type_node): Likewise.
14841
14842 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
14843
14844 PR target/66136
14845 * config/aarch64/geniterators.sh: Rewrite in awk.
14846
14847 2015-06-02 Martin Liska <mliska@suse.cz>
14848
14849 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
14850 values to avoid -Wmaybe-uninitialized errors.
14851
14852 2015-06-02 Richard Biener <rguenther@suse.de>
14853
14854 PR debug/65549
14855 * dwarf2out.c (lookup_context_die): New function.
14856 (resolve_addr): Avoid forcing a full DIE for the
14857 target of a DW_TAG_GNU_call_site during late compilation.
14858 Instead create a stub DIE without a type if we have a
14859 context DIE present.
14860
14861 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
14862
14863 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
14864
14865 2015-06-02 Bin Cheng <bin.cheng@arm.com>
14866
14867 PR tree-optimization/48052
14868 * cfgloop.h (struct control_iv): New.
14869 (struct loop): New field control_ivs.
14870 * tree-ssa-loop-niter.c : Include "stor-layout.h".
14871 (number_of_iterations_lt): Set no_overflow information.
14872 (number_of_iterations_exit): Init control iv in niter struct.
14873 (record_control_iv): New.
14874 (estimate_numbers_of_iterations_loop): Call record_control_iv.
14875 (loop_exits_before_overflow): New. Interface factored out of
14876 scev_probably_wraps_p.
14877 (scev_probably_wraps_p): Factor loop niter related code into
14878 loop_exits_before_overflow.
14879 (free_numbers_of_iterations_estimates_loop): Free control ivs.
14880 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
14881
14882 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
14883
14884 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
14885 the target doesn't belong to the current function.
14886
14887 2015-06-02 Marek Polacek <polacek@redhat.com>
14888
14889 PR middle-end/66345
14890 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
14891 get_maxval_strlen does not produce an INTEGER_CST.
14892
14893 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
14894
14895 * config/arc/constraints.md: Use lower-case names in match_code.
14896 * config/mmix/constraints.md: Likewise.
14897
14898 2015-06-02 Richard Biener <rguenther@suse.de>
14899
14900 PR tree-optimization/65961
14901 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
14902 check and clarify dump message.
14903 (vect_build_slp_tree): If all children are built up from scalars
14904 build up the parent from scalars instead.
14905 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
14906
14907 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
14908
14909 PR other/65366
14910 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
14911 instead of print ... .
14912
14913 2015-06-02 Alan Modra <amodra@gmail.com>
14914
14915 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
14916 2014-08-11 change.
14917
14918 2015-06-02 Bin Cheng <bin.cheng@arm.com>
14919
14920 PR tree-optimization/52563
14921 PR tree-optimization/62173
14922 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
14923 (alloc_iv, set_iv): New parameter.
14924 (determine_biv_step): Delete.
14925 (find_bivs): Inline original determine_biv_step. Pass new
14926 argument to set_iv.
14927 (idx_find_step): Use no_overflow information for conversion.
14928 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
14929 resolve_mixers handle folded_casts.
14930 (instantiate_scev_name): Change bool parameter to bool pointer.
14931 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
14932 (instantiate_array_ref, instantiate_scev_not): Ditto.
14933 (instantiate_scev_3, instantiate_scev_2): Ditto.
14934 (instantiate_scev_1, instantiate_scev_r): Ditto.
14935 (instantiate_scev_convert, ): Change parameter. Pass argument
14936 to chrec_convert_aggressive.
14937 (instantiate_scev): Change argument.
14938 (resolve_mixers): New parameter and set it.
14939 (scev_const_prop): New argument.
14940 * tree-scalar-evolution.h (resolve_mixers): New parameter.
14941 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
14942 of chrec_conert_1.
14943 (chrec_convert): New parameter. Move definition below.
14944 (chrec_convert_aggressive): New parameter and set it. Call
14945 convert_affine_scev.
14946 * tree-chrec.h (chrec_convert): New parameter.
14947 (chrec_convert_aggressive): Ditto.
14948
14949 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
14950
14951 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
14952 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
14953 the LHS of a no-return call if its type has variable size.
14954 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
14955 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
14956
14957 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
14958
14959 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
14960 * config.in: Regenerate.
14961
14962 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
14963
14964 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
14965 consecutive accesses within outer-loop with force_vectorize
14966 for references with zero step in inner-loop.
14967
14968 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
14969
14970 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
14971 rather than from gcc/build directory.
14972
14973 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
14974
14975 PR target/65697
14976 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
14977 for __sync memory models, emit initial loads and final barriers as
14978 appropriate.
14979
14980 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
14981
14982 PR target/65697
14983 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
14984 (aarch64_split_atomic_op): Check for __sync memory models, emit
14985 appropriate initial loads and final barriers.
14986
14987 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
14988
14989 * Makefile.in: Fix gcov dependencies that should
14990 not point to a build folder.
14991
14992 2015-06-01 Richard Biener <rguenther@suse.de>
14993
14994 Revert
14995 2015-05-29 Richard Biener <rguenther@suse.de>
14996
14997 PR tree-optimization/66314
14998 * tree-ssa-threadupdate.c (create_block_for_threading): Add
14999 parameter that says which loop the new block belongs to.
15000 (ssa_create_duplicates): Blocks duplicated for the threaded
15001 path belong to the loop of the thread destination.
15002
15003 2015-06-01 Martin Liska <mliska@suse.cz>
15004
15005 * sched-deps.c: Include pool-alloc.h before
15006 cselib.h header file is included.
15007
15008 2015-06-01 Richard Biener <rguenther@suse.de>
15009
15010 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
15011 functions.
15012
15013 2015-06-01 Martin Liska <mliska@suse.cz>
15014
15015 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
15016 a function local variable.
15017
15018 2015-06-01 Martin Liska <mliska@suse.cz>
15019
15020 * alloc-pool.c (create_alloc_pool): Remove.
15021 (empty_alloc_pool): Likewise.
15022 (free_alloc_pool): Likewise.
15023 (free_alloc_pool_if_empty): Likewise.
15024 (pool_alloc): Likewise.
15025 (pool_free): Likewise.
15026 * alloc-pool.h: Remove old declarations.
15027
15028 2015-06-01 Martin Liska <mliska@suse.cz>
15029
15030 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
15031 (ira_create_object): Likewise.
15032 (ira_create_allocno): Likewise.
15033 (ira_create_live_range): Likewise.
15034 (copy_live_range): Likewise.
15035 (ira_finish_live_range): Likewise.
15036 (ira_free_allocno_costs): Likewise.
15037 (finish_allocno): Likewise.
15038 (finish_allocnos): Likewise.
15039 (initiate_prefs): Likewise.
15040 (ira_create_pref): Likewise.
15041 (finish_pref): Likewise.
15042 (finish_prefs): Likewise.
15043 (initiate_copies): Likewise.
15044 (ira_create_copy): Likewise.
15045 (finish_copy): Likewise.
15046 (finish_copies): Likewise.
15047 (finish_prefs): Likewise.
15048
15049 2015-06-01 Martin Liska <mliska@suse.cz>
15050
15051 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
15052 (allocate_and_init_ipcp_value): Likewise.
15053 (ipcp_lattice::add_value): Likewise.
15054 (merge_agg_lats_step): Likewise.
15055 (ipcp_driver): Likewise.
15056 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
15057 (ipa_free_all_structures_after_iinln): Likewise.
15058 * ipa-prop.h: Likewise.
15059
15060 2015-06-01 Martin Liska <mliska@suse.cz>
15061
15062 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
15063 pool allocator.
15064 (set_hint_predicate): Likewise.
15065 (inline_summary_alloc): Likewise.
15066 (reset_inline_edge_summary): Likewise.
15067 (reset_inline_summary): Likewise.
15068 (set_cond_stmt_execution_predicate): Likewise.
15069 (set_switch_stmt_execution_predicate): Likewise.
15070 (compute_bb_predicates): Likewise.
15071 (estimate_function_body_sizes): Likewise.
15072 (inline_free_summary): Likewise.
15073
15074 2015-06-01 Martin Liska <mliska@suse.cz>
15075
15076 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
15077 (ipa_edge_duplication_hook): Likewise.
15078 (ipa_free_all_structures_after_ipa_cp): Likewise.
15079 (ipa_free_all_structures_after_iinln): Likewise.
15080
15081 2015-06-01 Martin Liska <mliska@suse.cz>
15082
15083 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
15084 (ipa_profile_generate_summary): Likewise.
15085 (ipa_profile_read_summary): Likewise.
15086 (ipa_profile): Likewise.
15087
15088 2015-06-01 Martin Liska <mliska@suse.cz>
15089
15090 * tree-ssa-structalias.c (new_var_info): Use new type-based
15091 pool allocator.
15092 (new_constraint): Likewise.
15093 (init_alias_vars): Likewise.
15094 (delete_points_to_sets): Likewise.
15095
15096 2015-06-01 Martin Liska <mliska@suse.cz>
15097
15098 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
15099 (free_strinfo): Likewise.
15100 (pass_strlen::execute): Likewise.
15101
15102 2015-06-01 Martin Liska <mliska@suse.cz>
15103
15104 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
15105 pool allocator.
15106 (vn_reference_insert_pieces): Likewise.
15107 (vn_phi_insert): Likewise.
15108 (visit_reference_op_call): Likewise.
15109 (copy_phi): Likewise.
15110 (copy_reference): Likewise.
15111 (process_scc): Likewise.
15112 (allocate_vn_table): Likewise.
15113 (free_vn_table): Likewise.
15114
15115 2015-06-01 Martin Liska <mliska@suse.cz>
15116
15117 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
15118 pool allocator.
15119 (add_repeat_to_ops_vec): Likewise.
15120 (get_ops): Likewise.
15121 (maybe_optimize_range_tests): Likewise.
15122 (init_reassoc): Likewise.
15123 (fini_reassoc): Likewise.
15124
15125 2015-06-01 Martin Liska <mliska@suse.cz>
15126
15127 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
15128 pool allocator.
15129 (bitmap_set_new): Likewise.
15130 (get_or_alloc_expr_for_constant): Likewise.
15131 (get_or_alloc_expr_for): Likewise.
15132 (phi_translate_1): Likewise.
15133 (compute_avail): Likewise.
15134 (init_pre): Likewise.
15135 (fini_pre): Likewise.
15136
15137 2015-06-01 Martin Liska <mliska@suse.cz>
15138
15139 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
15140 (delete_dep_node): Likewise.
15141 (create_deps_list): Likewise.
15142 (free_deps_list): Likewise.
15143 (sched_deps_init): Likewise.
15144 (sched_deps_finish): Likewise.
15145
15146 2015-06-01 Martin Liska <mliska@suse.cz>
15147
15148 * regcprop.c (free_debug_insn_changes): Use new type-based
15149 pool allocator.
15150 (replace_oldest_value_reg): Likewise.
15151 (pass_cprop_hardreg::execute): Likewise.
15152
15153 2015-06-01 Martin Liska <mliska@suse.cz>
15154
15155 * ira-build.c (initiate_cost_vectors): Use new type-based
15156 pool allocator.
15157 (ira_allocate_cost_vector): Likewise.
15158 (ira_free_cost_vector): Likewise.
15159 (finish_cost_vectors): Likewise.
15160
15161 2015-06-01 Martin Liska <mliska@suse.cz>
15162
15163 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
15164 pool allocator.
15165 (free_sched_pools): Likewise.
15166 * sel-sched-ir.h (_list_alloc): Likewise.
15167 (_list_remove): Likewise.
15168
15169 2015-06-01 Martin Liska <mliska@suse.cz>
15170
15171 * stmt.c (add_case_node): Use new type-based pool allocator.
15172 (expand_case): Likewise.
15173 (expand_sjlj_dispatch_table): Likewise.
15174
15175 2015-06-01 Martin Liska <mliska@suse.cz>
15176
15177 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
15178 (free_bb): Likewise.
15179 (pass_cse_reciprocals::execute): Likewise.
15180
15181 2015-06-01 Martin Liska <mliska@suse.cz>
15182
15183 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
15184 (sra_deinitialize) Likewise.
15185 (create_access_1) Likewise.
15186 (build_accesses_from_assign) Likewise.
15187 (create_artificial_child_access) Likewise.
15188
15189 2015-06-01 Martin Liska <mliska@suse.cz>
15190
15191 * dse.c (get_group_info):Use new type-based pool allocator.
15192 (dse_step0) Likewise.
15193 (free_store_info) Likewise.
15194 (delete_dead_store_insn) Likewise.
15195 (free_read_records) Likewise.
15196 (record_store) Likewise.
15197 (replace_read) Likewise.
15198 (check_mem_read_rtx) Likewise.
15199 (scan_insn) Likewise.
15200 (dse_step1) Likewise.
15201 (dse_step7) Likewise.
15202
15203 2015-06-01 Martin Liska <mliska@suse.cz>
15204
15205 * df-scan.c (struct df_scan_problem_data):Use new type-based
15206 pool allocator.
15207 (df_scan_free_internal) Likewise.
15208 (df_scan_alloc) Likewise.
15209 (df_grow_reg_info) Likewise.
15210 (df_free_ref) Likewise.
15211 (df_insn_create_insn_record) Likewise.
15212 (df_mw_hardreg_chain_delete) Likewise.
15213 (df_insn_info_delete) Likewise.
15214 (df_free_collection_rec) Likewise.
15215 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
15216 (df_sort_and_compress_mws) Likewise.
15217 (df_ref_create_structure) Likewise.
15218 (df_ref_record) Likewise.
15219
15220 2015-06-01 Martin Liska <mliska@suse.cz>
15221
15222 * df-problems.c (df_chain_create):Use new type-based pool allocator.
15223 (df_chain_unlink_1) Likewise.
15224 (df_chain_unlink) Likewise.
15225 (df_chain_remove_problem) Likewise.
15226 (df_chain_alloc) Likewise.
15227 (df_chain_free) Likewise.
15228 * df.h (struct dataflow) Likewise.
15229
15230 2015-06-01 Martin Liska <mliska@suse.cz>
15231
15232 * cselib.c (new_elt_list):Use new type-based pool allocator.
15233 (new_elt_loc_list) Likewise.
15234 (unchain_one_elt_list) Likewise.
15235 (unchain_one_elt_loc_list) Likewise.
15236 (unchain_one_value) Likewise.
15237 (new_cselib_val) Likewise.
15238 (cselib_init) Likewise.
15239 (cselib_finish) Likewise.
15240
15241 2015-06-01 Martin Liska <mliska@suse.cz>
15242
15243 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
15244 (sh_reorg) Likewise.
15245
15246 2015-06-01 Martin Liska <mliska@suse.cz>
15247
15248 * cfg.c (initialize_original_copy_tables):Use new type-based
15249 pool allocator.
15250 (free_original_copy_tables) Likewise.
15251 (copy_original_table_clear) Likewise.
15252 (copy_original_table_set) Likewise.
15253
15254 2015-06-01 Martin Liska <mliska@suse.cz>
15255
15256 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
15257 pool allocator.
15258 (asan_mem_ref_new) Likewise.
15259 (free_mem_ref_resources) Likewise.
15260
15261 2015-06-01 Martin Liska <mliska@suse.cz>
15262
15263 * var-tracking.c (variable_htab_free):Use new type-based
15264 pool allocator.
15265 (attrs_list_clear) Likewise.
15266 (attrs_list_insert) Likewise.
15267 (attrs_list_copy) Likewise.
15268 (shared_hash_unshare) Likewise.
15269 (shared_hash_destroy) Likewise.
15270 (unshare_variable) Likewise.
15271 (var_reg_delete_and_set) Likewise.
15272 (var_reg_delete) Likewise.
15273 (var_regno_delete) Likewise.
15274 (drop_overlapping_mem_locs) Likewise.
15275 (variable_union) Likewise.
15276 (insert_into_intersection) Likewise.
15277 (canonicalize_values_star) Likewise.
15278 (variable_merge_over_cur) Likewise.
15279 (dataflow_set_merge) Likewise.
15280 (remove_duplicate_values) Likewise.
15281 (variable_post_merge_new_vals) Likewise.
15282 (dataflow_set_preserve_mem_locs) Likewise.
15283 (dataflow_set_remove_mem_locs) Likewise.
15284 (variable_from_dropped) Likewise.
15285 (variable_was_changed) Likewise.
15286 (set_slot_part) Likewise.
15287 (clobber_slot_part) Likewise.
15288 (delete_slot_part) Likewise.
15289 (loc_exp_insert_dep) Likewise.
15290 (notify_dependents_of_changed_value) Likewise.
15291 (emit_notes_for_differences_1) Likewise.
15292 (vt_emit_notes) Likewise.
15293 (vt_initialize) Likewise.
15294 (vt_finalize) Likewise.
15295
15296 2015-06-01 Martin Liska <mliska@suse.cz>
15297
15298 * ira-color.c (init_update_cost_records):Use new type-based
15299 pool allocator.
15300 (get_update_cost_record) Likewise.
15301 (free_update_cost_record_list) Likewise.
15302 (finish_update_cost_records) Likewise.
15303 (initiate_cost_update) Likewise.
15304
15305 2015-06-01 Martin Liska <mliska@suse.cz>
15306
15307 * lra.c (init_insn_regs): Use new type-based pool allocator.
15308 (new_insn_reg) Likewise.
15309 (free_insn_reg) Likewise.
15310 (free_insn_regs) Likewise.
15311 (finish_insn_regs) Likewise.
15312 (init_insn_recog_data) Likewise.
15313 (init_reg_info) Likewise.
15314 (finish_reg_info) Likewise.
15315 (lra_free_copies) Likewise.
15316 (lra_create_copy) Likewise.
15317 (invalidate_insn_data_regno_info) Likewise.
15318
15319 2015-06-01 Martin Liska <mliska@suse.cz>
15320
15321 * lra-lives.c (free_live_range): Use new type-based pool allocator.
15322 (free_live_range_list) Likewise.
15323 (create_live_range) Likewise.
15324 (copy_live_range) Likewise.
15325 (lra_merge_live_ranges) Likewise.
15326 (remove_some_program_points_and_update_live_ranges) Likewise.
15327 (lra_live_ranges_init) Likewise.
15328 (lra_live_ranges_finish) Likewise.
15329
15330 2015-06-01 Martin Liska <mliska@suse.cz>
15331
15332 * et-forest.c (et_new_occ): Use new type-based pool allocator.
15333 (et_new_tree): Likewise.
15334 (et_free_tree): Likewise.
15335 (et_free_tree_force): Likewise.
15336 (et_free_pools): Likewise.
15337 (et_split): Likewise.
15338
15339 2015-06-01 Martin Liska <mliska@suse.cz>
15340
15341 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
15342 to header file.
15343 * alloc-pool.h (pool_allocator::pool_allocator): New function.
15344 (pool_allocator::release): Likewise.
15345 (inline pool_allocator::release_if_empty): Likewise.
15346 (inline pool_allocator::~pool_allocator): Likewise.
15347 (pool_allocator::allocate): Likewise.
15348 (pool_allocator::remove): Likewise.
15349
15350 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
15351
15352 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
15353 in comment.
15354
15355 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
15356
15357 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
15358 to fusible_ops.
15359 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
15360 (arm_macro_fusion_p): Likewise.
15361 (arm_macro_fusion_pair_p): Likewise.
15362
15363 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
15364
15365 * config/aarch64/aarch64-protos.h (tune_params): Rename
15366 fuseable_ops to fusible_ops.
15367 * config/aarch64/aarch64.c (generic_tunings): Rename
15368 fuseable_ops to fusible_ops.
15369 (cortexa53_tunings): Likewise.
15370 (cortexa57_tunings): Likewise.
15371 (thunderx_tunings): Likewise.
15372 (xgene1_tunings): Likewise.
15373 (aarch64_macro_fusion_p): Likewise.
15374 (aarch64_macro_fusion_pair_p): Likewise.
15375
15376 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
15377
15378 * config/s390/driver-native.c: New file.
15379 * config/s390/x-native: New file.
15380 * config.host: Add new files for s390.
15381 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
15382 and -march=native
15383 * config.gcc: Likewise.
15384 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
15385 * config/s390/s390-opts.h (enum processor_type): Ditto.
15386 * config/s390/s390.c (s390_option_override): Catch unhandled
15387 PROCESSOR_NATIVE
15388
15389 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
15390
15391 PR target/65527
15392 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
15393 redirection for instrumented calls.
15394 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
15395 (append_compiler_options): Append -fcheck-pointer-bounds.
15396 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
15397 (chkp_redirect_edge): New.
15398 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
15399 (chkp_redirect_edge): New.
15400
15401 2015-06-01 Richard Biener <rguenther@suse.de>
15402
15403 PR tree-optimization/66280
15404 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
15405 def-use walking.
15406
15407 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15408
15409 * config/aarch64/aarch64.md
15410 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
15411 logic_shift_imm.
15412
15413 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
15414
15415 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
15416 Remove obsolete kludge.
15417
15418 2015-06-01 Richard Biener <rguenther@suse.de>
15419
15420 * tree-ssa-reassoc.c (get_rank): Simplify.
15421
15422 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
15423
15424 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
15425 * configure: Regenerated.
15426
15427 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
15428
15429 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
15430 issue (add space between string literal and macro).
15431 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
15432
15433 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
15434
15435 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
15436 implict or explicit -fPIE or -fpie.
15437
15438 2015-05-30 Mike Frysinger <vapier@gentoo.org>
15439
15440 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
15441
15442 2015-05-28 DJ Delorie <dj@redhat.com>
15443
15444 * expmed.c (extract_bit_field_1): Avoid clobbering a
15445 yet-to-be-used base/index register.
15446
15447 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
15448
15449 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
15450 (alias_stats): Add num_universal.
15451 (alias_set_subset_of): Special case pointers; be ready for NULL
15452 children.
15453 (alias_sets_conflict_p): Special case pointers; be ready for NULL
15454 children.
15455 (init_alias_set_entry): Break out from ...
15456 (record_alias_subset): ... here; propagate new fields;
15457 allocate children only when really needed.
15458 (get_alias_set): Do less generous pointer globbing.
15459 (dump_alias_stats_in_alias_c): Update statistics.
15460
15461 2015-05-30 Alan Modra <amodra@gmail.com>
15462
15463 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
15464 correct block for use of r12.
15465 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
15466
15467 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
15468
15469 PR target/66215
15470 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
15471 with -mhotpatch=.
15472
15473 2015-05-29 Jakub Jelinek <jakub@redhat.com>
15474
15475 PR tree-optimization/66142
15476 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
15477 virtual phis that feed themselves.
15478
15479 2015-05-29 Richard Biener <rguenther@suse.de>
15480
15481 PR tree-optimization/66314
15482 * tree-ssa-threadupdate.c (create_block_for_threading): Add
15483 parameter that says which loop the new block belongs to.
15484 (ssa_create_duplicates): Blocks duplicated for the threaded
15485 path belong to the loop of the thread destination.
15486
15487 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15488
15489 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
15490 to cleanup-saved-temps.
15491 * doc/sourcebuild.texi (Clean up generated test files): Expand
15492 introduction.
15493 (dg-keep-saved-temps): Document new proc.
15494 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
15495 cleanup-saved-temps): Remove.
15496
15497 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
15498
15499 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
15500 gcc_AC_CHECK_DECLS.
15501 * configure: Regenerate.
15502
15503 2015-05-28 Mike Frysinger <vapier@gentoo.org>
15504
15505 * config/nios2/linux.h (CPP_SPEC): Define.
15506
15507 2015-05-28 Mike Frysinger <vapier@gentoo.org>
15508
15509 * config/microblaze/linux.h (CPP_SPEC): Define.
15510
15511 2015-05-28 Mike Frysinger <vapier@gentoo.org>
15512
15513 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
15514 -pthread is specified.
15515
15516 2015-05-28 Richard Biener <rguenther@suse.de>
15517
15518 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
15519 (vect_fixup_scalar_cycles_with_patterns): Likewise.
15520 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
15521 after pattern recog.
15522 (vect_create_epilog_for_reduction): Properly handle reductions
15523 with patterns.
15524 (vectorizable_reduction): Likewise.
15525 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
15526 reduction chains.
15527 (vect_get_constant_vectors): Create the correct number of
15528 initial values for reductions.
15529 (vect_schedule_slp_instance): Handle reduction chains that are
15530 type changing properly.
15531 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
15532
15533 2015-05-28 Richard Biener <rguenther@suse.de>
15534
15535 PR tree-optimization/66142
15536 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
15537 values better in memcpy destination handling. Handle non-aliasing
15538 we discover here.
15539
15540 2015-05-28 Lawrence Velázquez <vq@larryv.me>
15541
15542 PR target/63810
15543 * config/darwin-c.c (version_components): New global enum.
15544 (parse_version, version_as_legacy_macro)
15545 (version_as_modern_macro, macosx_version_as_macro): New functions.
15546 (version_as_macro): Remove.
15547 (darwin_cpp_builtins): Use new function.
15548
15549 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
15550
15551 * builtins.c (expand_builtin_acc_on_device): Mark parameters
15552 with ATTRIBUTE_UNUSED.
15553
15554 2015-05-28 Julian Brown <julian@codesourcery.com>
15555
15556 PR libgomp/65742
15557
15558 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
15559 sequence for !ACCEL_COMPILER.
15560
15561 2015-05-28 Nick Clifton <nickc@redhat.com>
15562
15563 * config/rx/rx.c (push_regs): New function. Extracts code from...
15564 (rx_expand_prologue): ... here. Use push_regs to push even small
15565 spans of registers.
15566 (pop_regs): New function.
15567 (rx_expand_epilogue): Use pop_regs to pop even small spans of
15568 registers.
15569
15570 2015-05-28 Richard Biener <rguenther@suse.de>
15571
15572 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
15573 member.
15574 (SLP_INSTANCE_BODY_COST_VEC): Remove.
15575 (vect_update_slp_costs_according_to_vf): Likewise.
15576 (vect_slp_analyze_operations): Update prototype.
15577 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
15578 vect_update_slp_costs_according_to_vf, adjust.
15579 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
15580 (vect_analyze_slp_cost_1): Likewise.
15581 (vect_analyze_slp_cost): Likewise. Properly deal with
15582 widening reduction ops. Commit body costs.
15583 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
15584 cost for loops from here.
15585 (vect_slp_analyze_operations): But do it from here when
15586 the vectorization factor is known and stmts are analyzed.
15587 (vect_bb_vectorization_profitable_p): Simplify.
15588 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
15589 (vect_update_slp_costs_according_to_vf): Remove.
15590
15591 2015-05-27 Magnus Granberg <zorry@gentoo.org>
15592 H.J. Lu <hongjiu.lu@intel.com>
15593
15594 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
15595 (BUILD_CFLAGS): Likewise.
15596 (BUILD_CXXFLAGS): Likewise.
15597 (LINKER): Add @NO_PIE_FLAG@.
15598 (BUILD_LDFLAGS): Likewise.
15599 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
15600 --enable-default-pie.
15601 * common.opt (fPIE): Initialize to -1.
15602 (fpie): Likewise.
15603 (no-pie): New option.
15604 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
15605 * configure.ac: Add --enable-default-pie.
15606 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
15607 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
15608 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
15609 * gcc.c (NO_PIE_SPEC): New.
15610 (PIE_SPEC): Likewise.
15611 (NO_FPIE1_SPEC): Likewise.
15612 (FPIE1_SPEC): Likewise.
15613 (NO_FPIE2_SPEC): Likewise.
15614 (FPIE2_SPEC): Likewise.
15615 (NO_FPIE2_SPEC): Likewise.
15616 (FPIE_SPEC): Likewise.
15617 (NO_FPIE_SPEC): Likewise.
15618 (NO_FPIC1_SPEC): Likewise.
15619 (FPIC1_SPEC): Likewise.
15620 (NO_FPIC2_SPEC): Likewise.
15621 (FPIC2_SPEC): Likewise.
15622 (NO_FPIC2_SPEC): Likewise.
15623 (FPIC_SPEC): Likewise.
15624 (NO_FPIC_SPEC): Likewise.
15625 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
15626 (FPIE1_OR_FPIC1_SPEC): Likewise.
15627 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
15628 (FPIE2_OR_FPIC2_SPEC): Likewise.
15629 (NO_FPIE_AND_FPIC_SPEC): Likewise.
15630 (FPIE_OR_FPIC_SPEC): Likewise.
15631 (LD_PIE_SPEC): Likewise.
15632 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
15633 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
15634 * config/darwin.h (PIE_SPEC): Renamed to ...
15635 (DARWIN_PIE_SPEC): This.
15636 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
15637 * config/darwin9.h (PIE_SPEC): Renamed to ...
15638 (DARWIN_PIE_SPEC): This.
15639 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
15640 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
15641 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
15642 FPIE2_OR_FPIC2_SPEC.
15643 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
15644 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
15645 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
15646 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
15647 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
15648 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
15649 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
15650 * config/m32r/m32r.h (ASM_SPEC): Likewise.
15651 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
15652 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
15653 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
15654 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
15655 * config/sparc/linux.h (ASM_SPEC): Likewise.
15656 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15657 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
15658 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
15659 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15660 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15661 * config/sparc/sparc.h (ASM_SPEC): Likewise.
15662 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
15663 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
15664 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
15665 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
15666 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
15667 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
15668 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
15669 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
15670 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
15671 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
15672 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
15673 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
15674 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15675 * config/vax/linux.h (ASM_SPEC): Likewise.
15676 * doc/install.texi: Document --enable-default-pie.
15677 * doc/invoke.texi: Document -no-pie.
15678 * config.in: Regenerated.
15679 * configure: Likewise.
15680
15681 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
15682
15683 PR rtl-optimization/66168
15684 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
15685 can_move_invariant_reg.
15686
15687 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
15688
15689 PR target/66148
15690 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
15691 REG_EQUAL note when doing insert.
15692
15693 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
15694 instead of "%d" for 'o' operand.
15695
15696 2015-05-27 Nathan Sidwell <nathan@acm.org>
15697
15698 PR c++/66270
15699 * tree.c (build_pointer_type_for_mode): Canonical type does not
15700 inherit can_alias_all.
15701 (build_reference_type_for_mode): Likewise.
15702
15703 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
15704
15705 * expr.h (array_at_struct_end_p): Move to...
15706 (array_ref_element_size): Likewise.
15707 (component_ref_field_offset): Likewise.
15708 * tree.h (array_ref_element_size): ...here.
15709 (array_at_struct_end_p): Likewise.
15710 (component_ref_field_offset): Likewise.
15711 * expr.c (array_ref_element_size): Move to...
15712 (array_ref_low_bound): Likewise.
15713 (array_at_struct_end_p): Likewise.
15714 (array_ref_up_bound): Likewise.
15715 (component_ref_field_offset): Likewise.
15716 * tree.c (array_ref_element_size): ...here.
15717 (array_ref_low_bound): Likewise.
15718 (array_ref_up_bound): Likewise.
15719 (array_at_struct_end_p): Likewise.
15720 (component_ref_field_offset): Likewise.
15721
15722 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
15723 Szabolcs Nagy <szabolcs.nagy@arm.com>
15724
15725 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
15726
15727 2015-05-27 Jason Merrill <jason@redhat.com>
15728
15729 PR bootstrap/66304
15730 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
15731 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
15732 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
15733
15734 2015-05-22 Aditya Kumar <hiraditya@msn.com>
15735
15736 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
15737 is true.
15738
15739 * statistics.c (statistics_fini_pass): Print pass name.
15740
15741 2015-05-27 Richard Biener <rguenther@suse.de>
15742
15743 PR tree-optimization/66272
15744 Revert parts of
15745 2014-08-15 Richard Biener <rguenther@suse.de>
15746
15747 PR tree-optimization/62031
15748 * tree-data-ref.c (dr_analyze_indices): Do not set
15749 DR_UNCONSTRAINED_BASE.
15750 (dr_may_alias_p): All indirect accesses have to go the
15751 formerly DR_UNCONSTRAINED_BASE path.
15752 * tree-data-ref.h (struct indices): Remove
15753 unconstrained_base member.
15754 (DR_UNCONSTRAINED_BASE): Remove.
15755
15756 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
15757
15758 * dwarf2out.c: Remove block_map.
15759 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
15760 (gen_lexical_block_die): Same.
15761 (dwarf2out_function_decl): Remove block_map use.
15762 (dwarf2out_c_finalize): Same.
15763 * tree-core.h (struct tree_block): Add die field.
15764 * tree.h (BLOCK_DIE): New.
15765
15766 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15767
15768 PR target/65358
15769 * expr.c (memory_load_overlap): New function.
15770 (emit_push_insn): When pushing partial args to the stack would
15771 clobber the register part load the overlapping part into a pseudo
15772 and put it into the hard reg after pushing. Change return type
15773 to bool. Add bool argument.
15774 * expr.h (emit_push_insn): Change return type to bool.
15775 Add bool argument.
15776 * calls.c (expand_call): Cancel sibcall optimization when encountering
15777 partial argument on targets with ARGS_GROW_DOWNWARD and
15778 !STACK_GROWS_DOWNWARD.
15779 (emit_library_call_value_1): Update callsite of emit_push_insn.
15780 (store_one_arg): Likewise.
15781
15782 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
15783
15784 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
15785
15786 2015-05-27 Martin Liska <mliska@suse.cz>
15787
15788 * Makefile.in: Add additional dependencies related to memory report
15789 enhancement.
15790 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
15791 * bitmap.c (struct bitmap_descriptor_d): Remove.
15792 (struct loc): Likewise.
15793 (struct bitmap_desc_hasher): Likewise.
15794 (bitmap_desc_hasher::hash): Likewise.
15795 (bitmap_desc_hasher::equal): Likewise.
15796 (get_bitmap_descriptor): Likewise.
15797 (bitmap_register): User new memory descriptor API.
15798 (register_overhead): Likewise.
15799 (bitmap_find_bit): Register nsearches and search_iter statistics.
15800 (struct bitmap_output_info): Remove.
15801 (print_statistics): Likewise.
15802 (dump_bitmap_statistics): Use new memory descriptor.
15803 * bitmap.h (struct bitmap_usage): New class.
15804 * genmatch.c: Extend header file inclusion.
15805 * genpreds.c: Likewise.
15806 * ggc-common.c (struct ggc_usage): New class.
15807 (struct ggc_loc_desc_hasher): Remove.
15808 (ggc_loc_desc_hasher::hash): Likewise.
15809 (ggc_loc_desc_hasher::equal): Likewise.
15810 (struct ggc_ptr_hash_entry): Likewise.
15811 (struct ptr_hash_hasher): Likewise.
15812 (ptr_hash_hasher::hash): Likewise.
15813 (ptr_hash_hasher::equal): Likewise.
15814 (make_loc_descriptor): Likewise.
15815 (ggc_prune_ptr): Likewise.
15816 (dump_ggc_loc_statistics): Use new memory descriptor.
15817 (ggc_record_overhead): Likewise.
15818 (ggc_free_overhead): Likewise.
15819 (final_cmp_statistic): Remove.
15820 (cmp_statistic): Likewise.
15821 (ggc_add_statistics): Liekwise.
15822 (ggc_prune_overhead_list): Likewise.
15823 * hash-map-traits.h: New file.
15824 * hash-map.h (struct default_hashmap_traits): Move the traits to a
15825 separate header file.
15826 * hash-set.h: Pass memory statistics info to ctor.
15827 * hash-table.c (void dump_hash_table_loc_statistics): New function.
15828 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
15829 (hash_table::~hash_table): Register memory release operation.
15830 (hash_table::alloc_entries): Handle memory allocation operation.
15831 (hash_table::expand): Likewise.
15832 * inchash.c (iterative_hash_hashval_t): Move implementation to header
15833 file.
15834 (iterative_hash_host_wide_int): Likewise.
15835 * inchash.h (class hash): Likewise.
15836 * mem-stats-traits.h: New file.
15837 * mem-stats.h: New file.
15838 (mem_location): Add new class.
15839 (mem_usage): Likewise.
15840 (mem_alloc_description): Likewise.
15841 * sese.c: Add new header file inclusision.
15842 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
15843 and hash_set.
15844 * tree-sra.c: Add new header file inclusision.
15845 * vec.c (struct vec_descriptor): Remove.
15846 (hash_descriptor): Likewise.
15847 (struct vec_usage): Likewise.
15848 (struct ptr_hash_entry): Likewise.
15849 (hash_ptr): Likewise.
15850 (eq_ptr): Likewise.
15851 (vec_prefix::register_overhead): Use new memory descriptor API.
15852 (vec_prefix::release_overhead): Likewise.
15853 (add_statistics): Remove.
15854 (dump_vec_loc_statistics): Use new memory descriptor API.
15855 * vec.h (struct vec_prefix): Likewise.
15856 (va_heap::reserve): Likewise.
15857 (va_heap::release): Likewise.
15858 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
15859
15860 2015-05-27 Richard Biener <rguenther@suse.de>
15861
15862 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
15863 earlier and remove ??? comment.
15864 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
15865 and got called from loop analysis bail out. Always pass the SLP
15866 node to the vectorizable_* functions.
15867 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
15868 the premature SLP check here.
15869 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
15870 detected SLP stmts.
15871 (vect_detect_hybrid_slp_1): Likewise.
15872
15873 2015-05-26 Jeff Law <law@redhat.com>
15874
15875 * combine.c (find_split_point): Verify that the shift count is a
15876 constant when choosing (plus (ashift ...)) as a split point.
15877
15878 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
15879 No functional changes.
15880
15881 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
15882
15883 * ipa-polymorphic-call.c
15884 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
15885 case when call target is already known.
15886
15887 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
15888
15889 PR target/65979
15890 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
15891 take into account the case that operands[1] and operands[2]
15892 are the same register.
15893
15894 2015-05-26 Michael Matz <matz@suse.de>
15895
15896 PR middle-end/66251
15897
15898 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
15899 stores.
15900 (vect_create_vectorized_demotion_stmts): Always set
15901 STMT_VINFO_VEC_STMT, also with SLP.
15902 (vectorizable_store): Handle strided group stores.
15903
15904 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
15905
15906 PR target/66049
15907 * config/aarch64/aarch64.md
15908 (*adds_shift_imm_<mode>): New pattern.
15909 (*subs_shift_imm_<mode>): Likewise.
15910 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
15911 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
15912 (*add_uxt<mode>_shift2): Likewise.
15913 (*add_uxtsi_shift2_uxtw): Likewise.
15914 (*sub_uxt<mode>_shift2): Likewise.
15915 (*sub_uxtsi_shift2_uxtw): Likewise.
15916
15917 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
15918
15919 * config/rs6000/constraints.md (Y, U): Use match_test.
15920
15921 2015-05-26 Christian Bruel <christian.bruel@st.com>
15922
15923 PR target/52144
15924 * config/arm/arm.c (arm_option_check_internal)
15925 (arm_option_params_internal): Check opts->target_flags to set macros.
15926 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
15927 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
15928 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
15929 (builtin_define): Replaced with def_or_undef_macro.
15930 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
15931 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
15932 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
15933 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
15934 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
15935 (TARGET_ARM_FEATURE_LDREX_P)
15936 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
15937 * config/arm/arm-c.c (def_or_undef_macro): New function.
15938 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
15939
15940 2015-05-26 Christian Bruel <christian.bruel@st.com>
15941
15942 * c-common.h (builtin_define_with_int_value)
15943 (builtin_define_type_sizeof): Declare.
15944 * c-cppbuiltin.c (builtin_define_with_int_value)
15945 (builtin_define_type_sizeof): Externalize.
15946 (builtin_define_std): Cleanup declaration.
15947 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
15948 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
15949 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
15950 (builtin_define, builtin_assert): New macros.
15951
15952 2015-05-26 Richard Biener <rguenther@suse.de>
15953
15954 PR tree-optimization/66142
15955 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
15956 MEM_REFs for the same base address.
15957
15958 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15959
15960 PR ipa/66181
15961 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
15962
15963 2015-05-26 Jason Merrill <jason@redhat.com>
15964
15965 * configure.ac: Set CXXFLAGS for ISL test.
15966 * configure: Regenerate.
15967
15968 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
15969 strstr and basename.
15970 * configure: Regenerate.
15971
15972 2015-05-26 Richard Biener <rguenther@suse.de>
15973
15974 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
15975 X % C -> X & (C - 1) for C being a power-of two to ...
15976 * match.pd: ... patterns.
15977
15978 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
15979
15980 * match.pd (swapped_tcc_comparison): New operator list.
15981 (-A CMP -B): New simplification.
15982 * fold-const.c (fold_comparison): Remove corresponding code.
15983
15984 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
15985
15986 * caller-save.c (init_caller_save): Base temporary register numbers
15987 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
15988 * cfgloopanal.c (init_set_costs): Likewise.
15989 * dojump.c (prefer_and_bit_test): Likewise.
15990 * expr.c (init_expr_target): Likewise.
15991 * ira.c (setup_prohibited_mode_move_regs): Likewise.
15992 * lower-subreg.c (init_lower_subreg): Likewise.
15993 * postreload.c (reload_cse_regs_1): Likewise.
15994
15995 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
15996
15997 * gensupport.h (compute_test_codes): Declare.
15998 * gensupport.c (compute_predicate_codes): Rename to...
15999 (compute_test_codes): ...this. Generalize error message.
16000 (process_define_predicate): Update accordingly.
16001 * genpreds.c (compute_maybe_allows): Delete.
16002 (add_constraint): Use compute_test_codes to determine whether
16003 something can accept a SUBREG, REG or MEM.
16004
16005 2015-05-26 Torvald Riegel <triegel@redhat.com>
16006
16007 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
16008 'memory model' to align with C++11; fix description of memory orders;
16009 fix a few typos.
16010
16011 2015-05-26 Richard Biener <rguenther@suse.de>
16012
16013 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
16014 (vect_analyze_loop_operations): ... here. Remove slp parameter,
16015 detect whether we apply SLP. Remove call to
16016 vect_update_slp_costs_according_to_vf.
16017 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
16018 vect_update_slp_costs_according_to_vf from here. Dispatch
16019 to vect_slp_analyze_operations to analyze SLP stmts.
16020 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
16021 unused bb_vec_info parameter, adjust assert.
16022 (vect_slp_analyze_operations): Pass in the slp instance tree
16023 instead of bb_vec_info.
16024 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
16025 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
16026
16027 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
16028
16029 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
16030 Q_REGS. Expand comment.
16031 (REG_CLASS_NAMES): Ditto.
16032 (REG_CLASS_CONTENTS): Ditto.
16033
16034 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
16035
16036 PR target/66274
16037 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
16038 when LEGACY_INT_REGNO_P is processed.
16039
16040 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
16041
16042 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
16043
16044 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16045
16046 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
16047 register if not marked dead/unused, before return.
16048
16049 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16050
16051 PR lto/66180
16052 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
16053 is set; check for assembler name at LTO time.
16054 (type_in_anonymous_namespace): Remove hacks, check that all
16055 anonymous types are called "<anon>"
16056 (odr_type_p): Simplify; add check for "<anon>"
16057 (odr_subtypes_equivalent): Add odr_type_p check.
16058 * tree.c (need_assembler_name_p): Even anonymous namespace needs
16059 assembler name.
16060
16061 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16062
16063 * ipa-utils.h (method_class_type): Remove.
16064 * cgraphunit.c (walk_polymorphic_call_targets): Use
16065 TYPE_METHOD_BASETYPE.
16066 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
16067 on main variants only.
16068 (method_class_type): Remove.
16069 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
16070 (build_type_inheritance_graph): Likewise.
16071 * ipa-icf.c (sem_function::equals_wpa): Likewise.
16072 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
16073 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
16074
16075 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
16076
16077 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
16078 is_typedef_decl, typedef_variant_p): Constify.
16079 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
16080 is_typedef_decl, typedef_variant_p): Constify.
16081
16082 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16083
16084 * defaults.h (gen_tablejump): New function.
16085 (HAVE_tablejump): Add default value.
16086 * expr.c: Adjust.
16087 * stmt.c: Likewise.
16088
16089 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16090
16091 * defaults.h (gen_store_multiple): New function.
16092 (HAVE_store_multiple): Add default value.
16093 * expr.c (move_block_from_reg): Adjust.
16094
16095 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16096
16097 * defaults.h (gen_load_multiple): New function.
16098 (HAVE_load_multiple): Add default value.
16099 * expr.c (move_block_to_reg): Adjust.
16100
16101 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16102
16103 * defaults.h (gen_mem_signal_fence): New function.
16104 (HAVE_mem_signal_fence): Add default value.
16105 * optabs.c: Adjust.
16106
16107 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16108
16109 * defaults.h (gen_memory_barrier): New function.
16110 (HAVE_memory_barrier): Add default value.
16111 * optabs.c: Adjust.
16112
16113 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16114
16115 * defaults.h (gen_mem_thread_fence): New function.
16116 (HAVE_mem_thread_fence): Add default definition.
16117 * optabs.c: Adjust.
16118
16119 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16120
16121 * combine.c (find_split_point): Check the value of HAVE_lo_sum
16122 instead of if it is defined.
16123 (combine_simplify_rtx): Likewise.
16124 * lra-constraints.c (process_address_1): Likewise.
16125 * config/darwin.c: Adjust.
16126 * genconfig.c (main): Always define HAVE_lo_sum.
16127
16128 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16129
16130 * genmatch.c (parser::parse_operation): Reject expanding
16131 operator-list inside 'for'.
16132
16133 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16134
16135 * genmatch.c (parser::parse_for): Reject iterator if used as
16136 operator-list.
16137
16138 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16139
16140 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
16141 after end of id-list.
16142
16143 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
16144
16145 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
16146 we do not try to compute canonical type for type that does not need
16147 alias set.
16148 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
16149 FUNCITON_TYPE.
16150 * tree.h (type_with_alias_set_p): New.
16151
16152 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
16153
16154 * tree.c (gimple_canonical_types_compatible_p): Do not compare
16155 function attributes.
16156 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
16157
16158 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
16159
16160 * Makefile.in (check_gcc_parallelize): Delete.
16161 (lang_checks_parallelized): Update comment.
16162
16163 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
16164
16165 PR rtl-optimization/66237
16166 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
16167 location of an "as_a" cast.
16168
16169 2015-05-22 Jeff Law <law@redhat.com>
16170
16171 * config/pa/pa.md (non-canonical shift-add insns): Remove.
16172 (peepholes with non-canonical RTL sources): Remove.
16173 (peepholes for indexed stores of FP regs in integer modes): Match and
16174 generate canonical RTL.
16175
16176 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
16177
16178 PR tree-optimization/63387
16179 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
16180 ((x ord x) & (y ord y) -> (x ord y),
16181 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
16182 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
16183 vectors like scalars.
16184
16185 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
16186
16187 * convert.c (convert_to_integer, convert_to_vector): Include the
16188 types in the error message.
16189
16190 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
16191
16192 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
16193 simplifications.
16194
16195 2015-05-22 Jeff Law <law@redhat.com>
16196
16197 * config/pa/pa.md (integer_indexed_store splitters): Use
16198 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
16199 insns -- adjusting the constant 2nd operand accordingly.
16200
16201 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
16202 (plus (ashift X log2) Y) if it is a split point.
16203
16204 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
16205 out of hppa_legitimize_address to handle both forms of a multiply
16206 by 2, 4 or 8.
16207 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
16208 Always generate the ASHIFT variant as the result is not directly
16209 used in a MEM. Update comments and refactor slightly to improve
16210 readability.
16211
16212 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16213
16214 PR target/65491
16215 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
16216 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
16217 (aarch64_composite_type_p): Return false if given type and mode are
16218 for a short vector.
16219
16220 2015-05-22 Richard Biener <rguenther@suse.de>
16221
16222 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
16223 member.
16224 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
16225 patterns when determining whether SLP is pure.
16226 (vect_is_slp_reduction): Remove check for pattern stmts.
16227 (vect_is_simple_reduction_1): Remove dead code.
16228 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
16229 (vect_get_and_check_slp_defs): Pass in the stmt number.
16230 Allow the first def in a reduction to be not a pattern stmt when
16231 the rest of the stmts def are patterns.
16232 (vect_build_slp_tree_1): Allow tcc_expression codes like
16233 SAD_EXPR and DOT_PROD_EXPR.
16234 (vect_build_slp_tree): Adjust.
16235 (vect_analyze_slp): Refactor and move BB vect error message ...
16236 (vect_slp_analyze_bb_1): ... here.
16237
16238 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
16239
16240 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
16241 for CSWTCH temporary.
16242
16243 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16244
16245 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
16246 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
16247 unknown unspecs.
16248
16249 2015-05-22 Richard Biener <rguenther@suse.de>
16250
16251 PR tree-optimization/66251
16252 * tree-vect-stmts.c (vectorizable_conversion): Properly
16253 set STMT_VINFO_VEC_STMT even for the SLP case.
16254
16255 2015-05-22 Marek Polacek <polacek@redhat.com>
16256
16257 * doc/extend.texi: Use @pxref instead of @xref.
16258
16259 2015-05-22 hiraditya <hiraditya@msn.com>
16260
16261 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
16262 redundant if.
16263
16264 2015-05-22 Richard Biener <rguenther@suse.de>
16265
16266 PR tree-optimization/65701
16267 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
16268 Move peeling cost models into one place. Peel for alignment
16269 for single loads only if an aligned load is cheaper than
16270 an unaligned load.
16271
16272 2015-05-22 Marek Polacek <polacek@redhat.com>
16273
16274 PR c/47043
16275 * doc/extend.texi (Enumerator Attributes): New section.
16276 Document syntax of enumerator attributes.
16277
16278 2015-05-22 Richard Biener <rguenther@suse.de>
16279
16280 * tree-vect-loop.c (get_reduction_op): New function.
16281 (vect_model_reduction_cost): Use it, add reduc_index parameter.
16282 Make ready for BB reductions.
16283 (vect_create_epilog_for_reduction): Use get_reduction_op.
16284 (vectorizable_reduction): Init reduc_index to a valid value.
16285 Adjust vect_model_reduction_cost call.
16286 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
16287 operand for reduction defaults. Add SAD_EXPR support.
16288 Assert we have a neutral op for SLP reductions.
16289 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
16290 walking pattern stmt ops only recurse to SSA names.
16291
16292 2015-05-22 Richard Biener <rguenther@suse.de>
16293
16294 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
16295 assert with guard, remove check on detected reduction.
16296 (vect_recog_sad_pattern): Likewise.
16297 (vect_recog_widen_sum_pattern): Likewise.
16298
16299 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16300
16301 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
16302 __always_inline__ attribute.
16303 (vaesdq_u8): Likewise.
16304 (vaesmcq_u8): Likewise.
16305 (vaesimcq_u8): Likewise.
16306 (vsha1cq_u32): Likewise.
16307 (vsha1mq_u32): Likewise.
16308 (vsha1pq_u32): Likewise.
16309 (vsha1h_u32): Likewise.
16310 (vsha1su0q_u32): Likewise.
16311 (vsha1su1q_u32): Likewise.
16312 (vsha256hq_u32): Likewise.
16313 (vsha256h2q_u32): Likewise.
16314 (vsha256su0q_u32): Likewise.
16315 (vsha256su1q_u32): Likewise.
16316 (vmull_p64): Likewise.
16317 (vmull_high_p64): Likewise.
16318
16319 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16320
16321 * final.c (final_scan_insn): Don't check HAVE_peephole with the
16322 preprocessor.
16323 * output.h: Likewise.
16324 * genconfig.c (main): Alwways define HAVE_peephole.
16325 * genpeep.c: Don't emit checks of HAVE_peephole.
16326
16327 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16328
16329 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
16330 check HAVE_conditional_move with the preprocessor.
16331
16332 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16333
16334 * genconfig.c (main): Always define HAVE_conditional_move.
16335 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
16336 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
16337 is defined.
16338
16339 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16340
16341 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
16342 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
16343 and FRAME_POINTER_REGNUM with the preprocessor.
16344
16345 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16346
16347 * defaults.h: Add default for STACK_PUSH_CODE.
16348 * expr.c: Don't redefine STACK_PUSH_CODE.
16349 * recog.c: Likewise.
16350
16351 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16352
16353 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
16354 sched-deps.c: Use if instead of preprocessor checks with
16355 STACK_GROWS_DOWNWARD.
16356
16357 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16358
16359 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
16360 is defined.
16361 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
16362 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
16363 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
16364 * doc/tm.texi: Regenerate.
16365
16366 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
16367
16368 PR target/66232
16369 * config/i386/constraints.md (Bg): New constraint for GOT memory
16370 operand.
16371 * config/i386/i386.md (*call_got_x32): New pattern.
16372 (*call_value_got_x32): Likewise.
16373 * config/i386/predicates.md (GOT_memory_operand): New predicate.
16374
16375 2015-05-21 Jakub Jelinek <jakub@redhat.com>
16376
16377 PR tree-optimization/66233
16378 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
16379 Simplify.
16380
16381 2015-05-21 Jeff Law <law@redhat.com>
16382
16383 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
16384 than MULT for shadd sequences.
16385
16386 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
16387
16388 * alias.c (alias_stats): New static var.
16389 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
16390 (dump_alias_stats_in_alias_c): New function.
16391 * alias.h (dump_alias_stats_in_alias_c): Declare.
16392 * tree-ssa-alias.c (dump_alias_stats): Call it.
16393
16394 2015-05-08 Michael Matz <matz@suse.de>
16395
16396 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
16397 to strided_p.
16398 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
16399 (STMT_VINFO_STRIDED_P): ... this.
16400 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
16401 (vect_verify_datarefs_alignment): Likewise.
16402 (vect_enhance_data_refs_alignment): Likewise.
16403 (vect_analyze_data_ref_access): Likewise.
16404 (vect_analyze_data_refs): Accept strided stores.
16405 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
16406 (vect_model_load_cost): Adjust for macro rename.
16407 (vectorizable_mask_load_store): Likewise.
16408 (vectorizable_load): Likewise.
16409 (vectorizable_store): Open code strided stores.
16410
16411 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16412
16413 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
16414 Document sqrt_insn.
16415
16416 2015-05-21 Richard Biener <rguenther@suse.de>
16417
16418 PR c++/66211
16419 * match.pd: Guard pattern optimzing (int)(float)int
16420 conversions to apply only on GIMPLE.
16421
16422 2015-05-21 Jeff Law <law@redhat.com>
16423
16424 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
16425 multiply-accumulate/shift-add insn generation.
16426
16427 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
16428
16429 PR target/54236
16430 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
16431 operands[1] are the same.
16432
16433 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
16434
16435 PR middle-end/66221
16436 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
16437 build_distinct_type_copy to copy bounds.
16438
16439 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
16440
16441 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
16442 Change to unsigned int.
16443
16444 2015-05-20 Jeff Law <law@redhat.com>
16445
16446 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
16447 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
16448 (pa_shadd_constant_p): Allow constants for shadd insns rather
16449 than valid scaling constants for memory addresses.
16450 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
16451 * config/pa/predicates.md (mem_shadd_operand): New predicate.
16452 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
16453 (shift-add insns using ASHIFT): New patterns.
16454
16455 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
16456
16457 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
16458 feasible.
16459 (fix_up_fall_thru_edges): Likewise.
16460 (fix_crossing_conditional_branches): Likewise. Promote jump targets
16461 from to rtx_insn to rtx_code_label where feasible.
16462 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
16463 gen_move_insn (returned type changed to rtx_insn).
16464 * builtins.c (expand_errno_check): Fix arguments of
16465 do_compare_rtx_and_jump (now expects rtx_code_label).
16466 (expand_builtin_acc_on_device): Likewise.
16467 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
16468 invert_jump (now exprects rtx_jump_insn).
16469 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
16470 (construct_init_block): Use rtx_code_label.
16471 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
16472 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
16473 calling redirect_jump.
16474 (patch_jump_insn): Likewise.
16475 (redirect_branch_edge): Likewise.
16476 (force_nonfallthru_and_redirect): Likewise.
16477 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
16478 when suitable.
16479 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
16480 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
16481 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
16482 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
16483 to store the value retured by gen_label_rtx.
16484 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
16485 rtx_jump_insn.
16486 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
16487 (split_branches): Fix calls of redirect_jump.
16488 * dojump.c (jumpifnot): Promote argument type from rtx to
16489 rtx_code_label.
16490 (jumpifnot_1): Likewise.
16491 (jumpif): Likewise.
16492 (jumpif_1): Likewise.
16493 (do_jump_1): Likewise.
16494 (do_jump): Likewise. Use rtx_code_label when feasible.
16495 (do_jump_by_parts_greater_rtx): Likewise.
16496 (do_jump_by_parts_zero_rtx): Likewise.
16497 (do_jump_by_parts_equality_rtx): Likewise.
16498 (do_compare_rtx_and_jump): Likewise.
16499 * dojump.h: Update function prototypes.
16500 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
16501 returns rtx_insn).
16502 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
16503 rtx_jump_insn.
16504 (emit_label_before): Likewise.
16505 (emit_jump_insn_after_noloc): Likewise.
16506 (emit_jump_insn_after_setloc): Likewise.
16507 (emit_jump_insn_after): Likewise
16508 (emit_jump_insn_before_setloc): Likewise.
16509 (emit_jump_insn_before): Likewise.
16510 (emit_label_before): Promote return type to rtx_code_label.
16511 (emit_label): Likewise.
16512 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
16513 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
16514 gen_move_insn.
16515 (emit_stack_restore): Likewise.
16516 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
16517 (do_cmp_and_jump): Likewise.
16518 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
16519 from rtx to rtx_code_label.
16520 (gen_move_insn_uncast): New function.
16521 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
16522 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
16523 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
16524 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
16525 invert_jump_1 and redirect_jump_1.
16526 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
16527 do_compare_rtx_and_jump.
16528 (expand_addsub_overflow): Likewise.
16529 (expand_neg_overflow): Likewise.
16530 (expand_mul_overflow): Likewise.
16531 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
16532 return value of gen_move_insn.
16533 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
16534 * loop-doloop.c (add_test): Use rtx_code_label.
16535 (doloop_modify): Likewise.
16536 (doloop_optimize): Likewise.
16537 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
16538 * lra-constraints.c (emit_spill_move): Remove cast of value returned
16539 by gen_move_insn.
16540 (inherit_reload_reg): Add cast when calling dump_insn_slim.
16541 (split_reg): Likewise.
16542 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
16543 gen_move_insn.
16544 * optabs.c (expand_binop_directly): Remove casts of values returned by
16545 maybe_gen_insn.
16546 (expand_unop_direct): Likewise.
16547 (expand_abs): Likewise.
16548 (maybe_emit_unop_insn): Likewise.
16549 (maybe_gen_insn): Promote return type to rtx_insn.
16550 * optabs.h: Update prototype of maybe_gen_insn.
16551 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
16552 redundant cast.
16553 * recog.c (struct peep2_insn_data): Promote type of insn field to
16554 rtx_insn.
16555 (peep2_reinit_state): Use NULL instead of NULL_RTX.
16556 (peep2_attempt): Remove casts of insn in peep2_insn_data.
16557 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
16558 * recog.h (struct insn_gen_fn): Promote return types of function
16559 pointers and operator ().from rtx to rtx_insn.
16560 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
16561 (fill_eager_delay_slots): Likewise.
16562 (relax_delay_slots): Likewise.
16563 (make_return_insns): Likewise.
16564 (dbr_schedule): Likewise.
16565 (optimize_skips): Likewise.
16566 (reorg_redirect_jump): Likewise.
16567 (fill_slots_from_thread): Likewise.
16568 * reorg.h: Update prototypes.
16569 * resource.c (find_dead_or_set_registers): Use dyn_cast to
16570 rtx_jump_insn instead of check. Use it's jump_target method.
16571 * rtl.h (rtx_jump_insn::jump_label): Define new method.
16572 (rtx_jump_insn::jump_target): Define new method.
16573 (rtx_jump_insn::set_jump_target): Define new method.
16574 * rtlanal.c (tablejump_p): Promote type of one local variable.
16575 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
16576 (sched_analyze_insn): Likewise.
16577 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
16578 (print_insn): Likewise.
16579 * stmt.c (label_rtx): Promote return type to rtx_insn.
16580 (force_label_rtx): Likewise.
16581 (jump_target_rtx): Define new function.
16582 (expand_label): Use it, get rid of one cast.
16583 (expand_naked_return): Promote rtx to rtx_code_label.
16584 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
16585 (expand_case): Use rtx_code_label instread of rtx where feasible.
16586 (expand_sjlj_dispatch_table): Likewise.
16587 (emit_case_nodes): Likewise.
16588 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
16589 * store-motion.c (insert_store): Make use of new return type of
16590 gen_move_insn and remove a cast.
16591 (replace_store_insn): Likewise.
16592
16593 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
16594
16595 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
16596 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
16597
16598 2015-05-20 Jeff Law <law@redhat.com>
16599
16600 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
16601 dispose of the jump thread path when the jump threading
16602 opportunity is cancelled.
16603
16604 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
16605
16606 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
16607 when printing the caret character.
16608
16609 2015-05-20 Marek Polacek <polacek@redhat.com>
16610
16611 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
16612
16613 2015-05-20 Marek Polacek <polacek@redhat.com>
16614
16615 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
16616 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
16617 * gimple-fold.c (canonicalize_bool): Likewise.
16618 (same_bool_result_p): Likewise.
16619 * tree-if-conv.c (parse_predicate): Likewise.
16620
16621 2015-05-20 Marek Polacek <polacek@redhat.com>
16622
16623 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
16624 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
16625
16626 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16627
16628 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
16629 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
16630 values.
16631
16632 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
16633
16634 * config/mips/mips.h (micromips_globals): Declare.
16635
16636 2015-05-20 David Malcolm <dmalcolm@redhat.com>
16637
16638 * timevar.def (TV_INITIALIZE_RTL): New.
16639 * toplev.c (initialize_rtl): Use an auto_timevar to account this
16640 function's time to TV_INITIALIZE_RTL.
16641
16642 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
16643
16644 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
16645 gimple_build_nop calls.
16646 (chkp_find_bounds_for_elem): Likewise.
16647 (chkp_get_zero_bounds): Likewise.
16648 (chkp_get_none_bounds): Likewise.
16649 (chkp_get_bounds_by_definition): Likewise.
16650 (chkp_generate_extern_var_bounds): Likewise.
16651 (chkp_get_bounds_for_decl_addr): Likewise.
16652 (chkp_get_bounds_for_string_cst): Likewise.
16653
16654 2015-05-20 Bin Cheng <bin.cheng@arm.com>
16655
16656 PR tree-optimization/65447
16657 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
16658 (dump_use, dump_uses): Support to dump sub use.
16659 (record_use): New parameters to support sub use. Remove call to
16660 dump_use.
16661 (record_sub_use, record_group_use): New functions.
16662 (compute_max_addr_offset, split_all_small_groups): New functions.
16663 (group_address_uses, rewrite_use_address): New functions.
16664 (strip_offset): New declaration.
16665 (find_interesting_uses_address): Call record_group_use.
16666 (add_candidate): New assertion.
16667 (infinite_cost_p): Move definition forward.
16668 (add_costs): Check INFTY cost and return immediately.
16669 (get_computation_cost_at): Clear setup cost and dependent bitmap
16670 for sub uses.
16671 (determine_use_iv_cost_address): Compute cost for sub uses.
16672 (rewrite_use_address_1): Rename from old rewrite_use_address.
16673 (free_loop_data): Free sub uses.
16674 (tree_ssa_iv_optimize_loop): Call group_address_uses.
16675
16676 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
16677 Jim Wilson <jim.wilson@linaro.org>
16678
16679 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
16680 new fields loadv and storev.
16681 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
16682 Initialize loadv and storev.
16683 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
16684 (cortexa53_extra_costs): Likewise.
16685 (cortexa57_extra_costs): Likewise.
16686 (xgene1_extra_costs): Likewise.
16687 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
16688 rtx_costs.
16689
16690 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
16691
16692 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
16693 storev.
16694 (cortexa8_extra_costs): Likewise.
16695 (cortexa5_extra_costs): Likewise.
16696 (cortexa7_extra_costs): Likewise.
16697 (cortexa12_extra_costs): Likewise.
16698 (cortexa15_extra_costs): Likewise.
16699 (v7m_extra_costs): Likewise.
16700
16701 2015-05-20 Jeff Law <law@redhat.com>
16702
16703 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
16704 instead of open-coded version. Also delete the jump thread created
16705 within this function.
16706
16707 2015-05-20 Alan Modra <amodra@gmail.com>
16708
16709 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
16710 stack adjusting insn. Formatting.
16711 (rs6000_emit_prologue): Track stack adjusting insn, and use of
16712 r12. If possible, emit first -fsplit-stack arg pointer insn
16713 before stack adjust. Don't use r12 to save cr if split-stack.
16714
16715 2015-05-20 Alan Modra <amodra@gmail.com>
16716
16717 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
16718 Define.
16719 (rs6000_supports_split_stack): New function.
16720 * gcc/config/rs6000/rs6000.c (machine_function): Add
16721 split_stack_arg_pointer.
16722 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
16723 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
16724 rather than virtual_incoming_args_rtx.
16725 (rs6000_va_start): Likewise.
16726 (split_stack_arg_pointer_used_p): New function.
16727 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
16728 (morestack_ref): New var.
16729 (gen_add3_const, rs6000_expand_split_stack_prologue,
16730 rs6000_internal_arg_pointer, rs6000_live_on_entry,
16731 rs6000_split_stack_space_check): New functions.
16732 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
16733 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
16734 (UNSPECV_SPLIT_STACK_RETURN): Define.
16735 (split_stack_prologue, load_split_stack_limit,
16736 load_split_stack_limit_di, load_split_stack_limit_si,
16737 split_stack_return, split_stack_space_check): New expands and insns.
16738 * gcc/config/rs6000/rs6000-protos.h
16739 (rs6000_expand_split_stack_prologue): Declare.
16740 (rs6000_split_stack_space_check): Declare.
16741
16742 2015-05-20 Alan Modra <amodra@gmail.com>
16743
16744 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
16745 (direct_return): Test vrsave_size rather than vrsave_mask.
16746 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
16747 (rs6000_emit_epilogue): Likewise.
16748
16749 2015-05-20 Alan Modra <amodra@gmail.com>
16750
16751 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
16752 when not saving registers.
16753 (debug_stack_info): Adjust to omit printing unused offsets,
16754 as before.
16755 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
16756 expression.
16757
16758 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16759
16760 PR c++/65835
16761 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
16762 value_type to const char *.
16763
16764 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
16765
16766 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
16767 to build a biarch toolchain again.
16768
16769 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
16770
16771 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
16772 or implicit declarations.
16773 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
16774 into it.
16775 (get_odr_type): Check type has linkage before adding bases.
16776 (register_odr_type): Check that type has linkage before adding it.
16777 (type_known_to_have_no_deriavations_p): Rename to ..
16778 (type_known_to_have_no_derivations_p): This one.
16779 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
16780 (type_known_to_have_no_derivations_p): This one.
16781 * ipa-polymorphic-call.c
16782 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
16783 type has linkage.
16784
16785 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
16786
16787 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
16788 (layout_type): Use RECORD_OR_UNION_TYPE_P.
16789
16790 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16791
16792 * config/s390/s390.c (s390_vector_bool_type_p): New function.
16793 (s390_invalid_binary_op): New function.
16794 (TARGET_INVALID_BINARY_OP): Define macro.
16795
16796 2015-05-19 David Sherwood <david.sherwood@arm.com>
16797
16798 * loop-invariant.c (create_new_invariant): Don't calculate address cost
16799 if mode is not a scalar integer.
16800 (get_inv_cost): Increase computational cost for unused invariants.
16801
16802 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16803
16804 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
16805 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
16806 * config/s390/s390-builtin-types.def: New file.
16807 * config/s390/s390-builtins.def: New file.
16808 * config/s390/s390-builtins.h: New file.
16809 * config/s390/s390-c.c: New file.
16810 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
16811 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
16812 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
16813 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
16814 prototypes.
16815 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
16816 Include.
16817 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
16818 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
16819 variable definitions.
16820 (s390_const_operand_ok): New function.
16821 (s390_expand_builtin): Rewrite.
16822 (s390_init_builtins): New function.
16823 (s390_handle_vectorbool_attribute): New function.
16824 (s390_attribute_table): Add s390_vector_bool attribute.
16825 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
16826 (s390_branch_condition_mask): Generate masks for new modes.
16827 (s390_expand_vec_compare_cc): New function.
16828 (s390_mangle_type): Add mangling for vector bool types.
16829 (enum s390_builtin): Remove.
16830 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
16831 efpc builtins.
16832 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
16833 s390_cpu_cpp_builtins.
16834 (REGISTER_TARGET_PRAGMAS): New macro.
16835 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
16836 (insn_cmp mode attribute): Add new CC modes.
16837 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
16838 (lcbb): New pattern definition.
16839 * config/s390/s390intrin.h: Include vecintrin.h.
16840 * config/s390/t-s390: New file.
16841 * config/s390/vecintrin.h: New file.
16842 * config/s390/vector.md: Include vx-builtins.md.
16843 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
16844 support.
16845
16846 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16847
16848 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
16849 CCVFHE.
16850 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
16851 (s390_select_ccmode): Likewise.
16852 (s390_canonicalize_comparison): Swap operands if necessary.
16853 (s390_expand_vec_compare_scalar): Expand DFmode compare using
16854 single element vector instructions.
16855 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
16856 (s390_branch_condition_mask): Generate CC masks for the new modes.
16857 * config/s390/s390.md (v0, vf, vd): New mode attributes.
16858 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
16859 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
16860 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
16861 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
16862 (*extend<DSF:mode><BFP:mode>2): New insn definition.
16863 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
16864 (extend<DSF:mode><BFP:mode>2): Turn into expander.
16865 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
16866 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
16867 (sqrt<mode>2): Add vector instruction.
16868
16869 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16870
16871 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
16872 constraints.
16873 * config/s390/predicates.md (const0_operand, constm1_operand)
16874 (constable_operand): Accept vector operands.
16875 * config/s390/s390-modes.def: Add supported vector modes.
16876 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
16877 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
16878 (s390_bytemask_vector_p, s390_expand_vec_strlen)
16879 (s390_expand_vec_compare, s390_expand_vcond)
16880 (s390_expand_vec_init): Add prototypes.
16881 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
16882 (s390_vector_mode_supported_p): New function.
16883 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
16884 (s390_contiguous_bitmask_vector_p): New function.
16885 (s390_bytemask_vector_p): New function.
16886 (s390_split_ok_p): Vector regs don't work either.
16887 (regclass_map): Add VEC_REGS.
16888 (s390_legitimate_constant_p): Handle vector constants.
16889 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
16890 (legitimate_reload_vector_constant_p): New function.
16891 (s390_preferred_reload_class): Handle CONST_VECTOR.
16892 (s390_reload_symref_address): Likewise.
16893 (s390_secondary_reload): Vector memory instructions only support
16894 short displacements. Rename reload*_nonoffmem* to reload*_la*.
16895 (s390_emit_ccraw_jump): New function.
16896 (s390_expand_vec_strlen): New function.
16897 (s390_expand_vec_compare): New function.
16898 (s390_expand_vcond): New function.
16899 (s390_expand_vec_init): New function.
16900 (s390_dwarf_frame_reg_mode): New function.
16901 (print_operand): Handle addresses with 'O' and 'R' constraints.
16902 (NR_C_MODES, constant_modes): Add vector modes.
16903 (s390_output_pool_entry): Handle vector constants.
16904 (s390_hard_regno_mode_ok): Handle vector registers.
16905 (s390_class_max_nregs): Likewise.
16906 (s390_cannot_change_mode_class): New function.
16907 (s390_invalid_arg_for_unprototyped_fn): New function.
16908 (s390_function_arg_vector): New function.
16909 (s390_function_arg_float): Remove size variable.
16910 (s390_pass_by_reference): Handle vector arguments.
16911 (s390_function_arg_advance): Likewise.
16912 (s390_function_arg): Likewise.
16913 (s390_return_in_memory): Vector values are returned in a VR if
16914 possible.
16915 (s390_function_and_libcall_value): Handle vector arguments.
16916 (s390_gimplify_va_arg): Likewise.
16917 (s390_call_saved_register_used): Consider the arguments named.
16918 (s390_conditional_register_usage): Disable v16-v31 for non-vec
16919 targets.
16920 (s390_preferred_simd_mode): New function.
16921 (s390_support_vector_misalignment): New function.
16922 (s390_vector_alignment): New function.
16923 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
16924 (TARGET_VECTOR_MODE_SUPPORTED_P)
16925 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
16926 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
16927 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
16928 (TARGET_VECTOR_ALIGNMENT): Define target macro.
16929 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
16930 (FIRST_PSEUDO_REGISTER): Increase value.
16931 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
16932 (VECTOR_REG_P): Define macros.
16933 (FIXED_REGISTERS, CALL_USED_REGISTERS)
16934 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
16935 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
16936 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
16937 Add vector registers.
16938 (CANNOT_CHANGE_MODE_CLASS): Call C function.
16939 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
16940 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
16941 memory.
16942 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
16943 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
16944 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
16945 (VR*_REGNUM): New constants.
16946 (ALL): New mode iterator.
16947 (INTALL): Remove mode iterator.
16948 Include vector.md.
16949 (movti): Implement TImode moves for VRs.
16950 Disable TImode splitter for VR targets.
16951 Implement splitting TImode GPR<->VR moves.
16952 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
16953 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
16954 reload<mode>_la_in, reload<mode>_la_out.
16955 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
16956 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
16957 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
16958 (mov<mode> SF SD): Prefer lder, lde for loading.
16959 Add lrl and strl instructions.
16960 Add vector instructions.
16961 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
16962 Call s390_expand_vec_strlen on z13.
16963 (*cc_to_int): Change predicate to nonimmediate_operand.
16964 (addti3): Rename to *addti3. New expander.
16965 (subti3): Rename to *subti3. New expander.
16966 * config/s390/vector.md: New file.
16967
16968 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16969
16970 * common/config/s390/s390-common.c (processor_flags_table): Add
16971 z13.
16972 * config.gcc: Add z13.
16973 * config/s390/s390-opts.h (enum processor_type): Add
16974 PROCESSOR_2964_Z13.
16975 * config/s390/s390.c (s390_adjust_priority): Check for
16976 PROCESSOR_2964_Z13.
16977 (s390_reorg): Likewise.
16978 (s390_sched_reorder): Likewise.
16979 (s390_sched_variable_issue): Likewise.
16980 (s390_loop_unroll_adjust): Likewise.
16981 (s390_option_override): Likewise. Default to -mvx when available.
16982 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
16983 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
16984 (TARGET_VX_ABI): Define macros.
16985 macros.
16986 (TARGET_DEFAULT): Add MASK_OPT_VX.
16987 * config/s390/s390.md ("cpu" attribute): Add z13.
16988 ("cpu_facility" attribute): Add vec.
16989 * config/s390/s390.opt (processor_type): Add z13.
16990 (mvx): New options.
16991 * doc/invoke.texi: Add z13 option for -march.
16992
16993 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16994
16995 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
16996 mode check to make sure that only scalar integer values are
16997 accepted.
16998
16999 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
17000
17001 * tree.c (verify_type_variant): Fix #undef.
17002 (gimple_canonical_types_compatible_p): Move here from lto.c
17003 (verify_type): Verify TYPE_CANONICAL compatibility.
17004 * tree.h (gimple_canonical_types_compatible_p): Declare.
17005
17006 2015-05-19 Jakub Jelinek <jakub@redhat.com>
17007
17008 PR middle-end/66199
17009 * tree.h (OMP_TEAMS_COMBINED): Define.
17010 * gimplify.c (enum gimplify_omp_var_data): Add
17011 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
17012 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
17013 (omp_notice_variable): Accept both ORT_TEAMS
17014 and ORT_COMBINED_TEAMS. Don't recurse if
17015 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
17016 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
17017 GOVD_FIRSTPRIVATE.
17018 (omp_no_lastprivate): New function.
17019 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
17020 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
17021 notice_outer and set appropriate bits, otherwise make
17022 sure default(none) combined constructs won't complain.
17023 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
17024 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
17025 omp_no_lastprivate either remove the clause or turn it
17026 into OMP_CLAUSE_PRIVATE.
17027 (gimplify_omp_for): Fix up handling of implicit
17028 lastprivate or linear iterators.
17029 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
17030 ORT_COMBINED_TEAMS.
17031 * omp-low.c (lower_omp_for_lastprivate): For combined
17032 for simd use fd.loop.n2 from the for rather than simd.
17033
17034 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17035
17036 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
17037 instead of gen_rtx_raw_REG.
17038 (cris_expand_epilogue): Likewise.
17039 * config/microblaze/microblaze.c (microblaze_classify_address):
17040 Likewise.
17041 * config/sparc/sparc.md: Likewise.
17042
17043 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
17044
17045 * config/alpha/alpha.c (alpha_legitimize_reload_address)
17046 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
17047 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
17048 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
17049 Use CASE_CONST_SCALAR_INT.
17050 (print_operand) <case 'M'>: Use mode_width_operand to check the
17051 value of the constant.
17052 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
17053 * config/alpha/predicates.md (input_operand): Use general_operand
17054 instead of match_code as operand check.
17055 (symbolic_operand): Use match_code with subexpression digits.
17056 * config/alpha/constraints.md (Q): Ditto.
17057
17058 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17059
17060 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
17061
17062 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17063
17064 * config/s390/s390.c (s390_secondary_reload): Fix check for
17065 load/store relative.
17066
17067 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17068
17069 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
17070 alternative_mask to uint64_t.
17071
17072 2015-05-19 Jakub Jelinek <jakub@redhat.com>
17073
17074 PR tree-optimization/66187
17075 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
17076 Pass TYPE_SIGN to tree_int_cst_min_precision. If
17077 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
17078
17079 2015-05-19 David Malcolm <dmalcolm@redhat.com>
17080
17081 * diagnostic.c (diagnostic_report_current_module): Strengthen
17082 local "new_map" from const line_map * to
17083 const line_map_ordinary *.
17084 * genmatch.c (error_cb): Likewise for local "map".
17085 (output_line_directive): Likewise for local "map".
17086 * input.c (expand_location_1): Likewise for local "map".
17087 Pass NULL rather than &map to
17088 linemap_unwind_to_first_non_reserved_loc, since the value is never
17089 read from there, and the value written back not read from here.
17090 (is_location_from_builtin_token): Strengthen local "map" from
17091 const line_map * to const line_map_ordinary *.
17092 (dump_location_info): Strengthen locals "map" from
17093 line_map *, one to const line_map_ordinary *, the other
17094 to const line_map_macro *.
17095 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
17096 const line_map * to const line_map_macro *.
17097 (maybe_unwind_expanded_macro_loc): Add a call to
17098 linemap_check_macro when writing to the "map" field of the
17099 loc_map_pair.
17100 Introduce local const line_map_ordinary * "ord_map", using it in
17101 place of "map" in the part of the function where we know we have
17102 an ordinary map. Strengthen local "m" from const line_map * to
17103 const line_map_ordinary *.
17104
17105 2015-05-19 Nick Clifton <nickc@redhat.com>
17106
17107 PR target/66156
17108 * config/msp430/msp430.md (zero_extendhisi2): Add support for
17109 separate source and destination registers.
17110
17111 2015-05-19 Richard Biener <rguenther@suse.de>
17112
17113 PR tree-optimization/66165
17114 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
17115 for no load permutation.
17116
17117 PR tree-optimization/66185
17118 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
17119 when building the SLP node from scalars.
17120
17121 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
17122 Tristan Gingold <gingold@adacore.com>
17123
17124 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
17125 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
17126 (expand_stack_restore): Call record_new_stack_level.
17127 (expand_stack_save): Do not call do_pending_stack_adjust.
17128 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
17129 * calls.c (expand_call): Call record_new_stack_level for alloca.
17130 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
17131 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
17132 (update_sjlj_context): New global function.
17133 * except.h (update_sjlj_context): Declare.
17134 * explow.c (record_new_stack_level): New global function.
17135 (allocate_dynamic_stack_space): Call record_new_stack_level.
17136 * explow.h (record_new_stack_level): Declare.
17137 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
17138 * cfgrtl.c (duplicate_insn_chain): Likewise.
17139
17140 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17141
17142 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
17143 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
17144 STACK_GROWS_DOWNWARD as normal if.
17145 (expand_call): Likewise.
17146
17147 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
17148
17149 PR target/54236
17150 * config/sh/sh.md (*round_int_even): New insn_and_split and
17151 accompanying new unnamed split.
17152
17153 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17154
17155 * bitmap.c (bitmap_set_range): Handle count==1 specially.
17156 (bitmap_clear_range): Likewise.
17157 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
17158 bitmap_set_range unconditionally.
17159 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
17160 * df-scan.c (df_mark_reg): Likewise.
17161 * haifa-sched.c (setup_ref_regs): Likewise.
17162 * sched-rgn.c (update_live_1): Likewise.
17163
17164 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17165
17166 * regs.h (END_HARD_REGNO): Delete.
17167 (END_REGNO): Move to...
17168 * rtl.h: ...here.
17169 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
17170 * caller-save.c (mark_set_regs): Likewise.
17171 * combine.c (move_deaths, distribute_notes): Likewise.
17172 * cse.c (invalidate, invalidate_for_call): Likewise.
17173 * df-scan.c (df_ref_record): Likewise.
17174 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
17175 (record_last_reg_set_info): Likewise.
17176 * reg-stack.c (convert_regs_exit): Likewise.
17177 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
17178 * resource.c (update_live_status): Likewise.
17179 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
17180
17181 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17182
17183 * rtl.h (reg_info): Add an nregs field.
17184 (REG_NREGS): Use it.
17185 (SET_REGNO_RAW): Delete.
17186 (set_regno_raw): New function.
17187 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
17188 (END_REGNO): Redefine in terms of REG_NREGS.
17189 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
17190 SET_REGNO_RAW.
17191 * emit-rtl.c (set_mode_and_regno): Likewise.
17192 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
17193 instead of SET_REGNO_RAW.
17194
17195 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17196
17197 * rtl.h (PUT_MODE_RAW): New macro.
17198 (PUT_REG_NOTE_KIND): Use it.
17199 (set_mode_and_regno): Declare.
17200 (gen_raw_REG): Change regno to "unsigned int".
17201 (gen_rtx_REG): Change "unsigned" to "unsigned int".
17202 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
17203 use set_mode_and_regno to change the mode of registers.
17204 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
17205 * emit-rtl.c (set_mode_and_regno): New function.
17206 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
17207 * caller-save.c (reg_save_code): Use set_mode_and_regno.
17208 * expr.c (init_expr_target): Likewise.
17209 * ira.c (setup_prohibited_mode_move_regs): Likewise.
17210 * postreload.c (reload_cse_simplify_operands): Likewise.
17211
17212 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17213
17214 * caller-save.c (init_caller_save): Use word_mode and
17215 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
17216 * expr.c (init_expr_target): Likewise.
17217 * ira.c (setup_prohibited_mode_move_regs): Likewise.
17218 * postreload.c (reload_cse_regs_1): Likewise.
17219
17220 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17221
17222 * rtl.def (REG): Change format to "r".
17223 * rtl.h (rtunion): Remove rt_reg.
17224 (reg_info): New structure.
17225 (rtx_def): Add reg field to main union.
17226 (X0REGATTR): Delete.
17227 (REG_CHECK): New macro.
17228 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
17229 * rtl.c (rtx_format): Document "r".
17230 (rtx_code_size): Handle REG specially.
17231 * gengenrtl.c (special_format): Return true for formats
17232 that include 'r'.
17233 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
17234 Deal with REG_ATTRS after the field loop.
17235 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
17236 * expmed.c (init_expmed): Call gen_raw_REG instead of
17237 gen_rtx_raw_REG.
17238 * expr.c (init_expr_target): Likewise.
17239 * regcprop.c (maybe_mode_change): Likewise.
17240 * varasm.c (make_decl_rtl): Likewise.
17241 * final.c (leaf_renumber_regs_insn): Return early after
17242 handling REGs.
17243 * genemit.c (gen_exp): Handle 'r' fields.
17244 * genpeep.c (match_rtx): Likewise.
17245 * gensupport.c (subst_pattern_match): Likewise.
17246 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
17247 (alter_constraints, subst_dup): Likewise.
17248 * read-rtl.c (read_rtx_code): Likewise.
17249 * print-rtl.c (print_rtx): Likewise.
17250 * genrecog.c (find_operand, find_matching_operand): Likewise.
17251 (validate_pattern, match_pattern_2): Likewise.
17252 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
17253 (rtx_test::regno_field): New function.
17254 (operator ==, safe_to_hoist_p, transition_parameter_type)
17255 (parameter_type_string, print_parameter_value)
17256 (print_nonbool_test, print_test): Handle new enum values.
17257 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
17258 * lra-constraints.c (operands_match_p): Likewise.
17259
17260 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17261
17262 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
17263 Change type of new_regno to unsigned int.
17264 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
17265 new_regno to unsigned int.
17266 (df_ref_change_reg_with_loc): Remove old_regno parameter.
17267 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
17268 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
17269 (SET_REGNO_RAW): Add space after ",".
17270
17271 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17272
17273 * rtl.h (REG_NREGS): New macro
17274 * alias.c (record_set): Use it.
17275 * cfgcleanup.c (mark_effect): Likewise.
17276 * combine.c (likely_spilled_retval_1): Likewise.
17277 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
17278 (move_deaths, distribute_notes): Likewise.
17279 * cselib.c (cselib_record_set): Likewise.
17280 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
17281 * df-scan.c (df_mark_reg): Likewise.
17282 * dse.c (look_for_hardregs): Likewise.
17283 * dwarf2out.c (reg_loc_descriptor): Likewise.
17284 (multiple_reg_loc_descriptor): Likewise.
17285 * expr.c (write_complex_part, read_complex_part): Likewise.
17286 (emit_move_complex): Likewise.
17287 * haifa-sched.c (setup_ref_regs): Likewise.
17288 * ira-lives.c (mark_hard_reg_live): Likewise.
17289 * lra.c (lra_set_insn_recog_data): Likewise.
17290 * mode-switching.c (create_pre_exit): Likewise.
17291 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
17292 (reload_combine_recognize_pattern): Likewise.
17293 (reload_combine_note_use, move2add_record_mode): Likewise.
17294 (reload_cse_move2add): Likewise.
17295 * reg-stack.c (subst_stack_regs_pat): Likewise.
17296 * regcprop.c (kill_value, copy_value): Likewise.
17297 (copyprop_hardreg_forward_1): Likewise.
17298 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
17299 (build_def_use): Likewise.
17300 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
17301 (deps_analyze_insn): Likewise.
17302 * sched-rgn.c (check_live_1, update_live_1): Likewise.
17303 * sel-sched.c (count_occurrences_equiv): Likewise.
17304 * valtrack.c (dead_debug_insert_temp): Likewise.
17305
17306 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
17307
17308 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
17309 * dse.c (note_add_store): Likewise.
17310 * ira-lives.c (mark_hard_reg_dead): Likewise.
17311 * loop-invariant.c (mark_reg_store): Likewise.
17312 (mark_reg_death): Likewise.
17313 * postreload.c (reload_combine): Likewise.
17314 (reload_combine_note_store): Likewise.
17315 (reload_combine_note_use): Likewise.
17316 * recog.c (peep2_reg_dead_p): Likewise.
17317
17318 2015-05-19 Alan Modra <amodra@gmail.com>
17319
17320 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
17321 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
17322 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
17323 unused predicates.
17324 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
17325 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
17326 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
17327 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
17328
17329 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
17330
17331 * config/mips/mips.md (JOIN_MODE): New mode iterator.
17332 (join2_load_Store<JOIN_MODE:mode>): New pattern.
17333 (join2_loadhi): Likewise.
17334 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
17335 load-load and store-stores.
17336 * config/mips/mips.opt (mload-store-pairs): New option.
17337 (TARGET_LOAD_STORE_PAIRS): New macro.
17338 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
17339 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
17340 * config/mips/mips.c (mips_load_store_bonding_p): New function.
17341
17342 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
17343
17344 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
17345 explicit swaps.
17346 * dojump.c (do_compare_rtx_and_jump): Likewise.
17347 * expmed.c (emit_store_flag_1): Likewise.
17348 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
17349 * final.c (sprint_ul): Use std::reverse for reversing a string.
17350 * fold-const.c (extract_muldiv_1): Use std::swap.
17351 * genmodes.c (emit_mode_int_n): Likewise.
17352 * ifcvt.c (dead_or_predicable): Likewise.
17353 * ira-build.c (ira_merge_live_ranges): Likewise.
17354 (swap_allocno_copy_ends_if_necessary): Likewise.
17355 * ira.c (ira_setup_alts): Likewise.
17356 * loop-iv.c (iv_analyze_expr): Likewise.
17357 (implies_p): Likewise.
17358 (canon_condition): Likewise.
17359 * lra-constraints.c (swap_operands): Likewise.
17360 * lra-lives.c (lra_merge_live_ranges): Likewise.
17361 * omega.c (swap): Remove.
17362 (bswap): Remove.
17363 (omega_unprotect_1): Use std::swap.
17364 (omega_solve_geq): Likewise.
17365 * optabs.c (expand_binop_directly): Likewise.
17366 (expand_binop): Likewise.
17367 (emit_conditional_move): Likewise.
17368 (emit_conditional_add): Likewise.
17369 * postreload.c (reload_cse_simplify_operands): Likewise.
17370 * reg-stack.c (emit_swap_insn): Likewise.
17371 (swap_to_top): Likewise.
17372 (compare_for_stack_reg): Likewise.
17373 (subst_asm_stack_regs): Likewise.
17374 * reload.c (find_reloads): Likewise.
17375 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
17376 * sel-sched.c (invoke_reorder_hooks): Likewise.
17377 (create_block_for_bookkeeping): Likewise.
17378 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
17379 (lambda_matrix_right_hermite): Use std::swap.
17380 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
17381 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
17382 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
17383 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
17384 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
17385 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
17386 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
17387 * tree-vrp.c (compare_ranges): Likewise.
17388 * var-tracking.c (add_with_sets): Likewise.
17389 (vt_find_locations): Likewise.
17390
17391 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
17392
17393 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
17394 pie executables.
17395 (FBSD_ENDFILE_SPEC): Likewise.
17396 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
17397 config/freebsd-spec.h.
17398 (ENDFILE_SPEC): Likewise.
17399
17400 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
17401 Richard Henderson <rth@redhat.com>
17402
17403 PR target/57032
17404 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
17405 Check for a memory location that is not a reference (using an AND)
17406 to an unaligned location here.
17407 * config/alpha/predicates.md (normal_memory_operand): Remove.
17408
17409 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
17410
17411 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
17412 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
17413
17414 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
17415
17416 * config/mips/mips.c (micromips_globals): New variable.
17417 (mips_set_compression_mode): Save and reinitialize target-dependent
17418 state for microMIPS.
17419
17420 2015-05-18 Martin Liska <mliska@suse.cz>
17421
17422 * dbgcnt.def: Add new counter.
17423 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
17424
17425 2015-05-18 Martin Liska <mliska@suse.cz>
17426
17427 * dbgcnt.def: Sort counters.
17428 * opts.c (common_handle_option): Do not compile if
17429 -fdbg-cnt-list is enabled.
17430
17431 2015-05-18 Tom de Vries <tom@codesourcery.com>
17432
17433 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
17434 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
17435 address operator to va_list operand.
17436 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
17437 unconditionally.
17438 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
17439 operand.
17440 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
17441 * config/s390/s390.c (s390_gimplify_va_arg): Same.
17442 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
17443
17444 2015-05-18 Tom de Vries <tom@codesourcery.com>
17445
17446 * tree-ssa-tail-merge.c: Fix whitespace.
17447
17448 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
17449
17450 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
17451 cortex-a17, and cortex-a17.cortex-a7.
17452
17453 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
17454
17455 PR target/54236
17456 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
17457
17458 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
17459
17460 PR target/66174
17461 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
17462 QImode inner modes for TARGET_AVX512BW. Force mask operand
17463 to a register for AVX512F modes.
17464
17465 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
17466
17467 * toplev.c (emit_debug_global_declarations): Do not output debug info
17468 when doing slim LTO objects.
17469
17470 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
17471
17472 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
17473 odr_types_equivalent_p): Declare.
17474 (odr_type_p): Use gcc_checking_assert.
17475 (type_in_anonymous_namespace_p) Declare.
17476 (type_with_linkage_p): Declare.
17477 * common.opt (Wlto-type-mismatch): New warning.
17478 * ipa-devirt.c (compound_type_base): New function.
17479 (odr_or_derived_type_p): New function.
17480 (odr_types_equivalent_p): New function.
17481 (add_type_duplicate): Simplify.
17482 (type_with_linkage_p): Add hack to prevent false positives on C types
17483 (type_in_anonymous_namespace_p): Likewise.
17484 * tree.c (need_assembler_name_p): Use type_with_linkage.
17485 * tree.h (type_in_anonymous_namespace_p): Remove.
17486 * doc/invoke.texi (-Wlto-type-mismatch): Document
17487
17488 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
17489
17490 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
17491 (verify_type): Verify STRING_FLAG.
17492
17493 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
17494
17495 PR fortran/44054
17496 * tree-pretty-print.c (percent_K_format): Replace locus pointer
17497 with accessor function.
17498 * tree-diagnostic.c (diagnostic_report_current_function): Use
17499 diagnostic_location function.
17500 (maybe_unwind_expanded_macro_loc): Likewise.
17501 (virt_loc_aware_diagnostic_finalizer): Likewise.
17502 (default_tree_printer): Replace locus pointer with accessor function.
17503 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
17504 (diagnostic_set_info_translated): Initialize second location.
17505 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
17506 (diagnostic_show_locus): Handle two locations. Call
17507 diagnostic_print_caret_line.
17508 (diagnostic_print_caret_line): New.
17509 (default_diagnostic_starter): Use diagnostic_location function.
17510 (diagnostic_report_diagnostic): Use diagnostic_location function.
17511 (verbatim): Do not set text.locus.
17512 * diagnostic.h (struct diagnostic_info): Remove location field.
17513 (struct diagnostic_context): Make caret_chars an array of two.
17514 (diagnostic_location): New inline.
17515 (diagnostic_expand_location): Handle two locations.
17516 (diagnostic_same_line): New inline.
17517 (diagnostic_print_caret_line): Declare.
17518 (CARET_LINE_MARGIN): New constant.
17519 * pretty-print.c (pp_printf): Do not set text.locus.
17520 (pp_verbatim): Do not set text.locus.
17521 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
17522 (struct text_info): Replace locus pointer with locations
17523 array. Add accessor functions.
17524
17525 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
17526 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17527
17528 PR target/65768
17529 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
17530 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
17531 large constants in register instead of splitting them.
17532
17533 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
17534
17535 PR target/66140
17536 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
17537 replacements in memory addresses.
17538 (get_unaligned_address): Ditto.
17539
17540 2015-05-16 James Bowman <james.bowman@ftdichip.com>
17541
17542 * config/ft32/*: New files for FT32 port.
17543 * doc/install.texi: Add FT32 information.
17544 * doc/invoke.texi: Add FT32 information.
17545 * doc/md.texi: Add FT32 information.
17546 * doc/contrib.texi: Self added.
17547
17548 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
17549
17550 PR tree-optimization/64454
17551 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
17552 (-1 - A -> ~A): Remove unnecessary condition.
17553
17554 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
17555
17556 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
17557 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
17558 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
17559
17560 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
17561
17562 * ipa-chkp.h (chkp_wrap_function): New.
17563 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
17564 (chkp_wrap_function_name): New.
17565 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
17566 to get wrapper name.
17567 * lto-cgraph.c: Include ipa-chkp.h.
17568 (input_cgraph_1): Avoid alias chain for wrappers.
17569
17570 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
17571
17572 PR middle-end/66134
17573 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
17574 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
17575
17576 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17577
17578 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
17579 (AARCH64_FL_SLOWMUL): Delete.
17580 (AARCH64_FL_CRC): Redefine to 1<<3.
17581 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
17582
17583 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17584
17585 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
17586 casting.
17587
17588 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
17589
17590 * config/alpha/alpha.md (extendqidi2): Use general_operand
17591 instead of some_operand for operand[1] predicate.
17592 (extendhidi2): Ditto.
17593 (cbranchdi4): Use general_operand instead of some_operand
17594 for operand[1] and operands[2] predicates.
17595 (cstoredi4): Ditto.
17596 * config/alpha/predicates.md (some_operand): Remove unused predicate.
17597 (some_ni_operand): Ditto.
17598
17599 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
17600
17601 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
17602 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
17603 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
17604 low part of the constant using alpha_emit_set_const_1.
17605 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
17606
17607 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
17608
17609 * varasm.c (output_constant_pool_1): Pass down alignment from
17610 constant pool entry's descriptor to output_constant_pool_2.
17611 (output_object_block): Add comment prior to call to
17612 output_constant_pool_1.
17613
17614 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
17615
17616 PR rtl-optimization/65862
17617 * target.def (ira_change_pseudo_allocno_class): New hook.
17618 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
17619 value of the hook.
17620 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
17621 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
17622 hook.
17623 * ira-costs.c (find_costs_and_classes): Call the hook and change
17624 classes when it is necessary.
17625 * doc/tm.texi: Update.
17626
17627 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
17628
17629 * config/i386/i386.md (sibcall_memory): Check that register with
17630 callee address is not also used as one of the arguments, instead
17631 of checking that it is not live after the sibcall.
17632 (sibcall_pop_memory): Ditto.
17633 (sibcall_value_memory): Ditto.
17634 (sibcall_value_pop_memory): Ditto.
17635
17636 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
17637
17638 * generic-match-head.c (types_match): Handle non-types.
17639 * gimple-match-head.c (types_match): Likewise.
17640 * match.pd: Remove unnecessary TREE_TYPE for types_match.
17641
17642 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
17643
17644 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
17645 (csneg3<mode>_insn): Enable expansion of pattern.
17646
17647 2015-05-14 Nick Clifton <nickc@redhat.com>
17648
17649 * config/rl78/rl78.c (rl78_select_section): Select the correct
17650 default section based upon the category of the decl.
17651
17652 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
17653
17654 PR rtl-optimization/30967
17655 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
17656 destination mode for the cost of scc patterns.
17657
17658 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
17659
17660 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
17661 using SWIM248 mode iterator.
17662 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
17663 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
17664 for operand[2] constraint.
17665 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
17666
17667 2015-05-13 Jakub Jelinek <jakub@redhat.com>
17668
17669 PR middle-end/66133
17670 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
17671 make sure it is never noreturn, even when the task body does not
17672 return.
17673 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
17674 right before GIMPLE_OMP_RETURN.
17675 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
17676 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
17677 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
17678
17679 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17680
17681 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
17682 * tree-ssa-math-opts.c: Include params.h
17683 (pow_synth_sqrt_info): New struct.
17684 (representable_as_half_series_p): New function.
17685 (get_fn_chain): Likewise.
17686 (print_nested_fn): Likewise.
17687 (dump_fractional_sqrt_sequence): Likewise.
17688 (dump_integer_part): Likewise.
17689 (expand_pow_as_sqrts): Likewise.
17690 (gimple_expand_builtin_pow): Use above to attempt to expand
17691 pow as series of square roots. Removed now unused variables.
17692
17693 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
17694
17695 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
17696 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
17697 Remove *p0 and *p1 arguments. Rewrite function.
17698 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
17699 (alpha_split_const_mov): Update calls to alpha_extract_integer and
17700 alpha_emit_set_long_const.
17701 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
17702 (alpha_output_mi_thunk_osf): Ditto.
17703 * config/alpha/alpha.md (movti): Do not check operands[1]
17704 for CONST_DOUBLE.
17705
17706 2015-05-13 Richard Biener <rguenther@suse.de>
17707
17708 PR tree-optimization/66129
17709 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
17710 commutative.
17711 (vect_schedule_slp_instance): Fix typo.
17712
17713 2015-05-13 David Malcolm <dmalcolm@redhat.com>
17714
17715 * common.opt (fdump-internal-locations): New option.
17716 * input.c: Include diagnostic-core.h.
17717 (get_end_location): New function.
17718 (write_digit): New function.
17719 (write_digit_row): New function.
17720 (dump_location_range): New function.
17721 (dump_labelled_location_range): New function.
17722 (dump_location_info): New function.
17723 * input.h (dump_location_info): New prototype.
17724 * toplev.c (compile_file): Handle flag_dump_locations.
17725
17726 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
17727
17728 * gimple-expr.h (is_gimple_constant): Reorder.
17729 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
17730
17731 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
17732
17733 * combine.c (simplify_set): When generating a CC set, if the
17734 source already is in the correct mode, do not wrap it in a
17735 compare. Simplify the rest of that code.
17736
17737 2015-05-13 Richard Biener <rguenther@suse.de>
17738
17739 PR tree-optimization/66123
17740 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
17741 a taken edge.
17742
17743 2015-05-13 Richard Biener <rguenther@suse.de>
17744
17745 PR middle-end/66110
17746 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
17747 specially.
17748 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
17749
17750 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
17751
17752 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
17753 * aclocal.m4: Regenerated with automake-1.11.6.
17754
17755 2015-05-13 Tom de Vries <tom@codesourcery.com>
17756
17757 PR tree-optimization/66010
17758 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
17759 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
17760 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
17761 and rval based on do_deref.
17762
17763 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
17764
17765 PR target/65103
17766 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
17767 link time constants into adress expressions and therefore set
17768 their cost to 0.
17769
17770 2015-05-13 Jakub Jelinek <jakub@redhat.com>
17771
17772 PR target/66112
17773 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
17774 Use SWI248 iterator instead of SWI.
17775 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
17776 Use eq_attr "alternative" "0" instead of match_test in
17777 length_immediate attribute computation.
17778 (*mulvhi4, *mulvhi4_1): New define_insns.
17779
17780 PR target/66112
17781 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
17782 SIGNED to get precision of non-negative value.
17783
17784 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
17785
17786 PR target/66048
17787 * function.c (diddle_return_value_1): Process bounds first.
17788 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
17789 register.
17790
17791 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
17792
17793 PR rtl-optimization/64616
17794 * loop-invariant.c (can_move_invariant_reg): New.
17795 (move_invariant_reg): Call above new function to decide whether
17796 instruction can just be moved, skipping creation of temporary
17797 register.
17798
17799 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
17800
17801 PR target/pr66047.c
17802 * i386.c (ix86_function_sseregparm): Only return -1 if local function
17803 with implied regparm is called from -mno-sse function.
17804 (init_cumulative_args): Output error if ix86_function_sseregparm
17805 return -1 and SSE register would be needed.
17806 (function_arg_advance_32): Likewise.
17807 (function_arg_32): Likewise.
17808 * i386.h (ix86_args): Add decl field.
17809
17810 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
17811
17812 PR ipa/65873
17813 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
17814 inlines across optimization boundary.
17815
17816 2015-05-12 Jason Merrill <jason@redhat.com>
17817
17818 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
17819 string literal and macro name.
17820
17821 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
17822
17823 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
17824 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
17825 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
17826
17827 2015-05-12 David Malcolm <dmalcolm@redhat.com>
17828
17829 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
17830 (-Wmisleading-indentation): New option.
17831 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
17832
17833 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
17834
17835 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
17836 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
17837 (alpha_extract_integer): Ditto.
17838 (alpha_legitimate_constant_p): Ditto.
17839 (alpha_split_tmode_pair): Ditto.
17840 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
17841 (alpha_expand_mov): Ditto.
17842 (print_operand): Remove handling of 'H' modifier.
17843 <case 'm'>: Remove CONST_DOUBLE handling.
17844 (summarize_insn): Handle CONST_WIDE_INT.
17845 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
17846 (anddi3): Ditto.
17847 (movti): Handle CONST_WIDE_INT.
17848 * config/alpha/constraints.md ('H'): Remove constraint definition.
17849 ('G'): Do not match MODE_FLOAT class.
17850 * config/alpha/predicates.md (const0_operand): Also match
17851 const_wide_int.
17852 (non_add_const_operand): Ditto.
17853 (non_zero_const_operand): Ditto.
17854 (some_operand): Ditto.
17855 (input_operand): Ditto. Handle CONST_WIDE_INT.
17856 (and_operand): Do not match const_double.
17857 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
17858
17859 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
17860
17861 PR target/65697
17862 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
17863 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
17864 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
17865 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
17866 is_mm_seq_cst, is_mm_sync): New accessor functions.
17867 * builtins.c (expand_builtin_sync_operation,
17868 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
17869 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
17870 (get_memmodel, expand_builtin_atomic_compare_exchange,
17871 expand_builtin_atomic_load, expand_builtin_atomic_store,
17872 expand_builtin_atomic_clear): Use new accessor routines.
17873 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
17874 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
17875 (maybe_emit_sync_lock_test_and_set): Use new accessors and
17876 MEMMODEL_SYNC_ACQUIRE.
17877 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
17878 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
17879 expand_atomic_store): Use new accessors.
17880 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
17881 * tsan.c (instrument_builtin_call): Update check for memory model beyond
17882 final enum to use MEMMODEL_LAST.
17883 * c-family/c-common.c: Use new accessor for memmodel_base.
17884 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
17885 accessors.
17886 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
17887 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
17888 mem_thread_fence, *dmb): Likewise.
17889 * config/alpha/alpha.c (alpha_split_compare_and_swap,
17890 alpha_split_compare_and_swap_12): Likewise.
17891 * config/arm/arm.c (arm_expand_compare_and_swap,
17892 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
17893 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
17894 atomic_loaddi): Likewise.
17895 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
17896 Likewise.
17897 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
17898 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
17899 use new accessors.
17900 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
17901 atomic_store<mode>, atomic_compare_and_swap<mode>,
17902 atomic_exchange<mode>): Use new accessors.
17903 * config/mips/mips.c (mips_process_sync_loop): Likewise.
17904 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
17905 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
17906 rs6000_post_atomic_barrier): Add new cases.
17907 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
17908 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
17909 (atomic_load<mode>): Add new cases and use new accessors.
17910 (store_quadpti): Add new cases.
17911 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
17912 accessors.
17913 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
17914 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
17915 model, not 8.
17916
17917 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
17918
17919 * ipa-devirt.c (type_with_linkage_p): New function.
17920 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
17921 type has linkage.
17922 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
17923 (can_be_name_hashed_p): Simplify.
17924 (hash_odr_name): Check that type has linkage before checking if it is
17925 anonymous.
17926 (types_same_for_odr): Likewise.
17927 (odr_name_hasher::equal): Likewise.
17928 (odr_subtypes_equivalent_p): Likewise.
17929 (warn_types_mismatch): Likewise.
17930 (get_odr_type): Likewise.
17931 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
17932 * ipa-utils.h (odr_type_p): Move offline.
17933 * tree.c (need_assembler_name_p): Fix handling of types
17934 without linkages.
17935 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
17936
17937 2015-05-12 David Malcolm <dmalcolm@redhat.com>
17938
17939 * timevar.c (timevar_enable): Delete in favor of...
17940 (g_timer): New global.
17941 (struct timevar_def): Move to timevar.h inside class timer.
17942 (struct timevar_stack_def): Likewise.
17943 (timevars): Delete global in favor of field "m_timevars" within
17944 class timer in timevar.h
17945 (stack): Likewise, in favor of field "m_stack".
17946 (unused_stack_instances): Likewise, in favor of field
17947 "m_unused_stack_instances".
17948 (start_time): Likewise, in favor of field "m_start_time".
17949 (get_time): Eliminate check for timevar_enable.
17950 (timer::timer): New function, built from part of timevar_init.
17951 (timevar_init): Rewrite idempotency test from using
17952 "timevar_enable" bool to using dynamic allocation of "g_timer".
17953 Move rest of implementation into timer's constructor.
17954 (timevar_push_1): Rename to...
17955 (timer::push): ...this, adding "m_" prefixes to variables that
17956 are now fields of timer.
17957 (timevar_pop_1): Likewise, rename to...
17958 (timer::pop): ...this, and add "m_" prefixes.
17959 (timevar_start): Replace test for "timevar_enable" with one for
17960 "g_timer", and move bulk of implementation to...
17961 (timer::start): ...here, adding "m_" prefixes.
17962 (timevar_stop): Likewise, from here...
17963 (timer::stop): ...to here.
17964 (timevar_cond_start): Likewise, from here...
17965 (timer::cond_start): ...to here.
17966 (timevar_cond_stop): Likewise, from here...
17967 (timer::cond_stop): ...to here.
17968 (validate_phases): Rename to...
17969 (timer::validate_phases): ...this, and add "m_" prefixes. Make
17970 locals "total" and "tv" const.
17971 (timevar_print): Rename to...
17972 (timer::print): ...this, and add "m_" prefixes. Make locals
17973 "total" and "tv" const. Eliminate test for timevar_enable.
17974 * timevar.h (timevar_enable): Eliminate.
17975 (g_timer): New declaration.
17976 (timevar_push_1): Eliminate.
17977 (timevar_pop_1): Eliminate.
17978 (timevar_print): Eliminate.
17979 (class timer): New class.
17980 (timevar_push): Rewrite to use g_timer.
17981 (timevar_pop): Likewise.
17982 * toplev.c (toplev::~toplev): Likewise.
17983
17984 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
17985
17986 * arm-protos.h (arm_sched_autopref): Delete.
17987 (tune_params): Re-organize, use enums for flag values.
17988 (FUSE_OPS): New macro.
17989 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
17990 (ARM_PREFETCH_BENEFICIAL): Likewise.
17991 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
17992 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
17993 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
17994 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
17995 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
17996 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
17997 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
17998 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
17999 format.
18000 (arm_option_override, thumb2_reorg, arm_print_tune_info)
18001 (aarch_macro_fusion_pair_p): Update uses of current_tune.
18002 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
18003
18004 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
18005
18006 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
18007 "break".
18008
18009 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
18010 Sandra Loosemore <sandra@codesourcery.com>
18011
18012 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
18013 value.
18014 (REG_CLASS_NAMES): Add "IJMP_REGS".
18015 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
18016 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
18017 use new "c" register constraint.
18018 * config/nios2/constraint.md (c): New register constraint
18019 corresponding to IJMP_REGS.
18020
18021 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18022
18023 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
18024 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
18025 define_splits): Delete, revamp, transmogrify into ...
18026 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
18027 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
18028 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
18029 New.
18030
18031 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18032
18033 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
18034 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
18035
18036 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18037
18038 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
18039 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
18040 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
18041 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
18042 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
18043 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
18044 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
18045 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
18046 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
18047 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18048 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
18049 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
18050 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
18051 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
18052 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
18053 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
18054 and 30 corresponding splitters): Delete.
18055
18056 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18057
18058 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
18059 zero_extract.
18060
18061 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18062
18063 * combine.c (recog_for_combine_1): New function, factored out
18064 from recog_for_combine.
18065 (change_zero_ext): New function.
18066 (recog_for_combine): If recog fails, try again with the pattern
18067 modified by change_zero_ext; if that still fails, restore the
18068 pattern.
18069
18070 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
18071
18072 * combine.c (get_undo_marker): New function.
18073 (undo_to_marker): New function, largely factored out from ...
18074 (undo_all): ... this. Adjust.
18075
18076 2015-05-12 Richard Biener <rguenther@suse.de>
18077
18078 PR tree-optimization/66101
18079 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
18080 fixup if we turn a loop exit edge to a fallthru edge.
18081
18082 2015-05-12 Richard Biener <rguenther@suse.de>
18083
18084 PR tree-optimization/37021
18085 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
18086 (SLP_TREE_TWO_OPERATORS): New define.
18087 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
18088 SLP_TREE_TWO_OPERATORS.
18089 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
18090 SLP node.
18091 (vect_build_slp_tree): Adjust.
18092 (vect_analyze_slp_cost_1): Likewise.
18093 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
18094 emitting two vector stmts and mixing the results.
18095
18096 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
18097
18098 * call.c (print_z_candidates): Remove dead code.
18099
18100 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18101
18102 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
18103 and zEC12_simple_fp.
18104 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
18105 to 1.
18106
18107 2015-05-12 Tom de Vries <tom@codesourcery.com>
18108
18109 PR tree-optimization/66010
18110 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
18111 ifn_va_arg.
18112 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
18113 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
18114 va_lists are passed, and remove corresponding handling.
18115 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
18116 do_deref argument to ifn_va_arg.
18117 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
18118 ifn_va_arg.
18119
18120 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18121
18122 PR target/65955
18123 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
18124 REG before taking its REGNO.
18125
18126 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
18127
18128 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
18129 rsp->sign_bit_copies and rsp->nonzero_bits into ...
18130 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
18131 present to get more accurate information about the number of sign bit
18132 copies and non zero bits.
18133
18134 2015-05-12 Richard Biener <rguenther@suse.de>
18135
18136 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
18137 do not allow unrolling.
18138
18139 2015-05-11 Richard Henderson <rth@redhat.com>
18140
18141 * config/i386/i386-modes.def (CCP): New.
18142 * config/i386/i386.c (put_condition_code): Handle it.
18143 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
18144
18145 2015-05-11 Richard Henderson <rth@redhat.com>
18146
18147 * target.def (md_asm_clobbers): Replace with...
18148 (md_asm_adjust): this.
18149 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
18150 (TARGET_MD_ASM_ADJUST): New.
18151 * tm.texi: Rebuild.
18152 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
18153 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
18154 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
18155
18156 * cfgexpand.c (check_operand_nalternatives): Accept vector of
18157 constraints instead of lists of outputs and inputs.
18158 (expand_asm_stmt): Save and restore input_location around the
18159 body of the function. Move asm data into vectors instead of
18160 building tree lists. Generate cleanup sequences as needed,
18161 rather than waiting til the end. Use new md_asm_adjust hook.
18162
18163 * config/vxworks.c: Include vec.h before target.h.
18164 * gimple.c: Likewise.
18165 * incpath.c: Likewise.
18166 * mode-switching.c: Likewise.
18167
18168 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
18169 (cris_md_asm_adjust): this.
18170 (TARGET_MD_ASM_CLOBBERS): Remove.
18171 (TARGET_MD_ASM_ADJUST): New.
18172 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
18173 (ix86_md_asm_adjust): this.
18174 (TARGET_MD_ASM_CLOBBERS): Remove.
18175 (TARGET_MD_ASM_ADJUST): New.
18176 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
18177 (mn10300_md_asm_adjust): this.
18178 (TARGET_MD_ASM_CLOBBERS): Remove.
18179 (TARGET_MD_ASM_ADJUST): New.
18180 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
18181 (rs6000_md_asm_adjust): this.
18182 (TARGET_MD_ASM_CLOBBERS): Remove.
18183 (TARGET_MD_ASM_ADJUST): New.
18184 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
18185 (visium_md_asm_adjust): this.
18186 (TARGET_MD_ASM_CLOBBERS): Remove.
18187 (TARGET_MD_ASM_ADJUST): New.
18188
18189 2015-05-11 Richard Henderson <rth@redhat.com>
18190
18191 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
18192 if noutputs is zero.
18193 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
18194
18195 * cfgexpand.c (expand_asm_operands): Merge into...
18196 (expand_asm_stmt): ... here.
18197
18198 * cfgexpand.c (expand_asm_operands): Don't call
18199 resolve_asm_operand_names.
18200 * stmt.c (resolve_asm_operand_names): Clarify block comment.
18201
18202 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
18203
18204 * dwarf2out.c (gen_member_die): Sanity check that we access
18205 TYPE_MAIN_VARIANT for TYPE_METHODS.
18206 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
18207 checking TYPE_METHODS.
18208 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
18209 if non-null.
18210 (build_distinct_type_copy): Clear TYPE_METHODS.
18211 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
18212 (verify_type): Allow TYPE_METHODS to be error_mark_node.
18213 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
18214
18215 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
18216
18217 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
18218 (emit_pattern_before_setloc): Likewise.
18219
18220 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
18221
18222 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
18223 for define_peephole2s.
18224 (get_peephole2_pattern): New function.
18225 (main): Use it. Call validate_pattern.
18226
18227 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18228
18229 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
18230 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
18231 (Last callee saved reg is different for AVR_TINY architecture)
18232
18233 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
18234
18235 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
18236 when looking for memory references.
18237
18238 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
18239
18240 PR target/65753
18241 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
18242 via function pointers.
18243
18244 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
18245
18246 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
18247 indirect call by forcing address into a pseudo with -fno-plt.
18248 * common.opt (flag_plt): New option.
18249 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
18250 ([-fno-plt]): Document.
18251
18252 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
18253
18254 PR bootstrap/66105
18255 * config/rs6000/option-defaults.h: Add space between string literal
18256 and macro name.
18257
18258 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
18259
18260 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
18261 accross ARM targets.
18262
18263 2015-05-11 Christian Bruel <christian.bruel@st.com>
18264
18265 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
18266 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
18267
18268 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
18269
18270 PR rtl-optimization/66076
18271 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
18272 Don't grow the heap array if it is already big enough from a
18273 previous iteration.
18274
18275 2015-05-11 Christian Bruel <christian.bruel@st.com>
18276
18277 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
18278 (is_called_in_ARM_mode): Remove.
18279 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
18280 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
18281 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
18282 arm_declare_function_name.
18283
18284 2015-05-11 Christian Bruel <christian.bruel@st.com>
18285
18286 * config/arm/arm.c (arm_option_override): Reoganized and split into :
18287 (arm_option_params_internal); New function.
18288 (arm_option_check_internal): New function.
18289 (arm_option_override_internal): New function.
18290 (thumb_code, thumb1_code): Remove.
18291 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
18292 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
18293 (thumb_code, thumb1_code): Remove.
18294 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
18295
18296 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
18297
18298 * config/alpha/alpha.c (alpha_emit_set_const_1)
18299 (alpha_emit_set_long_const, alpha_extract_integer)
18300 (alpha_legitimate_constant_p, alpha_split_const_mov)
18301 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
18302 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
18303 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
18304 HOST_WIDE_INT_1U.
18305 * config/alpha/predicates.md (mode_mask_operand): Do not match
18306 const_double RTX.
18307 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
18308 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
18309 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
18310 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
18311 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
18312
18313 2015-05-11 Jakub Jelinek <jakub@redhat.com>
18314
18315 PR target/65780
18316 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
18317 default_binds_local_p_2.
18318 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
18319 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
18320
18321 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18322
18323 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
18324
18325 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18326
18327 Patch by Richard Biener
18328 * coverage.c (coverage_obj_init): Delay building of type variant
18329 until the type is finished.
18330
18331 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18332
18333 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
18334 mismatch between C and C++ type; compoare correctly ARG_TYPES
18335 for non-prototypes and output correctly parameter index for METHOD_TYPE.
18336 (odr_types_equivalent_p): Fix wording of warning about attributes;
18337 it is OK to match prototype and non-prototype.
18338
18339 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18340
18341 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
18342 TYPE_ARG_TYPES list.
18343 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
18344 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
18345
18346 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
18347
18348 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
18349 * tree.h (is_lang_specific): Constify.
18350
18351 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
18352
18353 PR tree-optimization/64454
18354 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
18355 Rewrite.
18356
18357 2015-05-08 Jason Merrill <jason@redhat.com>
18358
18359 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
18360 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
18361 config/darwin.h, config/darwin9.h, config/elfos.h,
18362 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
18363 config/microblaze/microblaze.h, config/mips/mips.h,
18364 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
18365 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
18366 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
18367 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
18368 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
18369 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
18370 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
18371 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
18372 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
18373 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
18374 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
18375 between string literal and macro name.
18376
18377 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18378
18379 * jump.c: Change argument types to rtx_insn *.
18380 * rtl.h: Adjust.
18381
18382 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18383
18384 * lra-constraints.c: Change argument type to rtx_insn *.
18385
18386 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18387
18388 * df-problems.c: Change argument type to rtx_insn *.
18389
18390 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18391
18392 * combine.c: Change argument type to rtx_insn *.
18393
18394 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18395
18396 * rtl.h: Adjust.
18397 * rtlanal.c: Change argument type to rtx_insn *.
18398
18399 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18400
18401 * sched-deps.c: Change argument types to rtx_insn *.
18402 * sched-int.h: Adjust.
18403
18404 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18405
18406 * dwarf2cfi.c: Change argument type to rtx_insn *.
18407
18408 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18409
18410 * ira.c (decrease_live_ranges_number): Changetype of local
18411 variable to rtx_insn *.
18412 * recog.c: Change argument types to rtx_insn *.
18413 * recog.h: Adjust.
18414
18415 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18416
18417 * reorg.c: Change argument types to rtx_insn *.
18418
18419 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18420
18421 * ira-color.c: Change argument types to rtx_insn *.
18422 * lra-eliminations.c: Likewise.
18423 * ira.h: Adjust.
18424
18425 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18426
18427 * gcse.c: Change argument types to rtx_insn *.
18428
18429 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18430
18431 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
18432
18433 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18434
18435 * emit-rtl.c (emit_debug_insn_before): Change argument type to
18436 rtx_insn *.
18437 * rtl.h: Adjust.
18438
18439 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18440
18441 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
18442 * rtl.h: Adjust.
18443
18444 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18445
18446 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
18447 * rtl.h: Adjust.
18448
18449 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18450
18451 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
18452 * rtl.h: Adjust.
18453
18454 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18455
18456 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
18457 * rtl.h: Adjust.
18458
18459 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18460
18461 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
18462 to rtx_insn *.
18463 * rtl.h: Adjust.
18464
18465 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18466
18467 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
18468 to rtx_insn *.
18469 * rtl.h: Likewise.
18470
18471 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18472
18473 * except.c (can_nonlocal_goto): Change type of argument to
18474 rtx_insn *.
18475 * rtl.h: Adjust.
18476
18477 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18478
18479 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
18480 * rtl.h: Adjust.
18481
18482 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18483
18484 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
18485 * cfgrtl.c (can_delete_label_p): Adjust.
18486 * rtl.h: likewise.
18487
18488 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18489
18490 * reorg.c (stop_search_p): Change argument to rtx_insn *.
18491
18492 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18493
18494 * except.c (make_reg_eh_region_note): Change argument to
18495 rtx_insn *.
18496 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
18497 * except.h: Adjust.
18498
18499 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18500
18501 * mode-switching.c (commit_mode_sets): Change type of local
18502 variable from rtx to rtx_insn *.
18503
18504 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
18505
18506 * doc/install.texi (--enable-languages): Add missing jit and lto info.
18507 Add ^ to grep command.
18508 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
18509 arg to last gimple_simplify declaration. Add missing gimple_build
18510 declaration for built-in function case with four tree args.
18511
18512 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
18513 Szabolcs Nagy <szabolcs.nagy@arm.com>
18514
18515 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
18516 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
18517 (GNU_USER_DYNAMIC_LINKERN32): Update.
18518
18519 2015-05-08 Richard Biener <rguenther@suse.de>
18520
18521 PR tree-optimization/66036
18522 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18523 Handle strided group loads.
18524 (vect_verify_datarefs_alignment): Likewise.
18525 (vect_enhance_data_refs_alignment): Likewise.
18526 (vect_analyze_group_access): Likewise.
18527 (vect_analyze_data_ref_access): Likewise.
18528 (vect_analyze_data_ref_accesses): Likewise.
18529 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
18530 (vectorizable_load): Likewise.
18531
18532 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
18533
18534 * config/rs6000/rs6000.md: Require operand inequality in one
18535 of the peepholes.
18536
18537 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
18538 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
18539
18540 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
18541 from (set ...).
18542 * config/rx/rx.md (movdi, movdf): Likewise.
18543 Likewise for define_peephole2s.
18544
18545 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
18546
18547 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
18548 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
18549 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
18550 vtst_u64): Rewrite using gcc vector extensions.
18551
18552 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
18553
18554 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
18555 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
18556
18557 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
18558
18559 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
18560
18561 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
18562
18563 * config/glibc-stdint.h (OPTION_MUSL): Define.
18564 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
18565 Change the definition based on OPTION_MUSL for 64 bit targets.
18566 * config/linux.h (OPTION_MUSL): Redefine.
18567 * config/alpha/linux.h (OPTION_MUSL): Redefine.
18568 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
18569 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
18570
18571 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
18572 Szabolcs Nagy <szabolcs.nagy@arm.com>
18573
18574 * config.gcc (LIBC_MUSL): New tm_defines macro.
18575 * config/linux.h (OPTION_MUSL): Define.
18576 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
18577 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
18578 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
18579 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
18580 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
18581 * config/linux.opt (mmusl): New option.
18582 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
18583 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
18584 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
18585 * configure: Regenerate.
18586
18587 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
18588 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18589
18590 PR target/48904
18591 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
18592 * config/i386/knetbsd-gnu64.h: New file.
18593
18594 2015-05-08 Marek Polacek <polacek@redhat.com>
18595
18596 PR c/64918
18597 * doc/invoke.texi: Document -Woverride-init-side-effects.
18598
18599 2015-05-07 Marek Polacek <polacek@redhat.com>
18600
18601 PR c/65179
18602 * doc/invoke.texi: Document -Wshift-negative-value.
18603
18604 2015-05-06 Aditya Kumar <hiraditya@msn.com>
18605
18606 * gcov-tool.c (do_merge): Refactore to remove int ret.
18607 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
18608 !type == FUNC to type != FUNC.
18609 * reload.h (struct target_reload): Changee to type of
18610 x_spill_indirect_levels from bool to unsigned char.
18611
18612 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
18613
18614 * rtl.h (always_void_p): New function.
18615 * gengenrtl.c (always_void_p): Likewise.
18616 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
18617 with code foo are always VOIDmode.
18618 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
18619 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
18620 compare-elim.c, config/aarch64/aarch64.c,
18621 config/aarch64/aarch64.md, config/alpha/alpha.c,
18622 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
18623 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
18624 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
18625 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
18626 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
18627 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
18628 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
18629 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
18630 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
18631 config/ia64/vect.md, config/iq2000/iq2000.c,
18632 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
18633 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
18634 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
18635 config/mep/mep.c, config/microblaze/microblaze.c,
18636 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
18637 config/mn10300/mn10300.c, config/msp430/msp430.c,
18638 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
18639 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
18640 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
18641 config/rs6000/altivec.md, config/rs6000/rs6000.c,
18642 config/rs6000/rs6000.md, config/rs6000/vector.md,
18643 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
18644 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
18645 config/sh/sh.md, config/sh/sh_treg_combine.cc,
18646 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
18647 config/spu/spu.md, config/stormy16/stormy16.c,
18648 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
18649 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
18650 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
18651 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
18652 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
18653 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
18654 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
18655 var-tracking.c: Update calls accordingly.
18656
18657 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
18658
18659 PR middle-end/192
18660 PR middle-end/54303
18661 * varasm.c (function_mergeable_rodata_prefix): New function.
18662 (mergeable_string_section): Use it.
18663 (mergeable_constant_section): Use it.
18664
18665 2015-05-07 Jeff Law <law@redhat.com>
18666
18667 PR target/39726
18668 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
18669 simplifier to narrow arithmetic.
18670 * generic-match-head.c: (types_match, single_use): New functions.
18671 * gimple-match-head.c: (types_match, single_use): New functions.
18672
18673 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
18674
18675 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
18676 rtx type.
18677
18678 2015-05-07 Richard Biener <rguenther@suse.de>
18679
18680 PR tree-optimization/66002
18681 * passes.def: Schedule another pass_merge_phi after ifcombine, right
18682 before phiopt.
18683
18684 2015-05-07 Marek Polacek <polacek@redhat.com>
18685 Martin Uecker <uecker@eecs.berkeley.edu>
18686
18687 * doc/invoke.texi: Document -fsanitize=bounds-strict.
18688 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
18689 into SANITIZE_NONDEFAULT.
18690 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
18691
18692 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
18693
18694 PR target/66015
18695 * config/alpha/alpha.c (alpha_override_options_after_change): New.
18696 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
18697 (alpha_override_options): Move align_loops, align_jumps and
18698 align_functions handling into alpha_override_options_after_change.
18699
18700 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
18701 Chris Jones <chrisj@nvidia.com>
18702 Joshua Conner <jconner@nvidia.com>
18703
18704 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
18705 linking of crtfastmath.o.
18706 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
18707
18708 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
18709
18710 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
18711 (cstore<mode>4_unsigned_imm): New expander.
18712 (cstore<mode>4): Remove empty constraint strings. Use the new
18713 expanders.
18714
18715 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
18716
18717 PR target/64208
18718 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
18719 alternatives.
18720
18721 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
18722
18723 * config/aarch64/geniterators.sh: Use standard BRE in sed.
18724
18725 2015-05-06 Alan Modra <amodra@gmail.com>
18726
18727 PR target/66033
18728 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
18729 (UNSPEC_NOP): Define.
18730 (reload_vsx_from_gpr<mode>): Add missing DONE.
18731 (reload_gpr_from_vsx<mode>): Likewise.
18732 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
18733 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
18734
18735 2015-05-06 Christian Bruel <christian.bruel@st.com>
18736
18737 PR target/66015
18738 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
18739 align_jumps, align_functions into aarch64_override_options_after_change.
18740
18741 2015-05-06 Richard Biener <rguenther@suse.de>
18742
18743 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
18744 vect_transform_slp_perm_load to check if we support a permutation
18745 for basic-block vectorization.
18746
18747 2015-05-06 Nick Clifton <nickc@redhat.com>
18748
18749 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
18750 used, even if it is not being used as a frame pointer.
18751
18752 2015-05-05 Jason Merrill <jason@redhat.com>
18753
18754 * dwarf2out.c (gen_member_die): Don't emit anything for an
18755 anonymous class constructor.
18756
18757 2015-05-05 David Malcolm <dmalcolm@redhat.com>
18758
18759 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
18760 that it reflects the block structure.
18761 (afdo_propagate_edge): Likewise.
18762 (afdo_calculate_branch_prob): Likewise.
18763 (afdo_annotate_cfg): Likewise.
18764 * cfgcleanup.c (equal_different_set_p): Likewise.
18765 (try_crossjump_to_edge): Likewise.
18766 * cgraph.c (cgraph_node::verify_node): Likewise.
18767 * cgraphunit.c (expand_all_functions): Likewise.
18768 * config/i386/i386.c (ix86_expand_copysign): Likewise.
18769 (exact_dependency_1): Likewise.
18770 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
18771 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
18772 * gensupport.c (process_define_subst): Likewise.
18773 * lto-wrapper.c (merge_and_complain): Likewise.
18774 * tree-if-conv.c (if_convertible_bb_p): Likewise.
18775 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
18776 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
18777 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
18778 * tree-vect-loop.c (vectorizable_reduction): Likewise.
18779 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
18780 * tree-vect-stmts.c (vectorizable_shift): Likewise.
18781 * tree-vrp.c (vrp_finalize): Likewise.
18782 * tree.c (variably_modified_type_p): Likewise.
18783
18784 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
18785
18786 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
18787 on darwin12 and later.
18788 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
18789 file to pass -rdynamic on darwin12 and later.
18790 * config/darwin.opt (rdynamic): Add.
18791
18792 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
18793
18794 * doc/extend.texi (C Extensions): Update menu for moved Variable
18795 Attributes and Type Attributes sections.
18796
18797 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
18798
18799 PR target/65990
18800 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
18801 if rep_8byte stringop strategy was specified for 32-bit target.
18802
18803 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
18804
18805 PR target/65915
18806 * config/i386/i386.md (vector convert to float spltiter): Check for
18807 xmm16+, when splitting scalar float conversion.
18808 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
18809
18810 2015-05-05 Nick Clifton <nickc@redhat.com>
18811
18812 * config/msp430/msp430-opts.h (enum msp430_regions): New.
18813 * config/msp430/msp430.c (msp430_override_options): Complain if
18814 -mcode-region or -mdata-region is used on a non MSP430X.
18815 (msp430_section_attr): New function. Checks lower, upper and
18816 either attributes.
18817 (msp430_attribute_table): Add lower, upper and either.
18818 (gen_prefix): New function. Generates a prefix for a section
18819 name.
18820 (msp430_select_section): New function - handles the choice of
18821 section for an object. Takes into account memory region
18822 attributes and options.
18823 (msp430_function_section): Use gen_prefix.
18824 (TARGET_SECTION_TYPE_FLAGS): Define.
18825 (msp430_section_type_flags): New function.
18826 (TARGET_ASM_UNIQUE_SECTION): Define.
18827 (msp430_unique_section): New function.
18828 (msp430_output_aligned_decl_common): New function.
18829 (msp430_do_not_relax_short_jumps): New function.
18830 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
18831 Define.
18832 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
18833 * config/msp430/msp430-protos.h
18834 (msp430_do_not_relax_short_jumps): New prototype.
18835 (msp430_output_aligned_decl_common): New prototype.
18836 * config/msp430/msp430.md (length): New attribute.
18837 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
18838 then use a long code sequence for short jumps.
18839 * config/msp430/msp430.opt (mcode-region): New.
18840 (mdata-region): New.
18841 * doc/invoke.texi: Document new options.
18842 * doc/extend.texi: Document new attributes.
18843
18844 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
18845
18846 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
18847 (tune_params): Add field branch_costs.
18848 (aarch64_branch_cost): Declare.
18849 * gcc/config/aarch64.c (generic_branch_cost): New.
18850 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
18851 (cortexa53_tunings): Likewise.
18852 (cortexa57_tunings): Likewise.
18853 (thunderx_tunings): Likewise.
18854 (xgene1_tunings): Likewise.
18855 (aarch64_branch_cost): Define.
18856 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
18857
18858 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
18859
18860 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
18861 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
18862 * config/i386/i386.md: Ditto.
18863 * config/i386/winnt.c: Ditto.
18864
18865 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
18866
18867 * doc/extend.texi (__atomic Builtins): Move implementation details
18868 to the end of the description, rewrite opening paragraphs, state
18869 difference with __sync builtins, state C11/C++11 assumptions,
18870 weaken itemized descriptions, add explanation of memory model
18871 behaviour, expand description of compare-exchange, simplify text.
18872
18873 2015-05-05 Renlin Li <renlin.li@arm.com>
18874
18875 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
18876
18877 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
18878
18879 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
18880 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
18881 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
18882 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
18883 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
18884 * configure: Regenerate.
18885 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
18886 * doc/install.texi (aarch64*-*-*): Document new
18887 --enable-fix-cortex-a53-843419 option.
18888 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
18889 and -mno-fix-cortex-a53-843419 options.
18890
18891 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
18892
18893 PR target/65871
18894 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
18895
18896 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
18897
18898 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
18899 fix overactive TYPE_MIN_VALUE check and add FIXME for type
18900 compatibility problems.
18901
18902 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
18903
18904 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
18905 constraints.
18906 (cbranchsi4_reg): New.
18907 * config/microblaze/microblaze.c
18908 (microblaze_expand_conditional_branch_reg): New.
18909 * config/microblaze/microblaze-protos.h
18910 (microblaze_expand_conditional_branch_reg): New prototype.
18911
18912 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
18913
18914 * config/microblaze/microblaze.md (peephole2): New.
18915
18916 2015-05-04 Jeff Law <law@redhat.com>
18917
18918 Revert:
18919 2015-05-04 Jeff Law <law@redhat.com>
18920
18921 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
18922 simplifier to narrow arithmetic.
18923 * generic-match-head.c: (types_match, single_use): New functions.
18924 * gimple-match-head.c: (types_match, single_use): New functions.
18925
18926 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
18927
18928 PR target/65987
18929 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
18930 (split_branches): Likewise.
18931
18932 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
18933
18934 * common.opt (fdelete-null-pointer-checks): Init to -1.
18935 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
18936 override flag_delete_null_pointer_checks default.
18937 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
18938 behavior re address zero. Better document target-specific behavior.
18939 (-fisolate-errneous-paths-dereference): Mention relationship to
18940 -fdelete-null-pointer-checks.
18941
18942 2015-05-04 Jakub Jelinek <jakub@redhat.com>
18943
18944 PR tree-optimization/65984
18945 * ubsan.c: Include tree-cfg.h.
18946 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
18947 stmt_could_throw_p test, rename can_throw variable to ends_bb.
18948
18949 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
18950
18951 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
18952 to CONST_DOUBLE_P predicate.
18953 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
18954 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
18955 allow only operands that satisfy standard_sse_constant_p predicate.
18956 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
18957 to CONST_DOUBLE_P predicate.
18958
18959 2015-05-04 Jeff Law <law@redhat.com>
18960
18961 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
18962 simplifier to narrow arithmetic.
18963 * generic-match-head.c: (types_match, single_use): New functions.
18964 * gimple-match-head.c: (types_match, single_use): New functions.
18965
18966 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
18967
18968 * config/arm/arm.c: Restore bootstrap.
18969
18970 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
18971
18972 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
18973 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
18974 as CONST_WIDE_INT, not CONST_DOUBLE.
18975 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
18976 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
18977 (ix86_find_base_term): Do not check for CONST_DOUBLE.
18978 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
18979 (ix86_build_signbit_mask): Rewrite using wide ints.
18980 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
18981 (ix86_rtx_costs): Handle CONST_WIDE_INT.
18982 (find_constant): Ditto.
18983 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
18984 using gen_int_mode.
18985 * config/i386/predicates.md (x86_64_immediate_operand)
18986 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
18987 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
18988 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
18989 (const0_operand): Also match const_wide_int.
18990 (constm1_operand): Ditto.
18991 (const1_operand): Ditto.
18992
18993 2015-05-04 Richard Biener <rguenther@suse.de>
18994
18995 PR tree-optimization/65965
18996 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
18997 store groups at gaps.
18998
18999 2015-05-04 Richard Biener <rguenther@suse.de>
19000
19001 PR tree-optimization/65935
19002 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
19003 then make sure to apply that swapping to the IL.
19004
19005 2015-05-04 Jakub Jelinek <jakub@redhat.com>
19006
19007 * Makefile.in (PATCHLEVEL_c): New variable.
19008 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
19009 expand the same way as if DEVPHASE_c was non-empty.
19010
19011 2015-05-04 Kai Tietz <ktietz@redhat.com>
19012
19013 PR target/65559
19014 * lto-wrapper.c (run_gcc): Open filename
19015 in binary-mode.
19016
19017 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
19018
19019 * doc/extend.texi (Variable Attributes, Type Attributes): Move
19020 sections up in file, to immediately after the Function Attributes
19021 section.
19022
19023 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
19024
19025 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
19026
19027 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19028
19029 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
19030 (insert_partition_copy_on_edge): Adjust.
19031 (insert_rtx_to_part_on_edge): Likewise.
19032 (insert_part_to_rtx_on_edge): Likewise.
19033
19034 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19035
19036 * function.c (set_return_jump_label): Change type of argument to
19037 rtx_insn *.
19038 * function.h (set_return_jump_label): Adjust.
19039
19040 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19041
19042 * reload.h (struct reg_equivs_t): Change type of init to
19043 rtx_insn *.
19044 * ira.c (fix_reg_equiv_init): Adjust.
19045 * reload1.c (eliminate_regs_1): Likewise.
19046 (init_eliminable_invariants): Likewise.
19047
19048 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19049
19050 * cselib.c (fp_setter_insn): Take a rtx_insn *.
19051 * cselib.h (fp_setter_insn): Adjust.
19052
19053 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19054
19055 * recog.c (struct validate_replace_src_data): Change type of
19056 insn field to rtx_insn *.
19057 (validate_replace_src_group): Change type of argument to rtx_insn *.
19058 * recog.h (validate_replace_src_group): Adjust.
19059
19060 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19061
19062 * haifa-sched.c: Change the type of some variables to rtx_insn *.
19063 * sched-deps.c: Likewise.
19064 * sched-int.h: Likewise.
19065 * sched-rgn.c: Likewise.
19066 * sel-sched.c: Likewise.
19067
19068 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19069
19070 to rtx_insn *.
19071 * config/i386/i386.c: Change the type of some arguments to
19072 rtx_insn *.
19073 * config/arm/arm.c: Likewise.
19074
19075 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19076
19077 * lra-constraints.c: Change type of some arguments to rtx_insn *.
19078
19079 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19080
19081 * regcprop.c (kill_autoinc_value): Change type of argument to
19082 rtx_insn *.
19083
19084 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19085
19086 * genrecog.c (print_subroutine): Adjust.
19087 * recog.c (get_bool_attr_mask_uncached): Likewise.
19088 * recog.h (struct recog_data_d): Change the type of insn to
19089 rtx_insn *.
19090
19091 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19092
19093 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
19094
19095 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19096
19097 * df-problems.c (df_set_note): Change type of argument to
19098 rtx_insn *.
19099
19100 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19101
19102 * builtins.c (expand_builtin_trap): Change type of local
19103 variable to rtx_insn *.
19104 (add_sched_insns_for_speculation): Likewise.
19105 (ix86_emit_save_regs): Likewise.
19106 (get_scratch_register_on_entry): Likewise.
19107 (ix86_emit_restore_reg_using_pop): Likewise.
19108 (ix86_emit_leave): Likewise.
19109 (ix86_emit_restore_regs_using_mov): Likewise.
19110 (ix86_expand_epilogue): Likewise.
19111 Likewise.
19112 (rl78_alloc_physical_registers_umul): Likewise.
19113 * cselib.c (discard_useless_locs): Likewise.
19114 (cselib_invalidate_regno): Likewise.
19115 (cselib_invalidate_mem): Likewise.
19116 * function.c (expand_function_start): Likewise.
19117 (emit_use_return_register_into_block): Likewise.
19118 * gcse.c: Likewise.
19119 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
19120 * ifcvt.c (noce_get_alt_condition): Likewise.
19121 * loop-doloop.c (doloop_condition_get): Likewise.
19122 * lra-constraints.c (inherit_in_ebb): Likewise.
19123 * modulo-sched.c (sms_schedule_by_order): Likewise.
19124 * recog.c (next_insn_tests_no_inequality): Likewise.
19125 * reorg.c (emit_delay_sequence): Likewise.
19126 (update_reg_dead_notes): Likewise.
19127 (fix_reg_dead_note): Likewise.
19128 (fill_slots_from_thread): Likewise.
19129 (delete_computation): Likewise.
19130
19131 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
19132
19133 * doc/extend.texi (Variable Attributes): Add menu and proper
19134 @nodes to subsections. Move Microsoft Windows attributes to
19135 their own subsection.
19136 (Type Attributes): Reorganize introduction to remove duplicate
19137 list of attributes. Add menu and proper @nodes to subsections.
19138 Alphabetize the main table of common attributes.
19139
19140 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
19141
19142 * match.pd: New simplification patterns.
19143 (x + (x & 1)) -> ((x + 1) & ~1)
19144 (x & ~(x & y)) -> ((x & ~y))
19145 (x | ~(x | y)) -> ((x | ~y))
19146
19147 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19148
19149 * target.def (attribute_table): Mention that struct attribute_spec
19150 is defined in tree-core.h rather than tree.h
19151 * doc/tm.texi: Regenerate.
19152
19153 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
19154
19155 * genrecog.c (test): Rename to rtx_test. Update rest of file
19156 accordingly.
19157
19158 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
19159
19160 PR translation/65959
19161 * params.h (DEFPARAM): Rename msgid to nocmsgid.
19162
19163 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
19164
19165 * gcc/config/aarch64/aarch64-protos.h (tune_params):
19166 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
19167 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
19168 Return value depending on target.
19169 (generic_tunings): Initialize new target settings.
19170 (cortexa53_tunings): Likewise.
19171 (cortexa57_tunings): Likewise.
19172 (thunderx_tunings): Likewise.
19173 (xgene1_tunings): Likewise.
19174
19175 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
19176
19177 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
19178 Make Cortex-A53 shift costs more accurate.
19179
19180 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19181
19182 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
19183 UNSIGNED_FLOAT.
19184
19185 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
19186
19187 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
19188 Calculate cost of op0 and op1 in PLUS and MINUS cases.
19189
19190 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19191
19192 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
19193 Add cost of op0 in the compare-with-fpzero case.
19194
19195 2015-04-30 David Malcolm <dmalcolm@redhat.com>
19196
19197 * builtins.c (fold_builtin_1): Remove spurious second
19198 semicolon.
19199 * cgraph.h (symtab_node::get_availability): Likewise.
19200 * opts.c (common_handle_option): Remove spurious second semicolon.
19201 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
19202 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
19203
19204 2015-04-30 Caroline Tice <cmtice@google.com>
19205
19206 PR gcov-profile/65929
19207 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
19208 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
19209 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
19210 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
19211 * doc/tm.texi: Regenerate.
19212 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
19213 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
19214 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
19215 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
19216
19217 2015-04-30 Marek Polacek <polacek@redhat.com>
19218
19219 * varasm.c (handle_cache_entry): Fix logic.
19220
19221 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19222
19223 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
19224 (*extrsi5_insn_uxtw_alt): Likewise.
19225 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
19226 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
19227 operations.
19228
19229 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19230
19231 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
19232 fabd in ABS case.
19233
19234 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19235
19236 * config/aarch64/aarch64.md
19237 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
19238 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
19239 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
19240 appropriately. Handle alternative EON form.
19241
19242 2015-04-30 Renlin Li <renlin.li@arm.com>
19243
19244 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
19245 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
19246
19247 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
19248
19249 PR ipa/65873
19250 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
19251 -fstrict-aliasing boundaries.
19252
19253 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19254
19255 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
19256 and [SU]MNEGL patterns.
19257
19258 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19259
19260 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
19261 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
19262 combined arithmetic-shift ops. Properly handle all shift and extend
19263 operations that can occur in combination with PLUS/MINUS.
19264 Rename maybe_fma to compound_p.
19265 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
19266 arithmetic and shift operations.
19267
19268 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19269
19270 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
19271 rather than arith_shift cost when costing ADD/MINUS of an
19272 extended value.
19273
19274 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
19275
19276 PR lto/65948
19277 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
19278 to itself.
19279
19280 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
19281
19282 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
19283 are for the same position.
19284
19285 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
19286
19287 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
19288 vectorize_loops.
19289 (vectorize_loops): Use it.
19290
19291 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
19292
19293 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
19294 for aggregate types.
19295 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
19296 type to be non_ODR.
19297 * tree.c (need_assembler_name_p): Compute mangled name for
19298 non-fundamental types and integer types.
19299
19300 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
19301
19302 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
19303 manual swaps.
19304 * expr.c (expand_expr_real_2): Likewise.
19305
19306 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
19307
19308 * tree.c (build_common_builtin_nodes): Do not build
19309 __builtin_alloca_with_align as equivalent of library alloca.
19310
19311 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
19312
19313 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
19314 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
19315 bugus variants.
19316 * tree.c: Include print-tree.h and ipa-utils.h
19317 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
19318 (free_lang_data_in_cgraph): Call verify_type.
19319 (verify_type_variant): New function.
19320 (verify_type): New function.
19321 * tree.h (verify_type): Declare.
19322
19323 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
19324
19325 * config/mips/mips-cpus.def: (mips4): Change default processor
19326 from PROCESSOR_R8000 to PROCESSOR_R10000.
19327
19328 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
19329
19330 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
19331 la/jalr instead of jal.
19332
19333 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
19334
19335 PR target/65871
19336 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
19337 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
19338 (setcc+movzbl peephole2): Check also clobbered reg.
19339 (setcc+andl peephole2): Ditto.
19340
19341 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
19342
19343 PR libgomp/65099
19344 * config/nvptx/mkoffload.c (target_ilp32): New variable.
19345 (main): Set it depending on "-foffload-abi=[...]".
19346 (compile_native, main): Use it to pass "-m32" or "-m64" to the
19347 compiler.
19348
19349 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
19350
19351 PR target/65770
19352 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
19353 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
19354 Flip lane index back at assembly time for bigendian.
19355
19356 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
19357
19358 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
19359 * gimplify.c (gimplify_omp_workshare): Use it.
19360
19361 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
19362
19363 * Makefile.in (build/genrecog.o): Depend on inchash.h.
19364 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
19365 build/inchash.o
19366 * genrecog.c: Rewrite most of the code except for the third page.
19367
19368 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
19369
19370 * inchash.h, inchash.c: Include bconfig.h for build objects.
19371 * Makefile.in (build/inchash.o): New rule.
19372
19373 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
19374
19375 PR target/65924
19376 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
19377 number in type attribute expression.
19378
19379 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
19380
19381 * loop-iv.c (canon_condition): Generalize to all types of integer
19382 constant.
19383
19384 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
19385
19386 * gimple-walk.c: Prune duplicate or unneeded includes.
19387 (walk_gimple_asm): Only call parse_input_constraint or
19388 parse_output_constraint if their findings are used.
19389 Honour parse_input_constraint and parse_output_constraint
19390 result.
19391
19392 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
19393
19394 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
19395
19396 2015-04-29 Tom de Vries <tom@codesourcery.com>
19397
19398 PR tree-optimization/65893
19399 * passes.def (pass_all_optimizations): Move pass_stdarg to after
19400 pass_dce.
19401
19402 2015-04-29 Richard Biener <rguenther@suse.de>
19403
19404 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
19405 compute GROUP_SIZE for basic-block SLP.
19406 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
19407 take into account gaps.
19408 (vect_get_mask_element): Properly reject references to previous
19409 vectors.
19410 (vect_transform_slp_perm_load): Likewise.
19411
19412 2015-04-29 Christian Bruel <christian.bruel@st.com>
19413
19414 PR target/64835
19415 * config/i386/i386.c (ix86_default_align): New function.
19416 (ix86_override_options_after_change): Call ix86_default_align.
19417 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
19418 (ix86_override_options_after_change): New function.
19419
19420 2015-04-28 Jeff Law <law@redhat.com>
19421
19422 * tree-ssa-dom.c (record_equality); Fix comment typos.
19423
19424 2015-04-28 Tom de Vries <tom@codesourcery.com>
19425
19426 PR tree-optimization/65887
19427 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
19428
19429 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
19430
19431 * doc/extend.texi (Declaring Attributes of Functions): Split into
19432 subsections by target. Alphabetize the table of common attributes.
19433 Rewrite some of the introductory text to reflect the new structure.
19434 Update some cross-references to point to the new subsections.
19435 (Attribute Syntax): Put paragraph about "__" naming here. Remove
19436 duplicate copies in the discussion of function, label, and type
19437 attributes.
19438
19439 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
19440
19441 PR bootstrap/65910
19442 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
19443
19444 2015-04-28 Jason Merrill <jason@redhat.com>
19445
19446 PR c++/65734
19447 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
19448 (finalize_type_size): Respect TYPE_USER_ALIGN.
19449 (layout_type) [ARRAY_TYPE]: Likewise.
19450
19451 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
19452
19453 * config/arm/arm.md (*arm_movt): Fix type attribute.
19454 (*cmpsi_shiftsi): Likewise.
19455 (*cmpsi_shiftsi_swp): Likewise.
19456 (*movsicc_insn): Likewise.
19457 (*cond_move): Likewise.
19458 (*if_plus_move): Likewise.
19459 (*if_move_plus): Likewise.
19460 (*if_arith_move): Likewise.
19461 (*if_move_arith): Likewise.
19462 (*if_shift_move): Likewise.
19463 (*if_move_shift): Likewise.
19464 (*arm_movtas_ze): Likewise.
19465 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
19466 redundancy and type attribute.
19467 (*thumb2_movsi_insn): Fix type attribute.
19468 (*thumb2_addsi_short): Likewise.
19469 (thumb2_addsi3_compare0): Likewise.
19470 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
19471 attributes accordingly.
19472
19473 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
19474
19475 PR other/65911
19476 * function.c (pad_to_arg_alignment): Add parentheses.
19477
19478 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
19479
19480 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
19481 libgcc/config/frv/elf-lib.h.
19482
19483 2015-04-28 Tom de Vries <tom@codesourcery.com>
19484
19485 * tree-call-cdce.c: Fix example in header comment.
19486
19487 2015-04-28 Richard Biener <rguenther@suse.de>
19488
19489 PR tree-optimization/62283
19490 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
19491 fails fatally and we are vectorizing a basic-block simply
19492 cause the child to be constructed piecewise.
19493 (vect_analyze_slp_cost_1): Adjust.
19494 (vect_detect_hybrid_slp_stmts): Likewise.
19495 (vect_bb_slp_scalar_cost): Likewise.
19496 (vect_get_constant_vectors): For piecewise constructed
19497 constants place them after the last def.
19498 (vect_get_slp_defs): Adjust.
19499 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
19500 externals for basic-block vectorization.
19501
19502 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
19503
19504 PR target/63503
19505 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
19506 aarch64-*-*.
19507 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
19508 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
19509 (AARCH64_TUNE_FMA_STEERING): Likewise.
19510 * config/aarch64/aarch64-cores.def: Set
19511 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
19512 FMUL/FMADD instructions.
19513 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
19514 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
19515 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
19516 * config/aarch64/cortex-a57-fma-steering.h: New file.
19517 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
19518
19519 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
19520
19521 * gensupport.c (std_preds): Add missing codes to address_operand entry.
19522
19523 2015-04-28 Richard Biener <rguenther@suse.de>
19524
19525 PR tree-optimization/65851
19526 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
19527 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
19528 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
19529 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
19530 (ccp_visit_phi_node): Adjust.
19531 (evaluate_stmt): For simplifications to SSA names return its
19532 lattice value if that isn't VARYING. Return immediately when
19533 simplified to a constant.
19534 (visit_assignment): Adjust.
19535 (ccp_visit_stmt): Likewise.
19536
19537 2015-04-28 Tom de Vries <tom@codesourcery.com>
19538
19539 PR tree-optimization/65818
19540 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
19541 evaluated.
19542
19543 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19544
19545 * calls.c (save_fixed_argument_area): Don't check
19546 ARGS_GROW_DOWNWARD with the preprocessor.
19547 (restore_fixed_argument_area): Likewise.
19548 (mem_overlaps_already_clobbered_arg_p): Likewise.
19549 (check_sibcall_argument_overlap): Likewise.
19550 (expand_call): Likewise.
19551 (emit_library_call_value_1): Likewise.
19552 (store_one_arg): Likewise.
19553 * function.c (assign_parms): Likewise.
19554 (locate_and_pad_parm): Likewise.
19555 (pad_to_arg_alignment): Likewise.
19556 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
19557
19558 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19559
19560 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
19561 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
19562 * calls.c (save_fixed_argument_area): Don't chekc if
19563 ARGS_GROW_DOWNWARD is defined.
19564 (restore_fixed_argument_area): Likewise.
19565 (mem_overlaps_already_clobbered_arg_p): Likewise.
19566 (check_sibcall_argument_overlap): Likewise.
19567 (expand_call): Likewise.
19568 (emit_library_call_value_1): Likewise.
19569 (store_one_arg): Likewise.
19570 * function.c (assign_parms): Likewise.
19571 (locate_and_pad_parm): Likewise.
19572 (pad_to_arg_alignment): Likewise.
19573 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
19574
19575 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19576
19577 * defaults.h (gen_epilogue): New function.
19578 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
19579 defined.
19580 * cfgrtl.c (cfg_layout_finalize): Likewise.
19581 * df-scan.c: Likewise.
19582 * function.c (thread_prologue_and_epilogue_insns): Likewise.
19583 (reposition_prologue_and_epilogue_notes): Likewise.
19584 * reorg.c (find_end_label): Likewise.
19585 * toplev.c: Likewise.
19586
19587 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19588
19589 * bb-reorder.c (HAVE_return): Don't check if its undefined.
19590 * defaults.h (gen_simple_return): New function.
19591 (gen_simple_return): Likewise.
19592 (HAVE_return): Add default definition to false.
19593 (HAVE_simple_return): Likewise.
19594 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
19595 HAVE_return and HAVE_simple_return are defined.
19596 * function.c (gen_return_pattern): Likewise.
19597 (convert_jumps_to_returns): Likewise.
19598 (thread_prologue_and_epilogue_insns): Likewise.
19599 * reorg.c (find_end_label): Likewise.
19600 (dbr_schedule): Likewise.
19601 * shrink-wrap.c: Likewise.
19602 * shrink-wrap.h: Likewise.
19603
19604 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19605
19606 * defaults.h (EPILOGUE_USES): Add default definition of false.
19607 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
19608 * resource.c (init_resource_info): Likewise.
19609
19610 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19611
19612 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
19613 to false.
19614 * dwarf2out.c (field_byte_offset): REmove check if
19615 PCC_BITFIELD_TYPE_MATTERS is defined.
19616 * stor-layout.c (layout_decl): Likewise.
19617 (update_alignment_for_field): Likewise.
19618 (place_field): Likewise.
19619
19620 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19621
19622 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
19623 true.
19624 * regrename.c (check_new_reg_p): Remove check if
19625 HARD_REGNO_RENAME_OK is defined.
19626 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
19627
19628 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19629
19630 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
19631 * cse.c (fold_rtx): Likewise.
19632 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
19633 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
19634 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
19635 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
19636 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
19637 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
19638 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
19639 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
19640 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
19641 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
19642 * Likewise.
19643 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
19644 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
19645 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
19646 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
19647 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
19648 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
19649 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
19650 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
19651 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
19652 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
19653 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
19654 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
19655 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
19656 * doc/tm.texi: Regenerate.
19657 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
19658 either true or false.
19659
19660 2015-04-27 Jeff Law <law@redhat.com>
19661
19662 PR tree-optimization/65217
19663 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
19664 of them has a single use, make sure it is the LHS of the implied
19665 copy.
19666
19667 2015-04-28 Alan Modra <amodra@gmail.com>
19668
19669 PR target/65810
19670 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
19671 (offsettable_ok_by_alignment): Use minimum of decl and toc
19672 pointer alignment. Replace dead code with assertion.
19673 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
19674 case if size exceeds toc pointer alignment.
19675 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
19676 (rs6000_emit_move): Likewise.
19677 * configure.ac: Add linker toc pointer alignment check.
19678 * configure: Regenerate.
19679 * config.in: Regenerate.
19680
19681 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
19682
19683 * config.gcc: Add h8300-*-linux.
19684 * config/h8300/linux.h: New.
19685 * config/h8300/t-linux: New.
19686 * config/h8300/h8300.c (h8300_option_override): Normal mode
19687 is not supported for h8300-*-linux.
19688 (h8300_file_start): Target priority change.
19689 (get_shift_alg): Likewise.
19690 (h8300_shift_need_scratch_p): Likewise.
19691 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
19692 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
19693
19694 2015-04-27 Caroline Tice <cmtice@google.com>
19695
19696 * final.c (final_scan_insn): Output cold_function_name as function
19697 type.
19698 * varasm.c (cold_function_name): Make global.
19699 (assemble_start_function): Re-set cold_function_name.
19700 (assemble_end_function): Output cold partition size.
19701 * varasm.h (cold_function_name): Declare global.
19702
19703 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
19704
19705 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
19706 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
19707 constraint.
19708 (*movxi_internal_avx512f): Ditto.
19709 (define_split): Check for xmm16+, when splitting scalar float_extend.
19710 (*extendsfdf2_mixed): Use "v" constraint.
19711 (define_split): Check for xmm16+, when splitting scalar float_truncate.
19712 (*truncdfsf_fast_sse): Use "v" constraint.
19713 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
19714 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
19715 (define_peephole2): Check for xmm16+, when converting scalar
19716 float_truncate.
19717 (define_peephole2): Check for xmm16+, when converting scalar
19718 float_extend.
19719 (*fop_<mode>_comm_mixed): Use "v" constraint.
19720 (*fop_<mode>_comm_sse): Ditto.
19721 (*fop_<mode>_1_mixed): Ditto.
19722 (*sqrt<mode>2_sse): Ditto.
19723 (*ieee_s<ieee_maxmin><mode>3): Ditto.
19724
19725 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19726
19727 * combine.c (simplify_if_then_else): Use std::swap instead
19728 of manually swapping.
19729 (known_cond): Likewise.
19730 (simplify_comparison): Likewise.
19731
19732 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
19733
19734 PR target/64579
19735 * config/rs6000/htm.md: Remove all define_expands.
19736 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
19737 UNSPECV_HTM_TABORTWCI): Remove.
19738 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
19739 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
19740 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
19741 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
19742 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
19743 tabortwci_internal): Remove define_insns.
19744 (tabort<wd>c, tabort<wd>ci): New define_insns.
19745 (tabort): Use gpc_reg_operand.
19746 (tcheck): Remove operand.
19747 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
19748 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
19749 expected value.
19750 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
19751 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
19752 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
19753 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
19754 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
19755 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
19756 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
19757 (tcheck): Remove builtin argument.
19758 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
19759 not TARGET_64BIT.
19760 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
19761 tabortdc and tabortdci builtins when not in 64-bit mode.
19762 Modify code to handle the loss of the HTM define_expands.
19763 Emit code to copy the CR register to TARGET.
19764 (htm_init_builtins): Modify code to handle the loss of the HTM
19765 define_expands.
19766 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
19767 (RS6000_BTC_64BIT): Likewise.
19768 (RS6000_BTC_CR): New macro.
19769 * doc/extend.texi: Update documentation for htm builtins.
19770
19771 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19772
19773 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
19774 of manually swapping.
19775 (simplify_associative_operation): Likewise.
19776 (simplify_binary_operation): Likewise.
19777 (simplify_plus_minus): Likewise.
19778 (simplify_relational_operation): Likewise.
19779 (simplify_ternary_operation): Likewise.
19780
19781 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
19782
19783 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
19784 (xs_hi_nonmemory_operand): Remove error.
19785 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
19786 general_operand rather than xs_hi_general_operand.
19787
19788 2015-04-27 Richard Biener <rguenther@suse.de>
19789
19790 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
19791 (record_equivalences_from_stmt): Valueize rhs.
19792 (record_equality): Canonicalize x and y order via
19793 tree_swap_operands_p. Do not swap operands for same loop depth.
19794
19795 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
19796
19797 PR target/65296
19798 PR target/65895
19799 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
19800 Add hint how to use own spec file.
19801
19802 2015-04-27 Jakub Jelinek <jakub@redhat.com>
19803
19804 PR tree-optimization/65875
19805 * tree-vrp.c (update_value_range): If in is_new case setting
19806 old_vr to VR_VARYING, also set new_vr to it. Remove
19807 old_vr->type == VR_VARYING test.
19808 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
19809 SSA_PROP_INTERESTING if update_value_range returned true,
19810 but new range is VR_VARYING.
19811
19812 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
19813
19814 * combine.c (sign_extend_short_imm): New.
19815 (set_nonzero_bits_and_sign_copies): Use above new function for sign
19816 extension of src short immediate.
19817 (reg_nonzero_bits_for_combine): Likewise for tem.
19818
19819 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
19820
19821 * stor-layout.c (self_referential_component_ref_p): New predicate.
19822 (copy_self_referential_tree_r): Use it.
19823 (self_referential_size): Punt for simple operations directly involving
19824 self-referential component references.
19825 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
19826
19827 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
19828
19829 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
19830
19831 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
19832
19833 * vec.h (vec): Make splice arguments const. Update definitions
19834 accordingly.
19835
19836 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
19837
19838 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
19839 alternatives.
19840
19841 2015-04-26 Tom de Vries <tom@codesourcery.com>
19842
19843 PR tree-optimization/65826
19844 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
19845
19846 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
19847
19848 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
19849 (*madd3<mode>): Ditto.
19850 (*msub4<mode>): Ditto.
19851 (*msub3<mode>): Ditto.
19852 (*nmadd4<mode>): Ditto.
19853 (*nmadd3<mode>): Ditto.
19854 (*nmadd4<mode>_fastmath): Ditto.
19855 (*nmadd3<mode>_fastmath): Ditto.
19856 (*nmsub4<mode>): Ditto.
19857 (*nmsub3<mode>): Ditto.
19858 (*nmsub4<mode>_fastmath): Ditto.
19859 (*nmsub3<mode>_fastmath): Ditto.
19860
19861 2015-04-24 Jason Merrill <jason@redhat.com>
19862
19863 PR c++/50800
19864 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
19865 down when building TYPE_CANONICAL.
19866 (build_pointer_type_for_mode): Likewise.
19867
19868 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
19869
19870 * genrecog.c (validate_pattern): Check matching constraint refers
19871 to a lower numbered operand.
19872
19873 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
19874
19875 PR target/65849
19876 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
19877 save to independent variables use the Save attribute. This will
19878 allow these options to be modified with the #pragma/attribute
19879 target support.
19880 (-mallow-movmisalign): Likewise.
19881 (-mallow-df-permute): Likewise.
19882 (-msched-groups): Likewise.
19883 (-malways-hint): Likewise.
19884 (-malign-branch-targets): Likewise.
19885 (-mvectorize-builtins): Likewise.
19886 (-msave-toc-indirect): Likewise.
19887
19888 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
19889 can be set via the #pragma/attribute target support.
19890 (rs6000_opt_vars): Likewise.
19891 (rs6000_inner_target_options): If VSX was set, also set
19892 -mno-avoid-indexed-addresses.
19893
19894 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19895
19896 * config/arm/iterators.md (shiftable_ops): Rename to...
19897 (SHIFTABLE_OPS): ... This. Update use in comments.
19898 (ior_xor): Rename to...
19899 (IOR_XOR): ... This.
19900 (vqh_ops): Rename to...
19901 (VQH_OPS): ... This.
19902 (vqhs_ops): Rename to...
19903 (VQHS_OPS): ... This.
19904 (rshifts): Rename to...
19905 (RSHIFTS): ... This.
19906 (returns): Rename to...
19907 (RETURNS): ... This.
19908 * config/arm/arm.md: Update uses of the above.
19909 * config/arm/neon.md: Likewise.
19910
19911 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19912
19913 * config.host (case ${host}): Add aarch64*-*-linux case.
19914 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
19915 fields to all the cores.
19916 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
19917 Add MCPU_MTUNE_NATIVE_SPECS.
19918 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
19919 field to all extensions.
19920 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
19921 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
19922 Adjust definition of AARCH64_OPT_EXTENSION.
19923 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
19924 (MCPU_MTUNE_NATIVE_SPECS): Define.
19925 * config/aarch64/driver-aarch64.c: New file.
19926 * config/aarch64/x-arch64: New file.
19927 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
19928 -mtune and -march.
19929
19930 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
19931 Wei Mi <wmi@google.com>
19932
19933 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
19934 * config/i386/i386.c (extract_base_offset_in_addr): New function.
19935 (ix86_operands_ok_for_move_multiple): Ditto.
19936 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
19937 (movlpd/movhpd to movupd peephole2): Ditto.
19938
19939 2015-04-24 Marek Polacek <polacek@redhat.com>
19940
19941 PR c/61534
19942 * input.h (from_macro_expansion_at): Define.
19943
19944 PR c/63357
19945 * doc/invoke.texi: Update description of -Wlogical-op.
19946
19947 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
19948
19949 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
19950 ternary operator in fprintf and harmonize spacing.
19951
19952 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
19953
19954 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
19955 Mark operand1 commutative.
19956
19957 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
19958
19959 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
19960 input operands in memory.
19961 (*vec_concatv2si_sse4_1): Ditto.
19962 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
19963 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
19964 register_operand.
19965 (vec_extract_hi_v32hi): Ditto.
19966 (vec_extract_hi_v64hi): Ditto.
19967 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
19968
19969 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
19970 Steven Bosscher <steven@gcc.gnu.org>
19971
19972 PR rtl-optimization/34503
19973 * cprop.c (cprop_reg_p): New.
19974 (hash_scan_set): Use above function to check if register can be
19975 propagated.
19976 (find_avail_set): Return up to two sets, one whose source is a
19977 register and one whose source is a constant. Sets are returned in an
19978 array passed as parameter rather than as a return value.
19979 (cprop_insn): Use a do while loop rather than a goto. Try each of the
19980 sets returned by find_avail_set, starting with the one whose source is
19981 a constant. Use cprop_reg_p to check if register can be propagated.
19982 (do_local_cprop): Use cprop_reg_p to check if register can be
19983 propagated.
19984 (implicit_set_cond_p): Likewise.
19985
19986 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
19987
19988 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
19989 (sem_function::equals): IGNORED_NODES parameter is now unused;
19990 update call of equals_private.
19991 (sem_function::equals_private): Do not call equals_wpa; skip
19992 gimple body matching if there is no body.
19993 (sem_function::init): Add logic to hash tthunk info.
19994 (sem_function::parse): Also parse thunks.
19995 * ipa-icf.h (equals_private): Update declaration.
19996
19997 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19998
19999 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
20000 asterisk from name so this can be generated directly.
20001 (*altivec_stvx_<mode>_internal): Likewise.
20002 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
20003 that this is never called during or after reload/lra.
20004 (rs6000_frame_related): Remove split_reg
20005 argument and logic that references it.
20006 (emit_frame_save): Remove last parameter from call to
20007 rs6000_frame_related.
20008 (rs6000_emit_prologue): Remove last parameter from eight calls to
20009 rs6000_frame_related. Force generation of stvx instruction for
20010 Altivec register saves. Remove split_reg handling, which is no
20011 longer needed.
20012 (rs6000_emit_epilogue): Force generation of lvx instruction for
20013 Altivec register restores.
20014
20015 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20016
20017 * config/rs6000/rs6000.opt (mcrypto): Change option description to
20018 match category changes in ISA 2.07B.
20019
20020 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20021
20022 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
20023 iterators.
20024 (cmp_op, cmp_type): New code attributes.
20025 (NEON_VCMP, NEON_VACMP): New int iterators.
20026 (cmp_op_unsp): New int attribute.
20027 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
20028 (neon_vceq<mode>): Delete.
20029 (neon_vc<cmp_op><mode>_insn): New pattern.
20030 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
20031 (neon_vcgeu<mode>): Delete.
20032 (neon_vcle<mode>): Likewise.
20033 (neon_vclt<mode>: Likewise.
20034 (neon_vcage<mode>): Likewise.
20035 (neon_vcagt<mode>): Likewise.
20036 (neon_vca<cmp_op><mode>): New define_expand.
20037 (neon_vca<cmp_op><mode>_insn): New pattern.
20038 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
20039
20040 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20041
20042 * tree.h (attribute_value_equal): Declare.
20043 * tree.c (attribute_value_equal): Export.
20044
20045 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20046
20047 * ipa-icf.c (sem_item::compare_attributes): New function.
20048 (sem_item::compare_referenced_symbol_properties): Compare variable
20049 attributes.
20050 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
20051 (sem_function::param_used_p): New function.
20052 (sem_function::equals_wpa): Fix attribute comparsion; match
20053 parameter type codes; do not compare paremter flags when
20054 they are not used; compare edge flags; compare indirect calls.
20055 (sem_item::update_hash_by_addr_refs): Hash reference type.
20056 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
20057 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
20058 reference use type.
20059 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
20060 * ipa-icf.h (compare_attributes, param_used_p): Declare.
20061
20062 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
20063
20064 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
20065 cleanup.
20066 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
20067 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
20068 (sem_item::compare_referenced_symbol_properties): New.
20069 (sem_item::hash_referenced_symbol_properties): New.
20070 (sem_item::compare_cgraph_references): Rename to ...
20071 (sem_item::compare_symbol_references): ... this one; use
20072 compare_referenced_symbol_properties.
20073 (sem_function::equals_wpa): Do not compare
20074 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
20075 DECL_IS_OPERATOR_NEW; compare pointer sizes.
20076 (sem_item::update_hash_by_addr_refs): Call
20077 hash_referenced_symbol_properties.
20078 (sem_item::update_hash_by_local_refs): Cleanup.
20079 (sem_function::merge): Do not mix up symbol properties.
20080 (sem_variable::equals_wpa): Use compare_symbol_references.
20081 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
20082 (sem_item::hash_referenced_symbol_properties): New.
20083 (sem_item::compare_symbol_references): New.
20084 (sem_item::compare_cgraph_references): Remove.
20085
20086 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
20087
20088 PR target/26702
20089 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
20090 Emit size of local.
20091
20092 2015-04-23 Nick Clifton <nickc@redhat.com>
20093
20094 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
20095 ATTRIBUTE_UNUSED to x parameter.
20096 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
20097
20098 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20099
20100 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
20101 TARGET_CRYPTO to TARGET_P8_VECTOR>
20102 (crypto_vpermxor_<mode>): Likewise.
20103 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
20104 (BU_CRYPTO_3A): Likewise.
20105 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
20106 (BU_CRYPTO_OVERLOAD_3A): New #define.
20107 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
20108 (VPMSUMH): Likewise.
20109 (VPMSUMW): Likewise.
20110 (VPMSUMD): Likewise.
20111 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
20112 (VPERMXOR_V4SI): Likewise.
20113 (VPERMXOR_V8HI): Likewise.
20114 (VPERMXOR_V16QI): Likewise.
20115 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
20116 BU_CRYPTO_OVERLOAD_2A.
20117 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
20118 BU_CRYPTO_OVERLOAD_3A.
20119 * config/rs6000/rs6000.opt (mcrypto): Change description of
20120 option.
20121
20122 2015-04-23 Richard Biener <rguenther@suse.de>
20123
20124 * passes.def: Remove copy propagation passes run directly after CCP.
20125 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
20126 SSA names.
20127 (ccp_visit_phi_node): Rework to handle first executable edge
20128 specially.
20129
20130 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
20131
20132 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
20133 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
20134 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
20135 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
20136 (thumb_legimitimize_reload_address): Remove.
20137 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
20138 Remove.
20139 (thumb_legimitimize_reload_address): Remove.
20140
20141 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20142
20143 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
20144
20145 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20146
20147 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
20148 MAX_LDM_STM_OPS.
20149 (store_multiple): Likewise.
20150
20151 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20152
20153 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
20154 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
20155 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
20156 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
20157 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
20158 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
20159 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
20160 Specify issue_rate value.
20161 (arm_issue_rate): Look up issue rate from tuning structs. Remove
20162 large switch statement.
20163 (arm_marvell_pj4_tune): New struct.
20164 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
20165 struct.
20166
20167 2015-04-23 Richard Biener <rguenther@suse.de>
20168
20169 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
20170 (vect_find_last_store_in_slp_instance): Rename to ...
20171 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
20172 (vect_analyze_slp_cost_1): Use vector_load for constant defs
20173 and vec_construct for external defs when estimating prologue cost.
20174 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
20175 Compute costs here only when vectorizing loops.
20176 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
20177 have been determined.
20178 (vect_schedule_slp_instance): Simplify vectorized code placement
20179 and prepare for in-BB external defs.
20180 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
20181 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
20182 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
20183 guard.
20184 (vect_model_load_cost): Likewise.
20185 (vectorizable_store): Instead add it here.
20186 (vectorizable_load): Likewise.
20187 (vect_is_simple_use): Dump def type textually.
20188
20189 2015-04-23 Richard Biener <rguenther@suse.de>
20190
20191 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
20192 * cfgloop.c (verify_loop_structure): Verify the root loop node.
20193 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
20194 instead of get_eh_region_from_lp_number.
20195 * loop-init.c (fix_loop_structure): If we removed a loop, reset
20196 the SCEV cache.
20197
20198 2015-04-23 Anton Blanchard <anton@samba.org>
20199
20200 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
20201 need for -mprofile-kernel to save LR to stack.
20202
20203 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20204
20205 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
20206 adjustments.
20207 (insn_is_swappable_p): Return 1 for a convert from double to
20208 single precision when all of its uses are splats of BE element
20209 zero.
20210
20211 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
20212
20213 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
20214
20215 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20216
20217 PR target/65456
20218 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
20219 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
20220 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
20221 option.
20222 (rs6000_builtin_mask_for_load): Return 0 for targets with
20223 efficient unaligned VSX accesses so that the vectorizer will use
20224 direct unaligned loads.
20225 (rs6000_builtin_support_vector_misalignment): Always return true
20226 for targets with efficient unaligned VSX accesses.
20227 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
20228 stores on targets with efficient unaligned VSX accesses is almost
20229 always the same as the cost of an aligned load or store, so model
20230 it that way.
20231 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
20232 unaligned vectors if we have efficient unaligned VSX accesses.
20233 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
20234 undocumented option.
20235
20236 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20237
20238 Revert:
20239 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
20240
20241 * config.gcc (LIBC_MUSL): New tm_defines macro.
20242 * config/linux.h (OPTION_MUSL): Define.
20243 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
20244 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
20245 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
20246
20247 * config/linux.opt (mmusl): New option.
20248 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
20249 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
20250
20251 * configure: Regenerate.
20252
20253 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
20254
20255 * config.gcc (LIBC_MUSL): New tm_defines macro.
20256 * config/linux.h (OPTION_MUSL): Define.
20257 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
20258 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
20259 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
20260
20261 * config/linux.opt (mmusl): New option.
20262 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
20263 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
20264
20265 * configure: Regenerate.
20266
20267 2015-04-22 Yury Gribov <y.gribov@samsung.com>
20268
20269 * doc/invoke.texi (-fsanitize-sections): Update description.
20270 * asan.c (set_sanitized_sections): Parse incoming arg.
20271 (section_sanitized_p): Support wildcards.
20272
20273 2015-04-22 Tom de Vries <tom@codesourcery.com>
20274
20275 PR tree-optimization/65823
20276 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
20277 equality between ap_copy and ap.
20278
20279 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20280
20281 PR target/47098
20282 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
20283
20284 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20285
20286 PR target/47122
20287 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
20288
20289 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20290
20291 PR target/55144
20292 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
20293 remove already contained t-files.
20294
20295 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20296
20297 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
20298 Remove unneeded forward declarations.
20299 (suitable_for_tail_call_opt_p): Commentary typo fix.
20300
20301 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20302
20303 * varasm.c (emit_bss): Remove redundant guard.
20304
20305 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20306
20307 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
20308
20309 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20310
20311 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
20312
20313 2015-04-22 Hale Wang <hale.wang@arm.com>
20314 Terry Guo <terry.guo@arm.com>
20315
20316 PR rtl-optimization/64818
20317 * combine.c (can_combine_p): Don't combine user-specified
20318 register if it is in an asm input.
20319
20320 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
20321
20322 PR ipa/65076
20323 * passes.def (early_optimizations): Add pass_dse.
20324
20325 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20326
20327 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
20328 * reorg.c (redundant_insn): Remove ifdef
20329 INSN_REFERENCES_ARE_DELAYED.
20330 * resource.c (mark_referenced_resources): Likewise.
20331
20332 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20333
20334 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
20335 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
20336 * resource.c (mark_set_resources): Likewise.
20337
20338 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20339
20340 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
20341 * cfgcleanup.c (flow_find_cross_jump): Likewise.
20342 (flow_find_head_matching_sequence): Likewise.
20343 (try_head_merge_bb): Likewise.
20344 * combine.c (can_combine_p): Likewise.
20345 (try_combine): Likewise.
20346 (distribute_notes): Likewise.
20347 * df-problems.c (can_move_insns_across): Likewise.
20348 * final.c (final): Likewise.
20349 * gcse.c (insert_insn_end_basic_block): Likewise.
20350 * ira.c (find_moveable_pseudos): Likewise.
20351 * reorg.c (try_merge_delay_insns): Likewise.
20352 (fill_simple_delay_slots): Likewise.
20353 (fill_slots_from_thread): Likewise.
20354 * sched-deps.c (sched_analyze_2): Likewise.
20355
20356 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20357
20358 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
20359 PIC_OFFSET_TABLE_REGNUM.
20360
20361 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20362
20363 * alias.c (init_alias_target): Remove ifdef
20364 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
20365 * df-scan.c (df_insn_refs_collect): Likewise.
20366 (df_get_regular_block_artificial_uses): Likewise.
20367 (df_get_eh_block_artificial_uses): Likewise.
20368 (df_get_entry_block_def_set): Likewise.
20369 (df_get_exit_block_use_set): Likewise.
20370 * emit-rtl.c (gen_rtx_REG): Likewise.
20371 * ira.c (ira_setup_eliminable_regset): Likewise.
20372 * reginfo.c (init_reg_sets_1): Likewise.
20373 * regrename.c (rename_chains): Likewise.
20374 * reload1.c (reload): Likewise.
20375 (eliminate_regs_in_insn): Likewise.
20376 * resource.c (mark_referenced_resources): Likewise.
20377 (init_resource_info): Likewise.
20378
20379 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20380
20381 * defaults.h (MASK_RETURN_ADDR): New definition.
20382 * except.c (expand_builtin_extract_return_addr): Remove ifdef
20383 MASK_RETURN_ADDR.
20384
20385 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20386
20387 * defaults.h (RETURN_ADDR_OFFSET): New definition.
20388 * except.c (expand_builtin_extract_return_addr): Remove ifdef
20389 RETURN_ADDR_OFFSET.
20390 (expand_builtin_frob_return_addr): Likewise.
20391
20392 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20393
20394 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
20395 (try_redirect_by_replacing_jump): Likewise.
20396 (rtl_tidy_fallthru_edge): Likewise.
20397 * combine.c (insn_a_feeds_b): Likewise.
20398 (find_split_point): Likewise.
20399 (simplify_set): Likewise.
20400 * cprop.c (cprop_jump): Likewise.
20401 * cse.c (cse_extended_basic_block): Likewise.
20402 * df-problems.c (can_move_insns_across): Likewise.
20403 * function.c (emit_use_return_register_into_block): Likewise.
20404 * haifa-sched.c (sched_init): Likewise.
20405 * ira.c (find_moveable_pseudos): Likewise.
20406 * loop-invariant.c (find_invariant_insn): Likewise.
20407 * lra-constraints.c (curr_insn_transform): Likewise.
20408 * postreload.c (reload_combine_recognize_const_pattern):
20409 * Likewise.
20410 * reload.c (find_reloads): Likewise.
20411 * reorg.c (delete_scheduled_jump): Likewise.
20412 (steal_delay_list_from_target): Likewise.
20413 (steal_delay_list_from_fallthrough): Likewise.
20414 (redundant_insn): Likewise.
20415 (fill_simple_delay_slots): Likewise.
20416 (fill_slots_from_thread): Likewise.
20417 (delete_computation): Likewise.
20418 * sched-rgn.c (add_branch_dependences): Likewise.
20419
20420 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20421
20422 * genconfig.c (main): Always define HAVE_cc0.
20423 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
20424 HAVE_cc0.
20425 * cfgcleanup.c (flow_find_cross_jump): Likewise.
20426 (flow_find_head_matching_sequence): Likewise.
20427 (try_head_merge_bb): Likewise.
20428 * cfgrtl.c (rtl_merge_blocks): Likewise.
20429 (try_redirect_by_replacing_jump): Likewise.
20430 (rtl_tidy_fallthru_edge): Likewise.
20431 * combine.c (do_SUBST_MODE): Likewise.
20432 (insn_a_feeds_b): Likewise.
20433 (combine_instructions): Likewise.
20434 (can_combine_p): Likewise.
20435 (try_combine): Likewise.
20436 (find_split_point): Likewise.
20437 (subst): Likewise.
20438 (simplify_set): Likewise.
20439 (distribute_notes): Likewise.
20440 * cprop.c (cprop_jump): Likewise.
20441 * cse.c (cse_extended_basic_block): Likewise.
20442 * df-problems.c (can_move_insns_across): Likewise.
20443 * final.c (final): Likewise.
20444 (final_scan_insn): Likewise.
20445 * function.c (emit_use_return_register_into_block): Likewise.
20446 * gcse.c (insert_insn_end_basic_block): Likewise.
20447 * haifa-sched.c (sched_init): Likewise.
20448 * ira.c (find_moveable_pseudos): Likewise.
20449 * loop-invariant.c (find_invariant_insn): Likewise.
20450 * lra-constraints.c (curr_insn_transform): Likewise.
20451 * optabs.c (prepare_cmp_insn): Likewise.
20452 * postreload.c (reload_combine_recognize_const_pattern):
20453 * Likewise.
20454 * reload.c (find_reloads): Likewise.
20455 (find_reloads_address_1): Likewise.
20456 * reorg.c (delete_scheduled_jump): Likewise.
20457 (steal_delay_list_from_target): Likewise.
20458 (steal_delay_list_from_fallthrough): Likewise.
20459 (try_merge_delay_insns): Likewise.
20460 (redundant_insn): Likewise.
20461 (fill_simple_delay_slots): Likewise.
20462 (fill_slots_from_thread): Likewise.
20463 (delete_computation): Likewise.
20464 (relax_delay_slots): Likewise.
20465 * sched-deps.c (sched_analyze_2): Likewise.
20466 * sched-rgn.c (add_branch_dependences): Likewise.
20467
20468 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20469
20470 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
20471 that is trivially ded on non cc0 targets.
20472 (simplify_set): Likewise.
20473 (mark_used_regs_combine): Likewise.
20474 * cse.c (new_basic_block): Likewise.
20475 (fold_rtx): Likewise.
20476 (cse_insn): Likewise.
20477 (cse_extended_basic_block): Likewise.
20478 (set_live_p): Likewise.
20479 * rtlanal.c (canonicalize_condition): Likewise.
20480 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
20481
20482 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20483
20484 * conditions.h: Define macros even if HAVE_cc0 is undefined.
20485 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
20486 * final.c: Likewise.
20487 * jump.c: Likewise.
20488 * recog.c: Likewise.
20489 * recog.h: Declare functions even when HAVE_cc0 is undefined.
20490 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
20491
20492 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20493
20494 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
20495 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
20496 * builtins.c (expand_builtin): Remove check if
20497 EH_RETURN_DATA_REGNO is defined.
20498 * df-scan.c (df_bb_refs_collect): Likewise.
20499 (df_get_exit_block_use_set): Likewise.
20500 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
20501 * ira-lives.c (process_bb_node_lives): Likewise.
20502 * lra-lives.c (process_bb_lives): Likewise.
20503
20504 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
20505
20506 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
20507 FIRST_PSEUDO_REG): New.
20508 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
20509 (ARG_POINTER_REGNUM): Define to ARGP_REG.
20510 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
20511 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
20512 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
20513 (FIRST_INT_REG): New.
20514 (LAST_INT_REG): New.
20515 (FIRST_*_REG): Define using *_REG.
20516 (LAST_*_REG): Ditto.
20517 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
20518 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
20519 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
20520
20521 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20522
20523 * expmed.c: (synth_mult): Only assume overlapping
20524 shift with previous steps in alg_sub_t_m2 case.
20525
20526 2015-04-21 Richard Biener <rguenther@suse.de>
20527
20528 PR tree-optimization/65650
20529 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
20530 transitions involving copies.
20531 (set_lattice_value): Adjust for copy lattice state.
20532 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
20533 if that doesn't dominate the merge point.
20534 (bit_value_unop): Adjust what we treat as varying mask.
20535 (bit_value_binop): Likewise.
20536 (bit_value_assume_aligned): Likewise.
20537 (evaluate_stmt): When we simplified to a SSA name record a copy
20538 instead of dropping to varying.
20539 (visit_assignment): Simplify.
20540
20541 * gimple-match.h (gimple_simplify): Add another callback.
20542 * gimple-fold.c (fold_stmt_1): Adjust caller.
20543 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
20544 for the 2nd callback.
20545 * gimple-match-head.c (gimple_simplify): Add a callback that is
20546 used to valueize the stmt operands and use it that way.
20547
20548 2015-04-21 Richard Biener <rguenther@suse.de>
20549
20550 PR tree-optimization/65788
20551 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
20552
20553 2015-04-21 Richard Biener <rguenther@suse.de>
20554
20555 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
20556 vec_construct cost by vec_stmt_cost.
20557
20558 2015-04-21 Richard Biener <rguenther@suse.de>
20559
20560 * cfghooks.h (create_basic_block): Replace with two overloads
20561 for RTL and GIMPLE.
20562 (split_block): Likewise.
20563 * cfghooks.c (split_block): Rename to ...
20564 (split_block_1): ... this.
20565 (split_block): Add two type-safe overloads for RTL and GIMPLE.
20566 (split_block_after_labels): Call split_block_1.
20567 (create_basic_block): Rename to ...
20568 (create_basic_block_1): ... this.
20569 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
20570 (create_empty_bb): Call create_basic_block_1.
20571 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
20572 split_block_after_labels.
20573 * omp-low.c (expand_parallel_call): Likewise.
20574 (expand_omp_target): Likewise.
20575 (simd_clone_adjust): Likewise.
20576 * tree-chkp.c (chkp_get_entry_block): Likewise.
20577 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
20578 create_basic_block overload.
20579 (cgraph_node::expand_thunk): Likewise.
20580 * tree-cfg.c (make_blocks): Likewise.
20581 (handle_abnormal_edges): Likewise.
20582 * tree-inline.c (copy_bb): Likewise.
20583
20584 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20585
20586 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
20587 New pattern.
20588 (*xor_one_cmplsidi3_ze): Likewise.
20589
20590 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
20591
20592 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
20593 use df_remove_problem rather than manually removing problems, leaving
20594 holes in df->problems_in_order[].
20595
20596 2015-04-21 Tom de Vries <tom@codesourcery.com>
20597
20598 PR tree-optimization/65802
20599 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
20600
20601 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20602
20603 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
20604 Increase to 128.
20605 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
20606 at '.'. Assert that there's enough space for everything.
20607
20608 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
20609
20610 PR tree-optimization/64950
20611 Revert:
20612 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
20613
20614 PR target/41089
20615 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
20616 as volatile.
20617
20618 2015-04-20 Shiva Chen <shiva0217@gmail.com>
20619
20620 PR rtl-optimization/64916
20621 * cfgcleanup.c (values_equal_p): New function.
20622 (can_replace_by): Use it.
20623
20624 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
20625
20626 PR c++/65801
20627 * doc/invoke.texi ([-Wnarrowing]): Update.
20628
20629 2015-04-20 Jeff Law <law@redhat.com>
20630
20631 PR tree-optimization/65658
20632 * tree-ssa-threadupdate.c (redirection_block_p): Remove
20633 redundant test for GIMPLE_ASSIGN in last change.
20634
20635 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
20636
20637 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
20638 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
20639 (legitimize_tls_address): Ditto.
20640 (ix86_expand_move): Ditto.
20641 (ix86_expand_binary_operator): Remove reload_in_progress checks.
20642 (ix86_expand_unary_operator): Ditto.
20643 * config/i386/predicates.md (index_register_operand): Ditto.
20644
20645 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
20646
20647 * reorg.c (try_merge_delay_insns): Improve correctness checking
20648 for targets with multiple delay slots.
20649
20650 2015-04-20 Jeff Law <law@redhat.com>
20651
20652 PR tree-optimization/65658
20653 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
20654 statements too.
20655
20656 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
20657
20658 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
20659 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
20660 Delete.
20661
20662 2015-04-20 Jakub Jelinek <jakub@redhat.com>
20663
20664 PR debug/65807
20665 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
20666
20667 2015-04-20 Richard Biener <rguenther@suse.de>
20668
20669 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
20670 * gimple-fold.c (gimple_build_valueize): New function.
20671 (gimple_build): Always use gimple_build_valueize as valueize hook.
20672
20673 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
20674
20675 PR target/64134
20676 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
20677 and overwrite variable parts if <= 1/2 the elements are variable.
20678
20679 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
20680
20681 PR rtl-optimization/65805
20682 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
20683 Don't use difference of offset and previous offset if
20684 update_sp_offset is non-zero.
20685 (eliminate_regs_in_insn): Ditto.
20686 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
20687 lra_eliminate_regs_1 call.
20688 * lra-constraints.c (get_equiv_with_elimination): Ditto.
20689
20690 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
20691
20692 * hash-table.h: Remove version of hash_table that stored value_type *.
20693 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
20694 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
20695 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
20696 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
20697 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
20698 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
20699 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
20700 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
20701 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
20702 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
20703 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
20704 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
20705 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
20706 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
20707 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
20708 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
20709
20710 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20711 Jakub Jelinek <jakub@redhat.com>
20712
20713 PR target/65787
20714 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
20715 subsequent SH_NONE operand does not overwrite an existing *special
20716 value.
20717 (adjust_extract): Handle case where a vec_extract operation is
20718 wrapped in a PARALLEL.
20719
20720 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
20721
20722 PR target/65780
20723 * config/i386/i386.c (ix86_binds_local_p): Define only if
20724 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
20725
20726 2015-04-17 Jeff Law <law@redhat.com>
20727
20728 PR tree-optimization/47679
20729 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
20730 * tree-ssa-scopedtables.c: New file.
20731 * tree-ssa-scopedtables.h: New file.
20732 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
20733 (const_and_copies): Change name/type.
20734 (record_const_or_copy): Move into tree-ssa-scopedtables.c
20735 (record_const_or_copy_1): Similarly.
20736 (restore_vars_to_original_value): Similarly.
20737 (pass_dominator::execute): Create and destroy const_and_copies table.
20738 (thread_across_edge): Update passing of const_and_copies.
20739 (record_temporary_equivalence): Use method calls rather than
20740 manipulating const_and_copies directly.
20741 (record_equality, cprop_into_successor_phis): Similarly.
20742 (dom_opt_dom_walker::before_dom_children): Similarly.
20743 (dom_opt_dom_walker::after_dom_children): Similarly.
20744 (eliminate_redundant_computations): Similarly.
20745 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
20746 (record_temporary_equivalence): Likewise.
20747 (invalidate_equivalences): Likewise.
20748 (record_temporary_equivalences_from_phis): Update due to type
20749 change of const_and_copies. Use method calls rather than
20750 manipulating the stack directly.
20751 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
20752 (thread_through_normal_block, thread_across_edge): Likewise.
20753 (thread_across_edge): Likewise.
20754 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
20755 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
20756 of equiv_stack.
20757 (identify_jump_threads): Update due to type change of equiv_stack.
20758 (finalize_jump_threads): Delete the equiv_stack when complete.
20759
20760 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
20761
20762 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
20763 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
20764 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
20765
20766 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
20767
20768 PR target/65535
20769 * config.gcc: Exit with a comment when we do not have a major version
20770 number for the FreeBSD target.
20771
20772 2015-04-17 Jakub Jelinek <jakub@redhat.com>
20773
20774 PR target/65689
20775 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
20776 maybe_allows_mem bitfields.
20777 (maybe_allows_none_start, maybe_allows_none_end,
20778 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
20779 maybe_allows_mem_end): New variables.
20780 (compute_maybe_allows): New function.
20781 (add_constraint): Use it to initialize maybe_allows_reg and
20782 maybe_allows_mem fields.
20783 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
20784 is_address constraints such that those that allow neither mem nor
20785 reg come first, then those that only allow reg but not mem, then
20786 those that only allow mem but not reg, then the rest.
20787 (write_allows_reg_mem_function): New function.
20788 (write_tm_preds_h): Call it.
20789 * stmt.c (parse_output_constraint, parse_input_constraint): Use
20790 the generated insn_extra_constraint_allows_reg_mem function
20791 instead of always setting *allows_reg = true; *allows_mem = true;
20792 for unknown extra constraints.
20793
20794 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
20795
20796 PR target/65780
20797 * output.h (default_binds_local_p_3): New.
20798 * varasm.c (default_binds_local_p_3): Make it public. Take an
20799 argument to indicate if common symbol may be local. If common
20800 symbol may be local, treat non-external variable as defined
20801 locally.
20802 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
20803 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
20804 * config/i386/i386.c (ix86_binds_local_p): New.
20805 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
20806 ix86_binds_local_p.
20807
20808 2015-04-17 Jakub Jelinek <jakub@redhat.com>
20809
20810 PR debug/65771
20811 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
20812 trying mem_loc_descriptor on XEXP (rtl, 0).
20813
20814 2015-04-17 Martin Liska <mliska@suse.cz>
20815
20816 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
20817 Release symbol_compare_collection.
20818 * ipa-reference.c: Add TODO that a vector should be released.
20819
20820 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
20821
20822 PR target/65296
20823 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
20824 to new AVR-LibC file layout (bug #44574).
20825 (*avrlibc_devicelib): Same.
20826 * config/avr/avr-mcus.def: Adjust comments.
20827 * config/avr/avr.opt (nodevicelib): Adjust help.
20828
20829 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
20830
20831 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
20832
20833 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
20834
20835 PR c++/64527
20836 * gimplify.c (gimplify_init_constructor): Always emit a
20837 side-effecting constructor.
20838
20839 2015-04-17 Tom de Vries <tom@codesourcery.com>
20840
20841 PR tree-optimization/64950
20842 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
20843 in cfun->curr_properties.
20844 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
20845 if we generate an IFN_VA_ARG.
20846 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
20847 function if PROP_gimple_lva is not set in src function.
20848
20849 2015-04-17 Tom de Vries <tom@codesourcery.com>
20850 Michael Matz <matz@suse.de>
20851
20852 PR tree-optimization/64950
20853 * gimple-iterator.c (update_modified_stmts): Remove static.
20854 * gimple-iterator.h (update_modified_stmts): Declare.
20855 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
20856 (gimplify_va_arg_internal): New function.
20857 (gimplify_va_arg_expr): Use IFN_VA_ARG.
20858 * gimplify.h (gimplify_va_arg_internal): Declare.
20859 * internal-fn.c (expand_VA_ARG): New unreachable function.
20860 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
20861 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
20862 (expand_ifn_va_arg): New function.
20863 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
20864 (pass_stdarg::execute): Call expand_ifn_va_arg.
20865 (pass_data_lower_vaarg): New pass_data.
20866 (pass_lower_vaarg): New gimple_opt_pass.
20867 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
20868 (make_pass_lower_vaarg): New function.
20869 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
20870 properties_required field.
20871 * passes.def (all_passes): Add pass_lower_vaarg.
20872 * tree-pass.h (PROP_gimple_lva): Add define.
20873 (make_pass_lower_vaarg): Declare.
20874
20875 2015-04-17 Tom de Vries <tom@codesourcery.com>
20876
20877 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
20878 * calls.c (call_expr_flags): Same.
20879
20880 2015-04-17 Tom de Vries <tom@codesourcery.com>
20881
20882 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
20883 (pass_stdarg::execute): ... here.
20884
20885 2015-04-17 Tom de Vries <tom@codesourcery.com>
20886 Michael Matz <matz@suse.de>
20887
20888 * tree-cfg.c (make_blocks_1): Factor out of ...
20889 (make_blocks): ... here.
20890 (make_edges_bb): Factor out of ...
20891 (make_edges): ... here.
20892 (gimple_find_sub_bbs): New function.
20893 * tree-cfg.h (gimple_find_sub_bbs): Declare.
20894
20895 2015-04-17 Tom de Vries <tom@codesourcery.com>
20896
20897 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
20898
20899 2015-04-17 Yury Gribov <y.gribov@samsung.com>
20900
20901 * asan.c (set_sanitized_sections): New function.
20902 (section_sanitized_p): Ditto.
20903 (asan_protect_global): Optionally sanitize user-defined
20904 sections.
20905 * asan.h (set_sanitized_sections): Declare new function.
20906 * common.opt (fsanitize-sections): New option.
20907 * doc/invoke.texi (-fsanitize-sections): Document new option.
20908 * opts-global.c (handle_common_deferred_options): Handle new
20909 option.
20910
20911 2015-04-17 Jakub Jelinek <jakub@redhat.com>
20912
20913 PR debug/65771
20914 * dwarf2out.c (loc_list_from_tree): Return NULL
20915 for DEBUG_EXPR_DECL.
20916
20917 2015-04-17 Christian Bruel <christian.bruel@st.com>
20918
20919 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
20920 same attributes.
20921
20922 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20923
20924 * ira-color.c (setup_left_conflict_sizes_p): Do not process
20925 node itself when computing left conflict subnode size.
20926
20927 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
20928
20929 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
20930 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
20931 *fop_<mode>_1_sse using enabled attribute. Use
20932 register_mixssei387nonimm_operand operand 1 predicate. Change
20933 alternative 3 constraints from "x" to "v".
20934
20935 2015-04-16 Richard Biener <rguenther@suse.de>
20936
20937 PR tree-optimization/65774
20938 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
20939 bit-value tracking on.
20940
20941 2015-04-16 Richard Biener <rguenther@suse.de>
20942
20943 PR tree-optimization/64277
20944 * tree-vrp.c (check_array_ref): Fix anti-range handling,
20945 simplify upper bound handling.
20946 (search_for_addr_array): Simplify.
20947 (check_array_bounds): Handle ADDR_EXPRs here.
20948 (check_all_array_refs): Simplify.
20949
20950 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
20951
20952 * config/i386/i386.c (print_reg): Rewrite function.
20953
20954 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20955
20956 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
20957 Invert the condition.
20958
20959 2015-04-16 Renlin Li <renlin.li@arm.com>
20960
20961 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
20962 simplifications for UNSIGNED_FLOAT.
20963
20964 2015-04-16 Nick Clifton <nickc@redhat.com>
20965
20966 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
20967 MUL_UNINIT.
20968 (enum rl78_cpu_type): New.
20969 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
20970 (umulhi3_shift_virt): Remove m constraint from operand 1.
20971 (umulqihi3_virt): Likewise.
20972 * config/rl78/rl78.c (rl78_option_override): Add code to process
20973 -mcpu and -mmul options.
20974 (rl78_alloc_physical_registers): Add code to handle divhi and
20975 divsi valloc attributes.
20976 (set_origin): Likewise.
20977 * config/rl78/rl78.h (RL78_MUL_G14): Define.
20978 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
20979 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
20980 __RL78_Gxx__.
20981 (ASM_SPEC): Pass -mcpu on to assembler.
20982 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
20983 (mulqi3_rl78): Likewise.
20984 (mulhi3_g13): Likewise.
20985 (mulhi3): Generate the G13 or G14 versions of the insn directly.
20986 (mulsi3): Likewise.
20987 (mulhi3_g14): Add clobbers of AX and BC.
20988 (mulsi3_g14): Likewise.
20989 (mulsi3_g13): Likewise.
20990 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
20991 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
20992 * config/rl78/rl78.opt (mmul): Initialise value to
20993 RL78_MUL_UNINIT.
20994 (mcpu): New option.
20995 (m13, m14, mrl78): New option aliases.
20996 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
20997 (MULTILIB_DIRNAMES): Add g13 and g14.
20998 * doc/invoke.texi: Document -mcpu and -mmul options.
20999
21000 2015-04-16 Richard Biener <rguenther@suse.de>
21001
21002 * tree-ssa-ccp.c (likely_value): See if we have operands that
21003 are marked as never simulate again and return CONSTANT in this
21004 case.
21005 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
21006 not have any operands that will be simulated again as
21007 not being simulated again.
21008
21009 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
21010
21011 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
21012 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
21013 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
21014 attribute.
21015 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
21016 enabled attribute.
21017 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
21018 *float<SWI48:mode><MODEF:mode>2_sse.
21019 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
21020 enabled attribute.
21021 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
21022 enabled attribute.
21023
21024 2015-04-15 Tom de Vries <tom@codesourcery.com>
21025
21026 PR other/65487
21027 * function.c (push_dummy_function): New function.
21028 (init_dummy_function_start): Use push_dummy_function.
21029 (pop_dummy_function): New function. Factored out of ...
21030 (expand_dummy_function_end): ... here.
21031 * function.h (push_dummy_function, pop_dummy_function): Declare.
21032 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
21033 pop_dummy_function.
21034 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
21035
21036 2015-04-15 Jeff Law <law@redhat.com>
21037
21038 PR tree-optimization/47679
21039 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
21040 need for forward declaration in upcoming changes.
21041 (record_conditions, record_edge_info): Likewise.
21042
21043 PR rtl-optimization/42522
21044 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
21045 SIGN_EXTRACT as a whole object rather than simplifying
21046 its operand.
21047
21048 2015-04-15 Jakub Jelinek <jakub@redhat.com>
21049
21050 PR ipa/65765
21051 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
21052 and GIMPLE_PREDICT use break instead of return true. For
21053 GIMPLE_EH_DISPATCH, compare dispatch region.
21054
21055 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
21056
21057 * doc/extend.texi (__sync Builtins): Simplify some text. Update
21058 details about the implementation. Make clear preference for
21059 __atomic builtins. Reduce possibility of future change.
21060
21061 2015-04-15 Nick Clifton <nickc@redhat.com>
21062
21063 * config/rx/rx.opt (mallow-string-insns): New option.
21064 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
21065 builtin if string instructions are denied.
21066 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
21067 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
21068 appropriate.
21069 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
21070 * config/rx/rx.md (movstr): Enable pattern only if string
21071 instructions are allowed.
21072 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
21073 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
21074 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
21075 (MULTILIB_DIRNAMES): Add no-strings.
21076 * doc/invoke.texi: Document -mno-allow-string-insns.
21077
21078 2015-04-15 Alan Modra <amodra@gmail.com>
21079
21080 PR target/65408
21081 PR target/58744
21082 PR middle-end/36043
21083 * calls.c (load_register_parameters): Don't load past end of
21084 mem unless suitably aligned.
21085
21086 2015-04-15 Nick Clifton <nickc@redhat.com>
21087
21088 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
21089 decrement instruction as being frame related.
21090 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
21091 based addresses.
21092 If zero extending a function address enclose the operation in
21093 %code(...).
21094 (rl78_preferred_reload_class): New function.
21095 (TARGET_PREFERRED_RELOAD_CLASS): Define.
21096 * config/rl78/rl78.md: Remove useless constraints in expanders.
21097 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
21098 (mulhi3_rl78): Likewise.
21099 (mulhi3_g13): Likewise.
21100 (mulsi3_rl78): Likewise.
21101 (es_addr): Move to before the multiply patterns.
21102
21103 2015-04-15 Alan Modra <amodra@gmail.com>
21104
21105 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
21106 and sequence_stack. Add seq.
21107 (seq_stack): Delete.
21108 * function.c (prepare_function_start): Don't access x_last_insn.
21109 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
21110 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
21111 * emit_rtl.c (start_sequence, push_topmost_sequence,
21112 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
21113 sequence accessors.
21114 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
21115 remove_insn): Likewise. Simplify.
21116 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
21117 and pop_topmost_sequence.
21118 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
21119 debug insns.
21120 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
21121
21122 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
21123
21124 PR target/65729
21125 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
21126 the assertiion.
21127
21128 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
21129
21130 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
21131 (LEGACY_INT_REGNO_P): Ditto.
21132 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
21133 (ANY_MASK_REG_P): Remove.
21134 (BND_REG_P): Rename from ANY_BND_REG_P.
21135 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
21136 legacy integer registers. Do not handle MMX_REG_P in a special way.
21137 Merge 64byte and 32byte SSE handling.
21138
21139 2015-04-14 Nick Clifton <nickc@redhat.com>
21140
21141 * expr.c (expand_assignment): Force an address offset computation
21142 into a register before changing its mode.
21143 (expand_expr_real_1): Likewise.
21144
21145 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
21146
21147 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
21148 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
21149 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
21150 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
21151 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
21152 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
21153 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
21154 and __aarch64_vget_lane_any.
21155
21156 2015-04-14 Jakub Jelinek <jakub@redhat.com>
21157
21158 PR rtl-optimization/65761
21159 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
21160 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
21161
21162 2015-04-14 Richard Biener <rguenther@suse.de>
21163
21164 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
21165 (graphite_can_represent_scev): Use POINTER_TYPE_P.
21166
21167 2015-04-14 Richard Biener <rguenther@suse.de>
21168
21169 PR tree-optimization/65758
21170 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
21171 against -1.
21172 (ccp_lattice_meet): Likewise.
21173 (bit_value_unop): Likewise.
21174 (bit_value_binop): Likewise.
21175 (bit_value_assume_aligned): Likewise.
21176
21177 2015-04-14 Christian Bruel <christian.bruel@st.com>
21178
21179 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
21180 function.
21181
21182 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
21183
21184 PR tree-optimization/63387
21185 * match.pd ((x unord x) | (y unord y) -> (x unord y),
21186 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
21187
21188 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
21189
21190 * config/i386/predicates.md (any_QIreg_operand): Rename from
21191 q_regs_operand. Do not process subregs.
21192 (QIreg_operand): Use QI_REGNO_P predicate.
21193 (ext_QIreg_operand): Ditto.
21194 (ext_register_operand): Ditto.
21195 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
21196 (AND splitters): Ditto.
21197 (AND with -65536 splitter): Add SWI48 mode for operand 0.
21198 (AND with -256 splitter): Use any_QIreg_operand predicate and
21199 SWI248 mode for operand 0.
21200 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
21201 mode for operand 0.
21202 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
21203
21204 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
21205
21206 * doc/plugins.texi: Rewrite first introductory paragraph.
21207
21208 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21209
21210 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
21211 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
21212
21213 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21214
21215 * ipa-profie.c (ipa_profile): Check number of parameters
21216 and possible polymorphic call targets before
21217 devirtualizing.
21218
21219 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
21220
21221 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
21222 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
21223
21224 2015-04-13 Richard Biener <rguenther@suse.de>
21225
21226 PR tree-optimization/65204
21227 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
21228 takens for bit-CCP.
21229
21230 2015-04-13 Richard Biener <rguenther@suse.de>
21231
21232 PR target/65660
21233 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
21234 and cond_not_taken_branch_cost to 4 and 2.
21235 (bdver2_cost): Likewise.
21236 (bdver3_cost): Likewise.
21237 (bdver4_cost): Likewise.
21238
21239 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21240
21241 * hash-table.h (hash_table constructor): Add mem stats.
21242 (alloc_entries): Likewise.
21243
21244 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21245
21246 * ipa-cp.c (ipcp_driver): Relase prev_edge.
21247 * passes.c (execute_one_pass): Only add transform if pass has one.
21248
21249 2015-04-12 Joseph Myers <joseph@codesourcery.com>
21250
21251 * config/i386/i386.c (ix86_option_override_internal): Don't set
21252 -fprefetch-loop-arrays if optimizing for size.
21253
21254 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
21255 Gerald Pfeifer <gerald@pfeifer.com>
21256
21257 * doc/contrib.texi (Contributors): Add Martin Jambor and
21258 Michael Matz.
21259
21260 2015-04-12 Jakub Jelinek <jakub@redhat.com>
21261
21262 * BASE-VER: Set to 6.0.0.
21263
21264 PR tree-optimization/65747
21265 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
21266 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
21267
21268 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
21269
21270 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
21271 sentence. Improve grammar.
21272
21273 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
21274
21275 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
21276
21277 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
21278
21279 PR ipa/65743
21280 * ipa-inline-transform.c (speculation_removed): Remove static var.
21281 (check_speculations): New function.
21282 (clone_inlined_nodes): Do not check spculations.
21283 (inline_call): Call check_speculations.
21284 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
21285 consider non-invariants.
21286
21287 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
21288 Martin Liska <mliska@suse.cz>
21289
21290 PR ipa/65722
21291 * ipa-icf.c (sem_item::compare_cgraph_references): function and
21292 variable can not match.
21293 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
21294 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
21295
21296 2015-04-11 Jakub Jelinek <jakub@redhat.com>
21297
21298 PR tree-optimization/65735
21299 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
21300 Remove visited_phis argument, add visited_bbs, avoid recursing into the
21301 same bb rather than just into the same phi node.
21302 (thread_through_normal_block): Adjust caller.
21303
21304 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
21305
21306 * doc/contrib.texi (Contributors): Add Ira Rosen.
21307
21308 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
21309
21310 * gcov.c (find_source): Fix miswording in error message.
21311 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
21312 (ix86_expand_sse_comi_round): Fix typo in error message.
21313
21314 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
21315
21316 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
21317
21318 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
21319
21320 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
21321
21322 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
21323
21324 PR target/65710
21325 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
21326 Print bad_spills_num and insn_pseudos_num.
21327
21328 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21329
21330 PR target/65694
21331 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
21332 when creating +1 values for SImode.
21333
21334 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
21335
21336 PR target/65729
21337 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
21338 assert.
21339
21340 2015-04-10 Jakub Jelinek <jakub@redhat.com>
21341 Iain Sandoe <iain@codesourcery.com>
21342
21343 PR target/65351
21344 * configure: Regenerate.
21345
21346 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
21347
21348 PR target/65671
21349 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
21350
21351 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
21352
21353 * doc/contrib.texi (Contributors): Add John Marino.
21354
21355 2015-04-09 Jakub Jelinek <jakub@redhat.com>
21356
21357 PR tree-optimization/65709
21358 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
21359 TREE_TYPE (TREE_TYPE (t)).
21360
21361 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
21362
21363 PR target/65710
21364 * lra-int.h (lra_bad_spill_regno_start): New.
21365 * lra.c (lra_bad_spill_regno_start): New.
21366 (lra): Set up lra_bad_spill_regno_start. Set up
21367 lra_constraint_new_regno_start unconditionally.
21368 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
21369 spill preferences.
21370
21371 2015-04-09 Marek Polacek <polacek@redhat.com>
21372 Jakub Jelinek <jakub@redhat.com>
21373
21374 PR middle-end/65554
21375 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
21376 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
21377 of STRIP_NOPS.
21378
21379 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
21380
21381 PR rtl-optimization/65693
21382 * combine.c (is_parallel_of_n_reg_sets): Move outside of
21383 #ifndef HAVE_cc0.
21384
21385 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
21386
21387 PR target/65296
21388 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
21389 device specs file if "device-specs%s" didn't resolve to a path.
21390
21391 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
21392
21393 PR target/65676
21394 * config/i386/i386.c (fixup_modeless_constant): New.
21395 (ix86_expand_args_builtin): Fixup modeless constant operand.
21396 (ix86_expand_round_builtin): Ditto.
21397 (ix86_expand_special_args_builtin): Ditto.
21398 (ix86_expand_builtin): Ditto.
21399
21400 2015-04-09 Jakub Jelinek <jakub@redhat.com>
21401
21402 PR target/65693
21403 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
21404 any pow2 integer in between 2 and 0x80000000U inclusive.
21405
21406 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
21407
21408 PR rtl-optimization/65693
21409 * combine.c (is_parallel_of_n_reg_sets): Change first argument
21410 from an rtx_insn * to an rtx.
21411 (try_combine): Adjust both callers. Use it once more.
21412
21413 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
21414
21415 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
21416 (chkp_make_static_const_bounds): Search existing
21417 symbol by assembler name. Use make_decl_one_only.
21418 (chkp_get_zero_bounds_var): Remove node search which
21419 is now performed in chkp_make_static_const_bounds.
21420 (chkp_get_none_bounds_var): Likewise.
21421
21422 2015-04-08 Michael Witten <mfwitten@gmail.com>
21423
21424 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
21425 to an example.
21426
21427 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21428
21429 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
21430
21431 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
21432
21433 * doc/extend.texi (__sync Builtins): Fix grammar.
21434
21435 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21436
21437 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
21438
21439 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21440
21441 * varasm.c (emit_local): Move definition of align.
21442
21443 2015-04-08 Julian Brown <julian@codesourcery.com>
21444
21445 * config/nvptx/mkoffload.c (process): Support variable mapping.
21446
21447 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
21448
21449 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
21450 alpha_links **.
21451 (alpha_write_one_linkage): Correct typo.
21452
21453 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
21454
21455 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
21456
21457 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
21458
21459 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
21460
21461 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
21462
21463 * tree-chkp.h (chkp_insert_retbnd_call): New.
21464 * tree-chkp.c (chkp_insert_retbnd_call): New.
21465 * ipa-split.c (insert_bndret_call_after): Remove.
21466 (split_function): Use chkp_insert_retbnd_call.
21467 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
21468 bounds for instrumented functions.
21469
21470 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
21471
21472 PR ipa/65540
21473 * calls.c (initialize_argument_information): When producing tail
21474 call also turn SSA_NAMES passed by references to original PARM_DECLs
21475
21476 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
21477
21478 PR target/65648
21479 * lra-remat.c (do_remat): Process input and non-input insn
21480 registers separately.
21481
21482 2015-04-07 Jakub Jelinek <jakub@redhat.com>
21483
21484 PR debug/65678
21485 * valtrack.c (debug_lowpart_subreg): New function.
21486 (dead_debug_insert_temp): Use it.
21487
21488 PR middle-end/65680
21489 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
21490 into signed HOST_WIDE_INT the same as negative bit_offset.
21491
21492 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
21493
21494 * ipa-comdats.c (ipa_comdats): Visit all thunks
21495 to set proper comdat group.
21496
21497 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21498
21499 PR target/65489
21500 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
21501 on constants for NEON VSTRUCT modes.
21502
21503 2015-04-07 Jakub Jelinek <jakub@redhat.com>
21504 Iain Sandoe <iain@codesourcery.com>
21505
21506 PR target/65351
21507 * configure: Regenerate.
21508
21509 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
21510
21511 PR target/65614
21512 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
21513 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
21514 that LFD is used to load double constants instead of LFS. Add
21515 defaults for all costs structures. Add comments for missing
21516 initialization fields.
21517 (size32_cost): Likewise.
21518 (size64_cost): Likewise.
21519 (rs64a_cost): Likewise.
21520 (mpccore_cost): Likewise.
21521 (ppc403_cost): Likewise.
21522 (ppc405_cost): Likewise.
21523 (ppc440_cost): Likewise.
21524 (ppc476_cost): Likewise.
21525 (ppc601_cost): Likewise.
21526 (ppc603_cost): Likewise.
21527 (ppc604_cost): Likewise.
21528 (ppc604e_cost): Likewise.
21529 (ppc620_cost): Likewise.
21530 (ppc630_cost): Likewise.
21531 (ppccell_cost): Likewise.
21532 (ppc750_cost): Likewise.
21533 (ppc7450_cost): Likewise.
21534 (ppc8540_cost): Likewise.
21535 (ppce300c2c3_cost): Likewise.
21536 (ppce500mc_cost): Likewise.
21537 (ppce500mc64_cost): Likewise.
21538 (ppce5500_cost): Likewise.
21539 (ppce6500_cost): Likewise.
21540 (titan_cost): Likewise.
21541 (power4_cost): Likewise.
21542 (power6_cost): Likewise.
21543 (power7_cost): Likewise.
21544 (power8_cost): Likewise.
21545 (ppca2_cost): Likewise.
21546 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
21547
21548 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
21549 instead of XXLOR to copy SFmode to clear out dirty bits created
21550 when SFmode denormals are generated.
21551 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
21552 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
21553
21554 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
21555
21556 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
21557 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
21558 * config/aarch64/aarch64-tune.md: Regenerate.
21559
21560 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
21561
21562 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
21563 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
21564 * config/arm/arm-cores.def (exynos-m1): New core.
21565 * config/arm/arm-tune.md: Regenerate.
21566 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
21567 * config/arm/bpabi.h: Likewise.
21568
21569 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
21570
21571 * ipa-cp (set_single_call_flag): Remove too
21572 restrictive assert.
21573
21574 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
21575
21576 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
21577 GOMP_offload_unregister from the destructor.
21578
21579 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
21580
21581 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
21582 flags for instrumentation thunk.
21583 (chkp_produce_thunks): Likewise.
21584
21585 2015-04-05 Martin Liska <mliska@suse.cz>
21586
21587 PR ipa/65665
21588 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
21589 has computed data structure.
21590 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
21591
21592 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
21593
21594 * invoke.texi (inline-unit-growth): Increase growth to 20%
21595 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
21596
21597 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
21598
21599 PR target/65647
21600 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
21601 value checking.
21602 (lra_rematerialization_iter): New.
21603 * lra.c (lra): Initialize lra_rematerialization_iter.
21604 Stop updating lra_constraint_new_regno_start after switching of
21605 inheritance and rematerialization.
21606 * lra-remat.c (lra_rematerialization_iter): New.
21607 (lra_remat): Add printing pass iteration. Do rematerialization
21608 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
21609
21610 2015-04-04 Richard Biener <rguenther@suse.de>
21611
21612 PR tree-optimization/64909
21613 PR tree-optimization/65660
21614 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
21615 to take a cost vector for scalar iteration cost.
21616 (vect_get_single_scalar_iteration_cost): Likewise.
21617 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
21618 Compute the scalar iteration cost into a cost vector.
21619 (vect_get_known_peeling_cost): Use the scalar cost vector to
21620 account for the cost of the peeled iterations.
21621 (vect_estimate_min_profitable_iters): Likewise.
21622 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
21623 Likewise.
21624
21625 2015-04-04 Alan Modra <amodra@gmail.com>
21626
21627 PR target/65576
21628 PR target/65240
21629 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
21630 0.0 constant unless TARGET_VSX.
21631 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
21632 alternative.
21633
21634 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
21635
21636 PR ipa/65654
21637 * ipa-inline-transform.c (inline_call): Skip sanity check to work
21638 around the ICE
21639
21640 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
21641
21642 PR ipa/65655
21643 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
21644 speculative indirect edges to avoid ordering issue.
21645
21646 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
21647
21648 PR ipa/65076
21649 * ipa-inline.c (edge_badness): Add combined size to the denominator.
21650
21651 2015-04-03 Jakub Jelinek <jakub@redhat.com>
21652
21653 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
21654 TYPE_ARTIFICIAL on the .omp_data* types.
21655
21656 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
21657
21658 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
21659 instrumentation thunks.
21660
21661 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
21662
21663 * config/i386/i386.c (ix86_expand_call): Avoid nested
21664 PARALLEL in returned call value.
21665
21666 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
21667
21668 * lto-cgraph.c (input_cgraph_1): Always link instrumented
21669 assembler name with original one.
21670
21671 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
21672
21673 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
21674
21675 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
21676
21677 Revert parts of r216820.
21678 * config/i386/i386.md (movqi_internal): Correct type calculation
21679 for alternatives 3 and 5.
21680
21681 2015-04-02 Jakub Jelinek <jakub@redhat.com>
21682
21683 PR preprocessor/61977
21684 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
21685 predefine __vector/__bool/__pixel macros nor context sensitive
21686 macros for CLK_ASM.
21687 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
21688
21689 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
21690
21691 * config/pa/pa.c (pa_output_move_double): Directly handle register
21692 indexed memory operand. Simplify handling of scaled register indexed
21693 memory operands.
21694
21695 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
21696
21697 PR driver/65444
21698 * config/i386/linux-common.h (MPX_SPEC): New.
21699 (CHKP_SPEC): Add MPX_SPEC.
21700 * doc/invoke.texi (-fcheck-pointer-boudns): Document
21701 possible issues with '-z bndplt' support in linker.
21702
21703 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
21704
21705 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
21706 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
21707 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
21708 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
21709 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
21710
21711 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
21712
21713 * config/i386/sync.md (UNSPEC_MOVA): Remove.
21714 (atomic_load<mode>): Change operand 0 predicate to
21715 nonimmediate_operand and fix up the destination when needed.
21716 Use UNSPEC_LDA.
21717 (atomic_loaddi_fpu): Use UNSPEC_LDA.
21718 (atomic_store<mode>): Change operand 1 predicate to
21719 nonimmendate_operand and move the source to register when needed.
21720 Use UNSPEC_STA.
21721 (atomic_store<mode>_1): Use UNSPEC_STA.
21722 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
21723 Fix moves from memory operand. Use UNSPEC_STA.
21724
21725 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
21726
21727 * expmed.c (strict_volatile_bitfield_p): Check that the access will
21728 not cross a MODESIZE boundary.
21729 (store_bit_field, extract_bit_field): Added assertions in the
21730 strict volatile bitfields code path.
21731
21732 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
21733
21734 PR target/65624
21735 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
21736 Increase args array size by one to avoid buffer overflow.
21737
21738 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
21739
21740 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
21741 split_part.
21742 * ipa-inline.c (edge_badness): Add wrapper penalty.
21743 (sum_callers): Move up.
21744 (inline_small_functions): Set single_caller.
21745 * ipa-inline.h (inline_summary): Add single_caller.
21746 * ipa-split.c (split_function): Set split_part.
21747 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
21748 * cgraph.h (cgraph_node): Add split_part.
21749
21750 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
21751
21752 PR target/58945
21753 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
21754 Do not split operands 0 and operands 2 to halfmode.
21755 (atomic_compare_and_swap<mode>): Update for
21756 atomic_compare_and_swap<dwi>_doubleword changes.
21757
21758 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
21759
21760 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
21761 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
21762 no caching is done.
21763
21764 2015-03-31 Martin Liska <mliska@suse.cz>
21765
21766 PR ipa/65557
21767 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
21768 has already filled up function summary.
21769 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
21770
21771 2015-03-31 Richard Biener <rguenther@suse.de>
21772
21773 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
21774 of types.
21775
21776 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
21777
21778 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
21779 nested functions.
21780 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
21781 (s390_asm_output_function_label): Adapt to new signature of
21782 s390_function_num_hotpatch_hw
21783 Optimise the code generating assembler output.
21784 Add comments to assembler file.
21785
21786 2015-03-31 Richard Biener <rguenther@suse.de>
21787
21788 PR middle-end/65626
21789 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
21790 of the noreturn call so it is last and cleanup_control_flow_bb
21791 can do the CFG part.
21792
21793 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
21794
21795 PR target/65531
21796 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
21797 same_comdat_group for external symbols.
21798 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
21799 infinite same_comdat_group traversal loop.
21800
21801 2015-03-31 Jakub Jelinek <jakub@redhat.com>
21802
21803 PR plugins/61176
21804 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
21805 automatically to $headers.
21806
21807 2015-03-30 Jakub Jelinek <jakub@redhat.com>
21808
21809 PR ipa/65610
21810 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
21811 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
21812 function.
21813 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
21814 Use it.
21815 * ipa-prop.c (param_type_may_change_p): Likewise.
21816 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
21817 (remove_unused_scope_block_p): Add in_ctor_dtor_block
21818 argument. Before inlining, preserve
21819 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
21820 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
21821 recursive calls.
21822 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
21823
21824 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
21825
21826 PR ipa/65076
21827 * ipa-inline.c (edge_badness): Base denominator on callee's
21828 grwoth squared.
21829
21830 2015-03-27 Martin Jambor <mjambor@suse.cz>
21831
21832 PR ipa/65478
21833 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
21834 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
21835 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
21836 node_calling_single_call.
21837 * ipa-cp.c (count_callers): New function.
21838 (set_single_call_flag): Likewise.
21839 (initialize_node_lattices): Count callers and set single_flag_call if
21840 necessary.
21841 (incorporate_penalties): New function.
21842 (good_cloning_opportunity_p): Use it, dump new flags.
21843 (propagate_constants_topo): Set node_within_scc flag if appropriate.
21844 * doc/invoke.texi (ipa-cp-recursion-penalty,
21845 ipa-cp-single-call-pentalty): Document.
21846
21847 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
21848
21849 PR ipa/65588
21850 * symtab.c (symtab_node::get_partitioning_class): Register vars
21851 are duplicated.
21852 * varpool.c (symbol_table::output_variables) Do not assemble unefined
21853 decls for non-symbols.
21854
21855 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
21856
21857 PR target/65248
21858 * output.h (default_binds_local_p_2): New.
21859 * varasm.c (default_binds_local_p_2): Renamed to ...
21860 (default_binds_local_p_3): This. Don't return true on protected
21861 data symbol if protected data may be external.
21862 (default_binds_local_p): Use default_binds_local_p_3.
21863 (default_binds_local_p_1): Likewise.
21864 (default_binds_local_p_2): New.
21865 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
21866 default_binds_local_p_2 if TARGET_MACHO is undefined.
21867
21868 2015-03-27 Jakub Jelinek <jakub@redhat.com>
21869
21870 PR target/65593
21871 * config/i386/i386.c (legitimize_pic_address): If base
21872 is SYMBOL_REF or LABEL_REF using %rip addressing, force
21873 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
21874
21875 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
21876
21877 PR target/65531
21878 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
21879 comdat groups.
21880
21881 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
21882
21883 PR ipa/65600
21884 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
21885 of optimized out indirect call.
21886 (redirect_to_unreachable): Always build symbol table node for
21887 BUILT_IN_UNREACHABLE
21888
21889 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
21890
21891 PR target/65407
21892 * ira-costs.c (record_reg_classes): Process all constraint string
21893 containing 0-9.
21894
21895 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
21896
21897 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
21898 memory_operand.
21899
21900 PR target/65052
21901 * config/c6x/constraints.md (S3): New constraint.
21902 * config/c6x/c6x.md (real_jump): Use it.
21903
21904 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21905
21906 PR middle-end/65595
21907 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
21908 do redirection if the call is not optimized out.
21909
21910 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
21911
21912 PR target/65495
21913 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
21914 (fchkp-check-incomplete-type): Add LTO.
21915 (fchkp-zero-input-bounds-for-main): Likewise.
21916 (fchkp-first-field-has-own-bounds): Likewise.
21917 (fchkp-narrow-bounds): Likewise.
21918 (fchkp-narrow-to-innermost-array): Likewise.
21919 (fchkp-use-static-bounds): Likewise.
21920 (fchkp-use-static-const-bounds): Likewise.
21921 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
21922
21923 2015-03-27 Marek Polacek <polacek@redhat.com>
21924
21925 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
21926
21927 2015-03-27 Marek Polacek <polacek@redhat.com>
21928
21929 PR sanitizer/65583
21930 * ubsan.c (ubsan_create_edge): New function.
21931 (instrument_bool_enum_load): Call it.
21932 (instrument_nonnull_arg): Likewise.
21933 (instrument_nonnull_return): Likewise.
21934 (instrument_object_size): Likewise.
21935
21936 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21937
21938 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
21939 auto_vec.
21940
21941 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21942
21943 PR lto/65536
21944 * lto-streamer.h (class lto_location_cache): New.
21945 (struct data_in): Add location_cache.
21946 (lto_input_location): Update prototype.
21947 (stream_input_location_now): New.
21948 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
21949 pointer to location.
21950 (stream_input_location): Update.
21951 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
21952 (warn_odr): Apply location cache before warning.
21953 (lto_input_location): Update prototype.
21954 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
21955 Use stream_input_location_now.
21956 * lto-streamer-in.c (lto_location_cache::current_cache): New static
21957 variable.
21958 (lto_location_cache::cmp_loc): New function.
21959 (lto_location_cache::apply_location_cache): New function.
21960 (lto_location_cache::accept_location_cache): New function.
21961 (lto_location_cache::revert_location_cache): New function.
21962 (lto_location_cache::input_location): New function.
21963 (lto_input_location): Do location caching.
21964 (stream_input_location_now): New function.
21965 (input_eh_region, input_struct_function_base): Use
21966 stream_input_location_now.
21967 (lto_data_in_create): use new.
21968 (lto_data_in_delete): Use delete.
21969 * tree-streamer-in.c (unpack_ts_block_value_fields,
21970 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
21971 lto_input_ts_exp_tree_pointers): Update for cached location api.
21972
21973 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21974
21975 PR ipa/65076
21976 * passes.def: Add pass_nothrow.
21977 * ipa-pure-const.c: (pass_data_nothrow): New.
21978 (pass_nothrow): New.
21979 (pass_nothrow::execute): New.
21980 (make_pass_nothrow): New.
21981 * tree-pass.h (make_pass_nothrow): Declare.
21982
21983 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21984
21985 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
21986 edge to change by speculation resolution or redirection.
21987 (edge_set_predicate): Likewise.
21988 (inline_summary_t::duplicate): Likewise.
21989 (remap_edge_summaries): Likewise.
21990
21991 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
21992
21993 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
21994 New macros.
21995 (can_inline_edge_p): Relax option matching for always inline functions.
21996
21997 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
21998
21999 PR target/65561
22000 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
22001 Check operand 4 and operand 0 for equality.
22002 (avx512f_vextract<shuffletype>32x4_1_maskm):
22003 Check operand 6 and operand 0 for equality.
22004 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
22005 for equality.
22006 (vec_extract_hi_<mode>_maskm): Ditto.
22007
22008 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22009
22010 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
22011 dead calls back to live.
22012 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
22013 cross check to ...
22014 (cgraph_node::verify_node): ... here; verify only callee edges,
22015 not caller.
22016 * cif-code.def (CILK_SPAWN): New code.
22017
22018 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
22019
22020 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
22021 (edge_set_predicate): Use it to mark unreachable edges.
22022 (inline_summary_t::duplicate): Remove unnecesary code.
22023 (remap_edge_summaries): Likewise.
22024 (dump_inline_summary): Report contains_cilk_spawn.
22025 (compute_inline_parameters): Compute contains_cilk_spawn.
22026 (inline_read_section, inline_write_summary): Stream
22027 contains_cilk_spawn.
22028 * ipa-inline.c (can_inline_edge_p): Do not touch
22029 DECL_STRUCT_FUNCTION that may not be available;
22030 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
22031 remove check for callee_fun->can_throw_non_call_exceptions and
22032 replace it by optimization attribute check; check for flag_exceptions.
22033 * ipa-inline-transform.c (inline_call): Maintain
22034 DECL_FUNCTION_PERSONALITY
22035 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
22036
22037 2015-03-26 Jakub Jelinek <jakub@redhat.com>
22038
22039 PR tree-optimization/65551
22040 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
22041 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
22042
22043 2015-03-26 Richard Biener <rguenther@suse.de>
22044
22045 PR middle-end/65555
22046 * tree-cfg.c (verify_gimple_call): Do not require a call to
22047 have no LHS if it wasn't recognized as control altering yet.
22048
22049 2015-03-26 Jakub Jelinek <jakub@redhat.com>
22050
22051 PR tree-optimization/64715
22052 * passes.def: Add another instance of pass_object_sizes before ccp1.
22053 * tree-object-size.c (pass_object_sizes::execute): In
22054 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
22055 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
22056 __bos result and the computed constant. Remove redundant
22057 checks, obsoleted by gimple_call_builtin_p test.
22058
22059 * var-tracking.c (variable_tracking_main_1): Don't track
22060 variables for targetm.no_register_allocation targets.
22061
22062 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
22063
22064 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
22065 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
22066
22067 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
22068
22069 PR target/65569
22070 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
22071 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
22072 0.0 is correctly setup.
22073 (extenddftf2_internal): Likewise.
22074
22075 2015-03-25 Sebastian Pop <s.pop@samsung.com>
22076
22077 PR tree-optimization/65177
22078 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
22079 (bb_in_bbs): New.
22080 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
22081 edges not adjacent on the path to the original code.
22082
22083 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
22084
22085 PR bootstrap/65537
22086 * doc/install.texi (Building a native compiler): Document new
22087 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
22088 configuration assumes that the host supports the linker plugin.
22089
22090 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
22091
22092 PR target/65508
22093 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
22094 chain for generated call.
22095
22096 2015-03-25 Richard Biener <rguenther@suse.de>
22097
22098 * passes.c (pass_manager::execute_early_local_passes): Guard
22099 execution of pass_chkp_instrumentation_passes with
22100 flag_check_pointer_bounds.
22101 (pass_chkp_instrumentation_passes::gate): Likewise.
22102
22103 2015-03-25 Martin Liska <mliska@suse.cz>
22104
22105 PR tree-optimization/65538
22106 * symbol-summary.h (function_summary::~function_summary):
22107 Relese memory for allocated summaries.
22108 (function_summary::release): New function.
22109
22110 2015-03-25 Jakub Jelinek <jakub@redhat.com>
22111
22112 PR lto/65515
22113 * lto-streamer-out.c (DFS::worklist): New struct.
22114 (DFS::worklist_vec): New data member.
22115 (DFS::next_dfs_num): Remove.
22116 (DFS::DFS): Rewritten using worklist instead of recursion,
22117 using most of code from DFS::DFS_write_tree.
22118 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
22119 pass it to DFS_write_tree calls.
22120 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
22121 quick initial checks push it into worklist_vec and return.
22122
22123 2015-03-25 Richard Biener <rguenther@suse.de>
22124
22125 PR middle-end/65519
22126 * genmatch.c (expr::gen_transform): Re-write to avoid
22127 using gimple_build.
22128
22129 2015-03-25 Bin Cheng <bin.cheng@arm.com>
22130
22131 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
22132
22133 2015-03-25 Bin Cheng <bin.cheng@arm.com>
22134
22135 * config/arm/arm.opt (print_tune_info): New option.
22136 * config/arm/arm.c (arm_print_tune_info): New function.
22137 (arm_file_start): Call arm_print_tune_info.
22138 * config/arm/arm-protos.h (struct tune_params): Add comment.
22139 * doc/invoke.texi (@item -mprint-tune-info): New item.
22140 (-mtune): mention it in ARM Option Summary.
22141
22142 2015-03-25 DJ Delorie <dj@redhat.com>
22143
22144 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
22145 correct clause.
22146
22147 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
22148 Martin Liska <mliska@suse.cz>
22149
22150 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
22151 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
22152 (sem_item::add_type): New function.
22153 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
22154 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
22155 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
22156 (sem_function::equals_wpa): Fix typo.
22157 * ipa-icf.h (sem_item::add_type): New function.
22158 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
22159 order.
22160
22161 2015-03-24 Jakub Jelinek <jakub@redhat.com>
22162
22163 PR tree-optimization/65533
22164 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
22165 with swapped operands, call vect_free_slp_tree on
22166 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
22167 vector.
22168
22169 2015-03-24 Richard Biener <rguenther@suse.de>
22170
22171 PR middle-end/65517
22172 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
22173 for fixup if necessary.
22174
22175 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
22176
22177 * doc/extend.texi (Function Attributes): Add @cindex entries
22178 for all attributes and regularize their format. Delete text
22179 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
22180 information about "eightbit_data", "tiny_data", and "model"
22181 variable attributes to the Variable Attributes section. Fix
22182 some obvious typos and copy-editing issues.
22183 (Variable Attributes, Type Attributes): Likewise add/fix
22184 @cindex entries for all attributes.
22185
22186 2015-03-23 Jakub Jelinek <jakub@redhat.com>
22187
22188 PR target/65523
22189 * tree-chkp.c (chkp_build_returned_bound): Ignore
22190 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
22191
22192 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
22193
22194 PR target/65505
22195 * config/sh/predicates.md (simple_mem_operand,
22196 displacement_mem_operand): Add test for reg.
22197 (short_displacement_mem_operand): Test for displacement_mem_operand
22198 before invoking sh_disp_addr_displacement.
22199 * config/sh/constraints.md (Sdd, Sra): Simplify.
22200 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
22201 Remove redundant displacement_mem_operand tests.
22202
22203 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
22204
22205 PR target/65296
22206 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
22207 the same -mmcu=MCU more than once.
22208
22209 2015-03-23 Jakub Jelinek <jakub@redhat.com>
22210
22211 PR bootstrap/65522
22212 * ipa-devirt.c: Remove duplicate demangle.h include.
22213
22214 PR target/65504
22215 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
22216 on the pseudo.
22217 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
22218 REG_POINTER on *destptr after adjusting it for prologue size.
22219
22220 PR ipa/65521
22221 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
22222 ultimate_alias_target ()->order ints instead of
22223 ultimate_alias_target () pointers.
22224
22225 2015-03-23 Richard Biener <rguenther@suse.de>
22226
22227 PR tree-optimization/65518
22228 * tree-vect-stmts.c (vectorizable_load): Reject single-element
22229 interleaving cases we generate absymal code for.
22230
22231 2015-03-23 Richard Biener <rguenther@suse.de>
22232
22233 PR tree-optimization/65494
22234 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
22235 matches here.
22236 (vect_analyze_slp_instance): But do that here, always and once.
22237
22238 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22239
22240 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
22241 adding T or multiplying by T+1 and subracting T.
22242
22243 2015-03-22 Jeff Law <law@redhat.com>
22244
22245 PR rtl-optimization/64317
22246 * Makefile.in (OBJS): Add gcse-common.c
22247 * gcse.c: Include gcse-common.h
22248 (struct modify_pair_s): Move structure definition to gcse-common.h
22249 (compute_transp): Move function to gcse-common.c.
22250 (canon_list_insert): Similarly.
22251 (record_last_mem_set_info): Break out some code and put it into
22252 gcse-common.c. Call into the new common code.
22253 (compute_local_properties): Pass additional arguments to compute_transp.
22254 * postreload-gcse.c: Include gcse-common.h and df.h
22255 (modify_mem_list_set, blocks_with_calls): New variables.
22256 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
22257 (get_bb_avail_insn): Pass in the expression index too.
22258 (alloc_mem): Allocate memory for the new bitmaps and lists.
22259 (free_mem): Free memory for the new bitmaps and lists.
22260 (insert_expr_in_table): Record a bitmap index for each entry we
22261 add to the table.
22262 (record_last_mem_set_info): Call into common code in gcse-common.c.
22263 (get_bb_avail_insn): If no available insn was found in the requested
22264 BB. If BB has a single predecessor, see if the expression is
22265 transparent in BB and available in that single predecessor.
22266 (compute_expr_transp): New wrapper for compute_transp.
22267 (eliminate_partially_redundant_load): Pass expression's bitmap_index
22268 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
22269 (gcse_after_reload_main): If there are elements in the hash table,
22270 then compute transparency for all the elements in the hash table.
22271 * gcse-common.h: New file.
22272 * gcse-common.c: New file.
22273
22274 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
22275
22276 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
22277 as an adjective.
22278 (System Headers): Likewise.
22279 (Ifdef): Likewise.
22280 (Traditional macros): Likewise.
22281 (Invocation): Likewise.
22282 (Option Index): Likewise.
22283 * doc/cppopts.texi (-M): Likewise.
22284 (-finput-charset): Likewise.
22285 (--help): Likewise.
22286 * doc.invoke.texi (AVR Options): Likewise.
22287 (V850 Options): Likewise.
22288
22289 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
22290
22291 PR ipa/65475
22292 * ipa-devirt.c: Include demangle.h
22293 (odr_type_d): Add field rtti_broken.
22294 (odr_subtypes_equivalent_p): Do not require name to match.
22295 (compare_virtual_tables): Fix typo; if type already has ODR violation,
22296 bypass the tests; be ready for function referneces in vtables that are
22297 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
22298 (warn_odr): Give up for nameless types.
22299 (warn_types_mismatch): Report mismatch in mangled names;
22300 report mismatch in anonymous namespaces; look into component types to
22301 give useful error; report when mismatch is dragged in from other ODR
22302 type.
22303 (odr_types_equivalent_p): Match types for being polymorphic; avoid
22304 duplicated diagnostics.
22305 (add_type_duplicate): Reorder checks so more informative ones come
22306 first; fix typo; do not output "the extra base is defined here" when
22307 we did not warn.
22308 (BINFO_N_BASE_BINFOS): Relax sanity check.
22309
22310 2015-03-22 Martin Liska <mliska@suse.cz>
22311 Jakub Jelinek <jakub@redhat.com>
22312
22313 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
22314 masks that can potentially include a builtin.
22315 (ix86_add_new_builtins): Introduce fast filter for isa values
22316 that cannot trigger builtin inclusion.
22317
22318 2015-03-22 Martin Liska <mliska@suse.cz>
22319
22320 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
22321 (sem_item::update_hash_by_local_refs): Likewise.
22322 (sem_variable::get_hash): Empty line is fixed.
22323 (sem_item_optimizer::execute): Include adding of hash references.
22324 (sem_item_optimizer::update_hash_by_addr_refs): New function.
22325 (sem_item_optimizer::build_hash_based_classes): Use local hash.
22326 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
22327 (sem_item::update_hash_by_local_refs): Likewise.
22328
22329 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
22330
22331 PR ipa/65502
22332 * ipa-comdats.c (enqueue_references): Walk through thunks.
22333 (ipa_comdats): Likewise.
22334 (set_comdat_group_1): New function.
22335
22336 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
22337
22338 PR ipa/65475
22339 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
22340 non-polymorphic
22341
22342 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
22343 Gerald Pfeifer <gerald@pfeifer.com>
22344
22345 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
22346
22347 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
22348 Sandra Loosemore <sandra@codesourcery.com>
22349
22350 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
22351 function parameter declaration.
22352 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
22353 Update arguments to nios2_adjust_call_address().
22354 (sibcall_internal): Rename from *sibcall.
22355 (sibcall_value_internal): Rename from *sibcall_value.
22356 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
22357 (nios2_large_got_address): Add target temp reg parameter.
22358 (nios2_got_address): Adjust call to nios2_large_got_address, add
22359 force_reg around it.
22360 (nios2_load_pic_address): Add target temp reg parameter, replace call
22361 to nios2_got_address with corresponding code.
22362 (nios2_legitimize_constant_address): Update call to
22363 nios2_load_pic_address.
22364 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
22365 to use temp reg for PIC loading purposes.
22366 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
22367 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
22368 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
22369
22370 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
22371
22372 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
22373 usage of "the @option{...}".
22374 (-Wopenmp-simd): Likewise.
22375 (-fsanitize-recover): Likewise.
22376 (-fsanitize-undefined-trap-on-error): Likewise.
22377 (-flto): Likewise.
22378 (tracer-dynamic-coverage-feedback): Likewise.
22379 (reorder-block-duplicate-feedback): Likewise.
22380 (loop-unroll-jam-size): Likewise.
22381 (-B): Likewise.
22382 (-I-): Likewise.
22383 (-mabs=legacy): Likewise.
22384 (-mupper-regs-df): Likewise.
22385 (-mupper-regs-sf): Likewise.
22386 (-mpointers-to-nested-functions): Likewise.
22387
22388 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
22389
22390 * doc/extend.texi (Cilk Plus Builtins): Add markup.
22391
22392 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
22393
22394 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
22395 additional index entries and cross-references.
22396 (-fchkp-check-incomplete-type): Likewise.
22397 (-fchkp-first-field-has-own-bounds): Likewise.
22398 (-fchkp-narrow-to-innermost-array): Likewise.
22399 (-fchkp-use-fast-string-functions): Likewise.
22400 (-fchkp-use-nochk-string-functions): Likewise.
22401 (-fchkp-use-static-const-bounds): Likewise.
22402 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
22403 (-fchkp-instrument-marked-only): Likewise.
22404 (-fchkp-use-wrappers): Likewise.
22405 (-static-libmpx): Likewise.
22406 (-static-libmpxwrappers): Likewise.
22407 * doc/extend.texi (bnd_legacy): Likewise.
22408 (bnd_instrument): Likewise.
22409 (bnd_variable_size): Likewise.
22410 (Pointer Bounds Checker builtins): Likewise.
22411
22412 2015-03-21 Tom de Vries <tom@codesourcery.com>
22413
22414 PR tree-optimization/65458
22415 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
22416 * cgraph.h (cgraph_node): Add parallelized_function field.
22417 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
22418 (input_overwrite_node): Read parallelized_function field.
22419 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
22420 parallelized_function on cgraph_node for child_fn.
22421 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
22422 Remove include of gt-tree-parloops.h.
22423 (parallelized_functions): Remove static variable.
22424 (parallelized_function_p): Rewrite using parallelized_function field of
22425 cgraph_node.
22426 (create_loop_fn): Remove adding to parallelized_functions.
22427 * Makefile.in (GTFILES): Remove tree-parloops.c
22428
22429 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
22430
22431 PR rtl-optimization/64366
22432 * lra.c (lra_update_insn_regno_info): Consider regs in
22433 CALL_INSN_FUNCTION_USAGE memory.
22434
22435 2015-03-20 Richard Biener <rguenther@suse.de>
22436
22437 PR middle-end/64715
22438 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
22439 for type comparison and gcc_checking_assert.
22440 (chrec_fold_plus_poly_poly): Likewise.
22441 (chrec_fold_multiply_poly_poly): Likewise.
22442 (chrec_convert_1): Likewise.
22443 * gimplify.c (gimplify_expr): Remove premature folding of
22444 &X + CST to &MEM[&X, CST].
22445
22446 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
22447
22448 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
22449 already is final.
22450 (ipa_inline): Recompute inline_failed codes.
22451 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
22452 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
22453 CIF_FINAL_ERROR.
22454
22455 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
22456
22457 PR rtl-optimization/60851
22458 * recog.c (constrain_operands): Accept a pseudo register before reload
22459 for LRA enabled targets.
22460
22461 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
22462
22463 PR target/65240
22464 * config/rs6000/predicates.md (easy_fp_constant): Remove special
22465 -ffast-math handling that kept non-0 constants live in the RTL
22466 until reload. Remove logic testing the number of instructions it
22467 took to create a constant in a GPR that was never used, due to a
22468 test for soft-float earlier.
22469 (memory_fp_constant): Delete, no longer used.
22470
22471 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
22472 alternatives for loading non-0 constants into GPRs for hard
22473 floating point that is no longer needed due to changes in
22474 easy_fp_constant. Add support for loading 0.0 into GPRs.
22475 (mov<mode>_hardfloat32): Likewise.
22476 (mov<mode>_hardfloat64): Likewise.
22477 (mov<mode>_64bit_dm): Likewise.
22478 (movtd_64bit_nodm): Likewise.
22479 (pre-reload move FP constant define_split): Delete define_split,
22480 since it is no longer used.
22481 (extenddftf2_internal): Remove GHF constraints that are not valid
22482 for extenddftf2.
22483
22484 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
22485
22486 PR rtl-optimization/63491
22487 * lra-constraints.c (check_and_process_move): Use src instead of
22488 sreg. Remove some dead code.
22489
22490 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
22491
22492 PR ipa/65380
22493 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
22494 (sem_variable::merge): Likewise.
22495
22496 2015-03-19 Martin Liska <mliska@suse.cz>
22497
22498 PR ipa/65465
22499 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
22500 all fields of cgraph_thunk_info.
22501
22502 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
22503
22504 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
22505 clone instrumented thunks.
22506
22507 2015-03-19 Richard Biener <rguenther@suse.de>
22508
22509 Revert
22510 2015-03-10 Richard Biener <rguenther@suse.de>
22511
22512 PR middle-end/63155
22513 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
22514 * tree-ssa-coalesce.c: Include timevar.h.
22515 (attempt_coalesce): Handle graph being NULL.
22516 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
22517 Split out abnormal coalescing to ...
22518 (perform_abnormal_coalescing): ... this function.
22519 (coalesce_ssa_name): Perform abnormal coalescing without computing
22520 live/conflict.
22521 (verify_ssa_coalescing_worker): New function.
22522 (verify_ssa_coalescing): Likewise.
22523
22524 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
22525 Jakub Jelinek <jakub@redhat.com>
22526
22527 PR sanitizer/65400
22528 * tsan.c (instrument_gimple): Clear tail call flag on
22529 calls.
22530
22531 2015-03-19 Jakub Jelinek <jakub@redhat.com>
22532
22533 PR sanitizer/65400
22534 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
22535 call in the return bb.
22536 (find_split_points): Add RETURN_BB argument, don't call
22537 find_return_bb.
22538 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
22539 if true append TSAN_FUNC_EXIT internal call after the call to
22540 the split off function.
22541 (execute_split_functions): Call find_return_bb here.
22542 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
22543 Adjust find_split_points and split_function calls.
22544
22545 2015-03-18 DJ Delorie <dj@redhat.com>
22546
22547 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
22548 (iorqi3_virt): Likewise.
22549
22550 2015-03-18 Tom de Vries <tom@codesourcery.com>
22551
22552 * tree-parloops.c (parallelize_loops): Make static.
22553 * tree-parloops.h (parallelize_loops): Remove extern declaration.
22554
22555 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
22556
22557 PR middle-end/64491
22558 Revert:
22559 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
22560
22561 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
22562 condition would be removed due to undefined behaviour.
22563
22564 2015-03-18 Martin Liska <mliska@suse.cz>
22565
22566 PR ipa/65432
22567 * cgraph.c (cgraph_node::get_create): Remove unnecessary
22568 xstrdup_for_dump wrapper.
22569 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
22570 sem_item::name.
22571 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
22572 with xstrdup_for_dump.
22573 (sem_variable::equals): Likewise.
22574 (sem_item_optimizer::read_section): Use symtab_node::name instead of
22575 sem_item::name.
22576 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
22577 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
22578 symtab_node::asm_name with xstrdup_for_dump.
22579 (congruence_class::dump): Use symtab_node::name instead of
22580 sem_item::name.
22581 * ipa-icf.h (symtab_node::name): Remove.
22582 (symtab_node::asm_name): Likewise.
22583
22584 2015-03-18 Jakub Jelinek <jakub@redhat.com>
22585
22586 PR tree-optimization/65450
22587 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
22588 function.
22589 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
22590 it instead of duplicate_ssa_name_ptr_info.
22591
22592 PR target/65222
22593 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
22594
22595 2015-03-18 Richard Biener <rguenther@suse.de>
22596
22597 * tree-data-ref.h (struct access_matrix): Remove.
22598 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
22599 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
22600 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
22601 (am_vector_index_for_loop): Likewise.
22602 (struct data_reference): Remove access_matrix member.
22603 (DR_ACCESS_MATRIX): Remove.
22604 (lambda_vector_new): Add comment.
22605 (lambda_matrix_new): Use XOBNEWVEC.
22606
22607 2015-03-18 Richard Biener <rguenther@suse.de>
22608
22609 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
22610 (pass_ch::execute): Cleanup the CFG only if we did sth.
22611 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
22612
22613 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22614
22615 * expmed.c (synth_mult): Use std::swap instead of manually
22616 swapping algorithms.
22617
22618 2015-03-18 Jakub Jelinek <jakub@redhat.com>
22619
22620 PR target/65078
22621 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
22622
22623 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
22624
22625 PR target/65296
22626 * config/avr/avr.opt (-nodevicelib): New option.
22627 * doc/invoke.texi (AVR Options): Document it.
22628 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
22629 libgcc.a, libc.a, libm.a.
22630 * config/avr/specs.h: Same.
22631 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
22632 which don't (directly) depend on the device. Print more help.
22633 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
22634 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
22635 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
22636 case of an error.
22637 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
22638 for specs file name.
22639 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
22640 * config/avr/avr-mcus.def: Adjust initializers and comments.
22641
22642 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
22643
22644 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
22645 DECL_ONE_ONLY to check if decl is one only.
22646 * ipa-split.c (consider_split): Limit splitt of one only functions.
22647
22648 2015-03-16 Jakub Jelinek <jakub@redhat.com>
22649
22650 PR tree-optimization/65427
22651 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
22652 functions.
22653 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
22654
22655 2015-03-16 Marek Polacek <polacek@redhat.com>
22656
22657 * cgraph.h (add_new_static_var): Remove declaration.
22658 * varpool.c (add_new_static_var): Remove function.
22659
22660 2015-03-16 Jakub Jelinek <jakub@redhat.com>
22661
22662 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
22663 instead of vec<tree> * with vec_alloc and release for args.
22664 Adjust all users.
22665
22666 PR middle-end/65431
22667 * omp-low.c (delete_omp_context): Only splay_tree_delete
22668 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
22669 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
22670
22671 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
22672
22673 PR sanitizer/64820
22674 * cfgexpand.c (align_base): New function.
22675 (alloc_stack_frame_space): Call it.
22676 (expand_stack_vars): Align prev_frame to be sure
22677 data->asan_vec elements aligned properly.
22678
22679 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
22680
22681 PR middle-end/65409
22682 * expr.c (store_field): Do not do a direct block copy if the source is
22683 a PARALLEL with BLKmode.
22684
22685 2015-03-16 Tom de Vries <tom@codesourcery.com>
22686
22687 PR middle-end/65414
22688 Revert:
22689 2015-03-12 Tom de Vries <tom@codesourcery.com>
22690
22691 PR rtl-optimization/64895
22692 * lra-lives.c (check_pseudos_live_through_calls): Use
22693 actual_call_used_reg_set instead of call_used_reg_set, if available.
22694
22695 2015-03-16 Alan Modra <amodra@gmail.com>
22696
22697 PR target/63150
22698 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
22699 Modify Z->r bswapdi splitter to use dest in place of scratch.
22700 In r->Z and Z->r bswapdi splitter rename word_high, word_low
22701 to word1, word2 and rearrange logic to suit.
22702 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
22703 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
22704 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
22705 Add one '?' on r->r. Modify Z->r splitter to avoid need for
22706 early clobber.
22707
22708 2015-03-14 Jakub Jelinek <jakub@redhat.com>
22709
22710 PR tree-optimization/65369
22711 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
22712 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
22713 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
22714
22715 PR tree-optimization/65418
22716 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
22717 are casts in the first PLUS_EXPR operand, ensure tbias and
22718 *totallowp are in the inner type.
22719
22720 PR rtl-optimization/65401
22721 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
22722 argument. If true, adjust_address_nv of x with big-endian
22723 correction for the mode widening to GET_MODE (y).
22724 (make_field_assignment): Don't do MEM mode widening here.
22725 Use MEM_P instead of GET_CODE == MEM.
22726
22727 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
22728
22729 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
22730 the external decls.
22731
22732 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22733
22734 PR target/64600
22735 * config/arm/arm.c (arm_gen_constant, AND case): Use
22736 ARM_SIGN_EXTEND when constructing AND mask.
22737
22738 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
22739
22740 * graph.c (print_graph_cfg): Make function names visible and append
22741 parenthesis to it. Also make groups of basic blocks belonging to the
22742 same function visible.
22743
22744 2015-03-12 Richard Biener <rguenther@suse.de>
22745
22746 PR middle-end/44563
22747 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
22748 to avoid quadratic behavior with inline expansion splitting blocks.
22749 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
22750 with the successor if the predecessor will be merged with it.
22751 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
22752 entry block with its successor.
22753
22754 2015-03-13 Richard Biener <rguenther@suse.de>
22755
22756 PR middle-end/44563
22757 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
22758 (cleanup_tree_cfg_1): Do not call it.
22759 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
22760 (fixup_noreturn_call): Mark the stmt as control altering.
22761 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
22762 here.
22763 (pass_data_fixup_cfg): Produce a dump file.
22764 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
22765 (need_noreturn_fixup): New global.
22766 (pass_dominator::execute): Fixup queued noreturn calls.
22767 (optimize_stmt): Queue calls that became noreturn for fixup.
22768 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
22769 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
22770 (el_to_fixup): New global.
22771 (eliminate_dom_walker::before_dom_childre): Queue calls that
22772 became noreturn for fixup.
22773 (eliminate): Fixup queued noreturn calls.
22774 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
22775 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
22776 (substitute_and_fold_dom_walker::before_dom_children): Queue
22777 alls that became noreturn for fixup.
22778 (substitute_and_fold): Fixup queued noreturn calls.
22779
22780 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
22781
22782 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
22783 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
22784 are building; for methods check ODR type of class they belong to if
22785 they may lead to a polymorphic call.
22786 (sem_function::compare_polymorphic_p): Be bit smarter about testing
22787 when function may lead to a polymorphic call.
22788 (sem_function::compare_type_list): Remove.
22789 (sem_variable::equals): Update use of compatible_types_p.
22790 (sem_variable::parse_tree_refs): Remove.
22791 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
22792 cdtor.
22793 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
22794 matching here.
22795 (func_checker::compatible_polymorphic_types_p): Break out from ...
22796 (unc_checker::compatible_types_p): ... here.
22797 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
22798 Declare.
22799 (unc_checker::compatible_types_p): Update.
22800 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
22801 Remove.
22802
22803 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22804
22805 PR rtl-optimization/65235
22806 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
22807 When first element of vec_concat is const_int, calculate its size
22808 using second element.
22809
22810 2015-03-12 Richard Biener <rguenther@suse.de>
22811
22812 PR middle-end/65270
22813 * fold-const.c (operand_equal_p): Fix ordering of resetting
22814 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
22815
22816 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
22817
22818 * config/s390/s390.c (s390_reorg): Move code to output nops after label
22819 to s390_reorg ().
22820 (s390_asm_output_function_label): Likewise.
22821 * config/s390/s390.c (s390_asm_output_function_label):
22822 Fix function label alignment with -mhtopatch.
22823 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
22824 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
22825 ("nop_2_byte"): New define_insn.
22826 ("nop_4_byte"): Likewise.
22827 ("nop_6_byte"): Likewise.
22828 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
22829 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
22830
22831 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
22832
22833 PR target/65103
22834 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
22835 register.
22836
22837 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
22838
22839 PR target/65044
22840 * toplev.c (process_options): Restrict Pointer Bounds Checker
22841 usage with Address Sanitizer.
22842
22843 2015-03-12 Richard Biener <rguenther@suse.de>
22844
22845 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
22846 to split on.
22847 * omp-low.c (expand_omp_taskreg): Split block before removing
22848 the stmt.
22849 (expand_omp_target): Likewise.
22850 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
22851 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
22852 stmt to split_block.
22853
22854 2015-03-12 Tom de Vries <tom@codesourcery.com>
22855
22856 PR rtl-optimization/64895
22857 * lra-lives.c (check_pseudos_live_through_calls): Use
22858 actual_call_used_reg_set instead of call_used_reg_set, if available.
22859
22860 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
22861
22862 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
22863 (cgraph_node::remove): Likewise.
22864 (cgraph_node::get_untransformed_body): Likewise.
22865 * varpool.c (varpool_node::remove): Likewise.
22866 (varpool_node::get_constructor): Add sanity check.
22867
22868 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
22869
22870 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
22871 old GCC versions.
22872 (-fabi-compat-version): Likewise.
22873 (-ffriend-injection): Likewise.
22874 (-Wdeclaration-after-statement): Likewise.
22875 (-fomit-frame-pointer): Likewise.
22876 (-ftree-coalesce-inlined-vars): Likewise.
22877 (-fvisibility=): Likewise.
22878 * doc/extend.texi (Typeof): Likewise.
22879 (Zero Length): Likewise.
22880 (Escaped Newlines): Likewise.
22881 (Compound Literals): Likewise.
22882 (Function Attributes): Likewise.
22883 (Label Attributes): Likewise.
22884 (Type Attributes): Likewise.
22885 (Function Names): Likewise.
22886 (Other Builtins): Likewise.
22887 (Function Specific Option Pragmas): Likewise.
22888 (C++ Interface): Likewise.
22889
22890 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
22891
22892 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
22893
22894 2015-03-11 Marek Polacek <polacek@redhat.com>
22895
22896 PR tree-optimization/65388
22897 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
22898
22899 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
22900
22901 PR target/65296
22902 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
22903 * configure: Regenerate.
22904 * config.in: Regenerate.
22905 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
22906 [-mn-flash]: Document it.
22907 [__AVR_ARCH__]: Document avrtiny.
22908
22909 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
22910 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
22911 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
22912
22913 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22914
22915 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
22916
22917 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
22918
22919 PR target/65242
22920 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
22921 allow reloads of PLUS in floating point/VSX registers.
22922
22923 2015-03-11 Junmo Park <junmoz.park@samsung.com>
22924
22925 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
22926 crypto_sha256_fast.
22927 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
22928
22929 2015-03-11 Richard Biener <rguenther@suse.de>
22930
22931 PR tree-optimization/65310
22932 * tree-sra.c (build_ref_for_offset): Also preserve larger
22933 alignment.
22934
22935 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
22936
22937 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
22938
22939 2015-03-10 Jakub Jelinek <jakub@redhat.com>
22940
22941 PR target/65368
22942 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
22943 new define_expand.
22944 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
22945
22946 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
22947
22948 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
22949 (sem_function::equals_wpa): ... here.
22950
22951 2015-03-10 Marek Polacek <polacek@redhat.com>
22952 Jakub Jelinek <jakub@redhat.com>
22953
22954 PR sanitizer/65367
22955 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
22956 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
22957 separately.
22958
22959 2015-03-10 Jakub Jelinek <jakub@redhat.com>
22960
22961 PR target/65286
22962 * config/rs6000/t-linux: For powerpc64* target set
22963 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
22964
22965 2015-03-10 Richard Biener <rguenther@suse.de>
22966
22967 PR middle-end/44563
22968 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
22969 for redirect_all_calls.
22970
22971 2015-03-10 Marek Polacek <polacek@redhat.com>
22972
22973 * gdbinit.in (pcfun): Define and document.
22974
22975 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
22976
22977 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
22978 of libgomp-plugin.h.
22979 (find_target_compiler): Support a case when the path to gcc is
22980 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
22981 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
22982 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
22983 libgomp-plugin.h.
22984 (main): Use GCC_INSTALL_NAME as target_driver_name.
22985 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
22986 define.
22987 (mkoffload.o): Remove obsolete include path and defines.
22988 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
22989
22990 2015-03-10 Richard Biener <rguenther@suse.de>
22991
22992 PR middle-end/63155
22993 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
22994 * tree-ssa-coalesce.c: Include timevar.h.
22995 (attempt_coalesce): Handle graph being NULL.
22996 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
22997 Split out abnormal coalescing to ...
22998 (perform_abnormal_coalescing): ... this function.
22999 (coalesce_ssa_name): Perform abnormal coalescing without computing
23000 live/conflict.
23001 (verify_ssa_coalescing_worker): New function.
23002 (verify_ssa_coalescing): Likewise.
23003
23004 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
23005
23006 PR target/65296
23007 * config.gcc (extra_options) [avr]: Remove.
23008 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
23009 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
23010 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
23011
23012 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
23013 (-mmcu=): Add Var and MissingArgError properties.
23014 (-march=): Remove.
23015 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
23016 * config/avr/t-multilib: Regenerate.
23017 * config/avr/specs.h: New file.
23018 * config/avr/driver-avr.c: New file.
23019 * config/avr/genopt.sh: Remove file.
23020 * config/avr/avr-tables.opt: Remove file.
23021 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
23022 * config/avr/avr-c.c: Same.
23023 * avr-arch.h: Same.
23024 (avr_current_device): Remove proto.
23025 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
23026 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
23027 (EXTRA_SPEC_FUNCTIONS): Define.
23028 (avr_devicespecs_file): New specs function proto.
23029 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
23030 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
23031 (avr_current_device): Remove definition and usage.
23032 (avr_set_core_architecture): New static function.
23033 (avr_option_override): Use it.
23034 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
23035 (mcu_name): New static array.
23036 (comparator, avr_archs_str, avr_mcus_str): New static functions.
23037 (avr_inform_devices, avr_inform_core_architectures): New functions.
23038 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
23039 (avrlibc.h) [WITH_AVRLIBC]: Include.
23040 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
23041 (print_mcu): Rewrite from scratch.
23042 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
23043 Forward to avr-specific specs defined in device-specs file.
23044 * config/avr/t-avr (driver-avr.o): New rule.
23045 (avr-devices.o): Depend on avr-arch.h.
23046 (avr-mcus): No more depend on avr-tables.opt.
23047 (avr-tables.opt): Remove rule.
23048 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
23049
23050 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23051
23052 * c-family/c.opt (fchkp-use-wrappers): New.
23053 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
23054 (chkp_wrap_function): New.
23055 (chkp_build_instrumented_fndecl): Support wrapped
23056 functions.
23057 * doc/invoke.texi (-fcheck-pointer-bounds): New.
23058 (-fchkp-check-incomplete-type): New.
23059 (-fchkp-first-field-has-own-bounds): New.
23060 (-fchkp-narrow-bounds): New.
23061 (-fchkp-narrow-to-innermost-array): New.
23062 (-fchkp-optimize): New.
23063 (-fchkp-use-fast-string-functions): New.
23064 (-fchkp-use-nochk-string-functions): New.
23065 (-fchkp-use-static-bounds): New.
23066 (-fchkp-use-static-const-bounds): New.
23067 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
23068 (-fchkp-check-read): New.
23069 (-fchkp-check-write): New.
23070 (-fchkp-store-bounds): New.
23071 (-fchkp-instrument-calls): New.
23072 (-fchkp-instrument-marked-only): New.
23073 (-fchkp-use-wrappers): New.
23074 (-static-libmpx): New.
23075 (-static-libmpxwrappers): New.
23076
23077 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23078
23079 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
23080 (CHKP_SPEC): Add wrappers library.
23081 * c-family/c.opt (static-libmpxwrappers): New.
23082
23083 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
23084
23085 * config/i386/linux-common.h (LIBMPX_LIBS): New.
23086 (LIBMPX_SPEC): New.
23087 (CHKP_SPEC): New.
23088 * gcc.c (CHKP_SPEC): New.
23089 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
23090 * c-family/c.opt (static-libmpx): New.
23091
23092 2015-03-10 Richard Biener <rguenther@suse.de>
23093
23094 PR middle-end/44563
23095 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
23096 for compare_type.
23097 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
23098 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
23099 (cgraph_add_edge_to_call_site_hash): Likewise.
23100 (cgraph_node::get_edge): Likewise.
23101 (cgraph_edge::set_call_stmt): Likewise.
23102 (cgraph_edge::remove_caller): Likewise.
23103
23104 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
23105
23106 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
23107 (callee_saved_gpr_regs_size): ... this.
23108 (callee_saved_regs_first_regno): Rename to ...
23109 (callee_saved_first_gpr_regno): ... this.
23110 (callee_saved_regs_last_regno) Rename to ...
23111 (callee_saved_last_gpr_regno): ... this.
23112 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
23113 variables.
23114 (nds32_initial_elimination_offset): Likewise.
23115 (nds32_expand_prologue): Likewise.
23116 (nds32_expand_epilogue): Likewise.
23117 (nds32_expand_prologue_v3push): Likewise.
23118 (nds32_expand_epilogue_v3pop): Likewise.
23119 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
23120 Adjust renamed variables.
23121 (nds32_output_stack_pop): Likewise.
23122
23123 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
23124
23125 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
23126 code in comment.
23127
23128 2015-03-10 Jakub Jelinek <jakub@redhat.com>
23129
23130 PR rtl-optimization/65321
23131 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
23132 than shift mode.
23133 * var-tracking.c (use_narrower_mode): Likewise.
23134
23135 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
23136
23137 PR tree-optimization/65355
23138 * varasm.c (notice_global_symbol): Do not produce RTL.
23139 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
23140 anchor.
23141 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
23142 check for section anchors.
23143
23144 2015-03-10 Alan Modra <amodra@gmail.com>
23145
23146 PR target/65286
23147 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
23148 to be single-arch by default. Set cpu_is_64bit for powerpc64
23149 given --with-cpu=native.
23150 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
23151 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
23152 and powerpc64le.
23153 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
23154 rs6000_isa_flags rather than TARGET_64BIT.
23155
23156 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
23157 Kaz Kojima <kkojima@gcc.gnu.org>
23158
23159 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
23160
23161 2015-03-09 Jakub Jelinek <jakub@redhat.com>
23162
23163 PR lto/65361
23164 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
23165 on a TREE_BINFO, instead use BINFO_TYPE.
23166
23167 2015-03-09 Richard Biener <rguenther@suse.de>
23168
23169 PR middle-end/65270
23170 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
23171 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
23172 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
23173 of that. When comparing dereferences compare alignment.
23174 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
23175
23176 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
23177
23178 * ipa-inline-analysis.c (check_callers): Check
23179 node->can_remove_if_no_direct_calls_and_refs_p.
23180 (growth_likely_positive): Reorganize to call
23181 can_remove_if_no_direct_calls_p later.
23182 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
23183 will_be_removed_from_program_if_no_direct_calls_p): Add
23184 will_inline parameter.
23185 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
23186 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
23187 Handle inliner case correctly.
23188
23189 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
23190
23191 PR tree-optimization/63743
23192 * cfgexpand.c (reorder_operands): Also reorder if only second operand
23193 had its definition forwarded by TER.
23194
23195 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
23196
23197 PR lto/65316
23198 * ipa-utils.h (types_odr_comparable): Add strict argument.
23199 * ipa-devirt.c: Fix whitespace;
23200 (odr_hasher): Remove.
23201 (odr_name_hasher, odr_vtable_hasher): New hashers.
23202 (can_be_name_hashed_p): New predicate.
23203 (hash_type_name): remove.
23204 (hash_odr_name): New.
23205 (odr_name_hasher::hash): new.
23206 (can_be_vtable_hashed_p): New.
23207 (hash_odr_vtable): New.
23208 (odr_vtable_hasher::hash): New.
23209 (types_same_for_odr): Add strict parameter.
23210 (types_odr_comparable): Likewise.
23211 (odr_name_hasher::equal): New.
23212 (odr_vtable_hasher::equal): New.
23213 (odr_name_hasher::remove): New.
23214 (odr_hash_type): Change to hash_table<odr_name_hasher>.
23215 (odr_vtable_hash_type): New.
23216 (odr_vtable_hash): New.
23217 (odr_subtypes_equivalent_p): Do strict comparsion.
23218 (add_type_duplicate): Merge type names; cleanup; avoid type
23219 duplicates.
23220 (register_odr_type): Initialize vtable hash.
23221 (build_type_inheritance_graph): Likewise
23222 (get_odr_type): Reorg to use two hashes.
23223 (dump_possible_polymorphic_call_targets): Move sanity check after debug
23224 output.
23225 (ipa_devirt): Dump type_inheritance_graph.
23226 (types_same_for_odr): Add strict mode.
23227
23228 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
23229
23230 PR ipa/65334
23231 * cgraph.h (symtab_node): Add definition_alignment,
23232 can_increase_alignment_p and increase_alignment.
23233 * symtab.c (symtab_node::can_increase_alignment_p,
23234 increase_alignment_1, symtab_node::increase_alignment,
23235 symtab_node::definition_alignment): New.
23236 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
23237 can_increase_alignment_p.
23238 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
23239 * tree-vect-stmts.c (ensure_base_align): Likewise.
23240 * varasm.c (function_section_1): Use definition_alignment.
23241 (assemble_start_function): Likewise.
23242 (emit_local): likewise.
23243 (build_constant_desc): Likewsie.
23244 (output_constant_def_contents): Likewise.
23245 (place_block_symbol): Likewise.
23246 (output_object_block): Likewise.
23247
23248 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
23249
23250 PR ipa/65316
23251 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
23252 when outputting debug.
23253
23254 2015-03-07 Marek Polacek <polacek@redhat.com>
23255 Martin Uecker <uecker@eecs.berkeley.edu>
23256
23257 PR sanitizer/65280
23258 * doc/invoke.texi: Update description of -fsanitize=bounds.
23259
23260 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
23261
23262 * tree-ssa-phiopt.c (neg_replacement): Remove.
23263 (tree_ssa_phiopt_worker): Remove negate optimization.
23264
23265 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
23266
23267 PR ipa/65302
23268 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
23269
23270 2015-03-06 Richard Biener <rguenther@suse.de>
23271
23272 PR middle-end/64928
23273 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
23274 and liveout_obstack members.
23275 (calculate_live_on_exit): Remove.
23276 (calculate_live_ranges): Change declaration.
23277 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
23278 (new_tree_live_info): Adjust.
23279 (calculate_live_ranges): Delete livein when not wanted.
23280 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
23281 Deal with partly deleted live info.
23282 (loe_visit_block): Remove temporary bitmap by using
23283 bitmap_ior_and_compl_into.
23284 (live_worklist): Adjust accordingly.
23285 (calculate_live_on_exit): Make static.
23286 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
23287 we do not need livein.
23288
23289 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
23290
23291 * real.c (real_from_string): Fix typo in assertion.
23292
23293 2015-03-06 Alex Velenko <alex.velenko@arm.com>
23294
23295 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
23296 the patch.
23297
23298 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
23299
23300 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
23301
23302 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
23303
23304 PR target/64342
23305 * lra-assigns.c (find_hard_regno_for): Rename to
23306 find_hard_regno_for_1. Add a new parameter.
23307 (find_hard_regno_for): New function using find_hard_regno_for_1.
23308
23309 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
23310
23311 PR rtl-optimization/65067
23312 * expmed.c (store_bit_field, extract_bit_field): Reworked the
23313 strict volatile bitfield handling.
23314
23315 2015-03-05 Martin Liska <mliska@suse.cz>
23316
23317 PR ipa/65318
23318 * ipa-icf.c (sem_variable::equals): Compare variables types.
23319
23320 2015-03-05 Richard Henderson <rth@redhat.com>
23321
23322 PR target/65121
23323 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
23324 correctly check weak symbol binding.
23325
23326 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
23327
23328 PR middle-end/65315
23329 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
23330 needed alignment.
23331
23332 2015-03-05 Martin Liska <mliska@suse.cz>
23333
23334 * ipa-inline.c (inline_small_functions): Set default value to
23335 prevent warning during bootstrap.
23336 * tree.h: Add pragma guard that ignores false positives during
23337 bootstrap.
23338
23339 2015-03-05 Richard Biener <rguenther@suse.de>
23340
23341 PR tree-optimization/65310
23342 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
23343 Properly preserve alignment of the base of the access.
23344
23345 2015-03-05 Richard Biener <rguenther@suse.de>
23346
23347 PR ipa/65270
23348 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
23349 Compare dependence info.
23350
23351 2015-03-05 Richard Biener <rguenther@suse.de>
23352
23353 PR middle-end/65233
23354 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
23355 tree-into-ssa.h.
23356 (walk_ssa_copies): Revert last chage. Instead do not walk
23357 SSA names registered for SSA update.
23358
23359 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
23360
23361 PR ipa/65270
23362 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
23363 vtable references for their containing type.
23364 (sem_function::equals_wpa): Compare TYPE_RESTRICT
23365 and type attributes.
23366
23367 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
23368
23369 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
23370 before negating it.
23371 * stor-layout.c (finalize_record_size): Revert latest change.
23372
23373 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
23374
23375 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
23376
23377 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
23378
23379 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
23380 for correct comdat handling.
23381 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
23382 Likewise.
23383 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
23384 (used_from_object_file_p_worker): Remove.
23385 (cgraph_node::only_called_directly_or_alised): Add
23386 used_from_object_file_p.
23387 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
23388 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
23389 can_remove_if_no_direct_calls_and_refs_p.
23390
23391 2015-03-04 Nick Clifton <nickc@redhat.com>
23392
23393 * config/rl78/rl78.h (enum reg_class): Remove real registers from
23394 General register class.
23395 * config/rl78/rl78-real.md: Replace general register constraints
23396 with real+virtual register constraints.
23397
23398 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23399
23400 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
23401 from checking for -mhtm option.
23402
23403 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
23404
23405 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
23406 (struct ipa_sra_check_caller_data): Add has_thunk field.
23407 (ipa_sra_check_caller): Check for thunk.
23408 (ipa_sra_preliminary_function_checks): Give up on function with
23409 thunks.
23410 (ipa_early_sra): Use call_for_symbol_and_aliases.
23411
23412 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
23413
23414 PR target/65249
23415 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
23416 called for __stack_chk_guard symbol.
23417
23418 2015-03-03 DJ Delorie <dj@redhat.com>
23419
23420 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
23421 inc/dec.
23422 (*addhi3_real): Likewise.
23423 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
23424 pattern to match incrementing memory.
23425 * config/rl78/predicates.md (rl78_1_2_operand): New.
23426 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
23427 it's the same and only mem.
23428 (rl78_alloc_physical_registers_op2): If there's effectively only
23429 one MEM, transcode it into HL.
23430 (rl78_far_p): Reject addresses that aren't legitimate.
23431
23432 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
23433
23434 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
23435 negating it.
23436
23437 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
23438
23439 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
23440
23441 Implement call0 ABI for xtensa
23442 * config/xtensa/constraints.md ("a" constraint): Include stack
23443 pointer in case of call0 ABI.
23444 ("q" constraint): Make empty in case of call0 ABI.
23445 ("D" constraint): Include stack pointer in case of call0 ABI.
23446 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
23447 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
23448 prototypes.
23449 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
23450 variable.
23451 (xtensa_regno_to_class): Make it a local variable in the
23452 function xtensa_regno_to_class.
23453 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
23454 macro, function prototype and implementation.
23455 (reg_nonleaf_alloc_order): Make it a local variable in the
23456 function order_regs_for_local_alloc.
23457 (xtensa_conditional_register_usage): New function.
23458 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
23459 (xtensa_valid_move): Allow direct moves to stack pointer
23460 register in call0 ABI.
23461 (xtensa_setup_frame_addresses): Only spill register windows in
23462 windowed ABI.
23463 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
23464 call0 ABI respectively.
23465 (xtensa_function_arg_1): Only mark a7 register for copying in
23466 windowed ABI.
23467 (xtensa_call_save_reg): New function.
23468 (compute_frame_size): Add space for callee saved register
23469 storage to the frame size in call0 ABI.
23470 (xtensa_expand_prologue): Generate code to set up stack frame
23471 and save callee-saved registers in call0 ABI.
23472 (xtensa_expand_epilogue): New function.
23473 (xtensa_set_return_address): New function.
23474 (xtensa_return_addr): Calculate return address in call0 ABI.
23475 (xtensa_builtin_saveregs): Only mark a7 register for copying and
23476 emit copying code in windowed ABI.
23477 (order_regs_for_local_alloc): Add preferred register allocation
23478 order for non-leaf function in call0 ABI.
23479 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
23480 (xtensa_asm_trampoline_template): Add trampoline generation for
23481 call0 ABI.
23482 (xtensa_trampoline_init): Add trampoline initialization for
23483 call0 ABI.
23484 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
23485 functions.
23486 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
23487 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
23488 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
23489 ABI call-used registers.
23490 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
23491 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
23492 call0 ABI.
23493 (REG_CLASS_CONTENTS): Include all registers into the preferred
23494 reload registers set, adjust the set in the
23495 xtensa_conditional_register_usage.
23496 (xtensa_regno_to_class): Drop variable declaration.
23497 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
23498 function.
23499 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
23500 respectively.
23501 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
23502 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
23503 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
23504 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
23505 location in call0 ABI.
23506 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
23507 stack adjustment size when handling exception.
23508 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
23509 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
23510 definitions.
23511 ("return" pattern): Generate ret.n/ret in call0 ABI.
23512 ("epilogue" pattern): Expand epilogue.
23513 ("nonlocal_goto" pattern): Use default in call0 ABI.
23514 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
23515 emit eh_set_a0_* depending on ABI.
23516 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
23517 ("eh_set_a0_call0", "blockage"): New patterns.
23518
23519 2015-03-03 Martin Liska <mliska@suse.cz>
23520
23521 PR ipa/65287
23522 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
23523
23524 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
23525
23526 PR 65138/target
23527 * config/rs6000/rs6000-tables.opt: Regenerate table.
23528
23529 2015-03-03 Renlin Li <renlin.li@arm.com>
23530
23531 * doc/md.texi (@item ^): Change ? into ^.
23532
23533 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
23534
23535 * doc/tm.texi: Regenerated.
23536
23537 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
23538
23539 * builtins.c (expand_builtin_return_addr): Add
23540 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
23541 surrounding #ifdef.
23542 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
23543 definition to 1.
23544 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
23545 Likewise.
23546 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
23547 undefined.
23548 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
23549 paragraph.
23550
23551 2015-03-03 Martin Jambor <mjambor@suse.cz>
23552 Eric Botcazou <ebotcazou@adacore.com>
23553
23554 * tree-sra.c (ipa_sra_check_caller_data): New type.
23555 (has_caller_p): Removed.
23556 (ipa_sra_check_caller): New function.
23557 (ipa_sra_preliminary_function_checks): Use it.
23558
23559 2015-03-03 Martin Liska <mliska@suse.cz>
23560
23561 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
23562 instead of if branch.
23563
23564 2015-03-03 Martin Liska <mliska@suse.cz>
23565
23566 PR ipa/65282
23567 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
23568
23569 2015-03-23 Jeff Law <law@redhat.com>
23570
23571 PR tree-optimization/65241
23572 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
23573 hash table if INSERT is true.
23574
23575 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
23576
23577 PR target/65296
23578 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
23579
23580 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
23581
23582 PR target/64331
23583 * config/avr/avr.c (context.h, tree-pass.h): Include them.
23584 (avr_pass_data_recompute_notes): New static variable.
23585 (avr_pass_recompute_notes): New class.
23586 (avr_register_passes): New static function.
23587 (avr_option_override): Call it.
23588
23589 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
23590
23591 Fix various problems with specs file generation.
23592
23593 PR target/65296
23594 * config.gcc (extra_gcc_objs) [avr]: Remove.
23595 * config/avr/driver-avr.c: Remove file.
23596 * config/avr/t-avr (driver-avr.o): Remove rule.
23597 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
23598 INCLUDES to build. Depend on TM_H.
23599 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
23600 build warnings. Fix non-matching types and non-existing %-codes.
23601 (tm.h): Include.
23602 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
23603 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
23604 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
23605 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
23606 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
23607 (LIBGCC_SPEC): Remove definitions.
23608
23609 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
23610
23611 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
23612 to create a register in testing mode.
23613
23614 2015-03-03 Martin Liska <mliska@suse.cz>
23615 Jan Hubicka <hubicka@ucw.cz>
23616
23617 PR ipa/65263
23618 * cgraph.c (cgraph_node::has_thunk_p): New function.
23619 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
23620 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
23621 (sem_function::merge): Assert is changed.
23622
23623 2015-03-03 Martin Liska <mliska@suse.cz>
23624 Martin Jambor <mjambor@suse.cz>
23625
23626 PR ipa/65087
23627 * ipa-icf.c (sem_item_optimizer::execute): Change function
23628 return value to boolean.
23629 (sem_item_optimizer::merge_classes): Likewise.
23630 (ipa_icf_driver): Return TODO_remove_functions in case there's
23631 a merge operation processed.
23632 * ipa-icf.h: Change function return value to boolean.
23633
23634 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23635
23636 PR 65138/target
23637 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
23638 processor type for 64-bit little endian PowerPC.
23639
23640 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
23641 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
23642 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
23643 printing built-in mask so it does not pass NULL pointers.
23644
23645 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
23646 -mcpu=powerpc64le.
23647
23648 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
23649
23650 PR target/58158
23651 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
23652 !ISA_HAS_FP_CONDMOVE.
23653
23654 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
23655
23656 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
23657 reload_completed.
23658
23659 2015-03-02 Ulrich Drepper <drepper@gmail.com>
23660
23661 * doc/invoke.texi (Options for Code Generation Conventions):
23662 Fix URL of DSO paper.
23663
23664 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
23665
23666 PR ipa/65130
23667 * ipa-inline.c (check_callers): Looks for recursion.
23668 (inline_to_all_callers): Give up on uninlinable or recursive edges.
23669 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
23670 summary of inline clones.
23671 (do_estimate_growth_1): Fix recursion check.
23672
23673 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
23674
23675 PR ipa/64988
23676 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
23677 comdat groups.
23678
23679 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
23680 Aldy Hernandez <aldyh@redhat.com>
23681
23682 PR lto/65276
23683 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
23684 when checking TYPE_BINFO.
23685
23686 2015-03-02 Richard Biener <rguenther@suse.de>
23687
23688 PR ipa/65270
23689 * ipa-icf-gimple.c: Include builtins.h.
23690 (func_checker::compare_memory_operand): Compare base alignment.
23691
23692 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
23693
23694 PR target/65184
23695 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
23696 are never passed by reference.
23697
23698 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
23699
23700 PR target/65183
23701 * tree-chkp.c (chkp_check_lower): Don't check against
23702 zero bounds for already instrumented functions.
23703 (chkp_check_upper): Likewise.
23704 (chkp_fini): Clean pass local data to avoid wrong reusage.
23705
23706 2015-02-28 Martin Liska <mliska@suse.cz>
23707 Jan Hubicka <hubicka@ucw.cz>
23708
23709 * ipa-icf.c (sem_variable::equals): Improve debug output;
23710 get variable constructor.
23711 (sem_variable::parse): Do not filter out too early; give up on
23712 volatile and register vars.
23713 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
23714 variables.
23715 * ipa-icf.h (sem_variable::init): Do not set ctor.
23716 (sem_variable::ctor): Remove.
23717
23718 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
23719
23720 PR middle-end/65233
23721 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
23722
23723 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23724
23725 * ipa-icf.c: Include stor-layout.h
23726 (sem_function::compare_cgraph_references): Rename to ...
23727 (sem_item::compare_cgraph_references): ... this one.
23728 (sem_variable::equals_wpa): New function
23729 (sem_variable::equals): Do not check stuff already verified by
23730 equals_wpa.
23731 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
23732 * ipa-icf.h (sem_item): Add compare_cgraph_references.
23733 (sem_function): Remove compare_cgraph_references.
23734 (sem_variable): Turns equals_wpa into non-inline.
23735
23736 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23737
23738 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
23739 (sem_item::add_expr): New function.
23740 (sem_function::hash_stmt): Handle operands of most statements.
23741 (sem_variable::get_hash): Hash the actual constructor.
23742 * ipa-icf.h (sem_item): Add add_expr.
23743 (sem_function): Update prototype of hash_stmt
23744
23745 2015-02-28 Martin Liska <mliska@suse.cz>
23746 Jan Hubicka <hubicka@ucw.cz>
23747
23748 PR ipa/65245
23749 * ipa-icf-gimple.c (func_checker::compare_function_decl):
23750 Remove.
23751 (func_checker::compare_variable_decl): Skip symtab vars.
23752 (func_checker::compare_cst_or_decl): Update.
23753 * ipa-icf.c (sem_function::parse): Do not consider aliases.
23754 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
23755 use correct symtab predicates.
23756 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
23757 (sem_variable::parse): Update comment.
23758 (sem_item_optimizer::build_graph): Consider ultimate aliases
23759 for references.
23760
23761 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23762
23763 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
23764 of OBJ_TYPE_REF.
23765
23766 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23767
23768 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
23769 (sem_variable::merge) Likewise.
23770
23771 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23772
23773 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
23774 target; also match flag_ipa_devirt.
23775
23776 2015-03-01 Martin Liska <mliska@suse.cz>
23777 Jan Hubicka <hubicka@ucw.cz>
23778
23779 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
23780 Validate variable alignment.
23781 * ipa-icf.c (sem_function::equals_private): Be more precise
23782 about non-common function attributes.
23783 (sem_variable::equals): Likewise.
23784
23785 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23786
23787 PR ipa/65237
23788 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
23789 across COMDAT group boundary.
23790
23791 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23792
23793 PR ipa/65232
23794 * ipa-icf.c (clear_decl_rtl): New function.
23795 (sem_function::merge): Clear RTL before forming alias.
23796 (sem_variable::merge): Clear RTL before forming alias.
23797
23798 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
23799
23800 PR ipa/65236
23801 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
23802
23803 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
23804
23805 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
23806 to neon_to_gp<q>.
23807
23808 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
23809
23810 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
23811 a typo in the description.
23812
23813 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
23814
23815 PR target/64317
23816 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
23817 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
23818 * lra-constraints.c: Include "params.h".
23819 (EBB_PROBABILITY_CUTOFF): Use
23820 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
23821 (lra_inheritance): Use '<' instead of '<=' for
23822 EBB_PROBABILITY_CUTOFF.
23823 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
23824 Document change.
23825
23826 2015-02-27 Martin Liska <mliska@suse.cz>
23827
23828 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
23829 vector length condition.
23830
23831 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
23832
23833 * doc/extend.texi (x86 transactional memory intrinsics):
23834 Reorganize discussion of _xbegin. Clarify that the return
23835 value is a bit mask. Expand example and move to end of section.
23836
23837 2015-02-26 Jakub Jelinek <jakub@redhat.com>
23838 Aldy Hernandez <aldyh@redhat.com>
23839
23840 PR rtl-optimization/65220
23841 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
23842
23843 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
23844
23845 PR target/65032
23846 * lra-remat.c (update_scratch_ops): New.
23847 (do_remat): Call it.
23848 * lra.c (lra_register_new_scratch_op): New. Take code from ...
23849 (remove_scratches): ... here.
23850 * lra-int.h (lra_register_new_scratch_op): New prototype.
23851
23852 2015-02-27 Marek Polacek <polacek@redhat.com>
23853
23854 PR c/65040
23855 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
23856 -Wformat-signedness anymore.
23857
23858 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23859
23860 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
23861 function.
23862 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
23863
23864 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23865
23866 * config/s390/s390.c (enum s390_builtin):
23867 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
23868 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
23869 (s390_init_builtins): Generate new builtin functions.
23870 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
23871 (s390_sfpc, s390_efpc): New pattern definitions.
23872
23873 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23874
23875 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
23876 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
23877 (s390_builtin_decls): New array.
23878 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
23879 (s390_builtin_decl): New function.
23880 (TARGET_BUILTIN_DECL): Define macro.
23881
23882 2015-02-27 Richard Biener <rguenther@suse.de>
23883
23884 PR middle-end/63175
23885 * builtins.c (get_object_alignment_2): Make sure to re-apply
23886 the ANDed mask after recursing to its operand gets us a new
23887 misalignment bit position.
23888
23889 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
23890 Martin Liska <mliska@suse.cz>
23891
23892 PR bootstrap/65150
23893 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
23894 Use address_matters_p.
23895 (redirect_all_callers, set_addressable): New functions.
23896 (sem_function::merge): Reorganize and fix merging issues.
23897 (sem_variable::merge): Likewise.
23898 (sem_variable::compare_sections): Remove.
23899 * common.opt (fmerge-all-constants, fmerge-constants): Remove
23900 Optimization flag.
23901 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
23902 redirect them.
23903 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
23904 decl is used.
23905 (address_matters_1): New function.
23906 (symtab_node::address_matters_p): New function.
23907 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
23908 check for merged flag.
23909 * cgraph.h (address_matters_p): Declare.
23910 (symtab_node::address_taken_from_non_vtable_p): Remove.
23911 (symtab_node::address_can_be_compared_p): New method.
23912 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
23913 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
23914 Remove.
23915 (comdat_can_be_unshared_p_1) Use address_matters_p.
23916 (update_vtable_references): Fix formating.
23917 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
23918 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
23919 * cgraphclones.c: Preserve merged and icf_merged flags.
23920
23921 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
23922
23923 * doc/extend.texi (Function Attributes): Fix spelling and typos.
23924 (Label Attributes): Likewise.
23925 (Cilk Plus Builtins): Likewise.
23926 (ARC SIMD Built-in Functions): Likewise.
23927 (ARM C Language Extensions (ACLE)): Likewise.
23928 (PowerPC Built-in Functions): Likewise.
23929 (PowerPC Hardware Transactional Memory Built-in Functions):
23930 Likewise.
23931
23932 2015-02-26 Jakub Jelinek <jakub@redhat.com>
23933
23934 PR tree-optimization/65216
23935 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
23936 new stmt and new SSA_NAME for lhs whenever the arguments have
23937 changed and weren't just swapped. Fix comment typo.
23938
23939 PR tree-optimization/65215
23940 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
23941 for PDP endian targets.
23942 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
23943 Fix up formatting issues.
23944 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
23945 size is smaller than the original, adjust MEM_REF offset by the
23946 difference of sizes. Use is_gimple_mem_ref_addr instead of
23947 is_gimple_min_invariant test to avoid adding address temporaries.
23948
23949 2015-02-26 Martin Liska <mliska@suse.cz>
23950 Jan Hubicka <hubicka@ucw.cz>
23951
23952 PR ipa/64693
23953 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
23954 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
23955 (sem_item_optimizer::process_cong_reduction): Include division by
23956 sensitive references.
23957 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
23958 * ipa-ref.c (ipa_ref::address_matters_p): New function.
23959 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
23960
23961 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
23962
23963 PR target/65192
23964 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
23965 Remove.
23966 * config/avr/avr.c: Same.
23967 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
23968 Refuse any constant address not in 0..0xbf.
23969 * config/avr/avr.md (*mov<mode>, *movsf): Remove
23970 tiny_valid_direct_memory_access_range from insn conditions.
23971 (mov<mode>): Don't special-case expansion of avrtiny addresses.
23972
23973 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
23974
23975 PR target/61142
23976 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
23977 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
23978 * config/sh/predicates.md (const_logical_operand): New predicate.
23979 * config/sh/sh.md: Add new peephole2 patterns.
23980
23981 2015-02-26 Marek Polacek <polacek@redhat.com>
23982
23983 PR ipa/65008
23984 * ipa-inline.c (early_inliner): Recompute inline parameters.
23985
23986 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23987
23988 PR target/65171
23989 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
23990 instructions with TImode operands are included in the analysis.
23991
23992 2015-02-26 Sebastian Pop <s.pop@samsung.com>
23993
23994 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
23995 of an EDGE_FSM_THREAD.
23996
23997 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
23998
23999 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
24000
24001 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
24002
24003 PR debug/46102
24004 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
24005
24006 2015-02-26 Sebastian Pop <s.pop@samsung.com>
24007
24008 PR tree-optimization/65048
24009 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
24010 (thread_through_all_blocks): Call valid_jump_thread_path.
24011 Remove invalid FSM jump-thread paths.
24012
24013 2015-02-26 Jakub Jelinek <jakub@redhat.com>
24014
24015 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
24016 (ipa_write_optimization_summaries): Likewise.
24017 * tree-streamer.h: Include data-streamer.h.
24018 (streamer_mode_table): Declare extern variable.
24019 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
24020 * lto-streamer-out.c (lto_output_init_mode_table,
24021 lto_write_mode_table): New functions.
24022 (produce_asm_for_decls): Call lto_write_mode_table when streaming
24023 offloading LTO.
24024 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
24025 (lto_create_simple_input_block): Add mode_table argument to the
24026 lto_input_block constructors.
24027 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
24028 Likewise.
24029 * data-streamer-in.c (string_for_index): Likewise.
24030 * ipa-inline-analysis.c (inline_read_section): Likewise.
24031 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
24032 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
24033 * lto-streamer-in.c (lto_read_body_or_constructor,
24034 lto_input_toplevel_asms): Likewise.
24035 (lto_input_mode_table): New function.
24036 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
24037 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
24038 Use bp_pack_machine_mode.
24039 * real.h (struct real_format): Add name field.
24040 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
24041 (class lto_input_block): Add mode_table member.
24042 (lto_input_block::lto_input_block): Add mode_table_ argument,
24043 initialize mode_table.
24044 (struct lto_file_decl_data): Add mode_table field.
24045 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
24046 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
24047 unpack_ts_decl_common_value_fields,
24048 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
24049 * tree-streamer.c (streamer_mode_table): New variable.
24050 * real.c (ieee_single_format, mips_single_format,
24051 motorola_single_format, spu_single_format, ieee_double_format,
24052 mips_double_format, motorola_double_format,
24053 ieee_extended_motorola_format, ieee_extended_intel_96_format,
24054 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
24055 ibm_extended_format, mips_extended_format, ieee_quad_format,
24056 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
24057 decimal_single_format, decimal_double_format, decimal_quad_format,
24058 ieee_half_format, arm_half_format, real_internal_format): Add name
24059 field.
24060 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
24061
24062 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
24063
24064 PR target/65161
24065 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
24066 reordering for selective scheduling.
24067
24068 2015-02-26 Terry Guo <terry.guo@arm.com>
24069
24070 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
24071 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
24072 (arm_arch_no_volatile_ce): Declare new global variable.
24073 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
24074 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
24075 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
24076 (TARGET_NO_VOLATILE_CE): New macro.
24077 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
24078 volatile memory access in IT block
24079
24080 2015-02-25 Kai Tietz <ktietz@redhat.com>
24081
24082 PR tree-optimization/61917
24083 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
24084 that reduc_def_stmt is null.
24085
24086 2015-02-25 Martin Liska <mliska@suse.cz>
24087
24088 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
24089 hard register variables.
24090
24091 2015-02-25 Kai Tietz <ktietz@redhat.com>
24092
24093 PR target/64212
24094 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
24095 (symtab::noninterposable_alias): Likewise.
24096
24097 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
24098
24099 PR target/65167
24100 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
24101 bounds registers.
24102 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
24103
24104 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
24105
24106 PR target/64997
24107 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
24108 as split condition; force split via '#' in output pattern.
24109
24110 2015-02-25 Richard Biener <rguenther@suse.de>
24111 Kai Tietz <ktietz@redhat.com>
24112
24113 PR tree-optimization/61917
24114 * tree-vect-loop.c (vectorizable_reduction): Allow
24115 vect_internal_def without reduction to exit graceful.
24116
24117 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
24118
24119 PR target/65196
24120 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
24121 only with NONDEBUG_INSN_P.
24122
24123 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
24124
24125 Use variadic macros with avr-log.c.
24126
24127 * config/avr/avr-protos.h (avr_vdump): New prototype.
24128 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
24129 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
24130 * config/avr/avr-log.c: Adjust comments.
24131 (avr_vdump): New function.
24132 (avr_vadump): Pass caller as 2nd argument instead of format string.
24133 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
24134 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
24135
24136 2015-02-25 Jakub Jelinek <jakub@redhat.com>
24137
24138 PR lto/64374
24139 * target.def (target_option_stream_in): New target hook.
24140 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
24141 targetm.target_option.post_stream_in if non-NULL.
24142 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
24143 * doc/tm.texi: Updated.
24144 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
24145 function.
24146 (TARGET_OPTION_POST_STREAM_IN): Redefine.
24147
24148 2015-02-24 Jeff Law <law@redhat.com>
24149
24150 PR target/65117
24151 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
24152 of operand 0 and operand 2.
24153 (zero_cost_loop_end, loop_end): Similarly.
24154
24155 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
24156
24157 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
24158 CXX_MEM_STAT_INFO.
24159
24160 2015-02-24 DJ Delorie <dj@redhat.com>
24161
24162 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
24163 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
24164 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
24165 instead of hardcoding SImode.
24166
24167 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
24168
24169 * omp-low.c (create_omp_child_function): Tag entrypoint
24170 functions with a special attribute.
24171
24172 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
24173
24174 PR target/65058
24175 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
24176
24177 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
24178
24179 PR rtl-optimization/65123
24180 * lra-remat.c (operand_to_remat): Check hard regs in insn
24181 definition too.
24182
24183 2015-02-24 Nick Clifton <nickc@redhat.com>
24184
24185 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
24186 to the assembler.
24187
24188 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
24189
24190 PR libgomp/64625
24191 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
24192 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
24193 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
24194 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
24195 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
24196 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
24197 (BUILT_IN_GOACC_PARALLEL): Specify as
24198 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
24199 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
24200 * builtin-types.def
24201 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
24202 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
24203 Remove function types.
24204 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
24205 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
24206 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
24207 New function types.
24208
24209 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
24210
24211 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
24212
24213 2015-02-24 Jakub Jelinek <jakub@redhat.com>
24214
24215 PR tree-optimization/65170
24216 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
24217 if val[1] < 0, clear also val[2] and return 3.
24218
24219 2015-02-24 Alan Modra <amodra@gmail.com>
24220
24221 PR target/65172
24222 * config/rs6000/rs6000.c (get_memref_parts): Only return true
24223 when *base is a reg. Handle nested plus addresses. Simplify
24224 pre_modify test.
24225
24226 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
24227
24228 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
24229 use natural alignment when optimizing for size.
24230
24231 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
24232
24233 PR target/65153
24234 * config/sh/sh.md (movsicc_true+3): Remove peephole.
24235 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
24236 * config/sh/sh.c (replace_n_hard_rtx): Remove.
24237
24238 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
24239
24240 PR fortran/63427
24241 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
24242 too big for a wide_int. Implement missing wrapping operation.
24243
24244 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
24245
24246 PR target/65163
24247 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
24248 instead of const_int 4294901760.
24249
24250 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
24251
24252 * config/avr/t-avr: Fix typo in comment.
24253
24254 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
24255
24256 * doc/rtl.texi (fma): Clarify documentation.
24257
24258 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
24259
24260 PR debug/58123
24261 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
24262 over input_location.
24263
24264 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
24265
24266 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
24267 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
24268 restrict alignments to absolute_biggest_alignment.
24269 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
24270 Define.
24271 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
24272 * doc/tm.texi: Regenerate.
24273 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
24274
24275 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
24276
24277 PR target/64172
24278 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
24279
24280 2015-02-20 Richard Biener <rguenther@suse.de>
24281
24282 PR tree-optimization/65136
24283 * tree-ssa-propagate.c: Include cfgloop.h.
24284 (replace_phi_args_in): Avoid replacing loop latch edge PHI
24285 arguments with constants.
24286
24287 2015-02-20 Jakub Jelinek <jakub@redhat.com>
24288 Martin Liska <mliska@suse.cz>
24289
24290 PR target/63892
24291 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
24292 don't try to create_thunk if stdarg_p. If
24293 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
24294 redirect_callers if possible.
24295 (sem_item_optimizer::execute): Call unregister_hooks here...
24296 (ipa_icf_driver): ... instead of here.
24297
24298 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24299
24300 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
24301 Mark operand 0 as earlyclobber in 2nd alternative.
24302 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
24303 Write negated shift amount into QI lowpart operand 0 and use it
24304 in the shift step.
24305 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
24306
24307 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
24308
24309 * cgraph.h (clone_function_name_1): Declare.
24310 * cgraphclones.c (clone_function_name_1): New function.
24311 (clone_function_name): Use it.
24312 * lto-partition.c: Include "stringpool.h".
24313 (must_not_rename, maybe_rewrite_identifier)
24314 (validize_symbol_for_target): New static functions.
24315 (privatize_symbol_name): Use must_not_rename.
24316 (promote_symbol): Call validize_symbol_for_target.
24317 (lto_promote_cross_file_statics): Likewise.
24318 (lto_promote_statics_nonwpa): Likewise.
24319
24320 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
24321
24322 PR target/64452
24323 * config/avr/avr.md (pushhi_insn): New insn.
24324 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
24325
24326 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
24327 Jakub Jelinek <jakub@redhat.com>
24328
24329 * tree-streamer.c (preload_common_nodes): Don't preload
24330 TI_VA_LIST* for offloading.
24331 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
24332 in_lto_p.
24333
24334 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
24335
24336 * config/pa/pa.c (pa_emit_move_sequence): Always force
24337 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
24338 note on insn.
24339
24340 * config/pa/pa.c (pa_reloc_rw_mask): New function.
24341 (TARGET_ASM_RELOC_RW_MASK): Define.
24342 (pa_cannot_force_const_mem): Revert previous change.
24343
24344 2015-02-19 Martin Jambor <mjmabor@suse.cz>
24345 Jan Hubicka <hubicka@ucw.cz>
24346
24347 PR ipa/65028
24348 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
24349 across jump functions.
24350
24351 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
24352
24353 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
24354
24355 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
24356
24357 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
24358
24359 2015-02-19 Richard Henderson <rth@redhat.com>
24360
24361 PR middle-end/65074
24362 * varasm.c (default_binds_local_p_2): Don't test node->definition;
24363 test DECL_EXTERNAL independent of symtab_node.
24364
24365 2015-02-19 Jakub Jelinek <jakub@redhat.com>
24366
24367 PR lto/65012
24368 * varpool.c (varpool_node::get_constructor): Return early
24369 if this->lto_file_data is NULL.
24370
24371 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24372
24373 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
24374 (rank_for_schedule_debug): Update.
24375 (ready_sort): Make static. Move sorting logic to ...
24376 (ready_sort_debug, ready_sort_real): New static functions.
24377 (schedule_block): Sort both debug insns and real insns in preparation
24378 for ready list trimming. Improve debug output.
24379 * sched-int.h (ready_sort): Remove global declaration.
24380
24381 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
24382
24383 * ipa-icf.c (sem_function::equals_private): Adjust.
24384 (sem_function::bb_dict_test): Take a vec<int> * instead of
24385 auto_vec<int>.
24386 * ipa-icf.h (bb_dict_test): Likewise.
24387
24388 2015-02-18 Jakub Jelinek <jakub@redhat.com>
24389
24390 PR gcov-profile/64634
24391 * tree-eh.c (frob_into_branch_around): Fix up typos
24392 in function comment.
24393 (lower_catch): Put eh_seq resulting from EH lowering of
24394 the cleanup sequence after the cleanup rather than before it.
24395
24396 2015-02-18 Tom de Vries <tom@codesourcery.com>
24397
24398 * common.opt (fstdarg-opt): New option.
24399 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
24400 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
24401 (@item -fstdarg-opt): New item.
24402
24403 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
24404
24405 PR target/65064
24406 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
24407 for common symbols.
24408
24409 2015-02-18 Jakub Jelinek <jakub@redhat.com>
24410
24411 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
24412 insn-modes.h.
24413 (ALL_HOST_OBJS): Add mkoffload.o.
24414 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
24415
24416 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
24417
24418 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
24419 (compare_virtual_tables): Be smarter about skipping typeinfos;
24420 do sane output on virtual table table mismatch.
24421 (warn_odr): Be ready for forward declarations of enums;
24422 output sane info on base mismatch and virtual table mismatch.
24423 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
24424 when only one type is polymorphic.
24425 (get_odr_type): Fix hashtable corruption.
24426 (dump_odr_type): Dump mangled names.
24427
24428 2015-02-18 Richard Biener <rguenther@suse.de>
24429
24430 PR tree-optimization/65063
24431 * tree-predcom.c (determine_unroll_factor): Return 1 if we
24432 have replaced looparound PHIs.
24433
24434 2015-02-18 Martin Liska <mliska@suse.cz>
24435
24436 * lto-streamer.c (lto_streamer_init): Encapsulate
24437 streamer_check_handled_ts_structures with checking macro.
24438
24439 2015-02-18 Jakub Jelinek <jakub@redhat.com>
24440
24441 PR ipa/65087
24442 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
24443 section if !implicit_section.
24444 (cgraph_node::create_version_clone_with_body): Likewise.
24445 * trans-mem.c (ipa_tm_create_version): Likewise.
24446
24447 2015-02-18 Richard Biener <rguenther@suse.de>
24448
24449 PR tree-optimization/62217
24450 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
24451 into BIVs.
24452
24453 2015-02-18 Marek Polacek <polacek@redhat.com>
24454
24455 PR sanitizer/65081
24456 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
24457 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
24458 is in range [-16K, -1]. Don't issue run-time error if
24459 (ptr > ptr + offset).
24460
24461 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
24462
24463 * doc/install.texi (nvptx-*-none): New section.
24464 * doc/invoke.texi (Nvidia PTX Options): Likewise.
24465 * config/nvptx/nvptx.opt: Update.
24466
24467 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
24468 (access_check): New functions, copied from
24469 config/i386/intelmic-mkoffload.c.
24470 (main): For non-installed testing, look in all COMPILER_PATHs for
24471 GCC_INSTALL_NAME.
24472
24473 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
24474
24475 2015-02-18 Andrew Pinski <apinski@cavium.com>
24476 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
24477
24478 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
24479 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
24480
24481 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
24482
24483 * ipa-visibility.c (function_and_variable_visibility): Only
24484 check locality if node is not already local.
24485 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
24486 call_for_symbol_and_aliases instead of
24487 call_for_symbol_thunks_and_aliases.
24488 (ipa_inline): Likewise.
24489 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
24490 first walk aliases.
24491 * ipa.c (symbol_table::remove_unreachable_nodes): Use
24492 call_for_symbol_and_aliases.
24493 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
24494 (ipa_propagate_frequency_1): Use it; use opt_for_fn
24495 (ipa_propagate_frequency): Update.
24496 (ipa_profile): Add opt_for_fn gueards.
24497
24498 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
24499
24500 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
24501 * doc/invoke.texi (SH options): Document it.
24502 * config/sh/sh.c (sh_insn_length_adjustment): Check
24503 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
24504
24505 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
24506
24507 * common.opt (fipa-cp-alignment): New.
24508 * ipa-cp.c (ipcp_store_alignment_results): Check
24509 flag_ipa_cp_alignment.
24510 * opts.c (default_options_table): Enable -fipa-cp-alignment for
24511 -O2.
24512 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
24513 * doc/invoke.texi: Document -fipa-cp-alignment.
24514
24515 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
24516
24517 PR target/64793
24518 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
24519 to nil. Adjust comments.
24520
24521 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
24522
24523 * ipa-visibility.c (function_and_variable_visibility): Only
24524 check locality if node is not already local.
24525 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
24526 call_for_symbol_and_aliases instead of
24527 call_for_symbol_thunks_and_aliases.
24528 (ipa_inline): Likewise.
24529 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
24530 first walk aliases.
24531 * ipa.c (symbol_table::remove_unreachable_nodes): Use
24532 call_for_symbol_and_aliases.
24533 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
24534 (ipa_propagate_frequency_1): Use it; use opt_for_fn
24535 (ipa_propagate_frequency): Update.
24536 (ipa_profile): Add opt_for_fn guards.
24537
24538 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
24539
24540 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
24541 skipping of "strange" tokens.
24542
24543 2015-02-17 Jeff Law <law@redhat.com>
24544
24545 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
24546 obsolete comment.
24547
24548 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
24549
24550 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
24551 as forcing a HARD_DEP between instructions, thereby
24552 disallowing rewriting to break dependencies.
24553
24554 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
24555
24556 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
24557 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
24558 variables in boundary that have no inlitalizer encoded and are
24559 not aliases.
24560 * varasm.c (default_binds_local_p_2): External definitions do not
24561 count as definitions here.
24562
24563 2015-02-16 Jeff Law <law@redhat.com>
24564
24565 PR tree-optimization/64823
24566 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
24567 statements.
24568 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
24569 threading through blocks with PHIs, but no statements.
24570 (thread_through_normal_block): Distinguish between blocks where
24571 we did not process all the statements and blocks with no statements.
24572
24573 2015-02-16 Jakub Jelinek <jakub@redhat.com>
24574 James Greenhalgh <james.greenhalgh@arm.com>
24575
24576 PR ipa/64963
24577 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
24578 section if not linkonce. Fix up formatting.
24579 (cgraph_node::create_version_clone_with_body): Copy section.
24580 * trans-mem.c (ipa_tm_create_version): Likewise.
24581
24582 2015-02-16 Richard Biener <rguenther@suse.de>
24583
24584 PR tree-optimization/65077
24585 * tree-ssa-structalias.c (get_constraint_for_1): Handle
24586 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
24587 (find_func_aliases): Allow float values to carry pointers again.
24588
24589 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
24590
24591 * doc/install.texi (Specific): Reorder targets list to put
24592 aarch64 in alphabetical order. Add a link to aarch64*-*-*
24593 from the top menu.
24594
24595 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
24596 David Edelsohn <dje.gcc@gmail.com>
24597
24598 PR target/65058
24599 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
24600 mapping class to external variable or function reference.
24601 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
24602 mapping class.
24603
24604 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
24605
24606 PR target/53348
24607 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
24608 ASM_WEAKEN_DECL if defined.
24609
24610 2015-02-16 Richard Biener <rguenther@suse.de>
24611
24612 PR lto/65015
24613 * varasm.c (default_file_start): For LTO produced units
24614 emit <artificial> as file directive.
24615
24616 2015-02-16 Richard Biener <rguenther@suse.de>
24617
24618 PR tree-optimization/63593
24619 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
24620 stmts and releasing SSA names until...
24621 (execute_pred_commoning): ... after processing all chains.
24622
24623 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
24624
24625 PR ipa/65059
24626 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
24627 external functions.
24628
24629 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
24630
24631 * doc/bugreport.texi: Adjust section titles throughout the file
24632 to use "Title Case".
24633 * doc/extend.texi: Likewise.
24634 * doc/gcov.texi: Likewise.
24635 * doc/implement-c.texi: Likewise.
24636 * doc/implement-cxx.texi: Likewise.
24637 * doc/invoke.texi: Likewise.
24638 * doc/objc.texi: Likewise.
24639 * doc/standards.texi: Likewise.
24640 * doc/trouble.texi: Likewise.
24641
24642 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
24643
24644 * cgraph.h (symtab_node::has_aliases_p): Simplify.
24645 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
24646 * tree.c (lookup_binfo_at_offset): Make static.
24647 (get_binfo_at_offset): Do not shadow offset; add explanatory
24648 comment.
24649
24650 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
24651
24652 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
24653 for all floading point loads and stores except those using a register
24654 index address.
24655 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
24656 to a register.
24657
24658 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
24659
24660 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
24661 (do_estimate_growth_1): Record if any uninlinable edge was seen.
24662 (estimate_growth): Handle uninlinable edges correctly.
24663 (check_callers): New.
24664 (growth_likely_positive): Handle aliases correctly.
24665
24666 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
24667
24668 * ipa-chkp.c: Use iterate_direct_aliases.
24669 * symtab.c (resolution_used_from_other_file_p): Move inline.
24670 (symtab_node::create_reference): Fix formating.
24671 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
24672 (symtab_node::iterate_reference): Move inline.
24673 (symtab_node::iterate_referring): Move inline.
24674 (symtab_node::iterate_direct_aliases): Move inline.
24675 (symtab_node::used_from_object_file_p_worker): Inline into ...
24676 (symtab_node::used_from_object_file_p): ... this one; move inline.
24677 (symtab_node::call_for_symbol_and_aliases): Move inline;
24678 use iterate_direct_aliases.
24679 (symtab_node::call_for_symbol_and_aliases_1): New method.
24680 (cgraph_node::call_for_symbol_and_aliases): Move inline;
24681 use iterate_direct_aliases.
24682 (cgraph_node::call_for_symbol_and_aliases_1): New method.
24683 (varpool_node::call_for_node_and_aliases): Rename to ...
24684 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
24685 use iterate_direct_aliases.
24686 (varpool_node::call_for_symbol_and_aliases_1): New method.
24687 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
24688 (ipa_discover_readonly_nonaddressable_var): Update.
24689 * ipa-devirt.c: Fix formating.
24690 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
24691 Move inline.
24692 (cgraph_node::call_for_symbol_and_aliases): Move inline.
24693 (cgraph_node::call_for_symbol_and_aliases_1): New function..
24694 * cgraph.h (used_from_object_file_p_worker): Remove.
24695 (resolution_used_from_other_file_p): Move inline.
24696 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
24697 (symtab_node::iterate_reference): Move inline.
24698 (symtab_node::iterate_referring): Move inline.
24699 (symtab_node::iterate_direct_aliases): Move inline.
24700 (symtab_node::used_from_object_file_p_worker): Inline into ...
24701 (symtab_node::used_from_object_file_p): Move inline.
24702 * tree-emutls.c (ipa_lower_emutls): Update.
24703 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
24704 (varpool_node::call_for_node_and_aliases): Remove.
24705
24706 2015-02-14 Jakub Jelinek <jakub@redhat.com>
24707
24708 PR tree-optimization/62209
24709 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
24710 op == range->exp, insert seq and gimplified code after labels
24711 instead of after the phi.
24712
24713 2015-02-13 Jeff Law <law@redhat.com>
24714
24715 PR bootstrap/65060
24716 Revert my change for tree-optimization/64823.
24717
24718 2015-02-13 Jakub Jelinek <jakub@redhat.com>
24719
24720 PR tree-optimization/65053
24721 * tree-ssa-phiopt.c (value_replacement): When moving assign before
24722 cond, either reset VR on lhs or set it to phi result VR.
24723
24724 2015-02-13 Jeff Law <law@redhat.com>
24725
24726 PR tree-optimization/64823
24727 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
24728 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
24729 threading through blocks with PHIs, but no statements.
24730 (thread_through_normal_block): Distinguish between blocks where
24731 we did not process all the statements and blocks with no statements.
24732
24733 PR rtl-optimization/47477
24734 * match.pd (convert (plus/minus (convert @0) (convert @1): New
24735 simplifier to narrow arithmetic.
24736
24737 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
24738
24739 PR ipa/65028
24740 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
24741 polymorphic call info when type is not known to be preserved.
24742
24743 2015-02-13 Maritn Jambor <mjambor@suse.cz>
24744
24745 PR ipa/65028
24746 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
24747 (inline_call): Use it.
24748
24749 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
24750
24751 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
24752 GOMP_DEVICE_NVIDIA_PTX.
24753
24754 2015-02-13 Jakub Jelinek <jakub@redhat.com>
24755
24756 PR ipa/65034
24757 * stmt.c (emit_case_nodes): Use void_type_node instead of
24758 NULL_TREE as LABEL_DECL type.
24759
24760 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
24761
24762 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
24763 constraints.
24764 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
24765 symbolic references to data to be forced to constant memory on the
24766 SOM target.
24767
24768 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
24769
24770 PR tree-optimization/65002
24771 * tree-cfg.c (pass_data_fixup_cfg): Don't update
24772 SSA on start.
24773 * tree-sra.c (some_callers_have_no_vuse_p): New.
24774 (ipa_early_sra): Reject functions whose callers
24775 assume function is read only.
24776
24777 2015-02-13 Richard Biener <rguenther@suse.de>
24778
24779 PR lto/65015
24780 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
24781 for LTO produced CUs.
24782
24783 2015-02-13 Bin Cheng <bin.cheng@arm.com>
24784
24785 PR tree-optimization/64705
24786 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
24787 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
24788 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
24789 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
24790 expand_simple_operations.
24791
24792 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
24793 Richard Henderson <rth@redhat.com>
24794
24795 PR rtl/32219
24796 * cgraphunit.c (cgraph_node::finalize_function): Set definition
24797 before notice_global_symbol.
24798 (varpool_node::finalize_decl): Likewise.
24799 * varasm.c (default_binds_local_p_2): Rename from
24800 default_binds_local_p_1, add weak_dominate argument. Use direct
24801 returns instead of assigning to local variable. Unify varpool and
24802 cgraph paths via symtab_node. Reject undef weak variables before
24803 testing visibility. Reorder tests for simplicity.
24804 (default_binds_local_p): Use default_binds_local_p_2.
24805 (default_binds_local_p_1): Likewise.
24806 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
24807 via symtab_node.
24808 (default_elf_asm_output_external): Emit visibility when specified.
24809
24810 2015-02-13 Alan Modra <amodra@gmail.com>
24811
24812 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
24813 code setting up r11 for out-of-line fp restore.
24814
24815 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
24816
24817 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
24818 (muser-mode): Likewise.
24819
24820 2015-02-13 Alan Modra <amodra@gmail.com>
24821
24822 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
24823 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
24824
24825 2015-02-12 David Howells <dhowells@redhat.com>
24826
24827 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
24828 warning.
24829 * tree-ssa-uninit.c (dump_predicates): Likewise.
24830 * opts.c (print_filtered_help): Likewise.
24831
24832 2015-02-12 Jakub Jelinek <jakub@redhat.com>
24833
24834 * dwarf2out.c (output_die): Use "%s", name instead of name to
24835 avoid -Wformat-security warning.
24836
24837 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
24838 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
24839 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
24840 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
24841
24842 2015-02-12 Jason Merrill <jason@redhat.com>
24843
24844 * common.opt (-flifetime-dse): New.
24845
24846 2015-02-12 Jakub Jelinek <jakub@redhat.com>
24847
24848 PR sanitizer/65019
24849 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
24850
24851 PR tree-optimization/65014
24852 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
24853 use original second operand of arg0 or arg1 instead of
24854 that adjusted by STRIP_NOPS.
24855
24856 2015-02-11 Jeff Law <law@redhat.com>
24857
24858 PR target/63347
24859 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
24860 that needs to be queued, just queue it for a single cycle.
24861
24862 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
24863
24864 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
24865 bodies of thunks; comment on why.
24866 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
24867 symbols are extern.
24868
24869 2015-02-11 Richard Henderson <rth@redhat.com>
24870
24871 PR sanitize/65000
24872 * tree-eh.c (mark_reachable_handlers): Mark source and destination
24873 regions of __builtin_eh_copy_values.
24874
24875 2015-02-11 Jakub Jelinek <jakub@redhat.com>
24876
24877 PR middle-end/65003
24878 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
24879 ultimate alias is MEM with SYMBOL_REF satisfying
24880 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
24881 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
24882
24883 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
24884
24885 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
24886 "diagnostic-core.h".
24887 (main): Initialize progname, and call diagnostic_initialize.
24888
24889 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
24890 instead of __OPENMP_TARGET__.
24891
24892 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
24893 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
24894 hard-coding PTX_ID.
24895
24896 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
24897
24898 * doc/sourcebuild.texi (pie_enabled): Document.
24899
24900 2015-02-11 Martin Liska <mliska@suse.cz>
24901
24902 PR ipa/64813
24903 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
24904 a return value for call to a function that is noreturn.
24905
24906 2015-02-11 Richard Biener <rguenther@suse.de>
24907
24908 PR lto/65015
24909 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
24910 and -fresolution.
24911
24912 2015-02-11 Andrew Pinski <apinski@cavium.com>
24913
24914 PR target/64893
24915 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
24916 Change the first argument type to size_type_node and add another
24917 size_type_node.
24918 (aarch64_simd_expand_builtin): Handle the new argument to
24919 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
24920 print an out when the first two arguments are not
24921 nonzero integer constants.
24922 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
24923 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
24924
24925 2015-02-11 Jakub Jelinek <jakub@redhat.com>
24926
24927 PR target/61925
24928 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
24929 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
24930 (ix86_set_current_function): Rewritten.
24931 (ix86_add_new_builtins): Temporarily clear current_target_pragma
24932 when creating builtin fndecls.
24933
24934 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
24935
24936 PR ipa/65005
24937 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
24938 function.
24939 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
24940 have no comdat group.
24941 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
24942 (lto_output_varpool_node): Always output alias info.
24943 (output_refs): Output refs of boundary aliases, too.
24944 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
24945 (output_symtab): Output call eges in thunks in boundary.
24946 (get_alias_symbol): Remove.
24947 (input_node, input_varpool_node): Do not special case weakrefs.
24948 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
24949 alias and thunks targets in the boundary; do not take removed symbols
24950 from their comdat groups.
24951 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
24952 (cgraph_node::global_info): Remove.
24953 (cgraph_node::rtl_info): Look through aliases and thunks.
24954 * cgrpah.h (global_info): Remove.
24955 (non_local_p): Remove.
24956
24957 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
24958 Sandra Loosemore <sandra@codesourcery.com>
24959
24960 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
24961 to inline asm. List dialects in proper order.
24962
24963 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
24964 Sandra Loosemore <sandra@codesourcery.com>
24965
24966 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
24967
24968 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
24969
24970 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
24971 modified) reference to Solaris.
24972
24973 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
24974
24975 * doc/extend.texi (Extended Asm): Fix typos.
24976
24977 2015-02-10 Jakub Jelinek <jakub@redhat.com>
24978
24979 PR sanitizer/65004
24980 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
24981
24982 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
24983
24984 PR target/64661
24985 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
24986 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
24987 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
24988 * config/sh/constraints.md (Ara, Add): New constraints.
24989 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
24990 predicates.
24991 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
24992 atomic_mem_operand_0. Don't use force_reg on the memory address.
24993 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
24994 Sra constraint. Convert to insn_and_split. Add workaround for
24995 PR 64974.
24996 (atomic_compare_and_swap<mode>_hard): Copy to
24997 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
24998 Use atomic_mem_operand_0 predicate.
24999 (atomic_compare_and_swap<mode>_soft_gusa,
25000 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
25001 AraAdd constraints.
25002 (atomic_compare_and_swap<mode>_soft_tcb,
25003 atomic_compare_and_swap<mode>_soft_imask,
25004 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
25005 atomic_mem_operand_0 predicate and SraSdd constraints.
25006 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
25007 constraint.
25008 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
25009 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
25010 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
25011 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
25012 force_reg on the memory address.
25013 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
25014 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
25015 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
25016 atomic_mem_operand_1 predicate and Sra constraint.
25017 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
25018 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
25019 Use atomic_mem_operand_1 predicate.
25020 (atomic_<fetchop_name><mode>_hard): Copy to
25021 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
25022 Use atomic_mem_operand_1 predicate.
25023 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
25024 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
25025 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
25026 insn_and_split. Use atomic_mem_operand_1 predicate.
25027 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
25028 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
25029 Use atomic_mem_operand_1 predicate.
25030 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
25031 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
25032 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
25033 in generated insn with original mem operand before emitting the insn.
25034 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
25035 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
25036 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
25037 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
25038 Use atomic_mem_operand_1 predicate and AraAdd constraints.
25039 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
25040 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
25041 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
25042 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
25043 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
25044 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
25045 atomic_not_fetch<mode>_soft_tcb,
25046 atomic_<fetchop_name>_fetch<mode>_soft_imask,
25047 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
25048 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
25049 Use atomic_mem_operand_1 predicate and SraSdd constraints.
25050
25051 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
25052
25053 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
25054 and 3 earlyclobber operands.
25055
25056 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25057
25058 * common.opt (fstack-reuse): Mark as optimization.
25059
25060 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
25061
25062 PR ipa/64982
25063 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
25064
25065 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
25066
25067 PR tree-optimization/64326
25068 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
25069
25070 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
25071
25072 PR gcov-profile/61889
25073 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
25074
25075 2015-02-10 Richard Biener <rguenther@suse.de>
25076
25077 PR tree-optimization/64995
25078 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
25079 value we use is final.
25080 (visit_reference_op_store): Always valueize op.
25081 (visit_use): Properly valueize vuses.
25082
25083 2015-02-10 Richard Biener <rguenther@suse.de>
25084
25085 PR tree-optimization/64909
25086 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
25087 pass a scalar-stmt count estimate to the cost model.
25088 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
25089
25090 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
25091
25092 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
25093 enabled by default together with var-tracking.
25094
25095 2015-02-10 Nick Clifton <nickc@redhat.com>
25096
25097 * config/rl78/rl78.c: Remove DIV attribute code accidentally
25098 included in previous rl78 commit.
25099
25100 2015-02-10 Richard Biener <rguenther@suse.de>
25101
25102 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
25103 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
25104 return the bitpack.
25105
25106 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
25107
25108 PR gcov-profile/61889
25109 * config.in: regenerate.
25110 * configure.in: Likewise.
25111 * configure.ac: Check for ftw.h.
25112 * gcov-tool.c: Check for ftw.h before using nftw.
25113
25114 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
25115
25116 PR lto/64076
25117 * ipa-visibility.c (update_visibility_by_resolution_info): Only
25118 assert when not in lto mode.
25119
25120 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
25121
25122 * ira-color.c (setup_left_conflict_sizes_p): Simplify
25123 initialization/assignment of conflict_size.
25124
25125 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
25126
25127 PR ipa/64978
25128 * ipa-cp.c (gather_caller_stats): Skip thunks.
25129 (propagate_constants_topo): Skip aliases.
25130
25131 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
25132
25133 PR target/64761
25134 * config/sh/sh.c (sh_option_override): Don't change
25135 -freorder-blocks-and-partition to -freorder-blocks even when
25136 unwinding is enabled.
25137 (sh_can_follow_jump): Return false if the followee jump is
25138 a crossing jump when -freorder-blocks-and-partition is specified.
25139 * config/sh/sh.md (*jump_compact_crossing): New insn.
25140
25141 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
25142 Kaz Kojima <kkojima@gcc.gnu.org>
25143
25144 PR target/64761
25145 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
25146 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
25147 (sh_can_redirect_branch): Rename to ...
25148 (sh_can_follow_jump): ... this. Constify argument types.
25149 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
25150 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
25151 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
25152 * doc/tm.texi: Regenerate.
25153
25154 2015-02-09 Jakub Jelinek <jakub@redhat.com>
25155
25156 PR sanitizer/64981
25157 * builtins.c (expand_builtin): Call targetm.expand_builtin
25158 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
25159
25160 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25161
25162 PR ipa/61548
25163 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
25164
25165 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25166
25167 PR ipa/63566
25168 * ipa-icf.c (set_local): New function.
25169 (sem_function::merge): Use it.
25170
25171 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25172
25173 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
25174 (add_type_duplicate): Fix comparison of BINFOs.
25175
25176 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25177
25178 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
25179 on getting VOID pointer.
25180
25181 2015-02-09 Jakub Jelinek <jakub@redhat.com>
25182
25183 PR target/64979
25184 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
25185 va_list escapes.
25186
25187 2015-02-09 Richard Biener <rguenther@suse.de>
25188
25189 * genmatch.c (replace_id): Copy expr_type.
25190
25191 2015-02-09 Richard Biener <rguenther@suse.de>
25192
25193 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
25194 (streamer_write_tree_bitfields): Declare.
25195 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
25196 properly unpack padding.
25197 (unpack_value_fields): Inline ...
25198 (streamer_read_tree_bitfields): ... here.
25199 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
25200 and properly add padding bits.
25201 (streamer_pack_tree_bitfields): Fold into ...
25202 (streamer_write_tree_bitfields): ... this new function,
25203 exposing the bitpack object.
25204 * lto-streamer-out.c (lto_write_tree_1): Call
25205 streamer_write_tree_bitfields.
25206
25207 2015-02-09 Richard Biener <rguenther@suse.de>
25208
25209 PR tree-optimization/54000
25210 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
25211 (struct ivopts_data): Add loop_loc member.
25212 (tree_ssa_iv_optimize_loop): Dump loop location.
25213 (create_new_ivs): Likewise, also dump number of IVs generated.
25214
25215 2015-02-09 Martin Liska <mliska@suse.cz>
25216
25217 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
25218 just if not yet registered.
25219 (ipa_icf_generate_summary): Register callgraph hooks.
25220
25221 2015-02-08 Andrew Pinski <apinski@cavium.com>
25222
25223 * config/aarch64/aarch64.c (gty_dummy): Delete.
25224
25225 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25226
25227 PR ipa/63566
25228 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
25229 (cgraph_node::local_p): Remove thunk related FIXME.
25230
25231 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25232
25233 PR ipa/63566
25234 * i386.c (ix86_function_regparm): Look through aliases to see if callee
25235 is local and optimized.
25236 (ix86_function_sseregparm): Likewise; also use target's SSE math
25237 settings; error out instead of silently generating wrong code
25238 on mismatches.
25239 (init_cumulative_args): Look through aliases.
25240
25241 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25242
25243 PR ipa/63566
25244 * ipa-split.c (execute_split_functions): Split if function has aliases.
25245
25246 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
25247
25248 PR ipa/63566
25249 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
25250 aliases before trying to expand it.
25251 (cgraph_node::expand_thunk): Fix formating.
25252
25253 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
25254
25255 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
25256 (Using Assembly Language with C): Expand introduction.
25257 (Basic Asm): Copy-edit. Add more information about uses of
25258 basic asm.
25259 (Extended Asm): Copy-edit. Document new escape syntax and
25260 %l[label] syntax.
25261 (Global Reg Vars): Copy-edit.
25262 (Local Reg Vars): Likewise.
25263
25264 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
25265
25266 PR debug/2714
25267 PR bootstrap/64256
25268 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
25269 (DBX_CONTIN_CHAR): Define.
25270
25271 2015-02-06 Sebastian Pop <s.pop@samsung.com>
25272 Brian Rzycki <b.rzycki@samsung.com>
25273
25274 PR tree-optimization/64878
25275 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
25276 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
25277 Stop recursion at loop phi nodes after having visited a loop phi node.
25278
25279 2015-02-06 Jakub Jelinek <jakub@redhat.com>
25280
25281 * toplev.c (process_options): Change flag_ipa_ra before creating
25282 optimization_{default,current}_node.
25283
25284 PR ipa/64896
25285 * cgraphunit.c (cgraph_node::expand_thunk): If
25286 restype is not is_gimple_reg_type nor the thunk_fndecl
25287 returns aggregate_value_p, set restmp to a temporary variable
25288 instead of resdecl.
25289
25290 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
25291
25292 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
25293
25294 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
25295
25296 PR target/64205
25297 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
25298 add a general secondary reload handler for SDmode, unless we have
25299 both read/write support for SDmode.
25300
25301 2015-02-06 Jakub Jelinek <jakub@redhat.com>
25302
25303 PR middle-end/64937
25304 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
25305 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
25306 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
25307 1 before, push it to abstract_vec.
25308 (dwarf2out_abstract_function): Adjust caller. Don't call
25309 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
25310 DECL_ABSTRACT_P flags for all abstract_vec elts.
25311
25312 2015-02-06 Renlin Li <renlin.li@arm.com>
25313
25314 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
25315 complex gimple.
25316 * tree-ssa.c (execute_update_addresses_taken): Likewise.
25317
25318 2015-02-06 Jeff Law <law@redhat.com>
25319
25320 PR target/64889
25321 * config/h8300/h8300.c (push): New argument "in_prologue".
25322 Pass "in_prologue" along to "F".
25323 (h8300_push_pop): Corresponding changes.
25324 (h8300_expand_prologue): Likewise.
25325 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
25326
25327 2015-02-06 Jakub Jelinek <jakub@redhat.com>
25328
25329 PR rtl-optimization/64957
25330 PR debug/64817
25331 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
25332 IOR rather than for AND.
25333
25334 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
25335
25336 PR target/62631
25337 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
25338 of shift-add and (add + shift) operations. Rename local variable.
25339
25340 2015-02-05 Jeff Law <law@redhat.com>
25341
25342 PR target/17306
25343 * config/h8300/constraints.md (U): Correctly dectect
25344 "eightbit_data" memory addresses.
25345 * config/h8300/h8300.c (eightbit_constant_address_p): Also
25346 handle (const (plus (symbol_ref (x)))) where x is declared
25347 as an 8-bit data memory address.
25348 * config/h8300/h8300.md (call, call_value): Correctly detect
25349 "funcvec" functions.
25350
25351 PR target/43264
25352 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
25353 24 to 28 bits for the H8/300.
25354
25355 2015-02-06 Alan Modra <amodra@gmail.com>
25356
25357 PR target/64876
25358 * config/rs6000/rs6000.c (chain_already_loaded): New function.
25359 (rs6000_call_aix): Use it.
25360
25361 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
25362
25363 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
25364 check.
25365
25366 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
25367
25368 * config/h8300/constraints.md ("U" constraint): Use strict
25369 variant of REG_OK_FOR_BASE_P after reload has started.
25370
25371 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
25372
25373 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
25374 define to zero if !TARGET_NEON.
25375 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
25376
25377 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25378 Trevor Saunders <tsaunders@mozilla.com>
25379
25380 PR ipa/61548
25381 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
25382
25383 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25384
25385 PR ipa/61548
25386 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
25387 when removing varpool nodes.
25388
25389 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25390
25391 PR ipa/61548
25392 * varpool.c (varpool_node::remove): Fix order of variables.
25393
25394 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25395
25396 PR ipa/64686
25397 * ipa-inline.c (inline_small_functions): Fix ordering issue between
25398 speculation resolution and key updates.
25399
25400 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25401
25402 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
25403 about not letting any speculative edges unupdated.
25404
25405 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25406
25407 PR gcov/64123
25408 * gcov-io.c (gcov_var): Export.
25409
25410 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25411
25412 PR middle-end/64922
25413 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
25414 edges that become speculative.
25415
25416 2015-02-04 Jakub Jelinek <jakub@redhat.com>
25417
25418 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
25419 or DW_LANG_Fortran08.
25420 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
25421 DW_LANG_Fortran08.
25422 (gen_compile_unit_die): Handle "GNU Fortran2003" and
25423 "GNU Fortran2008" language strings.
25424 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
25425 * langhooks.h (lang_GNU_Fortran): New prototype.
25426 * langhooks.c (lang_GNU_Fortran): New function.
25427 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
25428 lang_GNU_Fortran.
25429
25430 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
25431
25432 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
25433 (RTX_OK_FOR_OLO10_P): Likewise.
25434
25435 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
25436
25437 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
25438
25439 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
25440
25441 PR middle-end/64922
25442 * gimple.c: Include gimple-ssa.h.
25443 (maybe_remove_unused_call_args): New function.
25444 * gimple.h (maybe_remove_unused_call_args): Declare.
25445 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
25446 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
25447 * gimple-fold.c (gimple_fold_call): Likewise.
25448
25449 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
25450
25451 PR rtl-optimization/64905
25452 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
25453 pointer alignment if it isn't needed.
25454
25455 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
25456
25457 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
25458 cortex-a72.cortex-a53.
25459 * config/aarch64/aarch64-tune.md: Regenerate.
25460 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
25461
25462 2015-02-04 Nick Clifton <nickc@redhat.com>
25463
25464 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
25465 inside a MEM.
25466
25467 2015-02-04 Jakub Jelinek <jakub@redhat.com>
25468
25469 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
25470 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
25471 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
25472 of DEF_BUILTIN.
25473 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
25474 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
25475 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
25476 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
25477 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
25478 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
25479 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
25480 * tree-core.h (enum built_in_function): In between
25481 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
25482 for builtins that use DEF_BUILTIN_CHKP macro.
25483
25484 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
25485
25486 PR debug/64817
25487 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
25488 operands for tcc_comparison exprs. Fix typos.
25489
25490 PR debug/64817
25491 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
25492 of two XORs that have an intervening AND or IOR.
25493
25494 PR debug/64817
25495 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
25496 simplification of XOR of AND to not allocate new rtx before
25497 committing to a simplification.
25498
25499 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25500
25501 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
25502 manual swaps in all peepholes.
25503
25504 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25505
25506 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
25507 of manual swapping implementation.
25508 (aarch64_expand_vec_perm_const_1): Likewise.
25509
25510 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
25511
25512 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
25513 (generic_addrcost_table): Remove NAMED_PARAM.
25514 (cortexa57_addrcost_table): Likewise.
25515 (xgene1_addrcost_table): Likewise.
25516 (generic_regmove_table): Likewise.
25517 (cortexa53_regmove_table): Likewise.
25518 (xgene1_regmove_table): Likewise.
25519 (generic_vector_table): Likewise.
25520 (cortexa57_vector_table): Likewise.
25521 (xgene1_vector_table): Likewise.
25522 (generic_tunings): Likewise.
25523 (cortexa53_tunings): Likewise.
25524 (cortexa57_tunings): Likewise.
25525 (xgene1_tunings): Likewise.
25526
25527 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
25528
25529 * config/arm/arm-cores.def: Add cortex-a72 and
25530 cortex-a72.cortex-a53.
25531 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
25532 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
25533 * config/arm/arm-tune.md: Regenerate.
25534 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
25535 "cortex-a72.cortex-a53".
25536 * doc/invoke.texi (ARM Options/-mtune): Likewise.
25537
25538 2015-02-04 Nick Clifton <nickc@redhat.com>
25539
25540 PR target/64408
25541 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
25542 of accepted codes.
25543 (nonimmediate_di_operand): Likewise.
25544
25545 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
25546 prefixes of known F5 using MSP430 MCUs.
25547
25548 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25549
25550 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
25551 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
25552 instead of __builtin_sqrt.
25553
25554 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
25555
25556 * varasm.c (do_assemble_alias): Follow transparent alias
25557 chain for target.
25558 (default_assemble_visibility): Follow transparent alias
25559 chain for decl name.
25560
25561 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
25562
25563 PR middle-end/62103
25564 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
25565 to compute size of referenced value in the constant case.
25566
25567 2015-02-03 Jakub Jelinek <jakub@redhat.com>
25568
25569 PR rtl-optimization/64756
25570 * cse.c (invalidate_dest): New function.
25571 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
25572 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
25573 invalidate and do not record it.
25574
25575 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
25576
25577 PR target/64660
25578 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
25579 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
25580 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
25581 atomic_nand<mode>_soft_tcb): New insns.
25582 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
25583 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
25584 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
25585 Split into atomic_not_fetchsi_hard if operands[0] is unused.
25586 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
25587 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
25588 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
25589 atomic_not<mode>_hard if operands[0] is unused.
25590 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
25591 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
25592 if operands[0] is unused.
25593 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
25594 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
25595 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
25596 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
25597 unused.
25598 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
25599 into atomic_not<mode>_soft_tcb if operands[0] is unused.
25600 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
25601 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
25602 if operands[0] is unused.
25603 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
25604 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
25605 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
25606 atomic_nand_fetchsi_hard if operands[0] is unused.
25607 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
25608 atomic_nand<mode>_hard if operands[0] is unused.
25609 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
25610 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
25611 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
25612 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
25613 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
25614 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
25615 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
25616 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
25617 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
25618 atomic_not<mode>_hard if operands[0] is unused.
25619 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
25620 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
25621 unused.
25622 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
25623 into atomic_not<mode>_soft_tcb if operands[0] is unused.
25624 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
25625 atomic_nand<mode>_hard if operands[0] is unused.
25626 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
25627 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
25628
25629 2015-02-03 David Malcolm <dmalcolm@redhat.com>
25630
25631 PR jit/64810
25632 * Makefile.in (GCC_OBJS): Add gcc-main.o.
25633 * gcc-main.c: New file, containing "main" taken from gcc.c.
25634 * gcc.c (do_self_spec): Free decoded_options.
25635 (class driver): Move declaration to gcc.h.
25636 (main): Move declaration and implementation to new file
25637 gcc-main.c.
25638 (driver_get_configure_time_options): New function.
25639 * gcc.h (class driver): Move this declaration here, from
25640 gcc.c.
25641 (driver_get_configure_time_options): New declaration.
25642
25643 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
25644
25645 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
25646 cross-module inlining.
25647 * cgraph.h (cgraph_node): Add flag merged.
25648 * ipa-icf.c (sem_function::merge): Maintain it.
25649
25650 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
25651
25652 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
25653 instead of OBJECT_P.
25654
25655 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
25656
25657 PR target/62631
25658 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
25659 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
25660 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
25661 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
25662
25663 2015-02-03 Jakub Jelinek <jakub@redhat.com>
25664
25665 PR other/63504
25666 * combine.c (reg_n_sets_max): New variable.
25667 (can_change_dest_mode, reg_nonzero_bits_for_combine,
25668 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
25669 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
25670 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
25671 (rest_of_handle_combine): Initialize reg_n_sets_max.
25672
25673 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
25674
25675 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
25676 if some always_inline was inlined, apply changes before inlining
25677 heuristically.
25678
25679 2015-02-02 David Malcolm <dmalcolm@redhat.com>
25680
25681 PR jit/64810
25682 * config/arm/arm.c (arm_option_override): Set
25683 arm_selected_arch/cpu/tune to NULL on entry.
25684
25685 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
25686 Andrew Pinski <pinskia@gcc.gnu.org>
25687 Jakub Jelinek <jakub@gcc.gnu.org>
25688
25689 PR target/64231
25690 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
25691 integer typing for small model. Use IN_RANGE.
25692
25693 2015-02-02 Richard Biener <rguenther@suse.de>
25694
25695 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
25696 * tree-vrp.c (vrp_valueize_1): Likewise.
25697
25698 2015-02-02 Alan Modra <amodra@gmail.com>
25699
25700 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
25701 than mem for toc_restore.
25702 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
25703 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
25704 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
25705
25706 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
25707
25708 PR target/64047
25709 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
25710 explicit default options.
25711
25712 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
25713
25714 PR ipa/64872
25715 * ipa-utils.c (ipa_merge_profiles): Add release argument.
25716 * ipa-icf.c (sem_function::merge): Do not release body when merging.
25717 * ipa-utils.h (ipa_merge_profiles): Update prototype.
25718
25719 2015-02-01 Jakub Jelinek <jakub@redhat.com>
25720
25721 PR debug/64817
25722 * cfgexpand.c (deep_ter_debug_map): New variable.
25723 (avoid_deep_ter_for_debug): New function.
25724 (expand_debug_expr): If TERed SSA_NAME is in
25725 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
25726 instead of trying to expand SSA_NAME's def stmt.
25727 (expand_debug_locations): When expanding debug bind
25728 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
25729 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
25730 value.
25731 (pass_expand::execute): Call avoid_deep_ter_for_debug on
25732 all debug bind stmts. Delete deep_ter_debug_map after
25733 expand_debug_location if non-NULL and clear it.
25734
25735 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
25736
25737 PR target/64851
25738 * config/sh/sync.md (atomic_fetch_notsi_hard,
25739 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
25740 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
25741 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
25742 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
25743 atomic_not_fetch<mode>_soft_imask): New insns.
25744
25745 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
25746
25747 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
25748 (rank_for_schedule_debug): Split from ...
25749 (rank_for_schedule): ... this.
25750 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
25751 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
25752
25753 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
25754
25755 * doc/md.texi (Machine Constraints): Alphabetize table by target.
25756 * doc/extend.texi (x86 Variable Attributes): Move section to
25757 correct alphabetization after renaming.
25758 (x86 Type Attributes): Likewise.
25759 (Target Builtins): Re-alphabetize menu.
25760 (x86 Built-in Functions): Move section to correct alphabetization
25761 after renaming.
25762 (x86 transactional memory intrinsics): Likewise.
25763 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
25764 and x86 Windows Options in table and menu.
25765 (x86 Options): Move section to correct alphabetization after
25766 renaming.
25767 (x86 Windows Options): Likewise.
25768
25769 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
25770
25771 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
25772 preferred names of the architecture and its 32- and 64-bit
25773 variants.
25774 * doc/invoke.texi: Likewise.
25775 * doc/md.texi: Likewise.
25776
25777 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
25778
25779 PR target/64882
25780 * config/i386/predicates.md (address_no_seg_operand): Reject
25781 non-CONST_INT_P operands in invalid mode.
25782
25783 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
25784
25785 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
25786 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
25787 * config/i386/predicates.md (address_no_seg_operand): Call
25788 address_operand with VOIDmode.
25789 (vsib_address_operand): Ditto.
25790 (address_mpx_no_base_operand): Ditto.
25791 (address_mpx_no_index_operand): Ditto.
25792
25793 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
25794
25795 PR target/64688
25796 * lra-constraints.c (original_subreg_reg_mode): New.
25797 (simplify_operand_subreg): Try to simplify subreg of const. Use
25798 original_subreg_reg_mode for it.
25799 (swap_operands): Update original_subreg_reg_mode.
25800 (curr_insn_transform): Set up original_subreg_reg_mode.
25801
25802 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
25803
25804 PR target/64617
25805 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
25806 function.
25807 (process_alt_operands): Use it.
25808 (curr_insn_transform): Check the optional reload pseudo class is
25809 ok for the mode.
25810
25811 2015-01-30 Joseph Myers <joseph@codesourcery.com>
25812
25813 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
25814 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
25815 prototype.
25816 * toplev.h (init_asm_output): Update comment on use of
25817 UNKNOWN_LOCATION with fatal_error.
25818 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
25819 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
25820 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
25821 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
25822 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
25823 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
25824 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
25825 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
25826 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
25827 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
25828 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
25829 fatal_error changed to pass input_location as first argument.
25830
25831 2015-01-30 Martin Liska <mliska@suse.cz>
25832
25833 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
25834 in #pragma GCC diagnostic guards.
25835
25836 2015-01-30 Richard Biener <rguenther@suse.de>
25837
25838 PR tree-optimization/64829
25839 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
25840 not add a widening conversion pattern but hand off extra
25841 widenings to callers.
25842 (vect_recog_widen_mult_pattern): Handle extra widening produced
25843 by vect_handle_widen_op_by_const.
25844 (vect_recog_widen_shift_pattern): Likewise.
25845 (vect_pattern_recog_1): Remove excess vertical space in dumping.
25846 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
25847 (vect_init_vector_1): Likewise.
25848 (vect_get_vec_def_for_operand): Likewise.
25849 (vect_finish_stmt_generation): Likewise.
25850 (vectorizable_load): Likewise.
25851 (vect_analyze_stmt): Likewise.
25852 (vect_is_simple_use): Likewise.
25853
25854 2015-01-29 Jeff Law <law@redhat.com>
25855
25856 * combine.c (try_combine): Fix typo in comment.
25857
25858 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
25859
25860 PR target/64580
25861 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
25862 (rs6000_stack_info): Add assert.
25863 (rs6000_output_savres_externs): New function, split off from...
25864 (rs6000_output_function_prologue): ... here. Do not call it for
25865 thunks.
25866
25867 2015-01-29 Jeff Law <law@redhat.com>
25868
25869 PR target/15184
25870 * combine.c (try_combine): If I0 is a memory load and I3 a store
25871 to a related address, increase the "goodness" of doing a 4-insn
25872 combination with I0-I3.
25873 (make_field_assignment): Handle SUBREGs in the ior+and case.
25874
25875 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
25876
25877 PR tree-optimization/64746
25878 * tree-if-conv.c (mask_exists): New function.
25879 (predicate_mem_writes): Save created mask with given size for further
25880 use.
25881 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
25882 (ifcvt_repair_bool_pattern): Collect all statements that are root
25883 of bool pattern and use iterative algorithm to remove multiple uses
25884 of predicates, display number of required iterations.
25885
25886 2015-01-29 Richard Biener <rguenther@suse.de>
25887
25888 PR tree-optimization/64853
25889 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
25890 stmt will get simulated again.
25891 * tree-ssa-ccp.c (valueize_op_1): Likewise.
25892
25893 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25894
25895 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
25896 return_in_pc. Remove redundant assignments.
25897 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
25898 (arm_expand_epilogue): Don't compare boolean with true in if condition.
25899
25900 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
25901
25902 * config/i386/i386.c (ix86_mode_after): Make static.
25903
25904 2015-01-29 Richard Biener <rguenther@suse.de>
25905
25906 PR tree-optimization/64844
25907 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
25908 dump cost model analysis.
25909 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
25910 Do not register adjusted load/store costs here.
25911
25912 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
25913 Uros Bizjak <ubizjak@gmail.com>
25914
25915 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
25916 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
25917 using x86_use_pseudo_pic_reg.
25918 * config/i386/i386.c (ix86_conditional_register_usage): Remove
25919 support for fixed PIC register.
25920 (ix86_use_pseudo_pic_reg): Not static any more.
25921
25922 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
25923
25924 PR middle-end/64805
25925 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
25926 to avoid error in cgraph node verification.
25927
25928 2015-01-29 Marek Polacek <polacek@redhat.com>
25929
25930 * doc/standards.texi: Reflect that the default for C is gnu11.
25931
25932 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
25933
25934 PR target/64761
25935 * reorg.c (switch_text_sections_between_p): New function.
25936 (relax_delay_slots): Call it when testing if the jump insn
25937 is removable. Use targetm.can_follow_jump when testing if
25938 the conditional branch can follow an unconditional jump.
25939
25940 2015-01-27 Caroline Tice <cmtice@google.com>
25941
25942 Committing VTV Cywin/Ming patch for Patrick Wollgast
25943 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
25944 if -fvtable-verify=preinit/std is used.
25945 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
25946 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
25947 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
25948 if -fvtable-verify=preinit/std is used.
25949 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
25950 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
25951 if -fvtable-verify=preinit/std is used.
25952 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
25953 * config/i386/mingw32.h (LIB_SPEC): Likewise.
25954 * varasm.c (assemble_variable): Add code to properly set the comdat
25955 section and name for the .vtable_map_vars section in case the
25956 target is PE or COFF.
25957
25958 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
25959
25960 PR ipa/64801
25961 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
25962 make sane BB profile.
25963 (cgraph_node::expand_thunk): Make sane BB profile.
25964 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
25965 * cgraph.h (init_lowered_empty_function): Update prototype.
25966 * config/i386/i386.c (make_resolver_func): Update call.
25967 * predict.c (gate): Disable branch prediction pass if
25968 profile is already there.
25969
25970 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
25971
25972 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
25973 * opth-gen.awk: Likewise.
25974 * common.opt: Mark flag_fp_contract_mode as Optimization.
25975
25976 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
25977
25978 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
25979 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
25980
25981 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
25982
25983 PR target/64659
25984 * config/sh/predicates.md (atomic_arith_operand,
25985 atomic_logical_operand): Remove.
25986 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
25987 (atomic_arith_operand_0): New predicate.
25988 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
25989 Use atomic_arith_operand_0 for input values.
25990 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
25991 atomic_compare_and_swap<mode>_soft_gusa,
25992 atomic_compare_and_swap<mode>_soft_tcb,
25993 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
25994 arith_reg_operand instead of register_operand.
25995 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
25996 atomic_arith_operand_0 for newval input.
25997 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
25998 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
25999 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
26000 arith_reg_operand instead of register_operand.
26001 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
26002 fetchop_predicate_1, fetchop_constraint_1_llcs,
26003 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
26004 fetchop_constraint_1_imask): New code iterator attributes.
26005 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
26006 register_operand. Use fetchop_predicate_1.
26007 (atomic_fetch_<fetchop_name>si_hard,
26008 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
26009 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
26010 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
26011 and arith_reg_operand instead of register_operand. Use
26012 fetchop_predicate_1, fetchop_constraint_1_gusa.
26013 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
26014 and arith_reg_operand instead of register_operand. Use
26015 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
26016 to allow R0 usage.
26017 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
26018 and arith_reg_operand instead of register_operand. Use
26019 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
26020 to allow R0 usage.
26021 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
26022 register_operand. Use atomic_logical_operand_1.
26023 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
26024 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
26025 arith_reg_operand instead of register_operand.
26026 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
26027 Use arith_reg_dest and arith_reg_operand instead of register_operand.
26028 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
26029 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
26030 register_operand. Use fetchop_predicate_1.
26031 (atomic_<fetchop_name>_fetchsi_hard,
26032 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
26033 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26034 fetchop_constraint_1_llcs.
26035 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
26036 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26037 fetchop_constraint_1_gusa.
26038 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
26039 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26040 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
26041 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
26042 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
26043 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
26044 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
26045 register_operand. Use atomic_logical_operand_1.
26046 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
26047 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
26048 arith_reg_operand instead of register_operand.
26049 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
26050 arith_reg_operand instead of register_operand. Use logical_operand
26051 and K08. Adjust asm sequence to allow R0 usage.
26052 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
26053 arith_reg_operand instead of register_operand. Use logical_operand
26054 and K08.
26055
26056 2015-01-28 Jakub Jelinek <jakub@redhat.com>
26057
26058 PR other/63504
26059 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
26060 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
26061 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
26062 only get_full_len HOST_WIDE_INTs from get_val () array rather than
26063 all bits in *val_wide.
26064
26065 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
26066
26067 * varpool.c (tls_model_names): Fix names.
26068 (varpool_node::dump): Dump tls- prefix for tls models.
26069
26070 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
26071 Bernd Schmidt <bernds@codesourcery.com>
26072 Nathan Sidwell <nathan@codesourcery.com>
26073
26074 * config/nvptx/mkoffload.c: New file.
26075 * config/nvptx/t-nvptx: Add build rules for it.
26076 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
26077 (extra_programs): Add mkoffload.
26078 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
26079 function.
26080 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
26081
26082 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
26083
26084 PR middle-end/64809
26085 * cfgexpand.c (reorder_operands): Skip debug gimples.
26086
26087 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
26088
26089 PR tree-optimization/64277
26090 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
26091 range info when possible to refine estimation.
26092
26093 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
26094
26095 PR tree-optimization/64718
26096 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
26097 be a 16bit unsigned integer when n->range is 16.
26098 (bswap_replace): Convert src to that type if necessary for all bswap
26099 sizes. Fix rotation right notation in nearby comment. Use bswap_type
26100 set in pass_optimize_bswap::execute ().
26101
26102 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
26103
26104 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
26105 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
26106 integer and floating point variants.
26107 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
26108
26109 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
26110
26111 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
26112 for all vector modes.
26113
26114 2015-01-28 Jakub Jelinek <jakub@redhat.com>
26115
26116 PR bootstrap/64612
26117 * doc/sourcebuild.texi (comdat_group): Document.
26118
26119 2015-01-28 Terry Guo <terry.guo@arm.com>
26120
26121 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
26122
26123 2015-01-27 David Malcolm <dmalcolm@redhat.com>
26124
26125 * toplev.c (print_version): Add param "show_global_state", and
26126 only print GGC and plugin information if it is true.
26127 (init_asm_output): Pass in "true" for the new param when calling
26128 print_version.
26129 (process_options): Likewise.
26130 (toplev::main): Likewise.
26131 * toplev.h (print_version): Add new param to decl.
26132
26133 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
26134
26135 PR ipa/60871
26136 PR ipa/64139
26137 * tree.c (lookup_binfo_at_offset): New function.
26138 (get_binfo_at_offset): Use it.
26139
26140 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
26141
26142 PR ipa/64282
26143 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
26144 on vtable being vtable.
26145
26146 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
26147
26148 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
26149 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
26150 -mhotpatch= option.
26151 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
26152 -mno-hotpatch options. Change syntax of -mhotpatch= option.
26153 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
26154 Renamed.
26155 (s390_hotpatch_trampoline_halfwords_max): Renamed.
26156 (s390_hotpatch_hw_max): New name.
26157 (s390_hotpatch_trampoline_halfwords): Renamed.
26158 (s390_hotpatch_hw_before_label): New name.
26159 (get_hotpatch_attribute): Removed.
26160 (s390_hotpatch_hw_after_label): New name.
26161 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
26162 attribute.
26163 (s390_attribute_table): Ditto.
26164 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
26165 (s390_function_num_hotpatch_hw): New name.
26166 Remove special handling of inline functions and hotpatching.
26167 Return number of nops before and after the function label.
26168 (s390_can_inline_p): Removed.
26169 (s390_asm_output_function_label): Emit a configurable number of nops
26170 after the function label.
26171 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
26172 (TARGET_CAN_INLINE_P) Removed.
26173 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
26174
26175 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26176 Jiong Wang <jiong.wang@arm.com>
26177
26178 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
26179 of scratch reg.
26180 (cb<optab><mode>1): Likewise.
26181 * config/aarch64/iterators.md (bcond): New define_code_attr.
26182
26183 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26184
26185 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
26186 memory accesses.
26187
26188 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26189
26190 * config/s390/s390.c (s390_register_move_cost): Increase costs for
26191 FPR->GPR moves.
26192
26193 2015-01-27 Richard Biener <rguenther@suse.de>
26194
26195 * tree-vrp.c (update_value_range): Intersect the range with
26196 old recorded SSA name range information.
26197
26198 2015-01-27 Nick Clifton <nickc@redhat.com>
26199
26200 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
26201 BC, DE and HL registers directly, not via AX.
26202 When decrementing the stack pointer by a large amount, transfer SP
26203 into AX and perform the subtraction there.
26204 (rl78_expand_epilogue): Perform the inverse of the above
26205 enhancements.
26206
26207 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26208
26209 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
26210
26211 2015-01-27 Jakub Jelinek <jakub@redhat.com>
26212 Yury Gribov <y.gribov@samsung.com>
26213
26214 PR ubsan/64741
26215 * ubsan.c (ubsan_source_location): Refactor code.
26216 (ubsan_type_descriptor): Update type size. Refactor code.
26217
26218 2015-01-27 Richard Biener <rguenther@suse.de>
26219
26220 PR tree-optimization/56273
26221 PR tree-optimization/59124
26222 PR tree-optimization/64277
26223 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
26224 from the first VRP pass.
26225
26226 2015-01-27 Jakub Jelinek <jakub@redhat.com>
26227
26228 PR ipa/64776
26229 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
26230 handle the first argument in the same loop as all the other arguments.
26231
26232 PR rtl-optimization/61058
26233 * jump.c (cleanup_barriers): Update basic block boundaries
26234 if BLOCK_FOR_INSN is non-NULL on PREV.
26235
26236 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
26237
26238 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
26239 bounds narrowing, already instrumented calls and calls to
26240 not instrumentable functions.
26241
26242 2015-01-27 Jakub Jelinek <jakub@redhat.com>
26243
26244 PR tree-optimization/64807
26245 * wide-int.cc (wi::divmod_internal): Clear
26246 b_dividend[dividend_blocks_needed].
26247
26248 2015-01-26 DJ Delorie <dj@redhat.com>
26249
26250 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
26251 volatile memory references.
26252
26253 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
26254
26255 PR target/49263
26256 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
26257 remove_insn.
26258 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
26259 shifts if it already fits into K08.
26260
26261 2015-01-26 Jakub Jelinek <jakub@redhat.com>
26262
26263 PR ipa/64730
26264 * ipa-inline.c (inline_small_functions): Print "unknown" even
26265 if edge->call_stmt is non-NULL, but has builtins or unknown
26266 location.
26267
26268 PR middle-end/64421
26269 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
26270 with asterisk, skip the first character.
26271
26272 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
26273
26274 PR target/64806
26275 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
26276 order change.
26277
26278 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
26279
26280 PR target/64795
26281 * config/i386/i386.md (*movdi_internal): Also check operand 0
26282 to determine TYPE_LEA operand.
26283 (*movsi_internal): Ditto.
26284
26285 2015-01-26 Jakub Jelinek <jakub@redhat.com>
26286
26287 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
26288 OPTION_MASK_QUAD_MEMORY_ATOMIC.
26289
26290 2015-01-26 Renlin Li <renlin.li@arm.com>
26291
26292 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
26293 the comment.
26294 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
26295 for higher part.
26296
26297 2015-01-26 Richard Biener <rguenther@suse.de>
26298
26299 PR middle-end/64764
26300 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
26301 combining two BIT_AND_EXPR predicates.
26302
26303 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
26304
26305 PR bootstrap/64754
26306 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
26307
26308 2015-01-26 Terry Guo <terry.guo@arm.com>
26309
26310 * config/arm/arm.c (arm_file_start): Update the assignment of
26311 Tag_ABI_HardFP_use.
26312
26313 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
26314
26315 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
26316 pipeline model.
26317 config/arm/arm.md: Include the new Cortex-A57 model.
26318 (generic_sched): Don't use generic_sched when tuning for
26319 Cortex-A57.
26320
26321 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
26322 Uros Bizjak <ubizjak@gmail.com>
26323
26324 * config/i386/i386.c (get_builtin_code_for_version): Add
26325 support for BMI and BMI2 multiversion functions.
26326
26327 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26328
26329 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
26330 (extract_bit_field): Likewise.
26331 (extract_low_bits): Likewise.
26332 (expand_mult): Likewise.
26333 (expand_mult_highpart_adjust): Likewise.
26334
26335 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
26336
26337 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
26338 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
26339 * config/i386/i386.c (processor_model): Add
26340 M_INTEL_COREI7_BROADWELL.
26341 (arch_names_table): Add "broadwell".
26342
26343 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
26344
26345 PR target/49263
26346 PR target/53987
26347 PR target/64345
26348 PR target/59533
26349 PR target/52933
26350 PR target/54236
26351 PR target/51244
26352 * config/sh/sh-protos.h
26353 (sh_extending_set_of_reg::can_use_as_unextended_reg,
26354 sh_extending_set_of_reg::use_as_unextended_reg,
26355 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
26356 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
26357 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
26358 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
26359 (sh_treg_insns): New class.
26360 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
26361 (scope_counter): New class.
26362 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
26363 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
26364 sh_extending_set_of_reg::can_use_as_unextended_reg,
26365 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
26366 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
26367 sh_split_treg_set_expr): New functions.
26368 (addsubcosts): Handle treg_set_expr.
26369 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
26370 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
26371 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
26372 (sh_insn_operands_modified_between_p): Make non-static.
26373 * config/sh/predicates.md (zero_extend_movu_operand): Allow
26374 simple_mem_operand in addition to displacement_mem_operand.
26375 (zero_extend_operand): Don't allow zero_extend_movu_operand.
26376 (treg_set_expr, treg_set_expr_not_const01,
26377 arith_reg_or_treg_set_expr): New predicates.
26378 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
26379 arith_or_int_operand instead of logical_operand. Convert to
26380 insn_and_split. Try to optimize constant operand in splitter.
26381 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
26382 (*tstqi_t_zero): Delete.
26383 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
26384 (tstsi_t_and_not): Delete.
26385 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
26386 Convert to insn_and_split.
26387 (unnamed split, tstsi_t_zero_extract_xor,
26388 tstsi_t_zero_extract_subreg_xor_little,
26389 tstsi_t_zero_extract_subreg_xor_big): Delete.
26390 (*tstsi_t_shift_mask): New insn_and_split.
26391 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
26392 to recombine with surrounding insns when splitting.
26393 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
26394 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
26395 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
26396 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
26397 (*cbranch_div0s: Delete.
26398 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
26399 Try to recombine with surrounding insns when splitting. Add operand
26400 order variants.
26401 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
26402 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
26403 *addc_r_r_msb, *addc_2r_msb): Delete.
26404 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
26405 order variant.
26406 (*addc_negreg_t): New insn_and_split.
26407 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
26408 Try to recombine with surrounding insns when splitting.
26409 Add operand order variants.
26410 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
26411 insn_and_split patterns.
26412 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
26413 surrounding insns when splitting.
26414 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
26415 (*rotcl): Likewise. Add zero_extract variant.
26416 (*ashrsi2_31): New insn_and_split.
26417 (*negc): Convert to insn_and_split. Use treg_set_expr.
26418 (*zero_extend<mode>si2_disp_mem): Update comment.
26419 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
26420 condition.
26421 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
26422 with surrounding insns when splitting.
26423 (any_treg_expr_to_reg): New insn_and_split.
26424 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
26425 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
26426 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
26427 *zero_extract_2): New single bit zero extract patterns.
26428 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
26429 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
26430 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
26431 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
26432 set destination.
26433 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
26434 register_operand for set source.
26435
26436 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
26437
26438 * i386.opt (prefetch_sse): New targetsave.
26439 * i386.c (ix86_function_specific_save): Save prefetch_sse.
26440 (ix86_function_specific_restore): Restore prefetch_sse and initialize
26441 ix86_cost/ix86_tune_cost.
26442
26443 2015-01-23 David Malcolm <dmalcolm@redhat.com>
26444
26445 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
26446 Support the JIT by using 0 as the language type.
26447
26448 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
26449
26450 PR target/64317
26451 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
26452 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
26453 (mark_regno_live, process_bb_lives): Pass new parameter value to
26454 make_hard_regno_born.
26455
26456 2015-01-23 Jakub Jelinek <jakub@redhat.com>
26457
26458 PR rtl-optimization/63637
26459 PR rtl-optimization/60663
26460 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
26461 if elt->cost is MAX_COST for ASM_OPERANDS.
26462 (find_sets_in_insn): Fix up comment typo.
26463 (cse_insn): Don't set src_volatile for all non-volatile
26464 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
26465 or with "memory" clobber. Set elt->cost to MAX_COST
26466 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
26467 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
26468
26469 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
26470
26471 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
26472 alternative 1.
26473
26474 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
26475
26476 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
26477 libgcc/config/i386/elf-lib.h.
26478
26479 2015-01-23 Jakub Jelinek <jakub@redhat.com>
26480
26481 PR driver/64737
26482 * gcc.c (print_configuration): Don't print a blank line at the end
26483 here...
26484 (run_attempt): ... but here unstead.
26485
26486 PR middle-end/64734
26487 * omp-low.c (scan_sharing_clauses): Don't ignore
26488 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
26489 on target data/update constructs.
26490
26491 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
26492
26493 PR target/50928
26494 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
26495 (DEBUG_RELOAD): Removed define.
26496 (m32c_limit_reload_class): Enable traces with if DEBUG0.
26497 (m32c_function_arg): Added a type cast.
26498 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
26499 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
26500 * config/m32c/bitops.md (andqi3_16): Likewise.
26501 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
26502 (push_a01_l): Likewise.
26503
26504 2015-01-23 David Malcolm <dmalcolm@redhat.com>
26505
26506 PR jit/64721
26507 * main.c (main): Construct toplev instances with init_signals=true.
26508 * toplev.c (general_init): Add param "init_signals", and use it to
26509 conditionalize the calls to signal and host_hooks.extra_signals.
26510 (toplev::toplev): Add param "init_signals".
26511 (toplev::main): When invoking general_init, pass m_init_signals
26512 to control whether signal-handlers are installed.
26513 * toplev.h (toplev::toplev): Add param "init_signals".
26514 (toplev::m_init_signals): New field.
26515
26516 2015-01-23 David Malcolm <dmalcolm@redhat.com>
26517
26518 PR jit/64722
26519 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
26520 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
26521 latter may be affected by the former (e.g. on i686).
26522
26523 2015-01-23 Martin Liska <mliska@suse.cz>
26524
26525 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
26526 false positive during profiledbootstrap.
26527
26528 2015-01-23 Tom de Vries <tom@codesourcery.com>
26529
26530 PR libgomp/64672
26531 * lto-opts.c (lto_write_options): Output non-explicit conservative
26532 -fno-openacc.
26533 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
26534 (append_compiler_options): Pass -fopenacc through.
26535
26536 2015-01-23 Tom de Vries <tom@codesourcery.com>
26537
26538 PR libgomp/64707
26539 * lto-opts.c (lto_write_options): Output non-explicit conservative
26540 -fno-openmp.
26541 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
26542 (append_compiler_options): Pass -fopenmp through.
26543
26544 2015-01-23 Jakub Jelinek <jakub@redhat.com>
26545
26546 PR debug/64511
26547 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
26548 GTY markup.
26549
26550 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
26551 * diagnostic.def (DK_ICE_NOBT): New kind.
26552 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
26553 like DK_ICE, but never print backtrace.
26554 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
26555 (internal_error_no_backtrace): New function.
26556 * gcc.c (execute): Use internal_error_no_backtrace instead of
26557 internal_error.
26558
26559 2015-01-22 Jeff Law <law@redhat.com>
26560
26561 PR target/52076
26562 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
26563 improve code density for small immediate to memory case.
26564 (insv): Better handle bitfield assignments when the field is
26565 being set to all ones.
26566 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
26567 operand predicate.
26568
26569 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26570 Jakub Jelinek <jakub@redhat.com>
26571
26572 PR middle-end/64729
26573 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
26574 for !TARGET_LIBC_PROVIDES_SSP version and
26575 -fstack-protector-{all,strong,explicit} otherwise.
26576 * config/freebsd.h (LINK_SSP_SPEC): Handle
26577 -fstack-protector-{strong,explicit}.
26578
26579 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
26580 H.J. Lu <hongjiu.lu@intel.com>
26581
26582 PR ipa/64694
26583 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
26584 heap.
26585
26586 2015-01-22 Wei Mi <wmi@google.com>
26587
26588 PR rtl-optimization/64557
26589 * dse.c (record_store): Call get_addr for mem_addr.
26590 (check_mem_read_rtx): Likewise.
26591
26592 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
26593
26594 * fold-const.c (const_binop): Add early return for non-tcc_binary.
26595
26596 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
26597
26598 * toplev.c (init_local_tick): Process the failure when read
26599 fails for random_seed.
26600
26601 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
26602 'pretty_name' to avoid memory overflow.
26603
26604 2015-01-22 Richard Biener <rguenther@suse.de>
26605
26606 PR middle-end/64728
26607 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
26608 abnormal coalescing on undefined SSA names.
26609
26610 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
26611
26612 PR target/64688
26613 PR target/64477
26614 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
26615 for alternative 3.
26616 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
26617
26618 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
26619
26620 PR middle-end/63325
26621 * fold-const.c (fold_checksum_tree): Don't include value of
26622 expr->decl_with_vis.symtab_node in the checksum.
26623
26624 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26625
26626 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
26627
26628 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
26629
26630 PR driver/64690
26631 * gcc.c (insert_comments): New function.
26632 (try_generate_repro): Call it.
26633 (append_text): Removed.
26634
26635 2015-01-22 Richard Biener <rguenther@suse.de>
26636
26637 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
26638 with IL incompatible options. Properly honor user optimize
26639 attributes.
26640
26641 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
26642
26643 PR rtl-optimization/64682
26644 * combine.c (distribute_notes): When moving a death note for
26645 a register that is set in the new I2, make sure to put it
26646 before that new I2.
26647
26648 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
26649
26650 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
26651 not TARGET_DEFAULT.
26652
26653 2015-01-21 Jakub Jelinek <jakub@redhat.com>
26654
26655 PR debug/64511
26656 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
26657 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
26658 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
26659
26660 PR sanitizer/64706
26661 * doc/invoke.texi (-fsanitize=vptr): Document.
26662
26663 PR rtl-optimization/62078
26664 * dse.c: Include cfgcleanup.h.
26665 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
26666 anything call purge_all_dead_edges and cleanup_cfg at the end
26667 of the pass.
26668
26669 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
26670
26671 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
26672 edges.
26673
26674 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
26675
26676 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
26677 decl attribute.
26678
26679 2015-01-21 David Sherwood <david.sherwood@arm.com>
26680 Tejas Belagod <Tejas.Belagod@arm.com>
26681
26682 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
26683 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
26684 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
26685 Removed.
26686
26687 2015-01-21 David Sherwood <david.sherwood@arm.com>
26688 Tejas Belagod <Tejas.Belagod@arm.com>
26689
26690 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
26691 (aarch64_reverse_mask): New decls.
26692 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
26693 (insn_count): New mode_attr.
26694 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
26695 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
26696 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
26697 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
26698 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
26699 (aarch64_simd_st4): New patterns.
26700 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
26701 (aarch64_reverse_mask): New functions.
26702
26703 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
26704
26705 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
26706 Declare.
26707 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
26708 addressing modes for BE.
26709 (aarch64_print_operand): Add 'R' specifier.
26710 (aarch64_simd_disambiguate_copy): Delete.
26711 (aarch64_simd_emit_reg_reg_move): New function.
26712 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
26713 in define_splits for structural moves.
26714 (mov<mode>): Use less restrictive predicates.
26715 (*aarch64_mov<mode>): Simplify and only allow for LE.
26716 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
26717
26718 2015-01-21 Alan Hayward <alan.hayward@arm.com>
26719
26720 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
26721
26722 2015-01-21 Richard Henderson <rth@redhat.com>
26723
26724 PR target/64669
26725 * ccmp.c (used_in_cond_stmt_p): Remove.
26726 (expand_ccmp_expr): Don't use it.
26727
26728 2015-01-21 Nick Clifton <nickc@redhat.com>
26729
26730 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
26731 PARALLELs.
26732
26733 2015-01-21 Richard Biener <rguenther@suse.de>
26734
26735 PR middle-end/64313
26736 * tree-core.h (builtin_info, builtin_info_type): Turn from
26737 an object with two arrays into an array of an object with
26738 decl and two flags, implicit_p and declared_p.
26739 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
26740 set_builtin_decl, set_builtin_decl_implicit_p,
26741 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
26742 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
26743 * builtins.c (builtin_info): Adjust.
26744 * gimplify.c (gimplify_addr_expr): References to builtins
26745 that have been declared by the user makes them eligible for
26746 use by the compiler. Call set_builtin_decl_implicit_p on them.
26747
26748 2015-01-20 Jeff Law <law@redhat.com>
26749
26750 PR target/59946
26751 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
26752 allow pc-relative addresses in operand predicates or constraints.
26753
26754 2015-01-21 Bin Cheng <bin.cheng@arm.com>
26755
26756 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
26757 neon on aarch32 processors for stringops.
26758
26759 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26760
26761 PR ipa/63576
26762 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
26763
26764 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26765
26766 PR lto/45375
26767 * ipa-inline.c: Include lto-streamer.h
26768 (report_inline_failed_reason): Output source file differences and
26769 flags on optimization/target node mismatch.
26770 (can_inline_edge_p): Consider caller to be the outer inline function;
26771 be less restrictive about matching opimize and optimize_size attributes.
26772 (inline_account_function_p): Break out from ...
26773 (inline_small_functions): ... here.
26774 * ipa-inline-transform.c (clone_inlined_nodes): Use
26775 inline_account_function_p.
26776 (inline_call): Use optimize attribution; use inline_account_function_p.
26777 (inline_transform): Use opt_for_fn.
26778 * ipa-inline.h (inline_account_function_p): Declare.
26779
26780 2015-01-20 Jakub Jelinek <jakub@redhat.com>
26781
26782 PR debug/64663
26783 * dwarf2out.c (decl_piece_node): Don't put bitsize into
26784 mode if bitsize <= 0.
26785 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
26786 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
26787 sizes and positions.
26788
26789 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
26790
26791 * config/nios2/nios2.c (nios2_asm_file_end): Implement
26792 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
26793 needed.
26794 (TARGET_ASM_FILE_END): Define.
26795
26796 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26797
26798 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
26799 (struct tune_params): Use the enum.
26800 * arm.c (arm_*_tune): Update.
26801 (arm_option_override): Update.
26802
26803 2015-01-20 Richard Biener <rguenther@suse.de>
26804
26805 PR ipa/64684
26806 * ipa-reference.c (add_static_var): Inline ...
26807 (analyze_function): ... here after splitting out from ...
26808 (is_proper_for_analysis): ... this.
26809
26810 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
26811
26812 PR target/64149
26813 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
26814 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
26815 replace the conditional with it's true branch.
26816 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
26817 (arm_lra_p): Remove.
26818
26819 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
26820
26821 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
26822
26823 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26824
26825 * config/tilegx/mul-tables.c: Move symtab.h include after
26826 coretypes.h include.
26827 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
26828 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
26829 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
26830 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
26831 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
26832
26833 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
26834
26835 PR bootstrap/64676
26836 Revert:
26837 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
26838
26839 PR rtl-optimization/64081
26840 * loop-iv.c (def_pred_latch_p): New function.
26841 (latch_dominating_def): Allow specific cases with non-single
26842 definitions.
26843 (iv_get_reaching_def): Likewise.
26844 (check_complex_exit_p): New function.
26845 (check_simple_exit): Use check_complex_exit_p to allow certain cases
26846 with exits not executing on any iteration.
26847
26848 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26849
26850 PR lto/45375
26851 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
26852 to set branch cost.
26853
26854 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26855
26856 PR lto/45375
26857 * i386.c (gate): Check flag_expensive_optimizations and
26858 optimize_size.
26859 (ix86_option_override_internal): Drop optimize_size condition
26860 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
26861 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
26862 MASK_PREFER_AVX128.
26863 (ix86_avx256_split_vector_move_misalign,
26864 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
26865 * sse.md (all uses of TARGET_PREFER_AVX128): Add
26866 optimize_insn_for_speed_p check.
26867
26868 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
26869
26870 * config/mips/mips.h (FP_ASM_SPEC): New define.
26871 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
26872 instead.
26873
26874 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
26875
26876 PR target/53988
26877 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
26878 nullptr for insn when reaching the first insn.
26879 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
26880 (sh_insn_operands_modified_between_p): Add nullptr check.
26881 (sh_find_extending_set_of_reg): Fix log message. Don't accept
26882 sign extending mem load if the insn contains any UNSPEC or
26883 UNSPEC_VOLATILE.
26884
26885 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26886
26887 * params.def (inline-unit-growth): Drop to 15%.
26888 * invoke.texi (inline-unit-growth): Document change.
26889
26890 2015-01-19 Martin Liska <mliska@suse.cz>
26891
26892 PR ipa/64668
26893 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
26894 function for second argument of OBJ_TYPE_REF.
26895
26896 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26897
26898 PR ipa/64218
26899 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
26900 whether function is an alias.
26901
26902 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
26903
26904 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
26905 cases.
26906
26907 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
26908
26909 PR rtl-optimization/64671
26910 * lra-remat.c (operand_to_remat): Don't consider jump and call
26911 insns.
26912
26913 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
26914
26915 PR target/59828
26916 * config/rs6000/default64.h: Include rs6000-cpus.def.
26917 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
26918 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
26919 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
26920 and POWER8.
26921 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
26922 POWER8.
26923 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
26924 pseudo-op to specify assembler dialect.
26925
26926 2015-01-19 Martin Liska <mliska@suse.cz>
26927
26928 PR ipa/64664
26929 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
26930 Handle safe potentially removed nodes during filtering.
26931
26932 2015-01-19 Martin Liska <mliska@suse.cz>
26933
26934 * doc/extend.texi (no_icf): Add new attribute description.
26935 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
26936 where the pass attempts to merge a function with no_icf attribute.
26937
26938 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26939
26940 PR target/64532
26941 * doc/md.texi (ARM Options): Document register constraints.
26942
26943 2015-01-19 Jiong Wang <jiong.wang@arm.com>
26944 Andrew Pinski <apinski@cavium.com>
26945
26946 PR target/64304
26947 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
26948 (ashl<mode>3): Don't expand if operands[2] is not constant.
26949
26950 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26951
26952 PR target/64448
26953 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
26954 Match xor-and-xor RTL pattern.
26955
26956 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
26957
26958 PR rtl-optimization/64081
26959 * loop-iv.c (def_pred_latch_p): New function.
26960 (latch_dominating_def): Allow specific cases with non-single
26961 definitions.
26962 (iv_get_reaching_def): Likewise.
26963 (check_complex_exit_p): New function.
26964 (check_simple_exit): Use check_complex_exit_p to allow certain cases
26965 with exits not executing on any iteration.
26966
26967 2015-01-19 Jakub Jelinek <jakub@redhat.com>
26968
26969 * common.opt (fgraphite): Fix a typo.
26970
26971 2015-01-19 Felix Yang <felix.yang@huawei.com>
26972
26973 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
26974 pattern.
26975 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
26976 uminp, smax_nanp, smin_nanp): New builtins.
26977 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
26978 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
26979 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
26980 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
26981 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
26982 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
26983 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
26984 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
26985 vpminnms_f32): Rewrite using builtin functions.
26986
26987 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
26988
26989 PR libgomp/64625
26990 * omp-low.c (offload_symbol_decl): Remove variable.
26991 (get_offload_symbol_decl): Remove function.
26992 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
26993 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
26994 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
26995 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
26996 BUILT_IN_GOACC_UPDATE don't pass it at all.
26997
26998 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
26999
27000 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
27001 callers.
27002
27003 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
27004
27005 * ipa-chkp.c (chkp_produce_thunks): Add early param
27006 to split thunks production into two passes. Keep
27007 'always_inline' function bodies after the first pass.
27008 (pass_data_ipa_chkp_early_produce_thunks): New.
27009 (pass_ipa_chkp_early_produce_thunks): New.
27010 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
27011 chkp_produce_thunks signature.
27012 (make_pass_ipa_chkp_early_produce_thunks): New.
27013 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
27014 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
27015 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
27016
27017 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27018
27019 * cgraph.c (cgraph_node::dump): Dump profile flags.
27020
27021 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
27022
27023 PR target/64652
27024 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
27025 reg appear first in the parallel.
27026
27027 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27028
27029 * ipa-reference.c (set_reference_optimization_summary,
27030 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
27031 disabled.
27032 (ignore_module_statics): New static var.
27033 (propagate_bits): If ipa-reference is disabled, do not look into local
27034 properties.
27035 (analyze_function): Disable analysis when ipa_reference is disabled.
27036 (generate_summary): Do not dump when reference is disabled;
27037 collect vars accessed from functions with ipa-reference disabled.
27038 (get_read_write_all_from_node): When ipa-reference is disabled, use the
27039 node flags.
27040 (gate): Enable for LTO.
27041 (ignore_edge_p): New function.
27042 (propagate): Skip functions w/o ipa-reference analysis.
27043 * optc-save-gen.awk: Handle optimize_debug correctly.
27044 * opth-gen.awk: Likewise.
27045 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
27046 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
27047 fira-share-save-slots, fira-share-spill-slots,
27048 fmodulo-sched-allow-regmoves, fpartial-inlining,
27049 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
27050 ftracer, ftree-parallelize-loops, fassociative-math,
27051 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
27052 Optimization
27053 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
27054 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
27055 Optimization.
27056 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
27057 Fix for IPA.
27058
27059 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
27060
27061 PR ipa/64378
27062 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
27063 flag correctly.
27064 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
27065
27066 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
27067
27068 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
27069 Remove duplicate option listings.
27070
27071 2015-01-18 Felix Yang <felix.yang@huawei.com>
27072
27073 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
27074 (autofdo_source_profile::get_callsite_total_count,
27075 function_instance::get_function_instance_by_decl,
27076 string_table::get_index, string_table::get_index_by_decl,
27077 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
27078 Fix comment typos. Reformatting and minor code rearrangement.
27079
27080 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27081
27082 * config/rs6000/rs6000.md (probe_stack): Delete.
27083 (probe_stack_address): New.
27084
27085 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27086
27087 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
27088 to test for 32-bit ABIs, not !TARGET_POWERPC64.
27089
27090 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
27091
27092 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
27093 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
27094 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
27095 snafu.
27096 (rs6000_libcall_value): Use the new function.
27097
27098 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
27099
27100 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
27101
27102 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
27103
27104 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
27105 implement a more precise life analysis for it during backward scan.
27106
27107 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
27108
27109 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
27110
27111 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
27112
27113 PR rtl-optimization/52773
27114 * calls.c (emit_library_call_value): When pushing arguments use
27115 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
27116 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
27117 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
27118
27119 2015-01-17 Jeff Law <law@redhat.com>
27120
27121 PR rtl-optimization/32790
27122 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
27123 not ZERO_EXTEND in SET_DESTs.
27124
27125 2015-01-17 Alan Modra <amodra@gmail.com>
27126
27127 * cprop.c (do_local_cprop): Revert last change.
27128
27129 2015-01-16 DJ Delorie <dj@redhat.com>
27130 Nick Clifton <nickc@redhat.com>
27131
27132 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
27133 (addhi3_real): Likewise. Fix [HL+0] syntax.
27134 (subqi3_real): Likewise.
27135 (subhi3_real): Likewise.
27136 (cbranchqi4_real): Likewise. Allow saddr,#imm.
27137 (cbranchhi4_real): Likewise.
27138 (cbranchhi4_real_inverted): Likewise.
27139 (cbranchsi4_real_lt): Likewise.
27140 (cbranchsi4_real_ge): Likewise.
27141 (cbranchsi4_real_ge): Likewise.
27142 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
27143 (sub<mode>3_virt): Likewise.
27144 (cbranchqi4_virt): Likewise.
27145 (cbranchhi4_virt): Likewise.
27146 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
27147 always use '[reg+imm]' even when imm is zero.
27148 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
27149 (rl78_general_operand): New.
27150 (rl78_nonimmediate_operand): New.
27151 (rl78_nonfar_operand): Use them.
27152 (rl78_nonfar_nonimm_operand): Likewise.
27153 (rl78_stack_based_mem): Fix.
27154 * config/rl78/constraints.md (Ibqi): New.
27155 (IBqi): New.
27156 (Wsa): New.
27157 (Wsf): New.
27158 (Cs1): Fix.
27159 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
27160 (iorqi3): Likewise.
27161 (xorqi3): Likewise.
27162 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
27163
27164 * config/rl78/constrains (Qs8): New constraint.
27165 * config/rl78/rl78.c (rl78_flags_already_set): New function.
27166 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
27167 * config/rl78/rl78-real.md (update_Z): New attribute.
27168 Update patterns to set it.
27169 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
27170 shorter compare and branch sequence can be used.
27171 (cbranchhi4_real): Likewise.
27172 (cbranchhi4_real_inverted): Likewise.
27173
27174 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
27175 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
27176 address space.
27177 * config/rl78/rl78.c (rl78_get_name_encoding): New.
27178 (rl78_option_override): Allow -mes0 only if C.
27179 (characterize_address): Support subregs of symbol_refs.
27180 (rl78_addr_space_address_mode): Move. Add __near.
27181 (rl78_far_p): Likewise.
27182 (rl78_addr_space_pointer_mode): Likewise.
27183 (rl78_as_legitimate_address): Likewise.
27184 (rl78_addr_space_subset_p): Likewise.
27185 (rl78_addr_space_convert): Likewise.
27186 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
27187 symbols with -mes0.
27188 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
27189 addressing.
27190 (rl78_alloc_physical_registers_op1): Change logic to prefer
27191 symbol[BC] addressing.
27192 (frodata_section): New.
27193 (rl78_asm_init_sections): Initialize it.
27194 (rl78_select_section): Put __far readonly symbols in .frodata.
27195 (rl78_make_type_far): New.
27196 (rl78_insert_attributes): Force all readonly symbols to be
27197 __far when -mes0.
27198 (rl78_asm_out_integer): New.
27199 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
27200 * config/rl78/rl78.opt (-mes0): New.
27201
27202 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
27203 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
27204 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
27205 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
27206 (rl78_saddr_p): New.
27207 (rl78_output_aligned_common): New.
27208 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
27209 (rl78_handle_saddr_attribute): New.
27210 (rl78_handle_naked_attribute): New.
27211 (rl78_attribute_table): Add saddr.
27212 (rl78_print_operand_1): Don't print '!' on saddr operands.
27213 (rl78_print_operand_1): Strip encodings.
27214 (rl78_sfr_p): New.
27215 (rl78_strip_name_encoding): New.
27216 (rl78_attrlist_to_encoding): New.
27217 (rl78_encode_section_info): New.
27218 (rl78_asm_init_sections): New.
27219 (rl78_select_section): New.
27220 (rl78_output_labelref): New.
27221 (rl78_output_aligned_common): New.
27222 (rl78_asm_out_integer): New.
27223 (rl78_asm_ctor_dtor): New.
27224 (rl78_asm_constructor): New.
27225 (rl78_asm_destructor): New.
27226
27227 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
27228 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
27229 (transcode_memory_rtx): Update.
27230 (rl78_expand_epilogue): Use A_REG instead of 0.
27231
27232 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27233
27234 * config/arm/arm-protos.h (struct tune_params): New field
27235 sched_autopref_queue_depth.
27236 * config/arm/arm.c (sched-int.h): Include header.
27237 (arm_first_cycle_multipass_dfa_lookahead_guard,)
27238 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
27239 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
27240 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
27241 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
27242 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
27243 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
27244 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
27245 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
27246 * config/arm/t-arm (arm.o): Update.
27247 * haifa-sched.c (update_insn_after_change): Update.
27248 (rank_for_schedule): Use auto-prefetcher model, if requested.
27249 (autopref_multipass_init): New static function.
27250 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
27251 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
27252 variable for debug dumps.
27253 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
27254 (autopref_multipass_dfa_lookahead_guard): New global function that
27255 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
27256 (init_h_i_d): Update.
27257 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
27258 * sched-int.h (enum autopref_multipass_data_status): New const enum.
27259 (autopref_multipass_data_): Structure for auto-prefetcher data.
27260 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
27261 (struct _haifa_insn_data:autopref_multipass_data): New field.
27262 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
27263 (autopref_multipass_dfa_lookahead_guard): Declare.
27264
27265 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27266
27267 * rtlanal.c (get_base_term): Handle SCRATCH.
27268
27269 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27270
27271 * config/aarch64/aarch64.c
27272 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
27273 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
27274 * config/arm/arm.c
27275 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
27276 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
27277
27278 2015-01-17 Alan Modra <amodra@gmail.com>
27279
27280 * cprop.c (do_local_cprop): Disallow replacement of fixed
27281 hard registers.
27282
27283 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27284
27285 PR target/62066
27286 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
27287 early return 0.
27288
27289 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
27290
27291 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
27292 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
27293
27294 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27295
27296 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
27297 * config/arm/thumb1.md: ... Here.
27298
27299 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27300
27301 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
27302 TImode for TARGET_32BIT.
27303
27304 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27305
27306 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
27307 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
27308 as ...
27309 (rs6000_abi_word_mode): New function.
27310
27311 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27312
27313 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
27314 instead of UNITS_PER_WORD to describe the size of stack slots.
27315
27316 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27317
27318 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
27319 as rs6000_promote_function_mode. Move comment to there.
27320 (rs6000_promote_function_mode): New function.
27321
27322 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
27323
27324 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
27325 -mpowerpc64 is active.
27326
27327 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
27328
27329 PR middle-end/64353
27330 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
27331 virtuals on start.
27332
27333 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
27334
27335 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
27336 introduced in revision 219724.
27337
27338 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27339 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27340
27341 PR target/64263
27342 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
27343 destination is not a GP reg.
27344 (*movdi_aarch64): Likewise.
27345
27346 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
27347
27348 PR target/64623
27349 * config/rs6000/default64.h: Revert ISA change.
27350
27351 2015-01-16 Richard Biener <rguenther@suse.de>
27352
27353 PR middle-end/64614
27354 * tree-ssa-uninit.c: Include tree-cfg.h.
27355 (MAX_SWITCH_CASES): New define.
27356 (convert_control_dep_chain_into_preds): Handle switch statements.
27357 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
27358 (normalize_one_pred_1): Do not split bit-manipulations.
27359 Record (x & CST).
27360
27361 2015-01-16 Richard Biener <rguenther@suse.de>
27362
27363 PR tree-optimization/64568
27364 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
27365 complex load rewriting for TARGET_MEM_REFs.
27366
27367 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
27368
27369 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
27370
27371 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
27372
27373 PR target/64149
27374 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
27375 variable.
27376 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
27377 (aarch64_lra_p): Remove.
27378
27379 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
27380
27381 PR target/64363
27382 * ipa-chkp.h (chkp_instrumentable_p): New.
27383 * ipa-chkp.c: Include tree-inline.h.
27384 (chkp_instrumentable_p): New.
27385 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
27386 Fix processing of not instrumentable functions.
27387 (chkp_versioning): Use chkp_instrumentable_p. Warn about
27388 not instrumentable functions.
27389 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
27390 chkp_instrumentable_p.
27391 * tree-inline.h (copy_forbidden): New.
27392 * tree-inline.c (copy_forbidden): Not static anymore.
27393
27394 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27395
27396 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
27397 ptr1, ptr2 unused.
27398
27399 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
27400
27401 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
27402 type OP_OUT to OP_INOUT.
27403
27404 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
27405
27406 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
27407 (high x) y) to y if x and y have the same base.
27408
27409 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
27410
27411 * config/arm/cortex-a57.md: New.
27412 * config/aarch64/aarch64.md: Include it.
27413 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
27414 * config/aarch64/aarch64-tune.md: Regenerate.
27415
27416 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
27417
27418 PR target/64015
27419 * ccmp.c (expand_ccmp_next): New function.
27420 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
27421 and compare insn sequence.
27422 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
27423 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
27424 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
27425 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
27426 (*ccmp_ior): Changed to ccmp_ior<mode>.
27427 (cmp<mode>): New pattern.
27428 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
27429 parameters.
27430 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
27431
27432 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
27433
27434 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
27435 _mm256_bsrli_epi128): New.
27436 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
27437
27438 2015-01-15 Jiong Wang <jiong.wang@arm.com>
27439
27440 * expmed.c (store_bit_field_using_insv): Improve warning message.
27441 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
27442
27443 2015-01-15 Jiong Wang <jiong.wang@arm.com>
27444
27445 PR rtl-optimization/64011
27446 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
27447 there is partial overflow.
27448
27449 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
27450
27451 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
27452 prototype.
27453 (nds32_expand_epilogue_v3pop): Likewise.
27454 * config/nds32/nds32.md (sibcall): Define this for sibling call
27455 optimization.
27456 (sibcall_register): Likewise.
27457 (sibcall_immediate): Likewise.
27458 (sibcall_value): Likewise.
27459 (sibcall_value_register): Likewise.
27460 (sibcall_value_immediate): Likewise.
27461 (sibcall_epilogue): Likewise.
27462 (epilogue): Pass false to indicate this is not a sibcall epilogue.
27463 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
27464 (nds32_expand_epilogue_v3pop): Likewise.
27465
27466 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
27467
27468 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
27469 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
27470 (return_internal): New.
27471 (return): Define this named pattern.
27472 (simple_return): Define this named pattern.
27473 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
27474 pattern instead of unspec_volatile_func_return.
27475 (nds32_expand_epilogue_v3pop): Likewise.
27476 (nds32_can_use_return_insn): New function.
27477
27478 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
27479
27480 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
27481 * config/nds32/nds32.md (pop25return): New.
27482 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
27483 pop25return pattern.
27484
27485 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
27486
27487 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
27488 -mforbid-fp-as-gp, and -mex9 options.
27489
27490 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
27491
27492 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
27493 remove -mgp-direct option.
27494
27495 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
27496
27497 * doc/invoke.texi (--param early-inlining-insns): Update default value.
27498 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
27499
27500 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
27501
27502 * ipa-inline.c (inline_small_functions): Work around hints
27503 cache issue.
27504
27505 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
27506
27507 PR target/59710
27508 * doc/invoke.texi (Option Summary): Document new Nios II
27509 -mgpopt= syntax.
27510 (Nios II Options): Likewise.
27511 * config/nios2/nios2.opt: Add -mgpopt= option support.
27512 Modify existing -mgpopt and -mno-gpopt options to be aliases.
27513 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
27514 * config/nios2/nios2.c (nios2_option_override): Adjust
27515 -mgpopt defaulting.
27516 (nios2_in_small_data_p): Return true for explicit small data
27517 sections even with -G0.
27518 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
27519 option choices.
27520
27521 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
27522
27523 PR ipa/64612
27524 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
27525 of comdat locals.
27526 (inline_call): Fix removal of aliases.
27527
27528 2015-01-15 Jakub Jelinek <jakub@redhat.com>
27529
27530 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
27531 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
27532 * opts.c (common_handle_option): Add -fsanitize=vptr.
27533 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
27534 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
27535 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
27536 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
27537 (ubsan_expand_vptr_ifn): New prototype.
27538 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
27539 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
27540 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
27541 expand_LOOP_VECTORIZED): Make argument nameless, remove
27542 ATTRIBUTE_UNUSED.
27543 (expand_UBSAN_VPTR): New function.
27544 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
27545 in fn spec.
27546 (UBSAN_VPTR): New internal function.
27547 * sanopt.c (tree_map_traits): Renamed to ...
27548 (sanopt_tree_map_traits): ... this.
27549 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
27550 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
27551 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
27552 (maybe_optimize_ubsan_vptr_ifn): New function.
27553 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
27554 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
27555 -fsanitize=vptr.
27556 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
27557 internal calls like pure functions for aliasing, even when they
27558 have other side-effects that prevent making them ECF_PURE.
27559 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
27560 (ubsan_expand_vptr_ifn): New function.
27561
27562 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
27563
27564 PR rtl-optimization/64110
27565 * stmt.c (parse_output_constraint): Process '^' and '$'.
27566 (parse_input_constraint): Ditto.
27567 * lra-constraints.c (process_alt_operands): Process the new
27568 constraints.
27569 * ira-costs.c (record_reg_classes): Process the new constraint
27570 '^'.
27571 * genoutput.c (indep_constraints): Add '^' and '$'.
27572 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
27573 * doc/md.texi: Add description of the new constraints.
27574
27575 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
27576 Bernd Schmidt <bernds@codesourcery.com>
27577 Cesar Philippidis <cesar@codesourcery.com>
27578 James Norris <jnorris@codesourcery.com>
27579 Tom de Vries <tom@codesourcery.com>
27580 Ilmir Usmanov <i.usmanov@samsung.com>
27581 Dmitry Bocharnikov <dmitry.b@samsung.com>
27582 Evgeny Gavrin <e.gavrin@samsung.com>
27583 Jakub Jelinek <jakub@redhat.com>
27584
27585 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
27586 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
27587 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
27588 New function types.
27589 * builtins.c: Include "gomp-constants.h".
27590 (expand_builtin_acc_on_device): New function.
27591 (expand_builtin, is_inexpensive_builtin): Handle
27592 BUILT_IN_ACC_ON_DEVICE.
27593 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
27594 New macros.
27595 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
27596 flag_openmp.
27597 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
27598 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
27599 i386/intelmic-offload.h.
27600 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
27601 to libgomp and its dependencies.
27602 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
27603 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
27604 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
27605 * config/ia64/hpux.h (LIB_SPEC): Likewise.
27606 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
27607 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
27608 * doc/generic.texi: Update for OpenACC changes.
27609 * doc/gimple.texi: Likewise.
27610 * doc/invoke.texi: Likewise.
27611 * doc/sourcebuild.texi: Likewise.
27612 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
27613 GF_OMP_FOR_KIND_OACC_LOOP.
27614 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
27615 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
27616 GF_OMP_TARGET_KIND_OACC_UPDATE,
27617 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
27618 Dump more data.
27619 * gimple.c: Update comments for OpenACC changes.
27620 * gimple.def: Likewise.
27621 * gimple.h: Likewise.
27622 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
27623 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
27624 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
27625 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
27626 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
27627 appropriate place.
27628 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
27629 * gimplify.c: Include "gomp-constants.h".
27630 Update comments for OpenACC changes.
27631 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
27632 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
27633 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
27634 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
27635 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
27636 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
27637 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
27638 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
27639 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
27640 OMP_CLAUSE_SEQ.
27641 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
27642 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
27643 OMP_CLAUSE_SET_MAP_KIND.
27644 (gimplify_oacc_cache): New function.
27645 (gimplify_omp_for): Handle OACC_LOOP.
27646 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
27647 OACC_DATA.
27648 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
27649 OACC_EXIT_DATA, OACC_UPDATE.
27650 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
27651 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
27652 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
27653 (gimplify_body): Consider flag_openacc next to flag_openmp.
27654 * lto-streamer-out.c: Include "gomp-constants.h".
27655 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
27656 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
27657 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
27658 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
27659 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
27660 (BUILT_IN_ACC_ON_DEVICE): New builtins.
27661 * omp-low.c: Include "gomp-constants.h".
27662 Update comments for OpenACC changes.
27663 (struct omp_context): Add reduction_map, gwv_below, gwv_this
27664 members.
27665 (extract_omp_for_data, use_pointer_for_field, install_var_field)
27666 (new_omp_context, delete_omp_context, scan_sharing_clauses)
27667 (create_omp_child_function, scan_omp_for, scan_omp_target)
27668 (check_omp_nesting_restrictions, lower_reduction_clauses)
27669 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
27670 Update for OpenACC changes.
27671 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
27672 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
27673 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
27674 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
27675 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
27676 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
27677 OMP_CLAUSE_MAP_*.
27678 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
27679 Handle GF_OMP_FOR_KIND_OACC_LOOP.
27680 (expand_omp_target, lower_omp_target): Handle
27681 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
27682 GF_OMP_TARGET_KIND_OACC_UPDATE,
27683 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
27684 GF_OMP_TARGET_KIND_OACC_DATA.
27685 (pass_expand_omp::execute, execute_lower_omp)
27686 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
27687 flag_openmp.
27688 (offload_symbol_decl): New variable.
27689 (oacc_get_reduction_array_id, oacc_max_threads)
27690 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
27691 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
27692 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
27693 (oacc_gimple_assign, oacc_initialize_reduction_data)
27694 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
27695 functions.
27696 (is_targetreg_ctx): Remove function.
27697 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
27698 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
27699 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
27700 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
27701 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
27702 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
27703 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
27704 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
27705 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
27706 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
27707 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
27708 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
27709 * tree-core.h: Update comments for OpenACC changes.
27710 (enum omp_clause_map_kind): Remove.
27711 (struct tree_omp_clause): Change type of map_kind member from enum
27712 omp_clause_map_kind to unsigned char.
27713 * tree-inline.c: Update comments for OpenACC changes.
27714 * tree-nested.c: Likewise. Include "gomp-constants.h".
27715 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
27716 (convert_tramp_reference_stmt, convert_gimple_call): Update for
27717 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
27718 OMP_CLAUSE_SET_MAP_KIND.
27719 * tree-pretty-print.c: Include "gomp-constants.h".
27720 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
27721 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
27722 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
27723 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
27724 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
27725 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
27726 instead of OMP_CLAUSE_MAP_*.
27727 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
27728 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
27729 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
27730 * tree-streamer-in.c: Include "gomp-constants.h".
27731 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
27732 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
27733 * tree-streamer-out.c: Include "gomp-constants.h".
27734 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
27735 OMP_CLAUSE_MAP_*.
27736 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
27737 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
27738 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
27739 * tree.c (omp_clause_num_ops): Update accordingly.
27740 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
27741 Likewise.
27742 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
27743 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
27744 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
27745 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
27746 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
27747 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
27748 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
27749 (OMP_CLAUSE_SET_MAP_KIND): New macro.
27750 * varpool.c (varpool_node::get_create): Consider flag_openacc next
27751 to flag_openmp.
27752 * config/i386/intelmic-offload.h: New file.
27753 * config/nvptx/offload.h: Likewise.
27754
27755 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27756
27757 * explow.h: Remove duplicate contents.
27758 * dojump.h: Likewise.
27759
27760 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
27761
27762 * arm.c (arm_xgene_tune): Add default initializer for instruction
27763 fusion.
27764
27765 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
27766
27767 PR ipa/64068
27768 PR ipa/64559
27769 * ipa.c (symbol_table::remove_unreachable_nodes):
27770 Do not put abstract origins into boundary.
27771
27772 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
27773
27774 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
27775 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
27776
27777 2015-01-15 Steve Ellcey <sellcey@mips.com>
27778
27779 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
27780 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
27781 builtins.def, and chkp-builtins.def.
27782
27783 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
27784
27785 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
27786 ISA 2.7 (POWER8).
27787
27788 2015-01-15 Richard Biener <rguenther@suse.de>
27789
27790 PR tree-optimization/61743
27791 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
27792 information on PHIs for some simple cases.
27793
27794 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
27795
27796 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
27797 Include xgene1.md.
27798 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
27799 * config/arm/arm-cores.def (xgene1): New entry.
27800 * config/arm/arm-tables.opt: Regenerate.
27801 * config/arm/arm-tune.md: Regenerate.
27802 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
27803
27804 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
27805
27806 * tree-if-conv.c: Include hash-map.h.
27807 (aggressive_if_conv): New variable.
27808 (fold_build_cond_expr): Add simplification of non-zero condition.
27809 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
27810 destination block is not always executed.
27811 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
27812 than two predecessors if AGGRESSIVE_IF_CONV is true.
27813 (if_convertible_stmt_p): Fix commentary.
27814 (all_preds_critical_p): New function.
27815 (has_pred_critical_p): New function.
27816 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
27817 BB can have more than two predecessors and all incoming edges can be
27818 critical.
27819 (predicate_bbs): Skip predication for loop exit block, use build2_loc
27820 to compute predicate for true edge.
27821 (find_phi_replacement_condition): Delete this function.
27822 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
27823 Allow interchange PHI arguments if EXTENDED is false.
27824 Change check that block containing reduction statement candidate
27825 is predecessor of phi-block since phi may have more than two arguments.
27826 (phi_args_hash_traits): New helper structure.
27827 (struct phi_args_hash_traits): New type.
27828 (phi_args_hash_traits::hash): New function.
27829 (phi_args_hash_traits::equal_keys): New function.
27830 (gen_phi_arg_condition): New function.
27831 (predicate_scalar_phi): Add handling of phi nodes with more than two
27832 arguments, delete COND and TRUE_BB arguments, insert body of
27833 find_phi_replacement_condition to predicate ordinary phi nodes.
27834 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
27835 delete call of find_phi_replacement_condition and invoke
27836 predicate_scalar_phi with two arguments.
27837 (insert_gimplified_predicates): Add assert that non-predicated block
27838 don't have statements to insert.
27839 (ifcvt_split_critical_edges): New function.
27840 (ifcvt_split_def_stmt): Likewise.
27841 (ifcvt_walk_pattern_tree): Likewise.
27842 (stmt_is_root_of_bool_pattern): Likewise.
27843 (ifcvt_repair_bool_pattern): Likewise.
27844 (ifcvt_local_dce): Likewise.
27845 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
27846 is copy of inner or outer loop force_vectorize field, invoke
27847 ifcvt_split_critical_edges, ifcvt_local_dce and
27848 ifcvt_repair_bool_pattern for aggressive if-conversion.
27849
27850 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
27851
27852 * config/aarch64/aarch64.md: Include xgene1.md.
27853 * config/aarch64/xgene1.md: New file.
27854
27855 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
27856
27857 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
27858 xgene1 (APM XGene-1) core definition.
27859 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
27860 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
27861 * doc/invoke.texi: Document -mcpu=xgene1.
27862
27863 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27864
27865 * dojump.h: New header file.
27866 * explow.h: Likewise.
27867 * expr.h: Remove includes.
27868 Move expmed.c prototypes to expmed.h.
27869 Move dojump.c prototypes to dojump.h.
27870 Move alias.c prototypes to alias.h.
27871 Move explow.c prototypes to explow.h.
27872 Move calls.c prototypes to calls.h.
27873 Move emit-rtl.c prototypes to emit-rtl.h.
27874 Move varasm.c prototypes to varasm.h.
27875 Move stmt.c prototypes to stmt.h.
27876 (saved_pending_stack_adjust): Move to dojump.h.
27877 (adjust_address): Move to explow.h.
27878 (adjust_address_nv): Move to emit-rtl.h.
27879 (adjust_bitfield_address): Likewise.
27880 (adjust_bitfield_address_size): Likewise.
27881 (adjust_bitfield_address_nv): Likewise.
27882 (adjust_automodify_address_nv): Likewise.
27883 * explow.c (expr_size): Move to expr.c.
27884 (int_expr_size): Likewise.
27885 (tree_expr_size): Likewise.
27886 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27887 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
27888 * genemit.c (main): Generate includes statistics.h, real.h,
27889 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
27890 stmt.h.
27891 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
27892 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
27893 explow.h, emit-rtl.h, stmt.h.
27894 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
27895 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
27896 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
27897 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
27898 emit-rtl.h, varasm.h, stmt.h.
27899 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
27900 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
27901 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
27902 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
27903 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
27904 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
27905 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
27906 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
27907 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
27908 tm.h tree.h varasm.h vec.h wide-int.h.
27909 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27910 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
27911 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
27912 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
27913 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
27914 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
27915 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
27916 * loop-iv.c: Likewise.
27917 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
27918 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
27919 statistics.h stmt.h tree.h varasm.h wide-int.h.
27920 * lra-constraints.c: Likewise.
27921 * lra-eliminations.c: Likewise.
27922 * lra-lives.c: Likewise.
27923 * lra-remat.c: Likewise.
27924 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27925 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
27926 statistics.h stmt.h tree.h varasm.h wide-int.h.
27927 * hw-doloop.c: Likewise.
27928 * ira-color.c: Likewise.
27929 * ira-emit.c: Likewise.
27930 * loop-doloop.c: Likewise.
27931 * loop-invariant.c: Likewise.
27932 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27933 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
27934 statistics.h stmt.h tree.h varasm.h wide-int.h.
27935 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
27936 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
27937 statistics.h stmt.h tree.h varasm.h wide-int.h.
27938 * combine-stack-adj.c: Likewise.
27939 * cse.c: Likewise.
27940 * ddg.c: Likewise.
27941 * ifcvt.c: Likewise.
27942 * ira-costs.c: Likewise.
27943 * jump.c: Likewise.
27944 * lra-coalesce.c: Likewise.
27945 * lra-spills.c: Likewise.
27946 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27947 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
27948 stmt.h varasm.h wide-int.h.
27949 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27950 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
27951 varasm.h.
27952 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
27953 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
27954 statistics.h stmt.h varasm.h wide-int.h.
27955 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
27956 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
27957 varasm.h wide-int.h.
27958 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
27959 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
27960 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
27961 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
27962 statistics.h stmt.h.
27963 * config/tilepro/tilepro.c: Likewise.
27964 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
27965 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
27966 * config/pdp11/pdp11.c: Likewise.
27967 * config/xtensa/xtensa.c: Likewise.
27968 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
27969 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
27970 varasm.h.
27971 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27972 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
27973 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
27974 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27975 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
27976 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
27977 * rtl-chkp.c: Likewise.
27978 * tree-chkp-opt.c: Likewise.
27979 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
27980 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
27981 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
27982 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27983 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
27984 statistics.h stmt.h.
27985 * tree-vect-data-refs.c: Likewise.
27986 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
27987 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27988 rtl.h statistics.h stmt.h varasm.h.
27989 * internal-fn.c: Likewise.
27990 * ipa-icf-gimple.c: Likewise.
27991 * lto-section-out.c: Likewise.
27992 * tree-data-ref.c: Likewise.
27993 * tree-nested.c: Likewise.
27994 * tree-outof-ssa.c: Likewise.
27995 * tree-predcom.c: Likewise.
27996 * tree-pretty-print.c: Likewise.
27997 * tree-scalar-evolution.c: Likewise.
27998 * tree-ssa-strlen.c: Likewise.
27999 * tree-vect-loop.c: Likewise.
28000 * tree-vect-patterns.c: Likewise.
28001 * tree-vect-slp.c: Likewise.
28002 * tree-vect-stmts.c: Likewise.
28003 * tsan.c: Likewise.
28004 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28005 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
28006 stmt.h.
28007 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
28008 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28009 statistics.h stmt.h varasm.h.
28010 * loop-unroll.c: Likewise.
28011 * ubsan.c: Likewise.
28012 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
28013 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
28014 stmt.h varasm.h.
28015 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28016 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
28017 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
28018 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
28019 statistics.h stmt.h.
28020 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
28021 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
28022 statistics.h stmt.h varasm.h.
28023 * gimple-match-head.c: Likewise.
28024 * lto-cgraph.c: Likewise.
28025 * lto-section-in.c: Likewise.
28026 * lto-streamer-in.c: Likewise.
28027 * lto-streamer-out.c: Likewise.
28028 * tree-affine.c: Likewise.
28029 * tree-cfg.c: Likewise.
28030 * tree-cfgcleanup.c: Likewise.
28031 * tree-if-conv.c: Likewise.
28032 * tree-into-ssa.c: Likewise.
28033 * tree-ssa-alias.c: Likewise.
28034 * tree-ssa-copyrename.c: Likewise.
28035 * tree-ssa-dse.c: Likewise.
28036 * tree-ssa-forwprop.c: Likewise.
28037 * tree-ssa-live.c: Likewise.
28038 * tree-ssa-math-opts.c: Likewise.
28039 * tree-ssa-pre.c: Likewise.
28040 * tree-ssa-sccvn.c: Likewise.
28041 * tree-tailcall.c: Likewise.
28042 * tree-vect-generic.c: Likewise.
28043 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28044 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
28045 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28046 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
28047 * varasm.c: Likewise.
28048 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28049 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
28050 varasm.h.
28051 * init-regs.c: Likewise.
28052 * ira.c: Likewise.
28053 * omp-low.c: Likewise.
28054 * stack-ptr-mod.c: Likewise.
28055 * tree-ssa-reassoc.c: Likewise.
28056 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28057 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
28058 varasm.h.
28059 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28060 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
28061 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28062 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
28063 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28064 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
28065 * tree-ssa-phiopt.c: Likewise.
28066 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28067 fixed-value.h hashtab.h real.h statistics.h stmt.h.
28068 * config/fr30/fr30.c: Likewise.
28069 * config/frv/frv.c: Likewise.
28070 * expr.c: Likewise.
28071 * final.c: Likewise.
28072 * optabs.c: Likewise.
28073 * passes.c: Likewise.
28074 * simplify-rtx.c: Likewise.
28075 * stmt.c: Likewise.
28076 * toplev.c: Likewise.
28077 * var-tracking.c: Likewise.
28078 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28079 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28080 * lower-subreg.c: Likewise.
28081 * postreload-gcse.c: Likewise.
28082 * ree.c: Likewise.
28083 * reginfo.c: Likewise.
28084 * store-motion.c: Likewise.
28085 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28086 fixed-value.h hashtab.h real.h stmt.h varasm.h.
28087 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28088 fixed-value.h hashtab.h statistics.h stmt.h.
28089 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28090 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
28091 * except.c: Likewise.
28092 * explow.c: Likewise.
28093 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28094 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
28095 varasm.h.
28096 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28097 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
28098 * tree-ssa-structalias.c: Likewise.
28099 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28100 fixed-value.h insn-config.h real.h statistics.h.
28101 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28102 fixed-value.h insn-config.h real.h statistics.h stmt.h.
28103 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28104 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
28105 * cfgbuild.c: Likewise.
28106 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28107 fixed-value.h real.h rtl.h statistics.h stmt.h.
28108 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28109 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
28110 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28111 fixed-value.h real.h statistics.h stmt.h.
28112 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28113 fixed-value.h real.h statistics.h stmt.h varasm.h.
28114 * cprop.c: Likewise.
28115 * modulo-sched.c: Likewise.
28116 * postreload.c: Likewise.
28117 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
28118 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
28119 statistics.h stmt.h varasm.h.
28120 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
28121 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28122 rtl.h statistics.h stmt.h varasm.h.
28123 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
28124 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
28125 varasm.h.
28126 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
28127 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
28128 varasm.h.
28129 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
28130 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
28131 varasm.h.
28132 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
28133 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28134 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28135 function.h real.h statistics.h stmt.h varasm.h.
28136 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28137 insn-config.h real.h statistics.h stmt.h.
28138 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
28139 statistics.h stmt.h.
28140 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
28141 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
28142 statistics.h stmt.h varasm.h.
28143 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
28144 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
28145 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
28146 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
28147 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
28148 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
28149 statistics.h stmt.h varasm.h.
28150 * ipa-polymorphic-call.c: Likewise.
28151 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
28152 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28153 statistics.h stmt.h.
28154 * config/c6x/c6x.c: Likewise.
28155 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
28156 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28157 statistics.h stmt.h varasm.h.
28158 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
28159 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
28160 stmt.h varasm.h.
28161 * ipa-split.c: Likewise.
28162 * tree-eh.c: Likewise.
28163 * tree-ssa-dce.c: Likewise.
28164 * tree-ssa-loop-niter.c: Likewise.
28165 * tree-vrp.c: Likewise.
28166 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
28167 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
28168 stmt.h.
28169 * config/nds32/nds32-fp-as-gp.c: Likewise.
28170 * config/nds32/nds32-intrinsic.c: Likewise.
28171 * config/nds32/nds32-isr.c: Likewise.
28172 * config/nds32/nds32-md-auxiliary.c: Likewise.
28173 * config/nds32/nds32-memory-manipulation.c: Likewise.
28174 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
28175 * config/nds32/nds32-predicates.c: Likewise.
28176 * config/nds32/nds32.c: Likewise.
28177 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
28178 fixed-value.h hashtab.h real.h statistics.h.
28179 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
28180 fixed-value.h hashtab.h real.h statistics.h stmt.h.
28181 * config/arm/arm.c: Likewise.
28182 * config/avr/avr.c: Likewise.
28183 * config/bfin/bfin.c: Likewise.
28184 * config/h8300/h8300.c: Likewise.
28185 * config/i386/i386.c: Likewise.
28186 * config/ia64/ia64.c: Likewise.
28187 * config/iq2000/iq2000.c: Likewise.
28188 * config/m32c/m32c.c: Likewise.
28189 * config/m32r/m32r.c: Likewise.
28190 * config/m68k/m68k.c: Likewise.
28191 * config/mcore/mcore.c: Likewise.
28192 * config/mep/mep.c: Likewise.
28193 * config/mips/mips.c: Likewise.
28194 * config/mn10300/mn10300.c: Likewise.
28195 * config/moxie/moxie.c: Likewise.
28196 * config/pa/pa.c: Likewise.
28197 * config/rl78/rl78.c: Likewise.
28198 * config/rx/rx.c: Likewise.
28199 * config/s390/s390.c: Likewise.
28200 * config/sh/sh.c: Likewise.
28201 * config/sparc/sparc.c: Likewise.
28202 * config/spu/spu.c: Likewise.
28203 * config/stormy16/stormy16.c: Likewise.
28204 * config/v850/v850.c: Likewise.
28205 * config/vax/vax.c: Likewise.
28206 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
28207 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
28208 * config/msp430/msp430.c: Likewise.
28209 * predict.c: Likewise.
28210 * value-prof.c: Likewise.
28211 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
28212 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
28213 * config/microblaze/microblaze.c: Likewise.
28214 * config/nios2/nios2.c: Likewise.
28215 * config/rs6000/rs6000.c: Likewise.
28216 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
28217 insn-config.h real.h rtl.h statistics.h stmt.h.
28218 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
28219 insn-config.h real.h statistics.h stmt.h.
28220 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
28221 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
28222 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
28223 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
28224 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
28225 fixed-value.h real.h statistics.h stmt.h.
28226 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
28227 fixed-value.h statistics.h stmt.h.
28228 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
28229 stmt.h.
28230
28231 2015-01-15 Jakub Jelinek <jakub@redhat.com>
28232
28233 * gengtype.c (create_user_defined_type): Workaround
28234 -Wmaybe-uninitialized false positives.
28235 * cse.c (fold_rtx): Likewise.
28236 * loop-invariant.c (gain_for_invariant): Likewise.
28237
28238 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
28239
28240 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
28241 set the memory attributes in all cases but clear MEM_EXPR if need be.
28242
28243 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
28244
28245 PR tree-optimization/64434
28246 * cfgexpand.c (reorder_operands): New function.
28247 (expand_gimple_basic_block): Insert call of reorder_operands if
28248 optimized is true.
28249
28250 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
28251
28252 * config/mips/micromips.md (*swp): Remove explicit parallel.
28253 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
28254 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
28255 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
28256 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
28257 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
28258 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
28259 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
28260 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
28261 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
28262 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
28263 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
28264 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
28265 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
28266 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
28267 (mips_wrdsp): Likewise.
28268 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
28269 parallel.
28270 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
28271 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
28272 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
28273 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
28274 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
28275 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
28276 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
28277 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
28278 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
28279
28280 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
28281
28282 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
28283 (mips_print_operand): Support 'y' to print exact log2 in decimal
28284 of a const_int.
28285 * config/mips/mips.h (ISA_HAS_LSA): New define.
28286 (ISA_HAS_DLSA): Likewise.
28287 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
28288 * config/mips/predicates.md (const_immlsa_operand): New predicate.
28289
28290 2015-01-15 Martin Liska <mliska@suse.cz>
28291
28292 PR target/64377
28293 * optc-save-gen.awk: Add support for array types.
28294
28295 2015-01-15 Richard Biener <rguenther@suse.de>
28296
28297 PR middle-end/64365
28298 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
28299 for MEM_REF access functions with the same base can never partially
28300 overlap.
28301
28302 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
28303
28304 * common.opt: New option -fstack-protector-explicit.
28305 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
28306 (stack_protect_decl_phase): Handle stack_protect attribute for
28307 explicit stack protection requests.
28308 (expand_used_vars): Similarly.
28309 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
28310 * doc/extend.texi: Add documentation for "stack_protect" attribute.
28311 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
28312
28313 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
28314
28315 PR target/53988
28316 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
28317 reg-reg copies.
28318 (sh_extending_set_of_reg): New struct.
28319 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
28320 sh_remove_reg_dead_or_unused_notes): New Declarations.
28321 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
28322 sh_find_extending_set_of_reg, sh_split_tst_subregs,
28323 sh_extending_set_of_reg::use_as_extended_reg): New functions.
28324 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
28325 convert to insn_and_split and use new function sh_split_tst_subregs.
28326
28327 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
28328
28329 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
28330 option.
28331 (Optimization Options): Move -fuse-ld documentation to...
28332 (Link Options): ...here.
28333
28334 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
28335
28336 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
28337 offsets.
28338 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
28339 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
28340 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
28341 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
28342 instead of ZR for the memory operand of LL/SC.
28343 (compare_and_swap_12, sync_add<mode>): Likewise.
28344 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
28345 (sync_new_<optab>_12, sync_nand_12): Likewise.
28346 (sync_old_nand_12, sync_new_nand_12): Likewise.
28347 (sync_sub<mode>, sync_old_add<mode>): Likewise.
28348 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
28349 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
28350 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
28351 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
28352 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
28353 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
28354 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
28355 * doc/md.texi (ZC): Update description.
28356
28357 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
28358
28359 * builtins.c (expand_builtin_atomic_exchange): Remove error when
28360 memory model is CONSUME.
28361 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
28362 expand_builtin_atomic_store): Change invalid memory model errors to
28363 warnings.
28364 (expand_builtin_atomic_clear): Change invalid model errors to warnings
28365 and issue warning for CONSUME.
28366
28367 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
28368
28369 * lto-cgraph: Update function comments for
28370 lto_symtab_encoder_encode_*.
28371
28372 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
28373
28374 * Makefile.in (site.exp): Do not set ENABLE_LTO.
28375
28376 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
28377
28378 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
28379 * lto-cgraph.c (select_what_to_stream): Remove argument, use
28380 lto_stream_offload_p instead.
28381 * lto-streamer.h (select_what_to_stream): Remove argument.
28382 * passes.c (ipa_write_summaries): Likewise.
28383 * tree-pass.h (ipa_write_summaries): Likewise.
28384
28385 2015-01-14 Richard Biener <rguenther@suse.de>
28386
28387 PR tree-optimization/59354
28388 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
28389 groups larger than the slp group size as having gaps.
28390
28391 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
28392
28393 PR middle-end/59448
28394 * builtins.c (get_memmodel): Promote consume to acquire always.
28395
28396 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
28397
28398 PR target/64386
28399 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
28400 V32HImode.
28401
28402 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
28403
28404 PR target/64393
28405 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
28406 Enable AVX512BW.
28407 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
28408 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
28409 AVX512VBMI, as it implies AVX512BW.
28410
28411 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
28412
28413 PR target/64387
28414 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
28415 (vec_unpacks_hi_v16sf): Ditto.
28416
28417 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28418
28419 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
28420 is not available.
28421
28422 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28423
28424 * doc/invoke.texi (mapcs): Mention deprecation.
28425 (mapcs-frame): Likewise.
28426
28427 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
28428
28429 PR target/64453
28430 * config/arm/arm.c (callee_saved_reg_p): Define.
28431 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
28432 register is callee saved instead of !call_used_regs[reg].
28433 (thumb1_compute_save_reg_mask): Likewise.
28434
28435 2015-01-14 Hale Wang <hale.wang@arm.com>
28436
28437 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
28438 Cortex-M7.
28439
28440 2015-01-14 Richard Biener <rguenther@suse.de>
28441
28442 PR lto/64415
28443 * tree-inline.c (insert_debug_decl_map): Check destination
28444 function MAY_HAVE_DEBUG_STMTS.
28445 (insert_init_debug_bind): Likewise.
28446 (insert_init_stmt): Remove redundant check.
28447 (remap_gimple_stmt): Drop debug stmts if the destination
28448 function has var-tracking assignments disabled.
28449
28450 2015-01-14 Martin Liska <mliska@suse.cz>
28451
28452 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
28453 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
28454
28455 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28456
28457 PR target/64460
28458 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
28459 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
28460
28461 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
28462
28463 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
28464 level from an ARCH; do not inject the default.
28465 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
28466 MIPS_ISA_LEVEL_SPEC.
28467 (MIPS_ISA_NAN2008_SPEC): Update comment.
28468 (BASE_DRIVER_SELF_SPECS): Likewise.
28469 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
28470 MIPS_DEFAULT_ISA_LEVEL_SPEC.
28471 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
28472 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
28473 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
28474
28475 2015-01-14 Richard Biener <rguenther@suse.de>
28476
28477 PR tree-optimization/64493
28478 PR tree-optimization/64495
28479 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
28480 assign the proper vectorized PHI to the inner loop exit PHIs.
28481
28482 2015-01-14 Joey Ye <joey.ye@arm.com>
28483
28484 * config/arm/arm.c (arm_compute_save_reg_mask):
28485 Do not save lr in case of tail call.
28486 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
28487
28488 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
28489
28490 * tree-vrp.c (check_array_ref): Emit more warnings
28491 for warn_array_bounds >= 2.
28492 * common.opt: New option -Warray-bounds=.
28493 * doc/invoke.texi: Document -Warray-bounds=.
28494
28495 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
28496
28497 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
28498 (mforbid-fp-as-gp): Remove.
28499 (mex9): Remove.
28500 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
28501 (nds32_symbol_load_store_p): Remove.
28502 (nds32_fp_as_gp_check_available): Clean up implementation.
28503 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
28504 cases.
28505 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
28506 fp-as-gp and ex9 cases.
28507
28508 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
28509
28510 * tree-profile.c (init_ic_make_global_vars): Drop workaround
28511 for bintuils bug 14342.
28512 (init_ic_make_global_vars): Likewise.
28513 (gimple_init_edge_profiler): Likewise.
28514 (gimple_gen_ic_func_profiler): Likewise.
28515
28516 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28517
28518 * ipa-inline.c (inline_small_functions): Swap the operands in
28519 enum.
28520
28521 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
28522
28523 PR ipa/64481
28524 * ipa-inline-analysis.c (node_growth_cache): Remove.
28525 (initialize_growth_caches): Do not initialize it.
28526 (free_growth_caches): Do not free it.
28527 (do_estimate_growth): Rename to ...
28528 (estimate_growth): ... this one; drop growth cache code.
28529 (growth_likely_positive): Always go the heuristics way.
28530 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
28531 (reset_edge_caches): Do not reset node growth.
28532 (heap_edge_removal_hook): Do not maintain cache.
28533 (inline_small_functions): Likewise; strenghten sanity check.
28534 (ipa_inline): Do not maintain caches.
28535 * ipa-inline.h (node_growth_cache): Remove.
28536 (do_estimate_growth): Remove to ...
28537 (estimate_growth): this one; remove inline version.
28538 (reset_node_growth_cache): Remove.
28539
28540 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
28541
28542 PR ipa/64565
28543 * ipa-inline.c (inline_small_functions): Update callee keys after
28544 resolving speculation
28545 (inline_small_functions): Always check monotonicity of the queue.
28546
28547 2015-01-13 Marek Polacek <polacek@redhat.com>
28548
28549 PR middle-end/64391
28550 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
28551
28552 2015-01-13 Jakub Jelinek <jakub@redhat.com>
28553
28554 PR rtl-optimization/64286
28555 * ree.c (combine_reaching_defs): Move part of comment earlier,
28556 remove !SCALAR_INT_MODE_P check.
28557 (add_removable_extension): Don't add vector mode
28558 extensions if all uses of the source register aren't the same
28559 vector extensions.
28560
28561 2015-01-13 Renlin Li <renlin.li@arm.com>
28562
28563 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
28564 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
28565
28566 2015-01-13 Martin Liska <mliska@suse.cz>
28567
28568 * ipa-icf.c (sem_function::equals_private): Call new functions
28569 cl_target_option_print_diff and cl_optimization_print_diff.
28570 * optc-save-gen.awk (cl_target_option_print_diff): New function.
28571 (cl_optimization_print_diff): Likewise.
28572 * opth-gen.awk: Likewise.
28573
28574 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
28575
28576 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
28577 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
28578 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
28579 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
28580 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
28581 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
28582
28583 2015-01-13 Andrew Pinski <apinski@cavium.com>
28584
28585 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
28586 instead of src mode.
28587
28588 2015-01-13 Richard Biener <rguenther@suse.de>
28589
28590 PR lto/64373
28591 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
28592 DECL_CONTEXT.
28593
28594 2015-01-13 Andrew Pinski <apinski@cavium.com>
28595
28596 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
28597 volatile mems.
28598 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
28599
28600 2015-01-13 Jakub Jelinek <jakub@redhat.com>
28601
28602 PR middle-end/63974
28603 * cfgexpand.c (expand_computed_goto): Don't call
28604 convert_memory_address here.
28605
28606 2015-01-13 Richard Biener <rguenther@suse.de>
28607
28608 PR tree-optimization/64406
28609 * tree-loop-distibution.c (pass_loop_distribution::execute):
28610 Reset the SCEV hashtable if we distributed anything.
28611
28612 2015-01-13 Richard Biener <rguenther@suse.de>
28613
28614 PR tree-optimization/64404
28615 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
28616 SLP types for CSEd loads.
28617
28618 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
28619
28620 PR tree-optimization/64436
28621 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
28622 merge of two symbolic numbers for a bitwise OR to ...
28623 (perform_symbolic_merge): This. Also fix computation of the range and
28624 end of the symbolic number corresponding to the result of a bitwise OR.
28625
28626 2015-01-13 Richard Biener <rguenther@suse.de>
28627
28628 PR tree-optimization/64568
28629 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
28630 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
28631
28632 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28633
28634 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
28635 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
28636
28637 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28638
28639 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
28640 target-specific symbol_ref flag.
28641 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
28642 resides in rodata section.
28643 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
28644 (nds32_encode_section_info): New function.
28645
28646 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28647
28648 * config/nds32/nds32.md (call): Use pseudo instruction bal which
28649 clobbers TA_REGNUM if large code model is specified.
28650 (call_register): Likewise.
28651 (call_immediate): Likewise.
28652 (call_value): Likewise.
28653 (call_value_register): Likewise.
28654 (call_value_immediate): Likewise.
28655
28656 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28657
28658 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
28659 (TARGET_CMODEL_MEDIUM): New macro.
28660 (TARGET_CMODEL_LARGE): New macro.
28661 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
28662 code model setting in assembly code.
28663
28664 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28665
28666 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
28667 Remove MASK_GP_DIRECT flag.
28668 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
28669 one of the multilib default options.
28670 * config/nds32/nds32.opt (mgp-direct): Remove.
28671 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
28672 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
28673
28674 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
28675
28676 * config/nds32/nds32.opt (mcmodel): Add new option.
28677 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
28678 to describe code model.
28679
28680 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
28681
28682 PR target/64479
28683 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
28684
28685 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
28686
28687 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
28688 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
28689 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
28690 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
28691 __builtin_sh_set_fpscr.
28692
28693 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
28694
28695 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
28696 after a funtion name just to indicate it is a function.
28697 ([-fsanitize-undefined-trap-on-error]): Likewise.
28698 ([-fdbg-cnt=]): Likewise.
28699 ([-mmemcpy]): Likewise.
28700 ([-mflush-func]): Likewise.
28701 ([-msynci]): Likewise.
28702
28703 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
28704
28705 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
28706 example.
28707
28708 2015-01-12 Jakub Jelinek <jakub@redhat.com>
28709
28710 PR tree-optimization/64563
28711 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
28712 instead of != VR_VARYING.
28713
28714 PR target/64513
28715 * config/i386/i386.c (ix86_expand_prologue): Add
28716 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
28717
28718 PR tree-optimization/64454
28719 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
28720 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
28721 for signed or [0, op1 - 1] for unsigned modulo.
28722 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
28723 even if op1 does not satisfy integer_pow2p.
28724
28725 PR other/64370
28726 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
28727
28728 2015-01-12 Jeff Law <law@redhat.com>
28729
28730 PR target/64461
28731 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
28732 (trunchiqi2, truncsihi2): Similarly.
28733
28734 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
28735 rather than calling F.
28736
28737 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
28738
28739 * tsan.c (instrument_expr): Use force_gimple_operand.
28740 Use may_be_nonaddressable_p instead of is_gimple_addressable.
28741
28742 2015-01-12 Richard Biener <rguenther@suse.de>
28743
28744 PR tree-optimization/64530
28745 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
28746 back dr1.
28747
28748 2015-01-12 Richard Biener <rguenther@suse.de>
28749
28750 PR middle-end/64357
28751 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
28752 latches properly.
28753
28754 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28755
28756 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
28757 Cortex-A17 tuning parameters.
28758 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
28759
28760 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28761
28762 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
28763 * config/arm/arm.c (arm_macro_fusion_p): New function.
28764 (arm_macro_fusion_pair_p): Likewise.
28765 (TARGET_SCHED_MACRO_FUSION_P): Define.
28766 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
28767 (ARM_FUSE_NOTHING): Likewise.
28768 (ARM_FUSE_MOVW_MOVT): Likewise.
28769 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
28770 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
28771 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
28772 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
28773 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
28774 arm_cortex_a5_tune): Specify fuseable_ops value.
28775
28776 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
28777
28778 PR bootstrap/64561
28779 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
28780 test for PIE with copy reloc.
28781 * configure: Regenerated.
28782
28783 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28784
28785 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
28786 in gen_rtx_REG.
28787 (arm_tls_descseq_addr): Likewise.
28788 (arm_gen_movmemqi): Likewise.
28789 (arm_expand_epilogue_apcs_frame): Likewise.
28790 (arm_expand_epilogue): Likewise.
28791 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
28792 in gen_rtx_REG.
28793
28794 2015-01-12 Martin Liska <mliska@suse.cz>
28795
28796 PR ipa/64550
28797 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
28798 volatility for correct operands.
28799
28800 2015-01-12 Martin Liska <mliska@suse.cz>
28801
28802 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
28803 indication that a function is not leaf.
28804 (sem_function::compare_polymorphic_p): Likewise.
28805
28806 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28807
28808 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
28809 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
28810 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
28811 fold-const.h, tree-check.h.
28812
28813 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
28814
28815 PR ipa/63967
28816 PR ipa/64425
28817 * ipa-inline.c (compute_uninlined_call_time,
28818 compute_inlined_call_time): Use counts for extra precision when
28819 needed possible.
28820 (big_speedup_p): Fix formating.
28821 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
28822 (relative_time_benefit): Remove.
28823 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
28824 merge guessed and read profile paths.
28825 (inline_small_functions): Count only !optimize_size functions into
28826 initial size; be more lax about sanity check when profile is used;
28827 be sure to update inlined function profile when profile is read.
28828
28829 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
28830
28831 PR ipa/63470
28832 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
28833 cost when edge becomes direct.
28834 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
28835 is resolved or when introducing new speculation.
28836
28837 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
28838
28839 PR ipa/64551
28840 PR ipa/64552
28841 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
28842 '||' to fix typo issue.
28843
28844 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
28845 accept and return NULL.
28846
28847 2015-01-12 Martin Liska <mliska@suse.cz>
28848
28849 * cgraph.c (cgraph_edge::remove_callee): Move function to header
28850 file for being inlined.
28851 (cgraph_set_edge_callee): Delete.
28852 (cgraph_edge::redirect_callee): Move function to header file
28853 for being inlined.
28854 (cgraph_edge::make_direct): Use new function.
28855 (cgraph_edge::dump_edge_flags): New function created from
28856 static dump_edge_flags function.
28857 (cgraph_node::dump): Use new function.
28858 (cgraph_edge::verify_count_and_frequency): New function created
28859 from verify_edge_count_and_frequency.
28860 (cgraph_edge::verify_corresponds_to_fndecl): New function created
28861 from verify_edge_corresponds_to_fndecl.
28862 (verify_edge_corresponds_to_fndecl): Delete.
28863 (cgraph_node::verify_node): Use new function.
28864 * cgraph.h (cgraph_edge::set_callee): New function.
28865 (cgraph_edge::dump_edge_flags): Likewise.
28866 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
28867
28868 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
28869
28870 * ipa-utils.c (estimate_function_body_sizes): Do not
28871 free node params when called late with early=true.
28872
28873 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
28874
28875 * doc/md.texi (Instruction Patterns): Rewrite text for
28876 clarity.
28877 (Example): Likewise.
28878
28879 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
28880
28881 * doc/invoke.texi (Option Summary): Break long lines.
28882 [(-fdiagnostics-color)]: Put long literal in @smallexample
28883 instead of inline.
28884 [(-fsanitize-recover)]: Likewise.
28885 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
28886 [(-ffast-math)]: Likewise.
28887 [(--param max-inline-insns-recursive)]: Likewise.
28888 [(--param max-inline-recursive-depth)]: Likewise.
28889 [(-mno-text-section-literals)]: Likewise.
28890
28891 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
28892
28893 * doc/install.texi: Update for libgomp being renamed from "GNU
28894 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
28895 Runtime Library".
28896 * doc/sourcebuild.texi: Likewise.
28897
28898 2015-01-10 Anthony Green <green@moxielogic.com>
28899
28900 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
28901 mul.x availability for moxiebox configuration.
28902
28903 2015-01-09 Anthony Green <green@moxielogic.com>
28904
28905 * config/moxie/moxie.md: Tabify assembly output.
28906
28907 2015-01-09 Anthony Green <green@moxielogic.com>
28908
28909 * config/moxie/moxie.md (CC_REG): Correct register definition.
28910
28911 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
28912
28913 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
28914 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
28915 of log files.
28916
28917 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
28918
28919 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
28920
28921 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
28922 Jakub Jelinek <jakub@redhat.com>
28923
28924 PR middle-end/64412
28925 * lto-streamer.h (lto_stream_offload_p): New declaration.
28926 * lto-streamer.c (lto_stream_offload_p): New variable.
28927 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
28928 at the same time as section_name_prefix.
28929 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
28930 if lto_stream_offload_p.
28931 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
28932 stream TREE_TARGET_OPTION if lto_stream_offload_p.
28933 (write_ts_function_decl_tree_pointers): Don't
28934 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
28935 * tree-streamer-in.c (unpack_value_fields): Don't stream
28936 TREE_TARGET_OPTION in if ACCEL_COMPILER.
28937 (lto_input_ts_function_decl_tree_pointers): Don't stream
28938 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
28939 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
28940 instead of section_name_prefix string comparisons.
28941
28942 2015-01-09 Jakub Jelinek <jakub@redhat.com>
28943
28944 PR rtl-optimization/64536
28945 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
28946 tablejumps.
28947
28948 2015-01-09 Michael Collison <michael.collison@linaro.org>
28949
28950 PR tree-optimization/64322
28951 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
28952 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
28953
28954 2015-01-09 Tom de Vries <tom@codesourcery.com>
28955
28956 PR rtl-optimization/64539
28957 * regcprop.c (kill_clobbered_values): Factor out of ...
28958 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
28959 instead of note_stores with kill_clobbered_value.
28960
28961 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
28962
28963 * ginclude/unwind-arm-common.h: Revert previous commit.
28964
28965 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
28966
28967 * config.gcc (arm*-*-freebsd*): New configuration.
28968 * config/arm/freebsd.h: New file.
28969 * config.host: Add extra components for arm*-*-freebsd*.
28970 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
28971 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
28972
28973 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28974
28975 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
28976 for -mcpu=e6500.
28977 * config/rs6000/t-rtems: Add e6500 multilibs.
28978
28979 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28980
28981 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
28982 MPC8540.
28983
28984 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28985
28986 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
28987 MULTILIB_EXCEPTIONS.
28988
28989 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28990
28991 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
28992 MULTILIB_EXCEPTIONS.
28993
28994 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
28995
28996 * config/arm/t-rtems-eabi: Rename to...
28997 * config/arm/t-rtems: ...this.
28998 * config/arm/rtems-eabi.h: Rename to...
28999 * config/arm/rtems.h: ...this.
29000 * config.gcc (arm*-*-rtems*): Reflect changes above.
29001
29002 2015-01-09 Richard Biener <rguenther@suse.de>
29003
29004 PR tree-optimization/64410
29005 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
29006 on the LHS.
29007 (execute_update_addresses_taken): Deal with that.
29008 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
29009 loads/stores for complex variables.
29010
29011 2015-01-09 Martin Liska <mliska@suse.cz>
29012
29013 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
29014 name comparison.
29015 (func_checker::compare_memory_operand): New function.
29016 (func_checker::compare_operand): Split case to newly
29017 added functions.
29018 (func_checker::compare_cst_or_decl): New function.
29019 (func_checker::compare_gimple_call): Identify
29020 memory operands.
29021 (func_checker::compare_gimple_assign): Likewise.
29022 * ipa-icf-gimple.h: New function.
29023
29024 2015-01-09 Martin Liska <mliska@suse.cz>
29025
29026 PR ipa/64503
29027 * sreal.c (sreal::dump): Change unsigned format to signed for
29028 m_exp value.
29029 (sreal::to_double): Replace exp2 with scalbln.
29030
29031 2015-01-09 Martin Liska <mliska@suse.cz>
29032
29033 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
29034 * ipa-icf.c (sem_function::equals_private): Add support for target and
29035 (sem_item_optimizer::merge_classes): Remove redundant function
29036 optimization flags comparison.
29037 * tree.h (target_opts_for_fn): New function.
29038
29039 2015-01-09 Tom de Vries <tom@codesourcery.com>
29040
29041 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
29042
29043 2015-01-09 Kito Cheng <kito@0xlab.org>
29044
29045 PR rtl-optimization/64348
29046 * lra-constraints.c (split_reg): Fix caller-save store/restore
29047 instruction generation.
29048
29049 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
29050
29051 PR gcov-profile/61790
29052 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
29053 long long. Fallback to int64_t if host doesn't have long long and
29054 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
29055
29056 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29057
29058 PR tree-optimization/63989
29059 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
29060 from 1000 to 10000.
29061 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
29062 (get_stridx): If we don't have a record for certain SSA_NAME,
29063 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
29064 constant offset, call get_stridx_plus_constant.
29065 (get_stridx_plus_constant): New function.
29066 (zero_length_string): Don't use get_stridx here.
29067
29068 PR target/55023
29069 PR middle-end/64388
29070 * dse.c (struct insn_info): Mention frame_read set also
29071 before reload for tail calls on some targets.
29072 (scan_insn): Revert 2014-12-22 change. Set frame_read
29073 also before reload for tail calls if
29074 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
29075 instead of add_non_frame_wild_read for non-const/memset
29076 tail calls after reload.
29077
29078 2015-01-08 Jason Merrill <jason@redhat.com>
29079
29080 * ubsan.c (do_ubsan_in_current_function): New.
29081 (pass_ubsan::gate): Use it.
29082 * ubsan.h: Declare it.
29083 * convert.c (convert_to_integer): Use it.
29084
29085 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29086
29087 PR target/64338
29088 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
29089 compare_code when it is unconditionally overwritten afterwards.
29090 Use ix86_reverse_condition instead of reverse_condition. Don't
29091 change code if *reverse_condition* returned UNKNOWN and don't
29092 swap ct/cf and negate diff in that case.
29093
29094 2015-01-08 Mike Stump <mikestump@comcast.net>
29095
29096 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
29097 (pass_tsan_O0::gate): Likewise.
29098 * extend.texi (Function Attributes): Add no_sanitize_thread
29099 documentation.
29100
29101 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
29102
29103 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
29104 for registering builtins.
29105 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
29106 add -fopenmp to the argv_obstack used when invoking
29107 compile_for_target.
29108
29109 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
29110 add "-m32" or "-m64" to argv_obstack.
29111 (generate_host_descr_file): Likewise, when invoking host_compiler.
29112 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
29113 ld.
29114
29115 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
29116
29117 * config/sh/sh-mem.cc: Use constant as second operand when emitting
29118 tstsi_t insns.
29119
29120 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
29121
29122 PR target/55212
29123 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
29124 constant load if constant operand fits into I08.
29125
29126 2015-01-08 Jakub Jelinek <jakub@redhat.com>
29127
29128 PR sanitizer/64336
29129 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
29130 and TREE_THIS_VOLATILE for MEM_REFs.
29131 (build5_stat): Fix up initialization of TREE_READONLY and
29132 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
29133
29134 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
29135
29136 PR target/64533
29137 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
29138 of r for the second alternative of the destination operand.
29139
29140 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
29141
29142 PR target/36557
29143 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
29144
29145 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
29146
29147 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
29148 keywords.
29149 ([-fivar-visibility], [-fvisibility]): Likewise.
29150
29151 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
29152
29153 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
29154 the file where @code, @command, etc is more appropriate.
29155
29156 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
29157
29158 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
29159 of -mrecip= documentation.
29160
29161 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
29162
29163 PR target/64505
29164 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
29165 correct reload handler if -m32 -mpowerpc64 is used.
29166
29167 2015-01-06 Tom de Vries <tom@codesourcery.com>
29168
29169 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
29170
29171 2015-01-08 Christian Bruel <christian.bruel@st.com>
29172
29173 PR target/64507
29174 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
29175
29176 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
29177
29178 PR tree-optimization/63259
29179 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
29180 if optab exists for 16bit byteswap.
29181
29182 2015-01-06 Jakub Jelinek <jakub@redhat.com>
29183
29184 * opts.c (common_handle_option): Add support for
29185 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
29186 * doc/invoke.texi: Document -fno-sanitize=all,
29187 -f{,no-}sanitize-recover=all. Document that
29188 -fsanitize=float-cast-overflow is not enabled
29189 by -fsanitize=undefined. Fix up documentation
29190 of -f{,no-}sanitize-recover.
29191
29192 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
29193
29194 * config.gcc: Add Visium support.
29195 * configure.ac: Likewise.
29196 * configure: Regenerate.
29197 * doc/extend.texi (interrupt attribute): Add Visium.
29198 * doc/invoke.texi: Document Visium options.
29199 * doc/install.texi: Document Visium target.
29200 * doc/md.texi: Document Visium constraints.
29201 * common/config/visium: New directory.
29202 * config/visium: Likewise.
29203
29204 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
29205
29206 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
29207 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
29208
29209 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
29210
29211 * combine.c (combine_validate_cost): Do not count the cost of a
29212 split I2 twice. Do not display it twice in the dump, either.
29213
29214 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
29215
29216 Revert parts of r219199.
29217 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
29218 <inttypes.h>.
29219 ([-Wtraditional]): Restore markup on <limits.h>.
29220
29221 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
29222
29223 PR c++/31397
29224 * doc/invoke.texi: Document -Wsuggest-override.
29225
29226 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
29227
29228 PR rtl-optimization/64287
29229 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
29230 (process_options): Disable flag_ipa_ra if profiling.
29231
29232 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
29233
29234 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
29235
29236 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
29237
29238 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
29239 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
29240 put under #if TARGET_LOOPS guard.
29241
29242 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
29243
29244 * config/i386/i386.c (output_387_binary_op): Use std::swap.
29245
29246 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
29247
29248 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
29249 * rtl.h (refers_to_regno_p): Add overload.
29250 * cse.c: Use it.
29251 * bt-load.c: Likewise.
29252 * combine.c: Likewise.
29253 * df-scan.c: Likewise.
29254 * sched-deps.c: Likewise.
29255 * config/s390/s390.c: Likewise.
29256 * config/m32r/m32r.c: Likewise.
29257 * config/rs6000/spe.md: Likewise.
29258 * config/rs6000/rs6000.c: Likewise.
29259 * config/pa/pa.c: Likewise.
29260 * config/stormy16/stormy16.c: Likewise.
29261 * config/cris/cris.c: Likewise.
29262 * config/arc/arc.md: Likewise.
29263 * config/arc/arc.c: Likewise.
29264 * config/sh/sh.md: Likewise.
29265 * config/sh/sh.c: Likewise.
29266 * config/frv/frv.c: Likewise.
29267
29268 2015-01-05 Jakub Jelinek <jakub@redhat.com>
29269
29270 PR sanitizer/64265
29271 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
29272 call as cleanup of the whole body.
29273 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
29274 * tsan.c (replace_func_exit): New function.
29275 (instrument_func_exit): Moved earlier.
29276 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
29277 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
29278 been found.
29279 (tsan_pass): Don't call instrument_func_exit.
29280 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
29281 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
29282 inlining.
29283
29284 PR sanitizer/64344
29285 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
29286 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
29287 it to libubsan handler instead of EXPR. Fold comparisons earlier,
29288 if the result is integer_zerop, return NULL_TREE.
29289 * convert.c (convert_to_integer): Pass expr as ARG.
29290
29291 PR tree-optimization/64465
29292 * tree-inline.c (redirect_all_calls): During inlining
29293 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
29294 changed the stmt to a non-throwing call.
29295
29296 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
29297
29298 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
29299 etc markup throughout the file.
29300
29301 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
29302
29303 Enable experimental TSAN support for Ada.
29304 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
29305
29306 2015-01-05 Jakub Jelinek <jakub@redhat.com>
29307
29308 PR tree-optimization/64494
29309 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
29310 clear SSA_NAME_ANTI_RANGE_P flag.
29311
29312 2015-01-05 Marek Polacek <polacek@redhat.com>
29313
29314 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
29315
29316 2015-01-05 Jakub Jelinek <jakub@redhat.com>
29317
29318 Update copyright years.
29319
29320 * gcc.c (process_command): Update copyright notice dates.
29321 * gcov-dump.c: Ditto.
29322 * gcov.c: Ditto.
29323 * doc/cpp.texi: Bump @copying's copyright year.
29324 * doc/cppinternals.texi: Ditto.
29325 * doc/gcc.texi: Ditto.
29326 * doc/gccint.texi: Ditto.
29327 * doc/gcov.texi: Ditto.
29328 * doc/install.texi: Ditto.
29329 * doc/invoke.texi: Ditto.
29330
29331 * auto-profile.c, auto-profile.h: Fix up Copyright line.
29332
29333 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
29334
29335 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
29336 verb tense, etc.
29337 ([-fvtable-verify], [-fvtv-debug]): Likewise.
29338 ([-Wabi]): Likewise.
29339 ([-fmessage-length]): Likewise.
29340 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
29341 ([-Wno-discarded-qualifiers]): Likewise.
29342 ([-Wnodiscarded-array-qualifiers]): Likewise.
29343 ([-Wno-virtual-move-assign]): Likewise.
29344 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
29345 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
29346 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
29347 ([-fsanitize-undefined-trap-on-error]): Likewise.
29348 ([-floop-interchange]): Likewise.
29349 ([-ftree-coalesce-inlined-vars]): Likewise.
29350 ([-fvect-cost-model]): Likewise.
29351 ([-flto]): Likewise.
29352 ([--param]): Likewise.
29353 (Spec Files): Likewise.
29354 ([-mstrict-align]): Likewise.
29355 ([-mfix-cortex-a53-835769]): Likewise.
29356 ([-march], [-mtune]): Likewise.
29357 ([-mpic-register]): Likewise.
29358 ([-munaligned-access]): Likewise.
29359 ([-msp8]): Likewise.
29360 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
29361 (AVR Built-in Macros): Likewise.
29362 ([-mpreferred-stack-boundary]): Likewise.
29363 ([-mtune-crtl]): Likewise.
29364 ([-mashf]): Likewise.
29365 ([-mmcu=]): Likewise.
29366 ([-minrt]): Likewise.
29367 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
29368 ([-mupper-regs]): Likewise.
29369 ([-matomic-model]): Likewise.
29370 ([-mdiv]): Likewise.
29371 ([-mzdcbranch]): Likewise.
29372 ([-mdisable-callt]): Likewise.
29373 ([-msoft-float]): Likewise.
29374 ([-m8byte-align]): Likewise.
29375 ([-fstack-reuse]): Likewise.
29376
29377 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
29378
29379 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
29380 Fix markup, light copy-editing.
29381 ([-fauto-profile]): Rewrite to fix formatting and content
29382 problems.
29383
29384 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
29385
29386 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
29387 Copy-edit description.
29388 ([-fisolate-erroneous-paths-attribute]): Likewise.
29389 * common.opt (fisolate-erroneous-paths-dereference):
29390 Copy-edit description.
29391 (fisolate-erroneous-paths-attribute): Likewise.
29392
29393 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
29394
29395 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
29396 tidy grammar.
29397
29398 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
29399
29400 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
29401 ([-fvtv-debug]): Likewise.
29402 ([-Wc++-compat]): Likewise.
29403 ([-Wc++11-compat]): Likewise.
29404 ([-Wc++14-compat]): Likewise.
29405 ([-Wno-sized-deallocation]): Likewise.
29406 ([-femit-class-debug-always]): Likewise.
29407 ([-femit-struct-debug-detailed]): Likewise.
29408 ([-fno-keep-inline-dllexport]): Likewise.
29409 ([-fira-algorithm]): Likewise.
29410 ([-fira-region]): Likewise.
29411 ([-flra-remat]): Likewise.
29412 ([-fipa-ra]): Likewise.
29413 ([-fhoist-adjacent-loads]): Likewise.
29414 ([-fisolate-erroneous-paths-dereference]): Likewise.
29415 ([-fisolate-erroneous-paths-attribute]): Likewise.
29416 ([-ftree-switch-conversion]): Likewise.
29417 ([-ftree-tail-merge]): Likewise.
29418 ([-ftree-loop-if-convert]): Likewise.
29419 ([-ftree-loop-if-convert-stores]): Likewise.
29420 ([-ftree-loop-distribution]): Likewise.
29421 ([-ftree-loop-distribute-patterns]): Likewise.
29422 ([-flto-compression-level]): Likewise.
29423 ([-flto-report]): Likewise.
29424 ([-flto-report-wpa]): Likewise.
29425 ([-fuse-linker-plugin]): Likewise.
29426 ([-mfix-cortex-a53-835769]): Likewise.
29427 ([-mno-fix-cortex-a53-835769]): Likewise.
29428 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
29429 explicit listing; add a note to the discussion indicating they
29430 exist. Reorder table to group similar options. Add missing
29431 @opindex entries. Add @need commands throughout the table to
29432 allow it to be split across multiple pages.
29433 ([-m8bit-idiv]): Fix @opindex.
29434 ([-mavx256-split-unaligned-load]): Likewise.
29435 ([-mavx256-split-unaligned-store]): Likewise.
29436 ([-mstack-protector-guard]): Likewise.
29437 ([-mcpu=]): Likewise.
29438 ([-mcpu]): Likewise.
29439 ([-mpointer-size=]): Likewise.
29440
29441 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
29442
29443 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
29444 instead of `m' constraint. Likewise for unnamed movb comparison
29445 patterns using reg_before_reload_operand predicate.
29446 * config/pa/predicates.md (reg_before_reload_operand): Tighten
29447 predicate to reject register index and LO_SUM DLT memory forms
29448 after reload.
29449
29450 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
29451
29452 * doc/invoke.texi (Option Summary): Fix spelling of
29453 -fdevirtualize-at-ltrans.
29454 ([-fdevirtualize]): Fix markup.
29455 ([-fdevirtualize-speculatively]): Fix typo.
29456 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
29457 implementor-speaky.
29458 * common.opt (fdevirtualize-at-ltrans): Likewise.
29459 * ipa-devirt.c: Fix typos in comments throughout the file.
29460 (ipa_devirt): Fix typos in format strings for dump output.
29461
29462 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
29463
29464 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
29465 discussion of defaults, light copy-editing.
29466
29467 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
29468
29469 * tsan.c (instrument_expr): corrected previous checkin.
29470
29471 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
29472
29473 Instrument bit field and unaligned accesses for TSAN.
29474 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
29475 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
29476 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
29477 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
29478 unaligned memory regions.
29479
29480 2015-01-01 Anthony Green <green@moxielogic.com>
29481
29482 * config/moxie/predicates.md (moxie_general_movsrc_operand):
29483 Restrict move source register offsets to 16 bits.
29484 \f
29485 Copyright (C) 2015 Free Software Foundation, Inc.
29486
29487 Copying and distribution of this file, with or without modification,
29488 are permitted in any medium without royalty provided the copyright
29489 notice and this notice are preserved.