config.gcc: Handle --enable-fdpic.
[gcc.git] / gcc / ChangeLog
1 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
2 Joseph Myers <joseph@codesourcery.com>
3 Mark Shinwell <shinwell@codesourcery.com>
4 Andrew Stubbs <ams@codesourcery.com>
5 Rich Felker <dalias@libc.org>
6
7 * config.gcc: Handle --enable-fdpic.
8 * config/sh/constraints.md (Ccl): New constraint.
9 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
10 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
11 __SH_FDPIC__.
12 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
13 library functions.
14 * config/sh/sh-protos.h (function_symbol_result): New struct.
15 (function_symbol): Return function_symbol_result.
16 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
17 declarations.
18 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
19 target hook.
20 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
21 (sh_option_override): Force -fPIC if FDPIC is in effect.
22 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
23 UNSPEC_GOTOFFFUNCDESC cases.
24 (prepare_move_operands): Use FDPIC initial GOT register for
25 TLS-related GOT access; inhibit cross-section address offset constants
26 for FDPIC.
27 (sh_assemble_integer): New function.
28 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
29 PC-relative call sites.
30 (expand_ashiftrt): Adapt invocation of function_symbol.
31 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
32 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
33 UNSPEC_GOTOFFFUNCDESC.
34 (legitimize_pic_address): Resolve function symbols to function
35 descriptors for FDPIC. Do not use GOT-relative addressing for local
36 data that may be read-only on FDPIC.
37 (sh_emit_storesi, sh_emit_storehi): New functions.
38 (sh_trampoline_init): Generate FDPIC trampolines.
39 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
40 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
41 (sh_output_mi_thunk): Generate FDPIC call.
42 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
43 FDPIC, generate call site labels to use PC-relative addressing rather
44 than GOT-relative addressing.
45 (sh_conditional_register_usage): Make PIC register fixed and call used
46 when FDPIC is in effect.
47 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
48 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
49 sh_get_fdpic_reg_initial_val): New functions.
50 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
51 Handle -mfdpic.
52 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
53 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
54 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
55 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
56 FDPIC_SELF_SPECS.
57 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
58 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
59 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
60 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
61 constants.
62 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
63 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
64 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
65 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
66 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
67 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
68 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
69 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
70 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
71 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
72 block_move_real, block_lump_real, block_move_real_i4,
73 block_lump_real_i4): Add support for FDPIC calls.
74 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
75 call_value_pop): Adjust for new function_symbol signature.
76 * config/sh/sh.opt (-mfdpic): New option.
77 * doc/install.texi (Options specification): Document --enable-fdpic.
78 * doc/invoke.texi (SH Options): Document -mfdpic.
79
80
81 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
82
83 PR tree-optimization/65963
84 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some LSHIFT_EXPRs
85 as equivalent MULT_EXPRs.
86
87 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
88
89 PR target/67929
90 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
91 * config/arm/constraints.md (Dp): Update callsite.
92 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
93
94 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
95
96 * builtins.c (fold_builtin_load_exponent): Rename to...
97 (fold_const_builtin_load_exponent): ...this and only handle
98 constant arguments.
99 (fold_builtin_2): Update accordingly.
100 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
101
102 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
103
104 * builtins.c (fold_builtin_logb): Rename to...
105 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
106 (fold_builtin_significand): Rename to...
107 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
108 (fold_builtin_1): Update accordingly.
109
110 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
111
112 * builtins.c (fold_builtin_fmin_fmax): Delete.
113 (fold_builtin_2): Handle constant fmin and fmax arguments here.
114 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
115
116 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
117
118 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
119 for register extension into sign and zero register extension.
120 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
121 for sign and zero register extension.
122 (cortexa57_addrcost_table): Likewise.
123 (xgene1_addrcost_table): Likewise.
124
125 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
126
127 * fold-const.c (fold_minmax): Delete.
128 (fold_binary_loc): Don't call it.
129 * match.pd: Add rules previously handled by fold_minmax.
130
131 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
132
133 * builtins.c (fold_builtin_fma): Remove constant handling.
134 (fold_builtin_3): Handle constant fma arguments here.
135
136 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
137
138 * builtins.c (fold_builtin_fabs): Remove constant handling.
139 (fold_builtin_abs): Likewise.
140
141 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
142
143 * builtins.c (fold_builtin_copysign): Delete.
144 (fold_builtin_2): Handle constant copysign arguments here.
145 * match.pd: Add rules previously handled by fold_builtin_copysign.
146
147 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
148
149 * builtins.c (fold_builtin_signbit): Delete.
150 (fold_builtin_2): Handle constant signbit arguments here.
151 * match.pd: Add rules previously handled by fold_builtin_signbit.
152
153 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
154
155 * match.pd: Handle sqrt(x) cmp 0 specially.
156
157 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
158
159 * tree-vect-generic.c (expand_vector_operations_1): Check
160 optab type before using it.
161
162 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
163
164 * config/aarch64/aarch64-protos.h
165 (struct tune_params): Add autoprefetcher_model field.
166 * config/aarch64/aarch64.c: Include params.h
167 (generic_tunings): Specify autoprefetcher_model value.
168 (cortexa53_tunings): Likewise.
169 (cortexa57_tunings): Likewise.
170 (cortexa72_tunings): Likewise.
171 (thunderx_tunings): Likewise.
172 (xgene1_tunings): Likewise.
173 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
174 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
175 (aarch64_override_options_internal): Set
176 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
177
178 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
179
180 * builtins.c (fold_builtin_exponent): Delete.
181 (fold_builtin_2): Handle constant expN arguments here.
182 * match.pd: Fold expN(logN(x)) -> x.
183
184 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
185
186 * builtins.c (fold_builtin_powi): Delete.
187 (fold_builtin_2): Handle constant powi arguments here.
188 * match.pd: Add rules previously handled by fold_builtin_powi.
189
190 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
191
192 * builtins.c (fold_builtin_pow): Delete in favor of...
193 (fold_const_builtin_pow): ...this new function. Only handle constant
194 arguments.
195 (fold_builtin_2): Update accordingly.
196 * match.pd: Add rules previously handled by fold_builtin_pow.
197
198 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
199
200 * builtins.c (fold_builtin_hypot): Delete.
201 (fold_builtin_2): Handle constant hypot arguments here.
202 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
203 hypot(x, x) to fabs(x)*sqrt(2).
204
205 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
206
207 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
208 instead of make_ssa_name if not yet in SSA form.
209
210 2015-10-27 Richard Biener <rguenther@suse.de>
211
212 * cfg.c (free_edge): Add function argument and use it instead of cfun.
213 (clear_edges): Likewise.
214 * cfg.h (clear_edges): Adjust prototype.
215 * cfgexpand.c (pass_expand::execute): Adjust.
216 * cfgloop.c (release_recorded_exits): Add function argument and use
217 it instead of cfun.
218 * cfgloop.h (release_recorded_exits): Adjust prototype.
219 (loops_state_satisfies_p): Add overload with function argument.
220 (loops_state_set): Likewise.
221 (loops_state_clear): Likewise.
222 (struct loop_iterator): Add function argument to constructor
223 and iterator and use it instead of cfun.
224 (FOR_EACH_LOOP_FN): New macro.
225 (loop_optimizer_finalize): Add overload with function argument.
226 * loop-init.c (loop_optimizer_init): Adjust.
227 (fix_loop_structure): Likewise.
228 (loop_optimizer_finaliz): Add function argument and use it
229 instead of cfun.
230 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
231 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
232 * cgraph.c (release_function_body): Do not push/pop cfun.
233 * final.c (rest_of_clean_state): Adjust.
234 * graphite.c (graphite_finalize): Likewise.
235 * tree-ssa-copy.c (fini_copy_prop): Likewise.
236 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
237 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
238 (tree_unroll_loops_completely): Likewise.
239 (pass_complete_unrolli::execute): Likewise.
240 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
241 Add function argument and use it instead of cfun.
242 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
243 Adjust prototype.
244 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
245 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
246 instead of cfun.
247 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
248 * tree-ssanames.c (fini_ssanames): Add function argument and use it
249 instead of cfun.
250 * tree-ssanames.c (fini_ssanames): Adjust prototype.
251 * tree-vrp.c (execute_vrp): Adjust.
252 * value-prof.c (free_histograms): Add function argument and use it
253 instead of cfun.
254 * value-prof.h (free_histograms): Adjust prototype.
255
256 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
257
258 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
259 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
260 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
261
262 2015-10-27 Tom de Vries <tom@codesourcery.com>
263
264 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
265 field_type.
266
267 2015-10-27 Bin Cheng <bin.cheng@arm.com>
268
269 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
270 (inv_can_prop_to_addr_use): New function.
271 (record_use): Call can_prop_to_addr_uses, set the new field.
272 (get_inv_cost): Count cost if inv can't be propagated into its
273 address uses.
274
275 2015-10-26 Doug Evans <dje@google.com>
276
277 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
278
279 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
280
281 * match.pd (fold_widened_comparison): Apply simplifications to all
282 integral types.
283
284 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
285
286 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
287 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
288 * doc/tm.texi: Regenerated.
289 * reorg.c (dbr_schedule): Use new hook.
290 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
291
292 2015-10-26 Jeff Law <law@redhat.com>
293
294 PR tree-optimization/68013
295 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
296 Make sure the first block in the path is in VISITED_BBs.
297
298 2015-10-26 Richard Biener <rguenther@suse.de>
299 Dominik Vogt <vogt@linux.vnet.ibm.com>
300
301 PR middle-end/67443
302 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
303 Properly prune ref->ref for accesses outside of ref.
304
305 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
306
307 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
308 new statements to be inserted if inplace. Allow calls to have
309 nonempty sequences.
310
311 2015-10-26 Richard Biener <rguenther@suse.de>
312
313 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
314 (do_valueize): New function.
315 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
316 replace_uses_by.
317 * tree-ssa-threadedge.c: Remove builtins.h include, include
318 gimple-fold.h
319 (fold_assignment_stmt): Remove.
320 (threadedge_valueize): New function.
321 (record_temporary_equivalences_from_stmts): Use
322 gimple_fold_stmt_to_constant_1, note additional cleanup
323 opportunities.
324
325 2015-10-26 Richard Biener <rguenther@suse.de>
326
327 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
328 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
329
330 2015-10-26 Alan Hayward <alan.hayward@arm.com>
331
332 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
333 VEC_COND_EXPR types.
334
335 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
336
337 * auto-inc-dec.c (insert_move_insn_before): Delete.
338 (attempt_change): Remember to cost the simple move in the
339 FORM_PRE_ADD and FORM_POST_ADD cases.
340
341 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
342
343 PR target/68091
344 * config/sh/sh.c (sh_vector_mode_supported_p): Use
345 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
346
347 2015-10-26 Tom de Vries <tom@codesourcery.com>
348
349 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
350 factored out of ...
351 (intra_create_variable_infos): ... here.
352
353 2015-10-26 Tom de Vries <tom@codesourcery.com>
354
355 * tree-ssa-structalias.c (intra_create_variable_infos): Add
356 restrict_pointer_p and recursive_restrict_p variables.
357
358 2015-10-26 Tom de Vries <tom@codesourcery.com>
359
360 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
361 get_vi_for_tree call.
362
363 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
364
365 PR middle-end/67989
366 * optabs.c (expand_atomic_compare_and_swap): Handle case when
367 ptarget_oval or ptarget_bool are const0_rtx.
368
369 2015-10-26 Christian Bruel <christian.bruel@st.com>
370
371 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
372 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
373 * cp/method.c (implicitly_declare_fn): Likewise.
374 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
375 * java/class.c (add_method_1): Likewise.
376
377 2015-10-26 Richard Biener <rguenther@suse.de>
378
379 * alloc-pool.h (base_pool_allocator): Use placement new.
380 (base_pool_allocator::remove): Likewise. Compute size outside of
381 flag_checking.
382
383 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
384
385 * builtins.c (do_real_to_int_conversion): New function.
386 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
387 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
388 arguments here.
389 * match.pd: Add rules previously handled by fold_fixed_mathfn
390 and fold_builtin_int_roundingfn.
391
392 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
393
394 * match.pd: Use macros to define built-in operator lists.
395
396 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
397 Richard Biener <rguenther@suse.de>
398
399 * genmatch.c (dt_simplify::gen): Skip captures that are
400 part of the result.
401 (parser::parse_expr): Allow captures in results too.
402 * builtins.c (fold_builtin_cexp): Delete.
403 (fold_builtin_1): Handle constant cexp arguments here.
404 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
405
406 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
407
408 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
409 conditional compilation.
410 (base_pool_allocator::remove): Use flag_checking.
411
412 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
413
414 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
415
416 PR middle-end/68079
417 * dojump.c (do_compare_and_jump): Canonicalize both function and
418 method types.
419
420 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
421
422 PR target/68084
423 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
424 for =@ccae.
425
426 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
427
428 PR ipa/pr67600
429 * ipa-polymorphic-call.c
430 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
431 instance offset with offset of outer type.
432
433 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
434
435 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
436
437 2015-10-23 Caroline Tice <cmtice@google.com>
438
439 (from Richard Biener
440 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
441 call to iterative_hash_host_wide_int.
442
443 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
444
445 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
446 Define as yes.
447
448 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
449
450 * tree-vect-generic.c (expand_vector_operations_1): Check
451 optab exists before use it.
452
453 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
454
455 * tree-vect-generic.c (expand_vector_condition): Avoid
456 uninitialized variable warning.
457
458 2015-10-23 Jeff Law <law@redhat.com>
459
460 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
461 here. Instead...
462 (execute_todo): Call it here.
463 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
464 statistics
465 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
466
467 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
468 Szabolcs Nagy <szabolcs.nagy@arm.com>
469
470 * config.gcc (enable_secureplt): Add *-linux*-musl*.
471
472 2015-10-23 Jeff Law <law@redhat.com>
473
474 PR tree-optimization/67830
475 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
476 Explicitly verify the mask has no bits outside the type of
477 the innermost operands.
478
479 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
480 Szabolcs Nagy <szabolcs.nagy@arm.com>
481
482 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
483 (MUSL_DYNAMIC_LINKER64): Define.
484 (GNU_USER_DYNAMIC_LINKER32): Update.
485 (GNU_USER_DYNAMIC_LINKER64): Update.
486 (CHOOSE_DYNAMIC_LINKER): Update.
487
488 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
489 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
490 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
491 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
492 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
493 (CHOOSE_DYNAMIC_LINKER): Update.
494 (INCLUDE_DEFAULTS): Redefine.
495
496 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
497
498 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
499
500 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
501 comparing addresses.
502
503 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
504
505 * fold-const.c (operand_equal_p): Handle matching of vector
506 constructors.
507
508 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
509
510 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
511
512 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
513 Andrew Pinski <apinski@cavium.com>
514
515 PR rtl-optimization/67736
516 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
517 of gen_lowpart.
518
519 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
520
521 PR middle-end/68066
522 * tree.c (build_truth_vector_type): Support BLK mode
523 returned for boolean vector.
524
525 2015-10-23 Alan Hayward <alan.hayward@arm.com>
526
527 PR tree-optimization/65947
528 * tree-vect-loop.c
529 (vect_is_simple_reduction_1): Find condition reductions.
530 (vect_model_reduction_cost): Add condition reduction costs.
531 (get_initial_def_for_reduction): Add condition reduction initial var.
532 (vect_create_epilog_for_reduction): Add condition reduction epilog.
533 (vectorizable_reduction): Condition reduction support.
534 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
535 * doc/sourcebuild.texi (Vector-specific attributes): Document
536 vect_max_reduc
537
538 2015-10-23 Richard Biener <rguenther@suse.de>
539
540 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
541 and builtins.def.
542
543 2015-10-23 Richard Biener <rguenther@suse.de>
544 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
545
546 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
547 into (A ^ B) - B to match.pd
548 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
549
550 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
551 New simplifier.
552 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
553 New simplifier.
554 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
555 New simplifier.
556 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
557 New simplifier.
558 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
559 INTEGER_CST@1)): New simplifier.
560
561 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
562
563 * builtins.c (integer_valued_real_p): Move to fold-const.c.
564 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
565 (fold_builtin_ceil, fold_builtin_round): Delete.
566 (fold_builtin_1): Handle constant trunc, floor, ceil and round
567 arguments here.
568 * convert.c (convert_to_real): Remove narrowing of rounding
569 functions.
570 * fold-const.h (integer_valued_real_unary_p)
571 (integer_valued_real_binary_p, integer_valued_real_call_p)
572 (integer_valued_real_single_p, integer_valued_real_p): Declare.
573 * fold-const.c (tree_single_nonnegative_warnv_p): Move
574 name_registered_for_update_p check to SSA_NAME case statement.
575 Don't call tree_simple_nonnegative_warnv_p for SSA names.
576 (integer_valued_real_unary_p, integer_valued_real_binary_p)
577 (integer_valued_real_call_p, integer_valued_real_single_p)
578 (integer_valued_real_invalid_p): New functions.
579 (integer_valued_real_p): Move from fold-const.c and rework
580 to call the functions above. Handle SSA names.
581 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
582 * gimple-fold.c (gimple_assign_integer_valued_real_p)
583 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
584 (gimple_stmt_integer_valued_real_p): New functions.
585 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
586 Fold f(x)->x for the same f if x is known to be integer-valued.
587 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
588 the result. Canonicalize floor(x) as trunc(x) if x is
589 nonnegative.
590
591 2015-10-23 Tom de Vries <tom@codesourcery.com>
592
593 * tree-ssa-structalias.c (intra_create_variable_infos): Use
594 make_constraint_from.
595
596 2015-10-23 Tom de Vries <tom@codesourcery.com>
597
598 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
599 setting of is_full_var in case of a single field.
600
601 2015-10-22 Martin Sebor <msebor@redhat.com>
602
603 PR driver/68043
604 * config/i386/i386.opt: Add missing periods to the ends of sentences.
605 * config/msp430/msp430.opt: Same.
606
607 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
608
609 * doc/extend.exp (Global Register Variables): Rewrite.
610
611 2015-10-22 Jeff Law <law@redhat.com>
612
613 * genattrtab.c (main): If we do not have any annul-true or annul-false
614 slots, then write out a dummy eligible_for_annul_true or
615 eligible_for_annul_false as needed.
616
617 2015-10-22 Nick Clifton <nickc@redhat.com>
618
619 * config/msp430/msp430.opt: Add -msilicon-errata and
620 -msilicon-errata-warn.
621 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
622 assembler.
623 * doc/invoke.texi: Document new options.
624
625 2015-10-22 Richard Biener <rguenther@suse.de>
626
627 PR tree-optimization/58497
628 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
629 (expand_vector_operations_1): Use it. Lower operations on
630 all uniform vectors to scalar operations if the HW supports it.
631
632 2015-10-22 Richard Biener <rguenther@suse.de>
633
634 PR tree-optimization/19049
635 PR tree-optimization/65962
636 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
637 to strided accesses if single-element interleaving doesn't work.
638
639 2015-10-22 Richard Biener <rguenther@suse.de>
640
641 PR middle-end/68046
642 PR middle-end/61893
643 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
644 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
645 (expand_unop): Likewise.
646
647 2015-10-22 Richard Biener <rguenther@suse.de>
648
649 * fold-const.c (fold_addr_of_array_ref_difference): Properly
650 convert operands before folding a MINUS_EXPR.
651 (fold_binary_loc): Move simplification of MINUS_EXPR on
652 converted POINTER_PLUS_EXPRs ...
653 * match.pd: ... here.
654
655 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
656
657 * builtins.c (fold_builtin_tan): Delete.
658 (fold_builtin_1): Handle constant tan arguments here.
659 * match.pd: Simplify (tan (atan x)) to x.
660
661 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
662
663 * builtins.c (fold_builtin_cproj): Delete.
664 (fold_builtin_1): Handle constant arguments here.
665 (build_complex_cproj): Move and rename to...
666 * tree.c: (build_complex_inf): ...this.
667 * tree.h (build_complex_inf): Declare.
668 * match.pd: Fold cproj(x)->x if x has no infinity.
669 Use build_complex_inf for existing cproj rules.
670
671 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
672
673 PR target/68015
674 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
675 already have a comparison result.
676
677 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
678
679 PR target/63304
680 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
681 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
682 (aarch64_classify_address): Likewise.
683 (aarch64_secondary_reload): Likewise.
684 (aarch64_override_options_after_change_1): Adjust.
685 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
686 Use aarch64_nopcrelative_literal_loads.
687 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
688 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
689 Declare.
690
691 2015-10-21 Martin Sebor <msebor@redhat.com>
692
693 PR driver/68043
694 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
695 (print_filtered_help): Reference aliased option's name and encourage
696 readers to use it in preference to the alias if the former is not
697 documented. Mention when using an option is diagnosed.
698 * gcc.c (display_help): End each sentence with a period.
699
700 * common.opt: End each sentence that describes an option with
701 a period.
702 * config/aarch64/aarch64.opt: Same.
703 * config/alpha/alpha.opt: Same.
704 * config/arc/arc.opt: Same.
705 * config/arm/arm.opt: Same.
706 * config/avr/avr.opt: Same.
707 * config/bfin/bfin.opt: Same.
708 * config/c6x/c6x.opt: Same.
709 * config/cr16/cr16.opt: Same.
710 * config/cris/cris.opt: Same.
711 * config/cris/linux.opt: Same.
712 * config/darwin.opt: Same.
713 * config/epiphany/epiphany.opt: Same.
714 * config/fr30/fr30.opt: Same.
715 * config/frv/frv.opt: Same.
716 * config/ft32/ft32.opt: Same.
717 * config/g.opt: Same.
718 * config/h8300/h8300.opt: Same.
719 * config/i386/cygming.opt: Same.
720 * config/i386/djgpp.opt: Same.
721 * config/i386/i386.opt: Same.
722 * config/i386/interix.opt: Same.
723 * config/i386/mingw-w64.opt: Same.
724 * config/i386/mingw.opt: Same.
725 * config/ia64/ia64.opt: Same.
726 * config/ia64/ilp32.opt: Same.
727 * config/iq2000/iq2000.opt: Same.
728 * config/linux.opt: Same.
729 * config/lm32/lm32.opt: Same.
730 * config/lynx.opt: Same.
731 * config/m32c/m32c.opt: Same.
732 * config/m32r/m32r.opt: Same.
733 * config/m68k/ieee.opt: Same.
734 * config/m68k/m68k.opt: Same.
735 * config/mcore/mcore.opt: Same.
736 * config/mep/mep.opt: Same.
737 * config/microblaze/microblaze.opt: Same.
738 * config/mips/mips.opt: Same.
739 * config/mmix/mmix.opt: Same.
740 * config/mn10300/mn10300.opt: Same.
741 * config/moxie/moxie.opt: Same.
742 * config/msp430/msp430.opt: Same.
743 * config/nios2/elf.opt: Same.
744 * config/nios2/nios2.opt: Same.
745 * config/nvptx/nvptx.opt: Same.
746 * config/pa/pa-hpux.opt: Same.
747 * config/pa/pa-hpux1010.opt: Same.
748 * config/pa/pa-hpux1111.opt: Same.
749 * config/pa/pa-hpux1131.opt: Same.
750 * config/pa/pa.opt: Same.
751 * config/pa/pa64-hpux.opt: Same.
752 * config/pdp11/pdp11.opt: Same.
753 * config/rl78/rl78.opt: Same.
754 * config/rs6000/476.opt: Same.
755 * config/rs6000/aix64.opt: Same.
756 * config/rs6000/darwin.opt: Same.
757 * config/rs6000/linux64.opt: Same.
758 * config/rs6000/rs6000.opt: Same.
759 * config/rs6000/sysv4.opt: Same.
760 * config/s390/s390.opt: Same.
761 * config/s390/tpf.opt: Same.
762 * config/sh/sh.opt: Same.
763 * config/sol2.opt: Same.
764 * config/sparc/long-double-switch.opt: Same.
765 * config/sparc/sparc.opt: Same.
766 * config/spu/spu.opt: Same.
767 * config/stormy16/stormy16.opt: Same.
768 * config/tilegx/tilegx.opt: Same.
769 * config/tilepro/tilepro.opt: Same.
770 * config/v850/v850.opt: Same.
771 * config/vax/vax.opt: Same.
772 * config/visium/visium.opt: Same.
773 * config/vms/vms.opt: Same.
774 * config/vxworks.opt: Same.
775 * config/xtensa/xtensa.opt: Same.
776
777 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
778 Sebastian Pop <s.pop@samsung.com>
779
780 * graphite-scop-detection.c (parameter_index_in_region): Update call to
781 invariant_in_sese_p_rec.
782 * graphite-sese-to-poly.c (extract_affine): Same.
783 * sese.c (invariant_in_sese_p_rec): Pass in an extra
784 parameter has_vdefs.
785 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
786 variable depends on virtual definitions in the current region.
787 * sese.h (invariant_in_sese_p_rec): Update declaration.
788
789 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
790 Sebastian Pop <s.pop@samsung.com>
791
792 * graphite-scop-detection.c (build_scops): Do not handle scops
793 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
794 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
795
796 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
797
798 * config.in: Regenerate.
799 * configure: Regenerate.
800 * configure.ac (CHECKING_P): Define.
801 * system.h: Use CHECKING_P.
802
803 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
804
805 PR ipa/67056
806 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
807 is negative we don't know the type.
808 (check_stmt_for_type_change): Skip constructors of non-polymorphic
809 types as those won't help devirutalization.
810
811 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
812
813 * fold-const.c (operand_equal_p): Add code matching empty constructors.
814
815 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
816
817 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
818 comments.
819 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
820 Add comments on sign of the result.
821 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
822 Recurse on operand #1 instead of operand #0.
823 <CEIL_MOD_EXPR>: Do not recurse.
824 <ROUND_MOD_EXPR>: Likewise.
825
826 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
827
828 * cfgrtl.c (pass_free_cfg::execute): Adjust.
829 * final.c (dbr_sequence_length): Always define.
830 (shorten_branches): Adjust.
831 * genattr-common.c (main): Always define DELAY_SLOTS.
832 * genattr.c (main): Unconditionally declare functions and define
833 macros related to delay slots.
834 * genattrtab.c (write_eligible_delay): Adjust.
835 (main): Always write out delay slot functions.
836 * opts.c (default_options_table): Adjust.
837 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
838 (redirect_with_delay_list_safe_p): Likewise.
839 (fill_simple_delay_slots): Likewise.
840 (fill_slots_from_thread): Likewise.
841 (make_return_insns): Likewise.
842 (dbr_schedule): Likewise.
843 (rest_of_handle_delay_slots): Likewise.
844 (pass_delay_slots::gate): Likewise.
845 * toplev.c (process_options): Likewise.
846
847 2015-10-21 Richard Henderson <rth@redhat.com>
848
849 * targhooks.c (default_addr_space_pointer_mode): Remove check
850 for generic address space.
851 (default_addr_space_address_mode): Likewise.
852 (default_addr_space_valid_pointer_mode): Likewise.
853 (default_addr_space_legitimate_address_p): Likewise.
854 (default_addr_space_legitimize_address): Likewise.
855 * target.def (addr_space.pointer_mode): Update documentation
856 of default behavior.
857 (addr_space.address_mode): Likewise.
858 * tm.texi: Update.
859
860 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
861 address spaces.
862
863 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
864
865 * builtins.c (fold_builtin_cabs): Delete.
866 (fold_builtin_1): Update accordingly. Handle constant arguments here.
867 * match.pd: Add rules previously handled by fold_builtin_cabs.
868
869 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
870
871 * fold-const.h (fold_strip_sign_ops): Delete.
872 * fold-const.c (fold_strip_sign_ops): Likewise.
873 (fold_unary_loc, fold_binary_loc): Remove calls to it.
874 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
875 (fold_builtin_ccos): Delete.
876 (fold_builtin_pow): Don't call fold_strip_sign_ops.
877 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
878 Remove fndecl argument.
879 (fold_builtin_1): Update calls accordingly. Handle constant
880 cos, cosh, ccos and ccosh here.
881
882 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
883
884 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
885 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
886 * common.opt (fssa-backprop): New option.
887 * fold-const.h (negate_mathfn_p): Declare.
888 * fold-const.c (negate_mathfn_p): Make public.
889 * timevar.def (TV_TREE_BACKPROP): New.
890 * tree-pass.h (make_pass_backprop): Declare.
891 * passes.def (pass_backprop): Add.
892 * gimple-ssa-backprop.c: New file.
893
894 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
895 Sebastian Pop <s.pop@samsung.com>
896
897 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
898 Do not call create_empty_if_region_on_edge when cond_expr is true.
899 (translate_isl_ast_node_for): Check whether a guard has been generated.
900
901 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
902
903 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
904 (operator=): Removed.
905 (dr_info): Make alias_set number the last argument with default
906 value of invalid_alias_set.
907 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
908 of dr_info.
909 (rewrite_reductions_out_of_ssa): Iterate only through the
910 basic blocks which are inside region.
911 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
912 * sese.h (struct sese_l): Removed assignment operator.
913 (split_region_for_bb): Removed dead code.
914
915 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
916
917 * graphite-poly.h (struct dr_info): Removed conversion constructor.
918 (struct scop): Renamed scop::region to scop::scop_info
919 (scop_set_region): Same.
920 (SCOP_REGION): Removed
921 (SCOP_CONTEXT): Removed.
922 (POLY_SCOP_P): Removed.
923 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
924 Rename scop->region to scop->scop_info.
925 (add_parameters_to_ivs_params): Same.
926 (graphite_regenerate_ast_isl): Same.
927 * graphite-poly.c (new_scop): Same.
928 (free_scop): Same.
929 (print_scop_params): Same.
930 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
931 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
932 (dot_all_scops_1): Rename scop->region to scop->scop_info.
933 (scop_detection::nb_pbbs_in_loops): Same.
934 (find_scop_parameters): Same.
935 (try_generate_gimple_bb): Same.
936 (gather_bbs::before_dom_children): Same.
937 (gather_bbs::after_dom_children): Same.
938 (build_scops): Same.
939 * graphite-sese-to-poly.c (build_scop_scattering): Same.
940 (extract_affine_chrec): Same.
941 (extract_affine): Same.
942 (set_scop_parameter_dim): Same.
943 (build_loop_iteration_domains): Same.
944 (create_pw_aff_from_tree): Same.
945 (add_param_constraints): Same.
946 (build_scop_iteration_domain): Same.
947 (build_scop_drs): Same.
948 (analyze_drs_in_stmts): Same.
949 (insert_out_of_ssa_copy_on_edge): Same.
950 (rewrite_close_phi_out_of_ssa):Same.
951 (rewrite_reductions_out_of_ssa):Same.
952 (handle_scalar_deps_crossing_scop_limits):Same.
953 (rewrite_cross_bb_scalar_deps):Same.
954 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
955 (build_poly_scop):Same.
956 (build_alias_set): Use pointer to dr_info.
957 * graphite.c (print_graphite_scop_statistics):
958 (graphite_transform_loops):
959 * sese.h (struct sese_l): Remove conversion constructor.
960
961 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
962
963 PR middle-end/67966
964 * tree.c (verify_type): Verify that TYPE_MODE match
965 between TYPE_CANONICAL and type.
966 * expr.c (store_expr_with_bounds): Revert my previous change.
967 * expmed.c (store_bit_field_1): Revert prevoius change.
968 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
969 to match for all types.
970
971 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
972
973 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
974 nesting.
975
976 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
977
978 * doc/tm.texi: Regenerated.
979 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
980 * stor-layout.c (layout_type): Use mode to get vector mask size.
981 * target.def (get_mask_mode): New.
982 * targhooks.c (default_get_mask_mode): New.
983 * targhooks.h (default_get_mask_mode): New.
984 * gcc/tree-vect-stmts.c (get_same_sized_vectype): Add special case
985 for boolean vector.
986 * tree.c (MAX_BOOL_CACHED_PREC): New.
987 (nonstandard_boolean_type_cache): New.
988 (build_nonstandard_boolean_type): New.
989 (make_vector_type): Vector mask has no canonical type.
990 (build_truth_vector_type): New.
991 (build_same_sized_truth_vector_type): New.
992 (truth_type_for): Support vector masks.
993 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
994 (build_truth_vector_type): New.
995 (build_same_sized_truth_vector_type): New.
996 (build_nonstandard_boolean_type): New.
997 * tree-cfg.c (verify_gimple_comparison) Require boolean
998 vector type for vector comparison.
999 (verify_gimple_assign_ternary): Likewise.
1000 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
1001 condition operand.
1002 * tree-vect-stmts.c (vectorizable_condition): Use boolean
1003 vector type for vector comparison.
1004 * tree-vect-generic.c (elem_op_func): Add new operand to hold
1005 vector type.
1006 (do_unop): Adjust to modified function type.
1007 (do_binop): Likewise.
1008 (do_plus_minus): Likewise.
1009 (do_negate); Likewise.
1010 (expand_vector_piecewise): Likewise.
1011 (do_cond): Likewise.
1012 (do_compare): Use comparison instead of condition.
1013 (expand_vector_divmod): Use boolean vector type for comparison.
1014 (expand_vector_operations_1): Skip scalar mask operations.
1015
1016 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
1017
1018 * omp-low.c (simd_clone_create): Set in_other_partition
1019 for created clones.
1020
1021 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
1022
1023 * doc/extend.exp (Local Register Variables): Rewrite.
1024
1025 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
1026
1027 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
1028 and x*x in cases where the operands are sign ops. Extend these
1029 rules to handle copysign as a sign op (including for cos, cosh
1030 and pow, which already treated negate and abs as sign ops).
1031
1032 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
1033
1034 PR target/68018
1035 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
1036 for 64-bit MS_ABI targets also when default incoming stack boundary
1037 is overriden.
1038
1039 2015-10-21 Richard Biener <rguenther@suse.de>
1040
1041 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
1042 cond stmts, enhanced and split out from ...
1043 (vn_phi_eq): ... here.
1044
1045 2015-10-21 Richard Biener <rguenther@suse.de>
1046
1047 PR middle-end/68031
1048 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
1049 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
1050 (tree_single_nonnegative_warnv_p): ... here. For SSA names
1051 make sure they are not registered for update.
1052
1053 2015-10-21 Richard Biener <rguenther@suse.de>
1054
1055 PR tree-optimization/68026
1056 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
1057 unsigned VARYING values.
1058
1059 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
1060
1061 * asan.c (asan_emit_stack_protection): Don't pass local stack to
1062 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
1063 NULL and use local stack than.
1064 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
1065 in addition to __asan_init.
1066 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
1067 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
1068 * asan.h (asan_intercepted_p): Handle new string builtins.
1069 * ubsan.c (ubsan_use_new_style_p): New function.
1070 (ubsan_instrument_float_cast): If location is unknown, assign
1071 input_location to loc. Propagate loc to ubsan_create_data if
1072 ubsan_use_new_style_p returned true.
1073
1074 2015-10-21 Jeff Law <law@redhat.com>
1075
1076 * Makefile.in (OBJS): Remove sched-vis.c
1077 * sched-vis.c: Removed. Code moved into...
1078 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
1079 * rtl.h: Remove prototypes for functions now living in print-rtl.c
1080 * print-rtl.h Add prototypes for new functions in print-rtl.c.
1081 * auto-inc-dec.c: Include print-rtl.h
1082 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
1083 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
1084
1085 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
1086 ATTRIBUTE_UNUSED.
1087
1088 2015-10-21 Richard Biener <rguenther@suse.de>
1089 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1090
1091 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
1092 to match.pd.
1093 Move (a * (1 << b)) is (a << b) to match.pd.
1094 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
1095 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
1096 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
1097
1098 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
1099 New simplifier.
1100 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
1101 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
1102 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
1103 : New simplifier.
1104 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
1105 New simplifier.
1106 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
1107
1108 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
1109 Szabolcs Nagy <szabolcs.nagy@arm.com>
1110 Alan Modra <amodra@gmail.com>
1111
1112 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
1113 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
1114 (LINK_SPEC): Add %(link_secure_plt).
1115 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
1116 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
1117
1118 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
1119 Szabolcs Nagy <szabolcs.nagy@arm.com>
1120
1121 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
1122 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
1123
1124 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1125
1126 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
1127 New function.
1128 (fusion_load_store): Use it.
1129 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
1130 ldp and stp in VD modes.
1131 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
1132 (store_pair<mode>, VD): Likewise.
1133
1134 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
1135
1136 PR rtl-optimization/67609
1137 * lra-splill.c (lra_final_code_change): Don't remove all
1138 sub-registers.
1139
1140 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1141
1142 * simplify-rtx.c (simplify_binary_operation): If either operand was
1143 a constant pool reference use them if all other simplifications failed.
1144
1145 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1146
1147 * config/aarch64/aarch64.md
1148 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
1149 * config/aarch64/aarch64-simd.md
1150 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
1151 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
1152 (aarch64_fpconst_pow_of_2): New function.
1153 (aarch64_vec_fpconst_pow_of_2): Likewise.
1154 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
1155 prototype.
1156 (aarch64_vec_fpconst_pow_of_2): Likewise.
1157 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
1158 (aarch64_fp_vec_pow2): Likewise.
1159
1160 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
1161
1162 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
1163 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
1164 * config/alpha/alpha.c (alpha_function_arg_advance): Update
1165 ALPHA_ARG_SIZE usage.
1166 (alpha_arg_partial_bytes): Ditto.
1167
1168 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
1169
1170 PR target/66810
1171 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
1172 error_mark_node decls.
1173
1174 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
1175
1176 PR target/67963
1177 PR target/67985
1178 * common/config/i386/i386-common.c (ix86_handle_option): Remove
1179 OPT_miamcu handling.
1180 * config/i386/i386.c (PTA_NO_80387): New macro.
1181 (processor_alias_table): Add PTA_NO_80387 to lakemont.
1182 (ix86_option_override_internal): Update MASK_80387 from
1183 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
1184 SSE math only if 80387 is supported. Don't change
1185 MASK_FLOAT_RETURNS.
1186 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
1187 80387 is supported.
1188 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
1189 if TARGET_80387 is true and TARGET_IAMCU is false.
1190 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
1191 is true and TARGET_IAMCU_P is false.
1192
1193 2015-10-20 Richard Biener <rguenther@suse.de>
1194
1195 PR tree-optimization/68017
1196 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
1197
1198 2015-10-20 Martin Liska <mliska@suse.cz>
1199
1200 * cgraphclones.c (cgraph_node::create_virtual_clone):
1201 Verify cgraph_node.local.versionable instead of calling
1202 tree_versionable_function_p.
1203 * ipa-cp.c (determine_versionability): Save the information
1204 to ipa_node_params summary.
1205 (ipcp_versionable_function_p): Use it.
1206 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
1207 (ipcp_generate_summary): Do not compute cgraph_node
1208 versionability.
1209 * ipa-inline-analysis.c (inline_generate_summary): Compute
1210 versionability for all cgraph nodes.
1211 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
1212 ipa_node_params::versionability.
1213 * ipa-prop.h (struct ipa_node_params): Declare it.
1214
1215 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1216
1217 PR other/67868
1218 * varasm.c (assemble_variable): Move special vtv handling to..
1219 (handle_vtv_comdat_sections): .. here. New function.
1220 (output_object_block): Handle vtv sections.
1221
1222 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
1223
1224 PR target/66912
1225 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
1226
1227 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
1228
1229 * doc/extend.texi: Update documentation WRT inline functions.
1230
1231 2015-10-20 Alan Modra <amodra@gmail.com>
1232
1233 PR go/66870
1234 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
1235 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
1236 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
1237
1238 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
1239
1240 PR rtl-optimization/66790
1241 * df.h (DF_MIR): New macro.
1242 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
1243 (DF_MIR_INFO_BB): New macro.
1244 (DF_MIR_IN, DF_MIR_OUT): New macros.
1245 (struct df_mir_bb_info): New.
1246 (df_mir): New macro.
1247 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
1248 declarations.
1249 (df_mir_get_bb_info): New.
1250 * df-problems.c (struct df_mir_problem_data): New.
1251 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
1252 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
1253 df_mir_confluence_0, df_mir_confluence_n,
1254 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
1255 df_mir_bottom_dump, df_mir_verify_solution_start,
1256 df_mir_verify_solution_end): New.
1257 (problem_MIR): New.
1258 (df_mir_add_problem, df_mir_simulate_one_insn): New.
1259 * timevar.def (TV_DF_MIR): New.
1260 * ree.c: Include bitmap.h
1261 (add_removable_extension): Add an INIT_REGS parameter. Use it
1262 to skip zero-extensions that may get an uninitialized register.
1263 (find_removable_extensions): Compute must-initialized registers
1264 using the MIR dataflow problem. Update the call to
1265 add_removable_extension.
1266 (find_and_remove_re): Call df_mir_add_problem.
1267
1268 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
1269
1270 * common/config/mn10300/mn10300-common.c
1271 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
1272 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
1273
1274 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
1275
1276 * doc/extend.texi (Explicit Register Variables): Simplify and
1277 avoid unnecessary and confusion abbreviations. Update cross
1278 references.
1279 doc/implement-c.tex: Update cross reference.
1280
1281 2015-10-19 Jeff Law <law@redhat.com>
1282
1283 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
1284 that create irreducible loops unless the path elimiantes a multiway
1285 branch.
1286
1287 2015-10-19 Richard Biener <rguenther@suse.de>
1288
1289 PR tree-optimization/67975
1290 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
1291 * tree-cfg.c (extract_true_false_controlled_edges): Split out
1292 core worker from ...
1293 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
1294 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
1295 instead of block number for PHIs with two or one args.
1296 (vn_phi_eq): Compare edge predicates of PHIs that are in different
1297 blocks.
1298
1299 2015-10-19 Richard Biener <rguenther@suse.de>
1300
1301 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
1302 (gimple_stmt_nonnegative_warnv_p): Use it.
1303 * match.pd (CPROJ): New operator list.
1304 (cproj (complex ...)): Move simplifications from ...
1305 * builtins.c (fold_builtin_cproj): ... here.
1306
1307 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
1308
1309 * config/i386/i386.c (ix86_expand_vector_move): Use
1310 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
1311 alignment.
1312
1313 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
1314
1315 * doc/invoke.texi: Replace @optindex with @opindex.
1316
1317 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
1318
1319 PR target/67995
1320 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
1321 arch= is set, clear all bits in x_ix86_isa_flags, except for
1322 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
1323
1324 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
1325
1326 PR middle-end/68002
1327 * common.opt (fkeep-static-functions): New option.
1328 * doc/invoke.texi: Document it.
1329 * cgraphunit.c (cgraph_node::finalize_function): Use it.
1330
1331 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1332
1333 * sched-int.h (struct autopref_multipass_data_): Remove offset
1334 field. Add min_offset, max_offset, multi_mem_insn_p fields.
1335 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
1336 (autopref_multipass_init): Use it. Handle PARALLEL sets.
1337 (autopref_rank_data): New function.
1338 (autopref_rank_for_schedule): Use it.
1339 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
1340
1341 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
1342
1343 PR other/65800
1344 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
1345
1346 2015-10-18 Iain Sandoe <iain@codesourcery.com>
1347
1348 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
1349 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
1350 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
1351 (STANDARD_STARTFILE_PREFIX_1): New.
1352 (STANDARD_STARTFILE_PREFIX_2): New.
1353
1354 2015-10-18 Iain Sandoe <iain@codesourcery.com>
1355
1356 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
1357 (darwin_driver_init): Note a version-min when provided on the c/l.
1358 * config/darwin.h (%darwin_minversion): Remove.
1359 * config/i386/darwin.h: Likewise.
1360 * config/rs6000/darwin.h: Likewise.
1361 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
1362 rather than an arbitrary constant.
1363
1364 2015-10-18 Iain Sandoe <iain@codesourcery.com>
1365
1366 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
1367 PPC, detect conflicts between -arch and multilib settings. Detect
1368 and warn about conflicts between multiple -arch definitions.
1369
1370 2015-10-18 Iain Sandoe <iain@codesourcery.com>
1371
1372 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
1373
1374 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1375
1376 * lra-constraints.c (add_next_usage_insn): Change argument type
1377 from rtx to rtx_insn *.
1378
1379 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
1380
1381 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
1382 for Lakemont.
1383
1384 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
1385
1386 * config/tilepro/gen-mul-tables.cc: Adjust include files.
1387 * config/tilegx/mul-tables.c: Regenerate.
1388 * config/tilepro/mul-tables.c: Regenerate.
1389
1390 * config/tilegx/tilegx-c.c: Adjust include files.
1391 * config/tilegx/tilegx.c: Likewise.
1392 * config/tilepro/tilepro-c.c: Likewise.
1393 * config/tilepro/tilepro.c: Likewise.
1394 * config/aarch64/aarch64-builtins.c: Likewise.
1395 * config/aarch64/aarch64.c: Likewise.
1396 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
1397 * config/alpha/alpha.c: Likewise.
1398 * config/arc/arc.c: Likewise.
1399 * config/arm/aarch-common.c: Likewise.
1400 * config/arm/arm-builtins.c: Likewise.
1401 * config/arm/arm-c.c: Likewise.
1402 * config/arm/arm.c: Likewise.
1403 * config/avr/avr-c.c: Likewise.
1404 * config/avr/avr-devices.c: Likewise.
1405 * config/avr/avr-log.c: Likewise.
1406 * config/avr/avr.c: Likewise.
1407 * config/bfin/bfin.c: Likewise.
1408 * config/c6x/c6x.c: Likewise.
1409 * config/cr16/cr16.c: Likewise.
1410 * config/cris/cris.c: Likewise.
1411 * config/darwin-c.c: Likewise.
1412 * config/darwin-driver.c: Likewise.
1413 * config/darwin.c: Likewise.
1414 * config/default-c.c: Likewise.
1415 * config/epiphany/epiphany.c: Likewise.
1416 * config/epiphany/mode-switch-use.c: Likewise.
1417 * config/epiphany/resolve-sw-modes.c: Likewise.
1418 * config/fr30/fr30.c: Likewise.
1419 * config/frv/frv.c: Likewise.
1420 * config/ft32/ft32.c: Likewise.
1421 * config/glibc-c.c: Likewise.
1422 * config/h8300/h8300.c: Likewise.
1423 * config/i386/host-cygwin.c: Likewise.
1424 * config/i386/host-mingw32.c: Likewise.
1425 * config/i386/i386-c.c: Likewise.
1426 * config/i386/i386.c: Likewise.
1427 * config/i386/msformat-c.c: Likewise.
1428 * config/i386/winnt-cxx.c: Likewise.
1429 * config/i386/winnt-stubs.c: Likewise.
1430 * config/i386/winnt.c: Likewise.
1431 * config/ia64/ia64-c.c: Likewise.
1432 * config/ia64/ia64.c: Likewise.
1433 * config/iq2000/iq2000.c: Likewise.
1434 * config/lm32/lm32.c: Likewise.
1435 * config/m32c/m32c-pragma.c: Likewise.
1436 * config/m32c/m32c.c: Likewise.
1437 * config/m32r/m32r.c: Likewise.
1438 * config/mcore/mcore.c: Likewise.
1439 * config/mep/mep-pragma.c: Likewise.
1440 * config/mep/mep.c: Likewise.
1441 * config/microblaze/microblaze-c.c: Likewise.
1442 * config/microblaze/microblaze.c: Likewise.
1443 * config/mips/mips-tables.opt
1444 * config/mips/mips.c: Likewise.
1445 * config/mmix/mmix.c: Likewise.
1446 * config/mn10300/mn10300.c: Likewise.
1447 * config/moxie/moxie.c: Likewise.
1448 * config/msp430/msp430-c.c: Likewise.
1449 * config/msp430/msp430.c: Likewise.
1450 * config/nds32/nds32-cost.c: Likewise.
1451 * config/nds32/nds32-fp-as-gp.c: Likewise.
1452 * config/nds32/nds32-intrinsic.c: Likewise.
1453 * config/nds32/nds32-isr.c: Likewise.
1454 * config/nds32/nds32-md-auxiliary.c: Likewise.
1455 * config/nds32/nds32-memory-manipulation.c: Likewise.
1456 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1457 * config/nds32/nds32-predicates.c: Likewise.
1458 * config/nds32/nds32.c: Likewise.
1459 * config/nios2/nios2.c: Likewise.
1460 * config/nvptx/mkoffload.c: Likewise.
1461 * config/nvptx/nvptx.c: Likewise.
1462 * config/pa/pa.c: Likewise.
1463 * config/pdp11/pdp11.c: Likewise.
1464 * config/rl78/rl78-c.c: Likewise.
1465 * config/rl78/rl78.c: Likewise.
1466 * config/rs6000/host-darwin.c: Likewise.
1467 * config/rs6000/rs6000-c.c: Likewise.
1468 * config/rs6000/rs6000-linux.c: Likewise.
1469 * config/rs6000/rs6000.c: Likewise.
1470 * config/rx/rx.c: Likewise.
1471 * config/s390/s390-c.c: Likewise.
1472 * config/s390/s390.c: Likewise.
1473 * config/sh/sh-c.c: Likewise.
1474 * config/sh/sh-mem.cc: Likewise.
1475 * config/sh/sh.c: Likewise.
1476 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
1477 * config/sh/sh_treg_combine.cc: Likewise.
1478 * config/sol2-c.c: Likewise.
1479 * config/sol2-cxx.c: Likewise.
1480 * config/sol2-stubs.c: Likewise.
1481 * config/sol2.c: Likewise.
1482 * config/sparc/sparc-c.c: Likewise.
1483 * config/sparc/sparc.c: Likewise.
1484 * config/spu/spu-c.c: Likewise.
1485 * config/spu/spu.c: Likewise.
1486 * config/stormy16/stormy16.c: Likewise.
1487 * config/v850/v850-c.c: Likewise.
1488 * config/v850/v850.c: Likewise.
1489 * config/vax/vax.c: Likewise.
1490 * config/visium/visium.c: Likewise.
1491 * config/vms/vms-c.c: Likewise.
1492 * config/vms/vms.c: Likewise.
1493 * config/vxworks.c: Likewise.
1494 * config/winnt-c.c: Likewise.
1495 * config/xtensa/xtensa.c: Likewise.
1496
1497 2015-10-16 Christian Bruel <christian.bruel@st.com>
1498
1499 PR target/67745
1500 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
1501 (FUNCTION_BOUNDARY_P): New macro:
1502 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
1503 New hook.
1504 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
1505 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
1506 * gcc/target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
1507 * gcc/function.c (allocate_struct_function): Call
1508 relayout_function hook.
1509 * gcc/passes.c (rest_of_decl_compilation): Likewise.
1510
1511 2015-10-16 Christian Bruel <christian.bruel@st.com>
1512
1513 PR target/67745
1514 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
1515 * config/arm/arm.c (arm_option_override_internal): Call
1516 arm_override_options_after_change_1.
1517 (arm_override_options_after_change): New function.
1518 (arm_override_options_after_change_1): Likewise.
1519 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
1520
1521 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1522
1523 Revert:
1524 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
1525 empty constructors.
1526
1527 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
1528
1529 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
1530 argument is an ADDR_EXPR.
1531
1532 2015-10-16 Richard Biener <rguenther@suse.de>
1533
1534 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
1535 and get rid of force_gimple_operand_gsi.
1536 (gimple_fold_builtin_memory_chk): Likewise.
1537 (gimple_fold_builtin_stxcpy_chk): Likewise.
1538 (rewrite_to_defined_overflow): Likewise.
1539 (gimple_convert_to_ptrofftype): New function.
1540 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
1541
1542 2015-10-16 Richard Biener <rguenther@suse.de>
1543
1544 * tree-nested.h (build_addr): Adjust prototype.
1545 * tree-nested.c (build_addr): Remove context argument and use
1546 mark_addressable.
1547 (get_static_chain): Adjust calls to build_addr.
1548 (convert_nl_goto_reference): Likewise.
1549 (convert_tramp_reference_op): Likewise.
1550 (finalize_nesting_tree_1): Likewise.
1551 * value-prof.c (gimple_ic): Likewise.
1552 * gimple-low.c (lower_builtin_setjmp): Likewise.
1553 * tree-parloops.c (take_address_of): Likewise.
1554 (create_call_for_reduction_1): Likewise.
1555 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
1556 (gimple_gen_ic_func_profiler): Likewise.
1557
1558 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1559
1560 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
1561 empty constructors.
1562
1563 2015-10-16 Michael Collison <michael.collison@linaro.org>
1564 Andrew Pinski <andrew.pinski@caviumnetworks.com>
1565
1566 * match.pd ((x < y) && (x < z) -> x < min (y,z),
1567 (x > y) and (x > z) -> x > max (y,z))
1568
1569 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
1570 Szabolcs Nagy <szabolcs.nagy@arm.com>
1571
1572 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
1573 (DYNAMIC_LINKER): Renamed to ...
1574 (GLIBC_DYNAMIC_LINKER): This.
1575 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
1576
1577 2015-10-15 Marek Polacek <polacek@redhat.com>
1578
1579 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
1580 gimple_call_builtin instead of is_gimple_call.
1581
1582 2015-10-15 Richard Biener <rguenther@suse.de>
1583
1584 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
1585
1586 2015-10-15 Richard Biener <rguenther@suse.de>
1587
1588 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
1589 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
1590 * tree-vect-loop.c (get_initial_def_for_induction): Drop
1591 use of force_gimple_operand in favor of gimple_build.
1592 Use vect_get_new_ssa_name.
1593 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
1594 (vectorizable_mask_load_store): Likewise.
1595 (vectorizable_call): Likewise.
1596 (vectorizable_store): Likewise.
1597 (vectorizable_load): Likewise.
1598 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
1599
1600 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
1601
1602 PR tree-optimization/67945
1603 * tree-pass.h (PROP_gimple_opt_math): New property flag.
1604 * generic-match-head.c (canonicalize_math_p): New function.
1605 * gimple-match-head.c: Include tree-pass.h.
1606 (canonicalize_math_p): New function.
1607 * match.pd: Group math built-in rules into simplifications
1608 and canonicalizations. Guard the latter with canonicalize_math_p.
1609 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
1610 PROP_gimple_opt_math property.
1611
1612 2015-10-15 Marek Polacek <polacek@redhat.com>
1613
1614 PR tree-optimization/67953
1615 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
1616
1617 2015-10-15 Jiong Wang <jiong.wang@arm.com>
1618
1619 * config.gcc: Recognize "." in architecture base name for AArch64.
1620
1621 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
1622
1623 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
1624 ROUND_UP macro.
1625 * config/mips/mips.c (mips_setup_incoming_varargs): Use
1626 ROUND_DOWN to calculate off.
1627 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
1628 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
1629 rounded_size.
1630
1631 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
1632
1633 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
1634
1635 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
1636 Torvald Riegel <triegel@redhat.com>
1637
1638 PR target/67281
1639 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
1640 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
1641 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
1642 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
1643 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
1644 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
1645 trechkpt, treclaim, tsr, ttest): New define_expands.
1646 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1647 __TM_FENCE__ for htm.
1648 * doc/extend.texi: Update documentation for htm builtins.
1649
1650 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
1651
1652 PR target/67967
1653 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
1654 REG_CFA_EXPRESSION to aligned SSE stores.
1655
1656 2015-10-14 Jeff Law <law@redhat.com>
1657
1658 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
1659 num_threaded_edges for successful FSM threads too.
1660
1661 2015-10-14 Richard Biener <rguenther@suse.de>
1662
1663 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
1664 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
1665 (vect_get_vec_def_for_operand): Remove unused parameter.
1666 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
1667 (vect_create_epilog_for_reduction): Likewise.
1668 (vectorizable_reduction): Likewise.
1669 (vectorizable_live_operation): Likewise.
1670 * tree-vect-patterns.c (type_conversion_p): Likewise.
1671 (vect_recog_vector_vector_shift_pattern): Likewise.
1672 (check_bool_pattern): Likewise.
1673 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
1674 (vect_analyze_slp_cost_1): Likewise.
1675 * tree-vect-stmts.c (process_use): Likewise.
1676 (vect_get_vec_def_for_operand): Do not handle reductions.
1677 (vect_get_vec_defs): Adjust.
1678 (vectorizable_mask_load_store): Likewise.
1679 (vectorizable_call): Likewise.
1680 (vectorizable_simd_clone_call): Likewise.
1681 (vect_get_loop_based_defs): Likewise.
1682 (vectorizable_conversion): Likewise.
1683 (vectorizable_assignment): Likewise.
1684 (vectorizable_shift): Likewise.
1685 (vectorizable_operation): Likewise.
1686 (vectorizable_store): Likewise.
1687 (vectorizable_load): Likewise.
1688 (vect_is_simple_cond): Likewise.
1689 (vectorizable_condition): Likewise.
1690 (vect_is_simple_use): Remove unused parameters.
1691 (vect_is_simple_use_1): Adjust and rename.
1692
1693 2015-10-14 Richard Biener <rguenther@suse.de>
1694
1695 PR tree-optimization/67915
1696 * match.pd: Handle comparisons of addresses of STRING_CSTs.
1697 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
1698 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
1699 stmt folding in favor of GIMPLE one.
1700
1701 2015-10-14 Marek Polacek <polacek@redhat.com>
1702
1703 PR tree-optimization/67815
1704 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
1705 (reassociate_bb): Call it.
1706
1707 2015-10-14 Richard Biener <rguenther@suse.de>
1708
1709 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1710 Reset info at start.
1711 (vect_analyze_group_access_1): Add debug print.
1712 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
1713 (vect_compute_single_scalar_iteration_cost): ... to this.
1714 (vect_analyze_loop_2): Adjust.
1715 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
1716 * tree-vectorizer.h: ... here.
1717 (add_stmt_info_to_vec): Remove.
1718 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
1719
1720 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
1721
1722 * targhooks.c (default_target_option_pragma_parse): Do not warn if
1723 called on behalf of "#pragma GCC pop_options".
1724
1725 2015-10-14 Tom de Vries <tom@codesourcery.com>
1726
1727 * cfganal.c (verify_no_unreachable_blocks): New function.
1728 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
1729 verify_no_unreachable_blocks.
1730 cfganal.h (verify_no_unreachable_blocks): Declare.
1731
1732 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
1733
1734 * common.opt: Add flag_checking.
1735 * system.h (CHECKING_P): Define.
1736
1737 2015-10-13 Jakub Jelinek <jakub@redhat.com>
1738 Aldy Hernandez <aldyh@redhat.com>
1739 Ilya Verbin <ilya.verbin@intel.com>
1740
1741 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
1742 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
1743 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
1744 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
1745 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
1746 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
1747 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
1748 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
1749 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
1750 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
1751 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
1752 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
1753 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
1754 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
1755 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
1756 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
1757 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
1758 (struct cgraph_simd_clone_arg): Adjust comment.
1759 * coretypes.h (struct gomp_ordered): New forward decl.
1760 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
1761 set critical clauses to it.
1762 (gimple_build_omp_ordered): Return gomp_ordered * instead of
1763 gimple *. Add CLAUSES argument, set ordered clauses to it.
1764 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
1765 GIMPLE_OMP_ORDERED.
1766 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
1767 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
1768 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
1769 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
1770 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
1771 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
1772 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
1773 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
1774 renumber
1775 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
1776 (gomp_critical): Add clauses field.
1777 (gomp_ordered): New struct.
1778 (is_a_helper <gomp_ordered *>::test): New inline.
1779 (gimple_build_omp_critical): Add CLAUSES argument.
1780 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
1781 instead of gimple *.
1782 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
1783 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
1784 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
1785 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
1786 inline functions.
1787 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
1788 (dump_gimple_omp_target): Handle enter data and exit data.
1789 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
1790 (dump_gimple_omp_critical): Print clauses.
1791 (dump_gimple_omp_ordered): New function.
1792 (dump_gimple_omp_task): Handle taskloop.
1793 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
1794 GIMPLE_OMP_ORDERED.
1795 * gimple-walk.c (walk_gimple_op): Walk clauses on
1796 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
1797 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
1798 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
1799 (struct gimplify_omp_ctx): Add loop_iter_var,
1800 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
1801 and target_firstprivatize_array_bases fields.
1802 (delete_omp_context): Release loop_iter_var.
1803 (gimplify_bind_expr): Handle ORT_NONE.
1804 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
1805 ORT_COMBINED_TARGET.
1806 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
1807 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
1808 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
1809 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
1810 ctx->target_map_scalars_firstprivate.
1811 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
1812 data sharing clauses. For data sharing clause with VLA decl
1813 on omp target/target data don't add firstprivate for the pointer.
1814 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
1815 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
1816 the addition of ORT_COMBINED_TARGET.
1817 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
1818 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
1819 pointers as zero length array sections and
1820 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
1821 data sharing.
1822 (omp_check_private): Handle omp_member_access_dummy_var vars.
1823 (find_decl_expr): New function.
1824 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
1825 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
1826 Handle OMP_CLAUSE_GANG separately. Handle
1827 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
1828 clauses. Diagnose linear clause on combined
1829 distribute {, parallel for} simd construct, unless it is the loop
1830 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
1831 Handle map clauses with COMPONENT_REF. Initialize
1832 ctx->target_map_scalars_firstprivate,
1833 ctx->target_firstprivatize_array_bases and
1834 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
1835 linear clause even to target region if combined. Remove
1836 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
1837 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
1838 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
1839 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
1840 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
1841 For linear clause on worksharing loop combined with parallel add
1842 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
1843 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
1844 omp_member_access_dummy_var vars. Add lastprivate clause to outer
1845 taskloop if needed.
1846 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
1847 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
1848 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
1849 GOMP_MAP_POINTER.
1850 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
1851 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
1852 in target body. Handle removal of struct mapping if struct is not
1853 seen in target body. Remove GOMP_MAP_STRUCT map clause on
1854 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
1855 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
1856 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
1857 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
1858 clause appear together. Handle
1859 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
1860 clause if it has map-type-modifier always. Handle
1861 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
1862 clauses.
1863 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
1864 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
1865 callers.
1866 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
1867 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
1868 iterators in doacross loops.
1869 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
1870 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
1871 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
1872 for the addition of ORT_COMBINED_TARGET.
1873 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
1874 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
1875 and OMP_TARGET_EXIT_DATA.
1876 (gimplify_omp_ordered): New function.
1877 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
1878 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
1879 Gimplify clauses on OMP_CRITICAL.
1880 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
1881 expand_GOMP_SIMD_ORDERED_END): New functions.
1882 * internal-fn.def (GOMP_SIMD_ORDERED_START,
1883 GOMP_SIMD_ORDERED_END): New internal functions.
1884 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
1885 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
1886 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
1887 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
1888 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
1889 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
1890 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
1891 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
1892 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
1893 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
1894 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
1895 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
1896 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
1897 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
1898 adjust type.
1899 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
1900 GOMP_target_data_41, adjust type.
1901 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
1902 GOMP_target_update_41, adjust type.
1903 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
1904 field.
1905 (struct omp_for_data): Add ordered and simd_schedule fields.
1906 (omp_member_access_dummy_var, unshare_and_remap_1,
1907 unshare_and_remap, is_taskloop_ctx): New functions.
1908 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
1909 (extract_omp_for_data): Handle taskloops and doacross loops
1910 and simd schedule modifier.
1911 (omp_adjust_chunk_size): New function.
1912 (get_ws_args_for): Use it.
1913 (lookup_sfield): Change first argument to splay_tree_key,
1914 add overload with first argument tree.
1915 (maybe_lookup_field): Likewise.
1916 (use_pointer_for_field): Handle omp_member_access_dummy_var.
1917 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
1918 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
1919 (build_outer_var_ref): Add LASTPRIVATE argument, handle
1920 taskloops and omp_member_access_dummy_var vars.
1921 (build_sender_ref): Change first argument to splay_tree_key,
1922 add overload with first argument tree.
1923 (install_var_field): For mask & 8 use &DECL_UID as key instead
1924 of the tree itself.
1925 (fixup_child_record_type): Const qualify *.omp_data_i.
1926 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
1927 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
1928 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
1929 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
1930 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
1931 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
1932 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
1933 kinds.
1934 (add_taskreg_looptemp_clauses): New function.
1935 (scan_omp_parallel): Use it.
1936 (scan_omp_task): Likewise.
1937 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
1938 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
1939 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
1940 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
1941 sandwiched taskloop constructs. Type check
1942 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
1943 region. Diagnose depend(source) or depend(sink:...) on
1944 target constructs or task/taskloop.
1945 (handle_simd_reference): Use get_name.
1946 (lower_rec_input_clauses): Likewise. Ignore all
1947 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
1948 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
1949 before passing it to omp_clause_{default,copy}_ctor. Handle
1950 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
1951 lastprivate_firstprivate flag for linear that needs copyin and
1952 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
1953 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
1954 on taskloop lookup decl in outer context. Pass true to
1955 build_outer_var_ref lastprivate argument. Handle
1956 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
1957 outside of outer taskloop for.
1958 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
1959 OMP_CLAUSE_DECL.
1960 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
1961 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
1962 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
1963 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
1964 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
1965 abstract origin. Handle omp_member_access_dummy_var vars.
1966 (expand_parallel_call): Use expand_omp_build_assign.
1967 (expand_task_call): Handle taskloop construct expansion. Add
1968 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
1969 integers. Add priority argument to GOMP_task* calls. Or in
1970 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
1971 GOMP_task call.
1972 (expand_omp_build_assign): Add prototype. Add AFTER
1973 argument, if true emit statements after *GSI_P and continue linking.
1974 (expand_omp_taskreg): Adjust expand_task_call caller.
1975 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
1976 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
1977 zero_iter2_bb and first_zero_iter2 arguments, handle computation
1978 of counts even for ordered loops.
1979 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
1980 (expand_omp_ordered_source, expand_omp_ordered_sink,
1981 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
1982 functions.
1983 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
1984 clauses on worksharing loop. Handle DOACROSS loop expansion.
1985 (expand_omp_for_static_nochunk): Handle linear clauses on
1986 worksharing loop. Adjust expand_omp_for_init_counts
1987 callers.
1988 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
1989 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
1990 expand_omp_for_init_counts callers.
1991 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
1992 functions.
1993 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
1994 Handle doacross loops.
1995 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1996 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
1997 GOMP_target_{41,update_41,enter_exit_data} libcalls.
1998 (expand_omp): Don't expand ordered depend constructs here, record
1999 ord_stmt instead for later expand_omp_for_generic.
2000 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
2001 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
2002 clause as stand-alone directive.
2003 (lower_omp_ordered_clauses): New function.
2004 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
2005 don't lower anything.
2006 (lower_omp_for_lastprivate): Use last _looptemp_ clause
2007 on taskloop for comparison.
2008 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
2009 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
2010 expansion for linear adjustments.
2011 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
2012 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
2013 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
2014 to tree * pointing to the stmt's clauses.
2015 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
2016 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
2017 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
2018 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
2019 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
2020 clauses. Always use short kind and 8-bit align shift.
2021 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
2022 (struct lower_omp_regimplify_operands_data): New type.
2023 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
2024 New functions.
2025 (lower_omp_1): Use lower_omp_regimplify_operands instead of
2026 gimple_regimplify_operands.
2027 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
2028 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
2029 clause as stand-alone directive.
2030 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
2031 (simd_clone_mangle): Mangle the various linear kinds
2032 per the new ABI.
2033 (simd_clone_adjust_argument_types): Handle
2034 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
2035 (simd_clone_init_simd_arrays): Don't do anything for uval.
2036 (simd_clone_adjust): Handle
2037 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
2038 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
2039 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
2040 * omp-low.h (omp_member_access_dummy_var): New prototype.
2041 * passes.def (pass_simduid_cleanup): Schedule another copy of the
2042 pass after all optimizations.
2043 * tree.c (omp_clause_code_name): Add entries for
2044 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
2045 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
2046 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
2047 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
2048 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
2049 OMP_CLAUSE_REDUCTION 5 arguments. Handle
2050 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
2051 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
2052 clauses.
2053 * tree-core.h (enum omp_clause_linear_kind): New.
2054 (struct tree_omp_clause): Change type of map_kind
2055 from unsigned char to unsigned int. Add subcode.if_modifier
2056 and subcode.linear_kind fields.
2057 (enum omp_clause_code): Add
2058 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
2059 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
2060 (OMP_CLAUSE_REDUCTION): Document
2061 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
2062 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
2063 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
2064 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
2065 operand.
2066 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
2067 operand.
2068 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
2069 codes.
2070 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
2071 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
2072 char.
2073 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
2074 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
2075 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
2076 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
2077 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
2078 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
2079 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
2080 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
2081 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
2082 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
2083 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
2084 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
2085 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
2086 * tree-inline.c (remap_gimple_stmt): Handle clauses on
2087 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
2088 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
2089 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
2090 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
2091 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
2092 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
2093 (convert_local_omp_clauses): Likewise.
2094 * tree-pretty-print.c (dump_omp_clause): Handle
2095 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
2096 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
2097 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
2098 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
2099 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
2100 GOMP_MAP_FORCE_DEALLOC. Handle
2101 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
2102 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
2103 and clauses on OMP_ORDERED and OMP_CRITICAL.
2104 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
2105 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
2106 (vectorize_loops): Adjust comments.
2107 (pass_simduid_cleanup::execute): Likewise.
2108 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
2109 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
2110 * wide-int.h (wi::gcd): New.
2111
2112 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
2113
2114 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
2115 (ix86_function_arg_advance): Ditto.
2116 (ix86_function_arg): Ditto.
2117 (ix86_gimplify_va_arg): Ditto.
2118 (ix86_class_max_nregs): Ditto.
2119 (inline_memory_move_cost): Ditto.
2120 (ix86_set_reg_reg_cost): Ditto.
2121 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
2122
2123 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
2124
2125 PR middle-end/67912
2126 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
2127
2128 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
2129
2130 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
2131 ROUND_UP macro and UNITS_PER_WORD * 2.
2132 * config/sparc/sparc.c (sparc_compute_frame_size):
2133 Use ROUND_UP and ROUND_DOWN macros where applicable.
2134 (function_arg_record_value, function_arg_record_value_1)
2135 (function_arg_record_value_1): Ditto.
2136 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
2137 alignment to double-word.
2138 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
2139 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
2140 rounded_size.
2141
2142 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
2143
2144 * gcc/rtl.h (print_insn): Fix prototype.
2145
2146 2015-10-13 Tom de Vries <tom@codesourcery.com>
2147
2148 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
2149 -1. Add assert that returned entry matches phi argument.
2150 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
2151 free_stmt_vec_info_vec ...
2152 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
2153 with -1.
2154
2155 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
2156
2157 PR tree-optimization/67909, 67947
2158 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
2159 really skip the inner loop.
2160
2161 2015-10-13 Jeff Law <law@redhat.com>
2162
2163 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2164 Allow single block jump threading paths.
2165
2166 2015-10-13 Tom de Vries <tom@codesourcery.com>
2167
2168 PR tree-optimization/67476
2169 * doc/invoke.texi (@item parloops-schedule): New item.
2170 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
2171 * tree-parloops.c: Include params-enum.h.
2172 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
2173
2174 2015-10-13 Tom de Vries <tom@codesourcery.com>
2175
2176 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
2177 * params-enum.h: New file.
2178 * opts.c (handle_param): Handle case that param arg is a string.
2179 * params-list.h: Handle DEFPARAMENUM5 in params.def.
2180 * params.c (find_param): New function, factored out of ...
2181 (set_param_value): ... here.
2182 (param_string_value_p): New function.
2183 * params.h (struct param_info): Add value_names field.
2184 (find_param, param_string_value_p): Declare.
2185
2186 2015-10-13 Tom de Vries <tom@codesourcery.com>
2187
2188 PR tree-optimization/67476
2189 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
2190
2191 2015-10-13 Richard Biener <rguenther@suse.de>
2192
2193 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
2194 the data dependence vector.
2195 (vect_peeling_hash_insert): Get the peeling hash table as argument.
2196 (vect_peeling_hash_get_lowest_cost): Likewise.
2197 (vect_enhance_data_refs_alignment): Adjust.
2198 (struct _vect_peel_info, struct _vect_peel_extended_info,
2199 struct peel_info_hasher): Move from ...
2200 * tree-vectorizer.h: ... here.
2201 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
2202 (LOOP_VINFO_PEELING_HTAB): Likewise.
2203 (struct _loop_vec_info): Remove min_profitable_iters and
2204 peeling_htab members.
2205 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
2206 here.
2207 (destroy_loop_vec_info): Adjust.
2208 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
2209 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
2210 to estimate alias versioning cost.
2211 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
2212
2213 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
2214
2215 * real.h (real_isinteger): Declare.
2216 * real.c (real_isinteger): New function.
2217 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
2218 if y is an even integer.
2219
2220 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2221
2222 revert:
2223 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2224 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
2225 counts when these are more informative.
2226
2227 2015-10-12 Jeff Law <law@redhat.com>
2228
2229 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
2230 (fsm_find_control_stmt_paths): Change name of first argument to
2231 more accurately relfect what it really is. Handle simplification
2232 of GIMPLE_COND after finding a thread path for NAME.
2233 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
2234 nontrivial conditions to be handled by FSM threader.
2235 (thread_through_normal_block): Extract the name to looup via
2236 FSM threader from COND_EXPR.
2237
2238 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
2239 restriction that traced SSA_NAME is a user variable.
2240
2241 2015-10-12 Tom de Vries <tom@codesourcery.com>
2242
2243 PR tree-optimization/67476
2244 * omp-low.c (expand_omp_for_generic): Add missing phis.
2245
2246 2015-10-12 Tom de Vries <tom@codesourcery.com>
2247
2248 PR tree-optimization/67476
2249 * omp-low.c (expand_omp_for_generic): Handle simple latch.
2250
2251 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
2252
2253 * config/aarch64/aarch64-simd-builtins.def: Update builtins
2254 tables: add tbl3 and tbx4.
2255 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
2256 (aarch64_tbx4v8qi): New.
2257 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
2258 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
2259 Rewrite using builtin functions.
2260 * config/aarch64/iterators.md (UNSPEC_TBX): New.
2261
2262 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
2263
2264 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
2265 ROUND_UP macro.
2266 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
2267 Use ROUND_UP and ROUND_DOWN macros where applicable.
2268 (rs6000_darwin64_record_arg_flush): Ditto.
2269 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
2270 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
2271 rounded_size.
2272
2273 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
2274
2275 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
2276 (AARCH64_ROUND_DOWN): Ditto.
2277 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
2278
2279 2015-10-12 Richard Biener <rguenther@suse.de>
2280
2281 PR ipa/67783
2282 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
2283 code that analyzes IVs on each stmt but in a cheaper way avoiding
2284 quadratic behavior.
2285
2286 2015-10-12 Nick Clifton <nickc@redhat.com>
2287
2288 * config/msp430/msp430.c (msp430_mcu_names): Rename to
2289 msp430_mcu_data, add fields for ISA and hardware multiply
2290 support. Import latest data from the devices.csv file.
2291 (msp430_override_option): Use the data from the new array.
2292 (msp430_use_f5_series_hwmult): Likewise.
2293 (use_32bit_hwmult): Likewise.
2294 (msp430_no_hwmult): Likewise.
2295 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
2296 MCU names.
2297 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
2298 not recognised then no hardware multiply support is assumed and
2299 that only the MSP430 ISA is allowed.
2300
2301 2015-10-12 Richard Biener <rguenther@suse.de>
2302
2303 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
2304 related code ...
2305 (vect_analyze_loop_2): ... here.
2306
2307 2015-10-11 Jason Merrill <jason@redhat.com>
2308
2309 PR c++/67557
2310 * expr.c (store_field): Call store_constructor directly when
2311 storing a CONSTRUCTOR into a target smaller than its type.
2312 Guard against unsafe bitwise copy.
2313
2314 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2315
2316 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
2317 counts when these are more informative.
2318
2319 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2320
2321 * tree-profile.c (tree_profiling): Do not clear
2322 pure/const when not instrumenting.
2323 (pass tree_profile): Add dump of symtab.
2324
2325 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2326
2327 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
2328 addresses.
2329 (fold_addr_of_array_ref_difference): Likewise.
2330
2331 2015-10-11 Jeff Law <law@redhat.com>
2332
2333 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
2334 tree-ssa-threadbackward.c.
2335 (fsm_find_control_statement_thread_paths): Likewise.
2336 (thread_through_normal_block): Break out FSM bits and move them
2337 into a new function in tree-ssa-threadbackward.c. Call new function
2338 instead.
2339 Minimize header file usage.
2340 * tree-ssa-threadbackward.h: New file.
2341 * tree-ssa-threadbackward.c: Likewise.
2342 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
2343
2344 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
2345
2346 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
2347
2348 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
2349
2350 PR rtl-optimization/67864
2351 * gcc/bb-reorder (reorder_basic_blocks_simple): Prefer existing
2352 fallthrough edges for conditional jumps. Don't sort candidate
2353 edges if not optimizing for speed.
2354
2355 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2356
2357 * defaults.h (REVERSE_CONDITION): New default definition.
2358 * jump.c (reversed_comparison_code_parts): Adjust.
2359
2360 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2361
2362 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
2363 check HARD_FRAME_POINTER_IS_ARG_POINTER.
2364
2365 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2366
2367 * defaults.h (FRAME_ADDR_RTX): New default definition.
2368 * builtins.c (expand_builtin_return_addr): Adjust.
2369
2370 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2371
2372 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
2373 * builtins.c (expand_builtin_return_addr): Adjust.
2374
2375 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2376
2377 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
2378 * builtins.c (expand_builtin_return_addr): Adjust.
2379 * doc/tm.texi: Likewise.
2380 * doc/tm.texi.in: Likewise.
2381 * except.c (expand_builtin_unwind_init): Likewise.
2382
2383 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2384
2385 * builtins.c (expand_builtin_return_addr): Adjust.
2386 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
2387
2388 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
2389
2390 * tree.c (type_with_interoperable_signedness): New.
2391 (gimple_canonical_types_compatible_p): Use it.
2392 * tree.h (type_with_interoperable_signedness): Declare
2393
2394 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
2395
2396 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
2397 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
2398 when OEP_ADDRESS_OF is se.
2399
2400 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
2401 Sebastian Pop <s.pop@samsung.com>
2402
2403 * graphite-dependences.c (scop_get_dependences): Add dump of the
2404 data dependence graph.
2405 * graphite-poly.c (print_isl_union_map): New.
2406 (debug_isl_union_map): New.
2407 * graphite-poly.h (print_isl_union_map): Declare.
2408 (debug_isl_union_map): Declare.
2409
2410 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
2411 Sebastian Pop <s.pop@samsung.com>
2412
2413 * graphite-poly.c (print_iteration_domain): Remove verbosity.
2414 Remove OpenScop formatting.
2415 (print_iteration_domains): Same.
2416 (debug_iteration_domain): Same.
2417 (debug_iteration_domains): Same.
2418 (print_pdr): Same.
2419 (debug_pdr): Same.
2420 (dump_gbb_cases): Same.
2421 (dump_gbb_conditions): Same.
2422 (print_pdrs): Same.
2423 (debug_pdrs): Same.
2424 (print_pbb_body): Same.
2425 (print_pbb): Same.
2426 (print_scop_params): Same.
2427 (print_scop_context): Same.
2428 (print_scop): Same.
2429 (debug_pbb_domain): Same.
2430 (debug_pbb): Same.
2431 (debug_scop_context): Same.
2432 (debug_scop): Same.
2433 (debug_scop_params): Same.
2434 * graphite-poly.h: Same.
2435 * graphite.c (graphite_transform_loops): Same.
2436
2437 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2438
2439 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
2440 call that isn't needed.
2441
2442 2015-10-09 Jeff Law <law@redhat.com>
2443
2444 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
2445 rather than moving each name to the freelist individually.
2446
2447 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
2448
2449 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
2450 * frame-header-opt.c: New file.
2451 * config/mips/mips-proto.h (mips_register_frame_header_opt):
2452 Add prototype.
2453 * config/mips/mips.c (mips_compute_frame_info): Check
2454 optimize_call_stack flag.
2455 (mips_option_override): Register new frame_header_opt pass.
2456 (mips_frame_info, mips_int_mask, mips_shadow_set,
2457 machine_function): Move these types to...
2458 * config/mips/mips.h: here.
2459 (machine_function): Add does_not_use_frame_header and
2460 optimize_call_stack fields.
2461 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
2462 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
2463 Document new flags.
2464 * config/mips/mips.opt (mframe-header-opt): Add new option.
2465
2466 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
2467
2468 * config/i386/i386.c
2469 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
2470 ROUND_DOWN where applicable.
2471
2472 2015-10-09 Jeff Law <law@redhat.com>
2473
2474 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
2475 correct statement.
2476
2477 2015-10-09 Renlin Li <renlin.li@arm.com>
2478
2479 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
2480 operands[0] and operands[2].
2481 (neon_vtrn<mode>_insn): Likewise.
2482 (neon_vzip<mode>_insn): Likewise.
2483
2484 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
2485
2486 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
2487 ((X & C2) << C1): Expand to...
2488 (X {&,^,|} C2 << C1): ...This.
2489 ((X & C2) >> C1): Expand to...
2490 (X {&,^,|} C2 >> C1): ...This.
2491
2492 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
2493
2494 PR target/67895
2495 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
2496 Adjust embedded rounding/SAE specifier position.
2497 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
2498 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
2499 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
2500 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
2501 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
2502 Likewise.
2503 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
2504
2505 2015-10-09 Martin Jambor <mjambor@suse.cz>
2506
2507 tree-optimization/67794
2508 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
2509 between types of state,ents but accept original definitions as a
2510 parameter.
2511 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
2512 iterate over definitions.
2513
2514 2015-10-09 James Norris <jnorris@codesourcery.com>
2515
2516 * config/rs6000/rs6000.c (rs6000_offload_options): New.
2517 (TARGET_OFFLOAD_OPTIONS): New.
2518
2519 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
2520
2521 PR middle-end/67891
2522 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
2523
2524 PR middle-end/67766
2525 * function.c (expand_function_end): Move return value
2526 promotion past the handling of PARALLELs and CONCATs.
2527
2528 PR rtl-optimization/67828
2529 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
2530 (tree_may_unswitch_on): Don't unswitch on expressions
2531 involving undefined values.
2532
2533 2015-10-09 Richard Biener <rguenther@suse.de>
2534
2535 * genmatch.c (print_operand): Fix formatting.
2536 (dt_node::append_simplify): Warn for multiple simplifiers
2537 that match the same pattern.
2538 * match.pd (log (exp @0)): Remove duplicates.
2539
2540 2015-10-09 Richard Biener <rguenth@suse.de>
2541
2542 PR target/67366
2543 * gimple-fold.c (optabs-query.h): Include
2544 (gimple_fold_builtin_memory_op): Allow unaligned stores
2545 when movmisalign_optabs are available.
2546
2547 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2548
2549 PR target/67366
2550 * config/arm/arm.md (movmisalign<mode>): New.
2551 * config/arm/iterators.md (HSI): New.
2552
2553 2015-10-09 Richard Biener <rguenther@suse.de>
2554
2555 PR tree-optimization/67891
2556 * gimple-match.h (gimple_simplified_result_is_gimple_val):
2557 New helper.
2558 (gimple_resimplify1): Declare.
2559 (gimple_resimplify2): Likewise.
2560 (gimple_resimplify3): Likewise.
2561 * gimple-match-head.c (gimple_resimplify1): Export.
2562 (gimple_resimplify2): Likewise.
2563 (gimple_resimplify3): Likewise.
2564 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
2565 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
2566 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
2567 to avoid creating stmts without VN info.
2568
2569 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
2570
2571 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
2572 of availability.
2573
2574 2015-10-08 Jeff Law <law@redhat.com>
2575
2576 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
2577 and release_ssa_name in two places.
2578 (gimple_stringop_fixed_value): Similarly.
2579
2580 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
2581 release_defs.
2582
2583 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
2584 unlink_stmt_vdef and release_ssa_name_fn.
2585
2586 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
2587 release_defs.
2588
2589 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
2590
2591 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
2592 SSE register save area to 16 bytes only if the incoming stack
2593 boundary is no less than 16 bytes.
2594
2595 2015-10-08 Jeff Law <law@redhat.com>
2596
2597 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
2598 release_ssa_name. Fix typo in comment.
2599
2600 2015-10-08 Nathan Sidwell <nathan@acm.org>
2601
2602 * config/nvptx/nvptx.h (struct machine_function): Add comment.
2603 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
2604 may return pointer as well as in memory.
2605 (nvptx_output_return): Likewise.
2606
2607 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
2608
2609 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
2610 (fold_builtin_1): Update accordingly. Handle constant arguments here.
2611 * match.pd: Add rules previously handled by fold_builtin_sqrt
2612 and fold_builtin_cbrt.
2613
2614 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
2615
2616 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
2617 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
2618 * fold-const.h (tree_unary_nonnegative_warnv_p)
2619 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
2620 (tree_expr_nonnegative_warnv_p): Add depth parameters.
2621 * fold-const.c: Include gimple-fold.h and params.h.
2622 (tree_ssa_name_nonnegative_warnv_p): New function.
2623 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
2624 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
2625 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
2626 Add a depth parameter and increment it for recursive calls to
2627 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
2628 to handle SSA names.
2629 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
2630 (gimple_stmt_nonnegative_warnv_p): Declare.
2631 * tree-vrp.c (remove_range_assertions): Remove assert that condition
2632 cannot be proven false.
2633 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
2634 (gimple_stmt_nonnegative_warnv_p): Move to...
2635 * gimple-fold.c: ...here. Add depth parameters and pass them
2636 down to the tree routines. Accept statements that aren't
2637 assignments or calls but just return false for them.
2638 (gimple_val_nonnegative_real_p): Delete.
2639 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
2640 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
2641 Check HONOR_NANs first.
2642
2643 2015-10-08 Martin Jambor <mjambor@suse.cz>
2644
2645 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
2646 unnecessary MIN.
2647
2648 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
2649
2650 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
2651 in the tail of outer-loop.
2652
2653 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
2654
2655 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
2656 return UI_NONE.
2657
2658 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
2659
2660 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
2661 "cfghooks.h", add prototypes for introduced new functions.
2662 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
2663 checks on ability of loop unswitching to tree_unswitch_single_loop;
2664 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
2665 on innermost loop check.
2666 (tree_unswitch_single_loop): Add all required checks on ability of
2667 loop unswitching under zero recursive level guard.
2668 (tree_unswitch_outer_loop): New function.
2669 (find_loop_guard): Likewise.
2670 (empty_bb_without_guard_p): Likewise.
2671 (used_outside_loop_p): Likewise.
2672 (get_vop_from_header): Likewise.
2673 (hoist_guard): Likewise.
2674 (check_exit_phi): Likewise.
2675
2676 2015-10-08 Marek Polacek <polacek@redhat.com>
2677
2678 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
2679 ops element.
2680
2681 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2682
2683 PR c/65345
2684 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
2685 create_tmp_var_raw instead of create_tmp_var.
2686
2687 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
2688
2689 * expr.c (store_expr_with_bounds): Handle aggregate moves from
2690 BLKmode.
2691 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
2692 to define gimple type system; compare aggregates only by size.
2693
2694 2015-10-07 Jeff Law <law@redhat.com>
2695
2696 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
2697 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
2698 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
2699 unnecessarily.
2700
2701 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
2702 Sebastian Pop <s.pop@samsung.com>
2703
2704 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
2705 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
2706 (generate_isl_schedule): Same.
2707 * graphite-optimize-isl.c (scop_get_domains): Same.
2708 (apply_schedule_map_to_scop): Same.
2709 * graphite-poly.c (print_iteration_domains): Same.
2710 (remove_gbbs_in_scop): Same.
2711 (new_scop): Same.
2712 (free_scop): Same.
2713 (print_scop): Same.
2714 * graphite-poly.h (struct scop): Rename bbs to pbbs.
2715 (SCOP_BBS): Remove.
2716 * graphite-scop-detection.c (compare_bb_depths): Remove.
2717 (graphite_sort_dominated_info): Remove.
2718 (try_generate_gimple_bb): Move out of scop_detection.
2719 (all_non_dominated_preds_marked_p): Remove.
2720 (build_scop_bbs_1): Remove.
2721 (build_scop_bbs): Remove.
2722 (nb_pbbs_in_loops): Do not use SCOP_BBS.
2723 (find_scop_parameters): Same.
2724 (sese_dom_walker): Rename gather_bbs.
2725 (before_dom_children): Call try_generate_gimple_bb and collect gbb
2726 and pbb.
2727 (build_scops): Call gather_bbs.
2728 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
2729 (add_conditions_to_constraints): Same.
2730 (build_scop_iteration_domain): Same.
2731 (build_scop_drs): Same.
2732 (new_pbb_from_pbb): Same.
2733 * sese.c (new_sese_info): Create bbs.
2734 * sese.h (struct sese_info_t): Add bbs.
2735
2736 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
2737
2738 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
2739 encoding in 64-bit mode.
2740
2741 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
2742
2743 PR target/66697
2744 * config/i386/i386.c (ix86_option_override_internal): Always use
2745 8-byte minimum stack boundary in 64-bit mode.
2746 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
2747 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
2748 Add a REG_CFA_EXPRESSION note if needed.
2749 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
2750 (ix86_handle_force_align_arg_pointer_attribute): New.
2751 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
2752 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
2753 with ix86_handle_force_align_arg_pointer_attribute.
2754 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
2755
2756 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
2757 Sebastian Pop <s.pop@samsung.com>
2758
2759 * graphite-scop-detection.c (parameter_index_in_region): Remove
2760 use of SESE_ADD_PARAMS.
2761 (find_scop_parameters): Same.
2762 * sese.c (new_sese_info): Same.
2763 * sese.h (struct sese_info_t): Remove add_params.
2764 (SESE_ADD_PARAMS): Remove.
2765
2766 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
2767 Sebastian Pop <s.pop@samsung.com>
2768
2769 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
2770 an sese_info_p.
2771 (copy_def): Same.
2772 (copy_internal_parameters): Same.
2773 (translate_isl_ast_to_gimple): Use an sese_l.
2774 (build_iv_mapping): Same.
2775 * graphite-poly.c (new_sese): Rename new_sese_info.
2776 (free_sese): Rename free_sese_info.
2777 * graphite-poly.h (struct scop): Use an sese_info_p.
2778 (scop_set_region): Same.
2779 * graphite-scop-detection.c (struct sese_l): Moved...
2780 (get_entry_bb): Moved...
2781 (get_exit_bb): Moved...
2782 (parameter_index_in_region_1): Use an sese_info_p.
2783 (parameter_index_in_region): Same.
2784 (scan_tree_for_params): Same.
2785 (find_params_in_bb): Same.
2786 (sese_dom_walker): Use an sese_l.
2787 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
2788 (reduction_phi_p): Same.
2789 (parameter_index_in_region_1): Use an sese_info_p.
2790 (propagate_expr_outside_region): Use an sese_l.
2791 * graphite.c: Replace uses of SCOP_REGION.
2792 * sese.c (sese_record_loop): Use an sese_info_p.
2793 (build_sese_loop_nests): Same.
2794 (sese_build_liveouts_use): Same.
2795 (sese_build_liveouts_bb): Same.
2796 (sese_build_liveouts_bb): Same.
2797 (sese_bad_liveouts_use): Same.
2798 (sese_reset_debug_liveouts_bb): Same.
2799 (sese_build_liveouts): Same.
2800 (new_sese): Renamed new_sese_info.
2801 (free_sese): Renamed free_sese_info.
2802 (set_rename): Use an sese_info_p.
2803 (graphite_copy_stmts_from_block): Same.
2804 (copy_bb_and_scalar_dependences): Same.
2805 (outermost_loop_in_sese_1): Use an sese_l.
2806 (outermost_loop_in_sese): Same.
2807 (if_region_set_false_region): Use an sese_info_p.
2808 (move_sese_in_condition): Same.
2809 (scalar_evolution_in_region): Use an sese_l.
2810 * sese.h (struct sese_l): ... here.
2811 (SESE_ENTRY): Remove.
2812 (SESE_ENTRY_BB): Remove.
2813 (SESE_EXIT): Remove.
2814 (SESE_EXIT_BB): Remove.
2815 (sese_contains_loop): Use an sese_info_p.
2816 (sese_nb_params): Same.
2817 (bb_in_sese_p): Use an sese_l.
2818 (stmt_in_sese_p): Same.
2819 (defined_in_sese_p): Same.
2820 (loop_in_sese_p): Same.
2821 (sese_loop_depth): Same.
2822 (struct ifsese_s): Use an sese_info_p.
2823 (gbb_loop_at_index): Use an sese_l.
2824 (nb_common_loops): Same.
2825 (scev_analyzable_p): Same.
2826
2827 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
2828
2829 * config/i386/i386.c (ix86_conditional_register_usage): Use
2830 CALL_USED_REGISTERS_MASK.
2831 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
2832
2833 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
2834
2835 PR bootstrap/67385
2836 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
2837 * configure: Regenerated.
2838
2839 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
2840
2841 PR target/67850
2842 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
2843 (ix86_set_current_function): This.
2844 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
2845
2846 2015-10-07 Richard Biener <rguenther@suse.de>
2847
2848 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
2849 (vinfo_for_stmt): Adjust.
2850 (set_vinfo_for_stmt): Likewise.
2851 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
2852 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
2853 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
2854 of inner loop.
2855 (vect_analyze_loop_1): Remove.
2856 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
2857 inner loop when vectorizing an outer loop by splitting out from ...
2858 (vect_analyze_loop_form): ... here.
2859
2860 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2861
2862 PR c/65345
2863 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
2864 Use create_tmp_var_raw instead of create_tmp_var.
2865
2866 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
2867
2868 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
2869 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
2870 * real.c (CACHED_FRACTION): New helper macro.
2871 (dconst_third_ptr): Use it.
2872 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
2873 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
2874 dconst_sixth.
2875 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
2876
2877 2015-10-06 Jeff Law <law@redhat.com>
2878
2879 PR tree-optimization/67816
2880 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
2881 from remove_jump_threads_starting_at. Accept an edge rather than
2882 a basic block.
2883 * tree-ssa-threadupdate.c (removed_edges): New hash table.
2884 (remove_jump_threads_including): Note edges that get removed from
2885 the CFG for later pruning of jump threading paths including them.
2886 (thread_through_all_blocks): Remove paths which include edges that
2887 have been removed.
2888 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
2889 on each outgoing edges when optimizing away a control statement.
2890
2891 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2892
2893 * reorg.c (emit_delay_sequence): Store list of delay slot insns
2894 in a vector instead of rtx_insn_list.
2895 (add_to_delay_list): Likewise.
2896 (delete_from_delay_slot): Likewise.
2897 (optimize_skip): Likewise.
2898 (redirect_with_delay_list_safe_p): Likewise.
2899 (check_annul_list_true_false): Likewise.
2900 (steal_delay_list_from_target): Likewise.
2901 (steal_delay_list_from_fallthrough): Likewise.
2902 (redundant_insn): Likewise.
2903 (fill_simple_delay_slots): Likewise.
2904 (fill_slots_from_thread): Likewise.
2905 (fill_eager_delay_slots): Likewise.
2906 (relax_delay_slots): Likewise.
2907
2908 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
2909
2910 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
2911 For -mgpopt=local, also exclude unintialized common symbols.
2912 * doc/invoke.texi (Nios II Options): Document the change.
2913
2914 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
2915
2916 * config/aarch64/iterators.md (vwcore): Add missing cases for
2917 V4HF/V8HF modes.
2918
2919 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
2920 Sebastian Pop <s.pop@samsung.com>
2921
2922 * graphite-poly.c (new_scop): Initialize drs.
2923 * graphite-poly.h (struct dr_info): New.
2924 (struct scop): Add drs.
2925 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
2926 (pdr_add_memory_accesses): Same.
2927 (build_poly_dr): Same.
2928 (build_alias_set): Same.
2929 (build_scop_drs): Same.
2930 (build_pbb_drs): Remove.
2931 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
2932 * tree-data-ref.h (data_reference): Remove alias_set.
2933
2934 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
2935 Sebastian Pop <s.pop@samsung.com>
2936
2937 * graphite-poly.c (free_data_refs_aux): Remove.
2938 (free_gimple_poly_bb): Do not call free_data_refs_aux.
2939 * graphite-poly.h (struct base_alias_pair): Remove.
2940 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
2941 base_alias_pair and dr->aux.
2942 (build_alias_set): Same.
2943 * tree-data-ref.c (create_data_ref): Initialize alias_set.
2944 * tree-data-ref.h (data_reference): Add alias_set.
2945
2946 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
2947 Sebastian Pop <s.pop@samsung.com>
2948
2949 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
2950 Do not set PDR_BASE_OBJECT_SET.
2951 * graphite-poly.h (poly_dr): Same.
2952 (PDR_BASE_OBJECT_SET): Remove.
2953 (new_poly_dr): Update decl.
2954 * graphite-sese-to-poly.c (build_poly_dr): Update call to
2955 new_poly_dr.
2956 (write_alias_graph_to_ascii_dimacs): Remove.
2957 (write_alias_graph_to_ascii_dot): Remove.
2958 (write_alias_graph_to_ascii_ecc): Remove.
2959 (dr_same_base_object_p): Remove.
2960 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
2961 code.
2962 (build_base_obj_set_for_drs): Remove.
2963 (dump_alias_graphs): Remove.
2964 (build_scop_drs): Remove dead code.
2965
2966 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
2967 Peter Bergner <bergner@vnet.ibm.com>
2968
2969 PR target/67808
2970 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
2971 allow registers, but provide insns for the combiner to create for
2972 loads from memory. Separate VSX code from non-VSX code. For
2973 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
2974 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
2975 so that registers come before memory operations. Drop support from
2976 converting DFmode to TFmode, if the DFmode value is in a GPR
2977 register.
2978 (extenddftf2_fprs): Likewise.
2979 (extenddftf2_internal): Likewise.
2980 (extenddftf2_vsx): Likewise.
2981 (extendsftf2): In the expander, only allow registers, but provide
2982 insns for the combiner to create for stores and loads.
2983
2984 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2985
2986 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
2987 from the decl parameter.
2988
2989 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
2990
2991 PR 67861
2992 * gimple-fold.c (gimple_fold_builtin): Add break after
2993 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
2994
2995 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
2996
2997 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
2998 to scop->isl_context.
2999
3000 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
3001
3002 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
3003 (output_probe_stack_range): Rotate the loop and simplify.
3004 (thumb1_expand_prologue): Tweak sorry message.
3005 * config/arm/arm.md (probe_stack): Use bare string.
3006
3007 2015-10-06 Nick Clifton <nickc@redhat.com>
3008
3009 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
3010
3011 2015-10-06 Nick Clifton <nickc@redhat.com>
3012
3013 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
3014 (ATTR_PERSIST): New constant.
3015 (msp430_data_attr): New function - verifies an attribute that only
3016 applies to variables.
3017 (msp430_attributes): Add noinit and persistent attributes.
3018 (noinit_section): New variable.
3019 (presis_section): New variable.
3020 (TARGET_ASM_INIT_SECTIONS): Define.
3021 (msp430_init_sections): New function - initialises the noinit and
3022 persist section variables.
3023 (msp430_select_section): Add support for noinit and persist
3024 attributes.
3025 (msp430_section_type_flags): Likewise.
3026 * doc/extend.texi: Document the reent, critical, wakeup, noinit
3027 and persistent attributes.
3028
3029 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
3030 Sebastian Pop <s.pop@samsung.com>
3031
3032 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
3033 (no_violations): Remove.
3034 (subtract_commutative_associative_deps): Remove.
3035 (compute_deps): Do not call subtract_commutative_associative_deps.
3036 (transform_is_safe): Remove.
3037 (graphite_legal_transform): Remove.
3038 * graphite-poly.h (graphite_legal_transform): Remove.
3039
3040 2015-10-05 Aditya Kumar <hiraditya@msn.com>
3041
3042 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
3043 which are in this region are passed so gcc_assert and remove redundant
3044 computation.
3045 * sese.c (sese_build_liveouts): Pass only those bbs which are not
3046 in region.
3047 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
3048 gcc_assert on that and remove unnecessary computation.
3049 (sese_build_liveouts_use): Same.
3050
3051 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
3052
3053 * graphite-dependences.c (scop_get_reads): Renamed scop->context
3054 to scop->param_context.
3055 (scop_get_must_writes): Same.
3056 (scop_get_may_writes): Same.
3057 (scop_get_original_schedule): Same.
3058 (scop_get_transformed_schedule): Same.
3059 (subtract_commutative_associative_deps): Same.
3060 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
3061 (generate_isl_context): Same.
3062 (generate_isl_schedule): Same.
3063 (scop_to_isl_ast): Same.
3064 (graphite_regenerate_ast_isl): Same.
3065 * graphite-optimize-isl.c (scop_get_domains): Same.
3066 (optimize_isl): Renamed scop->context to scop->param_context.
3067 * graphite-poly.c (new_poly_bb): Change the type of argument to
3068 gimple_poly_bb_p.
3069 (new_scop): Renamed scop->context to scop->param_context.
3070 (free_scop): Same.
3071 (print_scop_context): Same.
3072 * graphite-poly.h (new_poly_dr): Change the type of argument from
3073 void* to data_reference_p.
3074 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
3075 (new_poly_bb): Change the type of argument from void* to
3076 gimple_poly_bb_p.
3077 (pbb_set_black_box): Same.
3078 (struct scop): Rename context to param_context, ctx to isl_context.
3079 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
3080 Move declarations closer to assignment.
3081 (find_params_in_bb): Same.
3082 (find_scop_parameters): Same.
3083 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
3084 Global to be used for statement IDs.
3085 (isl_id_for_pbb): Use ssa_name_version_typesize.
3086 (simple_copy_phi_p): Move declarations closer to assignment.
3087 (build_pbb_scattering_polyhedrons): Same.
3088 (build_scop_scattering): Same.
3089 (isl_id_for_ssa_name): Same.
3090 (extract_affine_name): Same.
3091 (extract_affine_int): Same.
3092 (extract_affine): Same.
3093 (set_scop_parameter_dim): Use renamed member.
3094 (build_loop_iteration_domains): Same.
3095 (add_param_constraints): Same.
3096 (build_scop_iteration_domain): Same.
3097 (pdr_add_data_dimensions): Same.
3098 (build_poly_dr): Same.
3099 (build_scop_drs): Move declarations closer to assignment.
3100 (analyze_drs_in_stmts): Same.
3101 (insert_out_of_ssa_copy): Same.
3102 (insert_out_of_ssa_copy_on_edge): Same.
3103 (propagate_expr_outside_region): Same.
3104 (rewrite_phi_out_of_ssa): Same.
3105 (rewrite_degenerate_phi): Same.
3106 (rewrite_reductions_out_of_ssa): Same.
3107 (rewrite_cross_bb_scalar_dependence): Same.
3108 (handle_scalar_deps_crossing_scop_limits): Same.
3109 (rewrite_cross_bb_scalar_deps): Same.
3110 * graphite.c (graphite_transform_loops): Use renamed member.
3111
3112 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
3113
3114 PR c/65345
3115 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
3116 create_tmp_var_raw instead of create_tmp_var.
3117
3118 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3119
3120 PR c/65345
3121 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
3122 Use create_tmp_var_raw instead of create_tmp_var.
3123
3124 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
3125
3126 PR target/67849
3127 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
3128 split for upper-bank registers when target does not support
3129 AVX512VL.
3130 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
3131 split when target does not support AVX512VL.
3132
3133 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
3134
3135 PR c/65345
3136 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
3137 Adjust to use create_tmp_var_raw instead of create_tmp_var.
3138
3139 2015-10-06 Nick Clifton <nickc@redhat.com>
3140
3141 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
3142 multiplication.
3143
3144 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
3145
3146 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
3147 (case ${target}): Add znver1.
3148 * config/i386/cpuid.h(bit_CLZERO): Define.
3149 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
3150 -march=native recognize znver1 processors.
3151 * config/i386/i386-c.c (ix86_target_macros_internal): Add
3152 znver1, clzero def_and_undef.
3153 * config/i386/i386.c (struct processor_costs znver1_cost): New.
3154 (m_znver1): New definition.
3155 (m_AMD_MULTIPLE): Includes m_znver1.
3156 (processor_target_table): Add znver1 entry.
3157 (ix86_target_string) : Add clzero entry.
3158 (static const char *const cpu_names): Add znver1 entry.
3159 (ix86_option_override_internal): Add znver1 instruction sets.
3160 (PTA_CLZERO) : New definition.
3161 (ix86_option_override_internal): Handle new clzerooption.
3162 (ix86_issue_rate): Add znver1.
3163 (ix86_adjust_cost): Add znver1.
3164 (ia32_multipass_dfa_lookahead): Add znver1.
3165 (has_dispatch): Add znver1.
3166 * config/i386/i386.h (TARGET_znver1): New definition.
3167 (TARGET_CLZERO): Define.
3168 (TARGET_CLZERO_P): Define.
3169 (struct ix86_size_cost): Add TARGET_ZNVER1.
3170 (enum processor_type): Add PROCESSOR_znver1.
3171 * config/i386/i386.md (define_attr "cpu"): Add znver1.
3172 (set_attr znver1_decode): New definitions for znver1.
3173 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
3174 (mclzero): New.
3175 * config/i386/mmx.md (set_attr znver1_decode): New definitions
3176 for znver1.
3177 * config/i386/sse.md (set_attr znver1_decode): Likewise.
3178 * config/i386/x86-tune.def: Add znver1 tunings.
3179 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
3180 * gcc/doc/invoke.texi: Add details about znver1
3181
3182 2015-10-06 Richard Biener <rguenther@suse.de>
3183
3184 PR tree-optimization/67859
3185 * tree-ssa-pre.c (create_expression_by_pieces): Properly
3186 discard not inserted stmts.
3187
3188 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
3189
3190 * doc/extend.texi (Template Instantiation): Reorder options and
3191 de-emphasize -frepo.
3192 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
3193 example instead of -frepo.
3194
3195 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
3196
3197 PR c/65345
3198 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
3199 use create_tmp_var_raw rather than create_tmp_var.
3200
3201 2015-10-06 Richard Biener <rguenther@suse.de>
3202
3203 * tree-vectorizer.h (vec_info): New base class for...
3204 (_loop_vec_info): ... this and ...
3205 (_bb_vec_info): ... this.
3206 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
3207 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
3208 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
3209 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
3210 vect_destroy_datarefs): Adjust interface to take a vec_info *
3211 rather than both a loop_vec_info and a bb_vec_info argument.
3212 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
3213 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
3214 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
3215 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
3216 accordingly.
3217 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
3218 (destroy_loop_vec_info, vect_analyze_loop_2,
3219 vect_is_simple_reduction_1, get_initial_def_for_induction,
3220 vect_create_epilog_for_reduction, vectorizable_reduction,
3221 vectorizable_live_operation, vect_transform_loop): Adjust.
3222 * tree-vect-patterns.c (type_conversion_p,
3223 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
3224 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
3225 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
3226 check_bool_pattern, vect_recog_bool_pattern,
3227 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
3228 * tree-vect-slp.c (vect_get_and_check_slp_defs,
3229 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
3230 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
3231 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
3232 (new_bb_vec_info): Initialize base classs.
3233 * tree-vect-stmts.c (record_stmt_cost, process_use,
3234 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
3235 vectorizable_mask_load_store, vectorizable_call,
3236 vectorizable_simd_clone_call, vectorizable_conversion,
3237 vectorizable_assignment, vectorizable_shift,
3238 vectorizable_operation, vectorizable_store,
3239 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
3240 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
3241 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
3242
3243 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
3244
3245 PR c/65345
3246 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
3247 create_tmp_var_raw rather than create_tmp_var.
3248
3249 2015-10-05 Marek Polacek <polacek@redhat.com>
3250
3251 * tree-ssa-loop-im.c
3252 (move_computations_dom_walker::before_dom_children): Don't set
3253 SSA_NAME_ANTI_RANGE_P.
3254 * tree-ssa-phiopt.c (value_replacement): Likewise.
3255
3256 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
3257 Sebastian Pop <s.pop@samsung.com>
3258
3259 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
3260
3261 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
3262 Sebastian Pop <s.pop@samsung.com>
3263
3264 * graphite-poly.c (new_gimple_poly_bb): ... here.
3265 (free_data_refs_aux): ... here.
3266 (free_gimple_poly_bb): ... here.
3267 (remove_gbbs_in_scop): ... here.
3268 (new_scop): Call new_sese.
3269 (free_scop): Call remove_gbbs_in_scop and free_sese.
3270 * graphite-poly.h (base_alias_pair): ... here.
3271 (new_gimple_poly_bb): Declare.
3272 (free_gimple_poly_bb): Declare.
3273 * graphite-scop-detection.c (parameter_index_in_region_1):
3274 (parameter_index_in_region): ... here.
3275 (scan_tree_for_params): ... here.
3276 (find_params_in_bb): ... here.
3277 (find_scop_parameters): ... here.
3278 (build_scops): Call find_scop_parameters.
3279 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
3280 (free_scops): Move...
3281 (single_pred_cond_non_loop_exit): Move...
3282 (sese_dom_walker::before_dom_children): Move...
3283 (sese_dom_walker::after_dom_children): Move...
3284 (build_poly_scop): Move...
3285 * graphite-sese-to-poly.h (base_alias_pair): Move...
3286 * graphite.c (free_scops): ... here.
3287
3288 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
3289 Sebastian Pop <s.pop@samsung.com>
3290
3291 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
3292 (trivially_empty_bb_p): Move...
3293 (same_close_phi_node): Move...
3294 (new_gimple_poly_bb): Move...
3295 (compare_bb_depths): Move...
3296 (graphite_sort_dominated_info): Move...
3297 (remove_duplicate_close_phi): Move...
3298 (make_close_phi_nodes_unique): Move...
3299 (canonicalize_loop_closed_ssa): Move...
3300 (canonicalize_loop_closed_ssa_form): Move...
3301 (loop_ivs_can_be_represented): Move...
3302 (single_pred_cond_non_loop_exit): Move...
3303 (graphite_can_represent_init): Move...
3304 (graphite_can_represent_scev): Move...
3305 (stmt_has_simple_data_refs_p): Move...
3306 (stmt_has_side_effects): Move...
3307 (graphite_can_represent_stmt): Move...
3308 (scop_detection): ... here.
3309 (sese_dom_walker): ... and here.
3310 (build_scops): Call all moved functions.
3311 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
3312 (all_non_dominated_preds_marked_p): Move...
3313 (build_scop_bbs_1): Move...
3314 (build_scop_bbs): Move...
3315 (set_scop_parameter_dim): Move...
3316 (nb_pbbs_in_loops): Move...
3317 (build_poly_scop): Do not call all the moved functions.
3318
3319 2015-10-05 Martin Jambor <mjambor@suse.cz>
3320 Jan Hubicka <hubicka@ucw.cz>
3321
3322 * ipa-cp.c (ipcp_alignment_lattice): New type.
3323 (ipcp_param_lattices): Use the above to represent alignment.
3324 (ipcp_alignment_lattice::print): New function.
3325 (print_all_lattices): Use it to print alignment information.
3326 (ipcp_alignment_lattice::top_p): New function.
3327 (ipcp_alignment_lattice::bottom_p): Likewise.
3328 (ipcp_alignment_lattice::set_to_bottom): Likewise.
3329 (ipcp_alignment_lattice::meet_with_1): Likewise.
3330 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
3331 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
3332 (initialize_node_lattices): Likewise.
3333 (propagate_alignment_accross_jump_function): Work with the new class
3334 for alignment lattices.
3335 (propagate_constants_accross_call): Pass only the alignment lattice to
3336 propagate_alignment_accross_jump_function.
3337 (ipcp_store_alignment_results): Work with the new class for alignment
3338 lattices.
3339
3340 2015-10-05 Marek Polacek <polacek@redhat.com>
3341
3342 PR tree-optimization/67821
3343 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
3344
3345 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
3346
3347 PR other/65021
3348 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
3349 function to...
3350 (mkoffload_cleanup): ... this. Adjust all users.
3351 (maybe_unlink): Look at save_temps and verbose flags instead of
3352 debug flag.
3353 (main): Parse "-save-temps" flag.
3354 (generate_target_descr_file, generate_target_offloadend_file)
3355 (generate_host_descr_file, prepare_target_image): Pass it on.
3356 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
3357 (mkoffload_cleanup): New function.
3358 (maybe_unlink): Look at save_temps and verbose flags instead of
3359 debug flag.
3360 (main): Instead of calling utils_cleanup, register atexit handler
3361 for mkoffload_cleanup.
3362 (main): Parse "-save-temps" flag.
3363 (compile_native, main): Pass it on.
3364 * lto-wrapper.c (compile_offload_image): Likewise.
3365
3366 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3367
3368 * gimple.h (gimple_op_ptr): Require a non const gimple *.
3369 (gimple_assign_lhs_ptr): Likewise.
3370 (gimple_assign_rhs1_ptr): Likewise.
3371 (gimple_assign_rhs2_ptr): Likewise.
3372 (gimple_assign_rhs3_ptr): Likewise.
3373 (gimple_call_lhs_ptr): Likewise.
3374 (gimple_call_fn_ptr): Likewise.
3375 (gimple_call_chain_ptr): Likewise.
3376 (gimple_call_arg_ptr): Likewise.
3377 (gimple_cond_lhs_ptr): Likewise.
3378 (gimple_cond_rhs_ptr): Likewise.
3379 (gimple_switch_index_ptr): Likewise.
3380 (gimple_return_retval_ptr): Likewise.
3381
3382 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3383
3384 * gimple.h (gimple_asm_input_op_ptr): Remove.
3385 (gimple_asm_output_op_ptr): Likewise.
3386
3387 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3388
3389 * gimple.h (gimple_location_ptr): Remove.
3390 * tree-vrp.c (check_all_array_refs): Adjust.
3391
3392 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3393
3394 * tree-ssa-operands.c (build_uses): store tree * instead of
3395 tree.
3396 (finalize_ssa_uses): Adjust.
3397 (append_use): Likewise.
3398 (verify_ssa_operands): Likewise.
3399
3400 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3401
3402 * real.h (build_real_truncate): Declare.
3403 * tree.c (build_real_truncate): New function.
3404 (strip_float_extensions): Use it.
3405 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
3406 (fold_builtin_hypot, fold_builtin_pow): Likewise.
3407 * match.pd: Likewise.
3408
3409 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
3410 Jiong Wang <jiong.wang@arm.com>
3411
3412 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
3413
3414 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3415
3416 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
3417 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
3418 (aarch64_print_operand, aarch64_float_const_representable_p)
3419 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
3420 instead of REAL_VALUE_FROM_CONST_DOUBLE.
3421 * config/arc/arc.c (arc_print_operand): Likewise.
3422 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
3423 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
3424 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
3425 Likewise.
3426 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
3427 (consttable_16): Likewise.
3428 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
3429 * config/avr/avr.c (avr_print_operand): Likewise.
3430 * config/bfin/bfin.md: Likewise (in a define_split).
3431 * config/c6x/c6x.md: Likewise (in a define_split).
3432 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
3433 (cr16_print_operand): Likewise.
3434 * config/cris/cris.c (cris_print_operand): Likewise.
3435 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
3436 * config/fr30/fr30.c (fr30_print_operand): Likewise.
3437 (fr30_const_double_is_zero): Likewise.
3438 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
3439 * config/frv/frv.md: Likewise (in a define_split).
3440 * config/frv/predicates.md (int_2word_operand): Likewise.
3441 * config/h8300/h8300.c (h8300_print_operand): Likewise.
3442 * config/i386/i386.c (standard_80387_constant_p): Likewise.
3443 (ix86_print_operand, ix86_split_to_parts): Likewise.
3444 * config/i386/i386.md: Likewise (in a define_split).
3445 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
3446 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
3447 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
3448 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
3449 (print_operand): Likewise.
3450 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
3451 * config/mep/mep.md: Likewise (in define_split).
3452 * config/microblaze/microblaze.c (microblaze_const_double_ok)
3453 (print_operand): Likewise.
3454 * config/mips/mips.md (consttable_float): Likewise.
3455 * config/mmix/mmix.c (mmix_intval): Likewise.
3456 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
3457 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
3458 * config/pa/pa.c (pa_singlemove_string): Likewise.
3459 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
3460 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
3461 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
3462 (output_toc): Likewise.
3463 * config/rs6000/rs6000.md: Likewise (in define_splits).
3464 * config/rx/rx.c (rx_print_operand): Likewise.
3465 * config/s390/s390.c (s390_output_pool_entry): Likewise.
3466 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
3467 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
3468 (and also in define_splits).
3469 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
3470 (fp_high_losum_p): Likewise.
3471 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
3472 (*movsf_high): Likewise.
3473 * config/spu/spu.c (const_double_to_hwint): Likewise.
3474 * config/v850/v850.c (const_double_split): Likewise.
3475 * config/vax/vax.c (vax_float_literal): Likewise.
3476 * config/visium/visium.c (visium_expand_copysign): Likewise.
3477 * config/visium/visium.md: Likewise (in define_split).
3478 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
3479 * config/xtensa/xtensa.c (print_operand): Likewise.
3480 (xtensa_output_literal): Likewise.
3481 * cprop.c (implicit_set_cond_p): Likewise.
3482 * dwarf2out.c (insert_float): Likewise.
3483 * expmed.c (expand_mult, make_tree): Likewise.
3484 * expr.c (compress_float_constant): Likewise.
3485 * rtlanal.c (split_double): Likewise.
3486 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
3487 (simplify_const_unary_operation, simplify_binary_operation_1)
3488 (simplify_const_binary_operation): Likewise.
3489 (simplify_const_relational_operation): Likewise.
3490 * varasm.c (output_constant_pool_2): Likewise.
3491
3492 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3493
3494 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
3495 instead of CONST_DOUBLE_FROM_REAL_VALUE.
3496 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
3497 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
3498 instead of CONST_DOUBLE_FROM_REAL_VALUE.
3499 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
3500 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
3501 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
3502 (ix86_emit_swsqrtsf): Likewise.
3503 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
3504 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
3505 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
3506 * config/pa/pa.c (pa_expand_builtin): Likewise.
3507 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
3508 (rs6000_scale_v2df): Likewise.
3509 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
3510 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
3511 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
3512 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
3513 (vec_ctul): Likewise.
3514 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
3515 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
3516 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
3517 * cse.c (fold_rtx): Likewise.
3518 * emit-rtl.c (immed_double_const): Likewise (in comments).
3519 (init_emit_once): Likewise.
3520 * expr.c (compress_float_constant, expand_expr_real_1)
3521 (const_vector_from_tree): Likewise.
3522 * optabs.c (expand_float, expand_fix): Likewise.
3523 * reg-stack.c (reg_to_stack): Likewise.
3524 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
3525 (simplify_const_unary_operation, simplify_binary_operation_1)
3526 (simplify_const_binary_operation, simplify_relational_operation)
3527 (simplify_immed_subreg): Likewise.
3528
3529 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3530
3531 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
3532 * doc/tm.texi: Regenerate.
3533 * real.h (REAL_ARITHMETIC): Delete.
3534 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
3535 (ix86_expand_round_sse4): Use real_arithmetic instead of
3536 REAL_ARITHMETIC.
3537 * config/i386/sse.md (round<mode>2): Likewise.
3538 * rtl.h (rtx_to_tree_code): Likewise (in comment).
3539 * explow.c (rtx_to_tree_code): Likewise (in comment).
3540 * match.pd: Likewise.
3541 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3542 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
3543 (expand_pow_as_sqrts): Likewise.
3544 * tree-pretty-print.c (dump_generic_node): Remove code that
3545 was conditional on REAL_ARITHMETIC being undefined.
3546
3547 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3548
3549 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
3550 * doc/tm.texi: Regenerate.
3551 * real.h (real_less): Declare.
3552 (REAL_VALUES_LESS): Delete.
3553 * real.c (real_less): New function.
3554 (real_compare): Use it.
3555 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
3556 of REAL_VALUES_LESS.
3557 * config/microblaze/microblaze.c (microblaze_const_double_ok):
3558 Likewise.
3559 * fold-const.c (fold_convert_const_int_from_real): Likewise.
3560 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3561 (simplify_const_relational_operation): Likewise.
3562 * tree-call-cdce.c (check_pow): Likewise.
3563 (gen_conditions_for_pow_cst_base): Likewise.
3564
3565 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3566
3567 * real.h (REAL_VALUES_IDENTICAL): Delete.
3568 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
3569 instead of REAL_VALUES_IDENTICAL.
3570 * fold-const.c (operand_equal_p): Likewise.
3571 * ipa-icf.c (sem_variable::equals): Likewise.
3572 * tree-complex.c (some_nonzerop): Likewise.
3573 (expand_complex_multiplication): Likewise.
3574 * tree.c (simple_cst_equal): Likewise.
3575 * varasm.c (compare_constant): Likewise.
3576
3577 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3578
3579 * real.h (real_equal): Declare.
3580 (REAL_VALUES_EQUAL): Delete.
3581 * real.c (real_equal): New function.
3582 (real_compare): Use it.
3583 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
3584 * doc/tm.texi: Regenerate.
3585 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
3586 real_equal instead of REAL_VALUES_EQUAL.
3587 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
3588 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
3589 (fp_const_from_val): Likewise.
3590 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
3591 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
3592 (floating_exact_log2): Likewise.
3593 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
3594 * config/vax/vax.c (vax_float_literal): Likewise.
3595 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
3596 * cprop.c (implicit_set_cond_p): Likewise.
3597 * expmed.c (expand_mult): Likewise.
3598 * fold-const.c (const_binop): Likewise.
3599 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3600 (simplify_const_binary_operation): Likewise.
3601 (simplify_const_relational_operation): Likewise.
3602 * tree-call-cdce.c (check_pow): Likewise.
3603 (gen_conditions_for_pow_cst_base): Likewise.
3604 * tree-inline.c (estimate_num_insns): Likewise.
3605 * tree-ssa-dom.c (record_equality): Likewise.
3606 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
3607 (gimple_expand_builtin_pow): Likewise.
3608 (pass_optimize_widening_mul::execute): Likewise.
3609 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
3610 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
3611 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
3612
3613 2015-10-05 Richard Biener <rguenther@suse.de>
3614
3615 PR ipa/67783
3616 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
3617 consider loop header PHI defs as IVs.
3618
3619 2015-10-05 Richard Biener <rguenther@suse.de>
3620
3621 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
3622 call handling ...
3623 (create_expression_by_pieces): ... here and build GIMPLE
3624 calls directly. Use gimple_build API and avoid force_gimple_operand.
3625 (insert_into_preds_of_block): Simplify.
3626 (do_regular_insertion): Add comment.
3627
3628 2015-10-04 Jason Merrill <jason@redhat.com>
3629
3630 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
3631
3632 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
3633
3634 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
3635 check for general register.
3636 (ix86_emit_save_regs): Ditto.
3637 (ix86_emit_save_regs_using_mov): Ditto.
3638 (ix86_emit_restore_regs_using_pop): Ditto.
3639 (ix86_emit_restore_regs_using_mov): Ditto.
3640
3641 2015-10-03 Marek Polacek <polacek@redhat.com>
3642
3643 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
3644 (insn-dfatab.o): Likewise.
3645
3646 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
3647
3648 * config.gcc (xtensa*-*-uclinux*): New configuration.
3649 * config/xtensa/uclinux.h: New file.
3650 * config/xtensa/uclinux.opt: New file.
3651
3652 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
3653
3654 * doc/cpp.texi (Standard Predefined Macros): Document value of
3655 __cplusplus for C++14.
3656
3657 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
3658
3659 * gcc.c (process_command): Use spec_machine rather than
3660 spec_host_machine to build tooldir_prefix2.
3661
3662 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
3663 Bernd Schmidt <bernds@codesourcery.com>
3664
3665 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
3666 (Token, Stmt): Remove structs.
3667 (decls, vars, fns): Remove variables.
3668 (alloc_comment, append_stmt, is_keyword): Remove macros.
3669 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
3670 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
3671 (parse_init, parse_file): Remove functions.
3672 (read_file): Accept a pointer to a length and store into it.
3673 (process): Don't try to parse the input file, just write it out as
3674 a string, but looking for maps. Also write out the length.
3675 (main): Don't use "-S" to compile PTX code.
3676
3677 2015-10-02 Jeff Law <law@redhat.com>
3678
3679 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
3680 fixups.
3681
3682 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
3683
3684 PR target/67822
3685 * config/nvptx/mkoffload.c (main): Scan the argument vector for
3686 -fopenmp, and skip generating an offloading image if specified.
3687
3688 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
3689
3690 * system.h (ROUND_UP): New macro definition.
3691 (ROUND_DOWN): Ditto.
3692 * ggc-page.c (ROUND_UP): Remove local macro definition.
3693 (PAGE_ALIGN): Implement using ROUND_UP macro.
3694
3695 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
3696 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
3697 to align values.
3698 (ix86_compute_frame_layout): Ditto.
3699 (ix86_expand_prologue): Ditto.
3700 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
3701 to round down values.
3702 (expand_set_or_movmem_via_rep): Ditto.
3703
3704 2015-10-02 Marek Polacek <polacek@redhat.com>
3705
3706 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
3707
3708 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
3709
3710 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
3711 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
3712 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
3713 (free_gimple_bb): Renamed free_gimple_poly_bb.
3714 (try_generate_gimple_bb): Hoist loop invariant code.
3715 (analyze_drs_in_stmts): Same.
3716 (build_scop_drs): Call renamed functions.
3717 (new_pbb_from_pbb): Same.
3718 (scop_ivs_can_be_represented): Delete as functionality now moved to
3719 graphite-scop-detection.c
3720 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
3721
3722 2015-10-02 Aditya Kumar <hiraditya@msn.com>
3723
3724 * graphite-scop-detection.c (stmt_has_side_effects): New function
3725 outlined from stmt_simple_for_scop_p.
3726 (graphite_can_represent_stmt): Same.
3727 (stmt_simple_for_scop_p): Moved code out of this function for better
3728 readability.
3729
3730 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
3731
3732 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
3733 F_AVX512IFMA.
3734 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
3735
3736 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3737
3738 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
3739
3740 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
3741
3742 PR rtl-optimization/67756
3743 * lra-constraints.c (match_reload): Add a new parameter. Use it
3744 for creating a pseudo with the same value.
3745 (curr_insn_transform): Pass a new argument to match_reload.
3746
3747 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
3748
3749 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
3750 (expand_vec_perm_even_odd_1): Handle V64QImode.
3751 (ix86_expand_vec_perm_const_1): Try expansion with
3752 expand_vec_perm_even_odd_trunc as well.
3753 * config/i386/sse.md (VI124_AVX512F): Rename to ...
3754 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
3755 to V54QI.
3756 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
3757 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
3758 to V32HI and V16SI.
3759 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
3760 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
3761 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
3762 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
3763 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
3764 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
3765
3766 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
3767
3768 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
3769 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
3770
3771 2015-10-02 Jason Merrill <jason@redhat.com>
3772
3773 PR c/59218
3774 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
3775 (diagnose_tm_1_op): Also diagnose volatile accesses in
3776 transaction_safe function.
3777
3778 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
3779
3780 * system.h (malloc.h): Don't include obsolete header.
3781
3782 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3783
3784 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
3785 (TLS_SECTION_ASM_FLAG): Delete.
3786
3787 2015-10-02 Marek Polacek <polacek@redhat.com>
3788
3789 PR c/64249
3790 * doc/invoke.texi: Document -Wduplicated-cond.
3791 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
3792 (insn-dfatab.o): Likewise.
3793 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
3794 warning.
3795
3796 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
3797
3798 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
3799 sequences.
3800
3801 2015-10-02 Renlin Li <renlin.li@arm.com>
3802
3803 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
3804
3805 2015-10-02 Renlin Li <renlin.li@arm.com>
3806
3807 PR target/66776
3808 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
3809
3810 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3811
3812 PR rtl-optimization/67786
3813 PR rtl-optimization/67787
3814 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
3815 it modifies a reg used in the condition calculation.
3816
3817 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
3818
3819 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
3820 alternatives for reads from memory and moves from general-purpose
3821 registers.
3822 (*aarch64_combinez_be<mode>): Likewise.
3823
3824 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
3825
3826 PR target/51726
3827 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
3828 selectany within this function without need to keep attribute.
3829 (i386_pe_encode_section_info): Remove selectany-code.
3830
3831 2015-10-02 Richard Biener <rguenther@suse.de>
3832
3833 * tree-ssa-sccvn.c (has_VN_INFO): New function.
3834 (free_scc_vn): Use it.
3835 (visit_use): Remove dead code and refactor to use gassign
3836 and use less indentation.
3837
3838 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
3839
3840 PR target/67788
3841 PR target/67789
3842 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
3843 (rs6000_cannot_copy_insn_p): New function.
3844 * config/rs6000/rs6000.md (cannot_copy): New attribute.
3845 (load_toc_v4_PIC_1_normal): Set cannot_copy.
3846 (load_toc_v4_PIC_1_476): Ditto.
3847
3848 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
3849
3850 * graphite-scop-detection.c (struct sese_l): New conversion constructor
3851 so that this type can be pushed into a vec.
3852 (class scop_builder): use sese_l to collect scops.
3853 (get_scops): New getter function.
3854 (remove_intersecting_scops): Use sese_l instead of scops_p.
3855 (intersects): Same.
3856 (add_scop): Same.
3857 (subsumes): Same.
3858 (remove_subscops): Same.
3859 (build_scops): Add scops to vec<scops_p> once all the scops have been
3860 detected.
3861
3862 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
3863
3864 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
3865 Renamed type from gimple_bb_p to gimple_poly_bb_p.
3866 (translate_isl_ast_node_user): Same.
3867 * graphite-poly.c (new_poly_bb): Same.
3868 * graphite-poly.h (gbb_from_bb): Same.
3869 * sese.h: Same.
3870 * graphite-sese-to-poly.c (new_gimple_bb):
3871 gimple_bb_p -> gimple_poly_bb_p
3872 (build_scop_scattering): Same.
3873 (find_params_in_bb): Same.
3874 (add_conditions_to_domain): Same.
3875 (sese_dom_walker::before_dom_children): Same.
3876 (analyze_drs_in_stmts): Same.
3877 (new_pbb_from_pbb): Same.
3878 (free_data_refs_aux): New pointer to type base_alias_pair.
3879 * graphite-sese-to-poly.h: Same.
3880 * sese.c (if_region_set_false_region): Fixed Indentation.
3881 (move_sese_in_condition): Same.
3882
3883 2015-10-01 Sebastian Pop <s.pop@samsung.com>
3884 Aditya Kumar <aditya.k7@samsung.com>
3885
3886 PR tree-optimization/66980
3887 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
3888 when data reference analysis has failed.
3889
3890 2015-10-01 Sebastian Pop <s.pop@samsung.com>
3891 Aditya Kumar <aditya.k7@samsung.com>
3892
3893 PR tree-optimization/67754
3894 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
3895 scev analysis on the same loop nest as analyze_drs_in_stmts.
3896 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
3897 renamed...
3898 (try_generate_gimple_bb): Call outermost_loop_in_sese.
3899 (analyze_drs_in_stmts): Same.
3900 * sese.c (outermost_loop_in_sese): ...here.
3901
3902 2015-10-01 Sebastian Pop <s.pop@samsung.com>
3903 Aditya Kumar <aditya.k7@samsung.com>
3904
3905 PR tree-optimization/67754
3906 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
3907 recursion on the inner loops.
3908
3909 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3910
3911 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
3912 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
3913 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
3914 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
3915 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
3916
3917 2015-10-01 Marek Polacek <polacek@redhat.com>
3918
3919 PR c/65345
3920 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
3921 create_tmp_var_raw rather than create_tmp_var.
3922
3923 2015-10-01 Marek Polacek <polacek@redhat.com>
3924
3925 PR tree-optimization/67769
3926 * tree-ssa-phiopt.c (conditional_replacement): Call
3927 reset_flow_sensitive_info_in_bb.
3928 (minmax_replacement): Likewise.
3929 (abs_replacement): Likewise.
3930
3931 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
3932
3933 * builtins.c: Don't include gomp-constants.h.
3934 (fold_builtin_1): Don't fold acc_on_device here.
3935 * gimple-fold.c: Include gomp-constants.h.
3936 (gimple_fold_builtin_acc_on_device): New.
3937 (gimple_fold_builtin): Call it.
3938
3939 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
3940
3941 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
3942 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
3943
3944 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
3945
3946 * config/arm/aarch-common-protos.h
3947 (aarch_accumulator_forwarding): New.
3948 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
3949 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
3950 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
3951 * config/arm/cortex-a53.md: Rewrite.
3952
3953 2015-10-01 Richard Biener <rguenther@suse.de>
3954
3955 * gimple-match.h (mprts_hook): Declare.
3956 * gimple-match.head.c (mprts_hook): Define.
3957 (maybe_push_res_to_seq): Use new hook.
3958 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
3959 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
3960 (vn_ssa_aux::has_constants): Remove.
3961 * tree-ssa-sccvn.c: Include gimple-match.h.
3962 (VN_INFO_GET): Assert we don't re-use SSA names.
3963 (vn_get_expr_for): Remove.
3964 (expr_has_constants): Likewise.
3965 (stmt_has_constants): Likewise.
3966 (simplify_binary_expression): Likewise.
3967 (simplify_unary_expression): Likewise.
3968 (vn_lookup_simplify_result): New hook.
3969 (visit_copy): Adjust.
3970 (visit_reference_op_call): Likewise.
3971 (visit_phi): Likewise.
3972 (visit_use): Likewise.
3973 (process_scc): Likewise.
3974 (init_scc_vn): Likewise.
3975 (visit_reference_op_load): Likewise. Use match-and-simplify and
3976 a gimple seq for inserted expressions.
3977 (try_to_simplify): Remove GENERIC stmt combining code.
3978 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
3979 * tree-ssa-pre.c (eliminate_insert): Adjust.
3980 (eliminate_dom_walker::before_dom_children): Likewise.
3981
3982 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
3983
3984 * doc/invoke.texi (Optimization Options): Add
3985 -freorder-blocks-algorithm=.
3986 (Optimize Options) <-O>: Add -freorder-blocks.
3987 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
3988 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
3989 <-freorder-blocks>: Also enabled at levels -O and -Os.
3990 <-freorder-blocks-algorithm=>: Document new option.
3991
3992 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
3993
3994 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
3995 with flag_reorder_blocks_algorithm.
3996 * common.opt (freorder-blocks-algorithm=): New flag.
3997 (reorder_blocks_algorithm): New enum.
3998 * flag-types.h (reorder_blocks_algorithm): New enum.
3999 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
4000 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
4001
4002 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4003
4004 * bb-reorder.c: Add intro comment.
4005 (reorder_basic_blocks_software_trace_cache): Print a header to
4006 the dump file.
4007 (edge_order): New function.
4008 (reorder_basic_blocks_simple): New function.
4009 (reorder_basic_blocks): Choose between the STC and the simple
4010 algorithms (always choose the former).
4011
4012 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4013
4014 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
4015 function, factored out from ...
4016 (reorder_basic_blocks): ... here.
4017
4018 2015-10-01 Tom de Vries <tom@codesourcery.com>
4019
4020 * tree-cfg.c (dump_function_to_file): Dump function attributes using
4021 __attribute__(()) string. Move dumping of function attributes to before
4022 function name.
4023
4024 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
4025
4026 PR target/66870
4027 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
4028 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
4029 based on gold linker version.
4030 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
4031 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
4032 * configure, config.in: Regenerate.
4033
4034 2015-10-01 Alan Modra <amodra@gmail.com>
4035
4036 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
4037 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
4038 (rs6000_output_mi_thunk): Likewise.
4039
4040 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
4041
4042 * config/nvptx/mkoffload.c (process): Change offload data format.
4043
4044 2015-09-30 Jeff Law <law@redhat.com>
4045
4046 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
4047 with constant conditions.
4048 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
4049 (remove_ctrl_stmt_and_useless_edges): No longer static.
4050 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
4051 (remove_ctrl_stmt_and_useless_edges): Likewise.
4052
4053 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
4054 Cesar Philippidis <cesar@codesourcery.com>
4055
4056 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
4057 (TARGET_GOACC_VALIDATE_DIMS): Override.
4058 * target.def (TARGET_GOACC): New target hook prefix.
4059 (validate_dims): New hook.
4060 * targhooks.h (default_goacc_validate_dims): New.
4061 * omp-low.c (oacc_validate_dims): New.
4062 (execute_oacc_device_lower): New.
4063 (default_goacc_validate_dims): New.
4064 (pass_data_oacc_device_lower): New.
4065 (pass_oacc_device_lower): New pass.
4066 (make_pass_oacc_device_lower): New.
4067 * tree-pass.h (make_pass_oacc_device_lower): Declare.
4068 * passes.def (pass_oacc_device_lower): Add it.
4069 * doc/tm.texi: Rebuilt.
4070 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
4071 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
4072
4073 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
4074
4075 PR rtl-optimization/67037
4076 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
4077
4078 2015-09-30 Bernd Schmidt <bernds@redhat.com>
4079
4080 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
4081 * passes.c: Include tree-ssanames.h.
4082 (execute_function_todo): Flush the pending free SSA_NAMEs after
4083 eliminating unreachable basic blocks.
4084 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
4085 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
4086 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
4087 (flush_ssanames_freelist): New function.
4088 (release_ssaname_fn): Put released names on the queue.
4089 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
4090 * tree-ssanames.h (flush_ssanames_freelist): Declare.
4091
4092 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
4093
4094 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
4095 (generate_target_descr_file, generate_target_offloadend_file)
4096 (generate_host_descr_file, prepare_target_image): Pass it on.
4097 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
4098 (compile_native, main): Pass it on.
4099 * lto-wrapper.c (compile_offload_image): Likewise.
4100
4101 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
4102 Ilya Verbin <ilya.verbin@intel.com>
4103 Andrey Turetskiy <andrey.turetskiy@intel.com>
4104
4105 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
4106 (prepare_target_image, main): Refactor argv building to use
4107 obstacks.
4108
4109 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4110
4111 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
4112 * config/spu/spu.c (spu_expand_atomic_op): New function.
4113 * config/spu/spu.md (AINT): New mode iterator.
4114 (ATOMIC): New code iterator.
4115 (atomic_name, atomic_pred): New code predicates.
4116 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
4117 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
4118 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
4119 "atomic_<atomic_name>_fetch<mode>"): Likewise.
4120
4121 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
4122
4123 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
4124 debug insns.
4125 (scalar_chain::convert_reg): Likewise.
4126
4127 2015-09-30 Richard Biener <rguenther@suse.de>
4128
4129 * builtins.c: Add comment that no new simplifications should
4130 be added here.
4131
4132 2015-09-30 Marek Polacek <polacek@redhat.com>
4133
4134 PR tree-optimization/67690
4135 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
4136 reset_flow_sensitive_info_in_bb.
4137 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
4138 * tree-ssanames.c: Include "gimple-iterator.h".
4139 (reset_flow_sensitive_info_in_bb): New function.
4140 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
4141
4142 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
4143
4144 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
4145 variable, replacing it with...
4146 (offload_abi): ... this new variable. Adjust all users.
4147 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
4148
4149 2015-09-30 Matthias Klose <doko@ubuntu.com>
4150
4151 * configure.ac: Remove extraneous ;;.
4152 * configure: Regenerate.
4153
4154 2015-09-29 James Bowman <james.bowman@ftdichip.com>
4155
4156 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
4157 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
4158 predicate, disallow register for operand 2.
4159
4160 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
4161
4162 * graphite-dependences.c (scop_get_dependences): Moved in down
4163 in order to be visible to its caller.
4164 * graphite-poly.h: Removed compute_deps, and extend_schedule.
4165
4166 2015-09-29 Sebastian Pop <s.pop@samsung.com>
4167 Aditya Kumar <aditya.k7@samsung.com>
4168
4169 PR tree-optimization/67754
4170 * graphite-optimize-isl.c (optimize_isl): Call
4171 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
4172
4173 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
4174
4175 * builtins.c (expand_builtin_acc_on_device): Delete.
4176 (expand_builtin): Don't call it.
4177 (fold_builtin_1): Fold acc_on_device.
4178
4179 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
4180
4181 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
4182 (ix86_nsaved_sseregs): Likewise.
4183
4184 2015-09-29 Jeff Law <law@redhat.com>
4185
4186 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
4187 computation of unused value.
4188
4189 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
4190 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
4191 inline macro expansion.
4192
4193 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
4194
4195 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
4196 (gen_shl_sext): Likewise.
4197 * config/sh/sh.md (divsi3): Likewise.
4198 (imm->ext_dest_operand splitter): Likewise.
4199
4200 2015-09-29 Sebastian Pop <s.pop@samsung.com>
4201 Aditya Kumar <aditya.k7@samsung.com>
4202
4203 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
4204 (nb_data_writes_in_bb): Remove.
4205 (split_pbb): Remove.
4206 (split_reduction_stmt): Remove.
4207 (is_reduction_operation_p): Remove.
4208 (phi_contains_arg): Remove.
4209 (follow_ssa_with_commutative_ops): Remove.
4210 (detect_commutative_reduction_arg): Remove.
4211 (detect_commutative_reduction_assign): Remove.
4212 (follow_inital_value_to_phi): Remove.
4213 (edge_initial_value_for_loop_phi): Remove.
4214 (initial_value_for_loop_phi): Remove.
4215 (used_outside_reduction): Remove.
4216 (detect_commutative_reduction): Remove.
4217 (translate_scalar_reduction_to_array_for_stmt): Remove.
4218 (remove_phi): Remove.
4219 (dr_indices_valid_in_loop): Remove.
4220 (close_phi_written_to_memory): Remove.
4221 (translate_scalar_reduction_to_array): Remove.
4222 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
4223 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
4224 (rewrite_commutative_reductions_out_of_ssa): Remove.
4225 (build_poly_scop): Remove call to
4226 rewrite_commutative_reductions_out_of_ssa.
4227
4228 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
4229
4230 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
4231 Add new insn types for vector load and store pairs.
4232 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
4233 types "neon_ldp{,_q}".
4234 * config/arm/cortex-a57.md (neon_load_c): Add insn types
4235 "neon_ldp{,_q}".
4236 (neon_store_complex): Add insn types "neon_stp{,_q}".
4237 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
4238 "neon_{ldp,stp}_q".
4239
4240 2015-09-29 Jeff Law <law@redhat.com>
4241
4242 * config/rx/constraints.md (Int08): Fix undefined left shift
4243 behaviour.
4244 (Sint08, Sint16, Sint24): Likewise.
4245 * config/rx/rx.c (rx_get_stack_layout): Likewise.
4246
4247 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
4248 behaviour.
4249
4250 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
4251 left shift behaviour.
4252 * config/msp430/constraints.md ('L' constraint): Similarly.
4253 ('Ys' constraint): Similarly.
4254
4255 2015-09-29 Richard Biener <rguenther@suse.de>
4256
4257 PR tree-optimization/67170
4258 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
4259 the translate function pointer parameter to get the
4260 bool whether to disambiguate only by reference.
4261 (walk_non_aliased_vuses): Likewise.
4262 * tree-ssa-alias.c (maybe_skip_until): Adjust.
4263 (get_continuation_for_phi_1): Likewise.
4264 (get_continuation_for_phi): Likewise.
4265 (walk_non_aliased_vuses): Likewise.
4266 * tree-ssa-sccvn.c (const_parms): New bitmap.
4267 (vn_reference_lookup_3): Adjust for interface change.
4268 Disambiguate parameters pointing to readonly memory.
4269 (free_scc_vn): Free const_parms.
4270 (run_scc_vn): Initialize const_parms from a fn spec attribute.
4271
4272 2015-09-29 Richard Biener <rguenther@suse.de>
4273
4274 PR tree-optimization/67741
4275 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
4276 builtin calls with correct signature.
4277
4278 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
4279
4280 PR target/65105
4281 * config/i386/i386.c: Include dbgcnt.h.
4282 (has_non_address_hard_reg): New.
4283 (convertible_comparison_p): New.
4284 (scalar_to_vector_candidate_p): New.
4285 (remove_non_convertible_regs): New.
4286 (scalar_chain): New.
4287 (scalar_chain::scalar_chain): New.
4288 (scalar_chain::~scalar_chain): New.
4289 (scalar_chain::add_to_queue): New.
4290 (scalar_chain::mark_dual_mode_def): New.
4291 (scalar_chain::analyze_register_chain): New.
4292 (scalar_chain::add_insn): New.
4293 (scalar_chain::build): New.
4294 (scalar_chain::compute_convert_gain): New.
4295 (scalar_chain::replace_with_subreg): New.
4296 (scalar_chain::replace_with_subreg_in_insn): New.
4297 (scalar_chain::emit_conversion_insns): New.
4298 (scalar_chain::make_vector_copies): New.
4299 (scalar_chain::convert_reg): New.
4300 (scalar_chain::convert_op): New.
4301 (scalar_chain::convert_insn): New.
4302 (scalar_chain::convert): New.
4303 (convert_scalars_to_vector): New.
4304 (pass_data_stv): New.
4305 (pass_stv): New.
4306 (make_pass_stv): New.
4307 (ix86_option_override): Created and register stv pass.
4308 (flag_opts): Add -mstv.
4309 (ix86_option_override_internal): Likewise.
4310 * config/i386/i386.md (SWIM1248x): New.
4311 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
4312 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
4313 (*anddi3_doubleword): New.
4314 (*zext<mode>_doubleword): New.
4315 (*zextsi_doubleword): New.
4316 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
4317 (*<code>di3_doubleword): New.
4318 * config/i386/i386.opt (mstv): New.
4319 * dbgcnt.def (stv_conversion): New.
4320
4321 2015-09-29 Tom de Vries <tom@codesourcery.com>
4322
4323 * tree-cfg.c (dump_function_to_file): Dump function attributes.
4324
4325 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
4326
4327 PR target/67716
4328 * config/sh/sh.c (sh_override_options_after_change): New.
4329 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
4330 (sh_option_override): Move align_loops, align_jumps and
4331 align_functions handling into sh_override_options_after_change.
4332
4333 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
4334
4335 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
4336 (nvptx_record_offload_symbol): Record function execution geometry.
4337 * config/nvptx/mkoffload.c (process): Include launch geometry in
4338 function data.
4339 * omp-low.c (oacc_launch_pack): New.
4340 (replace_oacc_fn_attrib): New.
4341 (set_oacc_fn_attrib): New.
4342 (get_oacc_fn_attrib): New.
4343 (expand_omp_target): Create keyed varargs for GOACC_parallel call
4344 generation.
4345 * omp-low.h (get_oacc_fn_attrib): Declare.
4346 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
4347 (DEF_FUNCTION_TYPE_VAR_11): Delete.
4348 * tree.h (OMP_CLAUSE_EXPR): New.
4349 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
4350
4351 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
4352 Sebastian Pop <s.pop@samsung.com>
4353
4354 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
4355
4356 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
4357 Sebastian Pop <s.pop@samsung.com>
4358
4359 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
4360 * graphite-scop-detection.c (struct sese_l): New type.
4361 (get_entry_bb): API for getting entry bb of SESE.
4362 (get_exit_bb): API for getting exit bb of SESE.
4363 (class debug_printer): New type. Simple printer in debug mode.
4364 (trivially_empty_bb_p): New. Return true when BB is empty or
4365 contains only debug instructions.
4366 (graphite_can_represent_expr): Call scalar_evoution_in_region
4367 instead of analyze_scalar_evolution. Pass in scop instead of only
4368 the scop entry.
4369 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
4370 scop entry.
4371 (stmt_simple_for_scop_p): Same.
4372 (harmful_stmt_in_bb): Same.
4373 (graphite_can_represent_loop): Deleted.
4374 (struct scopdet_info): Deleted.
4375 (scopdet_basic_block_info): Deleted.
4376 (build_scops_1): Deleted.
4377 (bb_in_sd_region): Deleted.
4378 (find_single_entry_edge): Deleted.
4379 (find_single_exit_edge): Deleted.
4380 (create_single_entry_edge): Deleted.
4381 (sd_region_without_exit): Deleted.
4382 (create_single_exit_edge): Deleted.
4383 (unmark_exit_edges): Deleted.
4384 (mark_exit_edges): Deleted.
4385 (create_sese_edges): Deleted.
4386 (build_graphite_scops): Deleted.
4387 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
4388 (build_scops): Use the new scop_builder to build scops.
4389 (dot_all_scops_1): Use the new pretty printer. Print loop father
4390 as well.
4391 (loop_body_is_valid_scop): New. Return true if loop body is a
4392 valid scop.
4393 (class scop_builder): New. Builds SCoPs for polyhedral
4394 optimizations.
4395 (scop_builder): New constructor.
4396 (static sese_l invalid_sese): sese_l with invalid edges.
4397 (get_sese): Get an sese (from a loop) if possible, invalid_sese
4398 otherwise.
4399 (get_nearest_dom_with_single_entry): Get nearest dominator of a
4400 basic_block with single entry. Return NULL if we get to the
4401 beginning of a function.
4402 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
4403 a basic_block with single exit. Return NULL if we get to the
4404 beginning of a function.
4405 (print_sese): Pretty-print SESE.
4406 (merge_sese): Merge two SESEs if possible and return the new SESE.
4407 (build_scop_depth): Start building the SCoP within a loop nest.
4408 (build_scop_breadth): Start building the SCoP at a single loop
4409 depth. Merge adjacent SESEs if valid.
4410 (can_represent_loop_1): Returns true if Graphite can represent
4411 loop inside SCoP. Helper for can_represent_loop.
4412 (can_represent_loop): Returns true if Graphite can represent LOOP
4413 and all its nested loops in SCoP.
4414 (loop_is_valid_scop): Returns true if LOOP and all its nests
4415 constitute a valid SCoP.
4416 (region_has_one_loop): Returns true of a region has only one loop.
4417 (add_scop): Add SCoP to the list of valid scops. Removes an
4418 already existing scop if it intersects with or subsumed by this one.
4419 (harmful_stmt_in_region): Returns true if SCoP has any statment
4420 which cannot be represented by Graphite.
4421 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
4422 (remove_subscops): Remove any SCoP from the list of already found
4423 SCoPs, if subsumed by S1.
4424 (intersects): Return true if region bounded by SCoPs S1 and S2
4425 intersect.
4426 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
4427 * graphite.c (print_graphite_scop_statistics):
4428 (print_graphite_statistics): Print SCoP info while debugging.
4429 (graphite_initialize): Early exit in case number of loops in a
4430 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
4431 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
4432 (graphite_finalize):
4433 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
4434 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
4435 (recompute_all_dominators): Recalculate POST_DOMINATORS.
4436 * tree-cfg.c (print_loops): Print the function name while printing
4437 loops.
4438
4439 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
4440 Sebastian Pop <s.pop@samsung.com>
4441
4442 PR tree-optimization/67700
4443 * graphite-sese-to-poly.c (parameter_index_in_region): Call
4444 invariant_in_sese_p_rec.
4445 (extract_affine): Same.
4446 (rewrite_cross_bb_scalar_deps): Call update_ssa.
4447 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
4448 * sese.h (invariant_in_sese_p_rec): Declare.
4449
4450 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
4451
4452 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
4453
4454 2015-09-28 Jiong Wang <jiong.wang@arm.com>
4455
4456 Revert:
4457 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4458 Jiong Wang <jiong.wang@arm.com>
4459
4460 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
4461 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
4462 (REG_CLASS_NAMES): Likewise.
4463 (REG_CLASS_CONTENTS): Likewise.
4464 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
4465 (aarch64_register_move_cost): Likewise.
4466 (aarch64_load_symref_appropriately): Invoke the new added pattern if
4467 possible.
4468 * config/aarch64/constraints.md (Uc0): New constraint.
4469
4470 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
4471
4472 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
4473
4474 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
4475
4476 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
4477 SECTION_EXCLUDE in XO mapping class.
4478
4479 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
4480
4481 PR target/54236
4482 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
4483 and handle ne and eq codes.
4484 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
4485 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
4486 CONST_INT_P. Use reverse_condition.
4487 (sh_split_treg_set_expr): Likewise.
4488
4489 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
4490
4491 * config/arm/types.md (type): Add rotate_imm.
4492 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
4493 ROR immediate case.
4494 (*rorsi3_insn_uxtw): Likewise.
4495 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
4496 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
4497 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
4498
4499 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4500
4501 PR rtl-optimization/67481
4502 * ifcvt.c (contains_ccmode_rtx_p): New function.
4503 (insn_valid_noce_process_p): Use it.
4504
4505 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4506
4507 PR rtl-optimization/67456
4508 PR rtl-optimization/67464
4509 PR rtl-optimization/67465
4510 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
4511 move in the mode of x. Handle combination of complex and simple
4512 block pairs as well as the case when one is empty.
4513
4514 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4515
4516 * doc/gimple.texi: Update references to gimple_statement_base.
4517 * gdbhooks.py: Likewise.
4518 * gimple.h: Likewise.
4519
4520 2015-09-28 Daniel Cederman <cederman@gaisler.com>
4521
4522 * config/sparc/driver-sparc.c: map LEON to leon3
4523
4524 2015-09-28 Daniel Cederman <cederman@gaisler.com>
4525
4526 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
4527 and make it inverse to change default
4528 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
4529 supervisor mode
4530 * doc/invoke.texi: Document change of default
4531
4532 2015-09-28 Daniel Cederman <cederman@gaisler.com>
4533
4534 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
4535 true on %f0 for a target without FPU.
4536 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
4537 without FPU.
4538 (untyped_return): Do not load %f0 for a target without FPU.
4539
4540 2015-09-28 Andrew Pinski <apinski@cavium.com>
4541
4542 * config/aarch64/aarch64.md (prefetch):
4543 Change the predicate of operand 0 to register_operand.
4544
4545 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
4546
4547 * config/i386/predicates.md (register_sse4nonimm_operand): New
4548 predicate.
4549 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
4550 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
4551 Use register_sse4nonimm_operand as operand 0 predicate.
4552 (*vec_extractv8hi_sse2): Remove insn pattern.
4553 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
4554 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
4555
4556 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
4557 Kaz Kojima <kkojima@gcc.gnu.org>
4558
4559 PR target/67391
4560 * config/sh/sh-protos.h (sh_lra_p): Declare.
4561 * config/sh/sh.c (sh_lra_p): Make non-static.
4562 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
4563 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
4564 Expand into addsi3_scr if operands[2] if needed.
4565 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
4566 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
4567 (addsi3_scr, *addsi3): New insn_and_split patterns.
4568
4569 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
4570
4571 PR rtl-optimization/64164
4572 PR tree-optimization/67312
4573 PR middle-end/67340
4574 PR middle-end/67490
4575 PR bootstrap/67597
4576 * cfgexpand.c (parm_in_stack_slot_p): Remove.
4577 (ssa_default_def_partition): Remove.
4578 (get_rtl_for_parm_ssa_default_def): Remove.
4579 (set_rtl): Check that RTL assignments match expectations.
4580 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
4581 default def location for params and results. Record SSA names
4582 or types in REG and MEM attrs, respectively.
4583 (set_parm_rtl): New.
4584 (expand_one_ssa_partition): Drop logic that assigned MEMs with
4585 unassigned addresses.
4586 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
4587 deferred stack alloc vars.
4588 (expand_used_vars): Skip partitions holding parm default defs.
4589 Move adjust_one_expanded_partition_var loop...
4590 (pass_expand::execute): ... here. Drop redundant assert.
4591 Adjust comments before the final loop over all ssa names.
4592 Require assigned rtl of parms and results to match exactly.
4593 Reset its attributes to match them, not any other variables in
4594 the same partition.
4595 (expand_debug_expr): Use entry value for PARM's default defs
4596 only iff they have zero nondebug uses.
4597 * cfgexpand.h (parm_in_stack_slot_p): Remove.
4598 (get_rtl_for_parm_ssa_default_def): Remove.
4599 (set_parm_rtl): Declare.
4600 * doc/invoke.texi: Improve wording.
4601 * explow.c (promote_decl_mode): Fix promote_function_mode for
4602 result decls not by reference.
4603 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
4604 bypass TYPE_MODE to get the actual vector mode.
4605 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
4606 2015-08-19's changes as follows. Drop include of
4607 basic-block.h and df.h.
4608 (rtl_for_parm): Remove.
4609 (maybe_reset_rtl_for_parm): Remove.
4610 (parm_in_unassigned_mem_p): Remove.
4611 (use_register_for_decl): Add logic for RESULT_DECLs matching
4612 assign_parms' behavior.
4613 (split_complex_args): Revert.
4614 (assign_parms_augmented_arg_list): Revert. Add comment
4615 referencing the logic above.
4616 (assign_parm_adjust_stack_rtl): Revert.
4617 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
4618 of SET_DECL_RTL. Set up a REG if the parm demands so.
4619 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
4620 calls into a single set_parm_rtl. Set up a temporary RTL
4621 temporarily for expand_assignment.
4622 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
4623 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
4624 (assign_bounds): Revert.
4625 (assign_parms): Revert. Use set_parm_rtl.
4626 (allocate_struct_function): Relayout result and parms of
4627 non-abstruct functions.
4628 (expand_function_start): Revert. Use set_parm_rtl. If the
4629 result is not a hard reg, create a pseudo from the promoted
4630 mode of the default def. Promote static chain mode.
4631 * tree-outof-ssa.c (remove_ssa_form): Drop unused
4632 partition_has_default_def. Set up
4633 partitions_for_parm_default_defs.
4634 (finish_out_of_ssa): Remove partition_has_default_def.
4635 Release partitions_for_parm_default_defs.
4636 * tree-outof-ssa.h (struct ssaexpand): Remove
4637 partition_has_default_def. Add
4638 partitions_for_parm_default_defs.
4639 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
4640 stor-layout.h.
4641 (build_ssa_conflict_graph): Fix conflict-detection of default
4642 defs of even unused default defs of params and results.
4643 (for_all_parms): New.
4644 (create_default_def): New.
4645 (register_default_def): New.
4646 (coalesce_with_default): New.
4647 (create_outofssa_var_map): Create default defs for all parms
4648 and results, and register their partitions. Add GIMPLE_RETURN
4649 operands as coalesce candidates with results. Add default
4650 defs of each parm or result as coalesce candidates with its
4651 other defs. Mark each result def, and each default def of
4652 parms, as used_in_copy.
4653 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
4654 with the ssa names, even anonymous ones. Drop
4655 parm_in_stack_slot_p calls. Require same signedness and
4656 alignment.
4657 (coalesce_ssa_name): Add coalesce candidates for all defs of
4658 each parm and result, even unused ones.
4659 (parm_default_def_partition_arg): New type.
4660 (set_parm_default_def_partition): New.
4661 (get_parm_default_def_partitions): New.
4662 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
4663 * tree-ssa-live.c (partition_view_init): Regard unused defs of
4664 parms and results as used.
4665 (verify_live_on_entry): Don't error out just because they're
4666 not live.
4667
4668 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
4669
4670 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
4671 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
4672 (output_fde): Don't output length for debug_frame on AIX.
4673 (output_call_frame_info): Don't output length for debug_frame on AIX.
4674 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
4675 HAVE_XCOFF_DWARF_EXTRAS.
4676 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
4677 HAVE_XCOFF_DWARF_EXTRAS.
4678 (output_compilation_unit_header): Don't output length on AIX.
4679 (output_pubnames): Don't output length on AIX.
4680 (output_aranges): Delete argument. Compute length locally. Don't
4681 output length on AIX.
4682 (output_line_info): Don't output length on AIX.
4683 (dwarf2out_finish): Don't compute aranges_length.
4684 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
4685 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
4686 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
4687 symbol decoration for AIX.
4688 (rs6000_xcoff_debug_unwind_info): New.
4689 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
4690 for SECTION_DEBUG.
4691 (rs6000_xcoff_declare_function_name): Emit different
4692 .function pseudo-op when DWARF2_DEBUG. Don't call
4693 xcoffout_declare_function for DWARF2_DEBUG.
4694 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
4695 Redefine.
4696 * config/rs6000/aix71.h: New.
4697 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
4698 locations support.
4699 * configure: Regenerate.
4700 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
4701 DWARF support.
4702
4703 2015-09-26 Jeff Law <law@redhat.com>
4704
4705 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
4706 behaviour.
4707 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
4708 behaviour.
4709
4710 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
4711 behaviour
4712
4713 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
4714 undefined behaviour.
4715
4716 * config/cris/cris.md (asrandb): Fix left shift undefined
4717 behaviour.
4718 (asrandw): Likewise.
4719
4720 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
4721
4722 PR target/61578
4723 * lra-constarints.c (match_reload): Check presence of the input pseudo
4724 in the output operand.
4725
4726 2015-09-25 Tobias Burnus <burnus@net-b.de>
4727
4728 * doc/invoke.texi (-fsanitize): Minor wording tweak.
4729
4730 2015-09-25 Tobias Burnus <burnus@net-b.de>
4731
4732 * doc/invoke.texi (-fsanitize): Update URLs.
4733
4734 2015-09-25 Teresa Johnson <tejohnson@google.com>
4735
4736 * opts.c (finish_options): Unset -freorder-blocks-and-partition
4737 if not using profile.
4738
4739 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
4740
4741 PR pretty-print/67567
4742 * pretty-print.c (pp_string): Add gcc_checking_assert.
4743 * pretty-print.h (output_buffer_append_r): Likewise.
4744
4745 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
4746
4747 PR target/67675
4748 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
4749 addr2 individually. Don't emit logical or insn if one is known to
4750 be aligned approriately.
4751 (sh_expand_cmpnstr): Likewise.
4752
4753 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
4754
4755 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
4756 __builtin_aarch64_fp[sc]r arguments into a register.
4757
4758 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
4759
4760 * config.gcc (x86_archs): Replace lakemount with lakemont.
4761 (with_cpu): Likewise.
4762 (with_arch): Likewise.
4763 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
4764 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
4765 __tune_lakemount__ with __tune_lakemont__.
4766 * config/i386/i386.c (lakemount_cost): Renamed to ...
4767 (lakemont_cost): This.
4768 (m_LAKEMOUNT): Renamed to ...
4769 (m_LAKEMONT): This.
4770 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
4771 (processor_target_table): Replace "lakemount" with "lakemont".
4772 (processor_alias_table): Likewise.
4773 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
4774 PROCESSOR_LAKEMONT.
4775 (ix86_adjust_cost): Likewise.
4776 (ia32_multipass_dfa_lookahead): Likewise.
4777 * config/i386/i386.h (processor_type): Likewise.
4778 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
4779 * doc/invoke.texi: Replace lakemount with lakemont. Replace
4780 Lakemount with Lakemont.
4781
4782 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
4783
4784 * config.gcc (x86_archs): Replace iamcu with lakemount.
4785 (with_cpu): Likewise.
4786 (with_arch): Likewise.
4787 * doc/invoke.texi: Likewise.
4788 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
4789 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
4790 __tune_iamcu__ with __tune_lakemount__.
4791 * config/i386/i386.c (iamcu_cost): Renamed to ...
4792 (lakemount_cost): This.
4793 (m_IAMCU): Renamed to ...
4794 (m_LAKEMOUNT): This.
4795 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
4796 (processor_target_table): Replace "iamcu" with "lakemount".
4797 (processor_alias_table): Likewise.
4798 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
4799 PROCESSOR_LAKEMOUNT.
4800 (ix86_adjust_cost): Likewise.
4801 (ia32_multipass_dfa_lookahead): Likewise.
4802 * config/i386/i386.h (processor_type): Likewise.
4803 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
4804
4805 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
4806
4807 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
4808 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
4809 Declare.
4810 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
4811 (pa_expand_compare_and_swap_loop): New.
4812 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
4813 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
4814 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
4815 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
4816 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
4817 Revise.
4818
4819 2015-09-24 Michael Collison <michael.collison@linaro.org>
4820
4821 PR other/57195
4822 * read-md.c (read_name): Allow mode iterators inside angle
4823 brackets in rtl expressions.
4824
4825 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
4826
4827 PR target/61578
4828 * ira-color.c (update_allocno_cost): Add parameter.
4829 (update_costs_from_allocno): Decrease conflict cost. Pass the new
4830 parameter.
4831
4832 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
4833
4834 PR driver/67640
4835 * opts-common.c (prune_options): Discard all -fdiagnostics-color
4836 but the last one, which is moved to the front to be processed
4837 first.
4838 * opts.c (enable_warning_as_error): Reject options that do not
4839 control warnings.
4840
4841 2015-09-24 Jiong Wang <jiong.wang@arm.com>
4842
4843 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
4844
4845 2015-09-24 Jiong Wang <jiong.wang@arm.com>
4846
4847 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
4848 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
4849 (aarch64_cannot_force_const_mem): Likewise.
4850 (aarch64_classify_address): Likewise.
4851 (aarch64_classify_symbolic_expression): Likewise.
4852 (aarch64_print_operand): Likewise.
4853 (aarch64_classify_symbol): Likewise.
4854 (aarch64_mov_operand_p): Likewise.
4855 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
4856 (aarch64_mov_operand): Likewise.
4857
4858 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
4859
4860 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
4861 for info->spe_gp_size.
4862
4863 2015-09-24 Richard Biener <rguenther@suse.de>
4864
4865 PR lto/67699
4866 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
4867 abstract origins.
4868
4869 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
4870
4871 * tree-object-size.c (plus_stmt_object_size)
4872 (cond_expr_object_size): Change the formal parameters from gimple
4873 to gimple *.
4874 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
4875 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
4876 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
4877
4878 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4879
4880 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
4881 Check for ld -type pie on Solaris 11.x and 12.
4882 * configure: Regenerate.
4883 * config.in: Regenerate.
4884
4885 * gcc.c (LD_PIE_SPEC): Allow redefinition.
4886
4887 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
4888 (STARTFILE_SPEC): Use it.
4889 (ENDFILE_CRTEND_SPEC): Define.
4890 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
4891 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
4892 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
4893 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
4894 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
4895 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
4896 (ENDFILE_ARCH_SPEC): Define.
4897 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
4898
4899 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4900
4901 * configure.ac (gcc_cv_solaris_crts): New test.
4902 * configure. Regenerate.
4903 * config.in: Regenerate.
4904 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
4905 HAVE_SOLARIS_CRTS variant.
4906
4907 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4908
4909 * tree-inline.h (count_insns_seq): Delete prototype.
4910 (estimate_num_insns_seq): Define prototype.
4911 * tree-inline.c (count_insns_seq): Delete.
4912 (estimate_num_insns_seq): Remove static qualifier.
4913 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
4914 with estimate_num_insns_seq.
4915
4916 2015-09-24 Richard Biener <rguenther@suse.de>
4917
4918 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
4919 members.
4920 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
4921 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
4922 offset.
4923 (ao_ref_init_from_vn_reference): Record clique and base in the
4924 built base.
4925 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
4926
4927 2015-09-24 Richard Biener <rguenther@suse.de>
4928
4929 PR tree-optimization/48885
4930 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
4931 as not including any restrict tags from other pointers.
4932
4933 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
4934
4935 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
4936 character when appending to offload_targets.
4937
4938 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
4939 offload targets by commas, not colons.
4940 * config.in: Regenerate.
4941 * configure: Likewise.
4942 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
4943 instead of setting up the default offload targets here...
4944 (process_command): ..., do it here.
4945 libgomp/
4946 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
4947 targets are separated by commas.
4948 * config.h.in: Regenerate.
4949
4950 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
4951 Nathan Sidwell <nathan@codesourcery.com>
4952
4953 * omp-low.h (omp_reduction_init_op): Declare.
4954 * omp-low.c (omp_reduction_init_op): New, broken out of ...
4955 (omp_reduction_init): ... here. Call it.
4956 * tree-parloops.c (initialize_reductions): Use
4957 omp_reduction_init_op.
4958
4959 2015-09-23 Richard Biener <rguenther@suse.de>
4960
4961 PR middle-end/67662
4962 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
4963 undefined overflow unless they will cancel out.
4964
4965 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
4966
4967 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
4968 insn emit.
4969
4970 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
4971
4972 PR c/49655
4973 * opts.h (write_langs): Declare.
4974 * opts-global.c (write_langs): Make it extern.
4975
4976 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
4977
4978 PR target/67391
4979 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
4980 overlapping regs when matching the pattern.
4981
4982 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
4983
4984 * config/aarch64/aarch64-simd.md
4985 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
4986 (aarch64_float_truncate_hi_v4sf_le): New.
4987 (aarch64_float_truncate_hi_v4sf_be): Likewise.
4988
4989 2015-09-23 Richard Biener <rguenther@suse.de>
4990
4991 * tree-ssa-structalias.c (intra_create_variable_infos): Build
4992 representatives for all restrict qualified pointer destinations.
4993
4994 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
4995
4996 * config/i386/i386.md (define_code_attr mshift): New.
4997 (define_mode_iterator SWI1248_AVX512BW): Rename ...
4998 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
4999 only.
5000 (define_insn "*k<logic><mode>"): Use new iterator name.
5001 (define_insn "*<mshift><mode>3"): New.
5002
5003 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
5004
5005 PR middle-end/67649
5006 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
5007 mark the block as accessible.
5008
5009 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
5010
5011 * function.c (thread_prologue_and_epilogue_insns): Delete
5012 orig_entry_edge argument to try_shrink_wrapping.
5013 * shrink-wrap.c (can_get_prologue): New function.
5014 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
5015 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
5016 can_get_prologue where needed. Remove code that finds a single
5017 edge for the prologue. Remove code that tests if any reg clobbered
5018 by the prologue is live on the prologue edge. Remove code that finds
5019 the new prologue edge after duplicating blocks. Make a new prologue
5020 block and edge.
5021 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
5022
5023 2015-09-22 Jeff Law <law@redhat.com>
5024
5025 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
5026 behavior.
5027
5028 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
5029
5030 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
5031 -Wtemplates, -Wnamespaces): Document.
5032
5033 2015-09-22 Tom de Vries <tom@codesourcery.com>
5034
5035 PR tree-optimization/67671
5036 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
5037 pointer references as restrict.
5038
5039 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
5040
5041 * config/nios2/nios2.c (nios2_legitimize_address): When handling
5042 'reg + reloc' cases, allow first operand to be non-REG, and use
5043 force_reg() to enforce address pattern.
5044
5045 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
5046
5047 PR target/67480
5048 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
5049 (define_mode_iterator VI12_AVX_AVX512F): New.
5050 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
5051 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
5052 (define_insn "*<code><mode>3"): ... Into new pattern using
5053 VI12_AVX_AVX512F iterators without masking.
5054
5055 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
5056
5057 * config.gcc: Support "skylake-avx512".
5058 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
5059 PROCESSOR_SKYLAKE_AVX512.
5060 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
5061 (processor_target_table): Add "skylake-avx512".
5062 (PTA_SKYLAKE_AVX512): Define.
5063 (ix86_option_override_internal): Add "skylake_avx512".
5064 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
5065 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
5066 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
5067 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
5068 * doc/invoke.texi (skylake-avx512): New.
5069
5070 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
5071
5072 * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
5073 operand in pattern.
5074 (define_insn "kunpcksi"): Ditto.
5075 (define_insn "kunpckdi"): Ditto.
5076
5077 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
5078
5079 * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
5080 iterator instead of fixed modes.
5081
5082 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5083
5084 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
5085 Adjust declaration.
5086 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
5087 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
5088 out_result. Update to support update-fetch operations.
5089 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
5090 Adjust for change to aarch64_gen_atomic_ldop.
5091 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
5092 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
5093 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
5094 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
5095 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
5096
5097 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5098
5099 * config/aarch64/aarch64-protos.h
5100 (aarch64_atomic_ldop_supported_p): Declare.
5101 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
5102 (enum aarch64_atomic_load_op_code): New.
5103 (aarch64_emit_atomic_load_op): New.
5104 (aarch64_gen_atomic_ldop): Update to support load-operate
5105 patterns.
5106 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
5107 to an expander.
5108 (aarch64_atomic_<atomic_optab><mode>): New.
5109 (aarch64_atomic_<atomic_optab><mode>_lse): New.
5110 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
5111 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
5112 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
5113
5114 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5115
5116 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
5117 (UNSPECV_ATOMIC_LDOP_OR): New.
5118 (UNSPECV_ATOMIC_LDOP_BIC): New.
5119 (UNSPECV_ATOMIC_LDOP_XOR): New.
5120 (UNSPECV_ATOMIC_LDOP_PLUS): New.
5121 (ATOMIC_LDOP): New.
5122 (atomic_ldop): New.
5123 (aarch64_atomic_load<atomic_ldop><mode>): New.
5124
5125 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5126
5127 * config/aarch64/aarch64.md
5128 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
5129 pattern.
5130
5131 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
5132
5133 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
5134 Declare.
5135 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
5136 (aarch64_gen_atomic_ldop): New.
5137 (aarch64_split_atomic_op): Fix whitespace and add a comment.
5138 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
5139 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
5140 (atomic_exchange<mode>): Replace with an expander.
5141 (aarch64_atomic_exchange<mode>): New.
5142 (aarch64_atomic_exchange<mode>_lse): New.
5143 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
5144 (aarch64_atomic_swp<mode>): New.
5145
5146 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
5147
5148 * tree-inline.c (expand_call_inline): Use inform for extra note.
5149 Do not give a note with UNKNOWN_LOCATION.
5150 Replace input_location with gimple_location (stmt).
5151 Use true/false instead of TRUE/FALSE.
5152
5153 2015-09-22 Tom de Vries <tom@codesourcery.com>
5154
5155 PR tree-optimization/67666
5156 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
5157 with single field non-conservative.
5158
5159 2015-09-21 David S. Miller <davem@davemloft.net>
5160
5161 PR/67622
5162 Revert:
5163 2015-09-11 David S. Miller <davem@davemloft.net>
5164
5165 * config/sparc/constraints.md: Make "U" constraint a real register
5166 constraint.
5167 * config/sparc/sparc.c (TARGET_LRA_P): Define.
5168 (D_MODES, DF_MODES): Add missing cast.
5169 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
5170 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
5171 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
5172 cost to 8.
5173 * config/sparc/sparc.h (PROMOTE_MODE): Define.
5174 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
5175 provide these insn when flag_pic.
5176
5177 2015-09-17 David S. Miller <davem@davemloft.net>
5178
5179 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
5180 Declare.
5181 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
5182 function.
5183 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
5184 (HARD_REGNO_CALLER_SAVE_MODE): Define.
5185 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
5186 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
5187 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
5188 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
5189 provide when flag_pic.
5190
5191 2015-09-21 Jeff Law <law@redhat.com>
5192
5193 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
5194 behavior.
5195
5196 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5197
5198 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
5199
5200 2015-09-21 Richard Biener <rguenther@suse.de>
5201
5202 * passes.c (rest_of_decl_compilation): Do not call
5203 dwarf2out_early_global_decl for aliases.
5204
5205 2015-09-21 Richard Biener <rguenther@suse.de>
5206
5207 PR debug/67664
5208 * dwarf2out.c (add_location_or_const_value_attribute): Remove
5209 attribute parameter. Early exit if either DW_AT_const_value
5210 or DW_AT_location are present already.
5211 (gen_variable_die): Adjust caller.
5212 (dwarf2out_late_global_decl): Likewise.
5213
5214 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
5215
5216 PR target/67657
5217 * config/sh/sh.c (sh_remove_overlapping_post_inc,
5218 sh_peephole_emit_move_insn): Add new functions.
5219 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
5220 sh_peephole_emit_move_insn): Declere them.
5221 * config/sh/sh.md: Use them in various peephole2 patterns.
5222
5223 2015-09-21 Richard Biener <rguenther@suse.de>
5224
5225 PR middle-end/67651
5226 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
5227 address with -fno-delete-null-pointer-checks.
5228
5229 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
5230
5231 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
5232 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
5233 (reduc_uplus_v16qi): Remove.
5234
5235 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
5236 (reduc_<VEC_reduc_name>_v2df): Remove.
5237 (reduc_<VEC_reduc_name>_v4sf): Remove.
5238 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
5239
5240 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
5241 gen_ function by removing * prefix.
5242 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
5243
5244 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5245
5246 PR middle-end/60832
5247 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
5248 Print i_bound without converting it to a tree.
5249
5250 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
5251
5252 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
5253 operands[4] operands[5] swap with std::swap, removed tmp variable.
5254 (arm_evpc_neon_vzip): Replaced in0/in1 and
5255 out0/out1 swaps with std::swap, removed x variable.
5256 (arm_evpc_neon_vtrn): Replaced in0/int1 and
5257 out0/out1 swaos with std::swap, removed x variable.
5258 (arm_expand_vec_perm_const_1): Replaced
5259 d->op0/d->op1 swap with std::swap, removed x variable.
5260 (arm_evpc_neon_vuzp): Replaced in0/in1 and
5261 out0/out1 swaps with std::swap, removed x variable.
5262
5263 2015-09-21 Jonathan Yong <10walls@gmail.com>
5264
5265 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
5266 sysroot/usr/lib/32api for additional win32 libraries,
5267 fixes failing Cygwin bootstrapping.
5268
5269 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
5270
5271 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
5272
5273 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
5274
5275 PR target/67126
5276 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
5277 (*mov_t_msb_neg): Rewrite negc pattern.
5278
5279 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
5280
5281 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
5282 immediate generation code.
5283
5284 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
5285
5286 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
5287 redundant immediate generation code.
5288
5289 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
5290
5291 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
5292 (AARCH64_NUM_BITMASKS): Remove.
5293 (aarch64_bitmasks_cmp): Remove.
5294 (aarch64_build_bitmask_table): Remove.
5295
5296 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
5297
5298 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
5299 slow immediate matching loops with a faster algorithm.
5300
5301 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
5302
5303 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
5304 faster algorithm.
5305
5306 2015-09-20 Jeff Law <law@redhat.com>
5307
5308 PR tree-optimization/47679
5309 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
5310 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
5311 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
5312 (thread_through_normal_block): Use record_temporary_equivalences.
5313
5314 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
5315
5316 * coretypes.h (gimple): Change typedef to be a forward declaration.
5317 * gimple.h (gimple_statement_base): rename to gimple.
5318 * (all functions and types using gimple): Adjust.
5319 * *.[ch]: Likewise.
5320
5321 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
5322 David Edelsohn <dje.gcc@gmail.com>
5323
5324 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
5325 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5326 (EH_FRAME_THROUGH_COLLECT2): Define.
5327 (EH_TABLES_CAN_BE_READ_ONLY): Define.
5328 (ASM_OUTPUT_DWARF_PCREL): Define.
5329 (ASM_OUTPUT_DWARF_DATAREL): Define.
5330
5331 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
5332
5333 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
5334 of TARGET_ELF32.
5335
5336 2015-09-18 Jeff Law <law@redhat.com>
5337
5338 PR tree-optimization/47679
5339 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
5340 it here ...
5341 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
5342 object. Update constructor.
5343 (pass_dominator::execute): Corresponding chagnes to declaration
5344 and initialization of avail_exprs_stack. Update constructor call
5345 for dom_opt_dom_walker object.
5346 (lookup_avail_expr, record_cond): Accept additional argument. Pass
5347 it down to children as needed.
5348 (record_equivalences_from_incoming_edge): Likewise.
5349 (eliminate_redundant_computations): Likewise.
5350 (record_equivalences_from_stmt): Likewise.
5351 (simplify_stmt_for_jump_threading): Likewise.
5352 (record_temporary_equivalences): Likewise.
5353 (optimize_stmt): Likewise.
5354 (dom_opt_dom_walker::thread_across_edge): Update access to
5355 avail_exprs_stack object and pass it to children as needed.
5356 (dom_opt_dom_walker::before_dom_children): Similarly.
5357 (dom_opt_dom_walker::after_dom_children): Similarly.
5358 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
5359 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
5360 Add avail_expr_stack argument. Pass it to children as needed.
5361 (dummy_simplify): Likewise.
5362 (simplify_control_stmt_condition): Likewise.
5363 (thread_around_empty_blocks): Likewise.
5364 (thread_through_normal_block): Likewise.
5365 (thread_across_edge): Likewise.
5366 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
5367 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
5368
5369 PR tree-optimization/47679
5370 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
5371 it here ...
5372 (dom_opt_dom_walker): New private member holding the const_and_copies
5373 object. Update constructor.
5374 (pass_dominator::execute): Corresponding changes to declaration
5375 and initialization of const_and_copies. Update constructor call
5376 for the dom_opt_dom_walker object.
5377 (record_temporary_equivalences): Accept const_and_copies argument
5378 pass it down to children as needed.
5379 (record_equality): Likewise.
5380 (record_equivalences_from_incoming_edge): Likewise.
5381 (cprop_into_successor_phis, optimize_stmt): Likewise.
5382 (eliminate_redundant_computations): Likewise.
5383 (dom_opt_dom_walker::thread_across_edge): Update access to
5384 const_and_copies object and pass it to children as needed.
5385 (dom_opt_dom_walker::before_dom_children): Similarly.
5386 (dom_opt_dom_walker::after_dom_children): Similarly.
5387
5388 PR tree-optimization/47679
5389 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
5390 it into the avail_exprs_stack class.
5391 (pass_dominator::execute): Corresponding changes to declaration
5392 and initialization of avail_exprs. Pass avail_exprs to
5393 dump_dominator_optimization_stats.
5394 (record_cond): Extract avail_exprs from avail_exprs_stack.
5395 (lookup_avail_expr): Similarly.
5396 (htab_staticstics): Remove unnecessary prototype. Move to earlier
5397 position in file.
5398 (dump_dominator_optimization_stats): Make static and prototype.
5399 Add argument for the hash table to dump.
5400 (debug_dominator_optimization_stats): Remove.
5401 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
5402 prototype.
5403 (debug_dominator_optimization_stats): Similarly.
5404 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
5405 "void" in prototype for pop_to_marker method. Add accessor method
5406 for the underlying avail_exprs table.
5407
5408 * tree-ssa-threadedge.c: Remove trailing whitespace.
5409
5410 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
5411
5412 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
5413 unsigned.
5414 (pa_ldil_cint_p): Likewise.
5415 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
5416 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
5417 Update callers.
5418 * config/pa/pa.md: Likewise.
5419
5420 2015-09-18 David Malcolm <dmalcolm@redhat.com>
5421
5422 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
5423 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
5424 (diagnostic_show_locus): Likewise.
5425 (diagnostic_print_caret_line): Likewise.
5426 * diagnostic-show-locus.c: New file.
5427
5428 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
5429
5430 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
5431 "back" parameter. Declare label in #if block.
5432
5433 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
5434
5435 PR middle-end/67619
5436 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
5437 the address to a register.
5438
5439 2015-09-18 Jeff Law <law@redhat.com>
5440
5441 PR tree-optimization/47679
5442 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
5443 * tree-ssa-dom.c: Remove unnecessary header includes.
5444 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
5445 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
5446 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
5447 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
5448 (pass_phi_only_cprop::execute): Likewise.
5449 (make_pass_phi_only_cprop): Likewise.
5450 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
5451 uses of file scoped statics by passing the required objects
5452 as parameters wherever needed.
5453
5454 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
5455 David Edelsohn <dje.gcc@gmail.com>
5456
5457 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
5458 EH_FRAME_THROUGH_COLLECT2.
5459 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
5460 DW_EH_PE_datarel.
5461 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
5462 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
5463 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
5464 * except.c (switch_to_exception_section): Use a read-only section
5465 even if EH_FRAME_SECTION_NAME is undefined.
5466 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
5467 * collect2.c (write_c_file_stat): Provide dbase on AIX.
5468 (scan_prog_file): Don't export __dso_handle nor
5469 __gcc_unwind_dbase.
5470 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5471 (EH_TABLES_CAN_BE_READ_ONLY): Define.
5472 (ASM_OUTPUT_DWARF_PCREL): Define.
5473 (ASM_OUTPUT_DWARF_DATAREL): Define.
5474 (EH_FRAME_THROUGH_COLLECT2): Define.
5475 (EH_FRAME_IN_DATA_SECTION): Delete.
5476 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
5477 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
5478 Declare.
5479 (rs6000_asm_output_dwarf_datarel): Declare.
5480 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
5481 (rs6000_aix_asm_output_dwarf_datarel): New.
5482 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
5483 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
5484 (EH_FRAME_THROUGH_COLLECT2): Define.
5485 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
5486 (EH_FRAME_THROUGH_COLLECT2): Define.
5487 (EH_TABLES_CAN_BE_READ_ONLY): Define.
5488 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
5489 (EH_FRAME_THROUGH_COLLECT2): New.
5490 (ASM_OUTPUT_DWARF_DATAREL): New.
5491 * doc/tm.texi: Regenerate.
5492
5493 2015-09-18 Richard Biener <rguenther@suse.de>
5494
5495 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
5496 we're in early phase.
5497 (schedule_generic_params_dies_gen): Likewise.
5498 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
5499 work as possible, retaining unhandled cases.
5500 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
5501 clear out generic_type_instances at the end.
5502 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
5503 (dwarf2out_early_finish): ... here. Do most of
5504 gen_remaining_tmpl_value_param_die_attribute here.
5505
5506 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
5507
5508 PR tree-optimization/67283
5509 * tree-sra.c (type_consists_of_records_p): Rename to...
5510 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
5511 (completely_scalarize_record): Rename to...
5512 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
5513 (scalarize_elem): New.
5514 (analyze_all_variable_accesses): Follow renamings.
5515
5516 2015-09-18 Richard Biener <rguenther@suse.de>
5517
5518 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
5519 in early-dwarf.
5520
5521 2015-09-18 Richard Biener <rguenther@suse.de>
5522
5523 PR tree-optimization/66142
5524 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
5525 treat MEM[&x] and x the same.
5526 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
5527 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
5528 when we simplified sth.
5529 (vn_reference_maybe_forwprop_address): Likewise.
5530 (valueize_refs_1): When we simplified through
5531 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
5532 set valueized_anything to true.
5533 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
5534 one ref kills the other instead of just a offset-based test.
5535 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
5536 for the operand_equal_p test to compare bases and also compare
5537 sizes.
5538
5539 2015-09-17 Christian Bruel <christian.bruel@st.com>
5540
5541 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
5542
5543 2015-09-17 Richard Henderson <rth@redhat.com>
5544
5545 PR libstdc++/65913
5546 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
5547 pointers that encode the alignment of the object.
5548
5549 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
5550
5551 PR rtl-optimization/66790
5552 * df-problems.c (LIVE): Amend documentation.
5553
5554 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
5555
5556 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
5557 and optabs-tree.o.
5558 (GTFILES): Replace optabs.c with optabs-libfunc.c.
5559 * genopinit.c (main): Add an include guard to insn-opinit.h.
5560 Protect the rtx_code parts with NUM_RTX_CODE.
5561 * optabs.h: Split parts out to...
5562 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
5563 * optabs.c: Split parts out to...
5564 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
5565 * cilk-common.c: Include optabs-query.h rather than optabs.h.
5566 * fold-const.c: Likewise.
5567 * target-globals.c: Likewise.
5568 * tree-if-conv.c: Likewise.
5569 * tree-ssa-forwprop.c: Likewise.
5570 * tree-ssa-loop-prefetch.c: Likewise.
5571 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
5572 Remove unncessary include files.
5573 * tree-ssa-phiopt.c: Likewise.
5574 * tree-ssa-reassoc.c: Likewise.
5575 * tree-switch-conversion.c: Likewise.
5576 * tree-vect-data-refs.c: Likewise.
5577 * tree-vect-generic.c: Likewise.
5578 * tree-vect-loop.c: Likewise.
5579 * tree-vect-patterns.c: Likewise.
5580 * tree-vect-slp.c: Likewise.
5581 * tree-vect-stmts.c: Likewise.
5582 * tree-vrp.c: Likewise.
5583 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
5584 rather than optabs.h.
5585 * expr.c: Include optabs-tree.h.
5586 * function.c: Likewise.
5587
5588 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
5589
5590 PR middle-end/65958
5591 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
5592 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
5593 * config/arm/arm.c: Include common/common-target.h.
5594 (use_return_insn): Return 0 if the static chain register was saved
5595 above a non-APCS frame.
5596 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
5597 (struct scratch_reg): New.
5598 (get_scratch_register_on_entry): New function.
5599 (release_scratch_register_on_entry): Likewise.
5600 (arm_emit_probe_stack_range): Likewise.
5601 (output_probe_stack_range): Likewise.
5602 (arm_expand_prologue): Factor out code dealing with the IP register
5603 for nested function and adjust it for stack checking.
5604 Invoke arm_emit_probe_stack_range if static builtin stack checking
5605 is enabled.
5606 (thumb1_expand_prologue): Sorry out if static builtin stack checking
5607 is enabled.
5608 (arm_expand_epilogue): Add the saved static chain register, if any, to
5609 the amount of pre-pushed registers to pop.
5610 (arm_frame_pointer_required): Return true if static stack checking is
5611 enabled and we want to catch the exception with the EABI unwinder.
5612 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
5613 (UNSPEC_PROBE_STACK_RANGE): Likewise.
5614 * config/arm/arm.md (probe_stack): New insn.
5615 (probe_stack_range): Likewise.
5616
5617 2015-09-17 Richard Biener <rguenther@suse.de>
5618
5619 * genmatch.c (parser::parse_expr): Improve error message
5620 for mis-placed flags.
5621
5622 2015-09-17 Richard Biener <rguenther@suse.de>
5623
5624 * passes.c (rest_of_decl_compilation): Always call early_global_decl
5625 debug hook when we created a varpool node.
5626 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
5627 dwarf2out_early_global_decl, when not just add location or
5628 value attributes to existing DIEs.
5629
5630 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
5631
5632 * config/aarch64/aarch64.md (copysigndf3): New.
5633 (copysignsf3): Likewise.
5634
5635 2015-09-17 David S. Miller <davem@davemloft.net>
5636
5637 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
5638 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
5639 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
5640 (HARD_REGNO_CALLER_SAVE_MODE): Define.
5641 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
5642 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
5643 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
5644 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
5645 provide when flag_pic.
5646
5647 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
5648
5649 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
5650 object_allocator change.
5651
5652 2015-09-17 Bin Cheng <bin.cheng@arm.com>
5653
5654 PR tree-optimization/66388
5655 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
5656 (dump_iv): Dump no_overflow information.
5657 (alloc_iv): Initialize new field for struct iv.
5658 (mark_bivs): Count number of no_overflow bivs.
5659 (find_deriving_biv_for_expr, record_biv_for_address_use): New
5660 functions.
5661 (idx_find_step): Call new functions above.
5662 (add_candidate_1, add_candidate): New paramter.
5663 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
5664 (get_computation_aff): Simplify convertion of cand for BIV.
5665 (get_computation_cost_at): Step cand's base if necessary.
5666
5667 2015-09-17 Bin Cheng <bin.cheng@arm.com>
5668
5669 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
5670 parameter.
5671 (tree_simplify_using_condition): Ditto.
5672 (simplify_using_initial_conditions): Ditto.
5673 (loop_exits_before_overflow): Pass new argument to function
5674 simplify_using_initial_conditions. Remove case for type conversions
5675 simplification.
5676 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
5677 parameter.
5678 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
5679 in iv base using loop initial conditions.
5680
5681 2015-09-16 Jeff Law <law@redhat.com>
5682
5683 PR tree-optimization/47679
5684 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
5685 (free_all_edge_infos): Use it.
5686 (allocate_edge_info): Free preexisting edge info data.
5687 (pass_dominator::execute): Set up initial edge info structures.
5688 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
5689 thread_across_edge.
5690 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
5691 If non-null, then push/pop markers appropriately.
5692 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
5693 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
5694 thread-across_edge.
5695
5696 2015-09-16 James Bowman <james.bowman@ftdichip.com>
5697
5698 * config/ft32/ft32.c: Fix the memory address space predicate.
5699
5700 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
5701
5702 PR target/67573
5703 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
5704 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
5705
5706 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
5707
5708 * toplev.h (check_global_declaration): Remove declaration.
5709 * toplev.c (check_global_declaration): Move to ...
5710 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
5711 (analyze_functions): Update call.
5712
5713 2015-09-16 David S. Miller <davem@davemloft.net>
5714
5715 * lra-constraints.c (simplify_operand_subreg): Do not assume that
5716 lowpart of a SUBREG has offset zero.
5717
5718 2015-09-16 Jeff Law <law@redhat.com>
5719
5720 PR tree-optimization/47679
5721 * tree-ssa-dom.c (enum expr_kind): Moved from here to
5722 tree-ssa-scopedtables.h.
5723 (struct hashable_expr, class expr_hash_elt): Likewise.
5724 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
5725 Move associated methods into tree-ssa-scopedtables.c.
5726 (avail_expr_hash, initialize_expr_from_cond): Similarly.
5727 (hashable_expr_equal_p, add_expr_commutative): Likewise.
5728 (add_hashable_expr): Likewise.
5729 (record_cond): Delete element directly.
5730 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
5731 private copy ctor and assignment operator methods.
5732 (expr_elt_hasher): Inline trivial methods.
5733 (initialize_expr_from_cond): Prototype.
5734 * tree-ssa-scopedtables.c: Add necessary includes, functions and
5735 methods that were previously in tree-ssa-dom.c. Improve various
5736 comments.
5737
5738 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
5739
5740 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
5741
5742 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
5743
5744 PR bootstrap/67587
5745 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
5746 fixup_partitions.
5747
5748 2015-09-16 Richard Biener <rguenther@suse.de>
5749
5750 PR middle-end/67253
5751 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
5752 location of possibly shared trees.
5753
5754 2015-09-16 Richard Biener <rguenther@suse.de>
5755
5756 PR middle-end/67271
5757 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
5758
5759 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
5760
5761 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
5762 offset and size computations instead of HOST_WIDE_INT.
5763
5764 2015-09-16 Richard Biener <rguenther@suse.de>
5765
5766 PR middle-end/67442
5767 * fold-const.c (extract_muldiv_1): Properly extend multiplication
5768 result before builting a tree via wide_int_to_tree.
5769
5770 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
5771
5772 * Makefile.in: Add memory-block.cc
5773 (pool_allocator::initialize): Use fixed block size.
5774 (pool_allocator::release): Use memory_block_pool.
5775 (pool_allocator::allocate): Likewise.
5776 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
5777 object pools.
5778 * cfg.c (initialize_original_copy_tables): Likewise.
5779 * cselib.c (elt_list_pool, elt_loc_list_pool,
5780 cselib_val_pool): Likewise.
5781 * df-problems.c (df_chain_alloc): Likewise.
5782 * df-scan.c (df_scan_alloc): Likewise.
5783 * dse.c (cse_store_info_pool, rtx_store_info_pool,
5784 read_info_type_pool, insn_info_type_pool, bb_info_pool,
5785 group_info_pool, deferred_change_pool): Likewise.
5786 * et-forest.c (et_nodes, et_occurrences): Likewise.
5787 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
5788 ipcp_agg_lattice_pool): Likewise.
5789 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
5790 * ipa-profile.c (histogram_pool): Likewise.
5791 * ipa-prop.c (ipa_refdesc_pool): Likewise.
5792 * ira-build.c (live_range_pool, allocno_pool, object_pool,
5793 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
5794 * ira-color.c (update_cost_record_pool): Likewise.
5795 * lra-lives.c (lra_live_range_pool): Likewise.
5796 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
5797 * memory-block.cc: New file.
5798 * memory-block.h: New file.
5799 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
5800 * sched-deps.c (sched_deps_init): Likewise.
5801 * sel-sched-ir.c (sched_lists_pool): Likewise.
5802 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
5803 * tree-sra.c (access_pool): Likewise.
5804 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
5805 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
5806 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
5807 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
5808 * tree-ssa-strlen.c (strinfo_pool): Likewise.
5809 * tree-ssa-structalias.c (variable_info_pool): Likewise.
5810 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
5811 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
5812
5813 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
5814
5815 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
5816 definition.
5817 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
5818 call0 ABI.
5819
5820 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
5821
5822 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
5823 to pass TLS call argument, according to current ABI.
5824 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
5825 callx0 for TLS call, according to current ABI.
5826
5827 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
5828
5829 * tree-eh.c (lower_try_finally_dup_block): Clear location information
5830 on stack restore statements.
5831 (decide_copy_try_finally): Do not consider a stack restore statement as
5832 coming from sources.
5833
5834 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
5835
5836 * config/alpha/alpha.c (alpha_expand_block_clear): Use
5837 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
5838
5839 2015-09-15 Jeff Law <law@redhat.com>
5840
5841 PR tree-optimization/47679
5842 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
5843 methods and private members.
5844 (avail_exprs_stack): Similarly. Change type of global
5845 from a pair of expr_hash_elt_t to the new class.
5846 (expr_elt_hasher::hash): Corresponding changes.
5847 (expr_elt_hasher::equal): Similarly.
5848 (avail_expr_hash): Similarly.
5849 (pass_dominator::execute): Similarly.
5850 (dom_opt_dom_walker::thread_across_edge): Similarly.
5851 (record_cond): Similarly.
5852 (dom_opt_dom_walker::before_dom_children): Similarly.
5853 (dom_opt_dom_walker::after_dom_children): Similarly.
5854 (lookup_avail_expr): Likewise.
5855 (initialize_hash_element): Now a expr_hash_elt constructor.
5856 (initialize_hash_element_from_expr): Similarly.
5857 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
5858 (free_expr_hash_elt): Call dtor for the element.
5859 (remove_local_expressions_from_table): Now the "pop_to_marker"
5860 method in the available_exprs_stack class.
5861 (avail_expr_stack::record_expr): Method factored out.
5862 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
5863 Fix formatting.
5864 (hashable_expr_equal_p): Fix formatting.
5865
5866 2015-09-15 David Malcolm <dmalcolm@redhat.com>
5867
5868 * input.h (location_get_source_line): Drop "expanded_location"
5869 param in favor of a file and line number.
5870 * input.c (location_get_source_line): Likewise.
5871 (dump_location_info): Update for change in signature of
5872 location_get_source_line.
5873 * diagnostic.c (diagnostic_print_caret_line): Likewise.
5874
5875 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
5876
5877 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
5878 Bump to 4KB for SJLJ exceptions.
5879 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
5880 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
5881 * doc/tm.texi: Regenerate.
5882
5883 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5884
5885 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
5886 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
5887 Update prototype.
5888
5889 2015-09-15 Richard Biener <rguenther@suse.de>
5890
5891 PR tree-optimization/67470
5892 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
5893 structure for PHI hoisting by inserting a forwarder block
5894 if appropriate.
5895
5896 2015-09-15 Christian Bruel <christian.bruel@st.com>
5897
5898 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
5899 (arm_option_print): New function.
5900
5901 2015-09-15 Christian Bruel <christian.bruel@st.com>
5902
5903 PR target/52144
5904 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
5905 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
5906 Remove flags parameter.
5907 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
5908 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
5909 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
5910 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
5911 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
5912 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
5913 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
5914 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
5915
5916 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5917
5918 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
5919
5920 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
5921 AARCH64_VALID_SIMD_DREG_MODE.
5922
5923 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5924
5925 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
5926 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
5927 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
5928 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
5929 aarch64_ld4_lane<mode>): Combine together, making...
5930 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
5931 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
5932 aarch64_st4_lane<mode>): Combine together, making...
5933 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
5934 * config/aarch64/iterators.md (nregs): Add comment.
5935
5936 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5937
5938 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
5939 Change operand mode from <V_TWO_ELEM> to BLK.
5940 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
5941 (aarch64_vec_store_lanesoi_lane<mode): Likewise
5942 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5943 (aarch64_ld2_lane<mode>): Likewise.
5944 (aarch64_st2_lane<VQ:mode>): Likewise.
5945 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
5946
5947 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5948
5949 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
5950 Change operand mode from <V_FOUR_ELEM> to BLK.
5951 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
5952 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
5953 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5954 (aarch64_ld4_lane<mode>): Likewise.
5955 (aarch64_st4_lane<mode>): Likewise.
5956 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
5957
5958 2015-09-15 Richard Biener <rguenther@suse.de>
5959
5960 PR middle-end/67563
5961 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
5962 transfer EH info from old to new stmt.
5963 (replace_call_with_value): Likewise.
5964 (replace_call_with_call_and_fold): Likewise.
5965 (gimple_fold_builtin_memory_op): Likewise.
5966 (gimple_fold_builtin_memset): Likewise.
5967 (gimple_fold_builtin_stpcpy): Likewise.
5968 (gimple_fold_call): Likewise.
5969
5970 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5971
5972 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
5973 comment.
5974 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
5975 (aarch64_simd_intEI_type_node): Likewise.
5976 (aarch64_simd_builtin_std_type): Remove EImode case.
5977 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
5978 * config/aarch64/aarch64-modes.def: Remove EImode.
5979
5980 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5981
5982 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
5983 Change operand mode from <V_THREE_ELEM> to BLK.
5984 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
5985 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
5986 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5987 (aarch64_ld3_lane<mode>): Likewise.
5988 (aarch64_st3_lane<mode>): Likewise.
5989 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
5990
5991 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5992
5993 * config/aarch64/aarch64-simd.md
5994 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
5995 Change all TImode operands to BLKmode.
5996 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
5997 Change all EImode operands to BLKmode.
5998 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
5999 Change all OImode operands to BLKmode.
6000
6001 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
6002 and call set_mem_size.
6003 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
6004
6005 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
6006
6007 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
6008
6009 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
6010 to...
6011 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
6012
6013 (vec_store_lanesci_lane<mode>): Rename to...
6014 (aarch64_vec_store_lanesci_lane<mode>): ...this.
6015
6016 (vec_store_lanesxi_lane<mode>): Rename to...
6017 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
6018
6019 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
6020 aarch64_st4_lane<mode>): Follow renaming.
6021
6022 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6023
6024 * config/s390/s390.c (s390_const_operand_ok): Add missing
6025 brackets.
6026
6027 2015-09-15 Richard Biener <rguenther@suse.de>
6028
6029 PR lto/67568
6030 * lto-streamer.h (lto_location_cache::current_sysp): Properly
6031 initialize.
6032 * lto-streamer-out.c (clear_line_info): Likewise.
6033
6034 2015-09-15 Richard Biener <rguenther@suse.de>
6035
6036 * doc/match-and-simplify.texi: Fix wording.
6037
6038 2015-09-15 Bin Cheng <bin.cheng@arm.com>
6039
6040 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
6041 unnecessary type conversion in op1.
6042
6043 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
6044
6045 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
6046 (dup_block_and_redirect): Delete function.
6047 (can_dup_for_shrink_wrapping): New function.
6048 (fix_fake_fallthrough_edge): New function.
6049 (try_shrink_wrapping): Rewrite function.
6050 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
6051
6052 2015-09-14 Rich Felker <dalias@libc.org>
6053
6054 * configure.ac: Change target pattern for sh TLS support
6055 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
6056 * configure: Regenerate.
6057
6058 2015-09-14 Jeff Law <law@redhat.com>
6059
6060 PR tree-optimization/47679
6061 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
6062 type rather than void *.
6063
6064 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
6065
6066 PR fortran/67460
6067 * diagnostic.c (diagnostic_initialize): Do not set
6068 some_warnings_are_errors.
6069 (diagnostic_finish): Use DK_WERROR count instead.
6070 (diagnostic_report_diagnostic): Do not set
6071 some_warnings_are_errors.
6072 * diagnostic.h (struct diagnostic_context): Remove
6073 some_warnings_are_errors.
6074
6075 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
6076
6077 * config/sparc/predicates.md (const_all_ones_operand): Use
6078 CONSTM1_RTX to simplify definition.
6079
6080 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
6081
6082 PR target/67061
6083 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
6084 Handle call insns.
6085
6086 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
6087
6088 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
6089 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
6090 OPT_fshow_column to handled saved option cases.
6091 (append_compiler_options): Do not skip the above added options.
6092
6093 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6094
6095 PR target/63304
6096 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
6097 nopcrelative_literal_loads.
6098 (aarch64_classify_address): Likewise.
6099 (aarch64_constant_pool_reload_icode): Define.
6100 (aarch64_secondary_reload): Handle secondary reloads for
6101 literal pools.
6102 (aarch64_override_options): Handle nopcrelative_literal_loads.
6103 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
6104 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
6105 Define.
6106 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
6107 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
6108 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
6109 predicate.
6110 * doc/invoke.texi (mpc-relative-literal-loads): Document.
6111
6112 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
6113
6114 PR middle-end/67401
6115 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
6116 sync_compare_and_swap_optab libcall to target_oval.
6117
6118 2015-09-14 Marek Polacek <polacek@redhat.com>
6119
6120 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
6121 value.
6122 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
6123
6124 2015-09-11 Mark Wielaard <mjw@redhat.com>
6125
6126 PR c/28901
6127 * toplev.c (check_global_declaration): Check and use
6128 warn_unused_const_variable.
6129 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
6130 (-Wunused-variable): Remove non-constant. For C implies
6131 -Wunused-const-variable.
6132 (-Wunused-const-variable): New.
6133
6134 2015-09-14 Richard Biener <rguenther@suse.de>
6135
6136 * doc/match-and-simplify.texi: Update for changed syntax
6137 of inner ifs and the new switch expression.
6138
6139 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
6140
6141 * config/i386/haswell.md: New file describing Haswell pipeline.
6142 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
6143 haswell-like processors.
6144 (ix86_reassociation_width): Increase reassociation width for 64-bit
6145 Haswell processor family.
6146 * config/i386/i386.md: Introduce haswell cpu and include new md file.
6147
6148 2015-09-14 Richard Biener <rguenther@suse.de>
6149
6150 * doc/match-and-simplify.texi: Fixup some formatting issues
6151 and document the 's' flag.
6152
6153 2015-09-13 Olivier Hainque <hainque@adacore.com>
6154 Eric Botcazou <ebotcazou@adacore.com>
6155
6156 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
6157 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
6158 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
6159 (TARGET_CPU_gr5): Likewise.
6160 (TARGET_CPU_gr6): Likewise.
6161 (MULTILIB_DEFAULTS): Likewise.
6162 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
6163 for mcpu=gr5 and mcpu=gr6.
6164 (MULTILIB_DIRNAMES): Adjust accordingly.
6165
6166 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6167
6168 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
6169 (mem_ref_p): Likewise.
6170 (outermost_indep_loop): Adjust.
6171 (mem_ref_in_stmt): Likewise.
6172 (determine_max_movement): Likewise.
6173 (mem_ref_alloc): Likewise.
6174 (record_mem_ref_loc): Likewise.
6175 (set_ref_stored_in_loop): Likewise.
6176 (mark_ref_stored): Likewise.
6177 (gather_mem_refs_stmt): Likewise.
6178 (mem_refs_may_alias_p): Likewise.
6179 (for_all_locs_in_loop): Likewise.
6180 (struct rewrite_mem_ref_loc): Likewise.
6181 (rewrite_mem_refs): Likewise.
6182 (struct first_mem_ref_loc_1): Likewise.
6183 (first_mem_ref_loc): Likewise.
6184 (struct sm_set_flag_if_changed): Likewise.
6185 (execute_sm_if_changed_flag_set): Likewise.
6186 (execute_sm): Likewise.
6187 (hoist_memory_references):
6188 (struct ref_always_accessed): Likewise.
6189 (ref_always_accessed_p): Likewise.
6190 (refs_independent_p): Likewise.
6191 (record_dep_loop): Likewise.
6192 (ref_indep_loop_p_1): Likewise.
6193 (ref_indep_loop_p_2): Likewise.
6194 (ref_indep_loop_p): Likewise.
6195 (can_sm_ref_p): Likewise.
6196 (find_refs_for_sm): Likewise.
6197 (tree_ssa_lim_finalize): Likewise.
6198
6199 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6200
6201 * dwarf2out.c (dw_attr_ref): Remove typedef.
6202 (dw_line_info_ref): Likewise.
6203 (pubname_ref): Likewise.
6204 (dw_ranges_ref): Likewise.
6205 (dw_ranges_by_label_ref): Likewise.
6206 (comdat_type_node_ref): Likewise.
6207 (get_AT): Adjust.
6208 (get_AT_low_pc): Likewise.
6209 (get_AT_hi_pc): Likewise.
6210 (get_AT_string): Likewise.
6211 (get_AT_flag): Likewise.
6212 (get_AT_unsigned): Likewise.
6213 (get_AT_ref): Likewise.
6214 (get_AT_file): Likewise.
6215 (remove_AT): Likewise.
6216 (print_die): Likewise.
6217 (check_die): Likewise.
6218 (die_checksum): Likewise.
6219 (attr_checksum_ordered): Likewise.
6220 (struct checksum_attributes): Likewise.
6221 (collect_checksum_attributes): Likewise.
6222 (die_checksum_ordered): Likewise.
6223 (same_die_p): Likewise.
6224 (is_declaration_die): Likewise.
6225 (clone_die): Likewise.
6226 (clone_as_declaration): Likewise.
6227 (copy_declaration_context): Likewise.
6228 (break_out_comdat_types): Likewise.
6229 (copy_decls_walk): Likewise.
6230 (output_location_lists): Likewise.
6231 (external_ref_hasher::hash): Likewise.
6232 (optimize_external_refs_1): Likewise.
6233 (build_abbrev_table): Likewise.
6234 (size_of_die): Likewise.
6235 (unmark_all_dies): Likewise.
6236 (size_of_pubnames): Likewise.
6237 (output_die_abbrevs): Likewise.
6238 (output_die): Likewise.
6239 (output_pubnames): Likewise.
6240 (add_ranges_num): Likewise.
6241 (add_ranges_by_labels): Likewise.
6242 (add_high_low_attributes): Likewise.
6243 (gen_producer_string): Likewise.
6244 (dwarf2out_set_name): Likewise.
6245 (new_line_info_table): Likewise.
6246 (prune_unused_types_walk_attribs): Likewise.
6247 (prune_unused_types_update_strings): Likewise.
6248 (prune_unused_types): Likewise.
6249 (resolve_addr): Likewise.
6250 (optimize_location_lists_1): Likewise.
6251 (index_location_lists): Likewise.
6252 (dwarf2out_finish): Likewise.
6253
6254 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6255
6256 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
6257
6258 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6259
6260 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
6261 (dump_asserts_for): Adjust.
6262 (register_new_assert_for): Likewise.
6263 (process_assert_insertions): Likewise.
6264 (insert_range_assertions): Likewise.
6265
6266 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6267
6268 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
6269 and remove typedef.
6270 (new_temp_expr_table): Adjust.
6271 (free_temp_expr_table): Likewise.
6272 (version_to_be_replaced_p): Likewise.
6273 (make_dependent_on_partition): Likewise.
6274 (add_to_partition_kill_list): Likewise.
6275 (remove_from_partition_kill_list): Likewise.
6276 (add_dependence): Likewise.
6277 (finished_with_expr): Likewise.
6278 (process_replaceable): Likewise.
6279 (kill_expr): Likewise.
6280 (kill_virtual_exprs): Likewise.
6281 (mark_replaceable): Likewise.
6282 (find_replaceable_in_bb): Likewise.
6283 (find_replaceable_exprs): Likewise.
6284 (debug_ter): Likewise.
6285
6286 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6287
6288 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
6289 (struct btr_user): Rename from btr_user_s.
6290 (struct btr_def): Rename from btr_def_s.
6291 (find_btr_def_group): Adjust.
6292 (add_btr_def): Likewise.
6293 (new_btr_user): Likewise.
6294 (note_other_use_this_block): Likewise.
6295 (compute_defs_uses_and_gen): Likewise.
6296 (link_btr_uses): Likewise.
6297 (build_btr_def_use_webs): Likewise.
6298 (block_at_edge_of_live_range_p): Likewise.
6299 (btr_def_live_range): Likewise.
6300 (combine_btr_defs): Likewise.
6301 (move_btr_def): Likewise.
6302 (migrate_btr_def): Likewise.
6303 (migrate_btr_defs): Likewise.
6304
6305 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6306
6307 * var-tracking.c (shared_hash_def): Rename to shared_hash.
6308 (shared_hash): Remove typedef.
6309 (struct dataflow_set): Adjust.
6310 (shared_hash_unshare): Likewise.
6311 (dataflow_set_merge): Likewise.
6312 (vt_initialize): Likewise.
6313 (vt_finalize): Likewise.
6314
6315 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6316
6317 * var-tracking.c (struct location_chain): Rename from
6318 location_chain_def.
6319 (struct variable_part): Adjust.
6320 (variable_htab_free): Likewise.
6321 (unshare_variable): Likewise.
6322 (get_init_value): Likewise.
6323 (get_addr_from_local_cache): Likewise.
6324 (drop_overlapping_mem_locs): Likewise.
6325 (val_reset): Likewise.
6326 (struct variable_union_info): Likewise.
6327 (variable_union): Likewise.
6328 (find_loc_in_1pdv): Likewise.
6329 (insert_into_intersection): Likewise.
6330 (intersect_loc_chains): Likewise.
6331 (canonicalize_loc_order_check): Likewise.
6332 (canonicalize_values_mark): Likewise.
6333 (canonicalize_values_star): Likewise.
6334 (canonicalize_vars_star): Likewise.
6335 (variable_merge_over_cur): Likewise.
6336 (remove_duplicate_values): Likewise.
6337 (variable_post_merge_new_vals): Likewise.
6338 (variable_post_merge_perm_vals): Likewise.
6339 (find_mem_expr_in_1pdv): Likewise.
6340 (dataflow_set_preserve_mem_locs): Likewise.
6341 (dataflow_set_remove_mem_locs): Likewise.
6342 (variable_part_different_p): Likewise.
6343 (onepart_variable_different_p): Likewise.
6344 (find_src_set_src): Likewise.
6345 (dump_var): Likewise.
6346 (set_slot_part): Likewise.
6347 (clobber_slot_part): Likewise.
6348 (delete_slot_part): Likewise.
6349 (vt_expand_var_loc_chain): Likewise.
6350 (emit_note_insn_var_location): Likewise.
6351 (vt_finalize): Likewise.
6352
6353 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6354
6355 * dse.c (store_info_t): Remove typedef.
6356 (group_info_t): Likewise.
6357 (const_group_info_t): Likewise.
6358 (deferred_change_t): Likewise.
6359 (get_group_info): Adjust.
6360 (free_store_info): Likewise.
6361 (canon_address): Likewise.
6362 (clear_rhs_from_active_local_stores): Likewise.
6363 (record_store): Likewise.
6364 (replace_read): Likewise.
6365 (check_mem_read_rtx): Likewise.
6366 (scan_insn): Likewise.
6367 (remove_useless_values): Likewise.
6368 (dse_step1): Likewise.
6369 (dse_step2_init): Likewise.
6370 (dse_step2_nospill): Likewise.
6371 (scan_stores_nospill): Likewise.
6372 (scan_reads_nospill): Likewise.
6373 (dse_step3_exit_block_scan): Likewise.
6374 (dse_step3): Likewise.
6375 (dse_step5_nospill): Likewise.
6376 (dse_step6): Likewise.
6377
6378 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6379
6380 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
6381 (alias_set_entry): Remove typedef.
6382 (alias_set_subset_of): Adjust.
6383 (alias_sets_conflict_p): Likewise.
6384 (init_alias_set_entry): Likewise.
6385 (get_alias_set): Likewise.
6386 (new_alias_set): Likewise.
6387 (record_alias_subset): Likewise.
6388
6389 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
6390
6391 * doc/install.texi (Downloading the source): Mark up
6392 contrib/download_prerequisites properly and drop leading "./".
6393
6394 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6395
6396 * config/arc/arc.h: Remove define of STRUCT_VALUE.
6397 * config/lm32/lm32.h: Likewise.
6398 * config/mep/mep.h: Likewise.
6399 * config/visium/visium.h: Likewise.
6400 * system.h: Poison STRUCT_VALUE macro.
6401
6402 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
6403
6404 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
6405 CONSTANT_P operands.
6406
6407 2015-09-11 David S. Miller <davem@davemloft.net>
6408
6409 * config/sparc/constraints.md: Make "U" constraint a real register
6410 constraint.
6411 * config/sparc/sparc.c (TARGET_LRA_P): Define.
6412 (D_MODES, DF_MODES): Add missing cast.
6413 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
6414 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
6415 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
6416 cost to 8.
6417 * config/sparc/sparc.h (PROMOTE_MODE): Define.
6418 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
6419 provide these insn when flag_pic.
6420
6421 2015-09-11 Jeff Law <law@redhat.com>
6422
6423 PR tree-optimization/47679
6424 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
6425 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
6426 member with m_. Update inline member functions as necessary. Add
6427 toplevel comment.
6428 * tree-ssa-scopedtables.c: Update const_and_copies's member
6429 functions to use m_ prefix to access the stack.
6430
6431 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
6432
6433 * graphite-optimize-isl.c (disable_tiling): Remove.
6434 (get_schedule_for_band): Do not use disable_tiling.
6435 (get_prevector_map): Delete function.
6436 (enable_polly_vector): Remove.
6437 (get_schedule_for_band_list): Remove dead code.
6438
6439 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
6440
6441 * graphite-optimize-isl.c (get_tile_map): Refactor.
6442 (get_schedule_for_band): Same.
6443 (getScheduleForBand): Same.
6444 (get_prevector_map): Same.
6445 (get_schedule_for_band_list): Same.
6446 (get_schedule_map): Same.
6447 (get_single_map): Same.
6448 (apply_schedule_map_to_scop): Same.
6449 (optimize_isl): Same.
6450
6451 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6452
6453 PR target/63304
6454 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
6455 (movtf): Delete.
6456 * config/aarch64/iterators.md (GPF_TF_F16): New.
6457 (GPF_F16): Delete.
6458
6459 2015-09-10 Nathan Sidwell <nathan@acm.org>
6460
6461 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
6462 (nvptx_reorg): Adjust comments.
6463
6464 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
6465
6466 PR bootstrap/67363
6467 * configure.ac: Check if setenv and unsetenv are declared.
6468 * configure: Rebuild.
6469 * config.in: Rebuild.
6470 * system.h: Declare setenv and unsetenv if not declared.
6471
6472 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6473
6474 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
6475 commentary to simplify permute mask adjustment equation.
6476 (special_handling_values): Add SH_VPERM.
6477 (const_load_sequence_p): New function.
6478 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
6479 the mask loaded from the constant pool.
6480 (adjust_vperm): New function.
6481 (handle_special_swappables): Call adjust_vperm.
6482 (dump_swap_insn_table): Handle SH_VPERM.
6483
6484 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
6485
6486 * shrink-wrap.c (requires_stack_frame_p): Remove static.
6487 * shrink-wrap.h (requires_stack_frame_p): Put back.
6488
6489 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
6490
6491 * reload1.c (elimination_costs_in_insn): Locally turn
6492 -Wmaybe-uninitialized into a warning.
6493
6494 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
6495
6496 * shrink-wrap.c (requires_stack_frame_p): Make static.
6497 (prepare_shrink_wrap): Likewise.
6498 (dup_block_and_redirect): Likewise.
6499 * shrink-wrap.h: Remove declarations of those functions.
6500
6501 2015-09-10 Mark Wielaard <mjw@redhat.com>
6502
6503 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
6504
6505 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
6506
6507 PR target/67506
6508 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
6509 missing simplify_gen_subreg.
6510
6511 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6512
6513 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
6514 the vector element is bigger than 64 bit.
6515
6516 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6517
6518 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
6519 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
6520
6521 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6522
6523 * config/s390/s390.c: Add V1TImode to constant pool modes.
6524
6525 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6526
6527 PR target/67439
6528 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
6529 predicate. Set predicable_short_it attr to "no".
6530
6531 2015-09-10 Jiong Wang <jiong.wang@arm.com>
6532
6533 PR rtl-optimization/67421
6534 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
6535 left wide shift tranformation.
6536
6537 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
6538
6539 * common/config/arc/arc-common.c: Remove references to A5.
6540 * config/arc/arc-opts.h: Likewise.
6541 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
6542 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
6543 * config/arc/t-arc-newlib: Likewise.
6544
6545 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
6546
6547 * config/arc/arc.md (length): Fix attribute length for conditional
6548 executed instructions with long immediate.
6549
6550 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6551
6552 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
6553 type for second alternative.
6554
6555 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
6556
6557 * doc/invoke.texi (Downloading GCC): Mention
6558 contrib/download_prerequisites script.
6559
6560 2015-09-10 Jakub Jelinek <jakub@redhat.com>
6561
6562 PR c++/67523
6563 * gimplify.c (gimplify_omp_for): If inner stmt is not found
6564 for combined loop, assert seen_error () and return GS_ERROR.
6565
6566 PR middle-end/67521
6567 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
6568 if decl is already in outer->variables.
6569
6570 PR middle-end/67517
6571 * gimplify.c (gimplify_scan_omp_clauses): Instead of
6572 asserting that decl is not specified in octx->variables,
6573 break out of the loop if it is.
6574
6575 PR c++/67514
6576 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
6577 iterator is not explicitly determined, but is defined inside
6578 of the combined workshare region, handle it like if it has
6579 DECL_EXPR in OMP_FOR_PRE_BODY.
6580
6581 2015-09-09 Nathan Sidwell <nathan@acm.org>
6582
6583 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
6584 (*cmp<mode>): Add assembler spacing.
6585 (setcc_int<mode>, set_cc_float<mode>): Likewise.
6586 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
6587 level.
6588 (write_func_decl_from_insn): Refactor argument loops & comma emission.
6589 (nvptx_expand_call): Likewise.
6590 (nvptx_output_call_insn): Likewise.
6591 (nvptx_reorg_subreg): Add spacing.
6592
6593 2015-09-09 Marek Polacek <polacek@redhat.com>
6594
6595 PR middle-end/67512
6596 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
6597 for comparisons.
6598
6599 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
6600
6601 PR c++/53184
6602 * doc/invoke.texi ([Wsubobject-linkage]): Document.
6603
6604 2015-09-09 Tom de Vries <tom@codesourcery.com>
6605
6606 * params-list.h: Add missing copyright notice.
6607
6608 2015-09-09 Nathan Sidwell <nathan@acm.org>
6609
6610 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
6611 sel_truesi, not andsi.
6612
6613 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6614
6615 * config/arm/arm.md (*subsi3_compare0): Rename to...
6616 (subsi3_compare0): ... This.
6617 (modsi3): New define_expand.
6618 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
6619 when operand is power of 2.
6620
6621 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6622
6623 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
6624 (*neg<mode>2_compare0): Rename to...
6625 (neg<mode>2_compare0): ... This.
6626 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
6627 Move check for speed inside the if-then-elses. Reflect
6628 CSNEG sequence in MOD by power of 2 case.
6629
6630 2015-09-09 Alan Modra <amodra@gmail.com>
6631
6632 PR target/67378
6633 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
6634 reload replacement for PRE_MODIFY address reg.
6635
6636 2015-09-09 Sebastian Pop <s.pop@samsung.com>
6637
6638 PR tree-optimization/53852
6639 * config.in: Regenerate.
6640 * configure: Regenerate.
6641 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
6642 * graphite-optimize-isl.c (optimize_isl): Stop computation when
6643 PARAM_MAX_ISL_OPERATIONS is reached.
6644 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
6645 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
6646 result equal to isl_stat_ok as the status now can be isl_error_quota.
6647 (subtract_commutative_associative_deps): Same.
6648 (compute_deps): Same.
6649
6650 2015-09-08 Aditya Kumar <hiraditya@msn.com>
6651 Sebastian Pop <s.pop@samsung.com>
6652
6653 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
6654 Return the parameter if it was saved in corresponding
6655 parameter_rename_map of the region.
6656 (copy_def): Copy def from sese region to the newly created region.
6657 (copy_internal_parameters): Copy all the internal parameters defined
6658 within a region to the newly created region.
6659 (graphite_regenerate_ast_isl): Copy parameters to the new region before
6660 translating isl to gimple.
6661 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
6662 the loop-nest does not have any data-references.
6663 (build_graphite_scops): Create a scop only when there is at least one
6664 loop inside it.
6665 (contains_only_close_phi_nodes): Deleted.
6666 (print_graphite_scop_statistics): Deleted
6667 (print_graphite_statistics): Deleted
6668 (limit_scops): Deleted.
6669 (build_scops): Removed call to limit_scops.
6670 * sese.c (new_sese): Construct.
6671 (free_sese): Destruct.
6672 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
6673 added.
6674 (set_rename): Pass sese region so that parameters inside the region can
6675 be added to its parameter_rename_map.
6676 (rename_uses): Pass sese region.
6677 (graphite_copy_stmts_from_block): Do not copy parameters that have been
6678 generated in the header of the scop. For each SSA_NAME in the
6679 parameter_rename_map rename its usage.
6680 (invariant_in_sese_p_rec): Return false if tree t is defined outside
6681 sese region.
6682 (scalar_evolution_in_region): If the tree t is invariant just return t.
6683 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
6684 struct sese to keep track of all the parameters which need renaming.
6685 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
6686 any data-refs.
6687 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
6688
6689 2015-09-08 Tom de Vries <tom@codesourcery.com>
6690
6691 * Makefile.in (generated_files): Add params.list.
6692 (params.list, s-params.list): Add rule.
6693 * params.h (enum compiler_param): Include params-list.h. Move define
6694 DEFPARAM, include params.def and undef DEFPARAM ...
6695 * params-list.h: ... here. New file.
6696
6697 2015-09-08 David Malcolm <dmalcolm@redhat.com>
6698
6699 * pretty-print.h (printer_fn): Fix typo in comment.
6700
6701 2015-09-07 Jeff Law <law@redhat.com>
6702
6703 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
6704
6705 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6706
6707 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
6708 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
6709 (arm_neon_fp16_hw): New.
6710
6711 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6712
6713 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
6714 UNITS_PER_WORD >= 4.
6715
6716 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6717
6718 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
6719 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
6720 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
6721 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
6722 (aarch64_float_extend_lo_v2df): Rename to...
6723 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
6724
6725 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
6726 (float_extend_lo): Add v4sf.
6727
6728 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
6729 * config/aarch64/iterators.md (VQ_HSF): New iterator.
6730 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
6731 (Vwide): New mode_attr.
6732
6733 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6734
6735 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
6736 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
6737 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
6738 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
6739 V4HF and V8HF variants to iterator.
6740
6741 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
6742
6743 * config/aarch64/iterators.md (VDQF_F16): New.
6744 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
6745
6746 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6747
6748 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
6749 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
6750 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
6751 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
6752 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
6753 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
6754 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
6755 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
6756 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
6757 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
6758 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
6759 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
6760 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
6761 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
6762 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
6763 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
6764 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
6765 vld1q_dup_f16): New.
6766
6767 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6768
6769 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
6770 Reparameterize to...
6771 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
6772 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
6773 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
6774
6775 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
6776 v8hf variant.
6777 (float_truncate_lo_): Use BUILTIN_VDF iterator.
6778
6779 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
6780
6781 * config/aarch64/iterators.md (VDF, Vdtype): New.
6782 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
6783
6784 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6785
6786 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
6787 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
6788 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
6789 Add __builtin_aarch64_simd_hf.
6790 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
6791 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
6792 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
6793 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
6794 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
6795 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
6796 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
6797 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
6798 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
6799
6800 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
6801 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
6802 (VDC, Vdbl): Add V4HF.
6803
6804 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6805
6806 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
6807 V4HFmode and V8HFmode.
6808 (aarch64_split_simd_move): Add case for V8HFmode.
6809 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
6810 (aarch64_simd_builtin_std_type): Handle HFmode.
6811 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
6812
6813 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
6814 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
6815 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
6816
6817 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
6818 Float16x8_t.
6819
6820 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
6821 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
6822 New typedefs.
6823 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
6824 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
6825 vst1q_lane_f16): New.
6826 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
6827 (VALLDI_F16, VALL_F16): New.
6828 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
6829 Add cases for V4HF and V8HF.
6830 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
6831
6832 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6833
6834 * config/arm/arm-builtins.c (VAR11, VAR12): New.
6835 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
6836 vld4_dup): Add v4hf variant.
6837 (vget_high, vget_low): Add v8hf variant.
6838 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
6839 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
6840 v4hf and v8hf variants.
6841
6842 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
6843 (VDX): Add V4HF.
6844 (V_DOUBLE): Add case for V4HF.
6845 (VQX): Add V8HF.
6846 (V_HALF): Add case for V8HF.
6847 (VDQX): Add V4HF, V8HF.
6848 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
6849 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
6850
6851 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
6852 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
6853 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
6854 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
6855 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
6856 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
6857 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
6858 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
6859 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
6860
6861 (neon_vcreate, neon_vreinterpretv8qi<mode>,
6862 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
6863 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
6864 Change VDX to VD_RE.
6865
6866 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
6867 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
6868 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
6869
6870 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
6871 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
6872 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
6873 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
6874 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
6875 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
6876 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
6877 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
6878 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
6879
6880 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6881
6882 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
6883 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
6884 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
6885 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
6886 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
6887 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
6888 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
6889 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
6890 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
6891 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
6892 New.
6893
6894 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6895
6896 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
6897
6898 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
6899
6900 * config/arm/arm-builtins.c (v8hf_UP): New.
6901 (arm_init_simd_builtin_types): Initialise Float16x8_t.
6902
6903 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
6904
6905 * config/arm/arm_neon.h (float16x8_t): New typedef.
6906
6907 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6908
6909 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
6910 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
6911 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
6912 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
6913 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
6914 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
6915 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
6916 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
6917 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
6918 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
6919
6920 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
6921
6922 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
6923 non-alphanumeric characters in the symbol name.
6924
6925 2015-09-07 Marek Polacek <polacek@redhat.com>
6926
6927 PR inline-asm/67448
6928 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
6929 a memory input.
6930
6931 2015-09-07 Marek Polacek <polacek@redhat.com>
6932
6933 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
6934
6935 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
6936
6937 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
6938 not warn.
6939
6940 2015-09-04 Jakub Jelinek <jakub@redhat.com>
6941
6942 PR middle-end/67452
6943 * tree-ssa-live.c: Include cfgloop.h.
6944 (remove_unused_locals): Clear loop->simduid if simduid is about
6945 to be removed from cfun->local_decls.
6946
6947 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6948
6949 PR target/65210
6950 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
6951 attribute as well.
6952
6953 2015-09-04 Tom de Vries <tom@codesourcery.com>
6954
6955 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
6956
6957 2015-09-04 Jeff Law <law@redhat.com>
6958
6959 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
6960 unnecessary constructor. It's now trivial and implemented inside...
6961 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
6962 constructor. Add comments to various methods. Remove unused
6963 private fields.
6964 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
6965 * tree-vrp.c (identify_jump_threads): Likewise.
6966 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
6967 indentation issues.
6968 (thread_across_edge): Similarly.
6969 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
6970 arguments in constructor call.
6971
6972 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
6973
6974 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
6975 temp path contains a '-'.
6976
6977 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
6978 Petr Murzin <petr.murzin@intel.com>
6979 Kirill Yukhin <kirill.yukhin@intel.com>
6980
6981 * config/i386/i386-builtin-types.def
6982 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
6983 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
6984 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
6985 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
6986 * config/i386/i386.c
6987 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
6988 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
6989 IX86_BUILTIN_SCATTERALTDIV16SI.
6990 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
6991 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
6992 __builtin_ia32_scatteraltdiv8si.
6993 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
6994 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
6995 IX86_BUILTIN_SCATTERALTDIV16SI.
6996 (ix86_vectorize_builtin_scatter): New.
6997 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
6998 ix86_vectorize_builtin_scatter.
6999
7000 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
7001 Petr Murzin <petr.murzin@intel.com>
7002 Kirill Yukhin <kirill.yukhin@intel.com>
7003
7004 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
7005 * doc/tm.texi: Regenerate.
7006 * target.def: Add scatter builtin.
7007 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
7008 for loads/stores in case of gather/scatter accordingly.
7009 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
7010 STMT_VINFO_GATHER_P(S).
7011 (vect_check_gather): Rename to ...
7012 (vect_check_gather_scatter): this.
7013 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
7014 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
7015 (vect_check_gather_scatter): Use it instead of vect_check_gather.
7016 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
7017 variable and new checkings for it accordingly.
7018 * tree-vect-stmts.c
7019 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
7020 STMT_VINFO_GATHER_P(S).
7021 (vect_check_gather_scatter): Use it instead of vect_check_gather.
7022 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
7023
7024 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
7025
7026 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
7027 define_insn.
7028 (mulv16qi3): New define_expand.
7029
7030 2015-09-03 Martin Sebor <msebor@redhat.com>
7031
7032 PR c/66516
7033 * doc/extend.texi (Other Builtins): Document when the address
7034 of a built-in function can be taken.
7035
7036 2015-09-03 Richard Biener <rguenther@suse.de>
7037
7038 * dwarf2out.c (flush_limbo_die_list): Split out from ...
7039 (dwarf2out_early_finish): ... here.
7040 (dwarf2out_finish): Do not call dwarf2out_early_finish but
7041 flush_limbo_die_list. Assert we have no deferred asm names.
7042
7043 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7044
7045 * optabs.c (expand_binop): Don't create a broadcast vector with a
7046 source element wider than the inner mode.
7047
7048 2015-09-03 Richard Biener <rguenther@suse.de>
7049
7050 * varasm.c (output_constant): Use fold_convert instead of
7051 wide_int_to_tree.
7052
7053 2015-09-03 Tom de Vries <tom@codesourcery.com>
7054
7055 PR tree-optimization/65637
7056 * omp-low.c (expand_omp_for_static_chunk): Handle case that
7057 fin_bb has 2 predecessors.
7058
7059 2015-09-03 Tom de Vries <tom@codesourcery.com>
7060
7061 PR tree-optimization/65637
7062 * omp-low.c (find_phi_with_arg_on_edge): New function.
7063 (expand_omp_for_static_chunk): Fix inner loop phi.
7064
7065 2015-09-03 Tom de Vries <tom@codesourcery.com>
7066
7067 PR tree-optimization/65637
7068 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
7069 that head is NULL.
7070
7071 2015-09-03 Tom de Vries <tom@codesourcery.com>
7072
7073 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
7074
7075 2015-09-03 Tom de Vries <tom@codesourcery.com>
7076
7077 * doc/invoke.texi (parloops-chunk-size): Add item.
7078 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
7079 * tree-parloops.c: Include params.h.
7080 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
7081 param parloops-chunk-size is used.
7082
7083 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7084
7085 PR middle-end/67351
7086 * fold-const.c (fold_binary_loc) : Move
7087 Transform (x >> c) << c into x & (-1<<c) or
7088 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
7089 types using simplify and match.
7090 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
7091 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
7092
7093 2015-09-03 Richard Biener <rguenther@suse.de>
7094
7095 PR ipa/66705
7096 * tree-ssa-structalias.c (ctor_for_analysis): New function.
7097 (create_variable_info_for_1): Use ctor_for_analysis instead
7098 of get_constructor.
7099 (create_variable_info_for): Likewise.
7100
7101 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
7102
7103 PR ipa/67280
7104 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
7105 in new callgraph edge.
7106
7107 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
7108
7109 PR target/59810
7110 PR target/63652
7111 PR target/63653
7112 * config/aarch64/aarch64-simd.md
7113 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
7114 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
7115 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
7116 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
7117
7118 2015-09-02 Alan Modra <amodra@gmail.com>
7119
7120 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
7121 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
7122 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
7123
7124 2015-09-02 Alan Modra <amodra@gmail.com>
7125
7126 PR target/67417
7127 * config/rs6000/predicates.md (current_file_function_operand): Don't
7128 return true for weak symbols.
7129 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
7130
7131 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
7132 Andrew Bennett <andrew.bennett@imgtec.com>
7133
7134 * config/mips/mips-opts.h (mips_cb_setting): New enum.
7135 * config/mips/mips-protos.h: Add definitions for
7136 mips_output_jump and mips_output_equal_conditional_branch
7137 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
7138 JIC instruction.
7139 (mips_emit_compare): Add support for the MIPS R6 conditional
7140 compact branches.
7141 (mips_process_sync_loop): Likewise.
7142 (mips_output_order_conditional_branch): Likewise.
7143 (mips16_build_call_stub): Change MIPS_CALL to
7144 mips_output_jump.
7145 (mips_print_operand_punctuation): Update 's' case to only
7146 apply to micromips r2.
7147 (mips_adjust_insn_length): Add support for forbidden slot
7148 hazards.
7149 (mips_avoid_hazard): Likewise.
7150 (mips_reorg_process_insns): Likewise.
7151 (mips_output_jump): New function.
7152 (mips_output_equal_conditional_branch): Likewise.
7153 (mips_output_conditional_branch): Use jrc/bc if compact
7154 branch support is enabled. Ensure the forbidden slots
7155 between the two branch instructions is filled with a nop.
7156 (mips_option_override): Add support to process the compact
7157 branch option and set the correct defaults. Prevent
7158 non-explict relocs being using for MIPS R6.
7159 (mips_trampoline_init): Add compact branch support.
7160 (mips_mult_zero_zero_cost): Allow zero initialisation of
7161 accumulators with TARGET_DSP.
7162 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
7163 (TARGET_CB_MAYBE): New define.
7164 (TARGET_CB_ALWAYS): New define.
7165 (ISA_HAS_DELAY_SLOTS): New define.
7166 (ISA_HAS_COMPACT_BRANCHES): New define.
7167 (ISA_HAS_JRC): New define.
7168 (MIPS_BRANCH_C): New define.
7169 (MIPS_CALL): Removed.
7170 (MICROMIPS_J): Removed.
7171 * config/mips/mips.md (compact_form): New attr.
7172 (hazard): Add support for forbidden slots.
7173 (define_delay): Add support for compact branches.
7174 (*branch_order<mode>): Likewise.
7175 (*branch_order<mode>_inverted): Likewise.
7176 (*branch_equality<mode>): Likewise.
7177 (*branch_equality<mode>_inverted): Likewise.
7178 (*jump_absolute): Likewise.
7179 (*jump_pic): Likewise.
7180 (indirect_jump): Use mips_output_jump to produce assembly output.
7181 (tablejump_<mode>"): Likewise.
7182 (*<optab>"): Likewise.
7183 (<optab>_internal): Likewise.
7184 (sibcall_internal): Likewise.
7185 (sibcall_value_internal): Likewise.
7186 (sibcall_value_multiple_internal): Likewise.
7187 (call_internal): Likewise.
7188 (call_split): Likewise.
7189 (call_internal_direct): Likewise.
7190 (call_direct_split): Likewise.
7191 (call_value_internal): Likewise.
7192 (call_value_split): Likewise.
7193 (call_value_internal_direct): Likewise.
7194 (call_value_direct_split): Likewise.
7195 (call_value_multiple_internal): Likewise.
7196 (call_value_multiple_split): Likewise.
7197 (mips_get_fcsr_mips16_<mode>): Likewise.
7198 (mips_set_fcsr_mips16_<mode>): Likewise.
7199 (tls_get_tp_mips16_<mode>): Likewise.
7200 * config/mips/mips.opt: Add -mcompact-branches option.
7201 * config/mips/predicates.md (order_operator): Ensure the
7202 conditional compact branches are only used if the ISA them.
7203 * doc/invoke.texi: Document -mcompact-branches option.
7204
7205 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
7206
7207 PR target/61578
7208 * lra-lives.c (process_bb_lives): Process move pseudos with the
7209 same value for copies and preferences
7210 * lra-constraints.c (match_reload): Create match reload pseudo
7211 with the same value from single dying input pseudo.
7212
7213 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
7214
7215 PR target/67405
7216 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
7217
7218 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
7219
7220 * trans-mem.c: Add contributed-by.
7221 * trans-mem.h: Same.
7222
7223 2015-09-01 Richard Biener <rguenther@suse.de>
7224
7225 * expr.c (expand_expr_real_1): For expanding TERed defs
7226 set the current location to that of the def if not UNKNOWN.
7227
7228 2015-09-01 David Sherwood <david.sherwood@arm.com>
7229
7230 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
7231
7232 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7233
7234 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
7235 then_cost, else_cost fields. Change branch_cost field to unsigned int.
7236 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
7237 Include rtl-iter.h.
7238 (noce_simple_bbs): New function.
7239 (noce_try_move): Bail if basic blocks are not simple.
7240 (noce_try_store_flag): Likewise.
7241 (noce_try_store_flag_constants): Likewise.
7242 (noce_try_addcc): Likewise.
7243 (noce_try_store_flag_mask): Likewise.
7244 (noce_try_cmove): Likewise.
7245 (noce_try_minmax): Likewise.
7246 (noce_try_abs): Likewise.
7247 (noce_try_sign_mask): Likewise.
7248 (noce_try_bitop): Likewise.
7249 (bbs_ok_for_cmove_arith): New function.
7250 (noce_emit_all_but_last): Likewise.
7251 (noce_emit_insn): Likewise.
7252 (noce_emit_bb): Likewise.
7253 (noce_try_cmove_arith): Handle non-simple basic blocks.
7254 (insn_valid_noce_process_p): New function.
7255 (contains_mem_rtx_p): Likewise.
7256 (bb_valid_for_noce_process_p): Likewise.
7257 (noce_process_if_block): Allow non-simple basic blocks
7258 where appropriate.
7259
7260 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
7261
7262 * tree-ssa-dom.c (record_equivalences_from_phis,
7263 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
7264 (lookup_avail_expr): Likewise, and remove comment and unused temp.
7265
7266 2015-09-01 Nick Clifton <nickc@redhat.com>
7267
7268 * config/msp430/msp430.opt (mcpu): Fix typo.
7269
7270 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7271
7272 * config/aarch64/aarch64.c (aarch64_set_current_function):
7273 Re-layout any vector parameters have non-simd layout.
7274 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
7275 Delete.
7276 (aarch64_simd_expand_args): Delete call to the above.
7277
7278 2015-08-31 Mike Frysinger <vapier@gentoo.org>
7279
7280 * doc/invoke.texi (asan-stack): Add space before option.
7281
7282 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
7283
7284 * tree.h (zerop): New function.
7285 * tree.c (zerop): Likewise.
7286 (element_precision): Handle expressions.
7287 * match.pd (define_predicates): Add zerop.
7288 (x <= +Inf): Fix comment.
7289 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
7290 * fold-const.c (fold_binary_loc): ... here. Remove.
7291
7292 2015-08-31 Richard Biener <rguenther@suse.de>
7293
7294 PR middle-end/67381
7295 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
7296
7297 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
7298
7299 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
7300 (CEXPI): New operator list.
7301 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
7302 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
7303 Converted from ...
7304 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
7305
7306 2015-08-31 Tom de Vries <tom@codesourcery.com>
7307
7308 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
7309 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
7310 parameter.
7311 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
7312 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
7313 (rewrite_into_loop_closed_ssa): ... here.
7314 (replace_uses_in_dominated_bbs): Remove function.
7315 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
7316 rewrite_into_loop_closed_ssa_1.
7317
7318 2015-08-31 Michael Matz <matz@suse.de>
7319
7320 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
7321 enter entry and exit blocks for reverse post order.
7322
7323 2015-08-31 Richard Biener <rguenther@suse.de>
7324
7325 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
7326 (lto_location_cache::current_sysp): Likewise.
7327 (output_block::current_sysp): Likewise.
7328 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
7329 (lto_location_cache::apply_location_cache): Properly record
7330 system header locations.
7331 (lto_location_cache::input_location): Input whether a file
7332 is a system header.
7333 * lto-streamer-out.c (lto_output_location): Stream whether a file
7334 is a system header.
7335
7336 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7337
7338 PR bootstrap/67363
7339 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
7340
7341 2015-08-31 Tom de Vries <tom@codesourcery.com>
7342
7343 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
7344 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
7345 Improve function header comments.
7346
7347 2015-08-30 Michael Collison <michael.collison@linaro.org>
7348
7349 PR other/67320
7350 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
7351 standard names
7352
7353 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7354
7355 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
7356 special_handling bitfield.
7357 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
7358 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
7359 that represents a general xxpermdi.
7360 (insn_is_swappable_p): Add handling for vec_concat of two
7361 doublewords, which maps to a specific xxpermdi.
7362 (adjust_xxpermdi): New function.
7363 (adjust_concat): Likewise.
7364 (handle_special_swappables): Call adjust_xxpermdi and
7365 adjust_concat.
7366 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
7367
7368 2015-08-30 Rich Felker <dalias@libc.org>
7369
7370 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
7371 case instead of sh[123456ble]-*-*.
7372
7373 2015-08-29 Anatoly Sokolov <aesok@post.ru>
7374
7375 * ira.c (print_unform_and_important_classes,
7376 print_translated_classes): Remove reg_class_names static array.
7377 (print_unform_and_important_classes): Rename to ...
7378 (print_uniform_and_important_classes): ... this.
7379 (ira_debug_allocno_classes): Update accordingly.
7380
7381 2015-08-29 Tom de Vries <tom@codesourcery.com>
7382
7383 PR tree-optimization/46193
7384 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
7385 clause.
7386
7387 2015-08-28 Jeff Law <law@redhat.com>
7388
7389 PR lto/66752
7390 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
7391 unable to find X NE 0 in the tables, return X as the simplified
7392 condition.
7393 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
7394 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
7395 to VISISTED_BBS.
7396 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
7397 after removing the control flow statement and unnecessary edges.
7398
7399 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
7400
7401 Revert:
7402 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
7403
7404 PR tree-optimization/67283
7405 * tree-sra.c (type_consists_of_records_p): Rename to...
7406 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
7407
7408 (completely_scalarize_record): Rename to...
7409 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
7410 code to:
7411 (scalarize_elem): New.
7412
7413 2015-08-28 Jiong Wang <jiong.wang@arm.com>
7414
7415 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
7416 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
7417 (aarch64_symbol_type): Likewise.
7418 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7419 Likewise.
7420 (aarch64_expand_mov_immediate): Likewise.
7421 (aarch64_print_operand): Likewise.
7422 (aarch64_classify_tls_symbol): Likewise.
7423
7424 2015-08-28 Richard Biener <rguenther@suse.de>
7425
7426 * cgraphunit.c (symbol_table::compile): Move early debug generation
7427 and finish...
7428 (symbol_table::finalize_compilation_unit): ... back here and
7429 add a !seen_error () guard.
7430
7431 2015-08-27 Sebastian Pop <s.pop@samsung.com>
7432
7433 * toplev.c (process_options): Do not use flag_loop_block,
7434 flag_loop_interchange, and flag_loop_strip_mine. Add check for
7435 flag_loop_optimize_isl.
7436
7437 2015-08-27 Sebastian Pop <s.pop@samsung.com>
7438
7439 * Makefile.in (OBJS): Remove graphite-blocking.o and
7440 graphite-interchange.o.
7441 * common.opt (floop-strip-mine, floop-interchange, floop-block):
7442 Alias of floop-nest-optimize.
7443 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
7444 Document as alias of -floop-nest-optimize.
7445 * graphite-blocking.c: Remove.
7446 * graphite-interchange.c: Remove.
7447 * graphite-optimize-isl.c: Include dumpfile.h.
7448 (getScheduleForBand): Add dump for tiled loops. Use
7449 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
7450 * graphite-poly.c (scop_max_loop_depth): Remove.
7451 (print_scattering_function_1): Remove.
7452 (print_scattering_function): Remove.
7453 (print_scattering_functions): Remove.
7454 (debug_scattering_function): Remove.
7455 (debug_scattering_functions): Remove.
7456 (apply_poly_transforms): Remove use of flag_loop_block,
7457 flag_loop_strip_mine, and flag_loop_interchange.
7458 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
7459 PBB_ORIGINAL.
7460 (print_pdr_access_layout): Remove.
7461 (print_pdr): Print ISL representation.
7462 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
7463 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
7464 (free_scop): Same.
7465 (openscop_print_pbb_domain): Remove.
7466 (print_pbb): Remove call to print_scattering_function.
7467 (openscop_print_scop_context): Remove.
7468 (print_scop_context): Do not print matrices anymore.
7469 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
7470 SCOP_TRANSFORMED_SCHEDULE.
7471 (print_isl_set): Add printing of a new line.
7472 (print_isl_map): Same.
7473 (print_isl_aff): Same.
7474 (print_isl_constraint): Same.
7475 (loop_to_lst): Remove.
7476 (scop_to_lst): Remove.
7477 (lst_indent_to): Remove.
7478 (print_lst): Remove.
7479 (debug_lst): Remove.
7480 (dot_lst_1): Remove.
7481 (dot_lst): Remove.
7482 (reverse_loop_at_level): Remove.
7483 (reverse_loop_for_pbbs): Remove.
7484 * graphite-poly.h (pdr_dim_iter_domain): Remove.
7485 (pdr_nb_params): Remove.
7486 (pdr_alias_set_dim): Remove.
7487 (pdr_subscript_dim): Remove.
7488 (pdr_iterator_dim): Remove.
7489 (pdr_parameter_dim): Remove.
7490 (same_pdr_p): Remove.
7491 (struct poly_scattering): Remove.
7492 (struct poly_bb): Remove _original, _transformed, _saved.
7493 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
7494 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
7495 (PBB_NB_LOCAL_VARIABLES): Remove.
7496 (PBB_NB_SCATTERING_TRANSFORM): Remove.
7497 (schedule_to_scattering): Remove.
7498 (number_of_write_pdrs): Remove.
7499 (pbb_dim_iter_domain): Remove.
7500 (pbb_nb_params): Remove.
7501 (pbb_nb_scattering_orig): Remove.
7502 (pbb_nb_scattering_transform): Remove.
7503 (pbb_nb_dynamic_scattering_transform): Remove.
7504 (pbb_nb_local_vars): Remove.
7505 (pbb_iterator_dim): Remove.
7506 (pbb_parameter_dim): Remove.
7507 (psco_scattering_dim): Remove.
7508 (psct_scattering_dim): Remove.
7509 (psct_local_var_dim): Remove.
7510 (psco_iterator_dim): Remove.
7511 (psct_iterator_dim): Remove.
7512 (psco_parameter_dim): Remove.
7513 (psct_parameter_dim): Remove.
7514 (psct_dynamic_dim): Remove.
7515 (psct_static_dim): Remove.
7516 (psct_add_local_variable): Remove.
7517 (new_lst_loop): Remove.
7518 (new_lst_stmt): Remove.
7519 (free_lst): Remove.
7520 (copy_lst): Remove.
7521 (lst_add_loop_under_loop): Remove.
7522 (lst_depth): Remove.
7523 (lst_dewey_number): Remove.
7524 (lst_dewey_number_at_depth): Remove.
7525 (lst_pred): Remove.
7526 (lst_succ): Remove.
7527 (lst_find_pbb): Remove.
7528 (find_lst_loop): Remove.
7529 (lst_find_first_pbb): Remove.
7530 (lst_empty_p): Remove.
7531 (lst_find_last_pbb): Remove.
7532 (lst_contains_p): Remove.
7533 (lst_contains_pbb): Remove.
7534 (lst_create_nest): Remove.
7535 (lst_remove_from_sequence): Remove.
7536 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
7537 (lst_niter_for_loop): Remove.
7538 (pbb_update_scattering): Remove.
7539 (lst_update_scattering_under): Remove.
7540 (lst_update_scattering): Remove.
7541 (lst_insert_in_sequence): Remove.
7542 (lst_replace): Remove.
7543 (lst_substitute_3): Remove.
7544 (lst_distribute_lst): Remove.
7545 (lst_remove_all_before_including_pbb): Remove.
7546 (lst_remove_all_before_excluding_pbb): Remove.
7547 (struct scop): Remove original_schedule, transformed_schedule, and
7548 saved_schedule.
7549 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
7550 (SCOP_SAVED_SCHEDULE): Remove.
7551 (poly_scattering_new): Remove.
7552 (poly_scattering_free): Remove.
7553 (poly_scattering_copy): Remove.
7554 (store_scattering_pbb): Remove.
7555 (store_lst_schedule): Remove.
7556 (restore_lst_schedule): Remove.
7557 (store_scattering): Remove.
7558 (restore_scattering_pbb): Remove.
7559 (restore_scattering): Remove.
7560 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
7561 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
7562 compute the scattering polyhedron dimension from the dimension of
7563 pbb->domain.
7564 (build_scop_scattering): Update call to
7565 build_pbb_scattering_polyhedrons.
7566 (build_poly_scop): Remove call to scop_to_lst.
7567 * graphite.c (graphite_transform_loops): Add call to print_scop.
7568 (gate_graphite_transforms): Remove use of flag_loop_block,
7569 flag_loop_interchange, and flag_loop_strip_mine.
7570
7571 2015-08-27 Sebastian Pop <s.pop@samsung.com>
7572
7573 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
7574 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
7575 -floop-nest-optimize.
7576 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
7577 (generate_luj_sepclass): Remove.
7578 (generate_luj_options): Remove.
7579 (set_options): Remove opt_luj.
7580 (scop_to_isl_ast): Remove opt_luj.
7581 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
7582 flag_loop_unroll_jam.
7583 (getPrevectorMap_full): Remove.
7584 (getScheduleForBandList): Remove map_sepcl.
7585 (getScheduleMap): Same.
7586 (apply_schedule_map_to_scop): Remove sepcl.
7587 (optimize_isl): Same.
7588 * graphite-poly.c (apply_poly_transforms): Remove check for
7589 flag_loop_unroll_jam.
7590 (new_poly_bb): Remove map_sepclass.
7591 * graphite-poly.h (struct poly_bb): Same.
7592 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
7593 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
7594 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
7595 * toplev.c (process_options): Remove flag_loop_unroll_jam.
7596
7597 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
7598
7599 PR target/67317
7600 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
7601 (addqi3_cc): Ditto.
7602 (UNSPEC_ADD_CARRY): Remove.
7603 (addqi3_cconly_overflow): New expander.
7604 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
7605 Adjust for changed add<mode>3_carry.
7606 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
7607 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
7608 (<plusminus_insn><mode>3_carry): Remove expander.
7609 (*<plusminus_insn><mode>3_carry): Split insn pattern to
7610 add<mode>3_carry and sub<mode>3_carry.
7611 (plusminus_carry_mnemonic): Remove code attribute.
7612 (add<mode>3_carry): Canonicalize insn pattern.
7613 (*addsi3_carry_zext): Ditto.
7614 (sub<mode>3_carry): Ditto.
7615 (*subsi3_carry_zext): Ditto.
7616 (adcx<mode>3): Remove insn pattern.
7617 (addcarry<mode>): New insn pattern.
7618 (subborrow<mode>): Ditto.
7619 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
7620 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
7621 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
7622 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
7623 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
7624 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
7625 Rewrite expander to not clobber carry flag chains.
7626
7627 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
7628
7629 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
7630 instead of a rotate.
7631
7632 2015-08-27 Marek Polacek <polacek@redhat.com>
7633
7634 PR middle-end/67005
7635 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
7636 an entry into an irreducible region.
7637
7638 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7639
7640 * configure: Regenerate.
7641
7642 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
7643
7644 PR tree-optimization/67283
7645 * tree-sra.c (type_consists_of_records_p): Rename to...
7646 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
7647
7648 (completely_scalarize_record): Rename to...
7649 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
7650 (scalarize_elem): New.
7651
7652 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
7653
7654 * tree-sra.c (completely_scalarize_var): Rename to...
7655 (create_total_scalarization_access): ... Here. Drop call to
7656 completely_scalarize_record.
7657
7658 (analyze_all_variable_accesses): Replace completely_scalarize_var
7659 with create_total_scalarization_access and completely_scalarize_record.
7660
7661 2015-08-27 Alan Modra <amodra@gmail.com>
7662
7663 PR target/67356
7664 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
7665 for operand 1.
7666
7667 2015-08-27 Richard Biener <rguenther@suse.de>
7668
7669 * passes.c (rest_of_decl_compilation): Guard early_global_decl
7670 call with !seen_error ().
7671 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
7672 early debug generation and finish...
7673 (symbol_table::compile): ... here to put it after a !seen_error ()
7674 guard.
7675
7676 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7677
7678 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
7679 Solaris 12+.
7680
7681 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7682 Andre Vieira <andre.simoesdiasvieira@arm.com>
7683
7684 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
7685 (*cb<optab><mode>1): Likewise.
7686 (*tb<optab><mode>1): Likewise.
7687 (*cb<optab><mode>1): Likewise.
7688 * config/aarch64/iterators.md (inv_cb): New code attribute.
7689 (inv_tb): Likewise.
7690 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
7691 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
7692
7693 2015-08-27 Richard Biener <rguenther@suse.de>
7694
7695 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
7696
7697 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
7698
7699 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
7700 trap to fix ICE.
7701
7702 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
7703
7704 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
7705 Add declaration.
7706
7707 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
7708 comment.
7709 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
7710 floating point in VSX registers.
7711 (rs6000_output_move_128bit): Always print out the set insn if we
7712 can't generate an appropriate 128-bit move.
7713 (rs6000_generate_compare): Add support for IEEE 128-bit floating
7714 point in VSX registers comparisons.
7715 (rs6000_expand_float128_convert): Likewise.
7716
7717 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
7718 predicate for only GPR hard registers.
7719
7720 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
7721 modes to iterators. Add new iterators for moving 128-bit values in
7722 scalar FPR registers and VSX registers.
7723 (FMOVE128): Likewise.
7724 (FMOVE128_FPR): Likewise.
7725 (FMOVE128_GPR): Likewise.
7726 (FMOVE128_VSX): Likewise.
7727 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
7728 in VSX registers.
7729 (IFKF): Likewise.
7730 (IBM128): Likewise.
7731 (TFIFKF): Likewise.
7732 (RELOAD): Add IEEE 128-bit floating point modes.
7733 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
7734 floating point in VSX registers modes.
7735 (signbit<mode>2, IBM128 iterator): Likewise.
7736 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
7737 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
7738 (negtf2): Likewise.
7739 (neg<mode>2, TFIFKF iterator): Likewise.
7740 (negtf2_internal): Likewise.
7741 (abstf2): Likewise.
7742 (abs<mode>2, TFIFKF iterator): Likewise.
7743 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
7744 VSX insn support for negate, absolute value, and negative absolute
7745 value.
7746 (ieee_128bit_vsx_neg<mode>2): Likewise.
7747 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
7748 (ieee_128bit_vsx_abs<mode>2): Likewise.
7749 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
7750 (ieee_128bit_vsx_nabs<mode>2): Likewise.
7751 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
7752 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
7753 floating point in VSX registers.
7754 (unpack<mode>_dm): Likewise.
7755 (unpack<mode>_nodm): Likewise.
7756 (pack<mode>): Likewise.
7757 (unpackv1ti): Likewise.
7758 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
7759 (packv1ti): Likewise.
7760 (pack<mode>, FMOVE128_VSX iterator): Likewise.
7761 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
7762 registers.
7763 (extenddftf2_internal): Likewise.
7764 (trunctfdf2): Likewise.
7765 (trunctfdf2_internal2): Likewise.
7766 (fix_trunc_helper): Likewise.
7767 (fix_trunctfdi2"): Likewise.
7768 (floatditf2): Likewise.
7769 (floatuns<mode>tf2): Likewise.
7770 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
7771 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
7772 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
7773 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
7774 (float<SDI:mode><IFKF:mode>2): Likewise.
7775 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
7776
7777 2015-08-26 Renlin Li <renlin.li@arm.com>
7778
7779 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
7780
7781 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
7782 Jiong Wang <jiong.wang@arm.com>
7783
7784 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
7785 (tlsie_tiny_<mode>): New define_insn.
7786 (tlsie_tiny_sidi): Likewise.
7787 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
7788 SYMBOL_TINY_TLSIE.
7789 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
7790 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
7791 SYMBOL_TINY_TLSIE.
7792 (aarch64_expand_mov_immediate): Likewise.
7793 (aarch64_print_operand): Likewise.
7794 (arch64_classify_tls_symbol): Likewise.
7795
7796 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
7797
7798 * config/arm/arm-arches.def: Replace single value flags with
7799 an initializer built from ARM_FSET_MAKE_CPU1.
7800 * config/arm/arm-cores.def: Likewise.
7801 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
7802 derivation from the ARM_CORE macro definition, use the given value
7803 instead.
7804 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
7805 ARM_ARCH macro definition, use the given value instead.
7806
7807 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
7808
7809 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
7810 feature set.
7811 (struct builtin_description): Replace field mask with field
7812 features.
7813 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
7814 (IWMMXT2_BUILTIN): Likewise.
7815 (IWMMXT2_BUILTIN2): Likewise.
7816 (FP_BUILTIN): Likewise.
7817 (CRC32_BUILTIN): Likewise.
7818 (CRYPTO_BUILTIN): Likewise.
7819 (iwmmx_mbuiltin): Likewise.
7820 (iwmmx2_mbuiltin): Likewise.
7821 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
7822 struct builtin_description.
7823
7824 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
7825
7826 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
7827 (struct builtin_description): Change type of mask to unsigned
7828 long.
7829 * config/arm/arm-protos.h (insn_flags): Declare as type
7830 arm_feature_set.
7831 (tune_flags): Likewise.
7832 * config/arm/arm.c (feature_count): New.
7833 (insn_flags): Define as type arm_feature_set.
7834 (tune_flags): Likewise.
7835 (struct processors): Define field flags as type arm_feature_set.
7836 (all_cores): Update for change to struct processors.
7837 (all_architectures): Likewise.
7838 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
7839 macros.
7840 (arm_option_override_internal): Likewise.
7841 (arm_option_override): Likewise.
7842
7843 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
7844 Jiong Wang <jiong.wang@arm.com>
7845
7846 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
7847 tls size for tiny, small, large memory model.
7848 (aarch64_load_symref_appropriately): Support new symbol types.
7849 (aarch64_expand_mov_immediate): Likewise.
7850 (aarch64_print_operand): Likewise.
7851 (aarch64_classify_tls_symbol): Likewise.
7852 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
7853 (aarch64_symbol_type): Likewise.
7854 * config/aarch64/aarch64.md (tlsle): Deleted.
7855 (tlsle12_<mode>): New define_insn.
7856 (tlsle24_<mode>): Likewise.
7857 (tlsle32_<mode>): Likewise.
7858 (tlsle48_<mode>): Likewise.
7859 * doc/sourcebuild.texi (AArch64-specific attributes): Document
7860 "aarch64_tlsle32".
7861
7862 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
7863
7864 * config/arm/arm-protos.h (FL_NONE): New.
7865 (FL_ANY): New.
7866 (arm_feature_set): New.
7867 (ARM_FSET_MAKE): New.
7868 (ARM_FSET_MAKE_CPU1): New.
7869 (ARM_FSET_MAKE_CPU2): New.
7870 (ARM_FSET_CPU1): New.
7871 (ARM_FSET_CPU2): New.
7872 (ARM_FSET_EMPTY): New.
7873 (ARM_FSET_ANY): New.
7874 (ARM_FSET_HAS_CPU1): New.
7875 (ARM_FSET_HAS_CPU2): New.
7876 (ARM_FSET_HAS_CPU): New.
7877 (ARM_FSET_ADD_CPU1): New.
7878 (ARM_FSET_ADD_CPU2): New.
7879 (ARM_FSET_DEL_CPU1): New.
7880 (ARM_FSET_DEL_CPU2): New.
7881 (ARM_FSET_UNION): New.
7882 (ARM_FSET_INTER): New.
7883 (ARM_FSET_XOR): New.
7884 (ARM_FSET_EXCLUDE): New.
7885 (AFM_FSET_IS_EMPTY): New.
7886 (ARM_FSET_CPU_SUBSET): New.
7887
7888 2015-08-26 Jiong Wang <jiong.wang@arm.com>
7889
7890 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
7891 SYMBOL_TLSLE to SYMBOL_TLSLE24.
7892 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7893 Likewise.
7894 (aarch64_expand_mov_immediate): Likewise.
7895 (aarch64_print_operand): Likewise.
7896 (aarch64_classify_symbol): Likewise.
7897
7898 2015-08-26 Jiong Wang <jiong.wang@arm.com>
7899
7900 * config/aarch64/aarch64.opt (mtls-size): New entry.
7901 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
7902 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
7903 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
7904
7905 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
7906
7907 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
7908 ARM_CORE entry. Fix some white-space.
7909 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
7910 ARM_CORE definition.
7911
7912 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7913
7914 * fold-const.c (fold_binary_loc) : Move Optimize
7915 root(x)*root(y) as root(x*y) to match.pd.
7916 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
7917 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
7918 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
7919 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
7920 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
7921 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
7922 (mult (exps:s @0) (exps:s @1)) : New simplifier.
7923 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
7924 (rdiv @0 (exps:s @1)) : New simplifier.
7925
7926 2015-08-25 Joseph Myers <joseph@codesourcery.com>
7927
7928 * gcc.c (driver::finalize): Only assign to extra_specs if
7929 [EXTRA_SPECS].
7930
7931 2015-08-25 Marek Polacek <polacek@redhat.com>
7932
7933 PR middle-end/67330
7934 * varasm.c (declare_weak): Return after giving an error.
7935
7936 2015-08-25 David Malcolm <dmalcolm@redhat.com>
7937
7938 * gcc-main.c (main): Add params to driver ctor.
7939 * gcc.c (class env_manager): New.
7940 (env): New global.
7941 (env_manager::init): New.
7942 (env_manager::get): New.
7943 (env_manager::xput): New.
7944 (env_manager::restore): New.
7945 Poison getenv and putenv.
7946 (DEFAULT_TARGET_SYSTEM_ROOT): New.
7947 (target_system_root): Update initialization to use
7948 DEFAULT_TARGET_SYSTEM_ROOT.
7949 (struct spec_list): Add field "default_ptr".
7950 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
7951 (init_spec): Likewise.
7952 (set_spec): Clear field "default_ptr".
7953 (read_specs): Free "spec" and "buffer".
7954 (xputenv): Reimplement in terms of env_manager.
7955 (process_command): Replace ::getenv calls with calls to the
7956 env_manager singleton.
7957 (process_brace_body): Free string in three places.
7958 (driver::driver): New.
7959 (driver::~driver): New.
7960 (used_arg): Convert from a function to...
7961 (class used_arg_t): ...this class, and...
7962 (used_arg): ...this new global instance.
7963 (used_arg_t::finalize): New function.
7964 (getenv_spec_function): Add "const" to local "value". Replace
7965 ::getenv call with call to the env_manager singleton.
7966 (path_prefix_reset): New function.
7967 (driver::finalize): New function.
7968 * gcc.h (driver::driver): New.
7969 (driver::~driver): New.
7970 (driver::finalize): New.
7971
7972 2015-08-25 Nathan Sidwell <nathan@acm.org>
7973
7974 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
7975 target doesn't have one.
7976
7977 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
7978
7979 PR target/67346
7980 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
7981
7982 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
7983
7984 PR target/67344
7985 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
7986 a define_insn, remove second alternative.
7987
7988 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
7989 Joseph Myers <joseph@codesourcery.com>
7990
7991 * gcc.c (struct switchstr): Expand comment.
7992
7993 2015-08-25 Nathan Sidwell <nathan@acm.org>
7994
7995 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
7996 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
7997
7998 2015-08-25 Richard Biener <rguenther@suse.de>
7999
8000 PR middle-end/67306
8001 * genmatch.c (expr::gen_transform): Verify the result of
8002 builtin_decl_implicit.
8003 (dt_simplify::gen_1): Likewise.
8004
8005 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
8006
8007 * config/arm/constraints.md: Also list Cs and US ARM-specific
8008 constraints as used.
8009
8010 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
8011
8012 PR target/66609
8013 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
8014 UNSPEC_PCREL.
8015 (nonpic_symbol_mentioned_p): Likewise.
8016 (sh_delegitimize_address): Likewise.
8017 (sh_function_ok_for_sibcall): Take into account weak symbols.
8018 (sh_expand_sym_label2reg): New.
8019 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
8020 * config/sh/sh.md (UNSPEC_PCREL): New enum.
8021 (call_pcrel): Use sh_expand_sym_label2reg.
8022 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
8023 (symPCREL_label2reg) New expand.
8024
8025 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
8026
8027 * graphite-poly.c: Change type of region from void* to sese.
8028 * graphite-poly.h (struct scop): Changing the type of scop::region
8029 from void* to sese. Change accessor macro accordingly.
8030 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
8031
8032 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
8033
8034 * graphite-scop-detection.c (stmt_simple_for_scop_p):
8035 Constrain only on INTEGER_TYPE.
8036
8037 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
8038
8039 PR target/67211
8040 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
8041 -mefficient-unaligned-vsx on ISA 2.7.
8042
8043 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
8044 option to a masked option.
8045
8046 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
8047 logic for -mefficient-unaligned-vsx so that it is set via an arch
8048 ISA option, instead of being set if -mtune=power8 is set. Move
8049 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
8050 near other default option handling.
8051
8052 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8053
8054 * genflags.c (gen_macro): Delete.
8055 (gen_proto): Don't create GEN.*CALL.* macros.
8056 * gensupport.h (get_file_location): Declare.
8057 * gensupport.c (rtx_locs): New variable.
8058 (read_md_rtx): Record rtx locations.
8059 (get_file_location): New function.
8060 * target-insns.def (call, call_pop, call_value, call_value_pop)
8061 (sibcall, sibcall_value): New patterns.
8062 * gentarget-def.c (parse_argument): New function.
8063 (def_target_insn): Use it. Handle optional operands. Raise an
8064 error if an .md pattern has the wrong number of operands for the
8065 pattern name. Remove the names of unused operands from the prototype.
8066 * builtins.c (expand_builtin_apply): Use targetm functions
8067 instead of HAVE_call_value and GEN_CALL_VALUE.
8068 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
8069 and sibcall_value_pop.
8070 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
8071 of GEN_CALL.
8072 * config/alpha/alpha.md (untyped_call): Likewise.
8073 * config/iq2000/iq2000.md (untyped_call): Likewise.
8074 * config/m68k/m68k.md (untyped_call): Likewise.
8075 * config/mips/mips.md (untyped_call): Likewise.
8076 * config/pa/pa.md (untyped_call): Likewise.
8077 * config/rs6000/rs6000.md (untyped_call): Likewise.
8078 * config/sparc/sparc.md (untyped_call): Likewise.
8079 * config/tilegx/tilegx.md (untyped_call): Likewise.
8080 * config/tilepro/tilepro.md (untyped_call): Likewise.
8081 * config/visium/visium.md (untyped_call): Likewise.
8082 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
8083 gen_call_value instead of GEN_CALL_VALUE.
8084 * config/arm/arm.md (untyped_call): Likewise.
8085 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
8086 GEN_CALL.
8087
8088 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8089
8090 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
8091 (have_cbranchcc4): New variable.
8092 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
8093 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
8094 (if_convert): Initialize have_cbranchcc4.
8095
8096 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8097
8098 * builtins.c (expand_cmpstrn): Rename to...
8099 (expand_cmpstrn_or_cmpmem): ...this.
8100 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
8101 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
8102 Remove mode argument.
8103 (expand_builtin): Update accordingly.
8104
8105 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8106
8107 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
8108 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
8109 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
8110 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
8111 Add predicates for operands 0 and 3.
8112 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
8113 operand.
8114 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
8115 immediate_operand to nonmemory_operand.
8116
8117 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8118
8119 * df-scan.c (df_insn_info_init_fields): New function, split out
8120 from...
8121 (df_insn_create_insn_record): ...here.
8122 (df_insn_info_free_fields): New function, split out from...
8123 (df_insn_info_delete): ...here.
8124 (df_insn_rescan): Use the new functions instead of freeing and
8125 reallocating the df_insn_info.
8126
8127 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8128
8129 * doc/install.texi (Binaries): Remove links no longer valid.
8130
8131 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
8132
8133 * config/nvptx/mkoffload.c (process): Replace
8134 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
8135
8136 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
8137
8138 PR target/67329
8139 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
8140
8141 2015-08-24 Renlin Li <renlin.li@arm.com>
8142
8143 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
8144 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
8145 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
8146 * config/arm/constraints.md ("j"): Add check for high code.
8147
8148 2015-08-24 Tom de Vries <tom@codesourcery.com>
8149
8150 PR tree-optimization/65468
8151 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
8152 chunk_size is one.
8153
8154 2015-08-24 Nathan Sidwell <nathan@acm.org>
8155
8156 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
8157 change to nvptx_type_from_mode call. Use arg_promotion for both
8158 split and non-split args.
8159
8160 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8161
8162 * target-insns.def (movstr): New pattern.
8163 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
8164 (expand_movstr): Use targetm rather than HAVE_movstr/
8165 CODE_FOR_movstr.
8166
8167 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
8168
8169 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
8170 cast syntax.
8171
8172 2015-08-24 Andrew Pinski <apinski@cavium.com>
8173
8174 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
8175 AARCH64_EXTRA_TUNING_OPTION.
8176 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
8177 New enum.
8178 (aarch64_extra_tuning_flags): Base the shifted value on the index
8179 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
8180 * config/aarch64/aarch64.c: Remove the last argument to
8181 AARCH64_EXTRA_TUNING_OPTION.
8182
8183 2015-08-23 Nathan Sidwell <nathan@acm.org>
8184
8185 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
8186 decls.
8187 (nvptx_declare_function_name): Insert formatting tabs for
8188 consistency.
8189
8190 2015-08-23 Tom de Vries <tom@codesourcery.com>
8191
8192 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
8193 parm_decl, rather than generating a dummy default def in cfun.
8194 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
8195 ssa_name from cfun and child_fn do not share a stmt as def stmt.
8196 (move_stmt_op): Handle PARM_DECl.
8197 (gather_ssa_name_hash_map_from): New function.
8198 (move_sese_region_to_fn): Add default defs for function params, and add
8199 them to vars_map. Release copied ssa names.
8200 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
8201
8202 2015-08-23 Tom de Vries <tom@codesourcery.com>
8203
8204 * doc/sourcebuild.texi: Rename vect_no_int_max with
8205 vect_no_int_min_max. Update description.
8206
8207 2015-08-22 Andrew Pinski <apinski@cavium.com>
8208
8209 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
8210 * config/aarch64/aarch64-protos.h
8211 (aarch64_fusion_pairs_index): New enum.
8212 (aarch64_fusion_pairs): Base the shifted value on the index instead
8213 Rewrite AARCH64_FUSE_ALL to be based on the end index.
8214 of the argument to AARCH64_FUSION_PAIR.
8215 * config/aarch64/aarch64.c: Remove the last argument to
8216 AARCH64_FUSION_PAIR.
8217
8218 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
8219
8220 * dominance.c (new_zero_array): Define.
8221 (dom_info): Redefine as class with proper encapsulation.
8222 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
8223 Add new members.
8224 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
8225 allocations/deallocations. Pass function as parameter (instead of
8226 using cfun).
8227 (dom_info::get_idom): Define accessor method.
8228 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
8229 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
8230 (calculate_dominance_info): Adjust to use dom_info class.
8231 (verify_dominators): Likewise.
8232
8233 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
8234
8235 * print-rtl.c (print_rtx): Check the correct range for
8236 flag_dump_unnumbered_links to behave as documented.
8237
8238 PR rtl-optimization/67227
8239 PR rtl-optimization/64164
8240 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
8241 (nonoverlapping_memrefs_p): Test offsets and sizes when given
8242 identical gimple_reg exprs.
8243
8244 2015-08-21 Nathan Sidwell <nathan@acm.org>
8245
8246 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
8247 expansion.
8248 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
8249 crtl->stack_alignment_needed to determine alignment.
8250 (nvptx_get_drap_rtx): New.
8251 (TARGET_GET_DRAP_RTX): Override.
8252 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
8253
8254 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8255
8256 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
8257
8258 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8259
8260 * configure.ac: Remove uwin* cases.
8261 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
8262 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
8263 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
8264 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
8265 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
8266 i[34567]86-*-uwin*, powerpc-*-beos*.
8267
8268 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
8269
8270 * gencodes.c (gencodes): Print the comma for the preceding
8271 enum value rather than the current one. Use aliased enum values
8272 rather than #defines for compiled-out patterns.
8273 (main): Update accordingly. Replace LAST_INSN_CODE with
8274 NUM_INSN_CODES.
8275 * lra.c (insn_code_data): Update accordingly.
8276 (finish_insn_code_data_once, get_static_insn_data): Likewise.
8277 * recog.h (target_recog): Likewise.
8278 (preprocess_insn_constraints): Change parameter to unsigned int.
8279 * recog.c (preprocess_insn_constraints): Likewise.
8280 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
8281 * tree-vect-stmts.c (vectorizable_operation): Simplify.
8282
8283 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
8284
8285 PR rtl-optimization/61657
8286 * loop-iv.c (iv_number_of_iterations): Declare up and down as
8287 unsigned. Remove superflous uint64_t cast.
8288
8289 2014-08-21 Felix Yang <felix.yang@huawei.com>
8290 Jiji Jiang <jiangjiji@huawei.com>
8291
8292 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
8293 argument and get builtin function code directly from CALL.
8294 (gimple_stringop_fixed_value): Modified accordingly.
8295 (gimple_stringops_transform, gimple_stringops_values_to_profile):
8296 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
8297
8298 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
8299
8300 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
8301
8302 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8303
8304 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
8305 to match.pd.
8306 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
8307 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
8308 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
8309 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
8310 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
8311 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
8312 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
8313 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
8314 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
8315 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
8316
8317 * match.pd (SIN ) : New Operator.
8318 (TAN) : New Operator.
8319 (mult (SQRT@1 @0) @1) : New simplifier.
8320 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
8321 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
8322 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
8323 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
8324 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
8325 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
8326 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
8327 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
8328 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
8329 (rdiv @0 (POW:s @1 @2)) : New simplifier.
8330
8331 2015-08-21 Bin Cheng <bin.cheng@arm.com>
8332
8333 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
8334 loop if EXPR is simplified to const value.
8335
8336 2015-08-21 Yury Gribov <y.gribov@samsung.com>
8337
8338 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
8339 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
8340
8341 2015-08-21 Richard Biener <rguenther@suse.de>
8342
8343 PR middle-end/67285
8344 * gimple-fold.c (replace_stmt_with_simplification): Assert
8345 seq is empty when replacing a call with itself but different
8346 arguments.
8347 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
8348 a call require that it is const.
8349
8350 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8351
8352 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
8353 * builtins.c (get_object_alignment_2): Adjust.
8354 * varasm.c (align_variable): Likewise.
8355 (get_variable_align): Likewise.
8356 (build_constant_desc): Likewise.
8357 (force_const_mem): Likewise.
8358 * doc/tm.texi.in: Likewise.
8359 * doc/tm.texi: Regenerate.
8360
8361 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8362
8363 * genconfig.c (main): Always define HAVE_cc0.
8364 * recog.c (rest_of_handle_peephole2): Adjust.
8365
8366 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8367
8368 * reorg.c (relax_delay_slots): Don't use #if to check value of
8369 HAVE_cc0.
8370
8371 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8372
8373 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
8374 * targhooks.c (default_have_conditional_execution): Adjust.
8375
8376 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
8377
8378 * rtl.h (rtvec_all_equal_p): Declare.
8379 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
8380 * rtl.c (rtvec_all_equal_p): New function.
8381 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
8382 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
8383 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
8384 * config/arm/arm.c (neon_vdup_constant): Likewise.
8385 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
8386 * config/tilegx/constraints.md (W, Y): Likewise.
8387 * config/tilepro/constraints.md (W, Y): Likewise.
8388 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
8389 (classify_immediate): Use unwrap_const_vec_duplicate.
8390 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
8391 (reg_or_v2s8bit_operand): Likewise.
8392 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
8393 (reg_or_v4s8bit_operand): Likewise.
8394
8395 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8396
8397 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
8398 (vec_shasigma_be): New #define.
8399 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
8400 (VPMSUMH): Likewise.
8401 (VPMSUMW): Likewise.
8402 (VPMSUMD): Likewise.
8403 (VPMSUM): New BU_P8V_OVERLOAD_2.
8404 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
8405 entries for VEC_MADD and VEC_VPMSUM.
8406
8407 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
8408
8409 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
8410 Multiply argument avr_n_flash by 64 to match unit of "KiB".
8411 (avr_pgm_check_var_decl): Same.
8412
8413 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
8414
8415 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
8416 initialization of HFmode scalar type (float16_t) to...
8417 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
8418 code.
8419
8420 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
8421
8422 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
8423 having an -mfp16-format.
8424
8425 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
8426
8427 * config/i386/predicates.md (vector_all_ones_operand): Use
8428 CONSTM1_RTX to simplify definition.
8429
8430 2015-08-20 Richard Biener <rguenther@suse.de>
8431
8432 * toplev.c (compile_file): Remove loop calling late_global_decl
8433 on all symbols.
8434 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
8435 on decls we assembled.
8436
8437 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
8438
8439 * common/config/aarch64/aarch64-common.c
8440 (AARCH64_CPU_NAME_LENGTH): Delete.
8441 (aarch64_option_extension): New.
8442 (all_extensions): Likewise.
8443 (processor_name_to_arch): Likewise.
8444 (arch_to_arch_name): Likewise.
8445 (all_cores): New.
8446 (all_architectures): Likewise.
8447 (aarch64_get_extension_string_for_isa_flags): Likewise.
8448 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
8449 architecture names.
8450 * config/aarch64/aarch64-protos.h
8451 (aarch64_get_extension_string_for_isa_flags): New.
8452 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
8453 (aarch64_option_print): Get the string to print from
8454 aarch64_get_extension_string_for_isa_flags.
8455 (aarch64_declare_function_name): Likewise.
8456 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
8457 (MCPU_TO_MARCH_SPEC): This.
8458 (ASM_CPU_SPEC): Use it.
8459 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
8460 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
8461 (EXTRA_SPEC_FUNCTIONS): Use it.
8462
8463 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
8464
8465 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
8466 expansion when !ISA_HAS_LWL_LWR.
8467 (mips_block_move_straight): Update the size of elements copied to
8468 account for alignment when !ISA_HAS_LWL_LWR.
8469 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
8470
8471 2015-08-19 Jiong Wang <jiong.wang@arm.com>
8472
8473 * expr.c (expand_expr_real_2): Check gimple statement during
8474 LSHIFT_EXPR expand.
8475
8476 2015-08-19 Magnus Granberg <zorry@gentoo.org>
8477
8478 * common.opt (fstack-protector): Initialize to -1.
8479 (fstack-protector-all): Likewise.
8480 (fstack-protector-strong): Likewise.
8481 (fstack-protector-explicit): Likewise.
8482 * configure.ac: Add --enable-default-ssp.
8483 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
8484 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
8485 -1.
8486 * doc/install.texi: Document --enable-default-ssp.
8487 * config.in: Regenerated.
8488 * configure: Likewise.
8489
8490 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
8491
8492 PR rtl-optimization/64164
8493 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
8494 (parm_in_stack_slot_p): ... this. Disregard mode, what
8495 matters is whether the parm will live in a pseudo or a stack
8496 slot.
8497 (expand_one_ssa_partition): Deal with params without a default
8498 def. Disregard mode.
8499 * cfgexpand.h: Renamed function declaration.
8500 * tree-ssa-coalesce.c: Adjust.
8501 * function.c (split_complex_args): Allocate stack slot for
8502 unassigned parms before splitting.
8503 (parm_in_unassigned_mem_p): New. Use it instead of
8504 parm_maybe_byref_p throughout this file.
8505 (assign_parm_setup_block): Use it. Accept pseudos in the
8506 expand-assigned rtl.
8507 (assign_parm_setup_reg): Drop BLKmode requirement.
8508 (assign_parm_setup_stack): Allocate and fill in the address of
8509 unassigned MEM parms.
8510
8511 2015-08-19 David Sherwood <david.sherwood@arm.com>
8512
8513 * genmodes.c (emit_mode_unit_size_inline): New function.
8514 (emit_mode_unit_precision_inline): New function.
8515 (emit_insn_modes_h): Emit new #define. Emit new functions.
8516 (emit_mode_unit_size): New function.
8517 (emit_mode_unit_precision): New function.
8518 (emit_mode_adjustments): Add mode_unit_size adjustments.
8519 (emit_insn_modes_c): Emit new arrays.
8520 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
8521 use new inline methods.
8522
8523 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8524
8525 * config/aarch64/aarch64.c (bit_count): Delete prototype
8526 and definition.
8527 (aarch64_print_operand): Use popcount_hwi instead of the above.
8528
8529 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8530
8531 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
8532 comment.
8533
8534 2015-08-19 Marek Polacek <polacek@redhat.com>
8535
8536 PR middle-end/67133
8537 * gimple-ssa-isolate-paths.c
8538 (insert_trap_and_remove_trailing_statements): Rename to ...
8539 (insert_trap): ... this. Don't remove trailing statements; split
8540 block instead.
8541 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
8542
8543 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
8544
8545 PR other/67042
8546 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
8547 conditionalize the whole on __GNUC__. Add fallback code
8548 depending neither on undefined nor implementation-defined behaviour.
8549
8550 2015-08-19 Jiong Wang <jiong.wang@arm.com>
8551
8552 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
8553 whitespaces with tab.
8554
8555 2015-08-19 Florian Weimer <fweimer@redhat.com>
8556
8557 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
8558 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
8559 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
8560 Move Name_Ids instantiation to the Prj.Proc package, to avoid
8561 trampolines.
8562
8563 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8564
8565 * config/arm/arm.c (bounds_check): Use %wd print format
8566 for HOST_WIDE_INT arguments.
8567
8568 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
8569
8570 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
8571 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
8572 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
8573 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
8574 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
8575 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
8576 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
8577 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
8578 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
8579 typedefs.
8580
8581 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
8582
8583 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
8584 function.c, graphite-scop-detection.c, haifa-sched.c,
8585 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
8586 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
8587 varasm.c: Remove typedefs of structs.
8588
8589 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
8590
8591 * config/rs6000/altivec.h (vec_adde): New define.
8592 (vec_addec): Likewise.
8593 (vec_double): Likewise.
8594 (vec_bperm): Likewise.
8595 (vec_gb): Likewise.
8596 * config/rs6000/rs6000-builtin.def (ADDE): New
8597 BU_ALTIVEC_OVERLOAD_3.
8598 (ADDEC): Likewise.
8599 (DOUBLE): New BU_VSX_OVERLOAD_1.
8600 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
8601 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
8602 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
8603 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
8604 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
8605 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
8606 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
8607 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
8608 and P8V_BUILTIN_VEC_VBPERMQ.
8609
8610 2015-08-18 Jason Merrill <jason@redhat.com>
8611
8612 * print-tree.c (print_node): Handle TREE_BINFO.
8613
8614 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8615
8616 PR middle-end/36757
8617 * builtins.c (expand_builtin_signbit): Add asserts to make sure
8618 we can expand BUILT_IN_SIGNBIT inline.
8619 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
8620 * doc/extend.texi: Document the type-generic __builtin_signbit.
8621
8622 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
8623
8624 PR rtl-optimization/67218
8625 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
8626 (simplify_unary_operation_1): Use it.
8627
8628 2015-08-18 Marek Polacek <polacek@redhat.com>
8629
8630 PR middle-end/67222
8631 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
8632 if the call isn't valid.
8633 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
8634 gimple_call_builtin_p.
8635 (call_may_clobber_ref_p_1): Likewise.
8636 (stmt_kills_ref_p): Likewise.
8637
8638 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
8639
8640 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
8641 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
8642 (mips_hard_regno_scratch_ok): Likewise.
8643 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
8644 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
8645
8646 2015-08-18 Bin Cheng <bin.cheng@arm.com>
8647
8648 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
8649 (determine_value_range): Call refine_value_range_using_guard for
8650 each loop initial condition to improve value range.
8651
8652 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
8653
8654 * config/i386/i386.c: Remove include of fibheap.h.
8655
8656 2015-08-17 Richard Biener <rguenther@suse.de>
8657
8658 PR tree-optimization/67221
8659 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
8660 (sccvn_dom_walker::before_dom_children): Mark backedges of
8661 non-executable blocks as not executable.
8662
8663 2015-08-17 David Sherwood <david.sherwood@arm.com>
8664
8665 * config/arm/arm.c (neon_element_bits): Replace call to
8666 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
8667 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
8668 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
8669 (neon_vdup_lane<mode>): Likewise.
8670 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
8671 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
8672 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
8673 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
8674 * config/spu/spu.c (arith_immediate_p): Likewise.
8675 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
8676 * expr.c (expand_expr_real_2): Likewise.
8677 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
8678 * simplify-rtx.c (simplify_immed_subreg): Likewise.
8679 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
8680 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
8681 New variable.
8682 * fold-const.c (fold_binary_loc): Replace call to
8683 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
8684 GET_MODE_UNIT_PRECISION (m).
8685
8686 2015-08-17 Mike Stump <mikestump@comcast.net>
8687
8688 * config/arm/arm.c (arm_block_move_unaligned_straight):
8689 Emit normal move instead of unaligned load when source or destination
8690 are appropriately aligned.
8691
8692 2015-08-17 Richard Biener <rguenther@suse.de>
8693 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8694
8695 PR middle-end/16107
8696 * match.pd (div (coss (op @0) : New simplifier.
8697
8698 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
8699
8700 PR rtl-optimization/64164
8701 PR bootstrap/66978
8702 PR middle-end/66983
8703 PR rtl-optimization/67000
8704 PR middle-end/67034
8705 PR middle-end/67035
8706 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
8707 * tree-ssa-copyrename.c: Removed.
8708 * opts.c (default_options_table): Drop -ftree-copyrename. Add
8709 -ftree-coalesce-vars.
8710 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
8711 * common.opt (ftree-copyrename): Ignore.
8712 (ftree-coalesce-inlined-vars): Likewise.
8713 * doc/invoke.texi: Remove the ignored options above.
8714 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
8715 * tree-ssa-coalesce.h: ... here.
8716 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
8717 headers required by it.
8718 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
8719 across variables when flag_tree_coalesce_vars. Check register
8720 use and promoted modes to allow coalescing. Do not coalesce
8721 maybe-byref parms with SSA_NAMEs of other variables, or
8722 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
8723 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
8724 with its member functions to tree-ssa-coalesce.c.
8725 (var_map_base_init): Likewise. Renamed to
8726 compute_samebase_partition_bases.
8727 (partition_view_normal): Drop want_bases parameter.
8728 (partition_view_bitmap): Likewise.
8729 * tree-ssa-live.h: Adjust declarations.
8730 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
8731 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
8732 default defs at the entry point.
8733 (dump_part_var_map): New.
8734 (compute_optimized_partition_bases): New, called by...
8735 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
8736 of compute_samebase_partition_bases. Adjust.
8737 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
8738 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
8739 (ssa_default_def_partition): New.
8740 (get_rtl_for_parm_ssa_default_def): New.
8741 (align_local_variable, add_stack_var): Support anonymous SSA
8742 names.
8743 (defer_stack_allocation): Likewise. Declare earlier.
8744 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
8745 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
8746 Do no record deferred-allocation marker in
8747 SA.partition_to_pseudo.
8748 (expand_stack_vars): Adjust check for the marker in it.
8749 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
8750 redundant MEM attr setting.
8751 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
8752 from...
8753 (expand_one_stack_var): ... this. New wrapper to check and
8754 skip already expanded SSA partitions.
8755 (record_alignment_for_reg_var): New, factored out of...
8756 (expand_one_var): ... this.
8757 (expand_one_ssa_partition): New.
8758 (adjust_one_expanded_partition_var): New.
8759 (expand_one_register_var): Check and skip already expanded SSA
8760 partitions.
8761 (expand_used_vars): Don't create DECLs for anonymous SSA
8762 names. Expand all SSA partitions, then adjust all SSA names.
8763 (pass::execute): Replace the loops that set
8764 SA.partition_to_pseudo from partition leaders and cleared
8765 DECL_RTL for multi-location variables, and that which used to
8766 rename vars and set attrs, with one that clears DECL_RTL and
8767 checks that PARMs and RESULTs default_defs match DECL_RTL.
8768 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
8769 * emit-rtl.c: Include stor-layout.h.
8770 (set_reg_attrs_for_parm): Handle NULL decl.
8771 (set_reg_attrs_for_decl_rtl): Take mode from expression if
8772 it's not a DECL.
8773 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
8774 rather than its possibly-NULL DECL.
8775 * explow.c (promote_ssa_mode): New.
8776 * explow.h (promote_ssa_mode): Declare.
8777 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
8778 (read_complex_part): Export.
8779 * expr.h (read_complex_part): Declare.
8780 * cfgexpand.h (parm_maybe_byref_p): Declare.
8781 * function.c: Include cfgexpand.h.
8782 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
8783 (use_register_for_parm_decl): Wrapper for the above to
8784 special-case the result_ptr.
8785 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
8786 (split_complex_args): Take assign_parm_data_all argument.
8787 Pass it to rtl_for_parm. Set up rtl and context for split
8788 args. Reset complex parm before fetching its default decl
8789 rtl.
8790 (assign_parms_unsplit_complex): Use the default-def complex
8791 parm rtl if it matches the components.
8792 (assign_parms_augmented_arg_list): Adjust.
8793 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
8794 multiple locations. Recognize split complex args.
8795 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
8796 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
8797 (assign_parm_setup_block): Prefer SSA-assigned location, and
8798 fill in its address if the memory location of a maybe-byref
8799 parm was not assigned by cfgexpand.
8800 (assign_parm_setup_reg): Likewise. Adjust its mode as
8801 needed. Use entry_parm for equiv if stack_parm is NULL. Make
8802 sure passed_pointer parms don't need conversion. Copy address
8803 or value as needed.
8804 (assign_parm_setup_stack): Prefer SSA-assigned location.
8805 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
8806 rtl before testing for pointer bounds. Special-case result_ptr.
8807 (expand_function_start): Maybe reset DECL_RTL of result.
8808 Prefer SSA-assigned location for result and static chain.
8809 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
8810 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
8811 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
8812 anonymous SSA names. Use promote_ssa_mode.
8813 (get_temp_reg): Likewise.
8814 (remove_ssa_form): Adjust.
8815 * stor-layout.c (layout_decl): Don't set mem attributes of
8816 non-MEMs.
8817 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
8818 and get its reg_usage for reg invalidation.
8819 (compute_bb_dataflow): Pass it insn.
8820 (emit_notes_in_bb): Likewise.
8821
8822 2015-08-14 Marek Polacek <polacek@redhat.com>
8823
8824 * tree-core.h (tree_base): Fix typo.
8825
8826 2015-08-14 Marek Polacek <polacek@redhat.com>
8827
8828 PR middle-end/67133
8829 * gimple.c (infer_nonnull_range_by_attribute): Check that the
8830 nonnull argument position is not outside function arguments.
8831
8832 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
8833
8834 PR target/67143
8835 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
8836 'lconst_atomic' with 'const_atomic'.
8837 (atomic_fetch_<optab><mode>): Likewise.
8838 (atomic_<optab>_fetch<mode>): Likewise.
8839 * config/aarch64/iterators.md (lconst-atomic): Move below
8840 'const_atomic'.
8841 (const_atomic): New.
8842
8843 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
8844 Bernd Schmidt <bernds@codesourcery.com>
8845
8846 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
8847 debug options.
8848 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
8849 (DWARF2_DEBUGGING_INFO): Don't define.
8850 * debug.h (dwarf2_lineno_debug_hooks): Declare.
8851 * toplev.c (process_options): Add a case for it.
8852 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
8853 (dwarf2out_init): Skip most initializations if
8854 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
8855 case.
8856 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
8857 DWARF2_LINENO_DEBUGGING_INFO.
8858 * opts.c (set_debug_level): Likewise.
8859
8860 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
8861
8862 * config/arm/types.md (is_neon_type): Add missing types.
8863
8864 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
8865
8866 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
8867 for skylake.
8868 * config/i386/i386.c (PTA_SKYLAKE): New macros.
8869 (processor_alias_table): Add skylake description.
8870 (enum processor_model): Add skylake processor.
8871 (arch_names_table): Add skylake record.
8872 * doc/invoke.texi: Add skylake item.
8873
8874 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
8875
8876 * ira-int.h: Include recog.h.
8877 * ira-build.c: Don't include recog.h.
8878 * ira-color.c: Likewise.
8879 * ira-conflicts.c: Likewise.
8880 * ira-costs.c: Likewise.
8881 * ira-emit.c: Likewise.
8882 * ira-lives.c: Likewise.
8883 * ira.c: Likewise.
8884 * sched-deps.c: Likewise.
8885 * sel-sched.c: Likewise.
8886 * target-globals.c: Likewise.
8887
8888 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
8889
8890 PR bootstrap/55035
8891 * reload1.c (elimination_costs_in_insn): Make it obvious to the
8892 compiler that the n_dups and n_operands loop bounds are invariant.
8893
8894 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8895
8896 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
8897 expressions in A and B.
8898
8899 2015-08-13 Richard Biener <rguenther@suse.de>
8900
8901 * tree.c (nonnull_arg_p): Move from ...
8902 * tree-vrp.c (nonnull_arg_p): ... here.
8903 * tree.h (nonnull_arg_p): Declare.
8904 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
8905 here, register ptr != 0 for nonnull_arg_p pointer arguments.
8906 Properly initialize static chain and by-reference result pointer.
8907 (run_scc_vn): Adjust.
8908
8909 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
8910
8911 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
8912 TUNE_I6400.
8913
8914 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
8915
8916 * config/aarch64/aarch64-protos.h
8917 (aarch64_gen_atomic_cas): Declare.
8918 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
8919 Choose appropriate instruction pattern for the target.
8920 (aarch64_gen_atomic_cas): New.
8921 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
8922 (atomic_compare_and_swap<mode>_1): Rename to
8923 aarch64_compare_and_swap<mode>. Fix some indentation.
8924 (aarch64_compare_and_swap<mode>_lse): New.
8925 (aarch64_atomic_cas<mode>): New.
8926
8927 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
8928
8929 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
8930 (TARGET_LSE): New.
8931
8932 2015-08-13 Richard Biener <rguenther@suse.de>
8933
8934 PR tree-optimization/67191
8935 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
8936 assert we value-numbered last stmts operand because it can validly
8937 trigger for unreachable code.
8938
8939 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8940
8941 PR rtl-optimization/67103
8942 * ifcvt.c (noce_try_store_flag_constants): Move
8943 x = (-(test != 0) & (b - a)) + a transformation to...
8944 (noce_try_cmove): ... Here. Try it if normal conditional
8945 move fails.
8946
8947 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
8948
8949 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
8950 pseudo-processors.
8951 * config/mips/mips.md (processor): Remove w32 and w64.
8952
8953 2015-08-13 Richard Biener <rguenther@suse.de>
8954
8955 PR tree-optimization/66502
8956 PR tree-optimization/67167
8957 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
8958 backedge arguments.
8959 (vn_phi_lookup): Adjust.
8960 (vn_phi_insert): Likewise.
8961 (visit_phi): Prefer to value-number to another PHI node
8962 over value-numbering to a PHI argument.
8963 (init_scc_vn): Mark DFS back edges.
8964
8965 2015-08-13 Richard Biener <rguenther@suse.de>
8966
8967 * gimple.h (gcall::code_): New constant static member.
8968 (gcond::code_): Likewise.
8969 * gimple.c (gcall::code_): Define.
8970 (gcond::code_): Likewise.
8971 (is_a_helper <const gcond *>): Add.
8972 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
8973 and forward to a new gcall overload with less checking and a
8974 cheaper way to access the operand.
8975 (gimple_call_lhs_ptr): Likewise.
8976 (gimple_call_set_lhs): Likewise.
8977 (gimple_call_internal_p): Likewise.
8978 (gimple_call_with_bounds_p): Likewise.
8979 (gimple_call_set_with_bounds): Likewise.
8980 (gimple_call_internal_fn): Likewise.
8981 (gimple_call_set_ctrl_altering): Likewise.
8982 (gimple_call_ctrl_altering_p): Likewise.
8983 (gimple_call_fntype): Likewise.
8984 (gimple_call_fn): Likewise.
8985 (gimple_call_fn_ptr): Likewise.
8986 (gimple_call_set_fndecl): Likewise.
8987 (gimple_call_fndecl): Likewise.
8988 (gimple_call_chain): Likewise.
8989 (gimple_call_num_args): Likewise.
8990 (gimple_call_arg): Likewise.
8991 (gimple_call_arg_ptr): Likewise.
8992 (gimple_call_set_arg): Likewise.
8993 (gimple_call_noreturn_p): Likewise.
8994 (gimple_cond_code): Likewise.
8995 (gimple_cond_lhs): Likewise.
8996 (gimple_cond_rhs): Likewise.
8997 (gimple_has_lhs): Reduce checking.
8998
8999 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9000
9001 PR middle-end/25529
9002 * match.pd (div (mult @0 @1) @1) : New simplifier.
9003
9004 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
9005
9006 PR target/67071
9007 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
9008 predicate to allow construction of vector constants using the
9009 VSLDOI vector shift instruction.
9010
9011 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
9012 declaration.
9013
9014 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
9015 the number of bytes to be shifted left and filled in with either
9016 all zero or all one bits.
9017 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
9018 methods exist.
9019 (output_vec_const_move): On power8, generate XXLORC to generate
9020 a vector constant with all 1's. Do a split if we need to use a
9021 VSLDOI instruction.
9022
9023 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
9024 properly test for the MSB.
9025
9026 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
9027 vector constants that can be created with VSLDOI.
9028
9029 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
9030
9031 revert:
9032 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
9033 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
9034 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
9035 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
9036 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
9037 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9038 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
9039 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
9040 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
9041
9042 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
9043
9044 * config/xtensa/constraints.md (define_constraint "Y"): New
9045 constraint.
9046 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
9047 * config/xtensa/linux.h (ASM_SPEC): Likewise.
9048 * config/xtensa/predicates.md (move_operand): Match constants
9049 and symbols in the presence of TARGET_AUTO_LITPOOLS.
9050 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
9051 immediate references to TLS data.
9052 (xtensa_emit_move_sequence): Don't force constants to memory in
9053 the presence of TARGET_AUTO_LITPOOLS.
9054 (print_operand): Add 'y' format, same as default, but capable of
9055 printing SF mode constants as well.
9056 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
9057 (movsf_internal): Add movi pattern that loads literal.
9058 (movsf, movdf): Don't force constants to memory in the presence
9059 of TARGET_AUTO_LITPOOLS.
9060 (movdf_internal): Add 'Y' constraint.
9061 * config/xtensa/xtensa.opt (mauto-litpools): New option.
9062 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
9063
9064 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
9065
9066 * config/arm/arm-fpus.def: Replace booleans with feature flags.
9067 Update comment.
9068 * config/arm/arm.c (ARM_FPU): Update macro.
9069 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
9070 (TARGET_FP16): Likewise.
9071 (TARGET_CRYPTO): Likewise.
9072 (TARGET_NEON): Likewise.
9073 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
9074 field features.
9075
9076 2015-08-12 Tom de Vries <tom@codesourcery.com>
9077
9078 PR other/67092
9079 PR other/67098
9080 * doc/install.texi: Remove --with_host_libstdcxx item. Update
9081 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
9082 accordingly. Mention default for --with-stage1-ldflags.
9083
9084 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
9085
9086 * config/arm/arm.h (arm_fpu_feature_set): New.
9087 (ARM_FPU_FSET_HAS): New.
9088 (FPU_FL_NONE): New.
9089 (FPU_FL_NEON): New.
9090 (FPU_FL_FP16): New.
9091 (FPU_FL_CRYPTO): New.
9092
9093 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9094
9095 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
9096 after -mcmodel=large -fPIC sorry.
9097
9098 2015-08-12 Richard Biener <rguenther@suse.de>
9099
9100 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
9101 comparison operand order and commutative ternary op operand order.
9102 (sccvn_dom_walker::cond_stack): New state to track temporary
9103 expressions.
9104 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
9105 no longer valid.
9106 (sccvn_dom_walker::record_cond): Add a single temporary conditional
9107 expression.
9108 (sccvn_dom_walker::record_conds): Add a temporary conditional
9109 expressions and all related expressions also true/false.
9110 (sccvn_dom_walker::before_dom_children): Record temporary
9111 expressions based on the controlling condition of a single
9112 predecessor. When trying to simplify a conditional statement
9113 lookup expressions we might have inserted earlier.
9114
9115 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
9116
9117 PR target/67127
9118 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
9119 to ARM core registers.
9120
9121 2015-08-12 Nathan Sidwell <nathan@acm.org>
9122
9123 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
9124 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
9125
9126 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
9127
9128 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
9129 line with comments.
9130 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
9131
9132 2015-08-12 Richard Biener <rguenther@suse.de>
9133
9134 * gimple.h (remove_pointer): New trait.
9135 (GIMPLE_CHECK2): New inline template function.
9136 (gassign::code_): New constant static member.
9137 (is_a_helper<const gassign *>): Add.
9138 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
9139 and forward to a new gassign overload with less checking and a
9140 cheaper way to access the operand.
9141 (gimple_assign_lhs_ptr): Likewise.
9142 (gimple_assign_set_lhs): Likewise.
9143 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
9144 Likewise.
9145 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
9146 Likewise.
9147 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
9148 Likewise.
9149 (gimple_assign_rhs_code): Likewise.
9150 * gimple.c (gassign::code_): Define.
9151
9152 2015-08-12 Richard Biener <rguenther@suse.de>
9153
9154 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9155 Eliminate edges marked as not executable by SCCVN.
9156 * tree-ssa-sccvn.c: Include gimple-iterator.h.
9157 (cond_dom_walker): Rename to sccvn_dom_walker.
9158 (sccvn_dom_walker::before_dom_children): Value-number defs
9159 of all stmts.
9160 (run_scc_vn): Remove loop value-numbering all SSA names.
9161 Drop not visited SSA names to varying.
9162
9163 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
9164
9165 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
9166 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
9167 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
9168 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
9169 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
9170 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9171 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
9172 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
9173 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
9174
9175 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
9176
9177 PR target/66954
9178 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
9179 to enum feature_priority and feature_list.
9180 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
9181 and isa_names_table.
9182
9183 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
9184
9185 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
9186 vect_induction_def.
9187
9188 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
9189
9190 PR c/66098
9191 PR c/66711
9192 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
9193 account when deciding what was the command-line status.
9194
9195 2015-08-11 Nathan Sidwell <nathan@acm.org>
9196
9197 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
9198
9199 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
9200 we're not the only contributor to target phi.
9201
9202 2015-08-11 Jiong Wang <jiong.wang@arm.com>
9203
9204 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
9205 FIXED_REG0.
9206
9207 2015-08-11 Tom de Vries <tom@codesourcery.com>
9208
9209 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
9210
9211 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
9212
9213 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
9214 with CPU_SLM.
9215 * config/i386/i386.md (cpu): Remove knl.
9216
9217 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
9218
9219 PR libgomp/65742
9220 PR middle-end/66332
9221 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
9222 open-coded sequence.
9223 * omp-low.c (oacc_process_reduction_data): Remove handline of
9224 GOMP_DEVICE_HOST_NONSHM.
9225
9226 * lto-streamer-in.c (lto_input_mode_table): Adjust to
9227 GET_MODE_INNER changes.
9228
9229 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
9230 Ilya Verbin <ilya.verbin@intel.com>
9231
9232 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
9233
9234 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
9235
9236 * doc/options.texi (EnabledBy): Document that the argument must be
9237 a Common option.
9238 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
9239 Not enabled by -Wall.
9240 * optc-gen.awk: Give nicer error messages. Detect if the argument
9241 of EnabledBy is not a Common option.
9242 * common.opt (Wnull-dereference): Not enabled by -Wall.
9243 * opt-functions.awk (lang_enabled_by): Nicer error messages.
9244
9245 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
9246
9247 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
9248 model == 0x4f as Broadwell.
9249
9250 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
9251
9252 PR rtl-optimization/67028
9253 * combine.c (simplify_comparison): Fix comment. Rearrange code.
9254 Add test to see if a const_int fits in the new mode.
9255
9256 2015-08-07 DJ Delorie <dj@redhat.com>
9257
9258 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
9259
9260 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
9261
9262 PR rtl-optimization/67029
9263 * ira-color.c: Include "recog.h" before including "ira-int.h".
9264 * target-globals.c: Likewise.
9265 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
9266 adds an alternative_mask argument and use it instead of
9267 preferred_alternatives.
9268 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
9269 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
9270 * sched-deps.c: Include "ira-int.h" after including "ira.h".
9271 (sched_analyze_insn): Update call to
9272 ira_implicitly_set_insn_hard_regs.
9273 * sel-sched.c: Include "ira-int.h" after including "ira.h".
9274 (implicit_clobber_conflict_p): Update call to
9275 ira_implicitly_set_insn_hard_regs.
9276
9277 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
9278
9279 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
9280
9281 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
9282
9283 PR target/67002
9284 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
9285 currently_expanding_to_rtl is set.
9286
9287 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
9288
9289 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
9290 * configure: Regenerate.
9291
9292 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9293 Jiong Wang <jiong.wang@arm.com>
9294
9295 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
9296 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
9297 (REG_CLASS_NAMES): Likewise.
9298 (REG_CLASS_CONTENTS): Likewise.
9299 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
9300 (aarch64_register_move_cost): Likewise.
9301 (aarch64_load_symref_appropriately): Invoke the new added pattern if
9302 possible.
9303 * config/aarch64/constraints.md (Uc0): New constraint.
9304
9305 2015-08-06 Jiong Wang <jiong.wang@arm.com>
9306
9307 * config/aarch64/constraints.md (Usf): Add the test of
9308 aarch64_is_noplt_call_p.
9309
9310 2015-08-06 Jiong Wang <jiong.wang@arm.com>
9311
9312 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
9313 declaration.
9314 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
9315 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
9316 (call_symbol): Likewise.
9317
9318 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
9319
9320 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
9321 for vectorizing multiplication patterns.
9322 * tree-vectorizer.h: Adjust the number of patterns.
9323
9324 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
9325
9326 * config/i386/sse.md (*vec_concatv2df): Declare added
9327 alternatives as sselog type.
9328
9329 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9330
9331 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
9332 all GPRs.
9333
9334 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9335
9336 * config/s390/s390.c (s390_expand_tbegin): Expand either
9337 tbegin_1_z13 or tbegin_1 depending on VX flag.
9338 * config/s390/s390.md ("tbegin_1_z13"): New expander.
9339
9340 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9341
9342 * config/s390/s390.opt: Clarify description for -mzvector
9343 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
9344 -mzvector.
9345
9346 2015-08-06 Richard Biener <rguenther@suse.de>
9347
9348 * gimple.h (gimple_call_set_fn): Access op member directly.
9349 (gimple_call_chain_ptr): Likewise.
9350 (gimple_call_set_chain): Likewise.
9351 (gimple_cond_lhs_ptr): Likewise.
9352 (gimple_cond_set_lhs): Likewise.
9353 (gimple_cond_rhs_ptr): Likewise.
9354 (gimple_cond_set_rhs): Likewise.
9355 (gimple_cond_true_label): Likewise.
9356 (gimple_cond_set_true_label): Likewise.
9357 (gimple_cond_set_false_label): Likewise.
9358 (gimple_cond_false_label): Likewise.
9359 (gimple_label_label): Likewise.
9360 (gimple_label_set_label): Likewise.
9361 (gimple_goto_set_dest): Likewise.
9362 (gimple_asm_input_op): Likewise.
9363 (gimple_asm_input_op_ptr): Likewise.
9364 (gimple_asm_set_input_op): Likewise.
9365 (gimple_asm_output_op): Likewise.
9366 (gimple_asm_output_op_ptr): Likewise.
9367 (gimple_asm_set_output_op): Likewise.
9368 (gimple_asm_clobber_op): Likewise.
9369 (gimple_asm_set_clobber_op): Likewise.
9370 (gimple_asm_label_op): Likewise.
9371 (gimple_asm_set_label_op): Likewise.
9372 (gimple_switch_index): Likewise.
9373 (gimple_switch_index_ptr): Likewise.
9374 (gimple_return_retval_ptr): Likewise.
9375 (gimple_return_retval): Likewise.
9376 (gimple_return_set_retval): Likewise.
9377 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
9378 (gimple_switch_label): Likewise.
9379 (gimple_switch_set_label): Likewise.
9380
9381 2015-08-06 Richard Biener <rguenther@suse.de>
9382
9383 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
9384 bool comparison canonicalization and restrict to integers.
9385
9386 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
9387
9388 * coretypes.h (enum symbol_visibility): Relocate here.
9389 * flag-types.h (enum symbol_visibility): Remove.
9390 * tree-core.h (enum symbol_visibility): Remove.
9391
9392 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
9393
9394 PR target/66870
9395 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
9396 for no_split_stack function attribute along with
9397 flag_split_stack.
9398 (rs6000_expand_split_stack_prologue): Likewise.
9399
9400 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
9401 Jeff Law <law@redhat.com>
9402
9403 PR c/16351
9404 * doc/invoke.texi (Wnull-dereference): New.
9405 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
9406 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
9407 Warn for potential NULL dereferences.
9408 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
9409 * ubsan.c (instrument_nonnull_arg): Call
9410 infer_nonnull_range_by_attribute.
9411 (instrument_nonnull_return): Likewise.
9412 * common.opt (Wnull-dereference); New.
9413 * gimple.c (infer_nonnull_range): Remove bool arguments.
9414 (infer_nonnull_range_by_dereference): New.
9415 (infer_nonnull_range_by_attribute): New.
9416 * gimple.h: Update declarations.
9417
9418 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9419
9420 * gensupport.c (sequence_num): Replace with...
9421 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
9422 ...these new variables.
9423 (init_rtx_reader_args_cb): Update accordingly.
9424 (get_num_code_insns): Likewise.
9425 (read_md_rtx): Rework to use a while loop and get_c_test.
9426 Use the new counters. Remove redundant DEFINE_SUBST case.
9427 * genoutput.c (gen_split): Delete.
9428 (main): Don't call it.
9429
9430 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9431
9432 * gensupport.h (get_c_test): Declare.
9433 * gensupport.c (get_c_test): New function.
9434 * genconditions.c (main): Use it.
9435 * genrecog.c (validate_pattern): Likewise.
9436 (match_pattern_1): Likewise. Remove c_test argument.
9437 (match_pattern): Update accordingly and remove c_test argument.
9438 (main): Update accordingly.
9439
9440 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9441
9442 * gensupport.h (get_num_insn_codes): Declare.
9443 * gensupport.c (get_num_insn_codes): New function.
9444 * genattrtab.c (optimize_attrs): Rename max_insn_code to
9445 num_insn_codes.
9446 (main): Likewise. Use get_num_insn_codes.
9447 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
9448
9449 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9450
9451 PR middle-end/66311
9452 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
9453 is zero- rather than sign-extended.
9454
9455 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9456
9457 * target-insns.def (can_extend): Delete.
9458
9459 2015-08-05 Richard Biener <rguenther@suse.de>
9460
9461 PR tree-optimization/67121
9462 * tree-if-conv.c (combine_blocks): Clear range-info produced
9463 by stmts no longer executed conditionally.
9464
9465 2015-08-05 Nick Clifton <nickc@redhat.com>
9466
9467 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
9468 to allow identical far pointers to remain.
9469
9470 2015-08-05 Richard Biener <rguenther@suse.de>
9471
9472 PR middle-end/67120
9473 * match.pd: Compare address bases with == if they are decls
9474 or SSA names, not operand_equal_p. Otherwise fail.
9475
9476 2015-08-05 Richard Biener <rguenther@suse.de>
9477
9478 PR tree-optimization/67055
9479 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
9480 NULL gimple_block.
9481
9482 * g++.dg/torture/pr67055.C: New testcase.
9483
9484 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
9485
9486 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
9487 noavx512vl.
9488 (define_attr "enabled"): Handle avx521vl and noavx512vl.
9489 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
9490 AVX-512 alternative out of SSE.
9491 (define_insn "*vec_concatv2df"): Ditto.
9492
9493 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
9494
9495 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
9496 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
9497 CODE_FOR_avx_ptestv4di.
9498 * config/i386/sse.md (define_mode_iterator V_AVX): New.
9499 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
9500 (define_insn "avx_ptest256"): Merge this ...
9501 (define_insn "sse4_1_ptest"): And this ...
9502 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
9503
9504 2015-08-05 Richard Biener <rguenther@suse.de>
9505
9506 PR tree-optimization/67109
9507 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
9508 against too big groups. Print whether this is a load or store
9509 group. Rename from ...
9510 (vect_analyze_group_access): ... this which is now a wrapper
9511 dissolving an invalid group.
9512 (vect_analyze_data_ref_accesses): Print whether this is a load
9513 or store group.
9514
9515 2015-08-05 Richard Biener <rguenther@suse.de>
9516
9517 PR middle-end/67107
9518 * match.pd: Guard const_binop result checking against NULL_TREE
9519 result.
9520
9521 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
9522
9523 * cse.c (cse_insn): Restoring old behaviour for src_eqv
9524 when dest and value in the REG_EQUAL are same and dest
9525 is STRICT_LOW_PART.
9526
9527 2015-08-04 Anatoly Sokolov <aesok@post.ru>
9528
9529 * config/moxie/moxie.h (PRINT_OPERAND,
9530 PRINT_OPERAND_ADDRESS): Remove macros.
9531 * config/moxie/moxie-protos.h (moxie_print_operand,
9532 moxie_print_operand_address): Remove declaration.
9533 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
9534 TARGET_PRINT_OPERAND_ADDRESS): Define.
9535 (moxie_print_operand, moxie_print_operand_address): Make static.
9536
9537 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
9538
9539 PR target/66731
9540 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
9541 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
9542
9543 2015-08-04 Richard Biener <rguenther@suse.de>
9544
9545 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
9546 generated code.
9547 (dt_operand::gen_gimple_expr): Adjust.
9548
9549 2015-08-04 Richard Biener <rguenther@suse.de>
9550
9551 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
9552 bool compares on RHS.
9553 * match.pd: Add X ==/!= !X is false/true pattern.
9554
9555 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
9556
9557 * config/aarch64/aarch64.c: Change inner loop statement cost
9558 to be consistent with other targets.
9559
9560 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
9561
9562 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
9563 targets.
9564
9565 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
9566
9567 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
9568 (machine_function): Remove pseudos field.
9569
9570 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9571
9572 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
9573 Exit early and use target_option_current_node if processing current
9574 pragma.
9575
9576 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9577
9578 * doc/extend.texi (AArch64 Function Attributes): New node.
9579 (AArch64 Pragmas): Likewise.
9580
9581 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9582
9583 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
9584 Initialize simd builtins if TARGET_SIMD.
9585 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
9586 Make sure that the builtins are initialized only once no matter how
9587 many times the function is called.
9588 (aarch64_init_builtins): Unconditionally initialize crc builtins.
9589 (aarch64_relayout_simd_param): New function.
9590 (aarch64_simd_expand_args): Use above during argument expansion.
9591 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
9592 simd builtins if TARGET_SIMD.
9593 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
9594 prototype.
9595 (aarch64_relayout_simd_types): Likewise.
9596
9597 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9598
9599 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
9600 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
9601 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
9602 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
9603 static keyword.
9604 (aarch64_reset_previous_fndecl): New function.
9605 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
9606 the string.
9607 * config/aarch64/aarch64-c.c: New file.
9608 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
9609 Push and pop options at beginning and end. Remove ifdef
9610 __ARM_FEATURE_CRC32.
9611 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
9612 Add pragma +nothing+simd and +nothing+crypto where appropriate.
9613 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
9614 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
9615 Define prototype.
9616 (aarch64_register_pragmas): Likewise.
9617 (aarch64_reset_previous_fndecl): Likewise.
9618 (aarch64_process_target_attr): Likewise.
9619 (aarch64_override_options_internal): Likewise.
9620
9621 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9622
9623 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
9624 New function.
9625 (aarch64_can_inline_p): Likewise.
9626 (TARGET_CAN_INLINE_P): Define.
9627
9628 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9629
9630 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
9631 Remove static. Handle OPT_mgeneral_regs_only,
9632 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
9633 OPT_momit_leaf_frame_pointer.
9634 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
9635 (aarch64_attr_opt_type): New enum.
9636 (aarch64_attribute_info): New struct.
9637 (aarch64_handle_attr_arch): New function.
9638 (aarch64_handle_attr_cpu): Likewise.
9639 (aarch64_handle_attr_tune): Likewise.
9640 (aarch64_handle_attr_isa_flags): Likewise.
9641 (aarch64_attributes): New table.
9642 (aarch64_process_one_target_attr): New function.
9643 (num_occurences_in_str): Likewise.
9644 (aarch64_process_target_attr): Likewise.
9645 (aarch64_option_valid_attribute_p): Likewise.
9646 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
9647 * config/aarch64/aarch64-protos.h: Include input.h
9648 (aarch64_handle_option): Declare prototype.
9649
9650 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9651
9652 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
9653 * config/aarch64/aarch64.c: Include target-globals.h
9654 (aarch64_previous_fndecl): New variable.
9655 (aarch64_set_current_function): New function.
9656 (TARGET_SET_CURRENT_FUNCTION): Define.
9657
9658 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9659
9660 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
9661 (explicit_arch): Likewise.
9662 (x_aarch64_isa_flags): Likewise.
9663 (mgeneral-regs-only): Mark as Save.
9664 (mfix-cortex-a53-835769): Likewise.
9665 (mcmodel=): Likewise.
9666 (mstrict-align): Likewise.
9667 (momit-leaf-frame-pointer): Likewise.
9668 (mtls-dialect): Likewise.
9669 (master=): Likewise.
9670 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
9671 (aarch64_isa_flags): Remove extern declaration.
9672 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
9673 to indicate success or failure.
9674 (aarch64_validate_march): Likewise.
9675 (aarch64_validate_mtune): Likewise.
9676 (aarch64_isa_flags): Delete.
9677 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
9678 instead of aarch64_isa_flags.
9679 (aarch64_get_tune_cpu): New function.
9680 (aarch64_get_arch): Likewise.
9681 (aarch64_override_options): Use above and set up explicit_tune_core
9682 and explicit_arch.
9683 (aarch64_print_extension): Move earlier in file. Add isa_flags
9684 argument and use that instead of the global aarch64_isa_flags.
9685 (aarch64_option_save): New function.
9686 (aarch64_option_restore): Likewise.
9687 (aarch64_option_print): Likewise.
9688 (aarch64_declare_function_name): Likewise.
9689 (aarch64_start_file): Delete.
9690 (TARGET_ASM_FILE_START): Do not define.
9691 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
9692 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
9693 Declare prototype.
9694
9695 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9696
9697 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
9698 flag_omit_leaf_frame_pointer to 2.
9699
9700 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9701
9702 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
9703 define to 0 or 1.
9704 (TARGET_FIX_ERR_A53_835769): New macro.
9705 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
9706 handling of opts->x_aarch64_fix_a53_err835769.
9707 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
9708 than aarch64_fix_a53_err835769.
9709 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
9710 * config/aarch64/aarch64-linux.h: Likewise.
9711
9712 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
9713
9714 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
9715 ix86_expand_int_movcc as boolean.
9716
9717 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9718
9719 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
9720 (aarch64_cpu_string): Likewise.
9721 (aarch64_tune_string): Likewise.
9722 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
9723 (aarch64_parse_extension): Return aarch64_parse_opt_result.
9724 Add extra argument to put result into.
9725 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
9726 (aarch64_parse_cpu): Add arguments to put results into. Return
9727 aarch64_parse_opt_result.
9728 (aarch64_parse_tune): Likewise.
9729 (aarch64_override_options_after_change_1): New function.
9730 (aarch64_override_options_internal): New function.
9731 (aarch64_validate_mcpu): Likewise.
9732 (aarch64_validate_march): Likewise.
9733 (aarch64_validate_mtune): Likewise.
9734 (aarch64_override_options): Update to reflect above changes.
9735 Move some logic into aarch64_override_options_internal.
9736 Initialize target_option_default_node and target_option_current_node.
9737 (aarch64_override_options_after_change): Move logic into
9738 aarch64_override_options_after_change_1 and call it with global_options.
9739 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
9740 flag values from that.
9741
9742 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9743
9744 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
9745 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
9746 * config/aarch64/aarch64.c (struct processor): Add arch field.
9747 (all_architectures): Handle above, move above all_cores.
9748 (all_cores): Handle above.
9749 (aarch64_parse_arch): Handle above changes.
9750 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
9751 above. Update comments.
9752 (armv8.1-a): Likewise.
9753 * config/aarch64/aarch64-cores.def: Update according to above.
9754 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
9755 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
9756 aarch64_arch_driver_info.
9757
9758 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9759
9760 * config/aarch64/aarch64.c (struct processor): Add ident field.
9761 Rename core sched_core.
9762 (all_cores): Handle above changes.
9763 (all_architectures): Likewise.
9764 (aarch64_parse_arch): Likewise.
9765 (aarch64_override_options): Likewise.
9766
9767 2015-08-04 Richard Biener <rguenther@suse.de>
9768
9769 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
9770 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
9771 comparisons embedded in [VEC_]COND_EXPRs.
9772
9773 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
9774
9775 * tree-if-conv.c: Fix various typos in comments.
9776 * tree-vect-stmts.c: Likewise.
9777
9778 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
9779
9780 PR tree-optimization/67043
9781 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
9782 preheader after hoisting invariant in it.
9783 (find_defs): Force recomputation of all luids.
9784
9785 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
9786
9787 * config/rs6000/htm.md (tabort.): Restrict the source operand to
9788 using a base register.
9789
9790 2015-08-03 David Malcolm <dmalcolm@redhat.com>
9791
9792 * main.c (main): Pass in NULL for toplev's external_timer.
9793 * timevar.c: Include coretypes.h.
9794 (class timer::named_items): New.
9795 (timer::named_items::named_items): New.
9796 (timer::named_items::~named_items): New.
9797 (timer::named_items::push): New.
9798 (timer::named_items::pop): New.
9799 (timer::named_items::print): New.
9800 (timer::timer): Initialize field "m_jit_client_items".
9801 (timer::~timer): New.
9802 (timer::push): Move bulk of implementation to...
9803 (timer::push_internal): ...here. New function.
9804 (timer::pop): Move bulk of implementation to...
9805 (timer::pop_internal): ...here. New function.
9806 (timer::push_client_item): New.
9807 (timer::pop_client_item): New.
9808 (timer::print_row): New function, taken from timer::print.
9809 (timer::print): Print "GCC items" header if we also have client
9810 items. Move row-printing to timer::print_row. Print any client
9811 items.
9812 (timer::get_topmost_item_name): New method.
9813 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
9814 (TV_JIT_CLIENT_CODE): New.
9815 * timevar.h (timer::push_client_item): New declaration.
9816 (timer::pop_client_item): New declaration.
9817 (timer::get_topmost_item_name): New method.
9818 (timer::push_internal): New declaration.
9819 (timer::pop_internal): New declaration.
9820 (timer::print_row): New declaration.
9821 (timer::named_items): New declaration.
9822 (timer::m_jit_client_items): New field.
9823 (timer): Add friend class named_items.
9824 (auto_timevar::auto_timevar): Add timer param.
9825 (auto_timevar::~auto_timevar): Use field "m_timer".
9826 (auto_timevar::m_timer): New field.
9827 * toplev.c (initialize_rtl): Add g_timer as param when
9828 constructing auto_timevar instance.
9829 (toplev::toplev): Add "external_timer" param, and use it to
9830 initialize the "g_timer" global if non-NULL.
9831 (toplev::~toplev): If this created "g_timer", delete it.
9832 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
9833 with "external_timer" timer *.
9834
9835 2015-08-03 Alexander Basov <coohpt@gmail.com>
9836
9837 PR middle-end/64744
9838 PR middle-end/48470
9839 PR middle-end/43404
9840 * cfgexpand.c (expand_one_var): Add check if stack is going to
9841 be used in naked function.
9842 * expr.c (expand_expr_addr_expr_1): Remove excess checking
9843 whether expression should not reside in MEM.
9844 * function.c (use_register_for_decl): Do not use registers for
9845 non-register things (volatile, float, BLKMode) in naked functions.
9846
9847 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
9848
9849 PR target/67060
9850 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
9851 Adjust splits to match new pattern.
9852
9853 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
9854
9855 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
9856 (VEC_M): Likewise.
9857 (VEC_N): Likewise.
9858 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
9859 point in VSX registers.
9860
9861 * config/rs6000/constraints.md (wb constraint): Document unused
9862 w<x> constraint.
9863 (we constraint): Likewise.
9864 (wo constraint): Likewise.
9865 (wp constraint): New constraint for IEEE 128-bit floating point in
9866 VSX registers.
9867 (wq constraint): Likewise.
9868
9869 * config/rs6000/predicates.md (easy_fp_constant): Add support for
9870 IEEE 128-bit floating point in VSX registers.
9871 (easy_scalar_constant): Likewise.
9872
9873 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
9874 constraints (wp, wq) for IEEE 128-bit floating point in VSX
9875 registers.
9876 (rs6000_init_hard_regno_mode_ok): Likewise.
9877
9878 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
9879 floating point in VSX registers.
9880 (VSX_L): Likewise.
9881 (VSX_M): Likewise.
9882 (VSX_M2): Likewise.
9883 (VSm): Likewise.
9884 (VSs): Likewise.
9885 (VSr): Likewise.
9886 (VSa): Likewise.
9887 (VSv): Likewise.
9888 (vsx_le_permute_<mode>): Add support to properly swap bytes for
9889 IEEE 128-bit floating point in VSX registers on little endian.
9890 (vsx_le_undo_permute_<mode>): Likewise.
9891 (vsx_le_perm_load_<mode>): Likewise.
9892 (vsx_le_perm_store_<mode>): Likewise.
9893 (splitters for IEEE 128-bit fp moves): Likewise.
9894
9895 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
9896 wq constraints.
9897
9898 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
9899 floating point in VSX registers.
9900 (VM2): Likewise.
9901
9902 * doc/md.text (Machine Constraints): Document wp and wq
9903 constraints on PowerPC.
9904
9905 2015-08-03 Jeff Law <law@redhat.com>
9906
9907 PR middle-end/66314
9908 PR gcov-profile/66899
9909 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
9910 iterate over the jump threading paths when an element in the
9911 jump threading paths array is eliminated.
9912
9913 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
9914
9915 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
9916
9917 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
9918
9919 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
9920 is_use_properly_guarded the variable def_preds. Free its
9921 contents before returning.
9922 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
9923 (is_use_properly_guarded): Replace local variable def_preds with
9924 a parameter. Adjust accordingly. Only update *def_preds if it's
9925 the empty vector.
9926
9927 2015-08-03 Richard Biener <rguenther@suse.de>
9928
9929 * genmatch.c (simplify::for_subst_vec): New member.
9930 (binary_ok): New helper for for lowering.
9931 (lower_for): Delay substituting operators into result expressions
9932 if we can merge the results eventually again.
9933 (capture_info::walk_result): Adjust for user_id appearing as
9934 result expression operator.
9935 (expr::gen_transform): Likewise.
9936 (dt_simplify::gen_1): Likewise.
9937 (dt_simplify::gen): Pass not substituted operators to tail
9938 functions or initialize local variable with it.
9939 (decision_tree::gen): Adjust function signature.
9940 * match.pd: Fix tests against global code and add default
9941 cases to switch stmts.
9942
9943 2015-08-03 Richard Biener <rguenther@suse.de>
9944
9945 * genmatch.c (dt_simplify::gen): Create captures array
9946 with an initializer.
9947
9948 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9949
9950 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
9951 the host compiler is affected by placement new aliasing bug.
9952 * configure: Regenerate.
9953 * Makefile.in (ALIASING_FLAGS): New variable.
9954 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
9955
9956 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
9957
9958 PR target/66731
9959 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
9960 (negmulsf3_vfp): Likewise.
9961 (muldf3negdf_vfp): Disable for -frounding-math.
9962 (mulsf3negsf_vfp): Likewise.
9963 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
9964 fix MULT cost with -frounding-math.
9965
9966 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9967
9968 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
9969 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
9970 explicit. Prefer to add the flag whenever possible.
9971 (noce_process_if_block): Try noce_try_store_flag_constants before
9972 noce_try_cmove.
9973
9974 2015-08-03 Richard Biener <rguenther@suse.de>
9975
9976 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
9977 New hash-map to record equivalent transforms.
9978 (dt_node::analyze): Populate the equivalent transforms hash-map.
9979 (dt_simplify::info): Add reference to hash-map entry.
9980 (dt_simplify::gen): If we have split out a function for the
9981 transform, generate a call to it.
9982 (sinfo_hashmap_traits::hash): New function.
9983 (compare_op): New helper function for ...
9984 (sinfo_hashmap_traits::equal_keys): ... this new function.
9985 (decision_tree::gen): Split out common equivalent transforms
9986 into functions.
9987
9988 2015-08-03 Richard Biener <rguenther@suse.de>
9989
9990 * gimple-fold.c (fold_gimple_assign): Remove folding of
9991 the comparison in COND_EXPRs.
9992
9993 2015-08-03 Richard Biener <rguenther@suse.de>
9994
9995 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
9996 on the rhs of assignments first simplify the embedded
9997 GENERIC condition.
9998
9999 2015-08-03 Richard Biener <rguenther@suse.de>
10000
10001 PR tree-optimization/66917
10002 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
10003 field.
10004 (DR_VECT_AUX): New macro.
10005 (set_dr_misalignment): Adjust.
10006 (dr_misalignment): Likewise.
10007 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
10008 Compute whether the base is at least element aligned.
10009 * tree-vect-stmts.c (ensure_base_align): Adjust.
10010 (vectorizable_store): If the base is not element aligned
10011 preserve alignment of the original access if misalignment is unknown.
10012 (vectorizable_load): Likewise.
10013
10014 2015-08-02 Martin Sebor <msebor@redhat.com>
10015
10016 * c-family/c.opt (-Wframe-address): New warning option.
10017 * doc/invoke.texi (Wframe-address): Document it.
10018 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
10019 Clarify possible effects of calling the functions with non-zero
10020 arguments and mention -Wframe-address.
10021 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
10022
10023 2015-08-01 Michael Collison <michael.collison@linaro.org
10024 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10025
10026 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
10027 (*arm_umin_cmp): Likewise.
10028
10029 2015-08-01 Caroline Tice <cmtice@google.com>
10030
10031 PR 66521
10032 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
10033 global variables.
10034 (vtbl_find_mangled_name): New function.
10035 (vtbl_register_mangled_name): New function.
10036 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
10037 mangled name in mangled name vectors.
10038 (find_or_create_vtbl_map_node): Ditto.
10039 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
10040 update recursion_depth on function entry; pass it to every recursive
10041 call; automatically exit if depth > 25 (give up looking at that point).
10042 (verify_bb_vtables): Initialize recursion_depth and pass it to
10043 var_is_used_for_virtual_call_p.
10044 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
10045 global variable decls.
10046 (vtbl_register_mangled_name): New extern function decl.
10047
10048 2015-08-01 Tom de Vries <tom@codesourcery.com>
10049
10050 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
10051 function.
10052 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
10053 Declare.
10054 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
10055 operation_no_trapping_overflow. Allow non-overflow operations.
10056 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
10057 operations.
10058
10059 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
10060
10061 PR target/67049
10062 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
10063
10064 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10065
10066 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
10067 Enable for TARGET_32BIT.
10068 (*if_move_neg): Likewise.
10069
10070 2015-07-31 Nick Clifton <nickc@redhat.com>
10071
10072 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
10073 Returns true for __model__.
10074 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
10075
10076 2015-07-31 Alan Modra <amodra@gmail.com>
10077
10078 PR target/66870
10079 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
10080 (rs6000_emit_prologue): Set it.
10081 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
10082
10083 2015-07-31 Richard Biener <rguenther@suse.de>
10084
10085 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
10086 -> X == (C1 ^ C2) which is already implemented in match.pd.
10087 Remove redundant dispatching to fold_relational_const.
10088 Move unordered self and NaN compares ...
10089 * match.pd: ... as patterns here. Remove some stray captures
10090 and add a comment.
10091
10092 2015-07-31 Petr Murzin <petr.murzin@intel.com>
10093
10094 * config/i386/i386.c
10095 (bdesc_special_args): Convert mask type from signed to unsigned for
10096 masked builtins.
10097 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
10098 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
10099 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
10100 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
10101 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
10102 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
10103 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
10104 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
10105 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
10106 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
10107 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
10108 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
10109 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
10110 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
10111 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
10112 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
10113 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
10114 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
10115 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
10116 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
10117 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
10118 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
10119 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
10120 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
10121 * config/i386/i386-builtin-types.def
10122 (V16QI_FTYPE_V16SI): Remove.
10123 (V8DF_FTYPE_V8SI): Ditto.
10124 (V8HI_FTYPE_V8DI): Ditto.
10125 (V8SI_FTYPE_V8DI): Ditto.
10126 (V8SF_FTYPE_V8DF): Ditto.
10127 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
10128 (V16HI_FTYPE_V16SI): Ditto.
10129 (V16SF_FTYPE_V16HI): Ditto.
10130 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
10131 (V16SF_FTYPE_V16SI): Ditto.
10132 (V4DI_FTYPE_V4DI): Ditto.
10133 (V16SI_FTYPE_V16SF): Ditto.
10134 (V16SF_FTYPE_FLOAT): Ditto.
10135 (V8DF_FTYPE_DOUBLE): Ditto.
10136 (V8DI_FTYPE_INT64): Ditto.
10137 (V8DI_FTYPE_V4DI): Ditto.
10138 (V16QI_FTYPE_V8DI): Ditto.
10139 (UINT_FTYPE_V4SF): Ditto.
10140 (UINT64_FTYPE_V4SF): Ditto.
10141 (UINT_FTYPE_V2DF): Ditto.
10142 (UINT64_FTYPE_V2DF): Ditto.
10143 (V16SI_FTYPE_V16SI): Ditto.
10144 (V8DI_FTYPE_V8DI): Ditto.
10145 (V16SI_FTYPE_PV4SI): Ditto.
10146 (V16SF_FTYPE_PV4SF): Ditto.
10147 (V8DI_FTYPE_PV2DI): Ditto.
10148 (V8DF_FTYPE_PV2DF): Ditto.
10149 (V4DI_FTYPE_PV2DI): Ditto.
10150 (V4DF_FTYPE_PV2DF): Ditto.
10151 (V16SI_FTYPE_PV2SI): Ditto.
10152 (V16SF_FTYPE_PV2SF): Ditto.
10153 (V8DI_FTYPE_PV4DI): Ditto.
10154 (V8DF_FTYPE_PV4DF): Ditto.
10155 (V8SF_FTYPE_FLOAT): Ditto.
10156 (V4SF_FTYPE_FLOAT): Ditto.
10157 (V4DF_FTYPE_DOUBLE): Ditto.
10158 (V8SF_FTYPE_PV4SF): Ditto.
10159 (V8SI_FTYPE_PV4SI): Ditto.
10160 (V4SI_FTYPE_PV2SI): Ditto.
10161 (V8SF_FTYPE_PV2SF): Ditto.
10162 (V8SI_FTYPE_PV2SI): Ditto.
10163 (V16SF_FTYPE_PV8SF): Ditto.
10164 (V16SI_FTYPE_PV8SI): Ditto.
10165 (V8DI_FTYPE_V8SF): Ditto.
10166 (V4DI_FTYPE_V4SF): Ditto.
10167 (V2DI_FTYPE_V4SF): Ditto.
10168 (V64QI_FTYPE_QI): Ditto.
10169 (V32HI_FTYPE_HI): Ditto.
10170 (V8UHI_FTYPE_V8UHI): Ditto.
10171 (V16UHI_FTYPE_V16UHI): Ditto.
10172 (V32UHI_FTYPE_V32UHI): Ditto.
10173 (V2UDI_FTYPE_V2UDI): Ditto.
10174 (V4UDI_FTYPE_V4UDI): Ditto.
10175 (V8UDI_FTYPE_V8UDI): Ditto.
10176 (V4USI_FTYPE_V4USI): Ditto.
10177 (V8USI_FTYPE_V8USI): Ditto.
10178 (V16USI_FTYPE_V16USI): Ditto.
10179 (V2DF_FTYPE_V2DF_UINT64): Ditto.
10180 (V2DI_FTYPE_V2DF_V2DF): Ditto.
10181 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
10182 (V8DF_FTYPE_V8DF_V8DI): Ditto.
10183 (V4SF_FTYPE_V4SF_UINT64): Ditto.
10184 (V4SI_FTYPE_V4SF_V4SF): Ditto.
10185 (V16SF_FTYPE_V16SF_V16SI): Ditto.
10186 (V64QI_FTYPE_V32HI_V32HI): Ditto.
10187 (V32HI_FTYPE_V16SI_V16SI): Ditto.
10188 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
10189 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
10190 (V32HI_FTYPE_V64QI_V64QI): Ditto.
10191 (V32HI_FTYPE_V32HI_V32HI): Ditto.
10192 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
10193 (V16SI_FTYPE_V16SI_V4SI): Ditto.
10194 (V16SI_FTYPE_V16SI_V16SI): Ditto.
10195 (V16SI_FTYPE_V32HI_V32HI): Ditto.
10196 (V16SI_FTYPE_V16SI_SI): Ditto.
10197 (V8DI_FTYPE_V8DI_V8DI): Ditto.
10198 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
10199 (V8DI_FTYPE_V16SI_V16SI): Ditto.
10200 (V8DI_FTYPE_V8DI_V2DI): Ditto.
10201 (QI_FTYPE_QI): Ditto.
10202 (SI_FTYPE_SI): Ditto.
10203 (DI_FTYPE_DI): Ditto.
10204 (QI_FTYPE_QI_QI): Ditto.
10205 (QI_FTYPE_QI_INT): Ditto.
10206 (HI_FTYPE_HI_INT): Ditto.
10207 (SI_FTYPE_SI_INT): Ditto.
10208 (DI_FTYPE_DI_INT): Ditto.
10209 (HI_FTYPE_V16QI_V16QI): Ditto.
10210 (SI_FTYPE_V32QI_V32QI): Ditto.
10211 (DI_FTYPE_V64QI_V64QI): Ditto.
10212 (QI_FTYPE_V8HI_V8HI): Ditto.
10213 (HI_FTYPE_V16HI_V16HI): Ditto.
10214 (SI_FTYPE_V32HI_V32HI): Ditto.
10215 (QI_FTYPE_V4SI_V4SI): Ditto.
10216 (QI_FTYPE_V8SI_V8SI): Ditto.
10217 (QI_FTYPE_V2DI_V2DI): Ditto.
10218 (QI_FTYPE_V4DI_V4DI): Ditto.
10219 (QI_FTYPE_V8DI_V8DI): Ditto.
10220 (HI_FTYPE_V16SI_V16SI): Ditto.
10221 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
10222 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
10223 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
10224 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
10225 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
10226 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
10227 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
10228 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
10229 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
10230 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
10231 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
10232 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
10233 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
10234 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
10235 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
10236 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
10237 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
10238 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
10239 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
10240 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
10241 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
10242 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
10243 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
10244 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
10245 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
10246 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
10247 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
10248 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
10249 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
10250 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
10251 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
10252 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
10253 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
10254 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
10255 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
10256 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
10257 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
10258 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
10259 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
10260 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
10261 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
10262 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
10263 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
10264 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
10265 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
10266 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
10267 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
10268 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
10269 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
10270 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
10271 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
10272 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
10273 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
10274 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
10275 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
10276 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
10277 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
10278 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
10279 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
10280 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
10281 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
10282 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
10283 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
10284 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
10285 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
10286 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
10287 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
10288 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
10289 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
10290 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
10291 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
10292 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
10293 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
10294 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
10295 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
10296 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
10297 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
10298 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
10299 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
10300 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
10301 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
10302 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
10303 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
10304 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
10305 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
10306 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
10307 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
10308 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
10309 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
10310 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
10311 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
10312 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
10313 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
10314 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
10315 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
10316 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
10317 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
10318 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
10319 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
10320 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
10321 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
10322 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
10323 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
10324 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
10325 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
10326 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
10327 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
10328 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
10329 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
10330 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
10331 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
10332 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
10333 (HI_FTYPE_HI): Ditto.
10334 (HI_FTYPE_V16QI): Ditto.
10335 (SI_FTYPE_V32QI): Ditto.
10336 (DI_FTYPE_V64QI): Ditto.
10337 (QI_FTYPE_V8HI): Ditto.
10338 (HI_FTYPE_V16HI): Ditto.
10339 (SI_FTYPE_V32HI): Ditto.
10340 (QI_FTYPE_V4SI): Ditto.
10341 (QI_FTYPE_V8SI): Ditto.
10342 (HI_FTYPE_V16SI): Ditto.
10343 (QI_FTYPE_V2DI): Ditto.
10344 (QI_FTYPE_V4DI): Ditto.
10345 (QI_FTYPE_V8DI): Ditto.
10346 (V16QI_FTYPE_HI): Ditto.
10347 (V32QI_FTYPE_SI): Ditto.
10348 (V64QI_FTYPE_DI): Ditto.
10349 (V8HI_FTYPE_QI): Ditto.
10350 (V16HI_FTYPE_HI): Ditto.
10351 (V32HI_FTYPE_SI): Ditto.
10352 (V4SI_FTYPE_QI): Ditto.
10353 (V4SI_FTYPE_HI): Ditto.
10354 (V8SI_FTYPE_QI): Ditto.
10355 (V8SI_FTYPE_HI): Ditto.
10356 (V2DI_FTYPE_QI): Ditto.
10357 (V4DI_FTYPE_QI): Ditto.
10358 (HI_FTYPE_HI_HI): Ditto.
10359 (SI_FTYPE_SI_SI): Ditto.
10360 (DI_FTYPE_DI_DI): Ditto.
10361 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
10362 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
10363 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
10364 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
10365 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
10366 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
10367 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
10368 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
10369 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
10370 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
10371 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
10372 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
10373 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
10374 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
10375 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
10376 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
10377 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
10378 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
10379 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
10380 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
10381 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
10382 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
10383 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
10384 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
10385 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
10386 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
10387 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
10388 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
10389 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
10390 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
10391 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
10392 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
10393 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
10394 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
10395 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
10396 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
10397 (V16SI_FTYPE_HI): Ditto.
10398 (V8DI_FTYPE_QI): Ditto.
10399 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
10400 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
10401 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
10402 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
10403 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
10404 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
10405 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
10406 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
10407 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
10408 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
10409 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
10410 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
10411 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
10412 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
10413 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
10414 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
10415 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
10416 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
10417 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
10418 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
10419 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
10420 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
10421 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
10422 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
10423 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
10424 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
10425 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
10426 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
10427 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
10428 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
10429 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
10430 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
10431 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
10432 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
10433 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
10434 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
10435 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
10436 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
10437 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
10438 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
10439 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
10440 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
10441 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
10442 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
10443 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
10444 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
10445 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
10446 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
10447 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
10448 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
10449 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
10450 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
10451 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
10452 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
10453 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
10454 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
10455 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
10456 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
10457 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
10458 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
10459 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
10460 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
10461 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
10462 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
10463 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
10464 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
10465 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
10466 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
10467 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
10468 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
10469 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
10470 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
10471 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
10472 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
10473 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
10474 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
10475 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
10476 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
10477 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
10478 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
10479 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
10480 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
10481 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
10482 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
10483 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
10484 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
10485 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
10486 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
10487 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
10488 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
10489 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
10490 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
10491 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
10492 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
10493 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
10494 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
10495 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
10496 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
10497 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
10498 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
10499 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
10500 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
10501 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
10502 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
10503 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
10504 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
10505 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
10506 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
10507 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
10508 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
10509 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
10510 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
10511 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
10512 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
10513 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
10514 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
10515 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
10516 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
10517 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
10518 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
10519 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
10520 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
10521 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
10522 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
10523 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
10524 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
10525 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
10526 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
10527 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
10528 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
10529 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
10530 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
10531 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
10532 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
10533 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
10534 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
10535 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
10536 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
10537 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
10538 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
10539 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
10540 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
10541 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
10542 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
10543 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
10544 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
10545 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
10546 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
10547 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
10548 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
10549 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
10550 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
10551 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
10552 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
10553 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
10554 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
10555 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
10556 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
10557 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
10558 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
10559 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
10560 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
10561 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
10562 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
10563 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
10564 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
10565 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
10566 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
10567 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
10568 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
10569 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
10570 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
10571 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
10572 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
10573 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
10574 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
10575 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
10576 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
10577 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
10578 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
10579 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
10580 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
10581 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
10582 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
10583 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
10584 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
10585 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
10586 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
10587 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
10588 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
10589 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
10590 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
10591 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
10592 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
10593 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
10594 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
10595 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
10596 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
10597 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
10598 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
10599 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
10600 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
10601 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
10602 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
10603 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
10604 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
10605 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
10606 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
10607 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
10608 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
10609 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
10610 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
10611 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
10612 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
10613 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
10614 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
10615 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
10616 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
10617 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
10618 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
10619 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
10620 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
10621 (QI_FTYPE_V8DF_INT_QI): Ditto.
10622 (QI_FTYPE_V4DF_INT_QI): Ditto.
10623 (QI_FTYPE_V2DF_INT_QI): Ditto.
10624 (HI_FTYPE_V16SF_INT_HI): Ditto.
10625 (QI_FTYPE_V8SF_INT_QI): Ditto.
10626 (QI_FTYPE_V4SF_INT_QI): Ditto.
10627 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
10628
10629 2015-07-31 Richard Biener <rguenther@suse.de>
10630
10631 * gimple-fold.c (fold_gimple_assign): Remove folding of
10632 GIMPLE_BINARY_RHS.
10633
10634 2015-07-31 Tom de Vries <tom@codesourcery.com>
10635
10636 PR tree-optimization/66846
10637 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
10638 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
10639 (expand_omp_target) [ENABLE_CHECKING]: Same.
10640 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
10641 cfun if !LOOPS_NEED_FIXUP.
10642 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
10643 that omp_for already has its own loop struct.
10644 * tree-parloops.c (create_phi_for_local_result)
10645 (create_call_for_reduction): Handle simple latch bb.
10646 (create_parallel_loop): Add simple latch bb to preserve
10647 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
10648 (gen_parallel_loop): Remove call to cancel_loop_tree.
10649 (parallelize_loops): Skip loops that are inner loops of parallelized
10650 loops.
10651 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
10652 verify_loop_structure.
10653
10654 2015-07-30 Anatoly Sokolov <aesok@post.ru>
10655
10656 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
10657 * config/v850/v850.md (RV_REGNUM): New constants.
10658 * config/v850/v850.c (v850_libcall_value): New functions.
10659 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
10660 (TARGET_LIBCALL_VALUE): Define.
10661
10662 2015-07-30 Anatoly Sokolov <aesok@post.ru>
10663
10664 * rtl.h (lowpart_subreg): Move in file.
10665 * loop-iv.c (lowpart_subreg): Move to...
10666 * simplify-rtx.c (lowpart_subreg): ...here.
10667 (simplify_binary_operation_1): Use lowpart_subreg instead of
10668 simplify_gen_subreg.
10669 * expr.c (expand_expr_real_2): Ditto.
10670 * emit-rtl.c (gen_lowpart_common): Ditto.
10671 * combine.c (gen_lowpart_for_combine): Ditto.
10672 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
10673 expand_debug_source_expr): Ditto.
10674
10675 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
10676
10677 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
10678 (expand_builtin_atomic_clear): Remove support for atomic_clear
10679 pattern.
10680
10681 2015-07-30 Richard Biener <rguenther@suse.de>
10682
10683 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
10684 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
10685 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
10686 redundant operand canonicalization.
10687
10688 2015-07-30 David Sherwood <david.sherwood@arm.com>
10689
10690 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
10691 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
10692 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
10693 * config/arm/arm.c (neon_valid_immediate): Likewise.
10694 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
10695 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
10696 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
10697 (expand_vec_perm_vpshufb2_vpermq): Likewise.
10698 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
10699 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
10700 * config/i386/sse.md
10701 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
10702 (*ssse3_palignr<mode>_perm): Likewise.
10703 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
10704 * config/spu/spu.c (arith_immediate_p): Likewise.
10705 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10706 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
10707
10708 2015-07-30 Richard Biener <rguenther@suse.de>
10709
10710 * genmatch.c (decision_tree::gen_gimple): Merge with ...
10711 (decision_tree::gen_generic): ... this into ...
10712 (decision_tree::gen): ... this.
10713 (main): Adjust callers.
10714
10715 2015-07-30 Richard Biener <rguenther@suse.de>
10716
10717 * genmatch.c (verbose): New global.
10718 (warning_at): Add overload with source_location.
10719 (capture_info::capture_info): Add bool whether generating gimple
10720 or generic. Add gimple member.
10721 (capture_info::cinfo): Add capture member.
10722 (capture_info::walk_match): Record capture. Warn on
10723 non-captured leafs.
10724 (capture_info::walk_c_expr): Add more fragments captures cannot
10725 escape through. Warn on escaped captures.
10726 (dt_simplify::gen_1): Warn on operands we force to have no
10727 side-effects.
10728 (main): Initialize verbose.
10729 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
10730
10731 2015-07-30 Richard Biener <rguenther@suse.de>
10732
10733 PR middle-end/67053
10734 * match.pd: Allow both operands to independently have conversion
10735 when simplifying compares of addresses.
10736
10737 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
10738
10739 PR target/66217
10740 PR target/67045
10741 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
10742 around those cases that need one.
10743
10744 2015-07-29 Aditya Kumar <hiraditya@msn.com>
10745
10746 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
10747
10748 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
10749
10750 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
10751 New. Copied from config/i386/gnu-user.h.
10752 (ASM_COMMENT_START): Likewise.
10753 (DBX_REGISTER_NUMBER): Likewise.
10754
10755 2015-07-29 Richard Biener <rguenther@suse.de>
10756
10757 * gimple-fold.c (fold_gimple_cond): Remove.
10758 (fold_stmt_1): Do not call it.
10759
10760 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
10761
10762 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
10763 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
10764
10765 * config/aarch64/aarch64-modes.def: Add HFmode.
10766
10767 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
10768 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
10769
10770 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
10771 aarch64_promoted_type): New.
10772
10773 (aarch64_float_const_representable_p): Disable HFmode.
10774 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
10775 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
10776 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
10777
10778 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
10779 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
10780
10781 * config/aarch64/iterators.md (GPF_F16): New.
10782
10783 2015-07-29 Richard Biener <rguenther@suse.de>
10784
10785 * match.pd: Merge address comparison patterns and make them
10786 handle some more cases.
10787
10788 2015-07-29 Richard Biener <rguenther@suse.de>
10789
10790 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
10791 (parser::parse_capture): Add bool argument on whether to reject
10792 unknown captures.
10793 (parser::parse_expr): Adjust.
10794 (parser::parse_op): Likewise.
10795 (parser::parse_pattern): Likewise.
10796
10797 2015-07-29 Richard Biener <rguenther@suse.de>
10798
10799 * gimple-fold.c (has_use_on_stmt): New function.
10800 (replace_stmt_with_simplification): Use it to allow
10801 abnormals originally referenced in the stmt.
10802 (fold_stmt_1): Canonicalize operand order.
10803
10804 2015-07-28 David Sherwood <david.sherwood@arm.com>
10805
10806 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
10807 GET_MODE_INNER unconditionally.
10808 * config/spu/spu.c (arith_immediate_p): Likewise.
10809 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
10810 * expmed.c (synth_mult): Remove check for VOIDmode result from
10811 GET_MODE_INNER.
10812 (expand_mult_const): Likewise.
10813 * fold-const.c (fold_binary_loc): Replace call to element_precision
10814 with call to GET_MODE_PRECISION.
10815 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
10816 m->name.
10817 (emit_mode_inner): Likewise.
10818 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
10819 result check.
10820 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
10821 (GET_MODE_UNIT_PRECISION): Likewise.
10822 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
10823 * simplify-rtx.c (simplify_immed_subreg): Likewise.
10824 * stor-layout.c (bitwise_type_for_mode): Update assert.
10825 (element_precision): Remove.
10826
10827 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
10828
10829 * target-insns.def (reload_load_address): New targetm instruction
10830 pattern.
10831 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
10832
10833 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
10834
10835 * target-insns.def (atomic_test_and_set): New targetm instruction
10836 pattern.
10837 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
10838 HAVE_*/gen_* interface.
10839
10840 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
10841
10842 * target-insns.def (can_extend, ptr_extend): New targetm instruction
10843 patterns.
10844 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
10845 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
10846 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
10847 * rtlanal.c (nonzero_bits1): Likewise.
10848 (num_sign_bit_copies1): Likewise.
10849
10850 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
10851
10852 * target-insns.def (eh_return): New targetm instruction pattern.
10853 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
10854 interface.
10855 * function.c (thread_prologue_and_epilogue_insns): Remove
10856 preprocessor condition.
10857
10858 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
10859
10860 * target-insns.def (indirect_jump): New targetm instruction pattern.
10861 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
10862 interface.
10863
10864 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
10865
10866 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
10867 instead of nonimmediate_operand. Remove C condiition.
10868
10869 2015-07-28 Richard Biener <rguenther@suse.de>
10870
10871 * match.pd: Add more simplification of address comparisons.
10872
10873 2015-07-28 Richard Biener <rguenther@suse.de>
10874
10875 * match.pd: Re-order two cases in comparison with max/min
10876 value simplification to make it apply for bools.
10877
10878 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10879
10880 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
10881 Handle simple SIGN_EXTEND or ZERO_EXTEND.
10882 (aarch64_rtx_costs): Properly strip extend or extract before
10883 passing down to rtx costs again.
10884
10885 2015-07-28 Nick Clifton <nickc@redhat.com>
10886
10887 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
10888 Optimizes the case where -mes0 is active and a constant symbolic
10889 address is used.
10890 * config/rl78/rl78-protos.h: Prototype the new function.
10891 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
10892
10893 2015-07-28 Tom de Vries <tom@codesourcery.com>
10894
10895 * tree-parloops.c (reduc_stmt_res): New function.
10896 (initialize_reductions, add_field_for_reduction)
10897 (create_phi_for_local_result, create_loads_for_reductions)
10898 (create_stores_for_reduction, build_new_reduction): Handle case that
10899 reduc_stmt is a phi.
10900 (gather_scalar_reductions): Allow double_reduc reductions.
10901
10902 2015-07-28 Richard Biener <rguenther@suse.de>
10903
10904 * fold-const.c (fold_comparison): Remove equality folding
10905 of decl addresses ...
10906 * match.pd: ... here and merge with existing pattern.
10907
10908 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
10909
10910 PR tree-optimization/66828
10911 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
10912 from int64_t to uint64_t.
10913
10914 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
10915
10916 * opts-common.c (read_cmdline_option): List DriverOnly enum values
10917 as valid only in the error message of the driver, not in the
10918 messages of the language compilers.
10919
10920 2015-07-27 Tom de Vries <tom@codesourcery.com>
10921
10922 * tree-parloops.c (gather_scalar_reductions): Simplify function
10923 structure.
10924
10925 2015-07-27 Marek Polacek <polacek@redhat.com>
10926
10927 * ipa-devirt.c (types_same_for_odr): Fix typo.
10928
10929 2015-07-27 Jason Merrill <jason@redhat.com>
10930
10931 PR debug/66468
10932 * dwarf2out.c (gen_inlined_subroutine_die): Check
10933 cgraph_function_possibly_inlined_p.
10934
10935 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
10936
10937 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
10938 Place integer variant first.
10939 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
10940
10941 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
10942
10943 PR/63870
10944 * config/arm/arm-builtins.c (enum arm_builtins):
10945 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
10946 (ARM_BUILTIN_NEON_BASE): Rename macro to....
10947 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
10948 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
10949 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
10950
10951 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
10952
10953 PR/63870
10954 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
10955 Add qualifier_lane_index.
10956 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
10957 (arm_getlane_qualifiers): Use qualifier_lane_index.
10958 (arm_lanemac_qualifiers): Rename to...
10959 (arm_mac_n_qualifiers): ...this.
10960 (LANEMAC_QUALIFIERS): Rename to...
10961 (MAC_N_QUALIFIERS): ...this.
10962 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
10963 (arm_setlane_qualifiers): Use qualifier_lane_index.
10964 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
10965 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
10966 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
10967 (arm_expand_neon_builtin): Handle qualifier_lane_index.
10968
10969 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
10970 * config/arm/arm.c (bounds_check): Likewise, improve error message.
10971 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
10972 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
10973 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
10974 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
10975 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
10976 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
10977 qualifiers to TERNOP_IMM.
10978 (vdup_lane): Change qualifiers to GETLANE.
10979 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
10980 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
10981 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
10982 vqdmlsl_n): Change qualifiers to MAC_N.
10983
10984 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
10985 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
10986 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
10987 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
10988 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
10989 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
10990 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
10991 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
10992 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
10993 Remove call to neon_lane_bounds.
10994
10995 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
10996
10997 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
10998 Place integer variant first.
10999
11000 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
11001
11002 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
11003 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
11004 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
11005 for armv6kz targets.
11006 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
11007 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
11008 (FL_FOR_ARCH6ZK): Remove.
11009 (FL_FOR_ARCH6KZ): New.
11010 (arm_arch6zk): New declaration.
11011 * config/arm/arm-tables.opt: Regenerate.
11012 * config/arm/arm.c (arm_arch6kz): New.
11013 (arm_option_override): Set arm_arch6kz.
11014 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
11015 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
11016 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
11017
11018 2015-07-27 Marek Polacek <polacek@redhat.com>
11019
11020 PR c++/66555
11021 PR c/54979
11022 * doc/invoke.texi: Document -Wtautological-compare.
11023
11024 2015-07-27 Richard Biener <rguenther@suse.de>
11025
11026 * genmatch.c (decision_tree::gen_gimple): Split out large
11027 subtrees into separate functions.
11028 (decision_tree::gen_generic): Likewise.
11029
11030 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
11031
11032 * config/alpha/alpha.c: Use SUBREG_P predicate.
11033 * config/alpha/predicates.md: Ditto.
11034
11035 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
11036
11037 * config.host (s390*-*-*): Include driver-native.c only when
11038 building with s390* as host *and* target.
11039
11040 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
11041
11042 PR target/66930
11043 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
11044 T bit register modified_between_p check.
11045
11046 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
11047
11048 * config/i386/i386.c: Use SUBREG_P predicate.
11049 * config/i386/i386.md: Ditto.
11050 * config/i386/sse.md: Ditto.
11051 * config/i386/predicates.md: Ditto.
11052
11053 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
11054
11055 PR target/67004
11056 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
11057 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
11058
11059 2015-07-25 Sebastian Pop <s.pop@samsung.com>
11060
11061 * Makefile.in: Remove use of TREEBROWSER.
11062 * config.in: Regenerated.
11063 * configure: Regenerated.
11064 * configure.ac: Remove definition of TREEBROWSER.
11065 * tree-browser.c: Removed.
11066 * tree-browser.def: Removed.
11067
11068 2015-07-25 Sebastian Pop <s.pop@samsung.com>
11069
11070 * graphite-scop-detection.c: Include gimple-pretty-print.h.
11071 (stmt_simple_for_scop_p): Print when a stmt is not handled in
11072 Graphite.
11073 (scopdet_basic_block_info): Print when a loop or bb cannot be
11074 represented in Graphite.
11075
11076 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
11077
11078 PR target/66648
11079 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
11080 execution guard when min_size is less than size_needed.
11081
11082 2015-07-25 Sebastian Pop <s.pop@samsung.com>
11083
11084 * doc/install.texi: Document supported versions of ISL.
11085
11086 2015-07-25 Jeff Law <law@redhat.com>
11087
11088 Revert:
11089 PR lto/66752
11090 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
11091 unable to find X NE 0 in the tables, return X as the simplified
11092 condition.
11093 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
11094 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
11095 to VISISTED_BBS. */
11096 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
11097 after removing the control flow statement and unnecessary edges.
11098
11099 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
11100
11101 Revert:
11102 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
11103
11104 PR rtl-optimization/64164
11105 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
11106 * tree-ssa-copyrename.c: Removed.
11107 * opts.c (default_options_table): Drop -ftree-copyrename. Add
11108 -ftree-coalesce-vars.
11109 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
11110 * common.opt (ftree-copyrename): Ignore.
11111 (ftree-coalesce-inlined-vars): Likewise.
11112 * doc/invoke.texi: Remove the ignored options above.
11113 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
11114 * tree-ssa-coalesce.h: ... here.
11115 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
11116 headers required by it.
11117 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
11118 across variables when flag_tree_coalesce_vars. Check register
11119 use and promoted modes to allow coalescing. Moved to
11120 tree-ssa-coalesce.c.
11121 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
11122 with its member functions to tree-ssa-coalesce.c.
11123 (var_map_base_init): Likewise. Renamed to
11124 compute_samebase_partition_bases.
11125 (partition_view_normal): Drop want_bases parameter.
11126 (partition_view_bitmap): Likewise.
11127 * tree-ssa-live.h: Adjust declarations.
11128 * tree-ssa-coalesce.c: Include explow.h.
11129 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
11130 default defs at the entry point.
11131 (dump_part_var_map): New.
11132 (compute_optimized_partition_bases): New, called by...
11133 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
11134 of compute_samebase_partition_bases. Adjust.
11135 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
11136 * cfgexpand.c (leader_merge): New.
11137 (get_rtl_for_parm_ssa_default_def): New.
11138 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
11139 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
11140 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
11141 redundant MEM attr setting.
11142 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
11143 from...
11144 (expand_one_stack_var): ... this. New wrapper to check and
11145 skip already expanded SSA partitions.
11146 (record_alignment_for_reg_var): New, factored out of...
11147 (expand_one_var): ... this.
11148 (expand_one_ssa_partition): New.
11149 (adjust_one_expanded_partition_var): New.
11150 (expand_one_register_var): Check and skip already expanded SSA
11151 partitions.
11152 (expand_used_vars): Don't create DECLs for anonymous SSA
11153 names. Expand all SSA partitions, then adjust all SSA names.
11154 (pass::execute): Replace the loops that set
11155 SA.partition_to_pseudo from partition leaders and cleared
11156 DECL_RTL for multi-location variables, and that which used to
11157 rename vars and set attrs, with one that clears DECL_RTL and
11158 checks that PARMs and RESULTs default_defs match DECL_RTL.
11159 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11160 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
11161 * explow.c (promote_ssa_mode): New.
11162 * explow.h (promote_ssa_mode): Declare.
11163 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11164 * function.c: Include cfgexpand.h.
11165 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11166 (use_register_for_parm_decl): Wrapper for the above to
11167 special-case the result_ptr.
11168 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11169 (split_complex_args): Take assign_parm_data_all argument.
11170 Pass it to rtl_for_parm. Set up rtl and context for split
11171 args.
11172 (assign_parms_augmented_arg_list): Adjust.
11173 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11174 multiple locations. Recognize split complex args.
11175 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11176 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
11177 (assign_parm_setup_block): Prefer SSA-assigned location.
11178 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
11179 if stack_parm is NULL.
11180 (assign_parm_setup_stack): Prefer SSA-assigned location.
11181 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
11182 rtl before testing for pointer bounds. Special-case result_ptr.
11183 (expand_function_start): Maybe reset DECL_RTL of result.
11184 Prefer SSA-assigned location for result and static chain.
11185 Factor out DECL_RESULT and SET_DECL_RTL.
11186 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
11187 anonymous SSA names. Use promote_ssa_mode.
11188 (get_temp_reg): Likewise.
11189 (remove_ssa_form): Adjust.
11190 * stor-layout.c (layout_decl): Don't set mem attributes of
11191 non-MEMs.
11192 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
11193 and get its reg_usage for reg invalidation.
11194 (compute_bb_dataflow): Pass it insn.
11195 (emit_notes_in_bb): Likewise.
11196
11197 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
11198
11199 * config/i386/i386.c (ix86_va_start): Remove
11200 unneeded !TARGET_64BIT check.
11201 (ix86_gimplify_va_arg): Ditto.
11202
11203 2015-07-24 Tom de Vries <tom@codesourcery.com>
11204
11205 * graphite-sese-to-poly.c (build_poly_scop): Always call
11206 rewrite_commutative_reductions_out_of_ssa.
11207
11208 2015-07-24 Tom de Vries <tom@codesourcery.com>
11209
11210 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
11211 flag_associative_math to FLOAT_TYPE_P. Honour
11212 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
11213
11214 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
11215
11216 PR c++/64079
11217 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
11218 and "%qD" in warning_at instead of "%q+D" in warning.
11219
11220 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
11221
11222 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
11223 (ix86_function_abi): Cleanup.
11224
11225 2015-07-24 Michael Darling <darlingm@gmail.com>
11226
11227 PR other/66259
11228 * acinclude.m4: Reflects renaming of configure.in to configure.ac
11229 * configure: Likewise
11230 * configure.ac: Likewise
11231 * doc/install.texi: Likewise
11232 * doc/tm.texi: Likewise
11233 * doc/tm.texi.in: Likewise
11234
11235 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11236
11237 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
11238 manually swapping values.
11239 * cse.c (fold_rtx): Likewise.
11240 * lra-eliminations.c (form_sum): Likewise.
11241
11242 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
11243
11244 PR target/64003
11245 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
11246 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
11247 (*jcc_1, *jcc_2, jump, simple_return_internal)
11248 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
11249 Set length_nobnd attribute instead of length attribute.
11250 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
11251 (length_nobnd): Remove attribute.
11252 (length): Remove length_nobnd processing.
11253
11254 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
11255
11256 * gimplify.c (omp_default_clause): New function. Reorganize flow
11257 for clarity. Broken out of ...
11258 (omp_notice_variable): ... here.
11259
11260 2015-07-24 Gary Funck <gary@intrepid.com>
11261
11262 PR middle-end/66984
11263 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
11264 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
11265
11266 2015-07-24 Tom de Vries <tom@codesourcery.com>
11267
11268 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
11269 exit-first loop transform.
11270
11271 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
11272
11273 PR 66714
11274 * tree-cfg.c (struct replace_decls_d): New struct.
11275 (replace_block_vars_by_duplicates_1): New function.
11276 (replace_block_vars_by_duplicates): Use it to replace the decls
11277 in the value exprs by duplicates.
11278
11279 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
11280
11281 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
11282 -shared, -symbolic, -rdynamic.
11283
11284 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
11285
11286 PR target/65711
11287 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
11288 -dynamic-linker within %{!static %{!shared, and -rdynamic within
11289 %{!static.
11290
11291 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
11292
11293 PR ipa/66566
11294 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
11295 edge summary is available.
11296
11297 2015-07-24 Richard Biener <rguenther@suse.de>
11298
11299 * genmatch.c (struct dt_node): Add statistic fields.
11300 (dt_node::analyze): New method.
11301 (decision_tree::gen_gimple): Call analyze on the root node
11302 and print statistics to stderr.
11303 (decision_tree::gen_generic): Likewise.
11304
11305 2015-07-24 Richard Biener <rguenther@suse.de>
11306
11307 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
11308 against the highest or lowest possible integer ...
11309 * match.pd: ... as patterns here.
11310
11311 2015-07-24 Richard Biener <rguenther@suse.de>
11312
11313 * genmatch.c (struct capture_info): Add same_as field.
11314 (capture_info::capture_info): Initialize same_as.
11315 (capture_info::walk_match): Compute same_as.
11316 (capture_info::walk_result): Compute stuff for the leader.
11317 (capture_info::walk_c_expr): Likewise.
11318 (dt_simplify::gen_1): Only look at leaders when deciding
11319 to force no side-effects or emit side-effects of omitted operands.
11320
11321 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11322
11323 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
11324 reg note to the GPR -> FPR save instructions.
11325
11326 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11327
11328 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
11329 cheaper.
11330 (s390_expand_insv): Don't generate risbg pattern for constant zero
11331 sources.
11332 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
11333 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
11334 splitters.
11335
11336 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
11337
11338 * config/s390/s390.c (s390_reorg): Clean up handling of processors
11339 with
11340 -mtune=
11341 (s390_issue_rate): Likewise.
11342 (s390_sched_reorder): Likewise.
11343 (s390_sched_variable_issue): Likewise.
11344 (s390_loop_unroll_adjust): Likewise.
11345 (s390_option_override): Likewise.
11346
11347 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
11348
11349 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
11350 processor capabilities with -march=native.
11351 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
11352 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
11353 (S390_TARGET_BITS_STRING): Macro to simplify specs.
11354
11355 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
11356
11357 * config/s390/s390.c (s390_issue_rate): Handle
11358 PROCESSOR_2094_Z9_EC.
11359 (s390_option_override): Likewise.
11360 (s390_adjust_priority): Likewise.
11361
11362 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
11363
11364 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
11365 when cross compiling.
11366
11367 2015-07-24 Richard Biener <rguenther@suse.de>
11368
11369 * fold-const.c (maybe_canonicalize_comparison_1): Move
11370 A code CST canonicalization ...
11371 * match.pd: ... to a pattern here.
11372
11373 2015-07-24 Jiong Wang <jiong.wang@arm.com>
11374
11375 Revert:
11376 2015-07-22 Jiong Wang <jiong.wang@arm.com>
11377 PR target/63521
11378 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
11379 (HONOR_REG_ALLOC_ORDER): Define.
11380
11381 2015-07-24 Richard Biener <rguenther@suse.de>
11382
11383 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
11384 * fold-const.c (fold_comparison): Move parameter does not
11385 alias &local simplification ...
11386 * match.pd: ... as a pattern here.
11387
11388 2015-07-24 Richard Biener <rguenther@suse.de>
11389
11390 * gimple-fold.c (replace_stmt_with_simplification): Special-case
11391 valueizing call operands.
11392 * gimple-match-head.c (maybe_push_res_to_seq): Take
11393 number of call arguments from ops array.
11394 (do_valueize): New function.
11395 (gimple_simplify): Return true if valueization changed
11396 any operand even if the result didn't simplify further.
11397
11398 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11399
11400 PR middle-end/25530
11401 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
11402
11403 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11404
11405 PR middle-end/25529
11406 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
11407
11408 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
11409
11410 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
11411 instruction.
11412
11413 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
11414
11415 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
11416 clean up.
11417
11418 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
11419
11420 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
11421 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
11422 targets here.
11423 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
11424 ms_va_list_type_node initialization.
11425
11426 2015-07-23 Jeff Law <law@redhat.com>
11427
11428 PR lto/66752
11429 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
11430 unable to find X NE 0 in the tables, return X as the simplified
11431 condition.
11432 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
11433 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
11434 to VISISTED_BBS. */
11435 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
11436 after removing the control flow statement and unnecessary edges.
11437
11438 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
11439
11440 * tree-pass.h (get_current_pass_name): Removed.
11441
11442 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
11443
11444 PR rtl-optimization/64164
11445 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
11446 * tree-ssa-copyrename.c: Removed.
11447 * opts.c (default_options_table): Drop -ftree-copyrename. Add
11448 -ftree-coalesce-vars.
11449 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
11450 * common.opt (ftree-copyrename): Ignore.
11451 (ftree-coalesce-inlined-vars): Likewise.
11452 * doc/invoke.texi: Remove the ignored options above.
11453 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
11454 * tree-ssa-coalesce.h: ... here.
11455 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
11456 headers required by it.
11457 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
11458 across variables when flag_tree_coalesce_vars. Check register
11459 use and promoted modes to allow coalescing. Moved to
11460 tree-ssa-coalesce.c.
11461 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
11462 with its member functions to tree-ssa-coalesce.c.
11463 (var_map_base_init): Likewise. Renamed to
11464 compute_samebase_partition_bases.
11465 (partition_view_normal): Drop want_bases parameter.
11466 (partition_view_bitmap): Likewise.
11467 * tree-ssa-live.h: Adjust declarations.
11468 * tree-ssa-coalesce.c: Include explow.h.
11469 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
11470 default defs at the entry point.
11471 (dump_part_var_map): New.
11472 (compute_optimized_partition_bases): New, called by...
11473 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
11474 of compute_samebase_partition_bases. Adjust.
11475 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
11476 * cfgexpand.c (leader_merge): New.
11477 (get_rtl_for_parm_ssa_default_def): New.
11478 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
11479 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
11480 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
11481 redundant MEM attr setting.
11482 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
11483 from...
11484 (expand_one_stack_var): ... this. New wrapper to check and
11485 skip already expanded SSA partitions.
11486 (record_alignment_for_reg_var): New, factored out of...
11487 (expand_one_var): ... this.
11488 (expand_one_ssa_partition): New.
11489 (adjust_one_expanded_partition_var): New.
11490 (expand_one_register_var): Check and skip already expanded SSA
11491 partitions.
11492 (expand_used_vars): Don't create DECLs for anonymous SSA
11493 names. Expand all SSA partitions, then adjust all SSA names.
11494 (pass::execute): Replace the loops that set
11495 SA.partition_to_pseudo from partition leaders and cleared
11496 DECL_RTL for multi-location variables, and that which used to
11497 rename vars and set attrs, with one that clears DECL_RTL and
11498 checks that PARMs and RESULTs default_defs match DECL_RTL.
11499 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11500 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
11501 * explow.c (promote_ssa_mode): New.
11502 * explow.h (promote_ssa_mode): Declare.
11503 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11504 * function.c: Include cfgexpand.h.
11505 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11506 (use_register_for_parm_decl): Wrapper for the above to
11507 special-case the result_ptr.
11508 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11509 (split_complex_args): Take assign_parm_data_all argument.
11510 Pass it to rtl_for_parm. Set up rtl and context for split
11511 args.
11512 (assign_parms_augmented_arg_list): Adjust.
11513 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11514 multiple locations. Recognize split complex args.
11515 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11516 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
11517 (assign_parm_setup_block): Prefer SSA-assigned location.
11518 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
11519 if stack_parm is NULL.
11520 (assign_parm_setup_stack): Prefer SSA-assigned location.
11521 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
11522 rtl before testing for pointer bounds. Special-case result_ptr.
11523 (expand_function_start): Maybe reset DECL_RTL of result.
11524 Prefer SSA-assigned location for result and static chain.
11525 Factor out DECL_RESULT and SET_DECL_RTL.
11526 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
11527 anonymous SSA names. Use promote_ssa_mode.
11528 (get_temp_reg): Likewise.
11529 (remove_ssa_form): Adjust.
11530 * stor-layout.c (layout_decl): Don't set mem attributes of
11531 non-MEMs.
11532 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
11533 and get its reg_usage for reg invalidation.
11534 (compute_bb_dataflow): Pass it insn.
11535 (emit_notes_in_bb): Likewise.
11536
11537 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
11538
11539 PR target/66217
11540 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
11541 prototype.
11542 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
11543 (rs6000_emit_2insn_and): Handle dot forms.
11544 * config/rs6000/rs6000.md (and<mode>3): Adjust.
11545 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
11546 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
11547
11548 2015-07-23 Richard Biener <rguenther@suse.de>
11549
11550 * generic-match-head.c: Include cgraph.h.
11551 * gimple-match-head.c: Likewise.
11552 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
11553 SSA names.
11554 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
11555 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
11556 pattern.
11557
11558 2015-07-23 Richard Biener <rguenther@suse.de>
11559
11560 * gimple-fold.c (fold_gimple_cond): Do not require folding
11561 results to pass valid_gimple_rhs_p.
11562 * tree-cfg.h (fold_cond_expr_cond): Remove.
11563 * tree-cfg.c (fold_cond_expr_cond): Likewise.
11564 (make_edges): Do not call it.
11565 * tree-inline.c (tree_function_versioning): Likewise.
11566
11567 2015-07-23 Tom de Vries <tom@codesourcery.com>
11568
11569 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
11570 vect_force_simple_reduction.
11571 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
11572 (vect_is_simple_reduction_1): Add and handle
11573 need_wrapping_integral_overflow parameter.
11574 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
11575 need_wrapping_integral_overflow parameter.
11576 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
11577 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
11578 decl.
11579
11580 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
11581
11582 PR tree-optimization/66926,66951
11583 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
11584 INNER_LOOP and fix up condition for renaming virtual operands.
11585
11586 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11587
11588 * combine.c (try_combine): Use std::swap instead of manually
11589 swapping.
11590
11591 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
11592
11593 * config/mips/i6400.md: New file.
11594 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
11595 (mips64r6): Likewise.
11596 (i6400): Define.
11597 * config/mips/mips-tables.opt: Regenerate.
11598 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
11599 (mips_issue_rate): Add support for i6400.
11600 (mips_multipass_dfa_lookahead): Likewise.
11601 * config/mips/mips.h (TUNE_I6400): Define.
11602 * config/mips/mips.md: Include i6400.md.
11603 (processor): Add i6400.
11604 * doc/invoke.texi (-march=@var{arch}): Add i6400.
11605
11606 2015-07-23 Richard Biener <rguenther@suse.de>
11607
11608 PR middle-end/66916
11609 * match.pd: Guard widen and sign-change comparison simplification
11610 with single_use.
11611
11612 2015-07-23 Richard Biener <rguenther@suse.de>
11613
11614 PR tree-optimization/66945
11615 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
11616 ::before_dom_children): Force the propagators idea of
11617 non-executable edges to materialize, not what the folder
11618 chooses.
11619
11620 2015-07-23 Richard Biener <rguenther@suse.de>
11621
11622 * gimple.h (gimple_cond_make_false): Use 0 != 0.
11623 (gimple_cond_make_true): Use 1 != 0.
11624
11625 2015-07-22 DJ Delorie <dj@redhat.com>
11626
11627 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
11628 slashes.
11629
11630 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
11631 (ashrhi3): Likewise.
11632 (lshrhi3): Likewise.
11633 (movhi): Take advantage of zero-extend to load small constants.
11634 (movpsi): Likewise.
11635 (and<mode>3): Likewise.
11636 (zero_extendqihi2): Likewise.
11637 (zero_extendqisi2): New.
11638 * config/msp430/constraints.md (N,O): New.
11639 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
11640
11641 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
11642
11643 PR target/66954
11644 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
11645 to enum feature_priority and feature_list.
11646 (fold_builtin_cpu): Add F_AES to enum processor_features
11647 and isa_names_table.
11648
11649 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
11650
11651 PR driver/66737
11652 * config/i386/linux-common.h (MPX_SPEC): Use linker option
11653 for 64bit target only.
11654
11655 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
11656
11657 * config/nvptx/nvptx.c: Expand some comments.
11658
11659 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
11660
11661 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
11662 (cortex_a53_advsimd): ...This.
11663
11664 2015-07-22 Richard Biener <rguenther@suse.de>
11665
11666 * genmatch.c (expr::gen_transform): Clarify error message
11667 and display location.
11668
11669 2015-07-22 Richard Biener <rguenther@suse.de>
11670
11671 * genmatch.c (struct operand): Add location member.
11672 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
11673 constructors.
11674 (struct simplify): Remove match_location and result_location
11675 members.
11676 (elsehwere): Adjust.
11677
11678 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
11679
11680 * config/mips/m5100.md: New file.
11681 * config/mips/mips-cpus.def (m5100, m5101): Define.
11682 * config/mips/mips-tables.opt: Regenerate.
11683 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
11684 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
11685 -march=m5101 to -mips32r5.
11686 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
11687 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
11688 !-msoft-float.
11689 * config/mips/mips.md: Include m5100.md.
11690 (processor): Add m5100.
11691 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
11692
11693 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
11694
11695 * config/mips/mips-cpus.def (interaptiv): Define.
11696 * config/mips/mips-tables.opt: Regenerate.
11697 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
11698 -mips32r2.
11699 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
11700 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
11701
11702 2015-07-22 Jiong Wang <jiong.wang@arm.com>
11703
11704 PR target/63521
11705 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
11706 (HONOR_REG_ALLOC_ORDER): Define.
11707
11708 2015-07-22 Richard Biener <rguenther@suse.de>
11709
11710 PR tree-optimization/66952
11711 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
11712 blocks we end up executing unconditionally reset all SSA
11713 info such as range and alignment.
11714 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
11715 * tree-ssanames.c (reset_flow_sensitive_info): New function.
11716
11717 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
11718
11719 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
11720 typo in attribute.
11721
11722 2015-07-22 Richard Biener <rguenther@suse.de>
11723
11724 * genmatch.c (parser::parse_result): Properly handle
11725 match with result operands and conditions.
11726
11727 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
11728
11729 PR target/63870
11730 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
11731 Add qualifier_struct_load_store_lane_index.
11732 (aarch64_types_loadstruct_lane_qualifiers): Use
11733 qualifier_struct_load_store_lane_index for lane index argument for
11734 last argument.
11735 (aarch64_types_storestruct_lane_qualifiers): Ditto.
11736 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
11737 (aarch64_simd_expand_args): Add new argument describing mode of
11738 builtin. Check lane bounds for arguments with
11739 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
11740 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
11741 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
11742 (aarch64_simd_expand_builtin): Handle arguments with
11743 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
11744 aarch64_simd_expand_args.
11745 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
11746 vst[234]_lane with BUILTIN_VALLDIF.
11747 * config/aarch64/aarch64-simd.md:
11748 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
11749 endianness reversal on lane index.
11750 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
11751 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
11752 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
11753 (vec_store_lanesci_lane<mode>): Ditto.
11754 (vec_store_lanesxi_lane<mode>): Ditto.
11755 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
11756 reversal of lane index.
11757 (aarch64_ld3_lane<mode>): Ditto.
11758 (aarch64_ld4_lane<mode>): Ditto.
11759 (aarch64_st2_lane<mode>): Ditto.
11760 (aarch64_st3_lane<mode>): Ditto.
11761 (aarch64_st4_lane<mode>): Ditto.
11762 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
11763 to qmode. Add new mode parameter. Update uses.
11764 (__LD3_LANE_FUNC): Ditto.
11765 (__LD4_LANE_FUNC): Ditto.
11766 (__ST2_LANE_FUNC): Ditto.
11767 (__ST3_LANE_FUNC): Ditto.
11768 (__ST4_LANE_FUNC): Ditto.
11769
11770 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
11771
11772 * doc/invoke.texi (Language Independent Options): Rename node to
11773 Diagnostic Message Formatting Options.
11774
11775 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
11776
11777 PR ipa/66424.
11778 * lra-remat.c (operand_to_remat): Prevent using insns with input
11779 subregs processed separately by IRA.
11780
11781 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
11782
11783 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
11784 straight loops.
11785 (single_imm_use): Check for iterator node.
11786 (num_imm_uses): Likewise.
11787 * tree-ssa-operands.c (has_zero_uses_1): Delete.
11788 (single_imm_use_1): Check for iterator node.
11789
11790 2015-07-21 Mike Frysinger <vapier@gentoo.org>
11791 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11792
11793 * configure.ac: Add check for new options in isl-0.15.
11794 * config.in, configure: Rebuilt.
11795 * graphite-blocking.c: Include <isl/constraint.h>
11796 * graphite-interchange.c, graphite-poly.c: Likewise.
11797 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
11798 * graphite.c: Likewise.
11799 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
11800 <isl/union_set.h>.
11801 * graphite-dependences.c: Include <isl/constraint.h>.
11802 (max_number_of_out_dimensions): Returns isl_stat.
11803 (extend_schedule_1): Likewise
11804 (extend_schedule): Corresponding changes.
11805 * graphite-optimize-isl.c: Include <isl/constraint.h> and
11806 <isl/union_set.h>.
11807 (getSingleMap): Change return type of isl_stat.
11808 (optimize_isl): Conditionally use
11809 isl_options_set_schedule_serialize_sccs.
11810 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
11811 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
11812
11813 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
11814
11815 PR target/66956
11816 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
11817 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
11818
11819 2015-07-21 Richard Biener <rguenther@suse.de>
11820
11821 PR tree-optimization/66948
11822 * genmatch.c (capture_info::walk_match): Also recurse to
11823 captures. Properly compute expr state from captures of
11824 captures.
11825 * match.pd: Add single-use guards to
11826 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
11827
11828 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
11829
11830 * config/nvptx/mkoffload.c (process): Add static destructor call.
11831
11832 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11833
11834 PR middle-end/66915
11835 * match.pd (A - B -> A + (-B)): Don't allow folding
11836 when type if a fixed-point type.
11837
11838 2015-07-20 DJ Delorie <dj@redhat.com>
11839
11840 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
11841 (iorqi3_real): Likewise for set1.
11842
11843 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
11844
11845 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
11846 for !TARGET_64BIT.
11847
11848 2015-07-20 Aditya Kumar <hiraditya@msn.com>
11849
11850 * graphite-isl-ast-to-gimple.c:
11851 Refactor so that each function can access 'region'. This will help
11852 maintain a parameter rename_map within a region.
11853
11854 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
11855
11856 * config/rs6000/rs6000.md (*lt0_disi): New.
11857
11858 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
11859
11860 PR target/66217
11861 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
11862 "available letters" comment.
11863 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
11864 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
11865 and_2rld_operand): Delete.
11866 (and_operand): Adjust.
11867 (rotate_mask_operator): New.
11868 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
11869 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
11870 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
11871 extract_ME): Delete.
11872 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
11873 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
11874 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
11875 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
11876 rs6000_emit_2insn_and): New.
11877 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
11878 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
11879 includes_rldic_lshift_p, includes_rldicr_lshift_p,
11880 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
11881 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
11882 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
11883 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
11884 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
11885 rs6000_emit_2insn_and): New.
11886 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
11887 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
11888 handling.
11889 <NOT>: Don't fall through to next case.
11890 <AND>: Handle the various rotate-and-mask cases directly.
11891 <IOR>: Always cost as one insn.
11892 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
11893 (and<mode>3): Adjust expander for the new patterns.
11894 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
11895 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
11896 (*and<mode>3_imm_dot_shifted): New.
11897 (*and<mode>3_mask): Delete, rewrite as ...
11898 (and<mode>3_mask): ... New.
11899 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
11900 (andsi3_internal0_nomc): Delete.
11901 (*andsi3_internal6): Delete.
11902 (*and<mode>3_2insn): New.
11903 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
11904 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
11905 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
11906 *insvdi_internal3): Delete.
11907 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
11908 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
11909 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
11910 *ior<mode>_mask): New.
11911 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
11912 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
11913 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
11914 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
11915 Delete.
11916 (ashr<mode>3): Delete expander.
11917 (*ashr<mode>3): Rename to ...
11918 (ashr<mode>3): ... This.
11919 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
11920 (*rotldi3_internal4, *rotldi3_internal5 and split,
11921 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
11922 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
11923 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
11924 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
11925 (splitter for loading a mask): Adjust.
11926 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
11927
11928 2015-07-20 Marek Polacek <polacek@redhat.com>
11929
11930 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
11931 output_add_clobbers, output_added_clobbers_hard_reg_p,
11932 gen_rtx_scratch): Remove declarations.
11933
11934 2015-07-20 Marek Polacek <polacek@redhat.com>
11935
11936 PR c++/55095
11937 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
11938
11939 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11940
11941 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
11942 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
11943
11944 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11945
11946 * combine.c (combine_simplify_rtx): Move simplification step
11947 before various transformations/substitutions.
11948
11949 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
11950
11951 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
11952 (struct int_traits): Likewise.
11953
11954 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11955
11956 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
11957 function to vmsdbgout_function_decl.
11958
11959 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
11960
11961 PR target/66922
11962 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
11963 from misaligned positions.
11964 (ix86_expand_pinsr): Reject insertions to misaligned positions.
11965
11966 2015-07-18 Sebastian Pop <s.pop@samsung.com>
11967
11968 PR middle-end/46851
11969 PR middle-end/60340
11970 * Makefile.in: Removed omega.o.
11971 * common.opt: Document flag fcheck-data-deps as deprecated.
11972 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
11973 its associated params: omega-max-vars, omega-max-geqs,
11974 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
11975 omega-max-keys, omega-eliminate-redundant-constraints.
11976 * doc/loop.texi: Remove all the section on Omega.
11977 * graphite-blocking.c: Include missing params.h: it used to be
11978 included through tree-data-ref.h and omega.h.
11979 * graphite-isl-ast-to-gimple.c: Same.
11980 * graphite-optimize-isl.c: Same.
11981 * graphite-sese-to-poly.c: Same.
11982 * graphite.c: Same.
11983 * omega.c: Remove.
11984 * omega.h: Remove.
11985 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
11986 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
11987 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
11988 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
11989 * passes.def: Remove pass_check_data_deps.
11990 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
11991 (dump_conflict_function): Same.
11992 (dump_subscript): Same.
11993 (print_direction_vector): Same.
11994 (print_dir_vectors): Same.
11995 (print_lambda_vector): Same.
11996 (print_dist_vectors): Same.
11997 (dump_data_dependence_relation): Same.
11998 (dump_data_dependence_relations): Same.
11999 (dump_dist_dir_vectors): Same.
12000 (dump_ddrs): Same.
12001 (init_omega_eq_with_af): Removed.
12002 (omega_extract_distance_vectors): Removed.
12003 (omega_setup_subscript): Removed.
12004 (init_omega_for_ddr_1): Removed.
12005 (init_omega_for_ddr): Removed.
12006 (ddr_consistent_p): Removed.
12007 (compute_affine_dependence): Do not use omega to check data
12008 dependences.
12009 (compute_data_dependences_for_bb): Removed.
12010 (analyze_all_data_dependences): Removed.
12011 (tree_check_data_deps): Removed.
12012 * tree-data-ref.h: Do not include omega.h.
12013 (compute_data_dependences_for_bb): Removed.
12014 (tree_check_data_deps): Removed.
12015 * tree-ssa-loop.c (pass_check_data_deps): Removed.
12016 (make_pass_check_data_deps): Removed.
12017 * tree-ssa-phiopt.c: Include params.h.
12018 * tree-vect-data-refs.c: Same.
12019 * tree-vect-slp.c: Same.
12020
12021 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
12022
12023 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
12024 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
12025 (mem->fpreg splitters): Ditto.
12026 (general_operand->nonimmediate_operand splitter): Use explicit modes.
12027 Disable DFmode for TARGET_64BIT.
12028
12029 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
12030
12031 PR target/66906
12032 * config/i386/i386.c (ix86_expand_prologue): Replicate static
12033 chain on the stack.
12034
12035 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
12036
12037 * config/nvptx/mkoffload.c (process): Constify host data.
12038 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
12039 Constify host data.
12040 (generate_host_descr_file): Likewise.
12041
12042 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
12043 Sebastian Pop <s.pop@samsung.com>
12044
12045 PR middle-end/61929
12046 * graphite-dependences.c (add_pdr_constraints): Renamed
12047 pdr->extent to pdr->subscript_sizes.
12048 * graphite-interchange.c (build_linearized_memory_access): Add
12049 back all gcc_assert's that the "isl_int to isl_val conversion"
12050 patch has removed. Refactored.
12051 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
12052 * graphite-poly.c (new_poly_dr): Same.
12053 (free_poly_dr): Same.
12054 * graphite-poly.h (struct poly_dr): Same.
12055 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
12056 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
12057 * graphite-scop-detection.h: Fix space.
12058 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
12059 back all gcc_assert's removed by a previous patch.
12060 (wrap): Remove the_isl_ctx global variable that the same patch has
12061 added.
12062 (build_loop_iteration_domains): Same.
12063 (add_param_constraints): Same.
12064 (pdr_add_data_dimensions): Same. Refactored.
12065 (build_poly_dr): Renamed extent to subscript_sizes.
12066
12067 2015-07-17 Marek Polacek <polacek@redhat.com>
12068
12069 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
12070 * match.pd: ... here.
12071
12072 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
12073
12074 * config/nvptx/mkoffload.c (process): Constify target data.
12075 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
12076 Constify target data.
12077 (generate_target_offloadend_file): Likewise.
12078
12079 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
12080
12081 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
12082 to allow renaming of PHI arguments on edges incoming from outer
12083 loop header, add corresponding check before start PHI iterator.
12084 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
12085 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
12086 with true force_vectorize. Set-up dominator for outer loop too.
12087 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
12088 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
12089 was marked with force_vectorize and has restricted cfg.
12090 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
12091 inner loop.
12092 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
12093 do peeling for outer loops.
12094
12095 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
12096 Matthias Klose <doko@ubuntu.com>
12097
12098 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
12099 build-sysroot, sysroot from the `Miscenalleous configure options' to
12100 the `Directories' section and strip trailing `/' from with_sysroot.
12101 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
12102 * configure: Regenerated.
12103
12104 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
12105
12106 PR target/66824
12107 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
12108 (TARGET_HARD_DF_REGS): Ditto.
12109 (TARGET_HARD_XF_REGS): Ditto.
12110 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
12111 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
12112 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
12113 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
12114 (*movsf_internal): Add alternatives 16 and 17. Enable
12115 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
12116
12117 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
12118
12119 PR rtl-optimization/66891
12120 * calls.c (expand_call): Wrap precompute_register_parameters with
12121 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
12122
12123 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
12124
12125 * config/nvptx/mkoffload.c (process): Constify mapping variables.
12126 Define target data struct and initialize it.
12127
12128 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
12129
12130 PR rtl-optimization/66626
12131 * ira.h (emit-rtl.h): Include.
12132 (non_spilled_static_chain_regno_p): New.
12133 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
12134 unless it is non spilled static chain pseudo.
12135 (assign_hard_rego): Spill memory profitable allocno unless it is
12136 non spilled static chain pseudo.
12137 (allocno_spill_priority_compare): Put non spilled static chain
12138 pseudo at the end of sorted array.
12139 (improve_allocation): Do nothing if we have static chain and
12140 non-local goto.
12141 (allocno__priority_compare_func): Put non spilled static chain
12142 pseudo at the beginning of sorted array.
12143 (move_spill_restore): Ignore non spilled static chain pseudo.
12144 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
12145 to non spilled static chain pseudo.
12146 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
12147 pseudo at the beginning of sorted array.
12148 (spill_for): Spill non spilled static chain pseudo last.
12149 * lra-constraints.c (lra_constraints): Remove static chain pseudo
12150 check for equivalence.
12151
12152 2015-07-16 Martin Liska <mliska@suse.cz>
12153
12154 PR ipa/66896.
12155 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
12156 dst_ctx if it does not exist.
12157
12158 2015-07-16 Martin Liska <mliska@suse.cz>
12159
12160 * hash-set.h (remove): New function.
12161 (iterator): New iteration class for hash_set.
12162
12163 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12164
12165 * genattrtab.c (make_canonical): Add a file_location parameter.
12166 Use fatal_at rather than fatal.
12167 (get_attr_value): Likewise. Update call to make_canonical.
12168 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
12169 (make_internal_attr): Update calls accordingly.
12170
12171 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12172
12173 * read-md.h (message_with_line, error_with_line): Delete.
12174 * read-md.c (message_with_line, error_with_line): Delete.
12175 * gensupport.h: Include read-md.h.
12176 (md_rtx_info): New structure.
12177 (read_md_rtx): Use it. Return a bool success value.
12178 * gensupport.c (read_md_rtx): Likewise.
12179 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
12180 (main): Update after interface changes.
12181 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
12182 (main): Update after interface changes.
12183 * genattrtab.c (insn_code_number): Delete.
12184 (optimize_attrs): Add a max_insn_code parameter and use it instead
12185 of insn_code_number.
12186 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
12187 Use *_at rather than *_with_line functions.
12188 (gen_insn): Likewise.
12189 (gen_delay): Likewise.
12190 (gen_insn_reserv): Likewise.
12191 (gen_bypass): Take an md_rtx_info rather than an rtx.
12192 (main): Update after interface changes. Use a local max_insn_code
12193 variable instead of insn_code_number.
12194 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
12195 an rtx. Use fatal_at rather than fatal.
12196 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
12197 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
12198 (gen_absence_set, gen_final_absence_set, gen_automaton)
12199 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
12200 (main): Update after interface changes.
12201 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
12202 and code number.
12203 (main): Update after interface changes.
12204 * genconditions.c (main): Use new read_md_rtx interface.
12205 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
12206 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
12207 (main): Update after interface changes.
12208 * genemit.c (insn_code_number, insn_index_number): Delete.
12209 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
12210 Use fatal_at rather than fatal.
12211 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
12212 rather than fatal.
12213 (gen_split): Likewise.
12214 (main): Update after interface changes.
12215 * genextract.c (line_no): Delete.
12216 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
12217 Update call to walk_rtx.
12218 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
12219 rather than message_with_line.
12220 (walk_rtx): Add an md_rtx_info argument. Update call to
12221 VEC_safe_set_locstr.
12222 (main): Update after interface changes.
12223 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
12224 and lineno. Use error_at rather than separate message_with_line
12225 calls and have_error assignments.
12226 (main): Update after interface changes.
12227 * genmddump.c (main): Use new read_md_rtx interface.
12228 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
12229 (main): Update after interface changes.
12230 * genoutput.c (next_code_number): Delete.
12231 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
12232 (gen_peephole, gen_expand, gen_split): Likewise.
12233 (note_constraint): Likewise. Use *_at rather than *_with_line
12234 functions.
12235 (main): Update after interface changes.
12236 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
12237 rtx and lineno.
12238 (main): Update after interface changes.
12239 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
12240 than an rtx and lineno.
12241 (process_define_constraint): Likewise.
12242 (process_define_register_constraint): Likewise.
12243 (main): Update after interface changes.
12244 * genrecog.c (next_insn_code, pattern_lineno): Delete.
12245 (validate_pattern): Replace top-level rtx with an md_rtx_info.
12246 Use *_at rather than *_with_line functions.
12247 (match_pattern_2): Likewise.
12248 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
12249 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
12250 Use *_at rather than *_with_line functions.
12251 * gentarget-def.c (add_insn): New function.
12252 (main): Use it. Use new read_md_rtx interface.
12253
12254 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12255
12256 * gensupport.h (compute_test_codes): Take a file_location rather
12257 than a line number.
12258 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
12259 rather than *_with_line functions.
12260 (process_define_predicate): Update call to compute_test_codes.
12261 * genpreds.c (validate_exp): Take a file_location rather than a
12262 line number. Use *_at functions rather than *_with_line functions.
12263 (process_define_predicate): Update call to validate_exp.
12264 (constraint_data): Replace lineno field with a file_location.
12265 (add_constraint): Take a file_location rather than a line number.
12266 Use *_at functions rather than *_with_line functions. Fix error
12267 message for address constraints. Update after changes to
12268 validate_exp, constraint_data and compute_test_codes.
12269 (process_define_constraint): Update accordingly.
12270 (process_define_register_constraint): Likewise.
12271
12272 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12273
12274 * genoutput.c (data): Use a file_location to record the source
12275 position.
12276 (nothing): Delete.
12277 (idata, idata_end): Remove initialization.
12278 (constraint_data): Replace lineno with a file_location.
12279 (output_insn_data): Update after changes to data.
12280 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
12281 (scan_operands): Likewise, using *_at rather than *_with_line
12282 functions.
12283 (process_template): Likewise.
12284 (validate_insn_alternatives): Likewise.
12285 (validate_insn_operands): Likewise.
12286 (validate_optab_operands): Likewise.
12287 (init_insn_for_nothing): Initialize idata and idata_end.
12288 (note_constraint): Update after changes to constraint_data,
12289 using at rather than with_line functions.
12290 (mdep_constraint_len): Take a file_location rather than a
12291 line number. Use at rather than with_line functions.
12292
12293 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12294
12295 * read-md.h (fatal_at): Declare.
12296 * read-md.c (fatal_at): New function.
12297 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
12298 to record the source position.
12299 (check_attr_test): Take a file_location instead of a line number.
12300 Use fatal_at instead of fatal.
12301 (check_attr_value): Update after above changes, using "at"
12302 rather than "with_line" reporting functions.
12303 (convert_set_attr_alternative): Likewise.
12304 (gen_attr): Likewise.
12305 (check_defs): Likewise. Don't assign to read_md_filename.
12306 (gen_insn): Update initialization after above changes.
12307 (gen_delay): Likewise.
12308 (write_insn_cases): Print the filename for a define_peephole.
12309 (gen_insn_reserv): Take a line number as argument and update
12310 the call to check_attr_test.
12311 (main): Pass a line number to gen_insn_reserv.
12312
12313 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12314
12315 * read-md.h (file_location): New structure.
12316 (directive_handler_t): Take a file_location rather than a line number.
12317 (message_at, error_at): Declare.
12318 (read_skip_construct): Delete.
12319 * read-md.c (message_with_line_1): Replace with...
12320 (message_at_1): ...this new function.
12321 (message_at, error_at): New functions.
12322 (message_with_line, error_with_line): Update to use message_at_1.
12323 (handle_enum): Take a file_location rather than a line number
12324 and use error_at for error reporting.
12325 (handle_include): Likewise.
12326 (read_skip_construct): Likewise. Make static.
12327 (handle_file): Update after above changes. Pass a file_location
12328 rather than a line number to handle_directive.
12329 * gensupport.c (queue_elem): Replace separate filename and lineno
12330 with a file_location.
12331 (queue_pattern): Replace filename and lineno arguments with a
12332 file_location. Update after change to queue_elem.
12333 (process_define_predicate): Replace lineno argument with a
12334 file_location and use error_at for error reporting. Update
12335 after above changes.
12336 (process_rtx): Likewise.
12337 (subst_pattern_match): Likewise.
12338 (get_alternatives_number): Likewise.
12339 (alter_predicate_for_insn): Likewise.
12340 (rtx_handle_directive): Likewise.
12341 (is_predicable): Update after above changes, using error_at rather
12342 than error_with_line.
12343 (has_subst_attribute): Likewise.
12344 (identify_predicable_attribute): Likewise.
12345 (alter_attrs_for_subst_insn): Likewise.
12346 (process_one_cond_exec): Likewise.
12347 (process_substs_on_one_elem): Likewise.
12348 (process_define_subst): Likewise.
12349 (check_define_attr_duplicates): Likewise.
12350 (read_md_rtx): Update after change to queue_elem.
12351
12352 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12353
12354 * genoutput.c (next_index_number): Delete.
12355 (data): Remove index_number.
12356 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
12357 (main): Remove manipulation of next_index_number.
12358
12359 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12360
12361 * genattrtab.c (check_attr_value): Remove handling of null attrs.
12362 (make_canonical): Likewise.
12363
12364 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
12365
12366 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
12367 instead of adjust_address_nv.
12368 (restore_stack_nonlocal): Likewise.
12369 (nonlocal_goto): Likewise.
12370
12371 2015-07-16 Tom de Vries <tom@codesourcery.com>
12372
12373 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
12374 not have a corresponding loop header phi.
12375
12376 2015-07-16 Tom de Vries <tom@codesourcery.com>
12377
12378 * tree-parloops.c (create_loads_for_reductions): Handle case that
12379 reduction is unused.
12380
12381 2015-07-16 Richard Biener <rguenther@suse.de>
12382
12383 PR tree-optimization/66894
12384 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
12385 about deriving NE_EXPR from truncated values.
12386
12387 2015-07-16 Martin Liska <mliska@suse.cz>
12388
12389 * alloc-pool.h
12390 (object_allocator): Add new class.
12391 (pool_allocator::initialize): Use the underlying class.
12392 (pool_allocator::allocate): Likewise.
12393 (pool_allocator::remove): Likewise.
12394 (operator new): A new generic allocator.
12395 * asan.c (struct asan_mem_ref): Remove unused members.
12396 (asan_mem_ref_new): Replace new operator with
12397 object_allocator::allocate.
12398 (free_mem_ref_resources): Change deallocation.
12399 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
12400 with object_allocator.
12401 * config/sh/sh.c (add_constant): Replace new operator with
12402 object_allocator::allocate.
12403 (sh_reorg): Change call to a release method.
12404 * cselib.c (struct elt_list): Remove unused members.
12405 (new_elt_list): Replace new operator with
12406 object_allocator::allocate.
12407 (new_elt_loc_list): Likewise.
12408 (new_cselib_val): Likewise.
12409 (unchain_one_elt_list): Change delete operator with remove method.
12410 (unchain_one_elt_loc_list): Likewise.
12411 (unchain_one_value): Likewise.
12412 (cselib_finish): Release newly added static allocators.
12413 * cselib.h (struct cselib_val): Remove unused members.
12414 (struct elt_loc_list): Likewise.
12415 * df-problems.c (df_chain_alloc): Replace pool_allocator with
12416 object_allocator.
12417 * df-scan.c (struct df_scan_problem_data): Likewise.
12418 (df_scan_alloc): Likewise.
12419 * df.h (struct dataflow): Likewise.
12420 * dse.c (struct read_info_type): Likewise.
12421 (struct insn_info_type): Likewise.
12422 (struct dse_bb_info_type): Likewise.
12423 (struct group_info): Likewise.
12424 (struct deferred_change): Likewise.
12425 (get_group_info): Likewise.
12426 (delete_dead_store_insn): Likewise.
12427 (free_read_records): Likewise.
12428 (replace_read): Likewise.
12429 (check_mem_read_rtx): Likewise.
12430 (scan_insn): Likewise.
12431 (dse_step1): Likewise.
12432 (dse_step7): Likewise.
12433 * et-forest.c (struct et_occ): Remove unused members.
12434 (et_new_occ): Use allocate instead of new operator.
12435 (et_new_tree): Likewise.
12436 (et_free_tree): Call release method explicitly.
12437 (et_free_tree_force): Likewise.
12438 (et_free_pools): Likewise.
12439 (et_split): Use remove instead of delete operator.
12440 * et-forest.h (struct et_node): Remove unused members.
12441 * ipa-cp.c: Change pool_allocator to object_allocator.
12442 * ipa-inline-analysis.c: Likewise.
12443 * ipa-profile.c: Likewise.
12444 * ipa-prop.c: Likewise.
12445 * ipa-prop.h: Likewise.
12446 * ira-build.c (initiate_cost_vectors): Cast return value.
12447 (ira_allocate_cost_vector): Likewise.
12448 * ira-color.c (struct update_cost_record): Remove unused members.
12449 * lra-int.h (struct lra_live_range): Likewise.
12450 (struct lra_copy): Likewise.
12451 (struct lra_insn_reg): Likewise.
12452 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
12453 * lra.c (new_insn_reg): Replace new operator with allocate method.
12454 (free_insn_regs): Same for operator delete.
12455 (finish_insn_regs): Release new static allocator.
12456 (finish_insn_recog_data): Likewise.
12457 (lra_free_copies): Replace delete operator with remove method.
12458 (lra_create_copy): Replace operator new with allocate method.
12459 (invalidate_insn_data_regno_info): Same for remove method.
12460 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
12461 (free_debug_insn_changes): Replace delete operator with remove method.
12462 (replace_oldest_value_reg): Replace operator new with allocate method.
12463 (pass_cprop_hardreg::execute): Release new static variable.
12464 * sched-deps.c (sched_deps_init): Change pool_allocator to
12465 object_allocator.
12466 * sel-sched-ir.c: Likewise.
12467 * sel-sched-ir.h: Likewise.
12468 * stmt.c (expand_case): Likewise.
12469 (expand_sjlj_dispatch_table): Likewise.
12470 * tree-sra.c (struct access): Remove unused members.
12471 (struct assign_link): Likewise.
12472 (sra_deinitialize): Release newly added static pools.
12473 (create_access_1):Replace operator new with allocate method.
12474 (build_accesses_from_assign): Likewise.
12475 (create_artificial_child_access): Likewise.
12476 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
12477 pool_allocator to object_allocator.
12478 * tree-ssa-pre.c: Likewise.
12479 * tree-ssa-reassoc.c: Likewise.
12480 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
12481 * tree-ssa-strlen.c: Likewise.
12482 * tree-ssa-structalias.c: Likewise.
12483 * var-tracking.c (onepart_pool_allocate): New function.
12484 (unshare_variable): Use the newly added function.
12485 (variable_merge_over_cur): Likewise.
12486 (variable_from_dropped): Likewise.
12487 (variable_was_changed): Likewise.
12488 (set_slot_part): Likewise.
12489 (emit_notes_for_differences_1): Likewise.
12490 (vt_finalize): Release newly added static pools.
12491
12492 2015-07-16 Martin Jambor <mjambor@suse.cz>
12493
12494 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
12495 all uses. Fix two typos in its general comment.
12496 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
12497
12498 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
12499
12500 * config/i386/linux-common.h (LINK_MPX): New.
12501 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
12502 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
12503 indicating '-z bndplt' support by linker.
12504 * configure: Regenerate.
12505 * config.in: Regenerate.
12506
12507 2015-07-16 Richard Biener <rguenther@suse.de>
12508
12509 * fold-const.c (fold_widened_comparison): Remove.
12510 (fold_sign_changed_comparison): Likewise.
12511 (fold_comparison): Move widened and sign-changed comparison
12512 simplification ...
12513 * match.pd: ... to patterns here.
12514 * generic-match-head.c: Include target.h.
12515 * gimple-match-head.c: Likewise.
12516
12517 2015-07-16 Richard Biener <rguenther@suse.de>
12518
12519 * tree-ssa-dom.c (dom_valueize): New function.
12520 (record_temporary_equivalences): Also record equivalences
12521 for dominating stmts that have uses of equivalences we are
12522 about to record.
12523
12524 2015-07-16 Bin Cheng <bin.cheng@arm.com>
12525
12526 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
12527 add_autoinc_candidates.
12528 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
12529 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
12530 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
12531 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
12532 Call new function.
12533 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
12534 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
12535 Remove parameter struct iv*. Call add_autoinc_candidates here.
12536 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
12537 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
12538 Call new function.
12539 (find_iv_candidates): Call new functions.
12540
12541 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
12542
12543 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
12544 uninitialized-variable warning.
12545
12546 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
12547
12548 PR target/65249
12549 * config/sh/sh.md (movdi): Split simple reg move to two movsi
12550 when the destination is R0.
12551
12552 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
12553
12554 PR target/66866
12555 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
12556 * config/i386/i386.c (ix86_expand_pextr): New function.
12557 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
12558 for non-lowpart subregs.
12559 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
12560 (insv<mode>): Use SWI248 mode iterator.
12561 (insv<mode>_1): Ditto.
12562
12563 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
12564 Sebastian Pop <s.pop@samsung.com>
12565
12566 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
12567 iterator to use_stmt.
12568
12569 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
12570 Sebastian Pop <s.pop@samsung.com>
12571
12572 * graphite-scop-detection.c (build_scops_1): Discard scops for
12573 which entry==exit.
12574
12575 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
12576 Sebastian Pop <s.pop@samsung.com>
12577
12578 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
12579 case of a return statement in scop.
12580
12581 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
12582 Sebastian Pop <s.pop@samsung.com>
12583
12584 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
12585 INTEGER_TYPE parameters.
12586 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
12587 VECTOR_CST in scan_tree_for_params.
12588 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
12589
12590 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
12591
12592 * gimple-pretty-print.h: Don't include pretty-print.h.
12593 * tree-streamer.h: Don't include lto-streamer.h.
12594 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
12595 * gimple-streamer-in.c: Remove redundant includes.
12596 * gimple-streamer-out.c: Likewise.
12597 * ipa-devirt.c: Likewise.
12598 * ipa-icf.c: Likewise.
12599 * ipa-inline-analysis.c: Likewise.
12600 * ipa-polymorphic-call.c: Likewise.
12601 * ipa-profile.c: Likewise.
12602 * ipa-prop.c: Likewise.
12603 * ipa-pure-const.c: Likewise.
12604 * lto-cgraph.c: Likewise.
12605 * lto-streamer-in.c: Likewise.
12606 * lto-streamer-out.c: Likewise.
12607 * lto-streamer.c: Likewise.
12608 * tree-streamer-in.c: Likewise.
12609 * tree-streamer-out.c: Likewise.
12610 * tree-streamer.c: Likewise.
12611
12612 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
12613
12614 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
12615 include input.h.
12616 * opts.c: Remove multiline #include comment.
12617
12618 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
12619
12620 * config/nvptx/mkoffload.c (process): Add C++ protection to
12621 emitted code.
12622
12623 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12624
12625 PR target/66854
12626 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
12627 null before IEEE 128-bit floating point support patch.
12628
12629 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12630
12631 * simplify-rtx.c (simplify_ternary_operation): Add simplification
12632 for (!c) != {0,...,0} ? a : b for vector modes.
12633
12634 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
12635 Martin Jambor <mjambor@suse.cz>
12636
12637 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
12638 struct func_body_info* instead of struct ipa_node_params*, expecting
12639 fbi->info to be filled in. Replace throughout. Adjust call to
12640 ipa_load_from_parm_agg.
12641 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
12642 instead of struct ipa_node_params*. Adjust calls to other functions
12643 so that they pass either fbi or fbi->info.
12644 (set_switch_stmt_execution_predicate): Likewise.
12645 (will_be_nonconstant_predicate): Likewise.
12646 (compute_bb_predicates): Likewise.
12647 (estimate_function_body_sizes): Move asserts earlier. Fill in
12648 struct func_body_info, replace parms_info with fbi.info. Adjust
12649 calls to functions that now accept struct func_body_info.
12650 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
12651 (struct func_body_info): Likewise.
12652 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
12653 remove static. Adjust callers.
12654 (ipa_load_from_parm_agg): Remove.
12655 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
12656 (func_body_info): Likewise.
12657 (ipa_load_from_parm_agg): Adjust prototype.
12658
12659 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12660
12661 * gensupport.c (rtx_handle_directive): Adjust.
12662 * read-rtl.c (apply_iterators): Take vector to add rtxs to
12663 instead of expr list rtx.
12664 (add_define_attr_for_define_subst): Likewise.
12665 (add_define_subst_attr): Likewise.
12666 (read_subst_mapping): Likewise.
12667 (read_rtx): Likewise.
12668 * rtl.h (read_rtx): Adjust.
12669
12670 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12671
12672 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
12673
12674 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
12675
12676 PR target/58066
12677 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
12678 (*tls_local_dynamic_base_64_<mode>): Ditto.
12679 (*tls_local_dynamic_base_64_largepic): Ditto.
12680 (tls_global_dynamic_64_<mode>): Update expander pattern.
12681 (tls_local_dynamic_base_64_<mode>): Ditto.
12682
12683 2015-07-15 Richard Biener <rguenther@suse.de>
12684
12685 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
12686 and bool_var == 1 -> bool_var simplifications ...
12687 * match.pd: ... to patterns here. Factor out negate_expr_p
12688 cases from the A - B -> A + (-B) patterns as negate_expr_p
12689 predicate and add a -(A + B) -> (-B) - A pattern.
12690
12691 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
12692
12693 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
12694
12695 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
12696 Robert Suchanek <robert.suchanek@imgtec.com>
12697
12698 * config/mips/mips.c (mips_int_mask): New enum.
12699 (mips_shadow_set): Likewise.
12700 (int_mask): New variable.
12701 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
12702 (machine_function): Add int_mask and use_shadow_register_set.
12703 (mips_attribute_table): Add attribute handlers for interrupt and
12704 use_shadow_register_set.
12705 (mips_interrupt_mask): New static function.
12706 (mips_handle_interrupt_attr): Likewise.
12707 (mips_handle_use_shadow_register_set_attr): Likewise.
12708 (mips_use_shadow_register_set): Change return type to enum
12709 mips_shadow_set. Add argument handling for use_shadow_register_set
12710 attribute.
12711 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
12712 compare with mips_shadow_set enum.
12713 (mips_compute_frame_info): Add interrupt mask and
12714 use_shadow_register_set to per-function information structure.
12715 Add a stack slot for EPC unconditionally.
12716 (mips_expand_prologue): Compare use_shadow_register_set value
12717 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
12718 masked interrupt register but in EIC mode use K0 and save Cause in K0.
12719 EPC saved and restored unconditionally. Use PMODE_INSN macro when
12720 copying the stack pointer from the shadow register set.
12721 * config/mips/mips.h (SR_IM0): New define.
12722 * config/mips/mips.md (mips_rdpgpr): Rename to...
12723 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
12724 * doc/extend.texi (Declaring Attributes of Functions): Document
12725 optional arguments for interrupt and use_shadow_register_set
12726 attributes.
12727
12728 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
12729
12730 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
12731 interrupt attribute.
12732 (mips_expand_prologue): Disable the floating point unit in an ISR.
12733 * config/mips/mips.h (SR_COP1): New define.
12734
12735 2015-07-15 Richard Biener <rguenther@suse.de>
12736
12737 * genmatch.c (parser::peek, parser::peek_ident): Add argument
12738 to tell how many tokens to peek ahead (default 1).
12739 (parser::eat_token, parser::eat_ident): Return token consumed.
12740 (parser::parse_result): Parse new switch statement.
12741 * match.pd: Use case statements where appropriate.
12742
12743 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
12744
12745 PR rtl-optimization/58066
12746 * calls.c (expand_call): Precompute register parameters before stack
12747 alignment is performed.
12748
12749 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
12750
12751 PR rtl-optimization/66838
12752 * postreload.c (reload_cse_move2add): Also process
12753 CALL_INSN_FUNCTION_USAGE when resetting information of
12754 call-clobbered registers.
12755
12756 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
12757 Cesar Philippidis <cesar@codesourcery.com>
12758 Chung-Lin Tang <cltang@codesourcery.com>
12759
12760 * config/nios2/constraints.md (U, v): New constraints.
12761 * config/nios2/predicates.md (rdprs_dcache_operand): New.
12762 (ldstex_memory_operand): New.
12763 * config/nios2/sync.md: New file.
12764 * config/nios2/nios2.md (unspecv): Add new builtin function
12765 UNSPECV codes.
12766 (rdprs, flushd, flushda, wrpie, eni): New patterns.
12767 (top-level): Include sync.md.
12768 * config/nios2/nios2.c (N2_FTYPES): Add function types for
12769 new builtins.
12770 (N2_BUILTINS): Add arch field setting, add new builtins.
12771 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
12772 for arch field.
12773 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
12774 Also handle ldex/stex/ldsex/stsex builtins.
12775 (nios2_expand_rdprs_builtin): New function.
12776 (nios2_expand_cache_builtin): New function.
12777 (nios2_expand_wrpie_builtin): New function.
12778 (nios2_expand_eni_builtin): New function.
12779 (nios2_expand_builtin): Add arch field handling and new builtin
12780 cases.
12781 * doc/extend.texi (Altera Nios II Built-in Functions): Document
12782 new builtins.
12783 * doc/md.texi (Machine Constraints): Document U and v constraints.
12784
12785 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
12786 Cesar Philippidis <cesar@codesourcery.com>
12787 Chung-Lin Tang <cltang@codesourcery.com>
12788
12789 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
12790 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
12791 callee_save_reg_size and uses_anonymous_args fields.
12792 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
12793 (nios2_create_cfa_notes): New function.
12794 (nios2_adjust_stack): New function for adjusting stack.
12795 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
12796 Use nios2_adjust_stack.
12797 (nios2_expand_epilogue): Likewise.
12798 (nios2_expand_return): New function.
12799 (nios2_can_use_return_insn): Update for CDX pop.n usage.
12800 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
12801 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
12802 * config/nios2/nios2.md (return): Use nios2_expand_return.
12803
12804 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
12805 Cesar Philippidis <cesar@codesourcery.com>
12806 Chung-Lin Tang <cltang@codesourcery.com>
12807
12808 * config/nios2/predicates.md (pop_operation): New.
12809 (ldwm_operation, stwm_operation): New.
12810 (nios2_hard_register_operand): New.
12811 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
12812 (ldstwm_operation_p): Declare.
12813 (gen_ldstwm_peep): Declare.
12814 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
12815 (base_reg_adjustment_p): New.
12816 (pop_operation_p): New.
12817 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
12818 (nios2_ldstwm_regset_p): New.
12819 (ldstwm_operation_p): New.
12820 (gen_ldst): New.
12821 (nios2_ldst_parallel): New.
12822 (struct ldswm_operand): Declare.
12823 (compare_ldstwm_operands): New.
12824 (can_use_cdx_ldstw): New.
12825 (gen_ldstwm_peep): New.
12826 * config/nios2/nios2-ldstwm.sml: New.
12827 * config/nios2/nios2.md: Include ldstwm.md.
12828 * config/nios2/ldstwm.md: Generated.
12829
12830 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
12831 Cesar Philippidis <cesar@codesourcery.com>
12832 Chung-Lin Tang <cltang@codesourcery.com>
12833
12834 * config/nios2/nios2.h (LABEL_ALIGN): Define.
12835 (REG_ALLOC_ORDER): Define.
12836 (ADJUST_REG_ALLOC_ORDER): Define.
12837 (HONOR_REG_ALLOC_ORDER): Define.
12838 (CDX_REG_P): Define.
12839 (ANDCLEAR_INT): Define.
12840 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
12841 (nios2_label_align): Declare.
12842 (nios2_cdx_narrow_form_p): Declare.
12843 (nios2_adjust_reg_alloc_order): Declare.
12844 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
12845 operation.
12846 (nios2_large_unspec_reloc_p): New function, split from...
12847 (nios2_legitimate_pic_operand_p): ...here.
12848 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
12849 (nios2_print_operand_punct_valid_p): New.
12850 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
12851 (split_mem_address): New.
12852 (split_alu_insn): New.
12853 (cdxreg): New.
12854 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
12855 (enum nios2_add_insn_kind): New.
12856 (nios2_add_insn_names, nios2_add_insn_narrow): New.
12857 (nios2_add_insn_classify): New.
12858 (nios2_add_insn_asm): New.
12859 (nios2_cdx_narrow_form_p): New.
12860 (label_align, min_labelno, max_labelno): New.
12861 (nios2_reorg): New.
12862 (nios2_label_align): New.
12863 (nios2_adjust_reg_alloc_order): New.
12864 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12865 (TARGET_MACHINE_DEPENDENT_REORG): Define.
12866 * config/nios2/constraints.md (P): New constraint.
12867 * config/nios2/predicates.md (const_and_operand): New.
12868 (and_operand): New.
12869 (stack_memory_operand): New.
12870 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
12871 (length): Update to use nios2_cdx_narrow_form_p().
12872 (type): Add new insn type values.
12873 (control, alu, st, ld, shift): Update insn reservations with
12874 new insn type values.
12875 (*high, *lo_sum): Define new insn patterns for constant generation.
12876 (movqi_internal, movhi_internal, movsi_internal): Reduce
12877 alternatives, update asm template to handle CDX variants, update
12878 type attributes.
12879 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
12880 template, update type attributes.
12881 (extendhisi2, extendqi<mode>2): Likewise.
12882 (addsi3): Change to use function for asm string.
12883 (subsi3): Add CDX notation to asm template, update type attributes.
12884 (negsi3, one_cmplsi3): Likewise.
12885 (andsi3): New pattern, specialized from logical patterns.
12886 (<code>si3): Remove and case, combine alternatives, update asm
12887 template.
12888 (<shift_op>si3): Add CDX notation, update type attributes.
12889 (rotrsi3): Update type attribute.
12890 (*merge, extzv, insv): New insn patterns.
12891 (return): Change to define_expand.
12892 (simple_return): Add CDX notation, update type attributes.
12893 (indirect_jump): Add CDX notation.
12894 (jump): Update asm cases, update length attribute expression.
12895 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
12896 (nios2_cbranch): Update asm cases and length attribute expression
12897 to handle CDX variants.
12898 (nios2_cmp<code>): Update asm template.
12899 (nop): Add CDX notation, update type attributes.
12900 (trap): Add CDX notation.
12901 (ctrapsi4): Update asm cases and length attribute expression to
12902 handle CDX variant.
12903 * doc/md.texi (Machine Constraints): Document P constraint.
12904
12905 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
12906 Cesar Philippidis <cesar@codesourcery.com>
12907 Chung-Lin Tang <cltang@codesourcery.com>
12908
12909 * config/nios2/nios2.h (SMALL_INT12): New macro.
12910 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
12911 (nios2_valid_addr_expr_p): Use it.
12912 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
12913 with implicit "io" instructions on R2.
12914 * config/nios2/constraints.md (w): New constraint.
12915 * config/nios2/predicates.md (ldstio_memory_operand): New.
12916 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
12917 operand predicate and constraint.
12918 (ld<bh>io_signed, st<bhw>io>): Likewise.
12919 * doc/md.texi (Machine Constraints): Document w constraint.
12920
12921 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
12922 Cesar Philippidis <cesar@codesourcery.com>
12923 Chung-Lin Tang <cltang@codesourcery.com>
12924
12925 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
12926 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
12927 Nios II architecture level.
12928 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
12929 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
12930 (OPTION_DEFAULT_SPECS): Define.
12931 (ASM_SPEC): Add -march= spec strings.
12932 * config/nios2/nios2.c (nios2_option_override): Check for
12933 conflicts involving new options.
12934 * config.gcc (nios2*-*-*): Support --with-arch=.
12935 * doc/invoke.texi (Option Summary, Nios II Options): Document
12936 -march=, -mbmx, and -mcdx.
12937
12938 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
12939
12940 PR rtl-optimization/66626
12941 * lra-constraints.c (lra_constraints): Prevent equivalence
12942 substitution for static chain pseudo in functions with nonlocal
12943 goto.
12944
12945 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
12946
12947 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
12948 (nios2_emit_stack_limit_check): Add size parameter. Handle
12949 -fstack-limit-symbol as well as -fstack-limit-register.
12950 (nios2_expand_prologue): Emit only a single stack limit check,
12951 even if multiple stack adjustments are required.
12952 (nios2_option_override): Diagnose unsupported combination of -fpic
12953 and -stack-limit-symbol.
12954
12955 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
12956
12957 * Makefile.in (top_srcdir): New.
12958 * configure.ac: Use AM_ZLIB.
12959 * configure: Regeneated.
12960
12961 2015-07-14 Matthias Klose <doko@ubuntu.com>
12962
12963 PR target/66840
12964 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
12965
12966 2015-07-14 Richard Biener <rguenther@suse.de>
12967
12968 PR tree-optimization/66863
12969 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
12970 what we record for conversion use stmt lhs inequalities.
12971
12972 2015-07-14 Richard Biener <rguenther@suse.de>
12973
12974 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
12975 (decision_tree::gen_gimple): Likewise.
12976
12977 2015-07-14 Tom de Vries <tom@codesourcery.com>
12978
12979 * gcc.c (greater_than_spec_func): Declare forward.
12980 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
12981 -ftree-parallelize-loops={0,1}.
12982 (static_spec_functions): Add greater_than_spec_func function with name
12983 "gt".
12984 (greater_than_spec_func): New function.
12985
12986 2015-07-14 Richard Biener <rguenther@suse.de>
12987
12988 * tree-ssa-dom.c (record_temporary_equivalences): Merge
12989 wideing type conversion case from record_equivalences_from_incoming_edge
12990 and use record_equality to record equivalences.
12991 (record_equivalences_from_incoming_edge): Call
12992 record_temporary_equivalences.
12993
12994 2015-07-14 Richard Biener <rguenther@suse.de>
12995
12996 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
12997 (struct if_expr): New.
12998 (struct with_expr): Likewise.
12999 (is_a_helper): Add helpers for if_expr and with_expr.
13000 (struct simplify): Add simplify_kind enum and member. Remove
13001 ifexpr_vec member.
13002 (simplify::simplify): Adjust.
13003 (lower_commutative): Adjust.
13004 (lower_opt_convert): Likewise.
13005 (lower_cond): Likewise.
13006 (replace_id): Handle with_expr and if_expr.
13007 (lower_for): Adjust.
13008 (dt_simplify::gen_1): New recursive worker, split out from ...
13009 (dt_simplify::gen): ... here. Deal with if and with expansion
13010 recursively.
13011 (capture_info::capture_info): Take context argument
13012 (capture_info::walk_result): Only analyze specific result.
13013 (parser::parse_result): New function.
13014 (parser::parse_simplify): Adjust to parse ifs with then end
13015 else case.
13016 (parser::parse_if): Simplify.
13017 (parser::parse_pattern): Pass down simplify kind.
13018 * match.pd: Convert if structure to new syntax.
13019
13020 2015-07-13 Marek Polacek <polacek@redhat.com>
13021
13022 * rtl.c (rtx_equal_p_cb): Fix typo.
13023
13024 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
13025
13026 * omega.h: Don't include config.h, don't include params.h again if
13027 omega.h has already been included.
13028 * graphite-poly.h: Include sese.h.
13029 * graphite.c: Don't include sese.h, remove needless includes and
13030 minimize includes outside #ifdef HAVE_isl block.
13031 * graphite-blocking.c: Don't include sese.h, remove needless includes,
13032 and wrap entire file in #ifdef HAVE_isl
13033 * graphite-dependences.c: Likewise.
13034 * graphite-interchange.c: Likewise.
13035 * graphite-isl-ast-to-gimple.c: Likewise.
13036 * graphite-optimize-isl.c: Likewise.
13037 * graphite-poly.c: Likewise.
13038 * graphite-scop-detection.c: Likewise.
13039 * graphite-sese-to-poly.c: Likewise.
13040
13041 2015-07-13 Tom de Vries <tom@codesourcery.com>
13042
13043 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
13044
13045 2015-07-13 Renlin Li <renlin.li@arm.com>
13046
13047 PR rtl/66556
13048 * simplify-rtx.c (simplify_const_relational_operation): Add
13049 side_effects_p checks.
13050
13051 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
13052
13053 * bitmap.h: Fix double word typos.
13054 * builtins.c: Same.
13055 * calls.c: Same.
13056 * cfgloopmanip.c: Same.
13057 * cgraph.c: Same.
13058 * cgraph.h: Same.
13059 * cgraphclones.c: Same.
13060 * combine.c: Same.
13061 * config/aarch64/aarch64-protos.h: Same.
13062 * config/aarch64/aarch64.c: Same.
13063 * config/aarch64/aarch64.md: Same.
13064 * config/arm/arm.md: Same.
13065 * config/arm/arm1020e.md: Same.
13066 * config/arm/arm1026ejs.md: Same.
13067 * config/arm/arm926ejs.md: Same.
13068 * config/arm/fa526.md: Same.
13069 * config/arm/fa606te.md: Same.
13070 * config/arm/fa626te.md: Same.
13071 * config/arm/fa726te.md: Same.
13072 * config/arm/fmp626.md: Same.
13073 * config/darwin.c: Same.
13074 * config/epiphany/epiphany.c: Same.
13075 * config/frv/frv.c: Same.
13076 * config/ft32/ft32.c: Same.
13077 * config/gnu-user.h: Same.
13078 * config/h8300/constraints.md: Same.
13079 * config/i386/i386.c: Same.
13080 * config/i386/i386.md: Same.
13081 * config/iq2000/iq2000.md: Same.
13082 * config/mips/mips.c: Same.
13083 * config/mmix/mmix.md: Same.
13084 * config/moxie/moxie.c: Same.
13085 * config/nds32/nds32.md: Same.
13086 * config/pa/pa.h: Same.
13087 * config/rs6000/aix.h: Same.
13088 * config/rs6000/rs6000.h: Same.
13089 * config/sh/sh.c: Same.
13090 * config/tilegx/tilegx.md: Same.
13091 * config/tilepro/gen-mul-tables.cc: Same.
13092 * cse.c: Same.
13093 * dbxout.c: Same.
13094 * doc/invoke.texi: Same.
13095 * dse.c: Same.
13096 * dwarf2out.c: Same.
13097 * final.c: Same.
13098 * gcc.c: Same.
13099 * genmatch.c: Same.
13100 * gimplify.c: Same.
13101 * hash-table.h: Same.
13102 * internal-fn.c: Same.
13103 * ipa-cp.c: Same.
13104 * ipa-devirt.c: Same.
13105 * ipa-icf.c: Same.
13106 * ipa-icf.h: Same.
13107 * ipa-profile.c: Same.
13108 * ipa-prop.c: Same.
13109 * ipa-prop.h: Same.
13110 * ira.c: Same.
13111 * omp-low.c: Same.
13112 * reg-stack.c: Same.
13113 * regcprop.c: Same.
13114 * reorg.c: Same.
13115 * rtl.h: Same.
13116 * sbitmap.h: Same.
13117 * tree-eh.c: Same.
13118 * tree-inline.c: Same.
13119 * tree-sra.c: Same.
13120 * tree-ssa-dom.c: Same.
13121 * tree-ssa-loop-ivopts.c: Same.
13122 * tree-ssa-structalias.c: Same.
13123 * tree-ssa-tail-merge.c: Same.
13124 * tree-ssa-ter.c: Same.
13125 * tree-ssa-threadupdate.c: Same.
13126 * tree-ssa-uninit.c: Same.
13127 * tree-ssanames.c: Same.
13128 * tree-vect-loop-manip.c: Same.
13129 * tree-vrp.c: Same.
13130 * tree.c: Same.
13131 * valtrack.c: Same.
13132 * vec.h: Same.
13133
13134 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
13135
13136 PR middle-end/66726
13137 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
13138 tree_ssa_phiopt_worker): Call it.
13139
13140 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
13141
13142 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
13143 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
13144 REG_EQUAL note.
13145
13146 2015-07-11 Marek Polacek <polacek@redhat.com>
13147
13148 PR middle-end/66353
13149 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
13150 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
13151 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
13152 rather than bb_has_abnormal_call_pred.
13153 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
13154 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
13155 rather than bb_has_abnormal_call_pred.
13156
13157 2015-07-10 Anatoly Sokolov <aesok@post.ru>
13158
13159 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13160 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
13161 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13162 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
13163 v850_legitimate_address_p): New functions.
13164 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
13165
13166 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
13167
13168 PR target/66819
13169 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
13170 indirect sibcall with register arguments if register available
13171 for argument passing.
13172 (init_cumulative_args): Set cfun->machine->arg_reg_available
13173 to (cum->nregs > 0) or to true if function has a variable
13174 argument list.
13175 (function_arg_advance_32): Set cfun->machine->arg_reg_available
13176 to false if cum->nregs <= 0.
13177 * config/i386/i386.h (machine_function): Add arg_reg_available.
13178
13179 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
13180
13181 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
13182 and gen_higpart instead of gen_rtx_SUBREG.
13183 * config/i386/i386.md
13184 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
13185 (read-modify peephole2): Use gen_lowpart instead of
13186 gen_rtx_SUBREG for operand 5.
13187
13188 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
13189
13190 * config/tilepro/gen-mul-tables.cc (main): Change include list for
13191 generated files.
13192 * config/tilepro/mul-tables.c: Regenerate.
13193 * config/tilegx/mul-tables.c: Regenerate.
13194
13195 2015-07-10 Richard Biener <rguenther@suse.de>
13196
13197 * fold-const.c (distribute_bit_expr): Remove.
13198 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
13199 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
13200 to A & (B | C) and simplifying A << C1 << C2 to ...
13201 * match.pd: ... patterns here.
13202
13203 2015-07-10 Jiong Wang <jiong.wang@arm.com>
13204
13205 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
13206 Mark mem as READONLY and NOTRAP for PIC symbol.
13207
13208 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
13209
13210 * gimple-predict.h: New file.
13211 (gimple_predict_predictor, gimple_predict_set_predictor,
13212 gimple_predict_outcome, gimple_predict_set_outcome,
13213 gimple_build_predict): Relocate here.
13214 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
13215 gimple_predict_outcome, gimple_predict_set_outcome): Move to
13216 gimple-predict.h.
13217 * gimple.c (gimple_build_predict): Move to gimple-predict.h
13218 * basic-block.h: Don't include cfghooks.h.
13219 * backend.h: Don't include predict.h.
13220 * cfghooks.h: Include predict.h.
13221 * gimple-pretty-print.c: Include gimple-predict.h.
13222 * gimplify.c: Likwise.
13223 * predict.c: Adjust includes.
13224 * tree-inline.c: Likewise.
13225 * asan.c: Likewise.
13226 * auto-inc-dec.c: Likewise.
13227 * auto-profile.c: Likewise.
13228 * bb-reorder.c: Likewise.
13229 * builtins.c: Likewise.
13230 * caller-save.c: Likewise.
13231 * calls.c: Likewise.
13232 * cfganal.c: Likewise.
13233 * cfgbuild.c: Likewise.
13234 * cfg.c: Likewise.
13235 * cfgcleanup.c: Likewise.
13236 * cfgexpand.c: Likewise.
13237 * cfghooks.c: Likewise.
13238 * cfgloopanal.c: Likewise.
13239 * cfgloop.c: Likewise.
13240 * cfgloopmanip.c: Likewise.
13241 * cfgrtl.c: Likewise.
13242 * cgraph.c: Likewise.
13243 * cgraphunit.c: Likewise.
13244 * combine.c: Likewise.
13245 * cprop.c: Likewise.
13246 * cse.c: Likewise.
13247 * dce.c: Likewise.
13248 * dojump.c: Likewise.
13249 * dse.c: Likewise.
13250 * except.c: Likewise.
13251 * expmed.c: Likewise.
13252 * expr.c: Likewise.
13253 * final.c: Likewise.
13254 * fold-const.c: Likewise.
13255 * function.c: Likewise.
13256 * fwprop.c: Likewise.
13257 * gcc-plugin.h: Likewise.
13258 * gcse.c: Likewise.
13259 * genattrtab.c: Likewise.
13260 * genemit.c: Likewise.
13261 * gengtype.c: Likewise.
13262 * genopinit.c: Likewise.
13263 * genoutput.c: Likewise.
13264 * genpreds.c: Likewise.
13265 * genrecog.c: Likewise.
13266 * gimple-fold.c: Likewise.
13267 * gimple-iterator.c: Likewise.
13268 * gimple-ssa-isolate-paths.c: Likewise.
13269 * gimple-ssa-strength-reduction.c: Likewise.
13270 * graph.c: Likewise.
13271 * graphite-blocking.c: Likewise.
13272 * graphite.c: Likewise.
13273 * graphite-dependences.c: Likewise.
13274 * graphite-interchange.c: Likewise.
13275 * graphite-isl-ast-to-gimple.c: Likewise.
13276 * graphite-optimize-isl.c: Likewise.
13277 * graphite-poly.c: Likewise.
13278 * graphite-scop-detection.c: Likewise.
13279 * graphite-sese-to-poly.c: Likewise.
13280 * haifa-sched.c: Likewise.
13281 * ifcvt.c: Likewise.
13282 * internal-fn.c: Likewise.
13283 * ipa-cp.c: Likewise.
13284 * ipa-profile.c: Likewise.
13285 * ipa-split.c: Likewise.
13286 * ipa-utils.c: Likewise.
13287 * ira-build.c: Likewise.
13288 * ira-color.c: Likewise.
13289 * ira-conflicts.c: Likewise.
13290 * ira-costs.c: Likewise.
13291 * ira-emit.c: Likewise.
13292 * ira-lives.c: Likewise.
13293 * jump.c: Likewise.
13294 * loop-doloop.c: Likewise.
13295 * loop-init.c: Likewise.
13296 * loop-invariant.c: Likewise.
13297 * loop-unroll.c: Likewise.
13298 * lower-subreg.c: Likewise.
13299 * lra-assigns.c: Likewise.
13300 * lra.c: Likewise.
13301 * lra-coalesce.c: Likewise.
13302 * lra-constraints.c: Likewise.
13303 * lra-lives.c: Likewise.
13304 * lto-cgraph.c: Likewise.
13305 * lto-streamer-in.c: Likewise.
13306 * mode-switching.c: Likewise.
13307 * modulo-sched.c: Likewise.
13308 * omp-low.c: Likewise.
13309 * optabs.c: Likewise.
13310 * passes.c: Likewise.
13311 * postreload.c: Likewise.
13312 * postreload-gcse.c: Likewise.
13313 * profile.c: Likewise.
13314 * recog.c: Likewise.
13315 * regstat.c: Likewise.
13316 * reload1.c: Likewise.
13317 * reorg.c: Likewise.
13318 * rtlanal.c: Likewise.
13319 * sched-ebb.c: Likewise.
13320 * sel-sched-ir.c: Likewise.
13321 * sese.c: Likewise.
13322 * shrink-wrap.c: Likewise.
13323 * simplify-rtx.c: Likewise.
13324 * stmt.c: Likewise.
13325 * store-motion.c: Likewise.
13326 * tracer.c: Likewise.
13327 * trans-mem.c: Likewise.
13328 * tree-call-cdce.c: Likewise.
13329 * tree-cfg.c: Likewise.
13330 * tree-cfgcleanup.c: Likewise.
13331 * tree-chkp.c: Likewise.
13332 * tree-complex.c: Likewise.
13333 * tree-eh.c: Likewise.
13334 * tree-if-conv.c: Likewise.
13335 * tree-loop-distribution.c: Likewise.
13336 * tree-outof-ssa.c: Likewise.
13337 * tree-parloops.c: Likewise.
13338 * tree-predcom.c: Likewise.
13339 * tree-pretty-print.c: Likewise.
13340 * tree-profile.c: Likewise.
13341 * tree-sra.c: Likewise.
13342 * tree-ssa.c: Likewise.
13343 * tree-ssa-coalesce.c: Likewise.
13344 * tree-ssa-dce.c: Likewise.
13345 * tree-ssa-dom.c: Likewise.
13346 * tree-ssa-forwprop.c: Likewise.
13347 * tree-ssa-ifcombine.c: Likewise.
13348 * tree-ssa-loop-ch.c: Likewise.
13349 * tree-ssa-loop-im.c: Likewise.
13350 * tree-ssa-loop-ivcanon.c: Likewise.
13351 * tree-ssa-loop-ivopts.c: Likewise.
13352 * tree-ssa-loop-manip.c: Likewise.
13353 * tree-ssa-loop-prefetch.c: Likewise.
13354 * tree-ssa-loop-unswitch.c: Likewise.
13355 * tree-ssa-math-opts.c: Likewise.
13356 * tree-ssa-phiopt.c: Likewise.
13357 * tree-ssa-pre.c: Likewise.
13358 * tree-ssa-reassoc.c: Likewise.
13359 * tree-ssa-sink.c: Likewise.
13360 * tree-ssa-tail-merge.c: Likewise.
13361 * tree-ssa-threadedge.c: Likewise.
13362 * tree-ssa-threadupdate.c: Likewise.
13363 * tree-switch-conversion.c: Likewise.
13364 * tree-tailcall.c: Likewise.
13365 * tree-vect-data-refs.c: Likewise.
13366 * tree-vect-loop.c: Likewise.
13367 * tree-vect-loop-manip.c: Likewise.
13368 * tree-vectorizer.c: Likewise.
13369 * tree-vrp.c: Likewise.
13370 * ubsan.c: Likewise.
13371 * value-prof.c: Likewise.
13372 * varasm.c: Likewise.
13373 * var-tracking.c: Likewise.
13374 * config/aarch64/aarch64-builtins.c: Likewise.
13375 * config/aarch64/aarch64.c: Likewise.
13376 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13377 * config/alpha/alpha.c: Likewise.
13378 * config/arc/arc.c: Likewise.
13379 * config/arm/arm.c: Likewise.
13380 * config/avr/avr.c: Likewise.
13381 * config/bfin/bfin.c: Likewise.
13382 * config/c6x/c6x.c: Likewise.
13383 * config/cr16/cr16.c: Likewise.
13384 * config/cris/cris.c: Likewise.
13385 * config/darwin.c: Likewise.
13386 * config/darwin-c.c: Likewise.
13387 * config/epiphany/epiphany.c: Likewise.
13388 * config/epiphany/mode-switch-use.c: Likewise.
13389 * config/epiphany/resolve-sw-modes.c: Likewise.
13390 * config/fr30/fr30.c: Likewise.
13391 * config/frv/frv.c: Likewise.
13392 * config/ft32/ft32.c: Likewise.
13393 * config/h8300/h8300.c: Likewise.
13394 * config/i386/i386.c: Likewise.
13395 * config/i386/winnt.c: Likewise.
13396 * config/ia64/ia64.c: Likewise.
13397 * config/iq2000/iq2000.c: Likewise.
13398 * config/lm32/lm32.c: Likewise.
13399 * config/m32c/m32c.c: Likewise.
13400 * config/m32r/m32r.c: Likewise.
13401 * config/m68k/m68k.c: Likewise.
13402 * config/mcore/mcore.c: Likewise.
13403 * config/mep/mep.c: Likewise.
13404 * config/microblaze/microblaze.c: Likewise.
13405 * config/mips/mips.c: Likewise.
13406 * config/mmix/mmix.c: Likewise.
13407 * config/mn10300/mn10300.c: Likewise.
13408 * config/moxie/moxie.c: Likewise.
13409 * config/msp430/msp430.c: Likewise.
13410 * config/nds32/nds32.c: Likewise.
13411 * config/nds32/nds32-cost.c: Likewise.
13412 * config/nds32/nds32-fp-as-gp.c: Likewise.
13413 * config/nds32/nds32-intrinsic.c: Likewise.
13414 * config/nds32/nds32-isr.c: Likewise.
13415 * config/nds32/nds32-md-auxiliary.c: Likewise.
13416 * config/nds32/nds32-memory-manipulation.c: Likewise.
13417 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13418 * config/nds32/nds32-predicates.c: Likewise.
13419 * config/nios2/nios2.c: Likewise.
13420 * config/nvptx/nvptx.c: Likewise.
13421 * config/pa/pa.c: Likewise.
13422 * config/pdp11/pdp11.c: Likewise.
13423 * config/rl78/rl78.c: Likewise.
13424 * config/rs6000/rs6000.c: Likewise.
13425 * config/rx/rx.c: Likewise.
13426 * config/s390/s390.c: Likewise.
13427 * config/sh/sh.c: Likewise.
13428 * config/sh/sh-mem.cc: Likewise.
13429 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13430 * config/sh/sh_treg_combine.cc: Likewise.
13431 * config/sparc/sparc.c: Likewise.
13432 * config/spu/spu.c: Likewise.
13433 * config/stormy16/stormy16.c: Likewise.
13434 * config/tilegx/tilegx.c: Likewise.
13435 * config/tilepro/tilepro.c: Likewise.
13436 * config/v850/v850.c: Likewise.
13437 * config/vax/vax.c: Likewise.
13438 * config/visium/visium.c: Likewise.
13439 * config/xtensa/xtensa.c: Likewise.
13440
13441 2015-07-10 Richard Biener <rguenther@suse.de>
13442
13443 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
13444 (decision_tree::gen_gimple): Likewise.
13445 (decision_tree::gen_generic): Likewise.
13446
13447 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
13448
13449 PR target/66813
13450 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
13451 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
13452
13453 2015-07-10 Jakub Jelinek <jakub@redhat.com>
13454
13455 PR middle-end/66820
13456 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
13457 or ORT_TASK contexts.
13458 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
13459 is non-zero.
13460
13461 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13462
13463 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
13464 above function.
13465
13466 2015-07-10 Tom de Vries <tom@codesourcery.com>
13467
13468 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
13469 insert nit + 1 bound.
13470
13471 2015-07-10 Richard Biener <rguenther@suse.de>
13472
13473 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
13474 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
13475 (if_convertible_loop_p_1): For this always compute bb predicates.
13476 (if_convertible_loop_p): And free them.
13477
13478 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13479
13480 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
13481 in dump message.
13482
13483 2015-07-10 Richard Biener <rguenther@suse.de>
13484
13485 PR tree-optimization/66823
13486 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
13487 inverted predicate.
13488
13489 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
13490
13491 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
13492 to handle mips[32|64]r3 and mips[32|64]r5.
13493
13494 2015-07-09 Jakub Jelinek <jakub@redhat.com>
13495
13496 PR middle-end/66633
13497 * tree-nested.c (get_static_chain): Or in a flag into
13498 info->static_chain_added.
13499 (get_frame_field, get_nonlocal_debug_decl): Likewise.
13500 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
13501 2015-07-01 changes.
13502 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
13503 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
13504 add it to clauses.
13505
13506 PR tree-optimization/66718
13507 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
13508 field.
13509 (vect_simd_lane_linear): New function.
13510 (vectorizable_simd_clone_call): Support using linear arguments for
13511 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
13512
13513 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
13514
13515 PR target/66821
13516 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
13517
13518 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
13519
13520 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
13521 Use machine mode, not enum machine_mode in the prototype.
13522
13523 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
13524 classify 128-bit floating point support.
13525 (FLOAT128_IBM_P): Likewise.
13526 (FLOAT128_VECTOR_P): Likewise.
13527 (FLOAT128_2REG_P): Likewise.
13528 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
13529 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
13530 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
13531 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
13532
13533 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
13534 tests against TFmode/TDmode, since those modes do not use VSX
13535 addresses.
13536 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
13537 support.
13538 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
13539 tests against TFmode, etc.
13540 (invalid_e500_subreg): Add tests against IFmode/KFmode.
13541 (reg_offset_addressing_ok_p): Likewise.
13542 (rs6000_legitimate_offset_address_p): Likewise.
13543 (rs6000_legitimize_address): Likewise.
13544 (rs6000_legitimize_reload_address): Likewise.
13545 (rs6000_legitimate_address_p): Clean up tests against TFmode and
13546 TDmode to use the new helper macros, which will include IFmode and
13547 KFmode.
13548 (rs6000_emit_move): Likewise.
13549 (rs6000_darwin64_record_arg_recurse): Likewise.
13550 (print_operand): Likewise.
13551 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
13552 that uses a single vector register as a vector and not as a
13553 floating point register in terms of the calling sequence.
13554 (rs6000_discover_homogeneous_aggregate): Likewise.
13555 (rs6000_return_in_memory): Likewise.
13556 (init_cumulative_args): Likewise.
13557 (rs6000_function_arg_boundary): Likewise.
13558 (rs6000_function_arg_advance_1): Likewise.
13559 (rs6000_function_arg): Likewise.
13560 (rs6000_pass_by_reference): Likewise.
13561 (rs6000_gimplify_va_arg): Likewise.
13562 (rs6000_secondary_reload_memory): Use machine_mode not enum
13563 machine mode.
13564 (rs6000_split_multireg_move): Use new helper macros.
13565 (spe_func_has_64bit_regs_p): Likewise.
13566 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
13567 (output_toc): Use new helper macros.
13568 (rs6000_register_move_cost): Likewise.
13569 (rs6000_function_value): Add IEEE 128-bit floating point calling
13570 sequence support.
13571 (rs6000_libcall_value): Likewise.
13572 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
13573 floating point support.
13574 (rs6000_vector_mode_supported_p): Likewise.
13575
13576 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
13577
13578 PR rtl-optimization/66782
13579 * lra-int.h (struct lra_insn_recog_data): Add comment about
13580 clobbered hard regs for arg_hard_regs.
13581 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
13582 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
13583 Add condition for processing used hard regs.
13584 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
13585 Process clobbered hard regs.
13586
13587 2015-07-09 Michael Matz <matz@suse.de>
13588
13589 * genmatch.c (fprintf_indent): New function.
13590 (operand::gen_transform): Add indent parameter.
13591 (expr::gen_transform, c_expr::gen_transform,
13592 capture::gen_transform): Ditto and use fprintf_indent.
13593 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
13594 (dt_operand::gen, dt_operand::gen_predicate,
13595 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
13596 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
13597 (decision_tree::gen_gimple): Adjust calls and indent generated
13598 code.
13599 (decision_tree::gen_generic): Ditto.
13600 (write_predicate): Ditto.
13601
13602 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
13603
13604 PR target/66814
13605 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
13606 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
13607 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
13608 {GENERAL,SSE,MMX}_REG_P where appropriate.
13609
13610 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
13611
13612 * lto-streamer.h: Don't include target.h and alloc-pool.h.
13613 * builtins.c: Adjust includes.
13614 * gimple.c: Likewise.
13615 * ipa-icf.c: Likewise.
13616 * lto-opts.c: Likewise.
13617 * ipa-reference.c: Likewise.
13618 * lto-section-out.c: Likewise.
13619 * lto-streamer-in.c: Likewise.
13620 * lto-streamer-out.c: Likewise.
13621 * opts-global.c: Likewise.
13622 * symtab.c: Likewise.
13623 * tree-chkp.c: Likewise.
13624 * tree-ssa-live.c: Likewise.
13625 * tree-streamer-in.c: Likewise.
13626 * tree-streamer-out.c: Likewise.
13627 * config/darwin.c: Likewise.
13628 * config/i386/winnt.c: Likewise.
13629
13630 2015-07-09 Richard Biener <rguenther@suse.de>
13631
13632 * genmatch.c (struct expr): Add force_single_use flag.
13633 (expr::expr): Add copy constructor.
13634 (capture_info::walk_match): Gather force_single_use captures.
13635 (expr::gen_transform): Use possibly NULLified sequence.
13636 (dt_simplify::gen): Apply single-use restrictions by NULLifying
13637 seq if any constrained expr is not single-use.
13638 (parser::parse_expr): Refactor to allow multiple flags. Handle
13639 's' flag to force an expression have a single-use if the pattern
13640 simplifies to more than one statement.
13641 * match.pd: Convert most single_use conditionals to :s flags.
13642
13643 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
13644
13645 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
13646 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
13647 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
13648
13649 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
13650
13651 * flags.h: Don't include flag-types.h or options.h.
13652 * opts-common.c: Adjust includes.
13653 * opts-global.c: Likewise.
13654 * common/config/epiphany/epiphany-common.c: Likewise.
13655
13656 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
13657
13658 PR target/66818
13659 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
13660 for IA MCU.
13661
13662 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
13663
13664 PR target/66817
13665 * config/i386/i386.c (ix86_return_in_memory): Return true
13666 if int_size_in_bytes returns negative for IA MCU.
13667
13668 2015-07-09 Marek Polacek <polacek@redhat.com>
13669
13670 PR tree-optimization/66718
13671 * Makefile.in (OBJS): Add gimple-laddress.o.
13672 * passes.def: Schedule pass_laddress.
13673 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
13674 * tree-pass.h (make_pass_laddress): Declare.
13675 * gimple-laddress.c: New file.
13676
13677 2015-07-09 Richard Biener <rguenther@suse.de>
13678
13679 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
13680
13681 2015-07-09 Richard Biener <rguenther@suse.de>
13682
13683 PR tree-optimization/66807
13684 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
13685
13686 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
13687
13688 * function.c (stack_protect_epilogue): Use if rather than switch for
13689 check targetm.have_stack_protect_test.
13690
13691 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13692
13693 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
13694 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
13695 * config/arc/arc.h: Likewise.
13696 * config/arm/arm.h: Likewise.
13697 * config/bfin/bfin.h: Likewise.
13698 * config/epiphany/epiphany.h: Likewise.
13699 * config/frv/frv.h: Likewise.
13700 * config/ia64/ia64.h: Likewise.
13701 * config/iq2000/iq2000.h: Likewise.
13702 * config/lm32/lm32.h: Likewise.
13703 * config/m32r/m32r.h: Likewise.
13704 * config/mcore/mcore.h: Likewise.
13705 * config/mep/mep.h: Likewise.
13706 * config/microblaze/microblaze.h: Likewise.
13707 * config/mips/mips.h: Likewise.
13708 * config/mmix/mmix.h: Likewise.
13709 * config/mn10300/mn10300.h: Likewise.
13710 * config/nds32/nds32.h: Likewise.
13711 * config/nios2/nios2.h: Likewise.
13712 * config/pa/pa.h: Likewise.
13713 * config/rl78/rl78.h: Likewise.
13714 * config/sh/sh.h: Likewise.
13715 * config/sparc/sparc.h: Likewise.
13716 * config/stormy16/stormy16.h: Likewise.
13717 * config/tilegx/tilegx.h: Likewise.
13718 * config/tilepro/tilepro.h: Likewise.
13719 * config/v850/v850.h: Likewise.
13720 * config/xtensa/xtensa.h: Likewise.
13721 * doc/tm.texi: Regenerate.
13722 * doc/tm.texi.in: Adjust.
13723 * combine.c (simplify_set): Likewise.
13724 (simplify_comparison): Likewise.
13725 * expr.c (store_constructor): Likewise.
13726 * internal-fn.c (expand_arith_overflow): Likewise.
13727 * reload.c (push_reload): Likewise.
13728 (find_reloads): Likewise.
13729 (find_reloads_subreg_address): Likewise.
13730 * reload1.c (eliminate_regs_1): Likewise.
13731 * rtlanal.c (nonzero_bits1): Likewise.
13732 (num_sign_bit_copies1): Likewise.
13733 * simplify-rtx.c (simplify_truncation): Likewise.
13734
13735 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13736
13737 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
13738 of AUTO_INC_DEC with the preprocessor.
13739 * combine.c (combine_instructions): Likewise.
13740 (can_combine_p): Likewise.
13741 (try_combine): Likewise.
13742 * emit-rtl.c (try_split): Likewise.
13743 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13744 * lower-subreg.c (resolve_simple_move): Likewise.
13745 * lra.c (update_inc_notes): Likewise.
13746 * recog.c (asm_operand_ok): Likewise.
13747 (constrain_operands): Likewise.
13748 * regrename.c (scan_rtx_address): Likewise.
13749 * reload.c (update_auto_inc_notes): Likewise.
13750 (reg_inc_found_and_valid_p): Likewise.
13751 * reload1.c (reload): Likewise.
13752 (emit_input_reload_insns): Likewise.
13753 (delete_output_reload): Likewise.
13754 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13755 * valtrack.c (cleanup_auto_inc_dec): Likewise.
13756
13757 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13758
13759 * rtl.h: Always define AUTO_INC_DEC.
13760 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
13761 * combine.c (combine_instructions): Likewise.
13762 (can_combine_p): Likewise.
13763 (try_combine): Likewise.
13764 * emit-rtl.c (try_split): Likewise.
13765 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13766 * lower-subreg.c (resolve_simple_move): Likewise.
13767 * lra.c (update_inc_notes): Likewise.
13768 * recog.c (asm_operand_ok): Likewise.
13769 (constrain_operands): Likewise.
13770 * regrename.c (scan_rtx_address): Likewise.
13771 * reload.c (update_auto_inc_notes): Likewise.
13772 (find_equiv_reg): Likewise.
13773 * reload1.c (reload): Likewise.
13774 (reload_as_needed): Likewise.
13775 (choose_reload_regs): Likewise.
13776 (emit_input_reload_insns): Likewise.
13777 (delete_output_reload): Likewise.
13778 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13779 * valtrack.c (cleanup_auto_inc_dec): Likewise.
13780
13781 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13782
13783 * combine.c (can_combine_def_p): Don't check the value of
13784 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
13785 (combinable_i3pat): Likewise.
13786 (mark_used_regs_combine): Likewise.
13787 * regrename.c (rename_chains): Likewise.
13788 * reload.c (find_reloads_address): Likewise.
13789 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13790
13791 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13792
13793 * combine.c (update_rsp_from_reg_equal): Don't check if
13794 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
13795 (reg_nonzero_bits_for_combine): Likewise.
13796 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
13797 1.
13798 * config/frv/frv.h: Likewise.
13799 * config/lm32/lm32.h: Likewise.
13800 * config/mep/mep.h: Likewise.
13801 * config/mips/mips.h: Likewise.
13802 * config/rs6000/rs6000.h: Likewise.
13803 * config/sh/sh.h: Likewise.
13804 * config/tilegx/tilegx.h (enum reg_class): Likewise.
13805 * config/tilepro/tilepro.h: Likewise.
13806 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
13807 * doc/tm.texi: Regenerate.
13808 * doc/tm.texi.in: Adjust.
13809 * rtlanal.c (nonzero_bits1): Likewise.
13810
13811 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13812
13813 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
13814 with the preprocessor.
13815 (combine_instructions): Likewise.
13816 (try_combine): Likewise.
13817 (subst): Likewise.
13818 (distribute_notes): Likewise.
13819
13820 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13821
13822 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
13823 defined.
13824 (simplify_set): Likewise.
13825 * cse.c (cse_insn): Likewise.
13826 * fold-const.c (fold_single_bit_test): Likewise.
13827 (fold_unary_loc): Likewise.
13828 * postreload.c (reload_cse_simplify_set): Likewise.
13829 (reload_cse_simplify_operands): Likewise.
13830
13831 2015-07-08 Jiong Wang <jiong.wang@arm.com>
13832
13833 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
13834 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
13835
13836 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
13837
13838 PR target/66746
13839 * config/i386/x86intrin.h: Include <adxintrin.h> even if
13840 __iamcu__ is defined.
13841
13842 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
13843
13844 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
13845
13846 2015-07-08 Iain Sandoe <iain@codesourcery.com>
13847
13848 PR target/66523
13849 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
13850 names from preservation.
13851
13852 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
13853
13854 PR target/66806
13855 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
13856 change for IAMCU.
13857 (function_arg_advance_32): Don't pass vectors in registers for
13858 IAMCU.
13859 (function_arg_32): Likewise.
13860 (ix86_return_in_memory): Don't return vectors in registers for
13861 IAMCU.
13862
13863 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
13864
13865 PR middle-end/66334
13866 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
13867 hard regno live at the start of BB with incoming abnormal edges.
13868 * lra-lives.c (process_bb_lives): Ditto.
13869
13870 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
13871
13872 PR libgomp/65099
13873 * config/nvptx/mkoffload.c (main): Create an offload image only in
13874 64-bit configurations.
13875
13876 2015-07-08 Martin Liska <mliska@suse.cz>
13877
13878 PR bootstrap/66744
13879 * tree-sra.c (create_access_1): Call ctor without brackets.
13880 (create_artificial_child_access): Likewise.
13881
13882 2015-07-08 Richard Biener <rguenther@suse.de>
13883
13884 PR tree-optimization/66793
13885 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
13886 Properly split the block after stmts ending it.
13887
13888 2015-07-08 Richard Biener <rguenther@suse.de>
13889
13890 PR tree-optimization/66794
13891 * passes.c (execute_function_todo): Assert that post-dominators
13892 are not computed.
13893 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
13894 Free post-dominators.
13895
13896 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13897
13898 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
13899 with early exit.
13900
13901 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
13902
13903 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
13904 more than or equal 8 and less than 32 when optimizing for size.
13905
13906 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13907
13908 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
13909 COSTS_N_INSNS (1) and increment it appropriately throughout the
13910 function.
13911
13912 2015-07-08 Richard Biener <rguenther@suse.de>
13913
13914 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
13915
13916 2015-07-08 Alan Modra <amodra@gmail.com>
13917
13918 * target.def (rtx_costs): Remove "code" param, add "mode".
13919 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
13920 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
13921 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
13922 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
13923 call. Track mode when given in rtx.
13924 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
13925 (default_address_cost): Pass Pmode to rtx_cost.
13926 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
13927 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
13928 with NULL set.
13929 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
13930 (notreg_cost): Add mode param. Use it.
13931 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
13932 mode param and pass to set_src_cost. Update all calls.
13933 (hash_scan_set): Formatting.
13934 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
13935 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
13936 * hooks.h: Ditto.
13937 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
13938 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
13939 emit_store_flag): Update set_src_cost and rtx_cost calls.
13940 * auto-inc-dec.c (attempt_change): Likewise.
13941 * calls.c (precompute_register_parameters): Likewise.
13942 * combine.c (expand_compound_operation, make_extraction,
13943 force_to_mode, distribute_and_simplify_rtx): Likewise.
13944 * dojump.c (prefer_and_bit_test): Likewise.
13945 * dse.c (find_shift_sequence): Likewise.
13946 * expr.c (compress_float_constant): Likewise.
13947 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
13948 * ifcvt.c (noce_try_sign_mask): Likewise.
13949 * loop-doloop.c (doloop_optimize): Likewise.
13950 * loop-invariant.c (create_new_invariant): Likewise.
13951 * lower-subreg.c (shift_cost, compute_costs): Likewise.
13952 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
13953 lshift_cheap_p): Likewise.
13954 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
13955 try_replace_in_use, reload_cse_move2add): Likewise.
13956 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
13957 Likewise.
13958 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13959 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
13960 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
13961 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
13962 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
13963 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
13964 to rtx_cost calls.
13965 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
13966 * config/arc/arc.c (arc_rtx_costs): Likewise.
13967 * config/arm/arm.c (arm_rtx_costs): Likewise.
13968 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
13969 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
13970 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
13971 * config/cris/cris.c (cris_rtx_costs): Likewise.
13972 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
13973 * config/frv/frv.c (frv_rtx_costs): Likewise.
13974 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
13975 * config/i386/i386.c (ix86_rtx_costs): Likewise.
13976 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
13977 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
13978 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
13979 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
13980 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
13981 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
13982 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
13983 * config/mep/mep.c (mep_rtx_cost): Likewise.
13984 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
13985 * config/mips/mips.c (mips_rtx_costs): Likewise.
13986 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
13987 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
13988 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
13989 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
13990 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
13991 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
13992 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
13993 * config/pa/pa.c (hppa_rtx_costs): Likewise.
13994 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
13995 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
13996 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
13997 * config/s390/s390.c (s390_rtx_costs): Likewise.
13998 * config/sh/sh.c (sh_rtx_costs): Likewise.
13999 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
14000 * config/spu/spu.c (spu_rtx_costs): Likewise.
14001 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
14002 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
14003 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
14004 * config/v850/v850.c (v850_rtx_costs): Likewise.
14005 * config/vax/vax.c (vax_rtx_costs): Likewise.
14006 * config/visium/visium.c (visium_rtx_costs): Likewise.
14007 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
14008 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
14009 "code" param, and pass as outer_code to first rtx_cost call. Pass
14010 mode to rtx_cost calls.
14011 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
14012 calls.
14013 (aarch64_rtx_costs_wrapper): Update.
14014 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
14015 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
14016 rtx_cost calls.
14017 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
14018 and rtx_cost calls.
14019 (avr_operand_rtx_cost): Similarly.
14020 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
14021 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
14022 * config/mips/mips.c (mips_stack_address_p): Comment typo.
14023 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
14024 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
14025 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
14026 rtx_cost.
14027 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
14028 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
14029 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
14030 * doc/tm.texi: Regenerate.
14031
14032 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
14033
14034 * tree-core.h: Include symtab.h.
14035 * rtl.h: Include hard-reg-set.h but not flags.h.
14036 (HARD_CONST): Remove condition compilation involving HARD_CONST since
14037 hard-reg-set.h is always included.
14038 * regs.h: Don't include hard-reg-set.h or rtl.h.
14039 * cfg.h: Include dominance.h.
14040 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
14041 * backend.h: New. Aggregate commonly used backend header files.
14042 * gimple-ssa.h: Don't include tree-hasher.h.
14043 * ssa.h: New. Aggregate commonly used SSA header files.
14044 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
14045 * sel-sched-ir.h: Flatten includes.
14046 * lra-int.h: Flatten completely.
14047 * sel-sched-dump.h: Flatten includes.
14048 * ira-int.h: Flatten includes.
14049 * gimple-streamer.h: Remove all includes.
14050 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
14051 * resource.h: Flatten hard-reg-set.h and df.h.
14052 * sched-int.h: Flatten insn-arrt.h and df.h.
14053 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
14054 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
14055 * genattrtab.c (write_header): Adjust generated includes.
14056 * genautomata.c (main): Likewise.
14057 * genconditions.c (write-header): Likewise.
14058 * genemit.c (main): Likewise.
14059 * gengtype.c (open_base_files): Likewise.
14060 * genopinit.c (main): Likewise.
14061 * genoutput.c (output_prologue): Likewise.
14062 * genpeep.c (main): Likewise.
14063 * genpreds.c (write_insn_preds_c): Likewise.
14064 * genrecog.c (write_header): Likewise.
14065 * alias.c: Adjust includes.
14066 * asan.c: Likewise.
14067 * attribs.c: Likewise.
14068 * auto-inc-dec.c: Likewise.
14069 * auto-profile.c: Likewise.
14070 * bb-reorder.c: Likewise.
14071 * bt-load.c: Likewise.
14072 * builtins.c: Likewise.
14073 * caller-save.c: Likewise.
14074 * calls.c: Likewise.
14075 * ccmp.c: Likewise.
14076 * cfg.c: Likewise.
14077 * cfganal.c: Likewise.
14078 * cfgbuild.c: Likewise.
14079 * cfgcleanup.c: Likewise.
14080 * cfgexpand.c: Likewise.
14081 * cfghooks.c: Likewise.
14082 * cfgloop.c: Likewise.
14083 * cfgloopanal.c: Likewise.
14084 * cfgloopmanip.c: Likewise.
14085 * cfgrtl.c: Likewise.
14086 * cgraph.c: Likewise.
14087 * cgraphbuild.c: Likewise.
14088 * cgraphclones.c: Likewise.
14089 * cgraphunit.c: Likewise.
14090 * cilk-common.c: Likewise.
14091 * combine-stack-adj.c: Likewise.
14092 * combine.c: Likewise.
14093 * compare-elim.c: Likewise.
14094 * convert.c: Likewise.
14095 * coverage.c: Likewise.
14096 * cppbuiltin.c: Likewise.
14097 * cprop.c: Likewise.
14098 * cse.c: Likewise.
14099 * cselib.c: Likewise.
14100 * data-streamer-in.c: Likewise.
14101 * data-streamer-out.c: Likewise.
14102 * data-streamer.c: Likewise.
14103 * dbxout.c: Likewise.
14104 * dce.c: Likewise.
14105 * ddg.c: Likewise.
14106 * debug.c: Likewise.
14107 * df-core.c: Likewise.
14108 * df-problems.c: Likewise.
14109 * df-scan.c: Likewise.
14110 * dfp.c: Likewise.
14111 * dojump.c: Likewise.
14112 * dominance.c: Likewise.
14113 * domwalk.c: Likewise.
14114 * double-int.c: Likewise.
14115 * dse.c: Likewise.
14116 * dumpfile.c: Likewise.
14117 * dwarf2asm.c: Likewise.
14118 * dwarf2cfi.c: Likewise.
14119 * dwarf2out.c: Likewise.
14120 * emit-rtl.c: Likewise.
14121 * et-forest.c: Likewise.
14122 * except.c: Likewise.
14123 * explow.c: Likewise.
14124 * expmed.c: Likewise.
14125 * expr.c: Likewise.
14126 * final.c: Likewise.
14127 * fixed-value.c: Likewise.
14128 * fold-const.c: Likewise.
14129 * function.c: Likewise.
14130 * fwprop.c: Likewise.
14131 * gcc-plugin.h: Likewise.
14132 * gcse-common.c: Likewise.
14133 * gcse.c: Likewise.
14134 * generic-match-head.c: Likewise.
14135 * ggc-page.c: Likewise.
14136 * gimple-builder.c: Likewise.
14137 * gimple-expr.c: Likewise.
14138 * gimple-fold.c: Likewise.
14139 * gimple-iterator.c: Likewise.
14140 * gimple-low.c: Likewise.
14141 * gimple-match-head.c: Likewise.
14142 * gimple-pretty-print.c: Likewise.
14143 * gimple-ssa-isolate-paths.c: Likewise.
14144 * gimple-ssa-strength-reduction.c: Likewise.
14145 * gimple-streamer-in.c: Likewise.
14146 * gimple-streamer-out.c: Likewise.
14147 * gimple-walk.c: Likewise.
14148 * gimple.c: Likewise.
14149 * gimplify-me.c: Likewise.
14150 * gimplify.c: Likewise.
14151 * godump.c: Likewise.
14152 * graph.c: Likewise.
14153 * graphite-blocking.c: Likewise.
14154 * graphite-dependences.c: Likewise.
14155 * graphite-interchange.c: Likewise.
14156 * graphite-isl-ast-to-gimple.c: Likewise.
14157 * graphite-optimize-isl.c: Likewise.
14158 * graphite-poly.c: Likewise.
14159 * graphite-scop-detection.c: Likewise.
14160 * graphite-sese-to-poly.c: Likewise.
14161 * graphite.c: Likewise.
14162 * haifa-sched.c: Likewise.
14163 * hw-doloop.c: Likewise.
14164 * ifcvt.c: Likewise.
14165 * init-regs.c: Likewise.
14166 * internal-fn.c: Likewise.
14167 * ipa-chkp.c: Likewise.
14168 * ipa-comdats.c: Likewise.
14169 * ipa-cp.c: Likewise.
14170 * ipa-devirt.c: Likewise.
14171 * ipa-icf-gimple.c: Likewise.
14172 * ipa-icf.c: Likewise.
14173 * ipa-inline-analysis.c: Likewise.
14174 * ipa-inline-transform.c: Likewise.
14175 * ipa-inline.c: Likewise.
14176 * ipa-polymorphic-call.c: Likewise.
14177 * ipa-profile.c: Likewise.
14178 * ipa-prop.c: Likewise.
14179 * ipa-pure-const.c: Likewise.
14180 * ipa-ref.c: Likewise.
14181 * ipa-reference.c: Likewise.
14182 * ipa-split.c: Likewise.
14183 * ipa-utils.c: Likewise.
14184 * ipa-visibility.c: Likewise.
14185 * ipa.c: Likewise.
14186 * ira-build.c: Likewise.
14187 * ira-color.c: Likewise.
14188 * ira-conflicts.c: Likewise.
14189 * ira-costs.c: Likewise.
14190 * ira-emit.c: Likewise.
14191 * ira-lives.c: Likewise.
14192 * ira.c: Likewise.
14193 * jump.c: Likewise.
14194 * langhooks.c: Likewise.
14195 * lcm.c: Likewise.
14196 * loop-doloop.c: Likewise.
14197 * loop-init.c: Likewise.
14198 * loop-invariant.c: Likewise.
14199 * loop-iv.c: Likewise.
14200 * loop-unroll.c: Likewise.
14201 * lower-subreg.c: Likewise.
14202 * lra-assigns.c: Likewise.
14203 * lra-coalesce.c: Likewise.
14204 * lra-constraints.c: Likewise.
14205 * lra-eliminations.c: Likewise.
14206 * lra-lives.c: Likewise.
14207 * lra-remat.c: Likewise.
14208 * lra-spills.c: Likewise.
14209 * lra.c: Likewise.
14210 * lto-cgraph.c: Likewise.
14211 * lto-compress.c: Likewise.
14212 * lto-opts.c: Likewise.
14213 * lto-section-in.c: Likewise.
14214 * lto-section-out.c: Likewise.
14215 * lto-streamer-in.c: Likewise.
14216 * lto-streamer-out.c: Likewise.
14217 * lto-streamer.c: Likewise.
14218 * mcf.c: Likewise.
14219 * mode-switching.c: Likewise.
14220 * modulo-sched.c: Likewise.
14221 * omega.c: Likewise.
14222 * omp-low.c: Likewise.
14223 * optabs.c: Likewise.
14224 * opts-global.c: Likewise.
14225 * passes.c: Likewise.
14226 * plugin.c: Likewise.
14227 * postreload-gcse.c: Likewise.
14228 * postreload.c: Likewise.
14229 * predict.c: Likewise.
14230 * print-rtl.c: Likewise.
14231 * print-tree.c: Likewise.
14232 * profile.c: Likewise.
14233 * real.c: Likewise.
14234 * realmpfr.c: Likewise.
14235 * recog.c: Likewise.
14236 * ree.c: Likewise.
14237 * reg-stack.c: Likewise.
14238 * regcprop.c: Likewise.
14239 * reginfo.c: Likewise.
14240 * regrename.c: Likewise.
14241 * regstat.c: Likewise.
14242 * reload.c: Likewise.
14243 * reload1.c: Likewise.
14244 * reorg.c: Likewise.
14245 * resource.c: Likewise.
14246 * rtl-chkp.c: Likewise.
14247 * rtlanal.c: Likewise.
14248 * rtlhooks.c: Likewise.
14249 * sanopt.c: Likewise.
14250 * sched-deps.c: Likewise.
14251 * sched-ebb.c: Likewise.
14252 * sched-rgn.c: Likewise.
14253 * sched-vis.c: Likewise.
14254 * sdbout.c: Likewise.
14255 * sel-sched-dump.c: Likewise.
14256 * sel-sched-ir.c: Likewise.
14257 * sel-sched.c: Likewise.
14258 * sese.c: Likewise.
14259 * shrink-wrap.c: Likewise.
14260 * simplify-rtx.c: Likewise.
14261 * stack-ptr-mod.c: Likewise.
14262 * stmt.c: Likewise.
14263 * stor-layout.c: Likewise.
14264 * store-motion.c: Likewise.
14265 * stringpool.c: Likewise.
14266 * symtab.c: Likewise.
14267 * target-globals.c: Likewise.
14268 * targhooks.c: Likewise.
14269 * toplev.c: Likewise.
14270 * tracer.c: Likewise.
14271 * trans-mem.c: Likewise.
14272 * tree-affine.c: Likewise.
14273 * tree-browser.c: Likewise.
14274 * tree-call-cdce.c: Likewise.
14275 * tree-cfg.c: Likewise.
14276 * tree-cfgcleanup.c: Likewise.
14277 * tree-chkp-opt.c: Likewise.
14278 * tree-chkp.c: Likewise.
14279 * tree-chrec.c: Likewise.
14280 * tree-complex.c: Likewise.
14281 * tree-data-ref.c: Likewise.
14282 * tree-dfa.c: Likewise.
14283 * tree-diagnostic.c: Likewise.
14284 * tree-dump.c: Likewise.
14285 * tree-eh.c: Likewise.
14286 * tree-emutls.c: Likewise.
14287 * tree-if-conv.c: Likewise.
14288 * tree-inline.c: Likewise.
14289 * tree-into-ssa.c: Likewise.
14290 * tree-iterator.c: Likewise.
14291 * tree-loop-distribution.c: Likewise.
14292 * tree-nested.c: Likewise.
14293 * tree-nrv.c: Likewise.
14294 * tree-object-size.c: Likewise.
14295 * tree-outof-ssa.c: Likewise.
14296 * tree-parloops.c: Likewise.
14297 * tree-phinodes.c: Likewise.
14298 * tree-predcom.c: Likewise.
14299 * tree-pretty-print.c: Likewise.
14300 * tree-profile.c: Likewise.
14301 * tree-scalar-evolution.c: Likewise.
14302 * tree-sra.c: Likewise.
14303 * tree-ssa-address.c: Likewise.
14304 * tree-ssa-alias.c: Likewise.
14305 * tree-ssa-ccp.c: Likewise.
14306 * tree-ssa-coalesce.c: Likewise.
14307 * tree-ssa-copy.c: Likewise.
14308 * tree-ssa-copyrename.c: Likewise.
14309 * tree-ssa-dce.c: Likewise.
14310 * tree-ssa-dom.c: Likewise.
14311 * tree-ssa-dse.c: Likewise.
14312 * tree-ssa-forwprop.c: Likewise.
14313 * tree-ssa-ifcombine.c: Likewise.
14314 * tree-ssa-live.c: Likewise.
14315 * tree-ssa-loop-ch.c: Likewise.
14316 * tree-ssa-loop-im.c: Likewise.
14317 * tree-ssa-loop-ivcanon.c: Likewise.
14318 * tree-ssa-loop-ivopts.c: Likewise.
14319 * tree-ssa-loop-manip.c: Likewise.
14320 * tree-ssa-loop-niter.c: Likewise.
14321 * tree-ssa-loop-prefetch.c: Likewise.
14322 * tree-ssa-loop-unswitch.c: Likewise.
14323 * tree-ssa-loop.c: Likewise.
14324 * tree-ssa-math-opts.c: Likewise.
14325 * tree-ssa-operands.c: Likewise.
14326 * tree-ssa-phiopt.c: Likewise.
14327 * tree-ssa-phiprop.c: Likewise.
14328 * tree-ssa-pre.c: Likewise.
14329 * tree-ssa-propagate.c: Likewise.
14330 * tree-ssa-reassoc.c: Likewise.
14331 * tree-ssa-sccvn.c: Likewise.
14332 * tree-ssa-scopedtables.c: Likewise.
14333 * tree-ssa-sink.c: Likewise.
14334 * tree-ssa-strlen.c: Likewise.
14335 * tree-ssa-structalias.c: Likewise.
14336 * tree-ssa-tail-merge.c: Likewise.
14337 * tree-ssa-ter.c: Likewise.
14338 * tree-ssa-threadedge.c: Likewise.
14339 * tree-ssa-threadupdate.c: Likewise.
14340 * tree-ssa-uncprop.c: Likewise.
14341 * tree-ssa-uninit.c: Likewise.
14342 * tree-ssa.c: Likewise.
14343 * tree-ssanames.c: Likewise.
14344 * tree-stdarg.c: Likewise.
14345 * tree-streamer-in.c: Likewise.
14346 * tree-streamer-out.c: Likewise.
14347 * tree-streamer.c: Likewise.
14348 * tree-switch-conversion.c: Likewise.
14349 * tree-tailcall.c: Likewise.
14350 * tree-vect-data-refs.c: Likewise.
14351 * tree-vect-generic.c: Likewise.
14352 * tree-vect-loop-manip.c: Likewise.
14353 * tree-vect-loop.c: Likewise.
14354 * tree-vect-patterns.c: Likewise.
14355 * tree-vect-slp.c: Likewise.
14356 * tree-vect-stmts.c: Likewise.
14357 * tree-vectorizer.c: Likewise.
14358 * tree-vrp.c: Likewise.
14359 * tree.c: Likewise.
14360 * tsan.c: Likewise.
14361 * ubsan.c: Likewise.
14362 * valtrack.c: Likewise.
14363 * value-prof.c: Likewise.
14364 * var-tracking.c: Likewise.
14365 * varasm.c: Likewise.
14366 * varpool.c: Likewise.
14367 * vmsdbgout.c: Likewise.
14368 * vtable-verify.c: Likewise.
14369 * web.c: Likewise.
14370 * wide-int.cc: Likewise.
14371 * xcoffout.c: Likewise.
14372 * config/aarch64/aarch64-builtins.c: Likewise.
14373 * config/aarch64/aarch64.c: Likewise.
14374 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
14375 * config/alpha/alpha.c: Likewise.
14376 * config/arc/arc.c: Likewise.
14377 * config/arm/aarch-common.c: Likewise.
14378 * config/arm/arm-builtins.c: Likewise.
14379 * config/arm/arm-c.c: Likewise.
14380 * config/arm/arm.c: Likewise.
14381 * config/avr/avr-c.c: Likewise.
14382 * config/avr/avr-log.c: Likewise.
14383 * config/avr/avr.c: Likewise.
14384 * config/bfin/bfin.c: Likewise.
14385 * config/c6x/c6x.c: Likewise.
14386 * config/cr16/cr16.c: Likewise.
14387 * config/cris/cris.c: Likewise.
14388 * config/darwin-c.c: Likewise.
14389 * config/darwin.c: Likewise.
14390 * config/epiphany/epiphany.c: Likewise.
14391 * config/epiphany/mode-switch-use.c: Likewise.
14392 * config/epiphany/resolve-sw-modes.c: Likewise.
14393 * config/fr30/fr30.c: Likewise.
14394 * config/frv/frv.c: Likewise.
14395 * config/ft32/ft32.c: Likewise.
14396 * config/h8300/h8300.c: Likewise.
14397 * config/i386/i386-c.c: Likewise.
14398 * config/i386/i386.c: Likewise.
14399 * config/i386/msformat-c.c: Likewise.
14400 * config/i386/winnt-cxx.c: Likewise.
14401 * config/i386/winnt-stubs.c: Likewise.
14402 * config/i386/winnt.c: Likewise.
14403 * config/ia64/ia64-c.c: Likewise.
14404 * config/ia64/ia64.c: Likewise.
14405 * config/iq2000/iq2000.c: Likewise.
14406 * config/lm32/lm32.c: Likewise.
14407 * config/m32c/m32c-pragma.c: Likewise.
14408 * config/m32c/m32c.c: Likewise.
14409 * config/m32r/m32r.c: Likewise.
14410 * config/m68k/m68k.c: Likewise.
14411 * config/mcore/mcore.c: Likewise.
14412 * config/mep/mep-pragma.c: Likewise.
14413 * config/mep/mep.c: Likewise.
14414 * config/microblaze/microblaze-c.c: Likewise.
14415 * config/microblaze/microblaze.c: Likewise.
14416 * config/mips/mips.c: Likewise.
14417 * config/mmix/mmix.c: Likewise.
14418 * config/mn10300/mn10300.c: Likewise.
14419 * config/moxie/moxie.c: Likewise.
14420 * config/msp430/msp430-c.c: Likewise.
14421 * config/msp430/msp430.c: Likewise.
14422 * config/nds32/nds32-cost.c: Likewise.
14423 * config/nds32/nds32-fp-as-gp.c: Likewise.
14424 * config/nds32/nds32-intrinsic.c: Likewise.
14425 * config/nds32/nds32-isr.c: Likewise.
14426 * config/nds32/nds32-md-auxiliary.c: Likewise.
14427 * config/nds32/nds32-memory-manipulation.c: Likewise.
14428 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14429 * config/nds32/nds32-predicates.c: Likewise.
14430 * config/nds32/nds32.c: Likewise.
14431 * config/nios2/nios2.c: Likewise.
14432 * config/nvptx/nvptx.c: Likewise.
14433 * config/pa/pa.c: Likewise.
14434 * config/pdp11/pdp11.c: Likewise.
14435 * config/rl78/rl78-c.c: Likewise.
14436 * config/rl78/rl78.c: Likewise.
14437 * config/rs6000/rs6000-c.c: Likewise.
14438 * config/rs6000/rs6000.c: Likewise.
14439 * config/rx/rx.c: Likewise.
14440 * config/s390/s390-c.c: Likewise.
14441 * config/s390/s390.c: Likewise.
14442 * config/sh/sh-c.c: Likewise.
14443 * config/sh/sh-mem.cc: Likewise.
14444 * config/sh/sh.c: Likewise.
14445 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
14446 * config/sh/sh_treg_combine.cc: Likewise.
14447 * config/sol2-c.c: Likewise.
14448 * config/sol2-cxx.c: Likewise.
14449 * config/sol2-stubs.c: Likewise.
14450 * config/sol2.c: Likewise.
14451 * config/sparc/sparc-c.c: Likewise.
14452 * config/sparc/sparc.c: Likewise.
14453 * config/spu/spu-c.c: Likewise.
14454 * config/spu/spu.c: Likewise.
14455 * config/stormy16/stormy16.c: Likewise.
14456 * config/tilegx/mul-tables.c: Likewise.
14457 * config/tilegx/tilegx-c.c: Likewise.
14458 * config/tilegx/tilegx.c: Likewise.
14459 * config/tilepro/mul-tables.c: Likewise.
14460 * config/tilepro/tilepro-c.c: Likewise.
14461 * config/tilepro/tilepro.c: Likewise.
14462 * config/v850/v850-c.c: Likewise.
14463 * config/v850/v850.c: Likewise.
14464 * config/vax/vax.c: Likewise.
14465 * config/visium/visium.c: Likewise.
14466 * config/vms/vms-c.c: Likewise.
14467 * config/vms/vms.c: Likewise.
14468 * config/vxworks.c: Likewise.
14469 * config/xtensa/xtensa.c: Likewise.
14470
14471 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
14472
14473 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
14474 Remove operand constraints. Change operand 2 predicate to
14475 nonmemory operand. Limit const_int values to mode bitsize. Only
14476 allow const_int values less than 32 when optimizing for size.
14477 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
14478 Remove operand constraints.
14479 (*bt<mode>): Use SImode for const_int values less than 32.
14480 (regmode): Remove mode attribute.
14481
14482 2015-07-07 Anatoly Sokolov <aesok@post.ru>
14483
14484 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
14485 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
14486 moxie_legitimate_address_p): New functions.
14487 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
14488
14489 2015-07-07 Tom de Vries <tom@codesourcery.com>
14490
14491 PR tree-optimization/66642
14492 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
14493 header comment. Rename split_edge variable to edge_at_split. Split
14494 exit edge to create new loop exit bb. Insert loop exit phis in new
14495 loop exit bb.
14496
14497 2015-07-07 Tom de Vries <tom@codesourcery.com>
14498
14499 * tree-cfg.c (get_virtual_phi): New function.
14500 * tree-cfg.h (get_virtual_phi): Declare.
14501 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
14502 (rewrite_virtuals_into_loop_closed_ssa): New function.
14503 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
14504 Declare.
14505 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
14506 (transform_to_exit_first_loop_alt): Use
14507 rewrite_virtuals_into_loop_closed_ssa.
14508
14509 2015-07-07 Richard Biener <rguenther@suse.de>
14510
14511 * fold-const.c (fold_binary_loc): Move
14512 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
14513 * match.pd: ... here.
14514 Add (X * C1) % C2 -> 0 simplification pattern derived from
14515 extract_muldiv_1.
14516
14517 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
14518
14519 PR target/66780
14520 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
14521 change for target/65249.
14522
14523 2015-07-07 Paulo Matos <pmatos@broadcom.com>
14524
14525 * symtab.c (address_matters_1): Fix typo in comment above.
14526 (can_increase_alignment_p): Likewise.
14527
14528 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14529
14530 * function.c (free_after_compilation): Clear PROP_cfg in
14531 f->curr_properties.
14532
14533 2015-07-07 Richard Biener <rguenther@suse.de>
14534
14535 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
14536 add which use to.
14537 (add_control_edge): Remove excessive vertical space in dumping.
14538 (process_ssa_edge_worklist): Simulate at most one statement and
14539 return whether we did. Do not simulate PHIs if they are in a
14540 BB not yet simulated.
14541 (ssa_propagate): Adjust to always drain the BB worklist whenever
14542 a BB is available there, likewise the VARYING edges list before
14543 the interesting edge list.
14544
14545 2015-07-07 Christian Bruel <christian.bruel@st.com>
14546
14547 PR target/52144
14548 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
14549
14550 2015-07-07 Richard Biener <rguenther@suse.de>
14551
14552 PR middle-end/66739
14553 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
14554 A - B.
14555
14556 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
14557
14558 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
14559 modes for operands 0 and 3. Use SImode for operands 2 and 3.
14560 Copy operand 0 to a temporary if !ext_register_operand. Remove
14561 ancient extract_bit_field workaround.
14562 (insv<mode>_1): Rename from mov<mode>_insv_1.
14563 (*insvqi): Rename from *movqi_insv_2.
14564 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
14565 for renamed insvsi_1.
14566 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
14567
14568 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
14569
14570 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
14571 call to nvptx_reorg_subreg.
14572
14573 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
14574
14575 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
14576 * graphite-dependencies.c, graphite-interchange.c,
14577 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
14578 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
14579 Likewise.
14580
14581 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
14582
14583 * match.pd: Remove element_mode inside HONOR_*.
14584 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
14585 (~X | X -> -1, ~X ^ X -> -1): Merge.
14586 * tree.c (build_each_one_cst): New function.
14587 * tree.h (build_each_one_cst): Likewise.
14588
14589 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
14590
14591 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
14592 PROCESSOR_IAMCU.
14593
14594 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
14595
14596 * config.gcc <mips*-*-*>: Add fused-madd.opt.
14597 * config/mips/mips.opt (mfused-madd): Remove.
14598 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
14599 * config/mips/mips.h (TARGET_MIPS8000): New.
14600 (ISA_HAS_FP_MADD4_MSUB4): Remove.
14601 (ISA_HAS_FP_MADDF_MSUBF): Remove.
14602 (ISA_HAS_FP_MADD3_MSUB3): Remove.
14603 (ISA_HAS_NMADD4_NMSUB4): Remove.
14604 (ISA_HAS_NMADD3_NMSUB3): Remove.
14605 (ISA_HAS_FUSED_MADD4): New.
14606 (ISA_HAS_UNFUSED_MADD4): New.
14607 (ISA_HAS_FUSED_MADDF): New.
14608 (ISA_HAS_FUSED_MADD3): New.
14609 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
14610 (*fma<mode>4_madd3) New.
14611 (*fma<mode>4_madd4) New.
14612 (*fma<mode>4_maddf) New.
14613 (fms<mode>4) New.
14614 (*fms<mode>4_msub3) New.
14615 (*fms<mode>4_msub4) New.
14616 (fnma<mode>4) New.
14617 (*fnma<mode>4_nmadd3) New.
14618 (*fnma<mode>4_nmadd4) New.
14619 (fnms<mode>4) New.
14620 (*fnms<mode>4_nmsub3) New.
14621 (*fnms<mode>4_nmsub4) New.
14622 (*madd4<mode>) Modify to be unfused only.
14623 (*msub4<mode>) Modify to be unfused only.
14624 (*nmadd4<mode>) Modify to be unfused only.
14625 (*nmsub4<mode>) Modify to be unfused only.
14626 (*madd3<mode>) Remove.
14627 (*msub3<mode>) Remove.
14628 (*nmadd3<mode>) Remove.
14629 (*nmsub3<mode>) Remove.
14630 (*nmadd3<mode>_fastmath) Remove.
14631 (*nmsub3<mode>_fastmath) Remove.
14632 (*nmadd4<mode>_fastmath) Update condition.
14633 (*nmsub4<mode>_fastmath) Update condition.
14634
14635 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
14636
14637 PR target/65956
14638 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
14639 alignment attribute, exploring one level down for records and arrays.
14640
14641 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
14642
14643 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
14644 modes for operands 0 and 1. Use SImode for operands 2 and 3.
14645 Copy operand 1 to a temporary if !ext_register_operand. Remove
14646 ancient extract_bit_field workaround.
14647 (*extv<mode>): Rename from *mov<mode>_extv_1.
14648 (*extvqi): Rename from *movqi_extv_1.
14649 (extzv<mode>): Rename from extzv. Use SWI248 modes for
14650 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
14651 to a temporary if !ext_register_operand. Remove ancient
14652 extract_bit_field workaround.
14653 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
14654 (*extzvqi): Rename from *movqi_extzv_2.
14655 (*testqi_ext_3): Remove modes from const_int_operand predicated
14656 operands. Add "n" constraint.
14657 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
14658 operand. Add "J" constraint.
14659 (*btsq, *btrq, *btcq peephole2s): Remove mode from
14660 const_0_to_63 predicated operand.
14661 (regmode): New insn attribute.
14662 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
14663 to nonmemory_operand. Use regmode insn attribute.
14664 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
14665 (*jcc_bt<mode>_mask): Remove mode from operand 3.
14666 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
14667 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
14668 operands. Use "N" constraint instead of "n".
14669
14670 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
14671
14672 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
14673
14674 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
14675
14676 PR target/66749
14677 * config/i386/i386.c (iamcu_cost): New.
14678 (m_IAMCU): Likewise.
14679 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
14680 (processor_target_table): Add an entry for "iamcu".
14681 (processor_alias_table): Likewise.
14682 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
14683 (ix86_adjust_cost): Likewise.
14684 (ia32_multipass_dfa_lookahead): Likewise.
14685 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
14686 * config/i386/x86-tune.def: Updated for m_IAMCU.
14687
14688 2015-07-06 Richard Biener <rguenther@suse.de>
14689
14690 PR tree-optimization/66772
14691 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
14692 values are available in the PHI node BB when there are
14693 still unexecutable edges.
14694
14695 2015-07-06 Richard Biener <rguenther@suse.de>
14696
14697 PR tree-optimization/66767
14698 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
14699 Make sure to build the alignment test on a SSA name without
14700 final alignment info valid only if the alignment test
14701 evaluates to true.
14702
14703 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
14704
14705 PR target/66620
14706 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
14707 loop start when inserting LSETUP.
14708
14709 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
14710
14711 PR target/53383
14712 * config/i386/i386.c (ix86_option_override_internal): Allow
14713 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
14714
14715 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14716
14717 * read-md.c (decimal_string): Rename to ...
14718 (md_decimal_string): ... this.
14719 (handle_enum): Reflect this.
14720
14721 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
14722
14723 PR target/66731
14724 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
14725
14726 2015-07-06 Richard Biener <rguenther@suse.de>
14727
14728 PR middle-end/66759
14729 * match.pd: Add missing constraint of y to REAL_CST in
14730 REAL_CST - x CMP y to y - CST CMP x simplification.
14731
14732 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
14733
14734 PR tree-optimization/66757
14735 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
14736
14737 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
14738 Sandra Loosemore <sandra@codesourcery.com>
14739
14740 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
14741 Delete extern declaration.
14742 (gprel_constant_p): Add extern declaration.
14743 * config/nios2/constraints.md ("S"): Use gprel_constant_p
14744 instead of nios2_symbol_ref_in_small_data_p.
14745 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
14746 (nios2_symbol_ref_in_small_data_p): Make static.
14747 (gprel_constant_p): Make non-static.
14748
14749 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
14750
14751 * doc/fragments.texi (Target Fragment): Convert debian.org
14752 link to use https.
14753 * doc/install.texi (Configuration): Ditto.
14754
14755 2015-07-05 Jakub Jelinek <jakub@redhat.com>
14756
14757 PR tree-optimization/66718
14758 * tree-vect-stmts.c (vectorizable_call): Replace uses of
14759 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
14760
14761 PR tree-optimization/66718
14762 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
14763 vectorizable_load, vectorizable_condition): Move vectype,
14764 nunits, ncopies computation after checking what kind of statement
14765 stmt is.
14766
14767 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14768
14769 * target-insns.def (extv, extzv, insv): New targetm instruction
14770 patterns.
14771 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
14772 interface.
14773 * recog.c (simplify_while_replacing): Likewise.
14774
14775 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14776
14777 * target-insns.def (doloop_begin, doloop_end): New targetm
14778 instruction patterns.
14779 * loop-init.c: Include target.h.
14780 (pass_loop2::gate): Use the new targetm patterns instead of
14781 HAVE_*/gen_* interface.
14782 (pass_rtl_doloop::gate): Likewise.
14783 (pass_rtl_doloop::execute): Remove preprocessor condition.
14784 * hw-doloop.c: Build unconditionally.
14785 * loop-doloop.c: Likewise.
14786 (doloop_optimize): Use the new targetm patterns instead of
14787 HAVE_*/gen_* interface.
14788 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
14789 * modulo-sched.c (doloop_register_get): Likewise.
14790
14791 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14792
14793 * target-insns.def (clear_cache): New targetm instruction pattern.
14794 * builtins.c (expand_builtin___clear_cache): Use it instead of
14795 HAVE_*/gen_* interface.
14796
14797 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14798
14799 * target-insns.def (allocate_stack, check_stack, probe_stack)
14800 (probe_stack_address, split_stack_prologue, split_stack_space_check):
14801 New targetm instruction patterns.
14802 * explow.c (allocate_dynamic_stack_space): Use them instead of
14803 HAVE_*/gen_* interface.
14804 (emit_stack_probe): Likewise.
14805 (probe_stack_range): Likewise.
14806 * function.c (thread_prologue_and_epilogue_insns): Likewise.
14807
14808 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14809
14810 * target-insns.def (stack_protect_set, stack_protect_test): New
14811 targetm instruction patterns.
14812 * cfgexpand.c (stack_protect_prologue): Use them instead of
14813 HAVE_*/gen_* interface.
14814 * function.c (stack_protect_epilogue): Likewise.
14815
14816 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14817
14818 * expr.h (gen_move_insn_uncast): Delete.
14819 * expr.c (gen_move_insn_uncast): Delete.
14820
14821 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14822
14823 * target-insns.def (restore_stack_block, restore_stack_function)
14824 (restore_stack_nonlocal, save_stack_block, save_stack_function)
14825 (save_stack_nonlocal): New targetm instruction patterns.
14826 * builtins.c (expand_builtin_apply): Use them instead of
14827 HAVE_*/gen_* interface.
14828 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
14829
14830 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14831
14832 * target-insns.def (trap): New targetm instruction pattern.
14833 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
14834 interface.
14835 * explow.c (allocate_dynamic_stack_space): Likewise.
14836 * ifcvt.c (find_if_header): Likewise.
14837
14838 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14839
14840 * target-insns.def (prefetch): New targetm instruction pattern.
14841 * tree-ssa-loop-prefetch.c: Include targeth.
14842 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
14843 of HAVE_*/gen_* interface.
14844 * builtins.c (expand_builtin_prefetch): Likewise.
14845 * toplev.c (process_options): Likewise.
14846
14847 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14848
14849 * target-insns.def (untyped_call, untyped_return): New targetm
14850 instruction patterns.
14851 * builtins.c (expand_builtin_apply): Use them instead of
14852 HAVE_*/gen_* interface.
14853 (result_vector): Define unconditionally.
14854
14855 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14856
14857 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
14858 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
14859 (nonlocal_goto_receiver): New targetm instruction patterns.
14860 * builtins.c (expand_builtin_setjmp_setup): Use them instead
14861 of HAVE_*/gen_* interface.
14862 (expand_builtin_setjmp_receiver): Likewise.
14863 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
14864 * except.c (expand_dw2_landing_pad_for_region): Likewise.
14865
14866 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14867
14868 * target.def: Add code_for_* hooks.
14869 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
14870 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
14871 * target-insns.def (casesi, tablejump): New targetm instruction
14872 patterns.
14873 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
14874 (do_tablejump): Likewise.
14875 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
14876 (expand_sjlj_dispatch_table): Likewise.
14877 * targhooks.c (default_case_values_threshold): Likewise.
14878
14879 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
14880
14881 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
14882 Use rtx_insn * instead of rtx.
14883 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
14884 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
14885 (nios2_call_tls_get_addr): Likewise.
14886 (nios2_emit_expensive_div): Likewise.
14887 (nios2_emit_move_sequence): Change return type to bool.
14888 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
14889 Change return type to bool.
14890
14891 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
14892
14893 PR target/66747
14894 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
14895
14896 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
14897
14898 PR target/66114
14899 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
14900 of register_operand. Remove constraint.
14901
14902 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
14903
14904 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
14905 the first argument.
14906
14907 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
14908
14909 * attribs.c (decl_attributes): Guard inform with the return value
14910 of the preceding warning.
14911
14912 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
14913
14914 * doc/invoke.texi (moverride): Move to correct section.
14915
14916 2015-07-03 Richard Biener <rguenther@suse.de>
14917
14918 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
14919 Copy from tree.c
14920 (dt_operand::gen_gimple_expr): After valueizing operands
14921 re-canonicalize operand order for commutative tree codes.
14922
14923 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
14924
14925 PR target/66746.
14926 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
14927 is defined.
14928 (__crc32w): Likewise.
14929 (__crc32d): Likewise.
14930 (__rdpmc): Likewise.
14931 (__rdtscp): Likewise.
14932 (_rdpmc): Likewise.
14933 (_rdtscp): Likewise.
14934 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
14935 is defined.
14936
14937 2015-07-03 Richard Biener <rguenther@suse.de>
14938
14939 * fold-const.c (fold_mathfn_compare): Remove.
14940 (fold_inf_compare): Likewise.
14941 (fold_comparison): Move floating point comparison simplifications...
14942 * match.pd: ... to patterns here. Introduce simple_comparisons
14943 operator list and use it for patterns formerly in fold_comparison.
14944
14945 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
14946
14947 PR tree-optimization/66119
14948 * toplev.c (process_options): Don't set up default values for
14949 the sra_max_scalarization_size_{speed,size} parameters.
14950 * tree-sra (analyze_all_variable_accesses): If no values
14951 have been set for the sra_max_scalarization_size_{speed,size}
14952 parameters, call get_move_ratio to get target defaults.
14953
14954 2015-07-03 Richard Biener <rguenther@suse.de>
14955
14956 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
14957 * match.pd: ... here.
14958
14959 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
14960
14961 PR target/37072
14962 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
14963 is not actually the default on FreeBSD.
14964
14965 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14966
14967 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
14968 definition.
14969 (CMPGE_8HI): Likewise.
14970 (CMPGE_4SI): Likewise.
14971 (CMPGE_2DI): Likewise.
14972 (CMPGE_U16QI): Likewise.
14973 (CMPGE_U8HI): Likewise.
14974 (CMPGE_U4SI): Likewise.
14975 (CMPGE_U2DI): Likewise.
14976 (CMPLE_16QI): Likewise.
14977 (CMPLE_8HI): Likewise.
14978 (CMPLE_4SI): Likewise.
14979 (CMPLE_2DI): Likewise.
14980 (CMPLE_U16QI): Likewise.
14981 (CMPLE_U8HI): Likewise.
14982 (CMPLE_U4SI): Likewise.
14983 (CMPLE_U2DI): Likewise.
14984 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14985 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
14986 ALTIVEC_BUILTIN_VEC_CMPLE.
14987 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
14988 floating-point vector modes.
14989 (vector_nlt<mode>): New define_expand.
14990 (vector_nltu<mode>): Likewise.
14991 (vector_ngt<mode>): Likewise.
14992 (vector_ngtu<mode>): Likewise.
14993
14994 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
14995
14996 PR rtl-optimization/66706
14997 * combine.c (make_compound_operation): If an AND of SUBREG of
14998 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
14999
15000 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
15001
15002 * tree-pass.h (make_pass_ch_vect): New.
15003 * passes.def: Add pass_ch_vect just before pass_if_conversion.
15004
15005 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
15006 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
15007 make_pass_ch_vect): New.
15008 (pass_ch): Extend ch_base.
15009
15010 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
15011 (ch_base::copy_headers): ...here.
15012
15013 2015-07-02 Richard Biener <rguenther@suse.de>
15014
15015 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
15016 * fold-const.c (get_pointer_modulus_and_residue): Remove.
15017 (fold_binary_loc): Implement (T)ptr & CST in terms of
15018 get_pointer_alignment_1.
15019 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
15020 Make sure to build the alignment test on a SSA name without
15021 final alignment info valid only after the prologue.
15022
15023 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
15024
15025 * config/cris/cris.md ("epilogue"): Remove condition.
15026 ("prologue"): Ditto.
15027
15028 2015-07-02 Richard Biener <rguenther@suse.de>
15029
15030 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
15031 parameter to record a condition that is false.
15032 (record_conditions): When recording an extra NE_EXPR that is
15033 true also record a EQ_EXPR that is false.
15034
15035 2015-07-02 Bin Cheng <bin.cheng@arm.com>
15036
15037 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
15038 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
15039 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
15040 (set_iv, find_interesting_uses_address, add_candidate_1): New
15041 argument to alloc_iv.
15042 (find_interesting_uses_op, find_interesting_uses_cond): Don't
15043 duplicate struct iv.
15044 (free_loop_data): Don't free struct iv explicitly.
15045 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
15046
15047 2015-07-01 DJ Delorie <dj@redhat.com>
15048
15049 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
15050 (LIB_SPEC): Add.
15051 (SUPPORTS_DISCRIMINATOR): Define.
15052
15053 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
15054
15055 PR bootstrap/66685
15056 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
15057 there are no CALLs in the same pattern.
15058
15059 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
15060
15061 PR rtl-optimization/61047
15062 * rtlanal.c (get_initial_register_offset): New function.
15063 (rtx_addr_can_trap_p_1): Check offsets of stack references.
15064
15065 2015-07-01 Richard Biener <rguenther@suse.de>
15066
15067 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
15068 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
15069 ~X CMP C -> X CMP' ~C to ...
15070 * match.pd: ... patterns here.
15071
15072 2015-07-01 Nick Clifton <nickc@redhat.com>
15073
15074 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
15075 a 16-bit value into a 20-bit memory slot.
15076
15077 2015-07-01 Jiong Wang <jiong.wang@arm.com>
15078
15079 * doc/sourcebuild.texi (AArch64-specific attributes): Document
15080 "aarch64_tiny", "aarch64_small", "aarch64_large",
15081 "aarch64_little_endian", "aarch64_big_endian".
15082
15083 2015-07-01 Jiong Wang <jiong.wang@arm.com>
15084
15085 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
15086 Document "aarch64_small_fpic".
15087
15088 2015-07-01 Jiong Wang <jiong.wang@arm.com>
15089
15090 * configure.ac: Add check for aarch64 assembler -fpic relocation
15091 modifier support.
15092 * configure: Regenerate.
15093 * config.in: Regenerate.
15094 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
15095 to -fPIC if not support of -fpic relocation modifier in assembler.
15096
15097 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
15098
15099 PR bootstrap/66685
15100 * rtl.c (classify_insn): Handle returns in PARALLELs.
15101
15102 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
15103
15104 PR middle-end/66633
15105 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
15106 to true if the function is nested and if not optimizing.
15107 (convert_local_omp_clauses): Initialize need_frame to true if the
15108 function contains nested functions and if not optimizing.
15109
15110 2015-07-01 Richard Biener <rguenther@suse.de>
15111
15112 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
15113 (X & Y) ^ Y -> ~X & Y transforms to ...
15114 * match.pd: ... here.
15115
15116 2015-07-01 Richard Biener <rguenther@suse.de>
15117
15118 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
15119 of converts to avoid uninteresting noise from the conversion
15120 simplifying patterns.
15121
15122 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
15123
15124 * config/c6x/c6x.c (try_rename_operands): Do not depend on
15125 gcc_assert evaluating its argument for side-effect.
15126
15127 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
15128
15129 PR target/64833
15130 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
15131 flag_pic is set.
15132
15133 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
15134
15135 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
15136 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
15137 (hash_scc): Add this_ref_p and ref_p parameters and pass them
15138 to the inner DFS walk.
15139
15140 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
15141
15142 * target-insns.def (jump): New targetm instruction pattern.
15143 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
15144 instead of gen_jump.
15145 (fix_up_crossing_landing_pad): Likewise.
15146 (add_labels_and_missing_jumps): Likewise.
15147 (fix_crossing_conditional_branches): Likewise.
15148 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
15149 (force_nonfallthru_and_redirect): Likewise.
15150 * cse.c (cse_insn): Likewise.
15151 * expmed.c (expand_divmod): Likewise.
15152 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
15153 * haifa-sched.c (init_before_recovery): Likewise.
15154 (sched_create_recovery_edges): Likewise.
15155 * ifcvt.c (find_cond_trap): Likewise.
15156 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
15157 (expand_float, expand_fix): Likewise.
15158 * stmt.c (emit_jump): Likewise.
15159
15160 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
15161
15162 * defaults.h (HAVE_load_multiple, gen_load_multiple)
15163 (HAVE_store_multiple, gen_store_multiple): Delete.
15164 * target-insns.def (load_multiple, store_multiple): New targetm
15165 instruction patterns.
15166 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
15167 of HAVE_*/gen_* interface.
15168
15169 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
15170
15171 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
15172 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
15173 (gen_mem_signal_fence): Delete.
15174 * target-insns.def (mem_signal_fence, mem_thread_fence)
15175 (memory_barrier): New targetm instruction patterns.
15176 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
15177 interface.
15178 (expand_mem_signal_fence): Likewise.
15179
15180 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
15181
15182 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
15183 * target-insns.def (epilogue, prologue, sibcall_prologue): New
15184 targetm instruction patterns.
15185 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
15186 interface.
15187 * calls.c (expand_call): Likewise.
15188 * cfgrtl.c (cfg_layout_finalize): Likewise.
15189 * df-scan.c (df_get_entry_block_def_set): Likewise.
15190 (df_get_exit_block_use_set): Likewise.
15191 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
15192 * final.c (final_start_function): Likewise.
15193 * function.c (thread_prologue_and_epilogue_insns): Likewise.
15194 (reposition_prologue_and_epilogue_notes): Likewise.
15195 * reorg.c (find_end_label): Likewise.
15196 * toplev.c (process_options): Likewise.
15197
15198 2015-06-30 David Malcolm <dmalcolm@redhat.com>
15199
15200 * typed-splay-tree.h: New file.
15201
15202 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
15203
15204 PR debug/66691
15205 * lra-int.h (lra_substitute_pseudo): Add a parameter.
15206 (lra_substitute_pseudo_within_insn): Ditto.
15207 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
15208 of constant.
15209 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
15210 to lra_substitute_pseudo.
15211 * lra-lives.c (process_bb_lives): Add an argument to
15212 lra_substitute_pseudo_within_insn call.
15213 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
15214 argument to lra_substitute_pseudo and
15215 lra_substitute_pseudo_within_insn calls.
15216 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
15217
15218 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
15219
15220 * configure: Regenerated.
15221
15222 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
15223
15224 * config.gcc: Support i[34567]86-*-elfiamcu target.
15225 * config/i386/iamcu.h: New.
15226 * config/i386/i386.opt: Add -miamcu.
15227 * doc/invoke.texi: Document -miamcu.
15228 * common/config/i386/i386-common.c (ix86_handle_option): Turn
15229 off x87/MMX/SSE/AVX codegen for -miamcu.
15230 * config/i386/i386-c.c (ix86_target_macros_internal): Define
15231 __iamcu/__iamcu__ for -miamcu.
15232 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
15233 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
15234 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
15235 * config/i386/i386.c (ix86_option_override_internal): Ignore and
15236 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
15237 MCU by default. Default long double to 64-bit for Intel MCU.
15238 Turn on -freg-struct-return for Intel MCU. Issue an error when
15239 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
15240 AVX is turned on.
15241 (function_arg_advance_32): Pass value whose size is no larger
15242 than 8 bytes in registers for Intel MCU.
15243 (function_arg_32): Likewise.
15244 (ix86_return_in_memory): Return value whose size is no larger
15245 than 8 bytes in registers for Intel MCU.
15246 (iamcu_alignment): New function.
15247 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
15248 true.
15249 (ix86_local_alignment): Don't increase alignment for Intel MCU.
15250 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
15251 true.
15252
15253 2015-06-30 Marek Polacek <polacek@redhat.com>
15254
15255 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
15256 both operands of the resulting expression.
15257
15258 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
15259 the final expression with the operand's type and then convert
15260 it to the type of the expression.
15261
15262 2015-06-30 Richard Biener <rguenther@suse.de>
15263
15264 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
15265 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
15266 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
15267 * match.pd: ... to patterns here.
15268
15269 2015-06-30 Richard Biener <rguenther@suse.de>
15270
15271 PR tree-optimization/66704
15272 * tree-vect-data-refs.c (vect_setup_realignment): Use
15273 make_ssa_name for non-SSA name source.
15274
15275 2015-06-30 Jakub Jelinek <jakub@redhat.com>
15276
15277 PR middle-end/66702
15278 * omp-low.c (simd_clone_adjust): Handle addressable linear
15279 or uniform parameters or non-gimple type uniform parameters.
15280
15281 2015-06-30 Richard Biener <rguenther@suse.de>
15282
15283 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
15284 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
15285 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
15286 * match.pd: ... here.
15287 Add a few cases of A - B -> A + (-B) when B "easily" negates.
15288 Move (x & y) | x -> x and friends before
15289 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
15290
15291 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
15292
15293 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
15294 -mfix-ut699 is not specified.
15295 (leon3_load): Rename into...
15296 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
15297 is specified.
15298
15299 2015-06-30 Marek Polacek <polacek@redhat.com>
15300
15301 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
15302 * match.pd: ... here.
15303
15304 2015-06-30 Richard Biener <rguenther@suse.de>
15305
15306 * target-insns.def (canonicalize_funcptr_for_compare): Add.
15307 * fold-const.c (build_range_check): Replace uses of
15308 HAVE_canonicalize_funcptr_for_compare.
15309 (fold_widened_comparison): Likewise.
15310 (fold_sign_changed_comparison): Likewise.
15311 * dojump.c: Include "target.h".
15312 (do_compare_and_jump): Replace uses of
15313 HAVE_canonicalize_funcptr_for_compare and
15314 gen_canonicalize_funcptr_for_compare.
15315 * expr.c (do_store_flag): Likewise.
15316
15317 2015-06-30 Tom de Vries <tom@codesourcery.com>
15318
15319 PR tree-optimization/66652
15320 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
15321 max_loop_iterations to determine if nit + 1 overflows.
15322
15323 2015-06-30 Richard Biener <rguenther@suse.de>
15324
15325 * tree-vrp.c (register_edge_assert_for_2): Also register
15326 asserts for dominating conversion results.
15327
15328 2015-06-30 Bin Cheng <bin.cheng@arm.com>
15329
15330 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
15331 field in struct iv.
15332
15333 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
15334
15335 PR target/66509
15336 * configure.ac: Fix filds and fildq test for 64-bit.
15337 * configure: Regenerated.
15338
15339 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
15340
15341 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
15342 (nvptx_reorg): Here. Keep the non-subreg pieces.
15343
15344 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
15345
15346 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
15347 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
15348
15349 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
15350
15351 * config/i386/i386.md (*jcc_1): Use %! in asm template.
15352 Set attribute "length_nobnd" instead of "length".
15353 (*jcc_2): Ditto.
15354 (jump): Ditto.
15355 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
15356
15357 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
15358
15359 * config/nios2/nios2.c (nios2_delegitimize_address): Make
15360 assert less restrictive.
15361
15362 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
15363
15364 PR fortran/66605
15365 * cgraphunit.c (cgraph_node::finalize_function): Do not call
15366 do_warn_unused_parameter.
15367 * function.c (do_warn_unused_parameter): Move from here.
15368 * function.h (do_warn_unused_parameter): Do not declare.
15369
15370 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
15371
15372 PR target/65697
15373 * gcc.target/arm/armv-sync-comp-swap.c: New.
15374 * gcc.target/arm/armv-sync-op-acquire.c: New.
15375 * gcc.target/arm/armv-sync-op-full.c: New.
15376 * gcc.target/arm/armv-sync-op-release.c: New.
15377
15378 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
15379
15380 PR target/65697
15381 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
15382 initial acquire barrier with final barrier.
15383
15384 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
15385
15386 PR target/65697
15387 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
15388 initial acquire barrier with final barrier.
15389
15390 2015-06-29 Richard Henderson <rth@redhat.com>
15391
15392 * config/i386/constraints.md (Bf): New constraint.
15393 * config/i386/i386-c.c (ix86_target_macros): Define
15394 __GCC_ASM_FLAG_OUTPUTS__.
15395 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
15396 as flags outputs.
15397 * doc/extend.texi (FlagOutputOperands): Document them.
15398
15399 2015-06-29 Jiong Wang <jiong.wang@arm.com>
15400
15401 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
15402 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
15403 unspec name.
15404 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
15405 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
15406 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
15407 (aarch64_symbol_context): Ditto.
15408 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
15409 and use new pattern name.
15410 (aarch64_expand_mov_immediate): Ditto.
15411 (aarch64_print_operand): Ditto.
15412 (aarch64_classify_tls_symbol): Ditto.
15413
15414 2015-06-29 Marek Polacek <polacek@redhat.com>
15415 Marc Glisse <marc.glisse@inria.fr>
15416
15417 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
15418 * match.pd: ... pattern here.
15419
15420 2015-06-29 Tom de Vries <tom@codesourcery.com>
15421
15422 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
15423 function structure.
15424
15425 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
15426
15427 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
15428 feature description, split out the native option, add a link to
15429 the feature documentation, rearrange and slightly rewrite text.
15430 (Aarch64 options, -mcpu): Likewise.
15431 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
15432 +rdma implies Adv. SIMD.
15433
15434 2015-06-29 Marek Polacek <polacek@redhat.com>
15435
15436 PR c/66322
15437 * function.c (stack_protect_epilogue): Remove a cast to int.
15438 * doc/invoke.texi: Update -Wswitch-bool description.
15439
15440 2015-06-29 Richard Biener <rguenther@suse.de>
15441
15442 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
15443 * fold-const.c (fold_binary_loc): Move &A - &B simplification
15444 via ptr_difference_const ...
15445 * match.pd: ... here.
15446 When matching (X ^ Y) == Y also match with swapped operands.
15447
15448 2015-06-29 Richard Biener <rguenther@suse.de>
15449
15450 * lto-streamer.h (LTO_major_version): Bump to 5.
15451
15452 2015-06-29 Richard Biener <rguenther@suse.de>
15453
15454 PR tree-optimization/66677
15455 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
15456 STMT_VINFO_VEC_STMT clobbering less strict.
15457
15458 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
15459
15460 PR middle-end/64130
15461 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
15462 division, compute max and min when value ranges for dividend and
15463 divisor are available.
15464
15465 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
15466 Sandra Loosemore <sandra@codesourcery.com>
15467
15468 * regrename.h (regrename_do_replace): Change to return bool.
15469 * regrename.c (rename_chains): Check return value of
15470 regname_do_replace.
15471 (regrename_do_replace): Re-validate the modified insns and
15472 return bool status.
15473 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
15474 Update to match rename_chains changes.
15475 * config/c6x/c6x.c (try_rename_operands): Assert that
15476 regrename_do_replace returns true.
15477
15478 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
15479
15480 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
15481 operand 2 here. Use copy_addr_to_reg to copy non-index
15482 register operand 2 to a temporary.
15483 (<mode>_stx): Ditto for operand 1.
15484 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
15485 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
15486 (ix86_store_bounds): Ditto.
15487
15488 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
15489
15490 * print-tree.c (print_node) [TREE_VEC]: Print its length.
15491
15492 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
15493
15494 * gimple.c (gimple_call_set_fndecl): Remove.
15495 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
15496 build1_loc directly instead of build_fold_addr_expr_loc.
15497
15498 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
15499
15500 * hash-map.h (hash_map::traverse): Use the definition of the
15501 Key typedef rather than the typedef itself.
15502
15503 2015-06-26 Martin Jambor <mjambor@suse.cz>
15504
15505 PR debug/66301
15506 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
15507 NULL instead of calling dump_enabled_p.
15508
15509 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
15510
15511 * config/aarch64/aarch64.opt: (override): New.
15512 * doc/invoke.texi (override): Document.
15513 * config/aarch64/aarch64.c (aarch64_flag_desc): New
15514 (aarch64_fusible_pairs): Likewise.
15515 (aarch64_tuning_flags): Likewise.
15516 (aarch64_tuning_override_function): Likewise.
15517 (aarch64_tuning_override_functions): Likewise.
15518 (aarch64_parse_one_option_token): Likewise.
15519 (aarch64_parse_boolean_options): Likewise.
15520 (aarch64_parse_fuse_string): Likewise.
15521 (aarch64_parse_tune_string): Likewise.
15522 (aarch64_parse_one_override_token): Likewise.
15523 (aarch64_parse_override_string): Likewise.
15524 (aarch64_override_options): Parse the -override string if it
15525 is present.
15526
15527 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
15528
15529 * config/aarch64/aarch64-protos.h (tune_params): Remove
15530 const from members.
15531 (aarch64_tune_params): Remove const, change to no longer be
15532 a pointer.
15533 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
15534 change to no longer be a pointer, initialize to generic_tunings.
15535 (aarch64_min_divisions_for_recip_mul): Change dereference of
15536 aarch64_tune_params to member access.
15537 (aarch64_reassociation_width): Likewise.
15538 (aarch64_rtx_mult_cost): Likewise.
15539 (aarch64_address_cost): Likewise.
15540 (aarch64_branch_cost): Likewise.
15541 (aarch64_rtx_costs): Likewise.
15542 (aarch64_register_move_cost): Likewise.
15543 (aarch64_memory_move_cost): Likewise.
15544 (aarch64_sched_issue_rate): Likewise.
15545 (aarch64_builtin_vectorization_cost): Likewise.
15546 (aarch64_override_options): Take a copy of the selected tuning
15547 struct in to aarch64_tune_params, rather than just setting
15548 a pointer, change dereferences of aarch64_tune_params to member
15549 accesses.
15550 (aarch64_override_options_after_change): Change dereferences of
15551 aarch64_tune_params to member access.
15552 (aarch64_macro_fusion_p): Likewise.
15553 (aarch_macro_fusion_pair_p): Likewise.
15554 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
15555
15556 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
15557
15558 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
15559 (aarch64_tune_flags): Likewise.
15560 (AARCH64_TUNE_FMA_STEERING): Likewise.
15561 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
15562 to AARCH64_FL_USE_FMA_STEERING_PASS.
15563 (cortex-a57.cortex-a53): Likewise.
15564 (cortex-a72): Use cortexa72_tunings.
15565 (cortex-a72.cortex-a53): Likewise.
15566 (exynos-m1): Likewise.
15567 * config/aarch64/aarch64-protos.h (tune_params): Add
15568 a field: extra_tuning_flags.
15569 * config/aarch64/aarch64-tuning-flags.def: New.
15570 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
15571 (aarch64_extra_tuning_flags): Likewise.
15572 (aarch64_tune_params): Declare here.
15573 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
15574 (cortexa53_tunings): Likewise.
15575 (cortexa57_tunings): Likewise.
15576 (thunderx_tunings): Likewise.
15577 (xgene1_tunings): Likewise.
15578 (cortexa72_tunings): New.
15579 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
15580 (gate): Check against aarch64_tune_params.
15581 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
15582 aarch64-protos.h.
15583
15584 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
15585
15586 * config/aarch64/aarch64-fusion-pairs.def: New.
15587 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
15588 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
15589 aarch64_fusion_pairs.
15590 (AARCH64_FUSE_MOV_MOVK): Likewise.
15591 (AARCH64_FUSE_ADRP_ADD): Likewise.
15592 (AARCH64_FUSE_MOVK_MOVK): Likewise.
15593 (AARCH64_FUSE_ADRP_LDR): Likewise.
15594 (AARCH64_FUSE_CMP_BRANCH): Likewise.
15595
15596 2015-06-26 Jiong Wang <jiong.wang@arm.com>
15597
15598 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
15599 SYMBOL_SMALL_GOT_28K.
15600 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
15601 relocation modifiers.
15602 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
15603 (ldr_got_small_28k_<mode>): New.
15604 (ldr_got_small_28k_sidi): New.
15605 * config/aarch64/iterators.md (got_modifier): New mode iterator.
15606 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
15607 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
15608 SYMBOL_SMALL_GOT_28K.
15609 (aarch64_rtx_costs): Add costs for new instruction sequences.
15610 (initialize_aarch64_code_model): Initialize new model.
15611 (aarch64_classify_symbol): Recognize new model and new symbol classification.
15612 (aarch64_asm_preferred_eh_data_format): Support new model.
15613 (aarch64_load_symref_appropriately): Generate new instruction
15614 sequences for -fpic.
15615 (TARGET_USE_PSEUDO_PIC_REG): New definition.
15616 (aarch64_use_pseudo_pic_reg): New function.
15617
15618 2015-06-26 Jiong Wang <jiong.wang@arm.com>
15619
15620 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
15621 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
15622 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
15623 (aarch64_expand_mov_immediate): Ditto.
15624 (aarch64_print_operand): Ditto.
15625 (aarch64_classify_symbol): Ditto.
15626
15627 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
15628
15629 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
15630
15631 2015-06-26 Bin Cheng <bin.cheng@arm.com>
15632
15633 PR bootstrap/66638
15634 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
15635 assertion failed. Remove assertion itself.
15636
15637 2015-06-26 Richard Biener <rguenther@suse.de>
15638
15639 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
15640 and -A CMP CST -> A CMP -CST which is redundant with a pattern
15641 in match.pd.
15642 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
15643 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
15644 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
15645 * match.pd: ... patterns here.
15646
15647 2015-06-26 Marek Polacek <polacek@redhat.com>
15648
15649 * match.pd ((x | y) & ~(x & y) -> x ^ y,
15650 (x | y) & (~x ^ y) -> x & y): New patterns.
15651
15652 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
15653
15654 * rtl.h (emit): Add an optional boolean parameter to control
15655 whether barriers are emitted.
15656 * emit-rtl.c (emit): Likewise.
15657 * gensupport.c (get_emit_function): Return null rather than "emit".
15658 * genemit.c (gen_emit_seq): Handle the null return value.
15659 Don't emit barriers after the final instruction in the sequence.
15660 * gentarget-def.c (main): Don't emit barriers after the instruction.
15661
15662 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15663
15664 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
15665 TARGET_UNIFIED_ASM.
15666
15667 2015-06-26 Richard Biener <rguenther@suse.de>
15668
15669 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
15670
15671 2015-06-26 Richard Biener <rguenther@suse.de>
15672
15673 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
15674 irrespective on whether the inner operation has a single use
15675 of both off are constant.
15676
15677 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
15678 Segher Boessenkool <segher@kernel.crashing.org>
15679
15680 PR target/66412
15681 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
15682 before doing PUT_MODE or PUT_CODE on operands to avoid
15683 in-place RTX modification.
15684
15685 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
15686
15687 * gentarget-def.c (def_target_insn): Cast return of strtol to
15688 unsigned int.
15689
15690 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
15691
15692 * gimple.h (gimple_call_set_fn): Move inline function.
15693 * gimple.c (gimple_call_set_fn): Relocate here.
15694
15695 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
15696
15697 PR target/65979
15698 PR target/66611
15699 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
15700 the replacement insn will work.
15701
15702 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
15703
15704 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
15705 by default.
15706
15707 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
15708
15709 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
15710 * cgraph.h: Include ipa-ref.h and plugin-api.h.
15711 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
15712 (symtab_node::address_can_be_compared_p): Move function.
15713 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
15714 definition here.
15715 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
15716 * auto-profile.c: Likewise.
15717 * bb-reorder.c: Likewise.
15718 * builtins.c: Likewise.
15719 * calls.c: Likewise.
15720 * cfgexpand.c: Likewise.
15721 * cgraphbuild.c: Likewise.
15722 * cgraphclones.c: Likewise.
15723 * cgraphunit.c: Likewise.
15724 * combine.c: Likewise.
15725 * coverage.c: Likewise.
15726 * data-streamer-in.c: Likewise.
15727 * data-streamer-out.c: Likewise.
15728 * data-streamer.c: Likewise.
15729 * dbxout.c: Likewise.
15730 * dwarf2out.c: Likewise.
15731 * except.c: Likewise.
15732 * expr.c: Likewise.
15733 * final.c: Likewise.
15734 * fold-const.c: Likewise.
15735 * ggc-page.c: Likewise.
15736 * gimple-fold.c: Likewise.
15737 * gimple-iterator.c: Likewise.
15738 * gimple-pretty-print.c: Likewise.
15739 * gimple-streamer-in.c: Likewise.
15740 * gimple-streamer-out.c: Likewise.
15741 * gimple.c: Likewise.
15742 * gimplify.c: Likewise.
15743 * ipa-chkp.c: Likewise.
15744 * ipa-comdats.c: Likewise.
15745 * ipa-cp.c: Likewise.
15746 * ipa-devirt.c: Likewise.
15747 * ipa-icf-gimple.c: Likewise.
15748 * ipa-icf.c: Likewise.
15749 * ipa-inline-analysis.c: Likewise.
15750 * ipa-inline-transform.c: Likewise.
15751 * ipa-inline.c: Likewise.
15752 * ipa-polymorphic-call.c: Likewise.
15753 * ipa-profile.c: Likewise.
15754 * ipa-prop.c: Likewise.
15755 * ipa-pure-const.c: Likewise.
15756 * ipa-ref.c: Likewise.
15757 * ipa-reference.c: Likewise.
15758 * ipa-split.c: Likewise.
15759 * ipa-utils.c: Likewise.
15760 * ipa-visibility.c: Likewise.
15761 * ipa.c: Likewise.
15762 * langhooks.c: Likewise.
15763 * lto-cgraph.c: Likewise.
15764 * lto-compress.c: Likewise.
15765 * lto-opts.c: Likewise.
15766 * lto-section-in.c: Likewise.
15767 * lto-section-out.c: Likewise.
15768 * lto-streamer-in.c: Likewise.
15769 * lto-streamer-out.c: Likewise.
15770 * lto-streamer.c: Likewise.
15771 * omp-low.c: Likewise.
15772 * opts-global.c: Likewise.
15773 * passes.c: Likewise.
15774 * predict.c: Likewise.
15775 * print-tree.c: Likewise.
15776 * profile.c: Likewise.
15777 * ree.c: Likewise.
15778 * sanopt.c: Likewise.
15779 * stor-layout.c: Likewise.
15780 * symtab.c: Likewise.
15781 * toplev.c: Likewise.
15782 * trans-mem.c: Likewise.
15783 * tree-cfg.c: Likewise.
15784 * tree-chkp.c: Likewise.
15785 * tree-eh.c: Likewise.
15786 * tree-emutls.c: Likewise.
15787 * tree-inline.c: Likewise.
15788 * tree-nested.c: Likewise.
15789 * tree-parloops.c: Likewise.
15790 * tree-pretty-print.c: Likewise.
15791 * tree-profile.c: Likewise.
15792 * tree-sra.c: Likewise.
15793 * tree-ssa-alias.c: Likewise.
15794 * tree-ssa-live.c: Likewise.
15795 * tree-ssa-loop-ivcanon.c: Likewise.
15796 * tree-ssa-loop-ivopts.c: Likewise.
15797 * tree-ssa-pre.c: Likewise.
15798 * tree-ssa-sccvn.c: Likewise.
15799 * tree-ssa-strlen.c: Likewise.
15800 * tree-ssa-structalias.c: Likewise.
15801 * tree-streamer-in.c: Likewise.
15802 * tree-streamer-out.c: Likewise.
15803 * tree-streamer.c: Likewise.
15804 * tree-switch-conversion.c: Likewise.
15805 * tree-tailcall.c: Likewise.
15806 * tree-vect-data-refs.c: Likewise.
15807 * tree-vect-stmts.c: Likewise.
15808 * tree-vectorizer.c: Likewise.
15809 * tree.c: Likewise.
15810 * tsan.c: Likewise.
15811 * ubsan.c: Likewise.
15812 * value-prof.c: Likewise.
15813 * varasm.c: Likewise.
15814 * varpool.c: Likewise.
15815 * config/arm/arm.c: Likewise.
15816 * config/bfin/bfin.c: Likewise.
15817 * config/c6x/c6x.c: Likewise.
15818 * config/cris/cris.c: Likewise.
15819 * config/darwin-c.c: Likewise.
15820 * config/darwin.c: Likewise.
15821 * config/i386/i386.c: Likewise.
15822 * config/i386/winnt.c: Likewise.
15823 * config/microblaze/microblaze.c: Likewise.
15824 * config/mips/mips.c: Likewise.
15825 * config/rs6000/rs6000.c: Likewise.
15826 * config/rx/rx.c: Likewise.
15827 * config/s390/s390.c: Likewise.
15828 * config/tilegx/mul-tables.c: Likewise.
15829
15830 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15831
15832 * config/aarch64/aarch64.c, config/alpha/alpha.c,
15833 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
15834 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
15835 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
15836 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
15837 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
15838 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
15839 config/microblaze/microblaze.c, config/mips/mips.c,
15840 config/mmix/mmix.c, config/mn10300/mn10300.c,
15841 config/moxie/moxie.c, config/msp430/msp430.c,
15842 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
15843 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
15844 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
15845 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
15846 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
15847 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
15848 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
15849 target-def.h include.
15850 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
15851
15852 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15853
15854 * Makefile.in (TARGET_DEF): Add target-insns.def.
15855 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
15856 (build/gentarget-def.o): New rule.
15857 (genprogrtl): Add target-def.
15858 * target-insns.def, gentarget-def.c: New files.
15859 * target.def: Add targetm.have_* and targetm.gen_* hooks,
15860 based on the contents of target-insns.def.
15861 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
15862 (HAVE_return, gen_return): Delete.
15863 * target-def.h: Include insn-target-def.h.
15864 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
15865 instead of direct calls. Rely on them to do the appropriate assertions.
15866 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
15867 (convert_jumps_to_returns): Use targetm interface instead of
15868 direct calls.
15869 (thread_prologue_and_epilogue_insns): Likewise.
15870 * reorg.c (find_end_label, dbr_schedule): Likewise.
15871 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
15872 * shrink-wrap.c (convert_to_simple_return): Likewise.
15873 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
15874
15875 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15876
15877 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
15878 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
15879 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
15880 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
15881 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
15882 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
15883 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
15884 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
15885 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
15886 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
15887 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
15888 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
15889 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
15890 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
15891 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
15892 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
15893 includes to end.
15894
15895 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15896
15897 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
15898 (unbounded_int_hashmap_traits::key_type): Likewise.
15899 * hash-map.h (hash_map): Get the key type from the traits.
15900 * hash-traits.h (default_hash_traits): By default, inherit from the
15901 template parameter.
15902 * alias.c (alias_set_traits): Delete.
15903 (alias_set_entry_d::children): Use alias_set_hash as the first
15904 template parameter.
15905 (record_alias_subset): Update accordingly.
15906 * except.c (tree_hash_traits): Delete.
15907 (type_to_runtime_map): Use tree_hash as the first template parameter.
15908 (init_eh): Update accordingly.
15909 * genmatch.c (capture_id_map_hasher): Delete.
15910 (cid_map_t): Use nofree_string_hash as first template parameter.
15911 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
15912 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
15913 Use symbol_compare_hash as the first template parameter in
15914 subdivide_hash_map.
15915 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
15916 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
15917 template parameter.
15918 * passes.c (pass_registry_hasher): Delete.
15919 (name_to_pass_map): Use nofree_string_hash as the first template
15920 parameter.
15921 (register_pass_name): Update accordingly.
15922 * sanopt.c (sanopt_tree_map_traits): Delete.
15923 (sanopt_tree_triplet_map_traits): Delete.
15924 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
15925 template parameter.
15926 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
15927 the first template parameter.
15928 * sese.c (rename_map_hasher): Delete.
15929 (rename_map_type): Use tree_ssa_name_hash as the first template
15930 parameter.
15931 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
15932 (function_summary::m_map): Use map_hash as the first template
15933 parameter.
15934 (function_summary::release): Update accordingly.
15935 * tree-if-conv.c (phi_args_hash_traits): Delete.
15936 (predicate_scalar_phi): Use tree_operand_hash as the first template
15937 parameter to phi_arg_map.
15938 * tree-inline.h (dependence_hasher): Delete.
15939 (copy_body_data::dependence_map): Use dependence_hash as the first
15940 template parameter.
15941 * tree-inline.c (remap_dependence_clique): Update accordingly.
15942 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
15943 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
15944 parameter.
15945 (addr_stridxptr): Update accordingly.
15946 * value-prof.c (profile_id_traits): Delete.
15947 (cgraph_node_map): Use profile_id_hash as the first template
15948 parameter.
15949 (init_node_map): Update accordingly.
15950 * config/alpha/alpha.c (string_traits): Delete.
15951 (machine_function::links): Use nofree_string_hash as the first
15952 template parameter.
15953 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
15954 * config/m32c/m32c.c (pragma_traits): Delete.
15955 (pragma_htab): Use nofree_string_hash as the first template parameter.
15956 (m32c_note_pragma_address): Update accordingly.
15957 * config/mep/mep.c (pragma_traits): Delete.
15958 (pragma_htab): Use nofree_string_hash as the first template parameter.
15959 (mep_note_pragma_flag): Update accordingly.
15960 * config/mips/mips.c (mips16_flip_traits): Delete.
15961 (mflip_mips16_htab): Use nofree_string_hash as the first template
15962 parameter.
15963 (mflip_mips16_use_mips16_p): Update accordingly.
15964 (local_alias_traits): Delete.
15965 (mips16_local_aliases): Use nofree_string_hash as the first template
15966 parameter.
15967 (mips16_local_alias): Update accordingly.
15968
15969 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15970
15971 * hash-map-traits.h (default_hashmap_traits): Delete.
15972
15973 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15974
15975 * hash-map-traits.h (unbounded_hashmap_traits): New class.
15976 (unbounded_int_hashmap_traits): Likewise.
15977 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
15978
15979 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15980
15981 * ipa-icf.h (symbol_compare_hash): New class.
15982 (symbol_compare_hashmap_traits): Use it.
15983 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
15984 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
15985 (mem_alloc_description::reverse_mem_map_t): Remove redundant
15986 default_hashmap_traits.
15987 * sanopt.c (sanopt_tree_triplet_hash): New class.
15988 (sanopt_tree_triplet_map_traits): Use it.
15989
15990 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15991
15992 * gengtype-parse.c (require_template_declaration): Allow '+' in
15993 template parameters. Consolidate cases.
15994 * hash-traits.h (int_hash): New class.
15995 * alias.c (alias_set_hash): New structure.
15996 (alias_set_traits): Use it.
15997 * symbol-summary.h (function_summary::map_hash): New class.
15998 (function_summary::summary_hashmap_traits): Use it.
15999 * tree-inline.h (dependence_hash): New class.
16000 (dependence_hasher): Use it.
16001 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
16002 * value-prof.c (profile_id_hash): New class.
16003 (profile_id_traits): Use it.
16004
16005 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16006
16007 * config/mips/mips.c (mips16_flip_traits): Use it.
16008 (local_alias_traits, mips16_local_aliases): Convert from a map of
16009 rtxes to a map of symbol names.
16010 (mips16_local_alias): Update accordingly.
16011
16012 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16013
16014 * hash-traits.h (string_hash, nofree_string_hash): New classes.
16015 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
16016 * passes.c (pass_registry_hasher): Likewise.
16017 * config/alpha/alpha.c (string_traits): Likewise.
16018 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
16019 * config/m32c/m32c.c (pragma_traits): Likewise.
16020 * config/mep/mep.c (pragma_traits): Likewise.
16021
16022 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16023
16024 * tree-hash-traits.h (tree_hash): New class.
16025 * except.c: Include tree-hash-traits.h.
16026 (tree_hash_traits): Use tree_hash.
16027
16028 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16029
16030 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
16031 * sese.c: Include tree-hash-traits.h.
16032 (rename_map_hasher): Use tree_ssa_name_hasher.
16033
16034 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16035
16036 * tree-hash-traits.h (tree_decl_hash): New class.
16037 * tree-ssa-strlen.c: Include tree-hash-traits.h.
16038 (stridxlist_hash_traits): Use tree_decl_hash.
16039
16040 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16041
16042 * tree-hash-traits.h: New file.
16043 (tree_operand_hash): New class.
16044 * sanopt.c: Include tree-hash-traits.h.
16045 (sanopt_tree_map_traits): Use tree_operand_hash.
16046 * tree-if-conv.c: Include tree-hash-traits.h.
16047 (phi_args_hash_traits): Use tree_operand_hash.
16048 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
16049 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
16050
16051 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16052
16053 * hash-map-traits.h: Include hash-traits.h.
16054 (simple_hashmap_traits): New class.
16055 * mem-stats.h (hash_map): Change the default traits to
16056 simple_hashmap_traits<default_hash_traits<Key> >.
16057
16058 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16059
16060 * hash-table.h: Update comments.
16061
16062 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16063
16064 * hash-traits.h (default_hash_traits): New structure.
16065 * hash-set.h (default_hashset_traits): Delete.
16066 (hash_set): Use default_hash_traits<Key> instead of
16067 default_hashset_traits. Delete hash_entry type and use Key directly.
16068 * ipa-devirt.c (pair_traits): Delete.
16069 (default_hash_traits <type_pair>): Override.
16070 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
16071 (odr_types_equivalent_p, add_type_duplicate): Likewise.
16072
16073 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16074
16075 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
16076
16077 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16078
16079 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
16080 (has_is_empty, is_empty_helper): Delete.
16081 (has_mark_deleted, mark_deleted_helper): Delete.
16082 (has_mark_empty, mark_empty_helper): Delete.
16083 (hash_table::is_deleted): Call the Descriptor unconditionally.
16084 (hash_table::is_empty): Likewise.
16085 (hash_table::mark_deleted): Likewise.
16086 (hash_table::mark_empty): Likewise.
16087
16088 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16089
16090 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
16091 redundant typedefs and members.
16092 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
16093 redundant typedefs.
16094 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
16095 * ipa-devirt.c (odr_name_hasher): Likewise.
16096 (polymorphic_call_target_hasher): Likewise.
16097 * ira-costs.c (cost_classes_hasher): Likewise.
16098 * statistics.c (stats_counter_hasher): Likewise.
16099 * trans-mem.c (log_entry_hasher): Likewise.
16100 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
16101 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
16102 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
16103 * var-tracking.c (variable_hasher): Likewise.
16104 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
16105 Remove redundant typedefs and members.
16106
16107 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16108
16109 * hash-traits.h (ggc_cache_hasher): Rename to...
16110 (ggc_cache_remove): ...this and remove typedefs.
16111 (ggc_cache_ptr_hash): New class.
16112 * hash-table.h: Update commentary.
16113 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
16114 rather than ggc_cache_hasher.
16115 (const_wide_int_hasher, reg_attr_hasher): Likewise.
16116 (const_double_hasher, const_fixed_hasher): Likewise.
16117 * function.c (insn_cache_hasher): Likewise.
16118 * trans-mem.c (tm_wrapper_hasher): Likewise.
16119 * tree.h (tree_decl_map_cache_hasher): Likewise.
16120 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
16121 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
16122 * ubsan.c (tree_type_map_cache_hasher): Likewise.
16123 * varasm.c (tm_clone_hasher): Likewise.
16124 * config/i386/i386.c (dllimport_hasher): Likewise.
16125 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
16126 (tree_hasher): Likewise.
16127
16128 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16129
16130 * hash-traits.h (ggc_hasher): Rename to...
16131 (ggc_remover): ...this and remove typedefs.
16132 (ggc_cache_hasher): Update accordingly. Add typedefs.
16133 (ggc_ptr_hash): New class.
16134 * hash-table.h: Update comment.
16135 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
16136 ggc_hasher.
16137 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
16138 (tree_descriptor_hasher): Likewise.
16139 * cgraph.c (function_version_hasher): Likewise.
16140 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
16141 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
16142 (dw_loc_list_hasher, addr_hasher): Likewise.
16143 * function.h (used_type_hasher): Likewise.
16144 * function.c (temp_address_hasher): Likewise.
16145 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
16146 * libfuncs.h (libfunc_hasher): Likewise.
16147 * lto-streamer.h (decl_state_hasher): Likewise.
16148 * optabs.c (libfunc_decl_hasher): Likewise.
16149 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
16150 * varasm.c (section_hasher, object_block_hasher): Likewise.
16151 (const_rtx_desc_hasher): Likewise.
16152 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
16153 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
16154
16155 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16156
16157 * hash-traits.h (free_ptr_hash): New class.
16158 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
16159 rather than typed_free_remove. Remove redudant typedefs.
16160 (external_ref_hasher): Likewise.
16161 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
16162 (ehspec_hasher): Likewise.
16163 * ggc-common.c (saving_hasher): Likewise.
16164 * gimplify.c (gimplify_hasher): Likewise.
16165 * haifa-sched.c (delay_i2_hasher): Likewise.
16166 * loop-invariant.c (invariant_expr_hasher): Likewise.
16167 * loop-iv.c (biv_entry_hasher): Likewise.
16168 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
16169 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
16170 * tree-cfg.c (locus_discrim_hasher): Likewise.
16171 * tree-eh.c (finally_tree_hasher): Likewise.
16172 * tree-into-ssa.c (var_info_hasher): Likewise.
16173 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
16174 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
16175 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
16176 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
16177 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
16178 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
16179 (shared_bitmap_hasher): Likewise.
16180 * tree-ssa-threadupdate.c (redirection_data): Likewise.
16181 * tree-vectorizer.h (peel_info_hasher): Likewise.
16182 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
16183 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
16184
16185 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16186
16187 * hash-table.h: Update comments.
16188 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
16189 (nofree_ptr_hash): New class.
16190 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
16191 than typed_noop_remove. Remove redudant typedefs.
16192 * attribs.c (attribute_hasher): Likewise.
16193 * cfg.c (bb_copy_hasher): Likewise.
16194 * cselib.c (cselib_hasher): Likewise.
16195 * dse.c (invariant_group_base_hasher): Likewise.
16196 * dwarf2cfi.c (trace_info_hasher): Likewise.
16197 * dwarf2out.c (macinfo_entry_hasher): Likewise.
16198 (comdat_type_hasher, loc_list_hasher): Likewise.
16199 * gcse.c (pre_ldst_expr_hasher): Likewise.
16200 * genmatch.c (id_base): Likewise.
16201 * genrecog.c (test_pattern_hasher): Likewise.
16202 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
16203 * haifa-sched.c (delay_i1_hasher): Likewise.
16204 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
16205 * ipa-icf.h (congruence_class_group_hash): Likewise.
16206 * ipa-profile.c (histogram_hash): Likewise.
16207 * ira-color.c (allocno_hard_regs_hasher): Likewise.
16208 * lto-streamer.h (string_slot_hasher): Likewise.
16209 * lto-streamer.c (tree_entry_hasher): Likewise.
16210 * plugin.c (event_hasher): Likewise.
16211 * postreload-gcse.c (expr_hasher): Likewise.
16212 * store-motion.c (st_expr_hasher): Likewise.
16213 * tree-sra.c (uid_decl_hasher): Likewise.
16214 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
16215 (ssa_name_var_hash): Likewise.
16216 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
16217 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
16218 * tree-ssa-pre.c (pre_expr_d): Likewise.
16219 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
16220 * vtable-verify.h (registration_hasher): Likewise.
16221 * vtable-verify.c (vtbl_map_hasher): Likewise.
16222 * config/arm/arm.c (libcall_hasher): Likewise.
16223 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
16224 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
16225 * config/sol2.c (comdat_entry_hasher): Likewise.
16226 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
16227 (print_fold_checksum, fold_checksum_tree): Likewise.
16228 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
16229 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
16230 (fold_build_call_array_loc): Likewise.
16231 * tree-ssa-ccp.c (gimple_htab): Likewise.
16232 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
16233 rather than pointer_type.
16234
16235 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16236
16237 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
16238 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
16239
16240 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16241
16242 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
16243 (ggc_hasher::ggc_mx): Likewise.
16244 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
16245 that duplicate ggc_hasher ones.
16246
16247 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16248
16249 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
16250 (gt_cleare_cache): Check here for deleted and empty entries.
16251 Replace handle_cache_entry with a call to keep_cache_entry.
16252 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
16253 (ggc_cache_hasher::keep_cache_entry): New function.
16254 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
16255 (tm_wrapper_hasher::keep_cache_entry): New function.
16256 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
16257 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
16258 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
16259 (type_cache_hasher::keep_cache_entry): New function.
16260 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
16261 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
16262 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
16263 (tree_type_map_cache_hasher::keep_cache_entry): New function.
16264 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
16265 (tm_clone_hasher::keep_cache_entry): New function.
16266 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
16267 (dllimport_hasher::keep_cache_entry): New function.
16268
16269 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16270
16271 * hash-table.h: Include hash-traits.h.
16272 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
16273 (ggc_cache_hasher): Move to...
16274 * hash-traits.h: ...this new file.
16275
16276 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
16277
16278 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
16279 struct cl_optimization.
16280 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
16281 * tree.c (make_node_stat): Allocate cl_optimization struct.
16282 (copy_node_stat): Allocate and copy cl_optimization struct.
16283
16284 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
16285
16286 * function.h (struct incoming_args): Move struct.
16287 (pass_by_reference, reference_callee_copied): Remove prototypes.
16288 * emit-rtl.h (struct incoming_args): Relocate struct here.
16289 * calls.h (pass_by_reference, reference_callee_copied): Relocate
16290 prototypes here.
16291 * function.c (pass_by_reference, reference_callee_copied): Move.
16292 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
16293 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
16294 * ipa-chkp.c: Include calls.h.
16295
16296 2015-06-25 Andrew Macleod <amacleod@redhat.com>
16297
16298 * alias.h (alias_set_type): Move typedef.
16299 * coretypes.h (alias_set_type): Relocate typedef here.
16300 * rtl.h: Don't include alias.h.
16301
16302 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
16303
16304 * cgraph.h (cgraph_rtl_info): Move to rtl.h
16305 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
16306 and instance.
16307 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
16308 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
16309 doesn't exist.
16310 * calls.c: Include hard-reg-set.h before rtl.h.
16311 * ira.c: Likewise.
16312
16313 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16314 Vladimir Makarov <vmakarov@redhat.com>
16315
16316 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
16317 Add assert.
16318
16319 2015-06-25 Richard Biener <rguenther@suse.de>
16320
16321 * fold-const.c (fold_binary_loc): Move simplification of
16322 (X <<>> C1) & C2 ...
16323 * match.pd: ... here.
16324
16325 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
16326
16327 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
16328
16329 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16330
16331 * match.pd: Add patterns for vec_conds between 1 and 0.
16332
16333 2015-06-25 Richard Biener <rguenther@suse.de>
16334
16335 * tree-vect-stmts.c (vectorizable_conversion): Do not set
16336 STMT_VINFO_VEC_STMT for SLP.
16337 (vectorizable_store): Likewise.
16338 (vectorizable_load): Likewise.
16339 (vect_transform_stmt): Catch SLP vectorization clobbering
16340 STMT_VINFO_VEC_STMT.
16341
16342 2015-06-25 Richard Biener <rguenther@suse.de>
16343
16344 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
16345 dumping.
16346 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
16347 cleanup resulting dead code and parameters.
16348 (vect_transform_slp_perm_load): Adjust.
16349
16350 2015-06-25 Nick Clifton <nickc@redhat.com>
16351
16352 * config/bfin/bfin.c (bfin_expand_prologue): Set
16353 current_function_static_stack_size if flag_stack_usage_info is set.
16354 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
16355 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
16356 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
16357 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
16358
16359 2015-06-25 Tom de Vries <tom@codesourcery.com>
16360
16361 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
16362 comment that the generated IV is unsigned.
16363
16364 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16365
16366 PR target/29693
16367 * config/arm/arm.c (arm_dbx_register_number): Return
16368 DWARF_FRAME_REGISTERS by default.
16369
16370 2015-06-25 Tom de Vries <tom@codesourcery.com>
16371
16372 * dominance.c (calculate_dominance_info): Fix verify_dominators call
16373 argument. Call verify_dominator when reusing dominator info.
16374
16375 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
16376
16377 PR target/66563
16378 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
16379 an additional element of the unspec vector. Modify indices
16380 of operands.
16381 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
16382 * config/sh/sh.c (prepare_move_operands): Pass incremented
16383 const_int to gen_GOTaddr2picreg.
16384 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
16385
16386 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
16387
16388 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
16389 Condition on TARGET_FLOAT.
16390
16391 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
16392
16393 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
16394 and (no)crypto.
16395
16396 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
16397
16398 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
16399
16400 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
16401 aarch64_err_no_fpadvsimd.
16402
16403 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
16404 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
16405 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
16406 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
16407 Turn error into assert, test TARGET_FLOAT.
16408 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
16409 TARGET_FLOAT.
16410
16411 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
16412
16413 PR debug/66482
16414 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
16415
16416 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
16417
16418 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
16419
16420 2015-06-24 Renlin Li <renlin.li@arm.com>
16421
16422 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
16423 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
16424
16425 2015-06-24 Richard Biener <rguenther@suse.de>
16426
16427 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
16428 (main): Likewise.
16429 (lower_opt_convert): Support lowering of conditional view_convert.
16430 (parser::parse_operation): Likewise.
16431 (parser::parse_for): Likewise.
16432
16433 2015-06-24 Renlin Li <renlin.li@arm.com>
16434
16435 * varasm.c (emit_local): Use unsigned int for align variable.
16436
16437 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16438
16439 PR target/63408
16440 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
16441 for negative numbers.
16442
16443 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16444
16445 PR rtl-optimization/66306
16446 * reload.c (find_reloads): Swap the match_dup info for
16447 commutative operands.
16448
16449 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16450
16451 * config/s390/vx-builtins.md
16452 ("vec_scatter_element<mode>_<non_vec_int>")
16453 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
16454 attribute with bhfgq.
16455
16456 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16457
16458 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
16459
16460 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16461
16462 * config/s390/s390-builtin-types.def: Add flag to indicate the
16463 options under which the function type is needed.
16464 * config/s390/s390-builtins.def: Add flag to indicate the options
16465 under which the builtin is enabled.
16466 * config/s390/s390-builtins.h: Add flags parameter to macro
16467 definitions.
16468 (bflags_for_builtin): New function.
16469 (flags_for_builtin): Renamed to ...
16470 (opflags_for_builtin): ... this.
16471 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
16472 flags_for_builtin to bflags_for_builtin and
16473 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
16474 * config/s390/s390.c: Add initialization of bflags_builtin and
16475 opflags_builtin arrays.
16476 Remove code for flags_builtin.
16477 (s390_init_builtins): Only create builtin function types if one of
16478 their flags is active.
16479 Only create builtins if all of their flags are active.
16480 (s390_expand_builtin): Rename flags_for_builtin to
16481 opflags_for_builtin.
16482
16483 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16484
16485 * config/s390/vecintrin.h: Remove internal builtins.
16486
16487 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16488
16489 * config/s390/s390.c (s390_secondary_reload): Fix check for
16490 GENERAL_REGS register class.
16491
16492 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16493
16494 * config/s390/s390.c (s390_support_vector_misalignment): Call
16495 default implementation for !TARGET_VX.
16496
16497 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16498
16499 * config/s390/s390.c (s390_legitimate_constant_p): Add
16500 TARGET_VX check.
16501
16502 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16503
16504 * config/s390/s390.c (s390_vector_abi): New variable definition.
16505 (s390_check_type_for_vector_abi): New function.
16506 (TARGET_ASM_FILE_END): New macro definition.
16507 (s390_asm_file_end): New function.
16508 (s390_function_arg): Call s390_check_type_for_vector_abi.
16509 (s390_gimplify_va_arg): Likewise.
16510 * configure: Regenerate.
16511 * configure.ac: Check for .gnu_attribute Binutils feature.
16512
16513 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
16514
16515 PR target/65803
16516 * config/bfin/bfin.c (hwloop_optimize): Initialize
16517 JUMP_LABEL for newly created jump.
16518
16519 2015-06-23 Tristan Gingold <gingold@adacore.com>
16520
16521 * collect-utils.c (collect_wait): Unlink the response file here
16522 instead of...
16523 (do_wait): ...here.
16524 (utils_cleanup): ...and here.
16525
16526 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
16527
16528 * df-scan.c: Don't include target-def.h.
16529 * targhooks.c: Likewise.
16530 * config/arm/arm-c.c: Likewise.
16531 * config/i386/i386-c.c: Likewise.
16532 * config/nds32/nds32-cost.c: Likewise.
16533 * config/nds32/nds32-fp-as-gp.c: Likewise.
16534 * config/nds32/nds32-intrinsic.c: Likewise.
16535 * config/nds32/nds32-isr.c: Likewise.
16536 * config/nds32/nds32-md-auxiliary.c: Likewise.
16537 * config/nds32/nds32-memory-manipulation.c: Likewise.
16538 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16539 * config/nds32/nds32-predicates.c: Likewise.
16540
16541 2015-06-23 Richard Biener <rguenther@suse.de>
16542
16543 PR tree-optimization/66636
16544 * tree-vect-stmts.c (vectorizable_store): Properly compute the
16545 def type for further defs for strided stores.
16546
16547 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
16548
16549 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
16550 conditional selects.
16551 (setcc_int<mode>, setcc_float<mode>): Reformat.
16552
16553 2015-06-23 Marek Polacek <polacek@redhat.com>
16554
16555 * match.pd ((x + y) - (x | y) -> x & y,
16556 (x + y) - (x & y) -> x | y): New patterns.
16557
16558 2015-06-23 Ludovic Courtès <ludo@gnu.org>
16559
16560 PR 65711
16561 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
16562 '-dynamic-linker' within %{!shared: ...}.
16563
16564 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
16565
16566 PR target/66560
16567 * config/i386/predicates.md (addsub_vm_operator): New predicate.
16568 (addsub_vs_operator): Ditto.
16569 (addsub_vs_parallel): Ditto.
16570 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
16571 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
16572 Put minus RTX before plus and adjust vec_merge selector.
16573 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
16574 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
16575 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
16576 (addsub vec_merge splitters): New combiner splitters.
16577 (addsub vec_select/vec_concat splitters): Ditto.
16578
16579 2015-06-23 Bin Cheng <bin.cheng@arm.com>
16580
16581 PR tree-optimization/66449
16582 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
16583 POINTER_PLUS_EXPR for pointers.
16584
16585 2015-06-23 Alan Modra <amodra@gmail.com>
16586
16587 * rtlanal.c (commutative_operand_precedence): Correct comments.
16588 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
16589 declaration. Return an int. Distinguish REG,REG return from
16590 others.
16591 (struct simplify_plus_minus_op_data): Make local to function.
16592 (simplify_plus_minus): Don't set canonicalized if merely sorting
16593 registers. Avoid packing ops if nothing changes. White space fixes.
16594
16595 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
16596
16597 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
16598 -fdump-ada-spec is passed but not if -fsyntax-only is.
16599
16600 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
16601
16602 PR bootstrap/63740
16603 * lra-lives.c (process_bb_lives): Check insn copying the same
16604 reload pseudo and don't create a copy for it.
16605
16606 2015-06-22 Tom de Vries <tom@codesourcery.com>
16607
16608 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
16609 for cond_stmt.
16610
16611 2015-06-22 Tom de Vries <tom@codesourcery.com>
16612
16613 * builtins.def (DEF_GOMP_BUILTIN): Test
16614 'flag_tree_parallelize_loops > 1' instead of
16615 'flag_tree_parallelize_loops'. Test flag_cilkplus.
16616
16617 2015-06-22 Tom de Vries <tom@codesourcery.com>
16618
16619 * dominance.c (calculate_dominance_info): Verify dominators if
16620 early-out.
16621
16622 2015-06-22 Marek Polacek <polacek@redhat.com>
16623
16624 * match.pd ((x ^ y) ^ (x | y) -> x & y,
16625 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
16626 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
16627 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
16628
16629 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
16630
16631 PR target/65871
16632 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
16633 cost of embedded comparison.
16634
16635 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16636
16637 PR target/65914
16638 * config/rs6000/predicates.md (altivec_register_operand): Permit
16639 virtual stack registers.
16640 (vsx_register_operand): Likewise.
16641 (vfloat_operand): Likewise.
16642 (vint_operand): Likewise.
16643 (vlogical_operand): Likewise.
16644
16645 2015-06-22 Richard Biener <rguenther@suse.de>
16646
16647 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
16648 and single_scalar_iteration_cost members.
16649 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
16650 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
16651 (vect_get_single_scalar_iteration_cost): Remove.
16652 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
16653 Use LOOP_VINFO_SCALAR_ITERATION_COST.
16654 * tree-vect-loop.c (destroy_loop_vec_info): Free
16655 scalar_cost_vec.
16656 (vect_get_single_scalar_iteration_cost): Compute result into
16657 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
16658 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
16659 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
16660 (vect_estimate_min_profitable_iters): Use them.
16661
16662 2015-06-22 Christian Bruel <christian.bruel@st.com>
16663
16664 PR target/52144
16665 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
16666 (TARGET_INSERT_ATTRIBUTES): Define.
16667 (thumb_flipper): New var.
16668 * config/arm/arm.opt (-mflip-thumb): New switch.
16669
16670 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
16671 Martin Liska <mliska@suse.cz>
16672
16673 PR ipa/65908
16674 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
16675 construction of arg_types.
16676 (sem_function::sem_function): Likewise.
16677 (sem_function::~sem_function): Remove destruction of arg_types.
16678 (sem_function::compatible_parm_types_p): New function.
16679 (sem_function::equals_wpa): Reorg matching of return values
16680 and parameter types.
16681 (sem_function::equals_private): Reorg mathcing of argument types.
16682 (sem_function::parse_tree_args): Remove.
16683 * ipa-icf.h (init_wpa): Do not call it.
16684 (parse_tree_args): Remove.
16685 (compatible_parm_types_p): Declare.
16686 (result_type): Remove.
16687 (arg_types): Remove.
16688
16689 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
16690
16691 PR ipa/66351
16692 * ipa-polymorphic-call.c
16693 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
16694 initializing alias oracle; fix formating; set base_alias_set if it
16695 is known.
16696
16697 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
16698
16699 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
16700 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
16701 (find_inc): Likewise.
16702 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
16703 swapping.
16704 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
16705 * df-scan.c (df_swap_refs): Remove.
16706 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
16707 * dominance.c (link_roots): Use std::swap instead of manually swapping.
16708 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
16709 * fold-const.c (fold_relational_const): Likewise.
16710 * genattrtab.c (simplify_test_exp): Likewise.
16711 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
16712 gimple_simplify): Likewise.
16713 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
16714 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
16715 * ipa-devirt.c (add_type_duplicate): Likewise.
16716 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
16717 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
16718 * lra.c (lra_create_copy): Likewise.
16719 * lto-streamer-out.c (DFS::DFS): Likewise.
16720 * modulo-sched.c (get_sched_window): Likewise.
16721 * omega.c (omega_pretty_print_problem): Likewise.
16722 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
16723 * reload1.c (reloads_unique_chain_p): Likewise.
16724 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
16725 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
16726 use std::swap.
16727 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
16728 manually swapping.
16729 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
16730 predicate_mem_writes): Likewise.
16731 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
16732 * tree-predcom.c (combine_chains): Likewise.
16733 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
16734 refs_may_alias_p_1): Likewise.
16735 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
16736 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
16737 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
16738 number_of_iterations_cond): Likewise.
16739 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
16740 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
16741 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
16742 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
16743 * tree-vrp.c (extract_range_from_binary_expr_1,
16744 extract_range_from_unary_expr_1): Likewise.
16745
16746 2015-06-20 Marek Polacek <polacek@redhat.com>
16747
16748 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
16749
16750 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
16751
16752 PR target/66591
16753 * config/sh/sh.c (prepare_move_operands): Replace subreg
16754 index term with R0 for base and index addressing.
16755
16756 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
16757
16758 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
16759 op1 is an fp zero.
16760 (movsf_aarch64): Change condition from register_operand to
16761 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
16762 load1. Change type for alternative 7 to store1.
16763 (movdf_aarch64): Likewise.
16764
16765 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
16766
16767 * config/vax/vax.md: Adjust sign/zero extend patterns to
16768 handle SUBREGs in operands[1].
16769
16770 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16771
16772 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
16773 of manually swapping.
16774 (expand_vec_perm_interleave2): Likewise.
16775
16776 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
16777
16778 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
16779 reuse bounds created for abnormal ssa names.
16780
16781 2015-06-19 Jakub Jelinek <jakub@redhat.com>
16782
16783 * config/nvptx/nvptx.md (allocate_stack): Rename to...
16784 (allocate_stack_<mode>): ... this, and add :P on both
16785 match_operand and unspec.
16786 (allocate_stack): New expander.
16787
16788 2015-06-19 Christian Bruel <christian.bruel@st.com>
16789
16790 PR target/66541
16791 PR target/52144
16792 * config/arm/arm.c (arm_set_current_function): Handle
16793 explicit default options.
16794
16795 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
16796
16797 * config/i386/i386.md (*movsicc_noc_zext): New insn.
16798 (zero-extended cmove with mem peephole2): New pattern.
16799 (cmove with mem peephole2): Merge patterns.
16800
16801 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
16802
16803 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
16804
16805 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
16806
16807 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
16808 * config/mips/mips.md (*madd4<mode>): Ditto.
16809 (*nmadd3<mode>) Ditto.
16810 (*nmadd4<mode>_fastmath): Ditto.
16811 (*nmadd3<mode>_fastmath): Ditto.
16812 (*nmsub4<mode>): Ditto.
16813 (*nmsub3<mode>): Ditto.
16814 (*nmsub4<mode>_fastmath): Ditto.
16815 (*nmsub3<mode>_fastmath): Ditto.
16816
16817 2015-06-18 Michael Matz <matz@suse.de>
16818
16819 PR middle-end/66253
16820 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
16821 grouped strided stores.
16822 (vectorizable_load): Don't use the DR from first_stmt in
16823 the non-SLP grouped strided case.
16824
16825 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
16826
16827 PR target/66569
16828 * function.c (assign_bounds): Add arguments assign_regs,
16829 assign_special, assign_bt.
16830 (assign_parms): For vararg functions handle bounds in BT
16831 and special slots after incoming vararg bounds.
16832
16833 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
16834
16835 PR middle-end/66568
16836 * cfgexpand.c (expand_return): Handle missing bounds.
16837 (expand_gimple_stmt_1): Likewise.
16838 * tree-chkp.c (chkp_expand_zero_bounds): New.
16839 * tree-chkp.h (chkp_expand_zero_bounds): New.
16840
16841 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
16842
16843 PR middle-end/66567
16844 * ipa-chkp.c (chkp_maybe_create_clone): Require
16845 functions to be instrumentable.
16846 * tree-chkp.c (chkp_replace_function_pointer): Use
16847 chkp_instrumentable_p instead of attribute check.
16848
16849 2015-06-18 Richard Biener <rguenther@suse.de>
16850
16851 PR tree-optimization/66510
16852 * tree-vect-stmts.c (vectorizable_load): Properly compute the
16853 number of vector loads for SLP permuted loads.
16854 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
16855 check the stride for loop vectorization.
16856 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
16857 vectorization factor.
16858 (vect_analyze_group_access): If the group size is not a power
16859 of two require a epilogue loop.
16860 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
16861 compute and optimizing and alias test pruning after final
16862 vectorization factor computation.
16863 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
16864 vector alignment.
16865 (vect_transform_slp_perm_load): Properly compute the original
16866 number of vector load stmts.
16867
16868 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
16869
16870 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
16871 "unlikely character , in @var" warning.
16872
16873 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
16874
16875 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
16876 (ix86_function_arg_advance): Ditto.
16877 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
16878
16879 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
16880
16881 * function.h (struct rtl_data): Remove struct and accessor macros.
16882 * emit-rtl.h (struct rtl_data): Relocate to here.
16883 * Makefile.in (GTFILES): Add emit-rtl.h.
16884 * df-core.c: Include emit-rtl.h.
16885 * genattrtab.c: Likewise.
16886 * genconditions.c: Likewise.
16887 * genpreds.c: Likewise.
16888 * genrecog.c: Likewise.
16889 * regcprop.c: Likewise.
16890 * resource.c: Likewise.
16891 * sched-rgn.c: Likewise.
16892 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16893 * config/i386/winnt.c: Likewise.
16894
16895 2015-06-17 Jakub Jelinek <jakub@redhat.com>
16896
16897 PR middle-end/66429
16898 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
16899 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
16900 and has_force_vectorize_loops flags from cfun into
16901 child_cfun.
16902 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
16903 if simduid is non-NULL.
16904 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
16905 * passes.def (pass_simduid_cleanup): Add new pass after loop
16906 passes.
16907 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
16908 indirection from htab argument's type.
16909 (shrink_simd_arrays): New function.
16910 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
16911 Don't call adjust_simduid_builtins if there are no loops.
16912 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
16913 (pass_simduid_cleanup::execute): New method.
16914 (make_pass_simduid_cleanup): New function.
16915
16916 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
16917
16918 * tree-core.h (tree_target_option): Make opts field a pointer to a
16919 cl_target_option instead of an instance of the struct.
16920 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
16921 the structure.
16922 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
16923 TARGET_OPTION_NODE.
16924 (copy_node_stat): Allocate and copy struct cl_target_option.
16925
16926 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
16927
16928 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
16929 Remove conditional exposure of prototypes.
16930 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
16931 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
16932 definitions in tree.h with functions.
16933 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
16934 anon_aggrname_p.
16935 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
16936
16937 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
16938
16939 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
16940 (*cmp<mode>_signed): ... this.
16941 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
16942 (*cmp<mode>_unsigned): ... this. Remove %b.
16943
16944 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
16945
16946 * coretypes.h: Include input.h and as-a.h.
16947 * rtl.h: Include input.h and as-a.h for generator files.
16948 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
16949 * vec.c: Don't include diagnostic-core.h.
16950 * alias.c: Do not include input.h, line-map.h or is-a.h.
16951 * asan.c: Likewise.
16952 * attribs.c: Likewise.
16953 * auto-inc-dec.c: Likewise.
16954 * auto-profile.c: Likewise.
16955 * bb-reorder.c: Likewise.
16956 * bt-load.c: Likewise.
16957 * builtins.c: Likewise.
16958 * caller-save.c: Likewise.
16959 * calls.c: Likewise.
16960 * ccmp.c: Likewise.
16961 * cfg.c: Likewise.
16962 * cfganal.c: Likewise.
16963 * cfgbuild.c: Likewise.
16964 * cfgcleanup.c: Likewise.
16965 * cfgexpand.c: Likewise.
16966 * cfghooks.c: Likewise.
16967 * cfgloop.c: Likewise.
16968 * cfgloop.h: Likewise.
16969 * cfgloopanal.c: Likewise.
16970 * cfgloopmanip.c: Likewise.
16971 * cfgrtl.c: Likewise.
16972 * cgraph.c: Likewise.
16973 * cgraphbuild.c: Likewise.
16974 * cgraphclones.c: Likewise.
16975 * cgraphunit.c: Likewise.
16976 * cilk-common.c: Likewise.
16977 * combine-stack-adj.c: Likewise.
16978 * combine.c: Likewise.
16979 * compare-elim.c: Likewise.
16980 * convert.c: Likewise.
16981 * coverage.c: Likewise.
16982 * cppbuiltin.c: Likewise.
16983 * cprop.c: Likewise.
16984 * cse.c: Likewise.
16985 * cselib.c: Likewise.
16986 * data-streamer-in.c: Likewise.
16987 * data-streamer-out.c: Likewise.
16988 * data-streamer.c: Likewise.
16989 * dbxout.c: Likewise.
16990 * dce.c: Likewise.
16991 * ddg.c: Likewise.
16992 * debug.c: Likewise.
16993 * df-core.c: Likewise.
16994 * df-problems.c: Likewise.
16995 * df-scan.c: Likewise.
16996 * df.h: Likewise.
16997 * dfp.c: Likewise.
16998 * diagnostic-core.h: Likewise.
16999 * diagnostic.c: Likewise.
17000 * dojump.c: Likewise.
17001 * dominance.c: Likewise.
17002 * domwalk.c: Likewise.
17003 * double-int.c: Likewise.
17004 * dse.c: Likewise.
17005 * dumpfile.c: Likewise.
17006 * dumpfile.h: Likewise.
17007 * dwarf2asm.c: Likewise.
17008 * dwarf2cfi.c: Likewise.
17009 * dwarf2out.c: Likewise.
17010 * emit-rtl.c: Likewise.
17011 * et-forest.c: Likewise.
17012 * except.c: Likewise.
17013 * explow.c: Likewise.
17014 * expmed.c: Likewise.
17015 * expr.c: Likewise.
17016 * final.c: Likewise.
17017 * fixed-value.c: Likewise.
17018 * fold-const.c: Likewise.
17019 * function.c: Likewise.
17020 * fwprop.c: Likewise.
17021 * gcc-plugin.h: Likewise.
17022 * gcse.c: Likewise.
17023 * generic-match-head.c: Likewise.
17024 * ggc-page.c: Likewise.
17025 * gimple-builder.c: Likewise.
17026 * gimple-expr.c: Likewise.
17027 * gimple-fold.c: Likewise.
17028 * gimple-iterator.c: Likewise.
17029 * gimple-low.c: Likewise.
17030 * gimple-match-head.c: Likewise.
17031 * gimple-pretty-print.c: Likewise.
17032 * gimple-ssa-isolate-paths.c: Likewise.
17033 * gimple-ssa-strength-reduction.c: Likewise.
17034 * gimple-streamer-in.c: Likewise.
17035 * gimple-streamer-out.c: Likewise.
17036 * gimple-streamer.h: Likewise.
17037 * gimple-walk.c: Likewise.
17038 * gimple.c: Likewise.
17039 * gimplify-me.c: Likewise.
17040 * gimplify.c: Likewise.
17041 * godump.c: Likewise.
17042 * graph.c: Likewise.
17043 * graphite-blocking.c: Likewise.
17044 * graphite-dependences.c: Likewise.
17045 * graphite-interchange.c: Likewise.
17046 * graphite-isl-ast-to-gimple.c: Likewise.
17047 * graphite-optimize-isl.c: Likewise.
17048 * graphite-poly.c: Likewise.
17049 * graphite-scop-detection.c: Likewise.
17050 * graphite-sese-to-poly.c: Likewise.
17051 * graphite.c: Likewise.
17052 * haifa-sched.c: Likewise.
17053 * hw-doloop.c: Likewise.
17054 * ifcvt.c: Likewise.
17055 * init-regs.c: Likewise.
17056 * input.c: Likewise.
17057 * internal-fn.c: Likewise.
17058 * ipa-chkp.c: Likewise.
17059 * ipa-comdats.c: Likewise.
17060 * ipa-cp.c: Likewise.
17061 * ipa-devirt.c: Likewise.
17062 * ipa-icf-gimple.c: Likewise.
17063 * ipa-icf.c: Likewise.
17064 * ipa-inline-analysis.c: Likewise.
17065 * ipa-inline-transform.c: Likewise.
17066 * ipa-inline.c: Likewise.
17067 * ipa-polymorphic-call.c: Likewise.
17068 * ipa-profile.c: Likewise.
17069 * ipa-prop.c: Likewise.
17070 * ipa-pure-const.c: Likewise.
17071 * ipa-ref.c: Likewise.
17072 * ipa-reference.c: Likewise.
17073 * ipa-split.c: Likewise.
17074 * ipa-utils.c: Likewise.
17075 * ipa-visibility.c: Likewise.
17076 * ipa.c: Likewise.
17077 * ira-build.c: Likewise.
17078 * ira-color.c: Likewise.
17079 * ira-conflicts.c: Likewise.
17080 * ira-costs.c: Likewise.
17081 * ira-emit.c: Likewise.
17082 * ira-lives.c: Likewise.
17083 * ira.c: Likewise.
17084 * jump.c: Likewise.
17085 * langhooks.c: Likewise.
17086 * lcm.c: Likewise.
17087 * loop-doloop.c: Likewise.
17088 * loop-init.c: Likewise.
17089 * loop-invariant.c: Likewise.
17090 * loop-iv.c: Likewise.
17091 * loop-unroll.c: Likewise.
17092 * lower-subreg.c: Likewise.
17093 * lra-assigns.c: Likewise.
17094 * lra-coalesce.c: Likewise.
17095 * lra-constraints.c: Likewise.
17096 * lra-eliminations.c: Likewise.
17097 * lra-lives.c: Likewise.
17098 * lra-remat.c: Likewise.
17099 * lra-spills.c: Likewise.
17100 * lra.c: Likewise.
17101 * lto-cgraph.c: Likewise.
17102 * lto-compress.c: Likewise.
17103 * lto-opts.c: Likewise.
17104 * lto-section-in.c: Likewise.
17105 * lto-section-out.c: Likewise.
17106 * lto-streamer-in.c: Likewise.
17107 * lto-streamer-out.c: Likewise.
17108 * lto-streamer.c: Likewise.
17109 * mcf.c: Likewise.
17110 * mode-switching.c: Likewise.
17111 * modulo-sched.c: Likewise.
17112 * omega.c: Likewise.
17113 * omp-low.c: Likewise.
17114 * optabs.c: Likewise.
17115 * opts-global.c: Likewise.
17116 * opts.h: Likewise.
17117 * passes.c: Likewise.
17118 * plugin.c: Likewise.
17119 * postreload-gcse.c: Likewise.
17120 * postreload.c: Likewise.
17121 * predict.c: Likewise.
17122 * pretty-print.h: Likewise.
17123 * print-rtl.c: Likewise.
17124 * print-tree.c: Likewise.
17125 * profile.c: Likewise.
17126 * real.c: Likewise.
17127 * realmpfr.c: Likewise.
17128 * recog.c: Likewise.
17129 * ree.c: Likewise.
17130 * reg-stack.c: Likewise.
17131 * regcprop.c: Likewise.
17132 * reginfo.c: Likewise.
17133 * regrename.c: Likewise.
17134 * regstat.c: Likewise.
17135 * reload.c: Likewise.
17136 * reload1.c: Likewise.
17137 * reorg.c: Likewise.
17138 * resource.c: Likewise.
17139 * rtl-chkp.c: Likewise.
17140 * rtl-error.c: Likewise.
17141 * rtlanal.c: Likewise.
17142 * rtlhooks.c: Likewise.
17143 * sanopt.c: Likewise.
17144 * sched-deps.c: Likewise.
17145 * sched-ebb.c: Likewise.
17146 * sched-rgn.c: Likewise.
17147 * sched-vis.c: Likewise.
17148 * sdbout.c: Likewise.
17149 * sel-sched-dump.c: Likewise.
17150 * sel-sched-ir.c: Likewise.
17151 * sel-sched.c: Likewise.
17152 * sese.c: Likewise.
17153 * shrink-wrap.c: Likewise.
17154 * simplify-rtx.c: Likewise.
17155 * stack-ptr-mod.c: Likewise.
17156 * statistics.c: Likewise.
17157 * stmt.c: Likewise.
17158 * stor-layout.c: Likewise.
17159 * store-motion.c: Likewise.
17160 * streamer-hooks.c: Likewise.
17161 * stringpool.c: Likewise.
17162 * symtab.c: Likewise.
17163 * target-globals.c: Likewise.
17164 * targhooks.c: Likewise.
17165 * toplev.c: Likewise.
17166 * tracer.c: Likewise.
17167 * trans-mem.c: Likewise.
17168 * tree-affine.c: Likewise.
17169 * tree-browser.c: Likewise.
17170 * tree-call-cdce.c: Likewise.
17171 * tree-cfg.c: Likewise.
17172 * tree-cfgcleanup.c: Likewise.
17173 * tree-chkp-opt.c: Likewise.
17174 * tree-chkp.c: Likewise.
17175 * tree-chrec.c: Likewise.
17176 * tree-complex.c: Likewise.
17177 * tree-data-ref.c: Likewise.
17178 * tree-dfa.c: Likewise.
17179 * tree-diagnostic.c: Likewise.
17180 * tree-dump.c: Likewise.
17181 * tree-eh.c: Likewise.
17182 * tree-emutls.c: Likewise.
17183 * tree-if-conv.c: Likewise.
17184 * tree-inline.c: Likewise.
17185 * tree-into-ssa.c: Likewise.
17186 * tree-iterator.c: Likewise.
17187 * tree-loop-distribution.c: Likewise.
17188 * tree-nested.c: Likewise.
17189 * tree-nrv.c: Likewise.
17190 * tree-object-size.c: Likewise.
17191 * tree-outof-ssa.c: Likewise.
17192 * tree-parloops.c: Likewise.
17193 * tree-phinodes.c: Likewise.
17194 * tree-predcom.c: Likewise.
17195 * tree-pretty-print.c: Likewise.
17196 * tree-profile.c: Likewise.
17197 * tree-scalar-evolution.c: Likewise.
17198 * tree-sra.c: Likewise.
17199 * tree-ssa-address.c: Likewise.
17200 * tree-ssa-alias.c: Likewise.
17201 * tree-ssa-ccp.c: Likewise.
17202 * tree-ssa-coalesce.c: Likewise.
17203 * tree-ssa-copy.c: Likewise.
17204 * tree-ssa-copyrename.c: Likewise.
17205 * tree-ssa-dce.c: Likewise.
17206 * tree-ssa-dom.c: Likewise.
17207 * tree-ssa-dse.c: Likewise.
17208 * tree-ssa-forwprop.c: Likewise.
17209 * tree-ssa-ifcombine.c: Likewise.
17210 * tree-ssa-live.c: Likewise.
17211 * tree-ssa-loop-ch.c: Likewise.
17212 * tree-ssa-loop-im.c: Likewise.
17213 * tree-ssa-loop-ivcanon.c: Likewise.
17214 * tree-ssa-loop-ivopts.c: Likewise.
17215 * tree-ssa-loop-manip.c: Likewise.
17216 * tree-ssa-loop-niter.c: Likewise.
17217 * tree-ssa-loop-prefetch.c: Likewise.
17218 * tree-ssa-loop-unswitch.c: Likewise.
17219 * tree-ssa-loop.c: Likewise.
17220 * tree-ssa-math-opts.c: Likewise.
17221 * tree-ssa-operands.c: Likewise.
17222 * tree-ssa-phiopt.c: Likewise.
17223 * tree-ssa-phiprop.c: Likewise.
17224 * tree-ssa-pre.c: Likewise.
17225 * tree-ssa-propagate.c: Likewise.
17226 * tree-ssa-reassoc.c: Likewise.
17227 * tree-ssa-sccvn.c: Likewise.
17228 * tree-ssa-scopedtables.c: Likewise.
17229 * tree-ssa-sink.c: Likewise.
17230 * tree-ssa-strlen.c: Likewise.
17231 * tree-ssa-structalias.c: Likewise.
17232 * tree-ssa-tail-merge.c: Likewise.
17233 * tree-ssa-ter.c: Likewise.
17234 * tree-ssa-threadedge.c: Likewise.
17235 * tree-ssa-threadupdate.c: Likewise.
17236 * tree-ssa-uncprop.c: Likewise.
17237 * tree-ssa-uninit.c: Likewise.
17238 * tree-ssa.c: Likewise.
17239 * tree-ssanames.c: Likewise.
17240 * tree-stdarg.c: Likewise.
17241 * tree-streamer-in.c: Likewise.
17242 * tree-streamer-out.c: Likewise.
17243 * tree-streamer.c: Likewise.
17244 * tree-switch-conversion.c: Likewise.
17245 * tree-tailcall.c: Likewise.
17246 * tree-vect-data-refs.c: Likewise.
17247 * tree-vect-generic.c: Likewise.
17248 * tree-vect-loop-manip.c: Likewise.
17249 * tree-vect-loop.c: Likewise.
17250 * tree-vect-patterns.c: Likewise.
17251 * tree-vect-slp.c: Likewise.
17252 * tree-vect-stmts.c: Likewise.
17253 * tree-vectorizer.c: Likewise.
17254 * tree-vrp.c: Likewise.
17255 * tree.c: Likewise.
17256 * tsan.c: Likewise.
17257 * ubsan.c: Likewise.
17258 * valtrack.c: Likewise.
17259 * value-prof.c: Likewise.
17260 * var-tracking.c: Likewise.
17261 * varasm.c: Likewise.
17262 * varpool.c: Likewise.
17263 * vmsdbgout.c: Likewise.
17264 * vtable-verify.c: Likewise.
17265 * web.c: Likewise.
17266 * wide-int.cc: Likewise.
17267 * xcoffout.c: Likewise.
17268 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
17269 * common/common-targhooks.c: Likewise.
17270 * config/aarch64/aarch64-builtins.c: Likewise.
17271 * config/aarch64/aarch64.c: Likewise.
17272 * config/alpha/alpha.c: Likewise.
17273 * config/arc/arc.c: Likewise.
17274 * config/arm/aarch-common.c: Likewise.
17275 * config/arm/arm-builtins.c: Likewise.
17276 * config/arm/arm-c.c: Likewise.
17277 * config/arm/arm.c: Likewise.
17278 * config/avr/avr-c.c: Likewise.
17279 * config/avr/avr-log.c: Likewise.
17280 * config/avr/avr.c: Likewise.
17281 * config/bfin/bfin.c: Likewise.
17282 * config/c6x/c6x.c: Likewise.
17283 * config/cr16/cr16.c: Likewise.
17284 * config/cris/cris.c: Likewise.
17285 * config/darwin-c.c: Likewise.
17286 * config/darwin.c: Likewise.
17287 * config/default-c.c: Likewise.
17288 * config/epiphany/epiphany.c: Likewise.
17289 * config/epiphany/mode-switch-use.c: Likewise.
17290 * config/epiphany/resolve-sw-modes.c: Likewise.
17291 * config/fr30/fr30.c: Likewise.
17292 * config/frv/frv.c: Likewise.
17293 * config/ft32/ft32.c: Likewise.
17294 * config/glibc-c.c: Likewise.
17295 * config/h8300/h8300.c: Likewise.
17296 * config/i386/i386-c.c: Likewise.
17297 * config/i386/i386.c: Likewise.
17298 * config/i386/msformat-c.c: Likewise.
17299 * config/i386/winnt-cxx.c: Likewise.
17300 * config/i386/winnt-stubs.c: Likewise.
17301 * config/i386/winnt.c: Likewise.
17302 * config/ia64/ia64-c.c: Likewise.
17303 * config/ia64/ia64.c: Likewise.
17304 * config/iq2000/iq2000.c: Likewise.
17305 * config/lm32/lm32.c: Likewise.
17306 * config/m32c/m32c-pragma.c: Likewise.
17307 * config/m32c/m32c.c: Likewise.
17308 * config/m32r/m32r.c: Likewise.
17309 * config/m68k/m68k.c: Likewise.
17310 * config/mcore/mcore.c: Likewise.
17311 * config/mep/mep-pragma.c: Likewise.
17312 * config/mep/mep.c: Likewise.
17313 * config/microblaze/microblaze-c.c: Likewise.
17314 * config/microblaze/microblaze.c: Likewise.
17315 * config/mips/mips.c: Likewise.
17316 * config/mmix/mmix.c: Likewise.
17317 * config/mn10300/mn10300.c: Likewise.
17318 * config/moxie/moxie.c: Likewise.
17319 * config/msp430/msp430-c.c: Likewise.
17320 * config/msp430/msp430.c: Likewise.
17321 * config/nds32/nds32-cost.c: Likewise.
17322 * config/nds32/nds32-fp-as-gp.c: Likewise.
17323 * config/nds32/nds32-intrinsic.c: Likewise.
17324 * config/nds32/nds32-isr.c: Likewise.
17325 * config/nds32/nds32-md-auxiliary.c: Likewise.
17326 * config/nds32/nds32-memory-manipulation.c: Likewise.
17327 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17328 * config/nds32/nds32-predicates.c: Likewise.
17329 * config/nds32/nds32.c: Likewise.
17330 * config/nios2/nios2.c: Likewise.
17331 * config/nvptx/nvptx.c: Likewise.
17332 * config/pa/pa.c: Likewise.
17333 * config/pdp11/pdp11.c: Likewise.
17334 * config/rl78/rl78-c.c: Likewise.
17335 * config/rl78/rl78.c: Likewise.
17336 * config/rs6000/rs6000-c.c: Likewise.
17337 * config/rs6000/rs6000.c: Likewise.
17338 * config/rx/rx.c: Likewise.
17339 * config/s390/s390-c.c: Likewise.
17340 * config/s390/s390.c: Likewise.
17341 * config/sh/sh-c.c: Likewise.
17342 * config/sh/sh-mem.cc: Likewise.
17343 * config/sh/sh.c: Likewise.
17344 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
17345 * config/sh/sh_treg_combine.cc: Likewise.
17346 * config/sol2-c.c: Likewise.
17347 * config/sol2-cxx.c: Likewise.
17348 * config/sol2-stubs.c: Likewise.
17349 * config/sol2.c: Likewise.
17350 * config/sparc/sparc-c.c: Likewise.
17351 * config/sparc/sparc.c: Likewise.
17352 * config/spu/spu-c.c: Likewise.
17353 * config/spu/spu.c: Likewise.
17354 * config/stormy16/stormy16.c: Likewise.
17355 * config/tilegx/mul-tables.c: Likewise.
17356 * config/tilegx/tilegx-c.c: Likewise.
17357 * config/tilegx/tilegx.c: Likewise.
17358 * config/tilepro/mul-tables.c: Likewise.
17359 * config/tilepro/tilepro-c.c: Likewise.
17360 * config/tilepro/tilepro.c: Likewise.
17361 * config/v850/v850-c.c: Likewise.
17362 * config/v850/v850.c: Likewise.
17363 * config/vax/vax.c: Likewise.
17364 * config/visium/visium.c: Likewise.
17365 * config/vms/vms-c.c: Likewise.
17366 * config/vms/vms.c: Likewise.
17367 * config/vxworks.c: Likewise.
17368 * config/winnt-c.c: Likewise.
17369 * config/xtensa/xtensa.c: Likewise.
17370
17371 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
17372
17373 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
17374 function.
17375 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
17376
17377 2015-06-17 Richard Biener <rguenther@suse.de>
17378
17379 PR tree-optimization/66251
17380 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
17381 stmts for SLP strided stores.
17382
17383 Revert
17384 2015-05-22 Richard Biener <rguenther@suse.de>
17385
17386 PR tree-optimization/66251
17387 * tree-vect-stmts.c (vectorizable_conversion): Properly
17388 set STMT_VINFO_VEC_STMT even for the SLP case.
17389
17390 2015-05-26 Michael Matz <matz@suse.de>
17391
17392 PR middle-end/66251
17393 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
17394 STMT_VINFO_VEC_STMT, also with SLP.
17395
17396 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
17397
17398 PR target/56766
17399 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
17400 (*avx_addsubv4df3_1s): Ditto.
17401 (*sse3_addsubv2df3_1): Ditto.
17402 (*sse3_addsubv2df3_1s): Ditto.
17403 (*avx_addsubv8sf3_1): Ditto.
17404 (*avx_addsubv8sf3_1s): Ditto.
17405 (*sse3_addsubv4sf3_1): Ditto.
17406 (*sse3_addsubv4sf3_1s): Ditto.
17407
17408 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
17409
17410 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
17411 (SYSROOT_SUFFIX_SPEC): Update.
17412 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
17413 (STARTFILE_PREFIX_SPEC): Update.
17414 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
17415 (MULTILIB_REQUIRED): New.
17416 (MULTILIB_OSDIRNAMES): New.
17417 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
17418 (MULTILIB_REQUIRED): New.
17419 (MULTILIB_OSDIRNAMES): New.
17420
17421 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
17422
17423 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
17424 * config/aarch64/aarch64-options-extensions.def: Update "fP",
17425 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
17426 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
17427 (AARCH64_FL_PAN): New.
17428 (AARCH64_FL_LOR): New.
17429 (AARCH64_FL_RDMA): New.
17430 (AARCH64_FL_FOR_ARCH8_1): New.
17431 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
17432 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
17433
17434 2015-06-16 Martin Liska <mliska@suse.cz>
17435
17436 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
17437 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
17438 guard.
17439
17440 2015-06-16 Richard Biener <rguenther@suse.de>
17441
17442 * tree-vect-stmts.c (vectorizable_store): Adjust.
17443 (vectorizable_load): Likewise.
17444 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
17445 Simplify.
17446 (vect_create_data_ref_ptr): Likewise.
17447 (bump_vector_ptr): Adjust.
17448
17449 2015-06-16 Richard Biener <rguenther@suse.de>
17450
17451 * tree-vect-stmts.c (vectorizable_load): Properly start loads
17452 with the first element if this is grouped loads.
17453
17454 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
17455
17456 * config/arm/arm-protos.h (struct tune_params): Rename
17457 log_op_non_sc to log_op_non_short_circuit, and rename enum
17458 values to expand SC to SHORT_CIRCUIT.
17459 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
17460 to LOG_OP_NON_SHORT_CIRCUIT.
17461 (arm_fastmul_tune):Likewise
17462 (arm_strongarm_tune): Likewise.
17463 (arm_xscale_tune): Likewise.
17464 (arm_9e_tune): Likewise.
17465 (arm_marvell_pj4_tune): Likewise.
17466 (arm_v6t2_tune): Likewise.
17467 (arm_cortex_tune): Likewise.
17468 (arm_cortex_a8_tune): Likewise.
17469 (arm_cortex_a7_tune): Likewise.
17470 (arm_cortex_a15_tune): Likewise.
17471 (arm_cortex_a53_tune): Likewise.
17472 (arm_cortex_a57_tune): Likewise.
17473 (arm_xgene1_tune): Likewise.
17474 (arm_cortex_a5_tune): Likewise.
17475 (arm_cortex_a9_tune): Likewise.
17476 (arm_cortex_a12_tune): Likewise.
17477 (arm_v7m_tune): Likewise.
17478 (arm_cortex_m7_tune): Likewise.
17479 (arm_v6m_tune): Likewise.
17480 (arm_fa726te_tune): Likewise.
17481
17482 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
17483
17484 * altivec.md: Delete UNSPEC_VMLADDUHM.
17485 (mulv4si3_p8): New pattern.
17486 (mulv4si3): Use it for POWER8.
17487 (mulv8hi3): Use vmladduhm with zero addend.
17488 (altivec_vmladduhm): Descriptive RTL.
17489
17490 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
17491
17492 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
17493 to use neon_move instead of mov_imm.
17494 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
17495 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
17496
17497 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
17498 aarch64_float_const_zero_rtx_p check before TFmode check.
17499 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
17500 an fp zero.
17501 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
17502 code and attributes to match. Change condition from register_operand
17503 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
17504 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
17505 to store2.
17506
17507 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
17508
17509 PR debug/66535
17510 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
17511 there is no parent.
17512
17513 2015-06-14 Shiva Chen <shiva0217@gmail.com>
17514
17515 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
17516 HOST_WIDE_INT parameter.
17517
17518 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
17519
17520 PR ipa/66181
17521 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
17522 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
17523 TYPE_NO_FORCE_BLK.
17524 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
17525
17526 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
17527
17528 * rtl.h (classify_insn): Declare.
17529 * emit-rtl.c (classify_insn): Move to...
17530 * rtl.c: ...here and add generator support.
17531 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
17532 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
17533 * genemit.c (gen_emit_seq): New function.
17534 (gen_expand, gen_split): Use it.
17535
17536 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
17537
17538 * tree.c (make_vector_stat): Fix comment to state that the
17539 function returns a VECTOR_CST.
17540
17541 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
17542
17543 * gensupport.h (add_implicit_parallel): Declare.
17544 * genrecog.c (add_implicit_parallel): Move to...
17545 * gensupport.c (add_implicit_parallel): ...here.
17546 (process_one_cond_exec): Use it.
17547 * genemit.c (gen_insn): Likewise.
17548
17549 2015-06-13 Iain Sandoe <iain@codesourcery.com>
17550
17551 PR bootstrap/66448
17552 * passes.c (rest_of_decl_compilation): Do not register globals for
17553 early debug if they are declared in built-ins.
17554
17555 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
17556
17557 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
17558
17559 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17560
17561 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
17562 manually swapping.
17563 (noce_try_cmove_arith): Likewise.
17564 (noce_get_alt_condition): Likewise.
17565
17566 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
17567
17568 * common/config/i386/i386-common.c
17569 (OPTION_MASK_ISA_MWAITX_SET): New.
17570 (ix86_handle_option): Handle mwaitx.
17571 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
17572 (x86_64-*-*): Likewise.
17573 * config/i386/mwaitxintrin.h: New header.
17574 * config/i386/cpuid.h (bit_MWAITX): Define.
17575 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17576 MWAITX support.
17577 * config/i386/i386.opt (mwaitx): New.
17578 * config/i386/i386-builtin-types.def
17579 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
17580 * config/i386/i386-c.c: Define __MWAITX__ if needed.
17581 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
17582 (PTA_MWAITX): New.
17583 (ix86_option_override_internal): Handle new option.
17584 (processor_alias_table): Added PTA_MWAITX.
17585 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
17586 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
17587 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
17588 IX86_BUILTIN_MONITORX built-ins.
17589 * config/i386/i386.h (TARGET_MWAITX): New.
17590 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
17591 UNSPEC_MONITORX.
17592 (mwaitx): New pattern.
17593 (monitorx_<mode>): New pattern.
17594 * config/i386/x86intrin.h: Include mwaitxintrin.h.
17595 * doc/extend.texi: Document monitorx and mwaitx builtins.
17596 * doc/invoke.texi: Document -mmwaitx option.
17597
17598 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
17599
17600 * emit-rtl.c (need_atomic_barrier_p): Mask model with
17601 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
17602
17603 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
17604
17605 * dbxout.c (xcoff_debug_hooks): Provide a function for
17606 register_main_translation_unit hook.
17607
17608 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
17609
17610 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
17611 variants cases from switch.
17612 (rs6000_post_atomic_barrier): Same.
17613 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
17614 (rs6000_expand_atomic_exchange): Same.
17615 (rs6000_expand_atomic_op): Same.
17616 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
17617 SYNC variants cases from switch.
17618 (atomic_load): Same.
17619 (atomic_store): Same.
17620
17621 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
17622
17623 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
17624 CONST_INT for goto.
17625
17626 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
17627
17628 PR bootstrap/66448
17629 * dwarf2out.c (check_die): Check for common duplicate attributes.
17630 (add_location_or_const_value_attribute): Do not add duplicate
17631 attributes.
17632 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
17633 time around.
17634 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
17635 (gen_type_die_with_usage): Call check_die.
17636 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
17637
17638 2015-06-11 Jason Merrill <jason@redhat.com>
17639
17640 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
17641 dies.
17642
17643 2015-06-11 Marek Polacek <polacek@redhat.com>
17644
17645 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
17646
17647 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
17648
17649 PR bootstrap/66252
17650 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
17651 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
17652 (*addx_extend_sp32): Fix pasto.
17653 (*subx_extend): Rename into...
17654 (*subx_extend_sp32): ...this.
17655 (*adddi3_extend_sp32): Add earlyclobber.
17656 (*subdi3_insn_sp32): Likewise.
17657 (*subdi3_extend_sp32): Likewise.
17658 (*and_not_di_sp32): Likewise.
17659 (*or_not_di_sp32): Likewise.
17660 (*xor_not_di_sp32): Likewise.
17661 (*negdi2_sp32): Likewise.
17662 (*one_cmpldi2_sp32): Likewise.
17663
17664 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
17665
17666 * debug.h (struct gcc_debug_hooks): Add a
17667 register_main_translation_unit hook.
17668 * debug.c (do_nothing_debug_hooks): Provide a function for this
17669 new hook.
17670 * dbxout.c (dbx_debug_hooks): Likewise.
17671 * sdbout.c (sdb_debug_hooks): Likewise.
17672 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
17673 * dwarf2out.c (main_translation_unit): New global variable.
17674 (dwarf2out_register_main_translation_unit): New function
17675 implementing the new hook.
17676 (dwarf2_debug_hooks): Assign
17677 dwarf2out_register_main_translation_unit to this new hook.
17678 (dwarf2out_init): Associate any main translation unit to
17679 comp_unit_die ().
17680
17681 2015-06-11 Marek Polacek <polacek@redhat.com>
17682
17683 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
17684
17685 2015-06-11 Marek Polacek <polacek@redhat.com>
17686
17687 * match.pd: Use single_use throughout.
17688
17689 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17690
17691 * config/arm/arm.c (arm_option_params_internal): When optimising
17692 for speed set max_insns_skipped when arm_restrict_it.
17693
17694 2015-06-11 Christian Bruel <christian.bruel@st.com>
17695
17696 PR target/52144
17697 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
17698 macros in ...
17699 (arm_cpu_builtins): New function.
17700 (arm_pragma_target_parse): Call arm_cpu_builtins.
17701 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
17702 (arm_register_target_pragmas): Likewise.
17703 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
17704 Call arm_register_target_pragmas.
17705 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
17706 (arm_pragma_target_parse): Likewise.
17707
17708 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
17709
17710 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
17711 of the second operand.
17712
17713 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
17714
17715 PR target/66473
17716 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
17717 to prepare mask operand for AVX512 modes.
17718
17719 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
17720
17721 PR target/66474
17722 * doc/md.texi (Machine Constraints): Document that on the PowerPC
17723 if you use a constraint that targets a VSX register, you must use
17724 %x<n> in the template.
17725
17726 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
17727
17728 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
17729 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
17730 (define_insn "trap"): New definition.
17731
17732 2015-06-10 Richard Biener <rguenther@suse.de>
17733
17734 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
17735 out from ...
17736 (vect_supported_load_permutation_p): ... here. Handle
17737 supportable permutations in reductions.
17738 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
17739 for vectorizing strided group loads.
17740
17741 2015-06-10 Jakub Jelinek <jakub@redhat.com>
17742
17743 PR target/66470
17744 * config/i386/i386.c (ix86_split_long_move): For collisions
17745 involving direct tls segment refs, move the UNSPEC_TP possibly
17746 wrapped in ZERO_EXTEND out of the address for lea, to each of
17747 the memory loads.
17748
17749 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17750
17751 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
17752 dmb sy. Adjust tabs.
17753
17754 2015-06-10 Tom de Vries <tom@codesourcery.com>
17755
17756 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
17757
17758 2015-06-10 Martin Liska <mliska@suse.cz>
17759
17760 PR bootstrap/66471
17761 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
17762 all enum values in mem_alloc_origin.
17763 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
17764 name.
17765 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
17766 * bitmap.c (bitmap_register): Likewise.
17767 (dump_bitmap_statistics): Likewise.
17768 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
17769 (ggc_record_overhead): Likewise.
17770 * hash-map.h: Likewise.
17771 * hash-set.h: Likewise.
17772 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
17773 * hash-table.h: Likewise.
17774 * vec.c (vec_prefix::register_overhead): Likewise.
17775 (vec_prefix::release_overhead): Likewise.
17776 (dump_vec_loc_statistics): Likewise.
17777
17778 2015-06-09 Christian Bruel <christian.bruel@st.com>
17779
17780 PR target/52144
17781 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
17782 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
17783 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
17784 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
17785 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
17786 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
17787 (arm_valid_target_attribute_p): Likewise.
17788 (arm_set_current_function, arm_can_inline_p): Likewise.
17789 (arm_valid_target_attribute_rec): Likewise.
17790 (arm_previous_fndecl): New variable.
17791 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
17792 (TARGET_CAN_INLINE_P): Define.
17793 (arm_asm_trampoline_template): Emit mode.
17794 (arm_file_start): Don't set unified syntax.
17795 (arm_declare_function_name): Set unified syntax and mode.
17796 (arm_option_override): Init target_option_default_node.
17797 and target_option_current_node.
17798 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
17799 (*call_symbol): Likewise.
17800 * doc/extend.texi: Document ARM/Thumb target attribute.
17801 * doc/invoke.texi: Likewise.
17802
17803 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
17804
17805 Revert:
17806 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
17807 PR rtl-optimization/64164
17808 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17809 * tree-ssa-copyrename.c: Removed.
17810 * opts.c (default_options_table): Drop -ftree-copyrename. Add
17811 -ftree-coalesce-vars.
17812 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17813 * common.opt (ftree-copyrename): Ignore.
17814 (ftree-coalesce-inlined-vars): Likewise.
17815 * doc/invoke.texi: Remove the ignored options above.
17816 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17817 * tree-ssa-coalesce.h: ... here.
17818 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17819 headers required by it.
17820 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17821 across variables when flag_tree_coalesce_vars. Check register
17822 use and promoted modes to allow coalescing. Moved to
17823 tree-ssa-coalesce.c.
17824 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17825 with its member functions to tree-ssa-coalesce.c.
17826 (var_map_base_init): Likewise. Renamed to
17827 compute_samebase_partition_bases.
17828 (partition_view_normal): Drop want_bases parameter.
17829 (partition_view_bitmap): Likewise.
17830 * tree-ssa-live.h: Adjust declarations.
17831 * tree-ssa-coalesce.c: Include explow.h.
17832 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17833 default defs at the entry point.
17834 (dump_part_var_map): New.
17835 (compute_optimized_partition_bases): New, called by...
17836 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17837 of compute_samebase_partition_bases. Adjust.
17838 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17839 * cfgexpand.c (leader_merge): New.
17840 (get_rtl_for_parm_ssa_default_def): New.
17841 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17842 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17843 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
17844 redundant MEM attr setting.
17845 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
17846 from...
17847 (expand_one_stack_var): ... this. New wrapper to check and
17848 skip already expanded SSA partitions.
17849 (record_alignment_for_reg_var): New, factored out of...
17850 (expand_one_var): ... this.
17851 (expand_one_ssa_partition): New.
17852 (adjust_one_expanded_partition_var): New.
17853 (expand_one_register_var): Check and skip already expanded SSA
17854 partitions.
17855 (expand_used_vars): Don't create DECLs for anonymous SSA
17856 names. Expand all SSA partitions, then adjust all SSA names.
17857 (pass::execute): Replace the loops that set
17858 SA.partition_to_pseudo from partition leaders and cleared
17859 DECL_RTL for multi-location variables, and that which used to
17860 rename vars and set attrs, with one that clears DECL_RTL and
17861 checks that PARMs and RESULTs default_defs match DECL_RTL.
17862 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17863 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17864 * explow.c (promote_ssa_mode): New.
17865 * explow.h (promote_ssa_mode): Declare.
17866 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17867 * function.c: Include cfgexpand.h.
17868 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17869 (use_register_for_parm_decl): Wrapper for the above to
17870 special-case the result_ptr.
17871 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17872 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17873 multiple locations.
17874 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17875 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
17876 (assign_parm_setup_block): Prefer SSA-assigned location.
17877 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
17878 if stack_parm is NULL.
17879 (assign_parm_setup_stack): Prefer SSA-assigned location.
17880 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
17881 rtl before testing for pointer bounds. Special-case result_ptr.
17882 (expand_function_start): Maybe reset DECL_RTL of result.
17883 Prefer SSA-assigned location for result and static chain.
17884 Factor out DECL_RESULT and SET_DECL_RTL.
17885 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17886 anonymous SSA names. Use promote_ssa_mode.
17887 (get_temp_reg): Likewise.
17888 (remove_ssa_form): Adjust.
17889 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17890 and get its reg_usage for reg invalidation.
17891 (compute_bb_dataflow): Pass it insn.
17892 (emit_notes_in_bb): Likewise.
17893 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
17894 fail assert on conversion between unsigned types.
17895
17896 2015-06-09 Tom de Vries <tom@codesourcery.com>
17897
17898 PR tree-optimization/65460
17899 * omp-low.c (expand_omp_target): Set parallelized_function on
17900 cgraph_node for child_fn.
17901
17902 2015-06-09 Tom de Vries <tom@codesourcery.com>
17903
17904 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
17905 parallelized_function before add_new_function.
17906
17907 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
17908
17909 * gcc-plugin.h: Move decls to plugin.h and include it.
17910 * plugin.h: Relocate decls from gcc-plugin.h
17911 * ggc-page.c: Include required header files.
17912 * passes.c: Likewise.
17913 * cgraphunit.c: Likewise.
17914
17915 2015-06-09 Tom de Vries <tom@codesourcery.com>
17916
17917 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
17918
17919 2015-06-09 Jason Merrill <jason@redhat.com>
17920
17921 PR bootstrap/66448
17922 * toplev.c (check_global_declaration): Don't warn about a clone.
17923
17924 2015-06-09 Marek Polacek <polacek@redhat.com>
17925
17926 PR tree-optimization/66299
17927 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
17928 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
17929 patterns.
17930
17931 2015-06-09 Richard Biener <rguenther@suse.de>
17932
17933 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
17934 (vect_analyze_slp_instance): Instead do not falsely drop
17935 load permutations.
17936
17937 2015-06-09 Richard Biener <rguenther@suse.de>
17938
17939 PR middle-end/66423
17940 * match.pd: Handle A % (unsigned)(1 << B).
17941
17942 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
17943
17944 * varasm.c (output_object_block_htab): Remove.
17945 (output_object_block_compare): New.
17946 (output_object_blocks): Sort named object_blocks before outputting
17947 them.
17948
17949 2015-06-09 Richard Biener <rguenther@suse.de>
17950
17951 PR tree-optimization/66419
17952 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
17953 consider GROUP_GAP when detecting a perfect subchain.
17954
17955 2015-06-09 Nick Clifton <nickc@redhat.com>
17956
17957 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
17958 place read only data in the .frodata section.
17959
17960 2015-06-09 Shiva Chen <shiva0217@gmail.com>
17961
17962 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
17963 (atomic_store<mode>): Likewise.
17964
17965 2015-06-09 Richard Biener <rguenther@suse.de>
17966
17967 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
17968
17969 2015-06-09 Richard Biener <rguenther@suse.de>
17970
17971 PR middle-end/66413
17972 * tree-inline.c (insert_init_debug_bind): Unshare value.
17973
17974 2015-06-09 Richard Biener <rguenther@suse.de>
17975
17976 PR tree-optimization/66396
17977 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
17978 Rename virtual operands.
17979
17980 2015-06-09 Tom de Vries <tom@codesourcery.com>
17981
17982 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
17983 always return false.
17984
17985 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
17986
17987 PR rtl-optimization/64164
17988 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17989 * tree-ssa-copyrename.c: Removed.
17990 * opts.c (default_options_table): Drop -ftree-copyrename. Add
17991 -ftree-coalesce-vars.
17992 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17993 * common.opt (ftree-copyrename): Ignore.
17994 (ftree-coalesce-inlined-vars): Likewise.
17995 * doc/invoke.texi: Remove the ignored options above.
17996 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17997 * tree-ssa-coalesce.h: ... here.
17998 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17999 headers required by it.
18000 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18001 across variables when flag_tree_coalesce_vars. Check register
18002 use and promoted modes to allow coalescing. Moved to
18003 tree-ssa-coalesce.c.
18004 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18005 with its member functions to tree-ssa-coalesce.c.
18006 (var_map_base_init): Likewise. Renamed to
18007 compute_samebase_partition_bases.
18008 (partition_view_normal): Drop want_bases parameter.
18009 (partition_view_bitmap): Likewise.
18010 * tree-ssa-live.h: Adjust declarations.
18011 * tree-ssa-coalesce.c: Include explow.h.
18012 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18013 default defs at the entry point.
18014 (dump_part_var_map): New.
18015 (compute_optimized_partition_bases): New, called by...
18016 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18017 of compute_samebase_partition_bases. Adjust.
18018 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18019 * cfgexpand.c (leader_merge): New.
18020 (get_rtl_for_parm_ssa_default_def): New.
18021 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18022 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18023 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
18024 redundant MEM attr setting.
18025 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
18026 from...
18027 (expand_one_stack_var): ... this. New wrapper to check and
18028 skip already expanded SSA partitions.
18029 (record_alignment_for_reg_var): New, factored out of...
18030 (expand_one_var): ... this.
18031 (expand_one_ssa_partition): New.
18032 (adjust_one_expanded_partition_var): New.
18033 (expand_one_register_var): Check and skip already expanded SSA
18034 partitions.
18035 (expand_used_vars): Don't create DECLs for anonymous SSA
18036 names. Expand all SSA partitions, then adjust all SSA names.
18037 (pass::execute): Replace the loops that set
18038 SA.partition_to_pseudo from partition leaders and cleared
18039 DECL_RTL for multi-location variables, and that which used to
18040 rename vars and set attrs, with one that clears DECL_RTL and
18041 checks that PARMs and RESULTs default_defs match DECL_RTL.
18042 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18043 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18044 * explow.c (promote_ssa_mode): New.
18045 * explow.h (promote_ssa_mode): Declare.
18046 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18047 * function.c: Include cfgexpand.h.
18048 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18049 (use_register_for_parm_decl): Wrapper for the above to
18050 special-case the result_ptr.
18051 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18052 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18053 multiple locations.
18054 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18055 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
18056 (assign_parm_setup_block): Prefer SSA-assigned location.
18057 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
18058 if stack_parm is NULL.
18059 (assign_parm_setup_stack): Prefer SSA-assigned location.
18060 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
18061 rtl before testing for pointer bounds. Special-case result_ptr.
18062 (expand_function_start): Maybe reset DECL_RTL of result.
18063 Prefer SSA-assigned location for result and static chain.
18064 Factor out DECL_RESULT and SET_DECL_RTL.
18065 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18066 anonymous SSA names. Use promote_ssa_mode.
18067 (get_temp_reg): Likewise.
18068 (remove_ssa_form): Adjust.
18069 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18070 and get its reg_usage for reg invalidation.
18071 (compute_bb_dataflow): Pass it insn.
18072 (emit_notes_in_bb): Likewise.
18073 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
18074 fail assert on conversion between unsigned types.
18075
18076 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
18077
18078 PR debug/58315
18079 * tree-inline.c (reset_debug_binding): New.
18080 (reset_debug_bindings): Likewise.
18081 (expand_call_inline): Call it.
18082
18083 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
18084
18085 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
18086 TYPE_STRING_FLAG.
18087
18088 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
18089
18090 * lto-streamer-out.c (lto_output_location): Stream
18091 reserved locations correctly.
18092 * lto-streamer-in.c (lto_output_location): Likewise.
18093
18094 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
18095
18096 * coretypes.h: Include hash-table.h and hash-set.h for host files.
18097 * ggc.h: Don't include statistics.h>
18098 * hash-map.h: Remove all includes.
18099 * hash-set.h: Likewise.
18100 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
18101 the include list. Remove <new>.
18102 * inchash.h: Remove all includes.
18103 * mem-stats.h: Likewise.
18104 * vec.h: No special processing for generators or ggc.
18105 * alias.c : Adjust include files.
18106 * alloc-pool.c : Likewise.
18107 * alloc-pool.h : Likewise.
18108 * asan.c : Likewise.
18109 * attribs.c : Likewise.
18110 * auto-inc-dec.c : Likewise.
18111 * auto-profile.c : Likewise.
18112 * bb-reorder.c : Likewise.
18113 * bitmap.c : Likewise.
18114 * bitmap.h : Likewise.
18115 * bt-load.c : Likewise.
18116 * builtins.c : Likewise.
18117 * caller-save.c : Likewise.
18118 * calls.c : Likewise.
18119 * ccmp.c : Likewise.
18120 * cfg.c : Likewise.
18121 * cfganal.c : Likewise.
18122 * cfgbuild.c : Likewise.
18123 * cfgcleanup.c : Likewise.
18124 * cfgexpand.c : Likewise.
18125 * cfghooks.c : Likewise.
18126 * cfgloop.c : Likewise.
18127 * cfgloop.h : Likewise.
18128 * cfgloopanal.c : Likewise.
18129 * cfgloopmanip.c : Likewise.
18130 * cfgrtl.c : Likewise.
18131 * cgraph.c : Likewise.
18132 * cgraphbuild.c : Likewise.
18133 * cgraphclones.c : Likewise.
18134 * cgraphunit.c : Likewise.
18135 * cilk-common.c : Likewise.
18136 * combine-stack-adj.c : Likewise.
18137 * combine.c : Likewise.
18138 * compare-elim.c : Likewise.
18139 * context.c : Likewise.
18140 * convert.c : Likewise.
18141 * coverage.c : Likewise.
18142 * cppbuiltin.c : Likewise.
18143 * cprop.c : Likewise.
18144 * cse.c : Likewise.
18145 * cselib.c : Likewise.
18146 * data-streamer-in.c : Likewise.
18147 * data-streamer-out.c : Likewise.
18148 * data-streamer.c : Likewise.
18149 * data-streamer.h : Likewise.
18150 * dbxout.c : Likewise.
18151 * dce.c : Likewise.
18152 * ddg.c : Likewise.
18153 * debug.c : Likewise.
18154 * df-core.c : Likewise.
18155 * df-problems.c : Likewise.
18156 * df-scan.c : Likewise.
18157 * df.h : Likewise.
18158 * dfp.c : Likewise.
18159 * dojump.c : Likewise.
18160 * dominance.c : Likewise.
18161 * domwalk.c : Likewise.
18162 * double-int.c : Likewise.
18163 * dse.c : Likewise.
18164 * dumpfile.c : Likewise.
18165 * dwarf2asm.c : Likewise.
18166 * dwarf2cfi.c : Likewise.
18167 * dwarf2out.c : Likewise.
18168 * emit-rtl.c : Likewise.
18169 * et-forest.c : Likewise.
18170 * except.c : Likewise.
18171 * except.h : Likewise.
18172 * explow.c : Likewise.
18173 * expmed.c : Likewise.
18174 * expr.c : Likewise.
18175 * final.c : Likewise.
18176 * fixed-value.c : Likewise.
18177 * fold-const.c : Likewise.
18178 * function.c : Likewise.
18179 * fwprop.c : Likewise.
18180 * gcc-plugin.h : Likewise.
18181 * gcc.c : Likewise.
18182 * gcse-common.c : Likewise.
18183 * gcse.c : Likewise.
18184 * genattrtab.c : Likewise.
18185 * genautomata.c : Likewise.
18186 * genconditions.c : Likewise.
18187 * genemit.c : Likewise.
18188 * generic-match-head.c : Likewise.
18189 * genextract.c : Likewise.
18190 * gengtype-state.c : Likewise.
18191 * gengtype.c : Likewise.
18192 * genhooks.c : Likewise.
18193 * genmatch.c : Likewise.
18194 * genmodes.c : Likewise.
18195 * genrecog.c : Likewise.
18196 * gensupport.c : Likewise.
18197 * ggc-common.c : Likewise.
18198 * ggc-internal.h : Likewise.
18199 * ggc-none.c : Likewise.
18200 * ggc-page.c : Likewise.
18201 * gimple-builder.c : Likewise.
18202 * gimple-expr.c : Likewise.
18203 * gimple-fold.c : Likewise.
18204 * gimple-iterator.c : Likewise.
18205 * gimple-low.c : Likewise.
18206 * gimple-match-head.c : Likewise.
18207 * gimple-pretty-print.c : Likewise.
18208 * gimple-ssa-isolate-paths.c : Likewise.
18209 * gimple-ssa-strength-reduction.c : Likewise.
18210 * gimple-ssa.h : Likewise.
18211 * gimple-streamer-in.c : Likewise.
18212 * gimple-streamer-out.c : Likewise.
18213 * gimple-streamer.h : Likewise.
18214 * gimple-walk.c : Likewise.
18215 * gimple.c : Likewise.
18216 * gimplify-me.c : Likewise.
18217 * gimplify.c : Likewise.
18218 * godump.c : Likewise.
18219 * graph.c : Likewise.
18220 * graphds.c : Likewise.
18221 * graphite-blocking.c : Likewise.
18222 * graphite-dependences.c : Likewise.
18223 * graphite-interchange.c : Likewise.
18224 * graphite-isl-ast-to-gimple.c : Likewise.
18225 * graphite-optimize-isl.c : Likewise.
18226 * graphite-poly.c : Likewise.
18227 * graphite-scop-detection.c : Likewise.
18228 * graphite-sese-to-poly.c : Likewise.
18229 * graphite.c : Likewise.
18230 * haifa-sched.c : Likewise.
18231 * hard-reg-set.h : Likewise.
18232 * hw-doloop.c : Likewise.
18233 * ifcvt.c : Likewise.
18234 * inchash.c : Likewise.
18235 * incpath.c : Likewise.
18236 * init-regs.c : Likewise.
18237 * input.c : Likewise.
18238 * internal-fn.c : Likewise.
18239 * ipa-chkp.c : Likewise.
18240 * ipa-comdats.c : Likewise.
18241 * ipa-cp.c : Likewise.
18242 * ipa-devirt.c : Likewise.
18243 * ipa-icf-gimple.c : Likewise.
18244 * ipa-icf.c : Likewise.
18245 * ipa-inline-analysis.c : Likewise.
18246 * ipa-inline-transform.c : Likewise.
18247 * ipa-inline.c : Likewise.
18248 * ipa-polymorphic-call.c : Likewise.
18249 * ipa-profile.c : Likewise.
18250 * ipa-prop.c : Likewise.
18251 * ipa-pure-const.c : Likewise.
18252 * ipa-ref.c : Likewise.
18253 * ipa-reference.c : Likewise.
18254 * ipa-split.c : Likewise.
18255 * ipa-utils.c : Likewise.
18256 * ipa-visibility.c : Likewise.
18257 * ipa.c : Likewise.
18258 * ira-build.c : Likewise.
18259 * ira-color.c : Likewise.
18260 * ira-conflicts.c : Likewise.
18261 * ira-costs.c : Likewise.
18262 * ira-emit.c : Likewise.
18263 * ira-lives.c : Likewise.
18264 * ira.c : Likewise.
18265 * jump.c : Likewise.
18266 * langhooks.c : Likewise.
18267 * lcm.c : Likewise.
18268 * libfuncs.h : Likewise.
18269 * lists.c : Likewise.
18270 * loop-doloop.c : Likewise.
18271 * loop-init.c : Likewise.
18272 * loop-invariant.c : Likewise.
18273 * loop-iv.c : Likewise.
18274 * loop-unroll.c : Likewise.
18275 * lower-subreg.c : Likewise.
18276 * lra-assigns.c : Likewise.
18277 * lra-coalesce.c : Likewise.
18278 * lra-constraints.c : Likewise.
18279 * lra-eliminations.c : Likewise.
18280 * lra-lives.c : Likewise.
18281 * lra-remat.c : Likewise.
18282 * lra-spills.c : Likewise.
18283 * lra.c : Likewise.
18284 * lto-cgraph.c : Likewise.
18285 * lto-compress.c : Likewise.
18286 * lto-opts.c : Likewise.
18287 * lto-section-in.c : Likewise.
18288 * lto-section-out.c : Likewise.
18289 * lto-streamer-in.c : Likewise.
18290 * lto-streamer-out.c : Likewise.
18291 * lto-streamer.c : Likewise.
18292 * lto-streamer.h : Likewise.
18293 * mcf.c : Likewise.
18294 * mode-switching.c : Likewise.
18295 * modulo-sched.c : Likewise.
18296 * omega.c : Likewise.
18297 * omp-low.c : Likewise.
18298 * optabs.c : Likewise.
18299 * opts-global.c : Likewise.
18300 * opts.h : Likewise.
18301 * passes.c : Likewise.
18302 * plugin.c : Likewise.
18303 * postreload-gcse.c : Likewise.
18304 * postreload.c : Likewise.
18305 * predict.c : Likewise.
18306 * print-rtl.c : Likewise.
18307 * print-tree.c : Likewise.
18308 * profile.c : Likewise.
18309 * read-md.c : Likewise.
18310 * read-md.h : Likewise.
18311 * read-rtl.c : Likewise.
18312 * real.c : Likewise.
18313 * realmpfr.c : Likewise.
18314 * recog.c : Likewise.
18315 * ree.c : Likewise.
18316 * reg-stack.c : Likewise.
18317 * regcprop.c : Likewise.
18318 * reginfo.c : Likewise.
18319 * regrename.c : Likewise.
18320 * regstat.c : Likewise.
18321 * reload.c : Likewise.
18322 * reload1.c : Likewise.
18323 * reorg.c : Likewise.
18324 * resource.c : Likewise.
18325 * rtl-chkp.c : Likewise.
18326 * rtl.c : Likewise.
18327 * rtl.h : Likewise.
18328 * rtlanal.c : Likewise.
18329 * rtlhash.c : Likewise.
18330 * rtlhash.h : Likewise.
18331 * rtlhooks.c : Likewise.
18332 * sanopt.c : Likewise.
18333 * sched-deps.c : Likewise.
18334 * sched-ebb.c : Likewise.
18335 * sched-rgn.c : Likewise.
18336 * sched-vis.c : Likewise.
18337 * sdbout.c : Likewise.
18338 * sel-sched-dump.c : Likewise.
18339 * sel-sched-ir.c : Likewise.
18340 * sel-sched-ir.h : Likewise.
18341 * sel-sched.c : Likewise.
18342 * sese.c : Likewise.
18343 * shrink-wrap.c : Likewise.
18344 * shrink-wrap.h : Likewise.
18345 * simplify-rtx.c : Likewise.
18346 * stack-ptr-mod.c : Likewise.
18347 * statistics.c : Likewise.
18348 * stmt.c : Likewise.
18349 * stor-layout.c : Likewise.
18350 * store-motion.c : Likewise.
18351 * stringpool.c : Likewise.
18352 * symtab.c : Likewise.
18353 * target-globals.c : Likewise.
18354 * targhooks.c : Likewise.
18355 * tlink.c : Likewise.
18356 * toplev.c : Likewise.
18357 * tracer.c : Likewise.
18358 * trans-mem.c : Likewise.
18359 * tree-affine.c : Likewise.
18360 * tree-affine.h : Likewise.
18361 * tree-browser.c : Likewise.
18362 * tree-call-cdce.c : Likewise.
18363 * tree-cfg.c : Likewise.
18364 * tree-cfgcleanup.c : Likewise.
18365 * tree-chkp-opt.c : Likewise.
18366 * tree-chkp.c : Likewise.
18367 * tree-chrec.c : Likewise.
18368 * tree-complex.c : Likewise.
18369 * tree-data-ref.c : Likewise.
18370 * tree-dfa.c : Likewise.
18371 * tree-diagnostic.c : Likewise.
18372 * tree-dump.c : Likewise.
18373 * tree-eh.c : Likewise.
18374 * tree-eh.h : Likewise.
18375 * tree-emutls.c : Likewise.
18376 * tree-hasher.h : Likewise.
18377 * tree-if-conv.c : Likewise.
18378 * tree-inline.c : Likewise.
18379 * tree-inline.h : Likewise.
18380 * tree-into-ssa.c : Likewise.
18381 * tree-iterator.c : Likewise.
18382 * tree-loop-distribution.c : Likewise.
18383 * tree-nested.c : Likewise.
18384 * tree-nrv.c : Likewise.
18385 * tree-object-size.c : Likewise.
18386 * tree-outof-ssa.c : Likewise.
18387 * tree-parloops.c : Likewise.
18388 * tree-phinodes.c : Likewise.
18389 * tree-predcom.c : Likewise.
18390 * tree-pretty-print.c : Likewise.
18391 * tree-profile.c : Likewise.
18392 * tree-scalar-evolution.c : Likewise.
18393 * tree-sra.c : Likewise.
18394 * tree-ssa-address.c : Likewise.
18395 * tree-ssa-alias.c : Likewise.
18396 * tree-ssa-ccp.c : Likewise.
18397 * tree-ssa-coalesce.c : Likewise.
18398 * tree-ssa-copy.c : Likewise.
18399 * tree-ssa-copyrename.c : Likewise.
18400 * tree-ssa-dce.c : Likewise.
18401 * tree-ssa-dom.c : Likewise.
18402 * tree-ssa-dse.c : Likewise.
18403 * tree-ssa-forwprop.c : Likewise.
18404 * tree-ssa-ifcombine.c : Likewise.
18405 * tree-ssa-live.c : Likewise.
18406 * tree-ssa-loop-ch.c : Likewise.
18407 * tree-ssa-loop-im.c : Likewise.
18408 * tree-ssa-loop-ivcanon.c : Likewise.
18409 * tree-ssa-loop-ivopts.c : Likewise.
18410 * tree-ssa-loop-manip.c : Likewise.
18411 * tree-ssa-loop-niter.c : Likewise.
18412 * tree-ssa-loop-prefetch.c : Likewise.
18413 * tree-ssa-loop-unswitch.c : Likewise.
18414 * tree-ssa-loop.c : Likewise.
18415 * tree-ssa-math-opts.c : Likewise.
18416 * tree-ssa-operands.c : Likewise.
18417 * tree-ssa-phiopt.c : Likewise.
18418 * tree-ssa-phiprop.c : Likewise.
18419 * tree-ssa-pre.c : Likewise.
18420 * tree-ssa-propagate.c : Likewise.
18421 * tree-ssa-reassoc.c : Likewise.
18422 * tree-ssa-sccvn.c : Likewise.
18423 * tree-ssa-scopedtables.c : Likewise.
18424 * tree-ssa-sink.c : Likewise.
18425 * tree-ssa-strlen.c : Likewise.
18426 * tree-ssa-structalias.c : Likewise.
18427 * tree-ssa-tail-merge.c : Likewise.
18428 * tree-ssa-ter.c : Likewise.
18429 * tree-ssa-threadedge.c : Likewise.
18430 * tree-ssa-threadupdate.c : Likewise.
18431 * tree-ssa-uncprop.c : Likewise.
18432 * tree-ssa-uninit.c : Likewise.
18433 * tree-ssa.c : Likewise.
18434 * tree-ssanames.c : Likewise.
18435 * tree-stdarg.c : Likewise.
18436 * tree-streamer-in.c : Likewise.
18437 * tree-streamer-out.c : Likewise.
18438 * tree-streamer.c : Likewise.
18439 * tree-streamer.h : Likewise.
18440 * tree-switch-conversion.c : Likewise.
18441 * tree-tailcall.c : Likewise.
18442 * tree-vect-data-refs.c : Likewise.
18443 * tree-vect-generic.c : Likewise.
18444 * tree-vect-loop-manip.c : Likewise.
18445 * tree-vect-loop.c : Likewise.
18446 * tree-vect-patterns.c : Likewise.
18447 * tree-vect-slp.c : Likewise.
18448 * tree-vect-stmts.c : Likewise.
18449 * tree-vectorizer.c : Likewise.
18450 * tree-vectorizer.h : Likewise.
18451 * tree-vrp.c : Likewise.
18452 * tree.c : Likewise.
18453 * tsan.c : Likewise.
18454 * ubsan.c : Likewise.
18455 * valtrack.c : Likewise.
18456 * valtrack.h : Likewise.
18457 * value-prof.c : Likewise.
18458 * var-tracking.c : Likewise.
18459 * varasm.c : Likewise.
18460 * varpool.c : Likewise.
18461 * vec.c: Likewise.
18462 * vmsdbgout.c : Likewise.
18463 * vtable-verify.c : Likewise.
18464 * vtable-verify.h : Likewise.
18465 * web.c : Likewise.
18466 * wide-int.cc : Likewise.
18467 * xcoffout.c : Likewise.
18468 * config/aarch64/aarch64-builtins.c : Likewise.
18469 * config/aarch64/aarch64.c : Likewise.
18470 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
18471 * config/alpha/alpha.c : Likewise.
18472 * config/arc/arc.c : Likewise.
18473 * config/arm/aarch-common.c : Likewise.
18474 * config/arm/arm-builtins.c : Likewise.
18475 * config/arm/arm-c.c : Likewise.
18476 * config/arm/arm.c : Likewise.
18477 * config/avr/avr-c.c : Likewise.
18478 * config/avr/avr-log.c : Likewise.
18479 * config/avr/avr.c : Likewise.
18480 * config/bfin/bfin.c : Likewise.
18481 * config/c6x/c6x.c : Likewise.
18482 * config/cr16/cr16.c : Likewise.
18483 * config/cris/cris.c : Likewise.
18484 * config/darwin-c.c : Likewise.
18485 * config/darwin.c : Likewise.
18486 * config/default-c.c : Likewise.
18487 * config/epiphany/epiphany.c : Likewise.
18488 * config/epiphany/mode-switch-use.c : Likewise.
18489 * config/epiphany/resolve-sw-modes.c : Likewise.
18490 * config/fr30/fr30.c : Likewise.
18491 * config/frv/frv.c : Likewise.
18492 * config/ft32/ft32.c : Likewise.
18493 * config/glibc-c.c : Likewise.
18494 * config/h8300/h8300.c : Likewise.
18495 * config/i386/i386-c.c : Likewise.
18496 * config/i386/i386.c : Likewise.
18497 * config/i386/msformat-c.c : Likewise.
18498 * config/i386/winnt-cxx.c : Likewise.
18499 * config/i386/winnt-stubs.c : Likewise.
18500 * config/i386/winnt.c : Likewise.
18501 * config/ia64/ia64-c.c : Likewise.
18502 * config/ia64/ia64.c : Likewise.
18503 * config/iq2000/iq2000.c : Likewise.
18504 * config/lm32/lm32.c : Likewise.
18505 * config/m32c/m32c-pragma.c : Likewise.
18506 * config/m32c/m32c.c : Likewise.
18507 * config/m32r/m32r.c : Likewise.
18508 * config/m68k/m68k.c : Likewise.
18509 * config/mcore/mcore.c : Likewise.
18510 * config/mep/mep-pragma.c : Likewise.
18511 * config/mep/mep.c : Likewise.
18512 * config/microblaze/microblaze-c.c : Likewise.
18513 * config/microblaze/microblaze.c : Likewise.
18514 * config/mips/mips.c : Likewise.
18515 * config/mmix/mmix.c : Likewise.
18516 * config/mn10300/mn10300.c : Likewise.
18517 * config/moxie/moxie.c : Likewise.
18518 * config/msp430/msp430-c.c : Likewise.
18519 * config/msp430/msp430.c : Likewise.
18520 * config/nds32/nds32-cost.c : Likewise.
18521 * config/nds32/nds32-fp-as-gp.c : Likewise.
18522 * config/nds32/nds32-intrinsic.c : Likewise.
18523 * config/nds32/nds32-isr.c : Likewise.
18524 * config/nds32/nds32-md-auxiliary.c : Likewise.
18525 * config/nds32/nds32-memory-manipulation.c : Likewise.
18526 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
18527 * config/nds32/nds32-predicates.c : Likewise.
18528 * config/nds32/nds32.c : Likewise.
18529 * config/nios2/nios2.c : Likewise.
18530 * config/nvptx/nvptx.c : Likewise.
18531 * config/pa/pa.c : Likewise.
18532 * config/pdp11/pdp11.c : Likewise.
18533 * config/rl78/rl78-c.c : Likewise.
18534 * config/rl78/rl78.c : Likewise.
18535 * config/rs6000/rs6000-c.c : Likewise.
18536 * config/rs6000/rs6000.c : Likewise.
18537 * config/rx/rx.c : Likewise.
18538 * config/s390/s390-c.c : Likewise.
18539 * config/s390/s390.c : Likewise.
18540 * config/sh/sh-c.c : Likewise.
18541 * config/sh/sh-mem.cc : Likewise.
18542 * config/sh/sh.c : Likewise.
18543 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
18544 * config/sh/sh_treg_combine.cc : Likewise.
18545 * config/sol2-c.c : Likewise.
18546 * config/sol2-cxx.c : Likewise.
18547 * config/sol2-stubs.c : Likewise.
18548 * config/sol2.c : Likewise.
18549 * config/sparc/sparc-c.c : Likewise.
18550 * config/sparc/sparc.c : Likewise.
18551 * config/spu/spu-c.c : Likewise.
18552 * config/spu/spu.c : Likewise.
18553 * config/stormy16/stormy16.c : Likewise.
18554 * config/tilegx/mul-tables.c : Likewise.
18555 * config/tilegx/tilegx-c.c : Likewise.
18556 * config/tilegx/tilegx.c : Likewise.
18557 * config/tilepro/mul-tables.c : Likewise.
18558 * config/tilepro/tilepro-c.c : Likewise.
18559 * config/tilepro/tilepro.c : Likewise.
18560 * config/v850/v850-c.c : Likewise.
18561 * config/v850/v850.c : Likewise.
18562 * config/vax/vax.c : Likewise.
18563 * config/visium/visium.c : Likewise.
18564 * config/vms/vms-c.c : Likewise.
18565 * config/vms/vms.c : Likewise.
18566 * config/vxworks.c : Likewise.
18567 * config/winnt-c.c : Likewise.
18568 * config/xtensa/xtensa.c : Likewise.
18569
18570 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
18571
18572 PR lto/65378
18573 * ipa-utils.h (warn_types_mismatch): Update prototype.
18574 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
18575 parameters.
18576 (type_mismatch_p): New function.
18577 (warn_types_mismatch): Reorg to work better on non-C++ types.
18578 (odr_types_equivalent_p): Add loc1/loc2 parameters.
18579 (add_type_duplicate): Update.
18580
18581 2015-06-08 Tom de Vries <tom@codesourcery.com>
18582
18583 PR rtl-optimization/66444
18584 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
18585 call_used_regs.
18586
18587 2015-06-08 Richard Biener <rguenther@suse.de>
18588
18589 PR tree-optimization/66422
18590 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
18591 block after inserted gcc_unreachable.
18592
18593 2015-06-08 Nick Clifton <nickc@redhat.com>
18594
18595 * config/rx/rx.c (rx_function_value): Do not promote vector types.
18596 (rx_promote_function_mode): Likewise.
18597 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
18598
18599 2015-06-08 Jakub Jelinek <jakub@redhat.com>
18600
18601 * genattrtab.c (insn_alternatives): Change type from int *
18602 to uint64_t *.
18603 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
18604 (get_attr_value): Change type of num_alt to uint64_t.
18605 (compute_alternative_mask): Change return type from
18606 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
18607 (make_alternative_compare, mk_attr_alt): Change argument type
18608 from int to uint64_t.
18609 (simplify_test_exp): Change type of i from int to uint64_t.
18610 Shift ((uint64_t) 1) instead of 1 up.
18611 (main): Adjust oballocvec first argument from int to uint64_t.
18612 Shift ((uint64_t) 1) instead of 1 up.
18613
18614 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
18615
18616 PR other/65366
18617 * gdbhooks.py: Import sys.
18618 (intptr): New function. Replace int(...) by intptr(...).
18619
18620 2015-06-08 Richard Biener <rguenther@suse.de>
18621
18622 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
18623 adjustment for gaps at the end of a SLP load group properly.
18624 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
18625 all permutations we can generate.
18626 (vect_transform_slp_perm_load): Use the correct group-size.
18627
18628 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
18629
18630 * genmatch.c (expr::gen_transform): For conditions, guess the type
18631 from the second operand.
18632
18633 2015-06-08 Tom de Vries <tom@codesourcery.com>
18634
18635 PR tree-optimization/66442
18636 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
18637 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
18638 if the loop latch is not a singleton. Use
18639 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
18640
18641 2015-06-08 Marek Polacek <polacek@redhat.com>
18642
18643 PR sanitizer/66452
18644 * toplev.c (check_global_declaration): Don't warn about artificial
18645 decls.
18646
18647 2015-06-08 Tom de Vries <tom@codesourcery.com>
18648
18649 PR tree-optimization/66436
18650 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
18651 dump file.
18652 * gimplify.c: Add tree-dump.h include.
18653 (gimplify_function_tree): Dump function to gimple dump file.
18654 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
18655 dump file.
18656
18657 2015-06-08 Tom de Vries <tom@codesourcery.com>
18658
18659 PR tree-optimization/66435
18660 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
18661 function.
18662
18663 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
18664
18665 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
18666 of ptr_type_node to not be ptr_to_node.
18667 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
18668 TREE_TYPE of pointers.
18669 * gimple-expr.c (useless_type_conversion): Reorder the check for
18670 function pointers and TYPE_CANONICAL.
18671
18672 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
18673
18674 PR bootstrap/66319
18675 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
18676 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
18677 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
18678 later.
18679 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
18680 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
18681 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
18682 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
18683 and non iso if unix2003.
18684
18685 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
18686
18687 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
18688
18689 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
18690
18691 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
18692 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
18693 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
18694 except.c, final.c, function.c, gcse-common.c, genemit.c,
18695 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
18696 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
18697 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
18698 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
18699 more derived ones.
18700
18701 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
18702
18703 * combine.c (combine_split_insns): Remove cast.
18704 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
18705 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
18706 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
18707 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
18708 * genemit.c (gen_split): Change return type of generated functions to
18709 rtx_insn.
18710 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
18711 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
18712 gen_peephole2_* functions.
18713 (print_subroutine, main): Likewise.
18714 * recog.c (peephole2_optimize): Remove cast.
18715 (peep2_next_insn): Promote return type to rtx_insn.
18716 * recog.h (peep2_next_insn): Fix prototype.
18717 * rtl.h (try_split, split_insns): Likewise.
18718
18719 2015-06-06 DJ Delorie <dj@redhat.com>
18720
18721 * config/msp430/msp430.c (msp430_asm_integer): Support addition
18722 and subtraction too.
18723
18724 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
18725
18726 PR target/66410
18727 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
18728 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
18729 instead of Snd. Disparage Sid/z alternative with '^'.
18730
18731 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
18732
18733 * dwarf2out.c: Remove deferred_locations*.
18734 (dwarf2_debug_hooks): Add early_finish hook.
18735 Remove global_decl hook.
18736 Add early_global_decl and late_global_decl hook.
18737 New global early_dwarf.
18738 New structure set_early_dwarf.
18739 (output_die): Indicate whether a DIE was generated early
18740 when generating assembly with -dA.
18741 (struct limbo_die_struct): Document created_for field.
18742 Remove file_table_last_lookup.
18743 (remove_AT): Return TRUE if successful.
18744 (remove_child_TAG): Clear die_parent.
18745 (reparent_child): New function abstracted from...
18746 (splice_child_die): ...here.
18747 (new_die): ICE if a DIE ends up in limbo too late.
18748 (check_die): New.
18749 (defer_location): Remove.
18750 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
18751 (fill_variable_array_bounds): New.
18752 (decl_start_label): Call fill_variable_array_bounds.
18753 (gen_formal_parameter_die): Rewrite to reuse previously generated
18754 DIEs.
18755 (gen_subprogram_die): Same.
18756 (gen_variable_die): Same.
18757 (gen_const_die): Same.
18758 (gen_label_die): Same.
18759 (gen_lexical_block_die): Same.
18760 (decl_will_get_specification_p): New.
18761 (local_function_static): New.
18762 (gen_struct_or_union_type_die): Fill in variable-length fields.
18763 (gen_typedef_die): Fill in variable-length typedefs.
18764 (gen_tagged_type_die): Gracefully return on error_mark_node.
18765 Handle re-entrancy.
18766 (gen_type_die_with_usage): Handle variable-length types.
18767 Remove duplicate code for ARRAY_TYPE case.
18768 (process_scope_var): Only process imported modules during early
18769 dwarf.
18770 (dwarf2out_early_global_decl): New.
18771 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
18772 (dwarf2out_type_decl): Set early_dwarf while calling
18773 dwarf2out_decl.
18774 (dwarf2out_decl): Verify that we did not recreate a previously
18775 generated DIE.
18776 Do not return on DECL_EXTERNALs in VAR_DECLs.
18777 Abstract some code to local_function_static.
18778 (lookup_filename): Remove use of file_table_last_lookup.
18779 Gracefully exit on missing file_name.
18780 (dwarf2out_finish): Verify limbo list.
18781 Remove deferred_locations_list use.
18782 Move deferred_asm_name and limbo flushing to...
18783 (dwarf2out_early_finish): ...here. New.
18784 (dwarf2out_c_finalize): Remove set of deferred_location_list,
18785 deferred_asm_name, and file_table_last_lookup.
18786 * cgraph.h (referred_to_p): Add default argument.
18787 * cgraphunit.c (referred_to_p): Add and handle include_self
18788 argument.
18789 (analyze_functions): Add first_time argument.
18790 Call check_global_declaration for all symbols.
18791 Call late_global_decl for nodes for moribund nodes.
18792 (finalize_compilation_unit): Add new argument to
18793 analyze_functions.
18794 Call early_global_decl for functions.
18795 Call early_finish debug hook.
18796 * dbxout.c (dbxout_early_global_decl): New.
18797 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
18798 (dbx_debug_hooks): Add new hooks.
18799 (xcoff_debug_hooks): Same.
18800 * debug.c (do_nothing_debug_hooks): Add early_finish field.
18801 Add early and late debug hooks.
18802 Remove global_decl hook.
18803 * debug.h (struct gcc_debug_hooks): Add early_finish,
18804 early_global_decl, and late_global_decl fields.
18805 Remove global_decl field.
18806 Document gcc_debug_hooks.
18807 * gengtype.c (output_typename): Remove.
18808 * godump.c (go_early_global_decl): New.
18809 (go_late_global_decl): New.
18810 (go_global_decl): Remove.
18811 (dump_go_spec_init): Remove global_decl. Add
18812 {early,late}_global_decl.
18813 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
18814 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
18815 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
18816 (write_global_declarations): Remove.
18817 (global_decl_processing): New.
18818 * langhooks.h (struct lang_hooks_for_decls): Remove
18819 final_write_globals field.
18820 Add post_compilation_parsing_cleanups field.
18821 * passes.c (rest_of_decl_compilation): Call early_global_decl.
18822 * sdbout.c: Add early and late_global_decl hooks. Remove
18823 sdbout_global_decl hook.
18824 Add early_finish field for sdb_debug_hooks.
18825 (sdbout_global_decl): Remove.
18826 (sdbout_early_global_decl): New.
18827 (sdbout_late_global_decl): New.
18828 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
18829 * toplev.c (check_global_declaration): Rename from
18830 check_global_declaration_1.
18831 Adapt to use symtab infrastructure.
18832 (check_global_declarations): Remove.
18833 (emit_debug_global_declarations): Remove.
18834 (compile_file): Remove call to final_write_globals langhook.
18835 Run the actual compilation process.
18836 Perform any post compilation parser cleanups.
18837 Generate late debug info.
18838 * toplev.h (check_global_declaration): New.
18839 (check_global_declaration_1): Remove.
18840 (check_global_declarations): Remove.
18841 (write_global_declarations): Remove.
18842 (emit_debug_global_declarations): Remove.
18843 (global_decl_processing): New.
18844 * tree-core.h (struct tree_block): Add DIE field.
18845 * tree.h (BLOCK_DIE): New.
18846 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
18847 throughout.
18848 (vmsdbgout_early_global_decl): New.
18849 (vmsdbgout_late_global_decl): New.
18850 Add early_finish debug hook field to vmsdbg_debug_hooks.
18851 Remove vmsdbgout_decl to vmsdbgout_function_decl.
18852 Add early and late_global_decl debug hooks.
18853
18854 2015-06-05 Julian Brown <julian@codesourcery.com>
18855 Sandra Loosemore <sandra@codesourcery.com>
18856
18857 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
18858 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
18859 to print-sysroot-suffix.sh script.
18860
18861 2015-06-05 Tom de Vries <tom@codesourcery.com>
18862
18863 merge from gomp4 branch:
18864 2015-05-28 Tom de Vries <tom@codesourcery.com>
18865
18866 PR tree-optimization/65443
18867 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
18868 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
18869 (try_transform_to_exit_first_loop_alt): New function.
18870 (transform_to_exit_first_loop): Use
18871 try_transform_to_exit_first_loop_alt.
18872
18873 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
18874
18875 * builtins.c (expand_builtin_atomic_compare_exchange): Call
18876 emit_cmp_and_jump_insns with the mode of target.
18877
18878 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
18879
18880 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
18881
18882 2015-06-04 DJ Delorie <dj@redhat.com>
18883
18884 * config/msp430/msp430.md (movsi_s): New. Special case for
18885 storing a 20-bit symbol into a 32-bit register.
18886 * config/msp430/msp430.c (msp430_subreg): Add support for it.
18887 * config/msp430/predicates.md (msp430_symbol_operand): New.
18888
18889 2015-06-04 Sriraman Tallam <tmsriram@google.com>
18890
18891 * c-family/c-common.c (noplt): New attribute.
18892 (handle_noplt_attribute): New handler.
18893 * calls.c (prepare_call_address): Check for noplt
18894 attribute.
18895 * config/i386/i386.c (ix86_expand_call): Check
18896 for noplt attribute.
18897 (ix86_nopic_noplt_attribute_p): New function.
18898 (ix86_output_call_insn): Output indirect call for non-pic
18899 no plt calls.
18900 * doc/extend.texi (noplt): Document new attribute.
18901 * doc/invoke.texi: Document new attribute.
18902
18903 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
18904
18905 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
18906 real.h, and fixed-value.h when included in host source files.
18907 * double-int.h: Remove redundant #includes listed above.
18908 * fixed-value.h: Likewise.
18909 * real.h: Likewise.
18910 * wide-int.h: Likewise.
18911 * inchash.h: Likewise.
18912 * rtl.h: Add some include files When included from a generator file.
18913 * target.h: Remove wide-int.h and insn-modes.h from the include list.
18914 * internal-fn.h: Don't include coretypes.h.
18915 * alias.c: Adjust includes for restructured coretypes.h.
18916 * asan.c: Likewise.
18917 * attribs.c: Likewise.
18918 * auto-inc-dec.c: Likewise.
18919 * auto-profile.c: Likewise.
18920 * bb-reorder.c: Likewise.
18921 * bt-load.c: Likewise.
18922 * builtins.c: Likewise.
18923 * caller-save.c: Likewise.
18924 * calls.c: Likewise.
18925 * ccmp.c: Likewise.
18926 * cfg.c: Likewise.
18927 * cfganal.c: Likewise.
18928 * cfgbuild.c: Likewise.
18929 * cfgcleanup.c: Likewise.
18930 * cfgexpand.c: Likewise.
18931 * cfghooks.c: Likewise.
18932 * cfgloop.c: Likewise.
18933 * cfgloop.h: Likewise.
18934 * cfgloopanal.c: Likewise.
18935 * cfgloopmanip.c: Likewise.
18936 * cfgrtl.c: Likewise.
18937 * cgraph.c: Likewise.
18938 * cgraphbuild.c: Likewise.
18939 * cgraphclones.c: Likewise.
18940 * cgraphunit.c: Likewise.
18941 * cilk-common.c: Likewise.
18942 * combine-stack-adj.c: Likewise.
18943 * combine.c: Likewise.
18944 * compare-elim.c: Likewise.
18945 * convert.c: Likewise.
18946 * coverage.c: Likewise.
18947 * cppbuiltin.c: Likewise.
18948 * cprop.c: Likewise.
18949 * cse.c: Likewise.
18950 * cselib.c: Likewise.
18951 * data-streamer-in.c: Likewise.
18952 * data-streamer-out.c: Likewise.
18953 * data-streamer.c: Likewise.
18954 * dbxout.c: Likewise.
18955 * dce.c: Likewise.
18956 * ddg.c: Likewise.
18957 * debug.c: Likewise.
18958 * df-core.c: Likewise.
18959 * df-problems.c: Likewise.
18960 * df-scan.c: Likewise.
18961 * df.h: Likewise.
18962 * dfp.c: Likewise.
18963 * dojump.c: Likewise.
18964 * dominance.c: Likewise.
18965 * domwalk.c: Likewise.
18966 * double-int.c: Likewise.
18967 * dse.c: Likewise.
18968 * dumpfile.c: Likewise.
18969 * dwarf2asm.c: Likewise.
18970 * dwarf2cfi.c: Likewise.
18971 * dwarf2out.c: Likewise.
18972 * dwarf2out.h: Likewise.
18973 * emit-rtl.c: Likewise.
18974 * et-forest.c: Likewise.
18975 * except.c: Likewise.
18976 * explow.c: Likewise.
18977 * expmed.c: Likewise.
18978 * expr.c: Likewise.
18979 * final.c: Likewise.
18980 * fixed-value.c: Likewise.
18981 * fold-const.c: Likewise.
18982 * function.c: Likewise.
18983 * fwprop.c: Likewise.
18984 * gcc-plugin.h: Likewise.
18985 * gcse.c: Likewise.
18986 * generic-match-head.c: Likewise.
18987 * ggc-page.c: Likewise.
18988 * gimple-builder.c: Likewise.
18989 * gimple-expr.c: Likewise.
18990 * gimple-fold.c: Likewise.
18991 * gimple-iterator.c: Likewise.
18992 * gimple-low.c: Likewise.
18993 * gimple-match-head.c: Likewise.
18994 * gimple-pretty-print.c: Likewise.
18995 * gimple-ssa-isolate-paths.c: Likewise.
18996 * gimple-ssa-strength-reduction.c: Likewise.
18997 * gimple-streamer-in.c: Likewise.
18998 * gimple-streamer-out.c: Likewise.
18999 * gimple-streamer.h: Likewise.
19000 * gimple-walk.c: Likewise.
19001 * gimple.c: Likewise.
19002 * gimplify-me.c: Likewise.
19003 * gimplify.c: Likewise.
19004 * godump.c: Likewise.
19005 * graph.c: Likewise.
19006 * graphite-blocking.c: Likewise.
19007 * graphite-dependences.c: Likewise.
19008 * graphite-interchange.c: Likewise.
19009 * graphite-isl-ast-to-gimple.c: Likewise.
19010 * graphite-optimize-isl.c: Likewise.
19011 * graphite-poly.c: Likewise.
19012 * graphite-scop-detection.c: Likewise.
19013 * graphite-sese-to-poly.c: Likewise.
19014 * graphite.c: Likewise.
19015 * haifa-sched.c: Likewise.
19016 * hooks.h: Likewise.
19017 * hw-doloop.c: Likewise.
19018 * ifcvt.c: Likewise.
19019 * incpath.c: Likewise.
19020 * init-regs.c: Likewise.
19021 * internal-fn.c: Likewise.
19022 * ipa-chkp.c: Likewise.
19023 * ipa-comdats.c: Likewise.
19024 * ipa-cp.c: Likewise.
19025 * ipa-devirt.c: Likewise.
19026 * ipa-icf-gimple.c: Likewise.
19027 * ipa-icf.c: Likewise.
19028 * ipa-inline-analysis.c: Likewise.
19029 * ipa-inline-transform.c: Likewise.
19030 * ipa-inline.c: Likewise.
19031 * ipa-polymorphic-call.c: Likewise.
19032 * ipa-profile.c: Likewise.
19033 * ipa-prop.c: Likewise.
19034 * ipa-pure-const.c: Likewise.
19035 * ipa-ref.c: Likewise.
19036 * ipa-reference.c: Likewise.
19037 * ipa-split.c: Likewise.
19038 * ipa-utils.c: Likewise.
19039 * ipa-visibility.c: Likewise.
19040 * ipa.c: Likewise.
19041 * ira-build.c: Likewise.
19042 * ira-color.c: Likewise.
19043 * ira-conflicts.c: Likewise.
19044 * ira-costs.c: Likewise.
19045 * ira-emit.c: Likewise.
19046 * ira-lives.c: Likewise.
19047 * ira.c: Likewise.
19048 * jump.c: Likewise.
19049 * langhooks.c: Likewise.
19050 * lcm.c: Likewise.
19051 * loop-doloop.c: Likewise.
19052 * loop-init.c: Likewise.
19053 * loop-invariant.c: Likewise.
19054 * loop-iv.c: Likewise.
19055 * loop-unroll.c: Likewise.
19056 * lower-subreg.c: Likewise.
19057 * lra-assigns.c: Likewise.
19058 * lra-coalesce.c: Likewise.
19059 * lra-constraints.c: Likewise.
19060 * lra-eliminations.c: Likewise.
19061 * lra-lives.c: Likewise.
19062 * lra-remat.c: Likewise.
19063 * lra-spills.c: Likewise.
19064 * lra.c: Likewise.
19065 * lto-cgraph.c: Likewise.
19066 * lto-compress.c: Likewise.
19067 * lto-opts.c: Likewise.
19068 * lto-section-in.c: Likewise.
19069 * lto-section-out.c: Likewise.
19070 * lto-streamer-in.c: Likewise.
19071 * lto-streamer-out.c: Likewise.
19072 * lto-streamer.c: Likewise.
19073 * mcf.c: Likewise.
19074 * mode-switching.c: Likewise.
19075 * modulo-sched.c: Likewise.
19076 * omega.c: Likewise.
19077 * omp-low.c: Likewise.
19078 * optabs.c: Likewise.
19079 * opts-global.c: Likewise.
19080 * passes.c: Likewise.
19081 * plugin.c: Likewise.
19082 * postreload-gcse.c: Likewise.
19083 * postreload.c: Likewise.
19084 * predict.c: Likewise.
19085 * print-rtl.c: Likewise.
19086 * print-tree.c: Likewise.
19087 * profile.c: Likewise.
19088 * real.c: Likewise.
19089 * realmpfr.c: Likewise.
19090 * realmpfr.h: Likewise.
19091 * recog.c: Likewise.
19092 * ree.c: Likewise.
19093 * reg-stack.c: Likewise.
19094 * regcprop.c: Likewise.
19095 * reginfo.c: Likewise.
19096 * regrename.c: Likewise.
19097 * regs.h: Likewise.
19098 * regstat.c: Likewise.
19099 * reload.c: Likewise.
19100 * reload1.c: Likewise.
19101 * reorg.c: Likewise.
19102 * resource.c: Likewise.
19103 * rtl-chkp.c: Likewise.
19104 * rtlanal.c: Likewise.
19105 * rtlhooks.c: Likewise.
19106 * sanopt.c: Likewise.
19107 * sched-deps.c: Likewise.
19108 * sched-ebb.c: Likewise.
19109 * sched-rgn.c: Likewise.
19110 * sched-vis.c: Likewise.
19111 * sdbout.c: Likewise.
19112 * sel-sched-dump.c: Likewise.
19113 * sel-sched-ir.c: Likewise.
19114 * sel-sched.c: Likewise.
19115 * sese.c: Likewise.
19116 * shrink-wrap.c: Likewise.
19117 * shrink-wrap.h: Likewise.
19118 * simplify-rtx.c: Likewise.
19119 * stack-ptr-mod.c: Likewise.
19120 * statistics.c: Likewise.
19121 * stmt.c: Likewise.
19122 * stor-layout.c: Likewise.
19123 * store-motion.c: Likewise.
19124 * stringpool.c: Likewise.
19125 * symtab.c: Likewise.
19126 * target-globals.c: Likewise.
19127 * targhooks.c: Likewise.
19128 * toplev.c: Likewise.
19129 * tracer.c: Likewise.
19130 * trans-mem.c: Likewise.
19131 * tree-affine.c: Likewise.
19132 * tree-affine.h: Likewise.
19133 * tree-browser.c: Likewise.
19134 * tree-call-cdce.c: Likewise.
19135 * tree-cfg.c: Likewise.
19136 * tree-cfgcleanup.c: Likewise.
19137 * tree-chkp-opt.c: Likewise.
19138 * tree-chkp.c: Likewise.
19139 * tree-chrec.c: Likewise.
19140 * tree-complex.c: Likewise.
19141 * tree-data-ref.c: Likewise.
19142 * tree-dfa.c: Likewise.
19143 * tree-diagnostic.c: Likewise.
19144 * tree-dump.c: Likewise.
19145 * tree-eh.c: Likewise.
19146 * tree-emutls.c: Likewise.
19147 * tree-if-conv.c: Likewise.
19148 * tree-inline.c: Likewise.
19149 * tree-into-ssa.c: Likewise.
19150 * tree-iterator.c: Likewise.
19151 * tree-loop-distribution.c: Likewise.
19152 * tree-nested.c: Likewise.
19153 * tree-nrv.c: Likewise.
19154 * tree-object-size.c: Likewise.
19155 * tree-outof-ssa.c: Likewise.
19156 * tree-parloops.c: Likewise.
19157 * tree-phinodes.c: Likewise.
19158 * tree-predcom.c: Likewise.
19159 * tree-pretty-print.c: Likewise.
19160 * tree-pretty-print.h: Likewise.
19161 * tree-profile.c: Likewise.
19162 * tree-scalar-evolution.c: Likewise.
19163 * tree-sra.c: Likewise.
19164 * tree-ssa-address.c: Likewise.
19165 * tree-ssa-alias.c: Likewise.
19166 * tree-ssa-ccp.c: Likewise.
19167 * tree-ssa-coalesce.c: Likewise.
19168 * tree-ssa-copy.c: Likewise.
19169 * tree-ssa-copyrename.c: Likewise.
19170 * tree-ssa-dce.c: Likewise.
19171 * tree-ssa-dom.c: Likewise.
19172 * tree-ssa-dse.c: Likewise.
19173 * tree-ssa-forwprop.c: Likewise.
19174 * tree-ssa-ifcombine.c: Likewise.
19175 * tree-ssa-live.c: Likewise.
19176 * tree-ssa-loop-ch.c: Likewise.
19177 * tree-ssa-loop-im.c: Likewise.
19178 * tree-ssa-loop-ivcanon.c: Likewise.
19179 * tree-ssa-loop-ivopts.c: Likewise.
19180 * tree-ssa-loop-manip.c: Likewise.
19181 * tree-ssa-loop-niter.c: Likewise.
19182 * tree-ssa-loop-prefetch.c: Likewise.
19183 * tree-ssa-loop-unswitch.c: Likewise.
19184 * tree-ssa-loop.c: Likewise.
19185 * tree-ssa-loop.h: Likewise.
19186 * tree-ssa-math-opts.c: Likewise.
19187 * tree-ssa-operands.c: Likewise.
19188 * tree-ssa-phiopt.c: Likewise.
19189 * tree-ssa-phiprop.c: Likewise.
19190 * tree-ssa-pre.c: Likewise.
19191 * tree-ssa-propagate.c: Likewise.
19192 * tree-ssa-reassoc.c: Likewise.
19193 * tree-ssa-sccvn.c: Likewise.
19194 * tree-ssa-scopedtables.c: Likewise.
19195 * tree-ssa-sink.c: Likewise.
19196 * tree-ssa-strlen.c: Likewise.
19197 * tree-ssa-structalias.c: Likewise.
19198 * tree-ssa-tail-merge.c: Likewise.
19199 * tree-ssa-ter.c: Likewise.
19200 * tree-ssa-threadedge.c: Likewise.
19201 * tree-ssa-threadupdate.c: Likewise.
19202 * tree-ssa-uncprop.c: Likewise.
19203 * tree-ssa-uninit.c: Likewise.
19204 * tree-ssa.c: Likewise.
19205 * tree-ssanames.c: Likewise.
19206 * tree-stdarg.c: Likewise.
19207 * tree-streamer-in.c: Likewise.
19208 * tree-streamer-out.c: Likewise.
19209 * tree-streamer.c: Likewise.
19210 * tree-switch-conversion.c: Likewise.
19211 * tree-tailcall.c: Likewise.
19212 * tree-vect-data-refs.c: Likewise.
19213 * tree-vect-generic.c: Likewise.
19214 * tree-vect-loop-manip.c: Likewise.
19215 * tree-vect-loop.c: Likewise.
19216 * tree-vect-patterns.c: Likewise.
19217 * tree-vect-slp.c: Likewise.
19218 * tree-vect-stmts.c: Likewise.
19219 * tree-vectorizer.c: Likewise.
19220 * tree-vrp.c: Likewise.
19221 * tree.c: Likewise.
19222 * tsan.c: Likewise.
19223 * ubsan.c: Likewise.
19224 * valtrack.c: Likewise.
19225 * value-prof.c: Likewise.
19226 * var-tracking.c: Likewise.
19227 * varasm.c: Likewise.
19228 * varpool.c: Likewise.
19229 * vmsdbgout.c: Likewise.
19230 * vtable-verify.c: Likewise.
19231 * web.c: Likewise.
19232 * wide-int-print.cc: Likewise.
19233 * wide-int-print.h: Likewise.
19234 * wide-int.cc: Likewise.
19235 * xcoffout.c: Likewise.
19236 * config/aarch64/aarch64-builtins.c: Likewise.
19237 * config/aarch64/aarch64.c: Likewise.
19238 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
19239 * config/alpha/alpha.c: Likewise.
19240 * config/arc/arc.c: Likewise.
19241 * config/arm/aarch-common.c: Likewise.
19242 * config/arm/arm-builtins.c: Likewise.
19243 * config/arm/arm-c.c: Likewise.
19244 * config/arm/arm.c: Likewise.
19245 * config/avr/avr-c.c: Likewise.
19246 * config/avr/avr-log.c: Likewise.
19247 * config/avr/avr.c: Likewise.
19248 * config/bfin/bfin.c: Likewise.
19249 * config/c6x/c6x.c: Likewise.
19250 * config/cr16/cr16.c: Likewise.
19251 * config/cris/cris.c: Likewise.
19252 * config/darwin-c.c: Likewise.
19253 * config/darwin.c: Likewise.
19254 * config/default-c.c: Likewise.
19255 * config/epiphany/epiphany.c: Likewise.
19256 * config/epiphany/mode-switch-use.c: Likewise.
19257 * config/epiphany/resolve-sw-modes.c: Likewise.
19258 * config/fr30/fr30.c: Likewise.
19259 * config/frv/frv.c: Likewise.
19260 * config/ft32/ft32.c: Likewise.
19261 * config/glibc-c.c: Likewise.
19262 * config/h8300/h8300.c: Likewise.
19263 * config/i386/i386-c.c: Likewise.
19264 * config/i386/i386.c: Likewise.
19265 * config/i386/msformat-c.c: Likewise.
19266 * config/i386/winnt-cxx.c: Likewise.
19267 * config/i386/winnt-stubs.c: Likewise.
19268 * config/i386/winnt.c: Likewise.
19269 * config/ia64/ia64-c.c: Likewise.
19270 * config/ia64/ia64.c: Likewise.
19271 * config/iq2000/iq2000.c: Likewise.
19272 * config/lm32/lm32.c: Likewise.
19273 * config/m32c/m32c-pragma.c: Likewise.
19274 * config/m32c/m32c.c: Likewise.
19275 * config/m32r/m32r.c: Likewise.
19276 * config/m68k/m68k.c: Likewise.
19277 * config/mcore/mcore.c: Likewise.
19278 * config/mep/mep-pragma.c: Likewise.
19279 * config/mep/mep.c: Likewise.
19280 * config/microblaze/microblaze-c.c: Likewise.
19281 * config/microblaze/microblaze.c: Likewise.
19282 * config/mips/mips.c: Likewise.
19283 * config/mmix/mmix.c: Likewise.
19284 * config/mn10300/mn10300.c: Likewise.
19285 * config/moxie/moxie.c: Likewise.
19286 * config/msp430/msp430-c.c: Likewise.
19287 * config/msp430/msp430.c: Likewise.
19288 * config/nds32/nds32-cost.c: Likewise.
19289 * config/nds32/nds32-fp-as-gp.c: Likewise.
19290 * config/nds32/nds32-intrinsic.c: Likewise.
19291 * config/nds32/nds32-isr.c: Likewise.
19292 * config/nds32/nds32-md-auxiliary.c: Likewise.
19293 * config/nds32/nds32-memory-manipulation.c: Likewise.
19294 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19295 * config/nds32/nds32-predicates.c: Likewise.
19296 * config/nds32/nds32.c: Likewise.
19297 * config/nios2/nios2.c: Likewise.
19298 * config/nvptx/nvptx.c: Likewise.
19299 * config/pa/pa.c: Likewise.
19300 * config/pdp11/pdp11.c: Likewise.
19301 * config/rl78/rl78-c.c: Likewise.
19302 * config/rl78/rl78.c: Likewise.
19303 * config/rs6000/rs6000-c.c: Likewise.
19304 * config/rs6000/rs6000.c: Likewise.
19305 * config/rx/rx.c: Likewise.
19306 * config/s390/s390-c.c: Likewise.
19307 * config/s390/s390.c: Likewise.
19308 * config/sh/sh-c.c: Likewise.
19309 * config/sh/sh-mem.cc: Likewise.
19310 * config/sh/sh.c: Likewise.
19311 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
19312 * config/sh/sh_treg_combine.cc: Likewise.
19313 * config/sol2-c.c: Likewise.
19314 * config/sol2-cxx.c: Likewise.
19315 * config/sol2-stubs.c: Likewise.
19316 * config/sol2.c: Likewise.
19317 * config/sparc/sparc-c.c: Likewise.
19318 * config/sparc/sparc.c: Likewise.
19319 * config/spu/spu-c.c: Likewise.
19320 * config/spu/spu.c: Likewise.
19321 * config/stormy16/stormy16.c: Likewise.
19322 * config/tilegx/mul-tables.c: Likewise.
19323 * config/tilegx/tilegx-c.c: Likewise.
19324 * config/tilegx/tilegx.c: Likewise.
19325 * config/tilepro/mul-tables.c: Likewise.
19326 * config/tilepro/tilepro-c.c: Likewise.
19327 * config/tilepro/tilepro.c: Likewise.
19328 * config/v850/v850-c.c: Likewise.
19329 * config/v850/v850.c: Likewise.
19330 * config/vax/vax.c: Likewise.
19331 * config/visium/visium.c: Likewise.
19332 * config/vms/vms-c.c: Likewise.
19333 * config/vms/vms.c: Likewise.
19334 * config/vxworks.c: Likewise.
19335 * config/winnt-c.c: Likewise.
19336 * config/xtensa/xtensa.c: Likewise.
19337 * common/config/bfin/bfin-common.c: Likewise.
19338
19339 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
19340
19341 * tree.h (tree_code_for_canonical_type_merging): New function.
19342 * tree.c (gimple_canonical_types_compatible_p): Use
19343 tree_code_for_canonical_type_merging..
19344
19345 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19346
19347 PR c++/66192
19348 PR target/66200
19349 * doc/tm.texi: Regenerate.
19350 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
19351 * target.def (TARGET_RELAXED_ORDERING): Likewise.
19352 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
19353 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
19354 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
19355 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
19356 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
19357 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
19358 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
19359
19360 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19361
19362 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
19363 register fma steering pass.
19364 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
19365 AARCH64_TUNE_FMA_STEERING.
19366
19367 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
19368
19369 * tree.c (verify_type_variant): Verify that type and variant is
19370 compatible.
19371 (gimple_canonical_types_compatible_p): Look for main variants.
19372
19373 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
19374
19375 * config.gcc (powerpc*-*-*): Add support for a new configure
19376 option --with-advance-toolchain=<xxx> which overrides using the
19377 default header files, libraries and dynamic linker.
19378
19379 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
19380 specs to support the configure --with-advance-toolchain=<xxx>
19381 option.
19382 (INCLUDE_EXTRA_SPEC): Likewise.
19383 (LINK_OS_EXTRA_SPEC32): Likewise.
19384 (LINK_OK_EXTRA_SPEC64): Likewise.
19385 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
19386 (DYNAMIC_LINKER_PREFIX): Likewise.
19387 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
19388 toolchain support.
19389 (GLIBC_DYNAMIC_LINKER32): Likewise.
19390 (GLIBC_DYNAMIC_LINKER64): Likewise.
19391 (LINK_OS_LINUX_SPEC32): Likewise.
19392 (LINK_OS_LINUX_SPEC64): Likewise.
19393
19394 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
19395 configuration option.
19396
19397 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
19398
19399 PR target/66275
19400 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
19401 to determine current function ABI.
19402 (ix86_function_value_regno_p): Ditto.
19403
19404 2015-06-03 Martin Liska <mliska@suse.cz>
19405
19406 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
19407 * bitmap.h (struct bitmap_usage): Likewise.
19408 * ggc-common.c (struct ggc_usage): Likewise.
19409 * mem-stats.h (struct mem_location): Likewise.
19410 (struct mem_usage): Likewise.
19411 * vec.c (struct vec_usage): Likewise.
19412
19413 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
19414
19415 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
19416 -Bsymbolic.
19417
19418 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
19419
19420 * doc/plugins.texi (enum plugin_event): New event.
19421 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
19422 and PLUGIN_FINISH_FUNCTION.
19423 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
19424 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
19425
19426 2015-06-03 Richard Biener <rguenther@suse.de>
19427
19428 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
19429 compute GROUP_GAP for the first element.
19430 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
19431 on in-group gaps.
19432
19433 2015-06-03 Nick Clifton <nickc@redhat.com>
19434
19435 * config/rl78/rl78-real.md: Add peepholes to avoid a register
19436 copy when calling a function.
19437 * config/rl78/rl78.c (need_to_save): Do not push the frame
19438 pointer in an interrupt handler prologue if it is never used.
19439
19440 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19441
19442 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
19443
19444 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
19445
19446 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
19447 reference when cloning alias node.
19448
19449 2015-06-03 Martin Liska <mliska@suse.cz>
19450
19451 * alloc-pool.h (struct pool_usage): Correct space padding.
19452 * ggc-page.c (ggc_print_statistics): Align columns in a report.
19453 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
19454 * tree.c (dump_tree_statistics): Align columns in a report.
19455
19456 2015-06-03 Martin Liska <mliska@suse.cz>
19457
19458 * alloc-pool.c (allocate_pool_descriptor): Remove.
19459 (struct pool_output_info): Likewise.
19460 (print_alloc_pool_statistics): Likewise.
19461 (dump_alloc_pool_statistics): Likewise.
19462 * alloc-pool.h (struct pool_usage): New struct.
19463 (pool_allocator::initialize): Change usage of memory statistics
19464 to a new interface.
19465 (pool_allocator::release): Likewise.
19466 (pool_allocator::allocate): Likewise.
19467 (pool_allocator::remove): Likewise.
19468 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
19469 for a pool allocator.
19470 * mem-stats.h (struct mem_location): Add new ctor.
19471 (struct mem_usage): Add counter for number of
19472 instances.
19473 (mem_alloc_description::register_descriptor): New overload of
19474 * mem-stats.h (mem_location::to_string): New function.
19475 * bitmap.h (struct bitmap_usage): Use this new function.
19476 * ggc-common.c (struct ggc_usage): Likewise.
19477 the function.
19478
19479 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
19480
19481 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
19482 of GCC_INSN_FLAGS_H block.
19483
19484 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
19485
19486 * explow.c (plus_constant): Update check after force_const_mem call
19487 to see if the value returned is not a NULL_RTX.
19488
19489 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
19490
19491 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
19492 remove instumentation thunks calling reachable functions.
19493 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
19494 * lto/lto-partition.c (privatize_symbol_name_1): New.
19495 (privatize_symbol_name): Privatize both decl and orig_decl
19496 names for instrumented functions.
19497 * cgraph.c (cgraph_node::verify_node): Add transparent
19498 alias chain check for instrumented node.
19499
19500 2015-06-03 Marek Polacek <polacek@redhat.com>
19501
19502 PR c/64223
19503 PR c/29358
19504 * tree.c (attribute_value_equal): Handle attribute format.
19505 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
19506
19507 2015-06-03 Richard Biener <rguenther@suse.de>
19508
19509 PR tree-optimization/63916
19510 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
19511 Forward-propagate non-invariant addresses by splicing their
19512 reference ops if the result isn't going to be used by PRE.
19513 (vn_reference_lookup_3): Remove pointless assert.
19514
19515 2015-06-03 Richard Biener <rguenther@suse.de>
19516
19517 PR tree-optimization/66375
19518 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
19519 add to the evolution before following SSA edges.
19520
19521 2015-06-03 Bin Cheng <bin.cheng@arm.com>
19522
19523 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
19524 (dump_use, dump_cand, find_induction_variables): Pass new argument
19525 to dump_iv.
19526 (record_use): Preserve the ssa name information in IV.
19527
19528 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
19529
19530 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
19531 NO_MODE_TEST.
19532 (add_mode_tests): Don't add mode tests if the predicate only
19533 accepts scalar constant integers. Otherwise, allow the mode
19534 of "op" to be VOIDmode if the predicate does accept such integers.
19535
19536 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
19537
19538 PR target/66258
19539 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
19540 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
19541 (aarch64_secondary_reload): Likewise
19542 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
19543 to !TARGET_FLOAT.
19544 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
19545 Likewise.
19546
19547 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
19548 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19549
19550 PR target/65768
19551 * cprop.c (try_replace_reg): Check cost of constants before propagating.
19552
19553 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19554
19555 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
19556 provide access to the IBM extended double floating point mode if
19557 long double is IEEE 128-bit floating point.
19558 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
19559 point if long double is the IBM extended double type.
19560
19561 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
19562 enable adding IEEE 128-bit floating point support.
19563 (-mfloat128-software): Likewise.
19564 (-mfloat128-sw): Likewise.
19565
19566 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
19567 128-bit floating point types to occupy any register if
19568 -mlong-double-64. Do not allow use of IFmode/KFmode unless
19569 -mfloat128-software is enabled.
19570 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
19571 support.
19572 (rs6000_option_override_internal): Add -mfloat128-* support.
19573 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
19574
19575 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
19576 and float128 type nodes.
19577 (ieee128_float_type_node): Likewise.
19578 (ibm128_float_type_node): Likewise.
19579
19580 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
19581
19582 PR target/66136
19583 * config/aarch64/geniterators.sh: Rewrite in awk.
19584
19585 2015-06-02 Martin Liska <mliska@suse.cz>
19586
19587 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
19588 values to avoid -Wmaybe-uninitialized errors.
19589
19590 2015-06-02 Richard Biener <rguenther@suse.de>
19591
19592 PR debug/65549
19593 * dwarf2out.c (lookup_context_die): New function.
19594 (resolve_addr): Avoid forcing a full DIE for the
19595 target of a DW_TAG_GNU_call_site during late compilation.
19596 Instead create a stub DIE without a type if we have a
19597 context DIE present.
19598
19599 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
19600
19601 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
19602
19603 2015-06-02 Bin Cheng <bin.cheng@arm.com>
19604
19605 PR tree-optimization/48052
19606 * cfgloop.h (struct control_iv): New.
19607 (struct loop): New field control_ivs.
19608 * tree-ssa-loop-niter.c : Include "stor-layout.h".
19609 (number_of_iterations_lt): Set no_overflow information.
19610 (number_of_iterations_exit): Init control iv in niter struct.
19611 (record_control_iv): New.
19612 (estimate_numbers_of_iterations_loop): Call record_control_iv.
19613 (loop_exits_before_overflow): New. Interface factored out of
19614 scev_probably_wraps_p.
19615 (scev_probably_wraps_p): Factor loop niter related code into
19616 loop_exits_before_overflow.
19617 (free_numbers_of_iterations_estimates_loop): Free control ivs.
19618 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
19619
19620 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
19621
19622 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
19623 the target doesn't belong to the current function.
19624
19625 2015-06-02 Marek Polacek <polacek@redhat.com>
19626
19627 PR middle-end/66345
19628 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
19629 get_maxval_strlen does not produce an INTEGER_CST.
19630
19631 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
19632
19633 * config/arc/constraints.md: Use lower-case names in match_code.
19634 * config/mmix/constraints.md: Likewise.
19635
19636 2015-06-02 Richard Biener <rguenther@suse.de>
19637
19638 PR tree-optimization/65961
19639 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
19640 check and clarify dump message.
19641 (vect_build_slp_tree): If all children are built up from scalars
19642 build up the parent from scalars instead.
19643 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
19644
19645 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
19646
19647 PR other/65366
19648 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
19649 instead of print ... .
19650
19651 2015-06-02 Alan Modra <amodra@gmail.com>
19652
19653 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
19654 2014-08-11 change.
19655
19656 2015-06-02 Bin Cheng <bin.cheng@arm.com>
19657
19658 PR tree-optimization/52563
19659 PR tree-optimization/62173
19660 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
19661 (alloc_iv, set_iv): New parameter.
19662 (determine_biv_step): Delete.
19663 (find_bivs): Inline original determine_biv_step. Pass new
19664 argument to set_iv.
19665 (idx_find_step): Use no_overflow information for conversion.
19666 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
19667 resolve_mixers handle folded_casts.
19668 (instantiate_scev_name): Change bool parameter to bool pointer.
19669 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
19670 (instantiate_array_ref, instantiate_scev_not): Ditto.
19671 (instantiate_scev_3, instantiate_scev_2): Ditto.
19672 (instantiate_scev_1, instantiate_scev_r): Ditto.
19673 (instantiate_scev_convert, ): Change parameter. Pass argument
19674 to chrec_convert_aggressive.
19675 (instantiate_scev): Change argument.
19676 (resolve_mixers): New parameter and set it.
19677 (scev_const_prop): New argument.
19678 * tree-scalar-evolution.h (resolve_mixers): New parameter.
19679 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
19680 of chrec_conert_1.
19681 (chrec_convert): New parameter. Move definition below.
19682 (chrec_convert_aggressive): New parameter and set it. Call
19683 convert_affine_scev.
19684 * tree-chrec.h (chrec_convert): New parameter.
19685 (chrec_convert_aggressive): Ditto.
19686
19687 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
19688
19689 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
19690 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
19691 the LHS of a no-return call if its type has variable size.
19692 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
19693 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
19694
19695 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
19696
19697 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
19698 * config.in: Regenerate.
19699
19700 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
19701
19702 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
19703 consecutive accesses within outer-loop with force_vectorize
19704 for references with zero step in inner-loop.
19705
19706 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
19707
19708 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
19709 rather than from gcc/build directory.
19710
19711 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
19712
19713 PR target/65697
19714 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
19715 for __sync memory models, emit initial loads and final barriers as
19716 appropriate.
19717
19718 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
19719
19720 PR target/65697
19721 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
19722 (aarch64_split_atomic_op): Check for __sync memory models, emit
19723 appropriate initial loads and final barriers.
19724
19725 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
19726
19727 * Makefile.in: Fix gcov dependencies that should
19728 not point to a build folder.
19729
19730 2015-06-01 Richard Biener <rguenther@suse.de>
19731
19732 Revert
19733 2015-05-29 Richard Biener <rguenther@suse.de>
19734
19735 PR tree-optimization/66314
19736 * tree-ssa-threadupdate.c (create_block_for_threading): Add
19737 parameter that says which loop the new block belongs to.
19738 (ssa_create_duplicates): Blocks duplicated for the threaded
19739 path belong to the loop of the thread destination.
19740
19741 2015-06-01 Martin Liska <mliska@suse.cz>
19742
19743 * sched-deps.c: Include pool-alloc.h before
19744 cselib.h header file is included.
19745
19746 2015-06-01 Richard Biener <rguenther@suse.de>
19747
19748 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
19749 functions.
19750
19751 2015-06-01 Martin Liska <mliska@suse.cz>
19752
19753 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
19754 a function local variable.
19755
19756 2015-06-01 Martin Liska <mliska@suse.cz>
19757
19758 * alloc-pool.c (create_alloc_pool): Remove.
19759 (empty_alloc_pool): Likewise.
19760 (free_alloc_pool): Likewise.
19761 (free_alloc_pool_if_empty): Likewise.
19762 (pool_alloc): Likewise.
19763 (pool_free): Likewise.
19764 * alloc-pool.h: Remove old declarations.
19765
19766 2015-06-01 Martin Liska <mliska@suse.cz>
19767
19768 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
19769 (ira_create_object): Likewise.
19770 (ira_create_allocno): Likewise.
19771 (ira_create_live_range): Likewise.
19772 (copy_live_range): Likewise.
19773 (ira_finish_live_range): Likewise.
19774 (ira_free_allocno_costs): Likewise.
19775 (finish_allocno): Likewise.
19776 (finish_allocnos): Likewise.
19777 (initiate_prefs): Likewise.
19778 (ira_create_pref): Likewise.
19779 (finish_pref): Likewise.
19780 (finish_prefs): Likewise.
19781 (initiate_copies): Likewise.
19782 (ira_create_copy): Likewise.
19783 (finish_copy): Likewise.
19784 (finish_copies): Likewise.
19785 (finish_prefs): Likewise.
19786
19787 2015-06-01 Martin Liska <mliska@suse.cz>
19788
19789 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
19790 (allocate_and_init_ipcp_value): Likewise.
19791 (ipcp_lattice::add_value): Likewise.
19792 (merge_agg_lats_step): Likewise.
19793 (ipcp_driver): Likewise.
19794 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
19795 (ipa_free_all_structures_after_iinln): Likewise.
19796 * ipa-prop.h: Likewise.
19797
19798 2015-06-01 Martin Liska <mliska@suse.cz>
19799
19800 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
19801 pool allocator.
19802 (set_hint_predicate): Likewise.
19803 (inline_summary_alloc): Likewise.
19804 (reset_inline_edge_summary): Likewise.
19805 (reset_inline_summary): Likewise.
19806 (set_cond_stmt_execution_predicate): Likewise.
19807 (set_switch_stmt_execution_predicate): Likewise.
19808 (compute_bb_predicates): Likewise.
19809 (estimate_function_body_sizes): Likewise.
19810 (inline_free_summary): Likewise.
19811
19812 2015-06-01 Martin Liska <mliska@suse.cz>
19813
19814 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
19815 (ipa_edge_duplication_hook): Likewise.
19816 (ipa_free_all_structures_after_ipa_cp): Likewise.
19817 (ipa_free_all_structures_after_iinln): Likewise.
19818
19819 2015-06-01 Martin Liska <mliska@suse.cz>
19820
19821 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
19822 (ipa_profile_generate_summary): Likewise.
19823 (ipa_profile_read_summary): Likewise.
19824 (ipa_profile): Likewise.
19825
19826 2015-06-01 Martin Liska <mliska@suse.cz>
19827
19828 * tree-ssa-structalias.c (new_var_info): Use new type-based
19829 pool allocator.
19830 (new_constraint): Likewise.
19831 (init_alias_vars): Likewise.
19832 (delete_points_to_sets): Likewise.
19833
19834 2015-06-01 Martin Liska <mliska@suse.cz>
19835
19836 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
19837 (free_strinfo): Likewise.
19838 (pass_strlen::execute): Likewise.
19839
19840 2015-06-01 Martin Liska <mliska@suse.cz>
19841
19842 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
19843 pool allocator.
19844 (vn_reference_insert_pieces): Likewise.
19845 (vn_phi_insert): Likewise.
19846 (visit_reference_op_call): Likewise.
19847 (copy_phi): Likewise.
19848 (copy_reference): Likewise.
19849 (process_scc): Likewise.
19850 (allocate_vn_table): Likewise.
19851 (free_vn_table): Likewise.
19852
19853 2015-06-01 Martin Liska <mliska@suse.cz>
19854
19855 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
19856 pool allocator.
19857 (add_repeat_to_ops_vec): Likewise.
19858 (get_ops): Likewise.
19859 (maybe_optimize_range_tests): Likewise.
19860 (init_reassoc): Likewise.
19861 (fini_reassoc): Likewise.
19862
19863 2015-06-01 Martin Liska <mliska@suse.cz>
19864
19865 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
19866 pool allocator.
19867 (bitmap_set_new): Likewise.
19868 (get_or_alloc_expr_for_constant): Likewise.
19869 (get_or_alloc_expr_for): Likewise.
19870 (phi_translate_1): Likewise.
19871 (compute_avail): Likewise.
19872 (init_pre): Likewise.
19873 (fini_pre): Likewise.
19874
19875 2015-06-01 Martin Liska <mliska@suse.cz>
19876
19877 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
19878 (delete_dep_node): Likewise.
19879 (create_deps_list): Likewise.
19880 (free_deps_list): Likewise.
19881 (sched_deps_init): Likewise.
19882 (sched_deps_finish): Likewise.
19883
19884 2015-06-01 Martin Liska <mliska@suse.cz>
19885
19886 * regcprop.c (free_debug_insn_changes): Use new type-based
19887 pool allocator.
19888 (replace_oldest_value_reg): Likewise.
19889 (pass_cprop_hardreg::execute): Likewise.
19890
19891 2015-06-01 Martin Liska <mliska@suse.cz>
19892
19893 * ira-build.c (initiate_cost_vectors): Use new type-based
19894 pool allocator.
19895 (ira_allocate_cost_vector): Likewise.
19896 (ira_free_cost_vector): Likewise.
19897 (finish_cost_vectors): Likewise.
19898
19899 2015-06-01 Martin Liska <mliska@suse.cz>
19900
19901 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
19902 pool allocator.
19903 (free_sched_pools): Likewise.
19904 * sel-sched-ir.h (_list_alloc): Likewise.
19905 (_list_remove): Likewise.
19906
19907 2015-06-01 Martin Liska <mliska@suse.cz>
19908
19909 * stmt.c (add_case_node): Use new type-based pool allocator.
19910 (expand_case): Likewise.
19911 (expand_sjlj_dispatch_table): Likewise.
19912
19913 2015-06-01 Martin Liska <mliska@suse.cz>
19914
19915 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
19916 (free_bb): Likewise.
19917 (pass_cse_reciprocals::execute): Likewise.
19918
19919 2015-06-01 Martin Liska <mliska@suse.cz>
19920
19921 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
19922 (sra_deinitialize) Likewise.
19923 (create_access_1) Likewise.
19924 (build_accesses_from_assign) Likewise.
19925 (create_artificial_child_access) Likewise.
19926
19927 2015-06-01 Martin Liska <mliska@suse.cz>
19928
19929 * dse.c (get_group_info):Use new type-based pool allocator.
19930 (dse_step0) Likewise.
19931 (free_store_info) Likewise.
19932 (delete_dead_store_insn) Likewise.
19933 (free_read_records) Likewise.
19934 (record_store) Likewise.
19935 (replace_read) Likewise.
19936 (check_mem_read_rtx) Likewise.
19937 (scan_insn) Likewise.
19938 (dse_step1) Likewise.
19939 (dse_step7) Likewise.
19940
19941 2015-06-01 Martin Liska <mliska@suse.cz>
19942
19943 * df-scan.c (struct df_scan_problem_data):Use new type-based
19944 pool allocator.
19945 (df_scan_free_internal) Likewise.
19946 (df_scan_alloc) Likewise.
19947 (df_grow_reg_info) Likewise.
19948 (df_free_ref) Likewise.
19949 (df_insn_create_insn_record) Likewise.
19950 (df_mw_hardreg_chain_delete) Likewise.
19951 (df_insn_info_delete) Likewise.
19952 (df_free_collection_rec) Likewise.
19953 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
19954 (df_sort_and_compress_mws) Likewise.
19955 (df_ref_create_structure) Likewise.
19956 (df_ref_record) Likewise.
19957
19958 2015-06-01 Martin Liska <mliska@suse.cz>
19959
19960 * df-problems.c (df_chain_create):Use new type-based pool allocator.
19961 (df_chain_unlink_1) Likewise.
19962 (df_chain_unlink) Likewise.
19963 (df_chain_remove_problem) Likewise.
19964 (df_chain_alloc) Likewise.
19965 (df_chain_free) Likewise.
19966 * df.h (struct dataflow) Likewise.
19967
19968 2015-06-01 Martin Liska <mliska@suse.cz>
19969
19970 * cselib.c (new_elt_list):Use new type-based pool allocator.
19971 (new_elt_loc_list) Likewise.
19972 (unchain_one_elt_list) Likewise.
19973 (unchain_one_elt_loc_list) Likewise.
19974 (unchain_one_value) Likewise.
19975 (new_cselib_val) Likewise.
19976 (cselib_init) Likewise.
19977 (cselib_finish) Likewise.
19978
19979 2015-06-01 Martin Liska <mliska@suse.cz>
19980
19981 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
19982 (sh_reorg) Likewise.
19983
19984 2015-06-01 Martin Liska <mliska@suse.cz>
19985
19986 * cfg.c (initialize_original_copy_tables):Use new type-based
19987 pool allocator.
19988 (free_original_copy_tables) Likewise.
19989 (copy_original_table_clear) Likewise.
19990 (copy_original_table_set) Likewise.
19991
19992 2015-06-01 Martin Liska <mliska@suse.cz>
19993
19994 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
19995 pool allocator.
19996 (asan_mem_ref_new) Likewise.
19997 (free_mem_ref_resources) Likewise.
19998
19999 2015-06-01 Martin Liska <mliska@suse.cz>
20000
20001 * var-tracking.c (variable_htab_free):Use new type-based
20002 pool allocator.
20003 (attrs_list_clear) Likewise.
20004 (attrs_list_insert) Likewise.
20005 (attrs_list_copy) Likewise.
20006 (shared_hash_unshare) Likewise.
20007 (shared_hash_destroy) Likewise.
20008 (unshare_variable) Likewise.
20009 (var_reg_delete_and_set) Likewise.
20010 (var_reg_delete) Likewise.
20011 (var_regno_delete) Likewise.
20012 (drop_overlapping_mem_locs) Likewise.
20013 (variable_union) Likewise.
20014 (insert_into_intersection) Likewise.
20015 (canonicalize_values_star) Likewise.
20016 (variable_merge_over_cur) Likewise.
20017 (dataflow_set_merge) Likewise.
20018 (remove_duplicate_values) Likewise.
20019 (variable_post_merge_new_vals) Likewise.
20020 (dataflow_set_preserve_mem_locs) Likewise.
20021 (dataflow_set_remove_mem_locs) Likewise.
20022 (variable_from_dropped) Likewise.
20023 (variable_was_changed) Likewise.
20024 (set_slot_part) Likewise.
20025 (clobber_slot_part) Likewise.
20026 (delete_slot_part) Likewise.
20027 (loc_exp_insert_dep) Likewise.
20028 (notify_dependents_of_changed_value) Likewise.
20029 (emit_notes_for_differences_1) Likewise.
20030 (vt_emit_notes) Likewise.
20031 (vt_initialize) Likewise.
20032 (vt_finalize) Likewise.
20033
20034 2015-06-01 Martin Liska <mliska@suse.cz>
20035
20036 * ira-color.c (init_update_cost_records):Use new type-based
20037 pool allocator.
20038 (get_update_cost_record) Likewise.
20039 (free_update_cost_record_list) Likewise.
20040 (finish_update_cost_records) Likewise.
20041 (initiate_cost_update) Likewise.
20042
20043 2015-06-01 Martin Liska <mliska@suse.cz>
20044
20045 * lra.c (init_insn_regs): Use new type-based pool allocator.
20046 (new_insn_reg) Likewise.
20047 (free_insn_reg) Likewise.
20048 (free_insn_regs) Likewise.
20049 (finish_insn_regs) Likewise.
20050 (init_insn_recog_data) Likewise.
20051 (init_reg_info) Likewise.
20052 (finish_reg_info) Likewise.
20053 (lra_free_copies) Likewise.
20054 (lra_create_copy) Likewise.
20055 (invalidate_insn_data_regno_info) Likewise.
20056
20057 2015-06-01 Martin Liska <mliska@suse.cz>
20058
20059 * lra-lives.c (free_live_range): Use new type-based pool allocator.
20060 (free_live_range_list) Likewise.
20061 (create_live_range) Likewise.
20062 (copy_live_range) Likewise.
20063 (lra_merge_live_ranges) Likewise.
20064 (remove_some_program_points_and_update_live_ranges) Likewise.
20065 (lra_live_ranges_init) Likewise.
20066 (lra_live_ranges_finish) Likewise.
20067
20068 2015-06-01 Martin Liska <mliska@suse.cz>
20069
20070 * et-forest.c (et_new_occ): Use new type-based pool allocator.
20071 (et_new_tree): Likewise.
20072 (et_free_tree): Likewise.
20073 (et_free_tree_force): Likewise.
20074 (et_free_pools): Likewise.
20075 (et_split): Likewise.
20076
20077 2015-06-01 Martin Liska <mliska@suse.cz>
20078
20079 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
20080 to header file.
20081 * alloc-pool.h (pool_allocator::pool_allocator): New function.
20082 (pool_allocator::release): Likewise.
20083 (inline pool_allocator::release_if_empty): Likewise.
20084 (inline pool_allocator::~pool_allocator): Likewise.
20085 (pool_allocator::allocate): Likewise.
20086 (pool_allocator::remove): Likewise.
20087
20088 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
20089
20090 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
20091 in comment.
20092
20093 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
20094
20095 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
20096 to fusible_ops.
20097 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
20098 (arm_macro_fusion_p): Likewise.
20099 (arm_macro_fusion_pair_p): Likewise.
20100
20101 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
20102
20103 * config/aarch64/aarch64-protos.h (tune_params): Rename
20104 fuseable_ops to fusible_ops.
20105 * config/aarch64/aarch64.c (generic_tunings): Rename
20106 fuseable_ops to fusible_ops.
20107 (cortexa53_tunings): Likewise.
20108 (cortexa57_tunings): Likewise.
20109 (thunderx_tunings): Likewise.
20110 (xgene1_tunings): Likewise.
20111 (aarch64_macro_fusion_p): Likewise.
20112 (aarch64_macro_fusion_pair_p): Likewise.
20113
20114 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
20115
20116 * config/s390/driver-native.c: New file.
20117 * config/s390/x-native: New file.
20118 * config.host: Add new files for s390.
20119 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
20120 and -march=native
20121 * config.gcc: Likewise.
20122 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
20123 * config/s390/s390-opts.h (enum processor_type): Ditto.
20124 * config/s390/s390.c (s390_option_override): Catch unhandled
20125 PROCESSOR_NATIVE
20126
20127 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
20128
20129 PR target/65527
20130 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
20131 redirection for instrumented calls.
20132 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
20133 (append_compiler_options): Append -fcheck-pointer-bounds.
20134 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
20135 (chkp_redirect_edge): New.
20136 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
20137 (chkp_redirect_edge): New.
20138
20139 2015-06-01 Richard Biener <rguenther@suse.de>
20140
20141 PR tree-optimization/66280
20142 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
20143 def-use walking.
20144
20145 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20146
20147 * config/aarch64/aarch64.md
20148 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
20149 logic_shift_imm.
20150
20151 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
20152
20153 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
20154 Remove obsolete kludge.
20155
20156 2015-06-01 Richard Biener <rguenther@suse.de>
20157
20158 * tree-ssa-reassoc.c (get_rank): Simplify.
20159
20160 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
20161
20162 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
20163 * configure: Regenerated.
20164
20165 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
20166
20167 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
20168 issue (add space between string literal and macro).
20169 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
20170
20171 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
20172
20173 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
20174 implict or explicit -fPIE or -fpie.
20175
20176 2015-05-30 Mike Frysinger <vapier@gentoo.org>
20177
20178 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
20179
20180 2015-05-28 DJ Delorie <dj@redhat.com>
20181
20182 * expmed.c (extract_bit_field_1): Avoid clobbering a
20183 yet-to-be-used base/index register.
20184
20185 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
20186
20187 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
20188 (alias_stats): Add num_universal.
20189 (alias_set_subset_of): Special case pointers; be ready for NULL
20190 children.
20191 (alias_sets_conflict_p): Special case pointers; be ready for NULL
20192 children.
20193 (init_alias_set_entry): Break out from ...
20194 (record_alias_subset): ... here; propagate new fields;
20195 allocate children only when really needed.
20196 (get_alias_set): Do less generous pointer globbing.
20197 (dump_alias_stats_in_alias_c): Update statistics.
20198
20199 2015-05-30 Alan Modra <amodra@gmail.com>
20200
20201 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
20202 correct block for use of r12.
20203 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
20204
20205 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
20206
20207 PR target/66215
20208 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
20209 with -mhotpatch=.
20210
20211 2015-05-29 Jakub Jelinek <jakub@redhat.com>
20212
20213 PR tree-optimization/66142
20214 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
20215 virtual phis that feed themselves.
20216
20217 2015-05-29 Richard Biener <rguenther@suse.de>
20218
20219 PR tree-optimization/66314
20220 * tree-ssa-threadupdate.c (create_block_for_threading): Add
20221 parameter that says which loop the new block belongs to.
20222 (ssa_create_duplicates): Blocks duplicated for the threaded
20223 path belong to the loop of the thread destination.
20224
20225 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20226
20227 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
20228 to cleanup-saved-temps.
20229 * doc/sourcebuild.texi (Clean up generated test files): Expand
20230 introduction.
20231 (dg-keep-saved-temps): Document new proc.
20232 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
20233 cleanup-saved-temps): Remove.
20234
20235 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
20236
20237 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
20238 gcc_AC_CHECK_DECLS.
20239 * configure: Regenerate.
20240
20241 2015-05-28 Mike Frysinger <vapier@gentoo.org>
20242
20243 * config/nios2/linux.h (CPP_SPEC): Define.
20244
20245 2015-05-28 Mike Frysinger <vapier@gentoo.org>
20246
20247 * config/microblaze/linux.h (CPP_SPEC): Define.
20248
20249 2015-05-28 Mike Frysinger <vapier@gentoo.org>
20250
20251 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
20252 -pthread is specified.
20253
20254 2015-05-28 Richard Biener <rguenther@suse.de>
20255
20256 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
20257 (vect_fixup_scalar_cycles_with_patterns): Likewise.
20258 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
20259 after pattern recog.
20260 (vect_create_epilog_for_reduction): Properly handle reductions
20261 with patterns.
20262 (vectorizable_reduction): Likewise.
20263 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
20264 reduction chains.
20265 (vect_get_constant_vectors): Create the correct number of
20266 initial values for reductions.
20267 (vect_schedule_slp_instance): Handle reduction chains that are
20268 type changing properly.
20269 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
20270
20271 2015-05-28 Richard Biener <rguenther@suse.de>
20272
20273 PR tree-optimization/66142
20274 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
20275 values better in memcpy destination handling. Handle non-aliasing
20276 we discover here.
20277
20278 2015-05-28 Lawrence Velázquez <vq@larryv.me>
20279
20280 PR target/63810
20281 * config/darwin-c.c (version_components): New global enum.
20282 (parse_version, version_as_legacy_macro)
20283 (version_as_modern_macro, macosx_version_as_macro): New functions.
20284 (version_as_macro): Remove.
20285 (darwin_cpp_builtins): Use new function.
20286
20287 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
20288
20289 * builtins.c (expand_builtin_acc_on_device): Mark parameters
20290 with ATTRIBUTE_UNUSED.
20291
20292 2015-05-28 Julian Brown <julian@codesourcery.com>
20293
20294 PR libgomp/65742
20295
20296 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
20297 sequence for !ACCEL_COMPILER.
20298
20299 2015-05-28 Nick Clifton <nickc@redhat.com>
20300
20301 * config/rx/rx.c (push_regs): New function. Extracts code from...
20302 (rx_expand_prologue): ... here. Use push_regs to push even small
20303 spans of registers.
20304 (pop_regs): New function.
20305 (rx_expand_epilogue): Use pop_regs to pop even small spans of
20306 registers.
20307
20308 2015-05-28 Richard Biener <rguenther@suse.de>
20309
20310 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
20311 member.
20312 (SLP_INSTANCE_BODY_COST_VEC): Remove.
20313 (vect_update_slp_costs_according_to_vf): Likewise.
20314 (vect_slp_analyze_operations): Update prototype.
20315 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
20316 vect_update_slp_costs_according_to_vf, adjust.
20317 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
20318 (vect_analyze_slp_cost_1): Likewise.
20319 (vect_analyze_slp_cost): Likewise. Properly deal with
20320 widening reduction ops. Commit body costs.
20321 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
20322 cost for loops from here.
20323 (vect_slp_analyze_operations): But do it from here when
20324 the vectorization factor is known and stmts are analyzed.
20325 (vect_bb_vectorization_profitable_p): Simplify.
20326 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
20327 (vect_update_slp_costs_according_to_vf): Remove.
20328
20329 2015-05-27 Magnus Granberg <zorry@gentoo.org>
20330 H.J. Lu <hongjiu.lu@intel.com>
20331
20332 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
20333 (BUILD_CFLAGS): Likewise.
20334 (BUILD_CXXFLAGS): Likewise.
20335 (LINKER): Add @NO_PIE_FLAG@.
20336 (BUILD_LDFLAGS): Likewise.
20337 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
20338 --enable-default-pie.
20339 * common.opt (fPIE): Initialize to -1.
20340 (fpie): Likewise.
20341 (no-pie): New option.
20342 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
20343 * configure.ac: Add --enable-default-pie.
20344 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
20345 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
20346 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
20347 * gcc.c (NO_PIE_SPEC): New.
20348 (PIE_SPEC): Likewise.
20349 (NO_FPIE1_SPEC): Likewise.
20350 (FPIE1_SPEC): Likewise.
20351 (NO_FPIE2_SPEC): Likewise.
20352 (FPIE2_SPEC): Likewise.
20353 (NO_FPIE2_SPEC): Likewise.
20354 (FPIE_SPEC): Likewise.
20355 (NO_FPIE_SPEC): Likewise.
20356 (NO_FPIC1_SPEC): Likewise.
20357 (FPIC1_SPEC): Likewise.
20358 (NO_FPIC2_SPEC): Likewise.
20359 (FPIC2_SPEC): Likewise.
20360 (NO_FPIC2_SPEC): Likewise.
20361 (FPIC_SPEC): Likewise.
20362 (NO_FPIC_SPEC): Likewise.
20363 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
20364 (FPIE1_OR_FPIC1_SPEC): Likewise.
20365 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
20366 (FPIE2_OR_FPIC2_SPEC): Likewise.
20367 (NO_FPIE_AND_FPIC_SPEC): Likewise.
20368 (FPIE_OR_FPIC_SPEC): Likewise.
20369 (LD_PIE_SPEC): Likewise.
20370 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
20371 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
20372 * config/darwin.h (PIE_SPEC): Renamed to ...
20373 (DARWIN_PIE_SPEC): This.
20374 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
20375 * config/darwin9.h (PIE_SPEC): Renamed to ...
20376 (DARWIN_PIE_SPEC): This.
20377 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
20378 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
20379 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
20380 FPIE2_OR_FPIC2_SPEC.
20381 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
20382 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
20383 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
20384 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20385 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20386 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20387 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
20388 * config/m32r/m32r.h (ASM_SPEC): Likewise.
20389 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
20390 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
20391 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
20392 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
20393 * config/sparc/linux.h (ASM_SPEC): Likewise.
20394 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20395 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
20396 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
20397 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20398 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
20399 * config/sparc/sparc.h (ASM_SPEC): Likewise.
20400 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
20401 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
20402 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
20403 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
20404 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
20405 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
20406 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
20407 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
20408 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
20409 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
20410 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
20411 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
20412 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20413 * config/vax/linux.h (ASM_SPEC): Likewise.
20414 * doc/install.texi: Document --enable-default-pie.
20415 * doc/invoke.texi: Document -no-pie.
20416 * config.in: Regenerated.
20417 * configure: Likewise.
20418
20419 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
20420
20421 PR rtl-optimization/66168
20422 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
20423 can_move_invariant_reg.
20424
20425 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
20426
20427 PR target/66148
20428 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
20429 REG_EQUAL note when doing insert.
20430
20431 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
20432 instead of "%d" for 'o' operand.
20433
20434 2015-05-27 Nathan Sidwell <nathan@acm.org>
20435
20436 PR c++/66270
20437 * tree.c (build_pointer_type_for_mode): Canonical type does not
20438 inherit can_alias_all.
20439 (build_reference_type_for_mode): Likewise.
20440
20441 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
20442
20443 * expr.h (array_at_struct_end_p): Move to...
20444 (array_ref_element_size): Likewise.
20445 (component_ref_field_offset): Likewise.
20446 * tree.h (array_ref_element_size): ...here.
20447 (array_at_struct_end_p): Likewise.
20448 (component_ref_field_offset): Likewise.
20449 * expr.c (array_ref_element_size): Move to...
20450 (array_ref_low_bound): Likewise.
20451 (array_at_struct_end_p): Likewise.
20452 (array_ref_up_bound): Likewise.
20453 (component_ref_field_offset): Likewise.
20454 * tree.c (array_ref_element_size): ...here.
20455 (array_ref_low_bound): Likewise.
20456 (array_ref_up_bound): Likewise.
20457 (array_at_struct_end_p): Likewise.
20458 (component_ref_field_offset): Likewise.
20459
20460 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
20461 Szabolcs Nagy <szabolcs.nagy@arm.com>
20462
20463 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
20464
20465 2015-05-27 Jason Merrill <jason@redhat.com>
20466
20467 PR bootstrap/66304
20468 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
20469 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
20470 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
20471
20472 2015-05-22 Aditya Kumar <hiraditya@msn.com>
20473
20474 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
20475 is true.
20476
20477 * statistics.c (statistics_fini_pass): Print pass name.
20478
20479 2015-05-27 Richard Biener <rguenther@suse.de>
20480
20481 PR tree-optimization/66272
20482 Revert parts of
20483 2014-08-15 Richard Biener <rguenther@suse.de>
20484
20485 PR tree-optimization/62031
20486 * tree-data-ref.c (dr_analyze_indices): Do not set
20487 DR_UNCONSTRAINED_BASE.
20488 (dr_may_alias_p): All indirect accesses have to go the
20489 formerly DR_UNCONSTRAINED_BASE path.
20490 * tree-data-ref.h (struct indices): Remove
20491 unconstrained_base member.
20492 (DR_UNCONSTRAINED_BASE): Remove.
20493
20494 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
20495
20496 * dwarf2out.c: Remove block_map.
20497 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
20498 (gen_lexical_block_die): Same.
20499 (dwarf2out_function_decl): Remove block_map use.
20500 (dwarf2out_c_finalize): Same.
20501 * tree-core.h (struct tree_block): Add die field.
20502 * tree.h (BLOCK_DIE): New.
20503
20504 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20505
20506 PR target/65358
20507 * expr.c (memory_load_overlap): New function.
20508 (emit_push_insn): When pushing partial args to the stack would
20509 clobber the register part load the overlapping part into a pseudo
20510 and put it into the hard reg after pushing. Change return type
20511 to bool. Add bool argument.
20512 * expr.h (emit_push_insn): Change return type to bool.
20513 Add bool argument.
20514 * calls.c (expand_call): Cancel sibcall optimization when encountering
20515 partial argument on targets with ARGS_GROW_DOWNWARD and
20516 !STACK_GROWS_DOWNWARD.
20517 (emit_library_call_value_1): Update callsite of emit_push_insn.
20518 (store_one_arg): Likewise.
20519
20520 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
20521
20522 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
20523
20524 2015-05-27 Martin Liska <mliska@suse.cz>
20525
20526 * Makefile.in: Add additional dependencies related to memory report
20527 enhancement.
20528 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
20529 * bitmap.c (struct bitmap_descriptor_d): Remove.
20530 (struct loc): Likewise.
20531 (struct bitmap_desc_hasher): Likewise.
20532 (bitmap_desc_hasher::hash): Likewise.
20533 (bitmap_desc_hasher::equal): Likewise.
20534 (get_bitmap_descriptor): Likewise.
20535 (bitmap_register): User new memory descriptor API.
20536 (register_overhead): Likewise.
20537 (bitmap_find_bit): Register nsearches and search_iter statistics.
20538 (struct bitmap_output_info): Remove.
20539 (print_statistics): Likewise.
20540 (dump_bitmap_statistics): Use new memory descriptor.
20541 * bitmap.h (struct bitmap_usage): New class.
20542 * genmatch.c: Extend header file inclusion.
20543 * genpreds.c: Likewise.
20544 * ggc-common.c (struct ggc_usage): New class.
20545 (struct ggc_loc_desc_hasher): Remove.
20546 (ggc_loc_desc_hasher::hash): Likewise.
20547 (ggc_loc_desc_hasher::equal): Likewise.
20548 (struct ggc_ptr_hash_entry): Likewise.
20549 (struct ptr_hash_hasher): Likewise.
20550 (ptr_hash_hasher::hash): Likewise.
20551 (ptr_hash_hasher::equal): Likewise.
20552 (make_loc_descriptor): Likewise.
20553 (ggc_prune_ptr): Likewise.
20554 (dump_ggc_loc_statistics): Use new memory descriptor.
20555 (ggc_record_overhead): Likewise.
20556 (ggc_free_overhead): Likewise.
20557 (final_cmp_statistic): Remove.
20558 (cmp_statistic): Likewise.
20559 (ggc_add_statistics): Liekwise.
20560 (ggc_prune_overhead_list): Likewise.
20561 * hash-map-traits.h: New file.
20562 * hash-map.h (struct default_hashmap_traits): Move the traits to a
20563 separate header file.
20564 * hash-set.h: Pass memory statistics info to ctor.
20565 * hash-table.c (void dump_hash_table_loc_statistics): New function.
20566 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
20567 (hash_table::~hash_table): Register memory release operation.
20568 (hash_table::alloc_entries): Handle memory allocation operation.
20569 (hash_table::expand): Likewise.
20570 * inchash.c (iterative_hash_hashval_t): Move implementation to header
20571 file.
20572 (iterative_hash_host_wide_int): Likewise.
20573 * inchash.h (class hash): Likewise.
20574 * mem-stats-traits.h: New file.
20575 * mem-stats.h: New file.
20576 (mem_location): Add new class.
20577 (mem_usage): Likewise.
20578 (mem_alloc_description): Likewise.
20579 * sese.c: Add new header file inclusision.
20580 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
20581 and hash_set.
20582 * tree-sra.c: Add new header file inclusision.
20583 * vec.c (struct vec_descriptor): Remove.
20584 (hash_descriptor): Likewise.
20585 (struct vec_usage): Likewise.
20586 (struct ptr_hash_entry): Likewise.
20587 (hash_ptr): Likewise.
20588 (eq_ptr): Likewise.
20589 (vec_prefix::register_overhead): Use new memory descriptor API.
20590 (vec_prefix::release_overhead): Likewise.
20591 (add_statistics): Remove.
20592 (dump_vec_loc_statistics): Use new memory descriptor API.
20593 * vec.h (struct vec_prefix): Likewise.
20594 (va_heap::reserve): Likewise.
20595 (va_heap::release): Likewise.
20596 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
20597
20598 2015-05-27 Richard Biener <rguenther@suse.de>
20599
20600 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
20601 earlier and remove ??? comment.
20602 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
20603 and got called from loop analysis bail out. Always pass the SLP
20604 node to the vectorizable_* functions.
20605 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
20606 the premature SLP check here.
20607 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
20608 detected SLP stmts.
20609 (vect_detect_hybrid_slp_1): Likewise.
20610
20611 2015-05-26 Jeff Law <law@redhat.com>
20612
20613 * combine.c (find_split_point): Verify that the shift count is a
20614 constant when choosing (plus (ashift ...)) as a split point.
20615
20616 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
20617 No functional changes.
20618
20619 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
20620
20621 * ipa-polymorphic-call.c
20622 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
20623 case when call target is already known.
20624
20625 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
20626
20627 PR target/65979
20628 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
20629 take into account the case that operands[1] and operands[2]
20630 are the same register.
20631
20632 2015-05-26 Michael Matz <matz@suse.de>
20633
20634 PR middle-end/66251
20635
20636 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
20637 stores.
20638 (vect_create_vectorized_demotion_stmts): Always set
20639 STMT_VINFO_VEC_STMT, also with SLP.
20640 (vectorizable_store): Handle strided group stores.
20641
20642 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20643
20644 PR target/66049
20645 * config/aarch64/aarch64.md
20646 (*adds_shift_imm_<mode>): New pattern.
20647 (*subs_shift_imm_<mode>): Likewise.
20648 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
20649 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
20650 (*add_uxt<mode>_shift2): Likewise.
20651 (*add_uxtsi_shift2_uxtw): Likewise.
20652 (*sub_uxt<mode>_shift2): Likewise.
20653 (*sub_uxtsi_shift2_uxtw): Likewise.
20654
20655 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
20656
20657 * config/rs6000/constraints.md (Y, U): Use match_test.
20658
20659 2015-05-26 Christian Bruel <christian.bruel@st.com>
20660
20661 PR target/52144
20662 * config/arm/arm.c (arm_option_check_internal)
20663 (arm_option_params_internal): Check opts->target_flags to set macros.
20664 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
20665 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
20666 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
20667 (builtin_define): Replaced with def_or_undef_macro.
20668 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
20669 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
20670 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
20671 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
20672 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
20673 (TARGET_ARM_FEATURE_LDREX_P)
20674 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
20675 * config/arm/arm-c.c (def_or_undef_macro): New function.
20676 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
20677
20678 2015-05-26 Christian Bruel <christian.bruel@st.com>
20679
20680 * c-common.h (builtin_define_with_int_value)
20681 (builtin_define_type_sizeof): Declare.
20682 * c-cppbuiltin.c (builtin_define_with_int_value)
20683 (builtin_define_type_sizeof): Externalize.
20684 (builtin_define_std): Cleanup declaration.
20685 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
20686 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
20687 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
20688 (builtin_define, builtin_assert): New macros.
20689
20690 2015-05-26 Richard Biener <rguenther@suse.de>
20691
20692 PR tree-optimization/66142
20693 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
20694 MEM_REFs for the same base address.
20695
20696 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20697
20698 PR ipa/66181
20699 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
20700
20701 2015-05-26 Jason Merrill <jason@redhat.com>
20702
20703 * configure.ac: Set CXXFLAGS for ISL test.
20704 * configure: Regenerate.
20705
20706 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
20707 strstr and basename.
20708 * configure: Regenerate.
20709
20710 2015-05-26 Richard Biener <rguenther@suse.de>
20711
20712 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
20713 X % C -> X & (C - 1) for C being a power-of two to ...
20714 * match.pd: ... patterns.
20715
20716 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
20717
20718 * match.pd (swapped_tcc_comparison): New operator list.
20719 (-A CMP -B): New simplification.
20720 * fold-const.c (fold_comparison): Remove corresponding code.
20721
20722 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
20723
20724 * caller-save.c (init_caller_save): Base temporary register numbers
20725 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
20726 * cfgloopanal.c (init_set_costs): Likewise.
20727 * dojump.c (prefer_and_bit_test): Likewise.
20728 * expr.c (init_expr_target): Likewise.
20729 * ira.c (setup_prohibited_mode_move_regs): Likewise.
20730 * lower-subreg.c (init_lower_subreg): Likewise.
20731 * postreload.c (reload_cse_regs_1): Likewise.
20732
20733 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
20734
20735 * gensupport.h (compute_test_codes): Declare.
20736 * gensupport.c (compute_predicate_codes): Rename to...
20737 (compute_test_codes): ...this. Generalize error message.
20738 (process_define_predicate): Update accordingly.
20739 * genpreds.c (compute_maybe_allows): Delete.
20740 (add_constraint): Use compute_test_codes to determine whether
20741 something can accept a SUBREG, REG or MEM.
20742
20743 2015-05-26 Torvald Riegel <triegel@redhat.com>
20744
20745 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
20746 'memory model' to align with C++11; fix description of memory orders;
20747 fix a few typos.
20748
20749 2015-05-26 Richard Biener <rguenther@suse.de>
20750
20751 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
20752 (vect_analyze_loop_operations): ... here. Remove slp parameter,
20753 detect whether we apply SLP. Remove call to
20754 vect_update_slp_costs_according_to_vf.
20755 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
20756 vect_update_slp_costs_according_to_vf from here. Dispatch
20757 to vect_slp_analyze_operations to analyze SLP stmts.
20758 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
20759 unused bb_vec_info parameter, adjust assert.
20760 (vect_slp_analyze_operations): Pass in the slp instance tree
20761 instead of bb_vec_info.
20762 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
20763 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
20764
20765 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
20766
20767 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
20768 Q_REGS. Expand comment.
20769 (REG_CLASS_NAMES): Ditto.
20770 (REG_CLASS_CONTENTS): Ditto.
20771
20772 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
20773
20774 PR target/66274
20775 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
20776 when LEGACY_INT_REGNO_P is processed.
20777
20778 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
20779
20780 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
20781
20782 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
20783
20784 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
20785 register if not marked dead/unused, before return.
20786
20787 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
20788
20789 PR lto/66180
20790 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
20791 is set; check for assembler name at LTO time.
20792 (type_in_anonymous_namespace): Remove hacks, check that all
20793 anonymous types are called "<anon>"
20794 (odr_type_p): Simplify; add check for "<anon>"
20795 (odr_subtypes_equivalent): Add odr_type_p check.
20796 * tree.c (need_assembler_name_p): Even anonymous namespace needs
20797 assembler name.
20798
20799 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
20800
20801 * ipa-utils.h (method_class_type): Remove.
20802 * cgraphunit.c (walk_polymorphic_call_targets): Use
20803 TYPE_METHOD_BASETYPE.
20804 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
20805 on main variants only.
20806 (method_class_type): Remove.
20807 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
20808 (build_type_inheritance_graph): Likewise.
20809 * ipa-icf.c (sem_function::equals_wpa): Likewise.
20810 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
20811 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
20812
20813 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
20814
20815 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
20816 is_typedef_decl, typedef_variant_p): Constify.
20817 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
20818 is_typedef_decl, typedef_variant_p): Constify.
20819
20820 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20821
20822 * defaults.h (gen_tablejump): New function.
20823 (HAVE_tablejump): Add default value.
20824 * expr.c: Adjust.
20825 * stmt.c: Likewise.
20826
20827 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20828
20829 * defaults.h (gen_store_multiple): New function.
20830 (HAVE_store_multiple): Add default value.
20831 * expr.c (move_block_from_reg): Adjust.
20832
20833 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20834
20835 * defaults.h (gen_load_multiple): New function.
20836 (HAVE_load_multiple): Add default value.
20837 * expr.c (move_block_to_reg): Adjust.
20838
20839 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20840
20841 * defaults.h (gen_mem_signal_fence): New function.
20842 (HAVE_mem_signal_fence): Add default value.
20843 * optabs.c: Adjust.
20844
20845 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20846
20847 * defaults.h (gen_memory_barrier): New function.
20848 (HAVE_memory_barrier): Add default value.
20849 * optabs.c: Adjust.
20850
20851 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20852
20853 * defaults.h (gen_mem_thread_fence): New function.
20854 (HAVE_mem_thread_fence): Add default definition.
20855 * optabs.c: Adjust.
20856
20857 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20858
20859 * combine.c (find_split_point): Check the value of HAVE_lo_sum
20860 instead of if it is defined.
20861 (combine_simplify_rtx): Likewise.
20862 * lra-constraints.c (process_address_1): Likewise.
20863 * config/darwin.c: Adjust.
20864 * genconfig.c (main): Always define HAVE_lo_sum.
20865
20866 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20867
20868 * genmatch.c (parser::parse_operation): Reject expanding
20869 operator-list inside 'for'.
20870
20871 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20872
20873 * genmatch.c (parser::parse_for): Reject iterator if used as
20874 operator-list.
20875
20876 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20877
20878 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
20879 after end of id-list.
20880
20881 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
20882
20883 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
20884 we do not try to compute canonical type for type that does not need
20885 alias set.
20886 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
20887 FUNCITON_TYPE.
20888 * tree.h (type_with_alias_set_p): New.
20889
20890 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
20891
20892 * tree.c (gimple_canonical_types_compatible_p): Do not compare
20893 function attributes.
20894 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
20895
20896 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
20897
20898 * Makefile.in (check_gcc_parallelize): Delete.
20899 (lang_checks_parallelized): Update comment.
20900
20901 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
20902
20903 PR rtl-optimization/66237
20904 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
20905 location of an "as_a" cast.
20906
20907 2015-05-22 Jeff Law <law@redhat.com>
20908
20909 * config/pa/pa.md (non-canonical shift-add insns): Remove.
20910 (peepholes with non-canonical RTL sources): Remove.
20911 (peepholes for indexed stores of FP regs in integer modes): Match and
20912 generate canonical RTL.
20913
20914 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
20915
20916 PR tree-optimization/63387
20917 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
20918 ((x ord x) & (y ord y) -> (x ord y),
20919 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
20920 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
20921 vectors like scalars.
20922
20923 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
20924
20925 * convert.c (convert_to_integer, convert_to_vector): Include the
20926 types in the error message.
20927
20928 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
20929
20930 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
20931 simplifications.
20932
20933 2015-05-22 Jeff Law <law@redhat.com>
20934
20935 * config/pa/pa.md (integer_indexed_store splitters): Use
20936 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
20937 insns -- adjusting the constant 2nd operand accordingly.
20938
20939 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
20940 (plus (ashift X log2) Y) if it is a split point.
20941
20942 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
20943 out of hppa_legitimize_address to handle both forms of a multiply
20944 by 2, 4 or 8.
20945 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
20946 Always generate the ASHIFT variant as the result is not directly
20947 used in a MEM. Update comments and refactor slightly to improve
20948 readability.
20949
20950 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20951
20952 PR target/65491
20953 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
20954 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
20955 (aarch64_composite_type_p): Return false if given type and mode are
20956 for a short vector.
20957
20958 2015-05-22 Richard Biener <rguenther@suse.de>
20959
20960 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
20961 member.
20962 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
20963 patterns when determining whether SLP is pure.
20964 (vect_is_slp_reduction): Remove check for pattern stmts.
20965 (vect_is_simple_reduction_1): Remove dead code.
20966 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
20967 (vect_get_and_check_slp_defs): Pass in the stmt number.
20968 Allow the first def in a reduction to be not a pattern stmt when
20969 the rest of the stmts def are patterns.
20970 (vect_build_slp_tree_1): Allow tcc_expression codes like
20971 SAD_EXPR and DOT_PROD_EXPR.
20972 (vect_build_slp_tree): Adjust.
20973 (vect_analyze_slp): Refactor and move BB vect error message ...
20974 (vect_slp_analyze_bb_1): ... here.
20975
20976 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
20977
20978 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
20979 for CSWTCH temporary.
20980
20981 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20982
20983 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
20984 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
20985 unknown unspecs.
20986
20987 2015-05-22 Richard Biener <rguenther@suse.de>
20988
20989 PR tree-optimization/66251
20990 * tree-vect-stmts.c (vectorizable_conversion): Properly
20991 set STMT_VINFO_VEC_STMT even for the SLP case.
20992
20993 2015-05-22 Marek Polacek <polacek@redhat.com>
20994
20995 * doc/extend.texi: Use @pxref instead of @xref.
20996
20997 2015-05-22 hiraditya <hiraditya@msn.com>
20998
20999 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
21000 redundant if.
21001
21002 2015-05-22 Richard Biener <rguenther@suse.de>
21003
21004 PR tree-optimization/65701
21005 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
21006 Move peeling cost models into one place. Peel for alignment
21007 for single loads only if an aligned load is cheaper than
21008 an unaligned load.
21009
21010 2015-05-22 Marek Polacek <polacek@redhat.com>
21011
21012 PR c/47043
21013 * doc/extend.texi (Enumerator Attributes): New section.
21014 Document syntax of enumerator attributes.
21015
21016 2015-05-22 Richard Biener <rguenther@suse.de>
21017
21018 * tree-vect-loop.c (get_reduction_op): New function.
21019 (vect_model_reduction_cost): Use it, add reduc_index parameter.
21020 Make ready for BB reductions.
21021 (vect_create_epilog_for_reduction): Use get_reduction_op.
21022 (vectorizable_reduction): Init reduc_index to a valid value.
21023 Adjust vect_model_reduction_cost call.
21024 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
21025 operand for reduction defaults. Add SAD_EXPR support.
21026 Assert we have a neutral op for SLP reductions.
21027 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
21028 walking pattern stmt ops only recurse to SSA names.
21029
21030 2015-05-22 Richard Biener <rguenther@suse.de>
21031
21032 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
21033 assert with guard, remove check on detected reduction.
21034 (vect_recog_sad_pattern): Likewise.
21035 (vect_recog_widen_sum_pattern): Likewise.
21036
21037 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21038
21039 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
21040 __always_inline__ attribute.
21041 (vaesdq_u8): Likewise.
21042 (vaesmcq_u8): Likewise.
21043 (vaesimcq_u8): Likewise.
21044 (vsha1cq_u32): Likewise.
21045 (vsha1mq_u32): Likewise.
21046 (vsha1pq_u32): Likewise.
21047 (vsha1h_u32): Likewise.
21048 (vsha1su0q_u32): Likewise.
21049 (vsha1su1q_u32): Likewise.
21050 (vsha256hq_u32): Likewise.
21051 (vsha256h2q_u32): Likewise.
21052 (vsha256su0q_u32): Likewise.
21053 (vsha256su1q_u32): Likewise.
21054 (vmull_p64): Likewise.
21055 (vmull_high_p64): Likewise.
21056
21057 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21058
21059 * final.c (final_scan_insn): Don't check HAVE_peephole with the
21060 preprocessor.
21061 * output.h: Likewise.
21062 * genconfig.c (main): Alwways define HAVE_peephole.
21063 * genpeep.c: Don't emit checks of HAVE_peephole.
21064
21065 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21066
21067 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
21068 check HAVE_conditional_move with the preprocessor.
21069
21070 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21071
21072 * genconfig.c (main): Always define HAVE_conditional_move.
21073 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
21074 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
21075 is defined.
21076
21077 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21078
21079 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
21080 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
21081 and FRAME_POINTER_REGNUM with the preprocessor.
21082
21083 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21084
21085 * defaults.h: Add default for STACK_PUSH_CODE.
21086 * expr.c: Don't redefine STACK_PUSH_CODE.
21087 * recog.c: Likewise.
21088
21089 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21090
21091 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
21092 sched-deps.c: Use if instead of preprocessor checks with
21093 STACK_GROWS_DOWNWARD.
21094
21095 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21096
21097 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
21098 is defined.
21099 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
21100 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
21101 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
21102 * doc/tm.texi: Regenerate.
21103
21104 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
21105
21106 PR target/66232
21107 * config/i386/constraints.md (Bg): New constraint for GOT memory
21108 operand.
21109 * config/i386/i386.md (*call_got_x32): New pattern.
21110 (*call_value_got_x32): Likewise.
21111 * config/i386/predicates.md (GOT_memory_operand): New predicate.
21112
21113 2015-05-21 Jakub Jelinek <jakub@redhat.com>
21114
21115 PR tree-optimization/66233
21116 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
21117 Simplify.
21118
21119 2015-05-21 Jeff Law <law@redhat.com>
21120
21121 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
21122 than MULT for shadd sequences.
21123
21124 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
21125
21126 * alias.c (alias_stats): New static var.
21127 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
21128 (dump_alias_stats_in_alias_c): New function.
21129 * alias.h (dump_alias_stats_in_alias_c): Declare.
21130 * tree-ssa-alias.c (dump_alias_stats): Call it.
21131
21132 2015-05-08 Michael Matz <matz@suse.de>
21133
21134 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
21135 to strided_p.
21136 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
21137 (STMT_VINFO_STRIDED_P): ... this.
21138 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
21139 (vect_verify_datarefs_alignment): Likewise.
21140 (vect_enhance_data_refs_alignment): Likewise.
21141 (vect_analyze_data_ref_access): Likewise.
21142 (vect_analyze_data_refs): Accept strided stores.
21143 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
21144 (vect_model_load_cost): Adjust for macro rename.
21145 (vectorizable_mask_load_store): Likewise.
21146 (vectorizable_load): Likewise.
21147 (vectorizable_store): Open code strided stores.
21148
21149 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21150
21151 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
21152 Document sqrt_insn.
21153
21154 2015-05-21 Richard Biener <rguenther@suse.de>
21155
21156 PR c++/66211
21157 * match.pd: Guard pattern optimzing (int)(float)int
21158 conversions to apply only on GIMPLE.
21159
21160 2015-05-21 Jeff Law <law@redhat.com>
21161
21162 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
21163 multiply-accumulate/shift-add insn generation.
21164
21165 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
21166
21167 PR target/54236
21168 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
21169 operands[1] are the same.
21170
21171 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
21172
21173 PR middle-end/66221
21174 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
21175 build_distinct_type_copy to copy bounds.
21176
21177 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
21178
21179 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
21180 Change to unsigned int.
21181
21182 2015-05-20 Jeff Law <law@redhat.com>
21183
21184 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
21185 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
21186 (pa_shadd_constant_p): Allow constants for shadd insns rather
21187 than valid scaling constants for memory addresses.
21188 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
21189 * config/pa/predicates.md (mem_shadd_operand): New predicate.
21190 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
21191 (shift-add insns using ASHIFT): New patterns.
21192
21193 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
21194
21195 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
21196 feasible.
21197 (fix_up_fall_thru_edges): Likewise.
21198 (fix_crossing_conditional_branches): Likewise. Promote jump targets
21199 from to rtx_insn to rtx_code_label where feasible.
21200 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
21201 gen_move_insn (returned type changed to rtx_insn).
21202 * builtins.c (expand_errno_check): Fix arguments of
21203 do_compare_rtx_and_jump (now expects rtx_code_label).
21204 (expand_builtin_acc_on_device): Likewise.
21205 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
21206 invert_jump (now exprects rtx_jump_insn).
21207 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
21208 (construct_init_block): Use rtx_code_label.
21209 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
21210 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
21211 calling redirect_jump.
21212 (patch_jump_insn): Likewise.
21213 (redirect_branch_edge): Likewise.
21214 (force_nonfallthru_and_redirect): Likewise.
21215 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
21216 when suitable.
21217 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
21218 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
21219 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
21220 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
21221 to store the value retured by gen_label_rtx.
21222 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
21223 rtx_jump_insn.
21224 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
21225 (split_branches): Fix calls of redirect_jump.
21226 * dojump.c (jumpifnot): Promote argument type from rtx to
21227 rtx_code_label.
21228 (jumpifnot_1): Likewise.
21229 (jumpif): Likewise.
21230 (jumpif_1): Likewise.
21231 (do_jump_1): Likewise.
21232 (do_jump): Likewise. Use rtx_code_label when feasible.
21233 (do_jump_by_parts_greater_rtx): Likewise.
21234 (do_jump_by_parts_zero_rtx): Likewise.
21235 (do_jump_by_parts_equality_rtx): Likewise.
21236 (do_compare_rtx_and_jump): Likewise.
21237 * dojump.h: Update function prototypes.
21238 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
21239 returns rtx_insn).
21240 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
21241 rtx_jump_insn.
21242 (emit_label_before): Likewise.
21243 (emit_jump_insn_after_noloc): Likewise.
21244 (emit_jump_insn_after_setloc): Likewise.
21245 (emit_jump_insn_after): Likewise
21246 (emit_jump_insn_before_setloc): Likewise.
21247 (emit_jump_insn_before): Likewise.
21248 (emit_label_before): Promote return type to rtx_code_label.
21249 (emit_label): Likewise.
21250 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
21251 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
21252 gen_move_insn.
21253 (emit_stack_restore): Likewise.
21254 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
21255 (do_cmp_and_jump): Likewise.
21256 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
21257 from rtx to rtx_code_label.
21258 (gen_move_insn_uncast): New function.
21259 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
21260 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
21261 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
21262 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
21263 invert_jump_1 and redirect_jump_1.
21264 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
21265 do_compare_rtx_and_jump.
21266 (expand_addsub_overflow): Likewise.
21267 (expand_neg_overflow): Likewise.
21268 (expand_mul_overflow): Likewise.
21269 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
21270 return value of gen_move_insn.
21271 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
21272 * loop-doloop.c (add_test): Use rtx_code_label.
21273 (doloop_modify): Likewise.
21274 (doloop_optimize): Likewise.
21275 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
21276 * lra-constraints.c (emit_spill_move): Remove cast of value returned
21277 by gen_move_insn.
21278 (inherit_reload_reg): Add cast when calling dump_insn_slim.
21279 (split_reg): Likewise.
21280 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
21281 gen_move_insn.
21282 * optabs.c (expand_binop_directly): Remove casts of values returned by
21283 maybe_gen_insn.
21284 (expand_unop_direct): Likewise.
21285 (expand_abs): Likewise.
21286 (maybe_emit_unop_insn): Likewise.
21287 (maybe_gen_insn): Promote return type to rtx_insn.
21288 * optabs.h: Update prototype of maybe_gen_insn.
21289 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
21290 redundant cast.
21291 * recog.c (struct peep2_insn_data): Promote type of insn field to
21292 rtx_insn.
21293 (peep2_reinit_state): Use NULL instead of NULL_RTX.
21294 (peep2_attempt): Remove casts of insn in peep2_insn_data.
21295 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
21296 * recog.h (struct insn_gen_fn): Promote return types of function
21297 pointers and operator ().from rtx to rtx_insn.
21298 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
21299 (fill_eager_delay_slots): Likewise.
21300 (relax_delay_slots): Likewise.
21301 (make_return_insns): Likewise.
21302 (dbr_schedule): Likewise.
21303 (optimize_skips): Likewise.
21304 (reorg_redirect_jump): Likewise.
21305 (fill_slots_from_thread): Likewise.
21306 * reorg.h: Update prototypes.
21307 * resource.c (find_dead_or_set_registers): Use dyn_cast to
21308 rtx_jump_insn instead of check. Use it's jump_target method.
21309 * rtl.h (rtx_jump_insn::jump_label): Define new method.
21310 (rtx_jump_insn::jump_target): Define new method.
21311 (rtx_jump_insn::set_jump_target): Define new method.
21312 * rtlanal.c (tablejump_p): Promote type of one local variable.
21313 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
21314 (sched_analyze_insn): Likewise.
21315 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
21316 (print_insn): Likewise.
21317 * stmt.c (label_rtx): Promote return type to rtx_insn.
21318 (force_label_rtx): Likewise.
21319 (jump_target_rtx): Define new function.
21320 (expand_label): Use it, get rid of one cast.
21321 (expand_naked_return): Promote rtx to rtx_code_label.
21322 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
21323 (expand_case): Use rtx_code_label instread of rtx where feasible.
21324 (expand_sjlj_dispatch_table): Likewise.
21325 (emit_case_nodes): Likewise.
21326 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
21327 * store-motion.c (insert_store): Make use of new return type of
21328 gen_move_insn and remove a cast.
21329 (replace_store_insn): Likewise.
21330
21331 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
21332
21333 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
21334 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
21335
21336 2015-05-20 Jeff Law <law@redhat.com>
21337
21338 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
21339 dispose of the jump thread path when the jump threading
21340 opportunity is cancelled.
21341
21342 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
21343
21344 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
21345 when printing the caret character.
21346
21347 2015-05-20 Marek Polacek <polacek@redhat.com>
21348
21349 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
21350
21351 2015-05-20 Marek Polacek <polacek@redhat.com>
21352
21353 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
21354 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
21355 * gimple-fold.c (canonicalize_bool): Likewise.
21356 (same_bool_result_p): Likewise.
21357 * tree-if-conv.c (parse_predicate): Likewise.
21358
21359 2015-05-20 Marek Polacek <polacek@redhat.com>
21360
21361 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
21362 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
21363
21364 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21365
21366 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
21367 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
21368 values.
21369
21370 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
21371
21372 * config/mips/mips.h (micromips_globals): Declare.
21373
21374 2015-05-20 David Malcolm <dmalcolm@redhat.com>
21375
21376 * timevar.def (TV_INITIALIZE_RTL): New.
21377 * toplev.c (initialize_rtl): Use an auto_timevar to account this
21378 function's time to TV_INITIALIZE_RTL.
21379
21380 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
21381
21382 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
21383 gimple_build_nop calls.
21384 (chkp_find_bounds_for_elem): Likewise.
21385 (chkp_get_zero_bounds): Likewise.
21386 (chkp_get_none_bounds): Likewise.
21387 (chkp_get_bounds_by_definition): Likewise.
21388 (chkp_generate_extern_var_bounds): Likewise.
21389 (chkp_get_bounds_for_decl_addr): Likewise.
21390 (chkp_get_bounds_for_string_cst): Likewise.
21391
21392 2015-05-20 Bin Cheng <bin.cheng@arm.com>
21393
21394 PR tree-optimization/65447
21395 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
21396 (dump_use, dump_uses): Support to dump sub use.
21397 (record_use): New parameters to support sub use. Remove call to
21398 dump_use.
21399 (record_sub_use, record_group_use): New functions.
21400 (compute_max_addr_offset, split_all_small_groups): New functions.
21401 (group_address_uses, rewrite_use_address): New functions.
21402 (strip_offset): New declaration.
21403 (find_interesting_uses_address): Call record_group_use.
21404 (add_candidate): New assertion.
21405 (infinite_cost_p): Move definition forward.
21406 (add_costs): Check INFTY cost and return immediately.
21407 (get_computation_cost_at): Clear setup cost and dependent bitmap
21408 for sub uses.
21409 (determine_use_iv_cost_address): Compute cost for sub uses.
21410 (rewrite_use_address_1): Rename from old rewrite_use_address.
21411 (free_loop_data): Free sub uses.
21412 (tree_ssa_iv_optimize_loop): Call group_address_uses.
21413
21414 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
21415 Jim Wilson <jim.wilson@linaro.org>
21416
21417 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
21418 new fields loadv and storev.
21419 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
21420 Initialize loadv and storev.
21421 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
21422 (cortexa53_extra_costs): Likewise.
21423 (cortexa57_extra_costs): Likewise.
21424 (xgene1_extra_costs): Likewise.
21425 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
21426 rtx_costs.
21427
21428 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
21429
21430 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
21431 storev.
21432 (cortexa8_extra_costs): Likewise.
21433 (cortexa5_extra_costs): Likewise.
21434 (cortexa7_extra_costs): Likewise.
21435 (cortexa12_extra_costs): Likewise.
21436 (cortexa15_extra_costs): Likewise.
21437 (v7m_extra_costs): Likewise.
21438
21439 2015-05-20 Jeff Law <law@redhat.com>
21440
21441 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
21442 instead of open-coded version. Also delete the jump thread created
21443 within this function.
21444
21445 2015-05-20 Alan Modra <amodra@gmail.com>
21446
21447 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
21448 stack adjusting insn. Formatting.
21449 (rs6000_emit_prologue): Track stack adjusting insn, and use of
21450 r12. If possible, emit first -fsplit-stack arg pointer insn
21451 before stack adjust. Don't use r12 to save cr if split-stack.
21452
21453 2015-05-20 Alan Modra <amodra@gmail.com>
21454
21455 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
21456 Define.
21457 (rs6000_supports_split_stack): New function.
21458 * gcc/config/rs6000/rs6000.c (machine_function): Add
21459 split_stack_arg_pointer.
21460 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
21461 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
21462 rather than virtual_incoming_args_rtx.
21463 (rs6000_va_start): Likewise.
21464 (split_stack_arg_pointer_used_p): New function.
21465 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
21466 (morestack_ref): New var.
21467 (gen_add3_const, rs6000_expand_split_stack_prologue,
21468 rs6000_internal_arg_pointer, rs6000_live_on_entry,
21469 rs6000_split_stack_space_check): New functions.
21470 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
21471 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
21472 (UNSPECV_SPLIT_STACK_RETURN): Define.
21473 (split_stack_prologue, load_split_stack_limit,
21474 load_split_stack_limit_di, load_split_stack_limit_si,
21475 split_stack_return, split_stack_space_check): New expands and insns.
21476 * gcc/config/rs6000/rs6000-protos.h
21477 (rs6000_expand_split_stack_prologue): Declare.
21478 (rs6000_split_stack_space_check): Declare.
21479
21480 2015-05-20 Alan Modra <amodra@gmail.com>
21481
21482 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
21483 (direct_return): Test vrsave_size rather than vrsave_mask.
21484 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
21485 (rs6000_emit_epilogue): Likewise.
21486
21487 2015-05-20 Alan Modra <amodra@gmail.com>
21488
21489 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
21490 when not saving registers.
21491 (debug_stack_info): Adjust to omit printing unused offsets,
21492 as before.
21493 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
21494 expression.
21495
21496 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21497
21498 PR c++/65835
21499 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
21500 value_type to const char *.
21501
21502 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
21503
21504 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
21505 to build a biarch toolchain again.
21506
21507 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
21508
21509 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
21510 or implicit declarations.
21511 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
21512 into it.
21513 (get_odr_type): Check type has linkage before adding bases.
21514 (register_odr_type): Check that type has linkage before adding it.
21515 (type_known_to_have_no_deriavations_p): Rename to ..
21516 (type_known_to_have_no_derivations_p): This one.
21517 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
21518 (type_known_to_have_no_derivations_p): This one.
21519 * ipa-polymorphic-call.c
21520 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
21521 type has linkage.
21522
21523 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
21524
21525 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
21526 (layout_type): Use RECORD_OR_UNION_TYPE_P.
21527
21528 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21529
21530 * config/s390/s390.c (s390_vector_bool_type_p): New function.
21531 (s390_invalid_binary_op): New function.
21532 (TARGET_INVALID_BINARY_OP): Define macro.
21533
21534 2015-05-19 David Sherwood <david.sherwood@arm.com>
21535
21536 * loop-invariant.c (create_new_invariant): Don't calculate address cost
21537 if mode is not a scalar integer.
21538 (get_inv_cost): Increase computational cost for unused invariants.
21539
21540 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21541
21542 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
21543 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
21544 * config/s390/s390-builtin-types.def: New file.
21545 * config/s390/s390-builtins.def: New file.
21546 * config/s390/s390-builtins.h: New file.
21547 * config/s390/s390-c.c: New file.
21548 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
21549 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
21550 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
21551 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
21552 prototypes.
21553 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
21554 Include.
21555 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
21556 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
21557 variable definitions.
21558 (s390_const_operand_ok): New function.
21559 (s390_expand_builtin): Rewrite.
21560 (s390_init_builtins): New function.
21561 (s390_handle_vectorbool_attribute): New function.
21562 (s390_attribute_table): Add s390_vector_bool attribute.
21563 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
21564 (s390_branch_condition_mask): Generate masks for new modes.
21565 (s390_expand_vec_compare_cc): New function.
21566 (s390_mangle_type): Add mangling for vector bool types.
21567 (enum s390_builtin): Remove.
21568 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
21569 efpc builtins.
21570 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
21571 s390_cpu_cpp_builtins.
21572 (REGISTER_TARGET_PRAGMAS): New macro.
21573 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
21574 (insn_cmp mode attribute): Add new CC modes.
21575 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
21576 (lcbb): New pattern definition.
21577 * config/s390/s390intrin.h: Include vecintrin.h.
21578 * config/s390/t-s390: New file.
21579 * config/s390/vecintrin.h: New file.
21580 * config/s390/vector.md: Include vx-builtins.md.
21581 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
21582 support.
21583
21584 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21585
21586 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
21587 CCVFHE.
21588 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
21589 (s390_select_ccmode): Likewise.
21590 (s390_canonicalize_comparison): Swap operands if necessary.
21591 (s390_expand_vec_compare_scalar): Expand DFmode compare using
21592 single element vector instructions.
21593 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
21594 (s390_branch_condition_mask): Generate CC masks for the new modes.
21595 * config/s390/s390.md (v0, vf, vd): New mode attributes.
21596 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
21597 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
21598 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
21599 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
21600 (*extend<DSF:mode><BFP:mode>2): New insn definition.
21601 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
21602 (extend<DSF:mode><BFP:mode>2): Turn into expander.
21603 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
21604 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
21605 (sqrt<mode>2): Add vector instruction.
21606
21607 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21608
21609 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
21610 constraints.
21611 * config/s390/predicates.md (const0_operand, constm1_operand)
21612 (constable_operand): Accept vector operands.
21613 * config/s390/s390-modes.def: Add supported vector modes.
21614 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
21615 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
21616 (s390_bytemask_vector_p, s390_expand_vec_strlen)
21617 (s390_expand_vec_compare, s390_expand_vcond)
21618 (s390_expand_vec_init): Add prototypes.
21619 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
21620 (s390_vector_mode_supported_p): New function.
21621 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
21622 (s390_contiguous_bitmask_vector_p): New function.
21623 (s390_bytemask_vector_p): New function.
21624 (s390_split_ok_p): Vector regs don't work either.
21625 (regclass_map): Add VEC_REGS.
21626 (s390_legitimate_constant_p): Handle vector constants.
21627 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
21628 (legitimate_reload_vector_constant_p): New function.
21629 (s390_preferred_reload_class): Handle CONST_VECTOR.
21630 (s390_reload_symref_address): Likewise.
21631 (s390_secondary_reload): Vector memory instructions only support
21632 short displacements. Rename reload*_nonoffmem* to reload*_la*.
21633 (s390_emit_ccraw_jump): New function.
21634 (s390_expand_vec_strlen): New function.
21635 (s390_expand_vec_compare): New function.
21636 (s390_expand_vcond): New function.
21637 (s390_expand_vec_init): New function.
21638 (s390_dwarf_frame_reg_mode): New function.
21639 (print_operand): Handle addresses with 'O' and 'R' constraints.
21640 (NR_C_MODES, constant_modes): Add vector modes.
21641 (s390_output_pool_entry): Handle vector constants.
21642 (s390_hard_regno_mode_ok): Handle vector registers.
21643 (s390_class_max_nregs): Likewise.
21644 (s390_cannot_change_mode_class): New function.
21645 (s390_invalid_arg_for_unprototyped_fn): New function.
21646 (s390_function_arg_vector): New function.
21647 (s390_function_arg_float): Remove size variable.
21648 (s390_pass_by_reference): Handle vector arguments.
21649 (s390_function_arg_advance): Likewise.
21650 (s390_function_arg): Likewise.
21651 (s390_return_in_memory): Vector values are returned in a VR if
21652 possible.
21653 (s390_function_and_libcall_value): Handle vector arguments.
21654 (s390_gimplify_va_arg): Likewise.
21655 (s390_call_saved_register_used): Consider the arguments named.
21656 (s390_conditional_register_usage): Disable v16-v31 for non-vec
21657 targets.
21658 (s390_preferred_simd_mode): New function.
21659 (s390_support_vector_misalignment): New function.
21660 (s390_vector_alignment): New function.
21661 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
21662 (TARGET_VECTOR_MODE_SUPPORTED_P)
21663 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
21664 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
21665 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
21666 (TARGET_VECTOR_ALIGNMENT): Define target macro.
21667 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
21668 (FIRST_PSEUDO_REGISTER): Increase value.
21669 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
21670 (VECTOR_REG_P): Define macros.
21671 (FIXED_REGISTERS, CALL_USED_REGISTERS)
21672 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
21673 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
21674 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
21675 Add vector registers.
21676 (CANNOT_CHANGE_MODE_CLASS): Call C function.
21677 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
21678 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
21679 memory.
21680 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
21681 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
21682 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
21683 (VR*_REGNUM): New constants.
21684 (ALL): New mode iterator.
21685 (INTALL): Remove mode iterator.
21686 Include vector.md.
21687 (movti): Implement TImode moves for VRs.
21688 Disable TImode splitter for VR targets.
21689 Implement splitting TImode GPR<->VR moves.
21690 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
21691 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
21692 reload<mode>_la_in, reload<mode>_la_out.
21693 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
21694 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
21695 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
21696 (mov<mode> SF SD): Prefer lder, lde for loading.
21697 Add lrl and strl instructions.
21698 Add vector instructions.
21699 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
21700 Call s390_expand_vec_strlen on z13.
21701 (*cc_to_int): Change predicate to nonimmediate_operand.
21702 (addti3): Rename to *addti3. New expander.
21703 (subti3): Rename to *subti3. New expander.
21704 * config/s390/vector.md: New file.
21705
21706 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21707
21708 * common/config/s390/s390-common.c (processor_flags_table): Add
21709 z13.
21710 * config.gcc: Add z13.
21711 * config/s390/s390-opts.h (enum processor_type): Add
21712 PROCESSOR_2964_Z13.
21713 * config/s390/s390.c (s390_adjust_priority): Check for
21714 PROCESSOR_2964_Z13.
21715 (s390_reorg): Likewise.
21716 (s390_sched_reorder): Likewise.
21717 (s390_sched_variable_issue): Likewise.
21718 (s390_loop_unroll_adjust): Likewise.
21719 (s390_option_override): Likewise. Default to -mvx when available.
21720 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
21721 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
21722 (TARGET_VX_ABI): Define macros.
21723 macros.
21724 (TARGET_DEFAULT): Add MASK_OPT_VX.
21725 * config/s390/s390.md ("cpu" attribute): Add z13.
21726 ("cpu_facility" attribute): Add vec.
21727 * config/s390/s390.opt (processor_type): Add z13.
21728 (mvx): New options.
21729 * doc/invoke.texi: Add z13 option for -march.
21730
21731 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21732
21733 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
21734 mode check to make sure that only scalar integer values are
21735 accepted.
21736
21737 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
21738
21739 * tree.c (verify_type_variant): Fix #undef.
21740 (gimple_canonical_types_compatible_p): Move here from lto.c
21741 (verify_type): Verify TYPE_CANONICAL compatibility.
21742 * tree.h (gimple_canonical_types_compatible_p): Declare.
21743
21744 2015-05-19 Jakub Jelinek <jakub@redhat.com>
21745
21746 PR middle-end/66199
21747 * tree.h (OMP_TEAMS_COMBINED): Define.
21748 * gimplify.c (enum gimplify_omp_var_data): Add
21749 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
21750 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
21751 (omp_notice_variable): Accept both ORT_TEAMS
21752 and ORT_COMBINED_TEAMS. Don't recurse if
21753 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
21754 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
21755 GOVD_FIRSTPRIVATE.
21756 (omp_no_lastprivate): New function.
21757 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
21758 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
21759 notice_outer and set appropriate bits, otherwise make
21760 sure default(none) combined constructs won't complain.
21761 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
21762 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
21763 omp_no_lastprivate either remove the clause or turn it
21764 into OMP_CLAUSE_PRIVATE.
21765 (gimplify_omp_for): Fix up handling of implicit
21766 lastprivate or linear iterators.
21767 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
21768 ORT_COMBINED_TEAMS.
21769 * omp-low.c (lower_omp_for_lastprivate): For combined
21770 for simd use fd.loop.n2 from the for rather than simd.
21771
21772 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21773
21774 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
21775 instead of gen_rtx_raw_REG.
21776 (cris_expand_epilogue): Likewise.
21777 * config/microblaze/microblaze.c (microblaze_classify_address):
21778 Likewise.
21779 * config/sparc/sparc.md: Likewise.
21780
21781 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
21782
21783 * config/alpha/alpha.c (alpha_legitimize_reload_address)
21784 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
21785 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
21786 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
21787 Use CASE_CONST_SCALAR_INT.
21788 (print_operand) <case 'M'>: Use mode_width_operand to check the
21789 value of the constant.
21790 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
21791 * config/alpha/predicates.md (input_operand): Use general_operand
21792 instead of match_code as operand check.
21793 (symbolic_operand): Use match_code with subexpression digits.
21794 * config/alpha/constraints.md (Q): Ditto.
21795
21796 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21797
21798 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
21799
21800 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21801
21802 * config/s390/s390.c (s390_secondary_reload): Fix check for
21803 load/store relative.
21804
21805 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21806
21807 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
21808 alternative_mask to uint64_t.
21809
21810 2015-05-19 Jakub Jelinek <jakub@redhat.com>
21811
21812 PR tree-optimization/66187
21813 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
21814 Pass TYPE_SIGN to tree_int_cst_min_precision. If
21815 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
21816
21817 2015-05-19 David Malcolm <dmalcolm@redhat.com>
21818
21819 * diagnostic.c (diagnostic_report_current_module): Strengthen
21820 local "new_map" from const line_map * to
21821 const line_map_ordinary *.
21822 * genmatch.c (error_cb): Likewise for local "map".
21823 (output_line_directive): Likewise for local "map".
21824 * input.c (expand_location_1): Likewise for local "map".
21825 Pass NULL rather than &map to
21826 linemap_unwind_to_first_non_reserved_loc, since the value is never
21827 read from there, and the value written back not read from here.
21828 (is_location_from_builtin_token): Strengthen local "map" from
21829 const line_map * to const line_map_ordinary *.
21830 (dump_location_info): Strengthen locals "map" from
21831 line_map *, one to const line_map_ordinary *, the other
21832 to const line_map_macro *.
21833 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
21834 const line_map * to const line_map_macro *.
21835 (maybe_unwind_expanded_macro_loc): Add a call to
21836 linemap_check_macro when writing to the "map" field of the
21837 loc_map_pair.
21838 Introduce local const line_map_ordinary * "ord_map", using it in
21839 place of "map" in the part of the function where we know we have
21840 an ordinary map. Strengthen local "m" from const line_map * to
21841 const line_map_ordinary *.
21842
21843 2015-05-19 Nick Clifton <nickc@redhat.com>
21844
21845 PR target/66156
21846 * config/msp430/msp430.md (zero_extendhisi2): Add support for
21847 separate source and destination registers.
21848
21849 2015-05-19 Richard Biener <rguenther@suse.de>
21850
21851 PR tree-optimization/66165
21852 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
21853 for no load permutation.
21854
21855 PR tree-optimization/66185
21856 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
21857 when building the SLP node from scalars.
21858
21859 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
21860 Tristan Gingold <gingold@adacore.com>
21861
21862 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
21863 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
21864 (expand_stack_restore): Call record_new_stack_level.
21865 (expand_stack_save): Do not call do_pending_stack_adjust.
21866 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
21867 * calls.c (expand_call): Call record_new_stack_level for alloca.
21868 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
21869 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
21870 (update_sjlj_context): New global function.
21871 * except.h (update_sjlj_context): Declare.
21872 * explow.c (record_new_stack_level): New global function.
21873 (allocate_dynamic_stack_space): Call record_new_stack_level.
21874 * explow.h (record_new_stack_level): Declare.
21875 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
21876 * cfgrtl.c (duplicate_insn_chain): Likewise.
21877
21878 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21879
21880 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
21881 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
21882 STACK_GROWS_DOWNWARD as normal if.
21883 (expand_call): Likewise.
21884
21885 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
21886
21887 PR target/54236
21888 * config/sh/sh.md (*round_int_even): New insn_and_split and
21889 accompanying new unnamed split.
21890
21891 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21892
21893 * bitmap.c (bitmap_set_range): Handle count==1 specially.
21894 (bitmap_clear_range): Likewise.
21895 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
21896 bitmap_set_range unconditionally.
21897 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
21898 * df-scan.c (df_mark_reg): Likewise.
21899 * haifa-sched.c (setup_ref_regs): Likewise.
21900 * sched-rgn.c (update_live_1): Likewise.
21901
21902 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21903
21904 * regs.h (END_HARD_REGNO): Delete.
21905 (END_REGNO): Move to...
21906 * rtl.h: ...here.
21907 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
21908 * caller-save.c (mark_set_regs): Likewise.
21909 * combine.c (move_deaths, distribute_notes): Likewise.
21910 * cse.c (invalidate, invalidate_for_call): Likewise.
21911 * df-scan.c (df_ref_record): Likewise.
21912 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
21913 (record_last_reg_set_info): Likewise.
21914 * reg-stack.c (convert_regs_exit): Likewise.
21915 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
21916 * resource.c (update_live_status): Likewise.
21917 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
21918
21919 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21920
21921 * rtl.h (reg_info): Add an nregs field.
21922 (REG_NREGS): Use it.
21923 (SET_REGNO_RAW): Delete.
21924 (set_regno_raw): New function.
21925 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
21926 (END_REGNO): Redefine in terms of REG_NREGS.
21927 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
21928 SET_REGNO_RAW.
21929 * emit-rtl.c (set_mode_and_regno): Likewise.
21930 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
21931 instead of SET_REGNO_RAW.
21932
21933 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21934
21935 * rtl.h (PUT_MODE_RAW): New macro.
21936 (PUT_REG_NOTE_KIND): Use it.
21937 (set_mode_and_regno): Declare.
21938 (gen_raw_REG): Change regno to "unsigned int".
21939 (gen_rtx_REG): Change "unsigned" to "unsigned int".
21940 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
21941 use set_mode_and_regno to change the mode of registers.
21942 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
21943 * emit-rtl.c (set_mode_and_regno): New function.
21944 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
21945 * caller-save.c (reg_save_code): Use set_mode_and_regno.
21946 * expr.c (init_expr_target): Likewise.
21947 * ira.c (setup_prohibited_mode_move_regs): Likewise.
21948 * postreload.c (reload_cse_simplify_operands): Likewise.
21949
21950 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21951
21952 * caller-save.c (init_caller_save): Use word_mode and
21953 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
21954 * expr.c (init_expr_target): Likewise.
21955 * ira.c (setup_prohibited_mode_move_regs): Likewise.
21956 * postreload.c (reload_cse_regs_1): Likewise.
21957
21958 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21959
21960 * rtl.def (REG): Change format to "r".
21961 * rtl.h (rtunion): Remove rt_reg.
21962 (reg_info): New structure.
21963 (rtx_def): Add reg field to main union.
21964 (X0REGATTR): Delete.
21965 (REG_CHECK): New macro.
21966 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
21967 * rtl.c (rtx_format): Document "r".
21968 (rtx_code_size): Handle REG specially.
21969 * gengenrtl.c (special_format): Return true for formats
21970 that include 'r'.
21971 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
21972 Deal with REG_ATTRS after the field loop.
21973 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
21974 * expmed.c (init_expmed): Call gen_raw_REG instead of
21975 gen_rtx_raw_REG.
21976 * expr.c (init_expr_target): Likewise.
21977 * regcprop.c (maybe_mode_change): Likewise.
21978 * varasm.c (make_decl_rtl): Likewise.
21979 * final.c (leaf_renumber_regs_insn): Return early after
21980 handling REGs.
21981 * genemit.c (gen_exp): Handle 'r' fields.
21982 * genpeep.c (match_rtx): Likewise.
21983 * gensupport.c (subst_pattern_match): Likewise.
21984 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
21985 (alter_constraints, subst_dup): Likewise.
21986 * read-rtl.c (read_rtx_code): Likewise.
21987 * print-rtl.c (print_rtx): Likewise.
21988 * genrecog.c (find_operand, find_matching_operand): Likewise.
21989 (validate_pattern, match_pattern_2): Likewise.
21990 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
21991 (rtx_test::regno_field): New function.
21992 (operator ==, safe_to_hoist_p, transition_parameter_type)
21993 (parameter_type_string, print_parameter_value)
21994 (print_nonbool_test, print_test): Handle new enum values.
21995 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
21996 * lra-constraints.c (operands_match_p): Likewise.
21997
21998 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21999
22000 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
22001 Change type of new_regno to unsigned int.
22002 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
22003 new_regno to unsigned int.
22004 (df_ref_change_reg_with_loc): Remove old_regno parameter.
22005 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
22006 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
22007 (SET_REGNO_RAW): Add space after ",".
22008
22009 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22010
22011 * rtl.h (REG_NREGS): New macro
22012 * alias.c (record_set): Use it.
22013 * cfgcleanup.c (mark_effect): Likewise.
22014 * combine.c (likely_spilled_retval_1): Likewise.
22015 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
22016 (move_deaths, distribute_notes): Likewise.
22017 * cselib.c (cselib_record_set): Likewise.
22018 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
22019 * df-scan.c (df_mark_reg): Likewise.
22020 * dse.c (look_for_hardregs): Likewise.
22021 * dwarf2out.c (reg_loc_descriptor): Likewise.
22022 (multiple_reg_loc_descriptor): Likewise.
22023 * expr.c (write_complex_part, read_complex_part): Likewise.
22024 (emit_move_complex): Likewise.
22025 * haifa-sched.c (setup_ref_regs): Likewise.
22026 * ira-lives.c (mark_hard_reg_live): Likewise.
22027 * lra.c (lra_set_insn_recog_data): Likewise.
22028 * mode-switching.c (create_pre_exit): Likewise.
22029 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
22030 (reload_combine_recognize_pattern): Likewise.
22031 (reload_combine_note_use, move2add_record_mode): Likewise.
22032 (reload_cse_move2add): Likewise.
22033 * reg-stack.c (subst_stack_regs_pat): Likewise.
22034 * regcprop.c (kill_value, copy_value): Likewise.
22035 (copyprop_hardreg_forward_1): Likewise.
22036 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
22037 (build_def_use): Likewise.
22038 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
22039 (deps_analyze_insn): Likewise.
22040 * sched-rgn.c (check_live_1, update_live_1): Likewise.
22041 * sel-sched.c (count_occurrences_equiv): Likewise.
22042 * valtrack.c (dead_debug_insert_temp): Likewise.
22043
22044 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22045
22046 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
22047 * dse.c (note_add_store): Likewise.
22048 * ira-lives.c (mark_hard_reg_dead): Likewise.
22049 * loop-invariant.c (mark_reg_store): Likewise.
22050 (mark_reg_death): Likewise.
22051 * postreload.c (reload_combine): Likewise.
22052 (reload_combine_note_store): Likewise.
22053 (reload_combine_note_use): Likewise.
22054 * recog.c (peep2_reg_dead_p): Likewise.
22055
22056 2015-05-19 Alan Modra <amodra@gmail.com>
22057
22058 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
22059 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
22060 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
22061 unused predicates.
22062 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
22063 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
22064 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
22065 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
22066
22067 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
22068
22069 * config/mips/mips.md (JOIN_MODE): New mode iterator.
22070 (join2_load_Store<JOIN_MODE:mode>): New pattern.
22071 (join2_loadhi): Likewise.
22072 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
22073 load-load and store-stores.
22074 * config/mips/mips.opt (mload-store-pairs): New option.
22075 (TARGET_LOAD_STORE_PAIRS): New macro.
22076 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
22077 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
22078 * config/mips/mips.c (mips_load_store_bonding_p): New function.
22079
22080 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
22081
22082 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
22083 explicit swaps.
22084 * dojump.c (do_compare_rtx_and_jump): Likewise.
22085 * expmed.c (emit_store_flag_1): Likewise.
22086 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
22087 * final.c (sprint_ul): Use std::reverse for reversing a string.
22088 * fold-const.c (extract_muldiv_1): Use std::swap.
22089 * genmodes.c (emit_mode_int_n): Likewise.
22090 * ifcvt.c (dead_or_predicable): Likewise.
22091 * ira-build.c (ira_merge_live_ranges): Likewise.
22092 (swap_allocno_copy_ends_if_necessary): Likewise.
22093 * ira.c (ira_setup_alts): Likewise.
22094 * loop-iv.c (iv_analyze_expr): Likewise.
22095 (implies_p): Likewise.
22096 (canon_condition): Likewise.
22097 * lra-constraints.c (swap_operands): Likewise.
22098 * lra-lives.c (lra_merge_live_ranges): Likewise.
22099 * omega.c (swap): Remove.
22100 (bswap): Remove.
22101 (omega_unprotect_1): Use std::swap.
22102 (omega_solve_geq): Likewise.
22103 * optabs.c (expand_binop_directly): Likewise.
22104 (expand_binop): Likewise.
22105 (emit_conditional_move): Likewise.
22106 (emit_conditional_add): Likewise.
22107 * postreload.c (reload_cse_simplify_operands): Likewise.
22108 * reg-stack.c (emit_swap_insn): Likewise.
22109 (swap_to_top): Likewise.
22110 (compare_for_stack_reg): Likewise.
22111 (subst_asm_stack_regs): Likewise.
22112 * reload.c (find_reloads): Likewise.
22113 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
22114 * sel-sched.c (invoke_reorder_hooks): Likewise.
22115 (create_block_for_bookkeeping): Likewise.
22116 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
22117 (lambda_matrix_right_hermite): Use std::swap.
22118 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
22119 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
22120 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
22121 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
22122 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
22123 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
22124 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
22125 * tree-vrp.c (compare_ranges): Likewise.
22126 * var-tracking.c (add_with_sets): Likewise.
22127 (vt_find_locations): Likewise.
22128
22129 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
22130
22131 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
22132 pie executables.
22133 (FBSD_ENDFILE_SPEC): Likewise.
22134 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
22135 config/freebsd-spec.h.
22136 (ENDFILE_SPEC): Likewise.
22137
22138 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
22139 Richard Henderson <rth@redhat.com>
22140
22141 PR target/57032
22142 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
22143 Check for a memory location that is not a reference (using an AND)
22144 to an unaligned location here.
22145 * config/alpha/predicates.md (normal_memory_operand): Remove.
22146
22147 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
22148
22149 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
22150 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
22151
22152 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
22153
22154 * config/mips/mips.c (micromips_globals): New variable.
22155 (mips_set_compression_mode): Save and reinitialize target-dependent
22156 state for microMIPS.
22157
22158 2015-05-18 Martin Liska <mliska@suse.cz>
22159
22160 * dbgcnt.def: Add new counter.
22161 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
22162
22163 2015-05-18 Martin Liska <mliska@suse.cz>
22164
22165 * dbgcnt.def: Sort counters.
22166 * opts.c (common_handle_option): Do not compile if
22167 -fdbg-cnt-list is enabled.
22168
22169 2015-05-18 Tom de Vries <tom@codesourcery.com>
22170
22171 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
22172 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
22173 address operator to va_list operand.
22174 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
22175 unconditionally.
22176 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
22177 operand.
22178 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
22179 * config/s390/s390.c (s390_gimplify_va_arg): Same.
22180 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
22181
22182 2015-05-18 Tom de Vries <tom@codesourcery.com>
22183
22184 * tree-ssa-tail-merge.c: Fix whitespace.
22185
22186 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
22187
22188 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
22189 cortex-a17, and cortex-a17.cortex-a7.
22190
22191 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
22192
22193 PR target/54236
22194 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
22195
22196 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
22197
22198 PR target/66174
22199 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
22200 QImode inner modes for TARGET_AVX512BW. Force mask operand
22201 to a register for AVX512F modes.
22202
22203 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
22204
22205 * toplev.c (emit_debug_global_declarations): Do not output debug info
22206 when doing slim LTO objects.
22207
22208 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
22209
22210 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
22211 odr_types_equivalent_p): Declare.
22212 (odr_type_p): Use gcc_checking_assert.
22213 (type_in_anonymous_namespace_p) Declare.
22214 (type_with_linkage_p): Declare.
22215 * common.opt (Wlto-type-mismatch): New warning.
22216 * ipa-devirt.c (compound_type_base): New function.
22217 (odr_or_derived_type_p): New function.
22218 (odr_types_equivalent_p): New function.
22219 (add_type_duplicate): Simplify.
22220 (type_with_linkage_p): Add hack to prevent false positives on C types
22221 (type_in_anonymous_namespace_p): Likewise.
22222 * tree.c (need_assembler_name_p): Use type_with_linkage.
22223 * tree.h (type_in_anonymous_namespace_p): Remove.
22224 * doc/invoke.texi (-Wlto-type-mismatch): Document
22225
22226 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
22227
22228 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
22229 (verify_type): Verify STRING_FLAG.
22230
22231 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
22232
22233 PR fortran/44054
22234 * tree-pretty-print.c (percent_K_format): Replace locus pointer
22235 with accessor function.
22236 * tree-diagnostic.c (diagnostic_report_current_function): Use
22237 diagnostic_location function.
22238 (maybe_unwind_expanded_macro_loc): Likewise.
22239 (virt_loc_aware_diagnostic_finalizer): Likewise.
22240 (default_tree_printer): Replace locus pointer with accessor function.
22241 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
22242 (diagnostic_set_info_translated): Initialize second location.
22243 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
22244 (diagnostic_show_locus): Handle two locations. Call
22245 diagnostic_print_caret_line.
22246 (diagnostic_print_caret_line): New.
22247 (default_diagnostic_starter): Use diagnostic_location function.
22248 (diagnostic_report_diagnostic): Use diagnostic_location function.
22249 (verbatim): Do not set text.locus.
22250 * diagnostic.h (struct diagnostic_info): Remove location field.
22251 (struct diagnostic_context): Make caret_chars an array of two.
22252 (diagnostic_location): New inline.
22253 (diagnostic_expand_location): Handle two locations.
22254 (diagnostic_same_line): New inline.
22255 (diagnostic_print_caret_line): Declare.
22256 (CARET_LINE_MARGIN): New constant.
22257 * pretty-print.c (pp_printf): Do not set text.locus.
22258 (pp_verbatim): Do not set text.locus.
22259 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
22260 (struct text_info): Replace locus pointer with locations
22261 array. Add accessor functions.
22262
22263 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
22264 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22265
22266 PR target/65768
22267 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
22268 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
22269 large constants in register instead of splitting them.
22270
22271 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
22272
22273 PR target/66140
22274 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
22275 replacements in memory addresses.
22276 (get_unaligned_address): Ditto.
22277
22278 2015-05-16 James Bowman <james.bowman@ftdichip.com>
22279
22280 * config/ft32/*: New files for FT32 port.
22281 * doc/install.texi: Add FT32 information.
22282 * doc/invoke.texi: Add FT32 information.
22283 * doc/md.texi: Add FT32 information.
22284 * doc/contrib.texi: Self added.
22285
22286 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
22287
22288 PR tree-optimization/64454
22289 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
22290 (-1 - A -> ~A): Remove unnecessary condition.
22291
22292 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
22293
22294 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
22295 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
22296 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
22297
22298 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
22299
22300 * ipa-chkp.h (chkp_wrap_function): New.
22301 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
22302 (chkp_wrap_function_name): New.
22303 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
22304 to get wrapper name.
22305 * lto-cgraph.c: Include ipa-chkp.h.
22306 (input_cgraph_1): Avoid alias chain for wrappers.
22307
22308 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
22309
22310 PR middle-end/66134
22311 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
22312 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
22313
22314 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22315
22316 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
22317 (AARCH64_FL_SLOWMUL): Delete.
22318 (AARCH64_FL_CRC): Redefine to 1<<3.
22319 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
22320
22321 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22322
22323 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
22324 casting.
22325
22326 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
22327
22328 * config/alpha/alpha.md (extendqidi2): Use general_operand
22329 instead of some_operand for operand[1] predicate.
22330 (extendhidi2): Ditto.
22331 (cbranchdi4): Use general_operand instead of some_operand
22332 for operand[1] and operands[2] predicates.
22333 (cstoredi4): Ditto.
22334 * config/alpha/predicates.md (some_operand): Remove unused predicate.
22335 (some_ni_operand): Ditto.
22336
22337 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
22338
22339 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
22340 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
22341 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
22342 low part of the constant using alpha_emit_set_const_1.
22343 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
22344
22345 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
22346
22347 * varasm.c (output_constant_pool_1): Pass down alignment from
22348 constant pool entry's descriptor to output_constant_pool_2.
22349 (output_object_block): Add comment prior to call to
22350 output_constant_pool_1.
22351
22352 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
22353
22354 PR rtl-optimization/65862
22355 * target.def (ira_change_pseudo_allocno_class): New hook.
22356 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
22357 value of the hook.
22358 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
22359 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
22360 hook.
22361 * ira-costs.c (find_costs_and_classes): Call the hook and change
22362 classes when it is necessary.
22363 * doc/tm.texi: Update.
22364
22365 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
22366
22367 * config/i386/i386.md (sibcall_memory): Check that register with
22368 callee address is not also used as one of the arguments, instead
22369 of checking that it is not live after the sibcall.
22370 (sibcall_pop_memory): Ditto.
22371 (sibcall_value_memory): Ditto.
22372 (sibcall_value_pop_memory): Ditto.
22373
22374 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
22375
22376 * generic-match-head.c (types_match): Handle non-types.
22377 * gimple-match-head.c (types_match): Likewise.
22378 * match.pd: Remove unnecessary TREE_TYPE for types_match.
22379
22380 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
22381
22382 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
22383 (csneg3<mode>_insn): Enable expansion of pattern.
22384
22385 2015-05-14 Nick Clifton <nickc@redhat.com>
22386
22387 * config/rl78/rl78.c (rl78_select_section): Select the correct
22388 default section based upon the category of the decl.
22389
22390 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
22391
22392 PR rtl-optimization/30967
22393 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
22394 destination mode for the cost of scc patterns.
22395
22396 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
22397
22398 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
22399 using SWIM248 mode iterator.
22400 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
22401 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
22402 for operand[2] constraint.
22403 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
22404
22405 2015-05-13 Jakub Jelinek <jakub@redhat.com>
22406
22407 PR middle-end/66133
22408 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
22409 make sure it is never noreturn, even when the task body does not
22410 return.
22411 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
22412 right before GIMPLE_OMP_RETURN.
22413 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
22414 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
22415 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
22416
22417 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22418
22419 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
22420 * tree-ssa-math-opts.c: Include params.h
22421 (pow_synth_sqrt_info): New struct.
22422 (representable_as_half_series_p): New function.
22423 (get_fn_chain): Likewise.
22424 (print_nested_fn): Likewise.
22425 (dump_fractional_sqrt_sequence): Likewise.
22426 (dump_integer_part): Likewise.
22427 (expand_pow_as_sqrts): Likewise.
22428 (gimple_expand_builtin_pow): Use above to attempt to expand
22429 pow as series of square roots. Removed now unused variables.
22430
22431 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
22432
22433 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
22434 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
22435 Remove *p0 and *p1 arguments. Rewrite function.
22436 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
22437 (alpha_split_const_mov): Update calls to alpha_extract_integer and
22438 alpha_emit_set_long_const.
22439 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
22440 (alpha_output_mi_thunk_osf): Ditto.
22441 * config/alpha/alpha.md (movti): Do not check operands[1]
22442 for CONST_DOUBLE.
22443
22444 2015-05-13 Richard Biener <rguenther@suse.de>
22445
22446 PR tree-optimization/66129
22447 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
22448 commutative.
22449 (vect_schedule_slp_instance): Fix typo.
22450
22451 2015-05-13 David Malcolm <dmalcolm@redhat.com>
22452
22453 * common.opt (fdump-internal-locations): New option.
22454 * input.c: Include diagnostic-core.h.
22455 (get_end_location): New function.
22456 (write_digit): New function.
22457 (write_digit_row): New function.
22458 (dump_location_range): New function.
22459 (dump_labelled_location_range): New function.
22460 (dump_location_info): New function.
22461 * input.h (dump_location_info): New prototype.
22462 * toplev.c (compile_file): Handle flag_dump_locations.
22463
22464 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
22465
22466 * gimple-expr.h (is_gimple_constant): Reorder.
22467 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
22468
22469 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
22470
22471 * combine.c (simplify_set): When generating a CC set, if the
22472 source already is in the correct mode, do not wrap it in a
22473 compare. Simplify the rest of that code.
22474
22475 2015-05-13 Richard Biener <rguenther@suse.de>
22476
22477 PR tree-optimization/66123
22478 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
22479 a taken edge.
22480
22481 2015-05-13 Richard Biener <rguenther@suse.de>
22482
22483 PR middle-end/66110
22484 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
22485 specially.
22486 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
22487
22488 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
22489
22490 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
22491 * aclocal.m4: Regenerated with automake-1.11.6.
22492
22493 2015-05-13 Tom de Vries <tom@codesourcery.com>
22494
22495 PR tree-optimization/66010
22496 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
22497 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
22498 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
22499 and rval based on do_deref.
22500
22501 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
22502
22503 PR target/65103
22504 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
22505 link time constants into adress expressions and therefore set
22506 their cost to 0.
22507
22508 2015-05-13 Jakub Jelinek <jakub@redhat.com>
22509
22510 PR target/66112
22511 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
22512 Use SWI248 iterator instead of SWI.
22513 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
22514 Use eq_attr "alternative" "0" instead of match_test in
22515 length_immediate attribute computation.
22516 (*mulvhi4, *mulvhi4_1): New define_insns.
22517
22518 PR target/66112
22519 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
22520 SIGNED to get precision of non-negative value.
22521
22522 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
22523
22524 PR target/66048
22525 * function.c (diddle_return_value_1): Process bounds first.
22526 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
22527 register.
22528
22529 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
22530
22531 PR rtl-optimization/64616
22532 * loop-invariant.c (can_move_invariant_reg): New.
22533 (move_invariant_reg): Call above new function to decide whether
22534 instruction can just be moved, skipping creation of temporary
22535 register.
22536
22537 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
22538
22539 PR target/pr66047.c
22540 * i386.c (ix86_function_sseregparm): Only return -1 if local function
22541 with implied regparm is called from -mno-sse function.
22542 (init_cumulative_args): Output error if ix86_function_sseregparm
22543 return -1 and SSE register would be needed.
22544 (function_arg_advance_32): Likewise.
22545 (function_arg_32): Likewise.
22546 * i386.h (ix86_args): Add decl field.
22547
22548 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
22549
22550 PR ipa/65873
22551 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
22552 inlines across optimization boundary.
22553
22554 2015-05-12 Jason Merrill <jason@redhat.com>
22555
22556 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
22557 string literal and macro name.
22558
22559 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
22560
22561 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
22562 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
22563 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
22564
22565 2015-05-12 David Malcolm <dmalcolm@redhat.com>
22566
22567 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
22568 (-Wmisleading-indentation): New option.
22569 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
22570
22571 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
22572
22573 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
22574 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
22575 (alpha_extract_integer): Ditto.
22576 (alpha_legitimate_constant_p): Ditto.
22577 (alpha_split_tmode_pair): Ditto.
22578 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
22579 (alpha_expand_mov): Ditto.
22580 (print_operand): Remove handling of 'H' modifier.
22581 <case 'm'>: Remove CONST_DOUBLE handling.
22582 (summarize_insn): Handle CONST_WIDE_INT.
22583 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
22584 (anddi3): Ditto.
22585 (movti): Handle CONST_WIDE_INT.
22586 * config/alpha/constraints.md ('H'): Remove constraint definition.
22587 ('G'): Do not match MODE_FLOAT class.
22588 * config/alpha/predicates.md (const0_operand): Also match
22589 const_wide_int.
22590 (non_add_const_operand): Ditto.
22591 (non_zero_const_operand): Ditto.
22592 (some_operand): Ditto.
22593 (input_operand): Ditto. Handle CONST_WIDE_INT.
22594 (and_operand): Do not match const_double.
22595 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
22596
22597 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
22598
22599 PR target/65697
22600 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
22601 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
22602 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
22603 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
22604 is_mm_seq_cst, is_mm_sync): New accessor functions.
22605 * builtins.c (expand_builtin_sync_operation,
22606 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
22607 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
22608 (get_memmodel, expand_builtin_atomic_compare_exchange,
22609 expand_builtin_atomic_load, expand_builtin_atomic_store,
22610 expand_builtin_atomic_clear): Use new accessor routines.
22611 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
22612 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
22613 (maybe_emit_sync_lock_test_and_set): Use new accessors and
22614 MEMMODEL_SYNC_ACQUIRE.
22615 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
22616 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
22617 expand_atomic_store): Use new accessors.
22618 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
22619 * tsan.c (instrument_builtin_call): Update check for memory model beyond
22620 final enum to use MEMMODEL_LAST.
22621 * c-family/c-common.c: Use new accessor for memmodel_base.
22622 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
22623 accessors.
22624 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
22625 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
22626 mem_thread_fence, *dmb): Likewise.
22627 * config/alpha/alpha.c (alpha_split_compare_and_swap,
22628 alpha_split_compare_and_swap_12): Likewise.
22629 * config/arm/arm.c (arm_expand_compare_and_swap,
22630 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
22631 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
22632 atomic_loaddi): Likewise.
22633 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
22634 Likewise.
22635 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
22636 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
22637 use new accessors.
22638 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
22639 atomic_store<mode>, atomic_compare_and_swap<mode>,
22640 atomic_exchange<mode>): Use new accessors.
22641 * config/mips/mips.c (mips_process_sync_loop): Likewise.
22642 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
22643 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
22644 rs6000_post_atomic_barrier): Add new cases.
22645 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
22646 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
22647 (atomic_load<mode>): Add new cases and use new accessors.
22648 (store_quadpti): Add new cases.
22649 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
22650 accessors.
22651 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
22652 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
22653 model, not 8.
22654
22655 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
22656
22657 * ipa-devirt.c (type_with_linkage_p): New function.
22658 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
22659 type has linkage.
22660 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
22661 (can_be_name_hashed_p): Simplify.
22662 (hash_odr_name): Check that type has linkage before checking if it is
22663 anonymous.
22664 (types_same_for_odr): Likewise.
22665 (odr_name_hasher::equal): Likewise.
22666 (odr_subtypes_equivalent_p): Likewise.
22667 (warn_types_mismatch): Likewise.
22668 (get_odr_type): Likewise.
22669 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
22670 * ipa-utils.h (odr_type_p): Move offline.
22671 * tree.c (need_assembler_name_p): Fix handling of types
22672 without linkages.
22673 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
22674
22675 2015-05-12 David Malcolm <dmalcolm@redhat.com>
22676
22677 * timevar.c (timevar_enable): Delete in favor of...
22678 (g_timer): New global.
22679 (struct timevar_def): Move to timevar.h inside class timer.
22680 (struct timevar_stack_def): Likewise.
22681 (timevars): Delete global in favor of field "m_timevars" within
22682 class timer in timevar.h
22683 (stack): Likewise, in favor of field "m_stack".
22684 (unused_stack_instances): Likewise, in favor of field
22685 "m_unused_stack_instances".
22686 (start_time): Likewise, in favor of field "m_start_time".
22687 (get_time): Eliminate check for timevar_enable.
22688 (timer::timer): New function, built from part of timevar_init.
22689 (timevar_init): Rewrite idempotency test from using
22690 "timevar_enable" bool to using dynamic allocation of "g_timer".
22691 Move rest of implementation into timer's constructor.
22692 (timevar_push_1): Rename to...
22693 (timer::push): ...this, adding "m_" prefixes to variables that
22694 are now fields of timer.
22695 (timevar_pop_1): Likewise, rename to...
22696 (timer::pop): ...this, and add "m_" prefixes.
22697 (timevar_start): Replace test for "timevar_enable" with one for
22698 "g_timer", and move bulk of implementation to...
22699 (timer::start): ...here, adding "m_" prefixes.
22700 (timevar_stop): Likewise, from here...
22701 (timer::stop): ...to here.
22702 (timevar_cond_start): Likewise, from here...
22703 (timer::cond_start): ...to here.
22704 (timevar_cond_stop): Likewise, from here...
22705 (timer::cond_stop): ...to here.
22706 (validate_phases): Rename to...
22707 (timer::validate_phases): ...this, and add "m_" prefixes. Make
22708 locals "total" and "tv" const.
22709 (timevar_print): Rename to...
22710 (timer::print): ...this, and add "m_" prefixes. Make locals
22711 "total" and "tv" const. Eliminate test for timevar_enable.
22712 * timevar.h (timevar_enable): Eliminate.
22713 (g_timer): New declaration.
22714 (timevar_push_1): Eliminate.
22715 (timevar_pop_1): Eliminate.
22716 (timevar_print): Eliminate.
22717 (class timer): New class.
22718 (timevar_push): Rewrite to use g_timer.
22719 (timevar_pop): Likewise.
22720 * toplev.c (toplev::~toplev): Likewise.
22721
22722 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
22723
22724 * arm-protos.h (arm_sched_autopref): Delete.
22725 (tune_params): Re-organize, use enums for flag values.
22726 (FUSE_OPS): New macro.
22727 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
22728 (ARM_PREFETCH_BENEFICIAL): Likewise.
22729 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
22730 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
22731 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
22732 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
22733 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
22734 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
22735 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
22736 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
22737 format.
22738 (arm_option_override, thumb2_reorg, arm_print_tune_info)
22739 (aarch_macro_fusion_pair_p): Update uses of current_tune.
22740 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
22741
22742 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
22743
22744 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
22745 "break".
22746
22747 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
22748 Sandra Loosemore <sandra@codesourcery.com>
22749
22750 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
22751 value.
22752 (REG_CLASS_NAMES): Add "IJMP_REGS".
22753 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
22754 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
22755 use new "c" register constraint.
22756 * config/nios2/constraint.md (c): New register constraint
22757 corresponding to IJMP_REGS.
22758
22759 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
22760
22761 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
22762 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
22763 define_splits): Delete, revamp, transmogrify into ...
22764 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
22765 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
22766 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
22767 New.
22768
22769 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
22770
22771 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
22772 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
22773
22774 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
22775
22776 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
22777 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
22778 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
22779 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
22780 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
22781 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
22782 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
22783 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
22784 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
22785 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
22786 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
22787 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
22788 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
22789 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
22790 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
22791 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
22792 and 30 corresponding splitters): Delete.
22793
22794 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
22795
22796 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
22797 zero_extract.
22798
22799 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
22800
22801 * combine.c (recog_for_combine_1): New function, factored out
22802 from recog_for_combine.
22803 (change_zero_ext): New function.
22804 (recog_for_combine): If recog fails, try again with the pattern
22805 modified by change_zero_ext; if that still fails, restore the
22806 pattern.
22807
22808 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
22809
22810 * combine.c (get_undo_marker): New function.
22811 (undo_to_marker): New function, largely factored out from ...
22812 (undo_all): ... this. Adjust.
22813
22814 2015-05-12 Richard Biener <rguenther@suse.de>
22815
22816 PR tree-optimization/66101
22817 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
22818 fixup if we turn a loop exit edge to a fallthru edge.
22819
22820 2015-05-12 Richard Biener <rguenther@suse.de>
22821
22822 PR tree-optimization/37021
22823 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
22824 (SLP_TREE_TWO_OPERATORS): New define.
22825 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
22826 SLP_TREE_TWO_OPERATORS.
22827 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
22828 SLP node.
22829 (vect_build_slp_tree): Adjust.
22830 (vect_analyze_slp_cost_1): Likewise.
22831 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
22832 emitting two vector stmts and mixing the results.
22833
22834 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
22835
22836 * call.c (print_z_candidates): Remove dead code.
22837
22838 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22839
22840 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
22841 and zEC12_simple_fp.
22842 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
22843 to 1.
22844
22845 2015-05-12 Tom de Vries <tom@codesourcery.com>
22846
22847 PR tree-optimization/66010
22848 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
22849 ifn_va_arg.
22850 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
22851 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
22852 va_lists are passed, and remove corresponding handling.
22853 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
22854 do_deref argument to ifn_va_arg.
22855 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
22856 ifn_va_arg.
22857
22858 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22859
22860 PR target/65955
22861 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
22862 REG before taking its REGNO.
22863
22864 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22865
22866 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
22867 rsp->sign_bit_copies and rsp->nonzero_bits into ...
22868 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
22869 present to get more accurate information about the number of sign bit
22870 copies and non zero bits.
22871
22872 2015-05-12 Richard Biener <rguenther@suse.de>
22873
22874 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
22875 do not allow unrolling.
22876
22877 2015-05-11 Richard Henderson <rth@redhat.com>
22878
22879 * config/i386/i386-modes.def (CCP): New.
22880 * config/i386/i386.c (put_condition_code): Handle it.
22881 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
22882
22883 2015-05-11 Richard Henderson <rth@redhat.com>
22884
22885 * target.def (md_asm_clobbers): Replace with...
22886 (md_asm_adjust): this.
22887 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
22888 (TARGET_MD_ASM_ADJUST): New.
22889 * tm.texi: Rebuild.
22890 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
22891 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
22892 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
22893
22894 * cfgexpand.c (check_operand_nalternatives): Accept vector of
22895 constraints instead of lists of outputs and inputs.
22896 (expand_asm_stmt): Save and restore input_location around the
22897 body of the function. Move asm data into vectors instead of
22898 building tree lists. Generate cleanup sequences as needed,
22899 rather than waiting til the end. Use new md_asm_adjust hook.
22900
22901 * config/vxworks.c: Include vec.h before target.h.
22902 * gimple.c: Likewise.
22903 * incpath.c: Likewise.
22904 * mode-switching.c: Likewise.
22905
22906 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
22907 (cris_md_asm_adjust): this.
22908 (TARGET_MD_ASM_CLOBBERS): Remove.
22909 (TARGET_MD_ASM_ADJUST): New.
22910 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
22911 (ix86_md_asm_adjust): this.
22912 (TARGET_MD_ASM_CLOBBERS): Remove.
22913 (TARGET_MD_ASM_ADJUST): New.
22914 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
22915 (mn10300_md_asm_adjust): this.
22916 (TARGET_MD_ASM_CLOBBERS): Remove.
22917 (TARGET_MD_ASM_ADJUST): New.
22918 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
22919 (rs6000_md_asm_adjust): this.
22920 (TARGET_MD_ASM_CLOBBERS): Remove.
22921 (TARGET_MD_ASM_ADJUST): New.
22922 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
22923 (visium_md_asm_adjust): this.
22924 (TARGET_MD_ASM_CLOBBERS): Remove.
22925 (TARGET_MD_ASM_ADJUST): New.
22926
22927 2015-05-11 Richard Henderson <rth@redhat.com>
22928
22929 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
22930 if noutputs is zero.
22931 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
22932
22933 * cfgexpand.c (expand_asm_operands): Merge into...
22934 (expand_asm_stmt): ... here.
22935
22936 * cfgexpand.c (expand_asm_operands): Don't call
22937 resolve_asm_operand_names.
22938 * stmt.c (resolve_asm_operand_names): Clarify block comment.
22939
22940 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
22941
22942 * dwarf2out.c (gen_member_die): Sanity check that we access
22943 TYPE_MAIN_VARIANT for TYPE_METHODS.
22944 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
22945 checking TYPE_METHODS.
22946 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
22947 if non-null.
22948 (build_distinct_type_copy): Clear TYPE_METHODS.
22949 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
22950 (verify_type): Allow TYPE_METHODS to be error_mark_node.
22951 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
22952
22953 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
22954
22955 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
22956 (emit_pattern_before_setloc): Likewise.
22957
22958 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
22959
22960 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
22961 for define_peephole2s.
22962 (get_peephole2_pattern): New function.
22963 (main): Use it. Call validate_pattern.
22964
22965 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22966
22967 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
22968 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
22969 (Last callee saved reg is different for AVR_TINY architecture)
22970
22971 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
22972
22973 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
22974 when looking for memory references.
22975
22976 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
22977
22978 PR target/65753
22979 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
22980 via function pointers.
22981
22982 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
22983
22984 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
22985 indirect call by forcing address into a pseudo with -fno-plt.
22986 * common.opt (flag_plt): New option.
22987 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
22988 ([-fno-plt]): Document.
22989
22990 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
22991
22992 PR bootstrap/66105
22993 * config/rs6000/option-defaults.h: Add space between string literal
22994 and macro name.
22995
22996 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
22997
22998 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
22999 accross ARM targets.
23000
23001 2015-05-11 Christian Bruel <christian.bruel@st.com>
23002
23003 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
23004 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
23005
23006 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
23007
23008 PR rtl-optimization/66076
23009 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
23010 Don't grow the heap array if it is already big enough from a
23011 previous iteration.
23012
23013 2015-05-11 Christian Bruel <christian.bruel@st.com>
23014
23015 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
23016 (is_called_in_ARM_mode): Remove.
23017 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
23018 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
23019 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
23020 arm_declare_function_name.
23021
23022 2015-05-11 Christian Bruel <christian.bruel@st.com>
23023
23024 * config/arm/arm.c (arm_option_override): Reoganized and split into :
23025 (arm_option_params_internal); New function.
23026 (arm_option_check_internal): New function.
23027 (arm_option_override_internal): New function.
23028 (thumb_code, thumb1_code): Remove.
23029 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
23030 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
23031 (thumb_code, thumb1_code): Remove.
23032 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
23033
23034 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
23035
23036 * config/alpha/alpha.c (alpha_emit_set_const_1)
23037 (alpha_emit_set_long_const, alpha_extract_integer)
23038 (alpha_legitimate_constant_p, alpha_split_const_mov)
23039 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
23040 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
23041 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
23042 HOST_WIDE_INT_1U.
23043 * config/alpha/predicates.md (mode_mask_operand): Do not match
23044 const_double RTX.
23045 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
23046 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
23047 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
23048 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
23049 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
23050
23051 2015-05-11 Jakub Jelinek <jakub@redhat.com>
23052
23053 PR target/65780
23054 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
23055 default_binds_local_p_2.
23056 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
23057 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
23058
23059 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23060
23061 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
23062
23063 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23064
23065 Patch by Richard Biener
23066 * coverage.c (coverage_obj_init): Delay building of type variant
23067 until the type is finished.
23068
23069 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23070
23071 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
23072 mismatch between C and C++ type; compoare correctly ARG_TYPES
23073 for non-prototypes and output correctly parameter index for METHOD_TYPE.
23074 (odr_types_equivalent_p): Fix wording of warning about attributes;
23075 it is OK to match prototype and non-prototype.
23076
23077 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23078
23079 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
23080 TYPE_ARG_TYPES list.
23081 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
23082 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
23083
23084 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
23085
23086 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
23087 * tree.h (is_lang_specific): Constify.
23088
23089 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
23090
23091 PR tree-optimization/64454
23092 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
23093 Rewrite.
23094
23095 2015-05-08 Jason Merrill <jason@redhat.com>
23096
23097 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
23098 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
23099 config/darwin.h, config/darwin9.h, config/elfos.h,
23100 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
23101 config/microblaze/microblaze.h, config/mips/mips.h,
23102 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
23103 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
23104 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
23105 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
23106 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
23107 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
23108 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
23109 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
23110 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
23111 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
23112 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
23113 between string literal and macro name.
23114
23115 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23116
23117 * jump.c: Change argument types to rtx_insn *.
23118 * rtl.h: Adjust.
23119
23120 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23121
23122 * lra-constraints.c: Change argument type to rtx_insn *.
23123
23124 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23125
23126 * df-problems.c: Change argument type to rtx_insn *.
23127
23128 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23129
23130 * combine.c: Change argument type to rtx_insn *.
23131
23132 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23133
23134 * rtl.h: Adjust.
23135 * rtlanal.c: Change argument type to rtx_insn *.
23136
23137 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23138
23139 * sched-deps.c: Change argument types to rtx_insn *.
23140 * sched-int.h: Adjust.
23141
23142 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23143
23144 * dwarf2cfi.c: Change argument type to rtx_insn *.
23145
23146 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23147
23148 * ira.c (decrease_live_ranges_number): Changetype of local
23149 variable to rtx_insn *.
23150 * recog.c: Change argument types to rtx_insn *.
23151 * recog.h: Adjust.
23152
23153 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23154
23155 * reorg.c: Change argument types to rtx_insn *.
23156
23157 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23158
23159 * ira-color.c: Change argument types to rtx_insn *.
23160 * lra-eliminations.c: Likewise.
23161 * ira.h: Adjust.
23162
23163 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23164
23165 * gcse.c: Change argument types to rtx_insn *.
23166
23167 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23168
23169 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
23170
23171 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23172
23173 * emit-rtl.c (emit_debug_insn_before): Change argument type to
23174 rtx_insn *.
23175 * rtl.h: Adjust.
23176
23177 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23178
23179 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
23180 * rtl.h: Adjust.
23181
23182 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23183
23184 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
23185 * rtl.h: Adjust.
23186
23187 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23188
23189 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
23190 * rtl.h: Adjust.
23191
23192 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23193
23194 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
23195 * rtl.h: Adjust.
23196
23197 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23198
23199 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
23200 to rtx_insn *.
23201 * rtl.h: Adjust.
23202
23203 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23204
23205 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
23206 to rtx_insn *.
23207 * rtl.h: Likewise.
23208
23209 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23210
23211 * except.c (can_nonlocal_goto): Change type of argument to
23212 rtx_insn *.
23213 * rtl.h: Adjust.
23214
23215 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23216
23217 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
23218 * rtl.h: Adjust.
23219
23220 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23221
23222 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
23223 * cfgrtl.c (can_delete_label_p): Adjust.
23224 * rtl.h: likewise.
23225
23226 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23227
23228 * reorg.c (stop_search_p): Change argument to rtx_insn *.
23229
23230 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23231
23232 * except.c (make_reg_eh_region_note): Change argument to
23233 rtx_insn *.
23234 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
23235 * except.h: Adjust.
23236
23237 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23238
23239 * mode-switching.c (commit_mode_sets): Change type of local
23240 variable from rtx to rtx_insn *.
23241
23242 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
23243
23244 * doc/install.texi (--enable-languages): Add missing jit and lto info.
23245 Add ^ to grep command.
23246 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
23247 arg to last gimple_simplify declaration. Add missing gimple_build
23248 declaration for built-in function case with four tree args.
23249
23250 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
23251 Szabolcs Nagy <szabolcs.nagy@arm.com>
23252
23253 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
23254 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
23255 (GNU_USER_DYNAMIC_LINKERN32): Update.
23256
23257 2015-05-08 Richard Biener <rguenther@suse.de>
23258
23259 PR tree-optimization/66036
23260 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
23261 Handle strided group loads.
23262 (vect_verify_datarefs_alignment): Likewise.
23263 (vect_enhance_data_refs_alignment): Likewise.
23264 (vect_analyze_group_access): Likewise.
23265 (vect_analyze_data_ref_access): Likewise.
23266 (vect_analyze_data_ref_accesses): Likewise.
23267 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
23268 (vectorizable_load): Likewise.
23269
23270 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
23271
23272 * config/rs6000/rs6000.md: Require operand inequality in one
23273 of the peepholes.
23274
23275 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
23276 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
23277
23278 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
23279 from (set ...).
23280 * config/rx/rx.md (movdi, movdf): Likewise.
23281 Likewise for define_peephole2s.
23282
23283 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
23284
23285 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
23286 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
23287 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
23288 vtst_u64): Rewrite using gcc vector extensions.
23289
23290 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
23291
23292 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
23293 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
23294
23295 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
23296
23297 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
23298
23299 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
23300
23301 * config/glibc-stdint.h (OPTION_MUSL): Define.
23302 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
23303 Change the definition based on OPTION_MUSL for 64 bit targets.
23304 * config/linux.h (OPTION_MUSL): Redefine.
23305 * config/alpha/linux.h (OPTION_MUSL): Redefine.
23306 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
23307 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
23308
23309 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
23310 Szabolcs Nagy <szabolcs.nagy@arm.com>
23311
23312 * config.gcc (LIBC_MUSL): New tm_defines macro.
23313 * config/linux.h (OPTION_MUSL): Define.
23314 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
23315 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
23316 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
23317 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
23318 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
23319 * config/linux.opt (mmusl): New option.
23320 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
23321 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
23322 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
23323 * configure: Regenerate.
23324
23325 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
23326 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23327
23328 PR target/48904
23329 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
23330 * config/i386/knetbsd-gnu64.h: New file.
23331
23332 2015-05-08 Marek Polacek <polacek@redhat.com>
23333
23334 PR c/64918
23335 * doc/invoke.texi: Document -Woverride-init-side-effects.
23336
23337 2015-05-07 Marek Polacek <polacek@redhat.com>
23338
23339 PR c/65179
23340 * doc/invoke.texi: Document -Wshift-negative-value.
23341
23342 2015-05-06 Aditya Kumar <hiraditya@msn.com>
23343
23344 * gcov-tool.c (do_merge): Refactore to remove int ret.
23345 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
23346 !type == FUNC to type != FUNC.
23347 * reload.h (struct target_reload): Changee to type of
23348 x_spill_indirect_levels from bool to unsigned char.
23349
23350 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
23351
23352 * rtl.h (always_void_p): New function.
23353 * gengenrtl.c (always_void_p): Likewise.
23354 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
23355 with code foo are always VOIDmode.
23356 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
23357 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
23358 compare-elim.c, config/aarch64/aarch64.c,
23359 config/aarch64/aarch64.md, config/alpha/alpha.c,
23360 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
23361 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
23362 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
23363 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
23364 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
23365 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
23366 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
23367 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
23368 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
23369 config/ia64/vect.md, config/iq2000/iq2000.c,
23370 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
23371 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
23372 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
23373 config/mep/mep.c, config/microblaze/microblaze.c,
23374 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
23375 config/mn10300/mn10300.c, config/msp430/msp430.c,
23376 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
23377 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
23378 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
23379 config/rs6000/altivec.md, config/rs6000/rs6000.c,
23380 config/rs6000/rs6000.md, config/rs6000/vector.md,
23381 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
23382 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
23383 config/sh/sh.md, config/sh/sh_treg_combine.cc,
23384 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
23385 config/spu/spu.md, config/stormy16/stormy16.c,
23386 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
23387 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
23388 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
23389 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
23390 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
23391 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
23392 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
23393 var-tracking.c: Update calls accordingly.
23394
23395 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
23396
23397 PR middle-end/192
23398 PR middle-end/54303
23399 * varasm.c (function_mergeable_rodata_prefix): New function.
23400 (mergeable_string_section): Use it.
23401 (mergeable_constant_section): Use it.
23402
23403 2015-05-07 Jeff Law <law@redhat.com>
23404
23405 PR target/39726
23406 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
23407 simplifier to narrow arithmetic.
23408 * generic-match-head.c: (types_match, single_use): New functions.
23409 * gimple-match-head.c: (types_match, single_use): New functions.
23410
23411 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23412
23413 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
23414 rtx type.
23415
23416 2015-05-07 Richard Biener <rguenther@suse.de>
23417
23418 PR tree-optimization/66002
23419 * passes.def: Schedule another pass_merge_phi after ifcombine, right
23420 before phiopt.
23421
23422 2015-05-07 Marek Polacek <polacek@redhat.com>
23423 Martin Uecker <uecker@eecs.berkeley.edu>
23424
23425 * doc/invoke.texi: Document -fsanitize=bounds-strict.
23426 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
23427 into SANITIZE_NONDEFAULT.
23428 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
23429
23430 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
23431
23432 PR target/66015
23433 * config/alpha/alpha.c (alpha_override_options_after_change): New.
23434 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
23435 (alpha_override_options): Move align_loops, align_jumps and
23436 align_functions handling into alpha_override_options_after_change.
23437
23438 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
23439 Chris Jones <chrisj@nvidia.com>
23440 Joshua Conner <jconner@nvidia.com>
23441
23442 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
23443 linking of crtfastmath.o.
23444 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
23445
23446 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
23447
23448 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
23449 (cstore<mode>4_unsigned_imm): New expander.
23450 (cstore<mode>4): Remove empty constraint strings. Use the new
23451 expanders.
23452
23453 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
23454
23455 PR target/64208
23456 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
23457 alternatives.
23458
23459 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
23460
23461 * config/aarch64/geniterators.sh: Use standard BRE in sed.
23462
23463 2015-05-06 Alan Modra <amodra@gmail.com>
23464
23465 PR target/66033
23466 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
23467 (UNSPEC_NOP): Define.
23468 (reload_vsx_from_gpr<mode>): Add missing DONE.
23469 (reload_gpr_from_vsx<mode>): Likewise.
23470 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
23471 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
23472
23473 2015-05-06 Christian Bruel <christian.bruel@st.com>
23474
23475 PR target/66015
23476 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
23477 align_jumps, align_functions into aarch64_override_options_after_change.
23478
23479 2015-05-06 Richard Biener <rguenther@suse.de>
23480
23481 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
23482 vect_transform_slp_perm_load to check if we support a permutation
23483 for basic-block vectorization.
23484
23485 2015-05-06 Nick Clifton <nickc@redhat.com>
23486
23487 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
23488 used, even if it is not being used as a frame pointer.
23489
23490 2015-05-05 Jason Merrill <jason@redhat.com>
23491
23492 * dwarf2out.c (gen_member_die): Don't emit anything for an
23493 anonymous class constructor.
23494
23495 2015-05-05 David Malcolm <dmalcolm@redhat.com>
23496
23497 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
23498 that it reflects the block structure.
23499 (afdo_propagate_edge): Likewise.
23500 (afdo_calculate_branch_prob): Likewise.
23501 (afdo_annotate_cfg): Likewise.
23502 * cfgcleanup.c (equal_different_set_p): Likewise.
23503 (try_crossjump_to_edge): Likewise.
23504 * cgraph.c (cgraph_node::verify_node): Likewise.
23505 * cgraphunit.c (expand_all_functions): Likewise.
23506 * config/i386/i386.c (ix86_expand_copysign): Likewise.
23507 (exact_dependency_1): Likewise.
23508 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
23509 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
23510 * gensupport.c (process_define_subst): Likewise.
23511 * lto-wrapper.c (merge_and_complain): Likewise.
23512 * tree-if-conv.c (if_convertible_bb_p): Likewise.
23513 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
23514 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
23515 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
23516 * tree-vect-loop.c (vectorizable_reduction): Likewise.
23517 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
23518 * tree-vect-stmts.c (vectorizable_shift): Likewise.
23519 * tree-vrp.c (vrp_finalize): Likewise.
23520 * tree.c (variably_modified_type_p): Likewise.
23521
23522 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
23523
23524 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
23525 on darwin12 and later.
23526 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
23527 file to pass -rdynamic on darwin12 and later.
23528 * config/darwin.opt (rdynamic): Add.
23529
23530 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
23531
23532 * doc/extend.texi (C Extensions): Update menu for moved Variable
23533 Attributes and Type Attributes sections.
23534
23535 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
23536
23537 PR target/65990
23538 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
23539 if rep_8byte stringop strategy was specified for 32-bit target.
23540
23541 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
23542
23543 PR target/65915
23544 * config/i386/i386.md (vector convert to float spltiter): Check for
23545 xmm16+, when splitting scalar float conversion.
23546 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
23547
23548 2015-05-05 Nick Clifton <nickc@redhat.com>
23549
23550 * config/msp430/msp430-opts.h (enum msp430_regions): New.
23551 * config/msp430/msp430.c (msp430_override_options): Complain if
23552 -mcode-region or -mdata-region is used on a non MSP430X.
23553 (msp430_section_attr): New function. Checks lower, upper and
23554 either attributes.
23555 (msp430_attribute_table): Add lower, upper and either.
23556 (gen_prefix): New function. Generates a prefix for a section
23557 name.
23558 (msp430_select_section): New function - handles the choice of
23559 section for an object. Takes into account memory region
23560 attributes and options.
23561 (msp430_function_section): Use gen_prefix.
23562 (TARGET_SECTION_TYPE_FLAGS): Define.
23563 (msp430_section_type_flags): New function.
23564 (TARGET_ASM_UNIQUE_SECTION): Define.
23565 (msp430_unique_section): New function.
23566 (msp430_output_aligned_decl_common): New function.
23567 (msp430_do_not_relax_short_jumps): New function.
23568 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
23569 Define.
23570 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
23571 * config/msp430/msp430-protos.h
23572 (msp430_do_not_relax_short_jumps): New prototype.
23573 (msp430_output_aligned_decl_common): New prototype.
23574 * config/msp430/msp430.md (length): New attribute.
23575 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
23576 then use a long code sequence for short jumps.
23577 * config/msp430/msp430.opt (mcode-region): New.
23578 (mdata-region): New.
23579 * doc/invoke.texi: Document new options.
23580 * doc/extend.texi: Document new attributes.
23581
23582 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
23583
23584 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
23585 (tune_params): Add field branch_costs.
23586 (aarch64_branch_cost): Declare.
23587 * gcc/config/aarch64.c (generic_branch_cost): New.
23588 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
23589 (cortexa53_tunings): Likewise.
23590 (cortexa57_tunings): Likewise.
23591 (thunderx_tunings): Likewise.
23592 (xgene1_tunings): Likewise.
23593 (aarch64_branch_cost): Define.
23594 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
23595
23596 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
23597
23598 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
23599 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
23600 * config/i386/i386.md: Ditto.
23601 * config/i386/winnt.c: Ditto.
23602
23603 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
23604
23605 * doc/extend.texi (__atomic Builtins): Move implementation details
23606 to the end of the description, rewrite opening paragraphs, state
23607 difference with __sync builtins, state C11/C++11 assumptions,
23608 weaken itemized descriptions, add explanation of memory model
23609 behaviour, expand description of compare-exchange, simplify text.
23610
23611 2015-05-05 Renlin Li <renlin.li@arm.com>
23612
23613 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
23614
23615 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
23616
23617 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
23618 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
23619 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
23620 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
23621 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
23622 * configure: Regenerate.
23623 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
23624 * doc/install.texi (aarch64*-*-*): Document new
23625 --enable-fix-cortex-a53-843419 option.
23626 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
23627 and -mno-fix-cortex-a53-843419 options.
23628
23629 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
23630
23631 PR target/65871
23632 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
23633
23634 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
23635
23636 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
23637 fix overactive TYPE_MIN_VALUE check and add FIXME for type
23638 compatibility problems.
23639
23640 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
23641
23642 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
23643 constraints.
23644 (cbranchsi4_reg): New.
23645 * config/microblaze/microblaze.c
23646 (microblaze_expand_conditional_branch_reg): New.
23647 * config/microblaze/microblaze-protos.h
23648 (microblaze_expand_conditional_branch_reg): New prototype.
23649
23650 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
23651
23652 * config/microblaze/microblaze.md (peephole2): New.
23653
23654 2015-05-04 Jeff Law <law@redhat.com>
23655
23656 Revert:
23657 2015-05-04 Jeff Law <law@redhat.com>
23658
23659 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
23660 simplifier to narrow arithmetic.
23661 * generic-match-head.c: (types_match, single_use): New functions.
23662 * gimple-match-head.c: (types_match, single_use): New functions.
23663
23664 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
23665
23666 PR target/65987
23667 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
23668 (split_branches): Likewise.
23669
23670 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
23671
23672 * common.opt (fdelete-null-pointer-checks): Init to -1.
23673 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
23674 override flag_delete_null_pointer_checks default.
23675 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
23676 behavior re address zero. Better document target-specific behavior.
23677 (-fisolate-errneous-paths-dereference): Mention relationship to
23678 -fdelete-null-pointer-checks.
23679
23680 2015-05-04 Jakub Jelinek <jakub@redhat.com>
23681
23682 PR tree-optimization/65984
23683 * ubsan.c: Include tree-cfg.h.
23684 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
23685 stmt_could_throw_p test, rename can_throw variable to ends_bb.
23686
23687 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
23688
23689 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
23690 to CONST_DOUBLE_P predicate.
23691 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
23692 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
23693 allow only operands that satisfy standard_sse_constant_p predicate.
23694 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
23695 to CONST_DOUBLE_P predicate.
23696
23697 2015-05-04 Jeff Law <law@redhat.com>
23698
23699 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
23700 simplifier to narrow arithmetic.
23701 * generic-match-head.c: (types_match, single_use): New functions.
23702 * gimple-match-head.c: (types_match, single_use): New functions.
23703
23704 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
23705
23706 * config/arm/arm.c: Restore bootstrap.
23707
23708 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
23709
23710 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
23711 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
23712 as CONST_WIDE_INT, not CONST_DOUBLE.
23713 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
23714 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
23715 (ix86_find_base_term): Do not check for CONST_DOUBLE.
23716 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
23717 (ix86_build_signbit_mask): Rewrite using wide ints.
23718 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
23719 (ix86_rtx_costs): Handle CONST_WIDE_INT.
23720 (find_constant): Ditto.
23721 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
23722 using gen_int_mode.
23723 * config/i386/predicates.md (x86_64_immediate_operand)
23724 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
23725 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
23726 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
23727 (const0_operand): Also match const_wide_int.
23728 (constm1_operand): Ditto.
23729 (const1_operand): Ditto.
23730
23731 2015-05-04 Richard Biener <rguenther@suse.de>
23732
23733 PR tree-optimization/65965
23734 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
23735 store groups at gaps.
23736
23737 2015-05-04 Richard Biener <rguenther@suse.de>
23738
23739 PR tree-optimization/65935
23740 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
23741 then make sure to apply that swapping to the IL.
23742
23743 2015-05-04 Jakub Jelinek <jakub@redhat.com>
23744
23745 * Makefile.in (PATCHLEVEL_c): New variable.
23746 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
23747 expand the same way as if DEVPHASE_c was non-empty.
23748
23749 2015-05-04 Kai Tietz <ktietz@redhat.com>
23750
23751 PR target/65559
23752 * lto-wrapper.c (run_gcc): Open filename
23753 in binary-mode.
23754
23755 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
23756
23757 * doc/extend.texi (Variable Attributes, Type Attributes): Move
23758 sections up in file, to immediately after the Function Attributes
23759 section.
23760
23761 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
23762
23763 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
23764
23765 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23766
23767 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
23768 (insert_partition_copy_on_edge): Adjust.
23769 (insert_rtx_to_part_on_edge): Likewise.
23770 (insert_part_to_rtx_on_edge): Likewise.
23771
23772 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23773
23774 * function.c (set_return_jump_label): Change type of argument to
23775 rtx_insn *.
23776 * function.h (set_return_jump_label): Adjust.
23777
23778 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23779
23780 * reload.h (struct reg_equivs_t): Change type of init to
23781 rtx_insn *.
23782 * ira.c (fix_reg_equiv_init): Adjust.
23783 * reload1.c (eliminate_regs_1): Likewise.
23784 (init_eliminable_invariants): Likewise.
23785
23786 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23787
23788 * cselib.c (fp_setter_insn): Take a rtx_insn *.
23789 * cselib.h (fp_setter_insn): Adjust.
23790
23791 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23792
23793 * recog.c (struct validate_replace_src_data): Change type of
23794 insn field to rtx_insn *.
23795 (validate_replace_src_group): Change type of argument to rtx_insn *.
23796 * recog.h (validate_replace_src_group): Adjust.
23797
23798 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23799
23800 * haifa-sched.c: Change the type of some variables to rtx_insn *.
23801 * sched-deps.c: Likewise.
23802 * sched-int.h: Likewise.
23803 * sched-rgn.c: Likewise.
23804 * sel-sched.c: Likewise.
23805
23806 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23807
23808 to rtx_insn *.
23809 * config/i386/i386.c: Change the type of some arguments to
23810 rtx_insn *.
23811 * config/arm/arm.c: Likewise.
23812
23813 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23814
23815 * lra-constraints.c: Change type of some arguments to rtx_insn *.
23816
23817 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23818
23819 * regcprop.c (kill_autoinc_value): Change type of argument to
23820 rtx_insn *.
23821
23822 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23823
23824 * genrecog.c (print_subroutine): Adjust.
23825 * recog.c (get_bool_attr_mask_uncached): Likewise.
23826 * recog.h (struct recog_data_d): Change the type of insn to
23827 rtx_insn *.
23828
23829 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23830
23831 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
23832
23833 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23834
23835 * df-problems.c (df_set_note): Change type of argument to
23836 rtx_insn *.
23837
23838 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23839
23840 * builtins.c (expand_builtin_trap): Change type of local
23841 variable to rtx_insn *.
23842 (add_sched_insns_for_speculation): Likewise.
23843 (ix86_emit_save_regs): Likewise.
23844 (get_scratch_register_on_entry): Likewise.
23845 (ix86_emit_restore_reg_using_pop): Likewise.
23846 (ix86_emit_leave): Likewise.
23847 (ix86_emit_restore_regs_using_mov): Likewise.
23848 (ix86_expand_epilogue): Likewise.
23849 Likewise.
23850 (rl78_alloc_physical_registers_umul): Likewise.
23851 * cselib.c (discard_useless_locs): Likewise.
23852 (cselib_invalidate_regno): Likewise.
23853 (cselib_invalidate_mem): Likewise.
23854 * function.c (expand_function_start): Likewise.
23855 (emit_use_return_register_into_block): Likewise.
23856 * gcse.c: Likewise.
23857 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
23858 * ifcvt.c (noce_get_alt_condition): Likewise.
23859 * loop-doloop.c (doloop_condition_get): Likewise.
23860 * lra-constraints.c (inherit_in_ebb): Likewise.
23861 * modulo-sched.c (sms_schedule_by_order): Likewise.
23862 * recog.c (next_insn_tests_no_inequality): Likewise.
23863 * reorg.c (emit_delay_sequence): Likewise.
23864 (update_reg_dead_notes): Likewise.
23865 (fix_reg_dead_note): Likewise.
23866 (fill_slots_from_thread): Likewise.
23867 (delete_computation): Likewise.
23868
23869 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
23870
23871 * doc/extend.texi (Variable Attributes): Add menu and proper
23872 @nodes to subsections. Move Microsoft Windows attributes to
23873 their own subsection.
23874 (Type Attributes): Reorganize introduction to remove duplicate
23875 list of attributes. Add menu and proper @nodes to subsections.
23876 Alphabetize the main table of common attributes.
23877
23878 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
23879
23880 * match.pd: New simplification patterns.
23881 (x + (x & 1)) -> ((x + 1) & ~1)
23882 (x & ~(x & y)) -> ((x & ~y))
23883 (x | ~(x | y)) -> ((x | ~y))
23884
23885 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23886
23887 * target.def (attribute_table): Mention that struct attribute_spec
23888 is defined in tree-core.h rather than tree.h
23889 * doc/tm.texi: Regenerate.
23890
23891 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
23892
23893 * genrecog.c (test): Rename to rtx_test. Update rest of file
23894 accordingly.
23895
23896 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
23897
23898 PR translation/65959
23899 * params.h (DEFPARAM): Rename msgid to nocmsgid.
23900
23901 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
23902
23903 * gcc/config/aarch64/aarch64-protos.h (tune_params):
23904 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
23905 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
23906 Return value depending on target.
23907 (generic_tunings): Initialize new target settings.
23908 (cortexa53_tunings): Likewise.
23909 (cortexa57_tunings): Likewise.
23910 (thunderx_tunings): Likewise.
23911 (xgene1_tunings): Likewise.
23912
23913 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
23914
23915 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
23916 Make Cortex-A53 shift costs more accurate.
23917
23918 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23919
23920 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
23921 UNSIGNED_FLOAT.
23922
23923 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
23924
23925 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
23926 Calculate cost of op0 and op1 in PLUS and MINUS cases.
23927
23928 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23929
23930 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
23931 Add cost of op0 in the compare-with-fpzero case.
23932
23933 2015-04-30 David Malcolm <dmalcolm@redhat.com>
23934
23935 * builtins.c (fold_builtin_1): Remove spurious second
23936 semicolon.
23937 * cgraph.h (symtab_node::get_availability): Likewise.
23938 * opts.c (common_handle_option): Remove spurious second semicolon.
23939 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
23940 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
23941
23942 2015-04-30 Caroline Tice <cmtice@google.com>
23943
23944 PR gcov-profile/65929
23945 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
23946 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
23947 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
23948 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
23949 * doc/tm.texi: Regenerate.
23950 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
23951 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
23952 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
23953 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
23954
23955 2015-04-30 Marek Polacek <polacek@redhat.com>
23956
23957 * varasm.c (handle_cache_entry): Fix logic.
23958
23959 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23960
23961 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
23962 (*extrsi5_insn_uxtw_alt): Likewise.
23963 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
23964 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
23965 operations.
23966
23967 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23968
23969 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
23970 fabd in ABS case.
23971
23972 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23973
23974 * config/aarch64/aarch64.md
23975 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
23976 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
23977 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
23978 appropriately. Handle alternative EON form.
23979
23980 2015-04-30 Renlin Li <renlin.li@arm.com>
23981
23982 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
23983 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
23984
23985 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
23986
23987 PR ipa/65873
23988 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
23989 -fstrict-aliasing boundaries.
23990
23991 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23992
23993 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
23994 and [SU]MNEGL patterns.
23995
23996 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23997
23998 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
23999 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
24000 combined arithmetic-shift ops. Properly handle all shift and extend
24001 operations that can occur in combination with PLUS/MINUS.
24002 Rename maybe_fma to compound_p.
24003 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
24004 arithmetic and shift operations.
24005
24006 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24007
24008 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
24009 rather than arith_shift cost when costing ADD/MINUS of an
24010 extended value.
24011
24012 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
24013
24014 PR lto/65948
24015 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
24016 to itself.
24017
24018 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
24019
24020 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
24021 are for the same position.
24022
24023 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
24024
24025 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
24026 vectorize_loops.
24027 (vectorize_loops): Use it.
24028
24029 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
24030
24031 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
24032 for aggregate types.
24033 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
24034 type to be non_ODR.
24035 * tree.c (need_assembler_name_p): Compute mangled name for
24036 non-fundamental types and integer types.
24037
24038 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
24039
24040 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
24041 manual swaps.
24042 * expr.c (expand_expr_real_2): Likewise.
24043
24044 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
24045
24046 * tree.c (build_common_builtin_nodes): Do not build
24047 __builtin_alloca_with_align as equivalent of library alloca.
24048
24049 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
24050
24051 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
24052 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
24053 bugus variants.
24054 * tree.c: Include print-tree.h and ipa-utils.h
24055 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
24056 (free_lang_data_in_cgraph): Call verify_type.
24057 (verify_type_variant): New function.
24058 (verify_type): New function.
24059 * tree.h (verify_type): Declare.
24060
24061 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
24062
24063 * config/mips/mips-cpus.def: (mips4): Change default processor
24064 from PROCESSOR_R8000 to PROCESSOR_R10000.
24065
24066 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
24067
24068 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
24069 la/jalr instead of jal.
24070
24071 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
24072
24073 PR target/65871
24074 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
24075 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
24076 (setcc+movzbl peephole2): Check also clobbered reg.
24077 (setcc+andl peephole2): Ditto.
24078
24079 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
24080
24081 PR libgomp/65099
24082 * config/nvptx/mkoffload.c (target_ilp32): New variable.
24083 (main): Set it depending on "-foffload-abi=[...]".
24084 (compile_native, main): Use it to pass "-m32" or "-m64" to the
24085 compiler.
24086
24087 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
24088
24089 PR target/65770
24090 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
24091 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
24092 Flip lane index back at assembly time for bigendian.
24093
24094 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
24095
24096 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
24097 * gimplify.c (gimplify_omp_workshare): Use it.
24098
24099 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
24100
24101 * Makefile.in (build/genrecog.o): Depend on inchash.h.
24102 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
24103 build/inchash.o
24104 * genrecog.c: Rewrite most of the code except for the third page.
24105
24106 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
24107
24108 * inchash.h, inchash.c: Include bconfig.h for build objects.
24109 * Makefile.in (build/inchash.o): New rule.
24110
24111 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
24112
24113 PR target/65924
24114 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
24115 number in type attribute expression.
24116
24117 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
24118
24119 * loop-iv.c (canon_condition): Generalize to all types of integer
24120 constant.
24121
24122 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
24123
24124 * gimple-walk.c: Prune duplicate or unneeded includes.
24125 (walk_gimple_asm): Only call parse_input_constraint or
24126 parse_output_constraint if their findings are used.
24127 Honour parse_input_constraint and parse_output_constraint
24128 result.
24129
24130 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
24131
24132 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
24133
24134 2015-04-29 Tom de Vries <tom@codesourcery.com>
24135
24136 PR tree-optimization/65893
24137 * passes.def (pass_all_optimizations): Move pass_stdarg to after
24138 pass_dce.
24139
24140 2015-04-29 Richard Biener <rguenther@suse.de>
24141
24142 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
24143 compute GROUP_SIZE for basic-block SLP.
24144 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
24145 take into account gaps.
24146 (vect_get_mask_element): Properly reject references to previous
24147 vectors.
24148 (vect_transform_slp_perm_load): Likewise.
24149
24150 2015-04-29 Christian Bruel <christian.bruel@st.com>
24151
24152 PR target/64835
24153 * config/i386/i386.c (ix86_default_align): New function.
24154 (ix86_override_options_after_change): Call ix86_default_align.
24155 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
24156 (ix86_override_options_after_change): New function.
24157
24158 2015-04-28 Jeff Law <law@redhat.com>
24159
24160 * tree-ssa-dom.c (record_equality); Fix comment typos.
24161
24162 2015-04-28 Tom de Vries <tom@codesourcery.com>
24163
24164 PR tree-optimization/65887
24165 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
24166
24167 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
24168
24169 * doc/extend.texi (Declaring Attributes of Functions): Split into
24170 subsections by target. Alphabetize the table of common attributes.
24171 Rewrite some of the introductory text to reflect the new structure.
24172 Update some cross-references to point to the new subsections.
24173 (Attribute Syntax): Put paragraph about "__" naming here. Remove
24174 duplicate copies in the discussion of function, label, and type
24175 attributes.
24176
24177 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
24178
24179 PR bootstrap/65910
24180 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
24181
24182 2015-04-28 Jason Merrill <jason@redhat.com>
24183
24184 PR c++/65734
24185 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
24186 (finalize_type_size): Respect TYPE_USER_ALIGN.
24187 (layout_type) [ARRAY_TYPE]: Likewise.
24188
24189 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
24190
24191 * config/arm/arm.md (*arm_movt): Fix type attribute.
24192 (*cmpsi_shiftsi): Likewise.
24193 (*cmpsi_shiftsi_swp): Likewise.
24194 (*movsicc_insn): Likewise.
24195 (*cond_move): Likewise.
24196 (*if_plus_move): Likewise.
24197 (*if_move_plus): Likewise.
24198 (*if_arith_move): Likewise.
24199 (*if_move_arith): Likewise.
24200 (*if_shift_move): Likewise.
24201 (*if_move_shift): Likewise.
24202 (*arm_movtas_ze): Likewise.
24203 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
24204 redundancy and type attribute.
24205 (*thumb2_movsi_insn): Fix type attribute.
24206 (*thumb2_addsi_short): Likewise.
24207 (thumb2_addsi3_compare0): Likewise.
24208 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
24209 attributes accordingly.
24210
24211 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
24212
24213 PR other/65911
24214 * function.c (pad_to_arg_alignment): Add parentheses.
24215
24216 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
24217
24218 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
24219 libgcc/config/frv/elf-lib.h.
24220
24221 2015-04-28 Tom de Vries <tom@codesourcery.com>
24222
24223 * tree-call-cdce.c: Fix example in header comment.
24224
24225 2015-04-28 Richard Biener <rguenther@suse.de>
24226
24227 PR tree-optimization/62283
24228 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
24229 fails fatally and we are vectorizing a basic-block simply
24230 cause the child to be constructed piecewise.
24231 (vect_analyze_slp_cost_1): Adjust.
24232 (vect_detect_hybrid_slp_stmts): Likewise.
24233 (vect_bb_slp_scalar_cost): Likewise.
24234 (vect_get_constant_vectors): For piecewise constructed
24235 constants place them after the last def.
24236 (vect_get_slp_defs): Adjust.
24237 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
24238 externals for basic-block vectorization.
24239
24240 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
24241
24242 PR target/63503
24243 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
24244 aarch64-*-*.
24245 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
24246 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
24247 (AARCH64_TUNE_FMA_STEERING): Likewise.
24248 * config/aarch64/aarch64-cores.def: Set
24249 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
24250 FMUL/FMADD instructions.
24251 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
24252 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
24253 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
24254 * config/aarch64/cortex-a57-fma-steering.h: New file.
24255 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
24256
24257 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
24258
24259 * gensupport.c (std_preds): Add missing codes to address_operand entry.
24260
24261 2015-04-28 Richard Biener <rguenther@suse.de>
24262
24263 PR tree-optimization/65851
24264 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
24265 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
24266 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
24267 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
24268 (ccp_visit_phi_node): Adjust.
24269 (evaluate_stmt): For simplifications to SSA names return its
24270 lattice value if that isn't VARYING. Return immediately when
24271 simplified to a constant.
24272 (visit_assignment): Adjust.
24273 (ccp_visit_stmt): Likewise.
24274
24275 2015-04-28 Tom de Vries <tom@codesourcery.com>
24276
24277 PR tree-optimization/65818
24278 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
24279 evaluated.
24280
24281 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24282
24283 * calls.c (save_fixed_argument_area): Don't check
24284 ARGS_GROW_DOWNWARD with the preprocessor.
24285 (restore_fixed_argument_area): Likewise.
24286 (mem_overlaps_already_clobbered_arg_p): Likewise.
24287 (check_sibcall_argument_overlap): Likewise.
24288 (expand_call): Likewise.
24289 (emit_library_call_value_1): Likewise.
24290 (store_one_arg): Likewise.
24291 * function.c (assign_parms): Likewise.
24292 (locate_and_pad_parm): Likewise.
24293 (pad_to_arg_alignment): Likewise.
24294 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
24295
24296 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24297
24298 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
24299 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
24300 * calls.c (save_fixed_argument_area): Don't chekc if
24301 ARGS_GROW_DOWNWARD is defined.
24302 (restore_fixed_argument_area): Likewise.
24303 (mem_overlaps_already_clobbered_arg_p): Likewise.
24304 (check_sibcall_argument_overlap): Likewise.
24305 (expand_call): Likewise.
24306 (emit_library_call_value_1): Likewise.
24307 (store_one_arg): Likewise.
24308 * function.c (assign_parms): Likewise.
24309 (locate_and_pad_parm): Likewise.
24310 (pad_to_arg_alignment): Likewise.
24311 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
24312
24313 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24314
24315 * defaults.h (gen_epilogue): New function.
24316 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
24317 defined.
24318 * cfgrtl.c (cfg_layout_finalize): Likewise.
24319 * df-scan.c: Likewise.
24320 * function.c (thread_prologue_and_epilogue_insns): Likewise.
24321 (reposition_prologue_and_epilogue_notes): Likewise.
24322 * reorg.c (find_end_label): Likewise.
24323 * toplev.c: Likewise.
24324
24325 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24326
24327 * bb-reorder.c (HAVE_return): Don't check if its undefined.
24328 * defaults.h (gen_simple_return): New function.
24329 (gen_simple_return): Likewise.
24330 (HAVE_return): Add default definition to false.
24331 (HAVE_simple_return): Likewise.
24332 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
24333 HAVE_return and HAVE_simple_return are defined.
24334 * function.c (gen_return_pattern): Likewise.
24335 (convert_jumps_to_returns): Likewise.
24336 (thread_prologue_and_epilogue_insns): Likewise.
24337 * reorg.c (find_end_label): Likewise.
24338 (dbr_schedule): Likewise.
24339 * shrink-wrap.c: Likewise.
24340 * shrink-wrap.h: Likewise.
24341
24342 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24343
24344 * defaults.h (EPILOGUE_USES): Add default definition of false.
24345 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
24346 * resource.c (init_resource_info): Likewise.
24347
24348 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24349
24350 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
24351 to false.
24352 * dwarf2out.c (field_byte_offset): REmove check if
24353 PCC_BITFIELD_TYPE_MATTERS is defined.
24354 * stor-layout.c (layout_decl): Likewise.
24355 (update_alignment_for_field): Likewise.
24356 (place_field): Likewise.
24357
24358 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24359
24360 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
24361 true.
24362 * regrename.c (check_new_reg_p): Remove check if
24363 HARD_REGNO_RENAME_OK is defined.
24364 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
24365
24366 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24367
24368 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
24369 * cse.c (fold_rtx): Likewise.
24370 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
24371 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
24372 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
24373 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
24374 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
24375 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
24376 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
24377 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
24378 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
24379 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
24380 * Likewise.
24381 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
24382 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
24383 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
24384 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
24385 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
24386 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
24387 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
24388 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
24389 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
24390 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
24391 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
24392 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
24393 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
24394 * doc/tm.texi: Regenerate.
24395 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
24396 either true or false.
24397
24398 2015-04-27 Jeff Law <law@redhat.com>
24399
24400 PR tree-optimization/65217
24401 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
24402 of them has a single use, make sure it is the LHS of the implied
24403 copy.
24404
24405 2015-04-28 Alan Modra <amodra@gmail.com>
24406
24407 PR target/65810
24408 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
24409 (offsettable_ok_by_alignment): Use minimum of decl and toc
24410 pointer alignment. Replace dead code with assertion.
24411 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
24412 case if size exceeds toc pointer alignment.
24413 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
24414 (rs6000_emit_move): Likewise.
24415 * configure.ac: Add linker toc pointer alignment check.
24416 * configure: Regenerate.
24417 * config.in: Regenerate.
24418
24419 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
24420
24421 * config.gcc: Add h8300-*-linux.
24422 * config/h8300/linux.h: New.
24423 * config/h8300/t-linux: New.
24424 * config/h8300/h8300.c (h8300_option_override): Normal mode
24425 is not supported for h8300-*-linux.
24426 (h8300_file_start): Target priority change.
24427 (get_shift_alg): Likewise.
24428 (h8300_shift_need_scratch_p): Likewise.
24429 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
24430 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
24431
24432 2015-04-27 Caroline Tice <cmtice@google.com>
24433
24434 * final.c (final_scan_insn): Output cold_function_name as function
24435 type.
24436 * varasm.c (cold_function_name): Make global.
24437 (assemble_start_function): Re-set cold_function_name.
24438 (assemble_end_function): Output cold partition size.
24439 * varasm.h (cold_function_name): Declare global.
24440
24441 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
24442
24443 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
24444 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
24445 constraint.
24446 (*movxi_internal_avx512f): Ditto.
24447 (define_split): Check for xmm16+, when splitting scalar float_extend.
24448 (*extendsfdf2_mixed): Use "v" constraint.
24449 (define_split): Check for xmm16+, when splitting scalar float_truncate.
24450 (*truncdfsf_fast_sse): Use "v" constraint.
24451 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
24452 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
24453 (define_peephole2): Check for xmm16+, when converting scalar
24454 float_truncate.
24455 (define_peephole2): Check for xmm16+, when converting scalar
24456 float_extend.
24457 (*fop_<mode>_comm_mixed): Use "v" constraint.
24458 (*fop_<mode>_comm_sse): Ditto.
24459 (*fop_<mode>_1_mixed): Ditto.
24460 (*sqrt<mode>2_sse): Ditto.
24461 (*ieee_s<ieee_maxmin><mode>3): Ditto.
24462
24463 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24464
24465 * combine.c (simplify_if_then_else): Use std::swap instead
24466 of manually swapping.
24467 (known_cond): Likewise.
24468 (simplify_comparison): Likewise.
24469
24470 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
24471
24472 PR target/64579
24473 * config/rs6000/htm.md: Remove all define_expands.
24474 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
24475 UNSPECV_HTM_TABORTWCI): Remove.
24476 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
24477 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
24478 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
24479 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
24480 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
24481 tabortwci_internal): Remove define_insns.
24482 (tabort<wd>c, tabort<wd>ci): New define_insns.
24483 (tabort): Use gpc_reg_operand.
24484 (tcheck): Remove operand.
24485 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
24486 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
24487 expected value.
24488 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
24489 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
24490 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
24491 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
24492 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
24493 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
24494 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
24495 (tcheck): Remove builtin argument.
24496 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
24497 not TARGET_64BIT.
24498 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
24499 tabortdc and tabortdci builtins when not in 64-bit mode.
24500 Modify code to handle the loss of the HTM define_expands.
24501 Emit code to copy the CR register to TARGET.
24502 (htm_init_builtins): Modify code to handle the loss of the HTM
24503 define_expands.
24504 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
24505 (RS6000_BTC_64BIT): Likewise.
24506 (RS6000_BTC_CR): New macro.
24507 * doc/extend.texi: Update documentation for htm builtins.
24508
24509 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24510
24511 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
24512 of manually swapping.
24513 (simplify_associative_operation): Likewise.
24514 (simplify_binary_operation): Likewise.
24515 (simplify_plus_minus): Likewise.
24516 (simplify_relational_operation): Likewise.
24517 (simplify_ternary_operation): Likewise.
24518
24519 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
24520
24521 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
24522 (xs_hi_nonmemory_operand): Remove error.
24523 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
24524 general_operand rather than xs_hi_general_operand.
24525
24526 2015-04-27 Richard Biener <rguenther@suse.de>
24527
24528 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
24529 (record_equivalences_from_stmt): Valueize rhs.
24530 (record_equality): Canonicalize x and y order via
24531 tree_swap_operands_p. Do not swap operands for same loop depth.
24532
24533 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
24534
24535 PR target/65296
24536 PR target/65895
24537 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
24538 Add hint how to use own spec file.
24539
24540 2015-04-27 Jakub Jelinek <jakub@redhat.com>
24541
24542 PR tree-optimization/65875
24543 * tree-vrp.c (update_value_range): If in is_new case setting
24544 old_vr to VR_VARYING, also set new_vr to it. Remove
24545 old_vr->type == VR_VARYING test.
24546 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
24547 SSA_PROP_INTERESTING if update_value_range returned true,
24548 but new range is VR_VARYING.
24549
24550 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
24551
24552 * combine.c (sign_extend_short_imm): New.
24553 (set_nonzero_bits_and_sign_copies): Use above new function for sign
24554 extension of src short immediate.
24555 (reg_nonzero_bits_for_combine): Likewise for tem.
24556
24557 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
24558
24559 * stor-layout.c (self_referential_component_ref_p): New predicate.
24560 (copy_self_referential_tree_r): Use it.
24561 (self_referential_size): Punt for simple operations directly involving
24562 self-referential component references.
24563 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
24564
24565 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
24566
24567 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
24568
24569 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
24570
24571 * vec.h (vec): Make splice arguments const. Update definitions
24572 accordingly.
24573
24574 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
24575
24576 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
24577 alternatives.
24578
24579 2015-04-26 Tom de Vries <tom@codesourcery.com>
24580
24581 PR tree-optimization/65826
24582 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
24583
24584 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
24585
24586 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
24587 (*madd3<mode>): Ditto.
24588 (*msub4<mode>): Ditto.
24589 (*msub3<mode>): Ditto.
24590 (*nmadd4<mode>): Ditto.
24591 (*nmadd3<mode>): Ditto.
24592 (*nmadd4<mode>_fastmath): Ditto.
24593 (*nmadd3<mode>_fastmath): Ditto.
24594 (*nmsub4<mode>): Ditto.
24595 (*nmsub3<mode>): Ditto.
24596 (*nmsub4<mode>_fastmath): Ditto.
24597 (*nmsub3<mode>_fastmath): Ditto.
24598
24599 2015-04-24 Jason Merrill <jason@redhat.com>
24600
24601 PR c++/50800
24602 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
24603 down when building TYPE_CANONICAL.
24604 (build_pointer_type_for_mode): Likewise.
24605
24606 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
24607
24608 * genrecog.c (validate_pattern): Check matching constraint refers
24609 to a lower numbered operand.
24610
24611 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
24612
24613 PR target/65849
24614 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
24615 save to independent variables use the Save attribute. This will
24616 allow these options to be modified with the #pragma/attribute
24617 target support.
24618 (-mallow-movmisalign): Likewise.
24619 (-mallow-df-permute): Likewise.
24620 (-msched-groups): Likewise.
24621 (-malways-hint): Likewise.
24622 (-malign-branch-targets): Likewise.
24623 (-mvectorize-builtins): Likewise.
24624 (-msave-toc-indirect): Likewise.
24625
24626 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
24627 can be set via the #pragma/attribute target support.
24628 (rs6000_opt_vars): Likewise.
24629 (rs6000_inner_target_options): If VSX was set, also set
24630 -mno-avoid-indexed-addresses.
24631
24632 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24633
24634 * config/arm/iterators.md (shiftable_ops): Rename to...
24635 (SHIFTABLE_OPS): ... This. Update use in comments.
24636 (ior_xor): Rename to...
24637 (IOR_XOR): ... This.
24638 (vqh_ops): Rename to...
24639 (VQH_OPS): ... This.
24640 (vqhs_ops): Rename to...
24641 (VQHS_OPS): ... This.
24642 (rshifts): Rename to...
24643 (RSHIFTS): ... This.
24644 (returns): Rename to...
24645 (RETURNS): ... This.
24646 * config/arm/arm.md: Update uses of the above.
24647 * config/arm/neon.md: Likewise.
24648
24649 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24650
24651 * config.host (case ${host}): Add aarch64*-*-linux case.
24652 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
24653 fields to all the cores.
24654 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
24655 Add MCPU_MTUNE_NATIVE_SPECS.
24656 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
24657 field to all extensions.
24658 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
24659 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
24660 Adjust definition of AARCH64_OPT_EXTENSION.
24661 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
24662 (MCPU_MTUNE_NATIVE_SPECS): Define.
24663 * config/aarch64/driver-aarch64.c: New file.
24664 * config/aarch64/x-arch64: New file.
24665 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
24666 -mtune and -march.
24667
24668 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
24669 Wei Mi <wmi@google.com>
24670
24671 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
24672 * config/i386/i386.c (extract_base_offset_in_addr): New function.
24673 (ix86_operands_ok_for_move_multiple): Ditto.
24674 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
24675 (movlpd/movhpd to movupd peephole2): Ditto.
24676
24677 2015-04-24 Marek Polacek <polacek@redhat.com>
24678
24679 PR c/61534
24680 * input.h (from_macro_expansion_at): Define.
24681
24682 PR c/63357
24683 * doc/invoke.texi: Update description of -Wlogical-op.
24684
24685 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
24686
24687 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
24688 ternary operator in fprintf and harmonize spacing.
24689
24690 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
24691
24692 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
24693 Mark operand1 commutative.
24694
24695 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
24696
24697 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
24698 input operands in memory.
24699 (*vec_concatv2si_sse4_1): Ditto.
24700 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
24701 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
24702 register_operand.
24703 (vec_extract_hi_v32hi): Ditto.
24704 (vec_extract_hi_v64hi): Ditto.
24705 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
24706
24707 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
24708 Steven Bosscher <steven@gcc.gnu.org>
24709
24710 PR rtl-optimization/34503
24711 * cprop.c (cprop_reg_p): New.
24712 (hash_scan_set): Use above function to check if register can be
24713 propagated.
24714 (find_avail_set): Return up to two sets, one whose source is a
24715 register and one whose source is a constant. Sets are returned in an
24716 array passed as parameter rather than as a return value.
24717 (cprop_insn): Use a do while loop rather than a goto. Try each of the
24718 sets returned by find_avail_set, starting with the one whose source is
24719 a constant. Use cprop_reg_p to check if register can be propagated.
24720 (do_local_cprop): Use cprop_reg_p to check if register can be
24721 propagated.
24722 (implicit_set_cond_p): Likewise.
24723
24724 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
24725
24726 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
24727 (sem_function::equals): IGNORED_NODES parameter is now unused;
24728 update call of equals_private.
24729 (sem_function::equals_private): Do not call equals_wpa; skip
24730 gimple body matching if there is no body.
24731 (sem_function::init): Add logic to hash tthunk info.
24732 (sem_function::parse): Also parse thunks.
24733 * ipa-icf.h (equals_private): Update declaration.
24734
24735 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24736
24737 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
24738 asterisk from name so this can be generated directly.
24739 (*altivec_stvx_<mode>_internal): Likewise.
24740 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
24741 that this is never called during or after reload/lra.
24742 (rs6000_frame_related): Remove split_reg
24743 argument and logic that references it.
24744 (emit_frame_save): Remove last parameter from call to
24745 rs6000_frame_related.
24746 (rs6000_emit_prologue): Remove last parameter from eight calls to
24747 rs6000_frame_related. Force generation of stvx instruction for
24748 Altivec register saves. Remove split_reg handling, which is no
24749 longer needed.
24750 (rs6000_emit_epilogue): Force generation of lvx instruction for
24751 Altivec register restores.
24752
24753 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24754
24755 * config/rs6000/rs6000.opt (mcrypto): Change option description to
24756 match category changes in ISA 2.07B.
24757
24758 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24759
24760 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
24761 iterators.
24762 (cmp_op, cmp_type): New code attributes.
24763 (NEON_VCMP, NEON_VACMP): New int iterators.
24764 (cmp_op_unsp): New int attribute.
24765 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
24766 (neon_vceq<mode>): Delete.
24767 (neon_vc<cmp_op><mode>_insn): New pattern.
24768 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
24769 (neon_vcgeu<mode>): Delete.
24770 (neon_vcle<mode>): Likewise.
24771 (neon_vclt<mode>: Likewise.
24772 (neon_vcage<mode>): Likewise.
24773 (neon_vcagt<mode>): Likewise.
24774 (neon_vca<cmp_op><mode>): New define_expand.
24775 (neon_vca<cmp_op><mode>_insn): New pattern.
24776 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
24777
24778 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
24779
24780 * tree.h (attribute_value_equal): Declare.
24781 * tree.c (attribute_value_equal): Export.
24782
24783 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
24784
24785 * ipa-icf.c (sem_item::compare_attributes): New function.
24786 (sem_item::compare_referenced_symbol_properties): Compare variable
24787 attributes.
24788 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
24789 (sem_function::param_used_p): New function.
24790 (sem_function::equals_wpa): Fix attribute comparsion; match
24791 parameter type codes; do not compare paremter flags when
24792 they are not used; compare edge flags; compare indirect calls.
24793 (sem_item::update_hash_by_addr_refs): Hash reference type.
24794 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
24795 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
24796 reference use type.
24797 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
24798 * ipa-icf.h (compare_attributes, param_used_p): Declare.
24799
24800 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
24801
24802 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
24803 cleanup.
24804 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
24805 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
24806 (sem_item::compare_referenced_symbol_properties): New.
24807 (sem_item::hash_referenced_symbol_properties): New.
24808 (sem_item::compare_cgraph_references): Rename to ...
24809 (sem_item::compare_symbol_references): ... this one; use
24810 compare_referenced_symbol_properties.
24811 (sem_function::equals_wpa): Do not compare
24812 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
24813 DECL_IS_OPERATOR_NEW; compare pointer sizes.
24814 (sem_item::update_hash_by_addr_refs): Call
24815 hash_referenced_symbol_properties.
24816 (sem_item::update_hash_by_local_refs): Cleanup.
24817 (sem_function::merge): Do not mix up symbol properties.
24818 (sem_variable::equals_wpa): Use compare_symbol_references.
24819 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
24820 (sem_item::hash_referenced_symbol_properties): New.
24821 (sem_item::compare_symbol_references): New.
24822 (sem_item::compare_cgraph_references): Remove.
24823
24824 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
24825
24826 PR target/26702
24827 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
24828 Emit size of local.
24829
24830 2015-04-23 Nick Clifton <nickc@redhat.com>
24831
24832 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
24833 ATTRIBUTE_UNUSED to x parameter.
24834 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
24835
24836 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24837
24838 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
24839 TARGET_CRYPTO to TARGET_P8_VECTOR>
24840 (crypto_vpermxor_<mode>): Likewise.
24841 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
24842 (BU_CRYPTO_3A): Likewise.
24843 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
24844 (BU_CRYPTO_OVERLOAD_3A): New #define.
24845 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
24846 (VPMSUMH): Likewise.
24847 (VPMSUMW): Likewise.
24848 (VPMSUMD): Likewise.
24849 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
24850 (VPERMXOR_V4SI): Likewise.
24851 (VPERMXOR_V8HI): Likewise.
24852 (VPERMXOR_V16QI): Likewise.
24853 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
24854 BU_CRYPTO_OVERLOAD_2A.
24855 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
24856 BU_CRYPTO_OVERLOAD_3A.
24857 * config/rs6000/rs6000.opt (mcrypto): Change description of
24858 option.
24859
24860 2015-04-23 Richard Biener <rguenther@suse.de>
24861
24862 * passes.def: Remove copy propagation passes run directly after CCP.
24863 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
24864 SSA names.
24865 (ccp_visit_phi_node): Rework to handle first executable edge
24866 specially.
24867
24868 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
24869
24870 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
24871 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
24872 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
24873 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
24874 (thumb_legimitimize_reload_address): Remove.
24875 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
24876 Remove.
24877 (thumb_legimitimize_reload_address): Remove.
24878
24879 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24880
24881 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
24882
24883 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24884
24885 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
24886 MAX_LDM_STM_OPS.
24887 (store_multiple): Likewise.
24888
24889 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24890
24891 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
24892 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
24893 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
24894 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
24895 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
24896 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
24897 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
24898 Specify issue_rate value.
24899 (arm_issue_rate): Look up issue rate from tuning structs. Remove
24900 large switch statement.
24901 (arm_marvell_pj4_tune): New struct.
24902 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
24903 struct.
24904
24905 2015-04-23 Richard Biener <rguenther@suse.de>
24906
24907 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
24908 (vect_find_last_store_in_slp_instance): Rename to ...
24909 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
24910 (vect_analyze_slp_cost_1): Use vector_load for constant defs
24911 and vec_construct for external defs when estimating prologue cost.
24912 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
24913 Compute costs here only when vectorizing loops.
24914 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
24915 have been determined.
24916 (vect_schedule_slp_instance): Simplify vectorized code placement
24917 and prepare for in-BB external defs.
24918 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
24919 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
24920 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
24921 guard.
24922 (vect_model_load_cost): Likewise.
24923 (vectorizable_store): Instead add it here.
24924 (vectorizable_load): Likewise.
24925 (vect_is_simple_use): Dump def type textually.
24926
24927 2015-04-23 Richard Biener <rguenther@suse.de>
24928
24929 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
24930 * cfgloop.c (verify_loop_structure): Verify the root loop node.
24931 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
24932 instead of get_eh_region_from_lp_number.
24933 * loop-init.c (fix_loop_structure): If we removed a loop, reset
24934 the SCEV cache.
24935
24936 2015-04-23 Anton Blanchard <anton@samba.org>
24937
24938 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
24939 need for -mprofile-kernel to save LR to stack.
24940
24941 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24942
24943 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
24944 adjustments.
24945 (insn_is_swappable_p): Return 1 for a convert from double to
24946 single precision when all of its uses are splats of BE element
24947 zero.
24948
24949 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
24950
24951 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
24952
24953 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24954
24955 PR target/65456
24956 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
24957 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
24958 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
24959 option.
24960 (rs6000_builtin_mask_for_load): Return 0 for targets with
24961 efficient unaligned VSX accesses so that the vectorizer will use
24962 direct unaligned loads.
24963 (rs6000_builtin_support_vector_misalignment): Always return true
24964 for targets with efficient unaligned VSX accesses.
24965 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
24966 stores on targets with efficient unaligned VSX accesses is almost
24967 always the same as the cost of an aligned load or store, so model
24968 it that way.
24969 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
24970 unaligned vectors if we have efficient unaligned VSX accesses.
24971 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
24972 undocumented option.
24973
24974 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24975
24976 Revert:
24977 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
24978
24979 * config.gcc (LIBC_MUSL): New tm_defines macro.
24980 * config/linux.h (OPTION_MUSL): Define.
24981 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
24982 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
24983 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
24984
24985 * config/linux.opt (mmusl): New option.
24986 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
24987 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
24988
24989 * configure: Regenerate.
24990
24991 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
24992
24993 * config.gcc (LIBC_MUSL): New tm_defines macro.
24994 * config/linux.h (OPTION_MUSL): Define.
24995 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
24996 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
24997 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
24998
24999 * config/linux.opt (mmusl): New option.
25000 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
25001 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
25002
25003 * configure: Regenerate.
25004
25005 2015-04-22 Yury Gribov <y.gribov@samsung.com>
25006
25007 * doc/invoke.texi (-fsanitize-sections): Update description.
25008 * asan.c (set_sanitized_sections): Parse incoming arg.
25009 (section_sanitized_p): Support wildcards.
25010
25011 2015-04-22 Tom de Vries <tom@codesourcery.com>
25012
25013 PR tree-optimization/65823
25014 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
25015 equality between ap_copy and ap.
25016
25017 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25018
25019 PR target/47098
25020 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
25021
25022 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25023
25024 PR target/47122
25025 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
25026
25027 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25028
25029 PR target/55144
25030 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
25031 remove already contained t-files.
25032
25033 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25034
25035 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
25036 Remove unneeded forward declarations.
25037 (suitable_for_tail_call_opt_p): Commentary typo fix.
25038
25039 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25040
25041 * varasm.c (emit_bss): Remove redundant guard.
25042
25043 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25044
25045 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
25046
25047 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25048
25049 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
25050
25051 2015-04-22 Hale Wang <hale.wang@arm.com>
25052 Terry Guo <terry.guo@arm.com>
25053
25054 PR rtl-optimization/64818
25055 * combine.c (can_combine_p): Don't combine user-specified
25056 register if it is in an asm input.
25057
25058 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
25059
25060 PR ipa/65076
25061 * passes.def (early_optimizations): Add pass_dse.
25062
25063 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25064
25065 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
25066 * reorg.c (redundant_insn): Remove ifdef
25067 INSN_REFERENCES_ARE_DELAYED.
25068 * resource.c (mark_referenced_resources): Likewise.
25069
25070 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25071
25072 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
25073 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
25074 * resource.c (mark_set_resources): Likewise.
25075
25076 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25077
25078 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
25079 * cfgcleanup.c (flow_find_cross_jump): Likewise.
25080 (flow_find_head_matching_sequence): Likewise.
25081 (try_head_merge_bb): Likewise.
25082 * combine.c (can_combine_p): Likewise.
25083 (try_combine): Likewise.
25084 (distribute_notes): Likewise.
25085 * df-problems.c (can_move_insns_across): Likewise.
25086 * final.c (final): Likewise.
25087 * gcse.c (insert_insn_end_basic_block): Likewise.
25088 * ira.c (find_moveable_pseudos): Likewise.
25089 * reorg.c (try_merge_delay_insns): Likewise.
25090 (fill_simple_delay_slots): Likewise.
25091 (fill_slots_from_thread): Likewise.
25092 * sched-deps.c (sched_analyze_2): Likewise.
25093
25094 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25095
25096 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
25097 PIC_OFFSET_TABLE_REGNUM.
25098
25099 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25100
25101 * alias.c (init_alias_target): Remove ifdef
25102 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
25103 * df-scan.c (df_insn_refs_collect): Likewise.
25104 (df_get_regular_block_artificial_uses): Likewise.
25105 (df_get_eh_block_artificial_uses): Likewise.
25106 (df_get_entry_block_def_set): Likewise.
25107 (df_get_exit_block_use_set): Likewise.
25108 * emit-rtl.c (gen_rtx_REG): Likewise.
25109 * ira.c (ira_setup_eliminable_regset): Likewise.
25110 * reginfo.c (init_reg_sets_1): Likewise.
25111 * regrename.c (rename_chains): Likewise.
25112 * reload1.c (reload): Likewise.
25113 (eliminate_regs_in_insn): Likewise.
25114 * resource.c (mark_referenced_resources): Likewise.
25115 (init_resource_info): Likewise.
25116
25117 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25118
25119 * defaults.h (MASK_RETURN_ADDR): New definition.
25120 * except.c (expand_builtin_extract_return_addr): Remove ifdef
25121 MASK_RETURN_ADDR.
25122
25123 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25124
25125 * defaults.h (RETURN_ADDR_OFFSET): New definition.
25126 * except.c (expand_builtin_extract_return_addr): Remove ifdef
25127 RETURN_ADDR_OFFSET.
25128 (expand_builtin_frob_return_addr): Likewise.
25129
25130 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25131
25132 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
25133 (try_redirect_by_replacing_jump): Likewise.
25134 (rtl_tidy_fallthru_edge): Likewise.
25135 * combine.c (insn_a_feeds_b): Likewise.
25136 (find_split_point): Likewise.
25137 (simplify_set): Likewise.
25138 * cprop.c (cprop_jump): Likewise.
25139 * cse.c (cse_extended_basic_block): Likewise.
25140 * df-problems.c (can_move_insns_across): Likewise.
25141 * function.c (emit_use_return_register_into_block): Likewise.
25142 * haifa-sched.c (sched_init): Likewise.
25143 * ira.c (find_moveable_pseudos): Likewise.
25144 * loop-invariant.c (find_invariant_insn): Likewise.
25145 * lra-constraints.c (curr_insn_transform): Likewise.
25146 * postreload.c (reload_combine_recognize_const_pattern):
25147 * Likewise.
25148 * reload.c (find_reloads): Likewise.
25149 * reorg.c (delete_scheduled_jump): Likewise.
25150 (steal_delay_list_from_target): Likewise.
25151 (steal_delay_list_from_fallthrough): Likewise.
25152 (redundant_insn): Likewise.
25153 (fill_simple_delay_slots): Likewise.
25154 (fill_slots_from_thread): Likewise.
25155 (delete_computation): Likewise.
25156 * sched-rgn.c (add_branch_dependences): Likewise.
25157
25158 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25159
25160 * genconfig.c (main): Always define HAVE_cc0.
25161 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
25162 HAVE_cc0.
25163 * cfgcleanup.c (flow_find_cross_jump): Likewise.
25164 (flow_find_head_matching_sequence): Likewise.
25165 (try_head_merge_bb): Likewise.
25166 * cfgrtl.c (rtl_merge_blocks): Likewise.
25167 (try_redirect_by_replacing_jump): Likewise.
25168 (rtl_tidy_fallthru_edge): Likewise.
25169 * combine.c (do_SUBST_MODE): Likewise.
25170 (insn_a_feeds_b): Likewise.
25171 (combine_instructions): Likewise.
25172 (can_combine_p): Likewise.
25173 (try_combine): Likewise.
25174 (find_split_point): Likewise.
25175 (subst): Likewise.
25176 (simplify_set): Likewise.
25177 (distribute_notes): Likewise.
25178 * cprop.c (cprop_jump): Likewise.
25179 * cse.c (cse_extended_basic_block): Likewise.
25180 * df-problems.c (can_move_insns_across): Likewise.
25181 * final.c (final): Likewise.
25182 (final_scan_insn): Likewise.
25183 * function.c (emit_use_return_register_into_block): Likewise.
25184 * gcse.c (insert_insn_end_basic_block): Likewise.
25185 * haifa-sched.c (sched_init): Likewise.
25186 * ira.c (find_moveable_pseudos): Likewise.
25187 * loop-invariant.c (find_invariant_insn): Likewise.
25188 * lra-constraints.c (curr_insn_transform): Likewise.
25189 * optabs.c (prepare_cmp_insn): Likewise.
25190 * postreload.c (reload_combine_recognize_const_pattern):
25191 * Likewise.
25192 * reload.c (find_reloads): Likewise.
25193 (find_reloads_address_1): Likewise.
25194 * reorg.c (delete_scheduled_jump): Likewise.
25195 (steal_delay_list_from_target): Likewise.
25196 (steal_delay_list_from_fallthrough): Likewise.
25197 (try_merge_delay_insns): Likewise.
25198 (redundant_insn): Likewise.
25199 (fill_simple_delay_slots): Likewise.
25200 (fill_slots_from_thread): Likewise.
25201 (delete_computation): Likewise.
25202 (relax_delay_slots): Likewise.
25203 * sched-deps.c (sched_analyze_2): Likewise.
25204 * sched-rgn.c (add_branch_dependences): Likewise.
25205
25206 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25207
25208 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
25209 that is trivially ded on non cc0 targets.
25210 (simplify_set): Likewise.
25211 (mark_used_regs_combine): Likewise.
25212 * cse.c (new_basic_block): Likewise.
25213 (fold_rtx): Likewise.
25214 (cse_insn): Likewise.
25215 (cse_extended_basic_block): Likewise.
25216 (set_live_p): Likewise.
25217 * rtlanal.c (canonicalize_condition): Likewise.
25218 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
25219
25220 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25221
25222 * conditions.h: Define macros even if HAVE_cc0 is undefined.
25223 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
25224 * final.c: Likewise.
25225 * jump.c: Likewise.
25226 * recog.c: Likewise.
25227 * recog.h: Declare functions even when HAVE_cc0 is undefined.
25228 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
25229
25230 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25231
25232 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
25233 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
25234 * builtins.c (expand_builtin): Remove check if
25235 EH_RETURN_DATA_REGNO is defined.
25236 * df-scan.c (df_bb_refs_collect): Likewise.
25237 (df_get_exit_block_use_set): Likewise.
25238 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
25239 * ira-lives.c (process_bb_node_lives): Likewise.
25240 * lra-lives.c (process_bb_lives): Likewise.
25241
25242 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
25243
25244 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
25245 FIRST_PSEUDO_REG): New.
25246 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
25247 (ARG_POINTER_REGNUM): Define to ARGP_REG.
25248 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
25249 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
25250 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
25251 (FIRST_INT_REG): New.
25252 (LAST_INT_REG): New.
25253 (FIRST_*_REG): Define using *_REG.
25254 (LAST_*_REG): Ditto.
25255 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
25256 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
25257 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
25258
25259 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25260
25261 * expmed.c: (synth_mult): Only assume overlapping
25262 shift with previous steps in alg_sub_t_m2 case.
25263
25264 2015-04-21 Richard Biener <rguenther@suse.de>
25265
25266 PR tree-optimization/65650
25267 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
25268 transitions involving copies.
25269 (set_lattice_value): Adjust for copy lattice state.
25270 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
25271 if that doesn't dominate the merge point.
25272 (bit_value_unop): Adjust what we treat as varying mask.
25273 (bit_value_binop): Likewise.
25274 (bit_value_assume_aligned): Likewise.
25275 (evaluate_stmt): When we simplified to a SSA name record a copy
25276 instead of dropping to varying.
25277 (visit_assignment): Simplify.
25278
25279 * gimple-match.h (gimple_simplify): Add another callback.
25280 * gimple-fold.c (fold_stmt_1): Adjust caller.
25281 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
25282 for the 2nd callback.
25283 * gimple-match-head.c (gimple_simplify): Add a callback that is
25284 used to valueize the stmt operands and use it that way.
25285
25286 2015-04-21 Richard Biener <rguenther@suse.de>
25287
25288 PR tree-optimization/65788
25289 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
25290
25291 2015-04-21 Richard Biener <rguenther@suse.de>
25292
25293 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
25294 vec_construct cost by vec_stmt_cost.
25295
25296 2015-04-21 Richard Biener <rguenther@suse.de>
25297
25298 * cfghooks.h (create_basic_block): Replace with two overloads
25299 for RTL and GIMPLE.
25300 (split_block): Likewise.
25301 * cfghooks.c (split_block): Rename to ...
25302 (split_block_1): ... this.
25303 (split_block): Add two type-safe overloads for RTL and GIMPLE.
25304 (split_block_after_labels): Call split_block_1.
25305 (create_basic_block): Rename to ...
25306 (create_basic_block_1): ... this.
25307 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
25308 (create_empty_bb): Call create_basic_block_1.
25309 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
25310 split_block_after_labels.
25311 * omp-low.c (expand_parallel_call): Likewise.
25312 (expand_omp_target): Likewise.
25313 (simd_clone_adjust): Likewise.
25314 * tree-chkp.c (chkp_get_entry_block): Likewise.
25315 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
25316 create_basic_block overload.
25317 (cgraph_node::expand_thunk): Likewise.
25318 * tree-cfg.c (make_blocks): Likewise.
25319 (handle_abnormal_edges): Likewise.
25320 * tree-inline.c (copy_bb): Likewise.
25321
25322 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25323
25324 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
25325 New pattern.
25326 (*xor_one_cmplsidi3_ze): Likewise.
25327
25328 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
25329
25330 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
25331 use df_remove_problem rather than manually removing problems, leaving
25332 holes in df->problems_in_order[].
25333
25334 2015-04-21 Tom de Vries <tom@codesourcery.com>
25335
25336 PR tree-optimization/65802
25337 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
25338
25339 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25340
25341 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
25342 Increase to 128.
25343 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
25344 at '.'. Assert that there's enough space for everything.
25345
25346 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
25347
25348 PR tree-optimization/64950
25349 Revert:
25350 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
25351
25352 PR target/41089
25353 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
25354 as volatile.
25355
25356 2015-04-20 Shiva Chen <shiva0217@gmail.com>
25357
25358 PR rtl-optimization/64916
25359 * cfgcleanup.c (values_equal_p): New function.
25360 (can_replace_by): Use it.
25361
25362 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
25363
25364 PR c++/65801
25365 * doc/invoke.texi ([-Wnarrowing]): Update.
25366
25367 2015-04-20 Jeff Law <law@redhat.com>
25368
25369 PR tree-optimization/65658
25370 * tree-ssa-threadupdate.c (redirection_block_p): Remove
25371 redundant test for GIMPLE_ASSIGN in last change.
25372
25373 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
25374
25375 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
25376 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
25377 (legitimize_tls_address): Ditto.
25378 (ix86_expand_move): Ditto.
25379 (ix86_expand_binary_operator): Remove reload_in_progress checks.
25380 (ix86_expand_unary_operator): Ditto.
25381 * config/i386/predicates.md (index_register_operand): Ditto.
25382
25383 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
25384
25385 * reorg.c (try_merge_delay_insns): Improve correctness checking
25386 for targets with multiple delay slots.
25387
25388 2015-04-20 Jeff Law <law@redhat.com>
25389
25390 PR tree-optimization/65658
25391 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
25392 statements too.
25393
25394 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
25395
25396 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
25397 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
25398 Delete.
25399
25400 2015-04-20 Jakub Jelinek <jakub@redhat.com>
25401
25402 PR debug/65807
25403 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
25404
25405 2015-04-20 Richard Biener <rguenther@suse.de>
25406
25407 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
25408 * gimple-fold.c (gimple_build_valueize): New function.
25409 (gimple_build): Always use gimple_build_valueize as valueize hook.
25410
25411 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
25412
25413 PR target/64134
25414 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
25415 and overwrite variable parts if <= 1/2 the elements are variable.
25416
25417 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
25418
25419 PR rtl-optimization/65805
25420 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
25421 Don't use difference of offset and previous offset if
25422 update_sp_offset is non-zero.
25423 (eliminate_regs_in_insn): Ditto.
25424 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
25425 lra_eliminate_regs_1 call.
25426 * lra-constraints.c (get_equiv_with_elimination): Ditto.
25427
25428 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
25429
25430 * hash-table.h: Remove version of hash_table that stored value_type *.
25431 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
25432 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
25433 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
25434 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
25435 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
25436 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
25437 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
25438 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
25439 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
25440 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
25441 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
25442 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
25443 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
25444 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
25445 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
25446 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
25447
25448 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25449 Jakub Jelinek <jakub@redhat.com>
25450
25451 PR target/65787
25452 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
25453 subsequent SH_NONE operand does not overwrite an existing *special
25454 value.
25455 (adjust_extract): Handle case where a vec_extract operation is
25456 wrapped in a PARALLEL.
25457
25458 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
25459
25460 PR target/65780
25461 * config/i386/i386.c (ix86_binds_local_p): Define only if
25462 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
25463
25464 2015-04-17 Jeff Law <law@redhat.com>
25465
25466 PR tree-optimization/47679
25467 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
25468 * tree-ssa-scopedtables.c: New file.
25469 * tree-ssa-scopedtables.h: New file.
25470 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
25471 (const_and_copies): Change name/type.
25472 (record_const_or_copy): Move into tree-ssa-scopedtables.c
25473 (record_const_or_copy_1): Similarly.
25474 (restore_vars_to_original_value): Similarly.
25475 (pass_dominator::execute): Create and destroy const_and_copies table.
25476 (thread_across_edge): Update passing of const_and_copies.
25477 (record_temporary_equivalence): Use method calls rather than
25478 manipulating const_and_copies directly.
25479 (record_equality, cprop_into_successor_phis): Similarly.
25480 (dom_opt_dom_walker::before_dom_children): Similarly.
25481 (dom_opt_dom_walker::after_dom_children): Similarly.
25482 (eliminate_redundant_computations): Similarly.
25483 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
25484 (record_temporary_equivalence): Likewise.
25485 (invalidate_equivalences): Likewise.
25486 (record_temporary_equivalences_from_phis): Update due to type
25487 change of const_and_copies. Use method calls rather than
25488 manipulating the stack directly.
25489 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
25490 (thread_through_normal_block, thread_across_edge): Likewise.
25491 (thread_across_edge): Likewise.
25492 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
25493 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
25494 of equiv_stack.
25495 (identify_jump_threads): Update due to type change of equiv_stack.
25496 (finalize_jump_threads): Delete the equiv_stack when complete.
25497
25498 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
25499
25500 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
25501 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
25502 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
25503
25504 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
25505
25506 PR target/65535
25507 * config.gcc: Exit with a comment when we do not have a major version
25508 number for the FreeBSD target.
25509
25510 2015-04-17 Jakub Jelinek <jakub@redhat.com>
25511
25512 PR target/65689
25513 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
25514 maybe_allows_mem bitfields.
25515 (maybe_allows_none_start, maybe_allows_none_end,
25516 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
25517 maybe_allows_mem_end): New variables.
25518 (compute_maybe_allows): New function.
25519 (add_constraint): Use it to initialize maybe_allows_reg and
25520 maybe_allows_mem fields.
25521 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
25522 is_address constraints such that those that allow neither mem nor
25523 reg come first, then those that only allow reg but not mem, then
25524 those that only allow mem but not reg, then the rest.
25525 (write_allows_reg_mem_function): New function.
25526 (write_tm_preds_h): Call it.
25527 * stmt.c (parse_output_constraint, parse_input_constraint): Use
25528 the generated insn_extra_constraint_allows_reg_mem function
25529 instead of always setting *allows_reg = true; *allows_mem = true;
25530 for unknown extra constraints.
25531
25532 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
25533
25534 PR target/65780
25535 * output.h (default_binds_local_p_3): New.
25536 * varasm.c (default_binds_local_p_3): Make it public. Take an
25537 argument to indicate if common symbol may be local. If common
25538 symbol may be local, treat non-external variable as defined
25539 locally.
25540 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
25541 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
25542 * config/i386/i386.c (ix86_binds_local_p): New.
25543 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
25544 ix86_binds_local_p.
25545
25546 2015-04-17 Jakub Jelinek <jakub@redhat.com>
25547
25548 PR debug/65771
25549 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
25550 trying mem_loc_descriptor on XEXP (rtl, 0).
25551
25552 2015-04-17 Martin Liska <mliska@suse.cz>
25553
25554 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
25555 Release symbol_compare_collection.
25556 * ipa-reference.c: Add TODO that a vector should be released.
25557
25558 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
25559
25560 PR target/65296
25561 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
25562 to new AVR-LibC file layout (bug #44574).
25563 (*avrlibc_devicelib): Same.
25564 * config/avr/avr-mcus.def: Adjust comments.
25565 * config/avr/avr.opt (nodevicelib): Adjust help.
25566
25567 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
25568
25569 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
25570
25571 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
25572
25573 PR c++/64527
25574 * gimplify.c (gimplify_init_constructor): Always emit a
25575 side-effecting constructor.
25576
25577 2015-04-17 Tom de Vries <tom@codesourcery.com>
25578
25579 PR tree-optimization/64950
25580 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
25581 in cfun->curr_properties.
25582 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
25583 if we generate an IFN_VA_ARG.
25584 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
25585 function if PROP_gimple_lva is not set in src function.
25586
25587 2015-04-17 Tom de Vries <tom@codesourcery.com>
25588 Michael Matz <matz@suse.de>
25589
25590 PR tree-optimization/64950
25591 * gimple-iterator.c (update_modified_stmts): Remove static.
25592 * gimple-iterator.h (update_modified_stmts): Declare.
25593 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
25594 (gimplify_va_arg_internal): New function.
25595 (gimplify_va_arg_expr): Use IFN_VA_ARG.
25596 * gimplify.h (gimplify_va_arg_internal): Declare.
25597 * internal-fn.c (expand_VA_ARG): New unreachable function.
25598 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
25599 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
25600 (expand_ifn_va_arg): New function.
25601 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
25602 (pass_stdarg::execute): Call expand_ifn_va_arg.
25603 (pass_data_lower_vaarg): New pass_data.
25604 (pass_lower_vaarg): New gimple_opt_pass.
25605 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
25606 (make_pass_lower_vaarg): New function.
25607 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
25608 properties_required field.
25609 * passes.def (all_passes): Add pass_lower_vaarg.
25610 * tree-pass.h (PROP_gimple_lva): Add define.
25611 (make_pass_lower_vaarg): Declare.
25612
25613 2015-04-17 Tom de Vries <tom@codesourcery.com>
25614
25615 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
25616 * calls.c (call_expr_flags): Same.
25617
25618 2015-04-17 Tom de Vries <tom@codesourcery.com>
25619
25620 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
25621 (pass_stdarg::execute): ... here.
25622
25623 2015-04-17 Tom de Vries <tom@codesourcery.com>
25624 Michael Matz <matz@suse.de>
25625
25626 * tree-cfg.c (make_blocks_1): Factor out of ...
25627 (make_blocks): ... here.
25628 (make_edges_bb): Factor out of ...
25629 (make_edges): ... here.
25630 (gimple_find_sub_bbs): New function.
25631 * tree-cfg.h (gimple_find_sub_bbs): Declare.
25632
25633 2015-04-17 Tom de Vries <tom@codesourcery.com>
25634
25635 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
25636
25637 2015-04-17 Yury Gribov <y.gribov@samsung.com>
25638
25639 * asan.c (set_sanitized_sections): New function.
25640 (section_sanitized_p): Ditto.
25641 (asan_protect_global): Optionally sanitize user-defined
25642 sections.
25643 * asan.h (set_sanitized_sections): Declare new function.
25644 * common.opt (fsanitize-sections): New option.
25645 * doc/invoke.texi (-fsanitize-sections): Document new option.
25646 * opts-global.c (handle_common_deferred_options): Handle new
25647 option.
25648
25649 2015-04-17 Jakub Jelinek <jakub@redhat.com>
25650
25651 PR debug/65771
25652 * dwarf2out.c (loc_list_from_tree): Return NULL
25653 for DEBUG_EXPR_DECL.
25654
25655 2015-04-17 Christian Bruel <christian.bruel@st.com>
25656
25657 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
25658 same attributes.
25659
25660 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
25661
25662 * ira-color.c (setup_left_conflict_sizes_p): Do not process
25663 node itself when computing left conflict subnode size.
25664
25665 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
25666
25667 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
25668 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
25669 *fop_<mode>_1_sse using enabled attribute. Use
25670 register_mixssei387nonimm_operand operand 1 predicate. Change
25671 alternative 3 constraints from "x" to "v".
25672
25673 2015-04-16 Richard Biener <rguenther@suse.de>
25674
25675 PR tree-optimization/65774
25676 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
25677 bit-value tracking on.
25678
25679 2015-04-16 Richard Biener <rguenther@suse.de>
25680
25681 PR tree-optimization/64277
25682 * tree-vrp.c (check_array_ref): Fix anti-range handling,
25683 simplify upper bound handling.
25684 (search_for_addr_array): Simplify.
25685 (check_array_bounds): Handle ADDR_EXPRs here.
25686 (check_all_array_refs): Simplify.
25687
25688 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
25689
25690 * config/i386/i386.c (print_reg): Rewrite function.
25691
25692 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25693
25694 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
25695 Invert the condition.
25696
25697 2015-04-16 Renlin Li <renlin.li@arm.com>
25698
25699 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
25700 simplifications for UNSIGNED_FLOAT.
25701
25702 2015-04-16 Nick Clifton <nickc@redhat.com>
25703
25704 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
25705 MUL_UNINIT.
25706 (enum rl78_cpu_type): New.
25707 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
25708 (umulhi3_shift_virt): Remove m constraint from operand 1.
25709 (umulqihi3_virt): Likewise.
25710 * config/rl78/rl78.c (rl78_option_override): Add code to process
25711 -mcpu and -mmul options.
25712 (rl78_alloc_physical_registers): Add code to handle divhi and
25713 divsi valloc attributes.
25714 (set_origin): Likewise.
25715 * config/rl78/rl78.h (RL78_MUL_G14): Define.
25716 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
25717 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
25718 __RL78_Gxx__.
25719 (ASM_SPEC): Pass -mcpu on to assembler.
25720 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
25721 (mulqi3_rl78): Likewise.
25722 (mulhi3_g13): Likewise.
25723 (mulhi3): Generate the G13 or G14 versions of the insn directly.
25724 (mulsi3): Likewise.
25725 (mulhi3_g14): Add clobbers of AX and BC.
25726 (mulsi3_g14): Likewise.
25727 (mulsi3_g13): Likewise.
25728 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
25729 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
25730 * config/rl78/rl78.opt (mmul): Initialise value to
25731 RL78_MUL_UNINIT.
25732 (mcpu): New option.
25733 (m13, m14, mrl78): New option aliases.
25734 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
25735 (MULTILIB_DIRNAMES): Add g13 and g14.
25736 * doc/invoke.texi: Document -mcpu and -mmul options.
25737
25738 2015-04-16 Richard Biener <rguenther@suse.de>
25739
25740 * tree-ssa-ccp.c (likely_value): See if we have operands that
25741 are marked as never simulate again and return CONSTANT in this
25742 case.
25743 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
25744 not have any operands that will be simulated again as
25745 not being simulated again.
25746
25747 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
25748
25749 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
25750 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
25751 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
25752 attribute.
25753 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
25754 enabled attribute.
25755 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
25756 *float<SWI48:mode><MODEF:mode>2_sse.
25757 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
25758 enabled attribute.
25759 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
25760 enabled attribute.
25761
25762 2015-04-15 Tom de Vries <tom@codesourcery.com>
25763
25764 PR other/65487
25765 * function.c (push_dummy_function): New function.
25766 (init_dummy_function_start): Use push_dummy_function.
25767 (pop_dummy_function): New function. Factored out of ...
25768 (expand_dummy_function_end): ... here.
25769 * function.h (push_dummy_function, pop_dummy_function): Declare.
25770 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
25771 pop_dummy_function.
25772 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
25773
25774 2015-04-15 Jeff Law <law@redhat.com>
25775
25776 PR tree-optimization/47679
25777 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
25778 need for forward declaration in upcoming changes.
25779 (record_conditions, record_edge_info): Likewise.
25780
25781 PR rtl-optimization/42522
25782 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
25783 SIGN_EXTRACT as a whole object rather than simplifying
25784 its operand.
25785
25786 2015-04-15 Jakub Jelinek <jakub@redhat.com>
25787
25788 PR ipa/65765
25789 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
25790 and GIMPLE_PREDICT use break instead of return true. For
25791 GIMPLE_EH_DISPATCH, compare dispatch region.
25792
25793 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
25794
25795 * doc/extend.texi (__sync Builtins): Simplify some text. Update
25796 details about the implementation. Make clear preference for
25797 __atomic builtins. Reduce possibility of future change.
25798
25799 2015-04-15 Nick Clifton <nickc@redhat.com>
25800
25801 * config/rx/rx.opt (mallow-string-insns): New option.
25802 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
25803 builtin if string instructions are denied.
25804 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
25805 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
25806 appropriate.
25807 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
25808 * config/rx/rx.md (movstr): Enable pattern only if string
25809 instructions are allowed.
25810 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
25811 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
25812 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
25813 (MULTILIB_DIRNAMES): Add no-strings.
25814 * doc/invoke.texi: Document -mno-allow-string-insns.
25815
25816 2015-04-15 Alan Modra <amodra@gmail.com>
25817
25818 PR target/65408
25819 PR target/58744
25820 PR middle-end/36043
25821 * calls.c (load_register_parameters): Don't load past end of
25822 mem unless suitably aligned.
25823
25824 2015-04-15 Nick Clifton <nickc@redhat.com>
25825
25826 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
25827 decrement instruction as being frame related.
25828 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
25829 based addresses.
25830 If zero extending a function address enclose the operation in
25831 %code(...).
25832 (rl78_preferred_reload_class): New function.
25833 (TARGET_PREFERRED_RELOAD_CLASS): Define.
25834 * config/rl78/rl78.md: Remove useless constraints in expanders.
25835 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
25836 (mulhi3_rl78): Likewise.
25837 (mulhi3_g13): Likewise.
25838 (mulsi3_rl78): Likewise.
25839 (es_addr): Move to before the multiply patterns.
25840
25841 2015-04-15 Alan Modra <amodra@gmail.com>
25842
25843 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
25844 and sequence_stack. Add seq.
25845 (seq_stack): Delete.
25846 * function.c (prepare_function_start): Don't access x_last_insn.
25847 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
25848 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
25849 * emit_rtl.c (start_sequence, push_topmost_sequence,
25850 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
25851 sequence accessors.
25852 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
25853 remove_insn): Likewise. Simplify.
25854 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
25855 and pop_topmost_sequence.
25856 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
25857 debug insns.
25858 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
25859
25860 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
25861
25862 PR target/65729
25863 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
25864 the assertiion.
25865
25866 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
25867
25868 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
25869 (LEGACY_INT_REGNO_P): Ditto.
25870 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
25871 (ANY_MASK_REG_P): Remove.
25872 (BND_REG_P): Rename from ANY_BND_REG_P.
25873 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
25874 legacy integer registers. Do not handle MMX_REG_P in a special way.
25875 Merge 64byte and 32byte SSE handling.
25876
25877 2015-04-14 Nick Clifton <nickc@redhat.com>
25878
25879 * expr.c (expand_assignment): Force an address offset computation
25880 into a register before changing its mode.
25881 (expand_expr_real_1): Likewise.
25882
25883 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
25884
25885 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
25886 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
25887 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
25888 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
25889 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
25890 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
25891 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
25892 and __aarch64_vget_lane_any.
25893
25894 2015-04-14 Jakub Jelinek <jakub@redhat.com>
25895
25896 PR rtl-optimization/65761
25897 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
25898 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
25899
25900 2015-04-14 Richard Biener <rguenther@suse.de>
25901
25902 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
25903 (graphite_can_represent_scev): Use POINTER_TYPE_P.
25904
25905 2015-04-14 Richard Biener <rguenther@suse.de>
25906
25907 PR tree-optimization/65758
25908 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
25909 against -1.
25910 (ccp_lattice_meet): Likewise.
25911 (bit_value_unop): Likewise.
25912 (bit_value_binop): Likewise.
25913 (bit_value_assume_aligned): Likewise.
25914
25915 2015-04-14 Christian Bruel <christian.bruel@st.com>
25916
25917 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
25918 function.
25919
25920 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
25921
25922 PR tree-optimization/63387
25923 * match.pd ((x unord x) | (y unord y) -> (x unord y),
25924 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
25925
25926 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
25927
25928 * config/i386/predicates.md (any_QIreg_operand): Rename from
25929 q_regs_operand. Do not process subregs.
25930 (QIreg_operand): Use QI_REGNO_P predicate.
25931 (ext_QIreg_operand): Ditto.
25932 (ext_register_operand): Ditto.
25933 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
25934 (AND splitters): Ditto.
25935 (AND with -65536 splitter): Add SWI48 mode for operand 0.
25936 (AND with -256 splitter): Use any_QIreg_operand predicate and
25937 SWI248 mode for operand 0.
25938 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
25939 mode for operand 0.
25940 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
25941
25942 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
25943
25944 * doc/plugins.texi: Rewrite first introductory paragraph.
25945
25946 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
25947
25948 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
25949 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
25950
25951 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
25952
25953 * ipa-profie.c (ipa_profile): Check number of parameters
25954 and possible polymorphic call targets before
25955 devirtualizing.
25956
25957 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
25958
25959 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
25960 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
25961
25962 2015-04-13 Richard Biener <rguenther@suse.de>
25963
25964 PR tree-optimization/65204
25965 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
25966 takens for bit-CCP.
25967
25968 2015-04-13 Richard Biener <rguenther@suse.de>
25969
25970 PR target/65660
25971 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
25972 and cond_not_taken_branch_cost to 4 and 2.
25973 (bdver2_cost): Likewise.
25974 (bdver3_cost): Likewise.
25975 (bdver4_cost): Likewise.
25976
25977 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
25978
25979 * hash-table.h (hash_table constructor): Add mem stats.
25980 (alloc_entries): Likewise.
25981
25982 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
25983
25984 * ipa-cp.c (ipcp_driver): Relase prev_edge.
25985 * passes.c (execute_one_pass): Only add transform if pass has one.
25986
25987 2015-04-12 Joseph Myers <joseph@codesourcery.com>
25988
25989 * config/i386/i386.c (ix86_option_override_internal): Don't set
25990 -fprefetch-loop-arrays if optimizing for size.
25991
25992 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
25993 Gerald Pfeifer <gerald@pfeifer.com>
25994
25995 * doc/contrib.texi (Contributors): Add Martin Jambor and
25996 Michael Matz.
25997
25998 2015-04-12 Jakub Jelinek <jakub@redhat.com>
25999
26000 * BASE-VER: Set to 6.0.0.
26001
26002 PR tree-optimization/65747
26003 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
26004 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
26005
26006 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
26007
26008 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
26009 sentence. Improve grammar.
26010
26011 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
26012
26013 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
26014
26015 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
26016
26017 PR ipa/65743
26018 * ipa-inline-transform.c (speculation_removed): Remove static var.
26019 (check_speculations): New function.
26020 (clone_inlined_nodes): Do not check spculations.
26021 (inline_call): Call check_speculations.
26022 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
26023 consider non-invariants.
26024
26025 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
26026 Martin Liska <mliska@suse.cz>
26027
26028 PR ipa/65722
26029 * ipa-icf.c (sem_item::compare_cgraph_references): function and
26030 variable can not match.
26031 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
26032 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
26033
26034 2015-04-11 Jakub Jelinek <jakub@redhat.com>
26035
26036 PR tree-optimization/65735
26037 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
26038 Remove visited_phis argument, add visited_bbs, avoid recursing into the
26039 same bb rather than just into the same phi node.
26040 (thread_through_normal_block): Adjust caller.
26041
26042 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
26043
26044 * doc/contrib.texi (Contributors): Add Ira Rosen.
26045
26046 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
26047
26048 * gcov.c (find_source): Fix miswording in error message.
26049 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
26050 (ix86_expand_sse_comi_round): Fix typo in error message.
26051
26052 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
26053
26054 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
26055
26056 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
26057
26058 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
26059
26060 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
26061
26062 PR target/65710
26063 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
26064 Print bad_spills_num and insn_pseudos_num.
26065
26066 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26067
26068 PR target/65694
26069 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
26070 when creating +1 values for SImode.
26071
26072 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
26073
26074 PR target/65729
26075 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
26076 assert.
26077
26078 2015-04-10 Jakub Jelinek <jakub@redhat.com>
26079 Iain Sandoe <iain@codesourcery.com>
26080
26081 PR target/65351
26082 * configure: Regenerate.
26083
26084 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
26085
26086 PR target/65671
26087 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
26088
26089 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
26090
26091 * doc/contrib.texi (Contributors): Add John Marino.
26092
26093 2015-04-09 Jakub Jelinek <jakub@redhat.com>
26094
26095 PR tree-optimization/65709
26096 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
26097 TREE_TYPE (TREE_TYPE (t)).
26098
26099 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
26100
26101 PR target/65710
26102 * lra-int.h (lra_bad_spill_regno_start): New.
26103 * lra.c (lra_bad_spill_regno_start): New.
26104 (lra): Set up lra_bad_spill_regno_start. Set up
26105 lra_constraint_new_regno_start unconditionally.
26106 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
26107 spill preferences.
26108
26109 2015-04-09 Marek Polacek <polacek@redhat.com>
26110 Jakub Jelinek <jakub@redhat.com>
26111
26112 PR middle-end/65554
26113 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
26114 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
26115 of STRIP_NOPS.
26116
26117 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
26118
26119 PR rtl-optimization/65693
26120 * combine.c (is_parallel_of_n_reg_sets): Move outside of
26121 #ifndef HAVE_cc0.
26122
26123 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
26124
26125 PR target/65296
26126 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
26127 device specs file if "device-specs%s" didn't resolve to a path.
26128
26129 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
26130
26131 PR target/65676
26132 * config/i386/i386.c (fixup_modeless_constant): New.
26133 (ix86_expand_args_builtin): Fixup modeless constant operand.
26134 (ix86_expand_round_builtin): Ditto.
26135 (ix86_expand_special_args_builtin): Ditto.
26136 (ix86_expand_builtin): Ditto.
26137
26138 2015-04-09 Jakub Jelinek <jakub@redhat.com>
26139
26140 PR target/65693
26141 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
26142 any pow2 integer in between 2 and 0x80000000U inclusive.
26143
26144 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
26145
26146 PR rtl-optimization/65693
26147 * combine.c (is_parallel_of_n_reg_sets): Change first argument
26148 from an rtx_insn * to an rtx.
26149 (try_combine): Adjust both callers. Use it once more.
26150
26151 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
26152
26153 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
26154 (chkp_make_static_const_bounds): Search existing
26155 symbol by assembler name. Use make_decl_one_only.
26156 (chkp_get_zero_bounds_var): Remove node search which
26157 is now performed in chkp_make_static_const_bounds.
26158 (chkp_get_none_bounds_var): Likewise.
26159
26160 2015-04-08 Michael Witten <mfwitten@gmail.com>
26161
26162 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
26163 to an example.
26164
26165 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26166
26167 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
26168
26169 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
26170
26171 * doc/extend.texi (__sync Builtins): Fix grammar.
26172
26173 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26174
26175 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
26176
26177 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26178
26179 * varasm.c (emit_local): Move definition of align.
26180
26181 2015-04-08 Julian Brown <julian@codesourcery.com>
26182
26183 * config/nvptx/mkoffload.c (process): Support variable mapping.
26184
26185 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
26186
26187 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
26188 alpha_links **.
26189 (alpha_write_one_linkage): Correct typo.
26190
26191 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
26192
26193 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
26194
26195 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
26196
26197 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
26198
26199 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
26200
26201 * tree-chkp.h (chkp_insert_retbnd_call): New.
26202 * tree-chkp.c (chkp_insert_retbnd_call): New.
26203 * ipa-split.c (insert_bndret_call_after): Remove.
26204 (split_function): Use chkp_insert_retbnd_call.
26205 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
26206 bounds for instrumented functions.
26207
26208 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
26209
26210 PR ipa/65540
26211 * calls.c (initialize_argument_information): When producing tail
26212 call also turn SSA_NAMES passed by references to original PARM_DECLs
26213
26214 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
26215
26216 PR target/65648
26217 * lra-remat.c (do_remat): Process input and non-input insn
26218 registers separately.
26219
26220 2015-04-07 Jakub Jelinek <jakub@redhat.com>
26221
26222 PR debug/65678
26223 * valtrack.c (debug_lowpart_subreg): New function.
26224 (dead_debug_insert_temp): Use it.
26225
26226 PR middle-end/65680
26227 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
26228 into signed HOST_WIDE_INT the same as negative bit_offset.
26229
26230 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
26231
26232 * ipa-comdats.c (ipa_comdats): Visit all thunks
26233 to set proper comdat group.
26234
26235 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26236
26237 PR target/65489
26238 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
26239 on constants for NEON VSTRUCT modes.
26240
26241 2015-04-07 Jakub Jelinek <jakub@redhat.com>
26242 Iain Sandoe <iain@codesourcery.com>
26243
26244 PR target/65351
26245 * configure: Regenerate.
26246
26247 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
26248
26249 PR target/65614
26250 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
26251 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
26252 that LFD is used to load double constants instead of LFS. Add
26253 defaults for all costs structures. Add comments for missing
26254 initialization fields.
26255 (size32_cost): Likewise.
26256 (size64_cost): Likewise.
26257 (rs64a_cost): Likewise.
26258 (mpccore_cost): Likewise.
26259 (ppc403_cost): Likewise.
26260 (ppc405_cost): Likewise.
26261 (ppc440_cost): Likewise.
26262 (ppc476_cost): Likewise.
26263 (ppc601_cost): Likewise.
26264 (ppc603_cost): Likewise.
26265 (ppc604_cost): Likewise.
26266 (ppc604e_cost): Likewise.
26267 (ppc620_cost): Likewise.
26268 (ppc630_cost): Likewise.
26269 (ppccell_cost): Likewise.
26270 (ppc750_cost): Likewise.
26271 (ppc7450_cost): Likewise.
26272 (ppc8540_cost): Likewise.
26273 (ppce300c2c3_cost): Likewise.
26274 (ppce500mc_cost): Likewise.
26275 (ppce500mc64_cost): Likewise.
26276 (ppce5500_cost): Likewise.
26277 (ppce6500_cost): Likewise.
26278 (titan_cost): Likewise.
26279 (power4_cost): Likewise.
26280 (power6_cost): Likewise.
26281 (power7_cost): Likewise.
26282 (power8_cost): Likewise.
26283 (ppca2_cost): Likewise.
26284 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
26285
26286 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
26287 instead of XXLOR to copy SFmode to clear out dirty bits created
26288 when SFmode denormals are generated.
26289 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
26290 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
26291
26292 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
26293
26294 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
26295 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
26296 * config/aarch64/aarch64-tune.md: Regenerate.
26297
26298 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
26299
26300 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
26301 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
26302 * config/arm/arm-cores.def (exynos-m1): New core.
26303 * config/arm/arm-tune.md: Regenerate.
26304 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
26305 * config/arm/bpabi.h: Likewise.
26306
26307 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
26308
26309 * ipa-cp (set_single_call_flag): Remove too
26310 restrictive assert.
26311
26312 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
26313
26314 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
26315 GOMP_offload_unregister from the destructor.
26316
26317 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
26318
26319 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
26320 flags for instrumentation thunk.
26321 (chkp_produce_thunks): Likewise.
26322
26323 2015-04-05 Martin Liska <mliska@suse.cz>
26324
26325 PR ipa/65665
26326 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
26327 has computed data structure.
26328 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
26329
26330 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
26331
26332 * invoke.texi (inline-unit-growth): Increase growth to 20%
26333 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
26334
26335 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
26336
26337 PR target/65647
26338 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
26339 value checking.
26340 (lra_rematerialization_iter): New.
26341 * lra.c (lra): Initialize lra_rematerialization_iter.
26342 Stop updating lra_constraint_new_regno_start after switching of
26343 inheritance and rematerialization.
26344 * lra-remat.c (lra_rematerialization_iter): New.
26345 (lra_remat): Add printing pass iteration. Do rematerialization
26346 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
26347
26348 2015-04-04 Richard Biener <rguenther@suse.de>
26349
26350 PR tree-optimization/64909
26351 PR tree-optimization/65660
26352 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
26353 to take a cost vector for scalar iteration cost.
26354 (vect_get_single_scalar_iteration_cost): Likewise.
26355 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
26356 Compute the scalar iteration cost into a cost vector.
26357 (vect_get_known_peeling_cost): Use the scalar cost vector to
26358 account for the cost of the peeled iterations.
26359 (vect_estimate_min_profitable_iters): Likewise.
26360 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
26361 Likewise.
26362
26363 2015-04-04 Alan Modra <amodra@gmail.com>
26364
26365 PR target/65576
26366 PR target/65240
26367 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
26368 0.0 constant unless TARGET_VSX.
26369 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
26370 alternative.
26371
26372 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
26373
26374 PR ipa/65654
26375 * ipa-inline-transform.c (inline_call): Skip sanity check to work
26376 around the ICE
26377
26378 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
26379
26380 PR ipa/65655
26381 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
26382 speculative indirect edges to avoid ordering issue.
26383
26384 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
26385
26386 PR ipa/65076
26387 * ipa-inline.c (edge_badness): Add combined size to the denominator.
26388
26389 2015-04-03 Jakub Jelinek <jakub@redhat.com>
26390
26391 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
26392 TYPE_ARTIFICIAL on the .omp_data* types.
26393
26394 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
26395
26396 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
26397 instrumentation thunks.
26398
26399 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
26400
26401 * config/i386/i386.c (ix86_expand_call): Avoid nested
26402 PARALLEL in returned call value.
26403
26404 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
26405
26406 * lto-cgraph.c (input_cgraph_1): Always link instrumented
26407 assembler name with original one.
26408
26409 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
26410
26411 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
26412
26413 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
26414
26415 Revert parts of r216820.
26416 * config/i386/i386.md (movqi_internal): Correct type calculation
26417 for alternatives 3 and 5.
26418
26419 2015-04-02 Jakub Jelinek <jakub@redhat.com>
26420
26421 PR preprocessor/61977
26422 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
26423 predefine __vector/__bool/__pixel macros nor context sensitive
26424 macros for CLK_ASM.
26425 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
26426
26427 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
26428
26429 * config/pa/pa.c (pa_output_move_double): Directly handle register
26430 indexed memory operand. Simplify handling of scaled register indexed
26431 memory operands.
26432
26433 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
26434
26435 PR driver/65444
26436 * config/i386/linux-common.h (MPX_SPEC): New.
26437 (CHKP_SPEC): Add MPX_SPEC.
26438 * doc/invoke.texi (-fcheck-pointer-boudns): Document
26439 possible issues with '-z bndplt' support in linker.
26440
26441 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
26442
26443 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
26444 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
26445 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
26446 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
26447 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
26448
26449 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
26450
26451 * config/i386/sync.md (UNSPEC_MOVA): Remove.
26452 (atomic_load<mode>): Change operand 0 predicate to
26453 nonimmediate_operand and fix up the destination when needed.
26454 Use UNSPEC_LDA.
26455 (atomic_loaddi_fpu): Use UNSPEC_LDA.
26456 (atomic_store<mode>): Change operand 1 predicate to
26457 nonimmendate_operand and move the source to register when needed.
26458 Use UNSPEC_STA.
26459 (atomic_store<mode>_1): Use UNSPEC_STA.
26460 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
26461 Fix moves from memory operand. Use UNSPEC_STA.
26462
26463 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
26464
26465 * expmed.c (strict_volatile_bitfield_p): Check that the access will
26466 not cross a MODESIZE boundary.
26467 (store_bit_field, extract_bit_field): Added assertions in the
26468 strict volatile bitfields code path.
26469
26470 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
26471
26472 PR target/65624
26473 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
26474 Increase args array size by one to avoid buffer overflow.
26475
26476 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
26477
26478 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
26479 split_part.
26480 * ipa-inline.c (edge_badness): Add wrapper penalty.
26481 (sum_callers): Move up.
26482 (inline_small_functions): Set single_caller.
26483 * ipa-inline.h (inline_summary): Add single_caller.
26484 * ipa-split.c (split_function): Set split_part.
26485 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
26486 * cgraph.h (cgraph_node): Add split_part.
26487
26488 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
26489
26490 PR target/58945
26491 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
26492 Do not split operands 0 and operands 2 to halfmode.
26493 (atomic_compare_and_swap<mode>): Update for
26494 atomic_compare_and_swap<dwi>_doubleword changes.
26495
26496 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
26497
26498 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
26499 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
26500 no caching is done.
26501
26502 2015-03-31 Martin Liska <mliska@suse.cz>
26503
26504 PR ipa/65557
26505 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
26506 has already filled up function summary.
26507 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
26508
26509 2015-03-31 Richard Biener <rguenther@suse.de>
26510
26511 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
26512 of types.
26513
26514 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
26515
26516 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
26517 nested functions.
26518 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
26519 (s390_asm_output_function_label): Adapt to new signature of
26520 s390_function_num_hotpatch_hw
26521 Optimise the code generating assembler output.
26522 Add comments to assembler file.
26523
26524 2015-03-31 Richard Biener <rguenther@suse.de>
26525
26526 PR middle-end/65626
26527 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
26528 of the noreturn call so it is last and cleanup_control_flow_bb
26529 can do the CFG part.
26530
26531 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
26532
26533 PR target/65531
26534 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
26535 same_comdat_group for external symbols.
26536 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
26537 infinite same_comdat_group traversal loop.
26538
26539 2015-03-31 Jakub Jelinek <jakub@redhat.com>
26540
26541 PR plugins/61176
26542 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
26543 automatically to $headers.
26544
26545 2015-03-30 Jakub Jelinek <jakub@redhat.com>
26546
26547 PR ipa/65610
26548 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
26549 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
26550 function.
26551 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
26552 Use it.
26553 * ipa-prop.c (param_type_may_change_p): Likewise.
26554 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
26555 (remove_unused_scope_block_p): Add in_ctor_dtor_block
26556 argument. Before inlining, preserve
26557 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
26558 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
26559 recursive calls.
26560 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
26561
26562 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
26563
26564 PR ipa/65076
26565 * ipa-inline.c (edge_badness): Base denominator on callee's
26566 grwoth squared.
26567
26568 2015-03-27 Martin Jambor <mjambor@suse.cz>
26569
26570 PR ipa/65478
26571 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
26572 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
26573 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
26574 node_calling_single_call.
26575 * ipa-cp.c (count_callers): New function.
26576 (set_single_call_flag): Likewise.
26577 (initialize_node_lattices): Count callers and set single_flag_call if
26578 necessary.
26579 (incorporate_penalties): New function.
26580 (good_cloning_opportunity_p): Use it, dump new flags.
26581 (propagate_constants_topo): Set node_within_scc flag if appropriate.
26582 * doc/invoke.texi (ipa-cp-recursion-penalty,
26583 ipa-cp-single-call-pentalty): Document.
26584
26585 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
26586
26587 PR ipa/65588
26588 * symtab.c (symtab_node::get_partitioning_class): Register vars
26589 are duplicated.
26590 * varpool.c (symbol_table::output_variables) Do not assemble unefined
26591 decls for non-symbols.
26592
26593 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
26594
26595 PR target/65248
26596 * output.h (default_binds_local_p_2): New.
26597 * varasm.c (default_binds_local_p_2): Renamed to ...
26598 (default_binds_local_p_3): This. Don't return true on protected
26599 data symbol if protected data may be external.
26600 (default_binds_local_p): Use default_binds_local_p_3.
26601 (default_binds_local_p_1): Likewise.
26602 (default_binds_local_p_2): New.
26603 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
26604 default_binds_local_p_2 if TARGET_MACHO is undefined.
26605
26606 2015-03-27 Jakub Jelinek <jakub@redhat.com>
26607
26608 PR target/65593
26609 * config/i386/i386.c (legitimize_pic_address): If base
26610 is SYMBOL_REF or LABEL_REF using %rip addressing, force
26611 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
26612
26613 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
26614
26615 PR target/65531
26616 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
26617 comdat groups.
26618
26619 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
26620
26621 PR ipa/65600
26622 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
26623 of optimized out indirect call.
26624 (redirect_to_unreachable): Always build symbol table node for
26625 BUILT_IN_UNREACHABLE
26626
26627 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
26628
26629 PR target/65407
26630 * ira-costs.c (record_reg_classes): Process all constraint string
26631 containing 0-9.
26632
26633 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
26634
26635 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
26636 memory_operand.
26637
26638 PR target/65052
26639 * config/c6x/constraints.md (S3): New constraint.
26640 * config/c6x/c6x.md (real_jump): Use it.
26641
26642 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
26643
26644 PR middle-end/65595
26645 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
26646 do redirection if the call is not optimized out.
26647
26648 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
26649
26650 PR target/65495
26651 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
26652 (fchkp-check-incomplete-type): Add LTO.
26653 (fchkp-zero-input-bounds-for-main): Likewise.
26654 (fchkp-first-field-has-own-bounds): Likewise.
26655 (fchkp-narrow-bounds): Likewise.
26656 (fchkp-narrow-to-innermost-array): Likewise.
26657 (fchkp-use-static-bounds): Likewise.
26658 (fchkp-use-static-const-bounds): Likewise.
26659 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
26660
26661 2015-03-27 Marek Polacek <polacek@redhat.com>
26662
26663 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
26664
26665 2015-03-27 Marek Polacek <polacek@redhat.com>
26666
26667 PR sanitizer/65583
26668 * ubsan.c (ubsan_create_edge): New function.
26669 (instrument_bool_enum_load): Call it.
26670 (instrument_nonnull_arg): Likewise.
26671 (instrument_nonnull_return): Likewise.
26672 (instrument_object_size): Likewise.
26673
26674 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
26675
26676 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
26677 auto_vec.
26678
26679 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
26680
26681 PR lto/65536
26682 * lto-streamer.h (class lto_location_cache): New.
26683 (struct data_in): Add location_cache.
26684 (lto_input_location): Update prototype.
26685 (stream_input_location_now): New.
26686 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
26687 pointer to location.
26688 (stream_input_location): Update.
26689 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
26690 (warn_odr): Apply location cache before warning.
26691 (lto_input_location): Update prototype.
26692 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
26693 Use stream_input_location_now.
26694 * lto-streamer-in.c (lto_location_cache::current_cache): New static
26695 variable.
26696 (lto_location_cache::cmp_loc): New function.
26697 (lto_location_cache::apply_location_cache): New function.
26698 (lto_location_cache::accept_location_cache): New function.
26699 (lto_location_cache::revert_location_cache): New function.
26700 (lto_location_cache::input_location): New function.
26701 (lto_input_location): Do location caching.
26702 (stream_input_location_now): New function.
26703 (input_eh_region, input_struct_function_base): Use
26704 stream_input_location_now.
26705 (lto_data_in_create): use new.
26706 (lto_data_in_delete): Use delete.
26707 * tree-streamer-in.c (unpack_ts_block_value_fields,
26708 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
26709 lto_input_ts_exp_tree_pointers): Update for cached location api.
26710
26711 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
26712
26713 PR ipa/65076
26714 * passes.def: Add pass_nothrow.
26715 * ipa-pure-const.c: (pass_data_nothrow): New.
26716 (pass_nothrow): New.
26717 (pass_nothrow::execute): New.
26718 (make_pass_nothrow): New.
26719 * tree-pass.h (make_pass_nothrow): Declare.
26720
26721 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
26722
26723 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
26724 edge to change by speculation resolution or redirection.
26725 (edge_set_predicate): Likewise.
26726 (inline_summary_t::duplicate): Likewise.
26727 (remap_edge_summaries): Likewise.
26728
26729 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
26730
26731 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
26732 New macros.
26733 (can_inline_edge_p): Relax option matching for always inline functions.
26734
26735 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
26736
26737 PR target/65561
26738 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
26739 Check operand 4 and operand 0 for equality.
26740 (avx512f_vextract<shuffletype>32x4_1_maskm):
26741 Check operand 6 and operand 0 for equality.
26742 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
26743 for equality.
26744 (vec_extract_hi_<mode>_maskm): Ditto.
26745
26746 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
26747
26748 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
26749 dead calls back to live.
26750 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
26751 cross check to ...
26752 (cgraph_node::verify_node): ... here; verify only callee edges,
26753 not caller.
26754 * cif-code.def (CILK_SPAWN): New code.
26755
26756 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
26757
26758 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
26759 (edge_set_predicate): Use it to mark unreachable edges.
26760 (inline_summary_t::duplicate): Remove unnecesary code.
26761 (remap_edge_summaries): Likewise.
26762 (dump_inline_summary): Report contains_cilk_spawn.
26763 (compute_inline_parameters): Compute contains_cilk_spawn.
26764 (inline_read_section, inline_write_summary): Stream
26765 contains_cilk_spawn.
26766 * ipa-inline.c (can_inline_edge_p): Do not touch
26767 DECL_STRUCT_FUNCTION that may not be available;
26768 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
26769 remove check for callee_fun->can_throw_non_call_exceptions and
26770 replace it by optimization attribute check; check for flag_exceptions.
26771 * ipa-inline-transform.c (inline_call): Maintain
26772 DECL_FUNCTION_PERSONALITY
26773 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
26774
26775 2015-03-26 Jakub Jelinek <jakub@redhat.com>
26776
26777 PR tree-optimization/65551
26778 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
26779 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
26780
26781 2015-03-26 Richard Biener <rguenther@suse.de>
26782
26783 PR middle-end/65555
26784 * tree-cfg.c (verify_gimple_call): Do not require a call to
26785 have no LHS if it wasn't recognized as control altering yet.
26786
26787 2015-03-26 Jakub Jelinek <jakub@redhat.com>
26788
26789 PR tree-optimization/64715
26790 * passes.def: Add another instance of pass_object_sizes before ccp1.
26791 * tree-object-size.c (pass_object_sizes::execute): In
26792 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
26793 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
26794 __bos result and the computed constant. Remove redundant
26795 checks, obsoleted by gimple_call_builtin_p test.
26796
26797 * var-tracking.c (variable_tracking_main_1): Don't track
26798 variables for targetm.no_register_allocation targets.
26799
26800 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
26801
26802 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
26803 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
26804
26805 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
26806
26807 PR target/65569
26808 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
26809 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
26810 0.0 is correctly setup.
26811 (extenddftf2_internal): Likewise.
26812
26813 2015-03-25 Sebastian Pop <s.pop@samsung.com>
26814
26815 PR tree-optimization/65177
26816 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
26817 (bb_in_bbs): New.
26818 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
26819 edges not adjacent on the path to the original code.
26820
26821 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
26822
26823 PR bootstrap/65537
26824 * doc/install.texi (Building a native compiler): Document new
26825 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
26826 configuration assumes that the host supports the linker plugin.
26827
26828 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
26829
26830 PR target/65508
26831 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
26832 chain for generated call.
26833
26834 2015-03-25 Richard Biener <rguenther@suse.de>
26835
26836 * passes.c (pass_manager::execute_early_local_passes): Guard
26837 execution of pass_chkp_instrumentation_passes with
26838 flag_check_pointer_bounds.
26839 (pass_chkp_instrumentation_passes::gate): Likewise.
26840
26841 2015-03-25 Martin Liska <mliska@suse.cz>
26842
26843 PR tree-optimization/65538
26844 * symbol-summary.h (function_summary::~function_summary):
26845 Relese memory for allocated summaries.
26846 (function_summary::release): New function.
26847
26848 2015-03-25 Jakub Jelinek <jakub@redhat.com>
26849
26850 PR lto/65515
26851 * lto-streamer-out.c (DFS::worklist): New struct.
26852 (DFS::worklist_vec): New data member.
26853 (DFS::next_dfs_num): Remove.
26854 (DFS::DFS): Rewritten using worklist instead of recursion,
26855 using most of code from DFS::DFS_write_tree.
26856 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
26857 pass it to DFS_write_tree calls.
26858 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
26859 quick initial checks push it into worklist_vec and return.
26860
26861 2015-03-25 Richard Biener <rguenther@suse.de>
26862
26863 PR middle-end/65519
26864 * genmatch.c (expr::gen_transform): Re-write to avoid
26865 using gimple_build.
26866
26867 2015-03-25 Bin Cheng <bin.cheng@arm.com>
26868
26869 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
26870
26871 2015-03-25 Bin Cheng <bin.cheng@arm.com>
26872
26873 * config/arm/arm.opt (print_tune_info): New option.
26874 * config/arm/arm.c (arm_print_tune_info): New function.
26875 (arm_file_start): Call arm_print_tune_info.
26876 * config/arm/arm-protos.h (struct tune_params): Add comment.
26877 * doc/invoke.texi (@item -mprint-tune-info): New item.
26878 (-mtune): mention it in ARM Option Summary.
26879
26880 2015-03-25 DJ Delorie <dj@redhat.com>
26881
26882 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
26883 correct clause.
26884
26885 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
26886 Martin Liska <mliska@suse.cz>
26887
26888 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
26889 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
26890 (sem_item::add_type): New function.
26891 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
26892 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
26893 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
26894 (sem_function::equals_wpa): Fix typo.
26895 * ipa-icf.h (sem_item::add_type): New function.
26896 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
26897 order.
26898
26899 2015-03-24 Jakub Jelinek <jakub@redhat.com>
26900
26901 PR tree-optimization/65533
26902 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
26903 with swapped operands, call vect_free_slp_tree on
26904 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
26905 vector.
26906
26907 2015-03-24 Richard Biener <rguenther@suse.de>
26908
26909 PR middle-end/65517
26910 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
26911 for fixup if necessary.
26912
26913 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
26914
26915 * doc/extend.texi (Function Attributes): Add @cindex entries
26916 for all attributes and regularize their format. Delete text
26917 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
26918 information about "eightbit_data", "tiny_data", and "model"
26919 variable attributes to the Variable Attributes section. Fix
26920 some obvious typos and copy-editing issues.
26921 (Variable Attributes, Type Attributes): Likewise add/fix
26922 @cindex entries for all attributes.
26923
26924 2015-03-23 Jakub Jelinek <jakub@redhat.com>
26925
26926 PR target/65523
26927 * tree-chkp.c (chkp_build_returned_bound): Ignore
26928 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
26929
26930 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
26931
26932 PR target/65505
26933 * config/sh/predicates.md (simple_mem_operand,
26934 displacement_mem_operand): Add test for reg.
26935 (short_displacement_mem_operand): Test for displacement_mem_operand
26936 before invoking sh_disp_addr_displacement.
26937 * config/sh/constraints.md (Sdd, Sra): Simplify.
26938 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
26939 Remove redundant displacement_mem_operand tests.
26940
26941 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
26942
26943 PR target/65296
26944 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
26945 the same -mmcu=MCU more than once.
26946
26947 2015-03-23 Jakub Jelinek <jakub@redhat.com>
26948
26949 PR bootstrap/65522
26950 * ipa-devirt.c: Remove duplicate demangle.h include.
26951
26952 PR target/65504
26953 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
26954 on the pseudo.
26955 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
26956 REG_POINTER on *destptr after adjusting it for prologue size.
26957
26958 PR ipa/65521
26959 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
26960 ultimate_alias_target ()->order ints instead of
26961 ultimate_alias_target () pointers.
26962
26963 2015-03-23 Richard Biener <rguenther@suse.de>
26964
26965 PR tree-optimization/65518
26966 * tree-vect-stmts.c (vectorizable_load): Reject single-element
26967 interleaving cases we generate absymal code for.
26968
26969 2015-03-23 Richard Biener <rguenther@suse.de>
26970
26971 PR tree-optimization/65494
26972 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
26973 matches here.
26974 (vect_analyze_slp_instance): But do that here, always and once.
26975
26976 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26977
26978 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
26979 adding T or multiplying by T+1 and subracting T.
26980
26981 2015-03-22 Jeff Law <law@redhat.com>
26982
26983 PR rtl-optimization/64317
26984 * Makefile.in (OBJS): Add gcse-common.c
26985 * gcse.c: Include gcse-common.h
26986 (struct modify_pair_s): Move structure definition to gcse-common.h
26987 (compute_transp): Move function to gcse-common.c.
26988 (canon_list_insert): Similarly.
26989 (record_last_mem_set_info): Break out some code and put it into
26990 gcse-common.c. Call into the new common code.
26991 (compute_local_properties): Pass additional arguments to compute_transp.
26992 * postreload-gcse.c: Include gcse-common.h and df.h
26993 (modify_mem_list_set, blocks_with_calls): New variables.
26994 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
26995 (get_bb_avail_insn): Pass in the expression index too.
26996 (alloc_mem): Allocate memory for the new bitmaps and lists.
26997 (free_mem): Free memory for the new bitmaps and lists.
26998 (insert_expr_in_table): Record a bitmap index for each entry we
26999 add to the table.
27000 (record_last_mem_set_info): Call into common code in gcse-common.c.
27001 (get_bb_avail_insn): If no available insn was found in the requested
27002 BB. If BB has a single predecessor, see if the expression is
27003 transparent in BB and available in that single predecessor.
27004 (compute_expr_transp): New wrapper for compute_transp.
27005 (eliminate_partially_redundant_load): Pass expression's bitmap_index
27006 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
27007 (gcse_after_reload_main): If there are elements in the hash table,
27008 then compute transparency for all the elements in the hash table.
27009 * gcse-common.h: New file.
27010 * gcse-common.c: New file.
27011
27012 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
27013
27014 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
27015 as an adjective.
27016 (System Headers): Likewise.
27017 (Ifdef): Likewise.
27018 (Traditional macros): Likewise.
27019 (Invocation): Likewise.
27020 (Option Index): Likewise.
27021 * doc/cppopts.texi (-M): Likewise.
27022 (-finput-charset): Likewise.
27023 (--help): Likewise.
27024 * doc.invoke.texi (AVR Options): Likewise.
27025 (V850 Options): Likewise.
27026
27027 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
27028
27029 PR ipa/65475
27030 * ipa-devirt.c: Include demangle.h
27031 (odr_type_d): Add field rtti_broken.
27032 (odr_subtypes_equivalent_p): Do not require name to match.
27033 (compare_virtual_tables): Fix typo; if type already has ODR violation,
27034 bypass the tests; be ready for function referneces in vtables that are
27035 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
27036 (warn_odr): Give up for nameless types.
27037 (warn_types_mismatch): Report mismatch in mangled names;
27038 report mismatch in anonymous namespaces; look into component types to
27039 give useful error; report when mismatch is dragged in from other ODR
27040 type.
27041 (odr_types_equivalent_p): Match types for being polymorphic; avoid
27042 duplicated diagnostics.
27043 (add_type_duplicate): Reorder checks so more informative ones come
27044 first; fix typo; do not output "the extra base is defined here" when
27045 we did not warn.
27046 (BINFO_N_BASE_BINFOS): Relax sanity check.
27047
27048 2015-03-22 Martin Liska <mliska@suse.cz>
27049 Jakub Jelinek <jakub@redhat.com>
27050
27051 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
27052 masks that can potentially include a builtin.
27053 (ix86_add_new_builtins): Introduce fast filter for isa values
27054 that cannot trigger builtin inclusion.
27055
27056 2015-03-22 Martin Liska <mliska@suse.cz>
27057
27058 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
27059 (sem_item::update_hash_by_local_refs): Likewise.
27060 (sem_variable::get_hash): Empty line is fixed.
27061 (sem_item_optimizer::execute): Include adding of hash references.
27062 (sem_item_optimizer::update_hash_by_addr_refs): New function.
27063 (sem_item_optimizer::build_hash_based_classes): Use local hash.
27064 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
27065 (sem_item::update_hash_by_local_refs): Likewise.
27066
27067 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
27068
27069 PR ipa/65502
27070 * ipa-comdats.c (enqueue_references): Walk through thunks.
27071 (ipa_comdats): Likewise.
27072 (set_comdat_group_1): New function.
27073
27074 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
27075
27076 PR ipa/65475
27077 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
27078 non-polymorphic
27079
27080 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
27081 Gerald Pfeifer <gerald@pfeifer.com>
27082
27083 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
27084
27085 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
27086 Sandra Loosemore <sandra@codesourcery.com>
27087
27088 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
27089 function parameter declaration.
27090 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
27091 Update arguments to nios2_adjust_call_address().
27092 (sibcall_internal): Rename from *sibcall.
27093 (sibcall_value_internal): Rename from *sibcall_value.
27094 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
27095 (nios2_large_got_address): Add target temp reg parameter.
27096 (nios2_got_address): Adjust call to nios2_large_got_address, add
27097 force_reg around it.
27098 (nios2_load_pic_address): Add target temp reg parameter, replace call
27099 to nios2_got_address with corresponding code.
27100 (nios2_legitimize_constant_address): Update call to
27101 nios2_load_pic_address.
27102 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
27103 to use temp reg for PIC loading purposes.
27104 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
27105 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
27106 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
27107
27108 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
27109
27110 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
27111 usage of "the @option{...}".
27112 (-Wopenmp-simd): Likewise.
27113 (-fsanitize-recover): Likewise.
27114 (-fsanitize-undefined-trap-on-error): Likewise.
27115 (-flto): Likewise.
27116 (tracer-dynamic-coverage-feedback): Likewise.
27117 (reorder-block-duplicate-feedback): Likewise.
27118 (loop-unroll-jam-size): Likewise.
27119 (-B): Likewise.
27120 (-I-): Likewise.
27121 (-mabs=legacy): Likewise.
27122 (-mupper-regs-df): Likewise.
27123 (-mupper-regs-sf): Likewise.
27124 (-mpointers-to-nested-functions): Likewise.
27125
27126 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
27127
27128 * doc/extend.texi (Cilk Plus Builtins): Add markup.
27129
27130 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
27131
27132 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
27133 additional index entries and cross-references.
27134 (-fchkp-check-incomplete-type): Likewise.
27135 (-fchkp-first-field-has-own-bounds): Likewise.
27136 (-fchkp-narrow-to-innermost-array): Likewise.
27137 (-fchkp-use-fast-string-functions): Likewise.
27138 (-fchkp-use-nochk-string-functions): Likewise.
27139 (-fchkp-use-static-const-bounds): Likewise.
27140 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
27141 (-fchkp-instrument-marked-only): Likewise.
27142 (-fchkp-use-wrappers): Likewise.
27143 (-static-libmpx): Likewise.
27144 (-static-libmpxwrappers): Likewise.
27145 * doc/extend.texi (bnd_legacy): Likewise.
27146 (bnd_instrument): Likewise.
27147 (bnd_variable_size): Likewise.
27148 (Pointer Bounds Checker builtins): Likewise.
27149
27150 2015-03-21 Tom de Vries <tom@codesourcery.com>
27151
27152 PR tree-optimization/65458
27153 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
27154 * cgraph.h (cgraph_node): Add parallelized_function field.
27155 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
27156 (input_overwrite_node): Read parallelized_function field.
27157 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
27158 parallelized_function on cgraph_node for child_fn.
27159 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
27160 Remove include of gt-tree-parloops.h.
27161 (parallelized_functions): Remove static variable.
27162 (parallelized_function_p): Rewrite using parallelized_function field of
27163 cgraph_node.
27164 (create_loop_fn): Remove adding to parallelized_functions.
27165 * Makefile.in (GTFILES): Remove tree-parloops.c
27166
27167 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
27168
27169 PR rtl-optimization/64366
27170 * lra.c (lra_update_insn_regno_info): Consider regs in
27171 CALL_INSN_FUNCTION_USAGE memory.
27172
27173 2015-03-20 Richard Biener <rguenther@suse.de>
27174
27175 PR middle-end/64715
27176 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
27177 for type comparison and gcc_checking_assert.
27178 (chrec_fold_plus_poly_poly): Likewise.
27179 (chrec_fold_multiply_poly_poly): Likewise.
27180 (chrec_convert_1): Likewise.
27181 * gimplify.c (gimplify_expr): Remove premature folding of
27182 &X + CST to &MEM[&X, CST].
27183
27184 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
27185
27186 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
27187 already is final.
27188 (ipa_inline): Recompute inline_failed codes.
27189 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
27190 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
27191 CIF_FINAL_ERROR.
27192
27193 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
27194
27195 PR rtl-optimization/60851
27196 * recog.c (constrain_operands): Accept a pseudo register before reload
27197 for LRA enabled targets.
27198
27199 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
27200
27201 PR target/65240
27202 * config/rs6000/predicates.md (easy_fp_constant): Remove special
27203 -ffast-math handling that kept non-0 constants live in the RTL
27204 until reload. Remove logic testing the number of instructions it
27205 took to create a constant in a GPR that was never used, due to a
27206 test for soft-float earlier.
27207 (memory_fp_constant): Delete, no longer used.
27208
27209 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
27210 alternatives for loading non-0 constants into GPRs for hard
27211 floating point that is no longer needed due to changes in
27212 easy_fp_constant. Add support for loading 0.0 into GPRs.
27213 (mov<mode>_hardfloat32): Likewise.
27214 (mov<mode>_hardfloat64): Likewise.
27215 (mov<mode>_64bit_dm): Likewise.
27216 (movtd_64bit_nodm): Likewise.
27217 (pre-reload move FP constant define_split): Delete define_split,
27218 since it is no longer used.
27219 (extenddftf2_internal): Remove GHF constraints that are not valid
27220 for extenddftf2.
27221
27222 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
27223
27224 PR rtl-optimization/63491
27225 * lra-constraints.c (check_and_process_move): Use src instead of
27226 sreg. Remove some dead code.
27227
27228 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
27229
27230 PR ipa/65380
27231 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
27232 (sem_variable::merge): Likewise.
27233
27234 2015-03-19 Martin Liska <mliska@suse.cz>
27235
27236 PR ipa/65465
27237 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
27238 all fields of cgraph_thunk_info.
27239
27240 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
27241
27242 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
27243 clone instrumented thunks.
27244
27245 2015-03-19 Richard Biener <rguenther@suse.de>
27246
27247 Revert
27248 2015-03-10 Richard Biener <rguenther@suse.de>
27249
27250 PR middle-end/63155
27251 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
27252 * tree-ssa-coalesce.c: Include timevar.h.
27253 (attempt_coalesce): Handle graph being NULL.
27254 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
27255 Split out abnormal coalescing to ...
27256 (perform_abnormal_coalescing): ... this function.
27257 (coalesce_ssa_name): Perform abnormal coalescing without computing
27258 live/conflict.
27259 (verify_ssa_coalescing_worker): New function.
27260 (verify_ssa_coalescing): Likewise.
27261
27262 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
27263 Jakub Jelinek <jakub@redhat.com>
27264
27265 PR sanitizer/65400
27266 * tsan.c (instrument_gimple): Clear tail call flag on
27267 calls.
27268
27269 2015-03-19 Jakub Jelinek <jakub@redhat.com>
27270
27271 PR sanitizer/65400
27272 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
27273 call in the return bb.
27274 (find_split_points): Add RETURN_BB argument, don't call
27275 find_return_bb.
27276 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
27277 if true append TSAN_FUNC_EXIT internal call after the call to
27278 the split off function.
27279 (execute_split_functions): Call find_return_bb here.
27280 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
27281 Adjust find_split_points and split_function calls.
27282
27283 2015-03-18 DJ Delorie <dj@redhat.com>
27284
27285 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
27286 (iorqi3_virt): Likewise.
27287
27288 2015-03-18 Tom de Vries <tom@codesourcery.com>
27289
27290 * tree-parloops.c (parallelize_loops): Make static.
27291 * tree-parloops.h (parallelize_loops): Remove extern declaration.
27292
27293 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
27294
27295 PR middle-end/64491
27296 Revert:
27297 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
27298
27299 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
27300 condition would be removed due to undefined behaviour.
27301
27302 2015-03-18 Martin Liska <mliska@suse.cz>
27303
27304 PR ipa/65432
27305 * cgraph.c (cgraph_node::get_create): Remove unnecessary
27306 xstrdup_for_dump wrapper.
27307 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
27308 sem_item::name.
27309 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
27310 with xstrdup_for_dump.
27311 (sem_variable::equals): Likewise.
27312 (sem_item_optimizer::read_section): Use symtab_node::name instead of
27313 sem_item::name.
27314 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
27315 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
27316 symtab_node::asm_name with xstrdup_for_dump.
27317 (congruence_class::dump): Use symtab_node::name instead of
27318 sem_item::name.
27319 * ipa-icf.h (symtab_node::name): Remove.
27320 (symtab_node::asm_name): Likewise.
27321
27322 2015-03-18 Jakub Jelinek <jakub@redhat.com>
27323
27324 PR tree-optimization/65450
27325 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
27326 function.
27327 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
27328 it instead of duplicate_ssa_name_ptr_info.
27329
27330 PR target/65222
27331 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
27332
27333 2015-03-18 Richard Biener <rguenther@suse.de>
27334
27335 * tree-data-ref.h (struct access_matrix): Remove.
27336 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
27337 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
27338 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
27339 (am_vector_index_for_loop): Likewise.
27340 (struct data_reference): Remove access_matrix member.
27341 (DR_ACCESS_MATRIX): Remove.
27342 (lambda_vector_new): Add comment.
27343 (lambda_matrix_new): Use XOBNEWVEC.
27344
27345 2015-03-18 Richard Biener <rguenther@suse.de>
27346
27347 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
27348 (pass_ch::execute): Cleanup the CFG only if we did sth.
27349 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
27350
27351 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27352
27353 * expmed.c (synth_mult): Use std::swap instead of manually
27354 swapping algorithms.
27355
27356 2015-03-18 Jakub Jelinek <jakub@redhat.com>
27357
27358 PR target/65078
27359 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
27360
27361 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
27362
27363 PR target/65296
27364 * config/avr/avr.opt (-nodevicelib): New option.
27365 * doc/invoke.texi (AVR Options): Document it.
27366 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
27367 libgcc.a, libc.a, libm.a.
27368 * config/avr/specs.h: Same.
27369 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
27370 which don't (directly) depend on the device. Print more help.
27371 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
27372 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
27373 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
27374 case of an error.
27375 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
27376 for specs file name.
27377 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
27378 * config/avr/avr-mcus.def: Adjust initializers and comments.
27379
27380 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
27381
27382 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
27383 DECL_ONE_ONLY to check if decl is one only.
27384 * ipa-split.c (consider_split): Limit splitt of one only functions.
27385
27386 2015-03-16 Jakub Jelinek <jakub@redhat.com>
27387
27388 PR tree-optimization/65427
27389 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
27390 functions.
27391 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
27392
27393 2015-03-16 Marek Polacek <polacek@redhat.com>
27394
27395 * cgraph.h (add_new_static_var): Remove declaration.
27396 * varpool.c (add_new_static_var): Remove function.
27397
27398 2015-03-16 Jakub Jelinek <jakub@redhat.com>
27399
27400 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
27401 instead of vec<tree> * with vec_alloc and release for args.
27402 Adjust all users.
27403
27404 PR middle-end/65431
27405 * omp-low.c (delete_omp_context): Only splay_tree_delete
27406 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
27407 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
27408
27409 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
27410
27411 PR sanitizer/64820
27412 * cfgexpand.c (align_base): New function.
27413 (alloc_stack_frame_space): Call it.
27414 (expand_stack_vars): Align prev_frame to be sure
27415 data->asan_vec elements aligned properly.
27416
27417 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
27418
27419 PR middle-end/65409
27420 * expr.c (store_field): Do not do a direct block copy if the source is
27421 a PARALLEL with BLKmode.
27422
27423 2015-03-16 Tom de Vries <tom@codesourcery.com>
27424
27425 PR middle-end/65414
27426 Revert:
27427 2015-03-12 Tom de Vries <tom@codesourcery.com>
27428
27429 PR rtl-optimization/64895
27430 * lra-lives.c (check_pseudos_live_through_calls): Use
27431 actual_call_used_reg_set instead of call_used_reg_set, if available.
27432
27433 2015-03-16 Alan Modra <amodra@gmail.com>
27434
27435 PR target/63150
27436 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
27437 Modify Z->r bswapdi splitter to use dest in place of scratch.
27438 In r->Z and Z->r bswapdi splitter rename word_high, word_low
27439 to word1, word2 and rearrange logic to suit.
27440 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
27441 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
27442 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
27443 Add one '?' on r->r. Modify Z->r splitter to avoid need for
27444 early clobber.
27445
27446 2015-03-14 Jakub Jelinek <jakub@redhat.com>
27447
27448 PR tree-optimization/65369
27449 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
27450 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
27451 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
27452
27453 PR tree-optimization/65418
27454 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
27455 are casts in the first PLUS_EXPR operand, ensure tbias and
27456 *totallowp are in the inner type.
27457
27458 PR rtl-optimization/65401
27459 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
27460 argument. If true, adjust_address_nv of x with big-endian
27461 correction for the mode widening to GET_MODE (y).
27462 (make_field_assignment): Don't do MEM mode widening here.
27463 Use MEM_P instead of GET_CODE == MEM.
27464
27465 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
27466
27467 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
27468 the external decls.
27469
27470 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27471
27472 PR target/64600
27473 * config/arm/arm.c (arm_gen_constant, AND case): Use
27474 ARM_SIGN_EXTEND when constructing AND mask.
27475
27476 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
27477
27478 * graph.c (print_graph_cfg): Make function names visible and append
27479 parenthesis to it. Also make groups of basic blocks belonging to the
27480 same function visible.
27481
27482 2015-03-12 Richard Biener <rguenther@suse.de>
27483
27484 PR middle-end/44563
27485 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
27486 to avoid quadratic behavior with inline expansion splitting blocks.
27487 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
27488 with the successor if the predecessor will be merged with it.
27489 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
27490 entry block with its successor.
27491
27492 2015-03-13 Richard Biener <rguenther@suse.de>
27493
27494 PR middle-end/44563
27495 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
27496 (cleanup_tree_cfg_1): Do not call it.
27497 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
27498 (fixup_noreturn_call): Mark the stmt as control altering.
27499 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
27500 here.
27501 (pass_data_fixup_cfg): Produce a dump file.
27502 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
27503 (need_noreturn_fixup): New global.
27504 (pass_dominator::execute): Fixup queued noreturn calls.
27505 (optimize_stmt): Queue calls that became noreturn for fixup.
27506 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
27507 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
27508 (el_to_fixup): New global.
27509 (eliminate_dom_walker::before_dom_childre): Queue calls that
27510 became noreturn for fixup.
27511 (eliminate): Fixup queued noreturn calls.
27512 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
27513 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
27514 (substitute_and_fold_dom_walker::before_dom_children): Queue
27515 alls that became noreturn for fixup.
27516 (substitute_and_fold): Fixup queued noreturn calls.
27517
27518 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
27519
27520 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
27521 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
27522 are building; for methods check ODR type of class they belong to if
27523 they may lead to a polymorphic call.
27524 (sem_function::compare_polymorphic_p): Be bit smarter about testing
27525 when function may lead to a polymorphic call.
27526 (sem_function::compare_type_list): Remove.
27527 (sem_variable::equals): Update use of compatible_types_p.
27528 (sem_variable::parse_tree_refs): Remove.
27529 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
27530 cdtor.
27531 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
27532 matching here.
27533 (func_checker::compatible_polymorphic_types_p): Break out from ...
27534 (unc_checker::compatible_types_p): ... here.
27535 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
27536 Declare.
27537 (unc_checker::compatible_types_p): Update.
27538 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
27539 Remove.
27540
27541 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27542
27543 PR rtl-optimization/65235
27544 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
27545 When first element of vec_concat is const_int, calculate its size
27546 using second element.
27547
27548 2015-03-12 Richard Biener <rguenther@suse.de>
27549
27550 PR middle-end/65270
27551 * fold-const.c (operand_equal_p): Fix ordering of resetting
27552 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
27553
27554 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
27555
27556 * config/s390/s390.c (s390_reorg): Move code to output nops after label
27557 to s390_reorg ().
27558 (s390_asm_output_function_label): Likewise.
27559 * config/s390/s390.c (s390_asm_output_function_label):
27560 Fix function label alignment with -mhtopatch.
27561 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
27562 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
27563 ("nop_2_byte"): New define_insn.
27564 ("nop_4_byte"): Likewise.
27565 ("nop_6_byte"): Likewise.
27566 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
27567 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
27568
27569 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
27570
27571 PR target/65103
27572 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
27573 register.
27574
27575 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
27576
27577 PR target/65044
27578 * toplev.c (process_options): Restrict Pointer Bounds Checker
27579 usage with Address Sanitizer.
27580
27581 2015-03-12 Richard Biener <rguenther@suse.de>
27582
27583 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
27584 to split on.
27585 * omp-low.c (expand_omp_taskreg): Split block before removing
27586 the stmt.
27587 (expand_omp_target): Likewise.
27588 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
27589 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
27590 stmt to split_block.
27591
27592 2015-03-12 Tom de Vries <tom@codesourcery.com>
27593
27594 PR rtl-optimization/64895
27595 * lra-lives.c (check_pseudos_live_through_calls): Use
27596 actual_call_used_reg_set instead of call_used_reg_set, if available.
27597
27598 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
27599
27600 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
27601 (cgraph_node::remove): Likewise.
27602 (cgraph_node::get_untransformed_body): Likewise.
27603 * varpool.c (varpool_node::remove): Likewise.
27604 (varpool_node::get_constructor): Add sanity check.
27605
27606 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
27607
27608 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
27609 old GCC versions.
27610 (-fabi-compat-version): Likewise.
27611 (-ffriend-injection): Likewise.
27612 (-Wdeclaration-after-statement): Likewise.
27613 (-fomit-frame-pointer): Likewise.
27614 (-ftree-coalesce-inlined-vars): Likewise.
27615 (-fvisibility=): Likewise.
27616 * doc/extend.texi (Typeof): Likewise.
27617 (Zero Length): Likewise.
27618 (Escaped Newlines): Likewise.
27619 (Compound Literals): Likewise.
27620 (Function Attributes): Likewise.
27621 (Label Attributes): Likewise.
27622 (Type Attributes): Likewise.
27623 (Function Names): Likewise.
27624 (Other Builtins): Likewise.
27625 (Function Specific Option Pragmas): Likewise.
27626 (C++ Interface): Likewise.
27627
27628 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
27629
27630 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
27631
27632 2015-03-11 Marek Polacek <polacek@redhat.com>
27633
27634 PR tree-optimization/65388
27635 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
27636
27637 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
27638
27639 PR target/65296
27640 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
27641 * configure: Regenerate.
27642 * config.in: Regenerate.
27643 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
27644 [-mn-flash]: Document it.
27645 [__AVR_ARCH__]: Document avrtiny.
27646
27647 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
27648 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
27649 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
27650
27651 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27652
27653 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
27654
27655 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27656
27657 PR target/65242
27658 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
27659 allow reloads of PLUS in floating point/VSX registers.
27660
27661 2015-03-11 Junmo Park <junmoz.park@samsung.com>
27662
27663 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
27664 crypto_sha256_fast.
27665 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
27666
27667 2015-03-11 Richard Biener <rguenther@suse.de>
27668
27669 PR tree-optimization/65310
27670 * tree-sra.c (build_ref_for_offset): Also preserve larger
27671 alignment.
27672
27673 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
27674
27675 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
27676
27677 2015-03-10 Jakub Jelinek <jakub@redhat.com>
27678
27679 PR target/65368
27680 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
27681 new define_expand.
27682 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
27683
27684 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
27685
27686 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
27687 (sem_function::equals_wpa): ... here.
27688
27689 2015-03-10 Marek Polacek <polacek@redhat.com>
27690 Jakub Jelinek <jakub@redhat.com>
27691
27692 PR sanitizer/65367
27693 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
27694 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
27695 separately.
27696
27697 2015-03-10 Jakub Jelinek <jakub@redhat.com>
27698
27699 PR target/65286
27700 * config/rs6000/t-linux: For powerpc64* target set
27701 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
27702
27703 2015-03-10 Richard Biener <rguenther@suse.de>
27704
27705 PR middle-end/44563
27706 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
27707 for redirect_all_calls.
27708
27709 2015-03-10 Marek Polacek <polacek@redhat.com>
27710
27711 * gdbinit.in (pcfun): Define and document.
27712
27713 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
27714
27715 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
27716 of libgomp-plugin.h.
27717 (find_target_compiler): Support a case when the path to gcc is
27718 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
27719 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
27720 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
27721 libgomp-plugin.h.
27722 (main): Use GCC_INSTALL_NAME as target_driver_name.
27723 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
27724 define.
27725 (mkoffload.o): Remove obsolete include path and defines.
27726 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
27727
27728 2015-03-10 Richard Biener <rguenther@suse.de>
27729
27730 PR middle-end/63155
27731 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
27732 * tree-ssa-coalesce.c: Include timevar.h.
27733 (attempt_coalesce): Handle graph being NULL.
27734 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
27735 Split out abnormal coalescing to ...
27736 (perform_abnormal_coalescing): ... this function.
27737 (coalesce_ssa_name): Perform abnormal coalescing without computing
27738 live/conflict.
27739 (verify_ssa_coalescing_worker): New function.
27740 (verify_ssa_coalescing): Likewise.
27741
27742 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
27743
27744 PR target/65296
27745 * config.gcc (extra_options) [avr]: Remove.
27746 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
27747 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
27748 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
27749
27750 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
27751 (-mmcu=): Add Var and MissingArgError properties.
27752 (-march=): Remove.
27753 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
27754 * config/avr/t-multilib: Regenerate.
27755 * config/avr/specs.h: New file.
27756 * config/avr/driver-avr.c: New file.
27757 * config/avr/genopt.sh: Remove file.
27758 * config/avr/avr-tables.opt: Remove file.
27759 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
27760 * config/avr/avr-c.c: Same.
27761 * avr-arch.h: Same.
27762 (avr_current_device): Remove proto.
27763 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
27764 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
27765 (EXTRA_SPEC_FUNCTIONS): Define.
27766 (avr_devicespecs_file): New specs function proto.
27767 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
27768 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
27769 (avr_current_device): Remove definition and usage.
27770 (avr_set_core_architecture): New static function.
27771 (avr_option_override): Use it.
27772 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
27773 (mcu_name): New static array.
27774 (comparator, avr_archs_str, avr_mcus_str): New static functions.
27775 (avr_inform_devices, avr_inform_core_architectures): New functions.
27776 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
27777 (avrlibc.h) [WITH_AVRLIBC]: Include.
27778 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
27779 (print_mcu): Rewrite from scratch.
27780 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
27781 Forward to avr-specific specs defined in device-specs file.
27782 * config/avr/t-avr (driver-avr.o): New rule.
27783 (avr-devices.o): Depend on avr-arch.h.
27784 (avr-mcus): No more depend on avr-tables.opt.
27785 (avr-tables.opt): Remove rule.
27786 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
27787
27788 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
27789
27790 * c-family/c.opt (fchkp-use-wrappers): New.
27791 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
27792 (chkp_wrap_function): New.
27793 (chkp_build_instrumented_fndecl): Support wrapped
27794 functions.
27795 * doc/invoke.texi (-fcheck-pointer-bounds): New.
27796 (-fchkp-check-incomplete-type): New.
27797 (-fchkp-first-field-has-own-bounds): New.
27798 (-fchkp-narrow-bounds): New.
27799 (-fchkp-narrow-to-innermost-array): New.
27800 (-fchkp-optimize): New.
27801 (-fchkp-use-fast-string-functions): New.
27802 (-fchkp-use-nochk-string-functions): New.
27803 (-fchkp-use-static-bounds): New.
27804 (-fchkp-use-static-const-bounds): New.
27805 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
27806 (-fchkp-check-read): New.
27807 (-fchkp-check-write): New.
27808 (-fchkp-store-bounds): New.
27809 (-fchkp-instrument-calls): New.
27810 (-fchkp-instrument-marked-only): New.
27811 (-fchkp-use-wrappers): New.
27812 (-static-libmpx): New.
27813 (-static-libmpxwrappers): New.
27814
27815 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
27816
27817 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
27818 (CHKP_SPEC): Add wrappers library.
27819 * c-family/c.opt (static-libmpxwrappers): New.
27820
27821 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
27822
27823 * config/i386/linux-common.h (LIBMPX_LIBS): New.
27824 (LIBMPX_SPEC): New.
27825 (CHKP_SPEC): New.
27826 * gcc.c (CHKP_SPEC): New.
27827 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
27828 * c-family/c.opt (static-libmpx): New.
27829
27830 2015-03-10 Richard Biener <rguenther@suse.de>
27831
27832 PR middle-end/44563
27833 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
27834 for compare_type.
27835 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
27836 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
27837 (cgraph_add_edge_to_call_site_hash): Likewise.
27838 (cgraph_node::get_edge): Likewise.
27839 (cgraph_edge::set_call_stmt): Likewise.
27840 (cgraph_edge::remove_caller): Likewise.
27841
27842 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
27843
27844 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
27845 (callee_saved_gpr_regs_size): ... this.
27846 (callee_saved_regs_first_regno): Rename to ...
27847 (callee_saved_first_gpr_regno): ... this.
27848 (callee_saved_regs_last_regno) Rename to ...
27849 (callee_saved_last_gpr_regno): ... this.
27850 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
27851 variables.
27852 (nds32_initial_elimination_offset): Likewise.
27853 (nds32_expand_prologue): Likewise.
27854 (nds32_expand_epilogue): Likewise.
27855 (nds32_expand_prologue_v3push): Likewise.
27856 (nds32_expand_epilogue_v3pop): Likewise.
27857 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
27858 Adjust renamed variables.
27859 (nds32_output_stack_pop): Likewise.
27860
27861 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
27862
27863 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
27864 code in comment.
27865
27866 2015-03-10 Jakub Jelinek <jakub@redhat.com>
27867
27868 PR rtl-optimization/65321
27869 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
27870 than shift mode.
27871 * var-tracking.c (use_narrower_mode): Likewise.
27872
27873 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
27874
27875 PR tree-optimization/65355
27876 * varasm.c (notice_global_symbol): Do not produce RTL.
27877 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
27878 anchor.
27879 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
27880 check for section anchors.
27881
27882 2015-03-10 Alan Modra <amodra@gmail.com>
27883
27884 PR target/65286
27885 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
27886 to be single-arch by default. Set cpu_is_64bit for powerpc64
27887 given --with-cpu=native.
27888 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
27889 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
27890 and powerpc64le.
27891 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
27892 rs6000_isa_flags rather than TARGET_64BIT.
27893
27894 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
27895 Kaz Kojima <kkojima@gcc.gnu.org>
27896
27897 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
27898
27899 2015-03-09 Jakub Jelinek <jakub@redhat.com>
27900
27901 PR lto/65361
27902 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
27903 on a TREE_BINFO, instead use BINFO_TYPE.
27904
27905 2015-03-09 Richard Biener <rguenther@suse.de>
27906
27907 PR middle-end/65270
27908 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
27909 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
27910 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
27911 of that. When comparing dereferences compare alignment.
27912 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
27913
27914 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
27915
27916 * ipa-inline-analysis.c (check_callers): Check
27917 node->can_remove_if_no_direct_calls_and_refs_p.
27918 (growth_likely_positive): Reorganize to call
27919 can_remove_if_no_direct_calls_p later.
27920 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
27921 will_be_removed_from_program_if_no_direct_calls_p): Add
27922 will_inline parameter.
27923 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
27924 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
27925 Handle inliner case correctly.
27926
27927 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
27928
27929 PR tree-optimization/63743
27930 * cfgexpand.c (reorder_operands): Also reorder if only second operand
27931 had its definition forwarded by TER.
27932
27933 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
27934
27935 PR lto/65316
27936 * ipa-utils.h (types_odr_comparable): Add strict argument.
27937 * ipa-devirt.c: Fix whitespace;
27938 (odr_hasher): Remove.
27939 (odr_name_hasher, odr_vtable_hasher): New hashers.
27940 (can_be_name_hashed_p): New predicate.
27941 (hash_type_name): remove.
27942 (hash_odr_name): New.
27943 (odr_name_hasher::hash): new.
27944 (can_be_vtable_hashed_p): New.
27945 (hash_odr_vtable): New.
27946 (odr_vtable_hasher::hash): New.
27947 (types_same_for_odr): Add strict parameter.
27948 (types_odr_comparable): Likewise.
27949 (odr_name_hasher::equal): New.
27950 (odr_vtable_hasher::equal): New.
27951 (odr_name_hasher::remove): New.
27952 (odr_hash_type): Change to hash_table<odr_name_hasher>.
27953 (odr_vtable_hash_type): New.
27954 (odr_vtable_hash): New.
27955 (odr_subtypes_equivalent_p): Do strict comparsion.
27956 (add_type_duplicate): Merge type names; cleanup; avoid type
27957 duplicates.
27958 (register_odr_type): Initialize vtable hash.
27959 (build_type_inheritance_graph): Likewise
27960 (get_odr_type): Reorg to use two hashes.
27961 (dump_possible_polymorphic_call_targets): Move sanity check after debug
27962 output.
27963 (ipa_devirt): Dump type_inheritance_graph.
27964 (types_same_for_odr): Add strict mode.
27965
27966 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
27967
27968 PR ipa/65334
27969 * cgraph.h (symtab_node): Add definition_alignment,
27970 can_increase_alignment_p and increase_alignment.
27971 * symtab.c (symtab_node::can_increase_alignment_p,
27972 increase_alignment_1, symtab_node::increase_alignment,
27973 symtab_node::definition_alignment): New.
27974 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
27975 can_increase_alignment_p.
27976 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
27977 * tree-vect-stmts.c (ensure_base_align): Likewise.
27978 * varasm.c (function_section_1): Use definition_alignment.
27979 (assemble_start_function): Likewise.
27980 (emit_local): likewise.
27981 (build_constant_desc): Likewsie.
27982 (output_constant_def_contents): Likewise.
27983 (place_block_symbol): Likewise.
27984 (output_object_block): Likewise.
27985
27986 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
27987
27988 PR ipa/65316
27989 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
27990 when outputting debug.
27991
27992 2015-03-07 Marek Polacek <polacek@redhat.com>
27993 Martin Uecker <uecker@eecs.berkeley.edu>
27994
27995 PR sanitizer/65280
27996 * doc/invoke.texi: Update description of -fsanitize=bounds.
27997
27998 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
27999
28000 * tree-ssa-phiopt.c (neg_replacement): Remove.
28001 (tree_ssa_phiopt_worker): Remove negate optimization.
28002
28003 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
28004
28005 PR ipa/65302
28006 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
28007
28008 2015-03-06 Richard Biener <rguenther@suse.de>
28009
28010 PR middle-end/64928
28011 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
28012 and liveout_obstack members.
28013 (calculate_live_on_exit): Remove.
28014 (calculate_live_ranges): Change declaration.
28015 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
28016 (new_tree_live_info): Adjust.
28017 (calculate_live_ranges): Delete livein when not wanted.
28018 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
28019 Deal with partly deleted live info.
28020 (loe_visit_block): Remove temporary bitmap by using
28021 bitmap_ior_and_compl_into.
28022 (live_worklist): Adjust accordingly.
28023 (calculate_live_on_exit): Make static.
28024 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
28025 we do not need livein.
28026
28027 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
28028
28029 * real.c (real_from_string): Fix typo in assertion.
28030
28031 2015-03-06 Alex Velenko <alex.velenko@arm.com>
28032
28033 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
28034 the patch.
28035
28036 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
28037
28038 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
28039
28040 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
28041
28042 PR target/64342
28043 * lra-assigns.c (find_hard_regno_for): Rename to
28044 find_hard_regno_for_1. Add a new parameter.
28045 (find_hard_regno_for): New function using find_hard_regno_for_1.
28046
28047 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
28048
28049 PR rtl-optimization/65067
28050 * expmed.c (store_bit_field, extract_bit_field): Reworked the
28051 strict volatile bitfield handling.
28052
28053 2015-03-05 Martin Liska <mliska@suse.cz>
28054
28055 PR ipa/65318
28056 * ipa-icf.c (sem_variable::equals): Compare variables types.
28057
28058 2015-03-05 Richard Henderson <rth@redhat.com>
28059
28060 PR target/65121
28061 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
28062 correctly check weak symbol binding.
28063
28064 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
28065
28066 PR middle-end/65315
28067 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
28068 needed alignment.
28069
28070 2015-03-05 Martin Liska <mliska@suse.cz>
28071
28072 * ipa-inline.c (inline_small_functions): Set default value to
28073 prevent warning during bootstrap.
28074 * tree.h: Add pragma guard that ignores false positives during
28075 bootstrap.
28076
28077 2015-03-05 Richard Biener <rguenther@suse.de>
28078
28079 PR tree-optimization/65310
28080 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
28081 Properly preserve alignment of the base of the access.
28082
28083 2015-03-05 Richard Biener <rguenther@suse.de>
28084
28085 PR ipa/65270
28086 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
28087 Compare dependence info.
28088
28089 2015-03-05 Richard Biener <rguenther@suse.de>
28090
28091 PR middle-end/65233
28092 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
28093 tree-into-ssa.h.
28094 (walk_ssa_copies): Revert last chage. Instead do not walk
28095 SSA names registered for SSA update.
28096
28097 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
28098
28099 PR ipa/65270
28100 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
28101 vtable references for their containing type.
28102 (sem_function::equals_wpa): Compare TYPE_RESTRICT
28103 and type attributes.
28104
28105 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
28106
28107 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
28108 before negating it.
28109 * stor-layout.c (finalize_record_size): Revert latest change.
28110
28111 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
28112
28113 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
28114
28115 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
28116
28117 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
28118 for correct comdat handling.
28119 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
28120 Likewise.
28121 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
28122 (used_from_object_file_p_worker): Remove.
28123 (cgraph_node::only_called_directly_or_alised): Add
28124 used_from_object_file_p.
28125 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
28126 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
28127 can_remove_if_no_direct_calls_and_refs_p.
28128
28129 2015-03-04 Nick Clifton <nickc@redhat.com>
28130
28131 * config/rl78/rl78.h (enum reg_class): Remove real registers from
28132 General register class.
28133 * config/rl78/rl78-real.md: Replace general register constraints
28134 with real+virtual register constraints.
28135
28136 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28137
28138 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
28139 from checking for -mhtm option.
28140
28141 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
28142
28143 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
28144 (struct ipa_sra_check_caller_data): Add has_thunk field.
28145 (ipa_sra_check_caller): Check for thunk.
28146 (ipa_sra_preliminary_function_checks): Give up on function with
28147 thunks.
28148 (ipa_early_sra): Use call_for_symbol_and_aliases.
28149
28150 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
28151
28152 PR target/65249
28153 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
28154 called for __stack_chk_guard symbol.
28155
28156 2015-03-03 DJ Delorie <dj@redhat.com>
28157
28158 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
28159 inc/dec.
28160 (*addhi3_real): Likewise.
28161 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
28162 pattern to match incrementing memory.
28163 * config/rl78/predicates.md (rl78_1_2_operand): New.
28164 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
28165 it's the same and only mem.
28166 (rl78_alloc_physical_registers_op2): If there's effectively only
28167 one MEM, transcode it into HL.
28168 (rl78_far_p): Reject addresses that aren't legitimate.
28169
28170 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
28171
28172 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
28173 negating it.
28174
28175 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
28176
28177 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
28178
28179 Implement call0 ABI for xtensa
28180 * config/xtensa/constraints.md ("a" constraint): Include stack
28181 pointer in case of call0 ABI.
28182 ("q" constraint): Make empty in case of call0 ABI.
28183 ("D" constraint): Include stack pointer in case of call0 ABI.
28184 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
28185 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
28186 prototypes.
28187 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
28188 variable.
28189 (xtensa_regno_to_class): Make it a local variable in the
28190 function xtensa_regno_to_class.
28191 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
28192 macro, function prototype and implementation.
28193 (reg_nonleaf_alloc_order): Make it a local variable in the
28194 function order_regs_for_local_alloc.
28195 (xtensa_conditional_register_usage): New function.
28196 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
28197 (xtensa_valid_move): Allow direct moves to stack pointer
28198 register in call0 ABI.
28199 (xtensa_setup_frame_addresses): Only spill register windows in
28200 windowed ABI.
28201 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
28202 call0 ABI respectively.
28203 (xtensa_function_arg_1): Only mark a7 register for copying in
28204 windowed ABI.
28205 (xtensa_call_save_reg): New function.
28206 (compute_frame_size): Add space for callee saved register
28207 storage to the frame size in call0 ABI.
28208 (xtensa_expand_prologue): Generate code to set up stack frame
28209 and save callee-saved registers in call0 ABI.
28210 (xtensa_expand_epilogue): New function.
28211 (xtensa_set_return_address): New function.
28212 (xtensa_return_addr): Calculate return address in call0 ABI.
28213 (xtensa_builtin_saveregs): Only mark a7 register for copying and
28214 emit copying code in windowed ABI.
28215 (order_regs_for_local_alloc): Add preferred register allocation
28216 order for non-leaf function in call0 ABI.
28217 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
28218 (xtensa_asm_trampoline_template): Add trampoline generation for
28219 call0 ABI.
28220 (xtensa_trampoline_init): Add trampoline initialization for
28221 call0 ABI.
28222 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
28223 functions.
28224 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
28225 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
28226 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
28227 ABI call-used registers.
28228 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
28229 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
28230 call0 ABI.
28231 (REG_CLASS_CONTENTS): Include all registers into the preferred
28232 reload registers set, adjust the set in the
28233 xtensa_conditional_register_usage.
28234 (xtensa_regno_to_class): Drop variable declaration.
28235 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
28236 function.
28237 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
28238 respectively.
28239 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
28240 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
28241 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
28242 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
28243 location in call0 ABI.
28244 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
28245 stack adjustment size when handling exception.
28246 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
28247 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
28248 definitions.
28249 ("return" pattern): Generate ret.n/ret in call0 ABI.
28250 ("epilogue" pattern): Expand epilogue.
28251 ("nonlocal_goto" pattern): Use default in call0 ABI.
28252 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
28253 emit eh_set_a0_* depending on ABI.
28254 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
28255 ("eh_set_a0_call0", "blockage"): New patterns.
28256
28257 2015-03-03 Martin Liska <mliska@suse.cz>
28258
28259 PR ipa/65287
28260 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
28261
28262 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
28263
28264 PR 65138/target
28265 * config/rs6000/rs6000-tables.opt: Regenerate table.
28266
28267 2015-03-03 Renlin Li <renlin.li@arm.com>
28268
28269 * doc/md.texi (@item ^): Change ? into ^.
28270
28271 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
28272
28273 * doc/tm.texi: Regenerated.
28274
28275 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
28276
28277 * builtins.c (expand_builtin_return_addr): Add
28278 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
28279 surrounding #ifdef.
28280 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
28281 definition to 1.
28282 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
28283 Likewise.
28284 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
28285 undefined.
28286 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
28287 paragraph.
28288
28289 2015-03-03 Martin Jambor <mjambor@suse.cz>
28290 Eric Botcazou <ebotcazou@adacore.com>
28291
28292 * tree-sra.c (ipa_sra_check_caller_data): New type.
28293 (has_caller_p): Removed.
28294 (ipa_sra_check_caller): New function.
28295 (ipa_sra_preliminary_function_checks): Use it.
28296
28297 2015-03-03 Martin Liska <mliska@suse.cz>
28298
28299 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
28300 instead of if branch.
28301
28302 2015-03-03 Martin Liska <mliska@suse.cz>
28303
28304 PR ipa/65282
28305 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
28306
28307 2015-03-23 Jeff Law <law@redhat.com>
28308
28309 PR tree-optimization/65241
28310 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
28311 hash table if INSERT is true.
28312
28313 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
28314
28315 PR target/65296
28316 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
28317
28318 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
28319
28320 PR target/64331
28321 * config/avr/avr.c (context.h, tree-pass.h): Include them.
28322 (avr_pass_data_recompute_notes): New static variable.
28323 (avr_pass_recompute_notes): New class.
28324 (avr_register_passes): New static function.
28325 (avr_option_override): Call it.
28326
28327 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
28328
28329 Fix various problems with specs file generation.
28330
28331 PR target/65296
28332 * config.gcc (extra_gcc_objs) [avr]: Remove.
28333 * config/avr/driver-avr.c: Remove file.
28334 * config/avr/t-avr (driver-avr.o): Remove rule.
28335 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
28336 INCLUDES to build. Depend on TM_H.
28337 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
28338 build warnings. Fix non-matching types and non-existing %-codes.
28339 (tm.h): Include.
28340 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
28341 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
28342 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
28343 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
28344 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
28345 (LIBGCC_SPEC): Remove definitions.
28346
28347 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
28348
28349 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
28350 to create a register in testing mode.
28351
28352 2015-03-03 Martin Liska <mliska@suse.cz>
28353 Jan Hubicka <hubicka@ucw.cz>
28354
28355 PR ipa/65263
28356 * cgraph.c (cgraph_node::has_thunk_p): New function.
28357 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
28358 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
28359 (sem_function::merge): Assert is changed.
28360
28361 2015-03-03 Martin Liska <mliska@suse.cz>
28362 Martin Jambor <mjambor@suse.cz>
28363
28364 PR ipa/65087
28365 * ipa-icf.c (sem_item_optimizer::execute): Change function
28366 return value to boolean.
28367 (sem_item_optimizer::merge_classes): Likewise.
28368 (ipa_icf_driver): Return TODO_remove_functions in case there's
28369 a merge operation processed.
28370 * ipa-icf.h: Change function return value to boolean.
28371
28372 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
28373
28374 PR 65138/target
28375 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
28376 processor type for 64-bit little endian PowerPC.
28377
28378 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
28379 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
28380 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
28381 printing built-in mask so it does not pass NULL pointers.
28382
28383 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
28384 -mcpu=powerpc64le.
28385
28386 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
28387
28388 PR target/58158
28389 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
28390 !ISA_HAS_FP_CONDMOVE.
28391
28392 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
28393
28394 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
28395 reload_completed.
28396
28397 2015-03-02 Ulrich Drepper <drepper@gmail.com>
28398
28399 * doc/invoke.texi (Options for Code Generation Conventions):
28400 Fix URL of DSO paper.
28401
28402 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
28403
28404 PR ipa/65130
28405 * ipa-inline.c (check_callers): Looks for recursion.
28406 (inline_to_all_callers): Give up on uninlinable or recursive edges.
28407 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
28408 summary of inline clones.
28409 (do_estimate_growth_1): Fix recursion check.
28410
28411 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
28412
28413 PR ipa/64988
28414 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
28415 comdat groups.
28416
28417 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
28418 Aldy Hernandez <aldyh@redhat.com>
28419
28420 PR lto/65276
28421 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
28422 when checking TYPE_BINFO.
28423
28424 2015-03-02 Richard Biener <rguenther@suse.de>
28425
28426 PR ipa/65270
28427 * ipa-icf-gimple.c: Include builtins.h.
28428 (func_checker::compare_memory_operand): Compare base alignment.
28429
28430 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
28431
28432 PR target/65184
28433 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
28434 are never passed by reference.
28435
28436 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
28437
28438 PR target/65183
28439 * tree-chkp.c (chkp_check_lower): Don't check against
28440 zero bounds for already instrumented functions.
28441 (chkp_check_upper): Likewise.
28442 (chkp_fini): Clean pass local data to avoid wrong reusage.
28443
28444 2015-02-28 Martin Liska <mliska@suse.cz>
28445 Jan Hubicka <hubicka@ucw.cz>
28446
28447 * ipa-icf.c (sem_variable::equals): Improve debug output;
28448 get variable constructor.
28449 (sem_variable::parse): Do not filter out too early; give up on
28450 volatile and register vars.
28451 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
28452 variables.
28453 * ipa-icf.h (sem_variable::init): Do not set ctor.
28454 (sem_variable::ctor): Remove.
28455
28456 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
28457
28458 PR middle-end/65233
28459 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
28460
28461 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28462
28463 * ipa-icf.c: Include stor-layout.h
28464 (sem_function::compare_cgraph_references): Rename to ...
28465 (sem_item::compare_cgraph_references): ... this one.
28466 (sem_variable::equals_wpa): New function
28467 (sem_variable::equals): Do not check stuff already verified by
28468 equals_wpa.
28469 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
28470 * ipa-icf.h (sem_item): Add compare_cgraph_references.
28471 (sem_function): Remove compare_cgraph_references.
28472 (sem_variable): Turns equals_wpa into non-inline.
28473
28474 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28475
28476 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
28477 (sem_item::add_expr): New function.
28478 (sem_function::hash_stmt): Handle operands of most statements.
28479 (sem_variable::get_hash): Hash the actual constructor.
28480 * ipa-icf.h (sem_item): Add add_expr.
28481 (sem_function): Update prototype of hash_stmt
28482
28483 2015-02-28 Martin Liska <mliska@suse.cz>
28484 Jan Hubicka <hubicka@ucw.cz>
28485
28486 PR ipa/65245
28487 * ipa-icf-gimple.c (func_checker::compare_function_decl):
28488 Remove.
28489 (func_checker::compare_variable_decl): Skip symtab vars.
28490 (func_checker::compare_cst_or_decl): Update.
28491 * ipa-icf.c (sem_function::parse): Do not consider aliases.
28492 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
28493 use correct symtab predicates.
28494 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
28495 (sem_variable::parse): Update comment.
28496 (sem_item_optimizer::build_graph): Consider ultimate aliases
28497 for references.
28498
28499 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28500
28501 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
28502 of OBJ_TYPE_REF.
28503
28504 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28505
28506 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
28507 (sem_variable::merge) Likewise.
28508
28509 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28510
28511 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
28512 target; also match flag_ipa_devirt.
28513
28514 2015-03-01 Martin Liska <mliska@suse.cz>
28515 Jan Hubicka <hubicka@ucw.cz>
28516
28517 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
28518 Validate variable alignment.
28519 * ipa-icf.c (sem_function::equals_private): Be more precise
28520 about non-common function attributes.
28521 (sem_variable::equals): Likewise.
28522
28523 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28524
28525 PR ipa/65237
28526 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
28527 across COMDAT group boundary.
28528
28529 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28530
28531 PR ipa/65232
28532 * ipa-icf.c (clear_decl_rtl): New function.
28533 (sem_function::merge): Clear RTL before forming alias.
28534 (sem_variable::merge): Clear RTL before forming alias.
28535
28536 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28537
28538 PR ipa/65236
28539 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
28540
28541 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
28542
28543 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
28544 to neon_to_gp<q>.
28545
28546 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
28547
28548 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
28549 a typo in the description.
28550
28551 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
28552
28553 PR target/64317
28554 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
28555 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
28556 * lra-constraints.c: Include "params.h".
28557 (EBB_PROBABILITY_CUTOFF): Use
28558 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
28559 (lra_inheritance): Use '<' instead of '<=' for
28560 EBB_PROBABILITY_CUTOFF.
28561 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
28562 Document change.
28563
28564 2015-02-27 Martin Liska <mliska@suse.cz>
28565
28566 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
28567 vector length condition.
28568
28569 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
28570
28571 * doc/extend.texi (x86 transactional memory intrinsics):
28572 Reorganize discussion of _xbegin. Clarify that the return
28573 value is a bit mask. Expand example and move to end of section.
28574
28575 2015-02-26 Jakub Jelinek <jakub@redhat.com>
28576 Aldy Hernandez <aldyh@redhat.com>
28577
28578 PR rtl-optimization/65220
28579 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
28580
28581 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
28582
28583 PR target/65032
28584 * lra-remat.c (update_scratch_ops): New.
28585 (do_remat): Call it.
28586 * lra.c (lra_register_new_scratch_op): New. Take code from ...
28587 (remove_scratches): ... here.
28588 * lra-int.h (lra_register_new_scratch_op): New prototype.
28589
28590 2015-02-27 Marek Polacek <polacek@redhat.com>
28591
28592 PR c/65040
28593 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
28594 -Wformat-signedness anymore.
28595
28596 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28597
28598 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
28599 function.
28600 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
28601
28602 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28603
28604 * config/s390/s390.c (enum s390_builtin):
28605 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
28606 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
28607 (s390_init_builtins): Generate new builtin functions.
28608 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
28609 (s390_sfpc, s390_efpc): New pattern definitions.
28610
28611 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28612
28613 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
28614 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
28615 (s390_builtin_decls): New array.
28616 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
28617 (s390_builtin_decl): New function.
28618 (TARGET_BUILTIN_DECL): Define macro.
28619
28620 2015-02-27 Richard Biener <rguenther@suse.de>
28621
28622 PR middle-end/63175
28623 * builtins.c (get_object_alignment_2): Make sure to re-apply
28624 the ANDed mask after recursing to its operand gets us a new
28625 misalignment bit position.
28626
28627 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
28628 Martin Liska <mliska@suse.cz>
28629
28630 PR bootstrap/65150
28631 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
28632 Use address_matters_p.
28633 (redirect_all_callers, set_addressable): New functions.
28634 (sem_function::merge): Reorganize and fix merging issues.
28635 (sem_variable::merge): Likewise.
28636 (sem_variable::compare_sections): Remove.
28637 * common.opt (fmerge-all-constants, fmerge-constants): Remove
28638 Optimization flag.
28639 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
28640 redirect them.
28641 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
28642 decl is used.
28643 (address_matters_1): New function.
28644 (symtab_node::address_matters_p): New function.
28645 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
28646 check for merged flag.
28647 * cgraph.h (address_matters_p): Declare.
28648 (symtab_node::address_taken_from_non_vtable_p): Remove.
28649 (symtab_node::address_can_be_compared_p): New method.
28650 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
28651 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
28652 Remove.
28653 (comdat_can_be_unshared_p_1) Use address_matters_p.
28654 (update_vtable_references): Fix formating.
28655 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
28656 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
28657 * cgraphclones.c: Preserve merged and icf_merged flags.
28658
28659 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
28660
28661 * doc/extend.texi (Function Attributes): Fix spelling and typos.
28662 (Label Attributes): Likewise.
28663 (Cilk Plus Builtins): Likewise.
28664 (ARC SIMD Built-in Functions): Likewise.
28665 (ARM C Language Extensions (ACLE)): Likewise.
28666 (PowerPC Built-in Functions): Likewise.
28667 (PowerPC Hardware Transactional Memory Built-in Functions):
28668 Likewise.
28669
28670 2015-02-26 Jakub Jelinek <jakub@redhat.com>
28671
28672 PR tree-optimization/65216
28673 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
28674 new stmt and new SSA_NAME for lhs whenever the arguments have
28675 changed and weren't just swapped. Fix comment typo.
28676
28677 PR tree-optimization/65215
28678 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
28679 for PDP endian targets.
28680 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
28681 Fix up formatting issues.
28682 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
28683 size is smaller than the original, adjust MEM_REF offset by the
28684 difference of sizes. Use is_gimple_mem_ref_addr instead of
28685 is_gimple_min_invariant test to avoid adding address temporaries.
28686
28687 2015-02-26 Martin Liska <mliska@suse.cz>
28688 Jan Hubicka <hubicka@ucw.cz>
28689
28690 PR ipa/64693
28691 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
28692 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
28693 (sem_item_optimizer::process_cong_reduction): Include division by
28694 sensitive references.
28695 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
28696 * ipa-ref.c (ipa_ref::address_matters_p): New function.
28697 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
28698
28699 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
28700
28701 PR target/65192
28702 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
28703 Remove.
28704 * config/avr/avr.c: Same.
28705 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
28706 Refuse any constant address not in 0..0xbf.
28707 * config/avr/avr.md (*mov<mode>, *movsf): Remove
28708 tiny_valid_direct_memory_access_range from insn conditions.
28709 (mov<mode>): Don't special-case expansion of avrtiny addresses.
28710
28711 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
28712
28713 PR target/61142
28714 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
28715 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
28716 * config/sh/predicates.md (const_logical_operand): New predicate.
28717 * config/sh/sh.md: Add new peephole2 patterns.
28718
28719 2015-02-26 Marek Polacek <polacek@redhat.com>
28720
28721 PR ipa/65008
28722 * ipa-inline.c (early_inliner): Recompute inline parameters.
28723
28724 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28725
28726 PR target/65171
28727 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
28728 instructions with TImode operands are included in the analysis.
28729
28730 2015-02-26 Sebastian Pop <s.pop@samsung.com>
28731
28732 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
28733 of an EDGE_FSM_THREAD.
28734
28735 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
28736
28737 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
28738
28739 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
28740
28741 PR debug/46102
28742 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
28743
28744 2015-02-26 Sebastian Pop <s.pop@samsung.com>
28745
28746 PR tree-optimization/65048
28747 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
28748 (thread_through_all_blocks): Call valid_jump_thread_path.
28749 Remove invalid FSM jump-thread paths.
28750
28751 2015-02-26 Jakub Jelinek <jakub@redhat.com>
28752
28753 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
28754 (ipa_write_optimization_summaries): Likewise.
28755 * tree-streamer.h: Include data-streamer.h.
28756 (streamer_mode_table): Declare extern variable.
28757 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
28758 * lto-streamer-out.c (lto_output_init_mode_table,
28759 lto_write_mode_table): New functions.
28760 (produce_asm_for_decls): Call lto_write_mode_table when streaming
28761 offloading LTO.
28762 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
28763 (lto_create_simple_input_block): Add mode_table argument to the
28764 lto_input_block constructors.
28765 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
28766 Likewise.
28767 * data-streamer-in.c (string_for_index): Likewise.
28768 * ipa-inline-analysis.c (inline_read_section): Likewise.
28769 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
28770 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
28771 * lto-streamer-in.c (lto_read_body_or_constructor,
28772 lto_input_toplevel_asms): Likewise.
28773 (lto_input_mode_table): New function.
28774 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
28775 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
28776 Use bp_pack_machine_mode.
28777 * real.h (struct real_format): Add name field.
28778 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
28779 (class lto_input_block): Add mode_table member.
28780 (lto_input_block::lto_input_block): Add mode_table_ argument,
28781 initialize mode_table.
28782 (struct lto_file_decl_data): Add mode_table field.
28783 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
28784 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
28785 unpack_ts_decl_common_value_fields,
28786 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
28787 * tree-streamer.c (streamer_mode_table): New variable.
28788 * real.c (ieee_single_format, mips_single_format,
28789 motorola_single_format, spu_single_format, ieee_double_format,
28790 mips_double_format, motorola_double_format,
28791 ieee_extended_motorola_format, ieee_extended_intel_96_format,
28792 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
28793 ibm_extended_format, mips_extended_format, ieee_quad_format,
28794 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
28795 decimal_single_format, decimal_double_format, decimal_quad_format,
28796 ieee_half_format, arm_half_format, real_internal_format): Add name
28797 field.
28798 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
28799
28800 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
28801
28802 PR target/65161
28803 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
28804 reordering for selective scheduling.
28805
28806 2015-02-26 Terry Guo <terry.guo@arm.com>
28807
28808 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
28809 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
28810 (arm_arch_no_volatile_ce): Declare new global variable.
28811 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
28812 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
28813 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
28814 (TARGET_NO_VOLATILE_CE): New macro.
28815 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
28816 volatile memory access in IT block
28817
28818 2015-02-25 Kai Tietz <ktietz@redhat.com>
28819
28820 PR tree-optimization/61917
28821 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
28822 that reduc_def_stmt is null.
28823
28824 2015-02-25 Martin Liska <mliska@suse.cz>
28825
28826 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
28827 hard register variables.
28828
28829 2015-02-25 Kai Tietz <ktietz@redhat.com>
28830
28831 PR target/64212
28832 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
28833 (symtab::noninterposable_alias): Likewise.
28834
28835 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
28836
28837 PR target/65167
28838 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
28839 bounds registers.
28840 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
28841
28842 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
28843
28844 PR target/64997
28845 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
28846 as split condition; force split via '#' in output pattern.
28847
28848 2015-02-25 Richard Biener <rguenther@suse.de>
28849 Kai Tietz <ktietz@redhat.com>
28850
28851 PR tree-optimization/61917
28852 * tree-vect-loop.c (vectorizable_reduction): Allow
28853 vect_internal_def without reduction to exit graceful.
28854
28855 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
28856
28857 PR target/65196
28858 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
28859 only with NONDEBUG_INSN_P.
28860
28861 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
28862
28863 Use variadic macros with avr-log.c.
28864
28865 * config/avr/avr-protos.h (avr_vdump): New prototype.
28866 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
28867 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
28868 * config/avr/avr-log.c: Adjust comments.
28869 (avr_vdump): New function.
28870 (avr_vadump): Pass caller as 2nd argument instead of format string.
28871 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
28872 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
28873
28874 2015-02-25 Jakub Jelinek <jakub@redhat.com>
28875
28876 PR lto/64374
28877 * target.def (target_option_stream_in): New target hook.
28878 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
28879 targetm.target_option.post_stream_in if non-NULL.
28880 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
28881 * doc/tm.texi: Updated.
28882 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
28883 function.
28884 (TARGET_OPTION_POST_STREAM_IN): Redefine.
28885
28886 2015-02-24 Jeff Law <law@redhat.com>
28887
28888 PR target/65117
28889 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
28890 of operand 0 and operand 2.
28891 (zero_cost_loop_end, loop_end): Similarly.
28892
28893 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
28894
28895 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
28896 CXX_MEM_STAT_INFO.
28897
28898 2015-02-24 DJ Delorie <dj@redhat.com>
28899
28900 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
28901 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
28902 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
28903 instead of hardcoding SImode.
28904
28905 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
28906
28907 * omp-low.c (create_omp_child_function): Tag entrypoint
28908 functions with a special attribute.
28909
28910 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
28911
28912 PR target/65058
28913 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
28914
28915 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
28916
28917 PR rtl-optimization/65123
28918 * lra-remat.c (operand_to_remat): Check hard regs in insn
28919 definition too.
28920
28921 2015-02-24 Nick Clifton <nickc@redhat.com>
28922
28923 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
28924 to the assembler.
28925
28926 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
28927
28928 PR libgomp/64625
28929 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
28930 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
28931 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
28932 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
28933 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
28934 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
28935 (BUILT_IN_GOACC_PARALLEL): Specify as
28936 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
28937 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
28938 * builtin-types.def
28939 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28940 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28941 Remove function types.
28942 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
28943 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28944 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28945 New function types.
28946
28947 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
28948
28949 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
28950
28951 2015-02-24 Jakub Jelinek <jakub@redhat.com>
28952
28953 PR tree-optimization/65170
28954 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
28955 if val[1] < 0, clear also val[2] and return 3.
28956
28957 2015-02-24 Alan Modra <amodra@gmail.com>
28958
28959 PR target/65172
28960 * config/rs6000/rs6000.c (get_memref_parts): Only return true
28961 when *base is a reg. Handle nested plus addresses. Simplify
28962 pre_modify test.
28963
28964 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
28965
28966 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
28967 use natural alignment when optimizing for size.
28968
28969 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
28970
28971 PR target/65153
28972 * config/sh/sh.md (movsicc_true+3): Remove peephole.
28973 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
28974 * config/sh/sh.c (replace_n_hard_rtx): Remove.
28975
28976 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
28977
28978 PR fortran/63427
28979 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
28980 too big for a wide_int. Implement missing wrapping operation.
28981
28982 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
28983
28984 PR target/65163
28985 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
28986 instead of const_int 4294901760.
28987
28988 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
28989
28990 * config/avr/t-avr: Fix typo in comment.
28991
28992 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
28993
28994 * doc/rtl.texi (fma): Clarify documentation.
28995
28996 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
28997
28998 PR debug/58123
28999 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
29000 over input_location.
29001
29002 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
29003
29004 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
29005 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
29006 restrict alignments to absolute_biggest_alignment.
29007 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
29008 Define.
29009 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
29010 * doc/tm.texi: Regenerate.
29011 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
29012
29013 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
29014
29015 PR target/64172
29016 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
29017
29018 2015-02-20 Richard Biener <rguenther@suse.de>
29019
29020 PR tree-optimization/65136
29021 * tree-ssa-propagate.c: Include cfgloop.h.
29022 (replace_phi_args_in): Avoid replacing loop latch edge PHI
29023 arguments with constants.
29024
29025 2015-02-20 Jakub Jelinek <jakub@redhat.com>
29026 Martin Liska <mliska@suse.cz>
29027
29028 PR target/63892
29029 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
29030 don't try to create_thunk if stdarg_p. If
29031 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
29032 redirect_callers if possible.
29033 (sem_item_optimizer::execute): Call unregister_hooks here...
29034 (ipa_icf_driver): ... instead of here.
29035
29036 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29037
29038 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
29039 Mark operand 0 as earlyclobber in 2nd alternative.
29040 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
29041 Write negated shift amount into QI lowpart operand 0 and use it
29042 in the shift step.
29043 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
29044
29045 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
29046
29047 * cgraph.h (clone_function_name_1): Declare.
29048 * cgraphclones.c (clone_function_name_1): New function.
29049 (clone_function_name): Use it.
29050 * lto-partition.c: Include "stringpool.h".
29051 (must_not_rename, maybe_rewrite_identifier)
29052 (validize_symbol_for_target): New static functions.
29053 (privatize_symbol_name): Use must_not_rename.
29054 (promote_symbol): Call validize_symbol_for_target.
29055 (lto_promote_cross_file_statics): Likewise.
29056 (lto_promote_statics_nonwpa): Likewise.
29057
29058 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
29059
29060 PR target/64452
29061 * config/avr/avr.md (pushhi_insn): New insn.
29062 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
29063
29064 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
29065 Jakub Jelinek <jakub@redhat.com>
29066
29067 * tree-streamer.c (preload_common_nodes): Don't preload
29068 TI_VA_LIST* for offloading.
29069 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
29070 in_lto_p.
29071
29072 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
29073
29074 * config/pa/pa.c (pa_emit_move_sequence): Always force
29075 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
29076 note on insn.
29077
29078 * config/pa/pa.c (pa_reloc_rw_mask): New function.
29079 (TARGET_ASM_RELOC_RW_MASK): Define.
29080 (pa_cannot_force_const_mem): Revert previous change.
29081
29082 2015-02-19 Martin Jambor <mjmabor@suse.cz>
29083 Jan Hubicka <hubicka@ucw.cz>
29084
29085 PR ipa/65028
29086 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
29087 across jump functions.
29088
29089 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
29090
29091 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
29092
29093 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
29094
29095 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
29096
29097 2015-02-19 Richard Henderson <rth@redhat.com>
29098
29099 PR middle-end/65074
29100 * varasm.c (default_binds_local_p_2): Don't test node->definition;
29101 test DECL_EXTERNAL independent of symtab_node.
29102
29103 2015-02-19 Jakub Jelinek <jakub@redhat.com>
29104
29105 PR lto/65012
29106 * varpool.c (varpool_node::get_constructor): Return early
29107 if this->lto_file_data is NULL.
29108
29109 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29110
29111 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
29112 (rank_for_schedule_debug): Update.
29113 (ready_sort): Make static. Move sorting logic to ...
29114 (ready_sort_debug, ready_sort_real): New static functions.
29115 (schedule_block): Sort both debug insns and real insns in preparation
29116 for ready list trimming. Improve debug output.
29117 * sched-int.h (ready_sort): Remove global declaration.
29118
29119 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
29120
29121 * ipa-icf.c (sem_function::equals_private): Adjust.
29122 (sem_function::bb_dict_test): Take a vec<int> * instead of
29123 auto_vec<int>.
29124 * ipa-icf.h (bb_dict_test): Likewise.
29125
29126 2015-02-18 Jakub Jelinek <jakub@redhat.com>
29127
29128 PR gcov-profile/64634
29129 * tree-eh.c (frob_into_branch_around): Fix up typos
29130 in function comment.
29131 (lower_catch): Put eh_seq resulting from EH lowering of
29132 the cleanup sequence after the cleanup rather than before it.
29133
29134 2015-02-18 Tom de Vries <tom@codesourcery.com>
29135
29136 * common.opt (fstdarg-opt): New option.
29137 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
29138 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
29139 (@item -fstdarg-opt): New item.
29140
29141 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
29142
29143 PR target/65064
29144 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
29145 for common symbols.
29146
29147 2015-02-18 Jakub Jelinek <jakub@redhat.com>
29148
29149 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
29150 insn-modes.h.
29151 (ALL_HOST_OBJS): Add mkoffload.o.
29152 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
29153
29154 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
29155
29156 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
29157 (compare_virtual_tables): Be smarter about skipping typeinfos;
29158 do sane output on virtual table table mismatch.
29159 (warn_odr): Be ready for forward declarations of enums;
29160 output sane info on base mismatch and virtual table mismatch.
29161 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
29162 when only one type is polymorphic.
29163 (get_odr_type): Fix hashtable corruption.
29164 (dump_odr_type): Dump mangled names.
29165
29166 2015-02-18 Richard Biener <rguenther@suse.de>
29167
29168 PR tree-optimization/65063
29169 * tree-predcom.c (determine_unroll_factor): Return 1 if we
29170 have replaced looparound PHIs.
29171
29172 2015-02-18 Martin Liska <mliska@suse.cz>
29173
29174 * lto-streamer.c (lto_streamer_init): Encapsulate
29175 streamer_check_handled_ts_structures with checking macro.
29176
29177 2015-02-18 Jakub Jelinek <jakub@redhat.com>
29178
29179 PR ipa/65087
29180 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
29181 section if !implicit_section.
29182 (cgraph_node::create_version_clone_with_body): Likewise.
29183 * trans-mem.c (ipa_tm_create_version): Likewise.
29184
29185 2015-02-18 Richard Biener <rguenther@suse.de>
29186
29187 PR tree-optimization/62217
29188 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
29189 into BIVs.
29190
29191 2015-02-18 Marek Polacek <polacek@redhat.com>
29192
29193 PR sanitizer/65081
29194 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
29195 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
29196 is in range [-16K, -1]. Don't issue run-time error if
29197 (ptr > ptr + offset).
29198
29199 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
29200
29201 * doc/install.texi (nvptx-*-none): New section.
29202 * doc/invoke.texi (Nvidia PTX Options): Likewise.
29203 * config/nvptx/nvptx.opt: Update.
29204
29205 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
29206 (access_check): New functions, copied from
29207 config/i386/intelmic-mkoffload.c.
29208 (main): For non-installed testing, look in all COMPILER_PATHs for
29209 GCC_INSTALL_NAME.
29210
29211 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
29212
29213 2015-02-18 Andrew Pinski <apinski@cavium.com>
29214 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29215
29216 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
29217 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
29218
29219 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
29220
29221 * ipa-visibility.c (function_and_variable_visibility): Only
29222 check locality if node is not already local.
29223 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
29224 call_for_symbol_and_aliases instead of
29225 call_for_symbol_thunks_and_aliases.
29226 (ipa_inline): Likewise.
29227 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
29228 first walk aliases.
29229 * ipa.c (symbol_table::remove_unreachable_nodes): Use
29230 call_for_symbol_and_aliases.
29231 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
29232 (ipa_propagate_frequency_1): Use it; use opt_for_fn
29233 (ipa_propagate_frequency): Update.
29234 (ipa_profile): Add opt_for_fn gueards.
29235
29236 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
29237
29238 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
29239 * doc/invoke.texi (SH options): Document it.
29240 * config/sh/sh.c (sh_insn_length_adjustment): Check
29241 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
29242
29243 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
29244
29245 * common.opt (fipa-cp-alignment): New.
29246 * ipa-cp.c (ipcp_store_alignment_results): Check
29247 flag_ipa_cp_alignment.
29248 * opts.c (default_options_table): Enable -fipa-cp-alignment for
29249 -O2.
29250 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
29251 * doc/invoke.texi: Document -fipa-cp-alignment.
29252
29253 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
29254
29255 PR target/64793
29256 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
29257 to nil. Adjust comments.
29258
29259 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
29260
29261 * ipa-visibility.c (function_and_variable_visibility): Only
29262 check locality if node is not already local.
29263 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
29264 call_for_symbol_and_aliases instead of
29265 call_for_symbol_thunks_and_aliases.
29266 (ipa_inline): Likewise.
29267 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
29268 first walk aliases.
29269 * ipa.c (symbol_table::remove_unreachable_nodes): Use
29270 call_for_symbol_and_aliases.
29271 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
29272 (ipa_propagate_frequency_1): Use it; use opt_for_fn
29273 (ipa_propagate_frequency): Update.
29274 (ipa_profile): Add opt_for_fn guards.
29275
29276 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
29277
29278 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
29279 skipping of "strange" tokens.
29280
29281 2015-02-17 Jeff Law <law@redhat.com>
29282
29283 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
29284 obsolete comment.
29285
29286 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
29287
29288 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
29289 as forcing a HARD_DEP between instructions, thereby
29290 disallowing rewriting to break dependencies.
29291
29292 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
29293
29294 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
29295 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
29296 variables in boundary that have no inlitalizer encoded and are
29297 not aliases.
29298 * varasm.c (default_binds_local_p_2): External definitions do not
29299 count as definitions here.
29300
29301 2015-02-16 Jeff Law <law@redhat.com>
29302
29303 PR tree-optimization/64823
29304 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
29305 statements.
29306 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
29307 threading through blocks with PHIs, but no statements.
29308 (thread_through_normal_block): Distinguish between blocks where
29309 we did not process all the statements and blocks with no statements.
29310
29311 2015-02-16 Jakub Jelinek <jakub@redhat.com>
29312 James Greenhalgh <james.greenhalgh@arm.com>
29313
29314 PR ipa/64963
29315 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
29316 section if not linkonce. Fix up formatting.
29317 (cgraph_node::create_version_clone_with_body): Copy section.
29318 * trans-mem.c (ipa_tm_create_version): Likewise.
29319
29320 2015-02-16 Richard Biener <rguenther@suse.de>
29321
29322 PR tree-optimization/65077
29323 * tree-ssa-structalias.c (get_constraint_for_1): Handle
29324 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
29325 (find_func_aliases): Allow float values to carry pointers again.
29326
29327 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
29328
29329 * doc/install.texi (Specific): Reorder targets list to put
29330 aarch64 in alphabetical order. Add a link to aarch64*-*-*
29331 from the top menu.
29332
29333 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
29334 David Edelsohn <dje.gcc@gmail.com>
29335
29336 PR target/65058
29337 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
29338 mapping class to external variable or function reference.
29339 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
29340 mapping class.
29341
29342 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
29343
29344 PR target/53348
29345 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
29346 ASM_WEAKEN_DECL if defined.
29347
29348 2015-02-16 Richard Biener <rguenther@suse.de>
29349
29350 PR lto/65015
29351 * varasm.c (default_file_start): For LTO produced units
29352 emit <artificial> as file directive.
29353
29354 2015-02-16 Richard Biener <rguenther@suse.de>
29355
29356 PR tree-optimization/63593
29357 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
29358 stmts and releasing SSA names until...
29359 (execute_pred_commoning): ... after processing all chains.
29360
29361 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
29362
29363 PR ipa/65059
29364 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
29365 external functions.
29366
29367 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
29368
29369 * doc/bugreport.texi: Adjust section titles throughout the file
29370 to use "Title Case".
29371 * doc/extend.texi: Likewise.
29372 * doc/gcov.texi: Likewise.
29373 * doc/implement-c.texi: Likewise.
29374 * doc/implement-cxx.texi: Likewise.
29375 * doc/invoke.texi: Likewise.
29376 * doc/objc.texi: Likewise.
29377 * doc/standards.texi: Likewise.
29378 * doc/trouble.texi: Likewise.
29379
29380 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
29381
29382 * cgraph.h (symtab_node::has_aliases_p): Simplify.
29383 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
29384 * tree.c (lookup_binfo_at_offset): Make static.
29385 (get_binfo_at_offset): Do not shadow offset; add explanatory
29386 comment.
29387
29388 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
29389
29390 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
29391 for all floading point loads and stores except those using a register
29392 index address.
29393 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
29394 to a register.
29395
29396 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
29397
29398 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
29399 (do_estimate_growth_1): Record if any uninlinable edge was seen.
29400 (estimate_growth): Handle uninlinable edges correctly.
29401 (check_callers): New.
29402 (growth_likely_positive): Handle aliases correctly.
29403
29404 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
29405
29406 * ipa-chkp.c: Use iterate_direct_aliases.
29407 * symtab.c (resolution_used_from_other_file_p): Move inline.
29408 (symtab_node::create_reference): Fix formating.
29409 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
29410 (symtab_node::iterate_reference): Move inline.
29411 (symtab_node::iterate_referring): Move inline.
29412 (symtab_node::iterate_direct_aliases): Move inline.
29413 (symtab_node::used_from_object_file_p_worker): Inline into ...
29414 (symtab_node::used_from_object_file_p): ... this one; move inline.
29415 (symtab_node::call_for_symbol_and_aliases): Move inline;
29416 use iterate_direct_aliases.
29417 (symtab_node::call_for_symbol_and_aliases_1): New method.
29418 (cgraph_node::call_for_symbol_and_aliases): Move inline;
29419 use iterate_direct_aliases.
29420 (cgraph_node::call_for_symbol_and_aliases_1): New method.
29421 (varpool_node::call_for_node_and_aliases): Rename to ...
29422 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
29423 use iterate_direct_aliases.
29424 (varpool_node::call_for_symbol_and_aliases_1): New method.
29425 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
29426 (ipa_discover_readonly_nonaddressable_var): Update.
29427 * ipa-devirt.c: Fix formating.
29428 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
29429 Move inline.
29430 (cgraph_node::call_for_symbol_and_aliases): Move inline.
29431 (cgraph_node::call_for_symbol_and_aliases_1): New function..
29432 * cgraph.h (used_from_object_file_p_worker): Remove.
29433 (resolution_used_from_other_file_p): Move inline.
29434 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
29435 (symtab_node::iterate_reference): Move inline.
29436 (symtab_node::iterate_referring): Move inline.
29437 (symtab_node::iterate_direct_aliases): Move inline.
29438 (symtab_node::used_from_object_file_p_worker): Inline into ...
29439 (symtab_node::used_from_object_file_p): Move inline.
29440 * tree-emutls.c (ipa_lower_emutls): Update.
29441 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
29442 (varpool_node::call_for_node_and_aliases): Remove.
29443
29444 2015-02-14 Jakub Jelinek <jakub@redhat.com>
29445
29446 PR tree-optimization/62209
29447 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
29448 op == range->exp, insert seq and gimplified code after labels
29449 instead of after the phi.
29450
29451 2015-02-13 Jeff Law <law@redhat.com>
29452
29453 PR bootstrap/65060
29454 Revert my change for tree-optimization/64823.
29455
29456 2015-02-13 Jakub Jelinek <jakub@redhat.com>
29457
29458 PR tree-optimization/65053
29459 * tree-ssa-phiopt.c (value_replacement): When moving assign before
29460 cond, either reset VR on lhs or set it to phi result VR.
29461
29462 2015-02-13 Jeff Law <law@redhat.com>
29463
29464 PR tree-optimization/64823
29465 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
29466 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
29467 threading through blocks with PHIs, but no statements.
29468 (thread_through_normal_block): Distinguish between blocks where
29469 we did not process all the statements and blocks with no statements.
29470
29471 PR rtl-optimization/47477
29472 * match.pd (convert (plus/minus (convert @0) (convert @1): New
29473 simplifier to narrow arithmetic.
29474
29475 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
29476
29477 PR ipa/65028
29478 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
29479 polymorphic call info when type is not known to be preserved.
29480
29481 2015-02-13 Maritn Jambor <mjambor@suse.cz>
29482
29483 PR ipa/65028
29484 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
29485 (inline_call): Use it.
29486
29487 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
29488
29489 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
29490 GOMP_DEVICE_NVIDIA_PTX.
29491
29492 2015-02-13 Jakub Jelinek <jakub@redhat.com>
29493
29494 PR ipa/65034
29495 * stmt.c (emit_case_nodes): Use void_type_node instead of
29496 NULL_TREE as LABEL_DECL type.
29497
29498 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
29499
29500 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
29501 constraints.
29502 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
29503 symbolic references to data to be forced to constant memory on the
29504 SOM target.
29505
29506 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
29507
29508 PR tree-optimization/65002
29509 * tree-cfg.c (pass_data_fixup_cfg): Don't update
29510 SSA on start.
29511 * tree-sra.c (some_callers_have_no_vuse_p): New.
29512 (ipa_early_sra): Reject functions whose callers
29513 assume function is read only.
29514
29515 2015-02-13 Richard Biener <rguenther@suse.de>
29516
29517 PR lto/65015
29518 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
29519 for LTO produced CUs.
29520
29521 2015-02-13 Bin Cheng <bin.cheng@arm.com>
29522
29523 PR tree-optimization/64705
29524 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
29525 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
29526 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
29527 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
29528 expand_simple_operations.
29529
29530 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
29531 Richard Henderson <rth@redhat.com>
29532
29533 PR rtl/32219
29534 * cgraphunit.c (cgraph_node::finalize_function): Set definition
29535 before notice_global_symbol.
29536 (varpool_node::finalize_decl): Likewise.
29537 * varasm.c (default_binds_local_p_2): Rename from
29538 default_binds_local_p_1, add weak_dominate argument. Use direct
29539 returns instead of assigning to local variable. Unify varpool and
29540 cgraph paths via symtab_node. Reject undef weak variables before
29541 testing visibility. Reorder tests for simplicity.
29542 (default_binds_local_p): Use default_binds_local_p_2.
29543 (default_binds_local_p_1): Likewise.
29544 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
29545 via symtab_node.
29546 (default_elf_asm_output_external): Emit visibility when specified.
29547
29548 2015-02-13 Alan Modra <amodra@gmail.com>
29549
29550 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
29551 code setting up r11 for out-of-line fp restore.
29552
29553 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
29554
29555 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
29556 (muser-mode): Likewise.
29557
29558 2015-02-13 Alan Modra <amodra@gmail.com>
29559
29560 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
29561 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
29562
29563 2015-02-12 David Howells <dhowells@redhat.com>
29564
29565 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
29566 warning.
29567 * tree-ssa-uninit.c (dump_predicates): Likewise.
29568 * opts.c (print_filtered_help): Likewise.
29569
29570 2015-02-12 Jakub Jelinek <jakub@redhat.com>
29571
29572 * dwarf2out.c (output_die): Use "%s", name instead of name to
29573 avoid -Wformat-security warning.
29574
29575 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
29576 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
29577 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
29578 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
29579
29580 2015-02-12 Jason Merrill <jason@redhat.com>
29581
29582 * common.opt (-flifetime-dse): New.
29583
29584 2015-02-12 Jakub Jelinek <jakub@redhat.com>
29585
29586 PR sanitizer/65019
29587 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
29588
29589 PR tree-optimization/65014
29590 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
29591 use original second operand of arg0 or arg1 instead of
29592 that adjusted by STRIP_NOPS.
29593
29594 2015-02-11 Jeff Law <law@redhat.com>
29595
29596 PR target/63347
29597 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
29598 that needs to be queued, just queue it for a single cycle.
29599
29600 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
29601
29602 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
29603 bodies of thunks; comment on why.
29604 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
29605 symbols are extern.
29606
29607 2015-02-11 Richard Henderson <rth@redhat.com>
29608
29609 PR sanitize/65000
29610 * tree-eh.c (mark_reachable_handlers): Mark source and destination
29611 regions of __builtin_eh_copy_values.
29612
29613 2015-02-11 Jakub Jelinek <jakub@redhat.com>
29614
29615 PR middle-end/65003
29616 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
29617 ultimate alias is MEM with SYMBOL_REF satisfying
29618 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
29619 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
29620
29621 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
29622
29623 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
29624 "diagnostic-core.h".
29625 (main): Initialize progname, and call diagnostic_initialize.
29626
29627 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
29628 instead of __OPENMP_TARGET__.
29629
29630 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
29631 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
29632 hard-coding PTX_ID.
29633
29634 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
29635
29636 * doc/sourcebuild.texi (pie_enabled): Document.
29637
29638 2015-02-11 Martin Liska <mliska@suse.cz>
29639
29640 PR ipa/64813
29641 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
29642 a return value for call to a function that is noreturn.
29643
29644 2015-02-11 Richard Biener <rguenther@suse.de>
29645
29646 PR lto/65015
29647 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
29648 and -fresolution.
29649
29650 2015-02-11 Andrew Pinski <apinski@cavium.com>
29651
29652 PR target/64893
29653 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
29654 Change the first argument type to size_type_node and add another
29655 size_type_node.
29656 (aarch64_simd_expand_builtin): Handle the new argument to
29657 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
29658 print an out when the first two arguments are not
29659 nonzero integer constants.
29660 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
29661 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
29662
29663 2015-02-11 Jakub Jelinek <jakub@redhat.com>
29664
29665 PR target/61925
29666 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
29667 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
29668 (ix86_set_current_function): Rewritten.
29669 (ix86_add_new_builtins): Temporarily clear current_target_pragma
29670 when creating builtin fndecls.
29671
29672 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
29673
29674 PR ipa/65005
29675 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
29676 function.
29677 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
29678 have no comdat group.
29679 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
29680 (lto_output_varpool_node): Always output alias info.
29681 (output_refs): Output refs of boundary aliases, too.
29682 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
29683 (output_symtab): Output call eges in thunks in boundary.
29684 (get_alias_symbol): Remove.
29685 (input_node, input_varpool_node): Do not special case weakrefs.
29686 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
29687 alias and thunks targets in the boundary; do not take removed symbols
29688 from their comdat groups.
29689 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
29690 (cgraph_node::global_info): Remove.
29691 (cgraph_node::rtl_info): Look through aliases and thunks.
29692 * cgrpah.h (global_info): Remove.
29693 (non_local_p): Remove.
29694
29695 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
29696 Sandra Loosemore <sandra@codesourcery.com>
29697
29698 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
29699 to inline asm. List dialects in proper order.
29700
29701 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
29702 Sandra Loosemore <sandra@codesourcery.com>
29703
29704 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
29705
29706 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
29707
29708 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
29709 modified) reference to Solaris.
29710
29711 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
29712
29713 * doc/extend.texi (Extended Asm): Fix typos.
29714
29715 2015-02-10 Jakub Jelinek <jakub@redhat.com>
29716
29717 PR sanitizer/65004
29718 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
29719
29720 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
29721
29722 PR target/64661
29723 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
29724 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
29725 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
29726 * config/sh/constraints.md (Ara, Add): New constraints.
29727 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
29728 predicates.
29729 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
29730 atomic_mem_operand_0. Don't use force_reg on the memory address.
29731 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
29732 Sra constraint. Convert to insn_and_split. Add workaround for
29733 PR 64974.
29734 (atomic_compare_and_swap<mode>_hard): Copy to
29735 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
29736 Use atomic_mem_operand_0 predicate.
29737 (atomic_compare_and_swap<mode>_soft_gusa,
29738 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
29739 AraAdd constraints.
29740 (atomic_compare_and_swap<mode>_soft_tcb,
29741 atomic_compare_and_swap<mode>_soft_imask,
29742 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
29743 atomic_mem_operand_0 predicate and SraSdd constraints.
29744 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
29745 constraint.
29746 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
29747 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
29748 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
29749 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
29750 force_reg on the memory address.
29751 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
29752 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
29753 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
29754 atomic_mem_operand_1 predicate and Sra constraint.
29755 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
29756 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
29757 Use atomic_mem_operand_1 predicate.
29758 (atomic_<fetchop_name><mode>_hard): Copy to
29759 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
29760 Use atomic_mem_operand_1 predicate.
29761 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
29762 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
29763 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
29764 insn_and_split. Use atomic_mem_operand_1 predicate.
29765 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
29766 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
29767 Use atomic_mem_operand_1 predicate.
29768 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
29769 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
29770 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
29771 in generated insn with original mem operand before emitting the insn.
29772 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
29773 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
29774 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
29775 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
29776 Use atomic_mem_operand_1 predicate and AraAdd constraints.
29777 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
29778 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
29779 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
29780 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
29781 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
29782 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
29783 atomic_not_fetch<mode>_soft_tcb,
29784 atomic_<fetchop_name>_fetch<mode>_soft_imask,
29785 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
29786 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
29787 Use atomic_mem_operand_1 predicate and SraSdd constraints.
29788
29789 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
29790
29791 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
29792 and 3 earlyclobber operands.
29793
29794 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
29795
29796 * common.opt (fstack-reuse): Mark as optimization.
29797
29798 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
29799
29800 PR ipa/64982
29801 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
29802
29803 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
29804
29805 PR tree-optimization/64326
29806 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
29807
29808 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
29809
29810 PR gcov-profile/61889
29811 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
29812
29813 2015-02-10 Richard Biener <rguenther@suse.de>
29814
29815 PR tree-optimization/64995
29816 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
29817 value we use is final.
29818 (visit_reference_op_store): Always valueize op.
29819 (visit_use): Properly valueize vuses.
29820
29821 2015-02-10 Richard Biener <rguenther@suse.de>
29822
29823 PR tree-optimization/64909
29824 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
29825 pass a scalar-stmt count estimate to the cost model.
29826 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
29827
29828 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
29829
29830 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
29831 enabled by default together with var-tracking.
29832
29833 2015-02-10 Nick Clifton <nickc@redhat.com>
29834
29835 * config/rl78/rl78.c: Remove DIV attribute code accidentally
29836 included in previous rl78 commit.
29837
29838 2015-02-10 Richard Biener <rguenther@suse.de>
29839
29840 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
29841 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
29842 return the bitpack.
29843
29844 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
29845
29846 PR gcov-profile/61889
29847 * config.in: regenerate.
29848 * configure.in: Likewise.
29849 * configure.ac: Check for ftw.h.
29850 * gcov-tool.c: Check for ftw.h before using nftw.
29851
29852 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
29853
29854 PR lto/64076
29855 * ipa-visibility.c (update_visibility_by_resolution_info): Only
29856 assert when not in lto mode.
29857
29858 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
29859
29860 * ira-color.c (setup_left_conflict_sizes_p): Simplify
29861 initialization/assignment of conflict_size.
29862
29863 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
29864
29865 PR ipa/64978
29866 * ipa-cp.c (gather_caller_stats): Skip thunks.
29867 (propagate_constants_topo): Skip aliases.
29868
29869 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
29870
29871 PR target/64761
29872 * config/sh/sh.c (sh_option_override): Don't change
29873 -freorder-blocks-and-partition to -freorder-blocks even when
29874 unwinding is enabled.
29875 (sh_can_follow_jump): Return false if the followee jump is
29876 a crossing jump when -freorder-blocks-and-partition is specified.
29877 * config/sh/sh.md (*jump_compact_crossing): New insn.
29878
29879 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
29880 Kaz Kojima <kkojima@gcc.gnu.org>
29881
29882 PR target/64761
29883 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
29884 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
29885 (sh_can_redirect_branch): Rename to ...
29886 (sh_can_follow_jump): ... this. Constify argument types.
29887 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
29888 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
29889 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
29890 * doc/tm.texi: Regenerate.
29891
29892 2015-02-09 Jakub Jelinek <jakub@redhat.com>
29893
29894 PR sanitizer/64981
29895 * builtins.c (expand_builtin): Call targetm.expand_builtin
29896 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
29897
29898 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29899
29900 PR ipa/61548
29901 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
29902
29903 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29904
29905 PR ipa/63566
29906 * ipa-icf.c (set_local): New function.
29907 (sem_function::merge): Use it.
29908
29909 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29910
29911 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
29912 (add_type_duplicate): Fix comparison of BINFOs.
29913
29914 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29915
29916 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
29917 on getting VOID pointer.
29918
29919 2015-02-09 Jakub Jelinek <jakub@redhat.com>
29920
29921 PR target/64979
29922 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
29923 va_list escapes.
29924
29925 2015-02-09 Richard Biener <rguenther@suse.de>
29926
29927 * genmatch.c (replace_id): Copy expr_type.
29928
29929 2015-02-09 Richard Biener <rguenther@suse.de>
29930
29931 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
29932 (streamer_write_tree_bitfields): Declare.
29933 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
29934 properly unpack padding.
29935 (unpack_value_fields): Inline ...
29936 (streamer_read_tree_bitfields): ... here.
29937 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
29938 and properly add padding bits.
29939 (streamer_pack_tree_bitfields): Fold into ...
29940 (streamer_write_tree_bitfields): ... this new function,
29941 exposing the bitpack object.
29942 * lto-streamer-out.c (lto_write_tree_1): Call
29943 streamer_write_tree_bitfields.
29944
29945 2015-02-09 Richard Biener <rguenther@suse.de>
29946
29947 PR tree-optimization/54000
29948 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
29949 (struct ivopts_data): Add loop_loc member.
29950 (tree_ssa_iv_optimize_loop): Dump loop location.
29951 (create_new_ivs): Likewise, also dump number of IVs generated.
29952
29953 2015-02-09 Martin Liska <mliska@suse.cz>
29954
29955 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
29956 just if not yet registered.
29957 (ipa_icf_generate_summary): Register callgraph hooks.
29958
29959 2015-02-08 Andrew Pinski <apinski@cavium.com>
29960
29961 * config/aarch64/aarch64.c (gty_dummy): Delete.
29962
29963 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29964
29965 PR ipa/63566
29966 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
29967 (cgraph_node::local_p): Remove thunk related FIXME.
29968
29969 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29970
29971 PR ipa/63566
29972 * i386.c (ix86_function_regparm): Look through aliases to see if callee
29973 is local and optimized.
29974 (ix86_function_sseregparm): Likewise; also use target's SSE math
29975 settings; error out instead of silently generating wrong code
29976 on mismatches.
29977 (init_cumulative_args): Look through aliases.
29978
29979 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29980
29981 PR ipa/63566
29982 * ipa-split.c (execute_split_functions): Split if function has aliases.
29983
29984 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29985
29986 PR ipa/63566
29987 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
29988 aliases before trying to expand it.
29989 (cgraph_node::expand_thunk): Fix formating.
29990
29991 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
29992
29993 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
29994 (Using Assembly Language with C): Expand introduction.
29995 (Basic Asm): Copy-edit. Add more information about uses of
29996 basic asm.
29997 (Extended Asm): Copy-edit. Document new escape syntax and
29998 %l[label] syntax.
29999 (Global Reg Vars): Copy-edit.
30000 (Local Reg Vars): Likewise.
30001
30002 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
30003
30004 PR debug/2714
30005 PR bootstrap/64256
30006 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
30007 (DBX_CONTIN_CHAR): Define.
30008
30009 2015-02-06 Sebastian Pop <s.pop@samsung.com>
30010 Brian Rzycki <b.rzycki@samsung.com>
30011
30012 PR tree-optimization/64878
30013 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
30014 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
30015 Stop recursion at loop phi nodes after having visited a loop phi node.
30016
30017 2015-02-06 Jakub Jelinek <jakub@redhat.com>
30018
30019 * toplev.c (process_options): Change flag_ipa_ra before creating
30020 optimization_{default,current}_node.
30021
30022 PR ipa/64896
30023 * cgraphunit.c (cgraph_node::expand_thunk): If
30024 restype is not is_gimple_reg_type nor the thunk_fndecl
30025 returns aggregate_value_p, set restmp to a temporary variable
30026 instead of resdecl.
30027
30028 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
30029
30030 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
30031
30032 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
30033
30034 PR target/64205
30035 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
30036 add a general secondary reload handler for SDmode, unless we have
30037 both read/write support for SDmode.
30038
30039 2015-02-06 Jakub Jelinek <jakub@redhat.com>
30040
30041 PR middle-end/64937
30042 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
30043 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
30044 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
30045 1 before, push it to abstract_vec.
30046 (dwarf2out_abstract_function): Adjust caller. Don't call
30047 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
30048 DECL_ABSTRACT_P flags for all abstract_vec elts.
30049
30050 2015-02-06 Renlin Li <renlin.li@arm.com>
30051
30052 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
30053 complex gimple.
30054 * tree-ssa.c (execute_update_addresses_taken): Likewise.
30055
30056 2015-02-06 Jeff Law <law@redhat.com>
30057
30058 PR target/64889
30059 * config/h8300/h8300.c (push): New argument "in_prologue".
30060 Pass "in_prologue" along to "F".
30061 (h8300_push_pop): Corresponding changes.
30062 (h8300_expand_prologue): Likewise.
30063 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
30064
30065 2015-02-06 Jakub Jelinek <jakub@redhat.com>
30066
30067 PR rtl-optimization/64957
30068 PR debug/64817
30069 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
30070 IOR rather than for AND.
30071
30072 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
30073
30074 PR target/62631
30075 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
30076 of shift-add and (add + shift) operations. Rename local variable.
30077
30078 2015-02-05 Jeff Law <law@redhat.com>
30079
30080 PR target/17306
30081 * config/h8300/constraints.md (U): Correctly dectect
30082 "eightbit_data" memory addresses.
30083 * config/h8300/h8300.c (eightbit_constant_address_p): Also
30084 handle (const (plus (symbol_ref (x)))) where x is declared
30085 as an 8-bit data memory address.
30086 * config/h8300/h8300.md (call, call_value): Correctly detect
30087 "funcvec" functions.
30088
30089 PR target/43264
30090 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
30091 24 to 28 bits for the H8/300.
30092
30093 2015-02-06 Alan Modra <amodra@gmail.com>
30094
30095 PR target/64876
30096 * config/rs6000/rs6000.c (chain_already_loaded): New function.
30097 (rs6000_call_aix): Use it.
30098
30099 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
30100
30101 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
30102 check.
30103
30104 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
30105
30106 * config/h8300/constraints.md ("U" constraint): Use strict
30107 variant of REG_OK_FOR_BASE_P after reload has started.
30108
30109 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
30110
30111 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
30112 define to zero if !TARGET_NEON.
30113 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
30114
30115 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30116 Trevor Saunders <tsaunders@mozilla.com>
30117
30118 PR ipa/61548
30119 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
30120
30121 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30122
30123 PR ipa/61548
30124 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
30125 when removing varpool nodes.
30126
30127 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30128
30129 PR ipa/61548
30130 * varpool.c (varpool_node::remove): Fix order of variables.
30131
30132 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30133
30134 PR ipa/64686
30135 * ipa-inline.c (inline_small_functions): Fix ordering issue between
30136 speculation resolution and key updates.
30137
30138 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30139
30140 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
30141 about not letting any speculative edges unupdated.
30142
30143 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30144
30145 PR gcov/64123
30146 * gcov-io.c (gcov_var): Export.
30147
30148 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30149
30150 PR middle-end/64922
30151 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
30152 edges that become speculative.
30153
30154 2015-02-04 Jakub Jelinek <jakub@redhat.com>
30155
30156 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
30157 or DW_LANG_Fortran08.
30158 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
30159 DW_LANG_Fortran08.
30160 (gen_compile_unit_die): Handle "GNU Fortran2003" and
30161 "GNU Fortran2008" language strings.
30162 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
30163 * langhooks.h (lang_GNU_Fortran): New prototype.
30164 * langhooks.c (lang_GNU_Fortran): New function.
30165 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
30166 lang_GNU_Fortran.
30167
30168 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
30169
30170 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
30171 (RTX_OK_FOR_OLO10_P): Likewise.
30172
30173 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
30174
30175 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
30176
30177 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
30178
30179 PR middle-end/64922
30180 * gimple.c: Include gimple-ssa.h.
30181 (maybe_remove_unused_call_args): New function.
30182 * gimple.h (maybe_remove_unused_call_args): Declare.
30183 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
30184 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
30185 * gimple-fold.c (gimple_fold_call): Likewise.
30186
30187 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
30188
30189 PR rtl-optimization/64905
30190 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
30191 pointer alignment if it isn't needed.
30192
30193 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
30194
30195 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
30196 cortex-a72.cortex-a53.
30197 * config/aarch64/aarch64-tune.md: Regenerate.
30198 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
30199
30200 2015-02-04 Nick Clifton <nickc@redhat.com>
30201
30202 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
30203 inside a MEM.
30204
30205 2015-02-04 Jakub Jelinek <jakub@redhat.com>
30206
30207 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
30208 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
30209 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
30210 of DEF_BUILTIN.
30211 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
30212 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
30213 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
30214 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
30215 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
30216 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
30217 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
30218 * tree-core.h (enum built_in_function): In between
30219 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
30220 for builtins that use DEF_BUILTIN_CHKP macro.
30221
30222 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
30223
30224 PR debug/64817
30225 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
30226 operands for tcc_comparison exprs. Fix typos.
30227
30228 PR debug/64817
30229 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
30230 of two XORs that have an intervening AND or IOR.
30231
30232 PR debug/64817
30233 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
30234 simplification of XOR of AND to not allocate new rtx before
30235 committing to a simplification.
30236
30237 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30238
30239 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
30240 manual swaps in all peepholes.
30241
30242 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30243
30244 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
30245 of manual swapping implementation.
30246 (aarch64_expand_vec_perm_const_1): Likewise.
30247
30248 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
30249
30250 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
30251 (generic_addrcost_table): Remove NAMED_PARAM.
30252 (cortexa57_addrcost_table): Likewise.
30253 (xgene1_addrcost_table): Likewise.
30254 (generic_regmove_table): Likewise.
30255 (cortexa53_regmove_table): Likewise.
30256 (xgene1_regmove_table): Likewise.
30257 (generic_vector_table): Likewise.
30258 (cortexa57_vector_table): Likewise.
30259 (xgene1_vector_table): Likewise.
30260 (generic_tunings): Likewise.
30261 (cortexa53_tunings): Likewise.
30262 (cortexa57_tunings): Likewise.
30263 (xgene1_tunings): Likewise.
30264
30265 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
30266
30267 * config/arm/arm-cores.def: Add cortex-a72 and
30268 cortex-a72.cortex-a53.
30269 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
30270 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
30271 * config/arm/arm-tune.md: Regenerate.
30272 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
30273 "cortex-a72.cortex-a53".
30274 * doc/invoke.texi (ARM Options/-mtune): Likewise.
30275
30276 2015-02-04 Nick Clifton <nickc@redhat.com>
30277
30278 PR target/64408
30279 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
30280 of accepted codes.
30281 (nonimmediate_di_operand): Likewise.
30282
30283 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
30284 prefixes of known F5 using MSP430 MCUs.
30285
30286 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30287
30288 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
30289 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
30290 instead of __builtin_sqrt.
30291
30292 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
30293
30294 * varasm.c (do_assemble_alias): Follow transparent alias
30295 chain for target.
30296 (default_assemble_visibility): Follow transparent alias
30297 chain for decl name.
30298
30299 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
30300
30301 PR middle-end/62103
30302 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
30303 to compute size of referenced value in the constant case.
30304
30305 2015-02-03 Jakub Jelinek <jakub@redhat.com>
30306
30307 PR rtl-optimization/64756
30308 * cse.c (invalidate_dest): New function.
30309 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
30310 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
30311 invalidate and do not record it.
30312
30313 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
30314
30315 PR target/64660
30316 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
30317 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
30318 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
30319 atomic_nand<mode>_soft_tcb): New insns.
30320 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
30321 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
30322 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
30323 Split into atomic_not_fetchsi_hard if operands[0] is unused.
30324 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
30325 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
30326 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
30327 atomic_not<mode>_hard if operands[0] is unused.
30328 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
30329 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
30330 if operands[0] is unused.
30331 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
30332 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
30333 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
30334 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
30335 unused.
30336 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
30337 into atomic_not<mode>_soft_tcb if operands[0] is unused.
30338 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
30339 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
30340 if operands[0] is unused.
30341 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
30342 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
30343 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
30344 atomic_nand_fetchsi_hard if operands[0] is unused.
30345 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
30346 atomic_nand<mode>_hard if operands[0] is unused.
30347 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
30348 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
30349 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
30350 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
30351 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
30352 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
30353 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
30354 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
30355 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
30356 atomic_not<mode>_hard if operands[0] is unused.
30357 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
30358 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
30359 unused.
30360 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
30361 into atomic_not<mode>_soft_tcb if operands[0] is unused.
30362 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
30363 atomic_nand<mode>_hard if operands[0] is unused.
30364 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
30365 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
30366
30367 2015-02-03 David Malcolm <dmalcolm@redhat.com>
30368
30369 PR jit/64810
30370 * Makefile.in (GCC_OBJS): Add gcc-main.o.
30371 * gcc-main.c: New file, containing "main" taken from gcc.c.
30372 * gcc.c (do_self_spec): Free decoded_options.
30373 (class driver): Move declaration to gcc.h.
30374 (main): Move declaration and implementation to new file
30375 gcc-main.c.
30376 (driver_get_configure_time_options): New function.
30377 * gcc.h (class driver): Move this declaration here, from
30378 gcc.c.
30379 (driver_get_configure_time_options): New declaration.
30380
30381 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
30382
30383 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
30384 cross-module inlining.
30385 * cgraph.h (cgraph_node): Add flag merged.
30386 * ipa-icf.c (sem_function::merge): Maintain it.
30387
30388 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
30389
30390 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
30391 instead of OBJECT_P.
30392
30393 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
30394
30395 PR target/62631
30396 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
30397 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
30398 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
30399 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
30400
30401 2015-02-03 Jakub Jelinek <jakub@redhat.com>
30402
30403 PR other/63504
30404 * combine.c (reg_n_sets_max): New variable.
30405 (can_change_dest_mode, reg_nonzero_bits_for_combine,
30406 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
30407 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
30408 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
30409 (rest_of_handle_combine): Initialize reg_n_sets_max.
30410
30411 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
30412
30413 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
30414 if some always_inline was inlined, apply changes before inlining
30415 heuristically.
30416
30417 2015-02-02 David Malcolm <dmalcolm@redhat.com>
30418
30419 PR jit/64810
30420 * config/arm/arm.c (arm_option_override): Set
30421 arm_selected_arch/cpu/tune to NULL on entry.
30422
30423 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
30424 Andrew Pinski <pinskia@gcc.gnu.org>
30425 Jakub Jelinek <jakub@gcc.gnu.org>
30426
30427 PR target/64231
30428 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
30429 integer typing for small model. Use IN_RANGE.
30430
30431 2015-02-02 Richard Biener <rguenther@suse.de>
30432
30433 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
30434 * tree-vrp.c (vrp_valueize_1): Likewise.
30435
30436 2015-02-02 Alan Modra <amodra@gmail.com>
30437
30438 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
30439 than mem for toc_restore.
30440 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
30441 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
30442 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
30443
30444 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
30445
30446 PR target/64047
30447 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
30448 explicit default options.
30449
30450 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
30451
30452 PR ipa/64872
30453 * ipa-utils.c (ipa_merge_profiles): Add release argument.
30454 * ipa-icf.c (sem_function::merge): Do not release body when merging.
30455 * ipa-utils.h (ipa_merge_profiles): Update prototype.
30456
30457 2015-02-01 Jakub Jelinek <jakub@redhat.com>
30458
30459 PR debug/64817
30460 * cfgexpand.c (deep_ter_debug_map): New variable.
30461 (avoid_deep_ter_for_debug): New function.
30462 (expand_debug_expr): If TERed SSA_NAME is in
30463 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
30464 instead of trying to expand SSA_NAME's def stmt.
30465 (expand_debug_locations): When expanding debug bind
30466 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
30467 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
30468 value.
30469 (pass_expand::execute): Call avoid_deep_ter_for_debug on
30470 all debug bind stmts. Delete deep_ter_debug_map after
30471 expand_debug_location if non-NULL and clear it.
30472
30473 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
30474
30475 PR target/64851
30476 * config/sh/sync.md (atomic_fetch_notsi_hard,
30477 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
30478 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
30479 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
30480 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
30481 atomic_not_fetch<mode>_soft_imask): New insns.
30482
30483 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30484
30485 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
30486 (rank_for_schedule_debug): Split from ...
30487 (rank_for_schedule): ... this.
30488 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
30489 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
30490
30491 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
30492
30493 * doc/md.texi (Machine Constraints): Alphabetize table by target.
30494 * doc/extend.texi (x86 Variable Attributes): Move section to
30495 correct alphabetization after renaming.
30496 (x86 Type Attributes): Likewise.
30497 (Target Builtins): Re-alphabetize menu.
30498 (x86 Built-in Functions): Move section to correct alphabetization
30499 after renaming.
30500 (x86 transactional memory intrinsics): Likewise.
30501 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
30502 and x86 Windows Options in table and menu.
30503 (x86 Options): Move section to correct alphabetization after
30504 renaming.
30505 (x86 Windows Options): Likewise.
30506
30507 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
30508
30509 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
30510 preferred names of the architecture and its 32- and 64-bit
30511 variants.
30512 * doc/invoke.texi: Likewise.
30513 * doc/md.texi: Likewise.
30514
30515 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
30516
30517 PR target/64882
30518 * config/i386/predicates.md (address_no_seg_operand): Reject
30519 non-CONST_INT_P operands in invalid mode.
30520
30521 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
30522
30523 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
30524 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
30525 * config/i386/predicates.md (address_no_seg_operand): Call
30526 address_operand with VOIDmode.
30527 (vsib_address_operand): Ditto.
30528 (address_mpx_no_base_operand): Ditto.
30529 (address_mpx_no_index_operand): Ditto.
30530
30531 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
30532
30533 PR target/64688
30534 * lra-constraints.c (original_subreg_reg_mode): New.
30535 (simplify_operand_subreg): Try to simplify subreg of const. Use
30536 original_subreg_reg_mode for it.
30537 (swap_operands): Update original_subreg_reg_mode.
30538 (curr_insn_transform): Set up original_subreg_reg_mode.
30539
30540 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
30541
30542 PR target/64617
30543 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
30544 function.
30545 (process_alt_operands): Use it.
30546 (curr_insn_transform): Check the optional reload pseudo class is
30547 ok for the mode.
30548
30549 2015-01-30 Joseph Myers <joseph@codesourcery.com>
30550
30551 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
30552 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
30553 prototype.
30554 * toplev.h (init_asm_output): Update comment on use of
30555 UNKNOWN_LOCATION with fatal_error.
30556 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
30557 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
30558 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
30559 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
30560 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
30561 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
30562 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
30563 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
30564 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
30565 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
30566 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
30567 fatal_error changed to pass input_location as first argument.
30568
30569 2015-01-30 Martin Liska <mliska@suse.cz>
30570
30571 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
30572 in #pragma GCC diagnostic guards.
30573
30574 2015-01-30 Richard Biener <rguenther@suse.de>
30575
30576 PR tree-optimization/64829
30577 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
30578 not add a widening conversion pattern but hand off extra
30579 widenings to callers.
30580 (vect_recog_widen_mult_pattern): Handle extra widening produced
30581 by vect_handle_widen_op_by_const.
30582 (vect_recog_widen_shift_pattern): Likewise.
30583 (vect_pattern_recog_1): Remove excess vertical space in dumping.
30584 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
30585 (vect_init_vector_1): Likewise.
30586 (vect_get_vec_def_for_operand): Likewise.
30587 (vect_finish_stmt_generation): Likewise.
30588 (vectorizable_load): Likewise.
30589 (vect_analyze_stmt): Likewise.
30590 (vect_is_simple_use): Likewise.
30591
30592 2015-01-29 Jeff Law <law@redhat.com>
30593
30594 * combine.c (try_combine): Fix typo in comment.
30595
30596 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
30597
30598 PR target/64580
30599 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
30600 (rs6000_stack_info): Add assert.
30601 (rs6000_output_savres_externs): New function, split off from...
30602 (rs6000_output_function_prologue): ... here. Do not call it for
30603 thunks.
30604
30605 2015-01-29 Jeff Law <law@redhat.com>
30606
30607 PR target/15184
30608 * combine.c (try_combine): If I0 is a memory load and I3 a store
30609 to a related address, increase the "goodness" of doing a 4-insn
30610 combination with I0-I3.
30611 (make_field_assignment): Handle SUBREGs in the ior+and case.
30612
30613 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
30614
30615 PR tree-optimization/64746
30616 * tree-if-conv.c (mask_exists): New function.
30617 (predicate_mem_writes): Save created mask with given size for further
30618 use.
30619 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
30620 (ifcvt_repair_bool_pattern): Collect all statements that are root
30621 of bool pattern and use iterative algorithm to remove multiple uses
30622 of predicates, display number of required iterations.
30623
30624 2015-01-29 Richard Biener <rguenther@suse.de>
30625
30626 PR tree-optimization/64853
30627 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
30628 stmt will get simulated again.
30629 * tree-ssa-ccp.c (valueize_op_1): Likewise.
30630
30631 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30632
30633 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
30634 return_in_pc. Remove redundant assignments.
30635 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
30636 (arm_expand_epilogue): Don't compare boolean with true in if condition.
30637
30638 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
30639
30640 * config/i386/i386.c (ix86_mode_after): Make static.
30641
30642 2015-01-29 Richard Biener <rguenther@suse.de>
30643
30644 PR tree-optimization/64844
30645 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
30646 dump cost model analysis.
30647 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
30648 Do not register adjusted load/store costs here.
30649
30650 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
30651 Uros Bizjak <ubizjak@gmail.com>
30652
30653 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
30654 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
30655 using x86_use_pseudo_pic_reg.
30656 * config/i386/i386.c (ix86_conditional_register_usage): Remove
30657 support for fixed PIC register.
30658 (ix86_use_pseudo_pic_reg): Not static any more.
30659
30660 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
30661
30662 PR middle-end/64805
30663 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
30664 to avoid error in cgraph node verification.
30665
30666 2015-01-29 Marek Polacek <polacek@redhat.com>
30667
30668 * doc/standards.texi: Reflect that the default for C is gnu11.
30669
30670 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
30671
30672 PR target/64761
30673 * reorg.c (switch_text_sections_between_p): New function.
30674 (relax_delay_slots): Call it when testing if the jump insn
30675 is removable. Use targetm.can_follow_jump when testing if
30676 the conditional branch can follow an unconditional jump.
30677
30678 2015-01-27 Caroline Tice <cmtice@google.com>
30679
30680 Committing VTV Cywin/Ming patch for Patrick Wollgast
30681 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
30682 if -fvtable-verify=preinit/std is used.
30683 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
30684 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
30685 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
30686 if -fvtable-verify=preinit/std is used.
30687 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
30688 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
30689 if -fvtable-verify=preinit/std is used.
30690 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
30691 * config/i386/mingw32.h (LIB_SPEC): Likewise.
30692 * varasm.c (assemble_variable): Add code to properly set the comdat
30693 section and name for the .vtable_map_vars section in case the
30694 target is PE or COFF.
30695
30696 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
30697
30698 PR ipa/64801
30699 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
30700 make sane BB profile.
30701 (cgraph_node::expand_thunk): Make sane BB profile.
30702 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
30703 * cgraph.h (init_lowered_empty_function): Update prototype.
30704 * config/i386/i386.c (make_resolver_func): Update call.
30705 * predict.c (gate): Disable branch prediction pass if
30706 profile is already there.
30707
30708 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
30709
30710 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
30711 * opth-gen.awk: Likewise.
30712 * common.opt: Mark flag_fp_contract_mode as Optimization.
30713
30714 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
30715
30716 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
30717 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
30718
30719 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
30720
30721 PR target/64659
30722 * config/sh/predicates.md (atomic_arith_operand,
30723 atomic_logical_operand): Remove.
30724 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
30725 (atomic_arith_operand_0): New predicate.
30726 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
30727 Use atomic_arith_operand_0 for input values.
30728 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
30729 atomic_compare_and_swap<mode>_soft_gusa,
30730 atomic_compare_and_swap<mode>_soft_tcb,
30731 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
30732 arith_reg_operand instead of register_operand.
30733 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
30734 atomic_arith_operand_0 for newval input.
30735 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
30736 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
30737 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
30738 arith_reg_operand instead of register_operand.
30739 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
30740 fetchop_predicate_1, fetchop_constraint_1_llcs,
30741 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
30742 fetchop_constraint_1_imask): New code iterator attributes.
30743 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
30744 register_operand. Use fetchop_predicate_1.
30745 (atomic_fetch_<fetchop_name>si_hard,
30746 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
30747 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
30748 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
30749 and arith_reg_operand instead of register_operand. Use
30750 fetchop_predicate_1, fetchop_constraint_1_gusa.
30751 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
30752 and arith_reg_operand instead of register_operand. Use
30753 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
30754 to allow R0 usage.
30755 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
30756 and arith_reg_operand instead of register_operand. Use
30757 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
30758 to allow R0 usage.
30759 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
30760 register_operand. Use atomic_logical_operand_1.
30761 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
30762 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
30763 arith_reg_operand instead of register_operand.
30764 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
30765 Use arith_reg_dest and arith_reg_operand instead of register_operand.
30766 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
30767 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
30768 register_operand. Use fetchop_predicate_1.
30769 (atomic_<fetchop_name>_fetchsi_hard,
30770 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
30771 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
30772 fetchop_constraint_1_llcs.
30773 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
30774 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
30775 fetchop_constraint_1_gusa.
30776 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
30777 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
30778 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
30779 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
30780 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
30781 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
30782 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
30783 register_operand. Use atomic_logical_operand_1.
30784 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
30785 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
30786 arith_reg_operand instead of register_operand.
30787 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
30788 arith_reg_operand instead of register_operand. Use logical_operand
30789 and K08. Adjust asm sequence to allow R0 usage.
30790 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
30791 arith_reg_operand instead of register_operand. Use logical_operand
30792 and K08.
30793
30794 2015-01-28 Jakub Jelinek <jakub@redhat.com>
30795
30796 PR other/63504
30797 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
30798 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
30799 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
30800 only get_full_len HOST_WIDE_INTs from get_val () array rather than
30801 all bits in *val_wide.
30802
30803 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
30804
30805 * varpool.c (tls_model_names): Fix names.
30806 (varpool_node::dump): Dump tls- prefix for tls models.
30807
30808 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
30809 Bernd Schmidt <bernds@codesourcery.com>
30810 Nathan Sidwell <nathan@codesourcery.com>
30811
30812 * config/nvptx/mkoffload.c: New file.
30813 * config/nvptx/t-nvptx: Add build rules for it.
30814 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
30815 (extra_programs): Add mkoffload.
30816 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
30817 function.
30818 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
30819
30820 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
30821
30822 PR middle-end/64809
30823 * cfgexpand.c (reorder_operands): Skip debug gimples.
30824
30825 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
30826
30827 PR tree-optimization/64277
30828 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
30829 range info when possible to refine estimation.
30830
30831 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
30832
30833 PR tree-optimization/64718
30834 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
30835 be a 16bit unsigned integer when n->range is 16.
30836 (bswap_replace): Convert src to that type if necessary for all bswap
30837 sizes. Fix rotation right notation in nearby comment. Use bswap_type
30838 set in pass_optimize_bswap::execute ().
30839
30840 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
30841
30842 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
30843 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
30844 integer and floating point variants.
30845 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
30846
30847 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
30848
30849 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
30850 for all vector modes.
30851
30852 2015-01-28 Jakub Jelinek <jakub@redhat.com>
30853
30854 PR bootstrap/64612
30855 * doc/sourcebuild.texi (comdat_group): Document.
30856
30857 2015-01-28 Terry Guo <terry.guo@arm.com>
30858
30859 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
30860
30861 2015-01-27 David Malcolm <dmalcolm@redhat.com>
30862
30863 * toplev.c (print_version): Add param "show_global_state", and
30864 only print GGC and plugin information if it is true.
30865 (init_asm_output): Pass in "true" for the new param when calling
30866 print_version.
30867 (process_options): Likewise.
30868 (toplev::main): Likewise.
30869 * toplev.h (print_version): Add new param to decl.
30870
30871 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
30872
30873 PR ipa/60871
30874 PR ipa/64139
30875 * tree.c (lookup_binfo_at_offset): New function.
30876 (get_binfo_at_offset): Use it.
30877
30878 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
30879
30880 PR ipa/64282
30881 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
30882 on vtable being vtable.
30883
30884 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
30885
30886 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
30887 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
30888 -mhotpatch= option.
30889 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
30890 -mno-hotpatch options. Change syntax of -mhotpatch= option.
30891 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
30892 Renamed.
30893 (s390_hotpatch_trampoline_halfwords_max): Renamed.
30894 (s390_hotpatch_hw_max): New name.
30895 (s390_hotpatch_trampoline_halfwords): Renamed.
30896 (s390_hotpatch_hw_before_label): New name.
30897 (get_hotpatch_attribute): Removed.
30898 (s390_hotpatch_hw_after_label): New name.
30899 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
30900 attribute.
30901 (s390_attribute_table): Ditto.
30902 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
30903 (s390_function_num_hotpatch_hw): New name.
30904 Remove special handling of inline functions and hotpatching.
30905 Return number of nops before and after the function label.
30906 (s390_can_inline_p): Removed.
30907 (s390_asm_output_function_label): Emit a configurable number of nops
30908 after the function label.
30909 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
30910 (TARGET_CAN_INLINE_P) Removed.
30911 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
30912
30913 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30914 Jiong Wang <jiong.wang@arm.com>
30915
30916 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
30917 of scratch reg.
30918 (cb<optab><mode>1): Likewise.
30919 * config/aarch64/iterators.md (bcond): New define_code_attr.
30920
30921 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30922
30923 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
30924 memory accesses.
30925
30926 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30927
30928 * config/s390/s390.c (s390_register_move_cost): Increase costs for
30929 FPR->GPR moves.
30930
30931 2015-01-27 Richard Biener <rguenther@suse.de>
30932
30933 * tree-vrp.c (update_value_range): Intersect the range with
30934 old recorded SSA name range information.
30935
30936 2015-01-27 Nick Clifton <nickc@redhat.com>
30937
30938 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
30939 BC, DE and HL registers directly, not via AX.
30940 When decrementing the stack pointer by a large amount, transfer SP
30941 into AX and perform the subtraction there.
30942 (rl78_expand_epilogue): Perform the inverse of the above
30943 enhancements.
30944
30945 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30946
30947 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
30948
30949 2015-01-27 Jakub Jelinek <jakub@redhat.com>
30950 Yury Gribov <y.gribov@samsung.com>
30951
30952 PR ubsan/64741
30953 * ubsan.c (ubsan_source_location): Refactor code.
30954 (ubsan_type_descriptor): Update type size. Refactor code.
30955
30956 2015-01-27 Richard Biener <rguenther@suse.de>
30957
30958 PR tree-optimization/56273
30959 PR tree-optimization/59124
30960 PR tree-optimization/64277
30961 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
30962 from the first VRP pass.
30963
30964 2015-01-27 Jakub Jelinek <jakub@redhat.com>
30965
30966 PR ipa/64776
30967 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
30968 handle the first argument in the same loop as all the other arguments.
30969
30970 PR rtl-optimization/61058
30971 * jump.c (cleanup_barriers): Update basic block boundaries
30972 if BLOCK_FOR_INSN is non-NULL on PREV.
30973
30974 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
30975
30976 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
30977 bounds narrowing, already instrumented calls and calls to
30978 not instrumentable functions.
30979
30980 2015-01-27 Jakub Jelinek <jakub@redhat.com>
30981
30982 PR tree-optimization/64807
30983 * wide-int.cc (wi::divmod_internal): Clear
30984 b_dividend[dividend_blocks_needed].
30985
30986 2015-01-26 DJ Delorie <dj@redhat.com>
30987
30988 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
30989 volatile memory references.
30990
30991 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
30992
30993 PR target/49263
30994 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
30995 remove_insn.
30996 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
30997 shifts if it already fits into K08.
30998
30999 2015-01-26 Jakub Jelinek <jakub@redhat.com>
31000
31001 PR ipa/64730
31002 * ipa-inline.c (inline_small_functions): Print "unknown" even
31003 if edge->call_stmt is non-NULL, but has builtins or unknown
31004 location.
31005
31006 PR middle-end/64421
31007 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
31008 with asterisk, skip the first character.
31009
31010 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
31011
31012 PR target/64806
31013 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
31014 order change.
31015
31016 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
31017
31018 PR target/64795
31019 * config/i386/i386.md (*movdi_internal): Also check operand 0
31020 to determine TYPE_LEA operand.
31021 (*movsi_internal): Ditto.
31022
31023 2015-01-26 Jakub Jelinek <jakub@redhat.com>
31024
31025 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
31026 OPTION_MASK_QUAD_MEMORY_ATOMIC.
31027
31028 2015-01-26 Renlin Li <renlin.li@arm.com>
31029
31030 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
31031 the comment.
31032 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
31033 for higher part.
31034
31035 2015-01-26 Richard Biener <rguenther@suse.de>
31036
31037 PR middle-end/64764
31038 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
31039 combining two BIT_AND_EXPR predicates.
31040
31041 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
31042
31043 PR bootstrap/64754
31044 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
31045
31046 2015-01-26 Terry Guo <terry.guo@arm.com>
31047
31048 * config/arm/arm.c (arm_file_start): Update the assignment of
31049 Tag_ABI_HardFP_use.
31050
31051 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
31052
31053 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
31054 pipeline model.
31055 config/arm/arm.md: Include the new Cortex-A57 model.
31056 (generic_sched): Don't use generic_sched when tuning for
31057 Cortex-A57.
31058
31059 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
31060 Uros Bizjak <ubizjak@gmail.com>
31061
31062 * config/i386/i386.c (get_builtin_code_for_version): Add
31063 support for BMI and BMI2 multiversion functions.
31064
31065 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31066
31067 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
31068 (extract_bit_field): Likewise.
31069 (extract_low_bits): Likewise.
31070 (expand_mult): Likewise.
31071 (expand_mult_highpart_adjust): Likewise.
31072
31073 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
31074
31075 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
31076 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
31077 * config/i386/i386.c (processor_model): Add
31078 M_INTEL_COREI7_BROADWELL.
31079 (arch_names_table): Add "broadwell".
31080
31081 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
31082
31083 PR target/49263
31084 PR target/53987
31085 PR target/64345
31086 PR target/59533
31087 PR target/52933
31088 PR target/54236
31089 PR target/51244
31090 * config/sh/sh-protos.h
31091 (sh_extending_set_of_reg::can_use_as_unextended_reg,
31092 sh_extending_set_of_reg::use_as_unextended_reg,
31093 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
31094 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
31095 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
31096 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
31097 (sh_treg_insns): New class.
31098 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
31099 (scope_counter): New class.
31100 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
31101 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
31102 sh_extending_set_of_reg::can_use_as_unextended_reg,
31103 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
31104 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
31105 sh_split_treg_set_expr): New functions.
31106 (addsubcosts): Handle treg_set_expr.
31107 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
31108 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
31109 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
31110 (sh_insn_operands_modified_between_p): Make non-static.
31111 * config/sh/predicates.md (zero_extend_movu_operand): Allow
31112 simple_mem_operand in addition to displacement_mem_operand.
31113 (zero_extend_operand): Don't allow zero_extend_movu_operand.
31114 (treg_set_expr, treg_set_expr_not_const01,
31115 arith_reg_or_treg_set_expr): New predicates.
31116 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
31117 arith_or_int_operand instead of logical_operand. Convert to
31118 insn_and_split. Try to optimize constant operand in splitter.
31119 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
31120 (*tstqi_t_zero): Delete.
31121 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
31122 (tstsi_t_and_not): Delete.
31123 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
31124 Convert to insn_and_split.
31125 (unnamed split, tstsi_t_zero_extract_xor,
31126 tstsi_t_zero_extract_subreg_xor_little,
31127 tstsi_t_zero_extract_subreg_xor_big): Delete.
31128 (*tstsi_t_shift_mask): New insn_and_split.
31129 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
31130 to recombine with surrounding insns when splitting.
31131 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
31132 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
31133 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
31134 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
31135 (*cbranch_div0s: Delete.
31136 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
31137 Try to recombine with surrounding insns when splitting. Add operand
31138 order variants.
31139 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
31140 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
31141 *addc_r_r_msb, *addc_2r_msb): Delete.
31142 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
31143 order variant.
31144 (*addc_negreg_t): New insn_and_split.
31145 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
31146 Try to recombine with surrounding insns when splitting.
31147 Add operand order variants.
31148 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
31149 insn_and_split patterns.
31150 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
31151 surrounding insns when splitting.
31152 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
31153 (*rotcl): Likewise. Add zero_extract variant.
31154 (*ashrsi2_31): New insn_and_split.
31155 (*negc): Convert to insn_and_split. Use treg_set_expr.
31156 (*zero_extend<mode>si2_disp_mem): Update comment.
31157 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
31158 condition.
31159 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
31160 with surrounding insns when splitting.
31161 (any_treg_expr_to_reg): New insn_and_split.
31162 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
31163 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
31164 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
31165 *zero_extract_2): New single bit zero extract patterns.
31166 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
31167 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
31168 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
31169 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
31170 set destination.
31171 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
31172 register_operand for set source.
31173
31174 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
31175
31176 * i386.opt (prefetch_sse): New targetsave.
31177 * i386.c (ix86_function_specific_save): Save prefetch_sse.
31178 (ix86_function_specific_restore): Restore prefetch_sse and initialize
31179 ix86_cost/ix86_tune_cost.
31180
31181 2015-01-23 David Malcolm <dmalcolm@redhat.com>
31182
31183 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
31184 Support the JIT by using 0 as the language type.
31185
31186 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
31187
31188 PR target/64317
31189 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
31190 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
31191 (mark_regno_live, process_bb_lives): Pass new parameter value to
31192 make_hard_regno_born.
31193
31194 2015-01-23 Jakub Jelinek <jakub@redhat.com>
31195
31196 PR rtl-optimization/63637
31197 PR rtl-optimization/60663
31198 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
31199 if elt->cost is MAX_COST for ASM_OPERANDS.
31200 (find_sets_in_insn): Fix up comment typo.
31201 (cse_insn): Don't set src_volatile for all non-volatile
31202 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
31203 or with "memory" clobber. Set elt->cost to MAX_COST
31204 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
31205 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
31206
31207 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
31208
31209 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
31210 alternative 1.
31211
31212 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
31213
31214 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
31215 libgcc/config/i386/elf-lib.h.
31216
31217 2015-01-23 Jakub Jelinek <jakub@redhat.com>
31218
31219 PR driver/64737
31220 * gcc.c (print_configuration): Don't print a blank line at the end
31221 here...
31222 (run_attempt): ... but here unstead.
31223
31224 PR middle-end/64734
31225 * omp-low.c (scan_sharing_clauses): Don't ignore
31226 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
31227 on target data/update constructs.
31228
31229 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
31230
31231 PR target/50928
31232 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
31233 (DEBUG_RELOAD): Removed define.
31234 (m32c_limit_reload_class): Enable traces with if DEBUG0.
31235 (m32c_function_arg): Added a type cast.
31236 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
31237 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
31238 * config/m32c/bitops.md (andqi3_16): Likewise.
31239 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
31240 (push_a01_l): Likewise.
31241
31242 2015-01-23 David Malcolm <dmalcolm@redhat.com>
31243
31244 PR jit/64721
31245 * main.c (main): Construct toplev instances with init_signals=true.
31246 * toplev.c (general_init): Add param "init_signals", and use it to
31247 conditionalize the calls to signal and host_hooks.extra_signals.
31248 (toplev::toplev): Add param "init_signals".
31249 (toplev::main): When invoking general_init, pass m_init_signals
31250 to control whether signal-handlers are installed.
31251 * toplev.h (toplev::toplev): Add param "init_signals".
31252 (toplev::m_init_signals): New field.
31253
31254 2015-01-23 David Malcolm <dmalcolm@redhat.com>
31255
31256 PR jit/64722
31257 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
31258 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
31259 latter may be affected by the former (e.g. on i686).
31260
31261 2015-01-23 Martin Liska <mliska@suse.cz>
31262
31263 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
31264 false positive during profiledbootstrap.
31265
31266 2015-01-23 Tom de Vries <tom@codesourcery.com>
31267
31268 PR libgomp/64672
31269 * lto-opts.c (lto_write_options): Output non-explicit conservative
31270 -fno-openacc.
31271 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
31272 (append_compiler_options): Pass -fopenacc through.
31273
31274 2015-01-23 Tom de Vries <tom@codesourcery.com>
31275
31276 PR libgomp/64707
31277 * lto-opts.c (lto_write_options): Output non-explicit conservative
31278 -fno-openmp.
31279 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
31280 (append_compiler_options): Pass -fopenmp through.
31281
31282 2015-01-23 Jakub Jelinek <jakub@redhat.com>
31283
31284 PR debug/64511
31285 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
31286 GTY markup.
31287
31288 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
31289 * diagnostic.def (DK_ICE_NOBT): New kind.
31290 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
31291 like DK_ICE, but never print backtrace.
31292 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
31293 (internal_error_no_backtrace): New function.
31294 * gcc.c (execute): Use internal_error_no_backtrace instead of
31295 internal_error.
31296
31297 2015-01-22 Jeff Law <law@redhat.com>
31298
31299 PR target/52076
31300 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
31301 improve code density for small immediate to memory case.
31302 (insv): Better handle bitfield assignments when the field is
31303 being set to all ones.
31304 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
31305 operand predicate.
31306
31307 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31308 Jakub Jelinek <jakub@redhat.com>
31309
31310 PR middle-end/64729
31311 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
31312 for !TARGET_LIBC_PROVIDES_SSP version and
31313 -fstack-protector-{all,strong,explicit} otherwise.
31314 * config/freebsd.h (LINK_SSP_SPEC): Handle
31315 -fstack-protector-{strong,explicit}.
31316
31317 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
31318 H.J. Lu <hongjiu.lu@intel.com>
31319
31320 PR ipa/64694
31321 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
31322 heap.
31323
31324 2015-01-22 Wei Mi <wmi@google.com>
31325
31326 PR rtl-optimization/64557
31327 * dse.c (record_store): Call get_addr for mem_addr.
31328 (check_mem_read_rtx): Likewise.
31329
31330 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
31331
31332 * fold-const.c (const_binop): Add early return for non-tcc_binary.
31333
31334 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
31335
31336 * toplev.c (init_local_tick): Process the failure when read
31337 fails for random_seed.
31338
31339 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
31340 'pretty_name' to avoid memory overflow.
31341
31342 2015-01-22 Richard Biener <rguenther@suse.de>
31343
31344 PR middle-end/64728
31345 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
31346 abnormal coalescing on undefined SSA names.
31347
31348 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
31349
31350 PR target/64688
31351 PR target/64477
31352 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
31353 for alternative 3.
31354 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
31355
31356 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
31357
31358 PR middle-end/63325
31359 * fold-const.c (fold_checksum_tree): Don't include value of
31360 expr->decl_with_vis.symtab_node in the checksum.
31361
31362 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31363
31364 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
31365
31366 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
31367
31368 PR driver/64690
31369 * gcc.c (insert_comments): New function.
31370 (try_generate_repro): Call it.
31371 (append_text): Removed.
31372
31373 2015-01-22 Richard Biener <rguenther@suse.de>
31374
31375 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
31376 with IL incompatible options. Properly honor user optimize
31377 attributes.
31378
31379 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
31380
31381 PR rtl-optimization/64682
31382 * combine.c (distribute_notes): When moving a death note for
31383 a register that is set in the new I2, make sure to put it
31384 before that new I2.
31385
31386 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
31387
31388 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
31389 not TARGET_DEFAULT.
31390
31391 2015-01-21 Jakub Jelinek <jakub@redhat.com>
31392
31393 PR debug/64511
31394 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
31395 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
31396 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
31397
31398 PR sanitizer/64706
31399 * doc/invoke.texi (-fsanitize=vptr): Document.
31400
31401 PR rtl-optimization/62078
31402 * dse.c: Include cfgcleanup.h.
31403 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
31404 anything call purge_all_dead_edges and cleanup_cfg at the end
31405 of the pass.
31406
31407 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
31408
31409 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
31410 edges.
31411
31412 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
31413
31414 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
31415 decl attribute.
31416
31417 2015-01-21 David Sherwood <david.sherwood@arm.com>
31418 Tejas Belagod <Tejas.Belagod@arm.com>
31419
31420 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
31421 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
31422 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
31423 Removed.
31424
31425 2015-01-21 David Sherwood <david.sherwood@arm.com>
31426 Tejas Belagod <Tejas.Belagod@arm.com>
31427
31428 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
31429 (aarch64_reverse_mask): New decls.
31430 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
31431 (insn_count): New mode_attr.
31432 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
31433 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
31434 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
31435 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
31436 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
31437 (aarch64_simd_st4): New patterns.
31438 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
31439 (aarch64_reverse_mask): New functions.
31440
31441 2015-01-21 Alan Hayward <alan.hayward@arm.com>
31442
31443 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
31444 Declare.
31445 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
31446 addressing modes for BE.
31447 (aarch64_print_operand): Add 'R' specifier.
31448 (aarch64_simd_disambiguate_copy): Delete.
31449 (aarch64_simd_emit_reg_reg_move): New function.
31450 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
31451 in define_splits for structural moves.
31452 (mov<mode>): Use less restrictive predicates.
31453 (*aarch64_mov<mode>): Simplify and only allow for LE.
31454 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
31455
31456 2015-01-21 Alan Hayward <alan.hayward@arm.com>
31457
31458 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
31459
31460 2015-01-21 Richard Henderson <rth@redhat.com>
31461
31462 PR target/64669
31463 * ccmp.c (used_in_cond_stmt_p): Remove.
31464 (expand_ccmp_expr): Don't use it.
31465
31466 2015-01-21 Nick Clifton <nickc@redhat.com>
31467
31468 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
31469 PARALLELs.
31470
31471 2015-01-21 Richard Biener <rguenther@suse.de>
31472
31473 PR middle-end/64313
31474 * tree-core.h (builtin_info, builtin_info_type): Turn from
31475 an object with two arrays into an array of an object with
31476 decl and two flags, implicit_p and declared_p.
31477 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
31478 set_builtin_decl, set_builtin_decl_implicit_p,
31479 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
31480 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
31481 * builtins.c (builtin_info): Adjust.
31482 * gimplify.c (gimplify_addr_expr): References to builtins
31483 that have been declared by the user makes them eligible for
31484 use by the compiler. Call set_builtin_decl_implicit_p on them.
31485
31486 2015-01-20 Jeff Law <law@redhat.com>
31487
31488 PR target/59946
31489 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
31490 allow pc-relative addresses in operand predicates or constraints.
31491
31492 2015-01-21 Bin Cheng <bin.cheng@arm.com>
31493
31494 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
31495 neon on aarch32 processors for stringops.
31496
31497 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
31498
31499 PR ipa/63576
31500 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
31501
31502 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
31503
31504 PR lto/45375
31505 * ipa-inline.c: Include lto-streamer.h
31506 (report_inline_failed_reason): Output source file differences and
31507 flags on optimization/target node mismatch.
31508 (can_inline_edge_p): Consider caller to be the outer inline function;
31509 be less restrictive about matching opimize and optimize_size attributes.
31510 (inline_account_function_p): Break out from ...
31511 (inline_small_functions): ... here.
31512 * ipa-inline-transform.c (clone_inlined_nodes): Use
31513 inline_account_function_p.
31514 (inline_call): Use optimize attribution; use inline_account_function_p.
31515 (inline_transform): Use opt_for_fn.
31516 * ipa-inline.h (inline_account_function_p): Declare.
31517
31518 2015-01-20 Jakub Jelinek <jakub@redhat.com>
31519
31520 PR debug/64663
31521 * dwarf2out.c (decl_piece_node): Don't put bitsize into
31522 mode if bitsize <= 0.
31523 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
31524 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
31525 sizes and positions.
31526
31527 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
31528
31529 * config/nios2/nios2.c (nios2_asm_file_end): Implement
31530 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
31531 needed.
31532 (TARGET_ASM_FILE_END): Define.
31533
31534 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
31535
31536 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
31537 (struct tune_params): Use the enum.
31538 * arm.c (arm_*_tune): Update.
31539 (arm_option_override): Update.
31540
31541 2015-01-20 Richard Biener <rguenther@suse.de>
31542
31543 PR ipa/64684
31544 * ipa-reference.c (add_static_var): Inline ...
31545 (analyze_function): ... here after splitting out from ...
31546 (is_proper_for_analysis): ... this.
31547
31548 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
31549
31550 PR target/64149
31551 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
31552 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
31553 replace the conditional with it's true branch.
31554 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
31555 (arm_lra_p): Remove.
31556
31557 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
31558
31559 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
31560
31561 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31562
31563 * config/tilegx/mul-tables.c: Move symtab.h include after
31564 coretypes.h include.
31565 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
31566 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
31567 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
31568 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
31569 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
31570
31571 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
31572
31573 PR bootstrap/64676
31574 Revert:
31575 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
31576
31577 PR rtl-optimization/64081
31578 * loop-iv.c (def_pred_latch_p): New function.
31579 (latch_dominating_def): Allow specific cases with non-single
31580 definitions.
31581 (iv_get_reaching_def): Likewise.
31582 (check_complex_exit_p): New function.
31583 (check_simple_exit): Use check_complex_exit_p to allow certain cases
31584 with exits not executing on any iteration.
31585
31586 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
31587
31588 PR lto/45375
31589 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
31590 to set branch cost.
31591
31592 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
31593
31594 PR lto/45375
31595 * i386.c (gate): Check flag_expensive_optimizations and
31596 optimize_size.
31597 (ix86_option_override_internal): Drop optimize_size condition
31598 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
31599 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
31600 MASK_PREFER_AVX128.
31601 (ix86_avx256_split_vector_move_misalign,
31602 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
31603 * sse.md (all uses of TARGET_PREFER_AVX128): Add
31604 optimize_insn_for_speed_p check.
31605
31606 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
31607
31608 * config/mips/mips.h (FP_ASM_SPEC): New define.
31609 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
31610 instead.
31611
31612 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
31613
31614 PR target/53988
31615 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
31616 nullptr for insn when reaching the first insn.
31617 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
31618 (sh_insn_operands_modified_between_p): Add nullptr check.
31619 (sh_find_extending_set_of_reg): Fix log message. Don't accept
31620 sign extending mem load if the insn contains any UNSPEC or
31621 UNSPEC_VOLATILE.
31622
31623 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
31624
31625 * params.def (inline-unit-growth): Drop to 15%.
31626 * invoke.texi (inline-unit-growth): Document change.
31627
31628 2015-01-19 Martin Liska <mliska@suse.cz>
31629
31630 PR ipa/64668
31631 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
31632 function for second argument of OBJ_TYPE_REF.
31633
31634 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
31635
31636 PR ipa/64218
31637 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
31638 whether function is an alias.
31639
31640 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
31641
31642 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
31643 cases.
31644
31645 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
31646
31647 PR rtl-optimization/64671
31648 * lra-remat.c (operand_to_remat): Don't consider jump and call
31649 insns.
31650
31651 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
31652
31653 PR target/59828
31654 * config/rs6000/default64.h: Include rs6000-cpus.def.
31655 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
31656 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
31657 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
31658 and POWER8.
31659 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
31660 POWER8.
31661 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
31662 pseudo-op to specify assembler dialect.
31663
31664 2015-01-19 Martin Liska <mliska@suse.cz>
31665
31666 PR ipa/64664
31667 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
31668 Handle safe potentially removed nodes during filtering.
31669
31670 2015-01-19 Martin Liska <mliska@suse.cz>
31671
31672 * doc/extend.texi (no_icf): Add new attribute description.
31673 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
31674 where the pass attempts to merge a function with no_icf attribute.
31675
31676 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31677
31678 PR target/64532
31679 * doc/md.texi (ARM Options): Document register constraints.
31680
31681 2015-01-19 Jiong Wang <jiong.wang@arm.com>
31682 Andrew Pinski <apinski@cavium.com>
31683
31684 PR target/64304
31685 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
31686 (ashl<mode>3): Don't expand if operands[2] is not constant.
31687
31688 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31689
31690 PR target/64448
31691 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
31692 Match xor-and-xor RTL pattern.
31693
31694 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
31695
31696 PR rtl-optimization/64081
31697 * loop-iv.c (def_pred_latch_p): New function.
31698 (latch_dominating_def): Allow specific cases with non-single
31699 definitions.
31700 (iv_get_reaching_def): Likewise.
31701 (check_complex_exit_p): New function.
31702 (check_simple_exit): Use check_complex_exit_p to allow certain cases
31703 with exits not executing on any iteration.
31704
31705 2015-01-19 Jakub Jelinek <jakub@redhat.com>
31706
31707 * common.opt (fgraphite): Fix a typo.
31708
31709 2015-01-19 Felix Yang <felix.yang@huawei.com>
31710
31711 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
31712 pattern.
31713 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
31714 uminp, smax_nanp, smin_nanp): New builtins.
31715 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
31716 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
31717 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
31718 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
31719 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
31720 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
31721 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
31722 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
31723 vpminnms_f32): Rewrite using builtin functions.
31724
31725 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
31726
31727 PR libgomp/64625
31728 * omp-low.c (offload_symbol_decl): Remove variable.
31729 (get_offload_symbol_decl): Remove function.
31730 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
31731 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
31732 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
31733 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
31734 BUILT_IN_GOACC_UPDATE don't pass it at all.
31735
31736 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
31737
31738 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
31739 callers.
31740
31741 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
31742
31743 * ipa-chkp.c (chkp_produce_thunks): Add early param
31744 to split thunks production into two passes. Keep
31745 'always_inline' function bodies after the first pass.
31746 (pass_data_ipa_chkp_early_produce_thunks): New.
31747 (pass_ipa_chkp_early_produce_thunks): New.
31748 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
31749 chkp_produce_thunks signature.
31750 (make_pass_ipa_chkp_early_produce_thunks): New.
31751 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
31752 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
31753 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
31754
31755 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
31756
31757 * cgraph.c (cgraph_node::dump): Dump profile flags.
31758
31759 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
31760
31761 PR target/64652
31762 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
31763 reg appear first in the parallel.
31764
31765 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
31766
31767 * ipa-reference.c (set_reference_optimization_summary,
31768 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
31769 disabled.
31770 (ignore_module_statics): New static var.
31771 (propagate_bits): If ipa-reference is disabled, do not look into local
31772 properties.
31773 (analyze_function): Disable analysis when ipa_reference is disabled.
31774 (generate_summary): Do not dump when reference is disabled;
31775 collect vars accessed from functions with ipa-reference disabled.
31776 (get_read_write_all_from_node): When ipa-reference is disabled, use the
31777 node flags.
31778 (gate): Enable for LTO.
31779 (ignore_edge_p): New function.
31780 (propagate): Skip functions w/o ipa-reference analysis.
31781 * optc-save-gen.awk: Handle optimize_debug correctly.
31782 * opth-gen.awk: Likewise.
31783 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
31784 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
31785 fira-share-save-slots, fira-share-spill-slots,
31786 fmodulo-sched-allow-regmoves, fpartial-inlining,
31787 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
31788 ftracer, ftree-parallelize-loops, fassociative-math,
31789 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
31790 Optimization
31791 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
31792 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
31793 Optimization.
31794 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
31795 Fix for IPA.
31796
31797 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
31798
31799 PR ipa/64378
31800 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
31801 flag correctly.
31802 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
31803
31804 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
31805
31806 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
31807 Remove duplicate option listings.
31808
31809 2015-01-18 Felix Yang <felix.yang@huawei.com>
31810
31811 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
31812 (autofdo_source_profile::get_callsite_total_count,
31813 function_instance::get_function_instance_by_decl,
31814 string_table::get_index, string_table::get_index_by_decl,
31815 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
31816 Fix comment typos. Reformatting and minor code rearrangement.
31817
31818 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
31819
31820 * config/rs6000/rs6000.md (probe_stack): Delete.
31821 (probe_stack_address): New.
31822
31823 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
31824
31825 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
31826 to test for 32-bit ABIs, not !TARGET_POWERPC64.
31827
31828 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
31829
31830 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
31831 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
31832 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
31833 snafu.
31834 (rs6000_libcall_value): Use the new function.
31835
31836 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
31837
31838 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
31839
31840 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
31841
31842 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
31843 implement a more precise life analysis for it during backward scan.
31844
31845 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
31846
31847 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
31848
31849 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
31850
31851 PR rtl-optimization/52773
31852 * calls.c (emit_library_call_value): When pushing arguments use
31853 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
31854 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
31855 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
31856
31857 2015-01-17 Jeff Law <law@redhat.com>
31858
31859 PR rtl-optimization/32790
31860 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
31861 not ZERO_EXTEND in SET_DESTs.
31862
31863 2015-01-17 Alan Modra <amodra@gmail.com>
31864
31865 * cprop.c (do_local_cprop): Revert last change.
31866
31867 2015-01-16 DJ Delorie <dj@redhat.com>
31868 Nick Clifton <nickc@redhat.com>
31869
31870 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
31871 (addhi3_real): Likewise. Fix [HL+0] syntax.
31872 (subqi3_real): Likewise.
31873 (subhi3_real): Likewise.
31874 (cbranchqi4_real): Likewise. Allow saddr,#imm.
31875 (cbranchhi4_real): Likewise.
31876 (cbranchhi4_real_inverted): Likewise.
31877 (cbranchsi4_real_lt): Likewise.
31878 (cbranchsi4_real_ge): Likewise.
31879 (cbranchsi4_real_ge): Likewise.
31880 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
31881 (sub<mode>3_virt): Likewise.
31882 (cbranchqi4_virt): Likewise.
31883 (cbranchhi4_virt): Likewise.
31884 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
31885 always use '[reg+imm]' even when imm is zero.
31886 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
31887 (rl78_general_operand): New.
31888 (rl78_nonimmediate_operand): New.
31889 (rl78_nonfar_operand): Use them.
31890 (rl78_nonfar_nonimm_operand): Likewise.
31891 (rl78_stack_based_mem): Fix.
31892 * config/rl78/constraints.md (Ibqi): New.
31893 (IBqi): New.
31894 (Wsa): New.
31895 (Wsf): New.
31896 (Cs1): Fix.
31897 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
31898 (iorqi3): Likewise.
31899 (xorqi3): Likewise.
31900 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
31901
31902 * config/rl78/constrains (Qs8): New constraint.
31903 * config/rl78/rl78.c (rl78_flags_already_set): New function.
31904 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
31905 * config/rl78/rl78-real.md (update_Z): New attribute.
31906 Update patterns to set it.
31907 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
31908 shorter compare and branch sequence can be used.
31909 (cbranchhi4_real): Likewise.
31910 (cbranchhi4_real_inverted): Likewise.
31911
31912 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
31913 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
31914 address space.
31915 * config/rl78/rl78.c (rl78_get_name_encoding): New.
31916 (rl78_option_override): Allow -mes0 only if C.
31917 (characterize_address): Support subregs of symbol_refs.
31918 (rl78_addr_space_address_mode): Move. Add __near.
31919 (rl78_far_p): Likewise.
31920 (rl78_addr_space_pointer_mode): Likewise.
31921 (rl78_as_legitimate_address): Likewise.
31922 (rl78_addr_space_subset_p): Likewise.
31923 (rl78_addr_space_convert): Likewise.
31924 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
31925 symbols with -mes0.
31926 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
31927 addressing.
31928 (rl78_alloc_physical_registers_op1): Change logic to prefer
31929 symbol[BC] addressing.
31930 (frodata_section): New.
31931 (rl78_asm_init_sections): Initialize it.
31932 (rl78_select_section): Put __far readonly symbols in .frodata.
31933 (rl78_make_type_far): New.
31934 (rl78_insert_attributes): Force all readonly symbols to be
31935 __far when -mes0.
31936 (rl78_asm_out_integer): New.
31937 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
31938 * config/rl78/rl78.opt (-mes0): New.
31939
31940 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
31941 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
31942 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
31943 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
31944 (rl78_saddr_p): New.
31945 (rl78_output_aligned_common): New.
31946 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
31947 (rl78_handle_saddr_attribute): New.
31948 (rl78_handle_naked_attribute): New.
31949 (rl78_attribute_table): Add saddr.
31950 (rl78_print_operand_1): Don't print '!' on saddr operands.
31951 (rl78_print_operand_1): Strip encodings.
31952 (rl78_sfr_p): New.
31953 (rl78_strip_name_encoding): New.
31954 (rl78_attrlist_to_encoding): New.
31955 (rl78_encode_section_info): New.
31956 (rl78_asm_init_sections): New.
31957 (rl78_select_section): New.
31958 (rl78_output_labelref): New.
31959 (rl78_output_aligned_common): New.
31960 (rl78_asm_out_integer): New.
31961 (rl78_asm_ctor_dtor): New.
31962 (rl78_asm_constructor): New.
31963 (rl78_asm_destructor): New.
31964
31965 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
31966 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
31967 (transcode_memory_rtx): Update.
31968 (rl78_expand_epilogue): Use A_REG instead of 0.
31969
31970 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
31971
31972 * config/arm/arm-protos.h (struct tune_params): New field
31973 sched_autopref_queue_depth.
31974 * config/arm/arm.c (sched-int.h): Include header.
31975 (arm_first_cycle_multipass_dfa_lookahead_guard,)
31976 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
31977 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
31978 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
31979 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
31980 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
31981 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
31982 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
31983 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
31984 * config/arm/t-arm (arm.o): Update.
31985 * haifa-sched.c (update_insn_after_change): Update.
31986 (rank_for_schedule): Use auto-prefetcher model, if requested.
31987 (autopref_multipass_init): New static function.
31988 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
31989 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
31990 variable for debug dumps.
31991 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
31992 (autopref_multipass_dfa_lookahead_guard): New global function that
31993 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
31994 (init_h_i_d): Update.
31995 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
31996 * sched-int.h (enum autopref_multipass_data_status): New const enum.
31997 (autopref_multipass_data_): Structure for auto-prefetcher data.
31998 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
31999 (struct _haifa_insn_data:autopref_multipass_data): New field.
32000 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
32001 (autopref_multipass_dfa_lookahead_guard): Declare.
32002
32003 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32004
32005 * rtlanal.c (get_base_term): Handle SCRATCH.
32006
32007 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32008
32009 * config/aarch64/aarch64.c
32010 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
32011 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
32012 * config/arm/arm.c
32013 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
32014 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
32015
32016 2015-01-17 Alan Modra <amodra@gmail.com>
32017
32018 * cprop.c (do_local_cprop): Disallow replacement of fixed
32019 hard registers.
32020
32021 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32022
32023 PR target/62066
32024 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
32025 early return 0.
32026
32027 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
32028
32029 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
32030 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
32031
32032 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32033
32034 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
32035 * config/arm/thumb1.md: ... Here.
32036
32037 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32038
32039 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
32040 TImode for TARGET_32BIT.
32041
32042 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32043
32044 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
32045 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
32046 as ...
32047 (rs6000_abi_word_mode): New function.
32048
32049 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32050
32051 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
32052 instead of UNITS_PER_WORD to describe the size of stack slots.
32053
32054 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32055
32056 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
32057 as rs6000_promote_function_mode. Move comment to there.
32058 (rs6000_promote_function_mode): New function.
32059
32060 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
32061
32062 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
32063 -mpowerpc64 is active.
32064
32065 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
32066
32067 PR middle-end/64353
32068 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
32069 virtuals on start.
32070
32071 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
32072
32073 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
32074 introduced in revision 219724.
32075
32076 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32077 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32078
32079 PR target/64263
32080 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
32081 destination is not a GP reg.
32082 (*movdi_aarch64): Likewise.
32083
32084 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
32085
32086 PR target/64623
32087 * config/rs6000/default64.h: Revert ISA change.
32088
32089 2015-01-16 Richard Biener <rguenther@suse.de>
32090
32091 PR middle-end/64614
32092 * tree-ssa-uninit.c: Include tree-cfg.h.
32093 (MAX_SWITCH_CASES): New define.
32094 (convert_control_dep_chain_into_preds): Handle switch statements.
32095 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
32096 (normalize_one_pred_1): Do not split bit-manipulations.
32097 Record (x & CST).
32098
32099 2015-01-16 Richard Biener <rguenther@suse.de>
32100
32101 PR tree-optimization/64568
32102 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
32103 complex load rewriting for TARGET_MEM_REFs.
32104
32105 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
32106
32107 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
32108
32109 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
32110
32111 PR target/64149
32112 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
32113 variable.
32114 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
32115 (aarch64_lra_p): Remove.
32116
32117 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
32118
32119 PR target/64363
32120 * ipa-chkp.h (chkp_instrumentable_p): New.
32121 * ipa-chkp.c: Include tree-inline.h.
32122 (chkp_instrumentable_p): New.
32123 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
32124 Fix processing of not instrumentable functions.
32125 (chkp_versioning): Use chkp_instrumentable_p. Warn about
32126 not instrumentable functions.
32127 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
32128 chkp_instrumentable_p.
32129 * tree-inline.h (copy_forbidden): New.
32130 * tree-inline.c (copy_forbidden): Not static anymore.
32131
32132 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32133
32134 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
32135 ptr1, ptr2 unused.
32136
32137 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
32138
32139 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
32140 type OP_OUT to OP_INOUT.
32141
32142 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
32143
32144 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
32145 (high x) y) to y if x and y have the same base.
32146
32147 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
32148
32149 * config/arm/cortex-a57.md: New.
32150 * config/aarch64/aarch64.md: Include it.
32151 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
32152 * config/aarch64/aarch64-tune.md: Regenerate.
32153
32154 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
32155
32156 PR target/64015
32157 * ccmp.c (expand_ccmp_next): New function.
32158 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
32159 and compare insn sequence.
32160 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
32161 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
32162 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
32163 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
32164 (*ccmp_ior): Changed to ccmp_ior<mode>.
32165 (cmp<mode>): New pattern.
32166 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
32167 parameters.
32168 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
32169
32170 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
32171
32172 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
32173 _mm256_bsrli_epi128): New.
32174 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
32175
32176 2015-01-15 Jiong Wang <jiong.wang@arm.com>
32177
32178 * expmed.c (store_bit_field_using_insv): Improve warning message.
32179 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
32180
32181 2015-01-15 Jiong Wang <jiong.wang@arm.com>
32182
32183 PR rtl-optimization/64011
32184 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
32185 there is partial overflow.
32186
32187 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
32188
32189 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
32190 prototype.
32191 (nds32_expand_epilogue_v3pop): Likewise.
32192 * config/nds32/nds32.md (sibcall): Define this for sibling call
32193 optimization.
32194 (sibcall_register): Likewise.
32195 (sibcall_immediate): Likewise.
32196 (sibcall_value): Likewise.
32197 (sibcall_value_register): Likewise.
32198 (sibcall_value_immediate): Likewise.
32199 (sibcall_epilogue): Likewise.
32200 (epilogue): Pass false to indicate this is not a sibcall epilogue.
32201 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
32202 (nds32_expand_epilogue_v3pop): Likewise.
32203
32204 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
32205
32206 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
32207 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
32208 (return_internal): New.
32209 (return): Define this named pattern.
32210 (simple_return): Define this named pattern.
32211 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
32212 pattern instead of unspec_volatile_func_return.
32213 (nds32_expand_epilogue_v3pop): Likewise.
32214 (nds32_can_use_return_insn): New function.
32215
32216 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
32217
32218 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
32219 * config/nds32/nds32.md (pop25return): New.
32220 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
32221 pop25return pattern.
32222
32223 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
32224
32225 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
32226 -mforbid-fp-as-gp, and -mex9 options.
32227
32228 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
32229
32230 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
32231 remove -mgp-direct option.
32232
32233 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
32234
32235 * doc/invoke.texi (--param early-inlining-insns): Update default value.
32236 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
32237
32238 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
32239
32240 * ipa-inline.c (inline_small_functions): Work around hints
32241 cache issue.
32242
32243 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
32244
32245 PR target/59710
32246 * doc/invoke.texi (Option Summary): Document new Nios II
32247 -mgpopt= syntax.
32248 (Nios II Options): Likewise.
32249 * config/nios2/nios2.opt: Add -mgpopt= option support.
32250 Modify existing -mgpopt and -mno-gpopt options to be aliases.
32251 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
32252 * config/nios2/nios2.c (nios2_option_override): Adjust
32253 -mgpopt defaulting.
32254 (nios2_in_small_data_p): Return true for explicit small data
32255 sections even with -G0.
32256 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
32257 option choices.
32258
32259 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
32260
32261 PR ipa/64612
32262 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
32263 of comdat locals.
32264 (inline_call): Fix removal of aliases.
32265
32266 2015-01-15 Jakub Jelinek <jakub@redhat.com>
32267
32268 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
32269 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
32270 * opts.c (common_handle_option): Add -fsanitize=vptr.
32271 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
32272 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
32273 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
32274 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
32275 (ubsan_expand_vptr_ifn): New prototype.
32276 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
32277 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
32278 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
32279 expand_LOOP_VECTORIZED): Make argument nameless, remove
32280 ATTRIBUTE_UNUSED.
32281 (expand_UBSAN_VPTR): New function.
32282 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
32283 in fn spec.
32284 (UBSAN_VPTR): New internal function.
32285 * sanopt.c (tree_map_traits): Renamed to ...
32286 (sanopt_tree_map_traits): ... this.
32287 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
32288 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
32289 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
32290 (maybe_optimize_ubsan_vptr_ifn): New function.
32291 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
32292 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
32293 -fsanitize=vptr.
32294 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
32295 internal calls like pure functions for aliasing, even when they
32296 have other side-effects that prevent making them ECF_PURE.
32297 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
32298 (ubsan_expand_vptr_ifn): New function.
32299
32300 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
32301
32302 PR rtl-optimization/64110
32303 * stmt.c (parse_output_constraint): Process '^' and '$'.
32304 (parse_input_constraint): Ditto.
32305 * lra-constraints.c (process_alt_operands): Process the new
32306 constraints.
32307 * ira-costs.c (record_reg_classes): Process the new constraint
32308 '^'.
32309 * genoutput.c (indep_constraints): Add '^' and '$'.
32310 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
32311 * doc/md.texi: Add description of the new constraints.
32312
32313 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
32314 Bernd Schmidt <bernds@codesourcery.com>
32315 Cesar Philippidis <cesar@codesourcery.com>
32316 James Norris <jnorris@codesourcery.com>
32317 Tom de Vries <tom@codesourcery.com>
32318 Ilmir Usmanov <i.usmanov@samsung.com>
32319 Dmitry Bocharnikov <dmitry.b@samsung.com>
32320 Evgeny Gavrin <e.gavrin@samsung.com>
32321 Jakub Jelinek <jakub@redhat.com>
32322
32323 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
32324 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
32325 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
32326 New function types.
32327 * builtins.c: Include "gomp-constants.h".
32328 (expand_builtin_acc_on_device): New function.
32329 (expand_builtin, is_inexpensive_builtin): Handle
32330 BUILT_IN_ACC_ON_DEVICE.
32331 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
32332 New macros.
32333 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
32334 flag_openmp.
32335 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
32336 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
32337 i386/intelmic-offload.h.
32338 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
32339 to libgomp and its dependencies.
32340 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
32341 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
32342 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
32343 * config/ia64/hpux.h (LIB_SPEC): Likewise.
32344 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
32345 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
32346 * doc/generic.texi: Update for OpenACC changes.
32347 * doc/gimple.texi: Likewise.
32348 * doc/invoke.texi: Likewise.
32349 * doc/sourcebuild.texi: Likewise.
32350 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
32351 GF_OMP_FOR_KIND_OACC_LOOP.
32352 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
32353 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
32354 GF_OMP_TARGET_KIND_OACC_UPDATE,
32355 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
32356 Dump more data.
32357 * gimple.c: Update comments for OpenACC changes.
32358 * gimple.def: Likewise.
32359 * gimple.h: Likewise.
32360 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
32361 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
32362 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
32363 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
32364 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
32365 appropriate place.
32366 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
32367 * gimplify.c: Include "gomp-constants.h".
32368 Update comments for OpenACC changes.
32369 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
32370 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
32371 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
32372 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
32373 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
32374 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
32375 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
32376 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
32377 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
32378 OMP_CLAUSE_SEQ.
32379 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
32380 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
32381 OMP_CLAUSE_SET_MAP_KIND.
32382 (gimplify_oacc_cache): New function.
32383 (gimplify_omp_for): Handle OACC_LOOP.
32384 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
32385 OACC_DATA.
32386 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
32387 OACC_EXIT_DATA, OACC_UPDATE.
32388 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
32389 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
32390 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
32391 (gimplify_body): Consider flag_openacc next to flag_openmp.
32392 * lto-streamer-out.c: Include "gomp-constants.h".
32393 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
32394 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
32395 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
32396 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
32397 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
32398 (BUILT_IN_ACC_ON_DEVICE): New builtins.
32399 * omp-low.c: Include "gomp-constants.h".
32400 Update comments for OpenACC changes.
32401 (struct omp_context): Add reduction_map, gwv_below, gwv_this
32402 members.
32403 (extract_omp_for_data, use_pointer_for_field, install_var_field)
32404 (new_omp_context, delete_omp_context, scan_sharing_clauses)
32405 (create_omp_child_function, scan_omp_for, scan_omp_target)
32406 (check_omp_nesting_restrictions, lower_reduction_clauses)
32407 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
32408 Update for OpenACC changes.
32409 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
32410 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
32411 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
32412 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
32413 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
32414 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
32415 OMP_CLAUSE_MAP_*.
32416 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
32417 Handle GF_OMP_FOR_KIND_OACC_LOOP.
32418 (expand_omp_target, lower_omp_target): Handle
32419 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
32420 GF_OMP_TARGET_KIND_OACC_UPDATE,
32421 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
32422 GF_OMP_TARGET_KIND_OACC_DATA.
32423 (pass_expand_omp::execute, execute_lower_omp)
32424 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
32425 flag_openmp.
32426 (offload_symbol_decl): New variable.
32427 (oacc_get_reduction_array_id, oacc_max_threads)
32428 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
32429 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
32430 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
32431 (oacc_gimple_assign, oacc_initialize_reduction_data)
32432 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
32433 functions.
32434 (is_targetreg_ctx): Remove function.
32435 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
32436 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
32437 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
32438 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
32439 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
32440 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
32441 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
32442 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
32443 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
32444 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
32445 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
32446 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
32447 * tree-core.h: Update comments for OpenACC changes.
32448 (enum omp_clause_map_kind): Remove.
32449 (struct tree_omp_clause): Change type of map_kind member from enum
32450 omp_clause_map_kind to unsigned char.
32451 * tree-inline.c: Update comments for OpenACC changes.
32452 * tree-nested.c: Likewise. Include "gomp-constants.h".
32453 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
32454 (convert_tramp_reference_stmt, convert_gimple_call): Update for
32455 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
32456 OMP_CLAUSE_SET_MAP_KIND.
32457 * tree-pretty-print.c: Include "gomp-constants.h".
32458 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
32459 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
32460 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
32461 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
32462 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
32463 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
32464 instead of OMP_CLAUSE_MAP_*.
32465 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
32466 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
32467 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
32468 * tree-streamer-in.c: Include "gomp-constants.h".
32469 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
32470 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
32471 * tree-streamer-out.c: Include "gomp-constants.h".
32472 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
32473 OMP_CLAUSE_MAP_*.
32474 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
32475 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
32476 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
32477 * tree.c (omp_clause_num_ops): Update accordingly.
32478 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
32479 Likewise.
32480 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
32481 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
32482 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
32483 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
32484 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
32485 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
32486 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
32487 (OMP_CLAUSE_SET_MAP_KIND): New macro.
32488 * varpool.c (varpool_node::get_create): Consider flag_openacc next
32489 to flag_openmp.
32490 * config/i386/intelmic-offload.h: New file.
32491 * config/nvptx/offload.h: Likewise.
32492
32493 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32494
32495 * explow.h: Remove duplicate contents.
32496 * dojump.h: Likewise.
32497
32498 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
32499
32500 * arm.c (arm_xgene_tune): Add default initializer for instruction
32501 fusion.
32502
32503 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
32504
32505 PR ipa/64068
32506 PR ipa/64559
32507 * ipa.c (symbol_table::remove_unreachable_nodes):
32508 Do not put abstract origins into boundary.
32509
32510 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
32511
32512 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
32513 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
32514
32515 2015-01-15 Steve Ellcey <sellcey@mips.com>
32516
32517 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
32518 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
32519 builtins.def, and chkp-builtins.def.
32520
32521 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
32522
32523 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
32524 ISA 2.7 (POWER8).
32525
32526 2015-01-15 Richard Biener <rguenther@suse.de>
32527
32528 PR tree-optimization/61743
32529 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
32530 information on PHIs for some simple cases.
32531
32532 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
32533
32534 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
32535 Include xgene1.md.
32536 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
32537 * config/arm/arm-cores.def (xgene1): New entry.
32538 * config/arm/arm-tables.opt: Regenerate.
32539 * config/arm/arm-tune.md: Regenerate.
32540 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
32541
32542 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
32543
32544 * tree-if-conv.c: Include hash-map.h.
32545 (aggressive_if_conv): New variable.
32546 (fold_build_cond_expr): Add simplification of non-zero condition.
32547 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
32548 destination block is not always executed.
32549 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
32550 than two predecessors if AGGRESSIVE_IF_CONV is true.
32551 (if_convertible_stmt_p): Fix commentary.
32552 (all_preds_critical_p): New function.
32553 (has_pred_critical_p): New function.
32554 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
32555 BB can have more than two predecessors and all incoming edges can be
32556 critical.
32557 (predicate_bbs): Skip predication for loop exit block, use build2_loc
32558 to compute predicate for true edge.
32559 (find_phi_replacement_condition): Delete this function.
32560 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
32561 Allow interchange PHI arguments if EXTENDED is false.
32562 Change check that block containing reduction statement candidate
32563 is predecessor of phi-block since phi may have more than two arguments.
32564 (phi_args_hash_traits): New helper structure.
32565 (struct phi_args_hash_traits): New type.
32566 (phi_args_hash_traits::hash): New function.
32567 (phi_args_hash_traits::equal_keys): New function.
32568 (gen_phi_arg_condition): New function.
32569 (predicate_scalar_phi): Add handling of phi nodes with more than two
32570 arguments, delete COND and TRUE_BB arguments, insert body of
32571 find_phi_replacement_condition to predicate ordinary phi nodes.
32572 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
32573 delete call of find_phi_replacement_condition and invoke
32574 predicate_scalar_phi with two arguments.
32575 (insert_gimplified_predicates): Add assert that non-predicated block
32576 don't have statements to insert.
32577 (ifcvt_split_critical_edges): New function.
32578 (ifcvt_split_def_stmt): Likewise.
32579 (ifcvt_walk_pattern_tree): Likewise.
32580 (stmt_is_root_of_bool_pattern): Likewise.
32581 (ifcvt_repair_bool_pattern): Likewise.
32582 (ifcvt_local_dce): Likewise.
32583 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
32584 is copy of inner or outer loop force_vectorize field, invoke
32585 ifcvt_split_critical_edges, ifcvt_local_dce and
32586 ifcvt_repair_bool_pattern for aggressive if-conversion.
32587
32588 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
32589
32590 * config/aarch64/aarch64.md: Include xgene1.md.
32591 * config/aarch64/xgene1.md: New file.
32592
32593 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
32594
32595 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
32596 xgene1 (APM XGene-1) core definition.
32597 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
32598 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
32599 * doc/invoke.texi: Document -mcpu=xgene1.
32600
32601 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32602
32603 * dojump.h: New header file.
32604 * explow.h: Likewise.
32605 * expr.h: Remove includes.
32606 Move expmed.c prototypes to expmed.h.
32607 Move dojump.c prototypes to dojump.h.
32608 Move alias.c prototypes to alias.h.
32609 Move explow.c prototypes to explow.h.
32610 Move calls.c prototypes to calls.h.
32611 Move emit-rtl.c prototypes to emit-rtl.h.
32612 Move varasm.c prototypes to varasm.h.
32613 Move stmt.c prototypes to stmt.h.
32614 (saved_pending_stack_adjust): Move to dojump.h.
32615 (adjust_address): Move to explow.h.
32616 (adjust_address_nv): Move to emit-rtl.h.
32617 (adjust_bitfield_address): Likewise.
32618 (adjust_bitfield_address_size): Likewise.
32619 (adjust_bitfield_address_nv): Likewise.
32620 (adjust_automodify_address_nv): Likewise.
32621 * explow.c (expr_size): Move to expr.c.
32622 (int_expr_size): Likewise.
32623 (tree_expr_size): Likewise.
32624 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32625 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
32626 * genemit.c (main): Generate includes statistics.h, real.h,
32627 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
32628 stmt.h.
32629 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
32630 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
32631 explow.h, emit-rtl.h, stmt.h.
32632 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
32633 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
32634 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
32635 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
32636 emit-rtl.h, varasm.h, stmt.h.
32637 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
32638 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
32639 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
32640 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
32641 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
32642 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
32643 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
32644 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
32645 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
32646 tm.h tree.h varasm.h vec.h wide-int.h.
32647 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32648 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
32649 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
32650 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
32651 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
32652 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
32653 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
32654 * loop-iv.c: Likewise.
32655 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
32656 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
32657 statistics.h stmt.h tree.h varasm.h wide-int.h.
32658 * lra-constraints.c: Likewise.
32659 * lra-eliminations.c: Likewise.
32660 * lra-lives.c: Likewise.
32661 * lra-remat.c: Likewise.
32662 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32663 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
32664 statistics.h stmt.h tree.h varasm.h wide-int.h.
32665 * hw-doloop.c: Likewise.
32666 * ira-color.c: Likewise.
32667 * ira-emit.c: Likewise.
32668 * loop-doloop.c: Likewise.
32669 * loop-invariant.c: Likewise.
32670 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32671 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
32672 statistics.h stmt.h tree.h varasm.h wide-int.h.
32673 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
32674 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
32675 statistics.h stmt.h tree.h varasm.h wide-int.h.
32676 * combine-stack-adj.c: Likewise.
32677 * cse.c: Likewise.
32678 * ddg.c: Likewise.
32679 * ifcvt.c: Likewise.
32680 * ira-costs.c: Likewise.
32681 * jump.c: Likewise.
32682 * lra-coalesce.c: Likewise.
32683 * lra-spills.c: Likewise.
32684 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32685 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
32686 stmt.h varasm.h wide-int.h.
32687 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32688 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
32689 varasm.h.
32690 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
32691 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
32692 statistics.h stmt.h varasm.h wide-int.h.
32693 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
32694 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
32695 varasm.h wide-int.h.
32696 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
32697 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32698 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
32699 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
32700 statistics.h stmt.h.
32701 * config/tilepro/tilepro.c: Likewise.
32702 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
32703 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
32704 * config/pdp11/pdp11.c: Likewise.
32705 * config/xtensa/xtensa.c: Likewise.
32706 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
32707 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
32708 varasm.h.
32709 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32710 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
32711 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
32712 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32713 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
32714 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
32715 * rtl-chkp.c: Likewise.
32716 * tree-chkp-opt.c: Likewise.
32717 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
32718 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
32719 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
32720 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32721 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
32722 statistics.h stmt.h.
32723 * tree-vect-data-refs.c: Likewise.
32724 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
32725 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32726 rtl.h statistics.h stmt.h varasm.h.
32727 * internal-fn.c: Likewise.
32728 * ipa-icf-gimple.c: Likewise.
32729 * lto-section-out.c: Likewise.
32730 * tree-data-ref.c: Likewise.
32731 * tree-nested.c: Likewise.
32732 * tree-outof-ssa.c: Likewise.
32733 * tree-predcom.c: Likewise.
32734 * tree-pretty-print.c: Likewise.
32735 * tree-scalar-evolution.c: Likewise.
32736 * tree-ssa-strlen.c: Likewise.
32737 * tree-vect-loop.c: Likewise.
32738 * tree-vect-patterns.c: Likewise.
32739 * tree-vect-slp.c: Likewise.
32740 * tree-vect-stmts.c: Likewise.
32741 * tsan.c: Likewise.
32742 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32743 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
32744 stmt.h.
32745 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
32746 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32747 statistics.h stmt.h varasm.h.
32748 * loop-unroll.c: Likewise.
32749 * ubsan.c: Likewise.
32750 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
32751 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
32752 stmt.h varasm.h.
32753 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32754 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
32755 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
32756 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
32757 statistics.h stmt.h.
32758 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
32759 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
32760 statistics.h stmt.h varasm.h.
32761 * gimple-match-head.c: Likewise.
32762 * lto-cgraph.c: Likewise.
32763 * lto-section-in.c: Likewise.
32764 * lto-streamer-in.c: Likewise.
32765 * lto-streamer-out.c: Likewise.
32766 * tree-affine.c: Likewise.
32767 * tree-cfg.c: Likewise.
32768 * tree-cfgcleanup.c: Likewise.
32769 * tree-if-conv.c: Likewise.
32770 * tree-into-ssa.c: Likewise.
32771 * tree-ssa-alias.c: Likewise.
32772 * tree-ssa-copyrename.c: Likewise.
32773 * tree-ssa-dse.c: Likewise.
32774 * tree-ssa-forwprop.c: Likewise.
32775 * tree-ssa-live.c: Likewise.
32776 * tree-ssa-math-opts.c: Likewise.
32777 * tree-ssa-pre.c: Likewise.
32778 * tree-ssa-sccvn.c: Likewise.
32779 * tree-tailcall.c: Likewise.
32780 * tree-vect-generic.c: Likewise.
32781 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32782 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
32783 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32784 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
32785 * varasm.c: Likewise.
32786 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32787 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
32788 varasm.h.
32789 * init-regs.c: Likewise.
32790 * ira.c: Likewise.
32791 * omp-low.c: Likewise.
32792 * stack-ptr-mod.c: Likewise.
32793 * tree-ssa-reassoc.c: Likewise.
32794 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32795 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
32796 varasm.h.
32797 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32798 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
32799 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32800 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
32801 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32802 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
32803 * tree-ssa-phiopt.c: Likewise.
32804 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32805 fixed-value.h hashtab.h real.h statistics.h stmt.h.
32806 * config/fr30/fr30.c: Likewise.
32807 * config/frv/frv.c: Likewise.
32808 * expr.c: Likewise.
32809 * final.c: Likewise.
32810 * optabs.c: Likewise.
32811 * passes.c: Likewise.
32812 * simplify-rtx.c: Likewise.
32813 * stmt.c: Likewise.
32814 * toplev.c: Likewise.
32815 * var-tracking.c: Likewise.
32816 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32817 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32818 * lower-subreg.c: Likewise.
32819 * postreload-gcse.c: Likewise.
32820 * ree.c: Likewise.
32821 * reginfo.c: Likewise.
32822 * store-motion.c: Likewise.
32823 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32824 fixed-value.h hashtab.h real.h stmt.h varasm.h.
32825 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32826 fixed-value.h hashtab.h statistics.h stmt.h.
32827 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32828 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
32829 * except.c: Likewise.
32830 * explow.c: Likewise.
32831 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32832 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
32833 varasm.h.
32834 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32835 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
32836 * tree-ssa-structalias.c: Likewise.
32837 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32838 fixed-value.h insn-config.h real.h statistics.h.
32839 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32840 fixed-value.h insn-config.h real.h statistics.h stmt.h.
32841 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32842 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
32843 * cfgbuild.c: Likewise.
32844 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32845 fixed-value.h real.h rtl.h statistics.h stmt.h.
32846 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32847 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32848 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32849 fixed-value.h real.h statistics.h stmt.h.
32850 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32851 fixed-value.h real.h statistics.h stmt.h varasm.h.
32852 * cprop.c: Likewise.
32853 * modulo-sched.c: Likewise.
32854 * postreload.c: Likewise.
32855 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
32856 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
32857 statistics.h stmt.h varasm.h.
32858 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
32859 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32860 rtl.h statistics.h stmt.h varasm.h.
32861 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
32862 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
32863 varasm.h.
32864 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
32865 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
32866 varasm.h.
32867 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
32868 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
32869 varasm.h.
32870 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
32871 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32872 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32873 function.h real.h statistics.h stmt.h varasm.h.
32874 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32875 insn-config.h real.h statistics.h stmt.h.
32876 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32877 statistics.h stmt.h.
32878 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
32879 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
32880 statistics.h stmt.h varasm.h.
32881 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
32882 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
32883 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32884 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
32885 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
32886 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
32887 statistics.h stmt.h varasm.h.
32888 * ipa-polymorphic-call.c: Likewise.
32889 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
32890 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32891 statistics.h stmt.h.
32892 * config/c6x/c6x.c: Likewise.
32893 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
32894 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32895 statistics.h stmt.h varasm.h.
32896 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
32897 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
32898 stmt.h varasm.h.
32899 * ipa-split.c: Likewise.
32900 * tree-eh.c: Likewise.
32901 * tree-ssa-dce.c: Likewise.
32902 * tree-ssa-loop-niter.c: Likewise.
32903 * tree-vrp.c: Likewise.
32904 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
32905 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
32906 stmt.h.
32907 * config/nds32/nds32-fp-as-gp.c: Likewise.
32908 * config/nds32/nds32-intrinsic.c: Likewise.
32909 * config/nds32/nds32-isr.c: Likewise.
32910 * config/nds32/nds32-md-auxiliary.c: Likewise.
32911 * config/nds32/nds32-memory-manipulation.c: Likewise.
32912 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
32913 * config/nds32/nds32-predicates.c: Likewise.
32914 * config/nds32/nds32.c: Likewise.
32915 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
32916 fixed-value.h hashtab.h real.h statistics.h.
32917 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
32918 fixed-value.h hashtab.h real.h statistics.h stmt.h.
32919 * config/arm/arm.c: Likewise.
32920 * config/avr/avr.c: Likewise.
32921 * config/bfin/bfin.c: Likewise.
32922 * config/h8300/h8300.c: Likewise.
32923 * config/i386/i386.c: Likewise.
32924 * config/ia64/ia64.c: Likewise.
32925 * config/iq2000/iq2000.c: Likewise.
32926 * config/m32c/m32c.c: Likewise.
32927 * config/m32r/m32r.c: Likewise.
32928 * config/m68k/m68k.c: Likewise.
32929 * config/mcore/mcore.c: Likewise.
32930 * config/mep/mep.c: Likewise.
32931 * config/mips/mips.c: Likewise.
32932 * config/mn10300/mn10300.c: Likewise.
32933 * config/moxie/moxie.c: Likewise.
32934 * config/pa/pa.c: Likewise.
32935 * config/rl78/rl78.c: Likewise.
32936 * config/rx/rx.c: Likewise.
32937 * config/s390/s390.c: Likewise.
32938 * config/sh/sh.c: Likewise.
32939 * config/sparc/sparc.c: Likewise.
32940 * config/spu/spu.c: Likewise.
32941 * config/stormy16/stormy16.c: Likewise.
32942 * config/v850/v850.c: Likewise.
32943 * config/vax/vax.c: Likewise.
32944 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
32945 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32946 * config/msp430/msp430.c: Likewise.
32947 * predict.c: Likewise.
32948 * value-prof.c: Likewise.
32949 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
32950 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
32951 * config/microblaze/microblaze.c: Likewise.
32952 * config/nios2/nios2.c: Likewise.
32953 * config/rs6000/rs6000.c: Likewise.
32954 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32955 insn-config.h real.h rtl.h statistics.h stmt.h.
32956 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32957 insn-config.h real.h statistics.h stmt.h.
32958 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
32959 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
32960 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
32961 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32962 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
32963 fixed-value.h real.h statistics.h stmt.h.
32964 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
32965 fixed-value.h statistics.h stmt.h.
32966 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
32967 stmt.h.
32968
32969 2015-01-15 Jakub Jelinek <jakub@redhat.com>
32970
32971 * gengtype.c (create_user_defined_type): Workaround
32972 -Wmaybe-uninitialized false positives.
32973 * cse.c (fold_rtx): Likewise.
32974 * loop-invariant.c (gain_for_invariant): Likewise.
32975
32976 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
32977
32978 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
32979 set the memory attributes in all cases but clear MEM_EXPR if need be.
32980
32981 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
32982
32983 PR tree-optimization/64434
32984 * cfgexpand.c (reorder_operands): New function.
32985 (expand_gimple_basic_block): Insert call of reorder_operands if
32986 optimized is true.
32987
32988 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
32989
32990 * config/mips/micromips.md (*swp): Remove explicit parallel.
32991 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
32992 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
32993 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
32994 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
32995 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
32996 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
32997 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
32998 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
32999 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
33000 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
33001 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
33002 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
33003 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
33004 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
33005 (mips_wrdsp): Likewise.
33006 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
33007 parallel.
33008 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
33009 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
33010 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
33011 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
33012 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
33013 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
33014 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
33015 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
33016 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
33017
33018 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
33019
33020 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
33021 (mips_print_operand): Support 'y' to print exact log2 in decimal
33022 of a const_int.
33023 * config/mips/mips.h (ISA_HAS_LSA): New define.
33024 (ISA_HAS_DLSA): Likewise.
33025 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
33026 * config/mips/predicates.md (const_immlsa_operand): New predicate.
33027
33028 2015-01-15 Martin Liska <mliska@suse.cz>
33029
33030 PR target/64377
33031 * optc-save-gen.awk: Add support for array types.
33032
33033 2015-01-15 Richard Biener <rguenther@suse.de>
33034
33035 PR middle-end/64365
33036 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
33037 for MEM_REF access functions with the same base can never partially
33038 overlap.
33039
33040 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
33041
33042 * common.opt: New option -fstack-protector-explicit.
33043 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
33044 (stack_protect_decl_phase): Handle stack_protect attribute for
33045 explicit stack protection requests.
33046 (expand_used_vars): Similarly.
33047 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
33048 * doc/extend.texi: Add documentation for "stack_protect" attribute.
33049 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
33050
33051 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
33052
33053 PR target/53988
33054 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
33055 reg-reg copies.
33056 (sh_extending_set_of_reg): New struct.
33057 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
33058 sh_remove_reg_dead_or_unused_notes): New Declarations.
33059 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
33060 sh_find_extending_set_of_reg, sh_split_tst_subregs,
33061 sh_extending_set_of_reg::use_as_extended_reg): New functions.
33062 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
33063 convert to insn_and_split and use new function sh_split_tst_subregs.
33064
33065 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
33066
33067 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
33068 option.
33069 (Optimization Options): Move -fuse-ld documentation to...
33070 (Link Options): ...here.
33071
33072 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
33073
33074 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
33075 offsets.
33076 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
33077 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
33078 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
33079 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
33080 instead of ZR for the memory operand of LL/SC.
33081 (compare_and_swap_12, sync_add<mode>): Likewise.
33082 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
33083 (sync_new_<optab>_12, sync_nand_12): Likewise.
33084 (sync_old_nand_12, sync_new_nand_12): Likewise.
33085 (sync_sub<mode>, sync_old_add<mode>): Likewise.
33086 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
33087 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
33088 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
33089 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
33090 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
33091 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
33092 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
33093 * doc/md.texi (ZC): Update description.
33094
33095 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
33096
33097 * builtins.c (expand_builtin_atomic_exchange): Remove error when
33098 memory model is CONSUME.
33099 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
33100 expand_builtin_atomic_store): Change invalid memory model errors to
33101 warnings.
33102 (expand_builtin_atomic_clear): Change invalid model errors to warnings
33103 and issue warning for CONSUME.
33104
33105 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
33106
33107 * lto-cgraph: Update function comments for
33108 lto_symtab_encoder_encode_*.
33109
33110 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
33111
33112 * Makefile.in (site.exp): Do not set ENABLE_LTO.
33113
33114 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
33115
33116 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
33117 * lto-cgraph.c (select_what_to_stream): Remove argument, use
33118 lto_stream_offload_p instead.
33119 * lto-streamer.h (select_what_to_stream): Remove argument.
33120 * passes.c (ipa_write_summaries): Likewise.
33121 * tree-pass.h (ipa_write_summaries): Likewise.
33122
33123 2015-01-14 Richard Biener <rguenther@suse.de>
33124
33125 PR tree-optimization/59354
33126 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
33127 groups larger than the slp group size as having gaps.
33128
33129 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
33130
33131 PR middle-end/59448
33132 * builtins.c (get_memmodel): Promote consume to acquire always.
33133
33134 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
33135
33136 PR target/64386
33137 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
33138 V32HImode.
33139
33140 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
33141
33142 PR target/64393
33143 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
33144 Enable AVX512BW.
33145 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
33146 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
33147 AVX512VBMI, as it implies AVX512BW.
33148
33149 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
33150
33151 PR target/64387
33152 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
33153 (vec_unpacks_hi_v16sf): Ditto.
33154
33155 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33156
33157 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
33158 is not available.
33159
33160 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33161
33162 * doc/invoke.texi (mapcs): Mention deprecation.
33163 (mapcs-frame): Likewise.
33164
33165 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
33166
33167 PR target/64453
33168 * config/arm/arm.c (callee_saved_reg_p): Define.
33169 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
33170 register is callee saved instead of !call_used_regs[reg].
33171 (thumb1_compute_save_reg_mask): Likewise.
33172
33173 2015-01-14 Hale Wang <hale.wang@arm.com>
33174
33175 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
33176 Cortex-M7.
33177
33178 2015-01-14 Richard Biener <rguenther@suse.de>
33179
33180 PR lto/64415
33181 * tree-inline.c (insert_debug_decl_map): Check destination
33182 function MAY_HAVE_DEBUG_STMTS.
33183 (insert_init_debug_bind): Likewise.
33184 (insert_init_stmt): Remove redundant check.
33185 (remap_gimple_stmt): Drop debug stmts if the destination
33186 function has var-tracking assignments disabled.
33187
33188 2015-01-14 Martin Liska <mliska@suse.cz>
33189
33190 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
33191 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
33192
33193 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33194
33195 PR target/64460
33196 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
33197 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
33198
33199 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
33200
33201 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
33202 level from an ARCH; do not inject the default.
33203 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
33204 MIPS_ISA_LEVEL_SPEC.
33205 (MIPS_ISA_NAN2008_SPEC): Update comment.
33206 (BASE_DRIVER_SELF_SPECS): Likewise.
33207 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
33208 MIPS_DEFAULT_ISA_LEVEL_SPEC.
33209 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
33210 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
33211 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
33212
33213 2015-01-14 Richard Biener <rguenther@suse.de>
33214
33215 PR tree-optimization/64493
33216 PR tree-optimization/64495
33217 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
33218 assign the proper vectorized PHI to the inner loop exit PHIs.
33219
33220 2015-01-14 Joey Ye <joey.ye@arm.com>
33221
33222 * config/arm/arm.c (arm_compute_save_reg_mask):
33223 Do not save lr in case of tail call.
33224 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
33225
33226 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
33227
33228 * tree-vrp.c (check_array_ref): Emit more warnings
33229 for warn_array_bounds >= 2.
33230 * common.opt: New option -Warray-bounds=.
33231 * doc/invoke.texi: Document -Warray-bounds=.
33232
33233 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
33234
33235 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
33236 (mforbid-fp-as-gp): Remove.
33237 (mex9): Remove.
33238 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
33239 (nds32_symbol_load_store_p): Remove.
33240 (nds32_fp_as_gp_check_available): Clean up implementation.
33241 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
33242 cases.
33243 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
33244 fp-as-gp and ex9 cases.
33245
33246 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
33247
33248 * tree-profile.c (init_ic_make_global_vars): Drop workaround
33249 for bintuils bug 14342.
33250 (init_ic_make_global_vars): Likewise.
33251 (gimple_init_edge_profiler): Likewise.
33252 (gimple_gen_ic_func_profiler): Likewise.
33253
33254 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33255
33256 * ipa-inline.c (inline_small_functions): Swap the operands in
33257 enum.
33258
33259 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
33260
33261 PR ipa/64481
33262 * ipa-inline-analysis.c (node_growth_cache): Remove.
33263 (initialize_growth_caches): Do not initialize it.
33264 (free_growth_caches): Do not free it.
33265 (do_estimate_growth): Rename to ...
33266 (estimate_growth): ... this one; drop growth cache code.
33267 (growth_likely_positive): Always go the heuristics way.
33268 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
33269 (reset_edge_caches): Do not reset node growth.
33270 (heap_edge_removal_hook): Do not maintain cache.
33271 (inline_small_functions): Likewise; strenghten sanity check.
33272 (ipa_inline): Do not maintain caches.
33273 * ipa-inline.h (node_growth_cache): Remove.
33274 (do_estimate_growth): Remove to ...
33275 (estimate_growth): this one; remove inline version.
33276 (reset_node_growth_cache): Remove.
33277
33278 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
33279
33280 PR ipa/64565
33281 * ipa-inline.c (inline_small_functions): Update callee keys after
33282 resolving speculation
33283 (inline_small_functions): Always check monotonicity of the queue.
33284
33285 2015-01-13 Marek Polacek <polacek@redhat.com>
33286
33287 PR middle-end/64391
33288 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
33289
33290 2015-01-13 Jakub Jelinek <jakub@redhat.com>
33291
33292 PR rtl-optimization/64286
33293 * ree.c (combine_reaching_defs): Move part of comment earlier,
33294 remove !SCALAR_INT_MODE_P check.
33295 (add_removable_extension): Don't add vector mode
33296 extensions if all uses of the source register aren't the same
33297 vector extensions.
33298
33299 2015-01-13 Renlin Li <renlin.li@arm.com>
33300
33301 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
33302 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
33303
33304 2015-01-13 Martin Liska <mliska@suse.cz>
33305
33306 * ipa-icf.c (sem_function::equals_private): Call new functions
33307 cl_target_option_print_diff and cl_optimization_print_diff.
33308 * optc-save-gen.awk (cl_target_option_print_diff): New function.
33309 (cl_optimization_print_diff): Likewise.
33310 * opth-gen.awk: Likewise.
33311
33312 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
33313
33314 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
33315 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
33316 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
33317 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
33318 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
33319 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
33320
33321 2015-01-13 Andrew Pinski <apinski@cavium.com>
33322
33323 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
33324 instead of src mode.
33325
33326 2015-01-13 Richard Biener <rguenther@suse.de>
33327
33328 PR lto/64373
33329 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
33330 DECL_CONTEXT.
33331
33332 2015-01-13 Andrew Pinski <apinski@cavium.com>
33333
33334 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
33335 volatile mems.
33336 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
33337
33338 2015-01-13 Jakub Jelinek <jakub@redhat.com>
33339
33340 PR middle-end/63974
33341 * cfgexpand.c (expand_computed_goto): Don't call
33342 convert_memory_address here.
33343
33344 2015-01-13 Richard Biener <rguenther@suse.de>
33345
33346 PR tree-optimization/64406
33347 * tree-loop-distibution.c (pass_loop_distribution::execute):
33348 Reset the SCEV hashtable if we distributed anything.
33349
33350 2015-01-13 Richard Biener <rguenther@suse.de>
33351
33352 PR tree-optimization/64404
33353 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
33354 SLP types for CSEd loads.
33355
33356 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
33357
33358 PR tree-optimization/64436
33359 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
33360 merge of two symbolic numbers for a bitwise OR to ...
33361 (perform_symbolic_merge): This. Also fix computation of the range and
33362 end of the symbolic number corresponding to the result of a bitwise OR.
33363
33364 2015-01-13 Richard Biener <rguenther@suse.de>
33365
33366 PR tree-optimization/64568
33367 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
33368 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
33369
33370 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33371
33372 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
33373 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
33374
33375 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33376
33377 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
33378 target-specific symbol_ref flag.
33379 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
33380 resides in rodata section.
33381 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
33382 (nds32_encode_section_info): New function.
33383
33384 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33385
33386 * config/nds32/nds32.md (call): Use pseudo instruction bal which
33387 clobbers TA_REGNUM if large code model is specified.
33388 (call_register): Likewise.
33389 (call_immediate): Likewise.
33390 (call_value): Likewise.
33391 (call_value_register): Likewise.
33392 (call_value_immediate): Likewise.
33393
33394 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33395
33396 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
33397 (TARGET_CMODEL_MEDIUM): New macro.
33398 (TARGET_CMODEL_LARGE): New macro.
33399 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
33400 code model setting in assembly code.
33401
33402 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33403
33404 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
33405 Remove MASK_GP_DIRECT flag.
33406 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
33407 one of the multilib default options.
33408 * config/nds32/nds32.opt (mgp-direct): Remove.
33409 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
33410 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
33411
33412 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33413
33414 * config/nds32/nds32.opt (mcmodel): Add new option.
33415 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
33416 to describe code model.
33417
33418 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
33419
33420 PR target/64479
33421 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
33422
33423 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
33424
33425 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
33426 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
33427 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
33428 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
33429 __builtin_sh_set_fpscr.
33430
33431 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
33432
33433 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
33434 after a funtion name just to indicate it is a function.
33435 ([-fsanitize-undefined-trap-on-error]): Likewise.
33436 ([-fdbg-cnt=]): Likewise.
33437 ([-mmemcpy]): Likewise.
33438 ([-mflush-func]): Likewise.
33439 ([-msynci]): Likewise.
33440
33441 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
33442
33443 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
33444 example.
33445
33446 2015-01-12 Jakub Jelinek <jakub@redhat.com>
33447
33448 PR tree-optimization/64563
33449 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
33450 instead of != VR_VARYING.
33451
33452 PR target/64513
33453 * config/i386/i386.c (ix86_expand_prologue): Add
33454 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
33455
33456 PR tree-optimization/64454
33457 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
33458 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
33459 for signed or [0, op1 - 1] for unsigned modulo.
33460 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
33461 even if op1 does not satisfy integer_pow2p.
33462
33463 PR other/64370
33464 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
33465
33466 2015-01-12 Jeff Law <law@redhat.com>
33467
33468 PR target/64461
33469 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
33470 (trunchiqi2, truncsihi2): Similarly.
33471
33472 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
33473 rather than calling F.
33474
33475 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
33476
33477 * tsan.c (instrument_expr): Use force_gimple_operand.
33478 Use may_be_nonaddressable_p instead of is_gimple_addressable.
33479
33480 2015-01-12 Richard Biener <rguenther@suse.de>
33481
33482 PR tree-optimization/64530
33483 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
33484 back dr1.
33485
33486 2015-01-12 Richard Biener <rguenther@suse.de>
33487
33488 PR middle-end/64357
33489 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
33490 latches properly.
33491
33492 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33493
33494 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
33495 Cortex-A17 tuning parameters.
33496 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
33497
33498 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33499
33500 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
33501 * config/arm/arm.c (arm_macro_fusion_p): New function.
33502 (arm_macro_fusion_pair_p): Likewise.
33503 (TARGET_SCHED_MACRO_FUSION_P): Define.
33504 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
33505 (ARM_FUSE_NOTHING): Likewise.
33506 (ARM_FUSE_MOVW_MOVT): Likewise.
33507 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
33508 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
33509 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
33510 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
33511 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
33512 arm_cortex_a5_tune): Specify fuseable_ops value.
33513
33514 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
33515
33516 PR bootstrap/64561
33517 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
33518 test for PIE with copy reloc.
33519 * configure: Regenerated.
33520
33521 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33522
33523 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
33524 in gen_rtx_REG.
33525 (arm_tls_descseq_addr): Likewise.
33526 (arm_gen_movmemqi): Likewise.
33527 (arm_expand_epilogue_apcs_frame): Likewise.
33528 (arm_expand_epilogue): Likewise.
33529 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
33530 in gen_rtx_REG.
33531
33532 2015-01-12 Martin Liska <mliska@suse.cz>
33533
33534 PR ipa/64550
33535 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
33536 volatility for correct operands.
33537
33538 2015-01-12 Martin Liska <mliska@suse.cz>
33539
33540 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
33541 indication that a function is not leaf.
33542 (sem_function::compare_polymorphic_p): Likewise.
33543
33544 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33545
33546 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
33547 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
33548 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
33549 fold-const.h, tree-check.h.
33550
33551 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
33552
33553 PR ipa/63967
33554 PR ipa/64425
33555 * ipa-inline.c (compute_uninlined_call_time,
33556 compute_inlined_call_time): Use counts for extra precision when
33557 needed possible.
33558 (big_speedup_p): Fix formating.
33559 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
33560 (relative_time_benefit): Remove.
33561 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
33562 merge guessed and read profile paths.
33563 (inline_small_functions): Count only !optimize_size functions into
33564 initial size; be more lax about sanity check when profile is used;
33565 be sure to update inlined function profile when profile is read.
33566
33567 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
33568
33569 PR ipa/63470
33570 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
33571 cost when edge becomes direct.
33572 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
33573 is resolved or when introducing new speculation.
33574
33575 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
33576
33577 PR ipa/64551
33578 PR ipa/64552
33579 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
33580 '||' to fix typo issue.
33581
33582 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
33583 accept and return NULL.
33584
33585 2015-01-12 Martin Liska <mliska@suse.cz>
33586
33587 * cgraph.c (cgraph_edge::remove_callee): Move function to header
33588 file for being inlined.
33589 (cgraph_set_edge_callee): Delete.
33590 (cgraph_edge::redirect_callee): Move function to header file
33591 for being inlined.
33592 (cgraph_edge::make_direct): Use new function.
33593 (cgraph_edge::dump_edge_flags): New function created from
33594 static dump_edge_flags function.
33595 (cgraph_node::dump): Use new function.
33596 (cgraph_edge::verify_count_and_frequency): New function created
33597 from verify_edge_count_and_frequency.
33598 (cgraph_edge::verify_corresponds_to_fndecl): New function created
33599 from verify_edge_corresponds_to_fndecl.
33600 (verify_edge_corresponds_to_fndecl): Delete.
33601 (cgraph_node::verify_node): Use new function.
33602 * cgraph.h (cgraph_edge::set_callee): New function.
33603 (cgraph_edge::dump_edge_flags): Likewise.
33604 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
33605
33606 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
33607
33608 * ipa-utils.c (estimate_function_body_sizes): Do not
33609 free node params when called late with early=true.
33610
33611 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
33612
33613 * doc/md.texi (Instruction Patterns): Rewrite text for
33614 clarity.
33615 (Example): Likewise.
33616
33617 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
33618
33619 * doc/invoke.texi (Option Summary): Break long lines.
33620 [(-fdiagnostics-color)]: Put long literal in @smallexample
33621 instead of inline.
33622 [(-fsanitize-recover)]: Likewise.
33623 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
33624 [(-ffast-math)]: Likewise.
33625 [(--param max-inline-insns-recursive)]: Likewise.
33626 [(--param max-inline-recursive-depth)]: Likewise.
33627 [(-mno-text-section-literals)]: Likewise.
33628
33629 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
33630
33631 * doc/install.texi: Update for libgomp being renamed from "GNU
33632 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
33633 Runtime Library".
33634 * doc/sourcebuild.texi: Likewise.
33635
33636 2015-01-10 Anthony Green <green@moxielogic.com>
33637
33638 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
33639 mul.x availability for moxiebox configuration.
33640
33641 2015-01-09 Anthony Green <green@moxielogic.com>
33642
33643 * config/moxie/moxie.md: Tabify assembly output.
33644
33645 2015-01-09 Anthony Green <green@moxielogic.com>
33646
33647 * config/moxie/moxie.md (CC_REG): Correct register definition.
33648
33649 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
33650
33651 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
33652 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
33653 of log files.
33654
33655 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
33656
33657 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
33658
33659 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
33660 Jakub Jelinek <jakub@redhat.com>
33661
33662 PR middle-end/64412
33663 * lto-streamer.h (lto_stream_offload_p): New declaration.
33664 * lto-streamer.c (lto_stream_offload_p): New variable.
33665 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
33666 at the same time as section_name_prefix.
33667 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
33668 if lto_stream_offload_p.
33669 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
33670 stream TREE_TARGET_OPTION if lto_stream_offload_p.
33671 (write_ts_function_decl_tree_pointers): Don't
33672 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
33673 * tree-streamer-in.c (unpack_value_fields): Don't stream
33674 TREE_TARGET_OPTION in if ACCEL_COMPILER.
33675 (lto_input_ts_function_decl_tree_pointers): Don't stream
33676 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
33677 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
33678 instead of section_name_prefix string comparisons.
33679
33680 2015-01-09 Jakub Jelinek <jakub@redhat.com>
33681
33682 PR rtl-optimization/64536
33683 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
33684 tablejumps.
33685
33686 2015-01-09 Michael Collison <michael.collison@linaro.org>
33687
33688 PR tree-optimization/64322
33689 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
33690 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
33691
33692 2015-01-09 Tom de Vries <tom@codesourcery.com>
33693
33694 PR rtl-optimization/64539
33695 * regcprop.c (kill_clobbered_values): Factor out of ...
33696 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
33697 instead of note_stores with kill_clobbered_value.
33698
33699 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
33700
33701 * ginclude/unwind-arm-common.h: Revert previous commit.
33702
33703 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
33704
33705 * config.gcc (arm*-*-freebsd*): New configuration.
33706 * config/arm/freebsd.h: New file.
33707 * config.host: Add extra components for arm*-*-freebsd*.
33708 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
33709 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
33710
33711 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
33712
33713 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
33714 for -mcpu=e6500.
33715 * config/rs6000/t-rtems: Add e6500 multilibs.
33716
33717 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
33718
33719 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
33720 MPC8540.
33721
33722 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
33723
33724 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
33725 MULTILIB_EXCEPTIONS.
33726
33727 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
33728
33729 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
33730 MULTILIB_EXCEPTIONS.
33731
33732 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
33733
33734 * config/arm/t-rtems-eabi: Rename to...
33735 * config/arm/t-rtems: ...this.
33736 * config/arm/rtems-eabi.h: Rename to...
33737 * config/arm/rtems.h: ...this.
33738 * config.gcc (arm*-*-rtems*): Reflect changes above.
33739
33740 2015-01-09 Richard Biener <rguenther@suse.de>
33741
33742 PR tree-optimization/64410
33743 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
33744 on the LHS.
33745 (execute_update_addresses_taken): Deal with that.
33746 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
33747 loads/stores for complex variables.
33748
33749 2015-01-09 Martin Liska <mliska@suse.cz>
33750
33751 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
33752 name comparison.
33753 (func_checker::compare_memory_operand): New function.
33754 (func_checker::compare_operand): Split case to newly
33755 added functions.
33756 (func_checker::compare_cst_or_decl): New function.
33757 (func_checker::compare_gimple_call): Identify
33758 memory operands.
33759 (func_checker::compare_gimple_assign): Likewise.
33760 * ipa-icf-gimple.h: New function.
33761
33762 2015-01-09 Martin Liska <mliska@suse.cz>
33763
33764 PR ipa/64503
33765 * sreal.c (sreal::dump): Change unsigned format to signed for
33766 m_exp value.
33767 (sreal::to_double): Replace exp2 with scalbln.
33768
33769 2015-01-09 Martin Liska <mliska@suse.cz>
33770
33771 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
33772 * ipa-icf.c (sem_function::equals_private): Add support for target and
33773 (sem_item_optimizer::merge_classes): Remove redundant function
33774 optimization flags comparison.
33775 * tree.h (target_opts_for_fn): New function.
33776
33777 2015-01-09 Tom de Vries <tom@codesourcery.com>
33778
33779 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
33780
33781 2015-01-09 Kito Cheng <kito@0xlab.org>
33782
33783 PR rtl-optimization/64348
33784 * lra-constraints.c (split_reg): Fix caller-save store/restore
33785 instruction generation.
33786
33787 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
33788
33789 PR gcov-profile/61790
33790 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
33791 long long. Fallback to int64_t if host doesn't have long long and
33792 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
33793
33794 2015-01-08 Jakub Jelinek <jakub@redhat.com>
33795
33796 PR tree-optimization/63989
33797 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
33798 from 1000 to 10000.
33799 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
33800 (get_stridx): If we don't have a record for certain SSA_NAME,
33801 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
33802 constant offset, call get_stridx_plus_constant.
33803 (get_stridx_plus_constant): New function.
33804 (zero_length_string): Don't use get_stridx here.
33805
33806 PR target/55023
33807 PR middle-end/64388
33808 * dse.c (struct insn_info): Mention frame_read set also
33809 before reload for tail calls on some targets.
33810 (scan_insn): Revert 2014-12-22 change. Set frame_read
33811 also before reload for tail calls if
33812 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
33813 instead of add_non_frame_wild_read for non-const/memset
33814 tail calls after reload.
33815
33816 2015-01-08 Jason Merrill <jason@redhat.com>
33817
33818 * ubsan.c (do_ubsan_in_current_function): New.
33819 (pass_ubsan::gate): Use it.
33820 * ubsan.h: Declare it.
33821 * convert.c (convert_to_integer): Use it.
33822
33823 2015-01-08 Jakub Jelinek <jakub@redhat.com>
33824
33825 PR target/64338
33826 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
33827 compare_code when it is unconditionally overwritten afterwards.
33828 Use ix86_reverse_condition instead of reverse_condition. Don't
33829 change code if *reverse_condition* returned UNKNOWN and don't
33830 swap ct/cf and negate diff in that case.
33831
33832 2015-01-08 Mike Stump <mikestump@comcast.net>
33833
33834 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
33835 (pass_tsan_O0::gate): Likewise.
33836 * extend.texi (Function Attributes): Add no_sanitize_thread
33837 documentation.
33838
33839 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
33840
33841 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
33842 for registering builtins.
33843 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
33844 add -fopenmp to the argv_obstack used when invoking
33845 compile_for_target.
33846
33847 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
33848 add "-m32" or "-m64" to argv_obstack.
33849 (generate_host_descr_file): Likewise, when invoking host_compiler.
33850 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
33851 ld.
33852
33853 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
33854
33855 * config/sh/sh-mem.cc: Use constant as second operand when emitting
33856 tstsi_t insns.
33857
33858 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
33859
33860 PR target/55212
33861 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
33862 constant load if constant operand fits into I08.
33863
33864 2015-01-08 Jakub Jelinek <jakub@redhat.com>
33865
33866 PR sanitizer/64336
33867 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
33868 and TREE_THIS_VOLATILE for MEM_REFs.
33869 (build5_stat): Fix up initialization of TREE_READONLY and
33870 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
33871
33872 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
33873
33874 PR target/64533
33875 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
33876 of r for the second alternative of the destination operand.
33877
33878 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
33879
33880 PR target/36557
33881 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
33882
33883 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
33884
33885 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
33886 keywords.
33887 ([-fivar-visibility], [-fvisibility]): Likewise.
33888
33889 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
33890
33891 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
33892 the file where @code, @command, etc is more appropriate.
33893
33894 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
33895
33896 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
33897 of -mrecip= documentation.
33898
33899 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
33900
33901 PR target/64505
33902 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
33903 correct reload handler if -m32 -mpowerpc64 is used.
33904
33905 2015-01-06 Tom de Vries <tom@codesourcery.com>
33906
33907 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
33908
33909 2015-01-08 Christian Bruel <christian.bruel@st.com>
33910
33911 PR target/64507
33912 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
33913
33914 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
33915
33916 PR tree-optimization/63259
33917 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
33918 if optab exists for 16bit byteswap.
33919
33920 2015-01-06 Jakub Jelinek <jakub@redhat.com>
33921
33922 * opts.c (common_handle_option): Add support for
33923 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
33924 * doc/invoke.texi: Document -fno-sanitize=all,
33925 -f{,no-}sanitize-recover=all. Document that
33926 -fsanitize=float-cast-overflow is not enabled
33927 by -fsanitize=undefined. Fix up documentation
33928 of -f{,no-}sanitize-recover.
33929
33930 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
33931
33932 * config.gcc: Add Visium support.
33933 * configure.ac: Likewise.
33934 * configure: Regenerate.
33935 * doc/extend.texi (interrupt attribute): Add Visium.
33936 * doc/invoke.texi: Document Visium options.
33937 * doc/install.texi: Document Visium target.
33938 * doc/md.texi: Document Visium constraints.
33939 * common/config/visium: New directory.
33940 * config/visium: Likewise.
33941
33942 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
33943
33944 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
33945 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
33946
33947 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
33948
33949 * combine.c (combine_validate_cost): Do not count the cost of a
33950 split I2 twice. Do not display it twice in the dump, either.
33951
33952 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
33953
33954 Revert parts of r219199.
33955 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
33956 <inttypes.h>.
33957 ([-Wtraditional]): Restore markup on <limits.h>.
33958
33959 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
33960
33961 PR c++/31397
33962 * doc/invoke.texi: Document -Wsuggest-override.
33963
33964 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
33965
33966 PR rtl-optimization/64287
33967 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
33968 (process_options): Disable flag_ipa_ra if profiling.
33969
33970 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
33971
33972 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
33973
33974 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
33975
33976 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
33977 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
33978 put under #if TARGET_LOOPS guard.
33979
33980 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
33981
33982 * config/i386/i386.c (output_387_binary_op): Use std::swap.
33983
33984 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
33985
33986 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
33987 * rtl.h (refers_to_regno_p): Add overload.
33988 * cse.c: Use it.
33989 * bt-load.c: Likewise.
33990 * combine.c: Likewise.
33991 * df-scan.c: Likewise.
33992 * sched-deps.c: Likewise.
33993 * config/s390/s390.c: Likewise.
33994 * config/m32r/m32r.c: Likewise.
33995 * config/rs6000/spe.md: Likewise.
33996 * config/rs6000/rs6000.c: Likewise.
33997 * config/pa/pa.c: Likewise.
33998 * config/stormy16/stormy16.c: Likewise.
33999 * config/cris/cris.c: Likewise.
34000 * config/arc/arc.md: Likewise.
34001 * config/arc/arc.c: Likewise.
34002 * config/sh/sh.md: Likewise.
34003 * config/sh/sh.c: Likewise.
34004 * config/frv/frv.c: Likewise.
34005
34006 2015-01-05 Jakub Jelinek <jakub@redhat.com>
34007
34008 PR sanitizer/64265
34009 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
34010 call as cleanup of the whole body.
34011 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
34012 * tsan.c (replace_func_exit): New function.
34013 (instrument_func_exit): Moved earlier.
34014 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
34015 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
34016 been found.
34017 (tsan_pass): Don't call instrument_func_exit.
34018 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
34019 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
34020 inlining.
34021
34022 PR sanitizer/64344
34023 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
34024 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
34025 it to libubsan handler instead of EXPR. Fold comparisons earlier,
34026 if the result is integer_zerop, return NULL_TREE.
34027 * convert.c (convert_to_integer): Pass expr as ARG.
34028
34029 PR tree-optimization/64465
34030 * tree-inline.c (redirect_all_calls): During inlining
34031 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
34032 changed the stmt to a non-throwing call.
34033
34034 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
34035
34036 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
34037 etc markup throughout the file.
34038
34039 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
34040
34041 Enable experimental TSAN support for Ada.
34042 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
34043
34044 2015-01-05 Jakub Jelinek <jakub@redhat.com>
34045
34046 PR tree-optimization/64494
34047 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
34048 clear SSA_NAME_ANTI_RANGE_P flag.
34049
34050 2015-01-05 Marek Polacek <polacek@redhat.com>
34051
34052 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
34053
34054 2015-01-05 Jakub Jelinek <jakub@redhat.com>
34055
34056 Update copyright years.
34057
34058 * gcc.c (process_command): Update copyright notice dates.
34059 * gcov-dump.c: Ditto.
34060 * gcov.c: Ditto.
34061 * doc/cpp.texi: Bump @copying's copyright year.
34062 * doc/cppinternals.texi: Ditto.
34063 * doc/gcc.texi: Ditto.
34064 * doc/gccint.texi: Ditto.
34065 * doc/gcov.texi: Ditto.
34066 * doc/install.texi: Ditto.
34067 * doc/invoke.texi: Ditto.
34068
34069 * auto-profile.c, auto-profile.h: Fix up Copyright line.
34070
34071 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
34072
34073 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
34074 verb tense, etc.
34075 ([-fvtable-verify], [-fvtv-debug]): Likewise.
34076 ([-Wabi]): Likewise.
34077 ([-fmessage-length]): Likewise.
34078 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
34079 ([-Wno-discarded-qualifiers]): Likewise.
34080 ([-Wnodiscarded-array-qualifiers]): Likewise.
34081 ([-Wno-virtual-move-assign]): Likewise.
34082 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
34083 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
34084 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
34085 ([-fsanitize-undefined-trap-on-error]): Likewise.
34086 ([-floop-interchange]): Likewise.
34087 ([-ftree-coalesce-inlined-vars]): Likewise.
34088 ([-fvect-cost-model]): Likewise.
34089 ([-flto]): Likewise.
34090 ([--param]): Likewise.
34091 (Spec Files): Likewise.
34092 ([-mstrict-align]): Likewise.
34093 ([-mfix-cortex-a53-835769]): Likewise.
34094 ([-march], [-mtune]): Likewise.
34095 ([-mpic-register]): Likewise.
34096 ([-munaligned-access]): Likewise.
34097 ([-msp8]): Likewise.
34098 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
34099 (AVR Built-in Macros): Likewise.
34100 ([-mpreferred-stack-boundary]): Likewise.
34101 ([-mtune-crtl]): Likewise.
34102 ([-mashf]): Likewise.
34103 ([-mmcu=]): Likewise.
34104 ([-minrt]): Likewise.
34105 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
34106 ([-mupper-regs]): Likewise.
34107 ([-matomic-model]): Likewise.
34108 ([-mdiv]): Likewise.
34109 ([-mzdcbranch]): Likewise.
34110 ([-mdisable-callt]): Likewise.
34111 ([-msoft-float]): Likewise.
34112 ([-m8byte-align]): Likewise.
34113 ([-fstack-reuse]): Likewise.
34114
34115 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
34116
34117 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
34118 Fix markup, light copy-editing.
34119 ([-fauto-profile]): Rewrite to fix formatting and content
34120 problems.
34121
34122 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
34123
34124 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
34125 Copy-edit description.
34126 ([-fisolate-erroneous-paths-attribute]): Likewise.
34127 * common.opt (fisolate-erroneous-paths-dereference):
34128 Copy-edit description.
34129 (fisolate-erroneous-paths-attribute): Likewise.
34130
34131 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
34132
34133 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
34134 tidy grammar.
34135
34136 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
34137
34138 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
34139 ([-fvtv-debug]): Likewise.
34140 ([-Wc++-compat]): Likewise.
34141 ([-Wc++11-compat]): Likewise.
34142 ([-Wc++14-compat]): Likewise.
34143 ([-Wno-sized-deallocation]): Likewise.
34144 ([-femit-class-debug-always]): Likewise.
34145 ([-femit-struct-debug-detailed]): Likewise.
34146 ([-fno-keep-inline-dllexport]): Likewise.
34147 ([-fira-algorithm]): Likewise.
34148 ([-fira-region]): Likewise.
34149 ([-flra-remat]): Likewise.
34150 ([-fipa-ra]): Likewise.
34151 ([-fhoist-adjacent-loads]): Likewise.
34152 ([-fisolate-erroneous-paths-dereference]): Likewise.
34153 ([-fisolate-erroneous-paths-attribute]): Likewise.
34154 ([-ftree-switch-conversion]): Likewise.
34155 ([-ftree-tail-merge]): Likewise.
34156 ([-ftree-loop-if-convert]): Likewise.
34157 ([-ftree-loop-if-convert-stores]): Likewise.
34158 ([-ftree-loop-distribution]): Likewise.
34159 ([-ftree-loop-distribute-patterns]): Likewise.
34160 ([-flto-compression-level]): Likewise.
34161 ([-flto-report]): Likewise.
34162 ([-flto-report-wpa]): Likewise.
34163 ([-fuse-linker-plugin]): Likewise.
34164 ([-mfix-cortex-a53-835769]): Likewise.
34165 ([-mno-fix-cortex-a53-835769]): Likewise.
34166 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
34167 explicit listing; add a note to the discussion indicating they
34168 exist. Reorder table to group similar options. Add missing
34169 @opindex entries. Add @need commands throughout the table to
34170 allow it to be split across multiple pages.
34171 ([-m8bit-idiv]): Fix @opindex.
34172 ([-mavx256-split-unaligned-load]): Likewise.
34173 ([-mavx256-split-unaligned-store]): Likewise.
34174 ([-mstack-protector-guard]): Likewise.
34175 ([-mcpu=]): Likewise.
34176 ([-mcpu]): Likewise.
34177 ([-mpointer-size=]): Likewise.
34178
34179 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
34180
34181 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
34182 instead of `m' constraint. Likewise for unnamed movb comparison
34183 patterns using reg_before_reload_operand predicate.
34184 * config/pa/predicates.md (reg_before_reload_operand): Tighten
34185 predicate to reject register index and LO_SUM DLT memory forms
34186 after reload.
34187
34188 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
34189
34190 * doc/invoke.texi (Option Summary): Fix spelling of
34191 -fdevirtualize-at-ltrans.
34192 ([-fdevirtualize]): Fix markup.
34193 ([-fdevirtualize-speculatively]): Fix typo.
34194 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
34195 implementor-speaky.
34196 * common.opt (fdevirtualize-at-ltrans): Likewise.
34197 * ipa-devirt.c: Fix typos in comments throughout the file.
34198 (ipa_devirt): Fix typos in format strings for dump output.
34199
34200 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
34201
34202 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
34203 discussion of defaults, light copy-editing.
34204
34205 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
34206
34207 * tsan.c (instrument_expr): corrected previous checkin.
34208
34209 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
34210
34211 Instrument bit field and unaligned accesses for TSAN.
34212 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
34213 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
34214 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
34215 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
34216 unaligned memory regions.
34217
34218 2015-01-01 Anthony Green <green@moxielogic.com>
34219
34220 * config/moxie/predicates.md (moxie_general_movsrc_operand):
34221 Restrict move source register offsets to 16 bits.
34222 \f
34223 Copyright (C) 2015 Free Software Foundation, Inc.
34224
34225 Copying and distribution of this file, with or without modification,
34226 are permitted in any medium without royalty provided the copyright
34227 notice and this notice are preserved.